Documentation ¶
Index ¶
- type ApiService
- func (c *ApiService) CreatePortingBulkPortability(params *CreatePortingBulkPortabilityParams) (*NumbersV1PortingBulkPortability, error)
- func (c *ApiService) FetchBulkEligibility(RequestId string) (*NumbersV1BulkEligibility, error)
- func (c *ApiService) FetchPortingBulkPortability(Sid string) (*NumbersV1PortingBulkPortability, error)
- func (c *ApiService) FetchPortingPortInFetch(PortInRequestSid string) (*NumbersV1PortingPortInFetch, error)
- func (c *ApiService) FetchPortingPortability(PhoneNumber string, params *FetchPortingPortabilityParams) (*NumbersV1PortingPortability, error)
- type CreatePortingBulkPortabilityParams
- type FetchPortingPortabilityParams
- type NumbersV1BulkEligibility
- type NumbersV1Eligibility
- type NumbersV1PortingBulkPortability
- type NumbersV1PortingPortIn
- type NumbersV1PortingPortInFetch
- type NumbersV1PortingPortability
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) CreatePortingBulkPortability ¶ added in v1.9.0
func (c *ApiService) CreatePortingBulkPortability(params *CreatePortingBulkPortabilityParams) (*NumbersV1PortingBulkPortability, error)
Allows to check if a list of phone numbers can be ported to Twilio or not. This is done asynchronous for each phone number.
func (*ApiService) FetchBulkEligibility ¶ added in v1.7.1
func (c *ApiService) FetchBulkEligibility(RequestId string) (*NumbersV1BulkEligibility, error)
Fetch an eligibility bulk check that you requested to host in Twilio.
func (*ApiService) FetchPortingBulkPortability ¶ added in v1.9.0
func (c *ApiService) FetchPortingBulkPortability(Sid string) (*NumbersV1PortingBulkPortability, error)
Fetch a previous portability check. This should return the current status of the validation and the result for all the numbers provided, given that they have been validated (as this process is performed asynchronously).
func (*ApiService) FetchPortingPortInFetch ¶ added in v1.16.0
func (c *ApiService) FetchPortingPortInFetch(PortInRequestSid string) (*NumbersV1PortingPortInFetch, error)
Fetch a port in request by SID
func (*ApiService) FetchPortingPortability ¶ added in v1.9.0
func (c *ApiService) FetchPortingPortability(PhoneNumber string, params *FetchPortingPortabilityParams) (*NumbersV1PortingPortability, error)
Allows to check if a single phone number can be ported to Twilio or not.
type CreatePortingBulkPortabilityParams ¶ added in v1.9.0
type CreatePortingBulkPortabilityParams struct { // The phone numbers which portability is to be checked. This should be a list of strings. Phone numbers are in E.164 format (e.g. +16175551212). . PhoneNumbers *[]string `json:"PhoneNumbers,omitempty"` }
Optional parameters for the method 'CreatePortingBulkPortability'
func (*CreatePortingBulkPortabilityParams) SetPhoneNumbers ¶ added in v1.9.0
func (params *CreatePortingBulkPortabilityParams) SetPhoneNumbers(PhoneNumbers []string) *CreatePortingBulkPortabilityParams
type FetchPortingPortabilityParams ¶ added in v1.11.0
type FetchPortingPortabilityParams struct { // The SID of the account where the phone number(s) will be ported. TargetAccountSid *string `json:"TargetAccountSid,omitempty"` }
Optional parameters for the method 'FetchPortingPortability'
func (*FetchPortingPortabilityParams) SetTargetAccountSid ¶ added in v1.11.0
func (params *FetchPortingPortabilityParams) SetTargetAccountSid(TargetAccountSid string) *FetchPortingPortabilityParams
type NumbersV1BulkEligibility ¶ added in v1.7.1
type NumbersV1BulkEligibility struct { // The SID of the bulk eligibility check that you want to know about. RequestId *string `json:"request_id,omitempty"` // This is the url of the request that you're trying to reach out to locate the resource. Url *string `json:"url,omitempty"` // The result set that contains the eligibility check response for each requested number, each result has at least the following attributes: phone_number: The requested phone number ,hosting_account_sid: The account sid where the phone number will be hosted, country: Phone number’s country, eligibility_status: Indicates the eligibility status of the PN (Eligible/Ineligible), eligibility_sub_status: Indicates the sub status of the eligibility , ineligibility_reason: Reason for number's ineligibility (if applicable), next_step: Suggested next step in the hosting process based on the eligibility status. Results *[]interface{} `json:"results,omitempty"` // This is the string that you assigned as a friendly name for describing the eligibility check request. FriendlyName *string `json:"friendly_name,omitempty"` // This is the status of the bulk eligibility check request. (Example: COMPLETE, IN_PROGRESS) Status *string `json:"status,omitempty"` DateCreated *time.Time `json:"date_created,omitempty"` DateCompleted *time.Time `json:"date_completed,omitempty"` }
NumbersV1BulkEligibility struct for NumbersV1BulkEligibility
type NumbersV1Eligibility ¶
type NumbersV1Eligibility struct {
// The result set that contains the eligibility check response for the requested number, each result has at least the following attributes: phone_number: The requested phone number ,hosting_account_sid: The account sid where the phone number will be hosted, date_last_checked: Datetime (ISO 8601) when the PN was last checked for eligibility, country: Phone number’s country, eligibility_status: Indicates the eligibility status of the PN (Eligible/Ineligible), eligibility_sub_status: Indicates the sub status of the eligibility , ineligibility_reason: Reason for number's ineligibility (if applicable), next_step: Suggested next step in the hosting process based on the eligibility status.
Results *[]interface{} `json:"results,omitempty"`
}
NumbersV1Eligibility struct for NumbersV1Eligibility
type NumbersV1PortingBulkPortability ¶ added in v1.9.0
type NumbersV1PortingBulkPortability struct { // A 34 character string that uniquely identifies this Portability check. Sid *string `json:"sid,omitempty"` Status *string `json:"status,omitempty"` // The date that the Portability check was created, given in ISO 8601 format. DatetimeCreated *time.Time `json:"datetime_created,omitempty"` // Contains a list with all the information of the requested phone numbers. Each phone number contains the following properties: `phone_number`: The phone number which portability is to be checked. `portable`: Boolean flag specifying if phone number is portable or not. `not_portable_reason`: Reason why the phone number cannot be ported into Twilio, `null` otherwise. `not_portable_reason_code`: The Portability Reason Code for the phone number if it cannot be ported in Twilio, `null` otherwise. `pin_and_account_number_required`: Boolean flag specifying if PIN and account number is required for the phone number. `number_type`: The type of the requested phone number. `country` Country the phone number belongs to. `messaging_carrier` Current messaging carrier of the phone number. `voice_carrier` Current voice carrier of the phone number. PhoneNumbers *[]interface{} `json:"phone_numbers,omitempty"` // This is the url of the request that you're trying to reach out to locate the resource. Url *string `json:"url,omitempty"` }
NumbersV1PortingBulkPortability struct for NumbersV1PortingBulkPortability
type NumbersV1PortingPortIn ¶ added in v1.13.0
type NumbersV1PortingPortIn struct { // The SID of the Port In request. This is a unique identifier of the port in request. PortInRequestSid *string `json:"port_in_request_sid,omitempty"` Url *string `json:"url,omitempty"` }
NumbersV1PortingPortIn struct for NumbersV1PortingPortIn
type NumbersV1PortingPortInFetch ¶ added in v1.16.0
type NumbersV1PortingPortInFetch struct { // The SID of the Port In request. This is a unique identifier of the port in request. PortInRequestSid *string `json:"port_in_request_sid,omitempty"` // The URL of this Port In request Url *string `json:"url,omitempty"` // The Account SID that the numbers will be added to after they are ported into Twilio. AccountSid *string `json:"account_sid,omitempty"` // List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails. NotificationEmails *[]string `json:"notification_emails,omitempty"` // Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation. TargetPortInDate *string `json:"target_port_in_date,omitempty"` // Minimum hour in the future needs to be established with the Ops team for validation. TargetPortInTimeRangeStart *string `json:"target_port_in_time_range_start,omitempty"` // Maximum hour in the future needs to be established with the Ops team for validation. TargetPortInTimeRangeEnd *string `json:"target_port_in_time_range_end,omitempty"` // The information for the losing carrier. LosingCarrierInformation *interface{} `json:"losing_carrier_information,omitempty"` // The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212). PhoneNumbers *[]interface{} `json:"phone_numbers,omitempty"` // The list of documents SID referencing a utility bills Documents *[]string `json:"documents,omitempty"` }
NumbersV1PortingPortInFetch struct for NumbersV1PortingPortInFetch
type NumbersV1PortingPortability ¶ added in v1.9.0
type NumbersV1PortingPortability struct { // The phone number which portability is to be checked. Phone numbers are in E.164 format (e.g. +16175551212). PhoneNumber *string `json:"phone_number,omitempty"` // The target account sid to which the number will be ported AccountSid *string `json:"account_sid,omitempty"` // Boolean flag specifying if phone number is portable or not. Portable *bool `json:"portable,omitempty"` // Boolean flag specifying if PIN and account number is required for the phone number. PinAndAccountNumberRequired *bool `json:"pin_and_account_number_required,omitempty"` // Reason why the phone number cannot be ported into Twilio, `null` otherwise. NotPortableReason *string `json:"not_portable_reason,omitempty"` // The Portability Reason Code for the phone number if it cannot be ported into Twilio, `null` otherwise. One of `22131`, `22132`, `22130`, `22133`, `22102` or `22135`. NotPortableReasonCode *int `json:"not_portable_reason_code,omitempty"` NumberType *string `json:"number_type,omitempty"` // Country the phone number belongs to. Country *string `json:"country,omitempty"` // Current messaging carrier of the phone number MessagingCarrier *string `json:"messaging_carrier,omitempty"` // Current voice carrier of the phone number VoiceCarrier *string `json:"voice_carrier,omitempty"` // This is the url of the request that you're trying to reach out to locate the resource. Url *string `json:"url,omitempty"` }
NumbersV1PortingPortability struct for NumbersV1PortingPortability
Source Files ¶
- api_service.go
- hosted_number_eligibility_bulk.go
- model_numbers_v1_bulk_eligibility.go
- model_numbers_v1_eligibility.go
- model_numbers_v1_porting_bulk_portability.go
- model_numbers_v1_porting_port_in.go
- model_numbers_v1_porting_port_in_fetch.go
- model_numbers_v1_porting_portability.go
- porting_port_in.go
- porting_portability.go
- porting_portability_phone_number.go