Documentation
¶
Index ¶
- Constants
- func MMSHeadValidation(sl validator.StructLevel)
- func SetupValidation()
- type AddEmailDomainRequest
- type AddEmailDomainResponse
- type AudioContent
- type BinarySMSMsg
- type BulkWAMsgResponse
- type Contact
- type ContactAddress
- type ContactContent
- type ContactEmail
- type ContactName
- type ContactOrg
- type ContactPhone
- type ContactURL
- type CreateTFAApplicationRequest
- type CreateTFAApplicationResponse
- type CreateTFAMessageTemplateRequest
- type CreateTFAMessageTemplateResponse
- type CreateWATemplateResponse
- type DeliveryTimeWindow
- type DocumentContent
- type EmailDomain
- type EmailMsg
- type ErrorDetails
- type ExternallyHostedMedia
- type GenerateWebRTCTokenRequest
- type GenerateWebRTCTokenResponse
- type GetEmailDeliveryReportsParams
- type GetEmailDeliveryReportsResponse
- type GetEmailDomainResponse
- type GetEmailDomainsParams
- type GetEmailDomainsResponse
- type GetEmailLogsParams
- type GetEmailLogsResponse
- type GetInboundMMSParams
- type GetInboundMMSResponse
- type GetInboundSMSParams
- type GetInboundSMSResponse
- type GetMMSDeliveryReportsParams
- type GetMMSDeliveryReportsResponse
- type GetSMSDeliveryReportsParams
- type GetSMSDeliveryReportsResponse
- type GetSMSLogsParams
- type GetSMSLogsResponse
- type GetScheduledSMSParams
- type GetScheduledSMSResponse
- type GetScheduledSMSStatusParams
- type GetScheduledSMSStatusResponse
- type GetSentEmailBulksParams
- type GetSentEmailBulksStatusParams
- type GetTFAApplicationResponse
- type GetTFAApplicationsResponse
- type GetTFAMessageTemplateResponse
- type GetTFAMessageTemplatesResponse
- type GetTFAVerificationStatusParams
- type GetTFAVerificationStatusResponse
- type GetWATemplatesResponse
- type GetWebRTCApplicationResponse
- type GetWebRTCApplicationsResponse
- type ImageContent
- type InboundMMSResult
- type IndiaDLT
- type InteractiveButton
- type InteractiveButtons
- type InteractiveButtonsBody
- type InteractiveButtonsContent
- type InteractiveButtonsFooter
- type InteractiveButtonsHeader
- type InteractiveListAction
- type InteractiveListBody
- type InteractiveListContent
- type InteractiveListFooter
- type InteractiveListHeader
- type InteractiveListSection
- type InteractiveMultiproductAction
- type InteractiveMultiproductBody
- type InteractiveMultiproductContent
- type InteractiveMultiproductFooter
- type InteractiveMultiproductHeader
- type InteractiveMultiproductSection
- type InteractiveProductAction
- type InteractiveProductBody
- type InteractiveProductContent
- type InteractiveProductFooter
- type LocationContent
- type MMSHead
- type MMSMsg
- type MMSPrice
- type MMSStatus
- type MMSTime
- type MsgCommon
- type MultipartValidatable
- type OutboundMMSDeliveryResult
- type PINType
- type PreviewSMSRequest
- type PreviewSMSResponse
- type RCSCardContent
- type RCSCardContentMedia
- type RCSContent
- type RCSFile
- type RCSMsg
- type RCSSMSFailover
- type RCSSuggestion
- type RCSThumbnail
- type RequestError
- type RescheduleEmailParams
- type RescheduleEmailRequest
- type RescheduleEmailResponse
- type RescheduleSMSParams
- type RescheduleSMSRequest
- type RescheduleSMSResponse
- type ResendPINOverSMSRequest
- type ResendPINOverSMSResponse
- type ResendPINOverVoiceRequest
- type ResendPINOverVoiceResponse
- type ResendPINRequest
- type ResponseDetails
- type SMSBinary
- type SMSDeliveryTimeWindow
- type SMSDestination
- type SMSError
- type SMSFailover
- type SMSLanguage
- type SMSMsg
- type SMSPrice
- type SMSRegional
- type SMSSendingSpeedLimit
- type SMSStatus
- type SMSTime
- type SMSTracking
- type SaveWebRTCApplicationResponse
- type SectionRow
- type SendBinarySMSRequest
- type SendBinarySMSResponse
- type SendEmailResponse
- type SendMMSResponse
- type SendPINOverSMSParams
- type SendPINOverSMSRequest
- type SendPINOverSMSResponse
- type SendPINOverVoiceRequest
- type SendPINOverVoiceResponse
- type SendPINRequest
- type SendPINResponse
- type SendRCSBulkRequest
- type SendRCSBulkResponse
- type SendRCSResponse
- type SendSMSOverQueryParamsParams
- type SendSMSOverQueryParamsResponse
- type SendSMSRequest
- type SendSMSResponse
- type SendWAMsgResponse
- type SentEmailBulksResponse
- type SentEmailBulksStatusResponse
- type SentMMS
- type ServiceException
- type Status
- type StickerContent
- type TFAApplication
- type TFAApplicationConfiguration
- type TFALanguage
- type TFAMessageTemplate
- type TemplateBody
- type TemplateButton
- type TemplateCreate
- type TemplateData
- type TemplateHeader
- type TemplateMsg
- type TemplateMsgButton
- type TemplateMsgContent
- type TemplateMsgHeader
- type TemplateStructure
- type TemplateStructureBody
- type TemplateStructureFooter
- type TextContent
- type UpdateEmailDomainTrackingRequest
- type UpdateEmailDomainTrackingResponse
- type UpdateScheduledEmailStatusParams
- type UpdateScheduledEmailStatusRequest
- type UpdateScheduledSMSStatusParams
- type UpdateScheduledSMSStatusRequest
- type UpdateScheduledSMSStatusResponse
- type UpdateScheduledStatusResponse
- type UpdateTFAApplicationRequest
- type UpdateTFAApplicationResponse
- type UpdateTFAMessageTemplateRequest
- type UpdateTFAMessageTemplateResponse
- type UpdateWebRTCApplicationResponse
- type Validatable
- type ValidateEmailAddressesRequest
- type ValidateEmailAddressesResponse
- type VerifyPhoneNumberRequest
- type VerifyPhoneNumberResponse
- type VideoContent
- type WAAudioMsg
- type WAContactMsg
- type WADocumentMsg
- type WAImageMsg
- type WAInteractiveButtonsMsg
- type WAInteractiveListMsg
- type WAInteractiveMultiproductMsg
- type WAInteractiveProductMsg
- type WALocationMsg
- type WAStickerMsg
- type WATemplateMsgs
- type WATextMsg
- type WAVideoMsg
- type WebRTCAndroid
- type WebRTCApplication
- type WebRTCIOS
- type WebRTCTokenCapabilities
Constants ¶
View Source
const MinDeliveryWindow = 60
View Source
const MinsPerHour = 60
Variables ¶
This section is empty.
Functions ¶
func MMSHeadValidation ¶
func MMSHeadValidation(sl validator.StructLevel)
func SetupValidation ¶
func SetupValidation()
SetupValidation configures struct-level validations for all payload models. This method must be called in order for validation to work, and it is invoked automatically when models are imported.
Types ¶
type AddEmailDomainRequest ¶
type AddEmailDomainRequest struct {
DomainName string `json:"domainName" validate:"required"`
}
func (*AddEmailDomainRequest) Marshal ¶
func (a *AddEmailDomainRequest) Marshal() (*bytes.Buffer, error)
func (*AddEmailDomainRequest) Validate ¶
func (a *AddEmailDomainRequest) Validate() error
type AddEmailDomainResponse ¶
type AddEmailDomainResponse EmailDomain
type AudioContent ¶
type AudioContent struct {
MediaURL string `json:"mediaUrl" validate:"required,url,lte=2048"`
}
type BinarySMSMsg ¶
type BinarySMSMsg struct { From string `json:"from"` Destinations []SMSDestination `json:"destinations" validate:"min=1,dive"` Binary *SMSBinary `json:"binary"` IntermediateReport bool `json:"intermediateReport,omitempty"` NotifyURL string `json:"notifyUrl,omitempty"` NotifyContentType string `json:"notifyContentType,omitempty"` CallbackData string `json:"callbackData,omitempty"` ValidityPeriod int `json:"validityPeriod,omitempty"` SendAt string `json:"sendAt,omitempty"` DeliveryTimeWindow *SMSDeliveryTimeWindow `json:"deliveryTimeWindow,omitempty"` Regional *SMSRegional `json:"regional,omitempty"` }
func GenerateBinarySMSMsg ¶
func GenerateBinarySMSMsg() BinarySMSMsg
func (*BinarySMSMsg) Validate ¶
func (b *BinarySMSMsg) Validate() error
type BulkWAMsgResponse ¶
type BulkWAMsgResponse struct { Messages []SendWAMsgResponse `json:"messages"` BulkID string `json:"bulkId"` }
type Contact ¶
type Contact struct { Addresses []ContactAddress `json:"addresses,omitempty" validate:"omitempty,dive"` Birthday string `json:"birthday,omitempty"` Emails []ContactEmail `json:"emails,omitempty" validate:"omitempty,dive"` Name ContactName `json:"name" validate:"required"` Org ContactOrg `json:"org,omitempty"` Phones []ContactPhone `json:"phones,omitempty" validate:"omitempty,dive"` Urls []ContactURL `json:"urls,omitempty" validate:"omitempty,dive"` }
type ContactAddress ¶
type ContactAddress struct { Street string `json:"street,omitempty"` City string `json:"city,omitempty"` State string `json:"state,omitempty"` Zip string `json:"zip,omitempty"` Country string `json:"country,omitempty"` CountryCode string `json:"countryCode,omitempty"` Type string `json:"type,omitempty" validate:"omitempty,oneof=HOME WORK"` }
type ContactContent ¶
type ContactContent struct {
Contacts []Contact `json:"contacts" validate:"required,dive"`
}
type ContactEmail ¶
type ContactName ¶
type ContactName struct { FirstName string `json:"firstName" validate:"required"` LastName string `json:"lastName,omitempty"` MiddleName string `json:"middleName,omitempty"` NameSuffix string `json:"nameSuffix,omitempty"` NamePrefix string `json:"namePrefix,omitempty"` FormattedName string `json:"formattedName" validate:"required"` }
type ContactOrg ¶
type ContactPhone ¶
type ContactURL ¶
type CreateTFAApplicationRequest ¶ added in v3.1.0
type CreateTFAApplicationRequest TFAApplication
func GenerateCreateTFAApplicationRequest ¶ added in v3.1.0
func GenerateCreateTFAApplicationRequest() CreateTFAApplicationRequest
func (*CreateTFAApplicationRequest) Marshal ¶ added in v3.1.0
func (c *CreateTFAApplicationRequest) Marshal() (*bytes.Buffer, error)
func (*CreateTFAApplicationRequest) Validate ¶ added in v3.1.0
func (c *CreateTFAApplicationRequest) Validate() error
type CreateTFAApplicationResponse ¶ added in v3.1.0
type CreateTFAApplicationResponse TFAApplication
type CreateTFAMessageTemplateRequest ¶ added in v3.1.0
type CreateTFAMessageTemplateRequest TFAMessageTemplate
func GenerateCreateTFAMessageTemplateRequest ¶ added in v3.1.0
func GenerateCreateTFAMessageTemplateRequest() CreateTFAMessageTemplateRequest
func (*CreateTFAMessageTemplateRequest) Marshal ¶ added in v3.1.0
func (c *CreateTFAMessageTemplateRequest) Marshal() (*bytes.Buffer, error)
func (*CreateTFAMessageTemplateRequest) Validate ¶ added in v3.1.0
func (c *CreateTFAMessageTemplateRequest) Validate() error
type CreateTFAMessageTemplateResponse ¶ added in v3.1.0
type CreateTFAMessageTemplateResponse TFAMessageTemplate
type DeliveryTimeWindow ¶
type DocumentContent ¶
type EmailDomain ¶
type EmailDomain struct { DomainID int64 `json:"domainId"` DomainName string `json:"domainName"` Active bool `json:"active"` Tracking struct { Clicks bool `json:"clicks"` Opens bool `json:"opens"` Unsubscribe bool `json:"unsubscribe"` } `json:"tracking"` DNSRecords []struct { RecordType string `json:"recordType"` Name string `json:"name"` ExpectedValue string `json:"expectedValue"` Verified bool `json:"verified"` } `json:"dnsRecords"` Blocked bool `json:"blocked"` CreatedAt string `json:"createdAt"` }
type EmailMsg ¶
type EmailMsg struct { From string `validate:"required"` To string `validate:"required"` Cc string Bcc string Subject string `validate:"required"` Text string BulkID string MessageID string TemplateID int Attachment *os.File Attachments []*os.File InlineImage *os.File InlineImages []*os.File HTML string ReplyTo string DefaultPlaceholders string PreserveRecipients bool TrackingURL string `validate:"omitempty,url"` TrackClicks bool TrackOpens bool Track bool CallbackData string IntermediateReport bool NotifyURL string `validate:"omitempty,url"` NotifyContentType string SendAt string LandingPagePlaceholders string LandingPageID string // contains filtered or unexported fields }
func GenerateEmailMsg ¶
func GenerateEmailMsg() EmailMsg
func (*EmailMsg) GetMultipartBoundary ¶
type ErrorDetails ¶
type ErrorDetails struct {
RequestError RequestError `json:"requestError"`
}
type ExternallyHostedMedia ¶
type GenerateWebRTCTokenRequest ¶
type GenerateWebRTCTokenRequest struct { Identity string `json:"identity" validate:"required,min=3,max=64"` ApplicationID string `json:"applicationId"` DisplayName string `json:"displayName"` Capabilities *WebRTCTokenCapabilities `json:"capabilities"` TimeToLive int64 `json:"timeToLive"` }
func (*GenerateWebRTCTokenRequest) Marshal ¶
func (g *GenerateWebRTCTokenRequest) Marshal() (*bytes.Buffer, error)
func (*GenerateWebRTCTokenRequest) Validate ¶
func (g *GenerateWebRTCTokenRequest) Validate() error
type GetEmailDeliveryReportsResponse ¶
type GetEmailDeliveryReportsResponse struct { Results []struct { BulkID string `json:"bulkId"` MessageID string `json:"messageId"` To string `json:"to"` SentAt string `json:"sentAt"` DoneAt string `json:"doneAt"` MessageCount int `json:"messageCount"` Price struct { PricePerMessage float64 `json:"pricePerMessage"` Currency string `json:"currency"` } `json:"price"` Status struct { GroupID int `json:"groupId"` GroupName string `json:"groupName"` ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` Action string `json:"action"` } `json:"status"` Error struct { GroupID int `json:"groupId"` GroupName string `json:"groupName"` ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` Permanent bool `json:"permanent"` } `json:"error"` Channel string `json:"channel"` } `json:"results"` }
type GetEmailDomainResponse ¶
type GetEmailDomainResponse EmailDomain
type GetEmailDomainsParams ¶
type GetEmailDomainsResponse ¶
type GetEmailDomainsResponse struct { Paging struct { Page int `json:"page"` Size int `json:"size"` TotalPages int `json:"totalPages"` TotalResults int `json:"totalResults"` } `json:"paging"` Results []EmailDomain `json:"results"` }
type GetEmailLogsParams ¶
type GetEmailLogsResponse ¶
type GetEmailLogsResponse struct { Results []struct { MessageID string `json:"messageId"` To string `json:"to"` From string `json:"from"` Text string `json:"text"` SentAt string `json:"sentAt"` DoneAt string `json:"doneAt"` MessageCount int `json:"messageCount"` Price struct { PricePerMessage float64 `json:"pricePerMessage"` Currency string `json:"currency"` } `json:"price"` Status struct { GroupID int `json:"groupId"` GroupName string `json:"groupName"` ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` Action string `json:"action"` } `json:"status"` BulkID string `json:"bulkId"` Channel string `json:"channel"` } `json:"results"` }
type GetInboundMMSParams ¶
type GetInboundMMSParams struct {
Limit int
}
type GetInboundMMSResponse ¶
type GetInboundMMSResponse struct {
Results []InboundMMSResult `json:"results"`
}
type GetInboundSMSParams ¶
type GetInboundSMSParams struct {
Limit int `validate:"omitempty,min=1,max=1000"`
}
func (*GetInboundSMSParams) Validate ¶
func (g *GetInboundSMSParams) Validate() error
type GetInboundSMSResponse ¶
type GetInboundSMSResponse struct { MessageCount int `json:"messageCount"` PendingMessageCount int `json:"pendingMessageCount"` Results []struct { CallbackData string `json:"callbackData"` CleanText string `json:"cleanText"` From string `json:"from"` Keyword string `json:"keyword"` MessageID string `json:"messageId"` Price SMSPrice `json:"price"` ReceivedAt string `json:"receivedAt"` SmsCount int `json:"smsCount"` Text string `json:"text"` To string `json:"to"` } `json:"results"` }
type GetMMSDeliveryReportsResponse ¶
type GetMMSDeliveryReportsResponse struct {
Results []OutboundMMSDeliveryResult `json:"results"`
}
type GetSMSDeliveryReportsParams ¶
func (*GetSMSDeliveryReportsParams) Validate ¶
func (g *GetSMSDeliveryReportsParams) Validate() error
type GetSMSDeliveryReportsResponse ¶
type GetSMSDeliveryReportsResponse struct { Results []struct { BulkID string `json:"bulkId"` CallbackData string `json:"callbackData"` DoneAt string `json:"doneAt"` Error SMSError `json:"error"` From string `json:"from"` MccMnc string `json:"mccMnc"` MessageID string `json:"messageId"` Price SMSPrice `json:"price"` SentAt string `json:"sentAt"` SmsCount int `json:"smsCount"` Status SMSStatus `json:"status"` To string `json:"to"` } `json:"results"` }
type GetSMSLogsParams ¶
type GetSMSLogsParams struct { From string To string BulkID []string MessageID []string GeneralStatus string `validate:"omitempty,oneof=ACCEPTED PENDING UNDELIVERABLE DELIVERED REJECTED EXPIRED"` SentSince string SentUntil string Limit int `validate:"omitempty,min=1,max=1000"` MCC string MNC string }
func (*GetSMSLogsParams) Validate ¶
func (g *GetSMSLogsParams) Validate() error
type GetSMSLogsResponse ¶
type GetSMSLogsResponse struct { Results []struct { BulkID string `json:"bulkId"` MessageID string `json:"messageId"` To string `json:"to"` From string `json:"from"` Text string `json:"text"` SentAt string `json:"sentAt"` DoneAt string `json:"doneAt"` SmsCount int `json:"smsCount"` MccMnc string `json:"mccMnc"` Price SMSPrice `json:"price"` Status SMSStatus `json:"status"` Error SMSError `json:"error"` } `json:"results"` }
type GetScheduledSMSParams ¶
type GetScheduledSMSParams struct {
BulkID string `validate:"required"`
}
func (*GetScheduledSMSParams) Validate ¶
func (g *GetScheduledSMSParams) Validate() error
type GetScheduledSMSResponse ¶
type GetScheduledSMSStatusParams ¶
type GetScheduledSMSStatusParams struct {
BulkID string `json:"bulkId" validate:"required"`
}
func (*GetScheduledSMSStatusParams) Validate ¶
func (g *GetScheduledSMSStatusParams) Validate() error
type GetSentEmailBulksParams ¶
type GetSentEmailBulksParams struct {
BulkID string `validate:"required"`
}
func (*GetSentEmailBulksParams) Validate ¶
func (o *GetSentEmailBulksParams) Validate() error
type GetSentEmailBulksStatusParams ¶
type GetSentEmailBulksStatusParams struct {
BulkID string `validate:"required"`
}
func (*GetSentEmailBulksStatusParams) Validate ¶
func (o *GetSentEmailBulksStatusParams) Validate() error
type GetTFAApplicationResponse ¶ added in v3.1.0
type GetTFAApplicationResponse TFAApplication
type GetTFAApplicationsResponse ¶ added in v3.1.0
type GetTFAApplicationsResponse []TFAApplication
type GetTFAMessageTemplateResponse ¶ added in v3.1.0
type GetTFAMessageTemplateResponse TFAMessageTemplate
type GetTFAMessageTemplatesResponse ¶ added in v3.1.0
type GetTFAMessageTemplatesResponse []TFAMessageTemplate
type GetTFAVerificationStatusParams ¶ added in v3.1.0
type GetTFAVerificationStatusResponse ¶ added in v3.1.0
type GetWATemplatesResponse ¶
type GetWATemplatesResponse struct {
Templates []CreateWATemplateResponse `json:"templates"`
}
type GetWebRTCApplicationResponse ¶
type GetWebRTCApplicationResponse WebRTCApplication
type GetWebRTCApplicationsResponse ¶
type GetWebRTCApplicationsResponse []WebRTCApplication
type ImageContent ¶
type InboundMMSResult ¶
type InteractiveButton ¶
type InteractiveButtons ¶
type InteractiveButtons struct {
Buttons []InteractiveButton `json:"buttons" validate:"required,min=1,max=3,dive"`
}
type InteractiveButtonsBody ¶
type InteractiveButtonsBody struct {
Text string `json:"text" validate:"required,lte=1024"`
}
type InteractiveButtonsContent ¶
type InteractiveButtonsContent struct { Body InteractiveButtonsBody `json:"body" validate:"required"` Action InteractiveButtons `json:"action" validate:"required"` Header *InteractiveButtonsHeader `json:"header,omitempty" validate:"omitempty"` }
type InteractiveButtonsFooter ¶
type InteractiveButtonsFooter struct {
}type InteractiveButtonsHeader ¶
type InteractiveButtonsHeader struct { Type string `json:"type" validate:"required,oneof=TEXT VIDEO IMAGE DOCUMENT"` Text string `json:"text,omitempty" validate:"lte=60"` MediaURL string `json:"mediaUrl,omitempty" validate:"omitempty,url,lte=2048"` Filename string `json:"filename,omitempty" validate:"lte=240"` }
type InteractiveListAction ¶
type InteractiveListAction struct { Title string `json:"title" validate:"required,lte=20"` Sections []InteractiveListSection `json:"sections" validate:"required,min=1,max=10,dive"` }
type InteractiveListBody ¶
type InteractiveListBody struct {
Text string `json:"text" validate:"required,lte=1024"`
}
type InteractiveListContent ¶
type InteractiveListContent struct { Body InteractiveListBody `json:"body" validate:"required"` Action InteractiveListAction `json:"action" validate:"required"` Header *InteractiveListHeader `json:"header,omitempty" validate:"omitempty"` }
type InteractiveListFooter ¶
type InteractiveListFooter struct {
}type InteractiveListHeader ¶
type InteractiveListSection ¶
type InteractiveListSection struct { Title string `json:"title,omitempty" validate:"lte=24"` Rows []SectionRow `json:"rows" validate:"required,min=1,max=10,dive"` }
type InteractiveMultiproductAction ¶
type InteractiveMultiproductAction struct { CatalogID string `json:"catalogId" validate:"required"` Sections []InteractiveMultiproductSection `json:"sections" validate:"required,min=1,max=10,dive"` }
type InteractiveMultiproductBody ¶
type InteractiveMultiproductBody struct {
Text string `json:"text" validate:"required,lte=1024"`
}
type InteractiveMultiproductContent ¶
type InteractiveMultiproductContent struct { Header InteractiveMultiproductHeader `json:"header" validate:"required"` Body InteractiveMultiproductBody `json:"body" validate:"required"` Action InteractiveMultiproductAction `json:"action" validate:"required"` }
type InteractiveMultiproductFooter ¶
type InteractiveMultiproductFooter struct {
}type InteractiveProductBody ¶
type InteractiveProductBody struct {
Text string `json:"text" validate:"required,lte=1024"`
}
type InteractiveProductContent ¶
type InteractiveProductContent struct { Action InteractiveProductAction `json:"action" validate:"required"` Body *InteractiveProductBody `json:"body,omitempty"` }
type InteractiveProductFooter ¶
type InteractiveProductFooter struct {
}type LocationContent ¶
type MMSHead ¶
type MMSHead struct { From string `json:"from" validate:"required"` To string `json:"to" validate:"required"` ID string `json:"id,omitempty"` Subject string `json:"subject,omitempty"` ValidityPeriodMinutes int32 `json:"validityPeriodMinutes,omitempty"` CallbackData string `json:"callbackData,omitempty" validate:"lte=200"` NotifyURL string `json:"notifyUrl,omitempty" validate:"omitempty,url"` SendAt string `json:"sendAt,omitempty"` IntermediateReport *bool `json:"intermediateReport,omitempty"` DeliveryTimeWindow *DeliveryTimeWindow `json:"deliveryTimeWindow,omitempty"` }
type MMSMsg ¶
type MMSMsg struct { Head MMSHead `validate:"required"` Text string Media *os.File ExternallyHostedMedia []ExternallyHostedMedia `validate:"dive"` SMIL string // contains filtered or unexported fields }
func (*MMSMsg) GetMultipartBoundary ¶
type MsgCommon ¶
type MsgCommon struct { From string `json:"from" validate:"required,lte=24"` To string `json:"to" validate:"required,lte=24"` MessageID string `json:"messageId,omitempty" validate:"lte=50"` CallbackData string `json:"callbackData,omitempty" validate:"lte=4000"` NotifyURL string `json:"notifyUrl,omitempty" validate:"omitempty,url,lte=2048"` }
func GenerateTestMsgCommon ¶
func GenerateTestMsgCommon() MsgCommon
type MultipartValidatable ¶
type MultipartValidatable interface { Validatable GetMultipartBoundary() string }
type OutboundMMSDeliveryResult ¶
type OutboundMMSDeliveryResult struct { BulkID string `json:"bulkId"` MessageID string `json:"messageId"` To string `json:"to"` From string `json:"from"` SentAt string `json:"sentAt"` DoneAt string `json:"doneAt"` MMSCount int32 `json:"mmsCount"` MCCMNC string `json:"mccMnc"` CallbackData string `json:"callbackData"` Price MMSPrice `json:"price"` Status MMSStatus `json:"status"` Error MMSStatus `json:"error"` }
type PreviewSMSRequest ¶
type PreviewSMSRequest struct { LanguageCode string `json:"languageCode,omitempty" validate:"omitempty,oneof=TR ES PT AUTODETECT"` Text string `json:"text" validate:"required"` Transliteration string `` //nolint:lll /* 135-byte string literal not displayed */ }
func GeneratePreviewSMSRequest ¶
func GeneratePreviewSMSRequest() PreviewSMSRequest
func (*PreviewSMSRequest) Validate ¶
func (r *PreviewSMSRequest) Validate() error
type PreviewSMSResponse ¶
type PreviewSMSResponse struct { OriginalText string `json:"originalText"` Previews []struct { CharactersRemaining int `json:"charactersRemaining"` Configuration struct { Language SMSLanguage `json:"language"` Transliteration string `json:"transliteration"` } `json:"configuration"` MessageCount int `json:"messageCount"` TextPreview string `json:"textPreview"` } `json:"previews"` }
type RCSCardContent ¶
type RCSCardContent struct { Title string `json:"title" validate:"omitempty,min=1,max=200"` Description string `json:"description" validate:"omitempty,min=1,max=2000"` Media *RCSCardContentMedia `json:"media,omitempty"` Suggestions []RCSSuggestion `json:"suggestions,omitempty" validate:"omitempty,max=4,dive"` }
func GenerateRCSCardContent ¶
func GenerateRCSCardContent() *RCSCardContent
func (*RCSCardContent) Validate ¶
func (r *RCSCardContent) Validate() error
type RCSCardContentMedia ¶
type RCSCardContentMedia struct { File *RCSFile `json:"file" validate:"required"` Thumbnail *RCSThumbnail `json:"thumbnail"` Height string `json:"height" validate:"required,oneof=SHORT MEDIUM TALL"` }
type RCSContent ¶
type RCSContent struct { Type string `json:"type" validate:"oneof=TEXT FILE CARD CAROUSEL"` File *RCSFile `json:"file,omitempty" validate:"required_if=Type FILE,omitempty"` Thumbnail *RCSThumbnail `json:"thumbnail,omitempty"` Text string `json:"text,omitempty" validator:"required_if=Type TEXT,omitempty,min=1,max=2048"` Suggestions []RCSSuggestion `json:"suggestions,omitempty" validate:"omitempty,dive"` Orientation string `json:"orientation,omitempty" validate:"required_if=Type CARD,omitempty,oneof=HORIZONTAL VERTICAL"` //nolint:lll Alignment string `json:"alignment,omitempty" validate:"required_if=Type CARD,omitempty,oneof=LEFT RIGHT"` //nolint:lll CardWidth string `json:"cardWidth,omitempty" validate:"required_if=Type CAROUSEL,omitempty,oneof=SMALL MEDIUM"` //nolint:lll Content *RCSCardContent `json:"content,omitempty" validate:"required_if=Type CARD"` Contents []RCSCardContent `json:"contents,omitempty" validate:"required_if=Type CAROUSEL,omitempty,min=2,max=10,dive"` //nolint:lll }
type RCSMsg ¶
type RCSMsg struct { From string `json:"from,omitempty"` To string `json:"to" validate:"required"` ValidityPeriod int `json:"validityPeriod,omitempty"` ValidityPeriodTimeUnit string `json:"validityPeriodTimeUnit,omitempty" validate:"omitempty,oneof=SECONDS MINUTES HOURS DAYS"` //nolint:lll Content *RCSContent `json:"content,omitempty" validate:"required"` SMSFailover *RCSSMSFailover `json:"smsFailover,omitempty"` NotifyURL string `json:"notifyUrl,omitempty"` CallbackData string `json:"callbackData,omitempty"` MessageID string `json:"messageId,omitempty"` }
func GenerateRCSFileMsg ¶
func GenerateRCSFileMsg() RCSMsg
type RCSSMSFailover ¶
type RCSSMSFailover struct { From string `json:"from" validate:"required"` Text string `json:"text" validate:"required"` ValidityPeriod int `json:"validityPeriod,omitempty"` ValidityPeriodTimeUnit string `json:"validityPeriodTimeUnit,omitempty" validate:"omitempty,oneof=SECONDS MINUTES HOURS DAYS"` //nolint:lll }
type RCSSuggestion ¶
type RCSSuggestion struct { Text string `json:"text" validate:"min=1,max=25"` PostbackData string `json:"postbackData" validate:"min=1,max=2048"` Type string `json:"type" validate:"oneof=REPLY OPEN_URL DIAL_PHONE SHOW_LOCATION REQUEST_LOCATION"` URL string `json:"url,omitempty" validate:"required_if=Type OPEN_URL"` PhoneNumber string `json:"phoneNumber,omitempty"` Latitude float64 `json:"latitude,omitempty" validate:"min=-90,max=90,required_if=Type SHOW_LOCATION"` Longitude float64 `json:"longitude,omitempty" validate:"min=-180,max=180,required_if=Type SHOW_LOCATION"` Label string `json:"label,omitempty" validate:"omitempty,min=1,max=100"` }
func GenerateDialPhoneRCSSuggestion ¶
func GenerateDialPhoneRCSSuggestion() RCSSuggestion
func GenerateOpenURLRCSSuggestion ¶
func GenerateOpenURLRCSSuggestion() RCSSuggestion
func GenerateReplyRCSSuggestion ¶
func GenerateReplyRCSSuggestion() RCSSuggestion
func GenerateShowLocationRCSSuggestion ¶
func GenerateShowLocationRCSSuggestion() RCSSuggestion
func (*RCSSuggestion) Validate ¶
func (r *RCSSuggestion) Validate() error
type RCSThumbnail ¶
type RCSThumbnail struct {
URL string `json:"url" validate:"required,min=1,max=1000"`
}
type RequestError ¶
type RequestError struct {
ServiceException ServiceException `json:"serviceException"`
}
type RescheduleEmailParams ¶
type RescheduleEmailParams struct {
BulkID string `validate:"required"`
}
func (*RescheduleEmailParams) Validate ¶
func (o *RescheduleEmailParams) Validate() error
type RescheduleEmailRequest ¶
type RescheduleEmailRequest struct {
SendAt string `json:"sendAt"`
}
func (*RescheduleEmailRequest) Marshal ¶
func (r *RescheduleEmailRequest) Marshal() (*bytes.Buffer, error)
func (*RescheduleEmailRequest) Validate ¶
func (r *RescheduleEmailRequest) Validate() error
type RescheduleEmailResponse ¶
type RescheduleSMSParams ¶
type RescheduleSMSParams struct {
BulkID string `json:"bulkId" validate:"required"`
}
func (*RescheduleSMSParams) Validate ¶
func (r *RescheduleSMSParams) Validate() error
type RescheduleSMSRequest ¶
type RescheduleSMSRequest struct {
SendAt string `json:"sendAt" validate:"required"`
}
func (*RescheduleSMSRequest) Marshal ¶
func (r *RescheduleSMSRequest) Marshal() (*bytes.Buffer, error)
func (*RescheduleSMSRequest) Validate ¶
func (r *RescheduleSMSRequest) Validate() error
type RescheduleSMSResponse ¶
type ResendPINOverSMSRequest ¶ added in v3.1.0
type ResendPINOverSMSRequest ResendPINRequest
func GenerateResendPINOverSMSRequest ¶ added in v3.1.0
func GenerateResendPINOverSMSRequest() ResendPINOverSMSRequest
func (*ResendPINOverSMSRequest) Marshal ¶ added in v3.1.0
func (r *ResendPINOverSMSRequest) Marshal() (*bytes.Buffer, error)
func (*ResendPINOverSMSRequest) Validate ¶ added in v3.1.0
func (r *ResendPINOverSMSRequest) Validate() error
type ResendPINOverSMSResponse ¶ added in v3.1.0
type ResendPINOverSMSResponse SendPINResponse
type ResendPINOverVoiceRequest ¶ added in v3.1.0
type ResendPINOverVoiceRequest ResendPINRequest
func GenerateResendPINOverVoiceRequest ¶ added in v3.1.0
func GenerateResendPINOverVoiceRequest() ResendPINOverVoiceRequest
func (*ResendPINOverVoiceRequest) Marshal ¶ added in v3.1.0
func (r *ResendPINOverVoiceRequest) Marshal() (*bytes.Buffer, error)
func (*ResendPINOverVoiceRequest) Validate ¶ added in v3.1.0
func (r *ResendPINOverVoiceRequest) Validate() error
type ResendPINOverVoiceResponse ¶ added in v3.1.0
type ResendPINOverVoiceResponse SendPINResponse
type ResendPINRequest ¶ added in v3.1.0
type ResponseDetails ¶
type ResponseDetails struct { ErrorResponse ErrorDetails HTTPResponse http.Response }
type SMSDeliveryTimeWindow ¶
type SMSDestination ¶
type SMSFailover ¶
type SMSLanguage ¶
type SMSLanguage struct {
LanguageCode string `json:"languageCode"`
}
type SMSMsg ¶
type SMSMsg struct { CallbackData string `json:"callbackData,omitempty"` DeliveryTimeWindow *SMSDeliveryTimeWindow `json:"deliveryTimeWindow,omitempty"` Destinations []SMSDestination `json:"destinations" validate:"required,min=1,dive"` Flash bool `json:"flash,omitempty"` From string `json:"from"` IntermediateReport bool `json:"intermediateReport,omitempty"` Language *SMSLanguage `json:"language,omitempty"` NotifyContentType string `json:"notifyContentType,omitempty"` NotifyURL string `json:"notifyUrl,omitempty"` Regional *SMSRegional `json:"regional,omitempty"` SendAt string `json:"sendAt,omitempty"` Text string `json:"text"` Transliteration string `json:"transliteration,omitempty"` ValidityPeriod int `json:"validityPeriod,omitempty"` }
func GenerateSMSMsg ¶
func GenerateSMSMsg() SMSMsg
type SMSRegional ¶
type SMSRegional struct {
IndiaDLT `json:"indiaDlt" validate:"omitempty,dive"`
}
type SMSSendingSpeedLimit ¶
type SMSTracking ¶
type SaveWebRTCApplicationResponse ¶
type SaveWebRTCApplicationResponse WebRTCApplication
type SectionRow ¶
type SendBinarySMSRequest ¶
type SendBinarySMSRequest struct { BulkID string `json:"bulkId"` Messages []BinarySMSMsg `json:"messages" validate:"required,min=1,dive"` *SMSSendingSpeedLimit `json:"sendingSpeedLimit,omitempty"` }
func GenerateSendBinarySMSRequest ¶
func GenerateSendBinarySMSRequest() SendBinarySMSRequest
func (*SendBinarySMSRequest) Marshal ¶
func (s *SendBinarySMSRequest) Marshal() (*bytes.Buffer, error)
func (*SendBinarySMSRequest) Validate ¶
func (s *SendBinarySMSRequest) Validate() error
type SendBinarySMSResponse ¶
type SendEmailResponse ¶
type SendEmailResponse struct { BulkID string `json:"bulkId"` Messages []struct { To string `json:"to"` MessageCount int `json:"messageCount"` MessageID string `json:"messageId"` Status struct { GroupID int `json:"groupId"` GroupName string `json:"groupName"` ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` } `json:"status"` } `json:"messages"` }
type SendMMSResponse ¶
type SendPINOverSMSParams ¶ added in v3.1.0
type SendPINOverSMSParams struct {
NCNeeded bool
}
type SendPINOverSMSRequest ¶ added in v3.1.0
type SendPINOverSMSRequest SendPINRequest
func GenerateSendPINOverSMSRequest ¶ added in v3.1.0
func GenerateSendPINOverSMSRequest() SendPINOverSMSRequest
func (*SendPINOverSMSRequest) Marshal ¶ added in v3.1.0
func (s *SendPINOverSMSRequest) Marshal() (*bytes.Buffer, error)
func (*SendPINOverSMSRequest) Validate ¶ added in v3.1.0
func (s *SendPINOverSMSRequest) Validate() error
type SendPINOverSMSResponse ¶ added in v3.1.0
type SendPINOverSMSResponse SendPINResponse
type SendPINOverVoiceRequest ¶ added in v3.1.0
type SendPINOverVoiceRequest SendPINRequest
func GenerateSendPINOverVoiceRequest ¶ added in v3.1.0
func GenerateSendPINOverVoiceRequest() SendPINOverVoiceRequest
func (*SendPINOverVoiceRequest) Marshal ¶ added in v3.1.0
func (s *SendPINOverVoiceRequest) Marshal() (*bytes.Buffer, error)
func (*SendPINOverVoiceRequest) Validate ¶ added in v3.1.0
func (s *SendPINOverVoiceRequest) Validate() error
type SendPINOverVoiceResponse ¶ added in v3.1.0
type SendPINOverVoiceResponse SendPINResponse
type SendPINRequest ¶ added in v3.1.0
type SendPINResponse ¶ added in v3.1.0
type SendRCSBulkRequest ¶
type SendRCSBulkRequest struct {
Messages []RCSMsg `json:"messages" validate:"dive"`
}
func (*SendRCSBulkRequest) Validate ¶
func (s *SendRCSBulkRequest) Validate() error
type SendRCSBulkResponse ¶
type SendRCSBulkResponse []SendRCSResponse
type SendRCSResponse ¶
type SendRCSResponse struct { Messages []struct { To string `json:"to"` MessageCount int `json:"messageCount"` MessageID string `json:"messageId"` Status struct { GroupID int `json:"groupId"` GroupName string `json:"groupName"` ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` Action string `json:"action"` } `json:"status"` } `json:"messages"` }
type SendSMSOverQueryParamsParams ¶
type SendSMSOverQueryParamsParams struct { Username string `validate:"required"` Password string `validate:"required"` BulkID string From string To []string `validate:"required"` Text string Flash bool Transliteration string LanguageCode string IntermediateReport bool NotifyURL string NotifyContentType string CallbackData string ValidityPeriod int SendAt string Track string ProcessKey string TrackingType string IndiaDLTContentTemplateID string IndiaDLTPrincipalEntityID string }
func (*SendSMSOverQueryParamsParams) Validate ¶
func (s *SendSMSOverQueryParamsParams) Validate() error
type SendSMSRequest ¶
type SendSMSRequest struct { BulkID string `json:"bulkId"` Messages []SMSMsg `json:"messages" validate:"required,min=1,dive"` SendingSpeedLimit *SMSSendingSpeedLimit `json:"sendingSpeedLimit,omitempty"` Tracking *SMSTracking `json:"tracking,omitempty"` }
func GenerateSendSMSRequest ¶
func GenerateSendSMSRequest() SendSMSRequest
func (*SendSMSRequest) Validate ¶
func (s *SendSMSRequest) Validate() error
type SendSMSResponse ¶
type SendWAMsgResponse ¶
type SentEmailBulksResponse ¶
type ServiceException ¶
type StickerContent ¶
type StickerContent struct {
MediaURL string `json:"mediaUrl" validate:"required,url,lte=2048"`
}
type TFAApplication ¶ added in v3.1.0
type TFAApplication struct { ApplicationID string `json:"applicationId"` Configuration *TFAApplicationConfiguration `json:"configuration,omitempty"` Enabled bool `json:"enabled"` Name string `json:"name" validate:"required"` }
type TFAApplicationConfiguration ¶ added in v3.1.0
type TFAApplicationConfiguration struct { AllowMultiplePINVerifications bool `json:"allowMultiplePinVerifications"` PINAttempts int `json:"pinAttempts"` PINTimeToLive string `json:"pinTimeToLive"` SendPINPerApplicationLimit string `json:"sendPinPerApplicationLimit"` SendPINPerPhoneNumberLimit string `json:"sendPinPerPhoneNumberLimit"` VerifyPINLimit string `json:"verifyPinLimit"` }
type TFALanguage ¶ added in v3.1.0
type TFALanguage string
const ( English TFALanguage = "en" Spanish TFALanguage = "es" Catalan TFALanguage = "ca" Danish TFALanguage = "da" Dutch TFALanguage = "nl" French TFALanguage = "fr" German TFALanguage = "de" Italian TFALanguage = "it" Japanese TFALanguage = "ja" Korean TFALanguage = "ko" Norwegian TFALanguage = "no" Polish TFALanguage = "pl" Russian TFALanguage = "ru" Swedish TFALanguage = "sv" Finnish TFALanguage = "fi" Croatian TFALanguage = "hr" Slovenian TFALanguage = "sl" Romanian TFALanguage = "ro" PortuguesePortugal TFALanguage = "pt-pt" PortugueseBrazil TFALanguage = "pt-br" ChineseSimplified TFALanguage = "zh-cn" ChineseTraditional TFALanguage = "zh-tw" )
type TFAMessageTemplate ¶ added in v3.1.0
type TFAMessageTemplate struct { ApplicationID string `json:"applicationId,omitempty"` Language TFALanguage `json:"language,omitempty"` MessageID string `json:"messageId,omitempty"` MessageText string `json:"messageText,omitempty" validate:"required"` PINLength int `json:"pinLength,omitempty" validate:"required"` PINPlaceholder string `json:"pinPlaceholder,omitempty"` PINType PINType `json:"pinType,omitempty" validate:"required"` Regional *SMSRegional `json:"regional,omitempty" validate:"omitempty,dive"` RepeatDTMF string `json:"repeatDTMF,omitempty"` SenderID string `json:"senderId,omitempty"` SpeechRate float64 `json:"speechRate,omitempty"` }
type TemplateBody ¶
type TemplateBody struct {
Placeholders []string `json:"placeholders" validate:"required,dive,gte=1"`
}
type TemplateButton ¶
type TemplateButton struct { Type string `json:"type" validate:"required,oneof=PHONE_NUMBER URL QUICK_REPLY"` Text string `json:"text" validate:"required,lte=200"` PhoneNumber string `json:"phoneNumber,omitempty" validate:"required_if=Type PHONE_NUMBER"` URL string `json:"url,omitempty" validate:"omitempty,url,required_if=Type URL"` }
type TemplateCreate ¶
type TemplateCreate struct { Name string `json:"name" validate:"required"` Language string `json:"language" validate:"required"` Category string `json:"category" validate:"required"` Structure TemplateStructure `json:"structure" validate:"required"` }
func (*TemplateCreate) Validate ¶
func (t *TemplateCreate) Validate() error
type TemplateData ¶
type TemplateData struct { Body TemplateBody `json:"body" validate:"required"` Header *TemplateMsgHeader `json:"header,omitempty"` Buttons []TemplateMsgButton `json:"buttons,omitempty" validate:"omitempty,max=10,dive"` }
type TemplateHeader ¶
type TemplateMsg ¶
type TemplateMsg struct { MsgCommon Content TemplateMsgContent `json:"content" validate:"required"` SMSFailover *SMSFailover `json:"smsFailover,omitempty"` }
type TemplateMsgButton ¶
type TemplateMsgContent ¶
type TemplateMsgContent struct { TemplateName string `json:"templateName" validate:"required,lte=512"` TemplateData TemplateData `json:"templateData" validate:"required"` Language string `json:"language" validate:"required"` }
type TemplateMsgHeader ¶
type TemplateMsgHeader struct { Type string `json:"type" validate:"required,oneof=TEXT DOCUMENT IMAGE VIDEO LOCATION"` Placeholder string `json:"placeholder,omitempty"` MediaURL string `json:"mediaUrl,omitempty" validate:"omitempty,url,lte=2048"` Filename string `json:"filename,omitempty" validate:"lte=240"` Latitude *float32 `json:"latitude,omitempty" validate:"omitempty,latitude"` Longitude *float32 `json:"longitude,omitempty" validate:"omitempty,longitude"` }
type TemplateStructure ¶
type TemplateStructure struct { Header *TemplateHeader `json:"header,omitempty"` Body *TemplateStructureBody `json:"body" validate:"required"` Buttons []TemplateButton `json:"buttons,omitempty" validate:"omitempty,min=1,max=3,dive"` Type string `json:"type,omitempty" validate:"oneof=TEXT MEDIA UNSUPPORTED"` }
type TemplateStructureBody ¶
type TemplateStructureBody struct {
Text string `json:"text" validate:"required"`
}
type TemplateStructureFooter ¶
type TemplateStructureFooter struct {
}type TextContent ¶
type UpdateEmailDomainTrackingRequest ¶
type UpdateEmailDomainTrackingRequest struct { Opens bool `json:"open"` Clicks bool `json:"clicks"` Unsubscribe bool `json:"unsubscribe"` }
func (*UpdateEmailDomainTrackingRequest) Marshal ¶
func (u *UpdateEmailDomainTrackingRequest) Marshal() (*bytes.Buffer, error)
func (*UpdateEmailDomainTrackingRequest) Validate ¶
func (u *UpdateEmailDomainTrackingRequest) Validate() error
type UpdateEmailDomainTrackingResponse ¶
type UpdateEmailDomainTrackingResponse EmailDomain
type UpdateScheduledEmailStatusParams ¶
type UpdateScheduledEmailStatusParams struct {
BulkID string `validate:"required"`
}
func (*UpdateScheduledEmailStatusParams) Validate ¶
func (o *UpdateScheduledEmailStatusParams) Validate() error
type UpdateScheduledEmailStatusRequest ¶
type UpdateScheduledEmailStatusRequest struct {
Status string `json:"status" validate:"required,oneof=PENDING PAUSED PROCESSING CANCELED FINISHED FAILED"`
}
func (*UpdateScheduledEmailStatusRequest) Marshal ¶
func (r *UpdateScheduledEmailStatusRequest) Marshal() (*bytes.Buffer, error)
func (*UpdateScheduledEmailStatusRequest) Validate ¶
func (r *UpdateScheduledEmailStatusRequest) Validate() error
type UpdateScheduledSMSStatusParams ¶
type UpdateScheduledSMSStatusParams struct {
BulkID string `json:"bulkId" validate:"required"`
}
func (*UpdateScheduledSMSStatusParams) Validate ¶
func (u *UpdateScheduledSMSStatusParams) Validate() error
type UpdateScheduledSMSStatusRequest ¶
type UpdateScheduledSMSStatusRequest struct {
Status string `json:"status" validate:"required,oneof=PENDING PAUSED PROCESSING CANCELED FINISHED FAILED"`
}
func (*UpdateScheduledSMSStatusRequest) Marshal ¶
func (u *UpdateScheduledSMSStatusRequest) Marshal() (*bytes.Buffer, error)
func (*UpdateScheduledSMSStatusRequest) Validate ¶
func (u *UpdateScheduledSMSStatusRequest) Validate() error
type UpdateTFAApplicationRequest ¶ added in v3.1.0
type UpdateTFAApplicationRequest TFAApplication
func GenerateUpdateTFAApplicationRequest ¶ added in v3.1.0
func GenerateUpdateTFAApplicationRequest() UpdateTFAApplicationRequest
func (*UpdateTFAApplicationRequest) Marshal ¶ added in v3.1.0
func (u *UpdateTFAApplicationRequest) Marshal() (*bytes.Buffer, error)
func (*UpdateTFAApplicationRequest) Validate ¶ added in v3.1.0
func (u *UpdateTFAApplicationRequest) Validate() error
type UpdateTFAApplicationResponse ¶ added in v3.1.0
type UpdateTFAApplicationResponse TFAApplication
type UpdateTFAMessageTemplateRequest ¶ added in v3.1.0
type UpdateTFAMessageTemplateRequest TFAMessageTemplate
func GenerateUpdateTFAMessageTemplateRequest ¶ added in v3.1.0
func GenerateUpdateTFAMessageTemplateRequest() UpdateTFAMessageTemplateRequest
func (*UpdateTFAMessageTemplateRequest) Marshal ¶ added in v3.1.0
func (u *UpdateTFAMessageTemplateRequest) Marshal() (*bytes.Buffer, error)
func (*UpdateTFAMessageTemplateRequest) Validate ¶ added in v3.1.0
func (u *UpdateTFAMessageTemplateRequest) Validate() error
type UpdateTFAMessageTemplateResponse ¶ added in v3.1.0
type UpdateTFAMessageTemplateResponse TFAMessageTemplate
type UpdateWebRTCApplicationResponse ¶
type UpdateWebRTCApplicationResponse WebRTCApplication
type Validatable ¶
Validatable should be implemented by all models which represent request payloads. It will be called before a request is made.
type ValidateEmailAddressesRequest ¶
type ValidateEmailAddressesRequest struct {
To string `json:"to" validate:"required,min=1,max=2147483647"`
}
func (*ValidateEmailAddressesRequest) Marshal ¶
func (v *ValidateEmailAddressesRequest) Marshal() (*bytes.Buffer, error)
func (*ValidateEmailAddressesRequest) Validate ¶
func (v *ValidateEmailAddressesRequest) Validate() error
type VerifyPhoneNumberRequest ¶ added in v3.1.0
type VerifyPhoneNumberRequest struct {
PIN string `json:"pin" validate:"required"`
}
func GenerateVerifyPhoneNumberRequest ¶ added in v3.1.0
func GenerateVerifyPhoneNumberRequest() VerifyPhoneNumberRequest
func (*VerifyPhoneNumberRequest) Marshal ¶ added in v3.1.0
func (v *VerifyPhoneNumberRequest) Marshal() (*bytes.Buffer, error)
func (*VerifyPhoneNumberRequest) Validate ¶ added in v3.1.0
func (v *VerifyPhoneNumberRequest) Validate() error
type VerifyPhoneNumberResponse ¶ added in v3.1.0
type VideoContent ¶
type WAAudioMsg ¶
type WAAudioMsg struct { MsgCommon Content AudioContent `json:"content" validate:"required"` }
func (*WAAudioMsg) Validate ¶
func (t *WAAudioMsg) Validate() error
type WAContactMsg ¶
type WAContactMsg struct { MsgCommon Content ContactContent `json:"content" validate:"required"` }
func (*WAContactMsg) Validate ¶
func (t *WAContactMsg) Validate() error
type WADocumentMsg ¶
type WADocumentMsg struct { MsgCommon Content DocumentContent `json:"content" validate:"required"` }
func (*WADocumentMsg) Validate ¶
func (t *WADocumentMsg) Validate() error
type WAImageMsg ¶
type WAImageMsg struct { MsgCommon Content ImageContent `json:"content" validate:"required"` }
func (*WAImageMsg) Validate ¶
func (t *WAImageMsg) Validate() error
type WAInteractiveButtonsMsg ¶
type WAInteractiveButtonsMsg struct { MsgCommon Content InteractiveButtonsContent `json:"content" validate:"required"` }
func (*WAInteractiveButtonsMsg) Marshal ¶
func (t *WAInteractiveButtonsMsg) Marshal() (*bytes.Buffer, error)
func (*WAInteractiveButtonsMsg) Validate ¶
func (t *WAInteractiveButtonsMsg) Validate() error
type WAInteractiveListMsg ¶
type WAInteractiveListMsg struct { MsgCommon Content InteractiveListContent `json:"content" validate:"required"` }
func (*WAInteractiveListMsg) Marshal ¶
func (t *WAInteractiveListMsg) Marshal() (*bytes.Buffer, error)
func (*WAInteractiveListMsg) Validate ¶
func (t *WAInteractiveListMsg) Validate() error
type WAInteractiveMultiproductMsg ¶
type WAInteractiveMultiproductMsg struct { MsgCommon Content InteractiveMultiproductContent `json:"content" validate:"required"` }
func (*WAInteractiveMultiproductMsg) Marshal ¶
func (t *WAInteractiveMultiproductMsg) Marshal() (*bytes.Buffer, error)
func (*WAInteractiveMultiproductMsg) Validate ¶
func (t *WAInteractiveMultiproductMsg) Validate() error
type WAInteractiveProductMsg ¶
type WAInteractiveProductMsg struct { MsgCommon Content InteractiveProductContent `json:"content" validate:"required"` }
func (*WAInteractiveProductMsg) Marshal ¶
func (t *WAInteractiveProductMsg) Marshal() (*bytes.Buffer, error)
func (*WAInteractiveProductMsg) Validate ¶
func (t *WAInteractiveProductMsg) Validate() error
type WALocationMsg ¶
type WALocationMsg struct { MsgCommon Content LocationContent `json:"content" validate:"required"` }
func (*WALocationMsg) Validate ¶
func (t *WALocationMsg) Validate() error
type WAStickerMsg ¶
type WAStickerMsg struct { MsgCommon Content StickerContent `json:"content" validate:"required"` }
func (*WAStickerMsg) Validate ¶
func (t *WAStickerMsg) Validate() error
type WATemplateMsgs ¶
type WATemplateMsgs struct { Messages []TemplateMsg `json:"messages" validate:"required,min=1,dive"` BulkID string `json:"bulkId,omitempty" validate:"lte=100"` }
func (*WATemplateMsgs) Validate ¶
func (t *WATemplateMsgs) Validate() error
type WATextMsg ¶
type WATextMsg struct { MsgCommon Content TextContent `json:"content" validate:"required"` }
type WAVideoMsg ¶
type WAVideoMsg struct { MsgCommon Content VideoContent `json:"content" validate:"required"` }
func (*WAVideoMsg) Validate ¶
func (t *WAVideoMsg) Validate() error
type WebRTCAndroid ¶
type WebRTCAndroid struct {
FcmServerKey string `json:"fcmServerKey" validate:"required"`
}
type WebRTCApplication ¶
type WebRTCApplication struct { ID string `json:"id"` Name string `json:"name" validate:"required"` Description string `json:"description"` IOS *WebRTCIOS `json:"ios,omitempty"` Android *WebRTCAndroid `json:"android,omitempty"` AppToApp bool `json:"appToApp"` AppToConversations bool `json:"appToConversations"` AppToPhone bool `json:"appToPhone"` }
func GenerateWebRTCApplication ¶
func GenerateWebRTCApplication() WebRTCApplication
func (*WebRTCApplication) Validate ¶
func (w *WebRTCApplication) Validate() error
type WebRTCTokenCapabilities ¶
type WebRTCTokenCapabilities struct {
Recording string `json:"recording" validate:"omitempty,oneof=ALWAYS ON_DEMAND DISABLED"`
}
Click to show internal directories.
Click to hide internal directories.