github.com/twilio/twilio-go@v1.20.1/rest/messaging/v1/model_messaging_v1_service.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Messaging 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 import ( 18 "time" 19 ) 20 21 // MessagingV1Service struct for MessagingV1Service 22 type MessagingV1Service struct { 23 // The unique string that we created to identify the Service resource. 24 Sid *string `json:"sid,omitempty"` 25 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Service resource. 26 AccountSid *string `json:"account_sid,omitempty"` 27 // The string that you assigned to describe the resource. 28 FriendlyName *string `json:"friendly_name,omitempty"` 29 // The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 30 DateCreated *time.Time `json:"date_created,omitempty"` 31 // The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. 32 DateUpdated *time.Time `json:"date_updated,omitempty"` 33 // 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. 34 InboundRequestUrl *string `json:"inbound_request_url,omitempty"` 35 // The HTTP method we use to call `inbound_request_url`. Can be `GET` or `POST`. 36 InboundMethod *string `json:"inbound_method,omitempty"` 37 // 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. 38 FallbackUrl *string `json:"fallback_url,omitempty"` 39 // The HTTP method we use to call `fallback_url`. Can be: `GET` or `POST`. 40 FallbackMethod *string `json:"fallback_method,omitempty"` 41 // The URL we call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. 42 StatusCallback *string `json:"status_callback,omitempty"` 43 // Whether to enable [Sticky Sender](https://www.twilio.com/docs/messaging/services#sticky-sender) on the Service instance. 44 StickySender *bool `json:"sticky_sender,omitempty"` 45 // Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance. 46 MmsConverter *bool `json:"mms_converter,omitempty"` 47 // Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance. 48 SmartEncoding *bool `json:"smart_encoding,omitempty"` 49 ScanMessageContent *string `json:"scan_message_content,omitempty"` 50 // [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. 51 FallbackToLongCode *bool `json:"fallback_to_long_code,omitempty"` 52 // Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. 53 AreaCodeGeomatch *bool `json:"area_code_geomatch,omitempty"` 54 // Reserved. 55 SynchronousValidation *bool `json:"synchronous_validation,omitempty"` 56 // How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. 57 ValidityPeriod *int `json:"validity_period,omitempty"` 58 // The absolute URL of the Service resource. 59 Url *string `json:"url,omitempty"` 60 // The absolute URLs of related resources. 61 Links *map[string]interface{} `json:"links,omitempty"` 62 // A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. 63 Usecase *string `json:"usecase,omitempty"` 64 // Whether US A2P campaign is registered for this Service. 65 UsAppToPersonRegistered *bool `json:"us_app_to_person_registered,omitempty"` 66 // 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. 67 UseInboundWebhookOnNumber *bool `json:"use_inbound_webhook_on_number,omitempty"` 68 // A list of Sending Windows, which indicate defined time ranges in which a message can be sent, in the UTC time zone. Each window is defined by two strings, labeled \"start_time\" and \"end_time\". 69 SendingWindows *interface{} `json:"sending_windows,omitempty"` 70 }