openapi

package
v0.0.0-...-e041b52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 6 Imported by: 0

README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.52.1
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://messaging.twilio.com

Class Method HTTP request Description
A2pBrandRegistrationsApi CreateBrandRegistrations Post /v1/a2p/BrandRegistrations
A2pBrandRegistrationsApi FetchBrandRegistrations Get /v1/a2p/BrandRegistrations/{Sid}
A2pBrandRegistrationsApi ListBrandRegistrations Get /v1/a2p/BrandRegistrations
A2pBrandRegistrationsApi UpdateBrandRegistrations Post /v1/a2p/BrandRegistrations/{Sid}
A2pBrandRegistrationsSmsOtpApi CreateBrandRegistrationOtp Post /v1/a2p/BrandRegistrations/{BrandRegistrationSid}/SmsOtp
A2pBrandRegistrationsVettingsApi CreateBrandVetting Post /v1/a2p/BrandRegistrations/{BrandSid}/Vettings
A2pBrandRegistrationsVettingsApi FetchBrandVetting Get /v1/a2p/BrandRegistrations/{BrandSid}/Vettings/{BrandVettingSid}
A2pBrandRegistrationsVettingsApi ListBrandVetting Get /v1/a2p/BrandRegistrations/{BrandSid}/Vettings
DeactivationsApi FetchDeactivation Get /v1/Deactivations
LinkShorteningDomainsCertificateApi DeleteDomainCertV4 Delete /v1/LinkShortening/Domains/{DomainSid}/Certificate
LinkShorteningDomainsCertificateApi FetchDomainCertV4 Get /v1/LinkShortening/Domains/{DomainSid}/Certificate
LinkShorteningDomainsCertificateApi UpdateDomainCertV4 Post /v1/LinkShortening/Domains/{DomainSid}/Certificate
LinkShorteningDomainsConfigApi FetchDomainConfig Get /v1/LinkShortening/Domains/{DomainSid}/Config
LinkShorteningDomainsConfigApi UpdateDomainConfig Post /v1/LinkShortening/Domains/{DomainSid}/Config
LinkShorteningDomainsMessagingServicesApi CreateLinkshorteningMessagingService Post /v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid}
LinkShorteningDomainsMessagingServicesApi DeleteLinkshorteningMessagingService Delete /v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid}
LinkShorteningMessagingServiceDomainConfigApi FetchDomainConfigMessagingService Get /v1/LinkShortening/MessagingService/{MessagingServiceSid}/DomainConfig
LinkShorteningMessagingServicesDomainApi FetchLinkshorteningMessagingServiceDomainAssociation Get /v1/LinkShortening/MessagingServices/{MessagingServiceSid}/Domain
ServicesApi CreateService Post /v1/Services
ServicesApi DeleteService Delete /v1/Services/{Sid}
ServicesApi FetchService Get /v1/Services/{Sid}
ServicesApi ListService Get /v1/Services
ServicesApi UpdateService Post /v1/Services/{Sid}
ServicesAlphaSendersApi CreateAlphaSender Post /v1/Services/{ServiceSid}/AlphaSenders
ServicesAlphaSendersApi DeleteAlphaSender Delete /v1/Services/{ServiceSid}/AlphaSenders/{Sid}
ServicesAlphaSendersApi FetchAlphaSender Get /v1/Services/{ServiceSid}/AlphaSenders/{Sid}
ServicesAlphaSendersApi ListAlphaSender Get /v1/Services/{ServiceSid}/AlphaSenders
ServicesChannelSendersApi FetchChannelSender Get /v1/Services/{MessagingServiceSid}/ChannelSenders/{Sid}
ServicesChannelSendersApi ListChannelSender Get /v1/Services/{MessagingServiceSid}/ChannelSenders
ServicesComplianceUsa2pApi CreateUsAppToPerson Post /v1/Services/{MessagingServiceSid}/Compliance/Usa2p
ServicesComplianceUsa2pApi DeleteUsAppToPerson Delete /v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}
ServicesComplianceUsa2pApi FetchUsAppToPerson Get /v1/Services/{MessagingServiceSid}/Compliance/Usa2p/{Sid}
ServicesComplianceUsa2pApi ListUsAppToPerson Get /v1/Services/{MessagingServiceSid}/Compliance/Usa2p
ServicesComplianceUsa2pUsecasesApi FetchUsAppToPersonUsecase Get /v1/Services/{MessagingServiceSid}/Compliance/Usa2p/Usecases
ServicesPhoneNumbersApi CreatePhoneNumber Post /v1/Services/{ServiceSid}/PhoneNumbers
ServicesPhoneNumbersApi DeletePhoneNumber Delete /v1/Services/{ServiceSid}/PhoneNumbers/{Sid}
ServicesPhoneNumbersApi FetchPhoneNumber Get /v1/Services/{ServiceSid}/PhoneNumbers/{Sid}
ServicesPhoneNumbersApi ListPhoneNumber Get /v1/Services/{ServiceSid}/PhoneNumbers
ServicesPreregisteredUsa2pApi CreateExternalCampaign Post /v1/Services/PreregisteredUsa2p
ServicesShortCodesApi CreateShortCode Post /v1/Services/{ServiceSid}/ShortCodes
ServicesShortCodesApi DeleteShortCode Delete /v1/Services/{ServiceSid}/ShortCodes/{Sid}
ServicesShortCodesApi FetchShortCode Get /v1/Services/{ServiceSid}/ShortCodes/{Sid}
ServicesShortCodesApi ListShortCode Get /v1/Services/{ServiceSid}/ShortCodes
ServicesUsecasesApi FetchUsecase Get /v1/Services/Usecases
TollfreeVerificationsApi CreateTollfreeVerification Post /v1/Tollfree/Verifications
TollfreeVerificationsApi DeleteTollfreeVerification Delete /v1/Tollfree/Verifications/{Sid}
TollfreeVerificationsApi FetchTollfreeVerification Get /v1/Tollfree/Verifications/{Sid}
TollfreeVerificationsApi ListTollfreeVerification Get /v1/Tollfree/Verifications
TollfreeVerificationsApi UpdateTollfreeVerification Post /v1/Tollfree/Verifications/{Sid}

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiService

type ApiService struct {
	// contains filtered or unexported fields
}

func NewApiService

func NewApiService(requestHandler *twilio.RequestHandler) *ApiService

func NewApiServiceWithClient

func NewApiServiceWithClient(client twilio.BaseClient) *ApiService

func (*ApiService) CreateAlphaSender

func (c *ApiService) CreateAlphaSender(ServiceSid string, params *CreateAlphaSenderParams) (*MessagingV1AlphaSender, error)

func (*ApiService) CreateBrandRegistrationOtp

func (c *ApiService) CreateBrandRegistrationOtp(BrandRegistrationSid string) (*MessagingV1BrandRegistrationOtp, error)

func (*ApiService) CreateBrandRegistrations

func (c *ApiService) CreateBrandRegistrations(params *CreateBrandRegistrationsParams) (*MessagingV1BrandRegistrations, error)

func (*ApiService) CreateBrandVetting

func (c *ApiService) CreateBrandVetting(BrandSid string, params *CreateBrandVettingParams) (*MessagingV1BrandVetting, error)

func (*ApiService) CreateExternalCampaign

func (c *ApiService) CreateExternalCampaign(params *CreateExternalCampaignParams) (*MessagingV1ExternalCampaign, error)

func (*ApiService) CreateLinkshorteningMessagingService

func (c *ApiService) CreateLinkshorteningMessagingService(DomainSid string, MessagingServiceSid string) (*MessagingV1LinkshorteningMessagingService, error)

func (*ApiService) CreatePhoneNumber

func (c *ApiService) CreatePhoneNumber(ServiceSid string, params *CreatePhoneNumberParams) (*MessagingV1PhoneNumber, error)

func (*ApiService) CreateService

func (c *ApiService) CreateService(params *CreateServiceParams) (*MessagingV1Service, error)

func (*ApiService) CreateShortCode

func (c *ApiService) CreateShortCode(ServiceSid string, params *CreateShortCodeParams) (*MessagingV1ShortCode, error)

func (*ApiService) CreateTollfreeVerification

func (c *ApiService) CreateTollfreeVerification(params *CreateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error)

func (*ApiService) CreateUsAppToPerson

func (c *ApiService) CreateUsAppToPerson(MessagingServiceSid string, params *CreateUsAppToPersonParams) (*MessagingV1UsAppToPerson, error)

func (*ApiService) DeleteAlphaSender

func (c *ApiService) DeleteAlphaSender(ServiceSid string, Sid string) error

func (*ApiService) DeleteDomainCertV4

func (c *ApiService) DeleteDomainCertV4(DomainSid string) error

func (*ApiService) DeleteLinkshorteningMessagingService

func (c *ApiService) DeleteLinkshorteningMessagingService(DomainSid string, MessagingServiceSid string) error

func (*ApiService) DeletePhoneNumber

func (c *ApiService) DeletePhoneNumber(ServiceSid string, Sid string) error

func (*ApiService) DeleteService

func (c *ApiService) DeleteService(Sid string) error

func (*ApiService) DeleteShortCode

func (c *ApiService) DeleteShortCode(ServiceSid string, Sid string) error

func (*ApiService) DeleteTollfreeVerification

func (c *ApiService) DeleteTollfreeVerification(Sid string) error

func (*ApiService) DeleteUsAppToPerson

func (c *ApiService) DeleteUsAppToPerson(MessagingServiceSid string, Sid string) error

func (*ApiService) FetchAlphaSender

func (c *ApiService) FetchAlphaSender(ServiceSid string, Sid string) (*MessagingV1AlphaSender, error)

func (*ApiService) FetchBrandRegistrations

func (c *ApiService) FetchBrandRegistrations(Sid string) (*MessagingV1BrandRegistrations, error)

func (*ApiService) FetchBrandVetting

func (c *ApiService) FetchBrandVetting(BrandSid string, BrandVettingSid string) (*MessagingV1BrandVetting, error)

func (*ApiService) FetchChannelSender

func (c *ApiService) FetchChannelSender(MessagingServiceSid string, Sid string) (*MessagingV1ChannelSender, error)

func (*ApiService) FetchDeactivation

func (c *ApiService) FetchDeactivation(params *FetchDeactivationParams) (*MessagingV1Deactivation, error)

Fetch a list of all United States numbers that have been deactivated on a specific date.

func (*ApiService) FetchDomainCertV4

func (c *ApiService) FetchDomainCertV4(DomainSid string) (*MessagingV1DomainCertV4, error)

func (*ApiService) FetchDomainConfig

func (c *ApiService) FetchDomainConfig(DomainSid string) (*MessagingV1DomainConfig, error)

func (*ApiService) FetchDomainConfigMessagingService

func (c *ApiService) FetchDomainConfigMessagingService(MessagingServiceSid string) (*MessagingV1DomainConfigMessagingService, error)

func (*ApiService) FetchLinkshorteningMessagingServiceDomainAssociation

func (c *ApiService) FetchLinkshorteningMessagingServiceDomainAssociation(MessagingServiceSid string) (*MessagingV1LinkshorteningMessagingServiceDomainAssociation, error)

func (*ApiService) FetchPhoneNumber

func (c *ApiService) FetchPhoneNumber(ServiceSid string, Sid string) (*MessagingV1PhoneNumber, error)

func (*ApiService) FetchService

func (c *ApiService) FetchService(Sid string) (*MessagingV1Service, error)

func (*ApiService) FetchShortCode

func (c *ApiService) FetchShortCode(ServiceSid string, Sid string) (*MessagingV1ShortCode, error)

func (*ApiService) FetchTollfreeVerification

func (c *ApiService) FetchTollfreeVerification(Sid string) (*MessagingV1TollfreeVerification, error)

func (*ApiService) FetchUsAppToPerson

func (c *ApiService) FetchUsAppToPerson(MessagingServiceSid string, Sid string) (*MessagingV1UsAppToPerson, error)

func (*ApiService) FetchUsAppToPersonUsecase

func (c *ApiService) FetchUsAppToPersonUsecase(MessagingServiceSid string, params *FetchUsAppToPersonUsecaseParams) (*MessagingV1UsAppToPersonUsecase, error)

func (*ApiService) FetchUsecase

func (c *ApiService) FetchUsecase() (*MessagingV1Usecase, error)

func (*ApiService) ListAlphaSender

func (c *ApiService) ListAlphaSender(ServiceSid string, params *ListAlphaSenderParams) ([]MessagingV1AlphaSender, error)

Lists AlphaSender records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListBrandRegistrations

func (c *ApiService) ListBrandRegistrations(params *ListBrandRegistrationsParams) ([]MessagingV1BrandRegistrations, error)

Lists BrandRegistrations records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListBrandVetting

func (c *ApiService) ListBrandVetting(BrandSid string, params *ListBrandVettingParams) ([]MessagingV1BrandVetting, error)

Lists BrandVetting records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListChannelSender

func (c *ApiService) ListChannelSender(MessagingServiceSid string, params *ListChannelSenderParams) ([]MessagingV1ChannelSender, error)

Lists ChannelSender records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListPhoneNumber

func (c *ApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) ([]MessagingV1PhoneNumber, error)

Lists PhoneNumber records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListService

func (c *ApiService) ListService(params *ListServiceParams) ([]MessagingV1Service, error)

Lists Service records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListShortCode

func (c *ApiService) ListShortCode(ServiceSid string, params *ListShortCodeParams) ([]MessagingV1ShortCode, error)

Lists ShortCode records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListTollfreeVerification

func (c *ApiService) ListTollfreeVerification(params *ListTollfreeVerificationParams) ([]MessagingV1TollfreeVerification, error)

Lists TollfreeVerification records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListUsAppToPerson

func (c *ApiService) ListUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams) ([]MessagingV1UsAppToPerson, error)

Lists UsAppToPerson records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) PageAlphaSender

func (c *ApiService) PageAlphaSender(ServiceSid string, params *ListAlphaSenderParams, pageToken, pageNumber string) (*ListAlphaSenderResponse, error)

Retrieve a single page of AlphaSender records from the API. Request is executed immediately.

func (*ApiService) PageBrandRegistrations

func (c *ApiService) PageBrandRegistrations(params *ListBrandRegistrationsParams, pageToken, pageNumber string) (*ListBrandRegistrationsResponse, error)

Retrieve a single page of BrandRegistrations records from the API. Request is executed immediately.

func (*ApiService) PageBrandVetting

func (c *ApiService) PageBrandVetting(BrandSid string, params *ListBrandVettingParams, pageToken, pageNumber string) (*ListBrandVettingResponse, error)

Retrieve a single page of BrandVetting records from the API. Request is executed immediately.

func (*ApiService) PageChannelSender

func (c *ApiService) PageChannelSender(MessagingServiceSid string, params *ListChannelSenderParams, pageToken, pageNumber string) (*ListChannelSenderResponse, error)

Retrieve a single page of ChannelSender records from the API. Request is executed immediately.

func (*ApiService) PagePhoneNumber

func (c *ApiService) PagePhoneNumber(ServiceSid string, params *ListPhoneNumberParams, pageToken, pageNumber string) (*ListPhoneNumberResponse, error)

Retrieve a single page of PhoneNumber records from the API. Request is executed immediately.

func (*ApiService) PageService

func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error)

Retrieve a single page of Service records from the API. Request is executed immediately.

func (*ApiService) PageShortCode

func (c *ApiService) PageShortCode(ServiceSid string, params *ListShortCodeParams, pageToken, pageNumber string) (*ListShortCodeResponse, error)

Retrieve a single page of ShortCode records from the API. Request is executed immediately.

func (*ApiService) PageTollfreeVerification

func (c *ApiService) PageTollfreeVerification(params *ListTollfreeVerificationParams, pageToken, pageNumber string) (*ListTollfreeVerificationResponse, error)

Retrieve a single page of TollfreeVerification records from the API. Request is executed immediately.

func (*ApiService) PageUsAppToPerson

func (c *ApiService) PageUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams, pageToken, pageNumber string) (*ListUsAppToPersonResponse, error)

Retrieve a single page of UsAppToPerson records from the API. Request is executed immediately.

func (*ApiService) StreamAlphaSender

func (c *ApiService) StreamAlphaSender(ServiceSid string, params *ListAlphaSenderParams) (chan MessagingV1AlphaSender, chan error)

Streams AlphaSender records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamBrandRegistrations

func (c *ApiService) StreamBrandRegistrations(params *ListBrandRegistrationsParams) (chan MessagingV1BrandRegistrations, chan error)

Streams BrandRegistrations records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamBrandVetting

func (c *ApiService) StreamBrandVetting(BrandSid string, params *ListBrandVettingParams) (chan MessagingV1BrandVetting, chan error)

Streams BrandVetting records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamChannelSender

func (c *ApiService) StreamChannelSender(MessagingServiceSid string, params *ListChannelSenderParams) (chan MessagingV1ChannelSender, chan error)

Streams ChannelSender records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamPhoneNumber

func (c *ApiService) StreamPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) (chan MessagingV1PhoneNumber, chan error)

Streams PhoneNumber records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamService

func (c *ApiService) StreamService(params *ListServiceParams) (chan MessagingV1Service, chan error)

Streams Service records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamShortCode

func (c *ApiService) StreamShortCode(ServiceSid string, params *ListShortCodeParams) (chan MessagingV1ShortCode, chan error)

Streams ShortCode records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamTollfreeVerification

func (c *ApiService) StreamTollfreeVerification(params *ListTollfreeVerificationParams) (chan MessagingV1TollfreeVerification, chan error)

Streams TollfreeVerification records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamUsAppToPerson

func (c *ApiService) StreamUsAppToPerson(MessagingServiceSid string, params *ListUsAppToPersonParams) (chan MessagingV1UsAppToPerson, chan error)

Streams UsAppToPerson records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) UpdateBrandRegistrations

func (c *ApiService) UpdateBrandRegistrations(Sid string) (*MessagingV1BrandRegistrations, error)

func (*ApiService) UpdateDomainCertV4

func (c *ApiService) UpdateDomainCertV4(DomainSid string, params *UpdateDomainCertV4Params) (*MessagingV1DomainCertV4, error)

func (*ApiService) UpdateDomainConfig

func (c *ApiService) UpdateDomainConfig(DomainSid string, params *UpdateDomainConfigParams) (*MessagingV1DomainConfig, error)

func (*ApiService) UpdateService

func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*MessagingV1Service, error)

func (*ApiService) UpdateTollfreeVerification

func (c *ApiService) UpdateTollfreeVerification(Sid string, params *UpdateTollfreeVerificationParams) (*MessagingV1TollfreeVerification, error)

type CreateAlphaSenderParams

type CreateAlphaSenderParams struct {
	// The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, hyphen `-`, plus `+`, underscore `_` and ampersand `&`. This value cannot contain only numbers.
	AlphaSender *string `json:"AlphaSender,omitempty"`
}

Optional parameters for the method 'CreateAlphaSender'

func (*CreateAlphaSenderParams) SetAlphaSender

func (params *CreateAlphaSenderParams) SetAlphaSender(AlphaSender string) *CreateAlphaSenderParams

type CreateBrandRegistrationsParams

type CreateBrandRegistrationsParams struct {
	// Customer Profile Bundle Sid.
	CustomerProfileBundleSid *string `json:"CustomerProfileBundleSid,omitempty"`
	// A2P Messaging Profile Bundle Sid.
	A2PProfileBundleSid *string `json:"A2PProfileBundleSid,omitempty"`
	// Type of brand being created. One of: \\\"STANDARD\\\", \\\"SOLE_PROPRIETOR\\\". SOLE_PROPRIETOR is for low volume, SOLE_PROPRIETOR use cases. STANDARD is for all other use cases.
	BrandType *string `json:"BrandType,omitempty"`
	// A boolean that specifies whether brand should be a mock or not. If true, brand will be registered as a mock brand. Defaults to false if no value is provided.
	Mock *bool `json:"Mock,omitempty"`
	// A flag to disable automatic secondary vetting for brands which it would otherwise be done.
	SkipAutomaticSecVet *bool `json:"SkipAutomaticSecVet,omitempty"`
}

Optional parameters for the method 'CreateBrandRegistrations'

func (*CreateBrandRegistrationsParams) SetA2PProfileBundleSid

func (params *CreateBrandRegistrationsParams) SetA2PProfileBundleSid(A2PProfileBundleSid string) *CreateBrandRegistrationsParams

func (*CreateBrandRegistrationsParams) SetBrandType

func (params *CreateBrandRegistrationsParams) SetBrandType(BrandType string) *CreateBrandRegistrationsParams

func (*CreateBrandRegistrationsParams) SetCustomerProfileBundleSid

func (params *CreateBrandRegistrationsParams) SetCustomerProfileBundleSid(CustomerProfileBundleSid string) *CreateBrandRegistrationsParams

func (*CreateBrandRegistrationsParams) SetMock

func (*CreateBrandRegistrationsParams) SetSkipAutomaticSecVet

func (params *CreateBrandRegistrationsParams) SetSkipAutomaticSecVet(SkipAutomaticSecVet bool) *CreateBrandRegistrationsParams

type CreateBrandVettingParams

type CreateBrandVettingParams struct {
	//
	VettingProvider *string `json:"VettingProvider,omitempty"`
	// The unique ID of the vetting
	VettingId *string `json:"VettingId,omitempty"`
}

Optional parameters for the method 'CreateBrandVetting'

func (*CreateBrandVettingParams) SetVettingId

func (params *CreateBrandVettingParams) SetVettingId(VettingId string) *CreateBrandVettingParams

func (*CreateBrandVettingParams) SetVettingProvider

func (params *CreateBrandVettingParams) SetVettingProvider(VettingProvider string) *CreateBrandVettingParams

type CreateExternalCampaignParams

type CreateExternalCampaignParams struct {
	// ID of the preregistered campaign.
	CampaignId *string `json:"CampaignId,omitempty"`
	// The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
	MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"`
}

Optional parameters for the method 'CreateExternalCampaign'

func (*CreateExternalCampaignParams) SetCampaignId

func (params *CreateExternalCampaignParams) SetCampaignId(CampaignId string) *CreateExternalCampaignParams

func (*CreateExternalCampaignParams) SetMessagingServiceSid

func (params *CreateExternalCampaignParams) SetMessagingServiceSid(MessagingServiceSid string) *CreateExternalCampaignParams

type CreatePhoneNumberParams

type CreatePhoneNumberParams struct {
	// The SID of the Phone Number being added to the Service.
	PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"`
}

Optional parameters for the method 'CreatePhoneNumber'

func (*CreatePhoneNumberParams) SetPhoneNumberSid

func (params *CreatePhoneNumberParams) SetPhoneNumberSid(PhoneNumberSid string) *CreatePhoneNumberParams

type CreateServiceParams

type CreateServiceParams struct {
	// A descriptive string that you create to describe the resource. It can be up to 64 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The URL we call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. All messages sent to the Twilio phone number or short code will not be logged and received on the Account. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `inbound_request_url` defined for the Messaging Service.
	InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"`
	// The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`.
	InboundMethod *string `json:"InboundMethod,omitempty"`
	// The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service.
	FallbackUrl *string `json:"FallbackUrl,omitempty"`
	// The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`.
	FallbackMethod *string `json:"FallbackMethod,omitempty"`
	// The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery.
	StatusCallback *string `json:"StatusCallback,omitempty"`
	// Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance.
	StickySender *bool `json:"StickySender,omitempty"`
	// Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
	MmsConverter *bool `json:"MmsConverter,omitempty"`
	// Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
	SmartEncoding *bool `json:"SmartEncoding,omitempty"`
	//
	ScanMessageContent *string `json:"ScanMessageContent,omitempty"`
	// [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
	FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"`
	// Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
	AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"`
	// How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
	ValidityPeriod *int `json:"ValidityPeriod,omitempty"`
	// Reserved.
	SynchronousValidation *bool `json:"SynchronousValidation,omitempty"`
	// A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`.
	Usecase *string `json:"Usecase,omitempty"`
	// A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service.
	UseInboundWebhookOnNumber *bool `json:"UseInboundWebhookOnNumber,omitempty"`
}

Optional parameters for the method 'CreateService'

func (*CreateServiceParams) SetAreaCodeGeomatch

func (params *CreateServiceParams) SetAreaCodeGeomatch(AreaCodeGeomatch bool) *CreateServiceParams

func (*CreateServiceParams) SetFallbackMethod

func (params *CreateServiceParams) SetFallbackMethod(FallbackMethod string) *CreateServiceParams

func (*CreateServiceParams) SetFallbackToLongCode

func (params *CreateServiceParams) SetFallbackToLongCode(FallbackToLongCode bool) *CreateServiceParams

func (*CreateServiceParams) SetFallbackUrl

func (params *CreateServiceParams) SetFallbackUrl(FallbackUrl string) *CreateServiceParams

func (*CreateServiceParams) SetFriendlyName

func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateServiceParams

func (*CreateServiceParams) SetInboundMethod

func (params *CreateServiceParams) SetInboundMethod(InboundMethod string) *CreateServiceParams

func (*CreateServiceParams) SetInboundRequestUrl

func (params *CreateServiceParams) SetInboundRequestUrl(InboundRequestUrl string) *CreateServiceParams

func (*CreateServiceParams) SetMmsConverter

func (params *CreateServiceParams) SetMmsConverter(MmsConverter bool) *CreateServiceParams

func (*CreateServiceParams) SetScanMessageContent

func (params *CreateServiceParams) SetScanMessageContent(ScanMessageContent string) *CreateServiceParams

func (*CreateServiceParams) SetSmartEncoding

func (params *CreateServiceParams) SetSmartEncoding(SmartEncoding bool) *CreateServiceParams

func (*CreateServiceParams) SetStatusCallback

func (params *CreateServiceParams) SetStatusCallback(StatusCallback string) *CreateServiceParams

func (*CreateServiceParams) SetStickySender

func (params *CreateServiceParams) SetStickySender(StickySender bool) *CreateServiceParams

func (*CreateServiceParams) SetSynchronousValidation

func (params *CreateServiceParams) SetSynchronousValidation(SynchronousValidation bool) *CreateServiceParams

func (*CreateServiceParams) SetUseInboundWebhookOnNumber

func (params *CreateServiceParams) SetUseInboundWebhookOnNumber(UseInboundWebhookOnNumber bool) *CreateServiceParams

func (*CreateServiceParams) SetUsecase

func (params *CreateServiceParams) SetUsecase(Usecase string) *CreateServiceParams

func (*CreateServiceParams) SetValidityPeriod

func (params *CreateServiceParams) SetValidityPeriod(ValidityPeriod int) *CreateServiceParams

type CreateShortCodeParams

type CreateShortCodeParams struct {
	// The SID of the ShortCode resource being added to the Service.
	ShortCodeSid *string `json:"ShortCodeSid,omitempty"`
}

Optional parameters for the method 'CreateShortCode'

func (*CreateShortCodeParams) SetShortCodeSid

func (params *CreateShortCodeParams) SetShortCodeSid(ShortCodeSid string) *CreateShortCodeParams

type CreateTollfreeVerificationParams

type CreateTollfreeVerificationParams struct {
	// The name of the business or organization using the Tollfree number.
	BusinessName *string `json:"BusinessName,omitempty"`
	// The website of the business or organization using the Tollfree number.
	BusinessWebsite *string `json:"BusinessWebsite,omitempty"`
	// The email address to receive the notification about the verification result. .
	NotificationEmail *string `json:"NotificationEmail,omitempty"`
	// The category of the use case for the Tollfree Number. List as many are applicable..
	UseCaseCategories *[]string `json:"UseCaseCategories,omitempty"`
	// Use this to further explain how messaging is used by the business or organization.
	UseCaseSummary *string `json:"UseCaseSummary,omitempty"`
	// An example of message content, i.e. a sample message.
	ProductionMessageSample *string `json:"ProductionMessageSample,omitempty"`
	// Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
	OptInImageUrls *[]string `json:"OptInImageUrls,omitempty"`
	//
	OptInType *string `json:"OptInType,omitempty"`
	// Estimate monthly volume of messages from the Tollfree Number.
	MessageVolume *string `json:"MessageVolume,omitempty"`
	// The SID of the Phone Number associated with the Tollfree Verification.
	TollfreePhoneNumberSid *string `json:"TollfreePhoneNumberSid,omitempty"`
	// Customer's Profile Bundle BundleSid.
	CustomerProfileSid *string `json:"CustomerProfileSid,omitempty"`
	// The address of the business or organization using the Tollfree number.
	BusinessStreetAddress *string `json:"BusinessStreetAddress,omitempty"`
	// The address of the business or organization using the Tollfree number.
	BusinessStreetAddress2 *string `json:"BusinessStreetAddress2,omitempty"`
	// The city of the business or organization using the Tollfree number.
	BusinessCity *string `json:"BusinessCity,omitempty"`
	// The state/province/region of the business or organization using the Tollfree number.
	BusinessStateProvinceRegion *string `json:"BusinessStateProvinceRegion,omitempty"`
	// The postal code of the business or organization using the Tollfree number.
	BusinessPostalCode *string `json:"BusinessPostalCode,omitempty"`
	// The country of the business or organization using the Tollfree number.
	BusinessCountry *string `json:"BusinessCountry,omitempty"`
	// Additional information to be provided for verification.
	AdditionalInformation *string `json:"AdditionalInformation,omitempty"`
	// The first name of the contact for the business or organization using the Tollfree number.
	BusinessContactFirstName *string `json:"BusinessContactFirstName,omitempty"`
	// The last name of the contact for the business or organization using the Tollfree number.
	BusinessContactLastName *string `json:"BusinessContactLastName,omitempty"`
	// The email address of the contact for the business or organization using the Tollfree number.
	BusinessContactEmail *string `json:"BusinessContactEmail,omitempty"`
	// The phone number of the contact for the business or organization using the Tollfree number.
	BusinessContactPhone *string `json:"BusinessContactPhone,omitempty"`
	// An optional external reference ID supplied by customer and echoed back on status retrieval.
	ExternalReferenceId *string `json:"ExternalReferenceId,omitempty"`
}

Optional parameters for the method 'CreateTollfreeVerification'

func (*CreateTollfreeVerificationParams) SetAdditionalInformation

func (params *CreateTollfreeVerificationParams) SetAdditionalInformation(AdditionalInformation string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessCity

func (params *CreateTollfreeVerificationParams) SetBusinessCity(BusinessCity string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessContactEmail

func (params *CreateTollfreeVerificationParams) SetBusinessContactEmail(BusinessContactEmail string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessContactFirstName

func (params *CreateTollfreeVerificationParams) SetBusinessContactFirstName(BusinessContactFirstName string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessContactLastName

func (params *CreateTollfreeVerificationParams) SetBusinessContactLastName(BusinessContactLastName string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessContactPhone

func (params *CreateTollfreeVerificationParams) SetBusinessContactPhone(BusinessContactPhone string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessCountry

func (params *CreateTollfreeVerificationParams) SetBusinessCountry(BusinessCountry string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessName

func (params *CreateTollfreeVerificationParams) SetBusinessName(BusinessName string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessPostalCode

func (params *CreateTollfreeVerificationParams) SetBusinessPostalCode(BusinessPostalCode string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessStateProvinceRegion

func (params *CreateTollfreeVerificationParams) SetBusinessStateProvinceRegion(BusinessStateProvinceRegion string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessStreetAddress

func (params *CreateTollfreeVerificationParams) SetBusinessStreetAddress(BusinessStreetAddress string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessStreetAddress2

func (params *CreateTollfreeVerificationParams) SetBusinessStreetAddress2(BusinessStreetAddress2 string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetBusinessWebsite

func (params *CreateTollfreeVerificationParams) SetBusinessWebsite(BusinessWebsite string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetCustomerProfileSid

func (params *CreateTollfreeVerificationParams) SetCustomerProfileSid(CustomerProfileSid string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetExternalReferenceId

func (params *CreateTollfreeVerificationParams) SetExternalReferenceId(ExternalReferenceId string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetMessageVolume

func (params *CreateTollfreeVerificationParams) SetMessageVolume(MessageVolume string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetNotificationEmail

func (params *CreateTollfreeVerificationParams) SetNotificationEmail(NotificationEmail string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetOptInImageUrls

func (params *CreateTollfreeVerificationParams) SetOptInImageUrls(OptInImageUrls []string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetOptInType

func (*CreateTollfreeVerificationParams) SetProductionMessageSample

func (params *CreateTollfreeVerificationParams) SetProductionMessageSample(ProductionMessageSample string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetTollfreePhoneNumberSid

func (params *CreateTollfreeVerificationParams) SetTollfreePhoneNumberSid(TollfreePhoneNumberSid string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetUseCaseCategories

func (params *CreateTollfreeVerificationParams) SetUseCaseCategories(UseCaseCategories []string) *CreateTollfreeVerificationParams

func (*CreateTollfreeVerificationParams) SetUseCaseSummary

func (params *CreateTollfreeVerificationParams) SetUseCaseSummary(UseCaseSummary string) *CreateTollfreeVerificationParams

type CreateUsAppToPersonParams

type CreateUsAppToPersonParams struct {
	// A2P Brand Registration SID
	BrandRegistrationSid *string `json:"BrandRegistrationSid,omitempty"`
	// A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters.
	Description *string `json:"Description,omitempty"`
	// Required for all Campaigns. Details around how a consumer opts-in to their campaign, therefore giving consent to receive their messages. If multiple opt-in methods can be used for the same campaign, they must all be listed. 40 character minimum. 2048 character maximum.
	MessageFlow *string `json:"MessageFlow,omitempty"`
	// An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars.
	MessageSamples *[]string `json:"MessageSamples,omitempty"`
	// A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING..]
	UsAppToPersonUsecase *string `json:"UsAppToPersonUsecase,omitempty"`
	// Indicates that this SMS campaign will send messages that contain links.
	HasEmbeddedLinks *bool `json:"HasEmbeddedLinks,omitempty"`
	// Indicates that this SMS campaign will send messages that contain phone numbers.
	HasEmbeddedPhone *bool `json:"HasEmbeddedPhone,omitempty"`
	// If end users can text in a keyword to start receiving messages from this campaign, the auto-reply messages sent to the end users must be provided. The opt-in response should include the Brand name, confirmation of opt-in enrollment to a recurring message campaign, how to get help, and clear description of how to opt-out. This field is required if end users can text in a keyword to start receiving messages from this campaign. 20 character minimum. 320 character maximum.
	OptInMessage *string `json:"OptInMessage,omitempty"`
	// Upon receiving the opt-out keywords from the end users, Twilio customers are expected to send back an auto-generated response, which must provide acknowledgment of the opt-out request and confirmation that no further messages will be sent. It is also recommended that these opt-out messages include the brand name. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum.
	OptOutMessage *string `json:"OptOutMessage,omitempty"`
	// When customers receive the help keywords from their end users, Twilio customers are expected to send back an auto-generated response; this may include the brand name and additional support contact information. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum.
	HelpMessage *string `json:"HelpMessage,omitempty"`
	// If end users can text in a keyword to start receiving messages from this campaign, those keywords must be provided. This field is required if end users can text in a keyword to start receiving messages from this campaign. Values must be alphanumeric. 255 character maximum.
	OptInKeywords *[]string `json:"OptInKeywords,omitempty"`
	// End users should be able to text in a keyword to stop receiving messages from this campaign. Those keywords must be provided. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum.
	OptOutKeywords *[]string `json:"OptOutKeywords,omitempty"`
	// End users should be able to text in a keyword to receive help. Those keywords must be provided as part of the campaign registration request. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum.
	HelpKeywords *[]string `json:"HelpKeywords,omitempty"`
}

Optional parameters for the method 'CreateUsAppToPerson'

func (*CreateUsAppToPersonParams) SetBrandRegistrationSid

func (params *CreateUsAppToPersonParams) SetBrandRegistrationSid(BrandRegistrationSid string) *CreateUsAppToPersonParams

func (*CreateUsAppToPersonParams) SetDescription

func (params *CreateUsAppToPersonParams) SetDescription(Description string) *CreateUsAppToPersonParams
func (params *CreateUsAppToPersonParams) SetHasEmbeddedLinks(HasEmbeddedLinks bool) *CreateUsAppToPersonParams

func (*CreateUsAppToPersonParams) SetHasEmbeddedPhone

func (params *CreateUsAppToPersonParams) SetHasEmbeddedPhone(HasEmbeddedPhone bool) *CreateUsAppToPersonParams

func (*CreateUsAppToPersonParams) SetHelpKeywords

func (params *CreateUsAppToPersonParams) SetHelpKeywords(HelpKeywords []string) *CreateUsAppToPersonParams

func (*CreateUsAppToPersonParams) SetHelpMessage

func (params *CreateUsAppToPersonParams) SetHelpMessage(HelpMessage string) *CreateUsAppToPersonParams

func (*CreateUsAppToPersonParams) SetMessageFlow

func (params *CreateUsAppToPersonParams) SetMessageFlow(MessageFlow string) *CreateUsAppToPersonParams

func (*CreateUsAppToPersonParams) SetMessageSamples

func (params *CreateUsAppToPersonParams) SetMessageSamples(MessageSamples []string) *CreateUsAppToPersonParams

func (*CreateUsAppToPersonParams) SetOptInKeywords

func (params *CreateUsAppToPersonParams) SetOptInKeywords(OptInKeywords []string) *CreateUsAppToPersonParams

func (*CreateUsAppToPersonParams) SetOptInMessage

func (params *CreateUsAppToPersonParams) SetOptInMessage(OptInMessage string) *CreateUsAppToPersonParams

func (*CreateUsAppToPersonParams) SetOptOutKeywords

func (params *CreateUsAppToPersonParams) SetOptOutKeywords(OptOutKeywords []string) *CreateUsAppToPersonParams

func (*CreateUsAppToPersonParams) SetOptOutMessage

func (params *CreateUsAppToPersonParams) SetOptOutMessage(OptOutMessage string) *CreateUsAppToPersonParams

func (*CreateUsAppToPersonParams) SetUsAppToPersonUsecase

func (params *CreateUsAppToPersonParams) SetUsAppToPersonUsecase(UsAppToPersonUsecase string) *CreateUsAppToPersonParams

type FetchDeactivationParams

type FetchDeactivationParams struct {
	// The request will return a list of all United States Phone Numbers that were deactivated on the day specified by this parameter. This date should be specified in YYYY-MM-DD format.
	Date *string `json:"Date,omitempty"`
}

Optional parameters for the method 'FetchDeactivation'

func (*FetchDeactivationParams) SetDate

type FetchUsAppToPersonUsecaseParams

type FetchUsAppToPersonUsecaseParams struct {
	// The unique string to identify the A2P brand.
	BrandRegistrationSid *string `json:"BrandRegistrationSid,omitempty"`
}

Optional parameters for the method 'FetchUsAppToPersonUsecase'

func (*FetchUsAppToPersonUsecaseParams) SetBrandRegistrationSid

func (params *FetchUsAppToPersonUsecaseParams) SetBrandRegistrationSid(BrandRegistrationSid string) *FetchUsAppToPersonUsecaseParams

type ListAlphaSenderParams

type ListAlphaSenderParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListAlphaSender'

func (*ListAlphaSenderParams) SetLimit

func (params *ListAlphaSenderParams) SetLimit(Limit int) *ListAlphaSenderParams

func (*ListAlphaSenderParams) SetPageSize

func (params *ListAlphaSenderParams) SetPageSize(PageSize int) *ListAlphaSenderParams

type ListAlphaSenderResponse

type ListAlphaSenderResponse struct {
	AlphaSenders []MessagingV1AlphaSender    `json:"alpha_senders,omitempty"`
	Meta         ListAlphaSenderResponseMeta `json:"meta,omitempty"`
}

ListAlphaSenderResponse struct for ListAlphaSenderResponse

type ListAlphaSenderResponseMeta

type ListAlphaSenderResponseMeta struct {
	FirstPageUrl    string  `json:"first_page_url,omitempty"`
	NextPageUrl     *string `json:"next_page_url,omitempty"`
	Page            int     `json:"page,omitempty"`
	PageSize        int     `json:"page_size,omitempty"`
	PreviousPageUrl *string `json:"previous_page_url,omitempty"`
	Url             string  `json:"url,omitempty"`
	Key             string  `json:"key,omitempty"`
}

ListAlphaSenderResponseMeta struct for ListAlphaSenderResponseMeta

type ListBrandRegistrationsParams

type ListBrandRegistrationsParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListBrandRegistrations'

func (*ListBrandRegistrationsParams) SetLimit

func (*ListBrandRegistrationsParams) SetPageSize

func (params *ListBrandRegistrationsParams) SetPageSize(PageSize int) *ListBrandRegistrationsParams

type ListBrandRegistrationsResponse

type ListBrandRegistrationsResponse struct {
	Data []MessagingV1BrandRegistrations `json:"data,omitempty"`
	Meta ListAlphaSenderResponseMeta     `json:"meta,omitempty"`
}

ListBrandRegistrationsResponse struct for ListBrandRegistrationsResponse

type ListBrandVettingParams

type ListBrandVettingParams struct {
	// The third-party provider of the vettings to read
	VettingProvider *string `json:"VettingProvider,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListBrandVetting'

func (*ListBrandVettingParams) SetLimit

func (params *ListBrandVettingParams) SetLimit(Limit int) *ListBrandVettingParams

func (*ListBrandVettingParams) SetPageSize

func (params *ListBrandVettingParams) SetPageSize(PageSize int) *ListBrandVettingParams

func (*ListBrandVettingParams) SetVettingProvider

func (params *ListBrandVettingParams) SetVettingProvider(VettingProvider string) *ListBrandVettingParams

type ListBrandVettingResponse

type ListBrandVettingResponse struct {
	Data []MessagingV1BrandVetting   `json:"data,omitempty"`
	Meta ListAlphaSenderResponseMeta `json:"meta,omitempty"`
}

ListBrandVettingResponse struct for ListBrandVettingResponse

type ListChannelSenderParams

type ListChannelSenderParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListChannelSender'

func (*ListChannelSenderParams) SetLimit

func (params *ListChannelSenderParams) SetLimit(Limit int) *ListChannelSenderParams

func (*ListChannelSenderParams) SetPageSize

func (params *ListChannelSenderParams) SetPageSize(PageSize int) *ListChannelSenderParams

type ListChannelSenderResponse

type ListChannelSenderResponse struct {
	Senders []MessagingV1ChannelSender  `json:"senders,omitempty"`
	Meta    ListAlphaSenderResponseMeta `json:"meta,omitempty"`
}

ListChannelSenderResponse struct for ListChannelSenderResponse

type ListPhoneNumberParams

type ListPhoneNumberParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListPhoneNumber'

func (*ListPhoneNumberParams) SetLimit

func (params *ListPhoneNumberParams) SetLimit(Limit int) *ListPhoneNumberParams

func (*ListPhoneNumberParams) SetPageSize

func (params *ListPhoneNumberParams) SetPageSize(PageSize int) *ListPhoneNumberParams

type ListPhoneNumberResponse

type ListPhoneNumberResponse struct {
	PhoneNumbers []MessagingV1PhoneNumber    `json:"phone_numbers,omitempty"`
	Meta         ListAlphaSenderResponseMeta `json:"meta,omitempty"`
}

ListPhoneNumberResponse struct for ListPhoneNumberResponse

type ListServiceParams

type ListServiceParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListService'

func (*ListServiceParams) SetLimit

func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams

func (*ListServiceParams) SetPageSize

func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams

type ListServiceResponse

type ListServiceResponse struct {
	Services []MessagingV1Service        `json:"services,omitempty"`
	Meta     ListAlphaSenderResponseMeta `json:"meta,omitempty"`
}

ListServiceResponse struct for ListServiceResponse

type ListShortCodeParams

type ListShortCodeParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListShortCode'

func (*ListShortCodeParams) SetLimit

func (params *ListShortCodeParams) SetLimit(Limit int) *ListShortCodeParams

func (*ListShortCodeParams) SetPageSize

func (params *ListShortCodeParams) SetPageSize(PageSize int) *ListShortCodeParams

type ListShortCodeResponse

type ListShortCodeResponse struct {
	ShortCodes []MessagingV1ShortCode      `json:"short_codes,omitempty"`
	Meta       ListAlphaSenderResponseMeta `json:"meta,omitempty"`
}

ListShortCodeResponse struct for ListShortCodeResponse

type ListTollfreeVerificationParams

type ListTollfreeVerificationParams struct {
	// The SID of the Phone Number associated with the Tollfree Verification.
	TollfreePhoneNumberSid *string `json:"TollfreePhoneNumberSid,omitempty"`
	// The compliance status of the Tollfree Verification record.
	Status *string `json:"Status,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListTollfreeVerification'

func (*ListTollfreeVerificationParams) SetLimit

func (*ListTollfreeVerificationParams) SetPageSize

func (params *ListTollfreeVerificationParams) SetPageSize(PageSize int) *ListTollfreeVerificationParams

func (*ListTollfreeVerificationParams) SetStatus

func (*ListTollfreeVerificationParams) SetTollfreePhoneNumberSid

func (params *ListTollfreeVerificationParams) SetTollfreePhoneNumberSid(TollfreePhoneNumberSid string) *ListTollfreeVerificationParams

type ListTollfreeVerificationResponse

type ListTollfreeVerificationResponse struct {
	Verifications []MessagingV1TollfreeVerification `json:"verifications,omitempty"`
	Meta          ListAlphaSenderResponseMeta       `json:"meta,omitempty"`
}

ListTollfreeVerificationResponse struct for ListTollfreeVerificationResponse

type ListUsAppToPersonParams

type ListUsAppToPersonParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListUsAppToPerson'

func (*ListUsAppToPersonParams) SetLimit

func (params *ListUsAppToPersonParams) SetLimit(Limit int) *ListUsAppToPersonParams

func (*ListUsAppToPersonParams) SetPageSize

func (params *ListUsAppToPersonParams) SetPageSize(PageSize int) *ListUsAppToPersonParams

type ListUsAppToPersonResponse

type ListUsAppToPersonResponse struct {
	Compliance []MessagingV1UsAppToPerson  `json:"compliance,omitempty"`
	Meta       ListAlphaSenderResponseMeta `json:"meta,omitempty"`
}

ListUsAppToPersonResponse struct for ListUsAppToPersonResponse

type MessagingV1AlphaSender

type MessagingV1AlphaSender struct {
	// The unique string that we created to identify the AlphaSender resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AlphaSender resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the resource is associated with.
	ServiceSid *string `json:"service_sid,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The Alphanumeric Sender ID string.
	AlphaSender *string `json:"alpha_sender,omitempty"`
	// An array of values that describe whether the number can receive calls or messages. Can be: `SMS`.
	Capabilities *[]string `json:"capabilities,omitempty"`
	// The absolute URL of the AlphaSender resource.
	Url *string `json:"url,omitempty"`
}

MessagingV1AlphaSender struct for MessagingV1AlphaSender

type MessagingV1BrandRegistrationOtp

type MessagingV1BrandRegistrationOtp struct {
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Brand Registration resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique string to identify Brand Registration of Sole Proprietor Brand
	BrandRegistrationSid *string `json:"brand_registration_sid,omitempty"`
}

MessagingV1BrandRegistrationOtp struct for MessagingV1BrandRegistrationOtp

type MessagingV1BrandRegistrations

type MessagingV1BrandRegistrations struct {
	// The unique string to identify Brand Registration.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Brand Registration resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// A2P Messaging Profile Bundle BundleSid.
	CustomerProfileBundleSid *string `json:"customer_profile_bundle_sid,omitempty"`
	// A2P Messaging Profile Bundle BundleSid.
	A2pProfileBundleSid *string `json:"a2p_profile_bundle_sid,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// Type of brand. One of: \"STANDARD\", \"SOLE_PROPRIETOR\". SOLE_PROPRIETOR is for the low volume, SOLE_PROPRIETOR campaign use case. There can only be one SOLE_PROPRIETOR campaign created per SOLE_PROPRIETOR brand. STANDARD is for all other campaign use cases. Multiple campaign use cases can be created per STANDARD brand.
	BrandType *string `json:"brand_type,omitempty"`
	Status    *string `json:"status,omitempty"`
	// Campaign Registry (TCR) Brand ID. Assigned only after successful brand registration.
	TcrId *string `json:"tcr_id,omitempty"`
	// A reason why brand registration has failed. Only applicable when status is FAILED.
	FailureReason *string `json:"failure_reason,omitempty"`
	// The absolute URL of the Brand Registration resource.
	Url *string `json:"url,omitempty"`
	// The secondary vetting score if it was done. Otherwise, it will be the brand score if it's returned from TCR. It may be null if no score is available.
	BrandScore *int `json:"brand_score,omitempty"`
	// Feedback on how to improve brand score
	BrandFeedback  *[]string `json:"brand_feedback,omitempty"`
	IdentityStatus *string   `json:"identity_status,omitempty"`
	// Publicly traded company identified in the Russell 3000 Index
	Russell3000 *bool `json:"russell_3000,omitempty"`
	// Identified as a government entity
	GovernmentEntity *bool `json:"government_entity,omitempty"`
	// Nonprofit organization tax-exempt status per section 501 of the U.S. tax code.
	TaxExemptStatus *string `json:"tax_exempt_status,omitempty"`
	// A flag to disable automatic secondary vetting for brands which it would otherwise be done.
	SkipAutomaticSecVet *bool `json:"skip_automatic_sec_vet,omitempty"`
	// A boolean that specifies whether brand should be a mock or not. If true, brand will be registered as a mock brand. Defaults to false if no value is provided.
	Mock  *bool                   `json:"mock,omitempty"`
	Links *map[string]interface{} `json:"links,omitempty"`
}

MessagingV1BrandRegistrations struct for MessagingV1BrandRegistrations

type MessagingV1BrandVetting

type MessagingV1BrandVetting struct {
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the vetting record.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique string to identify Brand Registration.
	BrandSid *string `json:"brand_sid,omitempty"`
	// The Twilio SID of the third-party vetting record.
	BrandVettingSid *string `json:"brand_vetting_sid,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The unique identifier of the vetting from the third-party provider.
	VettingId *string `json:"vetting_id,omitempty"`
	// The type of vetting that has been conducted. One of “STANDARD” (Aegis) or “POLITICAL” (Campaign Verify).
	VettingClass *string `json:"vetting_class,omitempty"`
	// The status of the import vetting attempt. One of “PENDING,” “SUCCESS,” or “FAILED”.
	VettingStatus   *string `json:"vetting_status,omitempty"`
	VettingProvider *string `json:"vetting_provider,omitempty"`
	// The absolute URL of the Brand Vetting resource.
	Url *string `json:"url,omitempty"`
}

MessagingV1BrandVetting struct for MessagingV1BrandVetting

type MessagingV1ChannelSender

type MessagingV1ChannelSender struct {
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ChannelSender resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Service](https://www.twilio.com/docs/messaging/services) the resource is associated with.
	MessagingServiceSid *string `json:"messaging_service_sid,omitempty"`
	// The unique string that we created to identify the ChannelSender resource.
	Sid *string `json:"sid,omitempty"`
	// The unique string that identifies the sender e.g whatsapp:+123456XXXX.
	Sender *string `json:"sender,omitempty"`
	// A string value that identifies the sender type e.g WhatsApp, Messenger.
	SenderType *string `json:"sender_type,omitempty"`
	// The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number.
	CountryCode *string `json:"country_code,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The absolute URL of the ChannelSender resource.
	Url *string `json:"url,omitempty"`
}

MessagingV1ChannelSender struct for MessagingV1ChannelSender

type MessagingV1Deactivation

type MessagingV1Deactivation struct {
	// Returns an authenticated url that redirects to a file containing the deactivated numbers for the requested day. This url is valid for up to two minutes.
	RedirectTo *string `json:"redirect_to,omitempty"`
}

MessagingV1Deactivation struct for MessagingV1Deactivation

type MessagingV1DomainCertV4

type MessagingV1DomainCertV4 struct {
	// The unique string that we created to identify the Domain resource.
	DomainSid *string `json:"domain_sid,omitempty"`
	// Date that this Domain was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// Date that the private certificate associated with this domain expires. You will need to update the certificate before that date to ensure your shortened links will continue to work.
	DateExpires *time.Time `json:"date_expires,omitempty"`
	// Date that this Domain was registered to the Twilio platform to create a new Domain object.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// Full url path for this domain.
	DomainName *string `json:"domain_name,omitempty"`
	// The unique string that we created to identify this Certificate resource.
	CertificateSid *string `json:"certificate_sid,omitempty"`
	Url            *string `json:"url,omitempty"`
	// Optional JSON field describing the status and upload date of a new certificate in the process of validation
	CertInValidation *interface{} `json:"cert_in_validation,omitempty"`
}

MessagingV1DomainCertV4 struct for MessagingV1DomainCertV4

type MessagingV1DomainConfig

type MessagingV1DomainConfig struct {
	// The unique string that we created to identify the Domain resource.
	DomainSid *string `json:"domain_sid,omitempty"`
	// The unique string that we created to identify the Domain config (prefix ZK).
	ConfigSid *string `json:"config_sid,omitempty"`
	// Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
	FallbackUrl *string `json:"fallback_url,omitempty"`
	// URL to receive click events to your webhook whenever the recipients click on the shortened links.
	CallbackUrl *string `json:"callback_url,omitempty"`
	// Boolean field to set customer delivery preference when there is a failure in linkShortening service
	ContinueOnFailure *bool `json:"continue_on_failure,omitempty"`
	// Date this Domain Config was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// Date that this Domain Config was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	Url         *string    `json:"url,omitempty"`
	// Customer's choice to send links with/without \"https://\" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified.
	DisableHttps *bool `json:"disable_https,omitempty"`
}

MessagingV1DomainConfig struct for MessagingV1DomainConfig

type MessagingV1DomainConfigMessagingService

type MessagingV1DomainConfigMessagingService struct {
	// The unique string that we created to identify the Domain resource.
	DomainSid *string `json:"domain_sid,omitempty"`
	// The unique string that we created to identify the Domain config (prefix ZK).
	ConfigSid *string `json:"config_sid,omitempty"`
	// The unique string that identifies the messaging service
	MessagingServiceSid *string `json:"messaging_service_sid,omitempty"`
	// Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
	FallbackUrl *string `json:"fallback_url,omitempty"`
	// URL to receive click events to your webhook whenever the recipients click on the shortened links.
	CallbackUrl *string `json:"callback_url,omitempty"`
	// Boolean field to set customer delivery preference when there is a failure in linkShortening service
	ContinueOnFailure *bool `json:"continue_on_failure,omitempty"`
	// Date this Domain Config was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// Date that this Domain Config was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	Url         *string    `json:"url,omitempty"`
}

MessagingV1DomainConfigMessagingService struct for MessagingV1DomainConfigMessagingService

type MessagingV1ExternalCampaign

type MessagingV1ExternalCampaign struct {
	// The unique string that identifies a US A2P Compliance resource `QE2c6890da8086d771620e9b13fadeba0b`.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the Campaign belongs to.
	AccountSid *string `json:"account_sid,omitempty"`
	// ID of the preregistered campaign.
	CampaignId *string `json:"campaign_id,omitempty"`
	// The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
	MessagingServiceSid *string `json:"messaging_service_sid,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
}

MessagingV1ExternalCampaign struct for MessagingV1ExternalCampaign

type MessagingV1LinkshorteningMessagingService

type MessagingV1LinkshorteningMessagingService struct {
	// The unique string identifies the domain resource
	DomainSid *string `json:"domain_sid,omitempty"`
	// The unique string that identifies the messaging service
	MessagingServiceSid *string `json:"messaging_service_sid,omitempty"`
	Url                 *string `json:"url,omitempty"`
}

MessagingV1LinkshorteningMessagingService struct for MessagingV1LinkshorteningMessagingService

type MessagingV1LinkshorteningMessagingServiceDomainAssociation

type MessagingV1LinkshorteningMessagingServiceDomainAssociation struct {
	// The unique string that we created to identify the Domain resource.
	DomainSid *string `json:"domain_sid,omitempty"`
	// The unique string that identifies the messaging service
	MessagingServiceSid *string `json:"messaging_service_sid,omitempty"`
	Url                 *string `json:"url,omitempty"`
}

MessagingV1LinkshorteningMessagingServiceDomainAssociation struct for MessagingV1LinkshorteningMessagingServiceDomainAssociation

type MessagingV1PhoneNumber

type MessagingV1PhoneNumber struct {
	// The unique string that we created to identify the PhoneNumber resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the PhoneNumber resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the resource is associated with.
	ServiceSid *string `json:"service_sid,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
	PhoneNumber *string `json:"phone_number,omitempty"`
	// The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number.
	CountryCode *string `json:"country_code,omitempty"`
	// An array of values that describe whether the number can receive calls or messages. Can be: `Voice`, `SMS`, and `MMS`.
	Capabilities *[]string `json:"capabilities,omitempty"`
	// The absolute URL of the PhoneNumber resource.
	Url *string `json:"url,omitempty"`
}

MessagingV1PhoneNumber struct for MessagingV1PhoneNumber

type MessagingV1Service

type MessagingV1Service struct {
	// The unique string that we created to identify the Service resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Service resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The URL we call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. All messages sent to the Twilio phone number or short code will not be logged and received on the Account. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `inbound_request_url` defined for the Messaging Service.
	InboundRequestUrl *string `json:"inbound_request_url,omitempty"`
	// The HTTP method we use to call `inbound_request_url`. Can be `GET` or `POST`.
	InboundMethod *string `json:"inbound_method,omitempty"`
	// The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service.
	FallbackUrl *string `json:"fallback_url,omitempty"`
	// The HTTP method we use to call `fallback_url`. Can be: `GET` or `POST`.
	FallbackMethod *string `json:"fallback_method,omitempty"`
	// The URL we call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery.
	StatusCallback *string `json:"status_callback,omitempty"`
	// Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance.
	StickySender *bool `json:"sticky_sender,omitempty"`
	// Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
	MmsConverter *bool `json:"mms_converter,omitempty"`
	// Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
	SmartEncoding      *bool   `json:"smart_encoding,omitempty"`
	ScanMessageContent *string `json:"scan_message_content,omitempty"`
	// [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
	FallbackToLongCode *bool `json:"fallback_to_long_code,omitempty"`
	// Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
	AreaCodeGeomatch *bool `json:"area_code_geomatch,omitempty"`
	// Reserved.
	SynchronousValidation *bool `json:"synchronous_validation,omitempty"`
	// How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
	ValidityPeriod *int `json:"validity_period,omitempty"`
	// The absolute URL of the Service resource.
	Url *string `json:"url,omitempty"`
	// The absolute URLs of related resources.
	Links *map[string]interface{} `json:"links,omitempty"`
	// A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`.
	Usecase *string `json:"usecase,omitempty"`
	// Whether US A2P campaign is registered for this Service.
	UsAppToPersonRegistered *bool `json:"us_app_to_person_registered,omitempty"`
	// A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service.
	UseInboundWebhookOnNumber *bool `json:"use_inbound_webhook_on_number,omitempty"`
}

MessagingV1Service struct for MessagingV1Service

type MessagingV1ShortCode

type MessagingV1ShortCode struct {
	// The unique string that we created to identify the ShortCode resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the resource is associated with.
	ServiceSid *string `json:"service_sid,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The [E.164](https://www.twilio.com/docs/glossary/what-e164) format of the short code.
	ShortCode *string `json:"short_code,omitempty"`
	// The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number.
	CountryCode *string `json:"country_code,omitempty"`
	// An array of values that describe whether the number can receive calls or messages. Can be: `SMS` and `MMS`.
	Capabilities *[]string `json:"capabilities,omitempty"`
	// The absolute URL of the ShortCode resource.
	Url *string `json:"url,omitempty"`
}

MessagingV1ShortCode struct for MessagingV1ShortCode

type MessagingV1TollfreeVerification

type MessagingV1TollfreeVerification struct {
	// The unique string to identify Tollfree Verification.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Tollfree Verification resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// Customer's Profile Bundle BundleSid.
	CustomerProfileSid *string `json:"customer_profile_sid,omitempty"`
	// Tollfree TrustProduct Bundle BundleSid.
	TrustProductSid *string `json:"trust_product_sid,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The SID of the Regulated Item.
	RegulatedItemSid *string `json:"regulated_item_sid,omitempty"`
	// The name of the business or organization using the Tollfree number.
	BusinessName *string `json:"business_name,omitempty"`
	// The address of the business or organization using the Tollfree number.
	BusinessStreetAddress *string `json:"business_street_address,omitempty"`
	// The address of the business or organization using the Tollfree number.
	BusinessStreetAddress2 *string `json:"business_street_address2,omitempty"`
	// The city of the business or organization using the Tollfree number.
	BusinessCity *string `json:"business_city,omitempty"`
	// The state/province/region of the business or organization using the Tollfree number.
	BusinessStateProvinceRegion *string `json:"business_state_province_region,omitempty"`
	// The postal code of the business or organization using the Tollfree number.
	BusinessPostalCode *string `json:"business_postal_code,omitempty"`
	// The country of the business or organization using the Tollfree number.
	BusinessCountry *string `json:"business_country,omitempty"`
	// The website of the business or organization using the Tollfree number.
	BusinessWebsite *string `json:"business_website,omitempty"`
	// The first name of the contact for the business or organization using the Tollfree number.
	BusinessContactFirstName *string `json:"business_contact_first_name,omitempty"`
	// The last name of the contact for the business or organization using the Tollfree number.
	BusinessContactLastName *string `json:"business_contact_last_name,omitempty"`
	// The email address of the contact for the business or organization using the Tollfree number.
	BusinessContactEmail *string `json:"business_contact_email,omitempty"`
	// The phone number of the contact for the business or organization using the Tollfree number.
	BusinessContactPhone *string `json:"business_contact_phone,omitempty"`
	// The email address to receive the notification about the verification result. .
	NotificationEmail *string `json:"notification_email,omitempty"`
	// The category of the use case for the Tollfree Number. List as many are applicable..
	UseCaseCategories *[]string `json:"use_case_categories,omitempty"`
	// Use this to further explain how messaging is used by the business or organization.
	UseCaseSummary *string `json:"use_case_summary,omitempty"`
	// An example of message content, i.e. a sample message.
	ProductionMessageSample *string `json:"production_message_sample,omitempty"`
	// Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
	OptInImageUrls *[]string `json:"opt_in_image_urls,omitempty"`
	OptInType      *string   `json:"opt_in_type,omitempty"`
	// Estimate monthly volume of messages from the Tollfree Number.
	MessageVolume *string `json:"message_volume,omitempty"`
	// Additional information to be provided for verification.
	AdditionalInformation *string `json:"additional_information,omitempty"`
	// The SID of the Phone Number associated with the Tollfree Verification.
	TollfreePhoneNumberSid *string `json:"tollfree_phone_number_sid,omitempty"`
	Status                 *string `json:"status,omitempty"`
	// The absolute URL of the Tollfree Verification resource.
	Url *string `json:"url,omitempty"`
	// The rejection reason given when a Tollfree Verification has been rejected.
	RejectionReason *string `json:"rejection_reason,omitempty"`
	// The error code given when a Tollfree Verification has been rejected.
	ErrorCode *int `json:"error_code,omitempty"`
	// The date and time when the ability to edit a rejected verification expires.
	EditExpiration *time.Time `json:"edit_expiration,omitempty"`
	// If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.
	EditAllowed *bool `json:"edit_allowed,omitempty"`
	// The URLs of the documents associated with the Tollfree Verification resource.
	ResourceLinks *interface{} `json:"resource_links,omitempty"`
	// An optional external reference ID supplied by customer and echoed back on status retrieval.
	ExternalReferenceId *string `json:"external_reference_id,omitempty"`
}

MessagingV1TollfreeVerification struct for MessagingV1TollfreeVerification

type MessagingV1UsAppToPerson

type MessagingV1UsAppToPerson struct {
	// The unique string that identifies a US A2P Compliance resource `QE2c6890da8086d771620e9b13fadeba0b`.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the Campaign belongs to.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique string to identify the A2P brand.
	BrandRegistrationSid *string `json:"brand_registration_sid,omitempty"`
	// The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
	MessagingServiceSid *string `json:"messaging_service_sid,omitempty"`
	// A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters.
	Description *string `json:"description,omitempty"`
	// An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars.
	MessageSamples *[]string `json:"message_samples,omitempty"`
	// A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING, SOLE_PROPRIETOR...]. SOLE_PROPRIETOR campaign use cases can only be created by SOLE_PROPRIETOR Brands, and there can only be one SOLE_PROPRIETOR campaign created per SOLE_PROPRIETOR Brand.
	UsAppToPersonUsecase *string `json:"us_app_to_person_usecase,omitempty"`
	// Indicate that this SMS campaign will send messages that contain links.
	HasEmbeddedLinks *bool `json:"has_embedded_links,omitempty"`
	// Indicates that this SMS campaign will send messages that contain phone numbers.
	HasEmbeddedPhone *bool `json:"has_embedded_phone,omitempty"`
	// Campaign status. Examples: IN_PROGRESS, VERIFIED, FAILED.
	CampaignStatus *string `json:"campaign_status,omitempty"`
	// The Campaign Registry (TCR) Campaign ID.
	CampaignId *string `json:"campaign_id,omitempty"`
	// Indicates whether the campaign was registered externally or not.
	IsExternallyRegistered *bool `json:"is_externally_registered,omitempty"`
	// Rate limit and/or classification set by each carrier, Ex. AT&T or T-Mobile.
	RateLimits *interface{} `json:"rate_limits,omitempty"`
	// Details around how a consumer opts-in to their campaign, therefore giving consent to receive their messages. If multiple opt-in methods can be used for the same campaign, they must all be listed. 40 character minimum. 2048 character maximum.
	MessageFlow *string `json:"message_flow,omitempty"`
	// If end users can text in a keyword to start receiving messages from this campaign, the auto-reply messages sent to the end users must be provided. The opt-in response should include the Brand name, confirmation of opt-in enrollment to a recurring message campaign, how to get help, and clear description of how to opt-out. This field is required if end users can text in a keyword to start receiving messages from this campaign. 20 character minimum. 320 character maximum.
	OptInMessage *string `json:"opt_in_message,omitempty"`
	// Upon receiving the opt-out keywords from the end users, Twilio customers are expected to send back an auto-generated response, which must provide acknowledgment of the opt-out request and confirmation that no further messages will be sent. It is also recommended that these opt-out messages include the brand name. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum.
	OptOutMessage *string `json:"opt_out_message,omitempty"`
	// When customers receive the help keywords from their end users, Twilio customers are expected to send back an auto-generated response; this may include the brand name and additional support contact information. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). 20 character minimum. 320 character maximum.
	HelpMessage *string `json:"help_message,omitempty"`
	// If end users can text in a keyword to start receiving messages from this campaign, those keywords must be provided. This field is required if end users can text in a keyword to start receiving messages from this campaign. Values must be alphanumeric. 255 character maximum.
	OptInKeywords *[]string `json:"opt_in_keywords,omitempty"`
	// End users should be able to text in a keyword to stop receiving messages from this campaign. Those keywords must be provided. This field is required if managing opt out keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum.
	OptOutKeywords *[]string `json:"opt_out_keywords,omitempty"`
	// End users should be able to text in a keyword to receive help. Those keywords must be provided as part of the campaign registration request. This field is required if managing help keywords yourself (i.e. not using Twilio's Default or Advanced Opt Out features). Values must be alphanumeric. 255 character maximum.
	HelpKeywords *[]string `json:"help_keywords,omitempty"`
	// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The absolute URL of the US App to Person resource.
	Url *string `json:"url,omitempty"`
	// A boolean that specifies whether campaign is a mock or not. Mock campaigns will be automatically created if using a mock brand. Mock campaigns should only be used for testing purposes.
	Mock *bool `json:"mock,omitempty"`
	// Details indicating why a campaign registration failed. These errors can indicate one or more fields that were incorrect or did not meet review requirements.
	Errors *[]interface{} `json:"errors,omitempty"`
}

MessagingV1UsAppToPerson struct for MessagingV1UsAppToPerson

type MessagingV1UsAppToPersonUsecase

type MessagingV1UsAppToPersonUsecase struct {
	// Human readable name, code, description and post_approval_required (indicates whether or not post approval is required for this Use Case) of A2P Campaign Use Cases.
	UsAppToPersonUsecases *[]interface{} `json:"us_app_to_person_usecases,omitempty"`
}

MessagingV1UsAppToPersonUsecase struct for MessagingV1UsAppToPersonUsecase

type MessagingV1Usecase

type MessagingV1Usecase struct {
	// Human readable use case details (usecase, description and purpose) of Messaging Service Use Cases.
	Usecases *[]interface{} `json:"usecases,omitempty"`
}

MessagingV1Usecase struct for MessagingV1Usecase

type UpdateDomainCertV4Params

type UpdateDomainCertV4Params struct {
	// Contains the full TLS certificate and private for this domain in PEM format: https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail. Twilio uses this information to process HTTPS traffic sent to your domain.
	TlsCert *string `json:"TlsCert,omitempty"`
}

Optional parameters for the method 'UpdateDomainCertV4'

func (*UpdateDomainCertV4Params) SetTlsCert

func (params *UpdateDomainCertV4Params) SetTlsCert(TlsCert string) *UpdateDomainCertV4Params

type UpdateDomainConfigParams

type UpdateDomainConfigParams struct {
	// Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
	FallbackUrl *string `json:"FallbackUrl,omitempty"`
	// URL to receive click events to your webhook whenever the recipients click on the shortened links
	CallbackUrl *string `json:"CallbackUrl,omitempty"`
	// Boolean field to set customer delivery preference when there is a failure in linkShortening service
	ContinueOnFailure *bool `json:"ContinueOnFailure,omitempty"`
	// Customer's choice to send links with/without \\\"https://\\\" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified.
	DisableHttps *bool `json:"DisableHttps,omitempty"`
}

Optional parameters for the method 'UpdateDomainConfig'

func (*UpdateDomainConfigParams) SetCallbackUrl

func (params *UpdateDomainConfigParams) SetCallbackUrl(CallbackUrl string) *UpdateDomainConfigParams

func (*UpdateDomainConfigParams) SetContinueOnFailure

func (params *UpdateDomainConfigParams) SetContinueOnFailure(ContinueOnFailure bool) *UpdateDomainConfigParams

func (*UpdateDomainConfigParams) SetDisableHttps

func (params *UpdateDomainConfigParams) SetDisableHttps(DisableHttps bool) *UpdateDomainConfigParams

func (*UpdateDomainConfigParams) SetFallbackUrl

func (params *UpdateDomainConfigParams) SetFallbackUrl(FallbackUrl string) *UpdateDomainConfigParams

type UpdateServiceParams

type UpdateServiceParams struct {
	// A descriptive string that you create to describe the resource. It can be up to 64 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The URL we call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. All messages sent to the Twilio phone number or short code will not be logged and received on the Account. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `inbound_request_url` defined for the Messaging Service.
	InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"`
	// The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`.
	InboundMethod *string `json:"InboundMethod,omitempty"`
	// The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service.
	FallbackUrl *string `json:"FallbackUrl,omitempty"`
	// The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`.
	FallbackMethod *string `json:"FallbackMethod,omitempty"`
	// The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery.
	StatusCallback *string `json:"StatusCallback,omitempty"`
	// Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance.
	StickySender *bool `json:"StickySender,omitempty"`
	// Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
	MmsConverter *bool `json:"MmsConverter,omitempty"`
	// Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
	SmartEncoding *bool `json:"SmartEncoding,omitempty"`
	//
	ScanMessageContent *string `json:"ScanMessageContent,omitempty"`
	// [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
	FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"`
	// Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
	AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"`
	// How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
	ValidityPeriod *int `json:"ValidityPeriod,omitempty"`
	// Reserved.
	SynchronousValidation *bool `json:"SynchronousValidation,omitempty"`
	// A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`.
	Usecase *string `json:"Usecase,omitempty"`
	// A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service.
	UseInboundWebhookOnNumber *bool `json:"UseInboundWebhookOnNumber,omitempty"`
}

Optional parameters for the method 'UpdateService'

func (*UpdateServiceParams) SetAreaCodeGeomatch

func (params *UpdateServiceParams) SetAreaCodeGeomatch(AreaCodeGeomatch bool) *UpdateServiceParams

func (*UpdateServiceParams) SetFallbackMethod

func (params *UpdateServiceParams) SetFallbackMethod(FallbackMethod string) *UpdateServiceParams

func (*UpdateServiceParams) SetFallbackToLongCode

func (params *UpdateServiceParams) SetFallbackToLongCode(FallbackToLongCode bool) *UpdateServiceParams

func (*UpdateServiceParams) SetFallbackUrl

func (params *UpdateServiceParams) SetFallbackUrl(FallbackUrl string) *UpdateServiceParams

func (*UpdateServiceParams) SetFriendlyName

func (params *UpdateServiceParams) SetFriendlyName(FriendlyName string) *UpdateServiceParams

func (*UpdateServiceParams) SetInboundMethod

func (params *UpdateServiceParams) SetInboundMethod(InboundMethod string) *UpdateServiceParams

func (*UpdateServiceParams) SetInboundRequestUrl

func (params *UpdateServiceParams) SetInboundRequestUrl(InboundRequestUrl string) *UpdateServiceParams

func (*UpdateServiceParams) SetMmsConverter

func (params *UpdateServiceParams) SetMmsConverter(MmsConverter bool) *UpdateServiceParams

func (*UpdateServiceParams) SetScanMessageContent

func (params *UpdateServiceParams) SetScanMessageContent(ScanMessageContent string) *UpdateServiceParams

func (*UpdateServiceParams) SetSmartEncoding

func (params *UpdateServiceParams) SetSmartEncoding(SmartEncoding bool) *UpdateServiceParams

func (*UpdateServiceParams) SetStatusCallback

func (params *UpdateServiceParams) SetStatusCallback(StatusCallback string) *UpdateServiceParams

func (*UpdateServiceParams) SetStickySender

func (params *UpdateServiceParams) SetStickySender(StickySender bool) *UpdateServiceParams

func (*UpdateServiceParams) SetSynchronousValidation

func (params *UpdateServiceParams) SetSynchronousValidation(SynchronousValidation bool) *UpdateServiceParams

func (*UpdateServiceParams) SetUseInboundWebhookOnNumber

func (params *UpdateServiceParams) SetUseInboundWebhookOnNumber(UseInboundWebhookOnNumber bool) *UpdateServiceParams

func (*UpdateServiceParams) SetUsecase

func (params *UpdateServiceParams) SetUsecase(Usecase string) *UpdateServiceParams

func (*UpdateServiceParams) SetValidityPeriod

func (params *UpdateServiceParams) SetValidityPeriod(ValidityPeriod int) *UpdateServiceParams

type UpdateTollfreeVerificationParams

type UpdateTollfreeVerificationParams struct {
	// The name of the business or organization using the Tollfree number.
	BusinessName *string `json:"BusinessName,omitempty"`
	// The website of the business or organization using the Tollfree number.
	BusinessWebsite *string `json:"BusinessWebsite,omitempty"`
	// The email address to receive the notification about the verification result. .
	NotificationEmail *string `json:"NotificationEmail,omitempty"`
	// The category of the use case for the Tollfree Number. List as many are applicable..
	UseCaseCategories *[]string `json:"UseCaseCategories,omitempty"`
	// Use this to further explain how messaging is used by the business or organization.
	UseCaseSummary *string `json:"UseCaseSummary,omitempty"`
	// An example of message content, i.e. a sample message.
	ProductionMessageSample *string `json:"ProductionMessageSample,omitempty"`
	// Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
	OptInImageUrls *[]string `json:"OptInImageUrls,omitempty"`
	//
	OptInType *string `json:"OptInType,omitempty"`
	// Estimate monthly volume of messages from the Tollfree Number.
	MessageVolume *string `json:"MessageVolume,omitempty"`
	// The address of the business or organization using the Tollfree number.
	BusinessStreetAddress *string `json:"BusinessStreetAddress,omitempty"`
	// The address of the business or organization using the Tollfree number.
	BusinessStreetAddress2 *string `json:"BusinessStreetAddress2,omitempty"`
	// The city of the business or organization using the Tollfree number.
	BusinessCity *string `json:"BusinessCity,omitempty"`
	// The state/province/region of the business or organization using the Tollfree number.
	BusinessStateProvinceRegion *string `json:"BusinessStateProvinceRegion,omitempty"`
	// The postal code of the business or organization using the Tollfree number.
	BusinessPostalCode *string `json:"BusinessPostalCode,omitempty"`
	// The country of the business or organization using the Tollfree number.
	BusinessCountry *string `json:"BusinessCountry,omitempty"`
	// Additional information to be provided for verification.
	AdditionalInformation *string `json:"AdditionalInformation,omitempty"`
	// The first name of the contact for the business or organization using the Tollfree number.
	BusinessContactFirstName *string `json:"BusinessContactFirstName,omitempty"`
	// The last name of the contact for the business or organization using the Tollfree number.
	BusinessContactLastName *string `json:"BusinessContactLastName,omitempty"`
	// The email address of the contact for the business or organization using the Tollfree number.
	BusinessContactEmail *string `json:"BusinessContactEmail,omitempty"`
	// The phone number of the contact for the business or organization using the Tollfree number.
	BusinessContactPhone *string `json:"BusinessContactPhone,omitempty"`
	// Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
	EditReason *string `json:"EditReason,omitempty"`
}

Optional parameters for the method 'UpdateTollfreeVerification'

func (*UpdateTollfreeVerificationParams) SetAdditionalInformation

func (params *UpdateTollfreeVerificationParams) SetAdditionalInformation(AdditionalInformation string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessCity

func (params *UpdateTollfreeVerificationParams) SetBusinessCity(BusinessCity string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessContactEmail

func (params *UpdateTollfreeVerificationParams) SetBusinessContactEmail(BusinessContactEmail string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessContactFirstName

func (params *UpdateTollfreeVerificationParams) SetBusinessContactFirstName(BusinessContactFirstName string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessContactLastName

func (params *UpdateTollfreeVerificationParams) SetBusinessContactLastName(BusinessContactLastName string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessContactPhone

func (params *UpdateTollfreeVerificationParams) SetBusinessContactPhone(BusinessContactPhone string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessCountry

func (params *UpdateTollfreeVerificationParams) SetBusinessCountry(BusinessCountry string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessName

func (params *UpdateTollfreeVerificationParams) SetBusinessName(BusinessName string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessPostalCode

func (params *UpdateTollfreeVerificationParams) SetBusinessPostalCode(BusinessPostalCode string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessStateProvinceRegion

func (params *UpdateTollfreeVerificationParams) SetBusinessStateProvinceRegion(BusinessStateProvinceRegion string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessStreetAddress

func (params *UpdateTollfreeVerificationParams) SetBusinessStreetAddress(BusinessStreetAddress string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessStreetAddress2

func (params *UpdateTollfreeVerificationParams) SetBusinessStreetAddress2(BusinessStreetAddress2 string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetBusinessWebsite

func (params *UpdateTollfreeVerificationParams) SetBusinessWebsite(BusinessWebsite string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetEditReason

func (*UpdateTollfreeVerificationParams) SetMessageVolume

func (params *UpdateTollfreeVerificationParams) SetMessageVolume(MessageVolume string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetNotificationEmail

func (params *UpdateTollfreeVerificationParams) SetNotificationEmail(NotificationEmail string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetOptInImageUrls

func (params *UpdateTollfreeVerificationParams) SetOptInImageUrls(OptInImageUrls []string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetOptInType

func (*UpdateTollfreeVerificationParams) SetProductionMessageSample

func (params *UpdateTollfreeVerificationParams) SetProductionMessageSample(ProductionMessageSample string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetUseCaseCategories

func (params *UpdateTollfreeVerificationParams) SetUseCaseCategories(UseCaseCategories []string) *UpdateTollfreeVerificationParams

func (*UpdateTollfreeVerificationParams) SetUseCaseSummary

func (params *UpdateTollfreeVerificationParams) SetUseCaseSummary(UseCaseSummary string) *UpdateTollfreeVerificationParams

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL