github.com/twilio/twilio-go@v1.20.1/rest/verify/v2/model_verify_v2_verification.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 // VerifyV2Verification struct for VerifyV2Verification 22 type VerifyV2Verification struct { 23 // The unique string that we created to identify the Verification resource. 24 Sid *string `json:"sid,omitempty"` 25 // The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. 26 ServiceSid *string `json:"service_sid,omitempty"` 27 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Verification resource. 28 AccountSid *string `json:"account_sid,omitempty"` 29 // The phone number or [email](https://www.twilio.com/docs/verify/email) being verified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). 30 To *string `json:"to,omitempty"` 31 Channel *string `json:"channel,omitempty"` 32 // The status of the verification. One of: `pending`, `approved`, or `canceled` 33 Status *string `json:"status,omitempty"` 34 // Use \"status\" instead. Legacy property indicating whether the verification was successful. 35 Valid *bool `json:"valid,omitempty"` 36 // Information about the phone number being verified. 37 Lookup *interface{} `json:"lookup,omitempty"` 38 // The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. 39 Amount *string `json:"amount,omitempty"` 40 // The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. 41 Payee *string `json:"payee,omitempty"` 42 // An array of verification attempt objects containing the channel attempted and the channel-specific transaction SID. 43 SendCodeAttempts *[]interface{} `json:"send_code_attempts,omitempty"` 44 // The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 45 DateCreated *time.Time `json:"date_created,omitempty"` 46 // The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 47 DateUpdated *time.Time `json:"date_updated,omitempty"` 48 // The set of fields used for a silent network auth (`sna`) verification. Contains a single field with the URL to be invoked to verify the phone number. 49 Sna *interface{} `json:"sna,omitempty"` 50 // The absolute URL of the Verification resource. 51 Url *string `json:"url,omitempty"` 52 }