github.com/twilio/twilio-go@v1.20.1/rest/verify/v2/model_verify_v2_challenge.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  // VerifyV2Challenge struct for VerifyV2Challenge
    22  type VerifyV2Challenge struct {
    23  	// A 34 character string that uniquely identifies this Challenge.
    24  	Sid *string `json:"sid,omitempty"`
    25  	// The unique SID identifier of the Account.
    26  	AccountSid *string `json:"account_sid,omitempty"`
    27  	// The unique SID identifier of the Service.
    28  	ServiceSid *string `json:"service_sid,omitempty"`
    29  	// The unique SID identifier of the Entity.
    30  	EntitySid *string `json:"entity_sid,omitempty"`
    31  	// Customer unique identity for the Entity owner of the Challenge. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
    32  	Identity *string `json:"identity,omitempty"`
    33  	// The unique SID identifier of the Factor.
    34  	FactorSid *string `json:"factor_sid,omitempty"`
    35  	// The date that this Challenge was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    36  	DateCreated *time.Time `json:"date_created,omitempty"`
    37  	// The date that this Challenge was updated, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    38  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    39  	// The date that this Challenge was responded, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    40  	DateResponded *time.Time `json:"date_responded,omitempty"`
    41  	// The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation.
    42  	ExpirationDate  *time.Time `json:"expiration_date,omitempty"`
    43  	Status          *string    `json:"status,omitempty"`
    44  	RespondedReason *string    `json:"responded_reason,omitempty"`
    45  	// Details provided to give context about the Challenge. Intended to be shown to the end user.
    46  	Details *interface{} `json:"details,omitempty"`
    47  	// Details provided to give context about the Challenge. Intended to be hidden from the end user. It must be a stringified JSON with only strings values eg. `{\"ip\": \"172.168.1.234\"}`
    48  	HiddenDetails *interface{} `json:"hidden_details,omitempty"`
    49  	// Custom metadata associated with the challenge. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\"os\": \"Android\"}`. Can be up to 1024 characters in length.
    50  	Metadata   *interface{} `json:"metadata,omitempty"`
    51  	FactorType *string      `json:"factor_type,omitempty"`
    52  	// The URL of this resource.
    53  	Url *string `json:"url,omitempty"`
    54  	// Contains a dictionary of URL links to nested resources of this Challenge.
    55  	Links *map[string]interface{} `json:"links,omitempty"`
    56  }