verifications

package
v0.23.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package verifications contains auto-generated files. DO NOT MODIFY

Package verifications contains auto-generated files. DO NOT MODIFY

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for managing verification resources See https://www.twilio.com/docs/verify/api/verification for more details

func New

func New(client *client.Client, properties ClientProperties) *Client

New creates a new instance of the verifications client

func (Client) Create

Create creates/ starts a new verification See https://www.twilio.com/docs/verify/api/verification#start-new-verification for more details Context is defaulted to Background. See https://golang.org/pkg/context/#Background for more information

func (Client) CreateWithContext

func (c Client) CreateWithContext(context context.Context, input *CreateVerificationInput) (*CreateVerificationResponse, error)

CreateWithContext creates/ starts a new verification See https://www.twilio.com/docs/verify/api/verification#start-new-verification for more details

type ClientProperties

type ClientProperties struct {
	ServiceSid string
}

ClientProperties are the properties required to manage the verifications resources

type CreateVerificationCarrierLookupResponse

type CreateVerificationCarrierLookupResponse struct {
	ErrorCode         *string `json:"error_code,omitempty"`
	MobileCountryCode *string `json:"mobile_country_code,omitempty"`
	MobileNetworkCode *string `json:"mobile_network_code,omitempty"`
	Name              *string `json:"name,omitempty"`
	Type              *string `json:"type,omitempty"`
}

type CreateVerificationInput

type CreateVerificationInput struct {
	Amount                      *string `form:"Amount,omitempty"`
	AppHash                     *string `form:"AppHash,omitempty"`
	Channel                     string  `validate:"required" form:"Channel"`
	ChannelConfiguration        *string `form:"ChannelConfiguration,omitempty"`
	CustomCode                  *string `form:"CustomCode,omitempty"`
	CustomFriendlyName          *string `form:"CustomFriendlyName,omitempty"`
	Locale                      *string `form:"Locale,omitempty"`
	Payee                       *string `form:"Payee,omitempty"`
	RateLimits                  *string `form:"RateLimits,omitempty"`
	SendDigits                  *string `form:"SendDigits,omitempty"`
	TemplateCustomSubstitutions *string `form:"TemplateCustomSubstitutions,omitempty"`
	TemplateSid                 *string `form:"TemplateSid,omitempty"`
	To                          string  `validate:"required" form:"To"`
}

CreateVerificationInput defines the input fields for creating a new verification

type CreateVerificationLookupResponse

type CreateVerificationLookupResponse struct {
	Carrier *CreateVerificationCarrierLookupResponse `json:"carrier,omitempty"`
}

type CreateVerificationResponse

type CreateVerificationResponse struct {
	AccountSid       string                                      `json:"account_sid"`
	Amount           *string                                     `json:"amount,omitempty"`
	Channel          string                                      `json:"channel"`
	DateCreated      time.Time                                   `json:"date_created"`
	DateUpdated      *time.Time                                  `json:"date_updated,omitempty"`
	Lookup           CreateVerificationLookupResponse            `json:"lookup"`
	Payee            *string                                     `json:"payee,omitempty"`
	SendCodeAttempts []CreateVerificationSendCodeAttemptResponse `json:"send_code_attempts"`
	ServiceSid       string                                      `json:"service_sid"`
	Sid              string                                      `json:"sid"`
	Status           string                                      `json:"status"`
	To               string                                      `json:"to"`
	URL              string                                      `json:"url"`
	Valid            bool                                        `json:"valid"`
}

CreateVerificationResponse defines the response fields for the created verification

type CreateVerificationSendCodeAttemptResponse

type CreateVerificationSendCodeAttemptResponse struct {
	Channel   string    `json:"channel"`
	ChannelId *string   `json:"channel_id,omitempty"`
	Time      time.Time `json:"time"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL