github.com/twilio/twilio-go@v1.20.1/rest/numbers/v1/model_numbers_v1_porting_portability.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Numbers 8 * This is the public Twilio REST API. 9 * 10 * NOTE: This class is auto generated by OpenAPI Generator. 11 * https://openapi-generator.tech 12 * Do not edit the class manually. 13 */ 14 15 package openapi 16 17 // NumbersV1PortingPortability struct for NumbersV1PortingPortability 18 type NumbersV1PortingPortability struct { 19 // The phone number which portability is to be checked. Phone numbers are in E.164 format (e.g. +16175551212). 20 PhoneNumber *string `json:"phone_number,omitempty"` 21 // The target account sid to which the number will be ported 22 AccountSid *string `json:"account_sid,omitempty"` 23 // Boolean flag specifying if phone number is portable or not. 24 Portable *bool `json:"portable,omitempty"` 25 // Boolean flag specifying if PIN and account number is required for the phone number. 26 PinAndAccountNumberRequired *bool `json:"pin_and_account_number_required,omitempty"` 27 // Reason why the phone number cannot be ported into Twilio, `null` otherwise. 28 NotPortableReason *string `json:"not_portable_reason,omitempty"` 29 // 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`. 30 NotPortableReasonCode *int `json:"not_portable_reason_code,omitempty"` 31 NumberType *string `json:"number_type,omitempty"` 32 // Country the phone number belongs to. 33 Country *string `json:"country,omitempty"` 34 // Current messaging carrier of the phone number 35 MessagingCarrier *string `json:"messaging_carrier,omitempty"` 36 // Current voice carrier of the phone number 37 VoiceCarrier *string `json:"voice_carrier,omitempty"` 38 // This is the url of the request that you're trying to reach out to locate the resource. 39 Url *string `json:"url,omitempty"` 40 }