github.com/twilio/twilio-go@v1.20.1/rest/verify/v2/model_verify_v2_service.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Verify
     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  // VerifyV2Service struct for VerifyV2Service
    22  type VerifyV2Service 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 verification service. It can be up to 32 characters long. **This value should not contain PII.**
    28  	FriendlyName *string `json:"friendly_name,omitempty"`
    29  	// The length of the verification code to generate.
    30  	CodeLength *int `json:"code_length,omitempty"`
    31  	// Whether to perform a lookup with each verification started and return info about the phone number.
    32  	LookupEnabled *bool `json:"lookup_enabled,omitempty"`
    33  	// Whether to pass PSD2 transaction parameters when starting a verification.
    34  	Psd2Enabled *bool `json:"psd2_enabled,omitempty"`
    35  	// Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`.
    36  	SkipSmsToLandlines *bool `json:"skip_sms_to_landlines,omitempty"`
    37  	// Whether to ask the user to press a number before delivering the verify code in a phone call.
    38  	DtmfInputRequired *bool `json:"dtmf_input_required,omitempty"`
    39  	// The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.
    40  	TtsName *string `json:"tts_name,omitempty"`
    41  	// Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code`
    42  	DoNotShareWarningEnabled *bool `json:"do_not_share_warning_enabled,omitempty"`
    43  	// Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers.
    44  	CustomCodeEnabled *bool `json:"custom_code_enabled,omitempty"`
    45  	// Configurations for the Push factors (channel) created under this Service.
    46  	Push *interface{} `json:"push,omitempty"`
    47  	// Configurations for the TOTP factors (channel) created under this Service.
    48  	Totp               *interface{} `json:"totp,omitempty"`
    49  	DefaultTemplateSid *string      `json:"default_template_sid,omitempty"`
    50  	Whatsapp           *interface{} `json:"whatsapp,omitempty"`
    51  	// Whether to allow verifications from the service to reach the stream-events sinks if configured
    52  	VerifyEventSubscriptionEnabled *bool `json:"verify_event_subscription_enabled,omitempty"`
    53  	// The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    54  	DateCreated *time.Time `json:"date_created,omitempty"`
    55  	// The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    56  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    57  	// The absolute URL of the resource.
    58  	Url *string `json:"url,omitempty"`
    59  	// The URLs of related resources.
    60  	Links *map[string]interface{} `json:"links,omitempty"`
    61  }