telnyx

package module
v0.0.0-...-4650cc1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 25 Imported by: 0

README

Telnyx Go SDK

Generated from team-telnyx/openapi with some modifications to correct invalid types and add missing fields.

Code generated using Ogen

Example Client Usage

type Authorizor struct {
  token string
}

func (a *Authorizor) BearerAuth(_ context.Context, operationName string) (telnyx.BearerAuth, error) {
  return telnyx.BearerAuth{
    Token: a.token,
  }, nil
}

func do() error {
  auth := &Authorizor{token: os.Getenv("TELNYX_API_KEY")}

  client, err := telnyx.NewClient(telnyx.TelnyxAPIServer, auth)
  if err != nil {
    return fmt.Errorf("create client: %w", err)
  }

  resp, err := client.ListCallControlApplications(ctx, telnyx.ListCallControlApplicationsParams{})
  if err != nil {
    return err
  }

  switch p := resp.(type) {
  case *telnyx.ListCallControlApplicationsResponse:
    // p.Data
  case *telnyx.ListCallControlApplicationsNotFound:
    return errors.New("not found")
  }
}

Also see cmd for more examples.

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

View Source
const (
	DefaultSignatureTolerance = 300 // 5 minutes
)
View Source
const TelnyxAPIServer = "https://api.telnyx.com/v2"

Variables

This section is empty.

Functions

func VerifyWebhookPayload

func VerifyWebhookPayload(payload, signatureHeader, timestampHeader, publicKey string, tolerance ...int) (map[string]interface{}, error)

VerifyWebhookPayload constructs an event from a webhook payload, signature header, timestamp header and public key.

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AccountSid

type AccountSid string

func (*AccountSid) Decode

func (s *AccountSid) Decode(d *jx.Decoder) error

Decode decodes AccountSid from json.

func (AccountSid) Encode

func (s AccountSid) Encode(e *jx.Encoder)

Encode encodes AccountSid as json.

func (AccountSid) MarshalJSON

func (s AccountSid) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AccountSid) UnmarshalJSON

func (s *AccountSid) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ActivatePortingOrderParams

type ActivatePortingOrderParams struct {
	// Porting Order id.
	ID uuid.UUID
}

ActivatePortingOrderParams is parameters of ActivatePortingOrder operation.

type ActivatePortingOrderRes

type ActivatePortingOrderRes interface {
	// contains filtered or unexported methods
}

type ActivatePortingOrderUnauthorized

type ActivatePortingOrderUnauthorized struct{}

ActivatePortingOrderUnauthorized is response for ActivatePortingOrder operation.

type ActivatePortingOrderUnprocessableEntity

type ActivatePortingOrderUnprocessableEntity struct{}

ActivatePortingOrderUnprocessableEntity is response for ActivatePortingOrder operation.

type ActiveCall

type ActiveCall struct {
	RecordType ActiveCallRecordType `json:"record_type"`
	// ID that is unique to the call session and can be used to correlate webhook events. Call session is
	// a group of related call legs that logically belong to the same phone call, e.g. an inbound and
	// outbound leg of a transferred call.
	CallSessionID string `json:"call_session_id"`
	// ID that is unique to the call and can be used to correlate webhook events.
	CallLegID string `json:"call_leg_id"`
	// Unique identifier and token for controlling the call.
	CallControlID string `json:"call_control_id"`
	// State received from a command.
	ClientState string `json:"client_state"`
	// Indicates the duration of the call in seconds.
	CallDuration int `json:"call_duration"`
}

Ref: #/components/schemas/ActiveCall

func (*ActiveCall) Decode

func (s *ActiveCall) Decode(d *jx.Decoder) error

Decode decodes ActiveCall from json.

func (*ActiveCall) Encode

func (s *ActiveCall) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ActiveCall) GetCallControlID

func (s *ActiveCall) GetCallControlID() string

GetCallControlID returns the value of CallControlID.

func (*ActiveCall) GetCallDuration

func (s *ActiveCall) GetCallDuration() int

GetCallDuration returns the value of CallDuration.

func (*ActiveCall) GetCallLegID

func (s *ActiveCall) GetCallLegID() string

GetCallLegID returns the value of CallLegID.

func (*ActiveCall) GetCallSessionID

func (s *ActiveCall) GetCallSessionID() string

GetCallSessionID returns the value of CallSessionID.

func (*ActiveCall) GetClientState

func (s *ActiveCall) GetClientState() string

GetClientState returns the value of ClientState.

func (*ActiveCall) GetRecordType

func (s *ActiveCall) GetRecordType() ActiveCallRecordType

GetRecordType returns the value of RecordType.

func (*ActiveCall) MarshalJSON

func (s *ActiveCall) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ActiveCall) SetCallControlID

func (s *ActiveCall) SetCallControlID(val string)

SetCallControlID sets the value of CallControlID.

func (*ActiveCall) SetCallDuration

func (s *ActiveCall) SetCallDuration(val int)

SetCallDuration sets the value of CallDuration.

func (*ActiveCall) SetCallLegID

func (s *ActiveCall) SetCallLegID(val string)

SetCallLegID sets the value of CallLegID.

func (*ActiveCall) SetCallSessionID

func (s *ActiveCall) SetCallSessionID(val string)

SetCallSessionID sets the value of CallSessionID.

func (*ActiveCall) SetClientState

func (s *ActiveCall) SetClientState(val string)

SetClientState sets the value of ClientState.

func (*ActiveCall) SetRecordType

func (s *ActiveCall) SetRecordType(val ActiveCallRecordType)

SetRecordType sets the value of RecordType.

func (*ActiveCall) UnmarshalJSON

func (s *ActiveCall) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ActiveCall) Validate

func (s *ActiveCall) Validate() error

type ActiveCallRecordType

type ActiveCallRecordType string
const (
	ActiveCallRecordTypeCall ActiveCallRecordType = "call"
)

func (ActiveCallRecordType) AllValues

AllValues returns all ActiveCallRecordType values.

func (*ActiveCallRecordType) Decode

func (s *ActiveCallRecordType) Decode(d *jx.Decoder) error

Decode decodes ActiveCallRecordType from json.

func (ActiveCallRecordType) Encode

func (s ActiveCallRecordType) Encode(e *jx.Encoder)

Encode encodes ActiveCallRecordType as json.

func (ActiveCallRecordType) MarshalJSON

func (s ActiveCallRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ActiveCallRecordType) MarshalText

func (s ActiveCallRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ActiveCallRecordType) UnmarshalJSON

func (s *ActiveCallRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ActiveCallRecordType) UnmarshalText

func (s *ActiveCallRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ActiveCallRecordType) Validate

func (s ActiveCallRecordType) Validate() error

type ActiveCallsResponse

type ActiveCallsResponse struct {
	Data []ActiveCall            `json:"data"`
	Meta OptCursorPaginationMeta `json:"meta"`
}

func (*ActiveCallsResponse) Decode

func (s *ActiveCallsResponse) Decode(d *jx.Decoder) error

Decode decodes ActiveCallsResponse from json.

func (*ActiveCallsResponse) Encode

func (s *ActiveCallsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ActiveCallsResponse) GetData

func (s *ActiveCallsResponse) GetData() []ActiveCall

GetData returns the value of Data.

func (*ActiveCallsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ActiveCallsResponse) MarshalJSON

func (s *ActiveCallsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ActiveCallsResponse) SetData

func (s *ActiveCallsResponse) SetData(val []ActiveCall)

SetData sets the value of Data.

func (*ActiveCallsResponse) SetMeta

SetMeta sets the value of Meta.

func (*ActiveCallsResponse) UnmarshalJSON

func (s *ActiveCallsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ActiveCallsResponse) Validate

func (s *ActiveCallsResponse) Validate() error

type AnchorsiteOverride

type AnchorsiteOverride string

`Latency` directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media. Ref: #/components/schemas/AnchorsiteOverride

const (
	AnchorsiteOverrideLatency              AnchorsiteOverride = "Latency"
	AnchorsiteOverrideChicagoIL            AnchorsiteOverride = "Chicago, IL"
	AnchorsiteOverrideAshburnVA            AnchorsiteOverride = "Ashburn, VA"
	AnchorsiteOverrideSanJoseCA            AnchorsiteOverride = "San Jose, CA"
	AnchorsiteOverrideSydneyAustralia      AnchorsiteOverride = "Sydney, Australia"
	AnchorsiteOverrideAmsterdamNetherlands AnchorsiteOverride = "Amsterdam, Netherlands"
	AnchorsiteOverrideLondonUK             AnchorsiteOverride = "London, UK"
	AnchorsiteOverrideTorontoCanada        AnchorsiteOverride = "Toronto, Canada"
	AnchorsiteOverrideVancouverCanada      AnchorsiteOverride = "Vancouver, Canada"
	AnchorsiteOverrideFrankfurtGermany     AnchorsiteOverride = "Frankfurt, Germany"
)

func (AnchorsiteOverride) AllValues

func (AnchorsiteOverride) AllValues() []AnchorsiteOverride

AllValues returns all AnchorsiteOverride values.

func (*AnchorsiteOverride) Decode

func (s *AnchorsiteOverride) Decode(d *jx.Decoder) error

Decode decodes AnchorsiteOverride from json.

func (AnchorsiteOverride) Encode

func (s AnchorsiteOverride) Encode(e *jx.Encoder)

Encode encodes AnchorsiteOverride as json.

func (AnchorsiteOverride) MarshalJSON

func (s AnchorsiteOverride) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AnchorsiteOverride) MarshalText

func (s AnchorsiteOverride) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AnchorsiteOverride) UnmarshalJSON

func (s *AnchorsiteOverride) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnchorsiteOverride) UnmarshalText

func (s *AnchorsiteOverride) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AnchorsiteOverride) Validate

func (s AnchorsiteOverride) Validate() error

type AnswerCallParams

type AnswerCallParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

AnswerCallParams is parameters of AnswerCall operation.

type AnswerCallRes

type AnswerCallRes interface {
	// contains filtered or unexported methods
}

type AnswerRequest

type AnswerRequest struct {
	// Use this field to set the Billing Group ID for the call. Must be a valid and existing Billing
	// Group ID.
	BillingGroupID OptUUID `json:"billing_group_id"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
	// Custom headers to be added to the SIP INVITE response.
	CustomHeaders []CustomSipHeader `json:"custom_headers"`
	// The list of comma-separated codecs in a preferred order for the forked media to be received.
	PreferredCodecs OptAnswerRequestPreferredCodecs `json:"preferred_codecs"`
	// SIP headers to be added to the SIP INVITE response. Currently only User-to-User header is
	// supported.
	SipHeaders         []SipHeader           `json:"sip_headers"`
	SoundModifications OptSoundModifications `json:"sound_modifications"`
	// The destination WebSocket address where the stream is going to be delivered.
	StreamURL OptString `json:"stream_url"`
	// Specifies which track should be streamed.
	StreamTrack OptAnswerRequestStreamTrack `json:"stream_track"`
	// Generate silence RTP packets when no transmission available.
	SendSilenceWhenIdle OptBool `json:"send_silence_when_idle"`
	// Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call.
	WebhookURL OptString `json:"webhook_url"`
	// HTTP request type used for `webhook_url`.
	WebhookURLMethod OptAnswerRequestWebhookURLMethod `json:"webhook_url_method"`
}

Ref: #/components/schemas/AnswerRequest

func (*AnswerRequest) Decode

func (s *AnswerRequest) Decode(d *jx.Decoder) error

Decode decodes AnswerRequest from json.

func (*AnswerRequest) Encode

func (s *AnswerRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AnswerRequest) GetBillingGroupID

func (s *AnswerRequest) GetBillingGroupID() OptUUID

GetBillingGroupID returns the value of BillingGroupID.

func (*AnswerRequest) GetClientState

func (s *AnswerRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*AnswerRequest) GetCommandID

func (s *AnswerRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*AnswerRequest) GetCustomHeaders

func (s *AnswerRequest) GetCustomHeaders() []CustomSipHeader

GetCustomHeaders returns the value of CustomHeaders.

func (*AnswerRequest) GetPreferredCodecs

func (s *AnswerRequest) GetPreferredCodecs() OptAnswerRequestPreferredCodecs

GetPreferredCodecs returns the value of PreferredCodecs.

func (*AnswerRequest) GetSendSilenceWhenIdle

func (s *AnswerRequest) GetSendSilenceWhenIdle() OptBool

GetSendSilenceWhenIdle returns the value of SendSilenceWhenIdle.

func (*AnswerRequest) GetSipHeaders

func (s *AnswerRequest) GetSipHeaders() []SipHeader

GetSipHeaders returns the value of SipHeaders.

func (*AnswerRequest) GetSoundModifications

func (s *AnswerRequest) GetSoundModifications() OptSoundModifications

GetSoundModifications returns the value of SoundModifications.

func (*AnswerRequest) GetStreamTrack

func (s *AnswerRequest) GetStreamTrack() OptAnswerRequestStreamTrack

GetStreamTrack returns the value of StreamTrack.

func (*AnswerRequest) GetStreamURL

func (s *AnswerRequest) GetStreamURL() OptString

GetStreamURL returns the value of StreamURL.

func (*AnswerRequest) GetWebhookURL

func (s *AnswerRequest) GetWebhookURL() OptString

GetWebhookURL returns the value of WebhookURL.

func (*AnswerRequest) GetWebhookURLMethod

func (s *AnswerRequest) GetWebhookURLMethod() OptAnswerRequestWebhookURLMethod

GetWebhookURLMethod returns the value of WebhookURLMethod.

func (*AnswerRequest) MarshalJSON

func (s *AnswerRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AnswerRequest) SetBillingGroupID

func (s *AnswerRequest) SetBillingGroupID(val OptUUID)

SetBillingGroupID sets the value of BillingGroupID.

func (*AnswerRequest) SetClientState

func (s *AnswerRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*AnswerRequest) SetCommandID

func (s *AnswerRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*AnswerRequest) SetCustomHeaders

func (s *AnswerRequest) SetCustomHeaders(val []CustomSipHeader)

SetCustomHeaders sets the value of CustomHeaders.

func (*AnswerRequest) SetPreferredCodecs

func (s *AnswerRequest) SetPreferredCodecs(val OptAnswerRequestPreferredCodecs)

SetPreferredCodecs sets the value of PreferredCodecs.

func (*AnswerRequest) SetSendSilenceWhenIdle

func (s *AnswerRequest) SetSendSilenceWhenIdle(val OptBool)

SetSendSilenceWhenIdle sets the value of SendSilenceWhenIdle.

func (*AnswerRequest) SetSipHeaders

func (s *AnswerRequest) SetSipHeaders(val []SipHeader)

SetSipHeaders sets the value of SipHeaders.

func (*AnswerRequest) SetSoundModifications

func (s *AnswerRequest) SetSoundModifications(val OptSoundModifications)

SetSoundModifications sets the value of SoundModifications.

func (*AnswerRequest) SetStreamTrack

func (s *AnswerRequest) SetStreamTrack(val OptAnswerRequestStreamTrack)

SetStreamTrack sets the value of StreamTrack.

func (*AnswerRequest) SetStreamURL

func (s *AnswerRequest) SetStreamURL(val OptString)

SetStreamURL sets the value of StreamURL.

func (*AnswerRequest) SetWebhookURL

func (s *AnswerRequest) SetWebhookURL(val OptString)

SetWebhookURL sets the value of WebhookURL.

func (*AnswerRequest) SetWebhookURLMethod

func (s *AnswerRequest) SetWebhookURLMethod(val OptAnswerRequestWebhookURLMethod)

SetWebhookURLMethod sets the value of WebhookURLMethod.

func (*AnswerRequest) UnmarshalJSON

func (s *AnswerRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnswerRequest) Validate

func (s *AnswerRequest) Validate() error

type AnswerRequestPreferredCodecs

type AnswerRequestPreferredCodecs string

The list of comma-separated codecs in a preferred order for the forked media to be received.

const (
	AnswerRequestPreferredCodecsG722PCMUPCMAG729OPUSVP8H264 AnswerRequestPreferredCodecs = "G722,PCMU,PCMA,G729,OPUS,VP8,H264"
)

func (AnswerRequestPreferredCodecs) AllValues

AllValues returns all AnswerRequestPreferredCodecs values.

func (*AnswerRequestPreferredCodecs) Decode

Decode decodes AnswerRequestPreferredCodecs from json.

func (AnswerRequestPreferredCodecs) Encode

Encode encodes AnswerRequestPreferredCodecs as json.

func (AnswerRequestPreferredCodecs) MarshalJSON

func (s AnswerRequestPreferredCodecs) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AnswerRequestPreferredCodecs) MarshalText

func (s AnswerRequestPreferredCodecs) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AnswerRequestPreferredCodecs) UnmarshalJSON

func (s *AnswerRequestPreferredCodecs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnswerRequestPreferredCodecs) UnmarshalText

func (s *AnswerRequestPreferredCodecs) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AnswerRequestPreferredCodecs) Validate

func (s AnswerRequestPreferredCodecs) Validate() error

type AnswerRequestStreamTrack

type AnswerRequestStreamTrack string

Specifies which track should be streamed.

const (
	AnswerRequestStreamTrackInboundTrack  AnswerRequestStreamTrack = "inbound_track"
	AnswerRequestStreamTrackOutboundTrack AnswerRequestStreamTrack = "outbound_track"
	AnswerRequestStreamTrackBothTracks    AnswerRequestStreamTrack = "both_tracks"
)

func (AnswerRequestStreamTrack) AllValues

AllValues returns all AnswerRequestStreamTrack values.

func (*AnswerRequestStreamTrack) Decode

func (s *AnswerRequestStreamTrack) Decode(d *jx.Decoder) error

Decode decodes AnswerRequestStreamTrack from json.

func (AnswerRequestStreamTrack) Encode

func (s AnswerRequestStreamTrack) Encode(e *jx.Encoder)

Encode encodes AnswerRequestStreamTrack as json.

func (AnswerRequestStreamTrack) MarshalJSON

func (s AnswerRequestStreamTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AnswerRequestStreamTrack) MarshalText

func (s AnswerRequestStreamTrack) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AnswerRequestStreamTrack) UnmarshalJSON

func (s *AnswerRequestStreamTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnswerRequestStreamTrack) UnmarshalText

func (s *AnswerRequestStreamTrack) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AnswerRequestStreamTrack) Validate

func (s AnswerRequestStreamTrack) Validate() error

type AnswerRequestWebhookURLMethod

type AnswerRequestWebhookURLMethod string

HTTP request type used for `webhook_url`.

const (
	AnswerRequestWebhookURLMethodPOST AnswerRequestWebhookURLMethod = "POST"
	AnswerRequestWebhookURLMethodGET  AnswerRequestWebhookURLMethod = "GET"
)

func (AnswerRequestWebhookURLMethod) AllValues

AllValues returns all AnswerRequestWebhookURLMethod values.

func (*AnswerRequestWebhookURLMethod) Decode

Decode decodes AnswerRequestWebhookURLMethod from json.

func (AnswerRequestWebhookURLMethod) Encode

Encode encodes AnswerRequestWebhookURLMethod as json.

func (AnswerRequestWebhookURLMethod) MarshalJSON

func (s AnswerRequestWebhookURLMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AnswerRequestWebhookURLMethod) MarshalText

func (s AnswerRequestWebhookURLMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AnswerRequestWebhookURLMethod) UnmarshalJSON

func (s *AnswerRequestWebhookURLMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AnswerRequestWebhookURLMethod) UnmarshalText

func (s *AnswerRequestWebhookURLMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AnswerRequestWebhookURLMethod) Validate

func (s AnswerRequestWebhookURLMethod) Validate() error

type ApplicationName

type ApplicationName string

func (*ApplicationName) Decode

func (s *ApplicationName) Decode(d *jx.Decoder) error

Decode decodes ApplicationName from json.

func (ApplicationName) Encode

func (s ApplicationName) Encode(e *jx.Encoder)

Encode encodes ApplicationName as json.

func (ApplicationName) MarshalJSON

func (s ApplicationName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ApplicationName) UnmarshalJSON

func (s *ApplicationName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AssignPhoneNumberParams

type AssignPhoneNumberParams struct {
	// Channel zone identifier.
	ChannelZoneID string
}

AssignPhoneNumberParams is parameters of AssignPhoneNumber operation.

type AssignPhoneNumberReq

type AssignPhoneNumberReq struct {
	PhoneNumber string `json:"phone_number"`
}

func (*AssignPhoneNumberReq) Decode

func (s *AssignPhoneNumberReq) Decode(d *jx.Decoder) error

Decode decodes AssignPhoneNumberReq from json.

func (*AssignPhoneNumberReq) Encode

func (s *AssignPhoneNumberReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AssignPhoneNumberReq) GetPhoneNumber

func (s *AssignPhoneNumberReq) GetPhoneNumber() string

GetPhoneNumber returns the value of PhoneNumber.

func (*AssignPhoneNumberReq) MarshalJSON

func (s *AssignPhoneNumberReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AssignPhoneNumberReq) SetPhoneNumber

func (s *AssignPhoneNumberReq) SetPhoneNumber(val string)

SetPhoneNumber sets the value of PhoneNumber.

func (*AssignPhoneNumberReq) UnmarshalJSON

func (s *AssignPhoneNumberReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AssignPhoneNumberRes

type AssignPhoneNumberRes interface {
	// contains filtered or unexported methods
}

type Attempt

type Attempt struct {
	Status OptAttemptStatus `json:"status"`
	// ISO 8601 timestamp indicating when the attempt was initiated.
	StartedAt OptDateTime `json:"started_at"`
	// ISO 8601 timestamp indicating when the attempt has finished.
	FinishedAt OptDateTime `json:"finished_at"`
	HTTP       OptHTTP     `json:"http"`
	// Webhook delivery error codes.
	Errors []int `json:"errors"`
}

Webhook delivery attempt details. Ref: #/components/schemas/attempt

func (*Attempt) Decode

func (s *Attempt) Decode(d *jx.Decoder) error

Decode decodes Attempt from json.

func (*Attempt) Encode

func (s *Attempt) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Attempt) GetErrors

func (s *Attempt) GetErrors() []int

GetErrors returns the value of Errors.

func (*Attempt) GetFinishedAt

func (s *Attempt) GetFinishedAt() OptDateTime

GetFinishedAt returns the value of FinishedAt.

func (*Attempt) GetHTTP

func (s *Attempt) GetHTTP() OptHTTP

GetHTTP returns the value of HTTP.

func (*Attempt) GetStartedAt

func (s *Attempt) GetStartedAt() OptDateTime

GetStartedAt returns the value of StartedAt.

func (*Attempt) GetStatus

func (s *Attempt) GetStatus() OptAttemptStatus

GetStatus returns the value of Status.

func (*Attempt) MarshalJSON

func (s *Attempt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Attempt) SetErrors

func (s *Attempt) SetErrors(val []int)

SetErrors sets the value of Errors.

func (*Attempt) SetFinishedAt

func (s *Attempt) SetFinishedAt(val OptDateTime)

SetFinishedAt sets the value of FinishedAt.

func (*Attempt) SetHTTP

func (s *Attempt) SetHTTP(val OptHTTP)

SetHTTP sets the value of HTTP.

func (*Attempt) SetStartedAt

func (s *Attempt) SetStartedAt(val OptDateTime)

SetStartedAt sets the value of StartedAt.

func (*Attempt) SetStatus

func (s *Attempt) SetStatus(val OptAttemptStatus)

SetStatus sets the value of Status.

func (*Attempt) UnmarshalJSON

func (s *Attempt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Attempt) Validate

func (s *Attempt) Validate() error

type AttemptStatus

type AttemptStatus string
const (
	AttemptStatusDelivered AttemptStatus = "delivered"
	AttemptStatusFailed    AttemptStatus = "failed"
)

func (AttemptStatus) AllValues

func (AttemptStatus) AllValues() []AttemptStatus

AllValues returns all AttemptStatus values.

func (*AttemptStatus) Decode

func (s *AttemptStatus) Decode(d *jx.Decoder) error

Decode decodes AttemptStatus from json.

func (AttemptStatus) Encode

func (s AttemptStatus) Encode(e *jx.Encoder)

Encode encodes AttemptStatus as json.

func (AttemptStatus) MarshalJSON

func (s AttemptStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AttemptStatus) MarshalText

func (s AttemptStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AttemptStatus) UnmarshalJSON

func (s *AttemptStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AttemptStatus) UnmarshalText

func (s *AttemptStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AttemptStatus) Validate

func (s AttemptStatus) Validate() error

type AudioPublicAudioTranscriptionsPostRes

type AudioPublicAudioTranscriptionsPostRes interface {
	// contains filtered or unexported methods
}

type AudioTranscriptionRequestMultipart

type AudioTranscriptionRequestMultipart struct {
	// The audio file object to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg,
	//  wav, or webm. File uploads are limited to 100 MB.
	File ht.MultipartFile `json:"file"`
	// ID of the model to use. Only `distil-whisper/distil-large-v2` is currently available.
	Model AudioTranscriptionRequestMultipartModel `json:"model"`
	// The format of the transcript output. Use `verbose_json` to take advantage of timestamps.
	ResponseFormat OptAudioTranscriptionRequestMultipartResponseFormat `json:"response_format"`
	// The timestamp granularities to populate for this transcription. `response_format` must be set
	// verbose_json to use timestamp granularities. Currently `segment` is supported.
	TimestampGranularities OptAudioTranscriptionRequestMultipartTimestampGranularities `json:"timestamp_granularities[]"`
}

Ref: #/components/schemas/AudioTranscriptionRequest

func (*AudioTranscriptionRequestMultipart) GetFile

GetFile returns the value of File.

func (*AudioTranscriptionRequestMultipart) GetModel

GetModel returns the value of Model.

func (*AudioTranscriptionRequestMultipart) GetResponseFormat

GetResponseFormat returns the value of ResponseFormat.

func (*AudioTranscriptionRequestMultipart) GetTimestampGranularities

GetTimestampGranularities returns the value of TimestampGranularities.

func (*AudioTranscriptionRequestMultipart) SetFile

SetFile sets the value of File.

func (*AudioTranscriptionRequestMultipart) SetModel

SetModel sets the value of Model.

func (*AudioTranscriptionRequestMultipart) SetResponseFormat

SetResponseFormat sets the value of ResponseFormat.

func (*AudioTranscriptionRequestMultipart) SetTimestampGranularities

SetTimestampGranularities sets the value of TimestampGranularities.

func (*AudioTranscriptionRequestMultipart) Validate

type AudioTranscriptionRequestMultipartModel

type AudioTranscriptionRequestMultipartModel string

ID of the model to use. Only `distil-whisper/distil-large-v2` is currently available.

const (
	AudioTranscriptionRequestMultipartModelDistilWhisperDistilLargeV2 AudioTranscriptionRequestMultipartModel = "distil-whisper/distil-large-v2"
)

func (AudioTranscriptionRequestMultipartModel) AllValues

AllValues returns all AudioTranscriptionRequestMultipartModel values.

func (AudioTranscriptionRequestMultipartModel) MarshalText

func (s AudioTranscriptionRequestMultipartModel) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AudioTranscriptionRequestMultipartModel) UnmarshalText

func (s *AudioTranscriptionRequestMultipartModel) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AudioTranscriptionRequestMultipartModel) Validate

type AudioTranscriptionRequestMultipartResponseFormat

type AudioTranscriptionRequestMultipartResponseFormat string

The format of the transcript output. Use `verbose_json` to take advantage of timestamps.

const (
	AudioTranscriptionRequestMultipartResponseFormatJSON        AudioTranscriptionRequestMultipartResponseFormat = "json"
	AudioTranscriptionRequestMultipartResponseFormatVerboseJSON AudioTranscriptionRequestMultipartResponseFormat = "verbose_json"
)

func (AudioTranscriptionRequestMultipartResponseFormat) AllValues

AllValues returns all AudioTranscriptionRequestMultipartResponseFormat values.

func (AudioTranscriptionRequestMultipartResponseFormat) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*AudioTranscriptionRequestMultipartResponseFormat) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (AudioTranscriptionRequestMultipartResponseFormat) Validate

type AudioTranscriptionRequestMultipartTimestampGranularities

type AudioTranscriptionRequestMultipartTimestampGranularities string

The timestamp granularities to populate for this transcription. `response_format` must be set verbose_json to use timestamp granularities. Currently `segment` is supported.

const (
	AudioTranscriptionRequestMultipartTimestampGranularitiesSegment AudioTranscriptionRequestMultipartTimestampGranularities = "segment"
)

func (AudioTranscriptionRequestMultipartTimestampGranularities) AllValues

AllValues returns all AudioTranscriptionRequestMultipartTimestampGranularities values.

func (AudioTranscriptionRequestMultipartTimestampGranularities) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*AudioTranscriptionRequestMultipartTimestampGranularities) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (AudioTranscriptionRequestMultipartTimestampGranularities) Validate

type AudioTranscriptionResponse

type AudioTranscriptionResponse struct {
	// The transcribed text for the audio file.
	Text string `json:"text"`
	// The duration of the audio file in seconds. This is only included if `response_format` is set to
	// `verbose_json`.
	Duration OptFloat64 `json:"duration"`
	// Segments of the transcribed text and their corresponding details. This is only included if
	// `response_format` is set to `verbose_json`.
	Segments []AudioTranscriptionResponseSegments `json:"segments"`
}

Ref: #/components/schemas/AudioTranscriptionResponse

func (*AudioTranscriptionResponse) Decode

Decode decodes AudioTranscriptionResponse from json.

func (*AudioTranscriptionResponse) Encode

func (s *AudioTranscriptionResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AudioTranscriptionResponse) GetDuration

func (s *AudioTranscriptionResponse) GetDuration() OptFloat64

GetDuration returns the value of Duration.

func (*AudioTranscriptionResponse) GetSegments

GetSegments returns the value of Segments.

func (*AudioTranscriptionResponse) GetText

func (s *AudioTranscriptionResponse) GetText() string

GetText returns the value of Text.

func (*AudioTranscriptionResponse) MarshalJSON

func (s *AudioTranscriptionResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AudioTranscriptionResponse) SetDuration

func (s *AudioTranscriptionResponse) SetDuration(val OptFloat64)

SetDuration sets the value of Duration.

func (*AudioTranscriptionResponse) SetSegments

SetSegments sets the value of Segments.

func (*AudioTranscriptionResponse) SetText

func (s *AudioTranscriptionResponse) SetText(val string)

SetText sets the value of Text.

func (*AudioTranscriptionResponse) UnmarshalJSON

func (s *AudioTranscriptionResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AudioTranscriptionResponse) Validate

func (s *AudioTranscriptionResponse) Validate() error

type AudioTranscriptionResponseSegments

type AudioTranscriptionResponseSegments struct {
	// Unique identifier of the segment.
	ID float64 `json:"id"`
	// Start time of the segment in seconds.
	Start float64 `json:"start"`
	// End time of the segment in seconds.
	End float64 `json:"end"`
	// Text content of the segment.
	Text string `json:"text"`
}

Ref: #/components/schemas/AudioTranscriptionResponseSegments

func (*AudioTranscriptionResponseSegments) Decode

Decode decodes AudioTranscriptionResponseSegments from json.

func (*AudioTranscriptionResponseSegments) Encode

Encode implements json.Marshaler.

func (*AudioTranscriptionResponseSegments) GetEnd

GetEnd returns the value of End.

func (*AudioTranscriptionResponseSegments) GetID

GetID returns the value of ID.

func (*AudioTranscriptionResponseSegments) GetStart

GetStart returns the value of Start.

func (*AudioTranscriptionResponseSegments) GetText

GetText returns the value of Text.

func (*AudioTranscriptionResponseSegments) MarshalJSON

func (s *AudioTranscriptionResponseSegments) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AudioTranscriptionResponseSegments) SetEnd

SetEnd sets the value of End.

func (*AudioTranscriptionResponseSegments) SetID

SetID sets the value of ID.

func (*AudioTranscriptionResponseSegments) SetStart

SetStart sets the value of Start.

func (*AudioTranscriptionResponseSegments) SetText

SetText sets the value of Text.

func (*AudioTranscriptionResponseSegments) UnmarshalJSON

func (s *AudioTranscriptionResponseSegments) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AudioTranscriptionResponseSegments) Validate

type AvailablePhoneNumber

type AvailablePhoneNumber struct {
	RecordType   OptAvailablePhoneNumberRecordType `json:"record_type"`
	PhoneNumber  OptString                         `json:"phone_number"`
	VanityFormat OptString                         `json:"vanity_format"`
	// Specifies whether the phone number is an exact match based on the search criteria or not.
	BestEffort OptBool `json:"best_effort"`
	// Specifies whether the phone number can receive calls immediately after purchase or not.
	Quickship OptBool `json:"quickship"`
	// Specifies whether the phone number can be reserved before purchase or not.
	Reservable        OptBool             `json:"reservable"`
	RegionInformation []RegionInformation `json:"region_information"`
	CostInformation   OptCostInformation  `json:"cost_information"`
	Features          []Feature           `json:"features"`
}

Ref: #/components/schemas/AvailablePhoneNumber

func (*AvailablePhoneNumber) Decode

func (s *AvailablePhoneNumber) Decode(d *jx.Decoder) error

Decode decodes AvailablePhoneNumber from json.

func (*AvailablePhoneNumber) Encode

func (s *AvailablePhoneNumber) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AvailablePhoneNumber) GetBestEffort

func (s *AvailablePhoneNumber) GetBestEffort() OptBool

GetBestEffort returns the value of BestEffort.

func (*AvailablePhoneNumber) GetCostInformation

func (s *AvailablePhoneNumber) GetCostInformation() OptCostInformation

GetCostInformation returns the value of CostInformation.

func (*AvailablePhoneNumber) GetFeatures

func (s *AvailablePhoneNumber) GetFeatures() []Feature

GetFeatures returns the value of Features.

func (*AvailablePhoneNumber) GetPhoneNumber

func (s *AvailablePhoneNumber) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*AvailablePhoneNumber) GetQuickship

func (s *AvailablePhoneNumber) GetQuickship() OptBool

GetQuickship returns the value of Quickship.

func (*AvailablePhoneNumber) GetRecordType

GetRecordType returns the value of RecordType.

func (*AvailablePhoneNumber) GetRegionInformation

func (s *AvailablePhoneNumber) GetRegionInformation() []RegionInformation

GetRegionInformation returns the value of RegionInformation.

func (*AvailablePhoneNumber) GetReservable

func (s *AvailablePhoneNumber) GetReservable() OptBool

GetReservable returns the value of Reservable.

func (*AvailablePhoneNumber) GetVanityFormat

func (s *AvailablePhoneNumber) GetVanityFormat() OptString

GetVanityFormat returns the value of VanityFormat.

func (*AvailablePhoneNumber) MarshalJSON

func (s *AvailablePhoneNumber) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AvailablePhoneNumber) SetBestEffort

func (s *AvailablePhoneNumber) SetBestEffort(val OptBool)

SetBestEffort sets the value of BestEffort.

func (*AvailablePhoneNumber) SetCostInformation

func (s *AvailablePhoneNumber) SetCostInformation(val OptCostInformation)

SetCostInformation sets the value of CostInformation.

func (*AvailablePhoneNumber) SetFeatures

func (s *AvailablePhoneNumber) SetFeatures(val []Feature)

SetFeatures sets the value of Features.

func (*AvailablePhoneNumber) SetPhoneNumber

func (s *AvailablePhoneNumber) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*AvailablePhoneNumber) SetQuickship

func (s *AvailablePhoneNumber) SetQuickship(val OptBool)

SetQuickship sets the value of Quickship.

func (*AvailablePhoneNumber) SetRecordType

SetRecordType sets the value of RecordType.

func (*AvailablePhoneNumber) SetRegionInformation

func (s *AvailablePhoneNumber) SetRegionInformation(val []RegionInformation)

SetRegionInformation sets the value of RegionInformation.

func (*AvailablePhoneNumber) SetReservable

func (s *AvailablePhoneNumber) SetReservable(val OptBool)

SetReservable sets the value of Reservable.

func (*AvailablePhoneNumber) SetVanityFormat

func (s *AvailablePhoneNumber) SetVanityFormat(val OptString)

SetVanityFormat sets the value of VanityFormat.

func (*AvailablePhoneNumber) UnmarshalJSON

func (s *AvailablePhoneNumber) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AvailablePhoneNumber) Validate

func (s *AvailablePhoneNumber) Validate() error

type AvailablePhoneNumberBlock

type AvailablePhoneNumberBlock struct {
	RecordType        OptAvailablePhoneNumberBlockRecordType `json:"record_type"`
	StartingNumber    OptString                              `json:"starting_number"`
	Range             OptInt                                 `json:"range"`
	RegionInformation []RegionInformation                    `json:"region_information"`
	CostInformation   OptCostInformation                     `json:"cost_information"`
	Features          []Feature                              `json:"features"`
}

Ref: #/components/schemas/AvailablePhoneNumberBlock

func (*AvailablePhoneNumberBlock) Decode

func (s *AvailablePhoneNumberBlock) Decode(d *jx.Decoder) error

Decode decodes AvailablePhoneNumberBlock from json.

func (*AvailablePhoneNumberBlock) Encode

func (s *AvailablePhoneNumberBlock) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AvailablePhoneNumberBlock) GetCostInformation

func (s *AvailablePhoneNumberBlock) GetCostInformation() OptCostInformation

GetCostInformation returns the value of CostInformation.

func (*AvailablePhoneNumberBlock) GetFeatures

func (s *AvailablePhoneNumberBlock) GetFeatures() []Feature

GetFeatures returns the value of Features.

func (*AvailablePhoneNumberBlock) GetRange

func (s *AvailablePhoneNumberBlock) GetRange() OptInt

GetRange returns the value of Range.

func (*AvailablePhoneNumberBlock) GetRecordType

GetRecordType returns the value of RecordType.

func (*AvailablePhoneNumberBlock) GetRegionInformation

func (s *AvailablePhoneNumberBlock) GetRegionInformation() []RegionInformation

GetRegionInformation returns the value of RegionInformation.

func (*AvailablePhoneNumberBlock) GetStartingNumber

func (s *AvailablePhoneNumberBlock) GetStartingNumber() OptString

GetStartingNumber returns the value of StartingNumber.

func (*AvailablePhoneNumberBlock) MarshalJSON

func (s *AvailablePhoneNumberBlock) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AvailablePhoneNumberBlock) SetCostInformation

func (s *AvailablePhoneNumberBlock) SetCostInformation(val OptCostInformation)

SetCostInformation sets the value of CostInformation.

func (*AvailablePhoneNumberBlock) SetFeatures

func (s *AvailablePhoneNumberBlock) SetFeatures(val []Feature)

SetFeatures sets the value of Features.

func (*AvailablePhoneNumberBlock) SetRange

func (s *AvailablePhoneNumberBlock) SetRange(val OptInt)

SetRange sets the value of Range.

func (*AvailablePhoneNumberBlock) SetRecordType

SetRecordType sets the value of RecordType.

func (*AvailablePhoneNumberBlock) SetRegionInformation

func (s *AvailablePhoneNumberBlock) SetRegionInformation(val []RegionInformation)

SetRegionInformation sets the value of RegionInformation.

func (*AvailablePhoneNumberBlock) SetStartingNumber

func (s *AvailablePhoneNumberBlock) SetStartingNumber(val OptString)

SetStartingNumber sets the value of StartingNumber.

func (*AvailablePhoneNumberBlock) UnmarshalJSON

func (s *AvailablePhoneNumberBlock) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AvailablePhoneNumberBlock) Validate

func (s *AvailablePhoneNumberBlock) Validate() error

type AvailablePhoneNumberBlockRecordType

type AvailablePhoneNumberBlockRecordType string
const (
	AvailablePhoneNumberBlockRecordTypeAvailablePhoneNumberBlock AvailablePhoneNumberBlockRecordType = "available_phone_number_block"
)

func (AvailablePhoneNumberBlockRecordType) AllValues

AllValues returns all AvailablePhoneNumberBlockRecordType values.

func (*AvailablePhoneNumberBlockRecordType) Decode

Decode decodes AvailablePhoneNumberBlockRecordType from json.

func (AvailablePhoneNumberBlockRecordType) Encode

Encode encodes AvailablePhoneNumberBlockRecordType as json.

func (AvailablePhoneNumberBlockRecordType) MarshalJSON

func (s AvailablePhoneNumberBlockRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AvailablePhoneNumberBlockRecordType) MarshalText

func (s AvailablePhoneNumberBlockRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AvailablePhoneNumberBlockRecordType) UnmarshalJSON

func (s *AvailablePhoneNumberBlockRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AvailablePhoneNumberBlockRecordType) UnmarshalText

func (s *AvailablePhoneNumberBlockRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AvailablePhoneNumberBlockRecordType) Validate

type AvailablePhoneNumberRecordType

type AvailablePhoneNumberRecordType string
const (
	AvailablePhoneNumberRecordTypeAvailablePhoneNumber AvailablePhoneNumberRecordType = "available_phone_number"
)

func (AvailablePhoneNumberRecordType) AllValues

AllValues returns all AvailablePhoneNumberRecordType values.

func (*AvailablePhoneNumberRecordType) Decode

Decode decodes AvailablePhoneNumberRecordType from json.

func (AvailablePhoneNumberRecordType) Encode

Encode encodes AvailablePhoneNumberRecordType as json.

func (AvailablePhoneNumberRecordType) MarshalJSON

func (s AvailablePhoneNumberRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AvailablePhoneNumberRecordType) MarshalText

func (s AvailablePhoneNumberRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AvailablePhoneNumberRecordType) UnmarshalJSON

func (s *AvailablePhoneNumberRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AvailablePhoneNumberRecordType) UnmarshalText

func (s *AvailablePhoneNumberRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AvailablePhoneNumberRecordType) Validate

type AvailablePhoneNumbersMetadata

type AvailablePhoneNumbersMetadata struct {
	TotalResults      OptInt `json:"total_results"`
	BestEffortResults OptInt `json:"best_effort_results"`
}

Ref: #/components/schemas/AvailablePhoneNumbersMetadata

func (*AvailablePhoneNumbersMetadata) Decode

Decode decodes AvailablePhoneNumbersMetadata from json.

func (*AvailablePhoneNumbersMetadata) Encode

Encode implements json.Marshaler.

func (*AvailablePhoneNumbersMetadata) GetBestEffortResults

func (s *AvailablePhoneNumbersMetadata) GetBestEffortResults() OptInt

GetBestEffortResults returns the value of BestEffortResults.

func (*AvailablePhoneNumbersMetadata) GetTotalResults

func (s *AvailablePhoneNumbersMetadata) GetTotalResults() OptInt

GetTotalResults returns the value of TotalResults.

func (*AvailablePhoneNumbersMetadata) MarshalJSON

func (s *AvailablePhoneNumbersMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AvailablePhoneNumbersMetadata) SetBestEffortResults

func (s *AvailablePhoneNumbersMetadata) SetBestEffortResults(val OptInt)

SetBestEffortResults sets the value of BestEffortResults.

func (*AvailablePhoneNumbersMetadata) SetTotalResults

func (s *AvailablePhoneNumbersMetadata) SetTotalResults(val OptInt)

SetTotalResults sets the value of TotalResults.

func (*AvailablePhoneNumbersMetadata) UnmarshalJSON

func (s *AvailablePhoneNumbersMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AwsAccessKeyId

type AwsAccessKeyId string

func (*AwsAccessKeyId) Decode

func (s *AwsAccessKeyId) Decode(d *jx.Decoder) error

Decode decodes AwsAccessKeyId from json.

func (AwsAccessKeyId) Encode

func (s AwsAccessKeyId) Encode(e *jx.Encoder)

Encode encodes AwsAccessKeyId as json.

func (AwsAccessKeyId) MarshalJSON

func (s AwsAccessKeyId) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AwsAccessKeyId) UnmarshalJSON

func (s *AwsAccessKeyId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AwsSecretAccessKey

type AwsSecretAccessKey string

func (*AwsSecretAccessKey) Decode

func (s *AwsSecretAccessKey) Decode(d *jx.Decoder) error

Decode decodes AwsSecretAccessKey from json.

func (AwsSecretAccessKey) Encode

func (s AwsSecretAccessKey) Encode(e *jx.Encoder)

Encode encodes AwsSecretAccessKey as json.

func (AwsSecretAccessKey) MarshalJSON

func (s AwsSecretAccessKey) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AwsSecretAccessKey) UnmarshalJSON

func (s *AwsSecretAccessKey) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AzureAccountKey

type AzureAccountKey string

func (*AzureAccountKey) Decode

func (s *AzureAccountKey) Decode(d *jx.Decoder) error

Decode decodes AzureAccountKey from json.

func (AzureAccountKey) Encode

func (s AzureAccountKey) Encode(e *jx.Encoder)

Encode encodes AzureAccountKey as json.

func (AzureAccountKey) MarshalJSON

func (s AzureAccountKey) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AzureAccountKey) UnmarshalJSON

func (s *AzureAccountKey) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AzureAccountName

type AzureAccountName string

func (*AzureAccountName) Decode

func (s *AzureAccountName) Decode(d *jx.Decoder) error

Decode decodes AzureAccountName from json.

func (AzureAccountName) Encode

func (s AzureAccountName) Encode(e *jx.Encoder)

Encode encodes AzureAccountName as json.

func (AzureAccountName) MarshalJSON

func (s AzureAccountName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AzureAccountName) UnmarshalJSON

func (s *AzureAccountName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AzureConfigurationData

type AzureConfigurationData struct {
	Bucket      OptBucket           `json:"bucket"`
	AccountName OptAzureAccountName `json:"account_name"`
	AccountKey  OptAzureAccountKey  `json:"account_key"`
}

Ref: #/components/schemas/AzureConfigurationData

func (*AzureConfigurationData) Decode

func (s *AzureConfigurationData) Decode(d *jx.Decoder) error

Decode decodes AzureConfigurationData from json.

func (*AzureConfigurationData) Encode

func (s *AzureConfigurationData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AzureConfigurationData) GetAccountKey

func (s *AzureConfigurationData) GetAccountKey() OptAzureAccountKey

GetAccountKey returns the value of AccountKey.

func (*AzureConfigurationData) GetAccountName

func (s *AzureConfigurationData) GetAccountName() OptAzureAccountName

GetAccountName returns the value of AccountName.

func (*AzureConfigurationData) GetBucket

func (s *AzureConfigurationData) GetBucket() OptBucket

GetBucket returns the value of Bucket.

func (*AzureConfigurationData) MarshalJSON

func (s *AzureConfigurationData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AzureConfigurationData) SetAccountKey

func (s *AzureConfigurationData) SetAccountKey(val OptAzureAccountKey)

SetAccountKey sets the value of AccountKey.

func (*AzureConfigurationData) SetAccountName

func (s *AzureConfigurationData) SetAccountName(val OptAzureAccountName)

SetAccountName sets the value of AccountName.

func (*AzureConfigurationData) SetBucket

func (s *AzureConfigurationData) SetBucket(val OptBucket)

SetBucket sets the value of Bucket.

func (*AzureConfigurationData) UnmarshalJSON

func (s *AzureConfigurationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BearerAuth

type BearerAuth struct {
	Token string
}

func (*BearerAuth) GetToken

func (s *BearerAuth) GetToken() string

GetToken returns the value of Token.

func (*BearerAuth) SetToken

func (s *BearerAuth) SetToken(val string)

SetToken sets the value of Token.

type BridgeCallParams

type BridgeCallParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

BridgeCallParams is parameters of BridgeCall operation.

type BridgeCallRes

type BridgeCallRes interface {
	// contains filtered or unexported methods
}

type BridgeRequest

type BridgeRequest struct {
	// The Call Control ID of the call you want to bridge with, can't be used together with queue
	// parameter or video_room_id parameter.
	CallControlID string `json:"call_control_id"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
	// The name of the queue you want to bridge with, can't be used together with call_control_id
	// parameter or video_room_id parameter. Bridging with a queue means bridging with the first call in
	// the queue. The call will always be removed from the queue regardless of whether bridging succeeds.
	// Returns an error when the queue is empty.
	Queue OptString `json:"queue"`
	// The ID of the video room you want to bridge with, can't be used together with call_control_id
	// parameter or queue parameter.
	VideoRoomID OptUUID `json:"video_room_id"`
	// The additional parameter that will be passed to the video conference. It is a text field and the
	// user can decide how to use it. For example, you can set the participant name or pass JSON text. It
	// can be used only with video_room_id parameter.
	VideoRoomContext OptString `json:"video_room_context"`
	// Specifies behavior after the bridge ends (i.e. the opposite leg either hangs up or is transferred).
	//  If supplied with the value `self`, the current leg will be parked after unbridge. If not set, the
	// default behavior is to hang up the leg.
	ParkAfterUnbridge OptString `json:"park_after_unbridge"`
	// Specifies whether to play a ringtone if the call you want to bridge with has not yet been answered.
	PlayRingtone OptBool `json:"play_ringtone"`
}

Ref: #/components/schemas/BridgeRequest

func (*BridgeRequest) Decode

func (s *BridgeRequest) Decode(d *jx.Decoder) error

Decode decodes BridgeRequest from json.

func (*BridgeRequest) Encode

func (s *BridgeRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BridgeRequest) GetCallControlID

func (s *BridgeRequest) GetCallControlID() string

GetCallControlID returns the value of CallControlID.

func (*BridgeRequest) GetClientState

func (s *BridgeRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*BridgeRequest) GetCommandID

func (s *BridgeRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*BridgeRequest) GetParkAfterUnbridge

func (s *BridgeRequest) GetParkAfterUnbridge() OptString

GetParkAfterUnbridge returns the value of ParkAfterUnbridge.

func (*BridgeRequest) GetPlayRingtone

func (s *BridgeRequest) GetPlayRingtone() OptBool

GetPlayRingtone returns the value of PlayRingtone.

func (*BridgeRequest) GetQueue

func (s *BridgeRequest) GetQueue() OptString

GetQueue returns the value of Queue.

func (*BridgeRequest) GetVideoRoomContext

func (s *BridgeRequest) GetVideoRoomContext() OptString

GetVideoRoomContext returns the value of VideoRoomContext.

func (*BridgeRequest) GetVideoRoomID

func (s *BridgeRequest) GetVideoRoomID() OptUUID

GetVideoRoomID returns the value of VideoRoomID.

func (*BridgeRequest) MarshalJSON

func (s *BridgeRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BridgeRequest) SetCallControlID

func (s *BridgeRequest) SetCallControlID(val string)

SetCallControlID sets the value of CallControlID.

func (*BridgeRequest) SetClientState

func (s *BridgeRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*BridgeRequest) SetCommandID

func (s *BridgeRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*BridgeRequest) SetParkAfterUnbridge

func (s *BridgeRequest) SetParkAfterUnbridge(val OptString)

SetParkAfterUnbridge sets the value of ParkAfterUnbridge.

func (*BridgeRequest) SetPlayRingtone

func (s *BridgeRequest) SetPlayRingtone(val OptBool)

SetPlayRingtone sets the value of PlayRingtone.

func (*BridgeRequest) SetQueue

func (s *BridgeRequest) SetQueue(val OptString)

SetQueue sets the value of Queue.

func (*BridgeRequest) SetVideoRoomContext

func (s *BridgeRequest) SetVideoRoomContext(val OptString)

SetVideoRoomContext sets the value of VideoRoomContext.

func (*BridgeRequest) SetVideoRoomID

func (s *BridgeRequest) SetVideoRoomID(val OptUUID)

SetVideoRoomID sets the value of VideoRoomID.

func (*BridgeRequest) UnmarshalJSON

func (s *BridgeRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Bucket

type Bucket string

func (*Bucket) Decode

func (s *Bucket) Decode(d *jx.Decoder) error

Decode decodes Bucket from json.

func (Bucket) Encode

func (s Bucket) Encode(e *jx.Encoder)

Encode encodes Bucket as json.

func (Bucket) MarshalJSON

func (s Bucket) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Bucket) UnmarshalJSON

func (s *Bucket) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BulkCredentialActionAction

type BulkCredentialActionAction string
const (
	BulkCredentialActionActionActivate   BulkCredentialActionAction = "activate"
	BulkCredentialActionActionDeactivate BulkCredentialActionAction = "deactivate"
)

func (BulkCredentialActionAction) AllValues

AllValues returns all BulkCredentialActionAction values.

func (BulkCredentialActionAction) MarshalText

func (s BulkCredentialActionAction) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*BulkCredentialActionAction) UnmarshalText

func (s *BulkCredentialActionAction) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (BulkCredentialActionAction) Validate

func (s BulkCredentialActionAction) Validate() error

type BulkCredentialActionNotFound

type BulkCredentialActionNotFound struct{}

BulkCredentialActionNotFound is response for BulkCredentialAction operation.

type BulkCredentialActionParams

type BulkCredentialActionParams struct {
	// Identifies the action to be taken. Activate will change the status to active. Deactivate will
	// change the status to inactive.
	Action BulkCredentialActionAction
	// Filter by tag, required by bulk operations.
	FilterTag string
}

BulkCredentialActionParams is parameters of BulkCredentialAction operation.

type BulkCredentialActionRes

type BulkCredentialActionRes interface {
	// contains filtered or unexported methods
}

type BulkCredentialActionUnauthorized

type BulkCredentialActionUnauthorized struct{}

BulkCredentialActionUnauthorized is response for BulkCredentialAction operation.

type BulkCredentialActionUnprocessableEntity

type BulkCredentialActionUnprocessableEntity struct{}

BulkCredentialActionUnprocessableEntity is response for BulkCredentialAction operation.

type BulkCredentialRequest

type BulkCredentialRequest struct {
	// A default name for all credentials.
	Name OptString `json:"name"`
	// Tags a credential for bulk operations. A single tag can hold at maximum 1000 credentials.
	Tag string `json:"tag"`
	// Amount of credentials to be created. A single tag can hold at maximum 1000 credentials.
	Amount OptInt `json:"amount"`
	// Identifies the connection this credential is associated with.
	ConnectionID string `json:"connection_id"`
}

Ref: #/components/schemas/BulkCredentialRequest

func (*BulkCredentialRequest) Decode

func (s *BulkCredentialRequest) Decode(d *jx.Decoder) error

Decode decodes BulkCredentialRequest from json.

func (*BulkCredentialRequest) Encode

func (s *BulkCredentialRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BulkCredentialRequest) GetAmount

func (s *BulkCredentialRequest) GetAmount() OptInt

GetAmount returns the value of Amount.

func (*BulkCredentialRequest) GetConnectionID

func (s *BulkCredentialRequest) GetConnectionID() string

GetConnectionID returns the value of ConnectionID.

func (*BulkCredentialRequest) GetName

func (s *BulkCredentialRequest) GetName() OptString

GetName returns the value of Name.

func (*BulkCredentialRequest) GetTag

func (s *BulkCredentialRequest) GetTag() string

GetTag returns the value of Tag.

func (*BulkCredentialRequest) MarshalJSON

func (s *BulkCredentialRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BulkCredentialRequest) SetAmount

func (s *BulkCredentialRequest) SetAmount(val OptInt)

SetAmount sets the value of Amount.

func (*BulkCredentialRequest) SetConnectionID

func (s *BulkCredentialRequest) SetConnectionID(val string)

SetConnectionID sets the value of ConnectionID.

func (*BulkCredentialRequest) SetName

func (s *BulkCredentialRequest) SetName(val OptString)

SetName sets the value of Name.

func (*BulkCredentialRequest) SetTag

func (s *BulkCredentialRequest) SetTag(val string)

SetTag sets the value of Tag.

func (*BulkCredentialRequest) UnmarshalJSON

func (s *BulkCredentialRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BulkCredentialResponse

type BulkCredentialResponse struct {
	Data OptBulkCredentialResponseData `json:"data"`
}

func (*BulkCredentialResponse) Decode

func (s *BulkCredentialResponse) Decode(d *jx.Decoder) error

Decode decodes BulkCredentialResponse from json.

func (*BulkCredentialResponse) Encode

func (s *BulkCredentialResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BulkCredentialResponse) GetData

GetData returns the value of Data.

func (*BulkCredentialResponse) MarshalJSON

func (s *BulkCredentialResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BulkCredentialResponse) SetData

SetData sets the value of Data.

func (*BulkCredentialResponse) UnmarshalJSON

func (s *BulkCredentialResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BulkCredentialResponseData

type BulkCredentialResponseData struct {
	// Amount of credentials affected.
	Credentials OptInt `json:"credentials"`
}

func (*BulkCredentialResponseData) Decode

Decode decodes BulkCredentialResponseData from json.

func (*BulkCredentialResponseData) Encode

func (s *BulkCredentialResponseData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BulkCredentialResponseData) GetCredentials

func (s *BulkCredentialResponseData) GetCredentials() OptInt

GetCredentials returns the value of Credentials.

func (*BulkCredentialResponseData) MarshalJSON

func (s *BulkCredentialResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BulkCredentialResponseData) SetCredentials

func (s *BulkCredentialResponseData) SetCredentials(val OptInt)

SetCredentials sets the value of Credentials.

func (*BulkCredentialResponseData) UnmarshalJSON

func (s *BulkCredentialResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BulkDeleteRoomRecordingsResponse

type BulkDeleteRoomRecordingsResponse struct {
	Data OptBulkDeleteRoomRecordingsResponseData `json:"data"`
}

func (*BulkDeleteRoomRecordingsResponse) Decode

Decode decodes BulkDeleteRoomRecordingsResponse from json.

func (*BulkDeleteRoomRecordingsResponse) Encode

Encode implements json.Marshaler.

func (*BulkDeleteRoomRecordingsResponse) GetData

GetData returns the value of Data.

func (*BulkDeleteRoomRecordingsResponse) MarshalJSON

func (s *BulkDeleteRoomRecordingsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BulkDeleteRoomRecordingsResponse) SetData

SetData sets the value of Data.

func (*BulkDeleteRoomRecordingsResponse) UnmarshalJSON

func (s *BulkDeleteRoomRecordingsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BulkDeleteRoomRecordingsResponseData

type BulkDeleteRoomRecordingsResponseData struct {
	// Amount of room recordings affected.
	RoomRecordings OptInt `json:"room_recordings"`
}

func (*BulkDeleteRoomRecordingsResponseData) Decode

Decode decodes BulkDeleteRoomRecordingsResponseData from json.

func (*BulkDeleteRoomRecordingsResponseData) Encode

Encode implements json.Marshaler.

func (*BulkDeleteRoomRecordingsResponseData) GetRoomRecordings

func (s *BulkDeleteRoomRecordingsResponseData) GetRoomRecordings() OptInt

GetRoomRecordings returns the value of RoomRecordings.

func (*BulkDeleteRoomRecordingsResponseData) MarshalJSON

func (s *BulkDeleteRoomRecordingsResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BulkDeleteRoomRecordingsResponseData) SetRoomRecordings

func (s *BulkDeleteRoomRecordingsResponseData) SetRoomRecordings(val OptInt)

SetRoomRecordings sets the value of RoomRecordings.

func (*BulkDeleteRoomRecordingsResponseData) UnmarshalJSON

func (s *BulkDeleteRoomRecordingsResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Call

type Call struct {
	RecordType CallRecordType `json:"record_type"`
	// ID that is unique to the call session and can be used to correlate webhook events. Call session is
	// a group of related call legs that logically belong to the same phone call, e.g. an inbound and
	// outbound leg of a transferred call.
	CallSessionID string `json:"call_session_id"`
	// ID that is unique to the call and can be used to correlate webhook events.
	CallLegID string `json:"call_leg_id"`
	// Unique identifier and token for controlling the call.
	CallControlID string `json:"call_control_id"`
	// Indicates whether the call is alive or not. For Dial command it will always be `false` (dialing is
	// asynchronous).
	IsAlive bool `json:"is_alive"`
	// State received from a command.
	ClientState OptString `json:"client_state"`
	// Indicates the duration of the call in seconds.
	CallDuration OptInt `json:"call_duration"`
}

Ref: #/components/schemas/Call

func (*Call) Decode

func (s *Call) Decode(d *jx.Decoder) error

Decode decodes Call from json.

func (*Call) Encode

func (s *Call) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Call) GetCallControlID

func (s *Call) GetCallControlID() string

GetCallControlID returns the value of CallControlID.

func (*Call) GetCallDuration

func (s *Call) GetCallDuration() OptInt

GetCallDuration returns the value of CallDuration.

func (*Call) GetCallLegID

func (s *Call) GetCallLegID() string

GetCallLegID returns the value of CallLegID.

func (*Call) GetCallSessionID

func (s *Call) GetCallSessionID() string

GetCallSessionID returns the value of CallSessionID.

func (*Call) GetClientState

func (s *Call) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*Call) GetIsAlive

func (s *Call) GetIsAlive() bool

GetIsAlive returns the value of IsAlive.

func (*Call) GetRecordType

func (s *Call) GetRecordType() CallRecordType

GetRecordType returns the value of RecordType.

func (*Call) MarshalJSON

func (s *Call) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Call) SetCallControlID

func (s *Call) SetCallControlID(val string)

SetCallControlID sets the value of CallControlID.

func (*Call) SetCallDuration

func (s *Call) SetCallDuration(val OptInt)

SetCallDuration sets the value of CallDuration.

func (*Call) SetCallLegID

func (s *Call) SetCallLegID(val string)

SetCallLegID sets the value of CallLegID.

func (*Call) SetCallSessionID

func (s *Call) SetCallSessionID(val string)

SetCallSessionID sets the value of CallSessionID.

func (*Call) SetClientState

func (s *Call) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*Call) SetIsAlive

func (s *Call) SetIsAlive(val bool)

SetIsAlive sets the value of IsAlive.

func (*Call) SetRecordType

func (s *Call) SetRecordType(val CallRecordType)

SetRecordType sets the value of RecordType.

func (*Call) UnmarshalJSON

func (s *Call) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Call) Validate

func (s *Call) Validate() error

type CallControlApplication

type CallControlApplication struct {
	// Specifies whether the connection can be used.
	Active             OptBool               `json:"active"`
	AnchorsiteOverride OptAnchorsiteOverride `json:"anchorsite_override"`
	// A user-assigned name to help manage the application.
	ApplicationName OptString `json:"application_name"`
	// ISO 8601 formatted date of when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to
	// Telnyx will be accepted in all formats.
	DtmfType OptCallControlApplicationDtmfType `json:"dtmf_type"`
	// Specifies whether calls to phone numbers associated with this connection should hangup after
	// timing out.
	FirstCommandTimeout OptBool `json:"first_command_timeout"`
	// Specifies how many seconds to wait before timing out a dial command.
	FirstCommandTimeoutSecs OptInt                              `json:"first_command_timeout_secs"`
	ID                      OptStringInt64                      `json:"id"`
	Inbound                 OptCallControlApplicationInbound    `json:"inbound"`
	Outbound                OptCallControlApplicationOutbound   `json:"outbound"`
	RecordType              OptCallControlApplicationRecordType `json:"record_type"`
	// ISO 8601 formatted date of when the resource was last updated.
	UpdatedAt OptString `json:"updated_at"`
	// Determines which webhook format will be used, Telnyx API v1 or v2.
	WebhookAPIVersion OptCallControlApplicationWebhookAPIVersion `json:"webhook_api_version"`
	// The failover URL where webhooks related to this connection will be sent if sending to the primary
	// URL fails. Must include a scheme, such as `https`.
	WebhookEventFailoverURL OptNilString `json:"webhook_event_failover_url"`
	// The URL where webhooks related to this connection will be sent. Must include a scheme, such as
	// `https`.
	WebhookEventURL    OptString `json:"webhook_event_url"`
	WebhookTimeoutSecs OptNilInt `json:"webhook_timeout_secs"`
}

Ref: #/components/schemas/CallControlApplication

func (*CallControlApplication) Decode

func (s *CallControlApplication) Decode(d *jx.Decoder) error

Decode decodes CallControlApplication from json.

func (*CallControlApplication) Encode

func (s *CallControlApplication) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CallControlApplication) GetActive

func (s *CallControlApplication) GetActive() OptBool

GetActive returns the value of Active.

func (*CallControlApplication) GetAnchorsiteOverride

func (s *CallControlApplication) GetAnchorsiteOverride() OptAnchorsiteOverride

GetAnchorsiteOverride returns the value of AnchorsiteOverride.

func (*CallControlApplication) GetApplicationName

func (s *CallControlApplication) GetApplicationName() OptString

GetApplicationName returns the value of ApplicationName.

func (*CallControlApplication) GetCreatedAt

func (s *CallControlApplication) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*CallControlApplication) GetDtmfType

GetDtmfType returns the value of DtmfType.

func (*CallControlApplication) GetFirstCommandTimeout

func (s *CallControlApplication) GetFirstCommandTimeout() OptBool

GetFirstCommandTimeout returns the value of FirstCommandTimeout.

func (*CallControlApplication) GetFirstCommandTimeoutSecs

func (s *CallControlApplication) GetFirstCommandTimeoutSecs() OptInt

GetFirstCommandTimeoutSecs returns the value of FirstCommandTimeoutSecs.

func (*CallControlApplication) GetID

GetID returns the value of ID.

func (*CallControlApplication) GetInbound

GetInbound returns the value of Inbound.

func (*CallControlApplication) GetOutbound

GetOutbound returns the value of Outbound.

func (*CallControlApplication) GetRecordType

GetRecordType returns the value of RecordType.

func (*CallControlApplication) GetUpdatedAt

func (s *CallControlApplication) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*CallControlApplication) GetWebhookAPIVersion

GetWebhookAPIVersion returns the value of WebhookAPIVersion.

func (*CallControlApplication) GetWebhookEventFailoverURL

func (s *CallControlApplication) GetWebhookEventFailoverURL() OptNilString

GetWebhookEventFailoverURL returns the value of WebhookEventFailoverURL.

func (*CallControlApplication) GetWebhookEventURL

func (s *CallControlApplication) GetWebhookEventURL() OptString

GetWebhookEventURL returns the value of WebhookEventURL.

func (*CallControlApplication) GetWebhookTimeoutSecs

func (s *CallControlApplication) GetWebhookTimeoutSecs() OptNilInt

GetWebhookTimeoutSecs returns the value of WebhookTimeoutSecs.

func (*CallControlApplication) MarshalJSON

func (s *CallControlApplication) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallControlApplication) SetActive

func (s *CallControlApplication) SetActive(val OptBool)

SetActive sets the value of Active.

func (*CallControlApplication) SetAnchorsiteOverride

func (s *CallControlApplication) SetAnchorsiteOverride(val OptAnchorsiteOverride)

SetAnchorsiteOverride sets the value of AnchorsiteOverride.

func (*CallControlApplication) SetApplicationName

func (s *CallControlApplication) SetApplicationName(val OptString)

SetApplicationName sets the value of ApplicationName.

func (*CallControlApplication) SetCreatedAt

func (s *CallControlApplication) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*CallControlApplication) SetDtmfType

SetDtmfType sets the value of DtmfType.

func (*CallControlApplication) SetFirstCommandTimeout

func (s *CallControlApplication) SetFirstCommandTimeout(val OptBool)

SetFirstCommandTimeout sets the value of FirstCommandTimeout.

func (*CallControlApplication) SetFirstCommandTimeoutSecs

func (s *CallControlApplication) SetFirstCommandTimeoutSecs(val OptInt)

SetFirstCommandTimeoutSecs sets the value of FirstCommandTimeoutSecs.

func (*CallControlApplication) SetID

func (s *CallControlApplication) SetID(val OptStringInt64)

SetID sets the value of ID.

func (*CallControlApplication) SetInbound

SetInbound sets the value of Inbound.

func (*CallControlApplication) SetOutbound

SetOutbound sets the value of Outbound.

func (*CallControlApplication) SetRecordType

SetRecordType sets the value of RecordType.

func (*CallControlApplication) SetUpdatedAt

func (s *CallControlApplication) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*CallControlApplication) SetWebhookAPIVersion

SetWebhookAPIVersion sets the value of WebhookAPIVersion.

func (*CallControlApplication) SetWebhookEventFailoverURL

func (s *CallControlApplication) SetWebhookEventFailoverURL(val OptNilString)

SetWebhookEventFailoverURL sets the value of WebhookEventFailoverURL.

func (*CallControlApplication) SetWebhookEventURL

func (s *CallControlApplication) SetWebhookEventURL(val OptString)

SetWebhookEventURL sets the value of WebhookEventURL.

func (*CallControlApplication) SetWebhookTimeoutSecs

func (s *CallControlApplication) SetWebhookTimeoutSecs(val OptNilInt)

SetWebhookTimeoutSecs sets the value of WebhookTimeoutSecs.

func (*CallControlApplication) UnmarshalJSON

func (s *CallControlApplication) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallControlApplication) Validate

func (s *CallControlApplication) Validate() error

type CallControlApplicationDtmfType

type CallControlApplicationDtmfType string

Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats.

const (
	CallControlApplicationDtmfTypeRFC2833 CallControlApplicationDtmfType = "RFC 2833"
	CallControlApplicationDtmfTypeInband  CallControlApplicationDtmfType = "Inband"
	CallControlApplicationDtmfTypeSIPINFO CallControlApplicationDtmfType = "SIP INFO"
)

func (CallControlApplicationDtmfType) AllValues

AllValues returns all CallControlApplicationDtmfType values.

func (*CallControlApplicationDtmfType) Decode

Decode decodes CallControlApplicationDtmfType from json.

func (CallControlApplicationDtmfType) Encode

Encode encodes CallControlApplicationDtmfType as json.

func (CallControlApplicationDtmfType) MarshalJSON

func (s CallControlApplicationDtmfType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallControlApplicationDtmfType) MarshalText

func (s CallControlApplicationDtmfType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallControlApplicationDtmfType) UnmarshalJSON

func (s *CallControlApplicationDtmfType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallControlApplicationDtmfType) UnmarshalText

func (s *CallControlApplicationDtmfType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallControlApplicationDtmfType) Validate

type CallControlApplicationInbound

type CallControlApplicationInbound struct {
	// When set, this will limit the total number of inbound calls to phone numbers associated with this
	// connection.
	ChannelLimit OptNilInt `json:"channel_limit"`
	// When enabled Telnyx will include Shaken/Stir data in the Webhook for new inbound calls.
	ShakenStirEnabled OptBool `json:"shaken_stir_enabled"`
	// Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a
	// phone number is used, from a SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be
	// called from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" where the user
	// part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain
	// calls.
	SipSubdomain OptNilString `json:"sip_subdomain"`
	// This option can be enabled to receive calls from: "Anyone" (any SIP endpoint in the public
	// Internet) or "Only my connections" (any connection assigned to the same Telnyx user).
	SipSubdomainReceiveSettings OptCallControlApplicationInboundSipSubdomainReceiveSettings `json:"sip_subdomain_receive_settings"`
}

Ref: #/components/schemas/CallControlApplicationInbound

func (*CallControlApplicationInbound) Decode

Decode decodes CallControlApplicationInbound from json.

func (*CallControlApplicationInbound) Encode

Encode implements json.Marshaler.

func (*CallControlApplicationInbound) GetChannelLimit

func (s *CallControlApplicationInbound) GetChannelLimit() OptNilInt

GetChannelLimit returns the value of ChannelLimit.

func (*CallControlApplicationInbound) GetShakenStirEnabled

func (s *CallControlApplicationInbound) GetShakenStirEnabled() OptBool

GetShakenStirEnabled returns the value of ShakenStirEnabled.

func (*CallControlApplicationInbound) GetSipSubdomain

func (s *CallControlApplicationInbound) GetSipSubdomain() OptNilString

GetSipSubdomain returns the value of SipSubdomain.

func (*CallControlApplicationInbound) GetSipSubdomainReceiveSettings

GetSipSubdomainReceiveSettings returns the value of SipSubdomainReceiveSettings.

func (*CallControlApplicationInbound) MarshalJSON

func (s *CallControlApplicationInbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallControlApplicationInbound) SetChannelLimit

func (s *CallControlApplicationInbound) SetChannelLimit(val OptNilInt)

SetChannelLimit sets the value of ChannelLimit.

func (*CallControlApplicationInbound) SetShakenStirEnabled

func (s *CallControlApplicationInbound) SetShakenStirEnabled(val OptBool)

SetShakenStirEnabled sets the value of ShakenStirEnabled.

func (*CallControlApplicationInbound) SetSipSubdomain

func (s *CallControlApplicationInbound) SetSipSubdomain(val OptNilString)

SetSipSubdomain sets the value of SipSubdomain.

func (*CallControlApplicationInbound) SetSipSubdomainReceiveSettings

SetSipSubdomainReceiveSettings sets the value of SipSubdomainReceiveSettings.

func (*CallControlApplicationInbound) UnmarshalJSON

func (s *CallControlApplicationInbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallControlApplicationInbound) Validate

func (s *CallControlApplicationInbound) Validate() error

type CallControlApplicationInboundSipSubdomainReceiveSettings

type CallControlApplicationInboundSipSubdomainReceiveSettings string

This option can be enabled to receive calls from: "Anyone" (any SIP endpoint in the public Internet) or "Only my connections" (any connection assigned to the same Telnyx user).

const (
	CallControlApplicationInboundSipSubdomainReceiveSettingsOnlyMyConnections CallControlApplicationInboundSipSubdomainReceiveSettings = "only_my_connections"
	CallControlApplicationInboundSipSubdomainReceiveSettingsFromAnyone        CallControlApplicationInboundSipSubdomainReceiveSettings = "from_anyone"
)

func (CallControlApplicationInboundSipSubdomainReceiveSettings) AllValues

AllValues returns all CallControlApplicationInboundSipSubdomainReceiveSettings values.

func (*CallControlApplicationInboundSipSubdomainReceiveSettings) Decode

Decode decodes CallControlApplicationInboundSipSubdomainReceiveSettings from json.

func (CallControlApplicationInboundSipSubdomainReceiveSettings) Encode

Encode encodes CallControlApplicationInboundSipSubdomainReceiveSettings as json.

func (CallControlApplicationInboundSipSubdomainReceiveSettings) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CallControlApplicationInboundSipSubdomainReceiveSettings) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CallControlApplicationInboundSipSubdomainReceiveSettings) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallControlApplicationInboundSipSubdomainReceiveSettings) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (CallControlApplicationInboundSipSubdomainReceiveSettings) Validate

type CallControlApplicationOutbound

type CallControlApplicationOutbound struct {
	// When set, this will limit the total number of outbound calls to phone numbers associated with this
	// connection.
	ChannelLimit OptNilInt `json:"channel_limit"`
	// Identifies the associated outbound voice profile.
	OutboundVoiceProfileID OptStringInt64 `json:"outbound_voice_profile_id"`
}

Ref: #/components/schemas/CallControlApplicationOutbound

func (*CallControlApplicationOutbound) Decode

Decode decodes CallControlApplicationOutbound from json.

func (*CallControlApplicationOutbound) Encode

Encode implements json.Marshaler.

func (*CallControlApplicationOutbound) GetChannelLimit

func (s *CallControlApplicationOutbound) GetChannelLimit() OptNilInt

GetChannelLimit returns the value of ChannelLimit.

func (*CallControlApplicationOutbound) GetOutboundVoiceProfileID

func (s *CallControlApplicationOutbound) GetOutboundVoiceProfileID() OptStringInt64

GetOutboundVoiceProfileID returns the value of OutboundVoiceProfileID.

func (*CallControlApplicationOutbound) MarshalJSON

func (s *CallControlApplicationOutbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallControlApplicationOutbound) SetChannelLimit

func (s *CallControlApplicationOutbound) SetChannelLimit(val OptNilInt)

SetChannelLimit sets the value of ChannelLimit.

func (*CallControlApplicationOutbound) SetOutboundVoiceProfileID

func (s *CallControlApplicationOutbound) SetOutboundVoiceProfileID(val OptStringInt64)

SetOutboundVoiceProfileID sets the value of OutboundVoiceProfileID.

func (*CallControlApplicationOutbound) UnmarshalJSON

func (s *CallControlApplicationOutbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CallControlApplicationRecordType

type CallControlApplicationRecordType string
const (
	CallControlApplicationRecordTypeCallControlApplication CallControlApplicationRecordType = "call_control_application"
)

func (CallControlApplicationRecordType) AllValues

AllValues returns all CallControlApplicationRecordType values.

func (*CallControlApplicationRecordType) Decode

Decode decodes CallControlApplicationRecordType from json.

func (CallControlApplicationRecordType) Encode

Encode encodes CallControlApplicationRecordType as json.

func (CallControlApplicationRecordType) MarshalJSON

func (s CallControlApplicationRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallControlApplicationRecordType) MarshalText

func (s CallControlApplicationRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallControlApplicationRecordType) UnmarshalJSON

func (s *CallControlApplicationRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallControlApplicationRecordType) UnmarshalText

func (s *CallControlApplicationRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallControlApplicationRecordType) Validate

type CallControlApplicationResponse

type CallControlApplicationResponse struct {
	Data OptCallControlApplication `json:"data"`
}

func (*CallControlApplicationResponse) Decode

Decode decodes CallControlApplicationResponse from json.

func (*CallControlApplicationResponse) Encode

Encode implements json.Marshaler.

func (*CallControlApplicationResponse) GetData

GetData returns the value of Data.

func (*CallControlApplicationResponse) MarshalJSON

func (s *CallControlApplicationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallControlApplicationResponse) SetData

SetData sets the value of Data.

func (*CallControlApplicationResponse) UnmarshalJSON

func (s *CallControlApplicationResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallControlApplicationResponse) Validate

func (s *CallControlApplicationResponse) Validate() error

type CallControlApplicationWebhookAPIVersion

type CallControlApplicationWebhookAPIVersion string

Determines which webhook format will be used, Telnyx API v1 or v2.

const (
	CallControlApplicationWebhookAPIVersion1 CallControlApplicationWebhookAPIVersion = "1"
	CallControlApplicationWebhookAPIVersion2 CallControlApplicationWebhookAPIVersion = "2"
)

func (CallControlApplicationWebhookAPIVersion) AllValues

AllValues returns all CallControlApplicationWebhookAPIVersion values.

func (*CallControlApplicationWebhookAPIVersion) Decode

Decode decodes CallControlApplicationWebhookAPIVersion from json.

func (CallControlApplicationWebhookAPIVersion) Encode

Encode encodes CallControlApplicationWebhookAPIVersion as json.

func (CallControlApplicationWebhookAPIVersion) MarshalJSON

func (s CallControlApplicationWebhookAPIVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallControlApplicationWebhookAPIVersion) MarshalText

func (s CallControlApplicationWebhookAPIVersion) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallControlApplicationWebhookAPIVersion) UnmarshalJSON

func (s *CallControlApplicationWebhookAPIVersion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallControlApplicationWebhookAPIVersion) UnmarshalText

func (s *CallControlApplicationWebhookAPIVersion) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallControlApplicationWebhookAPIVersion) Validate

type CallControlCommandResponse

type CallControlCommandResponse struct {
	Data OptCallControlCommandResult `json:"data"`
}

func (*CallControlCommandResponse) Decode

Decode decodes CallControlCommandResponse from json.

func (*CallControlCommandResponse) Encode

func (s *CallControlCommandResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CallControlCommandResponse) GetData

GetData returns the value of Data.

func (*CallControlCommandResponse) MarshalJSON

func (s *CallControlCommandResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallControlCommandResponse) SetData

SetData sets the value of Data.

func (*CallControlCommandResponse) UnmarshalJSON

func (s *CallControlCommandResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CallControlCommandResult

type CallControlCommandResult struct {
	Result OptString `json:"result"`
}

Ref: #/components/schemas/CallControlCommandResult

func (*CallControlCommandResult) Decode

func (s *CallControlCommandResult) Decode(d *jx.Decoder) error

Decode decodes CallControlCommandResult from json.

func (*CallControlCommandResult) Encode

func (s *CallControlCommandResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CallControlCommandResult) GetResult

func (s *CallControlCommandResult) GetResult() OptString

GetResult returns the value of Result.

func (*CallControlCommandResult) MarshalJSON

func (s *CallControlCommandResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallControlCommandResult) SetResult

func (s *CallControlCommandResult) SetResult(val OptString)

SetResult sets the value of Result.

func (*CallControlCommandResult) UnmarshalJSON

func (s *CallControlCommandResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CallControlId

type CallControlId string

func (*CallControlId) Decode

func (s *CallControlId) Decode(d *jx.Decoder) error

Decode decodes CallControlId from json.

func (CallControlId) Encode

func (s CallControlId) Encode(e *jx.Encoder)

Encode encodes CallControlId as json.

func (CallControlId) MarshalJSON

func (s CallControlId) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallControlId) UnmarshalJSON

func (s *CallControlId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CallForwarding

type CallForwarding struct {
	// Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type
	// are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints.
	CallForwardingEnabled OptBool `json:"call_forwarding_enabled"`
	// The phone number to which inbound calls to this number are forwarded. Inbound calls will not be
	// forwarded if this field is left blank. If set, must be a +E.164-formatted phone number.
	ForwardsTo OptString `json:"forwards_to"`
	// Call forwarding type. 'forwards_to' must be set for this to have an effect.
	ForwardingType OptCallForwardingForwardingType `json:"forwarding_type"`
}

The call forwarding settings for a phone number. Ref: #/components/schemas/CallForwarding

func (*CallForwarding) Decode

func (s *CallForwarding) Decode(d *jx.Decoder) error

Decode decodes CallForwarding from json.

func (*CallForwarding) Encode

func (s *CallForwarding) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CallForwarding) GetCallForwardingEnabled

func (s *CallForwarding) GetCallForwardingEnabled() OptBool

GetCallForwardingEnabled returns the value of CallForwardingEnabled.

func (*CallForwarding) GetForwardingType

func (s *CallForwarding) GetForwardingType() OptCallForwardingForwardingType

GetForwardingType returns the value of ForwardingType.

func (*CallForwarding) GetForwardsTo

func (s *CallForwarding) GetForwardsTo() OptString

GetForwardsTo returns the value of ForwardsTo.

func (*CallForwarding) MarshalJSON

func (s *CallForwarding) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallForwarding) SetCallForwardingEnabled

func (s *CallForwarding) SetCallForwardingEnabled(val OptBool)

SetCallForwardingEnabled sets the value of CallForwardingEnabled.

func (*CallForwarding) SetForwardingType

func (s *CallForwarding) SetForwardingType(val OptCallForwardingForwardingType)

SetForwardingType sets the value of ForwardingType.

func (*CallForwarding) SetForwardsTo

func (s *CallForwarding) SetForwardsTo(val OptString)

SetForwardsTo sets the value of ForwardsTo.

func (*CallForwarding) UnmarshalJSON

func (s *CallForwarding) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallForwarding) Validate

func (s *CallForwarding) Validate() error

type CallForwardingForwardingType

type CallForwardingForwardingType string

Call forwarding type. 'forwards_to' must be set for this to have an effect.

const (
	CallForwardingForwardingTypeAlways    CallForwardingForwardingType = "always"
	CallForwardingForwardingTypeOnFailure CallForwardingForwardingType = "on_failure"
)

func (CallForwardingForwardingType) AllValues

AllValues returns all CallForwardingForwardingType values.

func (*CallForwardingForwardingType) Decode

Decode decodes CallForwardingForwardingType from json.

func (CallForwardingForwardingType) Encode

Encode encodes CallForwardingForwardingType as json.

func (CallForwardingForwardingType) MarshalJSON

func (s CallForwardingForwardingType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallForwardingForwardingType) MarshalText

func (s CallForwardingForwardingType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallForwardingForwardingType) UnmarshalJSON

func (s *CallForwardingForwardingType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallForwardingForwardingType) UnmarshalText

func (s *CallForwardingForwardingType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallForwardingForwardingType) Validate

func (s CallForwardingForwardingType) Validate() error

type CallReasons

type CallReasons []CallReasonsItem

func (*CallReasons) Decode

func (s *CallReasons) Decode(d *jx.Decoder) error

Decode decodes CallReasons from json.

func (CallReasons) Encode

func (s CallReasons) Encode(e *jx.Encoder)

Encode encodes CallReasons as json.

func (CallReasons) MarshalJSON

func (s CallReasons) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallReasons) UnmarshalJSON

func (s *CallReasons) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (CallReasons) Validate

func (s CallReasons) Validate() error

type CallReasonsItem

type CallReasonsItem struct {
	RecordType OptString `json:"record_type"`
	ID         OptUUID   `json:"id"`
	// The Call Reason text to be displayed to the call recipient.
	Reason OptString `json:"reason"`
	// The approval status of this individual call reason in Google.
	GoogleVerificationStatus OptCallReasonsItemGoogleVerificationStatus `json:"google_verification_status"`
	// Additional information about the decision, if available.
	GoogleApprovalInfo OptString `json:"google_approval_info"`
	DisplayProfileID   OptUUID   `json:"display_profile_id"`
	// Marks the Phone Number to be removed from the Display Profile.
	Delete OptBool `json:"delete"`
}

The Call Reason to be displayed to the call recipient.

func (*CallReasonsItem) Decode

func (s *CallReasonsItem) Decode(d *jx.Decoder) error

Decode decodes CallReasonsItem from json.

func (*CallReasonsItem) Encode

func (s *CallReasonsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CallReasonsItem) GetDelete

func (s *CallReasonsItem) GetDelete() OptBool

GetDelete returns the value of Delete.

func (*CallReasonsItem) GetDisplayProfileID

func (s *CallReasonsItem) GetDisplayProfileID() OptUUID

GetDisplayProfileID returns the value of DisplayProfileID.

func (*CallReasonsItem) GetGoogleApprovalInfo

func (s *CallReasonsItem) GetGoogleApprovalInfo() OptString

GetGoogleApprovalInfo returns the value of GoogleApprovalInfo.

func (*CallReasonsItem) GetGoogleVerificationStatus

func (s *CallReasonsItem) GetGoogleVerificationStatus() OptCallReasonsItemGoogleVerificationStatus

GetGoogleVerificationStatus returns the value of GoogleVerificationStatus.

func (*CallReasonsItem) GetID

func (s *CallReasonsItem) GetID() OptUUID

GetID returns the value of ID.

func (*CallReasonsItem) GetReason

func (s *CallReasonsItem) GetReason() OptString

GetReason returns the value of Reason.

func (*CallReasonsItem) GetRecordType

func (s *CallReasonsItem) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*CallReasonsItem) MarshalJSON

func (s *CallReasonsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallReasonsItem) SetDelete

func (s *CallReasonsItem) SetDelete(val OptBool)

SetDelete sets the value of Delete.

func (*CallReasonsItem) SetDisplayProfileID

func (s *CallReasonsItem) SetDisplayProfileID(val OptUUID)

SetDisplayProfileID sets the value of DisplayProfileID.

func (*CallReasonsItem) SetGoogleApprovalInfo

func (s *CallReasonsItem) SetGoogleApprovalInfo(val OptString)

SetGoogleApprovalInfo sets the value of GoogleApprovalInfo.

func (*CallReasonsItem) SetGoogleVerificationStatus

func (s *CallReasonsItem) SetGoogleVerificationStatus(val OptCallReasonsItemGoogleVerificationStatus)

SetGoogleVerificationStatus sets the value of GoogleVerificationStatus.

func (*CallReasonsItem) SetID

func (s *CallReasonsItem) SetID(val OptUUID)

SetID sets the value of ID.

func (*CallReasonsItem) SetReason

func (s *CallReasonsItem) SetReason(val OptString)

SetReason sets the value of Reason.

func (*CallReasonsItem) SetRecordType

func (s *CallReasonsItem) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*CallReasonsItem) UnmarshalJSON

func (s *CallReasonsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallReasonsItem) Validate

func (s *CallReasonsItem) Validate() error

type CallReasonsItemGoogleVerificationStatus

type CallReasonsItemGoogleVerificationStatus string

The approval status of this individual call reason in Google.

const (
	CallReasonsItemGoogleVerificationStatusSTATEUNSPECIFIED CallReasonsItemGoogleVerificationStatus = "STATE_UNSPECIFIED"
	CallReasonsItemGoogleVerificationStatusPENDINGAPPROVAL  CallReasonsItemGoogleVerificationStatus = "PENDING_APPROVAL"
	CallReasonsItemGoogleVerificationStatusAPPROVED         CallReasonsItemGoogleVerificationStatus = "APPROVED"
	CallReasonsItemGoogleVerificationStatusDENIED           CallReasonsItemGoogleVerificationStatus = "DENIED"
	CallReasonsItemGoogleVerificationStatusPENDINGREMOVAL   CallReasonsItemGoogleVerificationStatus = "PENDING_REMOVAL"
)

func (CallReasonsItemGoogleVerificationStatus) AllValues

AllValues returns all CallReasonsItemGoogleVerificationStatus values.

func (*CallReasonsItemGoogleVerificationStatus) Decode

Decode decodes CallReasonsItemGoogleVerificationStatus from json.

func (CallReasonsItemGoogleVerificationStatus) Encode

Encode encodes CallReasonsItemGoogleVerificationStatus as json.

func (CallReasonsItemGoogleVerificationStatus) MarshalJSON

func (s CallReasonsItemGoogleVerificationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallReasonsItemGoogleVerificationStatus) MarshalText

func (s CallReasonsItemGoogleVerificationStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallReasonsItemGoogleVerificationStatus) UnmarshalJSON

func (s *CallReasonsItemGoogleVerificationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallReasonsItemGoogleVerificationStatus) UnmarshalText

func (s *CallReasonsItemGoogleVerificationStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallReasonsItemGoogleVerificationStatus) Validate

type CallRecordType

type CallRecordType string
const (
	CallRecordTypeCall CallRecordType = "call"
)

func (CallRecordType) AllValues

func (CallRecordType) AllValues() []CallRecordType

AllValues returns all CallRecordType values.

func (*CallRecordType) Decode

func (s *CallRecordType) Decode(d *jx.Decoder) error

Decode decodes CallRecordType from json.

func (CallRecordType) Encode

func (s CallRecordType) Encode(e *jx.Encoder)

Encode encodes CallRecordType as json.

func (CallRecordType) MarshalJSON

func (s CallRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRecordType) MarshalText

func (s CallRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRecordType) UnmarshalJSON

func (s *CallRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRecordType) UnmarshalText

func (s *CallRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRecordType) Validate

func (s CallRecordType) Validate() error

type CallRecording

type CallRecording struct {
	// When enabled, any inbound call to this number will be recorded.
	InboundCallRecordingEnabled OptBool `json:"inbound_call_recording_enabled"`
	// The audio file format for calls being recorded.
	InboundCallRecordingFormat OptCallRecordingInboundCallRecordingFormat `json:"inbound_call_recording_format"`
	// When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel
	// A, and the rest on channel B.
	InboundCallRecordingChannels OptCallRecordingInboundCallRecordingChannels `json:"inbound_call_recording_channels"`
}

The call recording settings for a phone number. Ref: #/components/schemas/CallRecording

func (*CallRecording) Decode

func (s *CallRecording) Decode(d *jx.Decoder) error

Decode decodes CallRecording from json.

func (*CallRecording) Encode

func (s *CallRecording) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CallRecording) GetInboundCallRecordingChannels

func (s *CallRecording) GetInboundCallRecordingChannels() OptCallRecordingInboundCallRecordingChannels

GetInboundCallRecordingChannels returns the value of InboundCallRecordingChannels.

func (*CallRecording) GetInboundCallRecordingEnabled

func (s *CallRecording) GetInboundCallRecordingEnabled() OptBool

GetInboundCallRecordingEnabled returns the value of InboundCallRecordingEnabled.

func (*CallRecording) GetInboundCallRecordingFormat

func (s *CallRecording) GetInboundCallRecordingFormat() OptCallRecordingInboundCallRecordingFormat

GetInboundCallRecordingFormat returns the value of InboundCallRecordingFormat.

func (*CallRecording) MarshalJSON

func (s *CallRecording) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallRecording) SetInboundCallRecordingChannels

func (s *CallRecording) SetInboundCallRecordingChannels(val OptCallRecordingInboundCallRecordingChannels)

SetInboundCallRecordingChannels sets the value of InboundCallRecordingChannels.

func (*CallRecording) SetInboundCallRecordingEnabled

func (s *CallRecording) SetInboundCallRecordingEnabled(val OptBool)

SetInboundCallRecordingEnabled sets the value of InboundCallRecordingEnabled.

func (*CallRecording) SetInboundCallRecordingFormat

func (s *CallRecording) SetInboundCallRecordingFormat(val OptCallRecordingInboundCallRecordingFormat)

SetInboundCallRecordingFormat sets the value of InboundCallRecordingFormat.

func (*CallRecording) UnmarshalJSON

func (s *CallRecording) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRecording) Validate

func (s *CallRecording) Validate() error

type CallRecordingInboundCallRecordingChannels

type CallRecordingInboundCallRecordingChannels string

When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B.

const (
	CallRecordingInboundCallRecordingChannelsSingle CallRecordingInboundCallRecordingChannels = "single"
	CallRecordingInboundCallRecordingChannelsDual   CallRecordingInboundCallRecordingChannels = "dual"
)

func (CallRecordingInboundCallRecordingChannels) AllValues

AllValues returns all CallRecordingInboundCallRecordingChannels values.

func (*CallRecordingInboundCallRecordingChannels) Decode

Decode decodes CallRecordingInboundCallRecordingChannels from json.

func (CallRecordingInboundCallRecordingChannels) Encode

Encode encodes CallRecordingInboundCallRecordingChannels as json.

func (CallRecordingInboundCallRecordingChannels) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CallRecordingInboundCallRecordingChannels) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CallRecordingInboundCallRecordingChannels) UnmarshalJSON

func (s *CallRecordingInboundCallRecordingChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRecordingInboundCallRecordingChannels) UnmarshalText

func (s *CallRecordingInboundCallRecordingChannels) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRecordingInboundCallRecordingChannels) Validate

type CallRecordingInboundCallRecordingFormat

type CallRecordingInboundCallRecordingFormat string

The audio file format for calls being recorded.

const (
	CallRecordingInboundCallRecordingFormatWav CallRecordingInboundCallRecordingFormat = "wav"
	CallRecordingInboundCallRecordingFormatMp3 CallRecordingInboundCallRecordingFormat = "mp3"
)

func (CallRecordingInboundCallRecordingFormat) AllValues

AllValues returns all CallRecordingInboundCallRecordingFormat values.

func (*CallRecordingInboundCallRecordingFormat) Decode

Decode decodes CallRecordingInboundCallRecordingFormat from json.

func (CallRecordingInboundCallRecordingFormat) Encode

Encode encodes CallRecordingInboundCallRecordingFormat as json.

func (CallRecordingInboundCallRecordingFormat) MarshalJSON

func (s CallRecordingInboundCallRecordingFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRecordingInboundCallRecordingFormat) MarshalText

func (s CallRecordingInboundCallRecordingFormat) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRecordingInboundCallRecordingFormat) UnmarshalJSON

func (s *CallRecordingInboundCallRecordingFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRecordingInboundCallRecordingFormat) UnmarshalText

func (s *CallRecordingInboundCallRecordingFormat) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRecordingInboundCallRecordingFormat) Validate

type CallRequest

type CallRequest struct {
	// The DID or SIP URI to dial out to. Multiple DID or SIP URIs can be provided using an array of
	// strings.
	To CallRequestTo `json:"to"`
	// The `from` number to be used as the caller id presented to the destination (`to` number). The
	// number should be in +E164 format.
	From string `json:"from"`
	// The `from_display_name` string to be used as the caller id name (SIP From Display Name) presented
	// to the destination (`to` number). The string should have a maximum of 128 characters, containing
	// only letters, numbers, spaces, and -_~!.+ special characters. If ommited, the display name will be
	// the same as the number in the `from` field.
	FromDisplayName OptString `json:"from_display_name"`
	// The ID of the Call Control App (formerly ID of the connection) to be used when dialing the
	// destination.
	ConnectionID string `json:"connection_id"`
	// The URL of a file to be played back to the callee when the call is answered. The URL can point to
	// either a WAV or MP3 file. media_name and audio_url cannot be used together in one request.
	AudioURL OptString `json:"audio_url"`
	// The media_name of a file to be played back to the callee when the call is answered. The media_name
	// must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization.
	// The file must either be a WAV or MP3 file.
	MediaName OptString `json:"media_name"`
	// The list of comma-separated codecs in a preferred order for the forked media to be received.
	PreferredCodecs OptString `json:"preferred_codecs"`
	// The number of seconds that Telnyx will wait for the call to be answered by the destination to
	// which it is being called. If the timeout is reached before an answer is received, the call will
	// hangup and a `call.hangup` webhook with a `hangup_cause` of `timeout` will be sent. Minimum value
	// is 5 seconds. Maximum value is 120 seconds.
	TimeoutSecs OptInt32 `json:"timeout_secs"`
	// Sets the maximum duration of a Call Control Leg in seconds. If the time limit is reached, the call
	// will hangup and a `call.hangup` webhook with a `hangup_cause` of `time_limit` will be sent. For
	// example, by setting a time limit of 120 seconds, a Call Leg will be automatically terminated two
	// minutes after being answered. The default time limit is 14400 seconds or 4 hours and this is also
	// the maximum allowed call length.
	TimeLimitSecs OptInt32 `json:"time_limit_secs"`
	// Enables Answering Machine Detection. Telnyx offers Premium and Standard detections. With Premium
	// detection, when a call is answered, Telnyx runs real-time detection and sends a `call.machine.
	// premium.detection.ended` webhook with one of the following results: `human_residence`,
	// `human_business`, `machine`, `silence` or `fax_detected`. If we detect a beep, we also send a
	// `call.machine.premium.greeting.ended` webhook with the result of `beep_detected`. If we detect a
	// beep before `call.machine.premium.detection.ended` we only send `call.machine.premium.greeting.
	// ended`, and if we detect a beep after `call.machine.premium.detection.ended`, we send both
	// webhooks. With Standard detection, when a call is answered, Telnyx runs real-time detection to
	// determine if it was picked up by a human or a machine and sends an `call.machine.detection.ended`
	// webhook with the analysis result. If `greeting_end` or `detect_words` is used and a `machine` is
	// detected, you will receive another `call.machine.greeting.ended` webhook when the answering
	// machine greeting ends with a beep or silence. If `detect_beep` is used, you will only receive
	// `call.machine.greeting.ended` if a beep is detected.
	AnsweringMachineDetection OptCallRequestAnsweringMachineDetection `json:"answering_machine_detection"`
	// Optional configuration parameters to modify 'answering_machine_detection' performance.
	AnsweringMachineDetectionConfig OptCallRequestAnsweringMachineDetectionConfig `json:"answering_machine_detection_config"`
	// Optional configuration parameters to dial new participant into a conference.
	ConferenceConfig OptCallRequestConferenceConfig `json:"conference_config"`
	// Custom headers to be added to the SIP INVITE.
	CustomHeaders []CustomSipHeader `json:"custom_headers"`
	// Use this field to set the Billing Group ID for the call. Must be a valid and existing Billing
	// Group ID.
	BillingGroupID OptUUID `json:"billing_group_id"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore others Dial commands with the same
	// `command_id`.
	CommandID OptString `json:"command_id"`
	// Use another call's control id for sharing the same call session id.
	LinkTo OptString `json:"link_to"`
	// Defines whether media should be encrypted on the call.
	MediaEncryption OptCallRequestMediaEncryption `json:"media_encryption"`
	// SIP Authentication username used for SIP challenges.
	SipAuthUsername OptString `json:"sip_auth_username"`
	// SIP Authentication password used for SIP challenges.
	SipAuthPassword OptString `json:"sip_auth_password"`
	// SIP headers to be added to the SIP INVITE request. Currently only User-to-User header is supported.
	SipHeaders []SipHeader `json:"sip_headers"`
	// Defines SIP transport protocol to be used on the call.
	SipTransportProtocol OptCallRequestSipTransportProtocol `json:"sip_transport_protocol"`
	SoundModifications   OptSoundModifications              `json:"sound_modifications"`
	// The destination WebSocket address where the stream is going to be delivered.
	StreamURL OptString `json:"stream_url"`
	// Specifies which track should be streamed.
	StreamTrack OptCallRequestStreamTrack `json:"stream_track"`
	// Generate silence RTP packets when no transmission available.
	SendSilenceWhenIdle OptBool `json:"send_silence_when_idle"`
	// Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call.
	WebhookURL OptString `json:"webhook_url"`
	// HTTP request type used for `webhook_url`.
	WebhookURLMethod OptCallRequestWebhookURLMethod `json:"webhook_url_method"`
	// Start recording automatically after an event. Disabled by default.
	Record OptCallRequestRecord `json:"record"`
	// Defines which channel should be recorded ('single' or 'dual') when `record` is specified.
	RecordChannels OptCallRequestRecordChannels `json:"record_channels"`
	// Defines the format of the recording ('wav' or 'mp3') when `record` is specified.
	RecordFormat OptCallRequestRecordFormat `json:"record_format"`
	// Defines the maximum length for the recording in seconds when `record` is specified. The minimum
	// value is 0. The maximum value is 43200. The default value is 0 (infinite).
	RecordMaxLength OptInt32 `json:"record_max_length"`
	// The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected
	// when `record` is specified. The timer only starts when the speech is detected. Please note that
	// call transcription is used to detect silence and the related charge will be applied. The minimum
	// value is 0. The default value is 0 (infinite).
	RecordTimeoutSecs OptInt32 `json:"record_timeout_secs"`
	// When set to `trim-silence`, silence will be removed from the beginning and end of the recording.
	RecordTrim OptCallRequestRecordTrim `json:"record_trim"`
	// The custom recording file name to be used instead of the default `call_leg_id`. Telnyx will still
	// add a Unix timestamp suffix.
	RecordCustomFileName OptString `json:"record_custom_file_name"`
	// Enables Dialogflow for the current call. The default value is false.
	EnableDialogflow OptBool             `json:"enable_dialogflow"`
	DialogflowConfig OptDialogflowConfig `json:"dialogflow_config"`
}

Ref: #/components/schemas/CallRequest

func (*CallRequest) Decode

func (s *CallRequest) Decode(d *jx.Decoder) error

Decode decodes CallRequest from json.

func (*CallRequest) Encode

func (s *CallRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CallRequest) GetAnsweringMachineDetection

func (s *CallRequest) GetAnsweringMachineDetection() OptCallRequestAnsweringMachineDetection

GetAnsweringMachineDetection returns the value of AnsweringMachineDetection.

func (*CallRequest) GetAnsweringMachineDetectionConfig

func (s *CallRequest) GetAnsweringMachineDetectionConfig() OptCallRequestAnsweringMachineDetectionConfig

GetAnsweringMachineDetectionConfig returns the value of AnsweringMachineDetectionConfig.

func (*CallRequest) GetAudioURL

func (s *CallRequest) GetAudioURL() OptString

GetAudioURL returns the value of AudioURL.

func (*CallRequest) GetBillingGroupID

func (s *CallRequest) GetBillingGroupID() OptUUID

GetBillingGroupID returns the value of BillingGroupID.

func (*CallRequest) GetClientState

func (s *CallRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*CallRequest) GetCommandID

func (s *CallRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*CallRequest) GetConferenceConfig

func (s *CallRequest) GetConferenceConfig() OptCallRequestConferenceConfig

GetConferenceConfig returns the value of ConferenceConfig.

func (*CallRequest) GetConnectionID

func (s *CallRequest) GetConnectionID() string

GetConnectionID returns the value of ConnectionID.

func (*CallRequest) GetCustomHeaders

func (s *CallRequest) GetCustomHeaders() []CustomSipHeader

GetCustomHeaders returns the value of CustomHeaders.

func (*CallRequest) GetDialogflowConfig

func (s *CallRequest) GetDialogflowConfig() OptDialogflowConfig

GetDialogflowConfig returns the value of DialogflowConfig.

func (*CallRequest) GetEnableDialogflow

func (s *CallRequest) GetEnableDialogflow() OptBool

GetEnableDialogflow returns the value of EnableDialogflow.

func (*CallRequest) GetFrom

func (s *CallRequest) GetFrom() string

GetFrom returns the value of From.

func (*CallRequest) GetFromDisplayName

func (s *CallRequest) GetFromDisplayName() OptString

GetFromDisplayName returns the value of FromDisplayName.

func (*CallRequest) GetLinkTo

func (s *CallRequest) GetLinkTo() OptString

GetLinkTo returns the value of LinkTo.

func (*CallRequest) GetMediaEncryption

func (s *CallRequest) GetMediaEncryption() OptCallRequestMediaEncryption

GetMediaEncryption returns the value of MediaEncryption.

func (*CallRequest) GetMediaName

func (s *CallRequest) GetMediaName() OptString

GetMediaName returns the value of MediaName.

func (*CallRequest) GetPreferredCodecs

func (s *CallRequest) GetPreferredCodecs() OptString

GetPreferredCodecs returns the value of PreferredCodecs.

func (*CallRequest) GetRecord

func (s *CallRequest) GetRecord() OptCallRequestRecord

GetRecord returns the value of Record.

func (*CallRequest) GetRecordChannels

func (s *CallRequest) GetRecordChannels() OptCallRequestRecordChannels

GetRecordChannels returns the value of RecordChannels.

func (*CallRequest) GetRecordCustomFileName

func (s *CallRequest) GetRecordCustomFileName() OptString

GetRecordCustomFileName returns the value of RecordCustomFileName.

func (*CallRequest) GetRecordFormat

func (s *CallRequest) GetRecordFormat() OptCallRequestRecordFormat

GetRecordFormat returns the value of RecordFormat.

func (*CallRequest) GetRecordMaxLength

func (s *CallRequest) GetRecordMaxLength() OptInt32

GetRecordMaxLength returns the value of RecordMaxLength.

func (*CallRequest) GetRecordTimeoutSecs

func (s *CallRequest) GetRecordTimeoutSecs() OptInt32

GetRecordTimeoutSecs returns the value of RecordTimeoutSecs.

func (*CallRequest) GetRecordTrim

func (s *CallRequest) GetRecordTrim() OptCallRequestRecordTrim

GetRecordTrim returns the value of RecordTrim.

func (*CallRequest) GetSendSilenceWhenIdle

func (s *CallRequest) GetSendSilenceWhenIdle() OptBool

GetSendSilenceWhenIdle returns the value of SendSilenceWhenIdle.

func (*CallRequest) GetSipAuthPassword

func (s *CallRequest) GetSipAuthPassword() OptString

GetSipAuthPassword returns the value of SipAuthPassword.

func (*CallRequest) GetSipAuthUsername

func (s *CallRequest) GetSipAuthUsername() OptString

GetSipAuthUsername returns the value of SipAuthUsername.

func (*CallRequest) GetSipHeaders

func (s *CallRequest) GetSipHeaders() []SipHeader

GetSipHeaders returns the value of SipHeaders.

func (*CallRequest) GetSipTransportProtocol

func (s *CallRequest) GetSipTransportProtocol() OptCallRequestSipTransportProtocol

GetSipTransportProtocol returns the value of SipTransportProtocol.

func (*CallRequest) GetSoundModifications

func (s *CallRequest) GetSoundModifications() OptSoundModifications

GetSoundModifications returns the value of SoundModifications.

func (*CallRequest) GetStreamTrack

func (s *CallRequest) GetStreamTrack() OptCallRequestStreamTrack

GetStreamTrack returns the value of StreamTrack.

func (*CallRequest) GetStreamURL

func (s *CallRequest) GetStreamURL() OptString

GetStreamURL returns the value of StreamURL.

func (*CallRequest) GetTimeLimitSecs

func (s *CallRequest) GetTimeLimitSecs() OptInt32

GetTimeLimitSecs returns the value of TimeLimitSecs.

func (*CallRequest) GetTimeoutSecs

func (s *CallRequest) GetTimeoutSecs() OptInt32

GetTimeoutSecs returns the value of TimeoutSecs.

func (*CallRequest) GetTo

func (s *CallRequest) GetTo() CallRequestTo

GetTo returns the value of To.

func (*CallRequest) GetWebhookURL

func (s *CallRequest) GetWebhookURL() OptString

GetWebhookURL returns the value of WebhookURL.

func (*CallRequest) GetWebhookURLMethod

func (s *CallRequest) GetWebhookURLMethod() OptCallRequestWebhookURLMethod

GetWebhookURLMethod returns the value of WebhookURLMethod.

func (*CallRequest) MarshalJSON

func (s *CallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallRequest) SetAnsweringMachineDetection

func (s *CallRequest) SetAnsweringMachineDetection(val OptCallRequestAnsweringMachineDetection)

SetAnsweringMachineDetection sets the value of AnsweringMachineDetection.

func (*CallRequest) SetAnsweringMachineDetectionConfig

func (s *CallRequest) SetAnsweringMachineDetectionConfig(val OptCallRequestAnsweringMachineDetectionConfig)

SetAnsweringMachineDetectionConfig sets the value of AnsweringMachineDetectionConfig.

func (*CallRequest) SetAudioURL

func (s *CallRequest) SetAudioURL(val OptString)

SetAudioURL sets the value of AudioURL.

func (*CallRequest) SetBillingGroupID

func (s *CallRequest) SetBillingGroupID(val OptUUID)

SetBillingGroupID sets the value of BillingGroupID.

func (*CallRequest) SetClientState

func (s *CallRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*CallRequest) SetCommandID

func (s *CallRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*CallRequest) SetConferenceConfig

func (s *CallRequest) SetConferenceConfig(val OptCallRequestConferenceConfig)

SetConferenceConfig sets the value of ConferenceConfig.

func (*CallRequest) SetConnectionID

func (s *CallRequest) SetConnectionID(val string)

SetConnectionID sets the value of ConnectionID.

func (*CallRequest) SetCustomHeaders

func (s *CallRequest) SetCustomHeaders(val []CustomSipHeader)

SetCustomHeaders sets the value of CustomHeaders.

func (*CallRequest) SetDialogflowConfig

func (s *CallRequest) SetDialogflowConfig(val OptDialogflowConfig)

SetDialogflowConfig sets the value of DialogflowConfig.

func (*CallRequest) SetEnableDialogflow

func (s *CallRequest) SetEnableDialogflow(val OptBool)

SetEnableDialogflow sets the value of EnableDialogflow.

func (*CallRequest) SetFrom

func (s *CallRequest) SetFrom(val string)

SetFrom sets the value of From.

func (*CallRequest) SetFromDisplayName

func (s *CallRequest) SetFromDisplayName(val OptString)

SetFromDisplayName sets the value of FromDisplayName.

func (*CallRequest) SetLinkTo

func (s *CallRequest) SetLinkTo(val OptString)

SetLinkTo sets the value of LinkTo.

func (*CallRequest) SetMediaEncryption

func (s *CallRequest) SetMediaEncryption(val OptCallRequestMediaEncryption)

SetMediaEncryption sets the value of MediaEncryption.

func (*CallRequest) SetMediaName

func (s *CallRequest) SetMediaName(val OptString)

SetMediaName sets the value of MediaName.

func (*CallRequest) SetPreferredCodecs

func (s *CallRequest) SetPreferredCodecs(val OptString)

SetPreferredCodecs sets the value of PreferredCodecs.

func (*CallRequest) SetRecord

func (s *CallRequest) SetRecord(val OptCallRequestRecord)

SetRecord sets the value of Record.

func (*CallRequest) SetRecordChannels

func (s *CallRequest) SetRecordChannels(val OptCallRequestRecordChannels)

SetRecordChannels sets the value of RecordChannels.

func (*CallRequest) SetRecordCustomFileName

func (s *CallRequest) SetRecordCustomFileName(val OptString)

SetRecordCustomFileName sets the value of RecordCustomFileName.

func (*CallRequest) SetRecordFormat

func (s *CallRequest) SetRecordFormat(val OptCallRequestRecordFormat)

SetRecordFormat sets the value of RecordFormat.

func (*CallRequest) SetRecordMaxLength

func (s *CallRequest) SetRecordMaxLength(val OptInt32)

SetRecordMaxLength sets the value of RecordMaxLength.

func (*CallRequest) SetRecordTimeoutSecs

func (s *CallRequest) SetRecordTimeoutSecs(val OptInt32)

SetRecordTimeoutSecs sets the value of RecordTimeoutSecs.

func (*CallRequest) SetRecordTrim

func (s *CallRequest) SetRecordTrim(val OptCallRequestRecordTrim)

SetRecordTrim sets the value of RecordTrim.

func (*CallRequest) SetSendSilenceWhenIdle

func (s *CallRequest) SetSendSilenceWhenIdle(val OptBool)

SetSendSilenceWhenIdle sets the value of SendSilenceWhenIdle.

func (*CallRequest) SetSipAuthPassword

func (s *CallRequest) SetSipAuthPassword(val OptString)

SetSipAuthPassword sets the value of SipAuthPassword.

func (*CallRequest) SetSipAuthUsername

func (s *CallRequest) SetSipAuthUsername(val OptString)

SetSipAuthUsername sets the value of SipAuthUsername.

func (*CallRequest) SetSipHeaders

func (s *CallRequest) SetSipHeaders(val []SipHeader)

SetSipHeaders sets the value of SipHeaders.

func (*CallRequest) SetSipTransportProtocol

func (s *CallRequest) SetSipTransportProtocol(val OptCallRequestSipTransportProtocol)

SetSipTransportProtocol sets the value of SipTransportProtocol.

func (*CallRequest) SetSoundModifications

func (s *CallRequest) SetSoundModifications(val OptSoundModifications)

SetSoundModifications sets the value of SoundModifications.

func (*CallRequest) SetStreamTrack

func (s *CallRequest) SetStreamTrack(val OptCallRequestStreamTrack)

SetStreamTrack sets the value of StreamTrack.

func (*CallRequest) SetStreamURL

func (s *CallRequest) SetStreamURL(val OptString)

SetStreamURL sets the value of StreamURL.

func (*CallRequest) SetTimeLimitSecs

func (s *CallRequest) SetTimeLimitSecs(val OptInt32)

SetTimeLimitSecs sets the value of TimeLimitSecs.

func (*CallRequest) SetTimeoutSecs

func (s *CallRequest) SetTimeoutSecs(val OptInt32)

SetTimeoutSecs sets the value of TimeoutSecs.

func (*CallRequest) SetTo

func (s *CallRequest) SetTo(val CallRequestTo)

SetTo sets the value of To.

func (*CallRequest) SetWebhookURL

func (s *CallRequest) SetWebhookURL(val OptString)

SetWebhookURL sets the value of WebhookURL.

func (*CallRequest) SetWebhookURLMethod

func (s *CallRequest) SetWebhookURLMethod(val OptCallRequestWebhookURLMethod)

SetWebhookURLMethod sets the value of WebhookURLMethod.

func (*CallRequest) UnmarshalJSON

func (s *CallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequest) Validate

func (s *CallRequest) Validate() error

type CallRequestAnsweringMachineDetection

type CallRequestAnsweringMachineDetection string

Enables Answering Machine Detection. Telnyx offers Premium and Standard detections. With Premium detection, when a call is answered, Telnyx runs real-time detection and sends a `call.machine. premium.detection.ended` webhook with one of the following results: `human_residence`, `human_business`, `machine`, `silence` or `fax_detected`. If we detect a beep, we also send a `call.machine.premium.greeting.ended` webhook with the result of `beep_detected`. If we detect a beep before `call.machine.premium.detection.ended` we only send `call.machine.premium.greeting. ended`, and if we detect a beep after `call.machine.premium.detection.ended`, we send both webhooks. With Standard detection, when a call is answered, Telnyx runs real-time detection to determine if it was picked up by a human or a machine and sends an `call.machine.detection.ended` webhook with the analysis result. If `greeting_end` or `detect_words` is used and a `machine` is detected, you will receive another `call.machine.greeting.ended` webhook when the answering machine greeting ends with a beep or silence. If `detect_beep` is used, you will only receive `call.machine.greeting.ended` if a beep is detected.

const (
	CallRequestAnsweringMachineDetectionPremium     CallRequestAnsweringMachineDetection = "premium"
	CallRequestAnsweringMachineDetectionDetect      CallRequestAnsweringMachineDetection = "detect"
	CallRequestAnsweringMachineDetectionDetectBeep  CallRequestAnsweringMachineDetection = "detect_beep"
	CallRequestAnsweringMachineDetectionDetectWords CallRequestAnsweringMachineDetection = "detect_words"
	CallRequestAnsweringMachineDetectionGreetingEnd CallRequestAnsweringMachineDetection = "greeting_end"
	CallRequestAnsweringMachineDetectionDisabled    CallRequestAnsweringMachineDetection = "disabled"
)

func (CallRequestAnsweringMachineDetection) AllValues

AllValues returns all CallRequestAnsweringMachineDetection values.

func (*CallRequestAnsweringMachineDetection) Decode

Decode decodes CallRequestAnsweringMachineDetection from json.

func (CallRequestAnsweringMachineDetection) Encode

Encode encodes CallRequestAnsweringMachineDetection as json.

func (CallRequestAnsweringMachineDetection) MarshalJSON

func (s CallRequestAnsweringMachineDetection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRequestAnsweringMachineDetection) MarshalText

func (s CallRequestAnsweringMachineDetection) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRequestAnsweringMachineDetection) UnmarshalJSON

func (s *CallRequestAnsweringMachineDetection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestAnsweringMachineDetection) UnmarshalText

func (s *CallRequestAnsweringMachineDetection) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRequestAnsweringMachineDetection) Validate

type CallRequestAnsweringMachineDetectionConfig

type CallRequestAnsweringMachineDetectionConfig struct {
	// Maximum timeout threshold for overall detection.
	TotalAnalysisTimeMillis OptInt32 `json:"total_analysis_time_millis"`
	// Silence duration threshold after a greeting message or voice for it be considered human.
	AfterGreetingSilenceMillis OptInt32 `json:"after_greeting_silence_millis"`
	// Maximum threshold for silence between words.
	BetweenWordsSilenceMillis OptInt32 `json:"between_words_silence_millis"`
	// Maximum threshold of a human greeting. If greeting longer than this value, considered machine.
	GreetingDurationMillis OptInt32 `json:"greeting_duration_millis"`
	// If initial silence duration is greater than this value, consider it a machine.
	InitialSilenceMillis OptInt32 `json:"initial_silence_millis"`
	// If number of detected words is greater than this value, consder it a machine.
	MaximumNumberOfWords OptInt32 `json:"maximum_number_of_words"`
	// If a single word lasts longer than this threshold, consider it a machine.
	MaximumWordLengthMillis OptInt32 `json:"maximum_word_length_millis"`
	// Minimum noise threshold for any analysis.
	SilenceThreshold OptInt32 `json:"silence_threshold"`
	// If machine already detected, maximum timeout threshold to determine the end of the machine
	// greeting.
	GreetingTotalAnalysisTimeMillis OptInt32 `json:"greeting_total_analysis_time_millis"`
	// If machine already detected, maximum threshold for silence between words. If exceeded, the
	// greeting is considered ended.
	GreetingSilenceDurationMillis OptInt32 `json:"greeting_silence_duration_millis"`
}

Optional configuration parameters to modify 'answering_machine_detection' performance.

func (*CallRequestAnsweringMachineDetectionConfig) Decode

Decode decodes CallRequestAnsweringMachineDetectionConfig from json.

func (*CallRequestAnsweringMachineDetectionConfig) Encode

Encode implements json.Marshaler.

func (*CallRequestAnsweringMachineDetectionConfig) GetAfterGreetingSilenceMillis

func (s *CallRequestAnsweringMachineDetectionConfig) GetAfterGreetingSilenceMillis() OptInt32

GetAfterGreetingSilenceMillis returns the value of AfterGreetingSilenceMillis.

func (*CallRequestAnsweringMachineDetectionConfig) GetBetweenWordsSilenceMillis

func (s *CallRequestAnsweringMachineDetectionConfig) GetBetweenWordsSilenceMillis() OptInt32

GetBetweenWordsSilenceMillis returns the value of BetweenWordsSilenceMillis.

func (*CallRequestAnsweringMachineDetectionConfig) GetGreetingDurationMillis

func (s *CallRequestAnsweringMachineDetectionConfig) GetGreetingDurationMillis() OptInt32

GetGreetingDurationMillis returns the value of GreetingDurationMillis.

func (*CallRequestAnsweringMachineDetectionConfig) GetGreetingSilenceDurationMillis

func (s *CallRequestAnsweringMachineDetectionConfig) GetGreetingSilenceDurationMillis() OptInt32

GetGreetingSilenceDurationMillis returns the value of GreetingSilenceDurationMillis.

func (*CallRequestAnsweringMachineDetectionConfig) GetGreetingTotalAnalysisTimeMillis

func (s *CallRequestAnsweringMachineDetectionConfig) GetGreetingTotalAnalysisTimeMillis() OptInt32

GetGreetingTotalAnalysisTimeMillis returns the value of GreetingTotalAnalysisTimeMillis.

func (*CallRequestAnsweringMachineDetectionConfig) GetInitialSilenceMillis

func (s *CallRequestAnsweringMachineDetectionConfig) GetInitialSilenceMillis() OptInt32

GetInitialSilenceMillis returns the value of InitialSilenceMillis.

func (*CallRequestAnsweringMachineDetectionConfig) GetMaximumNumberOfWords

func (s *CallRequestAnsweringMachineDetectionConfig) GetMaximumNumberOfWords() OptInt32

GetMaximumNumberOfWords returns the value of MaximumNumberOfWords.

func (*CallRequestAnsweringMachineDetectionConfig) GetMaximumWordLengthMillis

func (s *CallRequestAnsweringMachineDetectionConfig) GetMaximumWordLengthMillis() OptInt32

GetMaximumWordLengthMillis returns the value of MaximumWordLengthMillis.

func (*CallRequestAnsweringMachineDetectionConfig) GetSilenceThreshold

func (s *CallRequestAnsweringMachineDetectionConfig) GetSilenceThreshold() OptInt32

GetSilenceThreshold returns the value of SilenceThreshold.

func (*CallRequestAnsweringMachineDetectionConfig) GetTotalAnalysisTimeMillis

func (s *CallRequestAnsweringMachineDetectionConfig) GetTotalAnalysisTimeMillis() OptInt32

GetTotalAnalysisTimeMillis returns the value of TotalAnalysisTimeMillis.

func (*CallRequestAnsweringMachineDetectionConfig) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CallRequestAnsweringMachineDetectionConfig) SetAfterGreetingSilenceMillis

func (s *CallRequestAnsweringMachineDetectionConfig) SetAfterGreetingSilenceMillis(val OptInt32)

SetAfterGreetingSilenceMillis sets the value of AfterGreetingSilenceMillis.

func (*CallRequestAnsweringMachineDetectionConfig) SetBetweenWordsSilenceMillis

func (s *CallRequestAnsweringMachineDetectionConfig) SetBetweenWordsSilenceMillis(val OptInt32)

SetBetweenWordsSilenceMillis sets the value of BetweenWordsSilenceMillis.

func (*CallRequestAnsweringMachineDetectionConfig) SetGreetingDurationMillis

func (s *CallRequestAnsweringMachineDetectionConfig) SetGreetingDurationMillis(val OptInt32)

SetGreetingDurationMillis sets the value of GreetingDurationMillis.

func (*CallRequestAnsweringMachineDetectionConfig) SetGreetingSilenceDurationMillis

func (s *CallRequestAnsweringMachineDetectionConfig) SetGreetingSilenceDurationMillis(val OptInt32)

SetGreetingSilenceDurationMillis sets the value of GreetingSilenceDurationMillis.

func (*CallRequestAnsweringMachineDetectionConfig) SetGreetingTotalAnalysisTimeMillis

func (s *CallRequestAnsweringMachineDetectionConfig) SetGreetingTotalAnalysisTimeMillis(val OptInt32)

SetGreetingTotalAnalysisTimeMillis sets the value of GreetingTotalAnalysisTimeMillis.

func (*CallRequestAnsweringMachineDetectionConfig) SetInitialSilenceMillis

func (s *CallRequestAnsweringMachineDetectionConfig) SetInitialSilenceMillis(val OptInt32)

SetInitialSilenceMillis sets the value of InitialSilenceMillis.

func (*CallRequestAnsweringMachineDetectionConfig) SetMaximumNumberOfWords

func (s *CallRequestAnsweringMachineDetectionConfig) SetMaximumNumberOfWords(val OptInt32)

SetMaximumNumberOfWords sets the value of MaximumNumberOfWords.

func (*CallRequestAnsweringMachineDetectionConfig) SetMaximumWordLengthMillis

func (s *CallRequestAnsweringMachineDetectionConfig) SetMaximumWordLengthMillis(val OptInt32)

SetMaximumWordLengthMillis sets the value of MaximumWordLengthMillis.

func (*CallRequestAnsweringMachineDetectionConfig) SetSilenceThreshold

func (s *CallRequestAnsweringMachineDetectionConfig) SetSilenceThreshold(val OptInt32)

SetSilenceThreshold sets the value of SilenceThreshold.

func (*CallRequestAnsweringMachineDetectionConfig) SetTotalAnalysisTimeMillis

func (s *CallRequestAnsweringMachineDetectionConfig) SetTotalAnalysisTimeMillis(val OptInt32)

SetTotalAnalysisTimeMillis sets the value of TotalAnalysisTimeMillis.

func (*CallRequestAnsweringMachineDetectionConfig) UnmarshalJSON

func (s *CallRequestAnsweringMachineDetectionConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CallRequestConferenceConfig

type CallRequestConferenceConfig struct {
	// Conference ID to be joined.
	ID OptUUID `json:"id"`
	// Conference name to be joined.
	ConferenceName OptString `json:"conference_name"`
	// Whether the conference should end and all remaining participants be hung up after the participant
	// leaves the conference. Defaults to "false".
	EndConferenceOnExit OptBool `json:"end_conference_on_exit"`
	// Whether the conference should end after the participant leaves the conference. NOTE this doesn't
	// hang up the other participants. Defaults to "false".
	SoftEndConferenceOnExit OptBool `json:"soft_end_conference_on_exit"`
	// Whether the participant should be put on hold immediately after joining the conference. Defaults
	// to "false".
	Hold OptBool `json:"hold"`
	// The URL of a file to be played to the participant when they are put on hold after joining the
	// conference. hold_media_name and hold_audio_url cannot be used together in one request. Takes
	// effect only when "start_conference_on_create" is set to "false". This property takes effect only
	// if "hold" is set to "true".
	HoldAudioURL OptString `json:"hold_audio_url"`
	// The media_name of a file to be played to the participant when they are put on hold after joining
	// the conference. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media
	// by the same user/organization. The file must either be a WAV or MP3 file. Takes effect only when
	// "start_conference_on_create" is set to "false". This property takes effect only if "hold" is set
	// to "true".
	HoldMediaName OptString `json:"hold_media_name"`
	// Whether the participant should be muted immediately after joining the conference. Defaults to
	// "false".
	Mute OptBool `json:"mute"`
	// Whether the conference should be started after the participant joins the conference. Defaults to
	// "false".
	StartConferenceOnEnter OptBool `json:"start_conference_on_enter"`
	// Whether the conference should be started on creation. If the conference isn't started all
	// participants that join are automatically put on hold. Defaults to "true".
	StartConferenceOnCreate OptBool `json:"start_conference_on_create"`
	// Sets the joining participant as a supervisor for the conference. A conference can have multiple
	// supervisors. "barge" means the supervisor enters the conference as a normal participant. This is
	// the same as "none". "monitor" means the supervisor is muted but can hear all participants.
	// "whisper" means that only the specified "whisper_call_control_ids" can hear the supervisor.
	// Defaults to "none".
	SupervisorRole OptCallRequestConferenceConfigSupervisorRole `json:"supervisor_role"`
	// Array of unique call_control_ids the joining supervisor can whisper to. If none provided, the
	// supervisor will join the conference as a monitoring participant only.
	WhisperCallControlIds []string `json:"whisper_call_control_ids"`
	// Whether a beep sound should be played when the participant joins and/or leaves the conference. Can
	// be used to override the conference-level setting.
	BeepEnabled OptCallRequestConferenceConfigBeepEnabled `json:"beep_enabled"`
}

Optional configuration parameters to dial new participant into a conference.

func (*CallRequestConferenceConfig) Decode

Decode decodes CallRequestConferenceConfig from json.

func (*CallRequestConferenceConfig) Encode

func (s *CallRequestConferenceConfig) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CallRequestConferenceConfig) GetBeepEnabled

GetBeepEnabled returns the value of BeepEnabled.

func (*CallRequestConferenceConfig) GetConferenceName

func (s *CallRequestConferenceConfig) GetConferenceName() OptString

GetConferenceName returns the value of ConferenceName.

func (*CallRequestConferenceConfig) GetEndConferenceOnExit

func (s *CallRequestConferenceConfig) GetEndConferenceOnExit() OptBool

GetEndConferenceOnExit returns the value of EndConferenceOnExit.

func (*CallRequestConferenceConfig) GetHold

func (s *CallRequestConferenceConfig) GetHold() OptBool

GetHold returns the value of Hold.

func (*CallRequestConferenceConfig) GetHoldAudioURL

func (s *CallRequestConferenceConfig) GetHoldAudioURL() OptString

GetHoldAudioURL returns the value of HoldAudioURL.

func (*CallRequestConferenceConfig) GetHoldMediaName

func (s *CallRequestConferenceConfig) GetHoldMediaName() OptString

GetHoldMediaName returns the value of HoldMediaName.

func (*CallRequestConferenceConfig) GetID

GetID returns the value of ID.

func (*CallRequestConferenceConfig) GetMute

func (s *CallRequestConferenceConfig) GetMute() OptBool

GetMute returns the value of Mute.

func (*CallRequestConferenceConfig) GetSoftEndConferenceOnExit

func (s *CallRequestConferenceConfig) GetSoftEndConferenceOnExit() OptBool

GetSoftEndConferenceOnExit returns the value of SoftEndConferenceOnExit.

func (*CallRequestConferenceConfig) GetStartConferenceOnCreate

func (s *CallRequestConferenceConfig) GetStartConferenceOnCreate() OptBool

GetStartConferenceOnCreate returns the value of StartConferenceOnCreate.

func (*CallRequestConferenceConfig) GetStartConferenceOnEnter

func (s *CallRequestConferenceConfig) GetStartConferenceOnEnter() OptBool

GetStartConferenceOnEnter returns the value of StartConferenceOnEnter.

func (*CallRequestConferenceConfig) GetSupervisorRole

GetSupervisorRole returns the value of SupervisorRole.

func (*CallRequestConferenceConfig) GetWhisperCallControlIds

func (s *CallRequestConferenceConfig) GetWhisperCallControlIds() []string

GetWhisperCallControlIds returns the value of WhisperCallControlIds.

func (*CallRequestConferenceConfig) MarshalJSON

func (s *CallRequestConferenceConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallRequestConferenceConfig) SetBeepEnabled

SetBeepEnabled sets the value of BeepEnabled.

func (*CallRequestConferenceConfig) SetConferenceName

func (s *CallRequestConferenceConfig) SetConferenceName(val OptString)

SetConferenceName sets the value of ConferenceName.

func (*CallRequestConferenceConfig) SetEndConferenceOnExit

func (s *CallRequestConferenceConfig) SetEndConferenceOnExit(val OptBool)

SetEndConferenceOnExit sets the value of EndConferenceOnExit.

func (*CallRequestConferenceConfig) SetHold

func (s *CallRequestConferenceConfig) SetHold(val OptBool)

SetHold sets the value of Hold.

func (*CallRequestConferenceConfig) SetHoldAudioURL

func (s *CallRequestConferenceConfig) SetHoldAudioURL(val OptString)

SetHoldAudioURL sets the value of HoldAudioURL.

func (*CallRequestConferenceConfig) SetHoldMediaName

func (s *CallRequestConferenceConfig) SetHoldMediaName(val OptString)

SetHoldMediaName sets the value of HoldMediaName.

func (*CallRequestConferenceConfig) SetID

func (s *CallRequestConferenceConfig) SetID(val OptUUID)

SetID sets the value of ID.

func (*CallRequestConferenceConfig) SetMute

func (s *CallRequestConferenceConfig) SetMute(val OptBool)

SetMute sets the value of Mute.

func (*CallRequestConferenceConfig) SetSoftEndConferenceOnExit

func (s *CallRequestConferenceConfig) SetSoftEndConferenceOnExit(val OptBool)

SetSoftEndConferenceOnExit sets the value of SoftEndConferenceOnExit.

func (*CallRequestConferenceConfig) SetStartConferenceOnCreate

func (s *CallRequestConferenceConfig) SetStartConferenceOnCreate(val OptBool)

SetStartConferenceOnCreate sets the value of StartConferenceOnCreate.

func (*CallRequestConferenceConfig) SetStartConferenceOnEnter

func (s *CallRequestConferenceConfig) SetStartConferenceOnEnter(val OptBool)

SetStartConferenceOnEnter sets the value of StartConferenceOnEnter.

func (*CallRequestConferenceConfig) SetSupervisorRole

SetSupervisorRole sets the value of SupervisorRole.

func (*CallRequestConferenceConfig) SetWhisperCallControlIds

func (s *CallRequestConferenceConfig) SetWhisperCallControlIds(val []string)

SetWhisperCallControlIds sets the value of WhisperCallControlIds.

func (*CallRequestConferenceConfig) UnmarshalJSON

func (s *CallRequestConferenceConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestConferenceConfig) Validate

func (s *CallRequestConferenceConfig) Validate() error

type CallRequestConferenceConfigBeepEnabled

type CallRequestConferenceConfigBeepEnabled string

Whether a beep sound should be played when the participant joins and/or leaves the conference. Can be used to override the conference-level setting.

const (
	CallRequestConferenceConfigBeepEnabledAlways  CallRequestConferenceConfigBeepEnabled = "always"
	CallRequestConferenceConfigBeepEnabledNever   CallRequestConferenceConfigBeepEnabled = "never"
	CallRequestConferenceConfigBeepEnabledOnEnter CallRequestConferenceConfigBeepEnabled = "on_enter"
	CallRequestConferenceConfigBeepEnabledOnExit  CallRequestConferenceConfigBeepEnabled = "on_exit"
)

func (CallRequestConferenceConfigBeepEnabled) AllValues

AllValues returns all CallRequestConferenceConfigBeepEnabled values.

func (*CallRequestConferenceConfigBeepEnabled) Decode

Decode decodes CallRequestConferenceConfigBeepEnabled from json.

func (CallRequestConferenceConfigBeepEnabled) Encode

Encode encodes CallRequestConferenceConfigBeepEnabled as json.

func (CallRequestConferenceConfigBeepEnabled) MarshalJSON

func (s CallRequestConferenceConfigBeepEnabled) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRequestConferenceConfigBeepEnabled) MarshalText

func (s CallRequestConferenceConfigBeepEnabled) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRequestConferenceConfigBeepEnabled) UnmarshalJSON

func (s *CallRequestConferenceConfigBeepEnabled) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestConferenceConfigBeepEnabled) UnmarshalText

func (s *CallRequestConferenceConfigBeepEnabled) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRequestConferenceConfigBeepEnabled) Validate

type CallRequestConferenceConfigSupervisorRole

type CallRequestConferenceConfigSupervisorRole string

Sets the joining participant as a supervisor for the conference. A conference can have multiple supervisors. "barge" means the supervisor enters the conference as a normal participant. This is the same as "none". "monitor" means the supervisor is muted but can hear all participants. "whisper" means that only the specified "whisper_call_control_ids" can hear the supervisor. Defaults to "none".

const (
	CallRequestConferenceConfigSupervisorRoleBarge   CallRequestConferenceConfigSupervisorRole = "barge"
	CallRequestConferenceConfigSupervisorRoleMonitor CallRequestConferenceConfigSupervisorRole = "monitor"
	CallRequestConferenceConfigSupervisorRoleNone    CallRequestConferenceConfigSupervisorRole = "none"
	CallRequestConferenceConfigSupervisorRoleWhisper CallRequestConferenceConfigSupervisorRole = "whisper"
)

func (CallRequestConferenceConfigSupervisorRole) AllValues

AllValues returns all CallRequestConferenceConfigSupervisorRole values.

func (*CallRequestConferenceConfigSupervisorRole) Decode

Decode decodes CallRequestConferenceConfigSupervisorRole from json.

func (CallRequestConferenceConfigSupervisorRole) Encode

Encode encodes CallRequestConferenceConfigSupervisorRole as json.

func (CallRequestConferenceConfigSupervisorRole) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CallRequestConferenceConfigSupervisorRole) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CallRequestConferenceConfigSupervisorRole) UnmarshalJSON

func (s *CallRequestConferenceConfigSupervisorRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestConferenceConfigSupervisorRole) UnmarshalText

func (s *CallRequestConferenceConfigSupervisorRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRequestConferenceConfigSupervisorRole) Validate

type CallRequestMediaEncryption

type CallRequestMediaEncryption string

Defines whether media should be encrypted on the call.

const (
	CallRequestMediaEncryptionDisabled CallRequestMediaEncryption = "disabled"
	CallRequestMediaEncryptionSRTP     CallRequestMediaEncryption = "SRTP"
)

func (CallRequestMediaEncryption) AllValues

AllValues returns all CallRequestMediaEncryption values.

func (*CallRequestMediaEncryption) Decode

Decode decodes CallRequestMediaEncryption from json.

func (CallRequestMediaEncryption) Encode

func (s CallRequestMediaEncryption) Encode(e *jx.Encoder)

Encode encodes CallRequestMediaEncryption as json.

func (CallRequestMediaEncryption) MarshalJSON

func (s CallRequestMediaEncryption) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRequestMediaEncryption) MarshalText

func (s CallRequestMediaEncryption) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRequestMediaEncryption) UnmarshalJSON

func (s *CallRequestMediaEncryption) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestMediaEncryption) UnmarshalText

func (s *CallRequestMediaEncryption) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRequestMediaEncryption) Validate

func (s CallRequestMediaEncryption) Validate() error

type CallRequestRecord

type CallRequestRecord string

Start recording automatically after an event. Disabled by default.

const (
	CallRequestRecordRecordFromAnswer CallRequestRecord = "record-from-answer"
)

func (CallRequestRecord) AllValues

func (CallRequestRecord) AllValues() []CallRequestRecord

AllValues returns all CallRequestRecord values.

func (*CallRequestRecord) Decode

func (s *CallRequestRecord) Decode(d *jx.Decoder) error

Decode decodes CallRequestRecord from json.

func (CallRequestRecord) Encode

func (s CallRequestRecord) Encode(e *jx.Encoder)

Encode encodes CallRequestRecord as json.

func (CallRequestRecord) MarshalJSON

func (s CallRequestRecord) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRequestRecord) MarshalText

func (s CallRequestRecord) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRequestRecord) UnmarshalJSON

func (s *CallRequestRecord) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestRecord) UnmarshalText

func (s *CallRequestRecord) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRequestRecord) Validate

func (s CallRequestRecord) Validate() error

type CallRequestRecordChannels

type CallRequestRecordChannels string

Defines which channel should be recorded ('single' or 'dual') when `record` is specified.

const (
	CallRequestRecordChannelsSingle CallRequestRecordChannels = "single"
	CallRequestRecordChannelsDual   CallRequestRecordChannels = "dual"
)

func (CallRequestRecordChannels) AllValues

AllValues returns all CallRequestRecordChannels values.

func (*CallRequestRecordChannels) Decode

func (s *CallRequestRecordChannels) Decode(d *jx.Decoder) error

Decode decodes CallRequestRecordChannels from json.

func (CallRequestRecordChannels) Encode

func (s CallRequestRecordChannels) Encode(e *jx.Encoder)

Encode encodes CallRequestRecordChannels as json.

func (CallRequestRecordChannels) MarshalJSON

func (s CallRequestRecordChannels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRequestRecordChannels) MarshalText

func (s CallRequestRecordChannels) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRequestRecordChannels) UnmarshalJSON

func (s *CallRequestRecordChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestRecordChannels) UnmarshalText

func (s *CallRequestRecordChannels) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRequestRecordChannels) Validate

func (s CallRequestRecordChannels) Validate() error

type CallRequestRecordFormat

type CallRequestRecordFormat string

Defines the format of the recording ('wav' or 'mp3') when `record` is specified.

const (
	CallRequestRecordFormatWav CallRequestRecordFormat = "wav"
	CallRequestRecordFormatMp3 CallRequestRecordFormat = "mp3"
)

func (CallRequestRecordFormat) AllValues

AllValues returns all CallRequestRecordFormat values.

func (*CallRequestRecordFormat) Decode

func (s *CallRequestRecordFormat) Decode(d *jx.Decoder) error

Decode decodes CallRequestRecordFormat from json.

func (CallRequestRecordFormat) Encode

func (s CallRequestRecordFormat) Encode(e *jx.Encoder)

Encode encodes CallRequestRecordFormat as json.

func (CallRequestRecordFormat) MarshalJSON

func (s CallRequestRecordFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRequestRecordFormat) MarshalText

func (s CallRequestRecordFormat) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRequestRecordFormat) UnmarshalJSON

func (s *CallRequestRecordFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestRecordFormat) UnmarshalText

func (s *CallRequestRecordFormat) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRequestRecordFormat) Validate

func (s CallRequestRecordFormat) Validate() error

type CallRequestRecordTrim

type CallRequestRecordTrim string

When set to `trim-silence`, silence will be removed from the beginning and end of the recording.

const (
	CallRequestRecordTrimTrimSilence CallRequestRecordTrim = "trim-silence"
)

func (CallRequestRecordTrim) AllValues

AllValues returns all CallRequestRecordTrim values.

func (*CallRequestRecordTrim) Decode

func (s *CallRequestRecordTrim) Decode(d *jx.Decoder) error

Decode decodes CallRequestRecordTrim from json.

func (CallRequestRecordTrim) Encode

func (s CallRequestRecordTrim) Encode(e *jx.Encoder)

Encode encodes CallRequestRecordTrim as json.

func (CallRequestRecordTrim) MarshalJSON

func (s CallRequestRecordTrim) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRequestRecordTrim) MarshalText

func (s CallRequestRecordTrim) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRequestRecordTrim) UnmarshalJSON

func (s *CallRequestRecordTrim) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestRecordTrim) UnmarshalText

func (s *CallRequestRecordTrim) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRequestRecordTrim) Validate

func (s CallRequestRecordTrim) Validate() error

type CallRequestSipTransportProtocol

type CallRequestSipTransportProtocol string

Defines SIP transport protocol to be used on the call.

const (
	CallRequestSipTransportProtocolUDP CallRequestSipTransportProtocol = "UDP"
	CallRequestSipTransportProtocolTCP CallRequestSipTransportProtocol = "TCP"
	CallRequestSipTransportProtocolTLS CallRequestSipTransportProtocol = "TLS"
)

func (CallRequestSipTransportProtocol) AllValues

AllValues returns all CallRequestSipTransportProtocol values.

func (*CallRequestSipTransportProtocol) Decode

Decode decodes CallRequestSipTransportProtocol from json.

func (CallRequestSipTransportProtocol) Encode

Encode encodes CallRequestSipTransportProtocol as json.

func (CallRequestSipTransportProtocol) MarshalJSON

func (s CallRequestSipTransportProtocol) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRequestSipTransportProtocol) MarshalText

func (s CallRequestSipTransportProtocol) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRequestSipTransportProtocol) UnmarshalJSON

func (s *CallRequestSipTransportProtocol) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestSipTransportProtocol) UnmarshalText

func (s *CallRequestSipTransportProtocol) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRequestSipTransportProtocol) Validate

type CallRequestStreamTrack

type CallRequestStreamTrack string

Specifies which track should be streamed.

const (
	CallRequestStreamTrackInboundTrack  CallRequestStreamTrack = "inbound_track"
	CallRequestStreamTrackOutboundTrack CallRequestStreamTrack = "outbound_track"
	CallRequestStreamTrackBothTracks    CallRequestStreamTrack = "both_tracks"
)

func (CallRequestStreamTrack) AllValues

AllValues returns all CallRequestStreamTrack values.

func (*CallRequestStreamTrack) Decode

func (s *CallRequestStreamTrack) Decode(d *jx.Decoder) error

Decode decodes CallRequestStreamTrack from json.

func (CallRequestStreamTrack) Encode

func (s CallRequestStreamTrack) Encode(e *jx.Encoder)

Encode encodes CallRequestStreamTrack as json.

func (CallRequestStreamTrack) MarshalJSON

func (s CallRequestStreamTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRequestStreamTrack) MarshalText

func (s CallRequestStreamTrack) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRequestStreamTrack) UnmarshalJSON

func (s *CallRequestStreamTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestStreamTrack) UnmarshalText

func (s *CallRequestStreamTrack) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRequestStreamTrack) Validate

func (s CallRequestStreamTrack) Validate() error

type CallRequestTo

type CallRequestTo struct {
	Type        CallRequestToType // switch on this field
	String      string
	StringArray []string
}

The DID or SIP URI to dial out to. Multiple DID or SIP URIs can be provided using an array of strings. CallRequestTo represents sum type.

func NewStringArrayCallRequestTo

func NewStringArrayCallRequestTo(v []string) CallRequestTo

NewStringArrayCallRequestTo returns new CallRequestTo from []string.

func NewStringCallRequestTo

func NewStringCallRequestTo(v string) CallRequestTo

NewStringCallRequestTo returns new CallRequestTo from string.

func (*CallRequestTo) Decode

func (s *CallRequestTo) Decode(d *jx.Decoder) error

Decode decodes CallRequestTo from json.

func (CallRequestTo) Encode

func (s CallRequestTo) Encode(e *jx.Encoder)

Encode encodes CallRequestTo as json.

func (CallRequestTo) GetString

func (s CallRequestTo) GetString() (v string, ok bool)

GetString returns string and true boolean if CallRequestTo is string.

func (CallRequestTo) GetStringArray

func (s CallRequestTo) GetStringArray() (v []string, ok bool)

GetStringArray returns []string and true boolean if CallRequestTo is []string.

func (CallRequestTo) IsString

func (s CallRequestTo) IsString() bool

IsString reports whether CallRequestTo is string.

func (CallRequestTo) IsStringArray

func (s CallRequestTo) IsStringArray() bool

IsStringArray reports whether CallRequestTo is []string.

func (CallRequestTo) MarshalJSON

func (s CallRequestTo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallRequestTo) SetString

func (s *CallRequestTo) SetString(v string)

SetString sets CallRequestTo to string.

func (*CallRequestTo) SetStringArray

func (s *CallRequestTo) SetStringArray(v []string)

SetStringArray sets CallRequestTo to []string.

func (*CallRequestTo) UnmarshalJSON

func (s *CallRequestTo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (CallRequestTo) Validate

func (s CallRequestTo) Validate() error

type CallRequestToType

type CallRequestToType string

CallRequestToType is oneOf type of CallRequestTo.

const (
	StringCallRequestTo      CallRequestToType = "string"
	StringArrayCallRequestTo CallRequestToType = "[]string"
)

Possible values for CallRequestToType.

type CallRequestWebhookURLMethod

type CallRequestWebhookURLMethod string

HTTP request type used for `webhook_url`.

const (
	CallRequestWebhookURLMethodPOST CallRequestWebhookURLMethod = "POST"
	CallRequestWebhookURLMethodGET  CallRequestWebhookURLMethod = "GET"
)

func (CallRequestWebhookURLMethod) AllValues

AllValues returns all CallRequestWebhookURLMethod values.

func (*CallRequestWebhookURLMethod) Decode

Decode decodes CallRequestWebhookURLMethod from json.

func (CallRequestWebhookURLMethod) Encode

func (s CallRequestWebhookURLMethod) Encode(e *jx.Encoder)

Encode encodes CallRequestWebhookURLMethod as json.

func (CallRequestWebhookURLMethod) MarshalJSON

func (s CallRequestWebhookURLMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallRequestWebhookURLMethod) MarshalText

func (s CallRequestWebhookURLMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallRequestWebhookURLMethod) UnmarshalJSON

func (s *CallRequestWebhookURLMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallRequestWebhookURLMethod) UnmarshalText

func (s *CallRequestWebhookURLMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallRequestWebhookURLMethod) Validate

func (s CallRequestWebhookURLMethod) Validate() error

type CallResource

type CallResource struct {
	// The id of the account the resource belongs to.
	AccountSid OptString `json:"account_sid"`
	// The value of the answering machine detection result, if this feature was enabled for the call.
	AnsweredBy OptCallResourceAnsweredBy `json:"answered_by"`
	// Caller ID, if present.
	CallerName OptString `json:"caller_name"`
	// The timestamp of when the resource was created.
	DateCreated OptString `json:"date_created"`
	// The timestamp of when the resource was last updated.
	DateUpdated OptString `json:"date_updated"`
	// The direction of this call.
	Direction OptCallResourceDirection `json:"direction"`
	// The duration of this call, given in seconds.
	Duration OptString `json:"duration"`
	// The end time of this call.
	EndTime OptString `json:"end_time"`
	// The phone number or SIP address that made this call.
	From OptString `json:"from"`
	// The from number formatted for display.
	FromFormatted OptString `json:"from_formatted"`
	// The price of this call, the currency is specified in the price_unit field. Only populated when the
	// call cost feature is enabled for the account.
	Price OptString `json:"price"`
	// The unit in which the price is given.
	PriceUnit OptString `json:"price_unit"`
	// The identifier of this call.
	Sid OptString `json:"sid"`
	// The start time of this call.
	StartTime OptString `json:"start_time"`
	// The status of this call.
	Status OptCallResourceStatus `json:"status"`
	// The phone number or SIP address that received this call.
	To OptString `json:"to"`
	// The to number formatted for display.
	ToFormatted OptString `json:"to_formatted"`
	// The relative URI for this call.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/CallResource

func (*CallResource) Decode

func (s *CallResource) Decode(d *jx.Decoder) error

Decode decodes CallResource from json.

func (*CallResource) Encode

func (s *CallResource) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CallResource) GetAccountSid

func (s *CallResource) GetAccountSid() OptString

GetAccountSid returns the value of AccountSid.

func (*CallResource) GetAnsweredBy

func (s *CallResource) GetAnsweredBy() OptCallResourceAnsweredBy

GetAnsweredBy returns the value of AnsweredBy.

func (*CallResource) GetCallerName

func (s *CallResource) GetCallerName() OptString

GetCallerName returns the value of CallerName.

func (*CallResource) GetDateCreated

func (s *CallResource) GetDateCreated() OptString

GetDateCreated returns the value of DateCreated.

func (*CallResource) GetDateUpdated

func (s *CallResource) GetDateUpdated() OptString

GetDateUpdated returns the value of DateUpdated.

func (*CallResource) GetDirection

func (s *CallResource) GetDirection() OptCallResourceDirection

GetDirection returns the value of Direction.

func (*CallResource) GetDuration

func (s *CallResource) GetDuration() OptString

GetDuration returns the value of Duration.

func (*CallResource) GetEndTime

func (s *CallResource) GetEndTime() OptString

GetEndTime returns the value of EndTime.

func (*CallResource) GetFrom

func (s *CallResource) GetFrom() OptString

GetFrom returns the value of From.

func (*CallResource) GetFromFormatted

func (s *CallResource) GetFromFormatted() OptString

GetFromFormatted returns the value of FromFormatted.

func (*CallResource) GetPrice

func (s *CallResource) GetPrice() OptString

GetPrice returns the value of Price.

func (*CallResource) GetPriceUnit

func (s *CallResource) GetPriceUnit() OptString

GetPriceUnit returns the value of PriceUnit.

func (*CallResource) GetSid

func (s *CallResource) GetSid() OptString

GetSid returns the value of Sid.

func (*CallResource) GetStartTime

func (s *CallResource) GetStartTime() OptString

GetStartTime returns the value of StartTime.

func (*CallResource) GetStatus

func (s *CallResource) GetStatus() OptCallResourceStatus

GetStatus returns the value of Status.

func (*CallResource) GetTo

func (s *CallResource) GetTo() OptString

GetTo returns the value of To.

func (*CallResource) GetToFormatted

func (s *CallResource) GetToFormatted() OptString

GetToFormatted returns the value of ToFormatted.

func (*CallResource) GetURI

func (s *CallResource) GetURI() OptString

GetURI returns the value of URI.

func (*CallResource) MarshalJSON

func (s *CallResource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallResource) SetAccountSid

func (s *CallResource) SetAccountSid(val OptString)

SetAccountSid sets the value of AccountSid.

func (*CallResource) SetAnsweredBy

func (s *CallResource) SetAnsweredBy(val OptCallResourceAnsweredBy)

SetAnsweredBy sets the value of AnsweredBy.

func (*CallResource) SetCallerName

func (s *CallResource) SetCallerName(val OptString)

SetCallerName sets the value of CallerName.

func (*CallResource) SetDateCreated

func (s *CallResource) SetDateCreated(val OptString)

SetDateCreated sets the value of DateCreated.

func (*CallResource) SetDateUpdated

func (s *CallResource) SetDateUpdated(val OptString)

SetDateUpdated sets the value of DateUpdated.

func (*CallResource) SetDirection

func (s *CallResource) SetDirection(val OptCallResourceDirection)

SetDirection sets the value of Direction.

func (*CallResource) SetDuration

func (s *CallResource) SetDuration(val OptString)

SetDuration sets the value of Duration.

func (*CallResource) SetEndTime

func (s *CallResource) SetEndTime(val OptString)

SetEndTime sets the value of EndTime.

func (*CallResource) SetFrom

func (s *CallResource) SetFrom(val OptString)

SetFrom sets the value of From.

func (*CallResource) SetFromFormatted

func (s *CallResource) SetFromFormatted(val OptString)

SetFromFormatted sets the value of FromFormatted.

func (*CallResource) SetPrice

func (s *CallResource) SetPrice(val OptString)

SetPrice sets the value of Price.

func (*CallResource) SetPriceUnit

func (s *CallResource) SetPriceUnit(val OptString)

SetPriceUnit sets the value of PriceUnit.

func (*CallResource) SetSid

func (s *CallResource) SetSid(val OptString)

SetSid sets the value of Sid.

func (*CallResource) SetStartTime

func (s *CallResource) SetStartTime(val OptString)

SetStartTime sets the value of StartTime.

func (*CallResource) SetStatus

func (s *CallResource) SetStatus(val OptCallResourceStatus)

SetStatus sets the value of Status.

func (*CallResource) SetTo

func (s *CallResource) SetTo(val OptString)

SetTo sets the value of To.

func (*CallResource) SetToFormatted

func (s *CallResource) SetToFormatted(val OptString)

SetToFormatted sets the value of ToFormatted.

func (*CallResource) SetURI

func (s *CallResource) SetURI(val OptString)

SetURI sets the value of URI.

func (*CallResource) UnmarshalJSON

func (s *CallResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallResource) Validate

func (s *CallResource) Validate() error

type CallResourceAnsweredBy

type CallResourceAnsweredBy string

The value of the answering machine detection result, if this feature was enabled for the call.

const (
	CallResourceAnsweredByHuman   CallResourceAnsweredBy = "human"
	CallResourceAnsweredByMachine CallResourceAnsweredBy = "machine"
	CallResourceAnsweredByNotSure CallResourceAnsweredBy = "not_sure"
)

func (CallResourceAnsweredBy) AllValues

AllValues returns all CallResourceAnsweredBy values.

func (*CallResourceAnsweredBy) Decode

func (s *CallResourceAnsweredBy) Decode(d *jx.Decoder) error

Decode decodes CallResourceAnsweredBy from json.

func (CallResourceAnsweredBy) Encode

func (s CallResourceAnsweredBy) Encode(e *jx.Encoder)

Encode encodes CallResourceAnsweredBy as json.

func (CallResourceAnsweredBy) MarshalJSON

func (s CallResourceAnsweredBy) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallResourceAnsweredBy) MarshalText

func (s CallResourceAnsweredBy) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallResourceAnsweredBy) UnmarshalJSON

func (s *CallResourceAnsweredBy) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallResourceAnsweredBy) UnmarshalText

func (s *CallResourceAnsweredBy) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallResourceAnsweredBy) Validate

func (s CallResourceAnsweredBy) Validate() error

type CallResourceDirection

type CallResourceDirection string

The direction of this call.

const (
	CallResourceDirectionInbound  CallResourceDirection = "inbound"
	CallResourceDirectionOutbound CallResourceDirection = "outbound"
)

func (CallResourceDirection) AllValues

AllValues returns all CallResourceDirection values.

func (*CallResourceDirection) Decode

func (s *CallResourceDirection) Decode(d *jx.Decoder) error

Decode decodes CallResourceDirection from json.

func (CallResourceDirection) Encode

func (s CallResourceDirection) Encode(e *jx.Encoder)

Encode encodes CallResourceDirection as json.

func (CallResourceDirection) MarshalJSON

func (s CallResourceDirection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallResourceDirection) MarshalText

func (s CallResourceDirection) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallResourceDirection) UnmarshalJSON

func (s *CallResourceDirection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallResourceDirection) UnmarshalText

func (s *CallResourceDirection) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallResourceDirection) Validate

func (s CallResourceDirection) Validate() error

type CallResourceIndex

type CallResourceIndex struct {
	Calls []CallResource `json:"calls"`
	// The number of the last element on the page, zero-indexed.
	End OptInt `json:"end"`
	// /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls.json?Page=0&PageSize=1.
	FirstPageURI OptString `json:"first_page_uri"`
	// /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls.
	// json?Page=1&PageSize=1&PageToken=MTY4AjgyNDkwNzIxMQ.
	NextPageURI OptString `json:"next_page_uri"`
	// Current page number, zero-indexed.
	Page OptInt `json:"page"`
	// The number of items on the page.
	PageSize OptInt `json:"page_size"`
	// The number of the first element on the page, zero-indexed.
	Start OptInt `json:"start"`
	// The URI of the current page.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/CallResourceIndex

func (*CallResourceIndex) Decode

func (s *CallResourceIndex) Decode(d *jx.Decoder) error

Decode decodes CallResourceIndex from json.

func (*CallResourceIndex) Encode

func (s *CallResourceIndex) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CallResourceIndex) GetCalls

func (s *CallResourceIndex) GetCalls() []CallResource

GetCalls returns the value of Calls.

func (*CallResourceIndex) GetEnd

func (s *CallResourceIndex) GetEnd() OptInt

GetEnd returns the value of End.

func (*CallResourceIndex) GetFirstPageURI

func (s *CallResourceIndex) GetFirstPageURI() OptString

GetFirstPageURI returns the value of FirstPageURI.

func (*CallResourceIndex) GetNextPageURI

func (s *CallResourceIndex) GetNextPageURI() OptString

GetNextPageURI returns the value of NextPageURI.

func (*CallResourceIndex) GetPage

func (s *CallResourceIndex) GetPage() OptInt

GetPage returns the value of Page.

func (*CallResourceIndex) GetPageSize

func (s *CallResourceIndex) GetPageSize() OptInt

GetPageSize returns the value of PageSize.

func (*CallResourceIndex) GetStart

func (s *CallResourceIndex) GetStart() OptInt

GetStart returns the value of Start.

func (*CallResourceIndex) GetURI

func (s *CallResourceIndex) GetURI() OptString

GetURI returns the value of URI.

func (*CallResourceIndex) MarshalJSON

func (s *CallResourceIndex) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallResourceIndex) SetCalls

func (s *CallResourceIndex) SetCalls(val []CallResource)

SetCalls sets the value of Calls.

func (*CallResourceIndex) SetEnd

func (s *CallResourceIndex) SetEnd(val OptInt)

SetEnd sets the value of End.

func (*CallResourceIndex) SetFirstPageURI

func (s *CallResourceIndex) SetFirstPageURI(val OptString)

SetFirstPageURI sets the value of FirstPageURI.

func (*CallResourceIndex) SetNextPageURI

func (s *CallResourceIndex) SetNextPageURI(val OptString)

SetNextPageURI sets the value of NextPageURI.

func (*CallResourceIndex) SetPage

func (s *CallResourceIndex) SetPage(val OptInt)

SetPage sets the value of Page.

func (*CallResourceIndex) SetPageSize

func (s *CallResourceIndex) SetPageSize(val OptInt)

SetPageSize sets the value of PageSize.

func (*CallResourceIndex) SetStart

func (s *CallResourceIndex) SetStart(val OptInt)

SetStart sets the value of Start.

func (*CallResourceIndex) SetURI

func (s *CallResourceIndex) SetURI(val OptString)

SetURI sets the value of URI.

func (*CallResourceIndex) UnmarshalJSON

func (s *CallResourceIndex) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallResourceIndex) Validate

func (s *CallResourceIndex) Validate() error

type CallResourceStatus

type CallResourceStatus string

The status of this call.

const (
	CallResourceStatusRinging    CallResourceStatus = "ringing"
	CallResourceStatusInProgress CallResourceStatus = "in-progress"
	CallResourceStatusCanceled   CallResourceStatus = "canceled"
	CallResourceStatusCompleted  CallResourceStatus = "completed"
	CallResourceStatusFailed     CallResourceStatus = "failed"
	CallResourceStatusBusy       CallResourceStatus = "busy"
	CallResourceStatusNoAnswer   CallResourceStatus = "no-answer"
)

func (CallResourceStatus) AllValues

func (CallResourceStatus) AllValues() []CallResourceStatus

AllValues returns all CallResourceStatus values.

func (*CallResourceStatus) Decode

func (s *CallResourceStatus) Decode(d *jx.Decoder) error

Decode decodes CallResourceStatus from json.

func (CallResourceStatus) Encode

func (s CallResourceStatus) Encode(e *jx.Encoder)

Encode encodes CallResourceStatus as json.

func (CallResourceStatus) MarshalJSON

func (s CallResourceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CallResourceStatus) MarshalText

func (s CallResourceStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CallResourceStatus) UnmarshalJSON

func (s *CallResourceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CallResourceStatus) UnmarshalText

func (s *CallResourceStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CallResourceStatus) Validate

func (s CallResourceStatus) Validate() error

type CallerName

type CallerName struct {
	// The name of the requested phone number's owner as per the CNAM database.
	CallerName OptString `json:"caller_name"`
	// A caller-name lookup specific error code, expressed as a stringified 5-digit integer.
	ErrorCode OptString `json:"error_code"`
}

Ref: #/components/schemas/CallerName

func (*CallerName) Decode

func (s *CallerName) Decode(d *jx.Decoder) error

Decode decodes CallerName from json.

func (*CallerName) Encode

func (s *CallerName) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CallerName) GetCallerName

func (s *CallerName) GetCallerName() OptString

GetCallerName returns the value of CallerName.

func (*CallerName) GetErrorCode

func (s *CallerName) GetErrorCode() OptString

GetErrorCode returns the value of ErrorCode.

func (*CallerName) MarshalJSON

func (s *CallerName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CallerName) SetCallerName

func (s *CallerName) SetCallerName(val OptString)

SetCallerName sets the value of CallerName.

func (*CallerName) SetErrorCode

func (s *CallerName) SetErrorCode(val OptString)

SetErrorCode sets the value of ErrorCode.

func (*CallerName) UnmarshalJSON

func (s *CallerName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CancelPortingOrderParams

type CancelPortingOrderParams struct {
	// Porting Order id.
	ID uuid.UUID
}

CancelPortingOrderParams is parameters of CancelPortingOrder operation.

type CancelPortingOrderRes

type CancelPortingOrderRes interface {
	// contains filtered or unexported methods
}

type CancelPortingOrderResponse

type CancelPortingOrderResponse struct {
	Data OptPortingOrder                   `json:"data"`
	Meta OptCancelPortingOrderResponseMeta `json:"meta"`
}

func (*CancelPortingOrderResponse) Decode

Decode decodes CancelPortingOrderResponse from json.

func (*CancelPortingOrderResponse) Encode

func (s *CancelPortingOrderResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CancelPortingOrderResponse) GetData

GetData returns the value of Data.

func (*CancelPortingOrderResponse) GetMeta

GetMeta returns the value of Meta.

func (*CancelPortingOrderResponse) MarshalJSON

func (s *CancelPortingOrderResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CancelPortingOrderResponse) SetData

SetData sets the value of Data.

func (*CancelPortingOrderResponse) SetMeta

SetMeta sets the value of Meta.

func (*CancelPortingOrderResponse) UnmarshalJSON

func (s *CancelPortingOrderResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CancelPortingOrderResponse) Validate

func (s *CancelPortingOrderResponse) Validate() error

type CancelPortingOrderResponseMeta

type CancelPortingOrderResponseMeta struct {
	// Link to list all phone numbers.
	PhoneNumbersURL OptString `json:"phone_numbers_url"`
}

func (*CancelPortingOrderResponseMeta) Decode

Decode decodes CancelPortingOrderResponseMeta from json.

func (*CancelPortingOrderResponseMeta) Encode

Encode implements json.Marshaler.

func (*CancelPortingOrderResponseMeta) GetPhoneNumbersURL

func (s *CancelPortingOrderResponseMeta) GetPhoneNumbersURL() OptString

GetPhoneNumbersURL returns the value of PhoneNumbersURL.

func (*CancelPortingOrderResponseMeta) MarshalJSON

func (s *CancelPortingOrderResponseMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CancelPortingOrderResponseMeta) SetPhoneNumbersURL

func (s *CancelPortingOrderResponseMeta) SetPhoneNumbersURL(val OptString)

SetPhoneNumbersURL sets the value of PhoneNumbersURL.

func (*CancelPortingOrderResponseMeta) UnmarshalJSON

func (s *CancelPortingOrderResponseMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CancelPortingOrderUnauthorized

type CancelPortingOrderUnauthorized struct{}

CancelPortingOrderUnauthorized is response for CancelPortingOrder operation.

type CancelPortingOrderUnprocessableEntity

type CancelPortingOrderUnprocessableEntity struct{}

CancelPortingOrderUnprocessableEntity is response for CancelPortingOrder operation.

type Carrier

type Carrier struct {
	// Region code that matches the specific country calling code if the requested phone number type is
	// mobile.
	MobileCountryCode OptString `json:"mobile_country_code"`
	// National destination code (NDC), with a 0 prefix, if an NDC is found and the requested phone
	// number type is mobile.
	MobileNetworkCode OptString `json:"mobile_network_code"`
	// SPID (Service Provider ID) name, if the requested phone number has been ported; otherwise, the
	// name of carrier who owns the phone number block.
	Name OptString `json:"name"`
	// A phone number type that identifies the type of service associated with the requested phone number.
	Type OptCarrierType `json:"type"`
	// Unused.
	ErrorCode OptString `json:"error_code"`
	// If known to Telnyx and applicable, the primary network carrier.
	NormalizedCarrier OptString `json:"normalized_carrier"`
}

Ref: #/components/schemas/Carrier

func (*Carrier) Decode

func (s *Carrier) Decode(d *jx.Decoder) error

Decode decodes Carrier from json.

func (*Carrier) Encode

func (s *Carrier) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Carrier) GetErrorCode

func (s *Carrier) GetErrorCode() OptString

GetErrorCode returns the value of ErrorCode.

func (*Carrier) GetMobileCountryCode

func (s *Carrier) GetMobileCountryCode() OptString

GetMobileCountryCode returns the value of MobileCountryCode.

func (*Carrier) GetMobileNetworkCode

func (s *Carrier) GetMobileNetworkCode() OptString

GetMobileNetworkCode returns the value of MobileNetworkCode.

func (*Carrier) GetName

func (s *Carrier) GetName() OptString

GetName returns the value of Name.

func (*Carrier) GetNormalizedCarrier

func (s *Carrier) GetNormalizedCarrier() OptString

GetNormalizedCarrier returns the value of NormalizedCarrier.

func (*Carrier) GetType

func (s *Carrier) GetType() OptCarrierType

GetType returns the value of Type.

func (*Carrier) MarshalJSON

func (s *Carrier) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Carrier) SetErrorCode

func (s *Carrier) SetErrorCode(val OptString)

SetErrorCode sets the value of ErrorCode.

func (*Carrier) SetMobileCountryCode

func (s *Carrier) SetMobileCountryCode(val OptString)

SetMobileCountryCode sets the value of MobileCountryCode.

func (*Carrier) SetMobileNetworkCode

func (s *Carrier) SetMobileNetworkCode(val OptString)

SetMobileNetworkCode sets the value of MobileNetworkCode.

func (*Carrier) SetName

func (s *Carrier) SetName(val OptString)

SetName sets the value of Name.

func (*Carrier) SetNormalizedCarrier

func (s *Carrier) SetNormalizedCarrier(val OptString)

SetNormalizedCarrier sets the value of NormalizedCarrier.

func (*Carrier) SetType

func (s *Carrier) SetType(val OptCarrierType)

SetType sets the value of Type.

func (*Carrier) UnmarshalJSON

func (s *Carrier) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Carrier) Validate

func (s *Carrier) Validate() error

type CarrierType

type CarrierType string

A phone number type that identifies the type of service associated with the requested phone number.

const (
	CarrierTypeFixedLine         CarrierType = "fixed line"
	CarrierTypeMobile            CarrierType = "mobile"
	CarrierTypeVoip              CarrierType = "voip"
	CarrierTypeFixedLineOrMobile CarrierType = "fixed line or mobile"
	CarrierTypeTollFree          CarrierType = "toll free"
	CarrierTypePremiumRate       CarrierType = "premium rate"
	CarrierTypeSharedCost        CarrierType = "shared cost"
	CarrierTypePersonalNumber    CarrierType = "personal number"
	CarrierTypePager             CarrierType = "pager"
	CarrierTypeUan               CarrierType = "uan"
	CarrierTypeVoicemail         CarrierType = "voicemail"
	CarrierTypeUnknown           CarrierType = "unknown"
)

func (CarrierType) AllValues

func (CarrierType) AllValues() []CarrierType

AllValues returns all CarrierType values.

func (*CarrierType) Decode

func (s *CarrierType) Decode(d *jx.Decoder) error

Decode decodes CarrierType from json.

func (CarrierType) Encode

func (s CarrierType) Encode(e *jx.Encoder)

Encode encodes CarrierType as json.

func (CarrierType) MarshalJSON

func (s CarrierType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CarrierType) MarshalText

func (s CarrierType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CarrierType) UnmarshalJSON

func (s *CarrierType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CarrierType) UnmarshalText

func (s *CarrierType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CarrierType) Validate

func (s CarrierType) Validate() error

type ChannelTypeId

type ChannelTypeId string
const (
	ChannelTypeIdWebhook ChannelTypeId = "webhook"
	ChannelTypeIdSMS     ChannelTypeId = "sms"
	ChannelTypeIdEmail   ChannelTypeId = "email"
	ChannelTypeIdVoice   ChannelTypeId = "voice"
)

func (ChannelTypeId) AllValues

func (ChannelTypeId) AllValues() []ChannelTypeId

AllValues returns all ChannelTypeId values.

func (ChannelTypeId) MarshalText

func (s ChannelTypeId) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ChannelTypeId) UnmarshalText

func (s *ChannelTypeId) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ChannelTypeId) Validate

func (s ChannelTypeId) Validate() error

type Client

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

Client implements OAS client.

func NewClient

func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) ActivatePortingOrder

func (c *Client) ActivatePortingOrder(ctx context.Context, params ActivatePortingOrderParams) (ActivatePortingOrderRes, error)

ActivatePortingOrder invokes ActivatePortingOrder operation.

Activate each number in a porting order asynchronously. This operation is limited to US FastPort orders only.

POST /porting_orders/{id}/actions/activate

func (*Client) AnswerCall

func (c *Client) AnswerCall(ctx context.Context, request *AnswerRequest, params AnswerCallParams) (AnswerCallRes, error)

AnswerCall invokes AnswerCall operation.

Answer an incoming call. You must issue this command before executing subsequent commands on an incoming call. **Expected Webhooks:** - `call.answered` - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set.

POST /calls/{call_control_id}/actions/answer

func (*Client) AssignPhoneNumber

func (c *Client) AssignPhoneNumber(ctx context.Context, request *AssignPhoneNumberReq, params AssignPhoneNumberParams) (AssignPhoneNumberRes, error)

AssignPhoneNumber invokes AssignPhoneNumber operation.

You should own the phone number being assigned to the channel zone. Remember that you should reserve channels in this channel zone, otherwise you won't be able to receive incoming calls.

POST /channel_zones/{channel_zone_id}/channel_zone_phone_numbers

func (*Client) AudioPublicAudioTranscriptionsPost

func (c *Client) AudioPublicAudioTranscriptionsPost(ctx context.Context, request *AudioTranscriptionRequestMultipart) (AudioPublicAudioTranscriptionsPostRes, error)

AudioPublicAudioTranscriptionsPost invokes audio_public_audio_transcriptions_post operation.

Transcribe speech to text. This endpoint is consistent with the [OpenAI Transcription API](https://platform.openai.com/docs/api-reference/audio/createTranscription) and may be used with the OpenAI JS or Python SDK.

POST /ai/audio/transcriptions

func (*Client) BridgeCall

func (c *Client) BridgeCall(ctx context.Context, request *BridgeRequest, params BridgeCallParams) (BridgeCallRes, error)

BridgeCall invokes BridgeCall operation.

Bridge two call control calls. **Expected Webhooks:** - `call.bridged` for Leg A - `call.bridged` for Leg B.

POST /calls/{call_control_id}/actions/bridge

func (*Client) BulkCredentialAction

func (c *Client) BulkCredentialAction(ctx context.Context, params BulkCredentialActionParams) (BulkCredentialActionRes, error)

BulkCredentialAction invokes BulkCredentialAction operation.

Perform activate or deactivate action on all credentials filtered by the provided tag. Activate action will change the status to active, making it possible to connect calls with the credential. Deactivate action will change the status to inactive, making it impossible to connect calls with the credential.

POST /actions/{action}/telephony_credentials

func (*Client) CancelPortingOrder

func (c *Client) CancelPortingOrder(ctx context.Context, params CancelPortingOrderParams) (CancelPortingOrderRes, error)

CancelPortingOrder invokes CancelPortingOrder operation.

Cancel a porting order.

POST /porting_orders/{id}/actions/cancel

func (*Client) ConfirmPortingOrder

func (c *Client) ConfirmPortingOrder(ctx context.Context, params ConfirmPortingOrderParams) (ConfirmPortingOrderRes, error)

ConfirmPortingOrder invokes ConfirmPortingOrder operation.

Confirm and submit your porting order.

POST /porting_orders/{id}/actions/confirm

func (*Client) CreateAdditionalDocuments

CreateAdditionalDocuments invokes CreateAdditionalDocuments operation.

Creates a list of additional documents for a porting order.

POST /porting_orders/{id}/additional_documents

func (*Client) CreateBulkTelephonyCredentials

func (c *Client) CreateBulkTelephonyCredentials(ctx context.Context, request *BulkCredentialRequest) (CreateBulkTelephonyCredentialsRes, error)

CreateBulkTelephonyCredentials invokes CreateBulkTelephonyCredentials operation.

Creates several credentials in bulk.

POST /actions/bulk/telephony_credentials

func (*Client) CreateCallControlApplication

func (c *Client) CreateCallControlApplication(ctx context.Context, request *CreateCallControlApplicationRequest) (CreateCallControlApplicationRes, error)

CreateCallControlApplication invokes CreateCallControlApplication operation.

Create a call control application.

POST /call_control_applications

func (*Client) CreateComment

func (c *Client) CreateComment(ctx context.Context, request *Comment) (CreateCommentRes, error)

CreateComment invokes CreateComment operation.

Create a comment.

POST /comments

func (*Client) CreateCsvDownload

func (c *Client) CreateCsvDownload(ctx context.Context) (CreateCsvDownloadRes, error)

CreateCsvDownload invokes CreateCsvDownload operation.

Create a CSV download.

POST /phone_numbers/csv_downloads

func (*Client) CreateCustomStorageCredentials

CreateCustomStorageCredentials invokes CreateCustomStorageCredentials operation.

Creates a custom storage credentials configuration.

POST /custom_storage_credentials/{connection_id}

func (*Client) CreateDefaultGateway

func (c *Client) CreateDefaultGateway(ctx context.Context, request *DefaultGateway, params CreateDefaultGatewayParams) (CreateDefaultGatewayRes, error)

CreateDefaultGateway invokes CreateDefaultGateway operation.

Create Default Gateway.

POST /networks/{id}/default_gateway

func (*Client) CreateDeletePhoneNumbersJob

CreateDeletePhoneNumbersJob invokes CreateDeletePhoneNumbersJob operation.

Creates a new background job to delete a batch of numbers. At most one thousand numbers can be updated per API call.

POST /phone_numbers/jobs/delete_phone_numbers

func (*Client) CreateFlashcallVerification

func (c *Client) CreateFlashcallVerification(ctx context.Context, request *CreateVerificationRequestFlashcall) (CreateFlashcallVerificationRes, error)

CreateFlashcallVerification invokes CreateFlashcallVerification operation.

Trigger Flash call verification.

POST /verifications/flashcall

func (*Client) CreateGroupMmsMessage

func (c *Client) CreateGroupMmsMessage(ctx context.Context, request OptCreateGroupMMSMessageRequest) (CreateGroupMmsMessageRes, error)

CreateGroupMmsMessage invokes CreateGroupMmsMessage operation.

Send a group MMS message.

POST /messages/group_mms

func (*Client) CreateLoaConfiguration

func (c *Client) CreateLoaConfiguration(ctx context.Context, request *CreateLoaConfigurationReq) (CreateLoaConfigurationRes, error)

CreateLoaConfiguration invokes CreateLoaConfiguration operation.

Create a LOA configuration.

POST /porting/loa_configurations

func (*Client) CreateLongCodeMessage

func (c *Client) CreateLongCodeMessage(ctx context.Context, request OptCreateLongCodeMessageRequest) (CreateLongCodeMessageRes, error)

CreateLongCodeMessage invokes CreateLongCodeMessage operation.

Send a long code message.

POST /messages/long_code

func (*Client) CreateMessagingHostedNumberOrder

CreateMessagingHostedNumberOrder invokes CreateMessagingHostedNumberOrder operation.

Create a messaging hosted number order.

POST /messaging_hosted_number_orders

func (*Client) CreateNetwork

func (c *Client) CreateNetwork(ctx context.Context, request *NetworkCreate) (CreateNetworkRes, error)

CreateNetwork invokes CreateNetwork operation.

Create a new Network.

POST /networks

func (*Client) CreateNotificationChannels

func (c *Client) CreateNotificationChannels(ctx context.Context, request OptNotificationChannel) (CreateNotificationChannelsRes, error)

CreateNotificationChannels invokes CreateNotificationChannels operation.

Create a notification channel.

POST /notification_channels

func (*Client) CreateNumberOrderDocument

func (c *Client) CreateNumberOrderDocument(ctx context.Context, request *CreateNumberOrderDocumentRequest) (CreateNumberOrderDocumentRes, error)

CreateNumberOrderDocument invokes CreateNumberOrderDocument operation.

Upload a phone number order document.

POST /number_order_documents

func (*Client) CreateNumberPoolMessage

func (c *Client) CreateNumberPoolMessage(ctx context.Context, request OptCreateNumberPoolMessageRequest) (CreateNumberPoolMessageRes, error)

CreateNumberPoolMessage invokes CreateNumberPoolMessage operation.

Send a message using number pool.

POST /messages/number_pool

func (*Client) CreateNumberReservation

func (c *Client) CreateNumberReservation(ctx context.Context, request *CreateNumberReservationRequest) (CreateNumberReservationRes, error)

CreateNumberReservation invokes CreateNumberReservation operation.

Creates a Phone Number Reservation for multiple numbers.

POST /number_reservations

func (*Client) CreatePhoneNumberConfigurations

func (c *Client) CreatePhoneNumberConfigurations(ctx context.Context, request *CreatePhoneNumberConfigurationsReq) (CreatePhoneNumberConfigurationsRes, error)

CreatePhoneNumberConfigurations invokes CreatePhoneNumberConfigurations operation.

Creates a list of phone number configurations.

POST /porting_orders/phone_number_configurations

func (*Client) CreatePhoneNumbersJobUpdateEmergencySettings

func (c *Client) CreatePhoneNumbersJobUpdateEmergencySettings(ctx context.Context, request *PhoneNumbersJobUpdateEmergencySettingsRequest) (CreatePhoneNumbersJobUpdateEmergencySettingsRes, error)

CreatePhoneNumbersJobUpdateEmergencySettings invokes CreatePhoneNumbersJobUpdateEmergencySettings operation.

Creates a background job to update the emergency settings of a collection of phone numbers. At most one thousand numbers can be updated per API call.

POST /phone_numbers/jobs/update_emergency_settings

func (*Client) CreatePortingOrder

func (c *Client) CreatePortingOrder(ctx context.Context, request *CreatePortingOrder) (CreatePortingOrderRes, error)

CreatePortingOrder invokes CreatePortingOrder operation.

Creates a new porting order object.

POST /porting_orders

func (*Client) CreatePortingReport

func (c *Client) CreatePortingReport(ctx context.Context, request *CreatePortingReportReq) (CreatePortingReportRes, error)

CreatePortingReport invokes CreatePortingReport operation.

Generate reports about porting operations.

POST /porting/reports

func (*Client) CreatePrivateWirelessGateway

func (c *Client) CreatePrivateWirelessGateway(ctx context.Context, request *CreatePrivateWirelessGatewayReq) (CreatePrivateWirelessGatewayRes, error)

CreatePrivateWirelessGateway invokes CreatePrivateWirelessGateway operation.

Asynchronously create a Private Wireless Gateway for SIM cards for a previously created network.

POST /private_wireless_gateways

func (*Client) CreateProfile

CreateProfile invokes CreateProfile operation.

Creates a Verified Calls Display Profile associated with the given Business Identity.

POST /verified_calls_display_profiles

func (*Client) CreateProfileVerificationRequest

func (c *Client) CreateProfileVerificationRequest(ctx context.Context, params CreateProfileVerificationRequestParams) (CreateProfileVerificationRequestRes, error)

CreateProfileVerificationRequest invokes CreateProfileVerificationRequest operation.

Starts a new Verified Calls Display Profile verification process.

POST /verified_calls_display_profiles/{id}/verification_request

func (*Client) CreateShortCodeMessage

func (c *Client) CreateShortCodeMessage(ctx context.Context, request OptCreateShortCodeMessageRequest) (CreateShortCodeMessageRes, error)

CreateShortCodeMessage invokes CreateShortCodeMessage operation.

Send a short code message.

POST /messages/short_code

func (*Client) CreateTelephonyCredential

func (c *Client) CreateTelephonyCredential(ctx context.Context, request *TelephonyCredentialCreateRequest) (CreateTelephonyCredentialRes, error)

CreateTelephonyCredential invokes CreateTelephonyCredential operation.

Create a credential.

POST /telephony_credentials

func (*Client) CreateTelephonyCredentialToken

func (c *Client) CreateTelephonyCredentialToken(ctx context.Context, params CreateTelephonyCredentialTokenParams) (CreateTelephonyCredentialTokenRes, error)

CreateTelephonyCredentialToken invokes CreateTelephonyCredentialToken operation.

Create an Access Token (JWT) for the credential.

POST /telephony_credentials/{id}/token

func (*Client) CreateTexmlApplication

func (c *Client) CreateTexmlApplication(ctx context.Context, request *CreateTexmlApplicationRequest) (CreateTexmlApplicationRes, error)

CreateTexmlApplication invokes CreateTexmlApplication operation.

Creates a TeXML Application.

POST /texml_applications

func (*Client) CreateTexmlSecret

func (c *Client) CreateTexmlSecret(ctx context.Context, request *CreateTeXMLSecretRequest) (CreateTexmlSecretRes, error)

CreateTexmlSecret invokes CreateTexmlSecret operation.

Create a TeXML secret which can be later used as a Dynamic Parameter for TeXML when using Mustache Templates in your TeXML. In your TeXML you will be able to use your secret name, and this name will be replaced by the actual secret value when processing the TeXML on Telnyx side. The secrets are not visible in any logs.

POST /texml/secrets

func (*Client) CreateUpdatePhoneNumbersJob

CreateUpdatePhoneNumbersJob invokes CreateUpdatePhoneNumbersJob operation.

Creates a new background job to update a batch of numbers. At most one thousand numbers can be updated per API call. At least one of the updateable fields must be submitted.

POST /phone_numbers/jobs/update_phone_numbers

func (*Client) CreateVerificationCall

func (c *Client) CreateVerificationCall(ctx context.Context, request *CreateVerificationRequestCall) (CreateVerificationCallRes, error)

CreateVerificationCall invokes CreateVerificationCall operation.

Trigger Call verification.

POST /verifications/call

func (*Client) CreateVerificationSms

func (c *Client) CreateVerificationSms(ctx context.Context, request *CreateVerificationRequestSMS) (CreateVerificationSmsRes, error)

CreateVerificationSms invokes CreateVerificationSms operation.

Trigger SMS verification.

POST /verifications/sms

func (*Client) CreateVerifiedNumber

func (c *Client) CreateVerifiedNumber(ctx context.Context, request *CreateVerifiedNumberReq) (CreateVerifiedNumberRes, error)

CreateVerifiedNumber invokes CreateVerifiedNumber operation.

Initiates phone number verification procedure.

POST /verified_numbers

func (*Client) CreateVerifyProfile

func (c *Client) CreateVerifyProfile(ctx context.Context, request *CreateVerifyProfileReq) (CreateVerifyProfileRes, error)

CreateVerifyProfile invokes CreateVerifyProfile operation.

Creates a new Verify profile to associate verifications with.

POST /verify_profiles

func (*Client) CreateVoiceProfile

func (c *Client) CreateVoiceProfile(ctx context.Context, request *CreateOutboundVoiceProfileRequest) (CreateVoiceProfileRes, error)

CreateVoiceProfile invokes CreateVoiceProfile operation.

Create an outbound voice profile.

POST /outbound_voice_profiles

func (*Client) DeleteAdditionalDocument

func (c *Client) DeleteAdditionalDocument(ctx context.Context, params DeleteAdditionalDocumentParams) (DeleteAdditionalDocumentRes, error)

DeleteAdditionalDocument invokes DeleteAdditionalDocument operation.

Deletes an additional document for a porting order.

DELETE /porting_orders/{id}/additional_documents/{additional_document_id}

func (*Client) DeleteCallControlApplication

func (c *Client) DeleteCallControlApplication(ctx context.Context, params DeleteCallControlApplicationParams) (DeleteCallControlApplicationRes, error)

DeleteCallControlApplication invokes DeleteCallControlApplication operation.

Deletes a call control application.

DELETE /call_control_applications/{id}

func (*Client) DeleteCustomStorageCredentials

func (c *Client) DeleteCustomStorageCredentials(ctx context.Context, params DeleteCustomStorageCredentialsParams) (DeleteCustomStorageCredentialsRes, error)

DeleteCustomStorageCredentials invokes DeleteCustomStorageCredentials operation.

Deletes a stored custom credentials configuration.

DELETE /custom_storage_credentials/{connection_id}

func (*Client) DeleteDefaultGateway

func (c *Client) DeleteDefaultGateway(ctx context.Context, params DeleteDefaultGatewayParams) (DeleteDefaultGatewayRes, error)

DeleteDefaultGateway invokes DeleteDefaultGateway operation.

Delete Default Gateway.

DELETE /networks/{id}/default_gateway

func (*Client) DeleteExternalConnectionLogMessage

func (c *Client) DeleteExternalConnectionLogMessage(ctx context.Context, params DeleteExternalConnectionLogMessageParams) (DeleteExternalConnectionLogMessageRes, error)

DeleteExternalConnectionLogMessage invokes DeleteExternalConnectionLogMessage operation.

Dismiss a log message for an external connection associated with your account.

DELETE /external_connections/log_messages/{id}

func (*Client) DeleteLoaConfiguration

func (c *Client) DeleteLoaConfiguration(ctx context.Context, params DeleteLoaConfigurationParams) (DeleteLoaConfigurationRes, error)

DeleteLoaConfiguration invokes DeleteLoaConfiguration operation.

Delete a specific LOA configuration.

DELETE /porting/loa_configurations/{id}

func (*Client) DeleteNetwork

func (c *Client) DeleteNetwork(ctx context.Context, params DeleteNetworkParams) (DeleteNetworkRes, error)

DeleteNetwork invokes DeleteNetwork operation.

Delete a Network.

DELETE /networks/{id}

func (*Client) DeleteNotificationChannel

func (c *Client) DeleteNotificationChannel(ctx context.Context, params DeleteNotificationChannelParams) (DeleteNotificationChannelRes, error)

DeleteNotificationChannel invokes DeleteNotificationChannel operation.

Delete a notification channel.

DELETE /notification_channels/{id}

func (*Client) DeleteOutboundVoiceProfile

func (c *Client) DeleteOutboundVoiceProfile(ctx context.Context, params DeleteOutboundVoiceProfileParams) (DeleteOutboundVoiceProfileRes, error)

DeleteOutboundVoiceProfile invokes DeleteOutboundVoiceProfile operation.

Deletes an existing outbound voice profile.

DELETE /outbound_voice_profiles/{id}

func (*Client) DeletePhoneNumber

func (c *Client) DeletePhoneNumber(ctx context.Context, params DeletePhoneNumberParams) (DeletePhoneNumberRes, error)

DeletePhoneNumber invokes DeletePhoneNumber operation.

Delete a phone number.

DELETE /phone_numbers/{id}

func (*Client) DeletePortingOrder

func (c *Client) DeletePortingOrder(ctx context.Context, params DeletePortingOrderParams) (DeletePortingOrderRes, error)

DeletePortingOrder invokes DeletePortingOrder operation.

Deletes an existing porting order. This operation is restrict to porting orders in draft state.

DELETE /porting_orders/{id}

func (*Client) DeleteProfile

func (c *Client) DeleteProfile(ctx context.Context, params DeleteProfileParams) (DeleteProfileRes, error)

DeleteProfile invokes DeleteProfile operation.

Delete Verify profile.

DELETE /verify_profiles/{verify_profile_id}

func (*Client) DeleteRecording

func (c *Client) DeleteRecording(ctx context.Context, params DeleteRecordingParams) (DeleteRecordingRes, error)

DeleteRecording invokes DeleteRecording operation.

Permanently deletes a call recording.

DELETE /recordings/{recording_id}

func (*Client) DeleteRecordingTranscription

func (c *Client) DeleteRecordingTranscription(ctx context.Context, params DeleteRecordingTranscriptionParams) (DeleteRecordingTranscriptionRes, error)

DeleteRecordingTranscription invokes deleteRecordingTranscription operation.

Permanently deletes a recording transcription.

DELETE /recording_transcriptions/{recording_transcription_id}

func (*Client) DeleteRecordings

func (c *Client) DeleteRecordings(ctx context.Context, request []string) (DeleteRecordingsRes, error)

DeleteRecordings invokes DeleteRecordings operation.

Permanently deletes a list of call recordings.

DELETE /recordings/actions/delete

func (*Client) DeleteRoomRecording

func (c *Client) DeleteRoomRecording(ctx context.Context, params DeleteRoomRecordingParams) (DeleteRoomRecordingRes, error)

DeleteRoomRecording invokes DeleteRoomRecording operation.

Synchronously delete a Room Recording.

DELETE /room_recordings/{room_recording_id}

func (*Client) DeleteRoomRecordings

func (c *Client) DeleteRoomRecordings(ctx context.Context, params DeleteRoomRecordingsParams) (DeleteRoomRecordingsRes, error)

DeleteRoomRecordings invokes DeleteRoomRecordings operation.

Delete several room recordings in a bulk.

DELETE /room_recordings

func (*Client) DeleteTeXMLCallRecording

func (c *Client) DeleteTeXMLCallRecording(ctx context.Context, params DeleteTeXMLCallRecordingParams) (DeleteTeXMLCallRecordingRes, error)

DeleteTeXMLCallRecording invokes DeleteTeXMLCallRecording operation.

Deletes recording resource identified by recording id.

DELETE /texml/Accounts/{account_sid}/Recordings/{recording_sid}.json

func (*Client) DeleteTeXMLRecordingTranscription

func (c *Client) DeleteTeXMLRecordingTranscription(ctx context.Context, params DeleteTeXMLRecordingTranscriptionParams) (DeleteTeXMLRecordingTranscriptionRes, error)

DeleteTeXMLRecordingTranscription invokes DeleteTeXMLRecordingTranscription operation.

Permanently deletes a recording transcription.

DELETE /texml/Accounts/{account_sid}/Transcriptions/{recording_transcription_sid}.json

func (*Client) DeleteTelephonyCredential

func (c *Client) DeleteTelephonyCredential(ctx context.Context, params DeleteTelephonyCredentialParams) (DeleteTelephonyCredentialRes, error)

DeleteTelephonyCredential invokes DeleteTelephonyCredential operation.

Delete an existing credential.

DELETE /telephony_credentials/{id}

func (*Client) DeleteTelephonyCredentials

func (c *Client) DeleteTelephonyCredentials(ctx context.Context, params DeleteTelephonyCredentialsParams) (DeleteTelephonyCredentialsRes, error)

DeleteTelephonyCredentials invokes DeleteTelephonyCredentials operation.

Delete several credentials in bulk.

DELETE /actions/bulk/telephony_credentials

func (*Client) DeleteTexmlApplication

func (c *Client) DeleteTexmlApplication(ctx context.Context, params DeleteTexmlApplicationParams) (DeleteTexmlApplicationRes, error)

DeleteTexmlApplication invokes DeleteTexmlApplication operation.

Deletes a TeXML Application.

DELETE /texml_applications/{id}

func (*Client) DeleteTexmlConferenceParticipant

func (c *Client) DeleteTexmlConferenceParticipant(ctx context.Context, params DeleteTexmlConferenceParticipantParams) (DeleteTexmlConferenceParticipantRes, error)

DeleteTexmlConferenceParticipant invokes DeleteTexmlConferenceParticipant operation.

Deletes a conference participant.

DELETE /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants/{call_sid}

func (*Client) DeleteVerifiedCallDisplayProfile

func (c *Client) DeleteVerifiedCallDisplayProfile(ctx context.Context, params DeleteVerifiedCallDisplayProfileParams) (DeleteVerifiedCallDisplayProfileRes, error)

DeleteVerifiedCallDisplayProfile invokes DeleteVerifiedCallDisplayProfile operation.

Deletes the Verified Calls Display Profile. This action will fail if any verification requests have been made for this Verified Calls Display Profile. Please contact support@telnyx.com in case you want to delete a Verified Calls Display Profile in that situation.

DELETE /verified_calls_display_profiles/{id}

func (*Client) DeleteVerifiedNumber

func (c *Client) DeleteVerifiedNumber(ctx context.Context, params DeleteVerifiedNumberParams) (DeleteVerifiedNumberRes, error)

DeleteVerifiedNumber invokes DeleteVerifiedNumber operation.

Delete a verified number.

DELETE /verified_numbers/{phone_number}

func (*Client) DeleteWirelessGateway

func (c *Client) DeleteWirelessGateway(ctx context.Context, params DeleteWirelessGatewayParams) (DeleteWirelessGatewayRes, error)

DeleteWirelessGateway invokes DeleteWirelessGateway operation.

Deletes the Private Wireless Gateway.

DELETE /private_wireless_gateways/{id}

func (*Client) DialCall

func (c *Client) DialCall(ctx context.Context, request *CallRequest) (DialCallRes, error)

DialCall invokes DialCall operation.

Dial a number or SIP URI from a given connection. A successful response will include a `call_leg_id` which can be used to correlate the command with subsequent webhooks. **Expected Webhooks:** - `call.initiated` - `call.answered` or `call.hangup` - `call.machine.detection.ended` if `answering_machine_detection` was requested - `call.machine.greeting.ended` if `answering_machine_detection` was requested to detect the end of machine greeting - `call.machine.premium.detection.ended` if `answering_machine_detection=premium` was requested - `call.machine.premium.greeting.ended` if `answering_machine_detection=premium` was requested and a beep was detected - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set.

POST /calls

func (*Client) DialTexmlConferenceParticipant

DialTexmlConferenceParticipant invokes DialTexmlConferenceParticipant operation.

Dials a new conference participant.

POST /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants

func (*Client) DisplayProfile

func (c *Client) DisplayProfile(ctx context.Context, params DisplayProfileParams) (DisplayProfileRes, error)

DisplayProfile invokes DisplayProfile operation.

Display the Verified Calls Display Profile.

GET /verified_calls_display_profiles/{id}

func (*Client) EnablePhoneNumberEmergency

EnablePhoneNumberEmergency invokes EnablePhoneNumberEmergency operation.

Enable emergency for a phone number.

POST /phone_numbers/{id}/actions/enable_emergency

func (*Client) EnqueueCall

func (c *Client) EnqueueCall(ctx context.Context, request *EnqueueRequest, params EnqueueCallParams) (EnqueueCallRes, error)

EnqueueCall invokes EnqueueCall operation.

Put the call in a queue.

POST /calls/{call_control_id}/actions/enqueue

func (*Client) ExtendNumberReservationExpiryTime

func (c *Client) ExtendNumberReservationExpiryTime(ctx context.Context, params ExtendNumberReservationExpiryTimeParams) (ExtendNumberReservationExpiryTimeRes, error)

ExtendNumberReservationExpiryTime invokes ExtendNumberReservationExpiryTime operation.

Extends reservation expiry time on all phone numbers.

POST /number_reservations/{number_reservation_id}/actions/extend

func (*Client) FetchTeXMLCallRecordings

func (c *Client) FetchTeXMLCallRecordings(ctx context.Context, params FetchTeXMLCallRecordingsParams) (FetchTeXMLCallRecordingsRes, error)

FetchTeXMLCallRecordings invokes FetchTeXMLCallRecordings operation.

Returns recordings for a call identified by call_sid.

GET /texml/Accounts/{account_sid}/Calls/{call_sid}/Recordings.json

func (*Client) FetchTeXMLConferenceRecordings

func (c *Client) FetchTeXMLConferenceRecordings(ctx context.Context, params FetchTeXMLConferenceRecordingsParams) (FetchTeXMLConferenceRecordingsRes, error)

FetchTeXMLConferenceRecordings invokes FetchTeXMLConferenceRecordings operation.

Returns recordings for a conference identified by conference_sid.

GET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Recordings.json

func (*Client) FindPortoutComments

func (c *Client) FindPortoutComments(ctx context.Context, params FindPortoutCommentsParams) (FindPortoutCommentsRes, error)

FindPortoutComments invokes FindPortoutComments operation.

Returns a list of comments for a portout request.

GET /portouts/{id}/comments

func (*Client) FindPortoutRequest

func (c *Client) FindPortoutRequest(ctx context.Context, params FindPortoutRequestParams) (FindPortoutRequestRes, error)

FindPortoutRequest invokes FindPortoutRequest operation.

Returns the portout request based on the ID provided.

GET /portouts/{id}

func (*Client) FindTelephonyCredentials

func (c *Client) FindTelephonyCredentials(ctx context.Context, params FindTelephonyCredentialsParams) (FindTelephonyCredentialsRes, error)

FindTelephonyCredentials invokes FindTelephonyCredentials operation.

List all On-demand Credentials.

GET /telephony_credentials

func (*Client) FindTexmlApplications

func (c *Client) FindTexmlApplications(ctx context.Context, params FindTexmlApplicationsParams) (FindTexmlApplicationsRes, error)

FindTexmlApplications invokes FindTexmlApplications operation.

Returns a list of your TeXML Applications.

GET /texml_applications

func (*Client) GatherCall

func (c *Client) GatherCall(ctx context.Context, request *GatherRequest, params GatherCallParams) (GatherCallRes, error)

GatherCall invokes GatherCall operation.

Gather DTMF signals to build interactive menus. You can pass a list of valid digits. The `Answer` command must be issued before the `gather` command. **Expected Webhooks:** - `call.dtmf.received` (you may receive many of these webhooks) - `call.gather.ended`.

POST /calls/{call_control_id}/actions/gather

func (*Client) GatherUsingAudio

func (c *Client) GatherUsingAudio(ctx context.Context, request *GatherUsingAudioRequest, params GatherUsingAudioParams) (GatherUsingAudioRes, error)

GatherUsingAudio invokes GatherUsingAudio operation.

Play an audio file on the call until the required DTMF signals are gathered to build interactive menus. You can pass a list of valid digits along with an 'invalid_audio_url', which will be played back at the beginning of each prompt. Playback will be interrupted when a DTMF signal is received. The `Answer command must be issued before the `gather_using_audio` command. **Expected Webhooks:** - `call.playback.started` - `call.playback.ended` - `call.dtmf.received` (you may receive many of these webhooks) - `call.gather.ended`.

POST /calls/{call_control_id}/actions/gather_using_audio

func (*Client) GatherUsingSpeak

func (c *Client) GatherUsingSpeak(ctx context.Context, request *GatherUsingSpeakRequest, params GatherUsingSpeakParams) (GatherUsingSpeakRes, error)

GatherUsingSpeak invokes GatherUsingSpeak operation.

Convert text to speech and play it on the call until the required DTMF signals are gathered to build interactive menus. You can pass a list of valid digits along with an 'invalid_payload', which will be played back at the beginning of each prompt. Speech will be interrupted when a DTMF signal is received. The `Answer` command must be issued before the `gather_using_speak` command. **Expected Webhooks:** - `call.dtmf.received` (you may receive many of these webhooks) - `call.gather.ended`.

POST /calls/{call_control_id}/actions/gather_using_speak

func (*Client) GetCsvDownload

func (c *Client) GetCsvDownload(ctx context.Context, params GetCsvDownloadParams) (GetCsvDownloadRes, error)

GetCsvDownload invokes GetCsvDownload operation.

Retrieve a CSV download.

GET /phone_numbers/csv_downloads/{id}

func (*Client) GetCustomStorageCredentials

func (c *Client) GetCustomStorageCredentials(ctx context.Context, params GetCustomStorageCredentialsParams) (GetCustomStorageCredentialsRes, error)

GetCustomStorageCredentials invokes GetCustomStorageCredentials operation.

Returns the information about custom storage credentials.

GET /custom_storage_credentials/{connection_id}

func (*Client) GetDefaultGateway

func (c *Client) GetDefaultGateway(ctx context.Context, params GetDefaultGatewayParams) (GetDefaultGatewayRes, error)

GetDefaultGateway invokes GetDefaultGateway operation.

Get Default Gateway status.

GET /networks/{id}/default_gateway

func (*Client) GetExternalConnectionLogMessage

func (c *Client) GetExternalConnectionLogMessage(ctx context.Context, params GetExternalConnectionLogMessageParams) (GetExternalConnectionLogMessageRes, error)

GetExternalConnectionLogMessage invokes GetExternalConnectionLogMessage operation.

Retrieve a log message for an external connection associated with your account.

GET /external_connections/log_messages/{id}

func (*Client) GetExternalConnectionPhoneNumber

func (c *Client) GetExternalConnectionPhoneNumber(ctx context.Context, params GetExternalConnectionPhoneNumberParams) (GetExternalConnectionPhoneNumberRes, error)

GetExternalConnectionPhoneNumber invokes GetExternalConnectionPhoneNumber operation.

Return the details of a phone number associated with the given external connection.

GET /external_connections/{id}/phone_numbers/{phone_number_id}

func (*Client) GetLoaConfiguration

func (c *Client) GetLoaConfiguration(ctx context.Context, params GetLoaConfigurationParams) (GetLoaConfigurationRes, error)

GetLoaConfiguration invokes GetLoaConfiguration operation.

Retrieve a specific LOA configuration.

GET /porting/loa_configurations/{id}

func (*Client) GetMessage

func (c *Client) GetMessage(ctx context.Context, params GetMessageParams) (GetMessageRes, error)

GetMessage invokes GetMessage operation.

Note: This API endpoint can only retrieve messages that are no older than 10 days since their creation. If you require messages older than this, please generate an [MDR report. ](https://developers.telnyx.com/docs/api/v1/reports/MDR-Reports).

GET /messages/{id}

func (*Client) GetMessagingHostedNumberOrder

func (c *Client) GetMessagingHostedNumberOrder(ctx context.Context, params GetMessagingHostedNumberOrderParams) (GetMessagingHostedNumberOrderRes, error)

GetMessagingHostedNumberOrder invokes GetMessagingHostedNumberOrder operation.

Retrieve a messaging hosted number order.

GET /messaging_hosted_number_orders/{id}

func (*Client) GetMobileNetworkOperators

func (c *Client) GetMobileNetworkOperators(ctx context.Context, params GetMobileNetworkOperatorsParams) (GetMobileNetworkOperatorsRes, error)

GetMobileNetworkOperators invokes GetMobileNetworkOperators operation.

Telnyx has a set of GSM mobile operators partners that are available through our mobile network roaming. This resource is entirely managed by Telnyx and may change over time. That means that this resource won't allow any write operations for it. Still, it's available so it can be used as a support resource that can be related to other resources or become a configuration option.

GET /mobile_network_operators

func (*Client) GetNetwork

func (c *Client) GetNetwork(ctx context.Context, params GetNetworkParams) (GetNetworkRes, error)

GetNetwork invokes GetNetwork operation.

Retrieve a Network.

GET /networks/{id}

func (*Client) GetNotificationChannel

func (c *Client) GetNotificationChannel(ctx context.Context, params GetNotificationChannelParams) (GetNotificationChannelRes, error)

GetNotificationChannel invokes GetNotificationChannel operation.

Get a notification channel.

GET /notification_channels/{id}

func (*Client) GetNumberOrderPhoneNumber

func (c *Client) GetNumberOrderPhoneNumber(ctx context.Context, params GetNumberOrderPhoneNumberParams) (GetNumberOrderPhoneNumberRes, error)

GetNumberOrderPhoneNumber invokes GetNumberOrderPhoneNumber operation.

Get an existing number order phone number.

GET /number_order_phone_numbers/{number_order_phone_number_id}

func (*Client) GetOtaUpdate

func (c *Client) GetOtaUpdate(ctx context.Context, params GetOtaUpdateParams) (GetOtaUpdateRes, error)

GetOtaUpdate invokes GetOtaUpdate operation.

This API returns the details of an Over the Air (OTA) update.

GET /ota_updates/{id}

func (*Client) GetOutboundVoiceProfile

func (c *Client) GetOutboundVoiceProfile(ctx context.Context, params GetOutboundVoiceProfileParams) (GetOutboundVoiceProfileRes, error)

GetOutboundVoiceProfile invokes GetOutboundVoiceProfile operation.

Retrieves the details of an existing outbound voice profile.

GET /outbound_voice_profiles/{id}

func (*Client) GetPhoneNumberMessagingSettings

func (c *Client) GetPhoneNumberMessagingSettings(ctx context.Context, params GetPhoneNumberMessagingSettingsParams) (GetPhoneNumberMessagingSettingsRes, error)

GetPhoneNumberMessagingSettings invokes GetPhoneNumberMessagingSettings operation.

Retrieve a phone number with messaging settings.

GET /phone_numbers/{id}/messaging

func (*Client) GetPhoneNumberVoiceSettings

func (c *Client) GetPhoneNumberVoiceSettings(ctx context.Context, params GetPhoneNumberVoiceSettingsParams) (GetPhoneNumberVoiceSettingsRes, error)

GetPhoneNumberVoiceSettings invokes GetPhoneNumberVoiceSettings operation.

Retrieve a phone number with voice settings.

GET /phone_numbers/{id}/voice

func (*Client) GetPhoneNumbers

GetPhoneNumbers invokes GetPhoneNumbers operation.

Retrieve the assigned phone numbers in a channel zone. Phone numbers assigned to a channel zone can receive concurrent calls up to the quantity reserved in that channel zone. Additional concurrent calls are rejected with a busy signal.

GET /channel_zones/{channel_zone_id}/channel_zone_phone_numbers

func (*Client) GetPortRequestSupportingDocuments

func (c *Client) GetPortRequestSupportingDocuments(ctx context.Context, params GetPortRequestSupportingDocumentsParams) (GetPortRequestSupportingDocumentsRes, error)

GetPortRequestSupportingDocuments invokes GetPortRequestSupportingDocuments operation.

List every supporting documents for a portout request.

GET /portouts/{id}/supporting_documents

func (*Client) GetPortingOrder

func (c *Client) GetPortingOrder(ctx context.Context, params GetPortingOrderParams) (GetPortingOrderRes, error)

GetPortingOrder invokes GetPortingOrder operation.

Retrieves the details of an existing porting order.

GET /porting_orders/{id}

func (*Client) GetPortingOrderLoaTemplate

func (c *Client) GetPortingOrderLoaTemplate(ctx context.Context, params GetPortingOrderLoaTemplateParams) (GetPortingOrderLoaTemplateRes, error)

GetPortingOrderLoaTemplate invokes GetPortingOrderLoaTemplate operation.

Download a porting order loa template.

GET /porting_orders/{id}/loa_template

func (*Client) GetPortingOrderSubRequest

func (c *Client) GetPortingOrderSubRequest(ctx context.Context, params GetPortingOrderSubRequestParams) (GetPortingOrderSubRequestRes, error)

GetPortingOrderSubRequest invokes GetPortingOrderSubRequest operation.

Retrieve the associated V1 sub_request_id and port_request_id.

GET /porting_orders/{id}/sub_request

func (*Client) GetPortingOrdersActivationJob

func (c *Client) GetPortingOrdersActivationJob(ctx context.Context, params GetPortingOrdersActivationJobParams) (GetPortingOrdersActivationJobRes, error)

GetPortingOrdersActivationJob invokes GetPortingOrdersActivationJob operation.

Returns a porting activation job.

GET /porting_orders/{id}/activation_jobs/{activationJobId}

func (*Client) GetPortingReport

func (c *Client) GetPortingReport(ctx context.Context, params GetPortingReportParams) (GetPortingReportRes, error)

GetPortingReport invokes GetPortingReport operation.

Retrieve a specific report generated.

GET /porting/reports/{id}

func (*Client) GetPrivateWirelessGateway

func (c *Client) GetPrivateWirelessGateway(ctx context.Context, params GetPrivateWirelessGatewayParams) (GetPrivateWirelessGatewayRes, error)

GetPrivateWirelessGateway invokes GetPrivateWirelessGateway operation.

Retrieve information about a Private Wireless Gateway.

GET /private_wireless_gateways/{id}

func (*Client) GetPrivateWirelessGateways

func (c *Client) GetPrivateWirelessGateways(ctx context.Context, params GetPrivateWirelessGatewaysParams) (GetPrivateWirelessGatewaysRes, error)

GetPrivateWirelessGateways invokes GetPrivateWirelessGateways operation.

Get all Private Wireless Gateways belonging to the user.

GET /private_wireless_gateways

func (*Client) GetRecording

func (c *Client) GetRecording(ctx context.Context, params GetRecordingParams) (GetRecordingRes, error)

GetRecording invokes GetRecording operation.

Retrieves the details of an existing call recording.

GET /recordings/{recording_id}

func (*Client) GetRecordingTranscription

func (c *Client) GetRecordingTranscription(ctx context.Context, params GetRecordingTranscriptionParams) (GetRecordingTranscriptionRes, error)

GetRecordingTranscription invokes getRecordingTranscription operation.

Retrieves the details of an existing recording transcription.

GET /recording_transcriptions/{recording_transcription_id}

func (*Client) GetRecordingTranscriptions

func (c *Client) GetRecordingTranscriptions(ctx context.Context) (GetRecordingTranscriptionsRes, error)

GetRecordingTranscriptions invokes getRecordingTranscriptions operation.

Returns a list of your recording transcriptions.

GET /recording_transcriptions

func (*Client) GetRecordings

func (c *Client) GetRecordings(ctx context.Context, params GetRecordingsParams) (GetRecordingsRes, error)

GetRecordings invokes GetRecordings operation.

Returns a list of your call recordings.

GET /recordings

func (*Client) GetTeXMLCallRecording

func (c *Client) GetTeXMLCallRecording(ctx context.Context, params GetTeXMLCallRecordingParams) (GetTeXMLCallRecordingRes, error)

GetTeXMLCallRecording invokes GetTeXMLCallRecording operation.

Returns recording resource identified by recording id.

GET /texml/Accounts/{account_sid}/Recordings/{recording_sid}.json

func (*Client) GetTeXMLCallRecordings

func (c *Client) GetTeXMLCallRecordings(ctx context.Context, params GetTeXMLCallRecordingsParams) (GetTeXMLCallRecordingsRes, error)

GetTeXMLCallRecordings invokes GetTeXMLCallRecordings operation.

Returns multiple recording resources for an account.

GET /texml/Accounts/{account_sid}/Recordings.json

func (*Client) GetTeXMLRecordingTranscription

func (c *Client) GetTeXMLRecordingTranscription(ctx context.Context, params GetTeXMLRecordingTranscriptionParams) (GetTeXMLRecordingTranscriptionRes, error)

GetTeXMLRecordingTranscription invokes GetTeXMLRecordingTranscription operation.

Returns the recording transcription resource identified by its ID.

GET /texml/Accounts/{account_sid}/Transcriptions/{recording_transcription_sid}.json

func (*Client) GetTeXMLRecordingTranscriptions

func (c *Client) GetTeXMLRecordingTranscriptions(ctx context.Context, params GetTeXMLRecordingTranscriptionsParams) (GetTeXMLRecordingTranscriptionsRes, error)

GetTeXMLRecordingTranscriptions invokes GetTeXMLRecordingTranscriptions operation.

Returns multiple recording transcription resources for an account.

GET /texml/Accounts/{account_sid}/Transcriptions.json

func (*Client) GetTelephonyCredential

func (c *Client) GetTelephonyCredential(ctx context.Context, params GetTelephonyCredentialParams) (GetTelephonyCredentialRes, error)

GetTelephonyCredential invokes GetTelephonyCredential operation.

Get the details of an existing On-demand Credential.

GET /telephony_credentials/{id}

func (*Client) GetTexmlApplication

func (c *Client) GetTexmlApplication(ctx context.Context, params GetTexmlApplicationParams) (GetTexmlApplicationRes, error)

GetTexmlApplication invokes GetTexmlApplication operation.

Retrieves the details of an existing TeXML Application.

GET /texml_applications/{id}

func (*Client) GetTexmlCall

func (c *Client) GetTexmlCall(ctx context.Context, params GetTexmlCallParams) (GetTexmlCallRes, error)

GetTexmlCall invokes GetTexmlCall operation.

Returns an individual call identified by its CallSid. This endpoint is eventually consistent.

GET /texml/Accounts/{account_sid}/Calls/{call_sid}

func (*Client) GetTexmlCalls

func (c *Client) GetTexmlCalls(ctx context.Context, params GetTexmlCallsParams) (GetTexmlCallsRes, error)

GetTexmlCalls invokes GetTexmlCalls operation.

Returns multiple call resouces for an account. This endpoint is eventually consistent.

GET /texml/Accounts/{account_sid}/Calls

func (*Client) GetTexmlConference

func (c *Client) GetTexmlConference(ctx context.Context, params GetTexmlConferenceParams) (GetTexmlConferenceRes, error)

GetTexmlConference invokes GetTexmlConference operation.

Returns a conference resource.

GET /texml/Accounts/{account_sid}/Conferences/{conference_sid}

func (*Client) GetTexmlConferenceParticipant

func (c *Client) GetTexmlConferenceParticipant(ctx context.Context, params GetTexmlConferenceParticipantParams) (GetTexmlConferenceParticipantRes, error)

GetTexmlConferenceParticipant invokes GetTexmlConferenceParticipant operation.

Gets conference participant resource.

GET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants/{call_sid}

func (*Client) GetTexmlConferenceParticipants

func (c *Client) GetTexmlConferenceParticipants(ctx context.Context, params GetTexmlConferenceParticipantsParams) (GetTexmlConferenceParticipantsRes, error)

GetTexmlConferenceParticipants invokes GetTexmlConferenceParticipants operation.

Lists conference participants.

GET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants

func (*Client) GetTexmlConferenceRecordings

func (c *Client) GetTexmlConferenceRecordings(ctx context.Context, params GetTexmlConferenceRecordingsParams) (GetTexmlConferenceRecordingsRes, error)

GetTexmlConferenceRecordings invokes GetTexmlConferenceRecordings operation.

Lists conference recordings.

GET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Recordings

func (*Client) GetTexmlConferences

func (c *Client) GetTexmlConferences(ctx context.Context, params GetTexmlConferencesParams) (GetTexmlConferencesRes, error)

GetTexmlConferences invokes GetTexmlConferences operation.

Lists conference resources.

GET /texml/Accounts/{account_sid}/Conferences

func (*Client) GetUserBalance

func (c *Client) GetUserBalance(ctx context.Context) (GetUserBalanceRes, error)

GetUserBalance invokes GetUserBalance operation.

Get user balance details.

GET /balance

func (*Client) GetVerifiedNumber

func (c *Client) GetVerifiedNumber(ctx context.Context, params GetVerifiedNumberParams) (GetVerifiedNumberRes, error)

GetVerifiedNumber invokes GetVerifiedNumber operation.

Retrieve a verified number.

GET /verified_numbers/{phone_number}

func (*Client) GetVerifyProfile

func (c *Client) GetVerifyProfile(ctx context.Context, params GetVerifyProfileParams) (GetVerifyProfileRes, error)

GetVerifyProfile invokes GetVerifyProfile operation.

Gets a single Verify profile.

GET /verify_profiles/{verify_profile_id}

func (*Client) GetWebhookDeliveries

func (c *Client) GetWebhookDeliveries(ctx context.Context, params GetWebhookDeliveriesParams) (GetWebhookDeliveriesRes, error)

GetWebhookDeliveries invokes GetWebhookDeliveries operation.

Lists webhook_deliveries for the authenticated user.

GET /webhook_deliveries

func (*Client) GetWebhookDelivery

func (c *Client) GetWebhookDelivery(ctx context.Context, params GetWebhookDeliveryParams) (GetWebhookDeliveryRes, error)

GetWebhookDelivery invokes GetWebhookDelivery operation.

Provides webhook_delivery debug data, such as timestamps, delivery status and attempts.

GET /webhook_deliveries/{id}

func (*Client) HangupCall

func (c *Client) HangupCall(ctx context.Context, request *HangupRequest, params HangupCallParams) (HangupCallRes, error)

HangupCall invokes HangupCall operation.

Hang up the call. **Expected Webhooks:** - `call.hangup` - `call.recording.saved`.

POST /calls/{call_control_id}/actions/hangup

func (*Client) InitiateTexmlCallByAccount

func (c *Client) InitiateTexmlCallByAccount(ctx context.Context, request *InitiateCallRequest, params InitiateTexmlCallByAccountParams) (*InitiateCallResponse, error)

InitiateTexmlCallByAccount invokes InitiateTexmlCallByAccount operation.

Initiate an outbound TeXML call. Telnyx will request TeXML from the XML Request URL configured for the connection in the Mission Control Portal.

POST /texml/Accounts/{account_sid}/Calls

func (*Client) InitiateTexmlCallByApplication

func (c *Client) InitiateTexmlCallByApplication(ctx context.Context, request *InitiateCallRequest, params InitiateTexmlCallByApplicationParams) (*InitiateCallResponse, error)

InitiateTexmlCallByApplication invokes InitiateTexmlCallByApplication operation.

Initiate an outbound TeXML call. Telnyx will request TeXML from the XML Request URL configured for the connection in the Mission Control Portal.

POST /texml/calls/{application_id}

func (*Client) LeaveQueue

func (c *Client) LeaveQueue(ctx context.Context, request *LeaveQueueRequest, params LeaveQueueParams) (LeaveQueueRes, error)

LeaveQueue invokes LeaveQueue operation.

Removes the call from a queue.

POST /calls/{call_control_id}/actions/leave_queue

func (*Client) ListAdditionalDocuments

func (c *Client) ListAdditionalDocuments(ctx context.Context, params ListAdditionalDocumentsParams) (ListAdditionalDocumentsRes, error)

ListAdditionalDocuments invokes ListAdditionalDocuments operation.

Returns a list of additional documents for a porting order.

GET /porting_orders/{id}/additional_documents

func (*Client) ListAllowedFocWindows

func (c *Client) ListAllowedFocWindows(ctx context.Context, params ListAllowedFocWindowsParams) (ListAllowedFocWindowsRes, error)

ListAllowedFocWindows invokes ListAllowedFocWindows operation.

Returns a list of allowed FOC dates for a porting order.

GET /porting_orders/{id}/allowed_foc_windows

func (*Client) ListAvailablePhoneNumberBlocks

func (c *Client) ListAvailablePhoneNumberBlocks(ctx context.Context, params ListAvailablePhoneNumberBlocksParams) (ListAvailablePhoneNumberBlocksRes, error)

ListAvailablePhoneNumberBlocks invokes ListAvailablePhoneNumberBlocks operation.

List available phone number blocks.

GET /available_phone_number_blocks

func (*Client) ListAvailablePhoneNumbers

func (c *Client) ListAvailablePhoneNumbers(ctx context.Context, params ListAvailablePhoneNumbersParams) (ListAvailablePhoneNumbersRes, error)

ListAvailablePhoneNumbers invokes ListAvailablePhoneNumbers operation.

List available phone numbers.

GET /available_phone_numbers

func (*Client) ListCallControlApplications

func (c *Client) ListCallControlApplications(ctx context.Context, params ListCallControlApplicationsParams) (ListCallControlApplicationsRes, error)

ListCallControlApplications invokes ListCallControlApplications operation.

Return a list of call control applications.

GET /call_control_applications

func (*Client) ListComments

func (c *Client) ListComments(ctx context.Context, params ListCommentsParams) (ListCommentsRes, error)

ListComments invokes ListComments operation.

Retrieve all comments.

GET /comments

func (*Client) ListConnectionActiveCalls

func (c *Client) ListConnectionActiveCalls(ctx context.Context, params ListConnectionActiveCallsParams) (ListConnectionActiveCallsRes, error)

ListConnectionActiveCalls invokes ListConnectionActiveCalls operation.

Lists all active calls for given connection. Acceptable connections are either SIP connections with webhook_url or xml_request_url, call control or texml. Returned results are cursor paginated.

GET /connections/{connection_id}/active_calls

func (*Client) ListCsvDownloads

func (c *Client) ListCsvDownloads(ctx context.Context, params ListCsvDownloadsParams) (ListCsvDownloadsRes, error)

ListCsvDownloads invokes ListCsvDownloads operation.

List CSV downloads.

GET /phone_numbers/csv_downloads

func (*Client) ListExceptionTypes

func (c *Client) ListExceptionTypes(ctx context.Context) (ListExceptionTypesRes, error)

ListExceptionTypes invokes ListExceptionTypes operation.

Returns a list of all possible exception types for a porting order.

GET /porting_orders/exception_types

func (*Client) ListExternalConnectionLogMessages

func (c *Client) ListExternalConnectionLogMessages(ctx context.Context, params ListExternalConnectionLogMessagesParams) (ListExternalConnectionLogMessagesRes, error)

ListExternalConnectionLogMessages invokes ListExternalConnectionLogMessages operation.

Retrieve a list of log messages for all external connections associated with your account.

GET /external_connections/log_messages

func (*Client) ListExternalConnectionPhoneNumbers

func (c *Client) ListExternalConnectionPhoneNumbers(ctx context.Context, params ListExternalConnectionPhoneNumbersParams) (ListExternalConnectionPhoneNumbersRes, error)

ListExternalConnectionPhoneNumbers invokes ListExternalConnectionPhoneNumbers operation.

Returns a list of all active phone numbers associated with the given external connection.

GET /external_connections/{id}/phone_numbers

func (*Client) ListInboundChannels

func (c *Client) ListInboundChannels(ctx context.Context) (ListInboundChannelsRes, error)

ListInboundChannels invokes ListInboundChannels operation.

Returns the inbound channels for your account. Inbound channels allows you to use Channel Billing for calls to your Telnyx phone numbers. Please check the Telnyx Support Articles section for full information and examples of how to utilize Channel Billing.

GET /phone_numbers/inbound_channels

func (*Client) ListLoaConfigurations

func (c *Client) ListLoaConfigurations(ctx context.Context, params ListLoaConfigurationsParams) (ListLoaConfigurationsRes, error)

ListLoaConfigurations invokes ListLoaConfigurations operation.

List the LOA configurations.

GET /porting/loa_configurations

func (*Client) ListMessagingHostedNumberOrders

func (c *Client) ListMessagingHostedNumberOrders(ctx context.Context, params ListMessagingHostedNumberOrdersParams) (ListMessagingHostedNumberOrdersRes, error)

ListMessagingHostedNumberOrders invokes ListMessagingHostedNumberOrders operation.

List messaging hosted number orders.

GET /messaging_hosted_number_orders

func (*Client) ListMessagingUrlDomains

func (c *Client) ListMessagingUrlDomains(ctx context.Context, params ListMessagingUrlDomainsParams) (ListMessagingUrlDomainsRes, error)

ListMessagingUrlDomains invokes ListMessagingUrlDomains operation.

List messaging URL domains.

GET /messaging_url_domains

func (*Client) ListNetworkInterfaces

func (c *Client) ListNetworkInterfaces(ctx context.Context, params ListNetworkInterfacesParams) (ListNetworkInterfacesRes, error)

ListNetworkInterfaces invokes ListNetworkInterfaces operation.

List all Interfaces for a Network.

GET /networks/{id}/network_interfaces

func (*Client) ListNetworks

func (c *Client) ListNetworks(ctx context.Context, params ListNetworksParams) (ListNetworksRes, error)

ListNetworks invokes ListNetworks operation.

List all Networks.

GET /networks

func (*Client) ListNotificationChannels

func (c *Client) ListNotificationChannels(ctx context.Context, params ListNotificationChannelsParams) (ListNotificationChannelsRes, error)

ListNotificationChannels invokes ListNotificationChannels operation.

List notification channels.

GET /notification_channels

func (*Client) ListNumberOrderDocuments

func (c *Client) ListNumberOrderDocuments(ctx context.Context, params ListNumberOrderDocumentsParams) (ListNumberOrderDocumentsRes, error)

ListNumberOrderDocuments invokes ListNumberOrderDocuments operation.

Gets a paginated list of number order documents.

GET /number_order_documents

func (*Client) ListNumberReservations

func (c *Client) ListNumberReservations(ctx context.Context, params ListNumberReservationsParams) (ListNumberReservationsRes, error)

ListNumberReservations invokes ListNumberReservations operation.

Gets a paginated list of phone number reservations.

GET /number_reservations

func (*Client) ListOtaUpdates

func (c *Client) ListOtaUpdates(ctx context.Context, params ListOtaUpdatesParams) (ListOtaUpdatesRes, error)

ListOtaUpdates invokes ListOtaUpdates operation.

List OTA updates.

GET /ota_updates

func (*Client) ListOutboundVoiceProfiles

func (c *Client) ListOutboundVoiceProfiles(ctx context.Context, params ListOutboundVoiceProfilesParams) (ListOutboundVoiceProfilesRes, error)

ListOutboundVoiceProfiles invokes ListOutboundVoiceProfiles operation.

Get all outbound voice profiles belonging to the user that match the given filters.

GET /outbound_voice_profiles

func (*Client) ListPhoneNumberConfigurations

func (c *Client) ListPhoneNumberConfigurations(ctx context.Context, params ListPhoneNumberConfigurationsParams) (ListPhoneNumberConfigurationsRes, error)

ListPhoneNumberConfigurations invokes ListPhoneNumberConfigurations operation.

Returns a list of phone number configurations paginated.

GET /porting_orders/phone_number_configurations

func (*Client) ListPhoneNumbers

func (c *Client) ListPhoneNumbers(ctx context.Context, params ListPhoneNumbersParams) (ListPhoneNumbersRes, error)

ListPhoneNumbers invokes ListPhoneNumbers operation.

List phone numbers.

GET /phone_numbers

func (*Client) ListPhoneNumbersJobs

func (c *Client) ListPhoneNumbersJobs(ctx context.Context, params ListPhoneNumbersJobsParams) (ListPhoneNumbersJobsRes, error)

ListPhoneNumbersJobs invokes ListPhoneNumbersJobs operation.

Lists the phone numbers jobs.

GET /phone_numbers/jobs

func (*Client) ListPhoneNumbersWithMessagingSettings

ListPhoneNumbersWithMessagingSettings invokes ListPhoneNumbersWithMessagingSettings operation.

List phone numbers with messaging settings.

GET /phone_numbers/messaging

func (*Client) ListPhoneNumbersWithVoiceSettings

func (c *Client) ListPhoneNumbersWithVoiceSettings(ctx context.Context, params ListPhoneNumbersWithVoiceSettingsParams) (ListPhoneNumbersWithVoiceSettingsRes, error)

ListPhoneNumbersWithVoiceSettings invokes ListPhoneNumbersWithVoiceSettings operation.

List phone numbers with voice settings.

GET /phone_numbers/voice

func (*Client) ListPortingOrderActivationJobs

func (c *Client) ListPortingOrderActivationJobs(ctx context.Context, params ListPortingOrderActivationJobsParams) (ListPortingOrderActivationJobsRes, error)

ListPortingOrderActivationJobs invokes ListPortingOrderActivationJobs operation.

Returns a list of your porting activation jobs.

GET /porting_orders/{id}/activation_jobs

func (*Client) ListPortingOrderComments

func (c *Client) ListPortingOrderComments(ctx context.Context, params ListPortingOrderCommentsParams) (ListPortingOrderCommentsRes, error)

ListPortingOrderComments invokes ListPortingOrderComments operation.

Returns a list of all comments of a porting order.

GET /porting_orders/{id}/comments

func (*Client) ListPortingOrderRequirements

func (c *Client) ListPortingOrderRequirements(ctx context.Context, params ListPortingOrderRequirementsParams) (ListPortingOrderRequirementsRes, error)

ListPortingOrderRequirements invokes ListPortingOrderRequirements operation.

Returns a list of all requirements based on country/number type for this porting order.

GET /porting_orders/{id}/requirements

func (*Client) ListPortingOrders

func (c *Client) ListPortingOrders(ctx context.Context, params ListPortingOrdersParams) (ListPortingOrdersRes, error)

ListPortingOrders invokes ListPortingOrders operation.

Returns a list of your porting order.

GET /porting_orders

func (*Client) ListPortingPhoneNumbers

func (c *Client) ListPortingPhoneNumbers(ctx context.Context, params ListPortingPhoneNumbersParams) (ListPortingPhoneNumbersRes, error)

ListPortingPhoneNumbers invokes ListPortingPhoneNumbers operation.

Returns a list of your porting phone numbers.

GET /porting_phone_numbers

func (*Client) ListPortingReports

func (c *Client) ListPortingReports(ctx context.Context, params ListPortingReportsParams) (ListPortingReportsRes, error)

ListPortingReports invokes ListPortingReports operation.

List the reports generated about porting operations.

GET /porting/reports

func (*Client) ListPortoutRequest

func (c *Client) ListPortoutRequest(ctx context.Context, params ListPortoutRequestParams) (ListPortoutRequestRes, error)

ListPortoutRequest invokes ListPortoutRequest operation.

Returns the portout requests according to filters.

GET /portouts

func (*Client) ListProfileMessageTemplates

func (c *Client) ListProfileMessageTemplates(ctx context.Context) (*ListVerifyProfileMessageTemplateResponse, error)

ListProfileMessageTemplates invokes ListProfileMessageTemplates operation.

List all Verify profile message templates.

GET /verify_profiles/templates

func (*Client) ListProfilePhoneNumbers

func (c *Client) ListProfilePhoneNumbers(ctx context.Context, params ListProfilePhoneNumbersParams) (ListProfilePhoneNumbersRes, error)

ListProfilePhoneNumbers invokes ListProfilePhoneNumbers operation.

List phone numbers associated with a messaging profile.

GET /messaging_profiles/{id}/phone_numbers

func (*Client) ListProfiles

func (c *Client) ListProfiles(ctx context.Context, params ListProfilesParams) (ListProfilesRes, error)

ListProfiles invokes ListProfiles operation.

Gets a paginated list of Verify profiles.

GET /verify_profiles

func (*Client) ListQueueCalls

func (c *Client) ListQueueCalls(ctx context.Context, params ListQueueCallsParams) (ListQueueCallsRes, error)

ListQueueCalls invokes ListQueueCalls operation.

Retrieve the list of calls in an existing queue.

GET /queues/{queue_name}/calls

func (*Client) ListRegulatoryRequirements

func (c *Client) ListRegulatoryRequirements(ctx context.Context, params ListRegulatoryRequirementsParams) (ListRegulatoryRequirementsRes, error)

ListRegulatoryRequirements invokes ListRegulatoryRequirements operation.

Retrieve regulartory requirements.

GET /phone_numbers_regulatory_requirements

func (*Client) ListRequirementTypes

func (c *Client) ListRequirementTypes(ctx context.Context, params ListRequirementTypesParams) (ListRequirementTypesRes, error)

ListRequirementTypes invokes ListRequirementTypes operation.

List all requirement types ordered by created_at descending.

GET /requirement_types

func (*Client) ListRequirements

func (c *Client) ListRequirements(ctx context.Context, params ListRequirementsParams) (ListRequirementsRes, error)

ListRequirements invokes ListRequirements operation.

List all requirements with filtering, sorting, and pagination.

GET /requirements

func (*Client) ListRoomRecordings

func (c *Client) ListRoomRecordings(ctx context.Context, params ListRoomRecordingsParams) (*ListRoomRecordingsResponse, error)

ListRoomRecordings invokes ListRoomRecordings operation.

View a list of room recordings.

GET /room_recordings

func (*Client) ListTags

func (c *Client) ListTags(ctx context.Context, params ListTagsParams) (ListTagsRes, error)

ListTags invokes ListTags operation.

Returns a list of tags used on Credentials.

GET /telephony_credentials/tags

func (*Client) ListVerificationCodes

func (c *Client) ListVerificationCodes(ctx context.Context, params ListVerificationCodesParams) (ListVerificationCodesRes, error)

ListVerificationCodes invokes ListVerificationCodes operation.

Returns a list of verification codes for a porting order.

GET /porting_orders/{id}/verification_codes

func (*Client) ListVerifications

func (c *Client) ListVerifications(ctx context.Context, params ListVerificationsParams) (ListVerificationsRes, error)

ListVerifications invokes ListVerifications operation.

List verifications by phone number.

GET /verifications/by_phone_number/{phone_number}

func (*Client) ListVerifiedCallDisplayProfiles

func (c *Client) ListVerifiedCallDisplayProfiles(ctx context.Context, params ListVerifiedCallDisplayProfilesParams) (ListVerifiedCallDisplayProfilesRes, error)

ListVerifiedCallDisplayProfiles invokes ListVerifiedCallDisplayProfiles operation.

Lists the Verified Calls Display Profiles owned by the current user/organization.

GET /verified_calls_display_profiles

func (*Client) ListVerifiedNumbers

func (c *Client) ListVerifiedNumbers(ctx context.Context, params ListVerifiedNumbersParams) (ListVerifiedNumbersRes, error)

ListVerifiedNumbers invokes ListVerifiedNumbers operation.

Gets a paginated list of Verified Numbers.

GET /verified_numbers

func (*Client) LookupNumber

func (c *Client) LookupNumber(ctx context.Context, params LookupNumberParams) (LookupNumberRes, error)

LookupNumber invokes LookupNumber operation.

Returns information about the provided phone number.

GET /number_lookup/{phone_number}

func (*Client) MarkCommentRead

func (c *Client) MarkCommentRead(ctx context.Context, params MarkCommentReadParams) (MarkCommentReadRes, error)

MarkCommentRead invokes MarkCommentRead operation.

Mark a comment as read.

PATCH /comments/{id}/read

func (*Client) NoiseSuppressionStart

func (c *Client) NoiseSuppressionStart(ctx context.Context, request *NoiseSuppressionStart, params NoiseSuppressionStartParams) (NoiseSuppressionStartRes, error)

NoiseSuppressionStart invokes noiseSuppressionStart operation.

Noise Suppression Start (BETA).

POST /calls/{call_control_id}/actions/suppression_start

func (*Client) NoiseSuppressionStop

func (c *Client) NoiseSuppressionStop(ctx context.Context, request *NoiseSuppressionStop, params NoiseSuppressionStopParams) (NoiseSuppressionStopRes, error)

NoiseSuppressionStop invokes noiseSuppressionStop operation.

Noise Suppression Stop (BETA).

POST /calls/{call_control_id}/actions/suppression_stop

func (*Client) PauseCallRecording

func (c *Client) PauseCallRecording(ctx context.Context, request *PauseRecordingRequest, params PauseCallRecordingParams) (PauseCallRecordingRes, error)

PauseCallRecording invokes PauseCallRecording operation.

Pause recording the call. Recording can be resumed via Resume recording command. **Expected Webhooks:** There are no webhooks associated with this command.

POST /calls/{call_control_id}/actions/record_pause

func (*Client) PerformCredentialAction

func (c *Client) PerformCredentialAction(ctx context.Context, params PerformCredentialActionParams) (PerformCredentialActionRes, error)

PerformCredentialAction invokes PerformCredentialAction operation.

Perform activate or deactivate action on provided Credential. Activate action will change the status to active, making it possible to connect calls with the credential. Deactivate action will change the status to inactive, making it impossible to connect calls with the credential.

POST /telephony_credentials/{id}/actions/{action}

func (*Client) PortingOrdersIDCommentsPost

PortingOrdersIDCommentsPost invokes POST /porting_orders/{id}/comments operation.

Creates a new comment for a porting order.

POST /porting_orders/{id}/comments

func (*Client) PostPortRequestComment

PostPortRequestComment invokes PostPortRequestComment operation.

Creates a comment on a portout request.

POST /portouts/{id}/comments

func (*Client) PostPortRequestSupportingDocuments

PostPortRequestSupportingDocuments invokes PostPortRequestSupportingDocuments operation.

Creates a list of supporting documents on a portout request.

POST /portouts/{id}/supporting_documents

func (*Client) PostPortabilityCheck

func (c *Client) PostPortabilityCheck(ctx context.Context, request *PostPortabilityCheckReq) (PostPortabilityCheckRes, error)

PostPortabilityCheck invokes PostPortabilityCheck operation.

Runs a portability check, returning the results immediately.

POST /portability_checks

func (*Client) PreviewLoaConfiguration

func (c *Client) PreviewLoaConfiguration(ctx context.Context, params PreviewLoaConfigurationParams) (PreviewLoaConfigurationRes, error)

PreviewLoaConfiguration invokes PreviewLoaConfiguration operation.

Preview a specific LOA configuration.

GET /porting/loa_configurations/{id}/preview

func (*Client) PreviewLoaConfigurationParams

func (c *Client) PreviewLoaConfigurationParams(ctx context.Context, request *PreviewLoaConfigurationParamsReq) (PreviewLoaConfigurationParamsRes, error)

PreviewLoaConfigurationParams invokes PreviewLoaConfigurationParams operation.

Preview the LOA template that would be generated without need to create LOA configuration.

POST /porting/loa_configuration/preview

func (*Client) ReferCall

func (c *Client) ReferCall(ctx context.Context, request *ReferRequest, params ReferCallParams) (ReferCallRes, error)

ReferCall invokes ReferCall operation.

Initiate a SIP Refer on a Call Control call. You can initiate a SIP Refer at any point in the duration of a call. **Expected Webhooks:** - `call.refer.started` - `call.refer.completed` - `call.refer.failed`.

POST /calls/{call_control_id}/actions/refer

func (*Client) RegisterCall

func (c *Client) RegisterCall(ctx context.Context, request *RegisterCallRequest) (RegisterCallRes, error)

RegisterCall invokes RegisterCall operation.

Register the call before dialing to show your brand on callee's phone.

POST /calls/register

func (*Client) RejectCall

func (c *Client) RejectCall(ctx context.Context, request *RejectRequest, params RejectCallParams) (RejectCallRes, error)

RejectCall invokes RejectCall operation.

Reject an incoming call. **Expected Webhooks:** - `call.hangup`.

POST /calls/{call_control_id}/actions/reject

func (*Client) ResumeCallRecording

func (c *Client) ResumeCallRecording(ctx context.Context, request *ResumeRecordingRequest, params ResumeCallRecordingParams) (ResumeCallRecordingRes, error)

ResumeCallRecording invokes ResumeCallRecording operation.

Resume recording the call. **Expected Webhooks:** There are no webhooks associated with this command.

POST /calls/{call_control_id}/actions/record_resume

func (*Client) RetrieveCallControlApplication

func (c *Client) RetrieveCallControlApplication(ctx context.Context, params RetrieveCallControlApplicationParams) (RetrieveCallControlApplicationRes, error)

RetrieveCallControlApplication invokes RetrieveCallControlApplication operation.

Retrieves the details of an existing call control application.

GET /call_control_applications/{id}

func (*Client) RetrieveCallFromQueue

func (c *Client) RetrieveCallFromQueue(ctx context.Context, params RetrieveCallFromQueueParams) (RetrieveCallFromQueueRes, error)

RetrieveCallFromQueue invokes RetrieveCallFromQueue operation.

Retrieve an existing call from an existing queue.

GET /queues/{queue_name}/calls/{call_control_id}

func (*Client) RetrieveCallStatus

func (c *Client) RetrieveCallStatus(ctx context.Context, params RetrieveCallStatusParams) (RetrieveCallStatusRes, error)

RetrieveCallStatus invokes RetrieveCallStatus operation.

Returns the status of a call (data is available 10 minutes after call ended).

GET /calls/{call_control_id}

func (*Client) RetrieveComment

func (c *Client) RetrieveComment(ctx context.Context, params RetrieveCommentParams) (RetrieveCommentRes, error)

RetrieveComment invokes RetrieveComment operation.

Retrieve a comment.

GET /comments/{id}

func (*Client) RetrieveDocumentRequirements

func (c *Client) RetrieveDocumentRequirements(ctx context.Context, params RetrieveDocumentRequirementsParams) (RetrieveDocumentRequirementsRes, error)

RetrieveDocumentRequirements invokes RetrieveDocumentRequirements operation.

Retrieve a document requirement record.

GET /requirements/{id}

func (*Client) RetrieveNumberOrderDocument

func (c *Client) RetrieveNumberOrderDocument(ctx context.Context, params RetrieveNumberOrderDocumentParams) (RetrieveNumberOrderDocumentRes, error)

RetrieveNumberOrderDocument invokes RetrieveNumberOrderDocument operation.

Gets a single number order document.

GET /number_order_documents/{number_order_document_id}

func (*Client) RetrieveNumberReservation

func (c *Client) RetrieveNumberReservation(ctx context.Context, params RetrieveNumberReservationParams) (RetrieveNumberReservationRes, error)

RetrieveNumberReservation invokes RetrieveNumberReservation operation.

Gets a single phone number reservation.

GET /number_reservations/{number_reservation_id}

func (*Client) RetrieveOrderPhoneNumbers

func (c *Client) RetrieveOrderPhoneNumbers(ctx context.Context) (RetrieveOrderPhoneNumbersRes, error)

RetrieveOrderPhoneNumbers invokes RetrieveOrderPhoneNumbers operation.

Get a list of phone numbers associated to orders.

GET /number_order_phone_numbers

func (*Client) RetrievePhoneNumber

func (c *Client) RetrievePhoneNumber(ctx context.Context, params RetrievePhoneNumberParams) (RetrievePhoneNumberRes, error)

RetrievePhoneNumber invokes RetrievePhoneNumber operation.

Retrieve a phone number.

GET /phone_numbers/{id}

func (*Client) RetrievePhoneNumbersJob

func (c *Client) RetrievePhoneNumbersJob(ctx context.Context, params RetrievePhoneNumbersJobParams) (RetrievePhoneNumbersJobRes, error)

RetrievePhoneNumbersJob invokes RetrievePhoneNumbersJob operation.

Retrieve a phone numbers job.

GET /phone_numbers/jobs/{id}

func (*Client) RetrieveRequirementType

func (c *Client) RetrieveRequirementType(ctx context.Context, params RetrieveRequirementTypeParams) (RetrieveRequirementTypeRes, error)

RetrieveRequirementType invokes RetrieveRequirementType operation.

Retrieve a requirement type by id.

GET /requirement_types/{id}

func (*Client) RetrieveVerification

func (c *Client) RetrieveVerification(ctx context.Context, params RetrieveVerificationParams) (RetrieveVerificationRes, error)

RetrieveVerification invokes RetrieveVerification operation.

Retrieve verification.

GET /verifications/{verification_id}

func (*Client) SendDTMF

func (c *Client) SendDTMF(ctx context.Context, request *SendDTMFRequest, params SendDTMFParams) (SendDTMFRes, error)

SendDTMF invokes SendDTMF operation.

Sends DTMF tones from this leg. DTMF tones will be heard by the other end of the call. **Expected Webhooks:** There are no webhooks associated with this command.

POST /calls/{call_control_id}/actions/send_dtmf

func (*Client) SendMessage

func (c *Client) SendMessage(ctx context.Context, request OptCreateMessageRequest) (SendMessageRes, error)

SendMessage invokes SendMessage operation.

Send a message with a Phone Number, Alphanumeric Sender ID, Short Code or Number Pool. This endpoint allows you to send a message with any messaging resource. Current messaging resources include: long-code, short-code, number-pool, and alphanumeric-sender-id.

POST /messages

func (*Client) SendPortingVerificationCodes

SendPortingVerificationCodes invokes SendPortingVerificationCodes operation.

Send the verification code for all porting phone numbers.

POST /porting_orders/{id}/verification_codes/send

func (*Client) SharePortingOrder

func (c *Client) SharePortingOrder(ctx context.Context, request *SharePortingOrderReq, params SharePortingOrderParams) (SharePortingOrderRes, error)

SharePortingOrder invokes SharePortingOrder operation.

Creates a sharing token for a porting order. The token can be used to share the porting order with non-Telnyx users.

POST /porting_orders/{id}/actions/share

func (*Client) SlimListPhoneNumbers

func (c *Client) SlimListPhoneNumbers(ctx context.Context, params SlimListPhoneNumbersParams) (SlimListPhoneNumbersRes, error)

SlimListPhoneNumbers invokes SlimListPhoneNumbers operation.

List phone numbers, This endpoint is a lighter version of the /phone_numbers endpoint having higher performance and rate limit.

GET /phone_numbers/slim

func (*Client) SpeakCall

func (c *Client) SpeakCall(ctx context.Context, request *SpeakRequest, params SpeakCallParams) (SpeakCallRes, error)

SpeakCall invokes SpeakCall operation.

Convert text to speech and play it back on the call. If multiple speak text commands are issued consecutively, the audio files will be placed in a queue awaiting playback. **Expected Webhooks:** - `call.speak.started` - `call.speak.ended`.

POST /calls/{call_control_id}/actions/speak

func (*Client) StartCallFork

func (c *Client) StartCallFork(ctx context.Context, request *StartForkingRequest, params StartCallForkParams) (StartCallForkRes, error)

StartCallFork invokes StartCallFork operation.

Call forking allows you to stream the media from a call to a specific target in realtime. This stream can be used to enable realtime audio analysis to support a variety of use cases, including fraud detection, or the creation of AI-generated audio responses. Requests must specify either the `target` attribute or the `rx` and `tx` attributes. **Expected Webhooks:** - `call.fork.started` - `call.fork.stopped` **Simple Telnyx RTP Encapsulation Protocol (STREP)** *Note: This header/encapsulation is not used when the `rx` and `tx` parameters have been specified; it only applies when media is forked using the `target` attribute.* If the destination for forked media is specified using the "target" attribute, the RTP will be encapsulated in an extra Telnyx protocol, which adds a 24 byte header to the RTP payload in each packet. The STREP header includes the Call Control `call_leg_id` for stream identification, along with bits that represent the direction (inbound or outbound) of the media. This 24-byte header sits between the UDP header and the RTP header. The STREP header makes it possible to fork RTP for multiple calls (or two RTP streams for the same call) to the same IP:port, where the streams can be demultiplexed by your application using the information in the header. Of course, it's still possible to ignore this header completely, for example, if sending forked media for different calls to different ports or IP addresses. In this case, simply strip 24 bytes (or use the second byte to find the header length) from the received UDP payload to get the RTP (RTP header and payload). ``` STREP Specification 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |1 1|Version|L|D| HeaderLen | reserved (2 bytes) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | reserved (4 bytes, for UDP ports or anything else) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | The call_leg_id | | from Call Control | | (128 bits / 16 bytes) | | (this is binary data) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 11 Static bits 11, always set to 11 to easily distinguish forked media from RTP (10) and T.38 media (usually 00) and SIP (which begins with a capital letter, so begins with bits 01). This is a magic number. Version Four bits to indicate the version number of the protocol, starting at 0001. L One bit to represent the leg of the call (A or B). 0 represents the A (first) leg of the call. 1 represents the B (second) leg of the call. D One bit to represent the direction of this RTP stream. 0 represents media received by Telnyx. 1 represents media transmitted by Telnyx. HeaderLen (1 byte) The length of the header in bytes. Note that this value does not include the length of the payload. The total size of the RTP can be calculated by subtracting the HeaderLen from the UDP length (minus 8 for the UDP header). In version 1, this value will always be 24. Reserved (6 bytes) Reserved for future use and to make sure that the header is a multiple of 32 bits Call Leg ID A 128-bit identifier for the call leg. This is the call_leg_id from Call Control. ```.

POST /calls/{call_control_id}/actions/fork_start

func (*Client) StartCallPlayback

func (c *Client) StartCallPlayback(ctx context.Context, request *PlayAudioUrlRequest, params StartCallPlaybackParams) (StartCallPlaybackRes, error)

StartCallPlayback invokes StartCallPlayback operation.

Play an audio file on the call. If multiple play audio commands are issued consecutively, the audio files will be placed in a queue awaiting playback. *Notes:* - When `overlay` is enabled, `target_legs` is limited to `self`. - A customer cannot Play Audio with `overlay=true` unless there is a Play Audio with `overlay=false` actively playing. **Expected Webhooks:** - `call.playback.started` - `call.playback.ended`.

POST /calls/{call_control_id}/actions/playback_start

func (*Client) StartCallRecord

func (c *Client) StartCallRecord(ctx context.Context, request *StartRecordingRequest, params StartCallRecordParams) (StartCallRecordRes, error)

StartCallRecord invokes StartCallRecord operation.

Start recording the call. Recording will stop on call hang-up, or can be initiated via the Stop Recording command. **Expected Webhooks:** - `call.recording.saved`.

POST /calls/{call_control_id}/actions/record_start

func (*Client) StartCallStreaming

func (c *Client) StartCallStreaming(ctx context.Context, request *StartStreamingRequest, params StartCallStreamingParams) (StartCallStreamingRes, error)

StartCallStreaming invokes StartCallStreaming operation.

Start streaming the media from a call to a specific WebSocket address or Dialogflow connection in near-realtime. Audio will be delivered as base64-encoded RTP payload (raw audio), wrapped in JSON payloads. **Example: Starting a stream to a Websocket address** The `stream_url` param is mandatory. ``` curl -X POST \ --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "Authorization: Bearer YOUR_API_KEY" \ --data '{ "stream_url": "wss://www.example.com/websocket",\ "client_state":"aGF2ZSBhIG5pY2UgZGF5ID1d",\ "command_id":"891510ac-f3e4-11e8-af5b-de00688a4901" \ }' \ https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start ``` **Example: Starting a stream to a Dialogflow connection** Enable the Dialogflow integration by sending `"enable_dialogflow": true` in the request. You need to have a Dialogflow connection associated with your Call Control application first, [click here for instructions](https://developers.telnyx.com/docs/voice/programmable-voice/dialogflow-es). ``` curl -X POST \ --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "Authorization: Bearer YOUR_API_KEY" \ --data '{ "client_state":"aGF2ZSBhIG5pY2UgZGF5ID1d", \ "command_id":"891510ac-f3e4-11e8-af5b-de00688a4901", \ "enable_dialogflow": true \ }' \ https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start ``` **Expected Webhooks:** - `streaming.started` - `streaming.stopped` - `streaming.failed` **WebSocket events** When the WebSocket connection is established, the following event is being sent over it: ``` { "event": "connected", "version": "1.0.0" } ``` And when the call is started, an event which contains information about the encoding and `stream_id` that identifies a particular stream: ``` { "event": "start", "sequence_number": "1", "start": { "user_id": "3e6f995f-85f7-4705-9741-53b116d28237", "call_control_id": "v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg", "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d", "media_format": { "encoding": "audio/x-mulaw", "sample_rate": 8000, "channels": 1 } }, "stream_id": "32de0dea-53cb-4b21-89a4-9e1819c043bc" } ``` The start event is followed by the following media events that contain base64-encoded RTP payload (raw audio, no RTP headers) (: ``` { "event": "media", "sequence_number": "4", "media": { "track": "inbound/outbound", "chunk": "2", "timestamp": "5", "payload": "no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic" }, "stream_id": "32de0dea-53cb-4b21-89a4-9e1819c043bc" } ``` Please note that the order of events is not guaranteed and the chunk number can be used to reorder the events. When the call ends, the stop event over WebSockets connection is sent: ``` { "event": "stop", "sequence_number": "5", "stop": { "user_id": "3e6f995f-85f7-4705-9741-53b116d28237", "call_control_id": "v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ" }, "stream_id": "32de0dea-53cb-4b21-89a4-9e1819c043bc" } ``` **Bidirectional Media Streaming** Media can be sent back to the call through the websocket as well. This is done in a way very similar to the [playback_start](https://developers.telnyx. com/docs/api/v2/call-control/Call-Commands#callPlaybackStart) command, when using a base64 encoded mp3 file in the payload. Simply send a packet to the websocket connection as follows: ``` { "event": "media", "media": { "payload" : <your base64 encoded mp3 file> } } ``` The payload, which is a base64-encoded mp3 file, will be played on the call. Some limitations to be aware of: - Media payloads can only be submitted once per second. - Media _must_ be base64 encoded mp3 **Stream Errors** Any errors in the media packet, including when a rate limit is reached, will result in an error frame being sent to your websocket server. The error frame will appear as follows: ``` { "stream_id": "32de0dea-53cb-4b21-89a4-9e1819c043bc", "event": "error", "sequence_number": "6", "error": { "title": "rate_limit_reached", "code": "100005", "detail": "Too many requests" } } ``` Possible errors are as follows: - Error 100002: `"unknown_error"` - Error 100003: `"malformed_frame"` - Error 100004: `"invalid_media"` - Error 100005: `"rate_limit_reached"`.

POST /calls/{call_control_id}/actions/streaming_start

func (*Client) StartCallTranscription

StartCallTranscription invokes StartCallTranscription operation.

Start real-time transcription. Transcription will stop on call hang-up, or can be initiated via the Transcription stop command. **Expected Webhooks:** - `call.transcription`.

POST /calls/{call_control_id}/actions/transcription_start

func (*Client) StartTeXMLCallRecording

StartTeXMLCallRecording invokes StartTeXMLCallRecording operation.

Starts recording with specified parameters for call idientified by call_sid.

POST /texml/Accounts/{account_sid}/Calls/{call_sid}/Recordings.json

func (*Client) StopCallFork

func (c *Client) StopCallFork(ctx context.Context, request *StopForkingRequest, params StopCallForkParams) (StopCallForkRes, error)

StopCallFork invokes StopCallFork operation.

Stop forking a call. **Expected Webhooks:** - `call.fork.stopped`.

POST /calls/{call_control_id}/actions/fork_stop

func (*Client) StopCallGather

func (c *Client) StopCallGather(ctx context.Context, request *StopGatherRequest, params StopCallGatherParams) (StopCallGatherRes, error)

StopCallGather invokes StopCallGather operation.

Stop current gather. **Expected Webhooks:** - `call.gather.ended`.

POST /calls/{call_control_id}/actions/gather_stop

func (*Client) StopCallPlayback

func (c *Client) StopCallPlayback(ctx context.Context, request *PlaybackStopRequest, params StopCallPlaybackParams) (StopCallPlaybackRes, error)

StopCallPlayback invokes StopCallPlayback operation.

Stop audio being played on the call. **Expected Webhooks:** - `call.playback.ended` or `call.speak.ended`.

POST /calls/{call_control_id}/actions/playback_stop

func (*Client) StopCallRecording

func (c *Client) StopCallRecording(ctx context.Context, request *StopRecordingRequest, params StopCallRecordingParams) (StopCallRecordingRes, error)

StopCallRecording invokes StopCallRecording operation.

Stop recording the call. **Expected Webhooks:** - `call.recording.saved`.

POST /calls/{call_control_id}/actions/record_stop

func (*Client) StopCallStreaming

func (c *Client) StopCallStreaming(ctx context.Context, request *StopStreamingRequest, params StopCallStreamingParams) (StopCallStreamingRes, error)

StopCallStreaming invokes StopCallStreaming operation.

Stop streaming a call to a WebSocket. **Expected Webhooks:** - `streaming.stopped`.

POST /calls/{call_control_id}/actions/streaming_stop

func (*Client) StopCallTranscription

StopCallTranscription invokes StopCallTranscription operation.

Stop real-time transcription.

POST /calls/{call_control_id}/actions/transcription_stop

func (*Client) TransferCall

func (c *Client) TransferCall(ctx context.Context, request *TransferCallRequest, params TransferCallParams) (TransferCallRes, error)

TransferCall invokes TransferCall operation.

Transfer a call to a new destination. If the transfer is unsuccessful, a `call.hangup` webhook for the other call (Leg B) will be sent indicating that the transfer could not be completed. The original call will remain active and may be issued additional commands, potentially transfering the call to an alternate destination. **Expected Webhooks:** - `call.initiated` - `call.bridged` to Leg B - `call.answered` or `call.hangup` - `call.machine.detection.ended` if `answering_machine_detection` was requested - `call.machine.greeting.ended` if `answering_machine_detection` was requested to detect the end of machine greeting - `call.machine.premium.detection.ended` if `answering_machine_detection=premium` was requested - `call.machine.premium.greeting.ended` if `answering_machine_detection=premium` was requested and a beep was detected.

POST /calls/{call_control_id}/actions/transfer

func (*Client) UnassignPhoneNumber

func (c *Client) UnassignPhoneNumber(ctx context.Context, params UnassignPhoneNumberParams) (UnassignPhoneNumberRes, error)

UnassignPhoneNumber invokes UnassignPhoneNumber operation.

Unassign a phone number from a channel zone.

DELETE /channel_zones/{channel_zone_id}/channel_zone_phone_numbers/{phone_number}

func (*Client) UpdateBulkTelephonyCredential

UpdateBulkTelephonyCredential invokes UpdateBulkTelephonyCredential operation.

Update several credentials in bulk.

PATCH /actions/bulk/telephony_credentials

func (*Client) UpdateCallControlApplication

UpdateCallControlApplication invokes UpdateCallControlApplication operation.

Updates settings of an existing call control application.

PATCH /call_control_applications/{id}

func (*Client) UpdateClientState

func (c *Client) UpdateClientState(ctx context.Context, request *ClientStateUpdateRequest, params UpdateClientStateParams) (UpdateClientStateRes, error)

UpdateClientState invokes UpdateClientState operation.

Updates client state.

PUT /calls/{call_control_id}/actions/client_state_update

func (*Client) UpdateCustomStorageCredentials

UpdateCustomStorageCredentials invokes UpdateCustomStorageCredentials operation.

Updates a stored custom credentials configuration.

PUT /custom_storage_credentials/{connection_id}

func (*Client) UpdateExternalConnectionPhoneNumber

UpdateExternalConnectionPhoneNumber invokes UpdateExternalConnectionPhoneNumber operation.

Asynchronously update settings of the phone number associated with the given external connection.

PATCH /external_connections/{id}/phone_numbers/{phone_number_id}

func (*Client) UpdateLoaConfiguration

UpdateLoaConfiguration invokes UpdateLoaConfiguration operation.

Update a specific LOA configuration.

PATCH /porting/loa_configurations/{id}

func (*Client) UpdateNetwork

func (c *Client) UpdateNetwork(ctx context.Context, request *NetworkCreate, params UpdateNetworkParams) (UpdateNetworkRes, error)

UpdateNetwork invokes UpdateNetwork operation.

Update a Network.

PATCH /networks/{id}

func (*Client) UpdateNotificationChannel

func (c *Client) UpdateNotificationChannel(ctx context.Context, request *NotificationChannel, params UpdateNotificationChannelParams) (UpdateNotificationChannelRes, error)

UpdateNotificationChannel invokes UpdateNotificationChannel operation.

Update a notification channel.

PATCH /notification_channels/{id}

func (*Client) UpdateNumberOrderDocument

UpdateNumberOrderDocument invokes UpdateNumberOrderDocument operation.

Updates a number order document.

PATCH /number_order_documents/{number_order_document_id}

func (*Client) UpdateNumberOrderPhoneNumber

UpdateNumberOrderPhoneNumber invokes UpdateNumberOrderPhoneNumber operation.

Updates a number order phone number.

PATCH /number_order_phone_numbers/{number_order_phone_number_id}

func (*Client) UpdateOutboundChannels

func (c *Client) UpdateOutboundChannels(ctx context.Context, request *UpdateOutboundChannelsReq) (UpdateOutboundChannelsRes, error)

UpdateOutboundChannels invokes UpdateOutboundChannels operation.

Update the inbound channels for the account.

PATCH /phone_numbers/inbound_channels

func (*Client) UpdateOutboundVoiceProfile

UpdateOutboundVoiceProfile invokes UpdateOutboundVoiceProfile operation.

Updates an existing outbound voice profile.

PATCH /outbound_voice_profiles/{id}

func (*Client) UpdatePhoneNumber

func (c *Client) UpdatePhoneNumber(ctx context.Context, request *UpdatePhoneNumberRequest, params UpdatePhoneNumberParams) (UpdatePhoneNumberRes, error)

UpdatePhoneNumber invokes UpdatePhoneNumber operation.

Update a phone number.

PATCH /phone_numbers/{id}

func (*Client) UpdatePhoneNumberMessagingSettings

UpdatePhoneNumberMessagingSettings invokes UpdatePhoneNumberMessagingSettings operation.

Update a phone number with messaging settings.

PATCH /phone_numbers/{id}/messaging

func (*Client) UpdatePhoneNumberVoiceSettings

UpdatePhoneNumberVoiceSettings invokes UpdatePhoneNumberVoiceSettings operation.

Update a phone number with voice settings.

PATCH /phone_numbers/{id}/voice

func (*Client) UpdatePortingOrder

func (c *Client) UpdatePortingOrder(ctx context.Context, request *UpdatePortingOrder, params UpdatePortingOrderParams) (UpdatePortingOrderRes, error)

UpdatePortingOrder invokes UpdatePortingOrder operation.

Edits the details of an existing porting order. Any or all of a porting orders attributes may be included in the resource object included in a PATCH request. If a request does not include all of the attributes for a resource, the system will interpret the missing attributes as if they were included with their current values. To explicitly set something to null, it must be included in the request with a null value.

PATCH /porting_orders/{id}

func (*Client) UpdatePortingOrdersActivationJob

UpdatePortingOrdersActivationJob invokes UpdatePortingOrdersActivationJob operation.

Updates the activation time of a porting activation job.

PATCH /porting_orders/{id}/activation_jobs/{activationJobId}

func (*Client) UpdatePortoutStatus

func (c *Client) UpdatePortoutStatus(ctx context.Context, request *UpdatePortoutStatusReq, params UpdatePortoutStatusParams) (UpdatePortoutStatusRes, error)

UpdatePortoutStatus invokes UpdatePortoutStatus operation.

Authorize or reject portout request.

PATCH /portouts/{id}/{status}

func (*Client) UpdateProfile

UpdateProfile invokes UpdateProfile operation.

Update an existing Verified Calls Display Profile and allows adding/removing nested Call Reasons and Phone Numbers. Different attributes can be updated depending on the Verified Calls Display Profile's status: For the VERIFICATION_STATE_PENDING status, no fields can be updated. For the VERIFICATION_STATE_VERIFIED status, it is allowed only to add/remove Call Reaons and Phone Numbers.

For the other statuses, all fields can be updated. All existing Call Reasons and Phone Numbers

must be sent during the request, or the update will fail.

PATCH /verified_calls_display_profiles/{id}

func (*Client) UpdateTeXMLCallRecording

UpdateTeXMLCallRecording invokes UpdateTeXMLCallRecording operation.

Updates recording resource for particular call.

POST /texml/Accounts/{account_sid}/Calls/{call_sid}/Recordings/{recording_sid}.json

func (*Client) UpdateTelephonyCredential

UpdateTelephonyCredential invokes UpdateTelephonyCredential operation.

Update an existing credential.

PATCH /telephony_credentials/{id}

func (*Client) UpdateTexmlApplication

UpdateTexmlApplication invokes UpdateTexmlApplication operation.

Updates settings of an existing TeXML Application.

PATCH /texml_applications/{id}

func (*Client) UpdateTexmlCall

func (c *Client) UpdateTexmlCall(ctx context.Context, request *UpdateCallRequest, params UpdateTexmlCallParams) (*UpdateTeXMLCallResponse, error)

UpdateTexmlCall invokes UpdateTexmlCall operation.

Update TeXML call. Please note that the keys present in the payload MUST BE formatted in CamelCase as specified in the example.

POST /texml/calls/{call_sid}/update

func (*Client) UpdateTexmlCallByAccount

func (c *Client) UpdateTexmlCallByAccount(ctx context.Context, request *UpdateCallRequest, params UpdateTexmlCallByAccountParams) (*GetCallResponse, error)

UpdateTexmlCallByAccount invokes UpdateTexmlCallByAccount operation.

Update TeXML call. Please note that the keys present in the payload MUST BE formatted in CamelCase as specified in the example.

POST /texml/Accounts/{account_sid}/Calls/{call_sid}

func (*Client) UpdateTexmlConference

func (c *Client) UpdateTexmlConference(ctx context.Context, request *UpdateConferenceRequest, params UpdateTexmlConferenceParams) (UpdateTexmlConferenceRes, error)

UpdateTexmlConference invokes UpdateTexmlConference operation.

Updates a conference resource.

POST /texml/Accounts/{account_sid}/Conferences/{conference_sid}

func (*Client) UpdateTexmlConferenceParticipant

UpdateTexmlConferenceParticipant invokes UpdateTexmlConferenceParticipant operation.

Updates a conference participant.

POST /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants/{call_sid}

func (*Client) UpdateVerifyProfile

func (c *Client) UpdateVerifyProfile(ctx context.Context, request *UpdateVerifyProfileReq, params UpdateVerifyProfileParams) (UpdateVerifyProfileRes, error)

UpdateVerifyProfile invokes UpdateVerifyProfile operation.

Update Verify profile.

PATCH /verify_profiles/{verify_profile_id}

func (*Client) VerifyPortingVerificationCodes

VerifyPortingVerificationCodes invokes VerifyPortingVerificationCodes operation.

Verifies the verification code for a list of phone numbers.

POST /porting_orders/{id}/verification_codes/verify

func (*Client) VerifyVerificationCode

VerifyVerificationCode invokes VerifyVerificationCode operation.

Submit verification code.

POST /verified_numbers/{phone_number}/actions/verify

func (*Client) VerifyVerificationCodeByPhoneNumber

VerifyVerificationCodeByPhoneNumber invokes VerifyVerificationCodeByPhoneNumber operation.

Submit verification code.

POST /verifications/by_phone_number/{phone_number}/actions/verify

func (*Client) ViewRoomRecording

func (c *Client) ViewRoomRecording(ctx context.Context, params ViewRoomRecordingParams) (ViewRoomRecordingRes, error)

ViewRoomRecording invokes ViewRoomRecording operation.

View a room recording.

GET /room_recordings/{room_recording_id}

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type ClientStateUpdateRequest

type ClientStateUpdateRequest struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState string `json:"client_state"`
}

Ref: #/components/schemas/ClientStateUpdateRequest

func (*ClientStateUpdateRequest) Decode

func (s *ClientStateUpdateRequest) Decode(d *jx.Decoder) error

Decode decodes ClientStateUpdateRequest from json.

func (*ClientStateUpdateRequest) Encode

func (s *ClientStateUpdateRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ClientStateUpdateRequest) GetClientState

func (s *ClientStateUpdateRequest) GetClientState() string

GetClientState returns the value of ClientState.

func (*ClientStateUpdateRequest) MarshalJSON

func (s *ClientStateUpdateRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ClientStateUpdateRequest) SetClientState

func (s *ClientStateUpdateRequest) SetClientState(val string)

SetClientState sets the value of ClientState.

func (*ClientStateUpdateRequest) UnmarshalJSON

func (s *ClientStateUpdateRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CnamListing

type CnamListing struct {
	// Enables CNAM listings for this number. Requires cnam_listing_details to also be set.
	CnamListingEnabled OptBool `json:"cnam_listing_enabled"`
	// The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum
	// length of 15. Requires cnam_listing_enabled to also be set to true.
	CnamListingDetails OptString `json:"cnam_listing_details"`
}

The CNAM listing settings for a phone number. Ref: #/components/schemas/CnamListing

func (*CnamListing) Decode

func (s *CnamListing) Decode(d *jx.Decoder) error

Decode decodes CnamListing from json.

func (*CnamListing) Encode

func (s *CnamListing) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CnamListing) GetCnamListingDetails

func (s *CnamListing) GetCnamListingDetails() OptString

GetCnamListingDetails returns the value of CnamListingDetails.

func (*CnamListing) GetCnamListingEnabled

func (s *CnamListing) GetCnamListingEnabled() OptBool

GetCnamListingEnabled returns the value of CnamListingEnabled.

func (*CnamListing) MarshalJSON

func (s *CnamListing) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CnamListing) SetCnamListingDetails

func (s *CnamListing) SetCnamListingDetails(val OptString)

SetCnamListingDetails sets the value of CnamListingDetails.

func (*CnamListing) SetCnamListingEnabled

func (s *CnamListing) SetCnamListingEnabled(val OptBool)

SetCnamListingEnabled sets the value of CnamListingEnabled.

func (*CnamListing) UnmarshalJSON

func (s *CnamListing) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Comment

type Comment struct {
	ID                OptUUID                     `json:"id"`
	Body              OptString                   `json:"body"`
	Commenter         OptString                   `json:"commenter"`
	CommenterType     OptCommentCommenterType     `json:"commenter_type"`
	CommentRecordType OptCommentCommentRecordType `json:"comment_record_type"`
	CommentRecordID   OptUUID                     `json:"comment_record_id"`
	// An ISO 8901 datetime string for when the comment was read.
	ReadAt OptString `json:"read_at"`
	// An ISO 8901 datetime string denoting when the comment was created.
	CreatedAt OptString `json:"created_at"`
	// An ISO 8901 datetime string for when the comment was updated.
	UpdatedAt OptString `json:"updated_at"`
}

Ref: #/components/schemas/Comment

func (*Comment) Decode

func (s *Comment) Decode(d *jx.Decoder) error

Decode decodes Comment from json.

func (*Comment) Encode

func (s *Comment) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Comment) GetBody

func (s *Comment) GetBody() OptString

GetBody returns the value of Body.

func (*Comment) GetCommentRecordID

func (s *Comment) GetCommentRecordID() OptUUID

GetCommentRecordID returns the value of CommentRecordID.

func (*Comment) GetCommentRecordType

func (s *Comment) GetCommentRecordType() OptCommentCommentRecordType

GetCommentRecordType returns the value of CommentRecordType.

func (*Comment) GetCommenter

func (s *Comment) GetCommenter() OptString

GetCommenter returns the value of Commenter.

func (*Comment) GetCommenterType

func (s *Comment) GetCommenterType() OptCommentCommenterType

GetCommenterType returns the value of CommenterType.

func (*Comment) GetCreatedAt

func (s *Comment) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*Comment) GetID

func (s *Comment) GetID() OptUUID

GetID returns the value of ID.

func (*Comment) GetReadAt

func (s *Comment) GetReadAt() OptString

GetReadAt returns the value of ReadAt.

func (*Comment) GetUpdatedAt

func (s *Comment) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*Comment) MarshalJSON

func (s *Comment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Comment) SetBody

func (s *Comment) SetBody(val OptString)

SetBody sets the value of Body.

func (*Comment) SetCommentRecordID

func (s *Comment) SetCommentRecordID(val OptUUID)

SetCommentRecordID sets the value of CommentRecordID.

func (*Comment) SetCommentRecordType

func (s *Comment) SetCommentRecordType(val OptCommentCommentRecordType)

SetCommentRecordType sets the value of CommentRecordType.

func (*Comment) SetCommenter

func (s *Comment) SetCommenter(val OptString)

SetCommenter sets the value of Commenter.

func (*Comment) SetCommenterType

func (s *Comment) SetCommenterType(val OptCommentCommenterType)

SetCommenterType sets the value of CommenterType.

func (*Comment) SetCreatedAt

func (s *Comment) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*Comment) SetID

func (s *Comment) SetID(val OptUUID)

SetID sets the value of ID.

func (*Comment) SetReadAt

func (s *Comment) SetReadAt(val OptString)

SetReadAt sets the value of ReadAt.

func (*Comment) SetUpdatedAt

func (s *Comment) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*Comment) UnmarshalJSON

func (s *Comment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Comment) Validate

func (s *Comment) Validate() error

type CommentCommentRecordType

type CommentCommentRecordType string
const (
	CommentCommentRecordTypeNumberOrder            CommentCommentRecordType = "number_order"
	CommentCommentRecordTypeSubNumberOrder         CommentCommentRecordType = "sub_number_order"
	CommentCommentRecordTypeNumberOrderPhoneNumber CommentCommentRecordType = "number_order_phone_number"
)

func (CommentCommentRecordType) AllValues

AllValues returns all CommentCommentRecordType values.

func (*CommentCommentRecordType) Decode

func (s *CommentCommentRecordType) Decode(d *jx.Decoder) error

Decode decodes CommentCommentRecordType from json.

func (CommentCommentRecordType) Encode

func (s CommentCommentRecordType) Encode(e *jx.Encoder)

Encode encodes CommentCommentRecordType as json.

func (CommentCommentRecordType) MarshalJSON

func (s CommentCommentRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CommentCommentRecordType) MarshalText

func (s CommentCommentRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CommentCommentRecordType) UnmarshalJSON

func (s *CommentCommentRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CommentCommentRecordType) UnmarshalText

func (s *CommentCommentRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CommentCommentRecordType) Validate

func (s CommentCommentRecordType) Validate() error

type CommentCommenterType

type CommentCommenterType string
const (
	CommentCommenterTypeAdmin CommentCommenterType = "admin"
	CommentCommenterTypeUser  CommentCommenterType = "user"
)

func (CommentCommenterType) AllValues

AllValues returns all CommentCommenterType values.

func (*CommentCommenterType) Decode

func (s *CommentCommenterType) Decode(d *jx.Decoder) error

Decode decodes CommentCommenterType from json.

func (CommentCommenterType) Encode

func (s CommentCommenterType) Encode(e *jx.Encoder)

Encode encodes CommentCommenterType as json.

func (CommentCommenterType) MarshalJSON

func (s CommentCommenterType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CommentCommenterType) MarshalText

func (s CommentCommenterType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CommentCommenterType) UnmarshalJSON

func (s *CommentCommenterType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CommentCommenterType) UnmarshalText

func (s *CommentCommenterType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CommentCommenterType) Validate

func (s CommentCommenterType) Validate() error

type CommentResponse

type CommentResponse struct {
	Data OptCommentResponseData `json:"data"`
}

func (*CommentResponse) Decode

func (s *CommentResponse) Decode(d *jx.Decoder) error

Decode decodes CommentResponse from json.

func (*CommentResponse) Encode

func (s *CommentResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CommentResponse) GetData

GetData returns the value of Data.

func (*CommentResponse) MarshalJSON

func (s *CommentResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CommentResponse) SetData

func (s *CommentResponse) SetData(val OptCommentResponseData)

SetData sets the value of Data.

func (*CommentResponse) UnmarshalJSON

func (s *CommentResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CommentResponse) Validate

func (s *CommentResponse) Validate() error

type CommentResponseData

type CommentResponseData struct {
	ID                OptUUID                                 `json:"id"`
	Body              OptString                               `json:"body"`
	Commenter         OptString                               `json:"commenter"`
	CommenterType     OptCommentResponseDataCommenterType     `json:"commenter_type"`
	CommentRecordType OptCommentResponseDataCommentRecordType `json:"comment_record_type"`
	CommentRecordID   OptUUID                                 `json:"comment_record_id"`
	// An ISO 8901 datetime string for when the comment was read.
	ReadAt OptString `json:"read_at"`
	// An ISO 8901 datetime string denoting when the comment was created.
	CreatedAt OptString `json:"created_at"`
	// An ISO 8901 datetime string for when the comment was updated.
	UpdatedAt OptString `json:"updated_at"`
}

Merged schema.

func (*CommentResponseData) Decode

func (s *CommentResponseData) Decode(d *jx.Decoder) error

Decode decodes CommentResponseData from json.

func (*CommentResponseData) Encode

func (s *CommentResponseData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CommentResponseData) GetBody

func (s *CommentResponseData) GetBody() OptString

GetBody returns the value of Body.

func (*CommentResponseData) GetCommentRecordID

func (s *CommentResponseData) GetCommentRecordID() OptUUID

GetCommentRecordID returns the value of CommentRecordID.

func (*CommentResponseData) GetCommentRecordType

GetCommentRecordType returns the value of CommentRecordType.

func (*CommentResponseData) GetCommenter

func (s *CommentResponseData) GetCommenter() OptString

GetCommenter returns the value of Commenter.

func (*CommentResponseData) GetCommenterType

GetCommenterType returns the value of CommenterType.

func (*CommentResponseData) GetCreatedAt

func (s *CommentResponseData) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*CommentResponseData) GetID

func (s *CommentResponseData) GetID() OptUUID

GetID returns the value of ID.

func (*CommentResponseData) GetReadAt

func (s *CommentResponseData) GetReadAt() OptString

GetReadAt returns the value of ReadAt.

func (*CommentResponseData) GetUpdatedAt

func (s *CommentResponseData) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*CommentResponseData) MarshalJSON

func (s *CommentResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CommentResponseData) SetBody

func (s *CommentResponseData) SetBody(val OptString)

SetBody sets the value of Body.

func (*CommentResponseData) SetCommentRecordID

func (s *CommentResponseData) SetCommentRecordID(val OptUUID)

SetCommentRecordID sets the value of CommentRecordID.

func (*CommentResponseData) SetCommentRecordType

func (s *CommentResponseData) SetCommentRecordType(val OptCommentResponseDataCommentRecordType)

SetCommentRecordType sets the value of CommentRecordType.

func (*CommentResponseData) SetCommenter

func (s *CommentResponseData) SetCommenter(val OptString)

SetCommenter sets the value of Commenter.

func (*CommentResponseData) SetCommenterType

SetCommenterType sets the value of CommenterType.

func (*CommentResponseData) SetCreatedAt

func (s *CommentResponseData) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*CommentResponseData) SetID

func (s *CommentResponseData) SetID(val OptUUID)

SetID sets the value of ID.

func (*CommentResponseData) SetReadAt

func (s *CommentResponseData) SetReadAt(val OptString)

SetReadAt sets the value of ReadAt.

func (*CommentResponseData) SetUpdatedAt

func (s *CommentResponseData) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*CommentResponseData) UnmarshalJSON

func (s *CommentResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CommentResponseData) Validate

func (s *CommentResponseData) Validate() error

type CommentResponseDataCommentRecordType

type CommentResponseDataCommentRecordType string
const (
	CommentResponseDataCommentRecordTypeNumberOrder            CommentResponseDataCommentRecordType = "number_order"
	CommentResponseDataCommentRecordTypeSubNumberOrder         CommentResponseDataCommentRecordType = "sub_number_order"
	CommentResponseDataCommentRecordTypeNumberOrderPhoneNumber CommentResponseDataCommentRecordType = "number_order_phone_number"
)

func (CommentResponseDataCommentRecordType) AllValues

AllValues returns all CommentResponseDataCommentRecordType values.

func (*CommentResponseDataCommentRecordType) Decode

Decode decodes CommentResponseDataCommentRecordType from json.

func (CommentResponseDataCommentRecordType) Encode

Encode encodes CommentResponseDataCommentRecordType as json.

func (CommentResponseDataCommentRecordType) MarshalJSON

func (s CommentResponseDataCommentRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CommentResponseDataCommentRecordType) MarshalText

func (s CommentResponseDataCommentRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CommentResponseDataCommentRecordType) UnmarshalJSON

func (s *CommentResponseDataCommentRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CommentResponseDataCommentRecordType) UnmarshalText

func (s *CommentResponseDataCommentRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CommentResponseDataCommentRecordType) Validate

type CommentResponseDataCommenterType

type CommentResponseDataCommenterType string
const (
	CommentResponseDataCommenterTypeAdmin CommentResponseDataCommenterType = "admin"
	CommentResponseDataCommenterTypeUser  CommentResponseDataCommenterType = "user"
)

func (CommentResponseDataCommenterType) AllValues

AllValues returns all CommentResponseDataCommenterType values.

func (*CommentResponseDataCommenterType) Decode

Decode decodes CommentResponseDataCommenterType from json.

func (CommentResponseDataCommenterType) Encode

Encode encodes CommentResponseDataCommenterType as json.

func (CommentResponseDataCommenterType) MarshalJSON

func (s CommentResponseDataCommenterType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CommentResponseDataCommenterType) MarshalText

func (s CommentResponseDataCommenterType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CommentResponseDataCommenterType) UnmarshalJSON

func (s *CommentResponseDataCommenterType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CommentResponseDataCommenterType) UnmarshalText

func (s *CommentResponseDataCommenterType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CommentResponseDataCommenterType) Validate

type CompleteOTAUpdate

type CompleteOTAUpdate struct {
	// Identifies the resource.
	ID         OptUUID   `json:"id"`
	RecordType OptString `json:"record_type"`
	// The identification UUID of the related SIM card resource.
	SimCardID OptUUID `json:"sim_card_id"`
	// Represents the type of the operation requested. This will relate directly to the source of the
	// request.
	Type   OptCompleteOTAUpdateType   `json:"type"`
	Status OptCompleteOTAUpdateStatus `json:"status"`
	// A JSON object representation of the operation. The information present here will relate directly
	// to the source of the OTA request.
	Settings OptCompleteOTAUpdateSettings `json:"settings"`
	// ISO 8601 formatted date-time indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date-time indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
}

This object represents an Over the Air (OTA) update request. It allows tracking the current status of a operation that apply settings in a particular SIM card. <br/><br/>. Ref: #/components/schemas/CompleteOTAUpdate

func (*CompleteOTAUpdate) Decode

func (s *CompleteOTAUpdate) Decode(d *jx.Decoder) error

Decode decodes CompleteOTAUpdate from json.

func (*CompleteOTAUpdate) Encode

func (s *CompleteOTAUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CompleteOTAUpdate) GetCreatedAt

func (s *CompleteOTAUpdate) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*CompleteOTAUpdate) GetID

func (s *CompleteOTAUpdate) GetID() OptUUID

GetID returns the value of ID.

func (*CompleteOTAUpdate) GetRecordType

func (s *CompleteOTAUpdate) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*CompleteOTAUpdate) GetSettings

GetSettings returns the value of Settings.

func (*CompleteOTAUpdate) GetSimCardID

func (s *CompleteOTAUpdate) GetSimCardID() OptUUID

GetSimCardID returns the value of SimCardID.

func (*CompleteOTAUpdate) GetStatus

GetStatus returns the value of Status.

func (*CompleteOTAUpdate) GetType

GetType returns the value of Type.

func (*CompleteOTAUpdate) GetUpdatedAt

func (s *CompleteOTAUpdate) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*CompleteOTAUpdate) MarshalJSON

func (s *CompleteOTAUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CompleteOTAUpdate) SetCreatedAt

func (s *CompleteOTAUpdate) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*CompleteOTAUpdate) SetID

func (s *CompleteOTAUpdate) SetID(val OptUUID)

SetID sets the value of ID.

func (*CompleteOTAUpdate) SetRecordType

func (s *CompleteOTAUpdate) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*CompleteOTAUpdate) SetSettings

func (s *CompleteOTAUpdate) SetSettings(val OptCompleteOTAUpdateSettings)

SetSettings sets the value of Settings.

func (*CompleteOTAUpdate) SetSimCardID

func (s *CompleteOTAUpdate) SetSimCardID(val OptUUID)

SetSimCardID sets the value of SimCardID.

func (*CompleteOTAUpdate) SetStatus

SetStatus sets the value of Status.

func (*CompleteOTAUpdate) SetType

SetType sets the value of Type.

func (*CompleteOTAUpdate) SetUpdatedAt

func (s *CompleteOTAUpdate) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*CompleteOTAUpdate) UnmarshalJSON

func (s *CompleteOTAUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CompleteOTAUpdate) Validate

func (s *CompleteOTAUpdate) Validate() error

type CompleteOTAUpdateSettings

type CompleteOTAUpdateSettings struct {
	MobileNetworkOperatorsPreferences MobileNetworkOperatorsPreferencesResponse `json:"mobile_network_operators_preferences"`
}

A JSON object representation of the operation. The information present here will relate directly to the source of the OTA request.

func (*CompleteOTAUpdateSettings) Decode

func (s *CompleteOTAUpdateSettings) Decode(d *jx.Decoder) error

Decode decodes CompleteOTAUpdateSettings from json.

func (*CompleteOTAUpdateSettings) Encode

func (s *CompleteOTAUpdateSettings) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CompleteOTAUpdateSettings) GetMobileNetworkOperatorsPreferences

func (s *CompleteOTAUpdateSettings) GetMobileNetworkOperatorsPreferences() MobileNetworkOperatorsPreferencesResponse

GetMobileNetworkOperatorsPreferences returns the value of MobileNetworkOperatorsPreferences.

func (*CompleteOTAUpdateSettings) MarshalJSON

func (s *CompleteOTAUpdateSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CompleteOTAUpdateSettings) SetMobileNetworkOperatorsPreferences

func (s *CompleteOTAUpdateSettings) SetMobileNetworkOperatorsPreferences(val MobileNetworkOperatorsPreferencesResponse)

SetMobileNetworkOperatorsPreferences sets the value of MobileNetworkOperatorsPreferences.

func (*CompleteOTAUpdateSettings) UnmarshalJSON

func (s *CompleteOTAUpdateSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CompleteOTAUpdateStatus

type CompleteOTAUpdateStatus string
const (
	CompleteOTAUpdateStatusInProgress CompleteOTAUpdateStatus = "in-progress"
	CompleteOTAUpdateStatusCompleted  CompleteOTAUpdateStatus = "completed"
	CompleteOTAUpdateStatusFailed     CompleteOTAUpdateStatus = "failed"
)

func (CompleteOTAUpdateStatus) AllValues

AllValues returns all CompleteOTAUpdateStatus values.

func (*CompleteOTAUpdateStatus) Decode

func (s *CompleteOTAUpdateStatus) Decode(d *jx.Decoder) error

Decode decodes CompleteOTAUpdateStatus from json.

func (CompleteOTAUpdateStatus) Encode

func (s CompleteOTAUpdateStatus) Encode(e *jx.Encoder)

Encode encodes CompleteOTAUpdateStatus as json.

func (CompleteOTAUpdateStatus) MarshalJSON

func (s CompleteOTAUpdateStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CompleteOTAUpdateStatus) MarshalText

func (s CompleteOTAUpdateStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CompleteOTAUpdateStatus) UnmarshalJSON

func (s *CompleteOTAUpdateStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CompleteOTAUpdateStatus) UnmarshalText

func (s *CompleteOTAUpdateStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CompleteOTAUpdateStatus) Validate

func (s CompleteOTAUpdateStatus) Validate() error

type CompleteOTAUpdateType

type CompleteOTAUpdateType string

Represents the type of the operation requested. This will relate directly to the source of the request.

const (
	CompleteOTAUpdateTypeSimCardNetworkPreferences CompleteOTAUpdateType = "sim_card_network_preferences"
)

func (CompleteOTAUpdateType) AllValues

AllValues returns all CompleteOTAUpdateType values.

func (*CompleteOTAUpdateType) Decode

func (s *CompleteOTAUpdateType) Decode(d *jx.Decoder) error

Decode decodes CompleteOTAUpdateType from json.

func (CompleteOTAUpdateType) Encode

func (s CompleteOTAUpdateType) Encode(e *jx.Encoder)

Encode encodes CompleteOTAUpdateType as json.

func (CompleteOTAUpdateType) MarshalJSON

func (s CompleteOTAUpdateType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CompleteOTAUpdateType) MarshalText

func (s CompleteOTAUpdateType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CompleteOTAUpdateType) UnmarshalJSON

func (s *CompleteOTAUpdateType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CompleteOTAUpdateType) UnmarshalText

func (s *CompleteOTAUpdateType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CompleteOTAUpdateType) Validate

func (s CompleteOTAUpdateType) Validate() error

type ConferenceRecordingResource

type ConferenceRecordingResource struct {
	// The id of the account the resource belongs to.
	AccountSid OptString `json:"account_sid"`
	// The identifier of the related participant's call.
	CallSid OptString `json:"call_sid"`
	// The number of channels in the recording.
	Channels OptInt `json:"channels"`
	// The identifier of the related conference.
	ConferenceSid OptString `json:"conference_sid"`
	// The timestamp of when the resource was created.
	DateCreated OptString `json:"date_created"`
	// The timestamp of when the resource was last updated.
	DateUpdated OptString `json:"date_updated"`
	// Duratin of the recording in seconds.
	Duration OptInt `json:"duration"`
	// The recording error, if any.
	ErrorCode OptString `json:"error_code"`
	// The URL to use to download the recording.
	MediaURL OptString `json:"media_url"`
	// The unique identifier of the recording.
	Sid OptString `json:"sid"`
	// How the recording was started.
	Source OptConferenceRecordingResourceSource `json:"source"`
	// The timestamp of when the recording was started.
	StartTime OptString `json:"start_time"`
	// The status of the recording.
	Status OptConferenceRecordingResourceStatus `json:"status"`
	// A list of related resources identified by their relative URIs.
	SubresourceUris OptConferenceRecordingResourceSubresourceUris `json:"subresource_uris"`
	// The relative URI for this recording.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/ConferenceRecordingResource

func (*ConferenceRecordingResource) Decode

Decode decodes ConferenceRecordingResource from json.

func (*ConferenceRecordingResource) Encode

func (s *ConferenceRecordingResource) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ConferenceRecordingResource) GetAccountSid

func (s *ConferenceRecordingResource) GetAccountSid() OptString

GetAccountSid returns the value of AccountSid.

func (*ConferenceRecordingResource) GetCallSid

func (s *ConferenceRecordingResource) GetCallSid() OptString

GetCallSid returns the value of CallSid.

func (*ConferenceRecordingResource) GetChannels

func (s *ConferenceRecordingResource) GetChannels() OptInt

GetChannels returns the value of Channels.

func (*ConferenceRecordingResource) GetConferenceSid

func (s *ConferenceRecordingResource) GetConferenceSid() OptString

GetConferenceSid returns the value of ConferenceSid.

func (*ConferenceRecordingResource) GetDateCreated

func (s *ConferenceRecordingResource) GetDateCreated() OptString

GetDateCreated returns the value of DateCreated.

func (*ConferenceRecordingResource) GetDateUpdated

func (s *ConferenceRecordingResource) GetDateUpdated() OptString

GetDateUpdated returns the value of DateUpdated.

func (*ConferenceRecordingResource) GetDuration

func (s *ConferenceRecordingResource) GetDuration() OptInt

GetDuration returns the value of Duration.

func (*ConferenceRecordingResource) GetErrorCode

func (s *ConferenceRecordingResource) GetErrorCode() OptString

GetErrorCode returns the value of ErrorCode.

func (*ConferenceRecordingResource) GetMediaURL

func (s *ConferenceRecordingResource) GetMediaURL() OptString

GetMediaURL returns the value of MediaURL.

func (*ConferenceRecordingResource) GetSid

GetSid returns the value of Sid.

func (*ConferenceRecordingResource) GetSource

GetSource returns the value of Source.

func (*ConferenceRecordingResource) GetStartTime

func (s *ConferenceRecordingResource) GetStartTime() OptString

GetStartTime returns the value of StartTime.

func (*ConferenceRecordingResource) GetStatus

GetStatus returns the value of Status.

func (*ConferenceRecordingResource) GetSubresourceUris

GetSubresourceUris returns the value of SubresourceUris.

func (*ConferenceRecordingResource) GetURI

GetURI returns the value of URI.

func (*ConferenceRecordingResource) MarshalJSON

func (s *ConferenceRecordingResource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ConferenceRecordingResource) SetAccountSid

func (s *ConferenceRecordingResource) SetAccountSid(val OptString)

SetAccountSid sets the value of AccountSid.

func (*ConferenceRecordingResource) SetCallSid

func (s *ConferenceRecordingResource) SetCallSid(val OptString)

SetCallSid sets the value of CallSid.

func (*ConferenceRecordingResource) SetChannels

func (s *ConferenceRecordingResource) SetChannels(val OptInt)

SetChannels sets the value of Channels.

func (*ConferenceRecordingResource) SetConferenceSid

func (s *ConferenceRecordingResource) SetConferenceSid(val OptString)

SetConferenceSid sets the value of ConferenceSid.

func (*ConferenceRecordingResource) SetDateCreated

func (s *ConferenceRecordingResource) SetDateCreated(val OptString)

SetDateCreated sets the value of DateCreated.

func (*ConferenceRecordingResource) SetDateUpdated

func (s *ConferenceRecordingResource) SetDateUpdated(val OptString)

SetDateUpdated sets the value of DateUpdated.

func (*ConferenceRecordingResource) SetDuration

func (s *ConferenceRecordingResource) SetDuration(val OptInt)

SetDuration sets the value of Duration.

func (*ConferenceRecordingResource) SetErrorCode

func (s *ConferenceRecordingResource) SetErrorCode(val OptString)

SetErrorCode sets the value of ErrorCode.

func (*ConferenceRecordingResource) SetMediaURL

func (s *ConferenceRecordingResource) SetMediaURL(val OptString)

SetMediaURL sets the value of MediaURL.

func (*ConferenceRecordingResource) SetSid

func (s *ConferenceRecordingResource) SetSid(val OptString)

SetSid sets the value of Sid.

func (*ConferenceRecordingResource) SetSource

SetSource sets the value of Source.

func (*ConferenceRecordingResource) SetStartTime

func (s *ConferenceRecordingResource) SetStartTime(val OptString)

SetStartTime sets the value of StartTime.

func (*ConferenceRecordingResource) SetStatus

SetStatus sets the value of Status.

func (*ConferenceRecordingResource) SetSubresourceUris

SetSubresourceUris sets the value of SubresourceUris.

func (*ConferenceRecordingResource) SetURI

func (s *ConferenceRecordingResource) SetURI(val OptString)

SetURI sets the value of URI.

func (*ConferenceRecordingResource) UnmarshalJSON

func (s *ConferenceRecordingResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ConferenceRecordingResource) Validate

func (s *ConferenceRecordingResource) Validate() error

type ConferenceRecordingResourceIndex

type ConferenceRecordingResourceIndex struct {
	Recordings []ConferenceRecordingResource `json:"recordings"`
	// The number of the last element on the page, zero-indexed.
	End OptInt `json:"end"`
	// /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Conferences/6dc6cc1a-1ba1-4351-86b8-4c22c95cd98f/Recordings.json?page=0&pagesize=20.
	FirstPageURI OptString `json:"first_page_uri"`
	// /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Conferences/6dc6cc1a-1ba1-4351-86b8-4c22c95cd98f/Recordings.json?Page=1&PageSize=1&PageToken=MTY4AjgyNDkwNzIxMQ.
	NextPageURI OptString `json:"next_page_uri"`
	// Current page number, zero-indexed.
	Page OptInt `json:"page"`
	// The number of items on the page.
	PageSize OptInt `json:"page_size"`
	// The number of the first element on the page, zero-indexed.
	Start OptInt `json:"start"`
	// The URI of the current page.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/ConferenceRecordingResourceIndex

func (*ConferenceRecordingResourceIndex) Decode

Decode decodes ConferenceRecordingResourceIndex from json.

func (*ConferenceRecordingResourceIndex) Encode

Encode implements json.Marshaler.

func (*ConferenceRecordingResourceIndex) GetEnd

GetEnd returns the value of End.

func (*ConferenceRecordingResourceIndex) GetFirstPageURI

func (s *ConferenceRecordingResourceIndex) GetFirstPageURI() OptString

GetFirstPageURI returns the value of FirstPageURI.

func (*ConferenceRecordingResourceIndex) GetNextPageURI

func (s *ConferenceRecordingResourceIndex) GetNextPageURI() OptString

GetNextPageURI returns the value of NextPageURI.

func (*ConferenceRecordingResourceIndex) GetPage

GetPage returns the value of Page.

func (*ConferenceRecordingResourceIndex) GetPageSize

func (s *ConferenceRecordingResourceIndex) GetPageSize() OptInt

GetPageSize returns the value of PageSize.

func (*ConferenceRecordingResourceIndex) GetRecordings

GetRecordings returns the value of Recordings.

func (*ConferenceRecordingResourceIndex) GetStart

GetStart returns the value of Start.

func (*ConferenceRecordingResourceIndex) GetURI

GetURI returns the value of URI.

func (*ConferenceRecordingResourceIndex) MarshalJSON

func (s *ConferenceRecordingResourceIndex) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ConferenceRecordingResourceIndex) SetEnd

SetEnd sets the value of End.

func (*ConferenceRecordingResourceIndex) SetFirstPageURI

func (s *ConferenceRecordingResourceIndex) SetFirstPageURI(val OptString)

SetFirstPageURI sets the value of FirstPageURI.

func (*ConferenceRecordingResourceIndex) SetNextPageURI

func (s *ConferenceRecordingResourceIndex) SetNextPageURI(val OptString)

SetNextPageURI sets the value of NextPageURI.

func (*ConferenceRecordingResourceIndex) SetPage

func (s *ConferenceRecordingResourceIndex) SetPage(val OptInt)

SetPage sets the value of Page.

func (*ConferenceRecordingResourceIndex) SetPageSize

func (s *ConferenceRecordingResourceIndex) SetPageSize(val OptInt)

SetPageSize sets the value of PageSize.

func (*ConferenceRecordingResourceIndex) SetRecordings

SetRecordings sets the value of Recordings.

func (*ConferenceRecordingResourceIndex) SetStart

func (s *ConferenceRecordingResourceIndex) SetStart(val OptInt)

SetStart sets the value of Start.

func (*ConferenceRecordingResourceIndex) SetURI

SetURI sets the value of URI.

func (*ConferenceRecordingResourceIndex) UnmarshalJSON

func (s *ConferenceRecordingResourceIndex) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ConferenceRecordingResourceIndex) Validate

type ConferenceRecordingResourceSource

type ConferenceRecordingResourceSource string

How the recording was started.

const (
	ConferenceRecordingResourceSourceDialVerb                    ConferenceRecordingResourceSource = "DialVerb"
	ConferenceRecordingResourceSourceConference                  ConferenceRecordingResourceSource = "Conference"
	ConferenceRecordingResourceSourceOutboundAPI                 ConferenceRecordingResourceSource = "OutboundAPI"
	ConferenceRecordingResourceSourceTrunking                    ConferenceRecordingResourceSource = "Trunking"
	ConferenceRecordingResourceSourceRecordVerb                  ConferenceRecordingResourceSource = "RecordVerb"
	ConferenceRecordingResourceSourceStartCallRecordingAPI       ConferenceRecordingResourceSource = "StartCallRecordingAPI"
	ConferenceRecordingResourceSourceStartConferenceRecordingAPI ConferenceRecordingResourceSource = "StartConferenceRecordingAPI"
)

func (ConferenceRecordingResourceSource) AllValues

AllValues returns all ConferenceRecordingResourceSource values.

func (*ConferenceRecordingResourceSource) Decode

Decode decodes ConferenceRecordingResourceSource from json.

func (ConferenceRecordingResourceSource) Encode

Encode encodes ConferenceRecordingResourceSource as json.

func (ConferenceRecordingResourceSource) MarshalJSON

func (s ConferenceRecordingResourceSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ConferenceRecordingResourceSource) MarshalText

func (s ConferenceRecordingResourceSource) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ConferenceRecordingResourceSource) UnmarshalJSON

func (s *ConferenceRecordingResourceSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ConferenceRecordingResourceSource) UnmarshalText

func (s *ConferenceRecordingResourceSource) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ConferenceRecordingResourceSource) Validate

type ConferenceRecordingResourceStatus

type ConferenceRecordingResourceStatus string

The status of the recording.

const (
	ConferenceRecordingResourceStatusProcessing ConferenceRecordingResourceStatus = "processing"
	ConferenceRecordingResourceStatusAbsent     ConferenceRecordingResourceStatus = "absent"
	ConferenceRecordingResourceStatusCompleted  ConferenceRecordingResourceStatus = "completed"
	ConferenceRecordingResourceStatusDeleted    ConferenceRecordingResourceStatus = "deleted"
)

func (ConferenceRecordingResourceStatus) AllValues

AllValues returns all ConferenceRecordingResourceStatus values.

func (*ConferenceRecordingResourceStatus) Decode

Decode decodes ConferenceRecordingResourceStatus from json.

func (ConferenceRecordingResourceStatus) Encode

Encode encodes ConferenceRecordingResourceStatus as json.

func (ConferenceRecordingResourceStatus) MarshalJSON

func (s ConferenceRecordingResourceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ConferenceRecordingResourceStatus) MarshalText

func (s ConferenceRecordingResourceStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ConferenceRecordingResourceStatus) UnmarshalJSON

func (s *ConferenceRecordingResourceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ConferenceRecordingResourceStatus) UnmarshalText

func (s *ConferenceRecordingResourceStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ConferenceRecordingResourceStatus) Validate

type ConferenceRecordingResourceSubresourceUris

type ConferenceRecordingResourceSubresourceUris map[string]jx.Raw

A list of related resources identified by their relative URIs.

func (*ConferenceRecordingResourceSubresourceUris) Decode

Decode decodes ConferenceRecordingResourceSubresourceUris from json.

func (ConferenceRecordingResourceSubresourceUris) Encode

Encode implements json.Marshaler.

func (ConferenceRecordingResourceSubresourceUris) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ConferenceRecordingResourceSubresourceUris) UnmarshalJSON

func (s *ConferenceRecordingResourceSubresourceUris) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ConferenceResource

type ConferenceResource struct {
	// The id of the account the resource belongs to.
	AccountSid OptString `json:"account_sid"`
	// The version of the API that was used to make the request.
	APIVersion OptString `json:"api_version"`
	// Caller ID, if present.
	CallSidEndingConference OptString `json:"call_sid_ending_conference"`
	// The timestamp of when the resource was created.
	DateCreated OptString `json:"date_created"`
	// The timestamp of when the resource was last updated.
	DateUpdated OptString `json:"date_updated"`
	// A string that you assigned to describe this conference room.
	FriendlyName OptString `json:"friendly_name"`
	// The reason why a conference ended. When a conference is in progress, will be null.
	ReasonConferenceEnded OptConferenceResourceReasonConferenceEnded `json:"reason_conference_ended"`
	// A string representing the region where the conference is hosted.
	Region OptString `json:"region"`
	// The unique identifier of the conference.
	Sid OptString `json:"sid"`
	// The status of this conference.
	Status OptConferenceResourceStatus `json:"status"`
	// A list of related resources identified by their relative URIs.
	SubresourceUris OptConferenceResourceSubresourceUris `json:"subresource_uris"`
	// The relative URI for this conference.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/ConferenceResource

func (*ConferenceResource) Decode

func (s *ConferenceResource) Decode(d *jx.Decoder) error

Decode decodes ConferenceResource from json.

func (*ConferenceResource) Encode

func (s *ConferenceResource) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ConferenceResource) GetAPIVersion

func (s *ConferenceResource) GetAPIVersion() OptString

GetAPIVersion returns the value of APIVersion.

func (*ConferenceResource) GetAccountSid

func (s *ConferenceResource) GetAccountSid() OptString

GetAccountSid returns the value of AccountSid.

func (*ConferenceResource) GetCallSidEndingConference

func (s *ConferenceResource) GetCallSidEndingConference() OptString

GetCallSidEndingConference returns the value of CallSidEndingConference.

func (*ConferenceResource) GetDateCreated

func (s *ConferenceResource) GetDateCreated() OptString

GetDateCreated returns the value of DateCreated.

func (*ConferenceResource) GetDateUpdated

func (s *ConferenceResource) GetDateUpdated() OptString

GetDateUpdated returns the value of DateUpdated.

func (*ConferenceResource) GetFriendlyName

func (s *ConferenceResource) GetFriendlyName() OptString

GetFriendlyName returns the value of FriendlyName.

func (*ConferenceResource) GetReasonConferenceEnded

func (s *ConferenceResource) GetReasonConferenceEnded() OptConferenceResourceReasonConferenceEnded

GetReasonConferenceEnded returns the value of ReasonConferenceEnded.

func (*ConferenceResource) GetRegion

func (s *ConferenceResource) GetRegion() OptString

GetRegion returns the value of Region.

func (*ConferenceResource) GetSid

func (s *ConferenceResource) GetSid() OptString

GetSid returns the value of Sid.

func (*ConferenceResource) GetStatus

GetStatus returns the value of Status.

func (*ConferenceResource) GetSubresourceUris

GetSubresourceUris returns the value of SubresourceUris.

func (*ConferenceResource) GetURI

func (s *ConferenceResource) GetURI() OptString

GetURI returns the value of URI.

func (*ConferenceResource) MarshalJSON

func (s *ConferenceResource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ConferenceResource) SetAPIVersion

func (s *ConferenceResource) SetAPIVersion(val OptString)

SetAPIVersion sets the value of APIVersion.

func (*ConferenceResource) SetAccountSid

func (s *ConferenceResource) SetAccountSid(val OptString)

SetAccountSid sets the value of AccountSid.

func (*ConferenceResource) SetCallSidEndingConference

func (s *ConferenceResource) SetCallSidEndingConference(val OptString)

SetCallSidEndingConference sets the value of CallSidEndingConference.

func (*ConferenceResource) SetDateCreated

func (s *ConferenceResource) SetDateCreated(val OptString)

SetDateCreated sets the value of DateCreated.

func (*ConferenceResource) SetDateUpdated

func (s *ConferenceResource) SetDateUpdated(val OptString)

SetDateUpdated sets the value of DateUpdated.

func (*ConferenceResource) SetFriendlyName

func (s *ConferenceResource) SetFriendlyName(val OptString)

SetFriendlyName sets the value of FriendlyName.

func (*ConferenceResource) SetReasonConferenceEnded

func (s *ConferenceResource) SetReasonConferenceEnded(val OptConferenceResourceReasonConferenceEnded)

SetReasonConferenceEnded sets the value of ReasonConferenceEnded.

func (*ConferenceResource) SetRegion

func (s *ConferenceResource) SetRegion(val OptString)

SetRegion sets the value of Region.

func (*ConferenceResource) SetSid

func (s *ConferenceResource) SetSid(val OptString)

SetSid sets the value of Sid.

func (*ConferenceResource) SetStatus

SetStatus sets the value of Status.

func (*ConferenceResource) SetSubresourceUris

func (s *ConferenceResource) SetSubresourceUris(val OptConferenceResourceSubresourceUris)

SetSubresourceUris sets the value of SubresourceUris.

func (*ConferenceResource) SetURI

func (s *ConferenceResource) SetURI(val OptString)

SetURI sets the value of URI.

func (*ConferenceResource) UnmarshalJSON

func (s *ConferenceResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ConferenceResource) Validate

func (s *ConferenceResource) Validate() error

type ConferenceResourceIndex

type ConferenceResourceIndex struct {
	Conferences []ConferenceResource `json:"conferences"`
	// The number of the last element on the page, zero-indexed.
	End OptInt `json:"end"`
	// /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Conferences.json?Page=0&PageSize=1.
	FirstPageURI OptString `json:"first_page_uri"`
	// /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Conferences.
	// json?Page=1&PageSize=1&PageToken=MTY4AjgyNDkwNzIxMQ.
	NextPageURI OptString `json:"next_page_uri"`
	// Current page number, zero-indexed.
	Page OptInt `json:"page"`
	// The number of items on the page.
	PageSize OptInt `json:"page_size"`
	// The number of the first element on the page, zero-indexed.
	Start OptInt `json:"start"`
	// The URI of the current page.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/ConferenceResourceIndex

func (*ConferenceResourceIndex) Decode

func (s *ConferenceResourceIndex) Decode(d *jx.Decoder) error

Decode decodes ConferenceResourceIndex from json.

func (*ConferenceResourceIndex) Encode

func (s *ConferenceResourceIndex) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ConferenceResourceIndex) GetConferences

func (s *ConferenceResourceIndex) GetConferences() []ConferenceResource

GetConferences returns the value of Conferences.

func (*ConferenceResourceIndex) GetEnd

func (s *ConferenceResourceIndex) GetEnd() OptInt

GetEnd returns the value of End.

func (*ConferenceResourceIndex) GetFirstPageURI

func (s *ConferenceResourceIndex) GetFirstPageURI() OptString

GetFirstPageURI returns the value of FirstPageURI.

func (*ConferenceResourceIndex) GetNextPageURI

func (s *ConferenceResourceIndex) GetNextPageURI() OptString

GetNextPageURI returns the value of NextPageURI.

func (*ConferenceResourceIndex) GetPage

func (s *ConferenceResourceIndex) GetPage() OptInt

GetPage returns the value of Page.

func (*ConferenceResourceIndex) GetPageSize

func (s *ConferenceResourceIndex) GetPageSize() OptInt

GetPageSize returns the value of PageSize.

func (*ConferenceResourceIndex) GetStart

func (s *ConferenceResourceIndex) GetStart() OptInt

GetStart returns the value of Start.

func (*ConferenceResourceIndex) GetURI

func (s *ConferenceResourceIndex) GetURI() OptString

GetURI returns the value of URI.

func (*ConferenceResourceIndex) MarshalJSON

func (s *ConferenceResourceIndex) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ConferenceResourceIndex) SetConferences

func (s *ConferenceResourceIndex) SetConferences(val []ConferenceResource)

SetConferences sets the value of Conferences.

func (*ConferenceResourceIndex) SetEnd

func (s *ConferenceResourceIndex) SetEnd(val OptInt)

SetEnd sets the value of End.

func (*ConferenceResourceIndex) SetFirstPageURI

func (s *ConferenceResourceIndex) SetFirstPageURI(val OptString)

SetFirstPageURI sets the value of FirstPageURI.

func (*ConferenceResourceIndex) SetNextPageURI

func (s *ConferenceResourceIndex) SetNextPageURI(val OptString)

SetNextPageURI sets the value of NextPageURI.

func (*ConferenceResourceIndex) SetPage

func (s *ConferenceResourceIndex) SetPage(val OptInt)

SetPage sets the value of Page.

func (*ConferenceResourceIndex) SetPageSize

func (s *ConferenceResourceIndex) SetPageSize(val OptInt)

SetPageSize sets the value of PageSize.

func (*ConferenceResourceIndex) SetStart

func (s *ConferenceResourceIndex) SetStart(val OptInt)

SetStart sets the value of Start.

func (*ConferenceResourceIndex) SetURI

func (s *ConferenceResourceIndex) SetURI(val OptString)

SetURI sets the value of URI.

func (*ConferenceResourceIndex) UnmarshalJSON

func (s *ConferenceResourceIndex) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ConferenceResourceIndex) Validate

func (s *ConferenceResourceIndex) Validate() error

type ConferenceResourceReasonConferenceEnded

type ConferenceResourceReasonConferenceEnded string

The reason why a conference ended. When a conference is in progress, will be null.

const (
	ConferenceResourceReasonConferenceEndedParticipantWithEndConferenceOnExitLeft ConferenceResourceReasonConferenceEnded = "participant-with-end-conference-on-exit-left"
	ConferenceResourceReasonConferenceEndedLastParticipantLeft                    ConferenceResourceReasonConferenceEnded = "last-participant-left"
	ConferenceResourceReasonConferenceEndedConferenceEndedViaAPI                  ConferenceResourceReasonConferenceEnded = "conference-ended-via-api"
	ConferenceResourceReasonConferenceEndedTimeExceeded                           ConferenceResourceReasonConferenceEnded = "time-exceeded"
)

func (ConferenceResourceReasonConferenceEnded) AllValues

AllValues returns all ConferenceResourceReasonConferenceEnded values.

func (*ConferenceResourceReasonConferenceEnded) Decode

Decode decodes ConferenceResourceReasonConferenceEnded from json.

func (ConferenceResourceReasonConferenceEnded) Encode

Encode encodes ConferenceResourceReasonConferenceEnded as json.

func (ConferenceResourceReasonConferenceEnded) MarshalJSON

func (s ConferenceResourceReasonConferenceEnded) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ConferenceResourceReasonConferenceEnded) MarshalText

func (s ConferenceResourceReasonConferenceEnded) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ConferenceResourceReasonConferenceEnded) UnmarshalJSON

func (s *ConferenceResourceReasonConferenceEnded) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ConferenceResourceReasonConferenceEnded) UnmarshalText

func (s *ConferenceResourceReasonConferenceEnded) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ConferenceResourceReasonConferenceEnded) Validate

type ConferenceResourceStatus

type ConferenceResourceStatus string

The status of this conference.

const (
	ConferenceResourceStatusInit       ConferenceResourceStatus = "init"
	ConferenceResourceStatusInProgress ConferenceResourceStatus = "in-progress"
	ConferenceResourceStatusCompleted  ConferenceResourceStatus = "completed"
)

func (ConferenceResourceStatus) AllValues

AllValues returns all ConferenceResourceStatus values.

func (*ConferenceResourceStatus) Decode

func (s *ConferenceResourceStatus) Decode(d *jx.Decoder) error

Decode decodes ConferenceResourceStatus from json.

func (ConferenceResourceStatus) Encode

func (s ConferenceResourceStatus) Encode(e *jx.Encoder)

Encode encodes ConferenceResourceStatus as json.

func (ConferenceResourceStatus) MarshalJSON

func (s ConferenceResourceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ConferenceResourceStatus) MarshalText

func (s ConferenceResourceStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ConferenceResourceStatus) UnmarshalJSON

func (s *ConferenceResourceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ConferenceResourceStatus) UnmarshalText

func (s *ConferenceResourceStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ConferenceResourceStatus) Validate

func (s ConferenceResourceStatus) Validate() error

type ConferenceResourceSubresourceUris

type ConferenceResourceSubresourceUris map[string]jx.Raw

A list of related resources identified by their relative URIs.

func (*ConferenceResourceSubresourceUris) Decode

Decode decodes ConferenceResourceSubresourceUris from json.

func (ConferenceResourceSubresourceUris) Encode

Encode implements json.Marshaler.

func (ConferenceResourceSubresourceUris) MarshalJSON

func (s ConferenceResourceSubresourceUris) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ConferenceResourceSubresourceUris) UnmarshalJSON

func (s *ConferenceResourceSubresourceUris) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ConferenceSid

type ConferenceSid uuid.UUID

func (*ConferenceSid) Decode

func (s *ConferenceSid) Decode(d *jx.Decoder) error

Decode decodes ConferenceSid from json.

func (ConferenceSid) Encode

func (s ConferenceSid) Encode(e *jx.Encoder)

Encode encodes ConferenceSid as json.

func (ConferenceSid) MarshalJSON

func (s ConferenceSid) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ConferenceSid) UnmarshalJSON

func (s *ConferenceSid) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ConferenceStatus

type ConferenceStatus string
const (
	ConferenceStatusInit       ConferenceStatus = "init"
	ConferenceStatusInProgress ConferenceStatus = "in-progress"
	ConferenceStatusCompleted  ConferenceStatus = "completed"
)

func (ConferenceStatus) AllValues

func (ConferenceStatus) AllValues() []ConferenceStatus

AllValues returns all ConferenceStatus values.

func (ConferenceStatus) MarshalText

func (s ConferenceStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ConferenceStatus) UnmarshalText

func (s *ConferenceStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ConferenceStatus) Validate

func (s ConferenceStatus) Validate() error

type ConfirmPortingOrderParams

type ConfirmPortingOrderParams struct {
	// Porting Order id.
	ID uuid.UUID
}

ConfirmPortingOrderParams is parameters of ConfirmPortingOrder operation.

type ConfirmPortingOrderRes

type ConfirmPortingOrderRes interface {
	// contains filtered or unexported methods
}

type ConfirmPortingOrderResponse

type ConfirmPortingOrderResponse struct {
	Data OptPortingOrder                    `json:"data"`
	Meta OptConfirmPortingOrderResponseMeta `json:"meta"`
}

func (*ConfirmPortingOrderResponse) Decode

Decode decodes ConfirmPortingOrderResponse from json.

func (*ConfirmPortingOrderResponse) Encode

func (s *ConfirmPortingOrderResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ConfirmPortingOrderResponse) GetData

GetData returns the value of Data.

func (*ConfirmPortingOrderResponse) GetMeta

GetMeta returns the value of Meta.

func (*ConfirmPortingOrderResponse) MarshalJSON

func (s *ConfirmPortingOrderResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ConfirmPortingOrderResponse) SetData

SetData sets the value of Data.

func (*ConfirmPortingOrderResponse) SetMeta

SetMeta sets the value of Meta.

func (*ConfirmPortingOrderResponse) UnmarshalJSON

func (s *ConfirmPortingOrderResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ConfirmPortingOrderResponse) Validate

func (s *ConfirmPortingOrderResponse) Validate() error

type ConfirmPortingOrderResponseMeta

type ConfirmPortingOrderResponseMeta struct {
	// Link to list all phone numbers.
	PhoneNumbersURL OptString `json:"phone_numbers_url"`
}

func (*ConfirmPortingOrderResponseMeta) Decode

Decode decodes ConfirmPortingOrderResponseMeta from json.

func (*ConfirmPortingOrderResponseMeta) Encode

Encode implements json.Marshaler.

func (*ConfirmPortingOrderResponseMeta) GetPhoneNumbersURL

func (s *ConfirmPortingOrderResponseMeta) GetPhoneNumbersURL() OptString

GetPhoneNumbersURL returns the value of PhoneNumbersURL.

func (*ConfirmPortingOrderResponseMeta) MarshalJSON

func (s *ConfirmPortingOrderResponseMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ConfirmPortingOrderResponseMeta) SetPhoneNumbersURL

func (s *ConfirmPortingOrderResponseMeta) SetPhoneNumbersURL(val OptString)

SetPhoneNumbersURL sets the value of PhoneNumbersURL.

func (*ConfirmPortingOrderResponseMeta) UnmarshalJSON

func (s *ConfirmPortingOrderResponseMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ConfirmPortingOrderUnauthorized

type ConfirmPortingOrderUnauthorized struct{}

ConfirmPortingOrderUnauthorized is response for ConfirmPortingOrder operation.

type ConfirmPortingOrderUnprocessableEntity

type ConfirmPortingOrderUnprocessableEntity struct{}

ConfirmPortingOrderUnprocessableEntity is response for ConfirmPortingOrder operation.

type ConnectionActive

type ConnectionActive bool

func (*ConnectionActive) Decode

func (s *ConnectionActive) Decode(d *jx.Decoder) error

Decode decodes ConnectionActive from json.

func (ConnectionActive) Encode

func (s ConnectionActive) Encode(e *jx.Encoder)

Encode encodes ConnectionActive as json.

func (ConnectionActive) MarshalJSON

func (s ConnectionActive) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ConnectionActive) UnmarshalJSON

func (s *ConnectionActive) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CostInformation

type CostInformation struct {
	UpfrontCost OptString `json:"upfront_cost"`
	MonthlyCost OptString `json:"monthly_cost"`
	// The ISO 4217 code for the currency.
	Currency OptString `json:"currency"`
}

Ref: #/components/schemas/CostInformation

func (*CostInformation) Decode

func (s *CostInformation) Decode(d *jx.Decoder) error

Decode decodes CostInformation from json.

func (*CostInformation) Encode

func (s *CostInformation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CostInformation) GetCurrency

func (s *CostInformation) GetCurrency() OptString

GetCurrency returns the value of Currency.

func (*CostInformation) GetMonthlyCost

func (s *CostInformation) GetMonthlyCost() OptString

GetMonthlyCost returns the value of MonthlyCost.

func (*CostInformation) GetUpfrontCost

func (s *CostInformation) GetUpfrontCost() OptString

GetUpfrontCost returns the value of UpfrontCost.

func (*CostInformation) MarshalJSON

func (s *CostInformation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CostInformation) SetCurrency

func (s *CostInformation) SetCurrency(val OptString)

SetCurrency sets the value of Currency.

func (*CostInformation) SetMonthlyCost

func (s *CostInformation) SetMonthlyCost(val OptString)

SetMonthlyCost sets the value of MonthlyCost.

func (*CostInformation) SetUpfrontCost

func (s *CostInformation) SetUpfrontCost(val OptString)

SetUpfrontCost sets the value of UpfrontCost.

func (*CostInformation) UnmarshalJSON

func (s *CostInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateAdditionalDocumentsNotFound

type CreateAdditionalDocumentsNotFound struct{}

CreateAdditionalDocumentsNotFound is response for CreateAdditionalDocuments operation.

type CreateAdditionalDocumentsParams

type CreateAdditionalDocumentsParams struct {
	// Porting Order id.
	ID uuid.UUID
}

CreateAdditionalDocumentsParams is parameters of CreateAdditionalDocuments operation.

type CreateAdditionalDocumentsReq

type CreateAdditionalDocumentsReq struct {
	AdditionalDocuments []CreateAdditionalDocumentsReqAdditionalDocumentsItem `json:"additional_documents"`
}

func (*CreateAdditionalDocumentsReq) Decode

Decode decodes CreateAdditionalDocumentsReq from json.

func (*CreateAdditionalDocumentsReq) Encode

func (s *CreateAdditionalDocumentsReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateAdditionalDocumentsReq) GetAdditionalDocuments

GetAdditionalDocuments returns the value of AdditionalDocuments.

func (*CreateAdditionalDocumentsReq) MarshalJSON

func (s *CreateAdditionalDocumentsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateAdditionalDocumentsReq) SetAdditionalDocuments

SetAdditionalDocuments sets the value of AdditionalDocuments.

func (*CreateAdditionalDocumentsReq) UnmarshalJSON

func (s *CreateAdditionalDocumentsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateAdditionalDocumentsReq) Validate

func (s *CreateAdditionalDocumentsReq) Validate() error

type CreateAdditionalDocumentsReqAdditionalDocumentsItem

type CreateAdditionalDocumentsReqAdditionalDocumentsItem struct {
	// The type of document being created.
	DocumentType OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType `json:"document_type"`
	// The document identification.
	DocumentID OptUUID `json:"document_id"`
}

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItem) Decode

Decode decodes CreateAdditionalDocumentsReqAdditionalDocumentsItem from json.

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItem) Encode

Encode implements json.Marshaler.

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItem) GetDocumentID

GetDocumentID returns the value of DocumentID.

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItem) GetDocumentType

GetDocumentType returns the value of DocumentType.

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItem) SetDocumentID

SetDocumentID sets the value of DocumentID.

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItem) SetDocumentType

SetDocumentType sets the value of DocumentType.

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItem) Validate

type CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType

type CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType string

The type of document being created.

const (
	CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentTypeLoa     CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType = "loa"
	CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentTypeInvoice CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType = "invoice"
	CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentTypeCsr     CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType = "csr"
	CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentTypeOther   CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType = "other"
)

func (CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) AllValues

AllValues returns all CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType values.

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) Decode

Decode decodes CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType from json.

func (CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) Encode

Encode encodes CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType as json.

func (CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) Validate

type CreateAdditionalDocumentsRes

type CreateAdditionalDocumentsRes interface {
	// contains filtered or unexported methods
}

type CreateAdditionalDocumentsUnauthorized

type CreateAdditionalDocumentsUnauthorized struct{}

CreateAdditionalDocumentsUnauthorized is response for CreateAdditionalDocuments operation.

type CreateAdditionalDocumentsUnprocessableEntity

type CreateAdditionalDocumentsUnprocessableEntity struct{}

CreateAdditionalDocumentsUnprocessableEntity is response for CreateAdditionalDocuments operation.

type CreateBulkTelephonyCredentialsRes

type CreateBulkTelephonyCredentialsRes interface {
	// contains filtered or unexported methods
}

type CreateBulkTelephonyCredentialsUnprocessableEntity

type CreateBulkTelephonyCredentialsUnprocessableEntity struct{}

CreateBulkTelephonyCredentialsUnprocessableEntity is response for CreateBulkTelephonyCredentials operation.

type CreateCallControlApplicationRequest

type CreateCallControlApplicationRequest struct {
	// A user-assigned name to help manage the application.
	ApplicationName string `json:"application_name"`
	// The URL where webhooks related to this connection will be sent. Must include a scheme, such as
	// 'https'.
	WebhookEventURL string `json:"webhook_event_url"`
	// Specifies whether the connection can be used.
	Active OptBool `json:"active"`
	// <code>Latency</code> directs Telnyx to route media through the site with the lowest round-trip
	// time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be
	// disabled by specifying a site to handle all media.
	AnchorsiteOverride OptCreateCallControlApplicationRequestAnchorsiteOverride `json:"anchorsite_override"`
	// Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to
	// Telnyx will be accepted in all formats.
	DtmfType OptCreateCallControlApplicationRequestDtmfType `json:"dtmf_type"`
	// Specifies whether calls to phone numbers associated with this connection should hangup after
	// timing out.
	FirstCommandTimeout OptBool `json:"first_command_timeout"`
	// Specifies how many seconds to wait before timing out a dial command.
	FirstCommandTimeoutSecs OptInt                            `json:"first_command_timeout_secs"`
	Inbound                 OptCallControlApplicationInbound  `json:"inbound"`
	Outbound                OptCallControlApplicationOutbound `json:"outbound"`
	// Determines which webhook format will be used, Telnyx API v1 or v2.
	WebhookAPIVersion OptCreateCallControlApplicationRequestWebhookAPIVersion `json:"webhook_api_version"`
	// The failover URL where webhooks related to this connection will be sent if sending to the primary
	// URL fails. Must include a scheme, such as 'https'.
	WebhookEventFailoverURL OptNilString `json:"webhook_event_failover_url"`
	// Specifies how many seconds to wait before timing out a webhook.
	WebhookTimeoutSecs OptNilInt `json:"webhook_timeout_secs"`
}

Ref: #/components/schemas/CreateCallControlApplicationRequest

func (*CreateCallControlApplicationRequest) Decode

Decode decodes CreateCallControlApplicationRequest from json.

func (*CreateCallControlApplicationRequest) Encode

Encode implements json.Marshaler.

func (*CreateCallControlApplicationRequest) GetActive

GetActive returns the value of Active.

func (*CreateCallControlApplicationRequest) GetAnchorsiteOverride

GetAnchorsiteOverride returns the value of AnchorsiteOverride.

func (*CreateCallControlApplicationRequest) GetApplicationName

func (s *CreateCallControlApplicationRequest) GetApplicationName() string

GetApplicationName returns the value of ApplicationName.

func (*CreateCallControlApplicationRequest) GetDtmfType

GetDtmfType returns the value of DtmfType.

func (*CreateCallControlApplicationRequest) GetFirstCommandTimeout

func (s *CreateCallControlApplicationRequest) GetFirstCommandTimeout() OptBool

GetFirstCommandTimeout returns the value of FirstCommandTimeout.

func (*CreateCallControlApplicationRequest) GetFirstCommandTimeoutSecs

func (s *CreateCallControlApplicationRequest) GetFirstCommandTimeoutSecs() OptInt

GetFirstCommandTimeoutSecs returns the value of FirstCommandTimeoutSecs.

func (*CreateCallControlApplicationRequest) GetInbound

GetInbound returns the value of Inbound.

func (*CreateCallControlApplicationRequest) GetOutbound

GetOutbound returns the value of Outbound.

func (*CreateCallControlApplicationRequest) GetWebhookAPIVersion

GetWebhookAPIVersion returns the value of WebhookAPIVersion.

func (*CreateCallControlApplicationRequest) GetWebhookEventFailoverURL

func (s *CreateCallControlApplicationRequest) GetWebhookEventFailoverURL() OptNilString

GetWebhookEventFailoverURL returns the value of WebhookEventFailoverURL.

func (*CreateCallControlApplicationRequest) GetWebhookEventURL

func (s *CreateCallControlApplicationRequest) GetWebhookEventURL() string

GetWebhookEventURL returns the value of WebhookEventURL.

func (*CreateCallControlApplicationRequest) GetWebhookTimeoutSecs

func (s *CreateCallControlApplicationRequest) GetWebhookTimeoutSecs() OptNilInt

GetWebhookTimeoutSecs returns the value of WebhookTimeoutSecs.

func (*CreateCallControlApplicationRequest) MarshalJSON

func (s *CreateCallControlApplicationRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateCallControlApplicationRequest) SetActive

func (s *CreateCallControlApplicationRequest) SetActive(val OptBool)

SetActive sets the value of Active.

func (*CreateCallControlApplicationRequest) SetAnchorsiteOverride

SetAnchorsiteOverride sets the value of AnchorsiteOverride.

func (*CreateCallControlApplicationRequest) SetApplicationName

func (s *CreateCallControlApplicationRequest) SetApplicationName(val string)

SetApplicationName sets the value of ApplicationName.

func (*CreateCallControlApplicationRequest) SetDtmfType

SetDtmfType sets the value of DtmfType.

func (*CreateCallControlApplicationRequest) SetFirstCommandTimeout

func (s *CreateCallControlApplicationRequest) SetFirstCommandTimeout(val OptBool)

SetFirstCommandTimeout sets the value of FirstCommandTimeout.

func (*CreateCallControlApplicationRequest) SetFirstCommandTimeoutSecs

func (s *CreateCallControlApplicationRequest) SetFirstCommandTimeoutSecs(val OptInt)

SetFirstCommandTimeoutSecs sets the value of FirstCommandTimeoutSecs.

func (*CreateCallControlApplicationRequest) SetInbound

SetInbound sets the value of Inbound.

func (*CreateCallControlApplicationRequest) SetOutbound

SetOutbound sets the value of Outbound.

func (*CreateCallControlApplicationRequest) SetWebhookAPIVersion

SetWebhookAPIVersion sets the value of WebhookAPIVersion.

func (*CreateCallControlApplicationRequest) SetWebhookEventFailoverURL

func (s *CreateCallControlApplicationRequest) SetWebhookEventFailoverURL(val OptNilString)

SetWebhookEventFailoverURL sets the value of WebhookEventFailoverURL.

func (*CreateCallControlApplicationRequest) SetWebhookEventURL

func (s *CreateCallControlApplicationRequest) SetWebhookEventURL(val string)

SetWebhookEventURL sets the value of WebhookEventURL.

func (*CreateCallControlApplicationRequest) SetWebhookTimeoutSecs

func (s *CreateCallControlApplicationRequest) SetWebhookTimeoutSecs(val OptNilInt)

SetWebhookTimeoutSecs sets the value of WebhookTimeoutSecs.

func (*CreateCallControlApplicationRequest) UnmarshalJSON

func (s *CreateCallControlApplicationRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateCallControlApplicationRequest) Validate

type CreateCallControlApplicationRequestAnchorsiteOverride

type CreateCallControlApplicationRequestAnchorsiteOverride string

<code>Latency</code> directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media.

const (
	CreateCallControlApplicationRequestAnchorsiteOverrideLatency   CreateCallControlApplicationRequestAnchorsiteOverride = "\"Latency\""
	CreateCallControlApplicationRequestAnchorsiteOverrideChicagoIL CreateCallControlApplicationRequestAnchorsiteOverride = "\"Chicago, IL\""
	CreateCallControlApplicationRequestAnchorsiteOverrideAshburnVA CreateCallControlApplicationRequestAnchorsiteOverride = "\"Ashburn, VA\""
	CreateCallControlApplicationRequestAnchorsiteOverrideSanJoseCA CreateCallControlApplicationRequestAnchorsiteOverride = "\"San Jose, CA\""
)

func (CreateCallControlApplicationRequestAnchorsiteOverride) AllValues

AllValues returns all CreateCallControlApplicationRequestAnchorsiteOverride values.

func (*CreateCallControlApplicationRequestAnchorsiteOverride) Decode

Decode decodes CreateCallControlApplicationRequestAnchorsiteOverride from json.

func (CreateCallControlApplicationRequestAnchorsiteOverride) Encode

Encode encodes CreateCallControlApplicationRequestAnchorsiteOverride as json.

func (CreateCallControlApplicationRequestAnchorsiteOverride) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CreateCallControlApplicationRequestAnchorsiteOverride) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CreateCallControlApplicationRequestAnchorsiteOverride) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateCallControlApplicationRequestAnchorsiteOverride) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateCallControlApplicationRequestAnchorsiteOverride) Validate

type CreateCallControlApplicationRequestDtmfType

type CreateCallControlApplicationRequestDtmfType string

Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats.

const (
	CreateCallControlApplicationRequestDtmfTypeRFC2833 CreateCallControlApplicationRequestDtmfType = "RFC 2833"
	CreateCallControlApplicationRequestDtmfTypeInband  CreateCallControlApplicationRequestDtmfType = "Inband"
	CreateCallControlApplicationRequestDtmfTypeSIPINFO CreateCallControlApplicationRequestDtmfType = "SIP INFO"
)

func (CreateCallControlApplicationRequestDtmfType) AllValues

AllValues returns all CreateCallControlApplicationRequestDtmfType values.

func (*CreateCallControlApplicationRequestDtmfType) Decode

Decode decodes CreateCallControlApplicationRequestDtmfType from json.

func (CreateCallControlApplicationRequestDtmfType) Encode

Encode encodes CreateCallControlApplicationRequestDtmfType as json.

func (CreateCallControlApplicationRequestDtmfType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CreateCallControlApplicationRequestDtmfType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CreateCallControlApplicationRequestDtmfType) UnmarshalJSON

func (s *CreateCallControlApplicationRequestDtmfType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateCallControlApplicationRequestDtmfType) UnmarshalText

func (s *CreateCallControlApplicationRequestDtmfType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateCallControlApplicationRequestDtmfType) Validate

type CreateCallControlApplicationRequestWebhookAPIVersion

type CreateCallControlApplicationRequestWebhookAPIVersion string

Determines which webhook format will be used, Telnyx API v1 or v2.

const (
	CreateCallControlApplicationRequestWebhookAPIVersion1 CreateCallControlApplicationRequestWebhookAPIVersion = "1"
	CreateCallControlApplicationRequestWebhookAPIVersion2 CreateCallControlApplicationRequestWebhookAPIVersion = "2"
)

func (CreateCallControlApplicationRequestWebhookAPIVersion) AllValues

AllValues returns all CreateCallControlApplicationRequestWebhookAPIVersion values.

func (*CreateCallControlApplicationRequestWebhookAPIVersion) Decode

Decode decodes CreateCallControlApplicationRequestWebhookAPIVersion from json.

func (CreateCallControlApplicationRequestWebhookAPIVersion) Encode

Encode encodes CreateCallControlApplicationRequestWebhookAPIVersion as json.

func (CreateCallControlApplicationRequestWebhookAPIVersion) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CreateCallControlApplicationRequestWebhookAPIVersion) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CreateCallControlApplicationRequestWebhookAPIVersion) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateCallControlApplicationRequestWebhookAPIVersion) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateCallControlApplicationRequestWebhookAPIVersion) Validate

type CreateCallControlApplicationRes

type CreateCallControlApplicationRes interface {
	// contains filtered or unexported methods
}

type CreateCallControlApplicationUnprocessableEntity

type CreateCallControlApplicationUnprocessableEntity struct{}

CreateCallControlApplicationUnprocessableEntity is response for CreateCallControlApplication operation.

type CreateCommentRes

type CreateCommentRes interface {
	// contains filtered or unexported methods
}

type CreateCsvDownloadRes

type CreateCsvDownloadRes interface {
	// contains filtered or unexported methods
}

type CreateCustomStorageCredentialsParams

type CreateCustomStorageCredentialsParams struct {
	// Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource.
	ConnectionID string
}

CreateCustomStorageCredentialsParams is parameters of CreateCustomStorageCredentials operation.

type CreateCustomStorageCredentialsRes

type CreateCustomStorageCredentialsRes interface {
	// contains filtered or unexported methods
}

type CreateDefaultGatewayParams

type CreateDefaultGatewayParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

CreateDefaultGatewayParams is parameters of CreateDefaultGateway operation.

type CreateDefaultGatewayRes

type CreateDefaultGatewayRes interface {
	// contains filtered or unexported methods
}

type CreateDeletePhoneNumbersJobAccepted

type CreateDeletePhoneNumbersJobAccepted struct {
	Data OptPhoneNumbersJob `json:"data"`
}

func (*CreateDeletePhoneNumbersJobAccepted) Decode

Decode decodes CreateDeletePhoneNumbersJobAccepted from json.

func (*CreateDeletePhoneNumbersJobAccepted) Encode

Encode implements json.Marshaler.

func (*CreateDeletePhoneNumbersJobAccepted) GetData

GetData returns the value of Data.

func (*CreateDeletePhoneNumbersJobAccepted) MarshalJSON

func (s *CreateDeletePhoneNumbersJobAccepted) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDeletePhoneNumbersJobAccepted) SetData

SetData sets the value of Data.

func (*CreateDeletePhoneNumbersJobAccepted) UnmarshalJSON

func (s *CreateDeletePhoneNumbersJobAccepted) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateDeletePhoneNumbersJobAccepted) Validate

type CreateDeletePhoneNumbersJobRes

type CreateDeletePhoneNumbersJobRes interface {
	// contains filtered or unexported methods
}

type CreateFlashcallVerificationRes

type CreateFlashcallVerificationRes interface {
	// contains filtered or unexported methods
}

type CreateGroupMMSMessageRequest

type CreateGroupMMSMessageRequest struct {
	// Phone number, in +E.164 format, used to send the message.
	From string `json:"from"`
	// A list of destinations. No more than 8 destinations are allowed.
	To []ToNumber `json:"to"`
	// Message body (i.e., content) as a non-empty string.
	Text OptString `json:"text"`
	// Subject of multimedia message.
	Subject OptString `json:"subject"`
	// A list of media URLs. The total media size must be less than 1 MB.
	MediaUrls []string `json:"media_urls"`
	// The URL where webhooks related to this message will be sent.
	WebhookURL OptString `json:"webhook_url"`
	// The failover URL where webhooks related to this message will be sent if sending to the primary URL
	// fails.
	WebhookFailoverURL OptString `json:"webhook_failover_url"`
	// If the profile this number is associated with has webhooks, use them for delivery notifications.
	// If webhooks are also specified on the message itself, they will be attempted first, then those on
	// the profile.
	UseProfileWebhooks OptBool `json:"use_profile_webhooks"`
}

Ref: #/components/schemas/CreateGroupMMSMessageRequest

func (*CreateGroupMMSMessageRequest) Decode

Decode decodes CreateGroupMMSMessageRequest from json.

func (*CreateGroupMMSMessageRequest) Encode

func (s *CreateGroupMMSMessageRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateGroupMMSMessageRequest) GetFrom

func (s *CreateGroupMMSMessageRequest) GetFrom() string

GetFrom returns the value of From.

func (*CreateGroupMMSMessageRequest) GetMediaUrls

func (s *CreateGroupMMSMessageRequest) GetMediaUrls() []string

GetMediaUrls returns the value of MediaUrls.

func (*CreateGroupMMSMessageRequest) GetSubject

func (s *CreateGroupMMSMessageRequest) GetSubject() OptString

GetSubject returns the value of Subject.

func (*CreateGroupMMSMessageRequest) GetText

GetText returns the value of Text.

func (*CreateGroupMMSMessageRequest) GetTo

GetTo returns the value of To.

func (*CreateGroupMMSMessageRequest) GetUseProfileWebhooks

func (s *CreateGroupMMSMessageRequest) GetUseProfileWebhooks() OptBool

GetUseProfileWebhooks returns the value of UseProfileWebhooks.

func (*CreateGroupMMSMessageRequest) GetWebhookFailoverURL

func (s *CreateGroupMMSMessageRequest) GetWebhookFailoverURL() OptString

GetWebhookFailoverURL returns the value of WebhookFailoverURL.

func (*CreateGroupMMSMessageRequest) GetWebhookURL

func (s *CreateGroupMMSMessageRequest) GetWebhookURL() OptString

GetWebhookURL returns the value of WebhookURL.

func (*CreateGroupMMSMessageRequest) MarshalJSON

func (s *CreateGroupMMSMessageRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateGroupMMSMessageRequest) SetFrom

func (s *CreateGroupMMSMessageRequest) SetFrom(val string)

SetFrom sets the value of From.

func (*CreateGroupMMSMessageRequest) SetMediaUrls

func (s *CreateGroupMMSMessageRequest) SetMediaUrls(val []string)

SetMediaUrls sets the value of MediaUrls.

func (*CreateGroupMMSMessageRequest) SetSubject

func (s *CreateGroupMMSMessageRequest) SetSubject(val OptString)

SetSubject sets the value of Subject.

func (*CreateGroupMMSMessageRequest) SetText

func (s *CreateGroupMMSMessageRequest) SetText(val OptString)

SetText sets the value of Text.

func (*CreateGroupMMSMessageRequest) SetTo

func (s *CreateGroupMMSMessageRequest) SetTo(val []ToNumber)

SetTo sets the value of To.

func (*CreateGroupMMSMessageRequest) SetUseProfileWebhooks

func (s *CreateGroupMMSMessageRequest) SetUseProfileWebhooks(val OptBool)

SetUseProfileWebhooks sets the value of UseProfileWebhooks.

func (*CreateGroupMMSMessageRequest) SetWebhookFailoverURL

func (s *CreateGroupMMSMessageRequest) SetWebhookFailoverURL(val OptString)

SetWebhookFailoverURL sets the value of WebhookFailoverURL.

func (*CreateGroupMMSMessageRequest) SetWebhookURL

func (s *CreateGroupMMSMessageRequest) SetWebhookURL(val OptString)

SetWebhookURL sets the value of WebhookURL.

func (*CreateGroupMMSMessageRequest) UnmarshalJSON

func (s *CreateGroupMMSMessageRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateGroupMMSMessageRequest) Validate

func (s *CreateGroupMMSMessageRequest) Validate() error

type CreateGroupMmsMessageRes

type CreateGroupMmsMessageRes interface {
	// contains filtered or unexported methods
}

type CreateLoaConfigurationInternalServerError

type CreateLoaConfigurationInternalServerError struct{}

CreateLoaConfigurationInternalServerError is response for CreateLoaConfiguration operation.

type CreateLoaConfigurationReq

type CreateLoaConfigurationReq struct {
	// The name of the LOA configuration.
	Name string `json:"name"`
	Logo CreateLoaConfigurationReqLogo `json:"logo"`
	// The name of the company.
	CompanyName string `json:"company_name"`
	// The address of the company.
	Address CreateLoaConfigurationReqAddress `json:"address"`
	// The contact information of the company.
	Contact CreateLoaConfigurationReqContact `json:"contact"`
}

The parameters for creating a new LOA configuration.

func (*CreateLoaConfigurationReq) Decode

func (s *CreateLoaConfigurationReq) Decode(d *jx.Decoder) error

Decode decodes CreateLoaConfigurationReq from json.

func (*CreateLoaConfigurationReq) Encode

func (s *CreateLoaConfigurationReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateLoaConfigurationReq) GetAddress

GetAddress returns the value of Address.

func (*CreateLoaConfigurationReq) GetCompanyName

func (s *CreateLoaConfigurationReq) GetCompanyName() string

GetCompanyName returns the value of CompanyName.

func (*CreateLoaConfigurationReq) GetContact

GetContact returns the value of Contact.

GetLogo returns the value of Logo.

func (*CreateLoaConfigurationReq) GetName

func (s *CreateLoaConfigurationReq) GetName() string

GetName returns the value of Name.

func (*CreateLoaConfigurationReq) MarshalJSON

func (s *CreateLoaConfigurationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateLoaConfigurationReq) SetAddress

SetAddress sets the value of Address.

func (*CreateLoaConfigurationReq) SetCompanyName

func (s *CreateLoaConfigurationReq) SetCompanyName(val string)

SetCompanyName sets the value of CompanyName.

func (*CreateLoaConfigurationReq) SetContact

SetContact sets the value of Contact.

SetLogo sets the value of Logo.

func (*CreateLoaConfigurationReq) SetName

func (s *CreateLoaConfigurationReq) SetName(val string)

SetName sets the value of Name.

func (*CreateLoaConfigurationReq) UnmarshalJSON

func (s *CreateLoaConfigurationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateLoaConfigurationReq) Validate

func (s *CreateLoaConfigurationReq) Validate() error

type CreateLoaConfigurationReqAddress

type CreateLoaConfigurationReqAddress struct {
	// The street address of the company.
	StreetAddress string `json:"street_address"`
	// The extended address of the company.
	ExtendedAddress OptString `json:"extended_address"`
	// The locality of the company.
	City OptString `json:"city"`
	// The administrative area of the company.
	State OptString `json:"state"`
	// The postal code of the company.
	ZipCode OptString `json:"zip_code"`
	// The country code of the company.
	CountryCode string `json:"country_code"`
}

The address of the company.

func (*CreateLoaConfigurationReqAddress) Decode

Decode decodes CreateLoaConfigurationReqAddress from json.

func (*CreateLoaConfigurationReqAddress) Encode

Encode implements json.Marshaler.

func (*CreateLoaConfigurationReqAddress) GetCity

GetCity returns the value of City.

func (*CreateLoaConfigurationReqAddress) GetCountryCode

func (s *CreateLoaConfigurationReqAddress) GetCountryCode() string

GetCountryCode returns the value of CountryCode.

func (*CreateLoaConfigurationReqAddress) GetExtendedAddress

func (s *CreateLoaConfigurationReqAddress) GetExtendedAddress() OptString

GetExtendedAddress returns the value of ExtendedAddress.

func (*CreateLoaConfigurationReqAddress) GetState

GetState returns the value of State.

func (*CreateLoaConfigurationReqAddress) GetStreetAddress

func (s *CreateLoaConfigurationReqAddress) GetStreetAddress() string

GetStreetAddress returns the value of StreetAddress.

func (*CreateLoaConfigurationReqAddress) GetZipCode

GetZipCode returns the value of ZipCode.

func (*CreateLoaConfigurationReqAddress) MarshalJSON

func (s *CreateLoaConfigurationReqAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateLoaConfigurationReqAddress) SetCity

SetCity sets the value of City.

func (*CreateLoaConfigurationReqAddress) SetCountryCode

func (s *CreateLoaConfigurationReqAddress) SetCountryCode(val string)

SetCountryCode sets the value of CountryCode.

func (*CreateLoaConfigurationReqAddress) SetExtendedAddress

func (s *CreateLoaConfigurationReqAddress) SetExtendedAddress(val OptString)

SetExtendedAddress sets the value of ExtendedAddress.

func (*CreateLoaConfigurationReqAddress) SetState

SetState sets the value of State.

func (*CreateLoaConfigurationReqAddress) SetStreetAddress

func (s *CreateLoaConfigurationReqAddress) SetStreetAddress(val string)

SetStreetAddress sets the value of StreetAddress.

func (*CreateLoaConfigurationReqAddress) SetZipCode

func (s *CreateLoaConfigurationReqAddress) SetZipCode(val OptString)

SetZipCode sets the value of ZipCode.

func (*CreateLoaConfigurationReqAddress) UnmarshalJSON

func (s *CreateLoaConfigurationReqAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateLoaConfigurationReqAddress) Validate

type CreateLoaConfigurationReqContact

type CreateLoaConfigurationReqContact struct {
	// The email address of the contact.
	Email string `json:"email"`
	// The phone number of the contact.
	PhoneNumber string `json:"phone_number"`
}

The contact information of the company.

func (*CreateLoaConfigurationReqContact) Decode

Decode decodes CreateLoaConfigurationReqContact from json.

func (*CreateLoaConfigurationReqContact) Encode

Encode implements json.Marshaler.

func (*CreateLoaConfigurationReqContact) GetEmail

GetEmail returns the value of Email.

func (*CreateLoaConfigurationReqContact) GetPhoneNumber

func (s *CreateLoaConfigurationReqContact) GetPhoneNumber() string

GetPhoneNumber returns the value of PhoneNumber.

func (*CreateLoaConfigurationReqContact) MarshalJSON

func (s *CreateLoaConfigurationReqContact) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateLoaConfigurationReqContact) SetEmail

func (s *CreateLoaConfigurationReqContact) SetEmail(val string)

SetEmail sets the value of Email.

func (*CreateLoaConfigurationReqContact) SetPhoneNumber

func (s *CreateLoaConfigurationReqContact) SetPhoneNumber(val string)

SetPhoneNumber sets the value of PhoneNumber.

func (*CreateLoaConfigurationReqContact) UnmarshalJSON

func (s *CreateLoaConfigurationReqContact) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateLoaConfigurationReqContact) Validate

type CreateLoaConfigurationReqLogo struct {
	// The document identification.
	DocumentID uuid.UUID `json:"document_id"`
}

The logo of the LOA configuration.

func (*CreateLoaConfigurationReqLogo) Decode

Decode decodes CreateLoaConfigurationReqLogo from json.

func (*CreateLoaConfigurationReqLogo) Encode

Encode implements json.Marshaler.

func (*CreateLoaConfigurationReqLogo) GetDocumentID

func (s *CreateLoaConfigurationReqLogo) GetDocumentID() uuid.UUID

GetDocumentID returns the value of DocumentID.

func (*CreateLoaConfigurationReqLogo) MarshalJSON

func (s *CreateLoaConfigurationReqLogo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateLoaConfigurationReqLogo) SetDocumentID

func (s *CreateLoaConfigurationReqLogo) SetDocumentID(val uuid.UUID)

SetDocumentID sets the value of DocumentID.

func (*CreateLoaConfigurationReqLogo) UnmarshalJSON

func (s *CreateLoaConfigurationReqLogo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateLoaConfigurationRes

type CreateLoaConfigurationRes interface {
	// contains filtered or unexported methods
}

type CreateLoaConfigurationUnprocessableEntity

type CreateLoaConfigurationUnprocessableEntity struct{}

CreateLoaConfigurationUnprocessableEntity is response for CreateLoaConfiguration operation.

type CreateLongCodeMessageRequest

type CreateLongCodeMessageRequest struct {
	// Phone number, in +E.164 format, used to send the message.
	From string   `json:"from"`
	To   ToNumber `json:"to"`
	// Message body (i.e., content) as a non-empty string.
	// **Required for SMS**.
	Text OptString `json:"text"`
	// Subject of multimedia message.
	Subject OptString `json:"subject"`
	// A list of media URLs. The total media size must be less than 1 MB.
	// **Required for MMS**.
	MediaUrls []string `json:"media_urls"`
	// The URL where webhooks related to this message will be sent.
	WebhookURL OptString `json:"webhook_url"`
	// The failover URL where webhooks related to this message will be sent if sending to the primary URL
	// fails.
	WebhookFailoverURL OptString `json:"webhook_failover_url"`
	// If the profile this number is associated with has webhooks, use them for delivery notifications.
	// If webhooks are also specified on the message itself, they will be attempted first, then those on
	// the profile.
	UseProfileWebhooks OptBool `json:"use_profile_webhooks"`
	// The protocol for sending the message, either SMS or MMS.
	Type OptCreateLongCodeMessageRequestType `json:"type"`
	// Automatically detect if an SMS message is unusually long and exceeds a recommended limit of
	// message parts.
	AutoDetect OptBool `json:"auto_detect"`
}

Ref: #/components/schemas/CreateLongCodeMessageRequest

func (*CreateLongCodeMessageRequest) Decode

Decode decodes CreateLongCodeMessageRequest from json.

func (*CreateLongCodeMessageRequest) Encode

func (s *CreateLongCodeMessageRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateLongCodeMessageRequest) GetAutoDetect

func (s *CreateLongCodeMessageRequest) GetAutoDetect() OptBool

GetAutoDetect returns the value of AutoDetect.

func (*CreateLongCodeMessageRequest) GetFrom

func (s *CreateLongCodeMessageRequest) GetFrom() string

GetFrom returns the value of From.

func (*CreateLongCodeMessageRequest) GetMediaUrls

func (s *CreateLongCodeMessageRequest) GetMediaUrls() []string

GetMediaUrls returns the value of MediaUrls.

func (*CreateLongCodeMessageRequest) GetSubject

func (s *CreateLongCodeMessageRequest) GetSubject() OptString

GetSubject returns the value of Subject.

func (*CreateLongCodeMessageRequest) GetText

GetText returns the value of Text.

func (*CreateLongCodeMessageRequest) GetTo

GetTo returns the value of To.

func (*CreateLongCodeMessageRequest) GetType

GetType returns the value of Type.

func (*CreateLongCodeMessageRequest) GetUseProfileWebhooks

func (s *CreateLongCodeMessageRequest) GetUseProfileWebhooks() OptBool

GetUseProfileWebhooks returns the value of UseProfileWebhooks.

func (*CreateLongCodeMessageRequest) GetWebhookFailoverURL

func (s *CreateLongCodeMessageRequest) GetWebhookFailoverURL() OptString

GetWebhookFailoverURL returns the value of WebhookFailoverURL.

func (*CreateLongCodeMessageRequest) GetWebhookURL

func (s *CreateLongCodeMessageRequest) GetWebhookURL() OptString

GetWebhookURL returns the value of WebhookURL.

func (*CreateLongCodeMessageRequest) MarshalJSON

func (s *CreateLongCodeMessageRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateLongCodeMessageRequest) SetAutoDetect

func (s *CreateLongCodeMessageRequest) SetAutoDetect(val OptBool)

SetAutoDetect sets the value of AutoDetect.

func (*CreateLongCodeMessageRequest) SetFrom

func (s *CreateLongCodeMessageRequest) SetFrom(val string)

SetFrom sets the value of From.

func (*CreateLongCodeMessageRequest) SetMediaUrls

func (s *CreateLongCodeMessageRequest) SetMediaUrls(val []string)

SetMediaUrls sets the value of MediaUrls.

func (*CreateLongCodeMessageRequest) SetSubject

func (s *CreateLongCodeMessageRequest) SetSubject(val OptString)

SetSubject sets the value of Subject.

func (*CreateLongCodeMessageRequest) SetText

func (s *CreateLongCodeMessageRequest) SetText(val OptString)

SetText sets the value of Text.

func (*CreateLongCodeMessageRequest) SetTo

func (s *CreateLongCodeMessageRequest) SetTo(val ToNumber)

SetTo sets the value of To.

func (*CreateLongCodeMessageRequest) SetType

SetType sets the value of Type.

func (*CreateLongCodeMessageRequest) SetUseProfileWebhooks

func (s *CreateLongCodeMessageRequest) SetUseProfileWebhooks(val OptBool)

SetUseProfileWebhooks sets the value of UseProfileWebhooks.

func (*CreateLongCodeMessageRequest) SetWebhookFailoverURL

func (s *CreateLongCodeMessageRequest) SetWebhookFailoverURL(val OptString)

SetWebhookFailoverURL sets the value of WebhookFailoverURL.

func (*CreateLongCodeMessageRequest) SetWebhookURL

func (s *CreateLongCodeMessageRequest) SetWebhookURL(val OptString)

SetWebhookURL sets the value of WebhookURL.

func (*CreateLongCodeMessageRequest) UnmarshalJSON

func (s *CreateLongCodeMessageRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateLongCodeMessageRequest) Validate

func (s *CreateLongCodeMessageRequest) Validate() error

type CreateLongCodeMessageRequestType

type CreateLongCodeMessageRequestType string

The protocol for sending the message, either SMS or MMS.

const (
	CreateLongCodeMessageRequestTypeSMS CreateLongCodeMessageRequestType = "SMS"
	CreateLongCodeMessageRequestTypeMMS CreateLongCodeMessageRequestType = "MMS"
)

func (CreateLongCodeMessageRequestType) AllValues

AllValues returns all CreateLongCodeMessageRequestType values.

func (*CreateLongCodeMessageRequestType) Decode

Decode decodes CreateLongCodeMessageRequestType from json.

func (CreateLongCodeMessageRequestType) Encode

Encode encodes CreateLongCodeMessageRequestType as json.

func (CreateLongCodeMessageRequestType) MarshalJSON

func (s CreateLongCodeMessageRequestType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateLongCodeMessageRequestType) MarshalText

func (s CreateLongCodeMessageRequestType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateLongCodeMessageRequestType) UnmarshalJSON

func (s *CreateLongCodeMessageRequestType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateLongCodeMessageRequestType) UnmarshalText

func (s *CreateLongCodeMessageRequestType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateLongCodeMessageRequestType) Validate

type CreateLongCodeMessageRes

type CreateLongCodeMessageRes interface {
	// contains filtered or unexported methods
}

type CreateMessageRequest

type CreateMessageRequest struct {
	// Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code).
	// **Required if sending with a phone number, short code, or alphanumeric sender ID.**.
	From OptString `json:"from"`
	// Unique identifier for a messaging profile.
	// **Required if sending via number pool or with an alphanumeric sender ID.**.
	MessagingProfileID OptString `json:"messaging_profile_id"`
	To                 ToNumber  `json:"to"`
	// Message body (i.e., content) as a non-empty string.
	// **Required for SMS**.
	Text OptString `json:"text"`
	// Subject of multimedia message.
	Subject OptString `json:"subject"`
	// A list of media URLs. The total media size must be less than 1 MB.
	// **Required for MMS**.
	MediaUrls []string `json:"media_urls"`
	// The URL where webhooks related to this message will be sent.
	WebhookURL OptString `json:"webhook_url"`
	// The failover URL where webhooks related to this message will be sent if sending to the primary URL
	// fails.
	WebhookFailoverURL OptString `json:"webhook_failover_url"`
	// If the profile this number is associated with has webhooks, use them for delivery notifications.
	// If webhooks are also specified on the message itself, they will be attempted first, then those on
	// the profile.
	UseProfileWebhooks OptBool `json:"use_profile_webhooks"`
	// The protocol for sending the message, either SMS or MMS.
	Type OptCreateMessageRequestType `json:"type"`
	// Automatically detect if an SMS message is unusually long and exceeds a recommended limit of
	// message parts.
	AutoDetect OptBool `json:"auto_detect"`
}

Ref: #/components/schemas/CreateMessageRequest

func (*CreateMessageRequest) Decode

func (s *CreateMessageRequest) Decode(d *jx.Decoder) error

Decode decodes CreateMessageRequest from json.

func (*CreateMessageRequest) Encode

func (s *CreateMessageRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateMessageRequest) GetAutoDetect

func (s *CreateMessageRequest) GetAutoDetect() OptBool

GetAutoDetect returns the value of AutoDetect.

func (*CreateMessageRequest) GetFrom

func (s *CreateMessageRequest) GetFrom() OptString

GetFrom returns the value of From.

func (*CreateMessageRequest) GetMediaUrls

func (s *CreateMessageRequest) GetMediaUrls() []string

GetMediaUrls returns the value of MediaUrls.

func (*CreateMessageRequest) GetMessagingProfileID

func (s *CreateMessageRequest) GetMessagingProfileID() OptString

GetMessagingProfileID returns the value of MessagingProfileID.

func (*CreateMessageRequest) GetSubject

func (s *CreateMessageRequest) GetSubject() OptString

GetSubject returns the value of Subject.

func (*CreateMessageRequest) GetText

func (s *CreateMessageRequest) GetText() OptString

GetText returns the value of Text.

func (*CreateMessageRequest) GetTo

func (s *CreateMessageRequest) GetTo() ToNumber

GetTo returns the value of To.

func (*CreateMessageRequest) GetType

GetType returns the value of Type.

func (*CreateMessageRequest) GetUseProfileWebhooks

func (s *CreateMessageRequest) GetUseProfileWebhooks() OptBool

GetUseProfileWebhooks returns the value of UseProfileWebhooks.

func (*CreateMessageRequest) GetWebhookFailoverURL

func (s *CreateMessageRequest) GetWebhookFailoverURL() OptString

GetWebhookFailoverURL returns the value of WebhookFailoverURL.

func (*CreateMessageRequest) GetWebhookURL

func (s *CreateMessageRequest) GetWebhookURL() OptString

GetWebhookURL returns the value of WebhookURL.

func (*CreateMessageRequest) MarshalJSON

func (s *CreateMessageRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateMessageRequest) SetAutoDetect

func (s *CreateMessageRequest) SetAutoDetect(val OptBool)

SetAutoDetect sets the value of AutoDetect.

func (*CreateMessageRequest) SetFrom

func (s *CreateMessageRequest) SetFrom(val OptString)

SetFrom sets the value of From.

func (*CreateMessageRequest) SetMediaUrls

func (s *CreateMessageRequest) SetMediaUrls(val []string)

SetMediaUrls sets the value of MediaUrls.

func (*CreateMessageRequest) SetMessagingProfileID

func (s *CreateMessageRequest) SetMessagingProfileID(val OptString)

SetMessagingProfileID sets the value of MessagingProfileID.

func (*CreateMessageRequest) SetSubject

func (s *CreateMessageRequest) SetSubject(val OptString)

SetSubject sets the value of Subject.

func (*CreateMessageRequest) SetText

func (s *CreateMessageRequest) SetText(val OptString)

SetText sets the value of Text.

func (*CreateMessageRequest) SetTo

func (s *CreateMessageRequest) SetTo(val ToNumber)

SetTo sets the value of To.

func (*CreateMessageRequest) SetType

SetType sets the value of Type.

func (*CreateMessageRequest) SetUseProfileWebhooks

func (s *CreateMessageRequest) SetUseProfileWebhooks(val OptBool)

SetUseProfileWebhooks sets the value of UseProfileWebhooks.

func (*CreateMessageRequest) SetWebhookFailoverURL

func (s *CreateMessageRequest) SetWebhookFailoverURL(val OptString)

SetWebhookFailoverURL sets the value of WebhookFailoverURL.

func (*CreateMessageRequest) SetWebhookURL

func (s *CreateMessageRequest) SetWebhookURL(val OptString)

SetWebhookURL sets the value of WebhookURL.

func (*CreateMessageRequest) UnmarshalJSON

func (s *CreateMessageRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateMessageRequest) Validate

func (s *CreateMessageRequest) Validate() error

type CreateMessageRequestType

type CreateMessageRequestType string

The protocol for sending the message, either SMS or MMS.

const (
	CreateMessageRequestTypeSMS CreateMessageRequestType = "SMS"
	CreateMessageRequestTypeMMS CreateMessageRequestType = "MMS"
)

func (CreateMessageRequestType) AllValues

AllValues returns all CreateMessageRequestType values.

func (*CreateMessageRequestType) Decode

func (s *CreateMessageRequestType) Decode(d *jx.Decoder) error

Decode decodes CreateMessageRequestType from json.

func (CreateMessageRequestType) Encode

func (s CreateMessageRequestType) Encode(e *jx.Encoder)

Encode encodes CreateMessageRequestType as json.

func (CreateMessageRequestType) MarshalJSON

func (s CreateMessageRequestType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateMessageRequestType) MarshalText

func (s CreateMessageRequestType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateMessageRequestType) UnmarshalJSON

func (s *CreateMessageRequestType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateMessageRequestType) UnmarshalText

func (s *CreateMessageRequestType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateMessageRequestType) Validate

func (s CreateMessageRequestType) Validate() error

type CreateMessagingHostedNumberOrderRequest

type CreateMessagingHostedNumberOrderRequest struct {
	// Phone numbers to be used for hosted messaging.
	PhoneNumbers []string `json:"phone_numbers"`
	// Automatically associate the number with this messaging profile ID when the order is complete.
	MessagingProfileID OptString `json:"messaging_profile_id"`
}

Ref: #/components/schemas/CreateMessagingHostedNumberOrderRequest

func (*CreateMessagingHostedNumberOrderRequest) Decode

Decode decodes CreateMessagingHostedNumberOrderRequest from json.

func (*CreateMessagingHostedNumberOrderRequest) Encode

Encode implements json.Marshaler.

func (*CreateMessagingHostedNumberOrderRequest) GetMessagingProfileID

func (s *CreateMessagingHostedNumberOrderRequest) GetMessagingProfileID() OptString

GetMessagingProfileID returns the value of MessagingProfileID.

func (*CreateMessagingHostedNumberOrderRequest) GetPhoneNumbers

func (s *CreateMessagingHostedNumberOrderRequest) GetPhoneNumbers() []string

GetPhoneNumbers returns the value of PhoneNumbers.

func (*CreateMessagingHostedNumberOrderRequest) MarshalJSON

func (s *CreateMessagingHostedNumberOrderRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateMessagingHostedNumberOrderRequest) SetMessagingProfileID

func (s *CreateMessagingHostedNumberOrderRequest) SetMessagingProfileID(val OptString)

SetMessagingProfileID sets the value of MessagingProfileID.

func (*CreateMessagingHostedNumberOrderRequest) SetPhoneNumbers

func (s *CreateMessagingHostedNumberOrderRequest) SetPhoneNumbers(val []string)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*CreateMessagingHostedNumberOrderRequest) UnmarshalJSON

func (s *CreateMessagingHostedNumberOrderRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateMessagingHostedNumberOrderRes

type CreateMessagingHostedNumberOrderRes interface {
	// contains filtered or unexported methods
}

type CreateNetworkRes

type CreateNetworkRes interface {
	// contains filtered or unexported methods
}

type CreateNotificationChannelsOK

type CreateNotificationChannelsOK struct {
	Data OptNotificationChannel `json:"data"`
}

func (*CreateNotificationChannelsOK) Decode

Decode decodes CreateNotificationChannelsOK from json.

func (*CreateNotificationChannelsOK) Encode

func (s *CreateNotificationChannelsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateNotificationChannelsOK) GetData

GetData returns the value of Data.

func (*CreateNotificationChannelsOK) MarshalJSON

func (s *CreateNotificationChannelsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateNotificationChannelsOK) SetData

SetData sets the value of Data.

func (*CreateNotificationChannelsOK) UnmarshalJSON

func (s *CreateNotificationChannelsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateNotificationChannelsOK) Validate

func (s *CreateNotificationChannelsOK) Validate() error

type CreateNotificationChannelsRes

type CreateNotificationChannelsRes interface {
	// contains filtered or unexported methods
}

type CreateNumberOrderDocumentRequest

type CreateNumberOrderDocumentRequest struct {
	ID         OptUUID   `json:"id"`
	RecordType OptString `json:"record_type"`
	// The id of the file to associate as a number order document.
	FileID OptString `json:"file_id"`
	// Unique id for a requirement.
	RequirementsID OptString `json:"requirements_id"`
	// A customer reference string for customer look ups.
	CustomerReference OptString                                          `json:"customer_reference"`
	RequirementType   OptCreateNumberOrderDocumentRequestRequirementType `json:"requirement_type"`
	// An ISO 8901 datetime string denoting when the number order document was uploaded.
	CreatedAt OptString `json:"created_at"`
}

Ref: #/components/schemas/CreateNumberOrderDocumentRequest

func (*CreateNumberOrderDocumentRequest) Decode

Decode decodes CreateNumberOrderDocumentRequest from json.

func (*CreateNumberOrderDocumentRequest) Encode

Encode implements json.Marshaler.

func (*CreateNumberOrderDocumentRequest) GetCreatedAt

func (s *CreateNumberOrderDocumentRequest) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*CreateNumberOrderDocumentRequest) GetCustomerReference

func (s *CreateNumberOrderDocumentRequest) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*CreateNumberOrderDocumentRequest) GetFileID

GetFileID returns the value of FileID.

func (*CreateNumberOrderDocumentRequest) GetID

GetID returns the value of ID.

func (*CreateNumberOrderDocumentRequest) GetRecordType

func (s *CreateNumberOrderDocumentRequest) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*CreateNumberOrderDocumentRequest) GetRequirementType

GetRequirementType returns the value of RequirementType.

func (*CreateNumberOrderDocumentRequest) GetRequirementsID

func (s *CreateNumberOrderDocumentRequest) GetRequirementsID() OptString

GetRequirementsID returns the value of RequirementsID.

func (*CreateNumberOrderDocumentRequest) MarshalJSON

func (s *CreateNumberOrderDocumentRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateNumberOrderDocumentRequest) SetCreatedAt

func (s *CreateNumberOrderDocumentRequest) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*CreateNumberOrderDocumentRequest) SetCustomerReference

func (s *CreateNumberOrderDocumentRequest) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*CreateNumberOrderDocumentRequest) SetFileID

func (s *CreateNumberOrderDocumentRequest) SetFileID(val OptString)

SetFileID sets the value of FileID.

func (*CreateNumberOrderDocumentRequest) SetID

SetID sets the value of ID.

func (*CreateNumberOrderDocumentRequest) SetRecordType

func (s *CreateNumberOrderDocumentRequest) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*CreateNumberOrderDocumentRequest) SetRequirementType

SetRequirementType sets the value of RequirementType.

func (*CreateNumberOrderDocumentRequest) SetRequirementsID

func (s *CreateNumberOrderDocumentRequest) SetRequirementsID(val OptString)

SetRequirementsID sets the value of RequirementsID.

func (*CreateNumberOrderDocumentRequest) UnmarshalJSON

func (s *CreateNumberOrderDocumentRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateNumberOrderDocumentRequest) Validate

type CreateNumberOrderDocumentRequestRequirementType

type CreateNumberOrderDocumentRequestRequirementType string
const (
	CreateNumberOrderDocumentRequestRequirementTypeAddressProof   CreateNumberOrderDocumentRequestRequirementType = "address_proof"
	CreateNumberOrderDocumentRequestRequirementTypeIdentification CreateNumberOrderDocumentRequestRequirementType = "identification"
	CreateNumberOrderDocumentRequestRequirementTypeRegForm        CreateNumberOrderDocumentRequestRequirementType = "reg_form"
)

func (CreateNumberOrderDocumentRequestRequirementType) AllValues

AllValues returns all CreateNumberOrderDocumentRequestRequirementType values.

func (*CreateNumberOrderDocumentRequestRequirementType) Decode

Decode decodes CreateNumberOrderDocumentRequestRequirementType from json.

func (CreateNumberOrderDocumentRequestRequirementType) Encode

Encode encodes CreateNumberOrderDocumentRequestRequirementType as json.

func (CreateNumberOrderDocumentRequestRequirementType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CreateNumberOrderDocumentRequestRequirementType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CreateNumberOrderDocumentRequestRequirementType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateNumberOrderDocumentRequestRequirementType) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateNumberOrderDocumentRequestRequirementType) Validate

type CreateNumberOrderDocumentRes

type CreateNumberOrderDocumentRes interface {
	// contains filtered or unexported methods
}

type CreateNumberPoolMessageRequest

type CreateNumberPoolMessageRequest struct {
	// Unique identifier for a messaging profile.
	MessagingProfileID string   `json:"messaging_profile_id"`
	To                 ToNumber `json:"to"`
	// Message body (i.e., content) as a non-empty string.
	// **Required for SMS**.
	Text OptString `json:"text"`
	// Subject of multimedia message.
	Subject OptString `json:"subject"`
	// A list of media URLs. The total media size must be less than 1 MB.
	// **Required for MMS**.
	MediaUrls []string `json:"media_urls"`
	// The URL where webhooks related to this message will be sent.
	WebhookURL OptString `json:"webhook_url"`
	// The failover URL where webhooks related to this message will be sent if sending to the primary URL
	// fails.
	WebhookFailoverURL OptString `json:"webhook_failover_url"`
	// If the profile this number is associated with has webhooks, use them for delivery notifications.
	// If webhooks are also specified on the message itself, they will be attempted first, then those on
	// the profile.
	UseProfileWebhooks OptBool `json:"use_profile_webhooks"`
	// The protocol for sending the message, either SMS or MMS.
	Type OptCreateNumberPoolMessageRequestType `json:"type"`
	// Automatically detect if an SMS message is unusually long and exceeds a recommended limit of
	// message parts.
	AutoDetect OptBool `json:"auto_detect"`
}

Ref: #/components/schemas/CreateNumberPoolMessageRequest

func (*CreateNumberPoolMessageRequest) Decode

Decode decodes CreateNumberPoolMessageRequest from json.

func (*CreateNumberPoolMessageRequest) Encode

Encode implements json.Marshaler.

func (*CreateNumberPoolMessageRequest) GetAutoDetect

func (s *CreateNumberPoolMessageRequest) GetAutoDetect() OptBool

GetAutoDetect returns the value of AutoDetect.

func (*CreateNumberPoolMessageRequest) GetMediaUrls

func (s *CreateNumberPoolMessageRequest) GetMediaUrls() []string

GetMediaUrls returns the value of MediaUrls.

func (*CreateNumberPoolMessageRequest) GetMessagingProfileID

func (s *CreateNumberPoolMessageRequest) GetMessagingProfileID() string

GetMessagingProfileID returns the value of MessagingProfileID.

func (*CreateNumberPoolMessageRequest) GetSubject

func (s *CreateNumberPoolMessageRequest) GetSubject() OptString

GetSubject returns the value of Subject.

func (*CreateNumberPoolMessageRequest) GetText

GetText returns the value of Text.

func (*CreateNumberPoolMessageRequest) GetTo

GetTo returns the value of To.

func (*CreateNumberPoolMessageRequest) GetType

GetType returns the value of Type.

func (*CreateNumberPoolMessageRequest) GetUseProfileWebhooks

func (s *CreateNumberPoolMessageRequest) GetUseProfileWebhooks() OptBool

GetUseProfileWebhooks returns the value of UseProfileWebhooks.

func (*CreateNumberPoolMessageRequest) GetWebhookFailoverURL

func (s *CreateNumberPoolMessageRequest) GetWebhookFailoverURL() OptString

GetWebhookFailoverURL returns the value of WebhookFailoverURL.

func (*CreateNumberPoolMessageRequest) GetWebhookURL

func (s *CreateNumberPoolMessageRequest) GetWebhookURL() OptString

GetWebhookURL returns the value of WebhookURL.

func (*CreateNumberPoolMessageRequest) MarshalJSON

func (s *CreateNumberPoolMessageRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateNumberPoolMessageRequest) SetAutoDetect

func (s *CreateNumberPoolMessageRequest) SetAutoDetect(val OptBool)

SetAutoDetect sets the value of AutoDetect.

func (*CreateNumberPoolMessageRequest) SetMediaUrls

func (s *CreateNumberPoolMessageRequest) SetMediaUrls(val []string)

SetMediaUrls sets the value of MediaUrls.

func (*CreateNumberPoolMessageRequest) SetMessagingProfileID

func (s *CreateNumberPoolMessageRequest) SetMessagingProfileID(val string)

SetMessagingProfileID sets the value of MessagingProfileID.

func (*CreateNumberPoolMessageRequest) SetSubject

func (s *CreateNumberPoolMessageRequest) SetSubject(val OptString)

SetSubject sets the value of Subject.

func (*CreateNumberPoolMessageRequest) SetText

func (s *CreateNumberPoolMessageRequest) SetText(val OptString)

SetText sets the value of Text.

func (*CreateNumberPoolMessageRequest) SetTo

SetTo sets the value of To.

func (*CreateNumberPoolMessageRequest) SetType

SetType sets the value of Type.

func (*CreateNumberPoolMessageRequest) SetUseProfileWebhooks

func (s *CreateNumberPoolMessageRequest) SetUseProfileWebhooks(val OptBool)

SetUseProfileWebhooks sets the value of UseProfileWebhooks.

func (*CreateNumberPoolMessageRequest) SetWebhookFailoverURL

func (s *CreateNumberPoolMessageRequest) SetWebhookFailoverURL(val OptString)

SetWebhookFailoverURL sets the value of WebhookFailoverURL.

func (*CreateNumberPoolMessageRequest) SetWebhookURL

func (s *CreateNumberPoolMessageRequest) SetWebhookURL(val OptString)

SetWebhookURL sets the value of WebhookURL.

func (*CreateNumberPoolMessageRequest) UnmarshalJSON

func (s *CreateNumberPoolMessageRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateNumberPoolMessageRequest) Validate

func (s *CreateNumberPoolMessageRequest) Validate() error

type CreateNumberPoolMessageRequestType

type CreateNumberPoolMessageRequestType string

The protocol for sending the message, either SMS or MMS.

const (
	CreateNumberPoolMessageRequestTypeSMS CreateNumberPoolMessageRequestType = "SMS"
	CreateNumberPoolMessageRequestTypeMMS CreateNumberPoolMessageRequestType = "MMS"
)

func (CreateNumberPoolMessageRequestType) AllValues

AllValues returns all CreateNumberPoolMessageRequestType values.

func (*CreateNumberPoolMessageRequestType) Decode

Decode decodes CreateNumberPoolMessageRequestType from json.

func (CreateNumberPoolMessageRequestType) Encode

Encode encodes CreateNumberPoolMessageRequestType as json.

func (CreateNumberPoolMessageRequestType) MarshalJSON

func (s CreateNumberPoolMessageRequestType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateNumberPoolMessageRequestType) MarshalText

func (s CreateNumberPoolMessageRequestType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateNumberPoolMessageRequestType) UnmarshalJSON

func (s *CreateNumberPoolMessageRequestType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateNumberPoolMessageRequestType) UnmarshalText

func (s *CreateNumberPoolMessageRequestType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateNumberPoolMessageRequestType) Validate

type CreateNumberPoolMessageRes

type CreateNumberPoolMessageRes interface {
	// contains filtered or unexported methods
}

type CreateNumberReservationRequest

type CreateNumberReservationRequest struct {
	ID           OptUUID               `json:"id"`
	RecordType   OptString             `json:"record_type"`
	PhoneNumbers []ReservedPhoneNumber `json:"phone_numbers"`
	// The status of the entire reservation.
	Status OptCreateNumberReservationRequestStatus `json:"status"`
	// A customer reference string for customer look ups.
	CustomerReference OptString `json:"customer_reference"`
	// An ISO 8901 datetime string denoting when the numbers reservation was created.
	CreatedAt OptString `json:"created_at"`
	// An ISO 8901 datetime string for when the number reservation was updated.
	UpdatedAt OptString `json:"updated_at"`
}

Ref: #/components/schemas/CreateNumberReservationRequest

func (*CreateNumberReservationRequest) Decode

Decode decodes CreateNumberReservationRequest from json.

func (*CreateNumberReservationRequest) Encode

Encode implements json.Marshaler.

func (*CreateNumberReservationRequest) GetCreatedAt

func (s *CreateNumberReservationRequest) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*CreateNumberReservationRequest) GetCustomerReference

func (s *CreateNumberReservationRequest) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*CreateNumberReservationRequest) GetID

GetID returns the value of ID.

func (*CreateNumberReservationRequest) GetPhoneNumbers

func (s *CreateNumberReservationRequest) GetPhoneNumbers() []ReservedPhoneNumber

GetPhoneNumbers returns the value of PhoneNumbers.

func (*CreateNumberReservationRequest) GetRecordType

func (s *CreateNumberReservationRequest) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*CreateNumberReservationRequest) GetStatus

GetStatus returns the value of Status.

func (*CreateNumberReservationRequest) GetUpdatedAt

func (s *CreateNumberReservationRequest) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*CreateNumberReservationRequest) MarshalJSON

func (s *CreateNumberReservationRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateNumberReservationRequest) SetCreatedAt

func (s *CreateNumberReservationRequest) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*CreateNumberReservationRequest) SetCustomerReference

func (s *CreateNumberReservationRequest) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*CreateNumberReservationRequest) SetID

SetID sets the value of ID.

func (*CreateNumberReservationRequest) SetPhoneNumbers

func (s *CreateNumberReservationRequest) SetPhoneNumbers(val []ReservedPhoneNumber)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*CreateNumberReservationRequest) SetRecordType

func (s *CreateNumberReservationRequest) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*CreateNumberReservationRequest) SetStatus

SetStatus sets the value of Status.

func (*CreateNumberReservationRequest) SetUpdatedAt

func (s *CreateNumberReservationRequest) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*CreateNumberReservationRequest) UnmarshalJSON

func (s *CreateNumberReservationRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateNumberReservationRequest) Validate

func (s *CreateNumberReservationRequest) Validate() error

type CreateNumberReservationRequestStatus

type CreateNumberReservationRequestStatus string

The status of the entire reservation.

const (
	CreateNumberReservationRequestStatusPending CreateNumberReservationRequestStatus = "pending"
	CreateNumberReservationRequestStatusSuccess CreateNumberReservationRequestStatus = "success"
	CreateNumberReservationRequestStatusFailure CreateNumberReservationRequestStatus = "failure"
)

func (CreateNumberReservationRequestStatus) AllValues

AllValues returns all CreateNumberReservationRequestStatus values.

func (*CreateNumberReservationRequestStatus) Decode

Decode decodes CreateNumberReservationRequestStatus from json.

func (CreateNumberReservationRequestStatus) Encode

Encode encodes CreateNumberReservationRequestStatus as json.

func (CreateNumberReservationRequestStatus) MarshalJSON

func (s CreateNumberReservationRequestStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateNumberReservationRequestStatus) MarshalText

func (s CreateNumberReservationRequestStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateNumberReservationRequestStatus) UnmarshalJSON

func (s *CreateNumberReservationRequestStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateNumberReservationRequestStatus) UnmarshalText

func (s *CreateNumberReservationRequestStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateNumberReservationRequestStatus) Validate

type CreateNumberReservationRes

type CreateNumberReservationRes interface {
	// contains filtered or unexported methods
}

type CreateOutboundVoiceProfileRequest

type CreateOutboundVoiceProfileRequest struct {
	// A user-supplied name to help with organization.
	Name        string         `json:"name"`
	TrafficType OptTrafficType `json:"traffic_type"`
	ServicePlan OptServicePlan `json:"service_plan"`
	// Must be no more than your global concurrent call limit. Null means no limit.
	ConcurrentCallLimit OptNilInt `json:"concurrent_call_limit"`
	// Specifies whether the outbound voice profile can be used. Disabled profiles will result in
	// outbound calls being blocked for the associated Connections.
	Enabled            OptBool               `json:"enabled"`
	Tags               []string              `json:"tags"`
	UsagePaymentMethod OptUsagePaymentMethod `json:"usage_payment_method"`
	// The list of destinations you want to be able to call using this outbound voice profile formatted
	// in alpha2.
	WhitelistedDestinations []string `json:"whitelisted_destinations"`
	// Maximum rate (price per minute) for a Destination to be allowed when making outbound calls.
	MaxDestinationRate OptFloat64 `json:"max_destination_rate"`
	// The maximum amount of usage charges, in USD, you want Telnyx to allow on this outbound voice
	// profile in a day before disallowing new calls.
	DailySpendLimit OptString `json:"daily_spend_limit"`
	// Specifies whether to enforce the daily_spend_limit on this outbound voice profile.
	DailySpendLimitEnabled OptBool                  `json:"daily_spend_limit_enabled"`
	CallRecording          OptOutboundCallRecording `json:"call_recording"`
	// The ID of the billing group associated with the outbound proflile. Defaults to null (for no group
	// assigned).
	BillingGroupID OptNilUUID `json:"billing_group_id"`
}

Ref: #/components/schemas/CreateOutboundVoiceProfileRequest

func (*CreateOutboundVoiceProfileRequest) Decode

Decode decodes CreateOutboundVoiceProfileRequest from json.

func (*CreateOutboundVoiceProfileRequest) Encode

Encode implements json.Marshaler.

func (*CreateOutboundVoiceProfileRequest) GetBillingGroupID

func (s *CreateOutboundVoiceProfileRequest) GetBillingGroupID() OptNilUUID

GetBillingGroupID returns the value of BillingGroupID.

func (*CreateOutboundVoiceProfileRequest) GetCallRecording

GetCallRecording returns the value of CallRecording.

func (*CreateOutboundVoiceProfileRequest) GetConcurrentCallLimit

func (s *CreateOutboundVoiceProfileRequest) GetConcurrentCallLimit() OptNilInt

GetConcurrentCallLimit returns the value of ConcurrentCallLimit.

func (*CreateOutboundVoiceProfileRequest) GetDailySpendLimit

func (s *CreateOutboundVoiceProfileRequest) GetDailySpendLimit() OptString

GetDailySpendLimit returns the value of DailySpendLimit.

func (*CreateOutboundVoiceProfileRequest) GetDailySpendLimitEnabled

func (s *CreateOutboundVoiceProfileRequest) GetDailySpendLimitEnabled() OptBool

GetDailySpendLimitEnabled returns the value of DailySpendLimitEnabled.

func (*CreateOutboundVoiceProfileRequest) GetEnabled

GetEnabled returns the value of Enabled.

func (*CreateOutboundVoiceProfileRequest) GetMaxDestinationRate

func (s *CreateOutboundVoiceProfileRequest) GetMaxDestinationRate() OptFloat64

GetMaxDestinationRate returns the value of MaxDestinationRate.

func (*CreateOutboundVoiceProfileRequest) GetName

GetName returns the value of Name.

func (*CreateOutboundVoiceProfileRequest) GetServicePlan

GetServicePlan returns the value of ServicePlan.

func (*CreateOutboundVoiceProfileRequest) GetTags

GetTags returns the value of Tags.

func (*CreateOutboundVoiceProfileRequest) GetTrafficType

GetTrafficType returns the value of TrafficType.

func (*CreateOutboundVoiceProfileRequest) GetUsagePaymentMethod

func (s *CreateOutboundVoiceProfileRequest) GetUsagePaymentMethod() OptUsagePaymentMethod

GetUsagePaymentMethod returns the value of UsagePaymentMethod.

func (*CreateOutboundVoiceProfileRequest) GetWhitelistedDestinations

func (s *CreateOutboundVoiceProfileRequest) GetWhitelistedDestinations() []string

GetWhitelistedDestinations returns the value of WhitelistedDestinations.

func (*CreateOutboundVoiceProfileRequest) MarshalJSON

func (s *CreateOutboundVoiceProfileRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateOutboundVoiceProfileRequest) SetBillingGroupID

func (s *CreateOutboundVoiceProfileRequest) SetBillingGroupID(val OptNilUUID)

SetBillingGroupID sets the value of BillingGroupID.

func (*CreateOutboundVoiceProfileRequest) SetCallRecording

SetCallRecording sets the value of CallRecording.

func (*CreateOutboundVoiceProfileRequest) SetConcurrentCallLimit

func (s *CreateOutboundVoiceProfileRequest) SetConcurrentCallLimit(val OptNilInt)

SetConcurrentCallLimit sets the value of ConcurrentCallLimit.

func (*CreateOutboundVoiceProfileRequest) SetDailySpendLimit

func (s *CreateOutboundVoiceProfileRequest) SetDailySpendLimit(val OptString)

SetDailySpendLimit sets the value of DailySpendLimit.

func (*CreateOutboundVoiceProfileRequest) SetDailySpendLimitEnabled

func (s *CreateOutboundVoiceProfileRequest) SetDailySpendLimitEnabled(val OptBool)

SetDailySpendLimitEnabled sets the value of DailySpendLimitEnabled.

func (*CreateOutboundVoiceProfileRequest) SetEnabled

func (s *CreateOutboundVoiceProfileRequest) SetEnabled(val OptBool)

SetEnabled sets the value of Enabled.

func (*CreateOutboundVoiceProfileRequest) SetMaxDestinationRate

func (s *CreateOutboundVoiceProfileRequest) SetMaxDestinationRate(val OptFloat64)

SetMaxDestinationRate sets the value of MaxDestinationRate.

func (*CreateOutboundVoiceProfileRequest) SetName

func (s *CreateOutboundVoiceProfileRequest) SetName(val string)

SetName sets the value of Name.

func (*CreateOutboundVoiceProfileRequest) SetServicePlan

func (s *CreateOutboundVoiceProfileRequest) SetServicePlan(val OptServicePlan)

SetServicePlan sets the value of ServicePlan.

func (*CreateOutboundVoiceProfileRequest) SetTags

func (s *CreateOutboundVoiceProfileRequest) SetTags(val []string)

SetTags sets the value of Tags.

func (*CreateOutboundVoiceProfileRequest) SetTrafficType

func (s *CreateOutboundVoiceProfileRequest) SetTrafficType(val OptTrafficType)

SetTrafficType sets the value of TrafficType.

func (*CreateOutboundVoiceProfileRequest) SetUsagePaymentMethod

func (s *CreateOutboundVoiceProfileRequest) SetUsagePaymentMethod(val OptUsagePaymentMethod)

SetUsagePaymentMethod sets the value of UsagePaymentMethod.

func (*CreateOutboundVoiceProfileRequest) SetWhitelistedDestinations

func (s *CreateOutboundVoiceProfileRequest) SetWhitelistedDestinations(val []string)

SetWhitelistedDestinations sets the value of WhitelistedDestinations.

func (*CreateOutboundVoiceProfileRequest) UnmarshalJSON

func (s *CreateOutboundVoiceProfileRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateOutboundVoiceProfileRequest) Validate

type CreatePhoneNumberConfigurationsReq

type CreatePhoneNumberConfigurationsReq struct {
	PhoneNumberConfigurations []CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem `json:"phone_number_configurations"`
}

func (*CreatePhoneNumberConfigurationsReq) Decode

Decode decodes CreatePhoneNumberConfigurationsReq from json.

func (*CreatePhoneNumberConfigurationsReq) Encode

Encode implements json.Marshaler.

func (*CreatePhoneNumberConfigurationsReq) GetPhoneNumberConfigurations

GetPhoneNumberConfigurations returns the value of PhoneNumberConfigurations.

func (*CreatePhoneNumberConfigurationsReq) MarshalJSON

func (s *CreatePhoneNumberConfigurationsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePhoneNumberConfigurationsReq) SetPhoneNumberConfigurations

SetPhoneNumberConfigurations sets the value of PhoneNumberConfigurations.

func (*CreatePhoneNumberConfigurationsReq) UnmarshalJSON

func (s *CreatePhoneNumberConfigurationsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePhoneNumberConfigurationsReq) Validate

type CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem

type CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem struct {
	// Identifies the porting phone number to be configured.
	PortingPhoneNumberID uuid.UUID `json:"porting_phone_number_id"`
	// Identifies the user bundle to be associated with the porting phone number.
	UserBundleID uuid.UUID `json:"user_bundle_id"`
}

func (*CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem) Decode

Decode decodes CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem from json.

func (*CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem) Encode

Encode implements json.Marshaler.

func (*CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem) GetPortingPhoneNumberID

GetPortingPhoneNumberID returns the value of PortingPhoneNumberID.

func (*CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem) GetUserBundleID

GetUserBundleID returns the value of UserBundleID.

func (*CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem) SetPortingPhoneNumberID

SetPortingPhoneNumberID sets the value of PortingPhoneNumberID.

func (*CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem) SetUserBundleID

SetUserBundleID sets the value of UserBundleID.

func (*CreatePhoneNumberConfigurationsReqPhoneNumberConfigurationsItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type CreatePhoneNumberConfigurationsRes

type CreatePhoneNumberConfigurationsRes interface {
	// contains filtered or unexported methods
}

type CreatePhoneNumberConfigurationsUnauthorized

type CreatePhoneNumberConfigurationsUnauthorized struct{}

CreatePhoneNumberConfigurationsUnauthorized is response for CreatePhoneNumberConfigurations operation.

type CreatePhoneNumberConfigurationsUnprocessableEntity

type CreatePhoneNumberConfigurationsUnprocessableEntity struct{}

CreatePhoneNumberConfigurationsUnprocessableEntity is response for CreatePhoneNumberConfigurations operation.

type CreatePhoneNumbersJobUpdateEmergencySettingsAccepted

type CreatePhoneNumbersJobUpdateEmergencySettingsAccepted struct {
	Data OptPhoneNumbersJob `json:"data"`
}

func (*CreatePhoneNumbersJobUpdateEmergencySettingsAccepted) Decode

Decode decodes CreatePhoneNumbersJobUpdateEmergencySettingsAccepted from json.

func (*CreatePhoneNumbersJobUpdateEmergencySettingsAccepted) Encode

Encode implements json.Marshaler.

func (*CreatePhoneNumbersJobUpdateEmergencySettingsAccepted) GetData

GetData returns the value of Data.

func (*CreatePhoneNumbersJobUpdateEmergencySettingsAccepted) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CreatePhoneNumbersJobUpdateEmergencySettingsAccepted) SetData

SetData sets the value of Data.

func (*CreatePhoneNumbersJobUpdateEmergencySettingsAccepted) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePhoneNumbersJobUpdateEmergencySettingsAccepted) Validate

type CreatePhoneNumbersJobUpdateEmergencySettingsRes

type CreatePhoneNumbersJobUpdateEmergencySettingsRes interface {
	// contains filtered or unexported methods
}

type CreatePortOutSupportingDocumentsResponse

type CreatePortOutSupportingDocumentsResponse struct {
	Data []PortOutSupportingDocument `json:"data"`
}

func (*CreatePortOutSupportingDocumentsResponse) Decode

Decode decodes CreatePortOutSupportingDocumentsResponse from json.

func (*CreatePortOutSupportingDocumentsResponse) Encode

Encode implements json.Marshaler.

func (*CreatePortOutSupportingDocumentsResponse) GetData

GetData returns the value of Data.

func (*CreatePortOutSupportingDocumentsResponse) MarshalJSON

func (s *CreatePortOutSupportingDocumentsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePortOutSupportingDocumentsResponse) SetData

SetData sets the value of Data.

func (*CreatePortOutSupportingDocumentsResponse) UnmarshalJSON

func (s *CreatePortOutSupportingDocumentsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePortOutSupportingDocumentsResponse) Validate

type CreatePortingAdditionalDocuments

type CreatePortingAdditionalDocuments struct {
	Data []PortingAdditionalDocument `json:"data"`
}

func (*CreatePortingAdditionalDocuments) Decode

Decode decodes CreatePortingAdditionalDocuments from json.

func (*CreatePortingAdditionalDocuments) Encode

Encode implements json.Marshaler.

func (*CreatePortingAdditionalDocuments) GetData

GetData returns the value of Data.

func (*CreatePortingAdditionalDocuments) MarshalJSON

func (s *CreatePortingAdditionalDocuments) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePortingAdditionalDocuments) SetData

SetData sets the value of Data.

func (*CreatePortingAdditionalDocuments) UnmarshalJSON

func (s *CreatePortingAdditionalDocuments) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePortingAdditionalDocuments) Validate

type CreatePortingLOAConfiguration

type CreatePortingLOAConfiguration struct {
	Data OptPortingLOAConfiguration `json:"data"`
}

func (*CreatePortingLOAConfiguration) Decode

Decode decodes CreatePortingLOAConfiguration from json.

func (*CreatePortingLOAConfiguration) Encode

Encode implements json.Marshaler.

func (*CreatePortingLOAConfiguration) GetData

GetData returns the value of Data.

func (*CreatePortingLOAConfiguration) MarshalJSON

func (s *CreatePortingLOAConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePortingLOAConfiguration) SetData

SetData sets the value of Data.

func (*CreatePortingLOAConfiguration) UnmarshalJSON

func (s *CreatePortingLOAConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePortingLOAConfiguration) Validate

func (s *CreatePortingLOAConfiguration) Validate() error

type CreatePortingOrder

type CreatePortingOrder struct {
	// The list of +E.164 formatted phone numbers.
	PhoneNumbers []string `json:"phone_numbers"`
	// A customer-specified reference number for customer bookkeeping purposes.
	CustomerReference OptString `json:"customer_reference"`
}

Ref: #/components/schemas/CreatePortingOrder

func (*CreatePortingOrder) Decode

func (s *CreatePortingOrder) Decode(d *jx.Decoder) error

Decode decodes CreatePortingOrder from json.

func (*CreatePortingOrder) Encode

func (s *CreatePortingOrder) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreatePortingOrder) GetCustomerReference

func (s *CreatePortingOrder) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*CreatePortingOrder) GetPhoneNumbers

func (s *CreatePortingOrder) GetPhoneNumbers() []string

GetPhoneNumbers returns the value of PhoneNumbers.

func (*CreatePortingOrder) MarshalJSON

func (s *CreatePortingOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePortingOrder) SetCustomerReference

func (s *CreatePortingOrder) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*CreatePortingOrder) SetPhoneNumbers

func (s *CreatePortingOrder) SetPhoneNumbers(val []string)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*CreatePortingOrder) UnmarshalJSON

func (s *CreatePortingOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePortingOrder) Validate

func (s *CreatePortingOrder) Validate() error

type CreatePortingOrderComment

type CreatePortingOrderComment struct {
	Body OptString `json:"body"`
}

Ref: #/components/schemas/CreatePortingOrderComment

func (*CreatePortingOrderComment) Decode

func (s *CreatePortingOrderComment) Decode(d *jx.Decoder) error

Decode decodes CreatePortingOrderComment from json.

func (*CreatePortingOrderComment) Encode

func (s *CreatePortingOrderComment) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreatePortingOrderComment) GetBody

func (s *CreatePortingOrderComment) GetBody() OptString

GetBody returns the value of Body.

func (*CreatePortingOrderComment) MarshalJSON

func (s *CreatePortingOrderComment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePortingOrderComment) SetBody

func (s *CreatePortingOrderComment) SetBody(val OptString)

SetBody sets the value of Body.

func (*CreatePortingOrderComment) UnmarshalJSON

func (s *CreatePortingOrderComment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreatePortingOrderRes

type CreatePortingOrderRes interface {
	// contains filtered or unexported methods
}

type CreatePortingOrderUnauthorized

type CreatePortingOrderUnauthorized struct{}

CreatePortingOrderUnauthorized is response for CreatePortingOrder operation.

type CreatePortingOrderUnprocessableEntity

type CreatePortingOrderUnprocessableEntity struct{}

CreatePortingOrderUnprocessableEntity is response for CreatePortingOrder operation.

type CreatePortingPhoneNumberConfigurations

type CreatePortingPhoneNumberConfigurations struct {
	Data []PortingPhoneNumberConfiguration `json:"data"`
}

func (*CreatePortingPhoneNumberConfigurations) Decode

Decode decodes CreatePortingPhoneNumberConfigurations from json.

func (*CreatePortingPhoneNumberConfigurations) Encode

Encode implements json.Marshaler.

func (*CreatePortingPhoneNumberConfigurations) GetData

GetData returns the value of Data.

func (*CreatePortingPhoneNumberConfigurations) MarshalJSON

func (s *CreatePortingPhoneNumberConfigurations) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePortingPhoneNumberConfigurations) SetData

SetData sets the value of Data.

func (*CreatePortingPhoneNumberConfigurations) UnmarshalJSON

func (s *CreatePortingPhoneNumberConfigurations) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreatePortingReport

type CreatePortingReport struct {
	Data OptPortingReport `json:"data"`
}

func (*CreatePortingReport) Decode

func (s *CreatePortingReport) Decode(d *jx.Decoder) error

Decode decodes CreatePortingReport from json.

func (*CreatePortingReport) Encode

func (s *CreatePortingReport) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreatePortingReport) GetData

GetData returns the value of Data.

func (*CreatePortingReport) MarshalJSON

func (s *CreatePortingReport) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePortingReport) SetData

func (s *CreatePortingReport) SetData(val OptPortingReport)

SetData sets the value of Data.

func (*CreatePortingReport) UnmarshalJSON

func (s *CreatePortingReport) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePortingReport) Validate

func (s *CreatePortingReport) Validate() error

type CreatePortingReportInternalServerError

type CreatePortingReportInternalServerError struct{}

CreatePortingReportInternalServerError is response for CreatePortingReport operation.

type CreatePortingReportReq

type CreatePortingReportReq struct {
	// Identifies the type of report.
	ReportType CreatePortingReportReqReportType `json:"report_type"`
	Params     CreatePortingReportReqParams     `json:"params"`
}

The parameters for generating a new porting related report.

func (*CreatePortingReportReq) Decode

func (s *CreatePortingReportReq) Decode(d *jx.Decoder) error

Decode decodes CreatePortingReportReq from json.

func (*CreatePortingReportReq) Encode

func (s *CreatePortingReportReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreatePortingReportReq) GetParams

GetParams returns the value of Params.

func (*CreatePortingReportReq) GetReportType

GetReportType returns the value of ReportType.

func (*CreatePortingReportReq) MarshalJSON

func (s *CreatePortingReportReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePortingReportReq) SetParams

SetParams sets the value of Params.

func (*CreatePortingReportReq) SetReportType

SetReportType sets the value of ReportType.

func (*CreatePortingReportReq) UnmarshalJSON

func (s *CreatePortingReportReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePortingReportReq) Validate

func (s *CreatePortingReportReq) Validate() error

type CreatePortingReportReqParams

type CreatePortingReportReqParams struct {
	Type                         CreatePortingReportReqParamsType // switch on this field
	ExportPortingOrdersCSVReport ExportPortingOrdersCSVReport
}

CreatePortingReportReqParams represents sum type.

func NewExportPortingOrdersCSVReportCreatePortingReportReqParams

func NewExportPortingOrdersCSVReportCreatePortingReportReqParams(v ExportPortingOrdersCSVReport) CreatePortingReportReqParams

NewExportPortingOrdersCSVReportCreatePortingReportReqParams returns new CreatePortingReportReqParams from ExportPortingOrdersCSVReport.

func (*CreatePortingReportReqParams) Decode

Decode decodes CreatePortingReportReqParams from json.

func (CreatePortingReportReqParams) Encode

Encode encodes CreatePortingReportReqParams as json.

func (CreatePortingReportReqParams) GetExportPortingOrdersCSVReport

func (s CreatePortingReportReqParams) GetExportPortingOrdersCSVReport() (v ExportPortingOrdersCSVReport, ok bool)

GetExportPortingOrdersCSVReport returns ExportPortingOrdersCSVReport and true boolean if CreatePortingReportReqParams is ExportPortingOrdersCSVReport.

func (CreatePortingReportReqParams) IsExportPortingOrdersCSVReport

func (s CreatePortingReportReqParams) IsExportPortingOrdersCSVReport() bool

IsExportPortingOrdersCSVReport reports whether CreatePortingReportReqParams is ExportPortingOrdersCSVReport.

func (CreatePortingReportReqParams) MarshalJSON

func (s CreatePortingReportReqParams) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePortingReportReqParams) SetExportPortingOrdersCSVReport

func (s *CreatePortingReportReqParams) SetExportPortingOrdersCSVReport(v ExportPortingOrdersCSVReport)

SetExportPortingOrdersCSVReport sets CreatePortingReportReqParams to ExportPortingOrdersCSVReport.

func (*CreatePortingReportReqParams) UnmarshalJSON

func (s *CreatePortingReportReqParams) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (CreatePortingReportReqParams) Validate

func (s CreatePortingReportReqParams) Validate() error

type CreatePortingReportReqParamsType

type CreatePortingReportReqParamsType string

CreatePortingReportReqParamsType is oneOf type of CreatePortingReportReqParams.

const (
	ExportPortingOrdersCSVReportCreatePortingReportReqParams CreatePortingReportReqParamsType = "ExportPortingOrdersCSVReport"
)

Possible values for CreatePortingReportReqParamsType.

type CreatePortingReportReqReportType

type CreatePortingReportReqReportType string

Identifies the type of report.

const (
	CreatePortingReportReqReportTypeExportPortingOrdersCsv CreatePortingReportReqReportType = "export_porting_orders_csv"
)

func (CreatePortingReportReqReportType) AllValues

AllValues returns all CreatePortingReportReqReportType values.

func (*CreatePortingReportReqReportType) Decode

Decode decodes CreatePortingReportReqReportType from json.

func (CreatePortingReportReqReportType) Encode

Encode encodes CreatePortingReportReqReportType as json.

func (CreatePortingReportReqReportType) MarshalJSON

func (s CreatePortingReportReqReportType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreatePortingReportReqReportType) MarshalText

func (s CreatePortingReportReqReportType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreatePortingReportReqReportType) UnmarshalJSON

func (s *CreatePortingReportReqReportType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePortingReportReqReportType) UnmarshalText

func (s *CreatePortingReportReqReportType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreatePortingReportReqReportType) Validate

type CreatePortingReportRes

type CreatePortingReportRes interface {
	// contains filtered or unexported methods
}

type CreatePortingReportUnprocessableEntity

type CreatePortingReportUnprocessableEntity struct{}

CreatePortingReportUnprocessableEntity is response for CreatePortingReport operation.

type CreatePrivateWirelessGatewayReq

type CreatePrivateWirelessGatewayReq struct {
	// The identification of the related network resource.
	NetworkID uuid.UUID `json:"network_id"`
	// The private wireless gateway name.
	Name string `json:"name"`
}

func (*CreatePrivateWirelessGatewayReq) Decode

Decode decodes CreatePrivateWirelessGatewayReq from json.

func (*CreatePrivateWirelessGatewayReq) Encode

Encode implements json.Marshaler.

func (*CreatePrivateWirelessGatewayReq) GetName

GetName returns the value of Name.

func (*CreatePrivateWirelessGatewayReq) GetNetworkID

func (s *CreatePrivateWirelessGatewayReq) GetNetworkID() uuid.UUID

GetNetworkID returns the value of NetworkID.

func (*CreatePrivateWirelessGatewayReq) MarshalJSON

func (s *CreatePrivateWirelessGatewayReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePrivateWirelessGatewayReq) SetName

func (s *CreatePrivateWirelessGatewayReq) SetName(val string)

SetName sets the value of Name.

func (*CreatePrivateWirelessGatewayReq) SetNetworkID

func (s *CreatePrivateWirelessGatewayReq) SetNetworkID(val uuid.UUID)

SetNetworkID sets the value of NetworkID.

func (*CreatePrivateWirelessGatewayReq) UnmarshalJSON

func (s *CreatePrivateWirelessGatewayReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreatePrivateWirelessGatewayRes

type CreatePrivateWirelessGatewayRes interface {
	// contains filtered or unexported methods
}

type CreatePrivateWirelessGatewayResponse

type CreatePrivateWirelessGatewayResponse struct {
	Data OptPrivateWirelessGateway `json:"data"`
}

func (*CreatePrivateWirelessGatewayResponse) Decode

Decode decodes CreatePrivateWirelessGatewayResponse from json.

func (*CreatePrivateWirelessGatewayResponse) Encode

Encode implements json.Marshaler.

func (*CreatePrivateWirelessGatewayResponse) GetData

GetData returns the value of Data.

func (*CreatePrivateWirelessGatewayResponse) MarshalJSON

func (s *CreatePrivateWirelessGatewayResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatePrivateWirelessGatewayResponse) SetData

SetData sets the value of Data.

func (*CreatePrivateWirelessGatewayResponse) UnmarshalJSON

func (s *CreatePrivateWirelessGatewayResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatePrivateWirelessGatewayResponse) Validate

type CreateProfileRes

type CreateProfileRes interface {
	// contains filtered or unexported methods
}

type CreateProfileVerificationRequestCreated

type CreateProfileVerificationRequestCreated struct{}

CreateProfileVerificationRequestCreated is response for CreateProfileVerificationRequest operation.

type CreateProfileVerificationRequestParams

type CreateProfileVerificationRequestParams struct {
	// Identifies the Verified Calls Display Profile.
	ID string
}

CreateProfileVerificationRequestParams is parameters of CreateProfileVerificationRequest operation.

type CreateProfileVerificationRequestRes

type CreateProfileVerificationRequestRes interface {
	// contains filtered or unexported methods
}

type CreateShortCodeMessageRequest

type CreateShortCodeMessageRequest struct {
	// Phone number, in +E.164 format, used to send the message.
	From string   `json:"from"`
	To   ToNumber `json:"to"`
	// Message body (i.e., content) as a non-empty string.
	// **Required for SMS**.
	Text OptString `json:"text"`
	// Subject of multimedia message.
	Subject OptString `json:"subject"`
	// A list of media URLs. The total media size must be less than 1 MB.
	// **Required for MMS**.
	MediaUrls []string `json:"media_urls"`
	// The URL where webhooks related to this message will be sent.
	WebhookURL OptString `json:"webhook_url"`
	// The failover URL where webhooks related to this message will be sent if sending to the primary URL
	// fails.
	WebhookFailoverURL OptString `json:"webhook_failover_url"`
	// If the profile this number is associated with has webhooks, use them for delivery notifications.
	// If webhooks are also specified on the message itself, they will be attempted first, then those on
	// the profile.
	UseProfileWebhooks OptBool `json:"use_profile_webhooks"`
	// The protocol for sending the message, either SMS or MMS.
	Type OptCreateShortCodeMessageRequestType `json:"type"`
	// Automatically detect if an SMS message is unusually long and exceeds a recommended limit of
	// message parts.
	AutoDetect OptBool `json:"auto_detect"`
}

Ref: #/components/schemas/CreateShortCodeMessageRequest

func (*CreateShortCodeMessageRequest) Decode

Decode decodes CreateShortCodeMessageRequest from json.

func (*CreateShortCodeMessageRequest) Encode

Encode implements json.Marshaler.

func (*CreateShortCodeMessageRequest) GetAutoDetect

func (s *CreateShortCodeMessageRequest) GetAutoDetect() OptBool

GetAutoDetect returns the value of AutoDetect.

func (*CreateShortCodeMessageRequest) GetFrom

GetFrom returns the value of From.

func (*CreateShortCodeMessageRequest) GetMediaUrls

func (s *CreateShortCodeMessageRequest) GetMediaUrls() []string

GetMediaUrls returns the value of MediaUrls.

func (*CreateShortCodeMessageRequest) GetSubject

func (s *CreateShortCodeMessageRequest) GetSubject() OptString

GetSubject returns the value of Subject.

func (*CreateShortCodeMessageRequest) GetText

GetText returns the value of Text.

func (*CreateShortCodeMessageRequest) GetTo

GetTo returns the value of To.

func (*CreateShortCodeMessageRequest) GetType

GetType returns the value of Type.

func (*CreateShortCodeMessageRequest) GetUseProfileWebhooks

func (s *CreateShortCodeMessageRequest) GetUseProfileWebhooks() OptBool

GetUseProfileWebhooks returns the value of UseProfileWebhooks.

func (*CreateShortCodeMessageRequest) GetWebhookFailoverURL

func (s *CreateShortCodeMessageRequest) GetWebhookFailoverURL() OptString

GetWebhookFailoverURL returns the value of WebhookFailoverURL.

func (*CreateShortCodeMessageRequest) GetWebhookURL

func (s *CreateShortCodeMessageRequest) GetWebhookURL() OptString

GetWebhookURL returns the value of WebhookURL.

func (*CreateShortCodeMessageRequest) MarshalJSON

func (s *CreateShortCodeMessageRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateShortCodeMessageRequest) SetAutoDetect

func (s *CreateShortCodeMessageRequest) SetAutoDetect(val OptBool)

SetAutoDetect sets the value of AutoDetect.

func (*CreateShortCodeMessageRequest) SetFrom

func (s *CreateShortCodeMessageRequest) SetFrom(val string)

SetFrom sets the value of From.

func (*CreateShortCodeMessageRequest) SetMediaUrls

func (s *CreateShortCodeMessageRequest) SetMediaUrls(val []string)

SetMediaUrls sets the value of MediaUrls.

func (*CreateShortCodeMessageRequest) SetSubject

func (s *CreateShortCodeMessageRequest) SetSubject(val OptString)

SetSubject sets the value of Subject.

func (*CreateShortCodeMessageRequest) SetText

func (s *CreateShortCodeMessageRequest) SetText(val OptString)

SetText sets the value of Text.

func (*CreateShortCodeMessageRequest) SetTo

SetTo sets the value of To.

func (*CreateShortCodeMessageRequest) SetType

SetType sets the value of Type.

func (*CreateShortCodeMessageRequest) SetUseProfileWebhooks

func (s *CreateShortCodeMessageRequest) SetUseProfileWebhooks(val OptBool)

SetUseProfileWebhooks sets the value of UseProfileWebhooks.

func (*CreateShortCodeMessageRequest) SetWebhookFailoverURL

func (s *CreateShortCodeMessageRequest) SetWebhookFailoverURL(val OptString)

SetWebhookFailoverURL sets the value of WebhookFailoverURL.

func (*CreateShortCodeMessageRequest) SetWebhookURL

func (s *CreateShortCodeMessageRequest) SetWebhookURL(val OptString)

SetWebhookURL sets the value of WebhookURL.

func (*CreateShortCodeMessageRequest) UnmarshalJSON

func (s *CreateShortCodeMessageRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateShortCodeMessageRequest) Validate

func (s *CreateShortCodeMessageRequest) Validate() error

type CreateShortCodeMessageRequestType

type CreateShortCodeMessageRequestType string

The protocol for sending the message, either SMS or MMS.

const (
	CreateShortCodeMessageRequestTypeSMS CreateShortCodeMessageRequestType = "SMS"
	CreateShortCodeMessageRequestTypeMMS CreateShortCodeMessageRequestType = "MMS"
)

func (CreateShortCodeMessageRequestType) AllValues

AllValues returns all CreateShortCodeMessageRequestType values.

func (*CreateShortCodeMessageRequestType) Decode

Decode decodes CreateShortCodeMessageRequestType from json.

func (CreateShortCodeMessageRequestType) Encode

Encode encodes CreateShortCodeMessageRequestType as json.

func (CreateShortCodeMessageRequestType) MarshalJSON

func (s CreateShortCodeMessageRequestType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateShortCodeMessageRequestType) MarshalText

func (s CreateShortCodeMessageRequestType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateShortCodeMessageRequestType) UnmarshalJSON

func (s *CreateShortCodeMessageRequestType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateShortCodeMessageRequestType) UnmarshalText

func (s *CreateShortCodeMessageRequestType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateShortCodeMessageRequestType) Validate

type CreateShortCodeMessageRes

type CreateShortCodeMessageRes interface {
	// contains filtered or unexported methods
}

type CreateTeXMLSecretRequest

type CreateTeXMLSecretRequest struct {
	// Name used as a reference for the secret, if the name already exists within the account its value
	// will be replaced.
	Name string `json:"name"`
	// Secret value which will be used when rendering the TeXML template.
	Value string `json:"value"`
}

Ref: #/components/schemas/CreateTeXMLSecretRequest

func (*CreateTeXMLSecretRequest) Decode

func (s *CreateTeXMLSecretRequest) Decode(d *jx.Decoder) error

Decode decodes CreateTeXMLSecretRequest from json.

func (*CreateTeXMLSecretRequest) Encode

func (s *CreateTeXMLSecretRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTeXMLSecretRequest) GetName

func (s *CreateTeXMLSecretRequest) GetName() string

GetName returns the value of Name.

func (*CreateTeXMLSecretRequest) GetValue

func (s *CreateTeXMLSecretRequest) GetValue() string

GetValue returns the value of Value.

func (*CreateTeXMLSecretRequest) MarshalJSON

func (s *CreateTeXMLSecretRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTeXMLSecretRequest) SetName

func (s *CreateTeXMLSecretRequest) SetName(val string)

SetName sets the value of Name.

func (*CreateTeXMLSecretRequest) SetValue

func (s *CreateTeXMLSecretRequest) SetValue(val string)

SetValue sets the value of Value.

func (*CreateTeXMLSecretRequest) UnmarshalJSON

func (s *CreateTeXMLSecretRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTeXMLSecretResponse

type CreateTeXMLSecretResponse struct {
	Data OptCreateTeXMLSecretResult `json:"data"`
}

func (*CreateTeXMLSecretResponse) Decode

func (s *CreateTeXMLSecretResponse) Decode(d *jx.Decoder) error

Decode decodes CreateTeXMLSecretResponse from json.

func (*CreateTeXMLSecretResponse) Encode

func (s *CreateTeXMLSecretResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTeXMLSecretResponse) GetData

GetData returns the value of Data.

func (*CreateTeXMLSecretResponse) MarshalJSON

func (s *CreateTeXMLSecretResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTeXMLSecretResponse) SetData

SetData sets the value of Data.

func (*CreateTeXMLSecretResponse) UnmarshalJSON

func (s *CreateTeXMLSecretResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateTeXMLSecretResponse) Validate

func (s *CreateTeXMLSecretResponse) Validate() error

type CreateTeXMLSecretResult

type CreateTeXMLSecretResult struct {
	Name  OptString                       `json:"name"`
	Value OptCreateTeXMLSecretResultValue `json:"value"`
}

Ref: #/components/schemas/CreateTeXMLSecretResult

func (*CreateTeXMLSecretResult) Decode

func (s *CreateTeXMLSecretResult) Decode(d *jx.Decoder) error

Decode decodes CreateTeXMLSecretResult from json.

func (*CreateTeXMLSecretResult) Encode

func (s *CreateTeXMLSecretResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTeXMLSecretResult) GetName

func (s *CreateTeXMLSecretResult) GetName() OptString

GetName returns the value of Name.

func (*CreateTeXMLSecretResult) GetValue

GetValue returns the value of Value.

func (*CreateTeXMLSecretResult) MarshalJSON

func (s *CreateTeXMLSecretResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTeXMLSecretResult) SetName

func (s *CreateTeXMLSecretResult) SetName(val OptString)

SetName sets the value of Name.

func (*CreateTeXMLSecretResult) SetValue

SetValue sets the value of Value.

func (*CreateTeXMLSecretResult) UnmarshalJSON

func (s *CreateTeXMLSecretResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateTeXMLSecretResult) Validate

func (s *CreateTeXMLSecretResult) Validate() error

type CreateTeXMLSecretResultValue

type CreateTeXMLSecretResultValue string
const (
	CreateTeXMLSecretResultValue_ CreateTeXMLSecretResultValue = "*****"
)

func (CreateTeXMLSecretResultValue) AllValues

AllValues returns all CreateTeXMLSecretResultValue values.

func (*CreateTeXMLSecretResultValue) Decode

Decode decodes CreateTeXMLSecretResultValue from json.

func (CreateTeXMLSecretResultValue) Encode

Encode encodes CreateTeXMLSecretResultValue as json.

func (CreateTeXMLSecretResultValue) MarshalJSON

func (s CreateTeXMLSecretResultValue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateTeXMLSecretResultValue) MarshalText

func (s CreateTeXMLSecretResultValue) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateTeXMLSecretResultValue) UnmarshalJSON

func (s *CreateTeXMLSecretResultValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateTeXMLSecretResultValue) UnmarshalText

func (s *CreateTeXMLSecretResultValue) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateTeXMLSecretResultValue) Validate

func (s CreateTeXMLSecretResultValue) Validate() error

type CreateTelephonyCredentialRes

type CreateTelephonyCredentialRes interface {
	// contains filtered or unexported methods
}

type CreateTelephonyCredentialTokenCreated

type CreateTelephonyCredentialTokenCreated struct {
	Data io.Reader
}

func (CreateTelephonyCredentialTokenCreated) Read

func (s CreateTelephonyCredentialTokenCreated) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type CreateTelephonyCredentialTokenNotFound

type CreateTelephonyCredentialTokenNotFound struct{}

CreateTelephonyCredentialTokenNotFound is response for CreateTelephonyCredentialToken operation.

type CreateTelephonyCredentialTokenParams

type CreateTelephonyCredentialTokenParams struct {
	// Identifies the resource.
	ID string
}

CreateTelephonyCredentialTokenParams is parameters of CreateTelephonyCredentialToken operation.

type CreateTelephonyCredentialTokenRes

type CreateTelephonyCredentialTokenRes interface {
	// contains filtered or unexported methods
}

type CreateTelephonyCredentialUnprocessableEntity

type CreateTelephonyCredentialUnprocessableEntity struct{}

CreateTelephonyCredentialUnprocessableEntity is response for CreateTelephonyCredential operation.

type CreateTexmlApplicationNotFound

type CreateTexmlApplicationNotFound ErrorResponse

func (*CreateTexmlApplicationNotFound) Decode

Decode decodes CreateTexmlApplicationNotFound from json.

func (*CreateTexmlApplicationNotFound) Encode

Encode encodes CreateTexmlApplicationNotFound as json.

func (*CreateTexmlApplicationNotFound) MarshalJSON

func (s *CreateTexmlApplicationNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTexmlApplicationNotFound) UnmarshalJSON

func (s *CreateTexmlApplicationNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTexmlApplicationRequest

type CreateTexmlApplicationRequest struct {
	FriendlyName            ApplicationName            `json:"friendly_name"`
	Active                  OptConnectionActive        `json:"active"`
	AnchorsiteOverride      OptAnchorsiteOverride      `json:"anchorsite_override"`
	DtmfType                OptDtmfType                `json:"dtmf_type"`
	FirstCommandTimeout     OptFirstCommandTimeout     `json:"first_command_timeout"`
	FirstCommandTimeoutSecs OptFirstCommandTimeoutSecs `json:"first_command_timeout_secs"`
	// URL to which Telnyx will deliver your XML Translator webhooks.
	VoiceURL string `json:"voice_url"`
	// URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from
	// your voice_url.
	VoiceFallbackURL OptString `json:"voice_fallback_url"`
	// HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or
	// 'post'.
	VoiceMethod OptCreateTexmlApplicationRequestVoiceMethod `json:"voice_method"`
	// URL for Telnyx to send requests to containing information about call progress events.
	StatusCallback OptString `json:"status_callback"`
	// HTTP request method Telnyx should use when requesting the status_callback URL.
	StatusCallbackMethod OptCreateTexmlApplicationRequestStatusCallbackMethod `json:"status_callback_method"`
	Inbound              OptCreateTexmlApplicationRequestInbound              `json:"inbound"`
	Outbound             OptCreateTexmlApplicationRequestOutbound             `json:"outbound"`
}

Ref: #/components/schemas/CreateTexmlApplicationRequest

func (*CreateTexmlApplicationRequest) Decode

Decode decodes CreateTexmlApplicationRequest from json.

func (*CreateTexmlApplicationRequest) Encode

Encode implements json.Marshaler.

func (*CreateTexmlApplicationRequest) GetActive

GetActive returns the value of Active.

func (*CreateTexmlApplicationRequest) GetAnchorsiteOverride

func (s *CreateTexmlApplicationRequest) GetAnchorsiteOverride() OptAnchorsiteOverride

GetAnchorsiteOverride returns the value of AnchorsiteOverride.

func (*CreateTexmlApplicationRequest) GetDtmfType

func (s *CreateTexmlApplicationRequest) GetDtmfType() OptDtmfType

GetDtmfType returns the value of DtmfType.

func (*CreateTexmlApplicationRequest) GetFirstCommandTimeout

func (s *CreateTexmlApplicationRequest) GetFirstCommandTimeout() OptFirstCommandTimeout

GetFirstCommandTimeout returns the value of FirstCommandTimeout.

func (*CreateTexmlApplicationRequest) GetFirstCommandTimeoutSecs

func (s *CreateTexmlApplicationRequest) GetFirstCommandTimeoutSecs() OptFirstCommandTimeoutSecs

GetFirstCommandTimeoutSecs returns the value of FirstCommandTimeoutSecs.

func (*CreateTexmlApplicationRequest) GetFriendlyName

func (s *CreateTexmlApplicationRequest) GetFriendlyName() ApplicationName

GetFriendlyName returns the value of FriendlyName.

func (*CreateTexmlApplicationRequest) GetInbound

GetInbound returns the value of Inbound.

func (*CreateTexmlApplicationRequest) GetOutbound

GetOutbound returns the value of Outbound.

func (*CreateTexmlApplicationRequest) GetStatusCallback

func (s *CreateTexmlApplicationRequest) GetStatusCallback() OptString

GetStatusCallback returns the value of StatusCallback.

func (*CreateTexmlApplicationRequest) GetStatusCallbackMethod

GetStatusCallbackMethod returns the value of StatusCallbackMethod.

func (*CreateTexmlApplicationRequest) GetVoiceFallbackURL

func (s *CreateTexmlApplicationRequest) GetVoiceFallbackURL() OptString

GetVoiceFallbackURL returns the value of VoiceFallbackURL.

func (*CreateTexmlApplicationRequest) GetVoiceMethod

GetVoiceMethod returns the value of VoiceMethod.

func (*CreateTexmlApplicationRequest) GetVoiceURL

func (s *CreateTexmlApplicationRequest) GetVoiceURL() string

GetVoiceURL returns the value of VoiceURL.

func (*CreateTexmlApplicationRequest) MarshalJSON

func (s *CreateTexmlApplicationRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTexmlApplicationRequest) SetActive

SetActive sets the value of Active.

func (*CreateTexmlApplicationRequest) SetAnchorsiteOverride

func (s *CreateTexmlApplicationRequest) SetAnchorsiteOverride(val OptAnchorsiteOverride)

SetAnchorsiteOverride sets the value of AnchorsiteOverride.

func (*CreateTexmlApplicationRequest) SetDtmfType

func (s *CreateTexmlApplicationRequest) SetDtmfType(val OptDtmfType)

SetDtmfType sets the value of DtmfType.

func (*CreateTexmlApplicationRequest) SetFirstCommandTimeout

func (s *CreateTexmlApplicationRequest) SetFirstCommandTimeout(val OptFirstCommandTimeout)

SetFirstCommandTimeout sets the value of FirstCommandTimeout.

func (*CreateTexmlApplicationRequest) SetFirstCommandTimeoutSecs

func (s *CreateTexmlApplicationRequest) SetFirstCommandTimeoutSecs(val OptFirstCommandTimeoutSecs)

SetFirstCommandTimeoutSecs sets the value of FirstCommandTimeoutSecs.

func (*CreateTexmlApplicationRequest) SetFriendlyName

func (s *CreateTexmlApplicationRequest) SetFriendlyName(val ApplicationName)

SetFriendlyName sets the value of FriendlyName.

func (*CreateTexmlApplicationRequest) SetInbound

SetInbound sets the value of Inbound.

func (*CreateTexmlApplicationRequest) SetOutbound

SetOutbound sets the value of Outbound.

func (*CreateTexmlApplicationRequest) SetStatusCallback

func (s *CreateTexmlApplicationRequest) SetStatusCallback(val OptString)

SetStatusCallback sets the value of StatusCallback.

func (*CreateTexmlApplicationRequest) SetStatusCallbackMethod

SetStatusCallbackMethod sets the value of StatusCallbackMethod.

func (*CreateTexmlApplicationRequest) SetVoiceFallbackURL

func (s *CreateTexmlApplicationRequest) SetVoiceFallbackURL(val OptString)

SetVoiceFallbackURL sets the value of VoiceFallbackURL.

func (*CreateTexmlApplicationRequest) SetVoiceMethod

SetVoiceMethod sets the value of VoiceMethod.

func (*CreateTexmlApplicationRequest) SetVoiceURL

func (s *CreateTexmlApplicationRequest) SetVoiceURL(val string)

SetVoiceURL sets the value of VoiceURL.

func (*CreateTexmlApplicationRequest) UnmarshalJSON

func (s *CreateTexmlApplicationRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateTexmlApplicationRequest) Validate

func (s *CreateTexmlApplicationRequest) Validate() error

type CreateTexmlApplicationRequestInbound

type CreateTexmlApplicationRequestInbound struct {
	// When set, this will limit the total number of inbound calls to phone numbers associated with this
	// connection.
	ChannelLimit OptInt `json:"channel_limit"`
	// When enabled Telnyx will include Shaken/Stir data in the Webhook for new inbound calls.
	ShakenStirEnabled OptBool `json:"shaken_stir_enabled"`
	// Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a
	// phone number is used, from a SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be
	// called from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" where the user
	// part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain
	// calls.
	SipSubdomain OptNilString `json:"sip_subdomain"`
	// This option can be enabled to receive calls from: "Anyone" (any SIP endpoint in the public
	// Internet) or "Only my connections" (any connection assigned to the same Telnyx user).
	SipSubdomainReceiveSettings OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings `json:"sip_subdomain_receive_settings"`
}

func (*CreateTexmlApplicationRequestInbound) Decode

Decode decodes CreateTexmlApplicationRequestInbound from json.

func (*CreateTexmlApplicationRequestInbound) Encode

Encode implements json.Marshaler.

func (*CreateTexmlApplicationRequestInbound) GetChannelLimit

func (s *CreateTexmlApplicationRequestInbound) GetChannelLimit() OptInt

GetChannelLimit returns the value of ChannelLimit.

func (*CreateTexmlApplicationRequestInbound) GetShakenStirEnabled

func (s *CreateTexmlApplicationRequestInbound) GetShakenStirEnabled() OptBool

GetShakenStirEnabled returns the value of ShakenStirEnabled.

func (*CreateTexmlApplicationRequestInbound) GetSipSubdomain

GetSipSubdomain returns the value of SipSubdomain.

func (*CreateTexmlApplicationRequestInbound) GetSipSubdomainReceiveSettings

GetSipSubdomainReceiveSettings returns the value of SipSubdomainReceiveSettings.

func (*CreateTexmlApplicationRequestInbound) MarshalJSON

func (s *CreateTexmlApplicationRequestInbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTexmlApplicationRequestInbound) SetChannelLimit

func (s *CreateTexmlApplicationRequestInbound) SetChannelLimit(val OptInt)

SetChannelLimit sets the value of ChannelLimit.

func (*CreateTexmlApplicationRequestInbound) SetShakenStirEnabled

func (s *CreateTexmlApplicationRequestInbound) SetShakenStirEnabled(val OptBool)

SetShakenStirEnabled sets the value of ShakenStirEnabled.

func (*CreateTexmlApplicationRequestInbound) SetSipSubdomain

func (s *CreateTexmlApplicationRequestInbound) SetSipSubdomain(val OptNilString)

SetSipSubdomain sets the value of SipSubdomain.

func (*CreateTexmlApplicationRequestInbound) SetSipSubdomainReceiveSettings

SetSipSubdomainReceiveSettings sets the value of SipSubdomainReceiveSettings.

func (*CreateTexmlApplicationRequestInbound) UnmarshalJSON

func (s *CreateTexmlApplicationRequestInbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateTexmlApplicationRequestInbound) Validate

type CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings

type CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings string

This option can be enabled to receive calls from: "Anyone" (any SIP endpoint in the public Internet) or "Only my connections" (any connection assigned to the same Telnyx user).

const (
	CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettingsOnlyMyConnections CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings = "only_my_connections"
	CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettingsFromAnyone        CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings = "from_anyone"
)

func (CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) AllValues

AllValues returns all CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings values.

func (*CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Decode

Decode decodes CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings from json.

func (CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Encode

Encode encodes CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings as json.

func (CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Validate

type CreateTexmlApplicationRequestOutbound

type CreateTexmlApplicationRequestOutbound struct {
	// When set, this will limit the total number of outbound calls to phone numbers associated with this
	// connection.
	ChannelLimit           OptInt                    `json:"channel_limit"`
	OutboundVoiceProfileID OptOutboundVoiceProfileId `json:"outbound_voice_profile_id"`
}

func (*CreateTexmlApplicationRequestOutbound) Decode

Decode decodes CreateTexmlApplicationRequestOutbound from json.

func (*CreateTexmlApplicationRequestOutbound) Encode

Encode implements json.Marshaler.

func (*CreateTexmlApplicationRequestOutbound) GetChannelLimit

func (s *CreateTexmlApplicationRequestOutbound) GetChannelLimit() OptInt

GetChannelLimit returns the value of ChannelLimit.

func (*CreateTexmlApplicationRequestOutbound) GetOutboundVoiceProfileID

GetOutboundVoiceProfileID returns the value of OutboundVoiceProfileID.

func (*CreateTexmlApplicationRequestOutbound) MarshalJSON

func (s *CreateTexmlApplicationRequestOutbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTexmlApplicationRequestOutbound) SetChannelLimit

func (s *CreateTexmlApplicationRequestOutbound) SetChannelLimit(val OptInt)

SetChannelLimit sets the value of ChannelLimit.

func (*CreateTexmlApplicationRequestOutbound) SetOutboundVoiceProfileID

func (s *CreateTexmlApplicationRequestOutbound) SetOutboundVoiceProfileID(val OptOutboundVoiceProfileId)

SetOutboundVoiceProfileID sets the value of OutboundVoiceProfileID.

func (*CreateTexmlApplicationRequestOutbound) UnmarshalJSON

func (s *CreateTexmlApplicationRequestOutbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTexmlApplicationRequestStatusCallbackMethod

type CreateTexmlApplicationRequestStatusCallbackMethod string

HTTP request method Telnyx should use when requesting the status_callback URL.

const (
	CreateTexmlApplicationRequestStatusCallbackMethodGet  CreateTexmlApplicationRequestStatusCallbackMethod = "get"
	CreateTexmlApplicationRequestStatusCallbackMethodPost CreateTexmlApplicationRequestStatusCallbackMethod = "post"
)

func (CreateTexmlApplicationRequestStatusCallbackMethod) AllValues

AllValues returns all CreateTexmlApplicationRequestStatusCallbackMethod values.

func (*CreateTexmlApplicationRequestStatusCallbackMethod) Decode

Decode decodes CreateTexmlApplicationRequestStatusCallbackMethod from json.

func (CreateTexmlApplicationRequestStatusCallbackMethod) Encode

Encode encodes CreateTexmlApplicationRequestStatusCallbackMethod as json.

func (CreateTexmlApplicationRequestStatusCallbackMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CreateTexmlApplicationRequestStatusCallbackMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CreateTexmlApplicationRequestStatusCallbackMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateTexmlApplicationRequestStatusCallbackMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateTexmlApplicationRequestStatusCallbackMethod) Validate

type CreateTexmlApplicationRequestVoiceMethod

type CreateTexmlApplicationRequestVoiceMethod string

HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'.

const (
	CreateTexmlApplicationRequestVoiceMethodGet  CreateTexmlApplicationRequestVoiceMethod = "get"
	CreateTexmlApplicationRequestVoiceMethodPost CreateTexmlApplicationRequestVoiceMethod = "post"
)

func (CreateTexmlApplicationRequestVoiceMethod) AllValues

AllValues returns all CreateTexmlApplicationRequestVoiceMethod values.

func (*CreateTexmlApplicationRequestVoiceMethod) Decode

Decode decodes CreateTexmlApplicationRequestVoiceMethod from json.

func (CreateTexmlApplicationRequestVoiceMethod) Encode

Encode encodes CreateTexmlApplicationRequestVoiceMethod as json.

func (CreateTexmlApplicationRequestVoiceMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CreateTexmlApplicationRequestVoiceMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CreateTexmlApplicationRequestVoiceMethod) UnmarshalJSON

func (s *CreateTexmlApplicationRequestVoiceMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateTexmlApplicationRequestVoiceMethod) UnmarshalText

func (s *CreateTexmlApplicationRequestVoiceMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateTexmlApplicationRequestVoiceMethod) Validate

type CreateTexmlApplicationRes

type CreateTexmlApplicationRes interface {
	// contains filtered or unexported methods
}

type CreateTexmlApplicationUnauthorized

type CreateTexmlApplicationUnauthorized ErrorResponse

func (*CreateTexmlApplicationUnauthorized) Decode

Decode decodes CreateTexmlApplicationUnauthorized from json.

func (*CreateTexmlApplicationUnauthorized) Encode

Encode encodes CreateTexmlApplicationUnauthorized as json.

func (*CreateTexmlApplicationUnauthorized) MarshalJSON

func (s *CreateTexmlApplicationUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTexmlApplicationUnauthorized) UnmarshalJSON

func (s *CreateTexmlApplicationUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTexmlApplicationUnprocessableEntity

type CreateTexmlApplicationUnprocessableEntity ErrorResponse

func (*CreateTexmlApplicationUnprocessableEntity) Decode

Decode decodes CreateTexmlApplicationUnprocessableEntity from json.

func (*CreateTexmlApplicationUnprocessableEntity) Encode

Encode encodes CreateTexmlApplicationUnprocessableEntity as json.

func (*CreateTexmlApplicationUnprocessableEntity) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CreateTexmlApplicationUnprocessableEntity) UnmarshalJSON

func (s *CreateTexmlApplicationUnprocessableEntity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTexmlSecretRes

type CreateTexmlSecretRes interface {
	// contains filtered or unexported methods
}

type CreateUpdatePhoneNumbersJobAccepted

type CreateUpdatePhoneNumbersJobAccepted struct {
	Data OptPhoneNumbersJob `json:"data"`
}

func (*CreateUpdatePhoneNumbersJobAccepted) Decode

Decode decodes CreateUpdatePhoneNumbersJobAccepted from json.

func (*CreateUpdatePhoneNumbersJobAccepted) Encode

Encode implements json.Marshaler.

func (*CreateUpdatePhoneNumbersJobAccepted) GetData

GetData returns the value of Data.

func (*CreateUpdatePhoneNumbersJobAccepted) MarshalJSON

func (s *CreateUpdatePhoneNumbersJobAccepted) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUpdatePhoneNumbersJobAccepted) SetData

SetData sets the value of Data.

func (*CreateUpdatePhoneNumbersJobAccepted) UnmarshalJSON

func (s *CreateUpdatePhoneNumbersJobAccepted) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateUpdatePhoneNumbersJobAccepted) Validate

type CreateUpdatePhoneNumbersJobForbidden

type CreateUpdatePhoneNumbersJobForbidden Errors

func (*CreateUpdatePhoneNumbersJobForbidden) Decode

Decode decodes CreateUpdatePhoneNumbersJobForbidden from json.

func (*CreateUpdatePhoneNumbersJobForbidden) Encode

Encode encodes CreateUpdatePhoneNumbersJobForbidden as json.

func (*CreateUpdatePhoneNumbersJobForbidden) MarshalJSON

func (s *CreateUpdatePhoneNumbersJobForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateUpdatePhoneNumbersJobForbidden) UnmarshalJSON

func (s *CreateUpdatePhoneNumbersJobForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateUpdatePhoneNumbersJobRes

type CreateUpdatePhoneNumbersJobRes interface {
	// contains filtered or unexported methods
}

type CreateUpdatePhoneNumbersJobUnprocessableEntity

type CreateUpdatePhoneNumbersJobUnprocessableEntity Errors

func (*CreateUpdatePhoneNumbersJobUnprocessableEntity) Decode

Decode decodes CreateUpdatePhoneNumbersJobUnprocessableEntity from json.

func (*CreateUpdatePhoneNumbersJobUnprocessableEntity) Encode

Encode encodes CreateUpdatePhoneNumbersJobUnprocessableEntity as json.

func (*CreateUpdatePhoneNumbersJobUnprocessableEntity) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CreateUpdatePhoneNumbersJobUnprocessableEntity) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateVerificationCallRes

type CreateVerificationCallRes interface {
	// contains filtered or unexported methods
}

type CreateVerificationRequestCall

type CreateVerificationRequestCall struct {
	// +E164 formatted phone number.
	PhoneNumber string `json:"phone_number"`
	// The identifier of the associated Verify profile.
	VerifyProfileID uuid.UUID `json:"verify_profile_id"`
	// The number of seconds the verification code is valid for.
	TimeoutSecs OptInt `json:"timeout_secs"`
	// Must be less than the profile's default_verification_timeout_secs or timeout_secs, whichever is
	// lesser.
	CallTimeoutSecs OptInt `json:"call_timeout_secs"`
}

The request body when creating a verification. Ref: #/components/schemas/CreateVerificationRequestCall

func (*CreateVerificationRequestCall) Decode

Decode decodes CreateVerificationRequestCall from json.

func (*CreateVerificationRequestCall) Encode

Encode implements json.Marshaler.

func (*CreateVerificationRequestCall) GetCallTimeoutSecs

func (s *CreateVerificationRequestCall) GetCallTimeoutSecs() OptInt

GetCallTimeoutSecs returns the value of CallTimeoutSecs.

func (*CreateVerificationRequestCall) GetPhoneNumber

func (s *CreateVerificationRequestCall) GetPhoneNumber() string

GetPhoneNumber returns the value of PhoneNumber.

func (*CreateVerificationRequestCall) GetTimeoutSecs

func (s *CreateVerificationRequestCall) GetTimeoutSecs() OptInt

GetTimeoutSecs returns the value of TimeoutSecs.

func (*CreateVerificationRequestCall) GetVerifyProfileID

func (s *CreateVerificationRequestCall) GetVerifyProfileID() uuid.UUID

GetVerifyProfileID returns the value of VerifyProfileID.

func (*CreateVerificationRequestCall) MarshalJSON

func (s *CreateVerificationRequestCall) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateVerificationRequestCall) SetCallTimeoutSecs

func (s *CreateVerificationRequestCall) SetCallTimeoutSecs(val OptInt)

SetCallTimeoutSecs sets the value of CallTimeoutSecs.

func (*CreateVerificationRequestCall) SetPhoneNumber

func (s *CreateVerificationRequestCall) SetPhoneNumber(val string)

SetPhoneNumber sets the value of PhoneNumber.

func (*CreateVerificationRequestCall) SetTimeoutSecs

func (s *CreateVerificationRequestCall) SetTimeoutSecs(val OptInt)

SetTimeoutSecs sets the value of TimeoutSecs.

func (*CreateVerificationRequestCall) SetVerifyProfileID

func (s *CreateVerificationRequestCall) SetVerifyProfileID(val uuid.UUID)

SetVerifyProfileID sets the value of VerifyProfileID.

func (*CreateVerificationRequestCall) UnmarshalJSON

func (s *CreateVerificationRequestCall) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateVerificationRequestFlashcall

type CreateVerificationRequestFlashcall struct {
	// +E164 formatted phone number.
	PhoneNumber string `json:"phone_number"`
	// The identifier of the associated Verify profile.
	VerifyProfileID uuid.UUID `json:"verify_profile_id"`
	// The number of seconds the verification code is valid for.
	TimeoutSecs OptInt `json:"timeout_secs"`
}

The request body when creating a verification. Ref: #/components/schemas/CreateVerificationRequestFlashcall

func (*CreateVerificationRequestFlashcall) Decode

Decode decodes CreateVerificationRequestFlashcall from json.

func (*CreateVerificationRequestFlashcall) Encode

Encode implements json.Marshaler.

func (*CreateVerificationRequestFlashcall) GetPhoneNumber

func (s *CreateVerificationRequestFlashcall) GetPhoneNumber() string

GetPhoneNumber returns the value of PhoneNumber.

func (*CreateVerificationRequestFlashcall) GetTimeoutSecs

func (s *CreateVerificationRequestFlashcall) GetTimeoutSecs() OptInt

GetTimeoutSecs returns the value of TimeoutSecs.

func (*CreateVerificationRequestFlashcall) GetVerifyProfileID

func (s *CreateVerificationRequestFlashcall) GetVerifyProfileID() uuid.UUID

GetVerifyProfileID returns the value of VerifyProfileID.

func (*CreateVerificationRequestFlashcall) MarshalJSON

func (s *CreateVerificationRequestFlashcall) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateVerificationRequestFlashcall) SetPhoneNumber

func (s *CreateVerificationRequestFlashcall) SetPhoneNumber(val string)

SetPhoneNumber sets the value of PhoneNumber.

func (*CreateVerificationRequestFlashcall) SetTimeoutSecs

func (s *CreateVerificationRequestFlashcall) SetTimeoutSecs(val OptInt)

SetTimeoutSecs sets the value of TimeoutSecs.

func (*CreateVerificationRequestFlashcall) SetVerifyProfileID

func (s *CreateVerificationRequestFlashcall) SetVerifyProfileID(val uuid.UUID)

SetVerifyProfileID sets the value of VerifyProfileID.

func (*CreateVerificationRequestFlashcall) UnmarshalJSON

func (s *CreateVerificationRequestFlashcall) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateVerificationRequestSMS

type CreateVerificationRequestSMS struct {
	// +E164 formatted phone number.
	PhoneNumber string `json:"phone_number"`
	// The identifier of the associated Verify profile.
	VerifyProfileID uuid.UUID `json:"verify_profile_id"`
	// The number of seconds the verification code is valid for.
	TimeoutSecs OptInt `json:"timeout_secs"`
}

The request body when creating a verification. Ref: #/components/schemas/CreateVerificationRequestSMS

func (*CreateVerificationRequestSMS) Decode

Decode decodes CreateVerificationRequestSMS from json.

func (*CreateVerificationRequestSMS) Encode

func (s *CreateVerificationRequestSMS) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateVerificationRequestSMS) GetPhoneNumber

func (s *CreateVerificationRequestSMS) GetPhoneNumber() string

GetPhoneNumber returns the value of PhoneNumber.

func (*CreateVerificationRequestSMS) GetTimeoutSecs

func (s *CreateVerificationRequestSMS) GetTimeoutSecs() OptInt

GetTimeoutSecs returns the value of TimeoutSecs.

func (*CreateVerificationRequestSMS) GetVerifyProfileID

func (s *CreateVerificationRequestSMS) GetVerifyProfileID() uuid.UUID

GetVerifyProfileID returns the value of VerifyProfileID.

func (*CreateVerificationRequestSMS) MarshalJSON

func (s *CreateVerificationRequestSMS) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateVerificationRequestSMS) SetPhoneNumber

func (s *CreateVerificationRequestSMS) SetPhoneNumber(val string)

SetPhoneNumber sets the value of PhoneNumber.

func (*CreateVerificationRequestSMS) SetTimeoutSecs

func (s *CreateVerificationRequestSMS) SetTimeoutSecs(val OptInt)

SetTimeoutSecs sets the value of TimeoutSecs.

func (*CreateVerificationRequestSMS) SetVerifyProfileID

func (s *CreateVerificationRequestSMS) SetVerifyProfileID(val uuid.UUID)

SetVerifyProfileID sets the value of VerifyProfileID.

func (*CreateVerificationRequestSMS) UnmarshalJSON

func (s *CreateVerificationRequestSMS) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateVerificationResponse

type CreateVerificationResponse struct {
	Data Verification `json:"data"`
}

Ref: #/components/schemas/CreateVerificationResponse

func (*CreateVerificationResponse) Decode

Decode decodes CreateVerificationResponse from json.

func (*CreateVerificationResponse) Encode

func (s *CreateVerificationResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateVerificationResponse) GetData

GetData returns the value of Data.

func (*CreateVerificationResponse) MarshalJSON

func (s *CreateVerificationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateVerificationResponse) SetData

func (s *CreateVerificationResponse) SetData(val Verification)

SetData sets the value of Data.

func (*CreateVerificationResponse) UnmarshalJSON

func (s *CreateVerificationResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateVerificationResponse) Validate

func (s *CreateVerificationResponse) Validate() error

type CreateVerificationSmsRes

type CreateVerificationSmsRes interface {
	// contains filtered or unexported methods
}

type CreateVerifiedCallsDisplayProfileRequest

type CreateVerifiedCallsDisplayProfileRequest struct {
	// The ID of the business identity that owns the record.
	BusinessIdentityID uuid.UUID      `json:"business_identity_id"`
	Name               Name           `json:"name"`
	DisplayName        OptDisplayName `json:"display_name"`
	LogoURL            OptLogoURL     `json:"logo_url"`
	CallReasons        CallReasons    `json:"call_reasons"`
	PhoneNumbers       PhoneNumbers   `json:"phone_numbers"`
}

Ref: #/components/schemas/CreateVerifiedCallsDisplayProfileRequest

func (*CreateVerifiedCallsDisplayProfileRequest) Decode

Decode decodes CreateVerifiedCallsDisplayProfileRequest from json.

func (*CreateVerifiedCallsDisplayProfileRequest) Encode

Encode implements json.Marshaler.

func (*CreateVerifiedCallsDisplayProfileRequest) GetBusinessIdentityID

func (s *CreateVerifiedCallsDisplayProfileRequest) GetBusinessIdentityID() uuid.UUID

GetBusinessIdentityID returns the value of BusinessIdentityID.

func (*CreateVerifiedCallsDisplayProfileRequest) GetCallReasons

GetCallReasons returns the value of CallReasons.

func (*CreateVerifiedCallsDisplayProfileRequest) GetDisplayName

GetDisplayName returns the value of DisplayName.

func (*CreateVerifiedCallsDisplayProfileRequest) GetLogoURL

GetLogoURL returns the value of LogoURL.

func (*CreateVerifiedCallsDisplayProfileRequest) GetName

GetName returns the value of Name.

func (*CreateVerifiedCallsDisplayProfileRequest) GetPhoneNumbers

GetPhoneNumbers returns the value of PhoneNumbers.

func (*CreateVerifiedCallsDisplayProfileRequest) MarshalJSON

func (s *CreateVerifiedCallsDisplayProfileRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateVerifiedCallsDisplayProfileRequest) SetBusinessIdentityID

func (s *CreateVerifiedCallsDisplayProfileRequest) SetBusinessIdentityID(val uuid.UUID)

SetBusinessIdentityID sets the value of BusinessIdentityID.

func (*CreateVerifiedCallsDisplayProfileRequest) SetCallReasons

SetCallReasons sets the value of CallReasons.

func (*CreateVerifiedCallsDisplayProfileRequest) SetDisplayName

SetDisplayName sets the value of DisplayName.

func (*CreateVerifiedCallsDisplayProfileRequest) SetLogoURL

SetLogoURL sets the value of LogoURL.

func (*CreateVerifiedCallsDisplayProfileRequest) SetName

SetName sets the value of Name.

func (*CreateVerifiedCallsDisplayProfileRequest) SetPhoneNumbers

SetPhoneNumbers sets the value of PhoneNumbers.

func (*CreateVerifiedCallsDisplayProfileRequest) UnmarshalJSON

func (s *CreateVerifiedCallsDisplayProfileRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateVerifiedCallsDisplayProfileRequest) Validate

type CreateVerifiedNumberReq

type CreateVerifiedNumberReq struct {
	PhoneNumber string `json:"phone_number"`
	// Verification method.
	VerificationMethod CreateVerifiedNumberReqVerificationMethod `json:"verification_method"`
}

func (*CreateVerifiedNumberReq) Decode

func (s *CreateVerifiedNumberReq) Decode(d *jx.Decoder) error

Decode decodes CreateVerifiedNumberReq from json.

func (*CreateVerifiedNumberReq) Encode

func (s *CreateVerifiedNumberReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateVerifiedNumberReq) GetPhoneNumber

func (s *CreateVerifiedNumberReq) GetPhoneNumber() string

GetPhoneNumber returns the value of PhoneNumber.

func (*CreateVerifiedNumberReq) GetVerificationMethod

GetVerificationMethod returns the value of VerificationMethod.

func (*CreateVerifiedNumberReq) MarshalJSON

func (s *CreateVerifiedNumberReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateVerifiedNumberReq) SetPhoneNumber

func (s *CreateVerifiedNumberReq) SetPhoneNumber(val string)

SetPhoneNumber sets the value of PhoneNumber.

func (*CreateVerifiedNumberReq) SetVerificationMethod

SetVerificationMethod sets the value of VerificationMethod.

func (*CreateVerifiedNumberReq) UnmarshalJSON

func (s *CreateVerifiedNumberReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateVerifiedNumberReq) Validate

func (s *CreateVerifiedNumberReq) Validate() error

type CreateVerifiedNumberReqVerificationMethod

type CreateVerifiedNumberReqVerificationMethod string

Verification method.

const (
	CreateVerifiedNumberReqVerificationMethodSMS  CreateVerifiedNumberReqVerificationMethod = "sms"
	CreateVerifiedNumberReqVerificationMethodCall CreateVerifiedNumberReqVerificationMethod = "call"
)

func (CreateVerifiedNumberReqVerificationMethod) AllValues

AllValues returns all CreateVerifiedNumberReqVerificationMethod values.

func (*CreateVerifiedNumberReqVerificationMethod) Decode

Decode decodes CreateVerifiedNumberReqVerificationMethod from json.

func (CreateVerifiedNumberReqVerificationMethod) Encode

Encode encodes CreateVerifiedNumberReqVerificationMethod as json.

func (CreateVerifiedNumberReqVerificationMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (CreateVerifiedNumberReqVerificationMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*CreateVerifiedNumberReqVerificationMethod) UnmarshalJSON

func (s *CreateVerifiedNumberReqVerificationMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateVerifiedNumberReqVerificationMethod) UnmarshalText

func (s *CreateVerifiedNumberReqVerificationMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateVerifiedNumberReqVerificationMethod) Validate

type CreateVerifiedNumberRes

type CreateVerifiedNumberRes interface {
	// contains filtered or unexported methods
}

type CreateVerifiedNumberResponse

type CreateVerifiedNumberResponse struct {
	PhoneNumber        OptString `json:"phone_number"`
	VerificationMethod OptString `json:"verification_method"`
}

Ref: #/components/schemas/CreateVerifiedNumberResponse

func (*CreateVerifiedNumberResponse) Decode

Decode decodes CreateVerifiedNumberResponse from json.

func (*CreateVerifiedNumberResponse) Encode

func (s *CreateVerifiedNumberResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateVerifiedNumberResponse) GetPhoneNumber

func (s *CreateVerifiedNumberResponse) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*CreateVerifiedNumberResponse) GetVerificationMethod

func (s *CreateVerifiedNumberResponse) GetVerificationMethod() OptString

GetVerificationMethod returns the value of VerificationMethod.

func (*CreateVerifiedNumberResponse) MarshalJSON

func (s *CreateVerifiedNumberResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateVerifiedNumberResponse) SetPhoneNumber

func (s *CreateVerifiedNumberResponse) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*CreateVerifiedNumberResponse) SetVerificationMethod

func (s *CreateVerifiedNumberResponse) SetVerificationMethod(val OptString)

SetVerificationMethod sets the value of VerificationMethod.

func (*CreateVerifiedNumberResponse) UnmarshalJSON

func (s *CreateVerifiedNumberResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateVerifyProfileCallRequest

type CreateVerifyProfileCallRequest struct {
	// The message template identifier selected from /verify_profiles/templates.
	MessagingTemplateID OptUUID `json:"messaging_template_id"`
	// The name that identifies the application requesting 2fa in the verification message.
	AppName OptString `json:"app_name"`
	// Enabled country destinations to send verification codes. The elements in the list must be valid
	// ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all destinations will be allowed.
	WhitelistedDestinations []string `json:"whitelisted_destinations"`
	// For every request that is initiated via this Verify profile, this sets the number of seconds
	// before a verification request code expires. Once the verification request expires, the user cannot
	// use the code to verify their identity.
	DefaultVerificationTimeoutSecs OptInt `json:"default_verification_timeout_secs"`
}

Ref: #/components/schemas/CreateVerifyProfileCallRequest

func (*CreateVerifyProfileCallRequest) Decode

Decode decodes CreateVerifyProfileCallRequest from json.

func (*CreateVerifyProfileCallRequest) Encode

Encode implements json.Marshaler.

func (*CreateVerifyProfileCallRequest) GetAppName

func (s *CreateVerifyProfileCallRequest) GetAppName() OptString

GetAppName returns the value of AppName.

func (*CreateVerifyProfileCallRequest) GetDefaultVerificationTimeoutSecs

func (s *CreateVerifyProfileCallRequest) GetDefaultVerificationTimeoutSecs() OptInt

GetDefaultVerificationTimeoutSecs returns the value of DefaultVerificationTimeoutSecs.

func (*CreateVerifyProfileCallRequest) GetMessagingTemplateID

func (s *CreateVerifyProfileCallRequest) GetMessagingTemplateID() OptUUID

GetMessagingTemplateID returns the value of MessagingTemplateID.

func (*CreateVerifyProfileCallRequest) GetWhitelistedDestinations

func (s *CreateVerifyProfileCallRequest) GetWhitelistedDestinations() []string

GetWhitelistedDestinations returns the value of WhitelistedDestinations.

func (*CreateVerifyProfileCallRequest) MarshalJSON

func (s *CreateVerifyProfileCallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateVerifyProfileCallRequest) SetAppName

func (s *CreateVerifyProfileCallRequest) SetAppName(val OptString)

SetAppName sets the value of AppName.

func (*CreateVerifyProfileCallRequest) SetDefaultVerificationTimeoutSecs

func (s *CreateVerifyProfileCallRequest) SetDefaultVerificationTimeoutSecs(val OptInt)

SetDefaultVerificationTimeoutSecs sets the value of DefaultVerificationTimeoutSecs.

func (*CreateVerifyProfileCallRequest) SetMessagingTemplateID

func (s *CreateVerifyProfileCallRequest) SetMessagingTemplateID(val OptUUID)

SetMessagingTemplateID sets the value of MessagingTemplateID.

func (*CreateVerifyProfileCallRequest) SetWhitelistedDestinations

func (s *CreateVerifyProfileCallRequest) SetWhitelistedDestinations(val []string)

SetWhitelistedDestinations sets the value of WhitelistedDestinations.

func (*CreateVerifyProfileCallRequest) UnmarshalJSON

func (s *CreateVerifyProfileCallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateVerifyProfileCallRequest) Validate

func (s *CreateVerifyProfileCallRequest) Validate() error

type CreateVerifyProfileFlashcallRequest

type CreateVerifyProfileFlashcallRequest struct {
	// Enabled country destinations to send verification codes. The elements in the list must be valid
	// ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all destinations will be allowed.
	WhitelistedDestinations []string `json:"whitelisted_destinations"`
	// For every request that is initiated via this Verify profile, this sets the number of seconds
	// before a verification request code expires. Once the verification request expires, the user cannot
	// use the code to verify their identity.
	DefaultVerificationTimeoutSecs OptInt `json:"default_verification_timeout_secs"`
}

Ref: #/components/schemas/CreateVerifyProfileFlashcallRequest

func (*CreateVerifyProfileFlashcallRequest) Decode

Decode decodes CreateVerifyProfileFlashcallRequest from json.

func (*CreateVerifyProfileFlashcallRequest) Encode

Encode implements json.Marshaler.

func (*CreateVerifyProfileFlashcallRequest) GetDefaultVerificationTimeoutSecs

func (s *CreateVerifyProfileFlashcallRequest) GetDefaultVerificationTimeoutSecs() OptInt

GetDefaultVerificationTimeoutSecs returns the value of DefaultVerificationTimeoutSecs.

func (*CreateVerifyProfileFlashcallRequest) GetWhitelistedDestinations

func (s *CreateVerifyProfileFlashcallRequest) GetWhitelistedDestinations() []string

GetWhitelistedDestinations returns the value of WhitelistedDestinations.

func (*CreateVerifyProfileFlashcallRequest) MarshalJSON

func (s *CreateVerifyProfileFlashcallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateVerifyProfileFlashcallRequest) SetDefaultVerificationTimeoutSecs

func (s *CreateVerifyProfileFlashcallRequest) SetDefaultVerificationTimeoutSecs(val OptInt)

SetDefaultVerificationTimeoutSecs sets the value of DefaultVerificationTimeoutSecs.

func (*CreateVerifyProfileFlashcallRequest) SetWhitelistedDestinations

func (s *CreateVerifyProfileFlashcallRequest) SetWhitelistedDestinations(val []string)

SetWhitelistedDestinations sets the value of WhitelistedDestinations.

func (*CreateVerifyProfileFlashcallRequest) UnmarshalJSON

func (s *CreateVerifyProfileFlashcallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateVerifyProfileFlashcallRequest) Validate

type CreateVerifyProfileReq

type CreateVerifyProfileReq struct {
	Name               string                                 `json:"name"`
	WebhookURL         OptString                              `json:"webhook_url"`
	WebhookFailoverURL OptString                              `json:"webhook_failover_url"`
	SMS                OptCreateVerifyProfileSMSRequest       `json:"sms"`
	Call               OptCreateVerifyProfileCallRequest      `json:"call"`
	Flashcall          OptCreateVerifyProfileFlashcallRequest `json:"flashcall"`
	Language           OptString                              `json:"language"`
}

func (*CreateVerifyProfileReq) Decode

func (s *CreateVerifyProfileReq) Decode(d *jx.Decoder) error

Decode decodes CreateVerifyProfileReq from json.

func (*CreateVerifyProfileReq) Encode

func (s *CreateVerifyProfileReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateVerifyProfileReq) GetCall

GetCall returns the value of Call.

func (*CreateVerifyProfileReq) GetFlashcall

GetFlashcall returns the value of Flashcall.

func (*CreateVerifyProfileReq) GetLanguage

func (s *CreateVerifyProfileReq) GetLanguage() OptString

GetLanguage returns the value of Language.

func (*CreateVerifyProfileReq) GetName

func (s *CreateVerifyProfileReq) GetName() string

GetName returns the value of Name.

func (*CreateVerifyProfileReq) GetSMS

GetSMS returns the value of SMS.

func (*CreateVerifyProfileReq) GetWebhookFailoverURL

func (s *CreateVerifyProfileReq) GetWebhookFailoverURL() OptString

GetWebhookFailoverURL returns the value of WebhookFailoverURL.

func (*CreateVerifyProfileReq) GetWebhookURL

func (s *CreateVerifyProfileReq) GetWebhookURL() OptString

GetWebhookURL returns the value of WebhookURL.

func (*CreateVerifyProfileReq) MarshalJSON

func (s *CreateVerifyProfileReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateVerifyProfileReq) SetCall

SetCall sets the value of Call.

func (*CreateVerifyProfileReq) SetFlashcall

SetFlashcall sets the value of Flashcall.

func (*CreateVerifyProfileReq) SetLanguage

func (s *CreateVerifyProfileReq) SetLanguage(val OptString)

SetLanguage sets the value of Language.

func (*CreateVerifyProfileReq) SetName

func (s *CreateVerifyProfileReq) SetName(val string)

SetName sets the value of Name.

func (*CreateVerifyProfileReq) SetSMS

SetSMS sets the value of SMS.

func (*CreateVerifyProfileReq) SetWebhookFailoverURL

func (s *CreateVerifyProfileReq) SetWebhookFailoverURL(val OptString)

SetWebhookFailoverURL sets the value of WebhookFailoverURL.

func (*CreateVerifyProfileReq) SetWebhookURL

func (s *CreateVerifyProfileReq) SetWebhookURL(val OptString)

SetWebhookURL sets the value of WebhookURL.

func (*CreateVerifyProfileReq) UnmarshalJSON

func (s *CreateVerifyProfileReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateVerifyProfileReq) Validate

func (s *CreateVerifyProfileReq) Validate() error

type CreateVerifyProfileRes

type CreateVerifyProfileRes interface {
	// contains filtered or unexported methods
}

type CreateVerifyProfileSMSRequest

type CreateVerifyProfileSMSRequest struct {
	// The message template identifier selected from /verify_profiles/templates.
	MessagingTemplateID OptUUID `json:"messaging_template_id"`
	// The name that identifies the application requesting 2fa in the verification message.
	AppName OptString `json:"app_name"`
	// The alphanumeric sender ID to use when sending to destinations that require an alphanumeric sender
	// ID.
	AlphaSender OptNilString `json:"alpha_sender"`
	// Enabled country destinations to send verification codes. The elements in the list must be valid
	// ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all destinations will be allowed.
	WhitelistedDestinations []string `json:"whitelisted_destinations"`
	// For every request that is initiated via this Verify profile, this sets the number of seconds
	// before a verification request code expires. Once the verification request expires, the user cannot
	// use the code to verify their identity.
	DefaultVerificationTimeoutSecs OptInt `json:"default_verification_timeout_secs"`
}

Ref: #/components/schemas/CreateVerifyProfileSMSRequest

func (*CreateVerifyProfileSMSRequest) Decode

Decode decodes CreateVerifyProfileSMSRequest from json.

func (*CreateVerifyProfileSMSRequest) Encode

Encode implements json.Marshaler.

func (*CreateVerifyProfileSMSRequest) GetAlphaSender

func (s *CreateVerifyProfileSMSRequest) GetAlphaSender() OptNilString

GetAlphaSender returns the value of AlphaSender.

func (*CreateVerifyProfileSMSRequest) GetAppName

func (s *CreateVerifyProfileSMSRequest) GetAppName() OptString

GetAppName returns the value of AppName.

func (*CreateVerifyProfileSMSRequest) GetDefaultVerificationTimeoutSecs

func (s *CreateVerifyProfileSMSRequest) GetDefaultVerificationTimeoutSecs() OptInt

GetDefaultVerificationTimeoutSecs returns the value of DefaultVerificationTimeoutSecs.

func (*CreateVerifyProfileSMSRequest) GetMessagingTemplateID

func (s *CreateVerifyProfileSMSRequest) GetMessagingTemplateID() OptUUID

GetMessagingTemplateID returns the value of MessagingTemplateID.

func (*CreateVerifyProfileSMSRequest) GetWhitelistedDestinations

func (s *CreateVerifyProfileSMSRequest) GetWhitelistedDestinations() []string

GetWhitelistedDestinations returns the value of WhitelistedDestinations.

func (*CreateVerifyProfileSMSRequest) MarshalJSON

func (s *CreateVerifyProfileSMSRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateVerifyProfileSMSRequest) SetAlphaSender

func (s *CreateVerifyProfileSMSRequest) SetAlphaSender(val OptNilString)

SetAlphaSender sets the value of AlphaSender.

func (*CreateVerifyProfileSMSRequest) SetAppName

func (s *CreateVerifyProfileSMSRequest) SetAppName(val OptString)

SetAppName sets the value of AppName.

func (*CreateVerifyProfileSMSRequest) SetDefaultVerificationTimeoutSecs

func (s *CreateVerifyProfileSMSRequest) SetDefaultVerificationTimeoutSecs(val OptInt)

SetDefaultVerificationTimeoutSecs sets the value of DefaultVerificationTimeoutSecs.

func (*CreateVerifyProfileSMSRequest) SetMessagingTemplateID

func (s *CreateVerifyProfileSMSRequest) SetMessagingTemplateID(val OptUUID)

SetMessagingTemplateID sets the value of MessagingTemplateID.

func (*CreateVerifyProfileSMSRequest) SetWhitelistedDestinations

func (s *CreateVerifyProfileSMSRequest) SetWhitelistedDestinations(val []string)

SetWhitelistedDestinations sets the value of WhitelistedDestinations.

func (*CreateVerifyProfileSMSRequest) UnmarshalJSON

func (s *CreateVerifyProfileSMSRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateVerifyProfileSMSRequest) Validate

func (s *CreateVerifyProfileSMSRequest) Validate() error

type CreateVoiceProfileNotFound

type CreateVoiceProfileNotFound struct{}

CreateVoiceProfileNotFound is response for CreateVoiceProfile operation.

type CreateVoiceProfileRes

type CreateVoiceProfileRes interface {
	// contains filtered or unexported methods
}

type CreateVoiceProfileUnauthorized

type CreateVoiceProfileUnauthorized struct{}

CreateVoiceProfileUnauthorized is response for CreateVoiceProfile operation.

type CreateVoiceProfileUnprocessableEntity

type CreateVoiceProfileUnprocessableEntity struct{}

CreateVoiceProfileUnprocessableEntity is response for CreateVoiceProfile operation.

type CreatedAt

type CreatedAt string

func (*CreatedAt) Decode

func (s *CreatedAt) Decode(d *jx.Decoder) error

Decode decodes CreatedAt from json.

func (CreatedAt) Encode

func (s CreatedAt) Encode(e *jx.Encoder)

Encode encodes CreatedAt as json.

func (CreatedAt) MarshalJSON

func (s CreatedAt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatedAt) UnmarshalJSON

func (s *CreatedAt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Credentials

type Credentials string

func (*Credentials) Decode

func (s *Credentials) Decode(d *jx.Decoder) error

Decode decodes Credentials from json.

func (Credentials) Encode

func (s Credentials) Encode(e *jx.Encoder)

Encode encodes Credentials as json.

func (Credentials) MarshalJSON

func (s Credentials) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Credentials) UnmarshalJSON

func (s *Credentials) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CredentialsResponse

type CredentialsResponse struct {
	Data CustomStorageConfiguration `json:"data"`
	// Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource.
	ConnectionID string     `json:"connection_id"`
	RecordType   RecordType `json:"record_type"`
}

Ref: #/components/schemas/CredentialsResponse

func (*CredentialsResponse) Decode

func (s *CredentialsResponse) Decode(d *jx.Decoder) error

Decode decodes CredentialsResponse from json.

func (*CredentialsResponse) Encode

func (s *CredentialsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CredentialsResponse) GetConnectionID

func (s *CredentialsResponse) GetConnectionID() string

GetConnectionID returns the value of ConnectionID.

func (*CredentialsResponse) GetData

GetData returns the value of Data.

func (*CredentialsResponse) GetRecordType

func (s *CredentialsResponse) GetRecordType() RecordType

GetRecordType returns the value of RecordType.

func (*CredentialsResponse) MarshalJSON

func (s *CredentialsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CredentialsResponse) SetConnectionID

func (s *CredentialsResponse) SetConnectionID(val string)

SetConnectionID sets the value of ConnectionID.

func (*CredentialsResponse) SetData

SetData sets the value of Data.

func (*CredentialsResponse) SetRecordType

func (s *CredentialsResponse) SetRecordType(val RecordType)

SetRecordType sets the value of RecordType.

func (*CredentialsResponse) UnmarshalJSON

func (s *CredentialsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CredentialsResponse) Validate

func (s *CredentialsResponse) Validate() error

type CsvDownload

type CsvDownload struct {
	// Identifies the resource.
	ID OptString `json:"id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// The URL at which the CSV file can be retrieved.
	URL OptString `json:"url"`
	// Indicates the completion level of the CSV report. Only complete CSV download requests will be able
	// to be retrieved.
	Status OptCsvDownloadStatus `json:"status"`
}

Ref: #/components/schemas/CsvDownload

func (*CsvDownload) Decode

func (s *CsvDownload) Decode(d *jx.Decoder) error

Decode decodes CsvDownload from json.

func (*CsvDownload) Encode

func (s *CsvDownload) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CsvDownload) GetID

func (s *CsvDownload) GetID() OptString

GetID returns the value of ID.

func (*CsvDownload) GetRecordType

func (s *CsvDownload) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*CsvDownload) GetStatus

func (s *CsvDownload) GetStatus() OptCsvDownloadStatus

GetStatus returns the value of Status.

func (*CsvDownload) GetURL

func (s *CsvDownload) GetURL() OptString

GetURL returns the value of URL.

func (*CsvDownload) MarshalJSON

func (s *CsvDownload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CsvDownload) SetID

func (s *CsvDownload) SetID(val OptString)

SetID sets the value of ID.

func (*CsvDownload) SetRecordType

func (s *CsvDownload) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*CsvDownload) SetStatus

func (s *CsvDownload) SetStatus(val OptCsvDownloadStatus)

SetStatus sets the value of Status.

func (*CsvDownload) SetURL

func (s *CsvDownload) SetURL(val OptString)

SetURL sets the value of URL.

func (*CsvDownload) UnmarshalJSON

func (s *CsvDownload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CsvDownload) Validate

func (s *CsvDownload) Validate() error

type CsvDownloadResponse

type CsvDownloadResponse struct {
	Data []CsvDownload `json:"data"`
}

func (*CsvDownloadResponse) Decode

func (s *CsvDownloadResponse) Decode(d *jx.Decoder) error

Decode decodes CsvDownloadResponse from json.

func (*CsvDownloadResponse) Encode

func (s *CsvDownloadResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CsvDownloadResponse) GetData

func (s *CsvDownloadResponse) GetData() []CsvDownload

GetData returns the value of Data.

func (*CsvDownloadResponse) MarshalJSON

func (s *CsvDownloadResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CsvDownloadResponse) SetData

func (s *CsvDownloadResponse) SetData(val []CsvDownload)

SetData sets the value of Data.

func (*CsvDownloadResponse) UnmarshalJSON

func (s *CsvDownloadResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CsvDownloadResponse) Validate

func (s *CsvDownloadResponse) Validate() error

type CsvDownloadStatus

type CsvDownloadStatus string

Indicates the completion level of the CSV report. Only complete CSV download requests will be able to be retrieved.

const (
	CsvDownloadStatusPending  CsvDownloadStatus = "pending"
	CsvDownloadStatusComplete CsvDownloadStatus = "complete"
	CsvDownloadStatusFailed   CsvDownloadStatus = "failed"
	CsvDownloadStatusExpired  CsvDownloadStatus = "expired"
)

func (CsvDownloadStatus) AllValues

func (CsvDownloadStatus) AllValues() []CsvDownloadStatus

AllValues returns all CsvDownloadStatus values.

func (*CsvDownloadStatus) Decode

func (s *CsvDownloadStatus) Decode(d *jx.Decoder) error

Decode decodes CsvDownloadStatus from json.

func (CsvDownloadStatus) Encode

func (s CsvDownloadStatus) Encode(e *jx.Encoder)

Encode encodes CsvDownloadStatus as json.

func (CsvDownloadStatus) MarshalJSON

func (s CsvDownloadStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CsvDownloadStatus) MarshalText

func (s CsvDownloadStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CsvDownloadStatus) UnmarshalJSON

func (s *CsvDownloadStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CsvDownloadStatus) UnmarshalText

func (s *CsvDownloadStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CsvDownloadStatus) Validate

func (s CsvDownloadStatus) Validate() error

type Cursor

type Cursor struct {
	// Opaque identifier of next page.
	After OptString `json:"after"`
	// Opaque identifier of previous page.
	Before OptString `json:"before"`
}

Ref: #/components/schemas/Cursor

func (*Cursor) Decode

func (s *Cursor) Decode(d *jx.Decoder) error

Decode decodes Cursor from json.

func (*Cursor) Encode

func (s *Cursor) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Cursor) GetAfter

func (s *Cursor) GetAfter() OptString

GetAfter returns the value of After.

func (*Cursor) GetBefore

func (s *Cursor) GetBefore() OptString

GetBefore returns the value of Before.

func (*Cursor) MarshalJSON

func (s *Cursor) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Cursor) SetAfter

func (s *Cursor) SetAfter(val OptString)

SetAfter sets the value of After.

func (*Cursor) SetBefore

func (s *Cursor) SetBefore(val OptString)

SetBefore sets the value of Before.

func (*Cursor) UnmarshalJSON

func (s *Cursor) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CursorPaginationMeta

type CursorPaginationMeta struct {
	Cursors OptCursor `json:"cursors"`
	// Path to next page.
	Next OptString `json:"next"`
	// Path to previous page.
	Previous OptString `json:"previous"`
}

Ref: #/components/schemas/CursorPaginationMeta

func (*CursorPaginationMeta) Decode

func (s *CursorPaginationMeta) Decode(d *jx.Decoder) error

Decode decodes CursorPaginationMeta from json.

func (*CursorPaginationMeta) Encode

func (s *CursorPaginationMeta) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CursorPaginationMeta) GetCursors

func (s *CursorPaginationMeta) GetCursors() OptCursor

GetCursors returns the value of Cursors.

func (*CursorPaginationMeta) GetNext

func (s *CursorPaginationMeta) GetNext() OptString

GetNext returns the value of Next.

func (*CursorPaginationMeta) GetPrevious

func (s *CursorPaginationMeta) GetPrevious() OptString

GetPrevious returns the value of Previous.

func (*CursorPaginationMeta) MarshalJSON

func (s *CursorPaginationMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CursorPaginationMeta) SetCursors

func (s *CursorPaginationMeta) SetCursors(val OptCursor)

SetCursors sets the value of Cursors.

func (*CursorPaginationMeta) SetNext

func (s *CursorPaginationMeta) SetNext(val OptString)

SetNext sets the value of Next.

func (*CursorPaginationMeta) SetPrevious

func (s *CursorPaginationMeta) SetPrevious(val OptString)

SetPrevious sets the value of Previous.

func (*CursorPaginationMeta) UnmarshalJSON

func (s *CursorPaginationMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CustomSipHeader

type CustomSipHeader struct {
	// The name of the header to add.
	Name string `json:"name"`
	// The value of the header.
	Value string `json:"value"`
}

Ref: #/components/schemas/CustomSipHeader

func (*CustomSipHeader) Decode

func (s *CustomSipHeader) Decode(d *jx.Decoder) error

Decode decodes CustomSipHeader from json.

func (*CustomSipHeader) Encode

func (s *CustomSipHeader) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CustomSipHeader) GetName

func (s *CustomSipHeader) GetName() string

GetName returns the value of Name.

func (*CustomSipHeader) GetValue

func (s *CustomSipHeader) GetValue() string

GetValue returns the value of Value.

func (*CustomSipHeader) MarshalJSON

func (s *CustomSipHeader) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CustomSipHeader) SetName

func (s *CustomSipHeader) SetName(val string)

SetName sets the value of Name.

func (*CustomSipHeader) SetValue

func (s *CustomSipHeader) SetValue(val string)

SetValue sets the value of Value.

func (*CustomSipHeader) UnmarshalJSON

func (s *CustomSipHeader) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CustomStorageConfiguration

type CustomStorageConfiguration struct {
	Backend       CustomStorageConfigurationBackend       `json:"backend"`
	Configuration CustomStorageConfigurationConfiguration `json:"configuration"`
}

Ref: #/components/schemas/CustomStorageConfiguration

func (*CustomStorageConfiguration) Decode

Decode decodes CustomStorageConfiguration from json.

func (*CustomStorageConfiguration) Encode

func (s *CustomStorageConfiguration) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CustomStorageConfiguration) GetBackend

GetBackend returns the value of Backend.

func (*CustomStorageConfiguration) GetConfiguration

GetConfiguration returns the value of Configuration.

func (*CustomStorageConfiguration) MarshalJSON

func (s *CustomStorageConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CustomStorageConfiguration) SetBackend

SetBackend sets the value of Backend.

func (*CustomStorageConfiguration) SetConfiguration

SetConfiguration sets the value of Configuration.

func (*CustomStorageConfiguration) UnmarshalJSON

func (s *CustomStorageConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CustomStorageConfiguration) Validate

func (s *CustomStorageConfiguration) Validate() error

type CustomStorageConfigurationBackend

type CustomStorageConfigurationBackend string
const (
	CustomStorageConfigurationBackendGcs   CustomStorageConfigurationBackend = "gcs"
	CustomStorageConfigurationBackendS3    CustomStorageConfigurationBackend = "s3"
	CustomStorageConfigurationBackendAzure CustomStorageConfigurationBackend = "azure"
)

func (CustomStorageConfigurationBackend) AllValues

AllValues returns all CustomStorageConfigurationBackend values.

func (*CustomStorageConfigurationBackend) Decode

Decode decodes CustomStorageConfigurationBackend from json.

func (CustomStorageConfigurationBackend) Encode

Encode encodes CustomStorageConfigurationBackend as json.

func (CustomStorageConfigurationBackend) MarshalJSON

func (s CustomStorageConfigurationBackend) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CustomStorageConfigurationBackend) MarshalText

func (s CustomStorageConfigurationBackend) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CustomStorageConfigurationBackend) UnmarshalJSON

func (s *CustomStorageConfigurationBackend) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CustomStorageConfigurationBackend) UnmarshalText

func (s *CustomStorageConfigurationBackend) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CustomStorageConfigurationBackend) Validate

type CustomStorageConfigurationConfiguration

type CustomStorageConfigurationConfiguration struct {
	Type                   CustomStorageConfigurationConfigurationType // switch on this field
	GCSConfigurationData   GCSConfigurationData
	S3ConfigurationData    S3ConfigurationData
	AzureConfigurationData AzureConfigurationData
}

CustomStorageConfigurationConfiguration represents sum type.

func NewAzureConfigurationDataCustomStorageConfigurationConfiguration

func NewAzureConfigurationDataCustomStorageConfigurationConfiguration(v AzureConfigurationData) CustomStorageConfigurationConfiguration

NewAzureConfigurationDataCustomStorageConfigurationConfiguration returns new CustomStorageConfigurationConfiguration from AzureConfigurationData.

func NewGCSConfigurationDataCustomStorageConfigurationConfiguration

func NewGCSConfigurationDataCustomStorageConfigurationConfiguration(v GCSConfigurationData) CustomStorageConfigurationConfiguration

NewGCSConfigurationDataCustomStorageConfigurationConfiguration returns new CustomStorageConfigurationConfiguration from GCSConfigurationData.

func NewS3ConfigurationDataCustomStorageConfigurationConfiguration

func NewS3ConfigurationDataCustomStorageConfigurationConfiguration(v S3ConfigurationData) CustomStorageConfigurationConfiguration

NewS3ConfigurationDataCustomStorageConfigurationConfiguration returns new CustomStorageConfigurationConfiguration from S3ConfigurationData.

func (*CustomStorageConfigurationConfiguration) Decode

Decode decodes CustomStorageConfigurationConfiguration from json.

func (CustomStorageConfigurationConfiguration) Encode

Encode encodes CustomStorageConfigurationConfiguration as json.

func (CustomStorageConfigurationConfiguration) GetAzureConfigurationData

func (s CustomStorageConfigurationConfiguration) GetAzureConfigurationData() (v AzureConfigurationData, ok bool)

GetAzureConfigurationData returns AzureConfigurationData and true boolean if CustomStorageConfigurationConfiguration is AzureConfigurationData.

func (CustomStorageConfigurationConfiguration) GetGCSConfigurationData

func (s CustomStorageConfigurationConfiguration) GetGCSConfigurationData() (v GCSConfigurationData, ok bool)

GetGCSConfigurationData returns GCSConfigurationData and true boolean if CustomStorageConfigurationConfiguration is GCSConfigurationData.

func (CustomStorageConfigurationConfiguration) GetS3ConfigurationData

func (s CustomStorageConfigurationConfiguration) GetS3ConfigurationData() (v S3ConfigurationData, ok bool)

GetS3ConfigurationData returns S3ConfigurationData and true boolean if CustomStorageConfigurationConfiguration is S3ConfigurationData.

func (CustomStorageConfigurationConfiguration) IsAzureConfigurationData

func (s CustomStorageConfigurationConfiguration) IsAzureConfigurationData() bool

IsAzureConfigurationData reports whether CustomStorageConfigurationConfiguration is AzureConfigurationData.

func (CustomStorageConfigurationConfiguration) IsGCSConfigurationData

func (s CustomStorageConfigurationConfiguration) IsGCSConfigurationData() bool

IsGCSConfigurationData reports whether CustomStorageConfigurationConfiguration is GCSConfigurationData.

func (CustomStorageConfigurationConfiguration) IsS3ConfigurationData

func (s CustomStorageConfigurationConfiguration) IsS3ConfigurationData() bool

IsS3ConfigurationData reports whether CustomStorageConfigurationConfiguration is S3ConfigurationData.

func (CustomStorageConfigurationConfiguration) MarshalJSON

func (s CustomStorageConfigurationConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CustomStorageConfigurationConfiguration) SetAzureConfigurationData

func (s *CustomStorageConfigurationConfiguration) SetAzureConfigurationData(v AzureConfigurationData)

SetAzureConfigurationData sets CustomStorageConfigurationConfiguration to AzureConfigurationData.

func (*CustomStorageConfigurationConfiguration) SetGCSConfigurationData

func (s *CustomStorageConfigurationConfiguration) SetGCSConfigurationData(v GCSConfigurationData)

SetGCSConfigurationData sets CustomStorageConfigurationConfiguration to GCSConfigurationData.

func (*CustomStorageConfigurationConfiguration) SetS3ConfigurationData

func (s *CustomStorageConfigurationConfiguration) SetS3ConfigurationData(v S3ConfigurationData)

SetS3ConfigurationData sets CustomStorageConfigurationConfiguration to S3ConfigurationData.

func (*CustomStorageConfigurationConfiguration) UnmarshalJSON

func (s *CustomStorageConfigurationConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CustomStorageConfigurationConfigurationType

type CustomStorageConfigurationConfigurationType string

CustomStorageConfigurationConfigurationType is oneOf type of CustomStorageConfigurationConfiguration.

const (
	GCSConfigurationDataCustomStorageConfigurationConfiguration   CustomStorageConfigurationConfigurationType = "GCSConfigurationData"
	S3ConfigurationDataCustomStorageConfigurationConfiguration    CustomStorageConfigurationConfigurationType = "S3ConfigurationData"
	AzureConfigurationDataCustomStorageConfigurationConfiguration CustomStorageConfigurationConfigurationType = "AzureConfigurationData"
)

Possible values for CustomStorageConfigurationConfigurationType.

type DateTimeRFC2822

type DateTimeRFC2822 string

func (*DateTimeRFC2822) Decode

func (s *DateTimeRFC2822) Decode(d *jx.Decoder) error

Decode decodes DateTimeRFC2822 from json.

func (DateTimeRFC2822) Encode

func (s DateTimeRFC2822) Encode(e *jx.Encoder)

Encode encodes DateTimeRFC2822 as json.

func (DateTimeRFC2822) MarshalJSON

func (s DateTimeRFC2822) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DateTimeRFC2822) UnmarshalJSON

func (s *DateTimeRFC2822) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DefaultGateway

type DefaultGateway struct {
	// Identifies the resource.
	ID OptUUID `json:"id"`
	// Merged property.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date-time indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date-time indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
	// Network ID.
	NetworkID OptUUID `json:"network_id"`
	// Wireguard peer ID.
	WireguardPeerID OptUUID            `json:"wireguard_peer_id"`
	Status          OptInterfaceStatus `json:"status"`
}

Merged schema. Ref: #/components/schemas/DefaultGateway

func (*DefaultGateway) Decode

func (s *DefaultGateway) Decode(d *jx.Decoder) error

Decode decodes DefaultGateway from json.

func (*DefaultGateway) Encode

func (s *DefaultGateway) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DefaultGateway) GetCreatedAt

func (s *DefaultGateway) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*DefaultGateway) GetID

func (s *DefaultGateway) GetID() OptUUID

GetID returns the value of ID.

func (*DefaultGateway) GetNetworkID

func (s *DefaultGateway) GetNetworkID() OptUUID

GetNetworkID returns the value of NetworkID.

func (*DefaultGateway) GetRecordType

func (s *DefaultGateway) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*DefaultGateway) GetStatus

func (s *DefaultGateway) GetStatus() OptInterfaceStatus

GetStatus returns the value of Status.

func (*DefaultGateway) GetUpdatedAt

func (s *DefaultGateway) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*DefaultGateway) GetWireguardPeerID

func (s *DefaultGateway) GetWireguardPeerID() OptUUID

GetWireguardPeerID returns the value of WireguardPeerID.

func (*DefaultGateway) MarshalJSON

func (s *DefaultGateway) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DefaultGateway) SetCreatedAt

func (s *DefaultGateway) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*DefaultGateway) SetID

func (s *DefaultGateway) SetID(val OptUUID)

SetID sets the value of ID.

func (*DefaultGateway) SetNetworkID

func (s *DefaultGateway) SetNetworkID(val OptUUID)

SetNetworkID sets the value of NetworkID.

func (*DefaultGateway) SetRecordType

func (s *DefaultGateway) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*DefaultGateway) SetStatus

func (s *DefaultGateway) SetStatus(val OptInterfaceStatus)

SetStatus sets the value of Status.

func (*DefaultGateway) SetUpdatedAt

func (s *DefaultGateway) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*DefaultGateway) SetWireguardPeerID

func (s *DefaultGateway) SetWireguardPeerID(val OptUUID)

SetWireguardPeerID sets the value of WireguardPeerID.

func (*DefaultGateway) UnmarshalJSON

func (s *DefaultGateway) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DefaultGateway) Validate

func (s *DefaultGateway) Validate() error

type DefaultGatewayResponse

type DefaultGatewayResponse struct {
	Data []DefaultGateway  `json:"data"`
	Meta OptPaginationMeta `json:"meta"`
}

func (*DefaultGatewayResponse) Decode

func (s *DefaultGatewayResponse) Decode(d *jx.Decoder) error

Decode decodes DefaultGatewayResponse from json.

func (*DefaultGatewayResponse) Encode

func (s *DefaultGatewayResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DefaultGatewayResponse) GetData

func (s *DefaultGatewayResponse) GetData() []DefaultGateway

GetData returns the value of Data.

func (*DefaultGatewayResponse) GetMeta

GetMeta returns the value of Meta.

func (*DefaultGatewayResponse) MarshalJSON

func (s *DefaultGatewayResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DefaultGatewayResponse) SetData

func (s *DefaultGatewayResponse) SetData(val []DefaultGateway)

SetData sets the value of Data.

func (*DefaultGatewayResponse) SetMeta

func (s *DefaultGatewayResponse) SetMeta(val OptPaginationMeta)

SetMeta sets the value of Meta.

func (*DefaultGatewayResponse) UnmarshalJSON

func (s *DefaultGatewayResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DefaultGatewayResponse) Validate

func (s *DefaultGatewayResponse) Validate() error

type DeleteAdditionalDocumentNoContent

type DeleteAdditionalDocumentNoContent struct{}

DeleteAdditionalDocumentNoContent is response for DeleteAdditionalDocument operation.

type DeleteAdditionalDocumentNotFound

type DeleteAdditionalDocumentNotFound struct{}

DeleteAdditionalDocumentNotFound is response for DeleteAdditionalDocument operation.

type DeleteAdditionalDocumentParams

type DeleteAdditionalDocumentParams struct {
	// Porting Order id.
	ID uuid.UUID
	// Additional document identification.
	AdditionalDocumentID uuid.UUID
}

DeleteAdditionalDocumentParams is parameters of DeleteAdditionalDocument operation.

type DeleteAdditionalDocumentRes

type DeleteAdditionalDocumentRes interface {
	// contains filtered or unexported methods
}

type DeleteAdditionalDocumentUnauthorized

type DeleteAdditionalDocumentUnauthorized struct{}

DeleteAdditionalDocumentUnauthorized is response for DeleteAdditionalDocument operation.

type DeleteCallControlApplicationNotFound

type DeleteCallControlApplicationNotFound struct{}

DeleteCallControlApplicationNotFound is response for DeleteCallControlApplication operation.

type DeleteCallControlApplicationParams

type DeleteCallControlApplicationParams struct {
	// Identifies the resource.
	ID int64
}

DeleteCallControlApplicationParams is parameters of DeleteCallControlApplication operation.

type DeleteCallControlApplicationRes

type DeleteCallControlApplicationRes interface {
	// contains filtered or unexported methods
}

type DeleteCallControlApplicationUnprocessableEntity

type DeleteCallControlApplicationUnprocessableEntity struct{}

DeleteCallControlApplicationUnprocessableEntity is response for DeleteCallControlApplication operation.

type DeleteCustomStorageCredentialsNoContent

type DeleteCustomStorageCredentialsNoContent struct{}

DeleteCustomStorageCredentialsNoContent is response for DeleteCustomStorageCredentials operation.

type DeleteCustomStorageCredentialsParams

type DeleteCustomStorageCredentialsParams struct {
	// Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource.
	ConnectionID string
}

DeleteCustomStorageCredentialsParams is parameters of DeleteCustomStorageCredentials operation.

type DeleteCustomStorageCredentialsRes

type DeleteCustomStorageCredentialsRes interface {
	// contains filtered or unexported methods
}

type DeleteDefaultGatewayParams

type DeleteDefaultGatewayParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

DeleteDefaultGatewayParams is parameters of DeleteDefaultGateway operation.

type DeleteDefaultGatewayRes

type DeleteDefaultGatewayRes interface {
	// contains filtered or unexported methods
}

type DeleteExternalConnectionLogMessageNotFound

type DeleteExternalConnectionLogMessageNotFound struct{}

DeleteExternalConnectionLogMessageNotFound is response for DeleteExternalConnectionLogMessage operation.

type DeleteExternalConnectionLogMessageOK

type DeleteExternalConnectionLogMessageOK struct {
	// Describes wether or not the operation was successful.
	Success OptBool `json:"success"`
}

func (*DeleteExternalConnectionLogMessageOK) Decode

Decode decodes DeleteExternalConnectionLogMessageOK from json.

func (*DeleteExternalConnectionLogMessageOK) Encode

Encode implements json.Marshaler.

func (*DeleteExternalConnectionLogMessageOK) GetSuccess

GetSuccess returns the value of Success.

func (*DeleteExternalConnectionLogMessageOK) MarshalJSON

func (s *DeleteExternalConnectionLogMessageOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteExternalConnectionLogMessageOK) SetSuccess

func (s *DeleteExternalConnectionLogMessageOK) SetSuccess(val OptBool)

SetSuccess sets the value of Success.

func (*DeleteExternalConnectionLogMessageOK) UnmarshalJSON

func (s *DeleteExternalConnectionLogMessageOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteExternalConnectionLogMessageParams

type DeleteExternalConnectionLogMessageParams struct {
	// Identifies the resource.
	ID int64
}

DeleteExternalConnectionLogMessageParams is parameters of DeleteExternalConnectionLogMessage operation.

type DeleteExternalConnectionLogMessageRes

type DeleteExternalConnectionLogMessageRes interface {
	// contains filtered or unexported methods
}

type DeleteExternalConnectionLogMessageUnauthorized

type DeleteExternalConnectionLogMessageUnauthorized struct{}

DeleteExternalConnectionLogMessageUnauthorized is response for DeleteExternalConnectionLogMessage operation.

type DeleteLoaConfigurationInternalServerError

type DeleteLoaConfigurationInternalServerError struct{}

DeleteLoaConfigurationInternalServerError is response for DeleteLoaConfiguration operation.

type DeleteLoaConfigurationNoContent

type DeleteLoaConfigurationNoContent struct{}

DeleteLoaConfigurationNoContent is response for DeleteLoaConfiguration operation.

type DeleteLoaConfigurationNotFound

type DeleteLoaConfigurationNotFound struct{}

DeleteLoaConfigurationNotFound is response for DeleteLoaConfiguration operation.

type DeleteLoaConfigurationParams

type DeleteLoaConfigurationParams struct {
	// Identifies a LOA configuration.
	ID uuid.UUID
}

DeleteLoaConfigurationParams is parameters of DeleteLoaConfiguration operation.

type DeleteLoaConfigurationRes

type DeleteLoaConfigurationRes interface {
	// contains filtered or unexported methods
}

type DeleteNetworkParams

type DeleteNetworkParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

DeleteNetworkParams is parameters of DeleteNetwork operation.

type DeleteNetworkRes

type DeleteNetworkRes interface {
	// contains filtered or unexported methods
}

type DeleteNotificationChannelOK

type DeleteNotificationChannelOK struct {
	Data OptNotificationChannel `json:"data"`
}

func (*DeleteNotificationChannelOK) Decode

Decode decodes DeleteNotificationChannelOK from json.

func (*DeleteNotificationChannelOK) Encode

func (s *DeleteNotificationChannelOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DeleteNotificationChannelOK) GetData

GetData returns the value of Data.

func (*DeleteNotificationChannelOK) MarshalJSON

func (s *DeleteNotificationChannelOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteNotificationChannelOK) SetData

SetData sets the value of Data.

func (*DeleteNotificationChannelOK) UnmarshalJSON

func (s *DeleteNotificationChannelOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteNotificationChannelOK) Validate

func (s *DeleteNotificationChannelOK) Validate() error

type DeleteNotificationChannelParams

type DeleteNotificationChannelParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

DeleteNotificationChannelParams is parameters of DeleteNotificationChannel operation.

type DeleteNotificationChannelRes

type DeleteNotificationChannelRes interface {
	// contains filtered or unexported methods
}

type DeleteOutboundVoiceProfileNotFound

type DeleteOutboundVoiceProfileNotFound struct{}

DeleteOutboundVoiceProfileNotFound is response for DeleteOutboundVoiceProfile operation.

type DeleteOutboundVoiceProfileParams

type DeleteOutboundVoiceProfileParams struct {
	// Identifies the resource.
	ID int64
}

DeleteOutboundVoiceProfileParams is parameters of DeleteOutboundVoiceProfile operation.

type DeleteOutboundVoiceProfileRes

type DeleteOutboundVoiceProfileRes interface {
	// contains filtered or unexported methods
}

type DeleteOutboundVoiceProfileUnauthorized

type DeleteOutboundVoiceProfileUnauthorized struct{}

DeleteOutboundVoiceProfileUnauthorized is response for DeleteOutboundVoiceProfile operation.

type DeleteOutboundVoiceProfileUnprocessableEntity

type DeleteOutboundVoiceProfileUnprocessableEntity struct{}

DeleteOutboundVoiceProfileUnprocessableEntity is response for DeleteOutboundVoiceProfile operation.

type DeletePhoneNumberParams

type DeletePhoneNumberParams struct {
	// Identifies the resource.
	ID int64
}

DeletePhoneNumberParams is parameters of DeletePhoneNumber operation.

type DeletePhoneNumberRes

type DeletePhoneNumberRes interface {
	// contains filtered or unexported methods
}

type DeletePhoneNumberResponse

type DeletePhoneNumberResponse struct {
	Data OptPhoneNumberDeletedDetailed `json:"data"`
}

func (*DeletePhoneNumberResponse) Decode

func (s *DeletePhoneNumberResponse) Decode(d *jx.Decoder) error

Decode decodes DeletePhoneNumberResponse from json.

func (*DeletePhoneNumberResponse) Encode

func (s *DeletePhoneNumberResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DeletePhoneNumberResponse) GetData

GetData returns the value of Data.

func (*DeletePhoneNumberResponse) MarshalJSON

func (s *DeletePhoneNumberResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeletePhoneNumberResponse) SetData

SetData sets the value of Data.

func (*DeletePhoneNumberResponse) UnmarshalJSON

func (s *DeletePhoneNumberResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeletePhoneNumberResponse) Validate

func (s *DeletePhoneNumberResponse) Validate() error

type DeletePortingOrderNoContent

type DeletePortingOrderNoContent struct{}

DeletePortingOrderNoContent is response for DeletePortingOrder operation.

type DeletePortingOrderParams

type DeletePortingOrderParams struct {
	// Porting Order id.
	ID uuid.UUID
}

DeletePortingOrderParams is parameters of DeletePortingOrder operation.

type DeletePortingOrderRes

type DeletePortingOrderRes interface {
	// contains filtered or unexported methods
}

type DeletePortingOrderUnauthorized

type DeletePortingOrderUnauthorized struct{}

DeletePortingOrderUnauthorized is response for DeletePortingOrder operation.

type DeletePortingOrderUnprocessableEntity

type DeletePortingOrderUnprocessableEntity struct{}

DeletePortingOrderUnprocessableEntity is response for DeletePortingOrder operation.

type DeletePrivateWirelessGatewayResponse

type DeletePrivateWirelessGatewayResponse struct {
	Data OptPrivateWirelessGateway `json:"data"`
}

func (*DeletePrivateWirelessGatewayResponse) Decode

Decode decodes DeletePrivateWirelessGatewayResponse from json.

func (*DeletePrivateWirelessGatewayResponse) Encode

Encode implements json.Marshaler.

func (*DeletePrivateWirelessGatewayResponse) GetData

GetData returns the value of Data.

func (*DeletePrivateWirelessGatewayResponse) MarshalJSON

func (s *DeletePrivateWirelessGatewayResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeletePrivateWirelessGatewayResponse) SetData

SetData sets the value of Data.

func (*DeletePrivateWirelessGatewayResponse) UnmarshalJSON

func (s *DeletePrivateWirelessGatewayResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeletePrivateWirelessGatewayResponse) Validate

type DeleteProfileParams

type DeleteProfileParams struct {
	// The identifier of the Verify profile to delete.
	VerifyProfileID uuid.UUID
}

DeleteProfileParams is parameters of DeleteProfile operation.

type DeleteProfileRes

type DeleteProfileRes interface {
	// contains filtered or unexported methods
}

type DeleteRecordingParams

type DeleteRecordingParams struct {
	// Uniquely identifies the recording by id.
	RecordingID string
}

DeleteRecordingParams is parameters of DeleteRecording operation.

type DeleteRecordingRes

type DeleteRecordingRes interface {
	// contains filtered or unexported methods
}

type DeleteRecordingTranscriptionParams

type DeleteRecordingTranscriptionParams struct {
	RecordingTranscriptionID uuid.UUID
}

DeleteRecordingTranscriptionParams is parameters of deleteRecordingTranscription operation.

type DeleteRecordingTranscriptionRes

type DeleteRecordingTranscriptionRes interface {
	// contains filtered or unexported methods
}

type DeleteRecordingsNoContent

type DeleteRecordingsNoContent struct{}

DeleteRecordingsNoContent is response for DeleteRecordings operation.

type DeleteRecordingsRes

type DeleteRecordingsRes interface {
	// contains filtered or unexported methods
}

type DeleteRoomRecordingNoContent

type DeleteRoomRecordingNoContent struct{}

DeleteRoomRecordingNoContent is response for DeleteRoomRecording operation.

type DeleteRoomRecordingParams

type DeleteRoomRecordingParams struct {
	// The unique identifier of a room recording.
	RoomRecordingID uuid.UUID
}

DeleteRoomRecordingParams is parameters of DeleteRoomRecording operation.

type DeleteRoomRecordingRes

type DeleteRoomRecordingRes interface {
	// contains filtered or unexported methods
}

type DeleteRoomRecordingsParams

type DeleteRoomRecordingsParams struct {
	// ISO 8601 date for filtering room recordings ended on that date.
	FilterDateEndedAtEq OptDate
	// ISO 8601 date for filtering room recordings ended after that date.
	FilterDateEndedAtGte OptDate
	// ISO 8601 date for filtering room recordings ended before that date.
	FilterDateEndedAtLte OptDate
	// ISO 8601 date for filtering room recordings started on that date.
	FilterDateStartedAtEq OptDate
	// ISO 8601 date for filtering room recordings started after that date.
	FilterDateStartedAtGte OptDate
	// ISO 8601 date for filtering room recordings started before that date.
	FilterDateStartedAtLte OptDate
	// Room_id for filtering room recordings.
	FilterRoomID OptUUID
	// Participant_id for filtering room recordings.
	FilterParticipantID OptUUID
	// Session_id for filtering room recordings.
	FilterSessionID OptUUID
	// Status for filtering room recordings.
	FilterStatus OptString
	// Type for filtering room recordings.
	FilterType OptString
	// Duration_secs equal for filtering room recordings.
	FilterDurationSecsEq OptInt
	// Duration_secs less or equal for filtering room recordings.
	FilterDurationSecsLte OptInt
	// Duration_secs greater or equal for filtering room recordings.
	FilterDurationSecsGte OptInt
	// The size of the page.
	PageSize OptInt
	// The page number to load.
	PageNumber OptInt
}

DeleteRoomRecordingsParams is parameters of DeleteRoomRecordings operation.

type DeleteRoomRecordingsRes

type DeleteRoomRecordingsRes interface {
	// contains filtered or unexported methods
}

type DeleteTeXMLCallRecordingNoContent

type DeleteTeXMLCallRecordingNoContent struct{}

DeleteTeXMLCallRecordingNoContent is response for DeleteTeXMLCallRecording operation.

type DeleteTeXMLCallRecordingParams

type DeleteTeXMLCallRecordingParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// Uniquely identifies the recording by id.
	RecordingSid uuid.UUID
}

DeleteTeXMLCallRecordingParams is parameters of DeleteTeXMLCallRecording operation.

type DeleteTeXMLCallRecordingRes

type DeleteTeXMLCallRecordingRes interface {
	// contains filtered or unexported methods
}

type DeleteTeXMLRecordingTranscriptionNoContent

type DeleteTeXMLRecordingTranscriptionNoContent struct{}

DeleteTeXMLRecordingTranscriptionNoContent is response for DeleteTeXMLRecordingTranscription operation.

type DeleteTeXMLRecordingTranscriptionParams

type DeleteTeXMLRecordingTranscriptionParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// Uniquely identifies the recording transcription by id.
	RecordingTranscriptionSid uuid.UUID
}

DeleteTeXMLRecordingTranscriptionParams is parameters of DeleteTeXMLRecordingTranscription operation.

type DeleteTeXMLRecordingTranscriptionRes

type DeleteTeXMLRecordingTranscriptionRes interface {
	// contains filtered or unexported methods
}

type DeleteTelephonyCredentialNotFound

type DeleteTelephonyCredentialNotFound struct{}

DeleteTelephonyCredentialNotFound is response for DeleteTelephonyCredential operation.

type DeleteTelephonyCredentialParams

type DeleteTelephonyCredentialParams struct {
	// Identifies the resource.
	ID string
}

DeleteTelephonyCredentialParams is parameters of DeleteTelephonyCredential operation.

type DeleteTelephonyCredentialRes

type DeleteTelephonyCredentialRes interface {
	// contains filtered or unexported methods
}

type DeleteTelephonyCredentialUnauthorized

type DeleteTelephonyCredentialUnauthorized struct{}

DeleteTelephonyCredentialUnauthorized is response for DeleteTelephonyCredential operation.

type DeleteTelephonyCredentialUnprocessableEntity

type DeleteTelephonyCredentialUnprocessableEntity struct{}

DeleteTelephonyCredentialUnprocessableEntity is response for DeleteTelephonyCredential operation.

type DeleteTelephonyCredentialsParams

type DeleteTelephonyCredentialsParams struct {
	// Filter by tag, required by bulk operations.
	FilterTag string
}

DeleteTelephonyCredentialsParams is parameters of DeleteTelephonyCredentials operation.

type DeleteTelephonyCredentialsRes

type DeleteTelephonyCredentialsRes interface {
	// contains filtered or unexported methods
}

type DeleteTelephonyCredentialsUnprocessableEntity

type DeleteTelephonyCredentialsUnprocessableEntity struct{}

DeleteTelephonyCredentialsUnprocessableEntity is response for DeleteTelephonyCredentials operation.

type DeleteTexmlApplicationBadRequest

type DeleteTexmlApplicationBadRequest ErrorResponse

func (*DeleteTexmlApplicationBadRequest) Decode

Decode decodes DeleteTexmlApplicationBadRequest from json.

func (*DeleteTexmlApplicationBadRequest) Encode

Encode encodes DeleteTexmlApplicationBadRequest as json.

func (*DeleteTexmlApplicationBadRequest) MarshalJSON

func (s *DeleteTexmlApplicationBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteTexmlApplicationBadRequest) UnmarshalJSON

func (s *DeleteTexmlApplicationBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteTexmlApplicationNotFound

type DeleteTexmlApplicationNotFound ErrorResponse

func (*DeleteTexmlApplicationNotFound) Decode

Decode decodes DeleteTexmlApplicationNotFound from json.

func (*DeleteTexmlApplicationNotFound) Encode

Encode encodes DeleteTexmlApplicationNotFound as json.

func (*DeleteTexmlApplicationNotFound) MarshalJSON

func (s *DeleteTexmlApplicationNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteTexmlApplicationNotFound) UnmarshalJSON

func (s *DeleteTexmlApplicationNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteTexmlApplicationParams

type DeleteTexmlApplicationParams struct {
	// Identifies the resource.
	ID int64
}

DeleteTexmlApplicationParams is parameters of DeleteTexmlApplication operation.

type DeleteTexmlApplicationRes

type DeleteTexmlApplicationRes interface {
	// contains filtered or unexported methods
}

type DeleteTexmlApplicationUnauthorized

type DeleteTexmlApplicationUnauthorized ErrorResponse

func (*DeleteTexmlApplicationUnauthorized) Decode

Decode decodes DeleteTexmlApplicationUnauthorized from json.

func (*DeleteTexmlApplicationUnauthorized) Encode

Encode encodes DeleteTexmlApplicationUnauthorized as json.

func (*DeleteTexmlApplicationUnauthorized) MarshalJSON

func (s *DeleteTexmlApplicationUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteTexmlApplicationUnauthorized) UnmarshalJSON

func (s *DeleteTexmlApplicationUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteTexmlConferenceParticipantNoContent

type DeleteTexmlConferenceParticipantNoContent struct{}

DeleteTexmlConferenceParticipantNoContent is response for DeleteTexmlConferenceParticipant operation.

type DeleteTexmlConferenceParticipantParams

type DeleteTexmlConferenceParticipantParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The ConferenceSid that uniquely identifies a conference.
	ConferenceSid string
	// The CallSid that identifies the call to update.
	CallSid string
}

DeleteTexmlConferenceParticipantParams is parameters of DeleteTexmlConferenceParticipant operation.

type DeleteTexmlConferenceParticipantRes

type DeleteTexmlConferenceParticipantRes interface {
	// contains filtered or unexported methods
}

type DeleteVerifiedCallDisplayProfileParams

type DeleteVerifiedCallDisplayProfileParams struct {
	// Identifies the Verified Calls Display Profile.
	ID string
}

DeleteVerifiedCallDisplayProfileParams is parameters of DeleteVerifiedCallDisplayProfile operation.

type DeleteVerifiedCallDisplayProfileRes

type DeleteVerifiedCallDisplayProfileRes interface {
	// contains filtered or unexported methods
}

type DeleteVerifiedNumberNotFound

type DeleteVerifiedNumberNotFound Errors

func (*DeleteVerifiedNumberNotFound) Decode

Decode decodes DeleteVerifiedNumberNotFound from json.

func (*DeleteVerifiedNumberNotFound) Encode

func (s *DeleteVerifiedNumberNotFound) Encode(e *jx.Encoder)

Encode encodes DeleteVerifiedNumberNotFound as json.

func (*DeleteVerifiedNumberNotFound) MarshalJSON

func (s *DeleteVerifiedNumberNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteVerifiedNumberNotFound) UnmarshalJSON

func (s *DeleteVerifiedNumberNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteVerifiedNumberParams

type DeleteVerifiedNumberParams struct {
	// The phone number being deleted.
	PhoneNumber string
}

DeleteVerifiedNumberParams is parameters of DeleteVerifiedNumber operation.

type DeleteVerifiedNumberRes

type DeleteVerifiedNumberRes interface {
	// contains filtered or unexported methods
}

type DeleteVerifiedNumberUnauthorized

type DeleteVerifiedNumberUnauthorized Errors

func (*DeleteVerifiedNumberUnauthorized) Decode

Decode decodes DeleteVerifiedNumberUnauthorized from json.

func (*DeleteVerifiedNumberUnauthorized) Encode

Encode encodes DeleteVerifiedNumberUnauthorized as json.

func (*DeleteVerifiedNumberUnauthorized) MarshalJSON

func (s *DeleteVerifiedNumberUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteVerifiedNumberUnauthorized) UnmarshalJSON

func (s *DeleteVerifiedNumberUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteWirelessGatewayParams

type DeleteWirelessGatewayParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

DeleteWirelessGatewayParams is parameters of DeleteWirelessGateway operation.

type DeleteWirelessGatewayRes

type DeleteWirelessGatewayRes interface {
	// contains filtered or unexported methods
}

type DialCallRes

type DialCallRes interface {
	// contains filtered or unexported methods
}

type DialConferenceParticipantRequest

type DialConferenceParticipantRequest struct {
	// Whether to play a notification beep to the conference when the participant enters and exits.
	Beep OptDialConferenceParticipantRequestBeep `json:"Beep"`
	// URL destination for Telnyx to send status callback events to for the call.
	StatusCallback OptString `json:"StatusCallback"`
	// HTTP request type used for `StatusCallback`.
	StatusCallbackMethod OptDialConferenceParticipantRequestStatusCallbackMethod `json:"StatusCallbackMethod"`
	// The changes to the call's state that should generate a call to `StatusCallback`. Can be:
	// `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The
	// default value is `completed`.
	StatusCallbackEvent OptString `json:"StatusCallbackEvent"`
	// The phone number of the called party. Phone numbers are formatted with a `+` and country code.
	To OptString `json:"To"`
	// The phone number of the party that initiated the call. Phone numbers are formatted with a `+` and
	// country code.
	From OptString `json:"From"`
	// The number of seconds that we should allow the phone to ring before assuming there is no answer.
	// Can be an integer between 5 and 120, inclusive. The default value is 30.
	Timeout OptInt `json:"Timeout"`
	// Whether the participant should be muted.
	Muted OptBool `json:"Muted"`
	// Whether to start the conference when the participant enters. Defaults to `true`.
	StartConferenceOnEnter OptBool `json:"StartConferenceOnEnter"`
	// Whether to end the conference when the participant leaves. Defaults to `false`.
	EndConferenceOnExit OptBool `json:"EndConferenceOnExit"`
	// Whether participant shall be bridged to conference before the participant answers (from early
	// media if available). Defaults to `false`.
	EarlyMedia OptBool `json:"EarlyMedia"`
	// The URL the conference callbacks will be sent to.
	ConferenceStatusCallback OptString `json:"ConferenceStatusCallback"`
	// HTTP request type used for `ConferenceStatusCallback`. Defaults to `POST`.
	ConferenceStatusCallbackMethod OptDialConferenceParticipantRequestConferenceStatusCallbackMethod `json:"ConferenceStatusCallbackMethod"`
	// The changes to the conference's state that should generate a call to `ConferenceStatusCallback`.
	// Can be: `start`, `end`, `join` and `leave`. Separate multiple values with a space. By default no
	// callbacks are sent.
	ConferenceStatusCallbackEvent OptString `json:"ConferenceStatusCallbackEvent"`
	// The URL to call for an audio file to play while the participant is waiting for the conference to
	// start.
	WaitUrl OptString `json:"WaitUrl"`
	// The maximum number of participants in the conference. Can be a positive integer from 2 to 800. The
	// default value is 250.
	MaxParticipants OptInt `json:"MaxParticipants"`
	// Whether the participant is coaching another call. When `true`, `CallSidToCoach` has to be given.
	Coaching OptBool `json:"Coaching"`
	// The SID of the participant who is being coached. The participant being coached is the only
	// participant who can hear the participant who is coaching.
	CallSidToCoach OptString `json:"CallSidToCoach"`
	// To be used as the caller id name (SIP From Display Name) presented to the destination (`To`
	// number). The string should have a maximum of 128 characters, containing only letters, numbers,
	// spaces, and `-_~!.+` special characters. If ommited, the display name will be the same as the
	// number in the `From` field.
	CallerId OptString `json:"CallerId"`
	// The maximum duration of the call in seconds.
	TimeLimit OptInt `json:"TimeLimit"`
	// Whether to detect if a human or an answering machine picked up the call. Use `Enable` if you would
	// like to ne notified as soon as the called party is identified. Use `DetectMessageEnd`, if you
	// would like to leave a message on an answering machine.
	MachineDetection OptDialConferenceParticipantRequestMachineDetection `json:"MachineDetection"`
	// How long answering machine detection should go on for before sending an `Unknown` result. Given in
	// milliseconds.
	MachineDetectionTimeout OptInt `json:"MachineDetectionTimeout"`
	// Maximum threshold of a human greeting. If greeting longer than this value, considered machine.
	// Ignored when `premium` detection is used.
	MachineDetectionSpeechThreshold OptInt `json:"MachineDetectionSpeechThreshold"`
	// Silence duration threshold after a greeting message or voice for it be considered human. Ignored
	// when `premium` detection is used.
	MachineDetectionSpeechEndThreshold OptInt `json:"MachineDetectionSpeechEndThreshold"`
	// If initial silence duration is greater than this value, consider it a machine. Ignored when
	// `premium` detection is used.
	MachineDetectionSilenceTimeout OptInt `json:"MachineDetectionSilenceTimeout"`
	// The URL the result of answering machine detection will be sent to.
	AmdStatusCallback OptString `json:"AmdStatusCallback"`
	// HTTP request type used for `AmdStatusCallback`. Defaults to `POST`.
	AmdStatusCallbackMethod OptDialConferenceParticipantRequestAmdStatusCallbackMethod `json:"AmdStatusCallbackMethod"`
	// Whether to cancel ongoing playback on `machine` detection. Defaults to `true`.
	CancelPlaybackOnMachineDetection OptBool `json:"CancelPlaybackOnMachineDetection"`
	// Whether to cancel ongoing playback on `greeting ended` detection. Defaults to `true`.
	CancelPlaybackOnDetectMessageEnd OptBool `json:"CancelPlaybackOnDetectMessageEnd"`
	// The list of comma-separated codecs to be offered on a call.
	PreferredCodecs OptString `json:"PreferredCodecs"`
	// Whether to record the entire participant's call leg. Defaults to `false`.
	Record OptBool `json:"Record"`
	// The number of channels in the final recording. Defaults to `mono`.
	RecordingChannels OptDialConferenceParticipantRequestRecordingChannels `json:"RecordingChannels"`
	// The URL the recording callbacks will be sent to.
	RecordingStatusCallback OptString `json:"RecordingStatusCallback"`
	// HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.
	RecordingStatusCallbackMethod OptDialConferenceParticipantRequestRecordingStatusCallbackMethod `json:"RecordingStatusCallbackMethod"`
	// The changes to the recording's state that should generate a call to `RecoridngStatusCallback`. Can
	// be: `in-progress`, `completed` and `absent`. Separate multiple values with a space. Defaults to
	// `completed`.
	RecordingStatusCallbackEvent OptString `json:"RecordingStatusCallbackEvent"`
	// The audio track to record for the call. The default is `both`.
	RecordingTrack OptDialConferenceParticipantRequestRecordingTrack `json:"RecordingTrack"`
	// The password to use for SIP authentication.
	SipAuthPassword OptString `json:"SipAuthPassword"`
	// The username to use for SIP authentication.
	SipAuthUsername OptString `json:"SipAuthUsername"`
	// Whether to trim any leading and trailing silence from the recording. Defaults to `trim-silence`.
	Trim OptDialConferenceParticipantRequestTrim `json:"Trim"`
	// Whether to record the conference the participant is joining. Defualts to `do-not-record`. The
	// boolean values `true` and `false` are synonymous with `record-from-start` and `do-not-record`
	// respectively.
	ConferenceRecord OptDialConferenceParticipantRequestConferenceRecord `json:"ConferenceRecord"`
	// The URL the conference recording callbacks will be sent to.
	ConferenceRecordingStatusCallback OptString `json:"ConferenceRecordingStatusCallback"`
	// HTTP request type used for `ConferenceRecordingStatusCallback`. Defaults to `POST`.
	ConferenceRecordingStatusCallbackMethod OptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod `json:"ConferenceRecordingStatusCallbackMethod"`
	// The changes to the conference recording's state that should generate a call to
	// `RecoridngStatusCallback`. Can be: `in-progress`, `completed` and `absent`. Separate multiple
	// values with a space. Defaults to `completed`. `failed` and `absent` are synonymous.
	ConferenceRecordingStatusCallbackEvent OptString `json:"ConferenceRecordingStatusCallbackEvent"`
	// The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected.
	//  The timer only starts when the speech is detected. Please note that the transcription is used to
	// detect silence and the related charge will be applied. The minimum value is 0. The default value
	// is 0 (infinite).
	ConferenceRecordingTimeout OptInt `json:"ConferenceRecordingTimeout"`
	// Whether to trim any leading and trailing silence from the conference recording. Defaults to
	// `trim-silence`.
	ConferenceTrim OptDialConferenceParticipantRequestConferenceTrim `json:"ConferenceTrim"`
}

Ref: #/components/schemas/DialConferenceParticipantRequest

func (*DialConferenceParticipantRequest) GetAmdStatusCallback

func (s *DialConferenceParticipantRequest) GetAmdStatusCallback() OptString

GetAmdStatusCallback returns the value of AmdStatusCallback.

func (*DialConferenceParticipantRequest) GetAmdStatusCallbackMethod

GetAmdStatusCallbackMethod returns the value of AmdStatusCallbackMethod.

func (*DialConferenceParticipantRequest) GetBeep

GetBeep returns the value of Beep.

func (*DialConferenceParticipantRequest) GetCallSidToCoach

func (s *DialConferenceParticipantRequest) GetCallSidToCoach() OptString

GetCallSidToCoach returns the value of CallSidToCoach.

func (*DialConferenceParticipantRequest) GetCallerId

GetCallerId returns the value of CallerId.

func (*DialConferenceParticipantRequest) GetCancelPlaybackOnDetectMessageEnd

func (s *DialConferenceParticipantRequest) GetCancelPlaybackOnDetectMessageEnd() OptBool

GetCancelPlaybackOnDetectMessageEnd returns the value of CancelPlaybackOnDetectMessageEnd.

func (*DialConferenceParticipantRequest) GetCancelPlaybackOnMachineDetection

func (s *DialConferenceParticipantRequest) GetCancelPlaybackOnMachineDetection() OptBool

GetCancelPlaybackOnMachineDetection returns the value of CancelPlaybackOnMachineDetection.

func (*DialConferenceParticipantRequest) GetCoaching

func (s *DialConferenceParticipantRequest) GetCoaching() OptBool

GetCoaching returns the value of Coaching.

func (*DialConferenceParticipantRequest) GetConferenceRecord

GetConferenceRecord returns the value of ConferenceRecord.

func (*DialConferenceParticipantRequest) GetConferenceRecordingStatusCallback

func (s *DialConferenceParticipantRequest) GetConferenceRecordingStatusCallback() OptString

GetConferenceRecordingStatusCallback returns the value of ConferenceRecordingStatusCallback.

func (*DialConferenceParticipantRequest) GetConferenceRecordingStatusCallbackEvent

func (s *DialConferenceParticipantRequest) GetConferenceRecordingStatusCallbackEvent() OptString

GetConferenceRecordingStatusCallbackEvent returns the value of ConferenceRecordingStatusCallbackEvent.

func (*DialConferenceParticipantRequest) GetConferenceRecordingStatusCallbackMethod

GetConferenceRecordingStatusCallbackMethod returns the value of ConferenceRecordingStatusCallbackMethod.

func (*DialConferenceParticipantRequest) GetConferenceRecordingTimeout

func (s *DialConferenceParticipantRequest) GetConferenceRecordingTimeout() OptInt

GetConferenceRecordingTimeout returns the value of ConferenceRecordingTimeout.

func (*DialConferenceParticipantRequest) GetConferenceStatusCallback

func (s *DialConferenceParticipantRequest) GetConferenceStatusCallback() OptString

GetConferenceStatusCallback returns the value of ConferenceStatusCallback.

func (*DialConferenceParticipantRequest) GetConferenceStatusCallbackEvent

func (s *DialConferenceParticipantRequest) GetConferenceStatusCallbackEvent() OptString

GetConferenceStatusCallbackEvent returns the value of ConferenceStatusCallbackEvent.

func (*DialConferenceParticipantRequest) GetConferenceStatusCallbackMethod

GetConferenceStatusCallbackMethod returns the value of ConferenceStatusCallbackMethod.

func (*DialConferenceParticipantRequest) GetConferenceTrim

GetConferenceTrim returns the value of ConferenceTrim.

func (*DialConferenceParticipantRequest) GetEarlyMedia

func (s *DialConferenceParticipantRequest) GetEarlyMedia() OptBool

GetEarlyMedia returns the value of EarlyMedia.

func (*DialConferenceParticipantRequest) GetEndConferenceOnExit

func (s *DialConferenceParticipantRequest) GetEndConferenceOnExit() OptBool

GetEndConferenceOnExit returns the value of EndConferenceOnExit.

func (*DialConferenceParticipantRequest) GetFrom

GetFrom returns the value of From.

func (*DialConferenceParticipantRequest) GetMachineDetection

GetMachineDetection returns the value of MachineDetection.

func (*DialConferenceParticipantRequest) GetMachineDetectionSilenceTimeout

func (s *DialConferenceParticipantRequest) GetMachineDetectionSilenceTimeout() OptInt

GetMachineDetectionSilenceTimeout returns the value of MachineDetectionSilenceTimeout.

func (*DialConferenceParticipantRequest) GetMachineDetectionSpeechEndThreshold

func (s *DialConferenceParticipantRequest) GetMachineDetectionSpeechEndThreshold() OptInt

GetMachineDetectionSpeechEndThreshold returns the value of MachineDetectionSpeechEndThreshold.

func (*DialConferenceParticipantRequest) GetMachineDetectionSpeechThreshold

func (s *DialConferenceParticipantRequest) GetMachineDetectionSpeechThreshold() OptInt

GetMachineDetectionSpeechThreshold returns the value of MachineDetectionSpeechThreshold.

func (*DialConferenceParticipantRequest) GetMachineDetectionTimeout

func (s *DialConferenceParticipantRequest) GetMachineDetectionTimeout() OptInt

GetMachineDetectionTimeout returns the value of MachineDetectionTimeout.

func (*DialConferenceParticipantRequest) GetMaxParticipants

func (s *DialConferenceParticipantRequest) GetMaxParticipants() OptInt

GetMaxParticipants returns the value of MaxParticipants.

func (*DialConferenceParticipantRequest) GetMuted

GetMuted returns the value of Muted.

func (*DialConferenceParticipantRequest) GetPreferredCodecs

func (s *DialConferenceParticipantRequest) GetPreferredCodecs() OptString

GetPreferredCodecs returns the value of PreferredCodecs.

func (*DialConferenceParticipantRequest) GetRecord

GetRecord returns the value of Record.

func (*DialConferenceParticipantRequest) GetRecordingChannels

GetRecordingChannels returns the value of RecordingChannels.

func (*DialConferenceParticipantRequest) GetRecordingStatusCallback

func (s *DialConferenceParticipantRequest) GetRecordingStatusCallback() OptString

GetRecordingStatusCallback returns the value of RecordingStatusCallback.

func (*DialConferenceParticipantRequest) GetRecordingStatusCallbackEvent

func (s *DialConferenceParticipantRequest) GetRecordingStatusCallbackEvent() OptString

GetRecordingStatusCallbackEvent returns the value of RecordingStatusCallbackEvent.

func (*DialConferenceParticipantRequest) GetRecordingStatusCallbackMethod

GetRecordingStatusCallbackMethod returns the value of RecordingStatusCallbackMethod.

func (*DialConferenceParticipantRequest) GetRecordingTrack

GetRecordingTrack returns the value of RecordingTrack.

func (*DialConferenceParticipantRequest) GetSipAuthPassword

func (s *DialConferenceParticipantRequest) GetSipAuthPassword() OptString

GetSipAuthPassword returns the value of SipAuthPassword.

func (*DialConferenceParticipantRequest) GetSipAuthUsername

func (s *DialConferenceParticipantRequest) GetSipAuthUsername() OptString

GetSipAuthUsername returns the value of SipAuthUsername.

func (*DialConferenceParticipantRequest) GetStartConferenceOnEnter

func (s *DialConferenceParticipantRequest) GetStartConferenceOnEnter() OptBool

GetStartConferenceOnEnter returns the value of StartConferenceOnEnter.

func (*DialConferenceParticipantRequest) GetStatusCallback

func (s *DialConferenceParticipantRequest) GetStatusCallback() OptString

GetStatusCallback returns the value of StatusCallback.

func (*DialConferenceParticipantRequest) GetStatusCallbackEvent

func (s *DialConferenceParticipantRequest) GetStatusCallbackEvent() OptString

GetStatusCallbackEvent returns the value of StatusCallbackEvent.

func (*DialConferenceParticipantRequest) GetStatusCallbackMethod

GetStatusCallbackMethod returns the value of StatusCallbackMethod.

func (*DialConferenceParticipantRequest) GetTimeLimit

func (s *DialConferenceParticipantRequest) GetTimeLimit() OptInt

GetTimeLimit returns the value of TimeLimit.

func (*DialConferenceParticipantRequest) GetTimeout

func (s *DialConferenceParticipantRequest) GetTimeout() OptInt

GetTimeout returns the value of Timeout.

func (*DialConferenceParticipantRequest) GetTo

GetTo returns the value of To.

func (*DialConferenceParticipantRequest) GetTrim

GetTrim returns the value of Trim.

func (*DialConferenceParticipantRequest) GetWaitUrl

GetWaitUrl returns the value of WaitUrl.

func (*DialConferenceParticipantRequest) SetAmdStatusCallback

func (s *DialConferenceParticipantRequest) SetAmdStatusCallback(val OptString)

SetAmdStatusCallback sets the value of AmdStatusCallback.

func (*DialConferenceParticipantRequest) SetAmdStatusCallbackMethod

SetAmdStatusCallbackMethod sets the value of AmdStatusCallbackMethod.

func (*DialConferenceParticipantRequest) SetBeep

SetBeep sets the value of Beep.

func (*DialConferenceParticipantRequest) SetCallSidToCoach

func (s *DialConferenceParticipantRequest) SetCallSidToCoach(val OptString)

SetCallSidToCoach sets the value of CallSidToCoach.

func (*DialConferenceParticipantRequest) SetCallerId

func (s *DialConferenceParticipantRequest) SetCallerId(val OptString)

SetCallerId sets the value of CallerId.

func (*DialConferenceParticipantRequest) SetCancelPlaybackOnDetectMessageEnd

func (s *DialConferenceParticipantRequest) SetCancelPlaybackOnDetectMessageEnd(val OptBool)

SetCancelPlaybackOnDetectMessageEnd sets the value of CancelPlaybackOnDetectMessageEnd.

func (*DialConferenceParticipantRequest) SetCancelPlaybackOnMachineDetection

func (s *DialConferenceParticipantRequest) SetCancelPlaybackOnMachineDetection(val OptBool)

SetCancelPlaybackOnMachineDetection sets the value of CancelPlaybackOnMachineDetection.

func (*DialConferenceParticipantRequest) SetCoaching

func (s *DialConferenceParticipantRequest) SetCoaching(val OptBool)

SetCoaching sets the value of Coaching.

func (*DialConferenceParticipantRequest) SetConferenceRecord

SetConferenceRecord sets the value of ConferenceRecord.

func (*DialConferenceParticipantRequest) SetConferenceRecordingStatusCallback

func (s *DialConferenceParticipantRequest) SetConferenceRecordingStatusCallback(val OptString)

SetConferenceRecordingStatusCallback sets the value of ConferenceRecordingStatusCallback.

func (*DialConferenceParticipantRequest) SetConferenceRecordingStatusCallbackEvent

func (s *DialConferenceParticipantRequest) SetConferenceRecordingStatusCallbackEvent(val OptString)

SetConferenceRecordingStatusCallbackEvent sets the value of ConferenceRecordingStatusCallbackEvent.

func (*DialConferenceParticipantRequest) SetConferenceRecordingStatusCallbackMethod

SetConferenceRecordingStatusCallbackMethod sets the value of ConferenceRecordingStatusCallbackMethod.

func (*DialConferenceParticipantRequest) SetConferenceRecordingTimeout

func (s *DialConferenceParticipantRequest) SetConferenceRecordingTimeout(val OptInt)

SetConferenceRecordingTimeout sets the value of ConferenceRecordingTimeout.

func (*DialConferenceParticipantRequest) SetConferenceStatusCallback

func (s *DialConferenceParticipantRequest) SetConferenceStatusCallback(val OptString)

SetConferenceStatusCallback sets the value of ConferenceStatusCallback.

func (*DialConferenceParticipantRequest) SetConferenceStatusCallbackEvent

func (s *DialConferenceParticipantRequest) SetConferenceStatusCallbackEvent(val OptString)

SetConferenceStatusCallbackEvent sets the value of ConferenceStatusCallbackEvent.

func (*DialConferenceParticipantRequest) SetConferenceStatusCallbackMethod

SetConferenceStatusCallbackMethod sets the value of ConferenceStatusCallbackMethod.

func (*DialConferenceParticipantRequest) SetConferenceTrim

SetConferenceTrim sets the value of ConferenceTrim.

func (*DialConferenceParticipantRequest) SetEarlyMedia

func (s *DialConferenceParticipantRequest) SetEarlyMedia(val OptBool)

SetEarlyMedia sets the value of EarlyMedia.

func (*DialConferenceParticipantRequest) SetEndConferenceOnExit

func (s *DialConferenceParticipantRequest) SetEndConferenceOnExit(val OptBool)

SetEndConferenceOnExit sets the value of EndConferenceOnExit.

func (*DialConferenceParticipantRequest) SetFrom

SetFrom sets the value of From.

func (*DialConferenceParticipantRequest) SetMachineDetection

SetMachineDetection sets the value of MachineDetection.

func (*DialConferenceParticipantRequest) SetMachineDetectionSilenceTimeout

func (s *DialConferenceParticipantRequest) SetMachineDetectionSilenceTimeout(val OptInt)

SetMachineDetectionSilenceTimeout sets the value of MachineDetectionSilenceTimeout.

func (*DialConferenceParticipantRequest) SetMachineDetectionSpeechEndThreshold

func (s *DialConferenceParticipantRequest) SetMachineDetectionSpeechEndThreshold(val OptInt)

SetMachineDetectionSpeechEndThreshold sets the value of MachineDetectionSpeechEndThreshold.

func (*DialConferenceParticipantRequest) SetMachineDetectionSpeechThreshold

func (s *DialConferenceParticipantRequest) SetMachineDetectionSpeechThreshold(val OptInt)

SetMachineDetectionSpeechThreshold sets the value of MachineDetectionSpeechThreshold.

func (*DialConferenceParticipantRequest) SetMachineDetectionTimeout

func (s *DialConferenceParticipantRequest) SetMachineDetectionTimeout(val OptInt)

SetMachineDetectionTimeout sets the value of MachineDetectionTimeout.

func (*DialConferenceParticipantRequest) SetMaxParticipants

func (s *DialConferenceParticipantRequest) SetMaxParticipants(val OptInt)

SetMaxParticipants sets the value of MaxParticipants.

func (*DialConferenceParticipantRequest) SetMuted

func (s *DialConferenceParticipantRequest) SetMuted(val OptBool)

SetMuted sets the value of Muted.

func (*DialConferenceParticipantRequest) SetPreferredCodecs

func (s *DialConferenceParticipantRequest) SetPreferredCodecs(val OptString)

SetPreferredCodecs sets the value of PreferredCodecs.

func (*DialConferenceParticipantRequest) SetRecord

func (s *DialConferenceParticipantRequest) SetRecord(val OptBool)

SetRecord sets the value of Record.

func (*DialConferenceParticipantRequest) SetRecordingChannels

SetRecordingChannels sets the value of RecordingChannels.

func (*DialConferenceParticipantRequest) SetRecordingStatusCallback

func (s *DialConferenceParticipantRequest) SetRecordingStatusCallback(val OptString)

SetRecordingStatusCallback sets the value of RecordingStatusCallback.

func (*DialConferenceParticipantRequest) SetRecordingStatusCallbackEvent

func (s *DialConferenceParticipantRequest) SetRecordingStatusCallbackEvent(val OptString)

SetRecordingStatusCallbackEvent sets the value of RecordingStatusCallbackEvent.

func (*DialConferenceParticipantRequest) SetRecordingStatusCallbackMethod

SetRecordingStatusCallbackMethod sets the value of RecordingStatusCallbackMethod.

func (*DialConferenceParticipantRequest) SetRecordingTrack

SetRecordingTrack sets the value of RecordingTrack.

func (*DialConferenceParticipantRequest) SetSipAuthPassword

func (s *DialConferenceParticipantRequest) SetSipAuthPassword(val OptString)

SetSipAuthPassword sets the value of SipAuthPassword.

func (*DialConferenceParticipantRequest) SetSipAuthUsername

func (s *DialConferenceParticipantRequest) SetSipAuthUsername(val OptString)

SetSipAuthUsername sets the value of SipAuthUsername.

func (*DialConferenceParticipantRequest) SetStartConferenceOnEnter

func (s *DialConferenceParticipantRequest) SetStartConferenceOnEnter(val OptBool)

SetStartConferenceOnEnter sets the value of StartConferenceOnEnter.

func (*DialConferenceParticipantRequest) SetStatusCallback

func (s *DialConferenceParticipantRequest) SetStatusCallback(val OptString)

SetStatusCallback sets the value of StatusCallback.

func (*DialConferenceParticipantRequest) SetStatusCallbackEvent

func (s *DialConferenceParticipantRequest) SetStatusCallbackEvent(val OptString)

SetStatusCallbackEvent sets the value of StatusCallbackEvent.

func (*DialConferenceParticipantRequest) SetStatusCallbackMethod

SetStatusCallbackMethod sets the value of StatusCallbackMethod.

func (*DialConferenceParticipantRequest) SetTimeLimit

func (s *DialConferenceParticipantRequest) SetTimeLimit(val OptInt)

SetTimeLimit sets the value of TimeLimit.

func (*DialConferenceParticipantRequest) SetTimeout

func (s *DialConferenceParticipantRequest) SetTimeout(val OptInt)

SetTimeout sets the value of Timeout.

func (*DialConferenceParticipantRequest) SetTo

SetTo sets the value of To.

func (*DialConferenceParticipantRequest) SetTrim

SetTrim sets the value of Trim.

func (*DialConferenceParticipantRequest) SetWaitUrl

func (s *DialConferenceParticipantRequest) SetWaitUrl(val OptString)

SetWaitUrl sets the value of WaitUrl.

func (*DialConferenceParticipantRequest) Validate

type DialConferenceParticipantRequestAmdStatusCallbackMethod

type DialConferenceParticipantRequestAmdStatusCallbackMethod string

HTTP request type used for `AmdStatusCallback`. Defaults to `POST`.

const (
	DialConferenceParticipantRequestAmdStatusCallbackMethodGET  DialConferenceParticipantRequestAmdStatusCallbackMethod = "GET"
	DialConferenceParticipantRequestAmdStatusCallbackMethodPOST DialConferenceParticipantRequestAmdStatusCallbackMethod = "POST"
)

func (DialConferenceParticipantRequestAmdStatusCallbackMethod) AllValues

AllValues returns all DialConferenceParticipantRequestAmdStatusCallbackMethod values.

func (DialConferenceParticipantRequestAmdStatusCallbackMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestAmdStatusCallbackMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestAmdStatusCallbackMethod) Validate

type DialConferenceParticipantRequestBeep

type DialConferenceParticipantRequestBeep string

Whether to play a notification beep to the conference when the participant enters and exits.

const (
	DialConferenceParticipantRequestBeepTrue    DialConferenceParticipantRequestBeep = "true"
	DialConferenceParticipantRequestBeepFalse   DialConferenceParticipantRequestBeep = "false"
	DialConferenceParticipantRequestBeepOnEnter DialConferenceParticipantRequestBeep = "onEnter"
	DialConferenceParticipantRequestBeepOnExit  DialConferenceParticipantRequestBeep = "onExit"
)

func (DialConferenceParticipantRequestBeep) AllValues

AllValues returns all DialConferenceParticipantRequestBeep values.

func (DialConferenceParticipantRequestBeep) MarshalText

func (s DialConferenceParticipantRequestBeep) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestBeep) UnmarshalText

func (s *DialConferenceParticipantRequestBeep) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestBeep) Validate

type DialConferenceParticipantRequestConferenceRecord

type DialConferenceParticipantRequestConferenceRecord string

Whether to record the conference the participant is joining. Defualts to `do-not-record`. The boolean values `true` and `false` are synonymous with `record-from-start` and `do-not-record` respectively.

const (
	DialConferenceParticipantRequestConferenceRecordTrue            DialConferenceParticipantRequestConferenceRecord = "true"
	DialConferenceParticipantRequestConferenceRecordFalse           DialConferenceParticipantRequestConferenceRecord = "false"
	DialConferenceParticipantRequestConferenceRecordRecordFromStart DialConferenceParticipantRequestConferenceRecord = "record-from-start"
	DialConferenceParticipantRequestConferenceRecordDoNotRecord     DialConferenceParticipantRequestConferenceRecord = "do-not-record"
)

func (DialConferenceParticipantRequestConferenceRecord) AllValues

AllValues returns all DialConferenceParticipantRequestConferenceRecord values.

func (DialConferenceParticipantRequestConferenceRecord) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestConferenceRecord) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestConferenceRecord) Validate

type DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod

type DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod string

HTTP request type used for `ConferenceRecordingStatusCallback`. Defaults to `POST`.

const (
	DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethodGET  DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod = "GET"
	DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethodPOST DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod = "POST"
)

func (DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod) AllValues

AllValues returns all DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod values.

func (DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod) Validate

type DialConferenceParticipantRequestConferenceStatusCallbackMethod

type DialConferenceParticipantRequestConferenceStatusCallbackMethod string

HTTP request type used for `ConferenceStatusCallback`. Defaults to `POST`.

const (
	DialConferenceParticipantRequestConferenceStatusCallbackMethodGET  DialConferenceParticipantRequestConferenceStatusCallbackMethod = "GET"
	DialConferenceParticipantRequestConferenceStatusCallbackMethodPOST DialConferenceParticipantRequestConferenceStatusCallbackMethod = "POST"
)

func (DialConferenceParticipantRequestConferenceStatusCallbackMethod) AllValues

AllValues returns all DialConferenceParticipantRequestConferenceStatusCallbackMethod values.

func (DialConferenceParticipantRequestConferenceStatusCallbackMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestConferenceStatusCallbackMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestConferenceStatusCallbackMethod) Validate

type DialConferenceParticipantRequestConferenceTrim

type DialConferenceParticipantRequestConferenceTrim string

Whether to trim any leading and trailing silence from the conference recording. Defaults to `trim-silence`.

const (
	DialConferenceParticipantRequestConferenceTrimTrimSilence DialConferenceParticipantRequestConferenceTrim = "trim-silence"
	DialConferenceParticipantRequestConferenceTrimDoNotTrim   DialConferenceParticipantRequestConferenceTrim = "do-not-trim"
)

func (DialConferenceParticipantRequestConferenceTrim) AllValues

AllValues returns all DialConferenceParticipantRequestConferenceTrim values.

func (DialConferenceParticipantRequestConferenceTrim) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestConferenceTrim) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestConferenceTrim) Validate

type DialConferenceParticipantRequestMachineDetection

type DialConferenceParticipantRequestMachineDetection string

Whether to detect if a human or an answering machine picked up the call. Use `Enable` if you would like to ne notified as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine.

const (
	DialConferenceParticipantRequestMachineDetectionEnable           DialConferenceParticipantRequestMachineDetection = "Enable"
	DialConferenceParticipantRequestMachineDetectionDetectMessageEnd DialConferenceParticipantRequestMachineDetection = "DetectMessageEnd"
)

func (DialConferenceParticipantRequestMachineDetection) AllValues

AllValues returns all DialConferenceParticipantRequestMachineDetection values.

func (DialConferenceParticipantRequestMachineDetection) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestMachineDetection) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestMachineDetection) Validate

type DialConferenceParticipantRequestRecordingChannels

type DialConferenceParticipantRequestRecordingChannels string

The number of channels in the final recording. Defaults to `mono`.

const (
	DialConferenceParticipantRequestRecordingChannelsMono DialConferenceParticipantRequestRecordingChannels = "mono"
	DialConferenceParticipantRequestRecordingChannelsDual DialConferenceParticipantRequestRecordingChannels = "dual"
)

func (DialConferenceParticipantRequestRecordingChannels) AllValues

AllValues returns all DialConferenceParticipantRequestRecordingChannels values.

func (DialConferenceParticipantRequestRecordingChannels) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestRecordingChannels) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestRecordingChannels) Validate

type DialConferenceParticipantRequestRecordingStatusCallbackMethod

type DialConferenceParticipantRequestRecordingStatusCallbackMethod string

HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.

const (
	DialConferenceParticipantRequestRecordingStatusCallbackMethodGET  DialConferenceParticipantRequestRecordingStatusCallbackMethod = "GET"
	DialConferenceParticipantRequestRecordingStatusCallbackMethodPOST DialConferenceParticipantRequestRecordingStatusCallbackMethod = "POST"
)

func (DialConferenceParticipantRequestRecordingStatusCallbackMethod) AllValues

AllValues returns all DialConferenceParticipantRequestRecordingStatusCallbackMethod values.

func (DialConferenceParticipantRequestRecordingStatusCallbackMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestRecordingStatusCallbackMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestRecordingStatusCallbackMethod) Validate

type DialConferenceParticipantRequestRecordingTrack

type DialConferenceParticipantRequestRecordingTrack string

The audio track to record for the call. The default is `both`.

const (
	DialConferenceParticipantRequestRecordingTrackInbound  DialConferenceParticipantRequestRecordingTrack = "inbound"
	DialConferenceParticipantRequestRecordingTrackOutbound DialConferenceParticipantRequestRecordingTrack = "outbound"
	DialConferenceParticipantRequestRecordingTrackBoth     DialConferenceParticipantRequestRecordingTrack = "both"
)

func (DialConferenceParticipantRequestRecordingTrack) AllValues

AllValues returns all DialConferenceParticipantRequestRecordingTrack values.

func (DialConferenceParticipantRequestRecordingTrack) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestRecordingTrack) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestRecordingTrack) Validate

type DialConferenceParticipantRequestStatusCallbackMethod

type DialConferenceParticipantRequestStatusCallbackMethod string

HTTP request type used for `StatusCallback`.

const (
	DialConferenceParticipantRequestStatusCallbackMethodGET  DialConferenceParticipantRequestStatusCallbackMethod = "GET"
	DialConferenceParticipantRequestStatusCallbackMethodPOST DialConferenceParticipantRequestStatusCallbackMethod = "POST"
)

func (DialConferenceParticipantRequestStatusCallbackMethod) AllValues

AllValues returns all DialConferenceParticipantRequestStatusCallbackMethod values.

func (DialConferenceParticipantRequestStatusCallbackMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestStatusCallbackMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestStatusCallbackMethod) Validate

type DialConferenceParticipantRequestTrim

type DialConferenceParticipantRequestTrim string

Whether to trim any leading and trailing silence from the recording. Defaults to `trim-silence`.

const (
	DialConferenceParticipantRequestTrimTrimSilence DialConferenceParticipantRequestTrim = "trim-silence"
	DialConferenceParticipantRequestTrimDoNotTrim   DialConferenceParticipantRequestTrim = "do-not-trim"
)

func (DialConferenceParticipantRequestTrim) AllValues

AllValues returns all DialConferenceParticipantRequestTrim values.

func (DialConferenceParticipantRequestTrim) MarshalText

func (s DialConferenceParticipantRequestTrim) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DialConferenceParticipantRequestTrim) UnmarshalText

func (s *DialConferenceParticipantRequestTrim) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DialConferenceParticipantRequestTrim) Validate

type DialParticipantResponse

type DialParticipantResponse struct {
	Data OptNewParticipantResource `json:"data"`
}

func (*DialParticipantResponse) Decode

func (s *DialParticipantResponse) Decode(d *jx.Decoder) error

Decode decodes DialParticipantResponse from json.

func (*DialParticipantResponse) Encode

func (s *DialParticipantResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DialParticipantResponse) GetData

GetData returns the value of Data.

func (*DialParticipantResponse) MarshalJSON

func (s *DialParticipantResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DialParticipantResponse) SetData

SetData sets the value of Data.

func (*DialParticipantResponse) UnmarshalJSON

func (s *DialParticipantResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DialParticipantResponse) Validate

func (s *DialParticipantResponse) Validate() error

type DialTexmlConferenceParticipantParams

type DialTexmlConferenceParticipantParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The ConferenceSid that uniquely identifies a conference.
	ConferenceSid string
}

DialTexmlConferenceParticipantParams is parameters of DialTexmlConferenceParticipant operation.

type DialTexmlConferenceParticipantRes

type DialTexmlConferenceParticipantRes interface {
	// contains filtered or unexported methods
}

type DialogflowConfig

type DialogflowConfig struct {
	// Enable sentiment analysis from Dialogflow.
	AnalyzeSentiment OptBool `json:"analyze_sentiment"`
	// Enable partial automated agent reply from Dialogflow.
	PartialAutomatedAgentReply OptBool `json:"partial_automated_agent_reply"`
}

Ref: #/components/schemas/DialogflowConfig

func (*DialogflowConfig) Decode

func (s *DialogflowConfig) Decode(d *jx.Decoder) error

Decode decodes DialogflowConfig from json.

func (*DialogflowConfig) Encode

func (s *DialogflowConfig) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DialogflowConfig) GetAnalyzeSentiment

func (s *DialogflowConfig) GetAnalyzeSentiment() OptBool

GetAnalyzeSentiment returns the value of AnalyzeSentiment.

func (*DialogflowConfig) GetPartialAutomatedAgentReply

func (s *DialogflowConfig) GetPartialAutomatedAgentReply() OptBool

GetPartialAutomatedAgentReply returns the value of PartialAutomatedAgentReply.

func (*DialogflowConfig) MarshalJSON

func (s *DialogflowConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DialogflowConfig) SetAnalyzeSentiment

func (s *DialogflowConfig) SetAnalyzeSentiment(val OptBool)

SetAnalyzeSentiment sets the value of AnalyzeSentiment.

func (*DialogflowConfig) SetPartialAutomatedAgentReply

func (s *DialogflowConfig) SetPartialAutomatedAgentReply(val OptBool)

SetPartialAutomatedAgentReply sets the value of PartialAutomatedAgentReply.

func (*DialogflowConfig) UnmarshalJSON

func (s *DialogflowConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DisplayName

type DisplayName string

func (*DisplayName) Decode

func (s *DisplayName) Decode(d *jx.Decoder) error

Decode decodes DisplayName from json.

func (DisplayName) Encode

func (s DisplayName) Encode(e *jx.Encoder)

Encode encodes DisplayName as json.

func (DisplayName) MarshalJSON

func (s DisplayName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DisplayName) UnmarshalJSON

func (s *DisplayName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DisplayProfileParams

type DisplayProfileParams struct {
	// Identifies the Verified Calls Display Profile.
	ID string
}

DisplayProfileParams is parameters of DisplayProfile operation.

type DisplayProfileRes

type DisplayProfileRes interface {
	// contains filtered or unexported methods
}

type DisplayVerifiedCallsDisplayProfileResponse

type DisplayVerifiedCallsDisplayProfileResponse struct {
	Data OptVerifiedCallsDisplayProfile `json:"data"`
}

func (*DisplayVerifiedCallsDisplayProfileResponse) Decode

Decode decodes DisplayVerifiedCallsDisplayProfileResponse from json.

func (*DisplayVerifiedCallsDisplayProfileResponse) Encode

Encode implements json.Marshaler.

func (*DisplayVerifiedCallsDisplayProfileResponse) GetData

GetData returns the value of Data.

func (*DisplayVerifiedCallsDisplayProfileResponse) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*DisplayVerifiedCallsDisplayProfileResponse) SetData

SetData sets the value of Data.

func (*DisplayVerifiedCallsDisplayProfileResponse) UnmarshalJSON

func (s *DisplayVerifiedCallsDisplayProfileResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DisplayVerifiedCallsDisplayProfileResponse) Validate

type DocReqsActionFilter

type DocReqsActionFilter string
const (
	DocReqsActionFilterOrdering DocReqsActionFilter = "ordering"
	DocReqsActionFilterPorting  DocReqsActionFilter = "porting"
)

func (DocReqsActionFilter) AllValues

AllValues returns all DocReqsActionFilter values.

func (DocReqsActionFilter) MarshalText

func (s DocReqsActionFilter) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DocReqsActionFilter) UnmarshalText

func (s *DocReqsActionFilter) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DocReqsActionFilter) Validate

func (s DocReqsActionFilter) Validate() error

type DocReqsListRequirementTypesResponse

type DocReqsListRequirementTypesResponse struct {
	Data DocReqsRequirementTypeList `json:"data"`
	Meta OptPaginationMeta          `json:"meta"`
}

func (*DocReqsListRequirementTypesResponse) Decode

Decode decodes DocReqsListRequirementTypesResponse from json.

func (*DocReqsListRequirementTypesResponse) Encode

Encode implements json.Marshaler.

func (*DocReqsListRequirementTypesResponse) GetData

GetData returns the value of Data.

func (*DocReqsListRequirementTypesResponse) GetMeta

GetMeta returns the value of Meta.

func (*DocReqsListRequirementTypesResponse) MarshalJSON

func (s *DocReqsListRequirementTypesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DocReqsListRequirementTypesResponse) SetData

SetData sets the value of Data.

func (*DocReqsListRequirementTypesResponse) SetMeta

SetMeta sets the value of Meta.

func (*DocReqsListRequirementTypesResponse) UnmarshalJSON

func (s *DocReqsListRequirementTypesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DocReqsListRequirementTypesResponse) Validate

type DocReqsPhoneNumberTypeFilter

type DocReqsPhoneNumberTypeFilter string
const (
	DocReqsPhoneNumberTypeFilterLocal    DocReqsPhoneNumberTypeFilter = "local"
	DocReqsPhoneNumberTypeFilterNational DocReqsPhoneNumberTypeFilter = "national"
	DocReqsPhoneNumberTypeFilterTollFree DocReqsPhoneNumberTypeFilter = "toll-free"
)

func (DocReqsPhoneNumberTypeFilter) AllValues

AllValues returns all DocReqsPhoneNumberTypeFilter values.

func (DocReqsPhoneNumberTypeFilter) MarshalText

func (s DocReqsPhoneNumberTypeFilter) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DocReqsPhoneNumberTypeFilter) UnmarshalText

func (s *DocReqsPhoneNumberTypeFilter) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DocReqsPhoneNumberTypeFilter) Validate

func (s DocReqsPhoneNumberTypeFilter) Validate() error

type DocReqsRequirement

type DocReqsRequirement struct {
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// The 2-character (ISO 3166-1 alpha-2) country code where this requirement applies.
	CountryCode OptString `json:"country_code"`
	// The locality where this requirement applies.
	Locality OptString `json:"locality"`
	// Indicates the phone_number_type this requirement applies to. Leave blank if this requirement
	// applies to all number_types.
	PhoneNumberType OptDocReqsRequirementPhoneNumberType `json:"phone_number_type"`
	// Indicates whether this requirement applies to ordering, porting, or both.
	Action OptDocReqsRequirementAction `json:"action"`
	// Lists the requirement types necessary to fulfill this requirement.
	RequirementsTypes []DocReqsRequirementType `json:"requirements_types"`
	// Identifies the associated document.
	ID OptUUID `json:"id"`
	// ISO 8601 formatted date-time indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date-time indicating when the resource was last updated.
	UpdatedAt OptString `json:"updated_at"`
}

Ref: #/components/schemas/DocReqsRequirement

func (*DocReqsRequirement) Decode

func (s *DocReqsRequirement) Decode(d *jx.Decoder) error

Decode decodes DocReqsRequirement from json.

func (*DocReqsRequirement) Encode

func (s *DocReqsRequirement) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DocReqsRequirement) GetAction

GetAction returns the value of Action.

func (*DocReqsRequirement) GetCountryCode

func (s *DocReqsRequirement) GetCountryCode() OptString

GetCountryCode returns the value of CountryCode.

func (*DocReqsRequirement) GetCreatedAt

func (s *DocReqsRequirement) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*DocReqsRequirement) GetID

func (s *DocReqsRequirement) GetID() OptUUID

GetID returns the value of ID.

func (*DocReqsRequirement) GetLocality

func (s *DocReqsRequirement) GetLocality() OptString

GetLocality returns the value of Locality.

func (*DocReqsRequirement) GetPhoneNumberType

GetPhoneNumberType returns the value of PhoneNumberType.

func (*DocReqsRequirement) GetRecordType

func (s *DocReqsRequirement) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*DocReqsRequirement) GetRequirementsTypes

func (s *DocReqsRequirement) GetRequirementsTypes() []DocReqsRequirementType

GetRequirementsTypes returns the value of RequirementsTypes.

func (*DocReqsRequirement) GetUpdatedAt

func (s *DocReqsRequirement) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*DocReqsRequirement) MarshalJSON

func (s *DocReqsRequirement) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DocReqsRequirement) SetAction

SetAction sets the value of Action.

func (*DocReqsRequirement) SetCountryCode

func (s *DocReqsRequirement) SetCountryCode(val OptString)

SetCountryCode sets the value of CountryCode.

func (*DocReqsRequirement) SetCreatedAt

func (s *DocReqsRequirement) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*DocReqsRequirement) SetID

func (s *DocReqsRequirement) SetID(val OptUUID)

SetID sets the value of ID.

func (*DocReqsRequirement) SetLocality

func (s *DocReqsRequirement) SetLocality(val OptString)

SetLocality sets the value of Locality.

func (*DocReqsRequirement) SetPhoneNumberType

func (s *DocReqsRequirement) SetPhoneNumberType(val OptDocReqsRequirementPhoneNumberType)

SetPhoneNumberType sets the value of PhoneNumberType.

func (*DocReqsRequirement) SetRecordType

func (s *DocReqsRequirement) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*DocReqsRequirement) SetRequirementsTypes

func (s *DocReqsRequirement) SetRequirementsTypes(val []DocReqsRequirementType)

SetRequirementsTypes sets the value of RequirementsTypes.

func (*DocReqsRequirement) SetUpdatedAt

func (s *DocReqsRequirement) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*DocReqsRequirement) UnmarshalJSON

func (s *DocReqsRequirement) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DocReqsRequirement) Validate

func (s *DocReqsRequirement) Validate() error

type DocReqsRequirementAction

type DocReqsRequirementAction string

Indicates whether this requirement applies to ordering, porting, or both.

const (
	DocReqsRequirementActionBoth     DocReqsRequirementAction = "both"
	DocReqsRequirementActionOrdering DocReqsRequirementAction = "ordering"
	DocReqsRequirementActionPorting  DocReqsRequirementAction = "porting"
)

func (DocReqsRequirementAction) AllValues

AllValues returns all DocReqsRequirementAction values.

func (*DocReqsRequirementAction) Decode

func (s *DocReqsRequirementAction) Decode(d *jx.Decoder) error

Decode decodes DocReqsRequirementAction from json.

func (DocReqsRequirementAction) Encode

func (s DocReqsRequirementAction) Encode(e *jx.Encoder)

Encode encodes DocReqsRequirementAction as json.

func (DocReqsRequirementAction) MarshalJSON

func (s DocReqsRequirementAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (DocReqsRequirementAction) MarshalText

func (s DocReqsRequirementAction) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DocReqsRequirementAction) UnmarshalJSON

func (s *DocReqsRequirementAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DocReqsRequirementAction) UnmarshalText

func (s *DocReqsRequirementAction) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DocReqsRequirementAction) Validate

func (s DocReqsRequirementAction) Validate() error

type DocReqsRequirementList

type DocReqsRequirementList []DocReqsRequirement

func (*DocReqsRequirementList) Decode

func (s *DocReqsRequirementList) Decode(d *jx.Decoder) error

Decode decodes DocReqsRequirementList from json.

func (DocReqsRequirementList) Encode

func (s DocReqsRequirementList) Encode(e *jx.Encoder)

Encode encodes DocReqsRequirementList as json.

func (DocReqsRequirementList) MarshalJSON

func (s DocReqsRequirementList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DocReqsRequirementList) UnmarshalJSON

func (s *DocReqsRequirementList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (DocReqsRequirementList) Validate

func (s DocReqsRequirementList) Validate() error

type DocReqsRequirementPhoneNumberType

type DocReqsRequirementPhoneNumberType string

Indicates the phone_number_type this requirement applies to. Leave blank if this requirement applies to all number_types.

const (
	DocReqsRequirementPhoneNumberTypeLocal    DocReqsRequirementPhoneNumberType = "local"
	DocReqsRequirementPhoneNumberTypeNational DocReqsRequirementPhoneNumberType = "national"
	DocReqsRequirementPhoneNumberTypeTollFree DocReqsRequirementPhoneNumberType = "toll_free"
)

func (DocReqsRequirementPhoneNumberType) AllValues

AllValues returns all DocReqsRequirementPhoneNumberType values.

func (*DocReqsRequirementPhoneNumberType) Decode

Decode decodes DocReqsRequirementPhoneNumberType from json.

func (DocReqsRequirementPhoneNumberType) Encode

Encode encodes DocReqsRequirementPhoneNumberType as json.

func (DocReqsRequirementPhoneNumberType) MarshalJSON

func (s DocReqsRequirementPhoneNumberType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (DocReqsRequirementPhoneNumberType) MarshalText

func (s DocReqsRequirementPhoneNumberType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DocReqsRequirementPhoneNumberType) UnmarshalJSON

func (s *DocReqsRequirementPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DocReqsRequirementPhoneNumberType) UnmarshalText

func (s *DocReqsRequirementPhoneNumberType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DocReqsRequirementPhoneNumberType) Validate

type DocReqsRequirementResponse

type DocReqsRequirementResponse struct {
	Data OptDocReqsRequirement `json:"data"`
}

func (*DocReqsRequirementResponse) Decode

Decode decodes DocReqsRequirementResponse from json.

func (*DocReqsRequirementResponse) Encode

func (s *DocReqsRequirementResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DocReqsRequirementResponse) GetData

GetData returns the value of Data.

func (*DocReqsRequirementResponse) MarshalJSON

func (s *DocReqsRequirementResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DocReqsRequirementResponse) SetData

SetData sets the value of Data.

func (*DocReqsRequirementResponse) UnmarshalJSON

func (s *DocReqsRequirementResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DocReqsRequirementResponse) Validate

func (s *DocReqsRequirementResponse) Validate() error

type DocReqsRequirementType

type DocReqsRequirementType struct {
	// Specifies objective criteria for acceptance.
	AcceptanceCriteria OptDocReqsRequirementTypeAcceptanceCriteria `json:"acceptance_criteria"`
	// Describes the requirement type.
	Description OptString `json:"description"`
	// Provides one or more examples of acceptable documents.
	Example OptString `json:"example"`
	// Defines the type of this requirement type.
	Type OptDocReqsRequirementTypeType `json:"type"`
	// A short descriptive name for this requirement_type.
	Name OptString `json:"name"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// Identifies the associated document.
	ID OptUUID `json:"id"`
	// ISO 8601 formatted date-time indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date-time indicating when the resource was last updated.
	UpdatedAt OptString `json:"updated_at"`
}

Ref: #/components/schemas/DocReqsRequirementType

func (*DocReqsRequirementType) Decode

func (s *DocReqsRequirementType) Decode(d *jx.Decoder) error

Decode decodes DocReqsRequirementType from json.

func (*DocReqsRequirementType) Encode

func (s *DocReqsRequirementType) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DocReqsRequirementType) GetAcceptanceCriteria

GetAcceptanceCriteria returns the value of AcceptanceCriteria.

func (*DocReqsRequirementType) GetCreatedAt

func (s *DocReqsRequirementType) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*DocReqsRequirementType) GetDescription

func (s *DocReqsRequirementType) GetDescription() OptString

GetDescription returns the value of Description.

func (*DocReqsRequirementType) GetExample

func (s *DocReqsRequirementType) GetExample() OptString

GetExample returns the value of Example.

func (*DocReqsRequirementType) GetID

func (s *DocReqsRequirementType) GetID() OptUUID

GetID returns the value of ID.

func (*DocReqsRequirementType) GetName

func (s *DocReqsRequirementType) GetName() OptString

GetName returns the value of Name.

func (*DocReqsRequirementType) GetRecordType

func (s *DocReqsRequirementType) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*DocReqsRequirementType) GetType

GetType returns the value of Type.

func (*DocReqsRequirementType) GetUpdatedAt

func (s *DocReqsRequirementType) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*DocReqsRequirementType) MarshalJSON

func (s *DocReqsRequirementType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DocReqsRequirementType) SetAcceptanceCriteria

SetAcceptanceCriteria sets the value of AcceptanceCriteria.

func (*DocReqsRequirementType) SetCreatedAt

func (s *DocReqsRequirementType) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*DocReqsRequirementType) SetDescription

func (s *DocReqsRequirementType) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*DocReqsRequirementType) SetExample

func (s *DocReqsRequirementType) SetExample(val OptString)

SetExample sets the value of Example.

func (*DocReqsRequirementType) SetID

func (s *DocReqsRequirementType) SetID(val OptUUID)

SetID sets the value of ID.

func (*DocReqsRequirementType) SetName

func (s *DocReqsRequirementType) SetName(val OptString)

SetName sets the value of Name.

func (*DocReqsRequirementType) SetRecordType

func (s *DocReqsRequirementType) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*DocReqsRequirementType) SetType

SetType sets the value of Type.

func (*DocReqsRequirementType) SetUpdatedAt

func (s *DocReqsRequirementType) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*DocReqsRequirementType) UnmarshalJSON

func (s *DocReqsRequirementType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DocReqsRequirementType) Validate

func (s *DocReqsRequirementType) Validate() error

type DocReqsRequirementTypeAcceptanceCriteria

type DocReqsRequirementTypeAcceptanceCriteria struct {
	// Specifies time-based acceptance criteria.
	TimeLimit OptString `json:"time_limit"`
	// Specifies geography-based acceptance criteria.
	LocalityLimit OptString `json:"locality_limit"`
	// Specifies the list of strictly possible values for the requirement. Ignored when empty.
	AcceptableValues []string `json:"acceptable_values"`
}

Specifies objective criteria for acceptance.

func (*DocReqsRequirementTypeAcceptanceCriteria) Decode

Decode decodes DocReqsRequirementTypeAcceptanceCriteria from json.

func (*DocReqsRequirementTypeAcceptanceCriteria) Encode

Encode implements json.Marshaler.

func (*DocReqsRequirementTypeAcceptanceCriteria) GetAcceptableValues

func (s *DocReqsRequirementTypeAcceptanceCriteria) GetAcceptableValues() []string

GetAcceptableValues returns the value of AcceptableValues.

func (*DocReqsRequirementTypeAcceptanceCriteria) GetLocalityLimit

GetLocalityLimit returns the value of LocalityLimit.

func (*DocReqsRequirementTypeAcceptanceCriteria) GetTimeLimit

GetTimeLimit returns the value of TimeLimit.

func (*DocReqsRequirementTypeAcceptanceCriteria) MarshalJSON

func (s *DocReqsRequirementTypeAcceptanceCriteria) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DocReqsRequirementTypeAcceptanceCriteria) SetAcceptableValues

func (s *DocReqsRequirementTypeAcceptanceCriteria) SetAcceptableValues(val []string)

SetAcceptableValues sets the value of AcceptableValues.

func (*DocReqsRequirementTypeAcceptanceCriteria) SetLocalityLimit

func (s *DocReqsRequirementTypeAcceptanceCriteria) SetLocalityLimit(val OptString)

SetLocalityLimit sets the value of LocalityLimit.

func (*DocReqsRequirementTypeAcceptanceCriteria) SetTimeLimit

SetTimeLimit sets the value of TimeLimit.

func (*DocReqsRequirementTypeAcceptanceCriteria) UnmarshalJSON

func (s *DocReqsRequirementTypeAcceptanceCriteria) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DocReqsRequirementTypeList

type DocReqsRequirementTypeList []DocReqsRequirementType

func (*DocReqsRequirementTypeList) Decode

Decode decodes DocReqsRequirementTypeList from json.

func (DocReqsRequirementTypeList) Encode

func (s DocReqsRequirementTypeList) Encode(e *jx.Encoder)

Encode encodes DocReqsRequirementTypeList as json.

func (DocReqsRequirementTypeList) MarshalJSON

func (s DocReqsRequirementTypeList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DocReqsRequirementTypeList) UnmarshalJSON

func (s *DocReqsRequirementTypeList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (DocReqsRequirementTypeList) Validate

func (s DocReqsRequirementTypeList) Validate() error

type DocReqsRequirementTypeResponse

type DocReqsRequirementTypeResponse struct {
	Data OptDocReqsRequirementType `json:"data"`
}

func (*DocReqsRequirementTypeResponse) Decode

Decode decodes DocReqsRequirementTypeResponse from json.

func (*DocReqsRequirementTypeResponse) Encode

Encode implements json.Marshaler.

func (*DocReqsRequirementTypeResponse) GetData

GetData returns the value of Data.

func (*DocReqsRequirementTypeResponse) MarshalJSON

func (s *DocReqsRequirementTypeResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DocReqsRequirementTypeResponse) SetData

SetData sets the value of Data.

func (*DocReqsRequirementTypeResponse) UnmarshalJSON

func (s *DocReqsRequirementTypeResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DocReqsRequirementTypeResponse) Validate

func (s *DocReqsRequirementTypeResponse) Validate() error

type DocReqsRequirementTypeType

type DocReqsRequirementTypeType string

Defines the type of this requirement type.

const (
	DocReqsRequirementTypeTypeDocument DocReqsRequirementTypeType = "document"
	DocReqsRequirementTypeTypeAddress  DocReqsRequirementTypeType = "address"
	DocReqsRequirementTypeTypeTextual  DocReqsRequirementTypeType = "textual"
)

func (DocReqsRequirementTypeType) AllValues

AllValues returns all DocReqsRequirementTypeType values.

func (*DocReqsRequirementTypeType) Decode

Decode decodes DocReqsRequirementTypeType from json.

func (DocReqsRequirementTypeType) Encode

func (s DocReqsRequirementTypeType) Encode(e *jx.Encoder)

Encode encodes DocReqsRequirementTypeType as json.

func (DocReqsRequirementTypeType) MarshalJSON

func (s DocReqsRequirementTypeType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (DocReqsRequirementTypeType) MarshalText

func (s DocReqsRequirementTypeType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DocReqsRequirementTypeType) UnmarshalJSON

func (s *DocReqsRequirementTypeType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DocReqsRequirementTypeType) UnmarshalText

func (s *DocReqsRequirementTypeType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DocReqsRequirementTypeType) Validate

func (s DocReqsRequirementTypeType) Validate() error

type DocReqsRequirementTypesSort

type DocReqsRequirementTypesSort string
const (
	DocReqsRequirementTypesSortCreatedAt DocReqsRequirementTypesSort = "created_at"
	DocReqsRequirementTypesSortName      DocReqsRequirementTypesSort = "name"
	DocReqsRequirementTypesSortUpdatedAt DocReqsRequirementTypesSort = "updated_at"
)

func (DocReqsRequirementTypesSort) AllValues

AllValues returns all DocReqsRequirementTypesSort values.

func (DocReqsRequirementTypesSort) MarshalText

func (s DocReqsRequirementTypesSort) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DocReqsRequirementTypesSort) UnmarshalText

func (s *DocReqsRequirementTypesSort) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DocReqsRequirementTypesSort) Validate

func (s DocReqsRequirementTypesSort) Validate() error

type DocReqsRequirementsSort

type DocReqsRequirementsSort string
const (
	DocReqsRequirementsSortAction          DocReqsRequirementsSort = "action"
	DocReqsRequirementsSortCountryCode     DocReqsRequirementsSort = "country_code"
	DocReqsRequirementsSortLocality        DocReqsRequirementsSort = "locality"
	DocReqsRequirementsSortPhoneNumberType DocReqsRequirementsSort = "phone_number_type"
)

func (DocReqsRequirementsSort) AllValues

AllValues returns all DocReqsRequirementsSort values.

func (DocReqsRequirementsSort) MarshalText

func (s DocReqsRequirementsSort) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DocReqsRequirementsSort) UnmarshalText

func (s *DocReqsRequirementsSort) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DocReqsRequirementsSort) Validate

func (s DocReqsRequirementsSort) Validate() error

type DownloadLOATemplate

type DownloadLOATemplate struct {
	Data io.Reader
}

func (DownloadLOATemplate) Read

func (s DownloadLOATemplate) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DtmfType

type DtmfType string

Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats. Ref: #/components/schemas/DtmfType

const (
	DtmfTypeRFC2833 DtmfType = "RFC 2833"
	DtmfTypeInband  DtmfType = "Inband"
	DtmfTypeSIPINFO DtmfType = "SIP INFO"
)

func (DtmfType) AllValues

func (DtmfType) AllValues() []DtmfType

AllValues returns all DtmfType values.

func (*DtmfType) Decode

func (s *DtmfType) Decode(d *jx.Decoder) error

Decode decodes DtmfType from json.

func (DtmfType) Encode

func (s DtmfType) Encode(e *jx.Encoder)

Encode encodes DtmfType as json.

func (DtmfType) MarshalJSON

func (s DtmfType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (DtmfType) MarshalText

func (s DtmfType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DtmfType) UnmarshalJSON

func (s *DtmfType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DtmfType) UnmarshalText

func (s *DtmfType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DtmfType) Validate

func (s DtmfType) Validate() error

type EmergencySettings

type EmergencySettings struct {
	// Allows you to enable or disable emergency services on the phone number. In order to enable
	// emergency services, you must also set an emergency_address_id.
	EmergencyEnabled OptBool `json:"emergency_enabled"`
	// Identifies the address to be used with emergency services.
	EmergencyAddressID OptStringInt64 `json:"emergency_address_id"`
	// Represents the state of the number regarding emergency activation.
	EmergencyStatus OptEmergencySettingsEmergencyStatus `json:"emergency_status"`
}

The emergency services settings for a phone number. Ref: #/components/schemas/EmergencySettings

func (*EmergencySettings) Decode

func (s *EmergencySettings) Decode(d *jx.Decoder) error

Decode decodes EmergencySettings from json.

func (*EmergencySettings) Encode

func (s *EmergencySettings) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EmergencySettings) GetEmergencyAddressID

func (s *EmergencySettings) GetEmergencyAddressID() OptStringInt64

GetEmergencyAddressID returns the value of EmergencyAddressID.

func (*EmergencySettings) GetEmergencyEnabled

func (s *EmergencySettings) GetEmergencyEnabled() OptBool

GetEmergencyEnabled returns the value of EmergencyEnabled.

func (*EmergencySettings) GetEmergencyStatus

GetEmergencyStatus returns the value of EmergencyStatus.

func (*EmergencySettings) MarshalJSON

func (s *EmergencySettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EmergencySettings) SetEmergencyAddressID

func (s *EmergencySettings) SetEmergencyAddressID(val OptStringInt64)

SetEmergencyAddressID sets the value of EmergencyAddressID.

func (*EmergencySettings) SetEmergencyEnabled

func (s *EmergencySettings) SetEmergencyEnabled(val OptBool)

SetEmergencyEnabled sets the value of EmergencyEnabled.

func (*EmergencySettings) SetEmergencyStatus

func (s *EmergencySettings) SetEmergencyStatus(val OptEmergencySettingsEmergencyStatus)

SetEmergencyStatus sets the value of EmergencyStatus.

func (*EmergencySettings) UnmarshalJSON

func (s *EmergencySettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EmergencySettings) Validate

func (s *EmergencySettings) Validate() error

type EmergencySettingsEmergencyStatus

type EmergencySettingsEmergencyStatus string

Represents the state of the number regarding emergency activation.

const (
	EmergencySettingsEmergencyStatusDisabled       EmergencySettingsEmergencyStatus = "disabled"
	EmergencySettingsEmergencyStatusActive         EmergencySettingsEmergencyStatus = "active"
	EmergencySettingsEmergencyStatusProvisioning   EmergencySettingsEmergencyStatus = "provisioning"
	EmergencySettingsEmergencyStatusDeprovisioning EmergencySettingsEmergencyStatus = "deprovisioning"
)

func (EmergencySettingsEmergencyStatus) AllValues

AllValues returns all EmergencySettingsEmergencyStatus values.

func (*EmergencySettingsEmergencyStatus) Decode

Decode decodes EmergencySettingsEmergencyStatus from json.

func (EmergencySettingsEmergencyStatus) Encode

Encode encodes EmergencySettingsEmergencyStatus as json.

func (EmergencySettingsEmergencyStatus) MarshalJSON

func (s EmergencySettingsEmergencyStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EmergencySettingsEmergencyStatus) MarshalText

func (s EmergencySettingsEmergencyStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EmergencySettingsEmergencyStatus) UnmarshalJSON

func (s *EmergencySettingsEmergencyStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EmergencySettingsEmergencyStatus) UnmarshalText

func (s *EmergencySettingsEmergencyStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EmergencySettingsEmergencyStatus) Validate

type EnablePhoneNumberEmergencyAccepted

type EnablePhoneNumberEmergencyAccepted struct {
	Data OptPhoneNumberWithVoiceSettings `json:"data"`
}

func (*EnablePhoneNumberEmergencyAccepted) Decode

Decode decodes EnablePhoneNumberEmergencyAccepted from json.

func (*EnablePhoneNumberEmergencyAccepted) Encode

Encode implements json.Marshaler.

func (*EnablePhoneNumberEmergencyAccepted) GetData

GetData returns the value of Data.

func (*EnablePhoneNumberEmergencyAccepted) MarshalJSON

func (s *EnablePhoneNumberEmergencyAccepted) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EnablePhoneNumberEmergencyAccepted) SetData

SetData sets the value of Data.

func (*EnablePhoneNumberEmergencyAccepted) UnmarshalJSON

func (s *EnablePhoneNumberEmergencyAccepted) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EnablePhoneNumberEmergencyAccepted) Validate

type EnablePhoneNumberEmergencyOK

type EnablePhoneNumberEmergencyOK struct {
	Data OptPhoneNumberWithVoiceSettings `json:"data"`
}

func (*EnablePhoneNumberEmergencyOK) Decode

Decode decodes EnablePhoneNumberEmergencyOK from json.

func (*EnablePhoneNumberEmergencyOK) Encode

func (s *EnablePhoneNumberEmergencyOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EnablePhoneNumberEmergencyOK) GetData

GetData returns the value of Data.

func (*EnablePhoneNumberEmergencyOK) MarshalJSON

func (s *EnablePhoneNumberEmergencyOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EnablePhoneNumberEmergencyOK) SetData

SetData sets the value of Data.

func (*EnablePhoneNumberEmergencyOK) UnmarshalJSON

func (s *EnablePhoneNumberEmergencyOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EnablePhoneNumberEmergencyOK) Validate

func (s *EnablePhoneNumberEmergencyOK) Validate() error

type EnablePhoneNumberEmergencyParams

type EnablePhoneNumberEmergencyParams struct {
	// Identifies the resource.
	ID int64
}

EnablePhoneNumberEmergencyParams is parameters of EnablePhoneNumberEmergency operation.

type EnablePhoneNumberEmergencyRes

type EnablePhoneNumberEmergencyRes interface {
	// contains filtered or unexported methods
}

type EnqueueCallParams

type EnqueueCallParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

EnqueueCallParams is parameters of EnqueueCall operation.

type EnqueueCallRes

type EnqueueCallRes interface {
	// contains filtered or unexported methods
}

type EnqueueRequest

type EnqueueRequest struct {
	// The name of the queue the call should be put in. If a queue with a given name doesn't exist yet it
	// will be created.
	QueueName string `json:"queue_name"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
	// The number of seconds after which the call will be removed from the queue.
	MaxWaitTimeSecs OptInt `json:"max_wait_time_secs"`
	// The maximum number of calls allowed in the queue at a given time. Can't be modified for an
	// existing queue.
	MaxSize OptInt `json:"max_size"`
}

Ref: #/components/schemas/EnqueueRequest

func (*EnqueueRequest) Decode

func (s *EnqueueRequest) Decode(d *jx.Decoder) error

Decode decodes EnqueueRequest from json.

func (*EnqueueRequest) Encode

func (s *EnqueueRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EnqueueRequest) GetClientState

func (s *EnqueueRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*EnqueueRequest) GetCommandID

func (s *EnqueueRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*EnqueueRequest) GetMaxSize

func (s *EnqueueRequest) GetMaxSize() OptInt

GetMaxSize returns the value of MaxSize.

func (*EnqueueRequest) GetMaxWaitTimeSecs

func (s *EnqueueRequest) GetMaxWaitTimeSecs() OptInt

GetMaxWaitTimeSecs returns the value of MaxWaitTimeSecs.

func (*EnqueueRequest) GetQueueName

func (s *EnqueueRequest) GetQueueName() string

GetQueueName returns the value of QueueName.

func (*EnqueueRequest) MarshalJSON

func (s *EnqueueRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EnqueueRequest) SetClientState

func (s *EnqueueRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*EnqueueRequest) SetCommandID

func (s *EnqueueRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*EnqueueRequest) SetMaxSize

func (s *EnqueueRequest) SetMaxSize(val OptInt)

SetMaxSize sets the value of MaxSize.

func (*EnqueueRequest) SetMaxWaitTimeSecs

func (s *EnqueueRequest) SetMaxWaitTimeSecs(val OptInt)

SetMaxWaitTimeSecs sets the value of MaxWaitTimeSecs.

func (*EnqueueRequest) SetQueueName

func (s *EnqueueRequest) SetQueueName(val string)

SetQueueName sets the value of QueueName.

func (*EnqueueRequest) UnmarshalJSON

func (s *EnqueueRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Error

type Error struct {
	Code   int            `json:"code"`
	Title  string         `json:"title"`
	Detail OptString      `json:"detail"`
	Source OptErrorSource `json:"source"`
	Meta   OptErrorMeta   `json:"meta"`
}

Ref: #/components/schemas/Error

func (*Error) Decode

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (*Error) Encode

func (s *Error) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Error) GetCode

func (s *Error) GetCode() int

GetCode returns the value of Code.

func (*Error) GetDetail

func (s *Error) GetDetail() OptString

GetDetail returns the value of Detail.

func (*Error) GetMeta

func (s *Error) GetMeta() OptErrorMeta

GetMeta returns the value of Meta.

func (*Error) GetSource

func (s *Error) GetSource() OptErrorSource

GetSource returns the value of Source.

func (*Error) GetTitle

func (s *Error) GetTitle() string

GetTitle returns the value of Title.

func (*Error) MarshalJSON

func (s *Error) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Error) SetCode

func (s *Error) SetCode(val int)

SetCode sets the value of Code.

func (*Error) SetDetail

func (s *Error) SetDetail(val OptString)

SetDetail sets the value of Detail.

func (*Error) SetMeta

func (s *Error) SetMeta(val OptErrorMeta)

SetMeta sets the value of Meta.

func (*Error) SetSource

func (s *Error) SetSource(val OptErrorSource)

SetSource sets the value of Source.

func (*Error) SetTitle

func (s *Error) SetTitle(val string)

SetTitle sets the value of Title.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorMeta

type ErrorMeta map[string]jx.Raw

func (*ErrorMeta) Decode

func (s *ErrorMeta) Decode(d *jx.Decoder) error

Decode decodes ErrorMeta from json.

func (ErrorMeta) Encode

func (s ErrorMeta) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ErrorMeta) MarshalJSON

func (s ErrorMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorMeta) UnmarshalJSON

func (s *ErrorMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorRecord

type ErrorRecord struct {
	// An application-specific error code, expressed as a stringified 5-digit integer.
	Code OptString `json:"code"`
	// A short, human-readable summary of the problem, with NO punctuation, that SHOULD NOT CHANGE from
	// occurrence to occurrence of the problem, except for purposes of localization.
	Title OptString `json:"title"`
	// A human-readable explanation specific to this occurrence of the problem. Like title, this
	// field’s value can be localized.
	Detail OptString         `json:"detail"`
	Source OptSourceResponse `json:"source"`
	Meta   OptMetaResponse   `json:"meta"`
}

Ref: #/components/schemas/ErrorRecord

func (*ErrorRecord) Decode

func (s *ErrorRecord) Decode(d *jx.Decoder) error

Decode decodes ErrorRecord from json.

func (*ErrorRecord) Encode

func (s *ErrorRecord) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ErrorRecord) GetCode

func (s *ErrorRecord) GetCode() OptString

GetCode returns the value of Code.

func (*ErrorRecord) GetDetail

func (s *ErrorRecord) GetDetail() OptString

GetDetail returns the value of Detail.

func (*ErrorRecord) GetMeta

func (s *ErrorRecord) GetMeta() OptMetaResponse

GetMeta returns the value of Meta.

func (*ErrorRecord) GetSource

func (s *ErrorRecord) GetSource() OptSourceResponse

GetSource returns the value of Source.

func (*ErrorRecord) GetTitle

func (s *ErrorRecord) GetTitle() OptString

GetTitle returns the value of Title.

func (*ErrorRecord) MarshalJSON

func (s *ErrorRecord) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorRecord) SetCode

func (s *ErrorRecord) SetCode(val OptString)

SetCode sets the value of Code.

func (*ErrorRecord) SetDetail

func (s *ErrorRecord) SetDetail(val OptString)

SetDetail sets the value of Detail.

func (*ErrorRecord) SetMeta

func (s *ErrorRecord) SetMeta(val OptMetaResponse)

SetMeta sets the value of Meta.

func (*ErrorRecord) SetSource

func (s *ErrorRecord) SetSource(val OptSourceResponse)

SetSource sets the value of Source.

func (*ErrorRecord) SetTitle

func (s *ErrorRecord) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*ErrorRecord) UnmarshalJSON

func (s *ErrorRecord) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorResponse

type ErrorResponse struct {
	Errors []ErrorRecord `json:"errors"`
}

Ref: #/components/schemas/ErrorResponse

func (*ErrorResponse) Decode

func (s *ErrorResponse) Decode(d *jx.Decoder) error

Decode decodes ErrorResponse from json.

func (*ErrorResponse) Encode

func (s *ErrorResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ErrorResponse) GetErrors

func (s *ErrorResponse) GetErrors() []ErrorRecord

GetErrors returns the value of Errors.

func (*ErrorResponse) MarshalJSON

func (s *ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorResponse) SetErrors

func (s *ErrorResponse) SetErrors(val []ErrorRecord)

SetErrors sets the value of Errors.

func (*ErrorResponse) UnmarshalJSON

func (s *ErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorSource

type ErrorSource struct {
	// JSON pointer (RFC6901) to the offending entity.
	Pointer OptString `json:"pointer"`
	// Indicates which query parameter caused the error.
	Parameter OptString `json:"parameter"`
}

func (*ErrorSource) Decode

func (s *ErrorSource) Decode(d *jx.Decoder) error

Decode decodes ErrorSource from json.

func (*ErrorSource) Encode

func (s *ErrorSource) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ErrorSource) GetParameter

func (s *ErrorSource) GetParameter() OptString

GetParameter returns the value of Parameter.

func (*ErrorSource) GetPointer

func (s *ErrorSource) GetPointer() OptString

GetPointer returns the value of Pointer.

func (*ErrorSource) MarshalJSON

func (s *ErrorSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorSource) SetParameter

func (s *ErrorSource) SetParameter(val OptString)

SetParameter sets the value of Parameter.

func (*ErrorSource) SetPointer

func (s *ErrorSource) SetPointer(val OptString)

SetPointer sets the value of Pointer.

func (*ErrorSource) UnmarshalJSON

func (s *ErrorSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Errors

type Errors struct {
	Errors []Error `json:"errors"`
}

Ref: #/components/schemas/Errors

func (*Errors) Decode

func (s *Errors) Decode(d *jx.Decoder) error

Decode decodes Errors from json.

func (*Errors) Encode

func (s *Errors) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Errors) GetErrors

func (s *Errors) GetErrors() []Error

GetErrors returns the value of Errors.

func (*Errors) MarshalJSON

func (s *Errors) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Errors) SetErrors

func (s *Errors) SetErrors(val []Error)

SetErrors sets the value of Errors.

func (*Errors) UnmarshalJSON

func (s *Errors) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExportPortingOrdersCSVReport

type ExportPortingOrdersCSVReport struct {
	// The filters to apply to the export porting order CSV report.
	Filters ExportPortingOrdersCSVReportFilters `json:"filters"`
}

The parameters for generating a porting orders CSV report. Ref: #/components/schemas/ExportPortingOrdersCSVReport

func (*ExportPortingOrdersCSVReport) Decode

Decode decodes ExportPortingOrdersCSVReport from json.

func (*ExportPortingOrdersCSVReport) Encode

func (s *ExportPortingOrdersCSVReport) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExportPortingOrdersCSVReport) GetFilters

GetFilters returns the value of Filters.

func (*ExportPortingOrdersCSVReport) MarshalJSON

func (s *ExportPortingOrdersCSVReport) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExportPortingOrdersCSVReport) SetFilters

SetFilters sets the value of Filters.

func (*ExportPortingOrdersCSVReport) UnmarshalJSON

func (s *ExportPortingOrdersCSVReport) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ExportPortingOrdersCSVReport) Validate

func (s *ExportPortingOrdersCSVReport) Validate() error

type ExportPortingOrdersCSVReportFilters

type ExportPortingOrdersCSVReportFilters struct {
	// The status of the porting orders to include in the report.
	StatusIn []ExportPortingOrdersCSVReportFiltersStatusInItem `json:"status__in"`
	// The customer reference of the porting orders to include in the report.
	CustomerReferenceIn []string `json:"customer_reference__in"`
	// The date and time the porting order was created before.
	CreatedAtLt OptDateTime `json:"created_at__lt"`
	// The date and time the porting order was created after.
	CreatedAtGt OptDateTime `json:"created_at__gt"`
}

The filters to apply to the export porting order CSV report.

func (*ExportPortingOrdersCSVReportFilters) Decode

Decode decodes ExportPortingOrdersCSVReportFilters from json.

func (*ExportPortingOrdersCSVReportFilters) Encode

Encode implements json.Marshaler.

func (*ExportPortingOrdersCSVReportFilters) GetCreatedAtGt

GetCreatedAtGt returns the value of CreatedAtGt.

func (*ExportPortingOrdersCSVReportFilters) GetCreatedAtLt

GetCreatedAtLt returns the value of CreatedAtLt.

func (*ExportPortingOrdersCSVReportFilters) GetCustomerReferenceIn

func (s *ExportPortingOrdersCSVReportFilters) GetCustomerReferenceIn() []string

GetCustomerReferenceIn returns the value of CustomerReferenceIn.

func (*ExportPortingOrdersCSVReportFilters) GetStatusIn

GetStatusIn returns the value of StatusIn.

func (*ExportPortingOrdersCSVReportFilters) MarshalJSON

func (s *ExportPortingOrdersCSVReportFilters) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExportPortingOrdersCSVReportFilters) SetCreatedAtGt

func (s *ExportPortingOrdersCSVReportFilters) SetCreatedAtGt(val OptDateTime)

SetCreatedAtGt sets the value of CreatedAtGt.

func (*ExportPortingOrdersCSVReportFilters) SetCreatedAtLt

func (s *ExportPortingOrdersCSVReportFilters) SetCreatedAtLt(val OptDateTime)

SetCreatedAtLt sets the value of CreatedAtLt.

func (*ExportPortingOrdersCSVReportFilters) SetCustomerReferenceIn

func (s *ExportPortingOrdersCSVReportFilters) SetCustomerReferenceIn(val []string)

SetCustomerReferenceIn sets the value of CustomerReferenceIn.

func (*ExportPortingOrdersCSVReportFilters) SetStatusIn

SetStatusIn sets the value of StatusIn.

func (*ExportPortingOrdersCSVReportFilters) UnmarshalJSON

func (s *ExportPortingOrdersCSVReportFilters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ExportPortingOrdersCSVReportFilters) Validate

type ExportPortingOrdersCSVReportFiltersStatusInItem

type ExportPortingOrdersCSVReportFiltersStatusInItem string
const (
	ExportPortingOrdersCSVReportFiltersStatusInItemDraft            ExportPortingOrdersCSVReportFiltersStatusInItem = "draft"
	ExportPortingOrdersCSVReportFiltersStatusInItemInProcess        ExportPortingOrdersCSVReportFiltersStatusInItem = "in-process"
	ExportPortingOrdersCSVReportFiltersStatusInItemSubmitted        ExportPortingOrdersCSVReportFiltersStatusInItem = "submitted"
	ExportPortingOrdersCSVReportFiltersStatusInItemException        ExportPortingOrdersCSVReportFiltersStatusInItem = "exception"
	ExportPortingOrdersCSVReportFiltersStatusInItemFocDateConfirmed ExportPortingOrdersCSVReportFiltersStatusInItem = "foc-date-confirmed"
	ExportPortingOrdersCSVReportFiltersStatusInItemCancelPending    ExportPortingOrdersCSVReportFiltersStatusInItem = "cancel-pending"
	ExportPortingOrdersCSVReportFiltersStatusInItemPorted           ExportPortingOrdersCSVReportFiltersStatusInItem = "ported"
	ExportPortingOrdersCSVReportFiltersStatusInItemCancelled        ExportPortingOrdersCSVReportFiltersStatusInItem = "cancelled"
)

func (ExportPortingOrdersCSVReportFiltersStatusInItem) AllValues

AllValues returns all ExportPortingOrdersCSVReportFiltersStatusInItem values.

func (*ExportPortingOrdersCSVReportFiltersStatusInItem) Decode

Decode decodes ExportPortingOrdersCSVReportFiltersStatusInItem from json.

func (ExportPortingOrdersCSVReportFiltersStatusInItem) Encode

Encode encodes ExportPortingOrdersCSVReportFiltersStatusInItem as json.

func (ExportPortingOrdersCSVReportFiltersStatusInItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (ExportPortingOrdersCSVReportFiltersStatusInItem) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*ExportPortingOrdersCSVReportFiltersStatusInItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ExportPortingOrdersCSVReportFiltersStatusInItem) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (ExportPortingOrdersCSVReportFiltersStatusInItem) Validate

type ExtendNumberReservationExpiryTimeParams

type ExtendNumberReservationExpiryTimeParams struct {
	// The number reservation ID.
	NumberReservationID string
}

ExtendNumberReservationExpiryTimeParams is parameters of ExtendNumberReservationExpiryTime operation.

type ExtendNumberReservationExpiryTimeRes

type ExtendNumberReservationExpiryTimeRes interface {
	// contains filtered or unexported methods
}

type ExternalConnectionPhoneNumber

type ExternalConnectionPhoneNumber struct {
	TicketID OptUUID `json:"ticket_id"`
	// Phone number in E164 format.
	TelephoneNumber OptString `json:"telephone_number"`
	// Phone number ID from the Telnyx API.
	NumberID OptString `json:"number_id"`
	// Identifies the civic address assigned to the phone number.
	CivicAddressID OptUUID `json:"civic_address_id"`
	// Identifies the location assigned to the phone number.
	LocationID OptUUID `json:"location_id"`
	// The iso country code that will be displayed to the user when they receive a call from this phone
	// number.
	DisplayedCountryCode OptString                                               `json:"displayed_country_code"`
	AcquiredCapabilities []ExternalConnectionPhoneNumberAcquiredCapabilitiesItem `json:"acquired_capabilities"`
}

Ref: #/components/schemas/ExternalConnectionPhoneNumber

func (*ExternalConnectionPhoneNumber) Decode

Decode decodes ExternalConnectionPhoneNumber from json.

func (*ExternalConnectionPhoneNumber) Encode

Encode implements json.Marshaler.

func (*ExternalConnectionPhoneNumber) GetAcquiredCapabilities

GetAcquiredCapabilities returns the value of AcquiredCapabilities.

func (*ExternalConnectionPhoneNumber) GetCivicAddressID

func (s *ExternalConnectionPhoneNumber) GetCivicAddressID() OptUUID

GetCivicAddressID returns the value of CivicAddressID.

func (*ExternalConnectionPhoneNumber) GetDisplayedCountryCode

func (s *ExternalConnectionPhoneNumber) GetDisplayedCountryCode() OptString

GetDisplayedCountryCode returns the value of DisplayedCountryCode.

func (*ExternalConnectionPhoneNumber) GetLocationID

func (s *ExternalConnectionPhoneNumber) GetLocationID() OptUUID

GetLocationID returns the value of LocationID.

func (*ExternalConnectionPhoneNumber) GetNumberID

func (s *ExternalConnectionPhoneNumber) GetNumberID() OptString

GetNumberID returns the value of NumberID.

func (*ExternalConnectionPhoneNumber) GetTelephoneNumber

func (s *ExternalConnectionPhoneNumber) GetTelephoneNumber() OptString

GetTelephoneNumber returns the value of TelephoneNumber.

func (*ExternalConnectionPhoneNumber) GetTicketID

func (s *ExternalConnectionPhoneNumber) GetTicketID() OptUUID

GetTicketID returns the value of TicketID.

func (*ExternalConnectionPhoneNumber) MarshalJSON

func (s *ExternalConnectionPhoneNumber) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExternalConnectionPhoneNumber) SetAcquiredCapabilities

SetAcquiredCapabilities sets the value of AcquiredCapabilities.

func (*ExternalConnectionPhoneNumber) SetCivicAddressID

func (s *ExternalConnectionPhoneNumber) SetCivicAddressID(val OptUUID)

SetCivicAddressID sets the value of CivicAddressID.

func (*ExternalConnectionPhoneNumber) SetDisplayedCountryCode

func (s *ExternalConnectionPhoneNumber) SetDisplayedCountryCode(val OptString)

SetDisplayedCountryCode sets the value of DisplayedCountryCode.

func (*ExternalConnectionPhoneNumber) SetLocationID

func (s *ExternalConnectionPhoneNumber) SetLocationID(val OptUUID)

SetLocationID sets the value of LocationID.

func (*ExternalConnectionPhoneNumber) SetNumberID

func (s *ExternalConnectionPhoneNumber) SetNumberID(val OptString)

SetNumberID sets the value of NumberID.

func (*ExternalConnectionPhoneNumber) SetTelephoneNumber

func (s *ExternalConnectionPhoneNumber) SetTelephoneNumber(val OptString)

SetTelephoneNumber sets the value of TelephoneNumber.

func (*ExternalConnectionPhoneNumber) SetTicketID

func (s *ExternalConnectionPhoneNumber) SetTicketID(val OptUUID)

SetTicketID sets the value of TicketID.

func (*ExternalConnectionPhoneNumber) UnmarshalJSON

func (s *ExternalConnectionPhoneNumber) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ExternalConnectionPhoneNumber) Validate

func (s *ExternalConnectionPhoneNumber) Validate() error

type ExternalConnectionPhoneNumberAcquiredCapabilitiesItem

type ExternalConnectionPhoneNumberAcquiredCapabilitiesItem string

The capabilities that are available for this phone number on Microsoft Teams.

const (
	ExternalConnectionPhoneNumberAcquiredCapabilitiesItemFirstPartyAppAssignment ExternalConnectionPhoneNumberAcquiredCapabilitiesItem = "FirstPartyAppAssignment"
	ExternalConnectionPhoneNumberAcquiredCapabilitiesItemInboundCalling          ExternalConnectionPhoneNumberAcquiredCapabilitiesItem = "InboundCalling"
	ExternalConnectionPhoneNumberAcquiredCapabilitiesItemOffice365               ExternalConnectionPhoneNumberAcquiredCapabilitiesItem = "Office365"
	ExternalConnectionPhoneNumberAcquiredCapabilitiesItemOutboundCalling         ExternalConnectionPhoneNumberAcquiredCapabilitiesItem = "OutboundCalling"
	ExternalConnectionPhoneNumberAcquiredCapabilitiesItemUserAssignment          ExternalConnectionPhoneNumberAcquiredCapabilitiesItem = "UserAssignment"
)

func (ExternalConnectionPhoneNumberAcquiredCapabilitiesItem) AllValues

AllValues returns all ExternalConnectionPhoneNumberAcquiredCapabilitiesItem values.

func (*ExternalConnectionPhoneNumberAcquiredCapabilitiesItem) Decode

Decode decodes ExternalConnectionPhoneNumberAcquiredCapabilitiesItem from json.

func (ExternalConnectionPhoneNumberAcquiredCapabilitiesItem) Encode

Encode encodes ExternalConnectionPhoneNumberAcquiredCapabilitiesItem as json.

func (ExternalConnectionPhoneNumberAcquiredCapabilitiesItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (ExternalConnectionPhoneNumberAcquiredCapabilitiesItem) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*ExternalConnectionPhoneNumberAcquiredCapabilitiesItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ExternalConnectionPhoneNumberAcquiredCapabilitiesItem) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (ExternalConnectionPhoneNumberAcquiredCapabilitiesItem) Validate

type Feature

type Feature struct {
	Name OptString `json:"name"`
}

Ref: #/components/schemas/Feature

func (*Feature) Decode

func (s *Feature) Decode(d *jx.Decoder) error

Decode decodes Feature from json.

func (*Feature) Encode

func (s *Feature) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Feature) GetName

func (s *Feature) GetName() OptString

GetName returns the value of Name.

func (*Feature) MarshalJSON

func (s *Feature) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Feature) SetName

func (s *Feature) SetName(val OptString)

SetName sets the value of Name.

func (*Feature) UnmarshalJSON

func (s *Feature) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FetchTeXMLCallRecordingsParams

type FetchTeXMLCallRecordingsParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The CallSid that identifies the call to update.
	CallSid string
}

FetchTeXMLCallRecordingsParams is parameters of FetchTeXMLCallRecordings operation.

type FetchTeXMLCallRecordingsRes

type FetchTeXMLCallRecordingsRes interface {
	// contains filtered or unexported methods
}

type FetchTeXMLConferenceRecordingsParams

type FetchTeXMLConferenceRecordingsParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The ConferenceSid that uniquely identifies a conference.
	ConferenceSid string
}

FetchTeXMLConferenceRecordingsParams is parameters of FetchTeXMLConferenceRecordings operation.

type FetchTeXMLConferenceRecordingsRes

type FetchTeXMLConferenceRecordingsRes interface {
	// contains filtered or unexported methods
}

type FilterBasicStatusLifecycle

type FilterBasicStatusLifecycle string
const (
	FilterBasicStatusLifecycleInProgress FilterBasicStatusLifecycle = "in-progress"
	FilterBasicStatusLifecycleCompleted  FilterBasicStatusLifecycle = "completed"
	FilterBasicStatusLifecycleFailed     FilterBasicStatusLifecycle = "failed"
)

func (FilterBasicStatusLifecycle) AllValues

AllValues returns all FilterBasicStatusLifecycle values.

func (FilterBasicStatusLifecycle) MarshalText

func (s FilterBasicStatusLifecycle) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FilterBasicStatusLifecycle) UnmarshalText

func (s *FilterBasicStatusLifecycle) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FilterBasicStatusLifecycle) Validate

func (s FilterBasicStatusLifecycle) Validate() error

type FilterByPortingOrderStatus

type FilterByPortingOrderStatus string
const (
	FilterByPortingOrderStatusDraft            FilterByPortingOrderStatus = "draft"
	FilterByPortingOrderStatusInProcess        FilterByPortingOrderStatus = "in-process"
	FilterByPortingOrderStatusSubmitted        FilterByPortingOrderStatus = "submitted"
	FilterByPortingOrderStatusException        FilterByPortingOrderStatus = "exception"
	FilterByPortingOrderStatusFocDateConfirmed FilterByPortingOrderStatus = "foc-date-confirmed"
	FilterByPortingOrderStatusCancelPending    FilterByPortingOrderStatus = "cancel-pending"
	FilterByPortingOrderStatusPorted           FilterByPortingOrderStatus = "ported"
	FilterByPortingOrderStatusCancelled        FilterByPortingOrderStatus = "cancelled"
)

func (FilterByPortingOrderStatus) AllValues

AllValues returns all FilterByPortingOrderStatus values.

func (FilterByPortingOrderStatus) MarshalText

func (s FilterByPortingOrderStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FilterByPortingOrderStatus) UnmarshalText

func (s *FilterByPortingOrderStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FilterByPortingOrderStatus) Validate

func (s FilterByPortingOrderStatus) Validate() error

type FilterByPortingOrderStatusIn

type FilterByPortingOrderStatusIn string
const (
	FilterByPortingOrderStatusInDraft            FilterByPortingOrderStatusIn = "draft"
	FilterByPortingOrderStatusInInProcess        FilterByPortingOrderStatusIn = "in-process"
	FilterByPortingOrderStatusInSubmitted        FilterByPortingOrderStatusIn = "submitted"
	FilterByPortingOrderStatusInException        FilterByPortingOrderStatusIn = "exception"
	FilterByPortingOrderStatusInFocDateConfirmed FilterByPortingOrderStatusIn = "foc-date-confirmed"
	FilterByPortingOrderStatusInCancelPending    FilterByPortingOrderStatusIn = "cancel-pending"
	FilterByPortingOrderStatusInPorted           FilterByPortingOrderStatusIn = "ported"
	FilterByPortingOrderStatusInCancelled        FilterByPortingOrderStatusIn = "cancelled"
)

func (FilterByPortingOrderStatusIn) AllValues

AllValues returns all FilterByPortingOrderStatusIn values.

func (FilterByPortingOrderStatusIn) MarshalText

func (s FilterByPortingOrderStatusIn) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FilterByPortingOrderStatusIn) UnmarshalText

func (s *FilterByPortingOrderStatusIn) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FilterByPortingOrderStatusIn) Validate

func (s FilterByPortingOrderStatusIn) Validate() error

type FindPortoutCommentsNotFound

type FindPortoutCommentsNotFound struct{}

FindPortoutCommentsNotFound is response for FindPortoutComments operation.

type FindPortoutCommentsParams

type FindPortoutCommentsParams struct {
	// Portout id.
	ID uuid.UUID
}

FindPortoutCommentsParams is parameters of FindPortoutComments operation.

type FindPortoutCommentsRes

type FindPortoutCommentsRes interface {
	// contains filtered or unexported methods
}

type FindPortoutCommentsUnauthorized

type FindPortoutCommentsUnauthorized struct{}

FindPortoutCommentsUnauthorized is response for FindPortoutComments operation.

type FindPortoutCommentsUnprocessableEntity

type FindPortoutCommentsUnprocessableEntity struct{}

FindPortoutCommentsUnprocessableEntity is response for FindPortoutComments operation.

type FindPortoutRequestNotFound

type FindPortoutRequestNotFound struct{}

FindPortoutRequestNotFound is response for FindPortoutRequest operation.

type FindPortoutRequestParams

type FindPortoutRequestParams struct {
	// Portout id.
	ID uuid.UUID
}

FindPortoutRequestParams is parameters of FindPortoutRequest operation.

type FindPortoutRequestRes

type FindPortoutRequestRes interface {
	// contains filtered or unexported methods
}

type FindPortoutRequestUnauthorized

type FindPortoutRequestUnauthorized struct{}

FindPortoutRequestUnauthorized is response for FindPortoutRequest operation.

type FindPortoutRequestUnprocessableEntity

type FindPortoutRequestUnprocessableEntity struct{}

FindPortoutRequestUnprocessableEntity is response for FindPortoutRequest operation.

type FindTelephonyCredentialsBadRequest

type FindTelephonyCredentialsBadRequest struct{}

FindTelephonyCredentialsBadRequest is response for FindTelephonyCredentials operation.

type FindTelephonyCredentialsNotFound

type FindTelephonyCredentialsNotFound struct{}

FindTelephonyCredentialsNotFound is response for FindTelephonyCredentials operation.

type FindTelephonyCredentialsParams

type FindTelephonyCredentialsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Filter by tag.
	FilterTag OptString
	// Filter by name.
	FilterName OptString
	// Filter by status.
	FilterStatus OptString
	// Filter by resource_id.
	FilterResourceID OptString
	// Filter by sip_username.
	FilterSipUsername OptString
}

FindTelephonyCredentialsParams is parameters of FindTelephonyCredentials operation.

type FindTelephonyCredentialsRes

type FindTelephonyCredentialsRes interface {
	// contains filtered or unexported methods
}

type FindTelephonyCredentialsUnauthorized

type FindTelephonyCredentialsUnauthorized struct{}

FindTelephonyCredentialsUnauthorized is response for FindTelephonyCredentials operation.

type FindTexmlApplicationsBadRequest

type FindTexmlApplicationsBadRequest ErrorResponse

func (*FindTexmlApplicationsBadRequest) Decode

Decode decodes FindTexmlApplicationsBadRequest from json.

func (*FindTexmlApplicationsBadRequest) Encode

Encode encodes FindTexmlApplicationsBadRequest as json.

func (*FindTexmlApplicationsBadRequest) MarshalJSON

func (s *FindTexmlApplicationsBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FindTexmlApplicationsBadRequest) UnmarshalJSON

func (s *FindTexmlApplicationsBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FindTexmlApplicationsParams

type FindTexmlApplicationsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// If present, applications with <code>friendly_name</code> containing the given value will be
	// returned. Matching is not case-sensitive. Requires at least three characters.
	FilterFriendlyNameContains OptString
	// Identifies the associated outbound voice profile.
	FilterOutboundVoiceProfileID OptStringInt64
	// Specifies the sort order for results. By default sorting direction is ascending. To have the
	// results sorted in descending order add the <code> -</code> prefix.<br/><br/>
	// That is: <ul>
	// <li>
	// <code>friendly_name</code>: sorts the result by the
	// <code>friendly_name</code> field in ascending order.
	// </li>
	// <li>
	// <code>-friendly_name</code>: sorts the result by the
	// <code>friendly_name</code> field in descending order.
	// </li>
	// </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order.
	Sort OptSortApplication
}

FindTexmlApplicationsParams is parameters of FindTexmlApplications operation.

type FindTexmlApplicationsRes

type FindTexmlApplicationsRes interface {
	// contains filtered or unexported methods
}

type FindTexmlApplicationsUnauthorized

type FindTexmlApplicationsUnauthorized ErrorResponse

func (*FindTexmlApplicationsUnauthorized) Decode

Decode decodes FindTexmlApplicationsUnauthorized from json.

func (*FindTexmlApplicationsUnauthorized) Encode

Encode encodes FindTexmlApplicationsUnauthorized as json.

func (*FindTexmlApplicationsUnauthorized) MarshalJSON

func (s *FindTexmlApplicationsUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FindTexmlApplicationsUnauthorized) UnmarshalJSON

func (s *FindTexmlApplicationsUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FirstCommandTimeout

type FirstCommandTimeout bool

func (*FirstCommandTimeout) Decode

func (s *FirstCommandTimeout) Decode(d *jx.Decoder) error

Decode decodes FirstCommandTimeout from json.

func (FirstCommandTimeout) Encode

func (s FirstCommandTimeout) Encode(e *jx.Encoder)

Encode encodes FirstCommandTimeout as json.

func (FirstCommandTimeout) MarshalJSON

func (s FirstCommandTimeout) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FirstCommandTimeout) UnmarshalJSON

func (s *FirstCommandTimeout) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FirstCommandTimeoutSecs

type FirstCommandTimeoutSecs int

func (*FirstCommandTimeoutSecs) Decode

func (s *FirstCommandTimeoutSecs) Decode(d *jx.Decoder) error

Decode decodes FirstCommandTimeoutSecs from json.

func (FirstCommandTimeoutSecs) Encode

func (s FirstCommandTimeoutSecs) Encode(e *jx.Encoder)

Encode encodes FirstCommandTimeoutSecs as json.

func (FirstCommandTimeoutSecs) MarshalJSON

func (s FirstCommandTimeoutSecs) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FirstCommandTimeoutSecs) UnmarshalJSON

func (s *FirstCommandTimeoutSecs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ForbiddenResponse

type ForbiddenResponse struct{}

Ref: #/components/responses/ForbiddenResponse

type GCSConfigurationData

type GCSConfigurationData struct {
	Credentials OptCredentials `json:"credentials"`
	Bucket      OptBucket      `json:"bucket"`
}

Ref: #/components/schemas/GCSConfigurationData

func (*GCSConfigurationData) Decode

func (s *GCSConfigurationData) Decode(d *jx.Decoder) error

Decode decodes GCSConfigurationData from json.

func (*GCSConfigurationData) Encode

func (s *GCSConfigurationData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GCSConfigurationData) GetBucket

func (s *GCSConfigurationData) GetBucket() OptBucket

GetBucket returns the value of Bucket.

func (*GCSConfigurationData) GetCredentials

func (s *GCSConfigurationData) GetCredentials() OptCredentials

GetCredentials returns the value of Credentials.

func (*GCSConfigurationData) MarshalJSON

func (s *GCSConfigurationData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GCSConfigurationData) SetBucket

func (s *GCSConfigurationData) SetBucket(val OptBucket)

SetBucket sets the value of Bucket.

func (*GCSConfigurationData) SetCredentials

func (s *GCSConfigurationData) SetCredentials(val OptCredentials)

SetCredentials sets the value of Credentials.

func (*GCSConfigurationData) UnmarshalJSON

func (s *GCSConfigurationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GatherCallParams

type GatherCallParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

GatherCallParams is parameters of GatherCall operation.

type GatherCallRes

type GatherCallRes interface {
	// contains filtered or unexported methods
}

type GatherRequest

type GatherRequest struct {
	// The minimum number of digits to fetch. This parameter has a minimum value of 1.
	MinimumDigits OptInt32 `json:"minimum_digits"`
	// The maximum number of digits to fetch. This parameter has a maximum value of 128.
	MaximumDigits OptInt32 `json:"maximum_digits"`
	// The number of milliseconds to wait to complete the request.
	TimeoutMillis OptInt32 `json:"timeout_millis"`
	// The number of milliseconds to wait for input between digits.
	InterDigitTimeoutMillis OptInt32 `json:"inter_digit_timeout_millis"`
	// The number of milliseconds to wait for the first DTMF.
	InitialTimeoutMillis OptInt32 `json:"initial_timeout_millis"`
	// The digit used to terminate input if fewer than `maximum_digits` digits have been gathered.
	TerminatingDigit OptString `json:"terminating_digit"`
	// A list of all digits accepted as valid.
	ValidDigits OptString `json:"valid_digits"`
	// An id that will be sent back in the corresponding `call.gather.ended` webhook. Will be randomly
	// generated if not specified.
	GatherID OptString `json:"gather_id"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/GatherRequest

func (*GatherRequest) Decode

func (s *GatherRequest) Decode(d *jx.Decoder) error

Decode decodes GatherRequest from json.

func (*GatherRequest) Encode

func (s *GatherRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GatherRequest) GetClientState

func (s *GatherRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*GatherRequest) GetCommandID

func (s *GatherRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*GatherRequest) GetGatherID

func (s *GatherRequest) GetGatherID() OptString

GetGatherID returns the value of GatherID.

func (*GatherRequest) GetInitialTimeoutMillis

func (s *GatherRequest) GetInitialTimeoutMillis() OptInt32

GetInitialTimeoutMillis returns the value of InitialTimeoutMillis.

func (*GatherRequest) GetInterDigitTimeoutMillis

func (s *GatherRequest) GetInterDigitTimeoutMillis() OptInt32

GetInterDigitTimeoutMillis returns the value of InterDigitTimeoutMillis.

func (*GatherRequest) GetMaximumDigits

func (s *GatherRequest) GetMaximumDigits() OptInt32

GetMaximumDigits returns the value of MaximumDigits.

func (*GatherRequest) GetMinimumDigits

func (s *GatherRequest) GetMinimumDigits() OptInt32

GetMinimumDigits returns the value of MinimumDigits.

func (*GatherRequest) GetTerminatingDigit

func (s *GatherRequest) GetTerminatingDigit() OptString

GetTerminatingDigit returns the value of TerminatingDigit.

func (*GatherRequest) GetTimeoutMillis

func (s *GatherRequest) GetTimeoutMillis() OptInt32

GetTimeoutMillis returns the value of TimeoutMillis.

func (*GatherRequest) GetValidDigits

func (s *GatherRequest) GetValidDigits() OptString

GetValidDigits returns the value of ValidDigits.

func (*GatherRequest) MarshalJSON

func (s *GatherRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GatherRequest) SetClientState

func (s *GatherRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*GatherRequest) SetCommandID

func (s *GatherRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*GatherRequest) SetGatherID

func (s *GatherRequest) SetGatherID(val OptString)

SetGatherID sets the value of GatherID.

func (*GatherRequest) SetInitialTimeoutMillis

func (s *GatherRequest) SetInitialTimeoutMillis(val OptInt32)

SetInitialTimeoutMillis sets the value of InitialTimeoutMillis.

func (*GatherRequest) SetInterDigitTimeoutMillis

func (s *GatherRequest) SetInterDigitTimeoutMillis(val OptInt32)

SetInterDigitTimeoutMillis sets the value of InterDigitTimeoutMillis.

func (*GatherRequest) SetMaximumDigits

func (s *GatherRequest) SetMaximumDigits(val OptInt32)

SetMaximumDigits sets the value of MaximumDigits.

func (*GatherRequest) SetMinimumDigits

func (s *GatherRequest) SetMinimumDigits(val OptInt32)

SetMinimumDigits sets the value of MinimumDigits.

func (*GatherRequest) SetTerminatingDigit

func (s *GatherRequest) SetTerminatingDigit(val OptString)

SetTerminatingDigit sets the value of TerminatingDigit.

func (*GatherRequest) SetTimeoutMillis

func (s *GatherRequest) SetTimeoutMillis(val OptInt32)

SetTimeoutMillis sets the value of TimeoutMillis.

func (*GatherRequest) SetValidDigits

func (s *GatherRequest) SetValidDigits(val OptString)

SetValidDigits sets the value of ValidDigits.

func (*GatherRequest) UnmarshalJSON

func (s *GatherRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GatherUsingAudioParams

type GatherUsingAudioParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

GatherUsingAudioParams is parameters of GatherUsingAudio operation.

type GatherUsingAudioRequest

type GatherUsingAudioRequest struct {
	// The URL of a file to be played back at the beginning of each prompt. The URL can point to either a
	// WAV or MP3 file. media_name and audio_url cannot be used together in one request.
	AudioURL OptString `json:"audio_url"`
	// The media_name of a file to be played back at the beginning of each prompt. The media_name must
	// point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The
	// file must either be a WAV or MP3 file.
	MediaName OptString `json:"media_name"`
	// The URL of a file to play when digits don't match the `valid_digits` parameter or the number of
	// digits is not between `min` and `max`. The URL can point to either a WAV or MP3 file.
	// invalid_media_name and invalid_audio_url cannot be used together in one request.
	InvalidAudioURL OptString `json:"invalid_audio_url"`
	// The media_name of a file to be played back when digits don't match the `valid_digits` parameter or
	// the number of digits is not between `min` and `max`. The media_name must point to a file
	// previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either
	// be a WAV or MP3 file.
	InvalidMediaName OptString `json:"invalid_media_name"`
	// The minimum number of digits to fetch. This parameter has a minimum value of 1.
	MinimumDigits OptInt32 `json:"minimum_digits"`
	// The maximum number of digits to fetch. This parameter has a maximum value of 128.
	MaximumDigits OptInt32 `json:"maximum_digits"`
	// The maximum number of times the file should be played if there is no input from the user on the
	// call.
	MaximumTries OptInt32 `json:"maximum_tries"`
	// The number of milliseconds to wait for a DTMF response after file playback ends before a replaying
	// the sound file.
	TimeoutMillis OptInt32 `json:"timeout_millis"`
	// The digit used to terminate input if fewer than `maximum_digits` digits have been gathered.
	TerminatingDigit OptString `json:"terminating_digit"`
	// A list of all digits accepted as valid.
	ValidDigits OptString `json:"valid_digits"`
	// The number of milliseconds to wait for input between digits.
	InterDigitTimeoutMillis OptInt32 `json:"inter_digit_timeout_millis"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/GatherUsingAudioRequest

func (*GatherUsingAudioRequest) Decode

func (s *GatherUsingAudioRequest) Decode(d *jx.Decoder) error

Decode decodes GatherUsingAudioRequest from json.

func (*GatherUsingAudioRequest) Encode

func (s *GatherUsingAudioRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GatherUsingAudioRequest) GetAudioURL

func (s *GatherUsingAudioRequest) GetAudioURL() OptString

GetAudioURL returns the value of AudioURL.

func (*GatherUsingAudioRequest) GetClientState

func (s *GatherUsingAudioRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*GatherUsingAudioRequest) GetCommandID

func (s *GatherUsingAudioRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*GatherUsingAudioRequest) GetInterDigitTimeoutMillis

func (s *GatherUsingAudioRequest) GetInterDigitTimeoutMillis() OptInt32

GetInterDigitTimeoutMillis returns the value of InterDigitTimeoutMillis.

func (*GatherUsingAudioRequest) GetInvalidAudioURL

func (s *GatherUsingAudioRequest) GetInvalidAudioURL() OptString

GetInvalidAudioURL returns the value of InvalidAudioURL.

func (*GatherUsingAudioRequest) GetInvalidMediaName

func (s *GatherUsingAudioRequest) GetInvalidMediaName() OptString

GetInvalidMediaName returns the value of InvalidMediaName.

func (*GatherUsingAudioRequest) GetMaximumDigits

func (s *GatherUsingAudioRequest) GetMaximumDigits() OptInt32

GetMaximumDigits returns the value of MaximumDigits.

func (*GatherUsingAudioRequest) GetMaximumTries

func (s *GatherUsingAudioRequest) GetMaximumTries() OptInt32

GetMaximumTries returns the value of MaximumTries.

func (*GatherUsingAudioRequest) GetMediaName

func (s *GatherUsingAudioRequest) GetMediaName() OptString

GetMediaName returns the value of MediaName.

func (*GatherUsingAudioRequest) GetMinimumDigits

func (s *GatherUsingAudioRequest) GetMinimumDigits() OptInt32

GetMinimumDigits returns the value of MinimumDigits.

func (*GatherUsingAudioRequest) GetTerminatingDigit

func (s *GatherUsingAudioRequest) GetTerminatingDigit() OptString

GetTerminatingDigit returns the value of TerminatingDigit.

func (*GatherUsingAudioRequest) GetTimeoutMillis

func (s *GatherUsingAudioRequest) GetTimeoutMillis() OptInt32

GetTimeoutMillis returns the value of TimeoutMillis.

func (*GatherUsingAudioRequest) GetValidDigits

func (s *GatherUsingAudioRequest) GetValidDigits() OptString

GetValidDigits returns the value of ValidDigits.

func (*GatherUsingAudioRequest) MarshalJSON

func (s *GatherUsingAudioRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GatherUsingAudioRequest) SetAudioURL

func (s *GatherUsingAudioRequest) SetAudioURL(val OptString)

SetAudioURL sets the value of AudioURL.

func (*GatherUsingAudioRequest) SetClientState

func (s *GatherUsingAudioRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*GatherUsingAudioRequest) SetCommandID

func (s *GatherUsingAudioRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*GatherUsingAudioRequest) SetInterDigitTimeoutMillis

func (s *GatherUsingAudioRequest) SetInterDigitTimeoutMillis(val OptInt32)

SetInterDigitTimeoutMillis sets the value of InterDigitTimeoutMillis.

func (*GatherUsingAudioRequest) SetInvalidAudioURL

func (s *GatherUsingAudioRequest) SetInvalidAudioURL(val OptString)

SetInvalidAudioURL sets the value of InvalidAudioURL.

func (*GatherUsingAudioRequest) SetInvalidMediaName

func (s *GatherUsingAudioRequest) SetInvalidMediaName(val OptString)

SetInvalidMediaName sets the value of InvalidMediaName.

func (*GatherUsingAudioRequest) SetMaximumDigits

func (s *GatherUsingAudioRequest) SetMaximumDigits(val OptInt32)

SetMaximumDigits sets the value of MaximumDigits.

func (*GatherUsingAudioRequest) SetMaximumTries

func (s *GatherUsingAudioRequest) SetMaximumTries(val OptInt32)

SetMaximumTries sets the value of MaximumTries.

func (*GatherUsingAudioRequest) SetMediaName

func (s *GatherUsingAudioRequest) SetMediaName(val OptString)

SetMediaName sets the value of MediaName.

func (*GatherUsingAudioRequest) SetMinimumDigits

func (s *GatherUsingAudioRequest) SetMinimumDigits(val OptInt32)

SetMinimumDigits sets the value of MinimumDigits.

func (*GatherUsingAudioRequest) SetTerminatingDigit

func (s *GatherUsingAudioRequest) SetTerminatingDigit(val OptString)

SetTerminatingDigit sets the value of TerminatingDigit.

func (*GatherUsingAudioRequest) SetTimeoutMillis

func (s *GatherUsingAudioRequest) SetTimeoutMillis(val OptInt32)

SetTimeoutMillis sets the value of TimeoutMillis.

func (*GatherUsingAudioRequest) SetValidDigits

func (s *GatherUsingAudioRequest) SetValidDigits(val OptString)

SetValidDigits sets the value of ValidDigits.

func (*GatherUsingAudioRequest) UnmarshalJSON

func (s *GatherUsingAudioRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GatherUsingAudioRes

type GatherUsingAudioRes interface {
	// contains filtered or unexported methods
}

type GatherUsingSpeakParams

type GatherUsingSpeakParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

GatherUsingSpeakParams is parameters of GatherUsingSpeak operation.

type GatherUsingSpeakRequest

type GatherUsingSpeakRequest struct {
	// The text or SSML to be converted into speech. There is a 3,000 character limit.
	Payload string `json:"payload"`
	// The text or SSML to be converted into speech when digits don't match the `valid_digits` parameter
	// or the number of digits is not between `min` and `max`. There is a 3,000 character limit.
	InvalidPayload OptString `json:"invalid_payload"`
	// The type of the provided payload. The payload can either be plain text, or Speech Synthesis Markup
	// Language (SSML).
	PayloadType OptGatherUsingSpeakRequestPayloadType `json:"payload_type"`
	// This parameter impacts speech quality, language options and payload types. When using `basic`,
	// only the `en-US` language and payload type `text` are allowed.
	ServiceLevel OptGatherUsingSpeakRequestServiceLevel `json:"service_level"`
	// The gender of the voice used to speak back the text or the specific Amazon Polly voice to be used
	// in the form of `Polly.<voice>`, e.g. `Polly.Brian`. All standard Amazon Polly voices are supported.
	Voice GatherUsingSpeakRequestVoice `json:"voice"`
	// The language you want spoken. This parameter is ignored when a `Polly.*` voice is specified.
	Language OptGatherUsingSpeakRequestLanguage `json:"language"`
	// The minimum number of digits to fetch. This parameter has a minimum value of 1.
	MinimumDigits OptInt32 `json:"minimum_digits"`
	// The maximum number of digits to fetch. This parameter has a maximum value of 128.
	MaximumDigits OptInt32 `json:"maximum_digits"`
	// The maximum number of times that a file should be played back if there is no input from the user
	// on the call.
	MaximumTries OptInt32 `json:"maximum_tries"`
	// The number of milliseconds to wait for a DTMF response after speak ends before a replaying the
	// sound file.
	TimeoutMillis OptInt32 `json:"timeout_millis"`
	// The digit used to terminate input if fewer than `maximum_digits` digits have been gathered.
	TerminatingDigit OptString `json:"terminating_digit"`
	// A list of all digits accepted as valid.
	ValidDigits OptString `json:"valid_digits"`
	// The number of milliseconds to wait for input between digits.
	InterDigitTimeoutMillis OptInt32 `json:"inter_digit_timeout_millis"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/GatherUsingSpeakRequest

func (*GatherUsingSpeakRequest) Decode

func (s *GatherUsingSpeakRequest) Decode(d *jx.Decoder) error

Decode decodes GatherUsingSpeakRequest from json.

func (*GatherUsingSpeakRequest) Encode

func (s *GatherUsingSpeakRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GatherUsingSpeakRequest) GetClientState

func (s *GatherUsingSpeakRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*GatherUsingSpeakRequest) GetCommandID

func (s *GatherUsingSpeakRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*GatherUsingSpeakRequest) GetInterDigitTimeoutMillis

func (s *GatherUsingSpeakRequest) GetInterDigitTimeoutMillis() OptInt32

GetInterDigitTimeoutMillis returns the value of InterDigitTimeoutMillis.

func (*GatherUsingSpeakRequest) GetInvalidPayload

func (s *GatherUsingSpeakRequest) GetInvalidPayload() OptString

GetInvalidPayload returns the value of InvalidPayload.

func (*GatherUsingSpeakRequest) GetLanguage

GetLanguage returns the value of Language.

func (*GatherUsingSpeakRequest) GetMaximumDigits

func (s *GatherUsingSpeakRequest) GetMaximumDigits() OptInt32

GetMaximumDigits returns the value of MaximumDigits.

func (*GatherUsingSpeakRequest) GetMaximumTries

func (s *GatherUsingSpeakRequest) GetMaximumTries() OptInt32

GetMaximumTries returns the value of MaximumTries.

func (*GatherUsingSpeakRequest) GetMinimumDigits

func (s *GatherUsingSpeakRequest) GetMinimumDigits() OptInt32

GetMinimumDigits returns the value of MinimumDigits.

func (*GatherUsingSpeakRequest) GetPayload

func (s *GatherUsingSpeakRequest) GetPayload() string

GetPayload returns the value of Payload.

func (*GatherUsingSpeakRequest) GetPayloadType

GetPayloadType returns the value of PayloadType.

func (*GatherUsingSpeakRequest) GetServiceLevel

GetServiceLevel returns the value of ServiceLevel.

func (*GatherUsingSpeakRequest) GetTerminatingDigit

func (s *GatherUsingSpeakRequest) GetTerminatingDigit() OptString

GetTerminatingDigit returns the value of TerminatingDigit.

func (*GatherUsingSpeakRequest) GetTimeoutMillis

func (s *GatherUsingSpeakRequest) GetTimeoutMillis() OptInt32

GetTimeoutMillis returns the value of TimeoutMillis.

func (*GatherUsingSpeakRequest) GetValidDigits

func (s *GatherUsingSpeakRequest) GetValidDigits() OptString

GetValidDigits returns the value of ValidDigits.

func (*GatherUsingSpeakRequest) GetVoice

GetVoice returns the value of Voice.

func (*GatherUsingSpeakRequest) MarshalJSON

func (s *GatherUsingSpeakRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GatherUsingSpeakRequest) SetClientState

func (s *GatherUsingSpeakRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*GatherUsingSpeakRequest) SetCommandID

func (s *GatherUsingSpeakRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*GatherUsingSpeakRequest) SetInterDigitTimeoutMillis

func (s *GatherUsingSpeakRequest) SetInterDigitTimeoutMillis(val OptInt32)

SetInterDigitTimeoutMillis sets the value of InterDigitTimeoutMillis.

func (*GatherUsingSpeakRequest) SetInvalidPayload

func (s *GatherUsingSpeakRequest) SetInvalidPayload(val OptString)

SetInvalidPayload sets the value of InvalidPayload.

func (*GatherUsingSpeakRequest) SetLanguage

SetLanguage sets the value of Language.

func (*GatherUsingSpeakRequest) SetMaximumDigits

func (s *GatherUsingSpeakRequest) SetMaximumDigits(val OptInt32)

SetMaximumDigits sets the value of MaximumDigits.

func (*GatherUsingSpeakRequest) SetMaximumTries

func (s *GatherUsingSpeakRequest) SetMaximumTries(val OptInt32)

SetMaximumTries sets the value of MaximumTries.

func (*GatherUsingSpeakRequest) SetMinimumDigits

func (s *GatherUsingSpeakRequest) SetMinimumDigits(val OptInt32)

SetMinimumDigits sets the value of MinimumDigits.

func (*GatherUsingSpeakRequest) SetPayload

func (s *GatherUsingSpeakRequest) SetPayload(val string)

SetPayload sets the value of Payload.

func (*GatherUsingSpeakRequest) SetPayloadType

SetPayloadType sets the value of PayloadType.

func (*GatherUsingSpeakRequest) SetServiceLevel

SetServiceLevel sets the value of ServiceLevel.

func (*GatherUsingSpeakRequest) SetTerminatingDigit

func (s *GatherUsingSpeakRequest) SetTerminatingDigit(val OptString)

SetTerminatingDigit sets the value of TerminatingDigit.

func (*GatherUsingSpeakRequest) SetTimeoutMillis

func (s *GatherUsingSpeakRequest) SetTimeoutMillis(val OptInt32)

SetTimeoutMillis sets the value of TimeoutMillis.

func (*GatherUsingSpeakRequest) SetValidDigits

func (s *GatherUsingSpeakRequest) SetValidDigits(val OptString)

SetValidDigits sets the value of ValidDigits.

func (*GatherUsingSpeakRequest) SetVoice

SetVoice sets the value of Voice.

func (*GatherUsingSpeakRequest) UnmarshalJSON

func (s *GatherUsingSpeakRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GatherUsingSpeakRequest) Validate

func (s *GatherUsingSpeakRequest) Validate() error

type GatherUsingSpeakRequestLanguage

type GatherUsingSpeakRequestLanguage string

The language you want spoken. This parameter is ignored when a `Polly.*` voice is specified.

const (
	GatherUsingSpeakRequestLanguageArb     GatherUsingSpeakRequestLanguage = "arb"
	GatherUsingSpeakRequestLanguageCmnCN   GatherUsingSpeakRequestLanguage = "cmn-CN"
	GatherUsingSpeakRequestLanguageCyGB    GatherUsingSpeakRequestLanguage = "cy-GB"
	GatherUsingSpeakRequestLanguageDaDK    GatherUsingSpeakRequestLanguage = "da-DK"
	GatherUsingSpeakRequestLanguageDeDE    GatherUsingSpeakRequestLanguage = "de-DE"
	GatherUsingSpeakRequestLanguageEnAU    GatherUsingSpeakRequestLanguage = "en-AU"
	GatherUsingSpeakRequestLanguageEnGB    GatherUsingSpeakRequestLanguage = "en-GB"
	GatherUsingSpeakRequestLanguageEnGBWLS GatherUsingSpeakRequestLanguage = "en-GB-WLS"
	GatherUsingSpeakRequestLanguageEnIN    GatherUsingSpeakRequestLanguage = "en-IN"
	GatherUsingSpeakRequestLanguageEnUS    GatherUsingSpeakRequestLanguage = "en-US"
	GatherUsingSpeakRequestLanguageEsES    GatherUsingSpeakRequestLanguage = "es-ES"
	GatherUsingSpeakRequestLanguageEsMX    GatherUsingSpeakRequestLanguage = "es-MX"
	GatherUsingSpeakRequestLanguageEsUS    GatherUsingSpeakRequestLanguage = "es-US"
	GatherUsingSpeakRequestLanguageFrCA    GatherUsingSpeakRequestLanguage = "fr-CA"
	GatherUsingSpeakRequestLanguageFrFR    GatherUsingSpeakRequestLanguage = "fr-FR"
	GatherUsingSpeakRequestLanguageHiIN    GatherUsingSpeakRequestLanguage = "hi-IN"
	GatherUsingSpeakRequestLanguageIsIS    GatherUsingSpeakRequestLanguage = "is-IS"
	GatherUsingSpeakRequestLanguageItIT    GatherUsingSpeakRequestLanguage = "it-IT"
	GatherUsingSpeakRequestLanguageJaJP    GatherUsingSpeakRequestLanguage = "ja-JP"
	GatherUsingSpeakRequestLanguageKoKR    GatherUsingSpeakRequestLanguage = "ko-KR"
	GatherUsingSpeakRequestLanguageNbNO    GatherUsingSpeakRequestLanguage = "nb-NO"
	GatherUsingSpeakRequestLanguageNlNL    GatherUsingSpeakRequestLanguage = "nl-NL"
	GatherUsingSpeakRequestLanguagePlPL    GatherUsingSpeakRequestLanguage = "pl-PL"
	GatherUsingSpeakRequestLanguagePtBR    GatherUsingSpeakRequestLanguage = "pt-BR"
	GatherUsingSpeakRequestLanguagePtPT    GatherUsingSpeakRequestLanguage = "pt-PT"
	GatherUsingSpeakRequestLanguageRoRO    GatherUsingSpeakRequestLanguage = "ro-RO"
	GatherUsingSpeakRequestLanguageRuRU    GatherUsingSpeakRequestLanguage = "ru-RU"
	GatherUsingSpeakRequestLanguageSvSE    GatherUsingSpeakRequestLanguage = "sv-SE"
	GatherUsingSpeakRequestLanguageTrTR    GatherUsingSpeakRequestLanguage = "tr-TR"
)

func (GatherUsingSpeakRequestLanguage) AllValues

AllValues returns all GatherUsingSpeakRequestLanguage values.

func (*GatherUsingSpeakRequestLanguage) Decode

Decode decodes GatherUsingSpeakRequestLanguage from json.

func (GatherUsingSpeakRequestLanguage) Encode

Encode encodes GatherUsingSpeakRequestLanguage as json.

func (GatherUsingSpeakRequestLanguage) MarshalJSON

func (s GatherUsingSpeakRequestLanguage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (GatherUsingSpeakRequestLanguage) MarshalText

func (s GatherUsingSpeakRequestLanguage) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*GatherUsingSpeakRequestLanguage) UnmarshalJSON

func (s *GatherUsingSpeakRequestLanguage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GatherUsingSpeakRequestLanguage) UnmarshalText

func (s *GatherUsingSpeakRequestLanguage) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GatherUsingSpeakRequestLanguage) Validate

type GatherUsingSpeakRequestPayloadType

type GatherUsingSpeakRequestPayloadType string

The type of the provided payload. The payload can either be plain text, or Speech Synthesis Markup Language (SSML).

const (
	GatherUsingSpeakRequestPayloadTypeText GatherUsingSpeakRequestPayloadType = "text"
	GatherUsingSpeakRequestPayloadTypeSsml GatherUsingSpeakRequestPayloadType = "ssml"
)

func (GatherUsingSpeakRequestPayloadType) AllValues

AllValues returns all GatherUsingSpeakRequestPayloadType values.

func (*GatherUsingSpeakRequestPayloadType) Decode

Decode decodes GatherUsingSpeakRequestPayloadType from json.

func (GatherUsingSpeakRequestPayloadType) Encode

Encode encodes GatherUsingSpeakRequestPayloadType as json.

func (GatherUsingSpeakRequestPayloadType) MarshalJSON

func (s GatherUsingSpeakRequestPayloadType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (GatherUsingSpeakRequestPayloadType) MarshalText

func (s GatherUsingSpeakRequestPayloadType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*GatherUsingSpeakRequestPayloadType) UnmarshalJSON

func (s *GatherUsingSpeakRequestPayloadType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GatherUsingSpeakRequestPayloadType) UnmarshalText

func (s *GatherUsingSpeakRequestPayloadType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GatherUsingSpeakRequestPayloadType) Validate

type GatherUsingSpeakRequestServiceLevel

type GatherUsingSpeakRequestServiceLevel string

This parameter impacts speech quality, language options and payload types. When using `basic`, only the `en-US` language and payload type `text` are allowed.

const (
	GatherUsingSpeakRequestServiceLevelBasic   GatherUsingSpeakRequestServiceLevel = "basic"
	GatherUsingSpeakRequestServiceLevelPremium GatherUsingSpeakRequestServiceLevel = "premium"
)

func (GatherUsingSpeakRequestServiceLevel) AllValues

AllValues returns all GatherUsingSpeakRequestServiceLevel values.

func (*GatherUsingSpeakRequestServiceLevel) Decode

Decode decodes GatherUsingSpeakRequestServiceLevel from json.

func (GatherUsingSpeakRequestServiceLevel) Encode

Encode encodes GatherUsingSpeakRequestServiceLevel as json.

func (GatherUsingSpeakRequestServiceLevel) MarshalJSON

func (s GatherUsingSpeakRequestServiceLevel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (GatherUsingSpeakRequestServiceLevel) MarshalText

func (s GatherUsingSpeakRequestServiceLevel) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*GatherUsingSpeakRequestServiceLevel) UnmarshalJSON

func (s *GatherUsingSpeakRequestServiceLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GatherUsingSpeakRequestServiceLevel) UnmarshalText

func (s *GatherUsingSpeakRequestServiceLevel) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GatherUsingSpeakRequestServiceLevel) Validate

type GatherUsingSpeakRequestVoice

type GatherUsingSpeakRequestVoice string

The gender of the voice used to speak back the text or the specific Amazon Polly voice to be used in the form of `Polly.<voice>`, e.g. `Polly.Brian`. All standard Amazon Polly voices are supported.

const (
	GatherUsingSpeakRequestVoiceMale   GatherUsingSpeakRequestVoice = "male"
	GatherUsingSpeakRequestVoiceFemale GatherUsingSpeakRequestVoice = "female"
)

func (GatherUsingSpeakRequestVoice) AllValues

AllValues returns all GatherUsingSpeakRequestVoice values.

func (*GatherUsingSpeakRequestVoice) Decode

Decode decodes GatherUsingSpeakRequestVoice from json.

func (GatherUsingSpeakRequestVoice) Encode

Encode encodes GatherUsingSpeakRequestVoice as json.

func (GatherUsingSpeakRequestVoice) MarshalJSON

func (s GatherUsingSpeakRequestVoice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (GatherUsingSpeakRequestVoice) MarshalText

func (s GatherUsingSpeakRequestVoice) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*GatherUsingSpeakRequestVoice) UnmarshalJSON

func (s *GatherUsingSpeakRequestVoice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GatherUsingSpeakRequestVoice) UnmarshalText

func (s *GatherUsingSpeakRequestVoice) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GatherUsingSpeakRequestVoice) Validate

func (s GatherUsingSpeakRequestVoice) Validate() error

type GatherUsingSpeakRes

type GatherUsingSpeakRes interface {
	// contains filtered or unexported methods
}

type GcbPhoneNumber

type GcbPhoneNumber struct {
	RecordType    GcbPhoneNumberRecordType `json:"record_type"`
	ChannelZoneID string                   `json:"channel_zone_id"`
	ID            OptString                `json:"id"`
	PhoneNumber   string                   `json:"phone_number"`
	// ISO 8601 formatted date of when the phone number was created.
	CreatedAt OptString `json:"created_at"`
}

Ref: #/components/schemas/GcbPhoneNumber

func (*GcbPhoneNumber) Decode

func (s *GcbPhoneNumber) Decode(d *jx.Decoder) error

Decode decodes GcbPhoneNumber from json.

func (*GcbPhoneNumber) Encode

func (s *GcbPhoneNumber) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GcbPhoneNumber) GetChannelZoneID

func (s *GcbPhoneNumber) GetChannelZoneID() string

GetChannelZoneID returns the value of ChannelZoneID.

func (*GcbPhoneNumber) GetCreatedAt

func (s *GcbPhoneNumber) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*GcbPhoneNumber) GetID

func (s *GcbPhoneNumber) GetID() OptString

GetID returns the value of ID.

func (*GcbPhoneNumber) GetPhoneNumber

func (s *GcbPhoneNumber) GetPhoneNumber() string

GetPhoneNumber returns the value of PhoneNumber.

func (*GcbPhoneNumber) GetRecordType

func (s *GcbPhoneNumber) GetRecordType() GcbPhoneNumberRecordType

GetRecordType returns the value of RecordType.

func (*GcbPhoneNumber) MarshalJSON

func (s *GcbPhoneNumber) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GcbPhoneNumber) SetChannelZoneID

func (s *GcbPhoneNumber) SetChannelZoneID(val string)

SetChannelZoneID sets the value of ChannelZoneID.

func (*GcbPhoneNumber) SetCreatedAt

func (s *GcbPhoneNumber) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*GcbPhoneNumber) SetID

func (s *GcbPhoneNumber) SetID(val OptString)

SetID sets the value of ID.

func (*GcbPhoneNumber) SetPhoneNumber

func (s *GcbPhoneNumber) SetPhoneNumber(val string)

SetPhoneNumber sets the value of PhoneNumber.

func (*GcbPhoneNumber) SetRecordType

func (s *GcbPhoneNumber) SetRecordType(val GcbPhoneNumberRecordType)

SetRecordType sets the value of RecordType.

func (*GcbPhoneNumber) UnmarshalJSON

func (s *GcbPhoneNumber) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GcbPhoneNumber) Validate

func (s *GcbPhoneNumber) Validate() error

type GcbPhoneNumberRecordType

type GcbPhoneNumberRecordType string
const (
	GcbPhoneNumberRecordTypeChannelZonePhoneNumber GcbPhoneNumberRecordType = "channel_zone_phone_number"
)

func (GcbPhoneNumberRecordType) AllValues

AllValues returns all GcbPhoneNumberRecordType values.

func (*GcbPhoneNumberRecordType) Decode

func (s *GcbPhoneNumberRecordType) Decode(d *jx.Decoder) error

Decode decodes GcbPhoneNumberRecordType from json.

func (GcbPhoneNumberRecordType) Encode

func (s GcbPhoneNumberRecordType) Encode(e *jx.Encoder)

Encode encodes GcbPhoneNumberRecordType as json.

func (GcbPhoneNumberRecordType) MarshalJSON

func (s GcbPhoneNumberRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (GcbPhoneNumberRecordType) MarshalText

func (s GcbPhoneNumberRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*GcbPhoneNumberRecordType) UnmarshalJSON

func (s *GcbPhoneNumberRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GcbPhoneNumberRecordType) UnmarshalText

func (s *GcbPhoneNumberRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GcbPhoneNumberRecordType) Validate

func (s GcbPhoneNumberRecordType) Validate() error

type GenericErrorResponseStatusCode

type GenericErrorResponseStatusCode struct {
	StatusCode int
	Response   Errors
}

GenericErrorResponseStatusCode wraps Errors with StatusCode.

func (*GenericErrorResponseStatusCode) GetResponse

func (s *GenericErrorResponseStatusCode) GetResponse() Errors

GetResponse returns the value of Response.

func (*GenericErrorResponseStatusCode) GetStatusCode

func (s *GenericErrorResponseStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*GenericErrorResponseStatusCode) SetResponse

func (s *GenericErrorResponseStatusCode) SetResponse(val Errors)

SetResponse sets the value of Response.

func (*GenericErrorResponseStatusCode) SetStatusCode

func (s *GenericErrorResponseStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type GetAllPrivateWirelessGatewaysResponse

type GetAllPrivateWirelessGatewaysResponse struct {
	Data []PrivateWirelessGateway `json:"data"`
	Meta OptPaginationMeta        `json:"meta"`
}

func (*GetAllPrivateWirelessGatewaysResponse) Decode

Decode decodes GetAllPrivateWirelessGatewaysResponse from json.

func (*GetAllPrivateWirelessGatewaysResponse) Encode

Encode implements json.Marshaler.

func (*GetAllPrivateWirelessGatewaysResponse) GetData

GetData returns the value of Data.

func (*GetAllPrivateWirelessGatewaysResponse) GetMeta

GetMeta returns the value of Meta.

func (*GetAllPrivateWirelessGatewaysResponse) MarshalJSON

func (s *GetAllPrivateWirelessGatewaysResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllPrivateWirelessGatewaysResponse) SetData

SetData sets the value of Data.

func (*GetAllPrivateWirelessGatewaysResponse) SetMeta

SetMeta sets the value of Meta.

func (*GetAllPrivateWirelessGatewaysResponse) UnmarshalJSON

func (s *GetAllPrivateWirelessGatewaysResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAllPrivateWirelessGatewaysResponse) Validate

type GetAllTelephonyCredentialResponse

type GetAllTelephonyCredentialResponse struct {
	Data []TelephonyCredential `json:"data"`
	Meta OptPaginationMeta     `json:"meta"`
}

func (*GetAllTelephonyCredentialResponse) Decode

Decode decodes GetAllTelephonyCredentialResponse from json.

func (*GetAllTelephonyCredentialResponse) Encode

Encode implements json.Marshaler.

func (*GetAllTelephonyCredentialResponse) GetData

GetData returns the value of Data.

func (*GetAllTelephonyCredentialResponse) GetMeta

GetMeta returns the value of Meta.

func (*GetAllTelephonyCredentialResponse) MarshalJSON

func (s *GetAllTelephonyCredentialResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllTelephonyCredentialResponse) SetData

SetData sets the value of Data.

func (*GetAllTelephonyCredentialResponse) SetMeta

SetMeta sets the value of Meta.

func (*GetAllTelephonyCredentialResponse) UnmarshalJSON

func (s *GetAllTelephonyCredentialResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllTexmlApplicationsResponse

type GetAllTexmlApplicationsResponse struct {
	Data []TexmlApplication `json:"data"`
	Meta OptPaginationMeta  `json:"meta"`
}

func (*GetAllTexmlApplicationsResponse) Decode

Decode decodes GetAllTexmlApplicationsResponse from json.

func (*GetAllTexmlApplicationsResponse) Encode

Encode implements json.Marshaler.

func (*GetAllTexmlApplicationsResponse) GetData

GetData returns the value of Data.

func (*GetAllTexmlApplicationsResponse) GetMeta

GetMeta returns the value of Meta.

func (*GetAllTexmlApplicationsResponse) MarshalJSON

func (s *GetAllTexmlApplicationsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllTexmlApplicationsResponse) SetData

SetData sets the value of Data.

func (*GetAllTexmlApplicationsResponse) SetMeta

SetMeta sets the value of Meta.

func (*GetAllTexmlApplicationsResponse) UnmarshalJSON

func (s *GetAllTexmlApplicationsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAllTexmlApplicationsResponse) Validate

func (s *GetAllTexmlApplicationsResponse) Validate() error

type GetCallResponse

type GetCallResponse struct {
	Data OptCallResource `json:"data"`
}

func (*GetCallResponse) Decode

func (s *GetCallResponse) Decode(d *jx.Decoder) error

Decode decodes GetCallResponse from json.

func (*GetCallResponse) Encode

func (s *GetCallResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetCallResponse) GetData

func (s *GetCallResponse) GetData() OptCallResource

GetData returns the value of Data.

func (*GetCallResponse) MarshalJSON

func (s *GetCallResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCallResponse) SetData

func (s *GetCallResponse) SetData(val OptCallResource)

SetData sets the value of Data.

func (*GetCallResponse) UnmarshalJSON

func (s *GetCallResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetCallResponse) Validate

func (s *GetCallResponse) Validate() error

type GetCallsResponse

type GetCallsResponse struct {
	Data OptCallResourceIndex `json:"data"`
}

func (*GetCallsResponse) Decode

func (s *GetCallsResponse) Decode(d *jx.Decoder) error

Decode decodes GetCallsResponse from json.

func (*GetCallsResponse) Encode

func (s *GetCallsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetCallsResponse) GetData

GetData returns the value of Data.

func (*GetCallsResponse) MarshalJSON

func (s *GetCallsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetCallsResponse) SetData

func (s *GetCallsResponse) SetData(val OptCallResourceIndex)

SetData sets the value of Data.

func (*GetCallsResponse) UnmarshalJSON

func (s *GetCallsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetCallsResponse) Validate

func (s *GetCallsResponse) Validate() error

type GetConferenceRecordingsResponse

type GetConferenceRecordingsResponse struct {
	Data OptConferenceRecordingResourceIndex `json:"data"`
}

func (*GetConferenceRecordingsResponse) Decode

Decode decodes GetConferenceRecordingsResponse from json.

func (*GetConferenceRecordingsResponse) Encode

Encode implements json.Marshaler.

func (*GetConferenceRecordingsResponse) GetData

GetData returns the value of Data.

func (*GetConferenceRecordingsResponse) MarshalJSON

func (s *GetConferenceRecordingsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetConferenceRecordingsResponse) SetData

SetData sets the value of Data.

func (*GetConferenceRecordingsResponse) UnmarshalJSON

func (s *GetConferenceRecordingsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetConferenceRecordingsResponse) Validate

func (s *GetConferenceRecordingsResponse) Validate() error

type GetConferenceResponse

type GetConferenceResponse struct {
	Data OptConferenceResource `json:"data"`
}

func (*GetConferenceResponse) Decode

func (s *GetConferenceResponse) Decode(d *jx.Decoder) error

Decode decodes GetConferenceResponse from json.

func (*GetConferenceResponse) Encode

func (s *GetConferenceResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetConferenceResponse) GetData

GetData returns the value of Data.

func (*GetConferenceResponse) MarshalJSON

func (s *GetConferenceResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetConferenceResponse) SetData

SetData sets the value of Data.

func (*GetConferenceResponse) UnmarshalJSON

func (s *GetConferenceResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetConferenceResponse) Validate

func (s *GetConferenceResponse) Validate() error

type GetConferencesResponse

type GetConferencesResponse struct {
	Data OptConferenceResourceIndex `json:"data"`
}

func (*GetConferencesResponse) Decode

func (s *GetConferencesResponse) Decode(d *jx.Decoder) error

Decode decodes GetConferencesResponse from json.

func (*GetConferencesResponse) Encode

func (s *GetConferencesResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetConferencesResponse) GetData

GetData returns the value of Data.

func (*GetConferencesResponse) MarshalJSON

func (s *GetConferencesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetConferencesResponse) SetData

SetData sets the value of Data.

func (*GetConferencesResponse) UnmarshalJSON

func (s *GetConferencesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetConferencesResponse) Validate

func (s *GetConferencesResponse) Validate() error

type GetCsvDownloadParams

type GetCsvDownloadParams struct {
	// Identifies the CSV download.
	ID string
}

GetCsvDownloadParams is parameters of GetCsvDownload operation.

type GetCsvDownloadRes

type GetCsvDownloadRes interface {
	// contains filtered or unexported methods
}

type GetCustomStorageCredentialsParams

type GetCustomStorageCredentialsParams struct {
	// Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource.
	ConnectionID string
}

GetCustomStorageCredentialsParams is parameters of GetCustomStorageCredentials operation.

type GetCustomStorageCredentialsRes

type GetCustomStorageCredentialsRes interface {
	// contains filtered or unexported methods
}

type GetDefaultGatewayParams

type GetDefaultGatewayParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

GetDefaultGatewayParams is parameters of GetDefaultGateway operation.

type GetDefaultGatewayRes

type GetDefaultGatewayRes interface {
	// contains filtered or unexported methods
}

type GetExternalConnectionLogMessageNotFound

type GetExternalConnectionLogMessageNotFound struct{}

GetExternalConnectionLogMessageNotFound is response for GetExternalConnectionLogMessage operation.

type GetExternalConnectionLogMessageParams

type GetExternalConnectionLogMessageParams struct {
	// Identifies the resource.
	ID int64
}

GetExternalConnectionLogMessageParams is parameters of GetExternalConnectionLogMessage operation.

type GetExternalConnectionLogMessageRes

type GetExternalConnectionLogMessageRes interface {
	// contains filtered or unexported methods
}

type GetExternalConnectionLogMessageUnauthorized

type GetExternalConnectionLogMessageUnauthorized struct{}

GetExternalConnectionLogMessageUnauthorized is response for GetExternalConnectionLogMessage operation.

type GetExternalConnectionPhoneNumberNotFound

type GetExternalConnectionPhoneNumberNotFound struct{}

GetExternalConnectionPhoneNumberNotFound is response for GetExternalConnectionPhoneNumber operation.

type GetExternalConnectionPhoneNumberParams

type GetExternalConnectionPhoneNumberParams struct {
	// Identifies the resource.
	ID int64
	// A phone number's ID via the Telnyx API.
	PhoneNumberID string
}

GetExternalConnectionPhoneNumberParams is parameters of GetExternalConnectionPhoneNumber operation.

type GetExternalConnectionPhoneNumberRes

type GetExternalConnectionPhoneNumberRes interface {
	// contains filtered or unexported methods
}

type GetExternalConnectionPhoneNumberResponse

type GetExternalConnectionPhoneNumberResponse struct {
	Data OptExternalConnectionPhoneNumber `json:"data"`
}

func (*GetExternalConnectionPhoneNumberResponse) Decode

Decode decodes GetExternalConnectionPhoneNumberResponse from json.

func (*GetExternalConnectionPhoneNumberResponse) Encode

Encode implements json.Marshaler.

func (*GetExternalConnectionPhoneNumberResponse) GetData

GetData returns the value of Data.

func (*GetExternalConnectionPhoneNumberResponse) MarshalJSON

func (s *GetExternalConnectionPhoneNumberResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetExternalConnectionPhoneNumberResponse) SetData

SetData sets the value of Data.

func (*GetExternalConnectionPhoneNumberResponse) UnmarshalJSON

func (s *GetExternalConnectionPhoneNumberResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetExternalConnectionPhoneNumberResponse) Validate

type GetExternalConnectionPhoneNumberUnauthorized

type GetExternalConnectionPhoneNumberUnauthorized struct{}

GetExternalConnectionPhoneNumberUnauthorized is response for GetExternalConnectionPhoneNumber operation.

type GetGcbPhoneNumbersRequestResponse

type GetGcbPhoneNumbersRequestResponse struct {
	Data []GcbPhoneNumber  `json:"data"`
	Meta OptPaginationMeta `json:"meta"`
}

func (*GetGcbPhoneNumbersRequestResponse) Decode

Decode decodes GetGcbPhoneNumbersRequestResponse from json.

func (*GetGcbPhoneNumbersRequestResponse) Encode

Encode implements json.Marshaler.

func (*GetGcbPhoneNumbersRequestResponse) GetData

GetData returns the value of Data.

func (*GetGcbPhoneNumbersRequestResponse) GetMeta

GetMeta returns the value of Meta.

func (*GetGcbPhoneNumbersRequestResponse) MarshalJSON

func (s *GetGcbPhoneNumbersRequestResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetGcbPhoneNumbersRequestResponse) SetData

SetData sets the value of Data.

func (*GetGcbPhoneNumbersRequestResponse) SetMeta

SetMeta sets the value of Meta.

func (*GetGcbPhoneNumbersRequestResponse) UnmarshalJSON

func (s *GetGcbPhoneNumbersRequestResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetGcbPhoneNumbersRequestResponse) Validate

type GetLoaConfigurationInternalServerError

type GetLoaConfigurationInternalServerError struct{}

GetLoaConfigurationInternalServerError is response for GetLoaConfiguration operation.

type GetLoaConfigurationNotFound

type GetLoaConfigurationNotFound struct{}

GetLoaConfigurationNotFound is response for GetLoaConfiguration operation.

type GetLoaConfigurationParams

type GetLoaConfigurationParams struct {
	// Identifies a LOA configuration.
	ID uuid.UUID
}

GetLoaConfigurationParams is parameters of GetLoaConfiguration operation.

type GetLoaConfigurationRes

type GetLoaConfigurationRes interface {
	// contains filtered or unexported methods
}

type GetLogMessageResponse

type GetLogMessageResponse struct {
	LogMessages []LogMessage `json:"log_messages"`
}

func (*GetLogMessageResponse) Decode

func (s *GetLogMessageResponse) Decode(d *jx.Decoder) error

Decode decodes GetLogMessageResponse from json.

func (*GetLogMessageResponse) Encode

func (s *GetLogMessageResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetLogMessageResponse) GetLogMessages

func (s *GetLogMessageResponse) GetLogMessages() []LogMessage

GetLogMessages returns the value of LogMessages.

func (*GetLogMessageResponse) MarshalJSON

func (s *GetLogMessageResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLogMessageResponse) SetLogMessages

func (s *GetLogMessageResponse) SetLogMessages(val []LogMessage)

SetLogMessages sets the value of LogMessages.

func (*GetLogMessageResponse) UnmarshalJSON

func (s *GetLogMessageResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetLogMessageResponse) Validate

func (s *GetLogMessageResponse) Validate() error

type GetMessageParams

type GetMessageParams struct {
	// The id of the message.
	ID uuid.UUID
}

GetMessageParams is parameters of GetMessage operation.

type GetMessageRes

type GetMessageRes interface {
	// contains filtered or unexported methods
}

type GetMessagingHostedNumberOrderParams

type GetMessagingHostedNumberOrderParams struct {
	// Identifies the type of resource.
	ID string
}

GetMessagingHostedNumberOrderParams is parameters of GetMessagingHostedNumberOrder operation.

type GetMessagingHostedNumberOrderRes

type GetMessagingHostedNumberOrderRes interface {
	// contains filtered or unexported methods
}

type GetMobileNetworkOperatorsParams

type GetMobileNetworkOperatorsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Filter by name starting with.
	FilterNameStartsWith OptString
	// Filter by name containing match.
	FilterNameContains OptString
	// Filter by name ending with.
	FilterNameEndsWith OptString
	// Filter by exact country_code.
	FilterCountryCode OptString
	// Filter by exact MCC.
	FilterMcc OptString
	// Filter by exact MNC.
	FilterMnc OptString
	// Filter by exact TADIG.
	FilterTadig OptString
	// Filter by network_preferences_enabled.
	FilterNetworkPreferencesEnabled OptBool
}

GetMobileNetworkOperatorsParams is parameters of GetMobileNetworkOperators operation.

type GetMobileNetworkOperatorsRes

type GetMobileNetworkOperatorsRes interface {
	// contains filtered or unexported methods
}

type GetNetworkParams

type GetNetworkParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

GetNetworkParams is parameters of GetNetwork operation.

type GetNetworkRes

type GetNetworkRes interface {
	// contains filtered or unexported methods
}

type GetNotificationChannelOK

type GetNotificationChannelOK struct {
	Data OptNotificationChannel `json:"data"`
}

func (*GetNotificationChannelOK) Decode

func (s *GetNotificationChannelOK) Decode(d *jx.Decoder) error

Decode decodes GetNotificationChannelOK from json.

func (*GetNotificationChannelOK) Encode

func (s *GetNotificationChannelOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetNotificationChannelOK) GetData

GetData returns the value of Data.

func (*GetNotificationChannelOK) MarshalJSON

func (s *GetNotificationChannelOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetNotificationChannelOK) SetData

SetData sets the value of Data.

func (*GetNotificationChannelOK) UnmarshalJSON

func (s *GetNotificationChannelOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetNotificationChannelOK) Validate

func (s *GetNotificationChannelOK) Validate() error

type GetNotificationChannelParams

type GetNotificationChannelParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

GetNotificationChannelParams is parameters of GetNotificationChannel operation.

type GetNotificationChannelRes

type GetNotificationChannelRes interface {
	// contains filtered or unexported methods
}

type GetNumberOrderPhoneNumberParams

type GetNumberOrderPhoneNumberParams struct {
	// The number order phone number ID.
	NumberOrderPhoneNumberID string
}

GetNumberOrderPhoneNumberParams is parameters of GetNumberOrderPhoneNumber operation.

type GetNumberOrderPhoneNumberRes

type GetNumberOrderPhoneNumberRes interface {
	// contains filtered or unexported methods
}

type GetOtaUpdateParams

type GetOtaUpdateParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

GetOtaUpdateParams is parameters of GetOtaUpdate operation.

type GetOtaUpdateRes

type GetOtaUpdateRes interface {
	// contains filtered or unexported methods
}

type GetOutboundVoiceProfileNotFound

type GetOutboundVoiceProfileNotFound struct{}

GetOutboundVoiceProfileNotFound is response for GetOutboundVoiceProfile operation.

type GetOutboundVoiceProfileParams

type GetOutboundVoiceProfileParams struct {
	// Identifies the resource.
	ID int64
}

GetOutboundVoiceProfileParams is parameters of GetOutboundVoiceProfile operation.

type GetOutboundVoiceProfileRes

type GetOutboundVoiceProfileRes interface {
	// contains filtered or unexported methods
}

type GetOutboundVoiceProfileUnauthorized

type GetOutboundVoiceProfileUnauthorized struct{}

GetOutboundVoiceProfileUnauthorized is response for GetOutboundVoiceProfile operation.

type GetOutboundVoiceProfileUnprocessableEntity

type GetOutboundVoiceProfileUnprocessableEntity struct{}

GetOutboundVoiceProfileUnprocessableEntity is response for GetOutboundVoiceProfile operation.

type GetParticipantResponse

type GetParticipantResponse struct {
	Data OptParticipantResource `json:"data"`
}

func (*GetParticipantResponse) Decode

func (s *GetParticipantResponse) Decode(d *jx.Decoder) error

Decode decodes GetParticipantResponse from json.

func (*GetParticipantResponse) Encode

func (s *GetParticipantResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetParticipantResponse) GetData

GetData returns the value of Data.

func (*GetParticipantResponse) MarshalJSON

func (s *GetParticipantResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetParticipantResponse) SetData

SetData sets the value of Data.

func (*GetParticipantResponse) UnmarshalJSON

func (s *GetParticipantResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetParticipantResponse) Validate

func (s *GetParticipantResponse) Validate() error

type GetParticipantsResponse

type GetParticipantsResponse struct {
	Data OptParticipantResourceIndex `json:"data"`
}

func (*GetParticipantsResponse) Decode

func (s *GetParticipantsResponse) Decode(d *jx.Decoder) error

Decode decodes GetParticipantsResponse from json.

func (*GetParticipantsResponse) Encode

func (s *GetParticipantsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetParticipantsResponse) GetData

GetData returns the value of Data.

func (*GetParticipantsResponse) MarshalJSON

func (s *GetParticipantsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetParticipantsResponse) SetData

SetData sets the value of Data.

func (*GetParticipantsResponse) UnmarshalJSON

func (s *GetParticipantsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetParticipantsResponse) Validate

func (s *GetParticipantsResponse) Validate() error

type GetPhoneNumberMessagingSettingsParams

type GetPhoneNumberMessagingSettingsParams struct {
	// Identifies the type of resource.
	ID string
}

GetPhoneNumberMessagingSettingsParams is parameters of GetPhoneNumberMessagingSettings operation.

type GetPhoneNumberMessagingSettingsRes

type GetPhoneNumberMessagingSettingsRes interface {
	// contains filtered or unexported methods
}

type GetPhoneNumberVoiceSettingsParams

type GetPhoneNumberVoiceSettingsParams struct {
	// Identifies the resource.
	ID int64
}

GetPhoneNumberVoiceSettingsParams is parameters of GetPhoneNumberVoiceSettings operation.

type GetPhoneNumberVoiceSettingsRes

type GetPhoneNumberVoiceSettingsRes interface {
	// contains filtered or unexported methods
}

type GetPhoneNumbersParams

type GetPhoneNumbersParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Channel zone identifier.
	ChannelZoneID string
}

GetPhoneNumbersParams is parameters of GetPhoneNumbers operation.

type GetPortRequestSupportingDocumentsNotFound

type GetPortRequestSupportingDocumentsNotFound struct{}

GetPortRequestSupportingDocumentsNotFound is response for GetPortRequestSupportingDocuments operation.

type GetPortRequestSupportingDocumentsParams

type GetPortRequestSupportingDocumentsParams struct {
	// Portout id.
	ID uuid.UUID
}

GetPortRequestSupportingDocumentsParams is parameters of GetPortRequestSupportingDocuments operation.

type GetPortRequestSupportingDocumentsRes

type GetPortRequestSupportingDocumentsRes interface {
	// contains filtered or unexported methods
}

type GetPortRequestSupportingDocumentsUnauthorized

type GetPortRequestSupportingDocumentsUnauthorized struct{}

GetPortRequestSupportingDocumentsUnauthorized is response for GetPortRequestSupportingDocuments operation.

type GetPortingOrderLoaTemplateParams

type GetPortingOrderLoaTemplateParams struct {
	// Porting Order id.
	ID uuid.UUID
	// The identifier of the LOA configuration to use for the template. If not provided, the default LOA
	// configuration will be used.
	LoaConfigurationID OptUUID
}

GetPortingOrderLoaTemplateParams is parameters of GetPortingOrderLoaTemplate operation.

type GetPortingOrderLoaTemplateRes

type GetPortingOrderLoaTemplateRes interface {
	// contains filtered or unexported methods
}

type GetPortingOrderLoaTemplateUnauthorized

type GetPortingOrderLoaTemplateUnauthorized struct{}

GetPortingOrderLoaTemplateUnauthorized is response for GetPortingOrderLoaTemplate operation.

type GetPortingOrderParams

type GetPortingOrderParams struct {
	// Porting Order id.
	ID uuid.UUID
	// Include the first 50 phone number objects in the results.
	IncludePhoneNumbers OptBool
}

GetPortingOrderParams is parameters of GetPortingOrder operation.

type GetPortingOrderRes

type GetPortingOrderRes interface {
	// contains filtered or unexported methods
}

type GetPortingOrderSubRequestNotFound

type GetPortingOrderSubRequestNotFound struct{}

GetPortingOrderSubRequestNotFound is response for GetPortingOrderSubRequest operation.

type GetPortingOrderSubRequestParams

type GetPortingOrderSubRequestParams struct {
	// Porting Order id.
	ID uuid.UUID
}

GetPortingOrderSubRequestParams is parameters of GetPortingOrderSubRequest operation.

type GetPortingOrderSubRequestRes

type GetPortingOrderSubRequestRes interface {
	// contains filtered or unexported methods
}

type GetPortingOrderSubRequestUnauthorized

type GetPortingOrderSubRequestUnauthorized struct{}

GetPortingOrderSubRequestUnauthorized is response for GetPortingOrderSubRequest operation.

type GetPortingOrderUnauthorized

type GetPortingOrderUnauthorized struct{}

GetPortingOrderUnauthorized is response for GetPortingOrder operation.

type GetPortingOrdersActivationJobParams

type GetPortingOrdersActivationJobParams struct {
	// Porting Order id.
	ID uuid.UUID
	// Activation Job Identifier.
	ActivationJobId uuid.UUID
}

GetPortingOrdersActivationJobParams is parameters of GetPortingOrdersActivationJob operation.

type GetPortingOrdersActivationJobRes

type GetPortingOrdersActivationJobRes interface {
	// contains filtered or unexported methods
}

type GetPortingOrdersActivationJobUnauthorized

type GetPortingOrdersActivationJobUnauthorized struct{}

GetPortingOrdersActivationJobUnauthorized is response for GetPortingOrdersActivationJob operation.

type GetPortingOrdersActivationJobUnprocessableEntity

type GetPortingOrdersActivationJobUnprocessableEntity struct{}

GetPortingOrdersActivationJobUnprocessableEntity is response for GetPortingOrdersActivationJob operation.

type GetPortingReportInternalServerError

type GetPortingReportInternalServerError struct{}

GetPortingReportInternalServerError is response for GetPortingReport operation.

type GetPortingReportNotFound

type GetPortingReportNotFound struct{}

GetPortingReportNotFound is response for GetPortingReport operation.

type GetPortingReportParams

type GetPortingReportParams struct {
	// Identifies a report.
	ID uuid.UUID
}

GetPortingReportParams is parameters of GetPortingReport operation.

type GetPortingReportRes

type GetPortingReportRes interface {
	// contains filtered or unexported methods
}

type GetPrivateWirelessGatewayParams

type GetPrivateWirelessGatewayParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

GetPrivateWirelessGatewayParams is parameters of GetPrivateWirelessGateway operation.

type GetPrivateWirelessGatewayRes

type GetPrivateWirelessGatewayRes interface {
	// contains filtered or unexported methods
}

type GetPrivateWirelessGatewayResponse

type GetPrivateWirelessGatewayResponse struct {
	Data OptPrivateWirelessGateway `json:"data"`
}

func (*GetPrivateWirelessGatewayResponse) Decode

Decode decodes GetPrivateWirelessGatewayResponse from json.

func (*GetPrivateWirelessGatewayResponse) Encode

Encode implements json.Marshaler.

func (*GetPrivateWirelessGatewayResponse) GetData

GetData returns the value of Data.

func (*GetPrivateWirelessGatewayResponse) MarshalJSON

func (s *GetPrivateWirelessGatewayResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetPrivateWirelessGatewayResponse) SetData

SetData sets the value of Data.

func (*GetPrivateWirelessGatewayResponse) UnmarshalJSON

func (s *GetPrivateWirelessGatewayResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetPrivateWirelessGatewayResponse) Validate

type GetPrivateWirelessGatewaysParams

type GetPrivateWirelessGatewaysParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// The name of the Private Wireless Gateway.
	FilterName OptString
	// The IP address range of the Private Wireless Gateway.
	FilterIPRange OptString
	// The name of the region where the Private Wireless Gateway is deployed.
	FilterRegionCode OptString
	// Private Wireless Gateway resource creation date.
	FilterCreatedAt OptString
	// When the Private Wireless Gateway was last updated.
	FilterUpdatedAt OptString
}

GetPrivateWirelessGatewaysParams is parameters of GetPrivateWirelessGateways operation.

type GetPrivateWirelessGatewaysRes

type GetPrivateWirelessGatewaysRes interface {
	// contains filtered or unexported methods
}

type GetRecordingParams

type GetRecordingParams struct {
	// Uniquely identifies the recording by id.
	RecordingID string
}

GetRecordingParams is parameters of GetRecording operation.

type GetRecordingRes

type GetRecordingRes interface {
	// contains filtered or unexported methods
}

type GetRecordingTranscriptionParams

type GetRecordingTranscriptionParams struct {
	RecordingTranscriptionID uuid.UUID
}

GetRecordingTranscriptionParams is parameters of getRecordingTranscription operation.

type GetRecordingTranscriptionRes

type GetRecordingTranscriptionRes interface {
	// contains filtered or unexported methods
}

type GetRecordingTranscriptionsRes

type GetRecordingTranscriptionsRes interface {
	// contains filtered or unexported methods
}

type GetRecordingsParams

type GetRecordingsParams struct {
	// Returns only recordings associated with a given conference.
	FilterConferenceID OptString
	// Returns only recordings created later than or at given ISO 8601 datetime.
	FilterCreatedAtGte OptString
	// Returns only recordings created earlier than or at given ISO 8601 datetime.
	FilterCreatedAtLte OptString
	// If present, recordings will be filtered to those with a matching call_leg_id.
	FilterCallLegID OptUUID
	// If present, recordings will be filtered to those with a matching call_session_id.
	FilterCallSessionID OptUUID
	// If present, recordings will be filtered to those with a matching `from` attribute. Matching is
	// case-sensitive.
	FilterFrom OptString
	// If present, recordings will be filtered to those with a matching `to` attribute. Matching is
	// case-sensitive.
	FilterTo OptString
	// If present, recordings will be filtered to those with a matching `connection_id` attribute.
	// Matching is case-sensitive.
	FilterConnectionID OptString
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

GetRecordingsParams is parameters of GetRecordings operation.

type GetRecordingsRes

type GetRecordingsRes interface {
	// contains filtered or unexported methods
}

type GetRoomRecordingResponse

type GetRoomRecordingResponse struct {
	Data OptRoomRecording `json:"data"`
}

func (*GetRoomRecordingResponse) Decode

func (s *GetRoomRecordingResponse) Decode(d *jx.Decoder) error

Decode decodes GetRoomRecordingResponse from json.

func (*GetRoomRecordingResponse) Encode

func (s *GetRoomRecordingResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetRoomRecordingResponse) GetData

GetData returns the value of Data.

func (*GetRoomRecordingResponse) MarshalJSON

func (s *GetRoomRecordingResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetRoomRecordingResponse) SetData

SetData sets the value of Data.

func (*GetRoomRecordingResponse) UnmarshalJSON

func (s *GetRoomRecordingResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetRoomRecordingResponse) Validate

func (s *GetRoomRecordingResponse) Validate() error

type GetSubRequestByPortingOrder

type GetSubRequestByPortingOrder struct {
	// Identifies the Sub Request associated with the Porting Order.
	SubRequestID OptString `json:"sub_request_id"`
	// Identifies the Port Request associated with the Porting Order.
	PortRequestID OptString `json:"port_request_id"`
}

Ref: #/components/schemas/GetSubRequestByPortingOrder

func (*GetSubRequestByPortingOrder) Decode

Decode decodes GetSubRequestByPortingOrder from json.

func (*GetSubRequestByPortingOrder) Encode

func (s *GetSubRequestByPortingOrder) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetSubRequestByPortingOrder) GetPortRequestID

func (s *GetSubRequestByPortingOrder) GetPortRequestID() OptString

GetPortRequestID returns the value of PortRequestID.

func (*GetSubRequestByPortingOrder) GetSubRequestID

func (s *GetSubRequestByPortingOrder) GetSubRequestID() OptString

GetSubRequestID returns the value of SubRequestID.

func (*GetSubRequestByPortingOrder) MarshalJSON

func (s *GetSubRequestByPortingOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSubRequestByPortingOrder) SetPortRequestID

func (s *GetSubRequestByPortingOrder) SetPortRequestID(val OptString)

SetPortRequestID sets the value of PortRequestID.

func (*GetSubRequestByPortingOrder) SetSubRequestID

func (s *GetSubRequestByPortingOrder) SetSubRequestID(val OptString)

SetSubRequestID sets the value of SubRequestID.

func (*GetSubRequestByPortingOrder) UnmarshalJSON

func (s *GetSubRequestByPortingOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetTeXMLCallRecordingParams

type GetTeXMLCallRecordingParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// Uniquely identifies the recording by id.
	RecordingSid uuid.UUID
}

GetTeXMLCallRecordingParams is parameters of GetTeXMLCallRecording operation.

type GetTeXMLCallRecordingRes

type GetTeXMLCallRecordingRes interface {
	// contains filtered or unexported methods
}

type GetTeXMLCallRecordingsParams

type GetTeXMLCallRecordingsParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The number of the page to be displayed, zero-indexed, should be used in conjuction with PageToken.
	Page OptInt
	// The number of records to be displayed on a page.
	PageSize OptInt
	// Filters recording by the creation date. Expected format is ISO8601 date or date-time, ie.
	// {YYYY}-{MM}-{DD} or {YYYY}-{MM}-{DD}T{hh}:{mm}:{ss}Z. Also accepts inequality operators, e.g.
	// DateCreated>=2023-05-22.
	DateCreated OptString
}

GetTeXMLCallRecordingsParams is parameters of GetTeXMLCallRecordings operation.

type GetTeXMLCallRecordingsRes

type GetTeXMLCallRecordingsRes interface {
	// contains filtered or unexported methods
}

type GetTeXMLRecordingTranscriptionParams

type GetTeXMLRecordingTranscriptionParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// Uniquely identifies the recording transcription by id.
	RecordingTranscriptionSid uuid.UUID
}

GetTeXMLRecordingTranscriptionParams is parameters of GetTeXMLRecordingTranscription operation.

type GetTeXMLRecordingTranscriptionRes

type GetTeXMLRecordingTranscriptionRes interface {
	// contains filtered or unexported methods
}

type GetTeXMLRecordingTranscriptionsParams

type GetTeXMLRecordingTranscriptionsParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// Used to request the next page of results.
	PageToken OptString
	// The size of the page.
	PageSize OptInt
}

GetTeXMLRecordingTranscriptionsParams is parameters of GetTeXMLRecordingTranscriptions operation.

type GetTeXMLRecordingTranscriptionsRes

type GetTeXMLRecordingTranscriptionsRes interface {
	// contains filtered or unexported methods
}

type GetTelephonyCredentialBadRequest

type GetTelephonyCredentialBadRequest struct{}

GetTelephonyCredentialBadRequest is response for GetTelephonyCredential operation.

type GetTelephonyCredentialNotFound

type GetTelephonyCredentialNotFound struct{}

GetTelephonyCredentialNotFound is response for GetTelephonyCredential operation.

type GetTelephonyCredentialParams

type GetTelephonyCredentialParams struct {
	// Identifies the resource.
	ID string
}

GetTelephonyCredentialParams is parameters of GetTelephonyCredential operation.

type GetTelephonyCredentialRes

type GetTelephonyCredentialRes interface {
	// contains filtered or unexported methods
}

type GetTelephonyCredentialUnauthorized

type GetTelephonyCredentialUnauthorized struct{}

GetTelephonyCredentialUnauthorized is response for GetTelephonyCredential operation.

type GetTexmlApplicationBadRequest

type GetTexmlApplicationBadRequest ErrorResponse

func (*GetTexmlApplicationBadRequest) Decode

Decode decodes GetTexmlApplicationBadRequest from json.

func (*GetTexmlApplicationBadRequest) Encode

Encode encodes GetTexmlApplicationBadRequest as json.

func (*GetTexmlApplicationBadRequest) MarshalJSON

func (s *GetTexmlApplicationBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetTexmlApplicationBadRequest) UnmarshalJSON

func (s *GetTexmlApplicationBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetTexmlApplicationNotFound

type GetTexmlApplicationNotFound ErrorResponse

func (*GetTexmlApplicationNotFound) Decode

Decode decodes GetTexmlApplicationNotFound from json.

func (*GetTexmlApplicationNotFound) Encode

func (s *GetTexmlApplicationNotFound) Encode(e *jx.Encoder)

Encode encodes GetTexmlApplicationNotFound as json.

func (*GetTexmlApplicationNotFound) MarshalJSON

func (s *GetTexmlApplicationNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetTexmlApplicationNotFound) UnmarshalJSON

func (s *GetTexmlApplicationNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetTexmlApplicationParams

type GetTexmlApplicationParams struct {
	// Identifies the resource.
	ID int64
}

GetTexmlApplicationParams is parameters of GetTexmlApplication operation.

type GetTexmlApplicationRes

type GetTexmlApplicationRes interface {
	// contains filtered or unexported methods
}

type GetTexmlApplicationUnauthorized

type GetTexmlApplicationUnauthorized ErrorResponse

func (*GetTexmlApplicationUnauthorized) Decode

Decode decodes GetTexmlApplicationUnauthorized from json.

func (*GetTexmlApplicationUnauthorized) Encode

Encode encodes GetTexmlApplicationUnauthorized as json.

func (*GetTexmlApplicationUnauthorized) MarshalJSON

func (s *GetTexmlApplicationUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetTexmlApplicationUnauthorized) UnmarshalJSON

func (s *GetTexmlApplicationUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetTexmlCallParams

type GetTexmlCallParams struct {
	// The CallSid that identifies the call to update.
	CallSid string
	// The id of the account the resource belongs to.
	AccountSid string
}

GetTexmlCallParams is parameters of GetTexmlCall operation.

type GetTexmlCallRes

type GetTexmlCallRes interface {
	// contains filtered or unexported methods
}

type GetTexmlCallsParams

type GetTexmlCallsParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The number of the page to be displayed, zero-indexed, should be used in conjuction with PageToken.
	Page OptInt
	// The size of the page.
	PageSize OptInt
	// Used to request the next page of results.
	PageToken OptString
	// Filters calls by the to number.
	To OptString
	// Filters calls by the from number.
	From OptString
	// Filters calls by status.
	Status OptStatus
	// Filters calls by the start date. Expected format is YYYY-MM-DD. Also accepts inequality operators,
	// e.g. StartTime>=2023-05-22.
	StartTime OptString
	// Filters calls by their end date. Expected format is YYYY-MM-DD. Also accepts inequality operators,
	// e.g. EndTime>=2023-05-22.
	EndTime OptString
}

GetTexmlCallsParams is parameters of GetTexmlCalls operation.

type GetTexmlCallsRes

type GetTexmlCallsRes interface {
	// contains filtered or unexported methods
}

type GetTexmlConferenceParams

type GetTexmlConferenceParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The ConferenceSid that uniquely identifies a conference.
	ConferenceSid string
}

GetTexmlConferenceParams is parameters of GetTexmlConference operation.

type GetTexmlConferenceParticipantParams

type GetTexmlConferenceParticipantParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The ConferenceSid that uniquely identifies a conference.
	ConferenceSid string
	// The CallSid that identifies the call to update.
	CallSid string
}

GetTexmlConferenceParticipantParams is parameters of GetTexmlConferenceParticipant operation.

type GetTexmlConferenceParticipantRes

type GetTexmlConferenceParticipantRes interface {
	// contains filtered or unexported methods
}

type GetTexmlConferenceParticipantsParams

type GetTexmlConferenceParticipantsParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The ConferenceSid that uniquely identifies a conference.
	ConferenceSid string
}

GetTexmlConferenceParticipantsParams is parameters of GetTexmlConferenceParticipants operation.

type GetTexmlConferenceParticipantsRes

type GetTexmlConferenceParticipantsRes interface {
	// contains filtered or unexported methods
}

type GetTexmlConferenceRecordingsParams

type GetTexmlConferenceRecordingsParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The ConferenceSid that uniquely identifies a conference.
	ConferenceSid string
}

GetTexmlConferenceRecordingsParams is parameters of GetTexmlConferenceRecordings operation.

type GetTexmlConferenceRecordingsRes

type GetTexmlConferenceRecordingsRes interface {
	// contains filtered or unexported methods
}

type GetTexmlConferenceRes

type GetTexmlConferenceRes interface {
	// contains filtered or unexported methods
}

type GetTexmlConferencesParams

type GetTexmlConferencesParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The number of the page to be displayed, zero-indexed, should be used in conjuction with PageToken.
	Page OptInt
	// The size of the page.
	PageSize OptInt
	// Used to request the next page of results.
	PageToken OptString
	// Filters conferences by their friendly name.
	FriendlyName OptString
	// Filters conferences by status.
	Status OptConferenceStatus
	// Filters conferences by the creation date. Expected format is YYYY-MM-DD. Also accepts inequality
	// operators, e.g. DateCreated>=2023-05-22.
	DateCreated OptString
	// Filters conferences by the time they were last updated. Expected format is YYYY-MM-DD. Also
	// accepts inequality operators, e.g. DateUpdated>=2023-05-22.
	DateUpdated OptString
}

GetTexmlConferencesParams is parameters of GetTexmlConferences operation.

type GetTexmlConferencesRes

type GetTexmlConferencesRes interface {
	// contains filtered or unexported methods
}

type GetUserBalanceRes

type GetUserBalanceRes interface {
	// contains filtered or unexported methods
}

type GetVerifiedNumberNotFound

type GetVerifiedNumberNotFound Errors

func (*GetVerifiedNumberNotFound) Decode

func (s *GetVerifiedNumberNotFound) Decode(d *jx.Decoder) error

Decode decodes GetVerifiedNumberNotFound from json.

func (*GetVerifiedNumberNotFound) Encode

func (s *GetVerifiedNumberNotFound) Encode(e *jx.Encoder)

Encode encodes GetVerifiedNumberNotFound as json.

func (*GetVerifiedNumberNotFound) MarshalJSON

func (s *GetVerifiedNumberNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVerifiedNumberNotFound) UnmarshalJSON

func (s *GetVerifiedNumberNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVerifiedNumberParams

type GetVerifiedNumberParams struct {
	// The phone number being requested.
	PhoneNumber string
}

GetVerifiedNumberParams is parameters of GetVerifiedNumber operation.

type GetVerifiedNumberRes

type GetVerifiedNumberRes interface {
	// contains filtered or unexported methods
}

type GetVerifiedNumberUnauthorized

type GetVerifiedNumberUnauthorized Errors

func (*GetVerifiedNumberUnauthorized) Decode

Decode decodes GetVerifiedNumberUnauthorized from json.

func (*GetVerifiedNumberUnauthorized) Encode

Encode encodes GetVerifiedNumberUnauthorized as json.

func (*GetVerifiedNumberUnauthorized) MarshalJSON

func (s *GetVerifiedNumberUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVerifiedNumberUnauthorized) UnmarshalJSON

func (s *GetVerifiedNumberUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVerifyProfileParams

type GetVerifyProfileParams struct {
	// The identifier of the Verify profile to retrieve.
	VerifyProfileID uuid.UUID
}

GetVerifyProfileParams is parameters of GetVerifyProfile operation.

type GetVerifyProfileRes

type GetVerifyProfileRes interface {
	// contains filtered or unexported methods
}

type GetWebhookDeliveriesFilterStatusEq

type GetWebhookDeliveriesFilterStatusEq string
const (
	GetWebhookDeliveriesFilterStatusEqDelivered GetWebhookDeliveriesFilterStatusEq = "delivered"
	GetWebhookDeliveriesFilterStatusEqFailed    GetWebhookDeliveriesFilterStatusEq = "failed"
)

func (GetWebhookDeliveriesFilterStatusEq) AllValues

AllValues returns all GetWebhookDeliveriesFilterStatusEq values.

func (GetWebhookDeliveriesFilterStatusEq) MarshalText

func (s GetWebhookDeliveriesFilterStatusEq) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*GetWebhookDeliveriesFilterStatusEq) UnmarshalText

func (s *GetWebhookDeliveriesFilterStatusEq) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GetWebhookDeliveriesFilterStatusEq) Validate

type GetWebhookDeliveriesParams

type GetWebhookDeliveriesParams struct {
	// Return only webhook_deliveries matching the given `status`.
	FilterStatusEq OptGetWebhookDeliveriesFilterStatusEq
	// Return only webhook_deliveries matching the given value of `event_type`. Accepts multiple values
	// separated by a `,`.
	FilterEventType OptString
	// Return only webhook deliveries whose `webhook` component contains the given text.
	FilterWebhookContains OptString
	// Return only webhook_deliveries whose `attempts` component contains the given text.
	FilterAttemptsContains OptString
	// Return only webhook_deliveries whose delivery started later than or at given ISO 8601 datetime.
	FilterStartedAtGte OptString
	// Return only webhook_deliveries whose delivery started earlier than or at given ISO 8601 datetime.
	FilterStartedAtLte OptString
	// Return only webhook_deliveries whose delivery finished later than or at given ISO 8601 datetime.
	FilterFinishedAtGte OptString
	// Return only webhook_deliveries whose delivery finished earlier than or at given ISO 8601 datetime.
	FilterFinishedAtLte OptString
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

GetWebhookDeliveriesParams is parameters of GetWebhookDeliveries operation.

type GetWebhookDeliveriesRes

type GetWebhookDeliveriesRes interface {
	// contains filtered or unexported methods
}

type GetWebhookDeliveriesUnauthorized

type GetWebhookDeliveriesUnauthorized struct{}

GetWebhookDeliveriesUnauthorized is response for GetWebhookDeliveries operation.

type GetWebhookDeliveriesUnprocessableEntity

type GetWebhookDeliveriesUnprocessableEntity struct{}

GetWebhookDeliveriesUnprocessableEntity is response for GetWebhookDeliveries operation.

type GetWebhookDeliveryNotFound

type GetWebhookDeliveryNotFound struct{}

GetWebhookDeliveryNotFound is response for GetWebhookDelivery operation.

type GetWebhookDeliveryOK

type GetWebhookDeliveryOK struct {
	Data OptWebhookDelivery `json:"data"`
}

func (*GetWebhookDeliveryOK) Decode

func (s *GetWebhookDeliveryOK) Decode(d *jx.Decoder) error

Decode decodes GetWebhookDeliveryOK from json.

func (*GetWebhookDeliveryOK) Encode

func (s *GetWebhookDeliveryOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetWebhookDeliveryOK) GetData

GetData returns the value of Data.

func (*GetWebhookDeliveryOK) MarshalJSON

func (s *GetWebhookDeliveryOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetWebhookDeliveryOK) SetData

func (s *GetWebhookDeliveryOK) SetData(val OptWebhookDelivery)

SetData sets the value of Data.

func (*GetWebhookDeliveryOK) UnmarshalJSON

func (s *GetWebhookDeliveryOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetWebhookDeliveryOK) Validate

func (s *GetWebhookDeliveryOK) Validate() error

type GetWebhookDeliveryParams

type GetWebhookDeliveryParams struct {
	// Uniquely identifies the webhook_delivery.
	ID uuid.UUID
}

GetWebhookDeliveryParams is parameters of GetWebhookDelivery operation.

type GetWebhookDeliveryRes

type GetWebhookDeliveryRes interface {
	// contains filtered or unexported methods
}

type GetWebhookDeliveryUnauthorized

type GetWebhookDeliveryUnauthorized struct{}

GetWebhookDeliveryUnauthorized is response for GetWebhookDelivery operation.

type HTTP

type HTTP struct {
	// Request details.
	Request OptHTTPRequest `json:"request"`
	// Response details, optional.
	Response OptNilHTTPResponse `json:"response"`
}

HTTP request and response information. Ref: #/components/schemas/http

func (*HTTP) Decode

func (s *HTTP) Decode(d *jx.Decoder) error

Decode decodes HTTP from json.

func (*HTTP) Encode

func (s *HTTP) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HTTP) GetRequest

func (s *HTTP) GetRequest() OptHTTPRequest

GetRequest returns the value of Request.

func (*HTTP) GetResponse

func (s *HTTP) GetResponse() OptNilHTTPResponse

GetResponse returns the value of Response.

func (*HTTP) MarshalJSON

func (s *HTTP) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HTTP) SetRequest

func (s *HTTP) SetRequest(val OptHTTPRequest)

SetRequest sets the value of Request.

func (*HTTP) SetResponse

func (s *HTTP) SetResponse(val OptNilHTTPResponse)

SetResponse sets the value of Response.

func (*HTTP) UnmarshalJSON

func (s *HTTP) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type HTTPHeaders

type HTTPHeaders []string

func (*HTTPHeaders) Decode

func (s *HTTPHeaders) Decode(d *jx.Decoder) error

Decode decodes HTTPHeaders from json.

func (HTTPHeaders) Encode

func (s HTTPHeaders) Encode(e *jx.Encoder)

Encode encodes HTTPHeaders as json.

func (HTTPHeaders) MarshalJSON

func (s HTTPHeaders) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HTTPHeaders) UnmarshalJSON

func (s *HTTPHeaders) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type HTTPRequest

type HTTPRequest struct {
	URL     OptString   `json:"url"`
	Headers HTTPHeaders `json:"headers"`
}

Request details.

func (*HTTPRequest) Decode

func (s *HTTPRequest) Decode(d *jx.Decoder) error

Decode decodes HTTPRequest from json.

func (*HTTPRequest) Encode

func (s *HTTPRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HTTPRequest) GetHeaders

func (s *HTTPRequest) GetHeaders() HTTPHeaders

GetHeaders returns the value of Headers.

func (*HTTPRequest) GetURL

func (s *HTTPRequest) GetURL() OptString

GetURL returns the value of URL.

func (*HTTPRequest) MarshalJSON

func (s *HTTPRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HTTPRequest) SetHeaders

func (s *HTTPRequest) SetHeaders(val HTTPHeaders)

SetHeaders sets the value of Headers.

func (*HTTPRequest) SetURL

func (s *HTTPRequest) SetURL(val OptString)

SetURL sets the value of URL.

func (*HTTPRequest) UnmarshalJSON

func (s *HTTPRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type HTTPResponse

type HTTPResponse struct {
	Status  OptInt      `json:"status"`
	Headers HTTPHeaders `json:"headers"`
	// Raw response body, limited to 10kB.
	Body OptString `json:"body"`
}

Response details, optional.

func (*HTTPResponse) Decode

func (s *HTTPResponse) Decode(d *jx.Decoder) error

Decode decodes HTTPResponse from json.

func (*HTTPResponse) Encode

func (s *HTTPResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HTTPResponse) GetBody

func (s *HTTPResponse) GetBody() OptString

GetBody returns the value of Body.

func (*HTTPResponse) GetHeaders

func (s *HTTPResponse) GetHeaders() HTTPHeaders

GetHeaders returns the value of Headers.

func (*HTTPResponse) GetStatus

func (s *HTTPResponse) GetStatus() OptInt

GetStatus returns the value of Status.

func (*HTTPResponse) MarshalJSON

func (s *HTTPResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HTTPResponse) SetBody

func (s *HTTPResponse) SetBody(val OptString)

SetBody sets the value of Body.

func (*HTTPResponse) SetHeaders

func (s *HTTPResponse) SetHeaders(val HTTPHeaders)

SetHeaders sets the value of Headers.

func (*HTTPResponse) SetStatus

func (s *HTTPResponse) SetStatus(val OptInt)

SetStatus sets the value of Status.

func (*HTTPResponse) UnmarshalJSON

func (s *HTTPResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type HTTPValidationError

type HTTPValidationError struct {
	Detail []ValidationError `json:"detail"`
}

Ref: #/components/schemas/HTTPValidationError

func (*HTTPValidationError) Decode

func (s *HTTPValidationError) Decode(d *jx.Decoder) error

Decode decodes HTTPValidationError from json.

func (*HTTPValidationError) Encode

func (s *HTTPValidationError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HTTPValidationError) GetDetail

func (s *HTTPValidationError) GetDetail() []ValidationError

GetDetail returns the value of Detail.

func (*HTTPValidationError) MarshalJSON

func (s *HTTPValidationError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HTTPValidationError) SetDetail

func (s *HTTPValidationError) SetDetail(val []ValidationError)

SetDetail sets the value of Detail.

func (*HTTPValidationError) UnmarshalJSON

func (s *HTTPValidationError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HTTPValidationError) Validate

func (s *HTTPValidationError) Validate() error

type HangupCallParams

type HangupCallParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

HangupCallParams is parameters of HangupCall operation.

type HangupCallRes

type HangupCallRes interface {
	// contains filtered or unexported methods
}

type HangupRequest

type HangupRequest struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/HangupRequest

func (*HangupRequest) Decode

func (s *HangupRequest) Decode(d *jx.Decoder) error

Decode decodes HangupRequest from json.

func (*HangupRequest) Encode

func (s *HangupRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HangupRequest) GetClientState

func (s *HangupRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*HangupRequest) GetCommandID

func (s *HangupRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*HangupRequest) MarshalJSON

func (s *HangupRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HangupRequest) SetClientState

func (s *HangupRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*HangupRequest) SetCommandID

func (s *HangupRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*HangupRequest) UnmarshalJSON

func (s *HangupRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type HostedNumber

type HostedNumber struct {
	RecordType OptString `json:"record_type"`
	// Identifies the type of resource.
	ID OptUUID `json:"id"`
	// The messaging hosted phone number (+E.164 format).
	PhoneNumber OptString             `json:"phone_number"`
	Status      OptHostedNumberStatus `json:"status"`
}

Ref: #/components/schemas/HostedNumber

func (*HostedNumber) Decode

func (s *HostedNumber) Decode(d *jx.Decoder) error

Decode decodes HostedNumber from json.

func (*HostedNumber) Encode

func (s *HostedNumber) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HostedNumber) GetID

func (s *HostedNumber) GetID() OptUUID

GetID returns the value of ID.

func (*HostedNumber) GetPhoneNumber

func (s *HostedNumber) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*HostedNumber) GetRecordType

func (s *HostedNumber) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*HostedNumber) GetStatus

func (s *HostedNumber) GetStatus() OptHostedNumberStatus

GetStatus returns the value of Status.

func (*HostedNumber) MarshalJSON

func (s *HostedNumber) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HostedNumber) SetID

func (s *HostedNumber) SetID(val OptUUID)

SetID sets the value of ID.

func (*HostedNumber) SetPhoneNumber

func (s *HostedNumber) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*HostedNumber) SetRecordType

func (s *HostedNumber) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*HostedNumber) SetStatus

func (s *HostedNumber) SetStatus(val OptHostedNumberStatus)

SetStatus sets the value of Status.

func (*HostedNumber) UnmarshalJSON

func (s *HostedNumber) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HostedNumber) Validate

func (s *HostedNumber) Validate() error

type HostedNumberStatus

type HostedNumberStatus string
const (
	HostedNumberStatusDeleted    HostedNumberStatus = "deleted"
	HostedNumberStatusFailed     HostedNumberStatus = "failed"
	HostedNumberStatusPending    HostedNumberStatus = "pending"
	HostedNumberStatusSuccessful HostedNumberStatus = "successful"
)

func (HostedNumberStatus) AllValues

func (HostedNumberStatus) AllValues() []HostedNumberStatus

AllValues returns all HostedNumberStatus values.

func (*HostedNumberStatus) Decode

func (s *HostedNumberStatus) Decode(d *jx.Decoder) error

Decode decodes HostedNumberStatus from json.

func (HostedNumberStatus) Encode

func (s HostedNumberStatus) Encode(e *jx.Encoder)

Encode encodes HostedNumberStatus as json.

func (HostedNumberStatus) MarshalJSON

func (s HostedNumberStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (HostedNumberStatus) MarshalText

func (s HostedNumberStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*HostedNumberStatus) UnmarshalJSON

func (s *HostedNumberStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HostedNumberStatus) UnmarshalText

func (s *HostedNumberStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (HostedNumberStatus) Validate

func (s HostedNumberStatus) Validate() error

type InitiateCallRequest

type InitiateCallRequest struct {
	// The ID of the TeXML Application.
	ApplicationSid string `json:"ApplicationSid"`
	// The phone number of the called party. Phone numbers are formatted with a `+` and country code.
	To string `json:"To"`
	// The phone number of the party that initiated the call. Phone numbers are formatted with a `+` and
	// country code.
	From string `json:"From"`
	// The URL from which Telnyx will retrieve the TeXML call instructions.
	URL OptString `json:"Url"`
	// HTTP request type used for `Url`. The default value is inherited from TeXML Application setting.
	UrlMethod OptInitiateCallRequestUrlMethod `json:"UrlMethod"`
	// A failover URL for which Telnyx will retrieve the TeXML call instructions if the `Url` is not
	// responding.
	FallbackUrl OptString `json:"FallbackUrl"`
	// URL destination for Telnyx to send status callback events to for the call.
	StatusCallback OptString `json:"StatusCallback"`
	// HTTP request type used for `StatusCallback`.
	StatusCallbackMethod OptInitiateCallRequestStatusCallbackMethod `json:"StatusCallbackMethod"`
	// The call events for which Telnyx should send a webhook. Multiple events can be defined when
	// separated by a space.
	StatusCallbackEvent OptInitiateCallRequestStatusCallbackEvent `json:"StatusCallbackEvent"`
	// Enables Answering Machine Detection.
	MachineDetection OptInitiateCallRequestMachineDetection `json:"MachineDetection"`
	// Allows you to chose between Premium and Standard detections.
	DetectionMode OptInitiateCallRequestDetectionMode `json:"DetectionMode"`
	// Select whether to perform answering machine detection in the background. By default execution is
	// blocked until Answering Machine Detection is completed.
	AsyncAmd OptBool `json:"AsyncAmd"`
	// URL destination for Telnyx to send AMD callback events to for the call.
	AsyncAmdStatusCallback OptString `json:"AsyncAmdStatusCallback"`
	// HTTP request type used for `AsyncAmdStatusCallback`. The default value is inherited from TeXML
	// Application setting.
	AsyncAmdStatusCallbackMethod OptInitiateCallRequestAsyncAmdStatusCallbackMethod `json:"AsyncAmdStatusCallbackMethod"`
	// Maximum timeout threshold in milliseconds for overall detection.
	MachineDetectionTimeout OptInt `json:"MachineDetectionTimeout"`
	// Maximum threshold of a human greeting. If greeting longer than this value, considered machine.
	// Ignored when `premium` detection is used.
	MachineDetectionSpeechThreshold OptInt `json:"MachineDetectionSpeechThreshold"`
	// Silence duration threshold after a greeting message or voice for it be considered human. Ignored
	// when `premium` detection is used.
	MachineDetectionSpeechEndThreshold OptInt `json:"MachineDetectionSpeechEndThreshold"`
	// If initial silence duration is greater than this value, consider it a machine. Ignored when
	// `premium` detection is used.
	MachineDetectionSilenceTimeout OptInt `json:"MachineDetectionSilenceTimeout"`
	// Whether to cancel ongoing playback on `machine` detection. Defaults to `true`.
	CancelPlaybackOnMachineDetection OptBool `json:"CancelPlaybackOnMachineDetection"`
	// Whether to cancel ongoing playback on `greeting ended` detection. Defaults to `true`.
	CancelPlaybackOnDetectMessageEnd OptBool `json:"CancelPlaybackOnDetectMessageEnd"`
	// The list of comma-separated codecs to be offered on a call.
	PreferredCodecs OptString `json:"PreferredCodecs"`
	// Whether to record the entire participant's call leg. Defaults to `false`.
	Record OptBool `json:"Record"`
	// The number of channels in the final recording. Defaults to `mono`.
	RecordingChannels OptInitiateCallRequestRecordingChannels `json:"RecordingChannels"`
	// The URL the recording callbacks will be sent to.
	RecordingStatusCallback OptString `json:"RecordingStatusCallback"`
	// HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.
	RecordingStatusCallbackMethod OptInitiateCallRequestRecordingStatusCallbackMethod `json:"RecordingStatusCallbackMethod"`
	// The changes to the recording's state that should generate a call to `RecoridngStatusCallback`. Can
	// be: `in-progress`, `completed` and `absent`. Separate multiple values with a space. Defaults to
	// `completed`.
	RecordingStatusCallbackEvent OptString `json:"RecordingStatusCallbackEvent"`
	// The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected.
	//  The timer only starts when the speech is detected. Please note that the transcription is used to
	// detect silence and the related charge will be applied. The minimum value is 0. The default value
	// is 0 (infinite).
	RecordingTimeout OptInt `json:"RecordingTimeout"`
	// The audio track to record for the call. The default is `both`.
	RecordingTrack OptInitiateCallRequestRecordingTrack `json:"RecordingTrack"`
	// The password to use for SIP authentication.
	SipAuthPassword OptString `json:"SipAuthPassword"`
	// The username to use for SIP authentication.
	SipAuthUsername OptString `json:"SipAuthUsername"`
	// Whether to trim any leading and trailing silence from the recording. Defaults to `trim-silence`.
	Trim OptInitiateCallRequestTrim `json:"Trim"`
}

Ref: #/components/schemas/InitiateCallRequest

func (*InitiateCallRequest) Decode

func (s *InitiateCallRequest) Decode(d *jx.Decoder) error

Decode decodes InitiateCallRequest from json.

func (*InitiateCallRequest) Encode

func (s *InitiateCallRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InitiateCallRequest) GetApplicationSid

func (s *InitiateCallRequest) GetApplicationSid() string

GetApplicationSid returns the value of ApplicationSid.

func (*InitiateCallRequest) GetAsyncAmd

func (s *InitiateCallRequest) GetAsyncAmd() OptBool

GetAsyncAmd returns the value of AsyncAmd.

func (*InitiateCallRequest) GetAsyncAmdStatusCallback

func (s *InitiateCallRequest) GetAsyncAmdStatusCallback() OptString

GetAsyncAmdStatusCallback returns the value of AsyncAmdStatusCallback.

func (*InitiateCallRequest) GetAsyncAmdStatusCallbackMethod

func (s *InitiateCallRequest) GetAsyncAmdStatusCallbackMethod() OptInitiateCallRequestAsyncAmdStatusCallbackMethod

GetAsyncAmdStatusCallbackMethod returns the value of AsyncAmdStatusCallbackMethod.

func (*InitiateCallRequest) GetCancelPlaybackOnDetectMessageEnd

func (s *InitiateCallRequest) GetCancelPlaybackOnDetectMessageEnd() OptBool

GetCancelPlaybackOnDetectMessageEnd returns the value of CancelPlaybackOnDetectMessageEnd.

func (*InitiateCallRequest) GetCancelPlaybackOnMachineDetection

func (s *InitiateCallRequest) GetCancelPlaybackOnMachineDetection() OptBool

GetCancelPlaybackOnMachineDetection returns the value of CancelPlaybackOnMachineDetection.

func (*InitiateCallRequest) GetDetectionMode

GetDetectionMode returns the value of DetectionMode.

func (*InitiateCallRequest) GetFallbackUrl

func (s *InitiateCallRequest) GetFallbackUrl() OptString

GetFallbackUrl returns the value of FallbackUrl.

func (*InitiateCallRequest) GetFrom

func (s *InitiateCallRequest) GetFrom() string

GetFrom returns the value of From.

func (*InitiateCallRequest) GetMachineDetection

GetMachineDetection returns the value of MachineDetection.

func (*InitiateCallRequest) GetMachineDetectionSilenceTimeout

func (s *InitiateCallRequest) GetMachineDetectionSilenceTimeout() OptInt

GetMachineDetectionSilenceTimeout returns the value of MachineDetectionSilenceTimeout.

func (*InitiateCallRequest) GetMachineDetectionSpeechEndThreshold

func (s *InitiateCallRequest) GetMachineDetectionSpeechEndThreshold() OptInt

GetMachineDetectionSpeechEndThreshold returns the value of MachineDetectionSpeechEndThreshold.

func (*InitiateCallRequest) GetMachineDetectionSpeechThreshold

func (s *InitiateCallRequest) GetMachineDetectionSpeechThreshold() OptInt

GetMachineDetectionSpeechThreshold returns the value of MachineDetectionSpeechThreshold.

func (*InitiateCallRequest) GetMachineDetectionTimeout

func (s *InitiateCallRequest) GetMachineDetectionTimeout() OptInt

GetMachineDetectionTimeout returns the value of MachineDetectionTimeout.

func (*InitiateCallRequest) GetPreferredCodecs

func (s *InitiateCallRequest) GetPreferredCodecs() OptString

GetPreferredCodecs returns the value of PreferredCodecs.

func (*InitiateCallRequest) GetRecord

func (s *InitiateCallRequest) GetRecord() OptBool

GetRecord returns the value of Record.

func (*InitiateCallRequest) GetRecordingChannels

GetRecordingChannels returns the value of RecordingChannels.

func (*InitiateCallRequest) GetRecordingStatusCallback

func (s *InitiateCallRequest) GetRecordingStatusCallback() OptString

GetRecordingStatusCallback returns the value of RecordingStatusCallback.

func (*InitiateCallRequest) GetRecordingStatusCallbackEvent

func (s *InitiateCallRequest) GetRecordingStatusCallbackEvent() OptString

GetRecordingStatusCallbackEvent returns the value of RecordingStatusCallbackEvent.

func (*InitiateCallRequest) GetRecordingStatusCallbackMethod

func (s *InitiateCallRequest) GetRecordingStatusCallbackMethod() OptInitiateCallRequestRecordingStatusCallbackMethod

GetRecordingStatusCallbackMethod returns the value of RecordingStatusCallbackMethod.

func (*InitiateCallRequest) GetRecordingTimeout

func (s *InitiateCallRequest) GetRecordingTimeout() OptInt

GetRecordingTimeout returns the value of RecordingTimeout.

func (*InitiateCallRequest) GetRecordingTrack

GetRecordingTrack returns the value of RecordingTrack.

func (*InitiateCallRequest) GetSipAuthPassword

func (s *InitiateCallRequest) GetSipAuthPassword() OptString

GetSipAuthPassword returns the value of SipAuthPassword.

func (*InitiateCallRequest) GetSipAuthUsername

func (s *InitiateCallRequest) GetSipAuthUsername() OptString

GetSipAuthUsername returns the value of SipAuthUsername.

func (*InitiateCallRequest) GetStatusCallback

func (s *InitiateCallRequest) GetStatusCallback() OptString

GetStatusCallback returns the value of StatusCallback.

func (*InitiateCallRequest) GetStatusCallbackEvent

GetStatusCallbackEvent returns the value of StatusCallbackEvent.

func (*InitiateCallRequest) GetStatusCallbackMethod

GetStatusCallbackMethod returns the value of StatusCallbackMethod.

func (*InitiateCallRequest) GetTo

func (s *InitiateCallRequest) GetTo() string

GetTo returns the value of To.

func (*InitiateCallRequest) GetTrim

GetTrim returns the value of Trim.

func (*InitiateCallRequest) GetURL

func (s *InitiateCallRequest) GetURL() OptString

GetURL returns the value of URL.

func (*InitiateCallRequest) GetUrlMethod

GetUrlMethod returns the value of UrlMethod.

func (*InitiateCallRequest) MarshalJSON

func (s *InitiateCallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InitiateCallRequest) SetApplicationSid

func (s *InitiateCallRequest) SetApplicationSid(val string)

SetApplicationSid sets the value of ApplicationSid.

func (*InitiateCallRequest) SetAsyncAmd

func (s *InitiateCallRequest) SetAsyncAmd(val OptBool)

SetAsyncAmd sets the value of AsyncAmd.

func (*InitiateCallRequest) SetAsyncAmdStatusCallback

func (s *InitiateCallRequest) SetAsyncAmdStatusCallback(val OptString)

SetAsyncAmdStatusCallback sets the value of AsyncAmdStatusCallback.

func (*InitiateCallRequest) SetAsyncAmdStatusCallbackMethod

func (s *InitiateCallRequest) SetAsyncAmdStatusCallbackMethod(val OptInitiateCallRequestAsyncAmdStatusCallbackMethod)

SetAsyncAmdStatusCallbackMethod sets the value of AsyncAmdStatusCallbackMethod.

func (*InitiateCallRequest) SetCancelPlaybackOnDetectMessageEnd

func (s *InitiateCallRequest) SetCancelPlaybackOnDetectMessageEnd(val OptBool)

SetCancelPlaybackOnDetectMessageEnd sets the value of CancelPlaybackOnDetectMessageEnd.

func (*InitiateCallRequest) SetCancelPlaybackOnMachineDetection

func (s *InitiateCallRequest) SetCancelPlaybackOnMachineDetection(val OptBool)

SetCancelPlaybackOnMachineDetection sets the value of CancelPlaybackOnMachineDetection.

func (*InitiateCallRequest) SetDetectionMode

SetDetectionMode sets the value of DetectionMode.

func (*InitiateCallRequest) SetFallbackUrl

func (s *InitiateCallRequest) SetFallbackUrl(val OptString)

SetFallbackUrl sets the value of FallbackUrl.

func (*InitiateCallRequest) SetFrom

func (s *InitiateCallRequest) SetFrom(val string)

SetFrom sets the value of From.

func (*InitiateCallRequest) SetMachineDetection

func (s *InitiateCallRequest) SetMachineDetection(val OptInitiateCallRequestMachineDetection)

SetMachineDetection sets the value of MachineDetection.

func (*InitiateCallRequest) SetMachineDetectionSilenceTimeout

func (s *InitiateCallRequest) SetMachineDetectionSilenceTimeout(val OptInt)

SetMachineDetectionSilenceTimeout sets the value of MachineDetectionSilenceTimeout.

func (*InitiateCallRequest) SetMachineDetectionSpeechEndThreshold

func (s *InitiateCallRequest) SetMachineDetectionSpeechEndThreshold(val OptInt)

SetMachineDetectionSpeechEndThreshold sets the value of MachineDetectionSpeechEndThreshold.

func (*InitiateCallRequest) SetMachineDetectionSpeechThreshold

func (s *InitiateCallRequest) SetMachineDetectionSpeechThreshold(val OptInt)

SetMachineDetectionSpeechThreshold sets the value of MachineDetectionSpeechThreshold.

func (*InitiateCallRequest) SetMachineDetectionTimeout

func (s *InitiateCallRequest) SetMachineDetectionTimeout(val OptInt)

SetMachineDetectionTimeout sets the value of MachineDetectionTimeout.

func (*InitiateCallRequest) SetPreferredCodecs

func (s *InitiateCallRequest) SetPreferredCodecs(val OptString)

SetPreferredCodecs sets the value of PreferredCodecs.

func (*InitiateCallRequest) SetRecord

func (s *InitiateCallRequest) SetRecord(val OptBool)

SetRecord sets the value of Record.

func (*InitiateCallRequest) SetRecordingChannels

func (s *InitiateCallRequest) SetRecordingChannels(val OptInitiateCallRequestRecordingChannels)

SetRecordingChannels sets the value of RecordingChannels.

func (*InitiateCallRequest) SetRecordingStatusCallback

func (s *InitiateCallRequest) SetRecordingStatusCallback(val OptString)

SetRecordingStatusCallback sets the value of RecordingStatusCallback.

func (*InitiateCallRequest) SetRecordingStatusCallbackEvent

func (s *InitiateCallRequest) SetRecordingStatusCallbackEvent(val OptString)

SetRecordingStatusCallbackEvent sets the value of RecordingStatusCallbackEvent.

func (*InitiateCallRequest) SetRecordingStatusCallbackMethod

func (s *InitiateCallRequest) SetRecordingStatusCallbackMethod(val OptInitiateCallRequestRecordingStatusCallbackMethod)

SetRecordingStatusCallbackMethod sets the value of RecordingStatusCallbackMethod.

func (*InitiateCallRequest) SetRecordingTimeout

func (s *InitiateCallRequest) SetRecordingTimeout(val OptInt)

SetRecordingTimeout sets the value of RecordingTimeout.

func (*InitiateCallRequest) SetRecordingTrack

SetRecordingTrack sets the value of RecordingTrack.

func (*InitiateCallRequest) SetSipAuthPassword

func (s *InitiateCallRequest) SetSipAuthPassword(val OptString)

SetSipAuthPassword sets the value of SipAuthPassword.

func (*InitiateCallRequest) SetSipAuthUsername

func (s *InitiateCallRequest) SetSipAuthUsername(val OptString)

SetSipAuthUsername sets the value of SipAuthUsername.

func (*InitiateCallRequest) SetStatusCallback

func (s *InitiateCallRequest) SetStatusCallback(val OptString)

SetStatusCallback sets the value of StatusCallback.

func (*InitiateCallRequest) SetStatusCallbackEvent

func (s *InitiateCallRequest) SetStatusCallbackEvent(val OptInitiateCallRequestStatusCallbackEvent)

SetStatusCallbackEvent sets the value of StatusCallbackEvent.

func (*InitiateCallRequest) SetStatusCallbackMethod

func (s *InitiateCallRequest) SetStatusCallbackMethod(val OptInitiateCallRequestStatusCallbackMethod)

SetStatusCallbackMethod sets the value of StatusCallbackMethod.

func (*InitiateCallRequest) SetTo

func (s *InitiateCallRequest) SetTo(val string)

SetTo sets the value of To.

func (*InitiateCallRequest) SetTrim

SetTrim sets the value of Trim.

func (*InitiateCallRequest) SetURL

func (s *InitiateCallRequest) SetURL(val OptString)

SetURL sets the value of URL.

func (*InitiateCallRequest) SetUrlMethod

SetUrlMethod sets the value of UrlMethod.

func (*InitiateCallRequest) UnmarshalJSON

func (s *InitiateCallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InitiateCallRequest) Validate

func (s *InitiateCallRequest) Validate() error

type InitiateCallRequestAsyncAmdStatusCallbackMethod

type InitiateCallRequestAsyncAmdStatusCallbackMethod string

HTTP request type used for `AsyncAmdStatusCallback`. The default value is inherited from TeXML Application setting.

const (
	InitiateCallRequestAsyncAmdStatusCallbackMethodGET  InitiateCallRequestAsyncAmdStatusCallbackMethod = "GET"
	InitiateCallRequestAsyncAmdStatusCallbackMethodPOST InitiateCallRequestAsyncAmdStatusCallbackMethod = "POST"
)

func (InitiateCallRequestAsyncAmdStatusCallbackMethod) AllValues

AllValues returns all InitiateCallRequestAsyncAmdStatusCallbackMethod values.

func (*InitiateCallRequestAsyncAmdStatusCallbackMethod) Decode

Decode decodes InitiateCallRequestAsyncAmdStatusCallbackMethod from json.

func (InitiateCallRequestAsyncAmdStatusCallbackMethod) Encode

Encode encodes InitiateCallRequestAsyncAmdStatusCallbackMethod as json.

func (InitiateCallRequestAsyncAmdStatusCallbackMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (InitiateCallRequestAsyncAmdStatusCallbackMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*InitiateCallRequestAsyncAmdStatusCallbackMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InitiateCallRequestAsyncAmdStatusCallbackMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (InitiateCallRequestAsyncAmdStatusCallbackMethod) Validate

type InitiateCallRequestDetectionMode

type InitiateCallRequestDetectionMode string

Allows you to chose between Premium and Standard detections.

const (
	InitiateCallRequestDetectionModePremium InitiateCallRequestDetectionMode = "Premium"
	InitiateCallRequestDetectionModeRegular InitiateCallRequestDetectionMode = "Regular"
)

func (InitiateCallRequestDetectionMode) AllValues

AllValues returns all InitiateCallRequestDetectionMode values.

func (*InitiateCallRequestDetectionMode) Decode

Decode decodes InitiateCallRequestDetectionMode from json.

func (InitiateCallRequestDetectionMode) Encode

Encode encodes InitiateCallRequestDetectionMode as json.

func (InitiateCallRequestDetectionMode) MarshalJSON

func (s InitiateCallRequestDetectionMode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InitiateCallRequestDetectionMode) MarshalText

func (s InitiateCallRequestDetectionMode) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InitiateCallRequestDetectionMode) UnmarshalJSON

func (s *InitiateCallRequestDetectionMode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InitiateCallRequestDetectionMode) UnmarshalText

func (s *InitiateCallRequestDetectionMode) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InitiateCallRequestDetectionMode) Validate

type InitiateCallRequestMachineDetection

type InitiateCallRequestMachineDetection string

Enables Answering Machine Detection.

const (
	InitiateCallRequestMachineDetectionEnable           InitiateCallRequestMachineDetection = "Enable"
	InitiateCallRequestMachineDetectionDisable          InitiateCallRequestMachineDetection = "Disable"
	InitiateCallRequestMachineDetectionDetectMessageEnd InitiateCallRequestMachineDetection = "DetectMessageEnd"
)

func (InitiateCallRequestMachineDetection) AllValues

AllValues returns all InitiateCallRequestMachineDetection values.

func (*InitiateCallRequestMachineDetection) Decode

Decode decodes InitiateCallRequestMachineDetection from json.

func (InitiateCallRequestMachineDetection) Encode

Encode encodes InitiateCallRequestMachineDetection as json.

func (InitiateCallRequestMachineDetection) MarshalJSON

func (s InitiateCallRequestMachineDetection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InitiateCallRequestMachineDetection) MarshalText

func (s InitiateCallRequestMachineDetection) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InitiateCallRequestMachineDetection) UnmarshalJSON

func (s *InitiateCallRequestMachineDetection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InitiateCallRequestMachineDetection) UnmarshalText

func (s *InitiateCallRequestMachineDetection) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InitiateCallRequestMachineDetection) Validate

type InitiateCallRequestRecordingChannels

type InitiateCallRequestRecordingChannels string

The number of channels in the final recording. Defaults to `mono`.

const (
	InitiateCallRequestRecordingChannelsMono InitiateCallRequestRecordingChannels = "mono"
	InitiateCallRequestRecordingChannelsDual InitiateCallRequestRecordingChannels = "dual"
)

func (InitiateCallRequestRecordingChannels) AllValues

AllValues returns all InitiateCallRequestRecordingChannels values.

func (*InitiateCallRequestRecordingChannels) Decode

Decode decodes InitiateCallRequestRecordingChannels from json.

func (InitiateCallRequestRecordingChannels) Encode

Encode encodes InitiateCallRequestRecordingChannels as json.

func (InitiateCallRequestRecordingChannels) MarshalJSON

func (s InitiateCallRequestRecordingChannels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InitiateCallRequestRecordingChannels) MarshalText

func (s InitiateCallRequestRecordingChannels) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InitiateCallRequestRecordingChannels) UnmarshalJSON

func (s *InitiateCallRequestRecordingChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InitiateCallRequestRecordingChannels) UnmarshalText

func (s *InitiateCallRequestRecordingChannels) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InitiateCallRequestRecordingChannels) Validate

type InitiateCallRequestRecordingStatusCallbackMethod

type InitiateCallRequestRecordingStatusCallbackMethod string

HTTP request type used for `RecordingStatusCallback`. Defaults to `POST`.

const (
	InitiateCallRequestRecordingStatusCallbackMethodGET  InitiateCallRequestRecordingStatusCallbackMethod = "GET"
	InitiateCallRequestRecordingStatusCallbackMethodPOST InitiateCallRequestRecordingStatusCallbackMethod = "POST"
)

func (InitiateCallRequestRecordingStatusCallbackMethod) AllValues

AllValues returns all InitiateCallRequestRecordingStatusCallbackMethod values.

func (*InitiateCallRequestRecordingStatusCallbackMethod) Decode

Decode decodes InitiateCallRequestRecordingStatusCallbackMethod from json.

func (InitiateCallRequestRecordingStatusCallbackMethod) Encode

Encode encodes InitiateCallRequestRecordingStatusCallbackMethod as json.

func (InitiateCallRequestRecordingStatusCallbackMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (InitiateCallRequestRecordingStatusCallbackMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*InitiateCallRequestRecordingStatusCallbackMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InitiateCallRequestRecordingStatusCallbackMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (InitiateCallRequestRecordingStatusCallbackMethod) Validate

type InitiateCallRequestRecordingTrack

type InitiateCallRequestRecordingTrack string

The audio track to record for the call. The default is `both`.

const (
	InitiateCallRequestRecordingTrackInbound  InitiateCallRequestRecordingTrack = "inbound"
	InitiateCallRequestRecordingTrackOutbound InitiateCallRequestRecordingTrack = "outbound"
	InitiateCallRequestRecordingTrackBoth     InitiateCallRequestRecordingTrack = "both"
)

func (InitiateCallRequestRecordingTrack) AllValues

AllValues returns all InitiateCallRequestRecordingTrack values.

func (*InitiateCallRequestRecordingTrack) Decode

Decode decodes InitiateCallRequestRecordingTrack from json.

func (InitiateCallRequestRecordingTrack) Encode

Encode encodes InitiateCallRequestRecordingTrack as json.

func (InitiateCallRequestRecordingTrack) MarshalJSON

func (s InitiateCallRequestRecordingTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InitiateCallRequestRecordingTrack) MarshalText

func (s InitiateCallRequestRecordingTrack) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InitiateCallRequestRecordingTrack) UnmarshalJSON

func (s *InitiateCallRequestRecordingTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InitiateCallRequestRecordingTrack) UnmarshalText

func (s *InitiateCallRequestRecordingTrack) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InitiateCallRequestRecordingTrack) Validate

type InitiateCallRequestStatusCallbackEvent

type InitiateCallRequestStatusCallbackEvent string

The call events for which Telnyx should send a webhook. Multiple events can be defined when separated by a space.

const (
	InitiateCallRequestStatusCallbackEventInitiated InitiateCallRequestStatusCallbackEvent = "initiated"
	InitiateCallRequestStatusCallbackEventRinging   InitiateCallRequestStatusCallbackEvent = "ringing"
	InitiateCallRequestStatusCallbackEventAnswered  InitiateCallRequestStatusCallbackEvent = "answered"
	InitiateCallRequestStatusCallbackEventCompleted InitiateCallRequestStatusCallbackEvent = "completed"
)

func (InitiateCallRequestStatusCallbackEvent) AllValues

AllValues returns all InitiateCallRequestStatusCallbackEvent values.

func (*InitiateCallRequestStatusCallbackEvent) Decode

Decode decodes InitiateCallRequestStatusCallbackEvent from json.

func (InitiateCallRequestStatusCallbackEvent) Encode

Encode encodes InitiateCallRequestStatusCallbackEvent as json.

func (InitiateCallRequestStatusCallbackEvent) MarshalJSON

func (s InitiateCallRequestStatusCallbackEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InitiateCallRequestStatusCallbackEvent) MarshalText

func (s InitiateCallRequestStatusCallbackEvent) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InitiateCallRequestStatusCallbackEvent) UnmarshalJSON

func (s *InitiateCallRequestStatusCallbackEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InitiateCallRequestStatusCallbackEvent) UnmarshalText

func (s *InitiateCallRequestStatusCallbackEvent) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InitiateCallRequestStatusCallbackEvent) Validate

type InitiateCallRequestStatusCallbackMethod

type InitiateCallRequestStatusCallbackMethod string

HTTP request type used for `StatusCallback`.

const (
	InitiateCallRequestStatusCallbackMethodGET  InitiateCallRequestStatusCallbackMethod = "GET"
	InitiateCallRequestStatusCallbackMethodPOST InitiateCallRequestStatusCallbackMethod = "POST"
)

func (InitiateCallRequestStatusCallbackMethod) AllValues

AllValues returns all InitiateCallRequestStatusCallbackMethod values.

func (*InitiateCallRequestStatusCallbackMethod) Decode

Decode decodes InitiateCallRequestStatusCallbackMethod from json.

func (InitiateCallRequestStatusCallbackMethod) Encode

Encode encodes InitiateCallRequestStatusCallbackMethod as json.

func (InitiateCallRequestStatusCallbackMethod) MarshalJSON

func (s InitiateCallRequestStatusCallbackMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InitiateCallRequestStatusCallbackMethod) MarshalText

func (s InitiateCallRequestStatusCallbackMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InitiateCallRequestStatusCallbackMethod) UnmarshalJSON

func (s *InitiateCallRequestStatusCallbackMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InitiateCallRequestStatusCallbackMethod) UnmarshalText

func (s *InitiateCallRequestStatusCallbackMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InitiateCallRequestStatusCallbackMethod) Validate

type InitiateCallRequestTrim

type InitiateCallRequestTrim string

Whether to trim any leading and trailing silence from the recording. Defaults to `trim-silence`.

const (
	InitiateCallRequestTrimTrimSilence InitiateCallRequestTrim = "trim-silence"
	InitiateCallRequestTrimDoNotTrim   InitiateCallRequestTrim = "do-not-trim"
)

func (InitiateCallRequestTrim) AllValues

AllValues returns all InitiateCallRequestTrim values.

func (*InitiateCallRequestTrim) Decode

func (s *InitiateCallRequestTrim) Decode(d *jx.Decoder) error

Decode decodes InitiateCallRequestTrim from json.

func (InitiateCallRequestTrim) Encode

func (s InitiateCallRequestTrim) Encode(e *jx.Encoder)

Encode encodes InitiateCallRequestTrim as json.

func (InitiateCallRequestTrim) MarshalJSON

func (s InitiateCallRequestTrim) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InitiateCallRequestTrim) MarshalText

func (s InitiateCallRequestTrim) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InitiateCallRequestTrim) UnmarshalJSON

func (s *InitiateCallRequestTrim) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InitiateCallRequestTrim) UnmarshalText

func (s *InitiateCallRequestTrim) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InitiateCallRequestTrim) Validate

func (s InitiateCallRequestTrim) Validate() error

type InitiateCallRequestUrlMethod

type InitiateCallRequestUrlMethod string

HTTP request type used for `Url`. The default value is inherited from TeXML Application setting.

const (
	InitiateCallRequestUrlMethodGET  InitiateCallRequestUrlMethod = "GET"
	InitiateCallRequestUrlMethodPOST InitiateCallRequestUrlMethod = "POST"
)

func (InitiateCallRequestUrlMethod) AllValues

AllValues returns all InitiateCallRequestUrlMethod values.

func (*InitiateCallRequestUrlMethod) Decode

Decode decodes InitiateCallRequestUrlMethod from json.

func (InitiateCallRequestUrlMethod) Encode

Encode encodes InitiateCallRequestUrlMethod as json.

func (InitiateCallRequestUrlMethod) MarshalJSON

func (s InitiateCallRequestUrlMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InitiateCallRequestUrlMethod) MarshalText

func (s InitiateCallRequestUrlMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InitiateCallRequestUrlMethod) UnmarshalJSON

func (s *InitiateCallRequestUrlMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InitiateCallRequestUrlMethod) UnmarshalText

func (s *InitiateCallRequestUrlMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InitiateCallRequestUrlMethod) Validate

func (s InitiateCallRequestUrlMethod) Validate() error

type InitiateCallResponse

type InitiateCallResponse struct {
	Data OptInitiateCallResult `json:"data"`
}

func (*InitiateCallResponse) Decode

func (s *InitiateCallResponse) Decode(d *jx.Decoder) error

Decode decodes InitiateCallResponse from json.

func (*InitiateCallResponse) Encode

func (s *InitiateCallResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InitiateCallResponse) GetData

GetData returns the value of Data.

func (*InitiateCallResponse) MarshalJSON

func (s *InitiateCallResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InitiateCallResponse) SetData

SetData sets the value of Data.

func (*InitiateCallResponse) UnmarshalJSON

func (s *InitiateCallResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type InitiateCallResult

type InitiateCallResult struct {
	From   OptString `json:"from"`
	To     OptString `json:"to"`
	Status OptString `json:"status"`
}

Ref: #/components/schemas/InitiateCallResult

func (*InitiateCallResult) Decode

func (s *InitiateCallResult) Decode(d *jx.Decoder) error

Decode decodes InitiateCallResult from json.

func (*InitiateCallResult) Encode

func (s *InitiateCallResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InitiateCallResult) GetFrom

func (s *InitiateCallResult) GetFrom() OptString

GetFrom returns the value of From.

func (*InitiateCallResult) GetStatus

func (s *InitiateCallResult) GetStatus() OptString

GetStatus returns the value of Status.

func (*InitiateCallResult) GetTo

func (s *InitiateCallResult) GetTo() OptString

GetTo returns the value of To.

func (*InitiateCallResult) MarshalJSON

func (s *InitiateCallResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InitiateCallResult) SetFrom

func (s *InitiateCallResult) SetFrom(val OptString)

SetFrom sets the value of From.

func (*InitiateCallResult) SetStatus

func (s *InitiateCallResult) SetStatus(val OptString)

SetStatus sets the value of Status.

func (*InitiateCallResult) SetTo

func (s *InitiateCallResult) SetTo(val OptString)

SetTo sets the value of To.

func (*InitiateCallResult) UnmarshalJSON

func (s *InitiateCallResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type InitiateTexmlCallByAccountParams

type InitiateTexmlCallByAccountParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
}

InitiateTexmlCallByAccountParams is parameters of InitiateTexmlCallByAccount operation.

type InitiateTexmlCallByApplicationParams

type InitiateTexmlCallByApplicationParams struct {
	// The ID of the TeXML application used for the call.
	ApplicationID string
}

InitiateTexmlCallByApplicationParams is parameters of InitiateTexmlCallByApplication operation.

type IntId

type IntId int64

func (*IntId) Decode

func (s *IntId) Decode(d *jx.Decoder) error

Decode decodes IntId from json.

func (IntId) Encode

func (s IntId) Encode(e *jx.Encoder)

Encode encodes IntId as json.

func (IntId) MarshalJSON

func (s IntId) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IntId) UnmarshalJSON

func (s *IntId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type InterfaceStatus

type InterfaceStatus string

The current status of the interface deployment. Ref: #/components/schemas/InterfaceStatus

const (
	InterfaceStatusCreated      InterfaceStatus = "created"
	InterfaceStatusProvisioning InterfaceStatus = "provisioning"
	InterfaceStatusProvisioned  InterfaceStatus = "provisioned"
	InterfaceStatusDeleting     InterfaceStatus = "deleting"
)

func (InterfaceStatus) AllValues

func (InterfaceStatus) AllValues() []InterfaceStatus

AllValues returns all InterfaceStatus values.

func (*InterfaceStatus) Decode

func (s *InterfaceStatus) Decode(d *jx.Decoder) error

Decode decodes InterfaceStatus from json.

func (InterfaceStatus) Encode

func (s InterfaceStatus) Encode(e *jx.Encoder)

Encode encodes InterfaceStatus as json.

func (InterfaceStatus) MarshalJSON

func (s InterfaceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InterfaceStatus) MarshalText

func (s InterfaceStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InterfaceStatus) UnmarshalJSON

func (s *InterfaceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InterfaceStatus) UnmarshalText

func (s *InterfaceStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InterfaceStatus) Validate

func (s InterfaceStatus) Validate() error

type Invoker

type Invoker interface {
	// ActivatePortingOrder invokes ActivatePortingOrder operation.
	//
	// Activate each number in a porting order asynchronously. This operation is limited to US FastPort
	// orders only.
	//
	// POST /porting_orders/{id}/actions/activate
	ActivatePortingOrder(ctx context.Context, params ActivatePortingOrderParams) (ActivatePortingOrderRes, error)
	// AnswerCall invokes AnswerCall operation.
	//
	// Answer an incoming call. You must issue this command before executing subsequent commands on an
	// incoming call.
	// **Expected Webhooks:**
	// - `call.answered`
	// - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set.
	//
	// POST /calls/{call_control_id}/actions/answer
	AnswerCall(ctx context.Context, request *AnswerRequest, params AnswerCallParams) (AnswerCallRes, error)
	// AssignPhoneNumber invokes AssignPhoneNumber operation.
	//
	// You should own the phone number being assigned to the channel zone. Remember that you should
	// reserve channels in this channel zone, otherwise you won't be able to receive incoming calls.
	//
	// POST /channel_zones/{channel_zone_id}/channel_zone_phone_numbers
	AssignPhoneNumber(ctx context.Context, request *AssignPhoneNumberReq, params AssignPhoneNumberParams) (AssignPhoneNumberRes, error)
	// AudioPublicAudioTranscriptionsPost invokes audio_public_audio_transcriptions_post operation.
	//
	// Transcribe speech to text. This endpoint is consistent with the [OpenAI Transcription
	// API](https://platform.openai.com/docs/api-reference/audio/createTranscription) and may be used
	// with the OpenAI JS or Python SDK.
	//
	// POST /ai/audio/transcriptions
	AudioPublicAudioTranscriptionsPost(ctx context.Context, request *AudioTranscriptionRequestMultipart) (AudioPublicAudioTranscriptionsPostRes, error)
	// BridgeCall invokes BridgeCall operation.
	//
	// Bridge two call control calls.
	// **Expected Webhooks:**
	// - `call.bridged` for Leg A
	// - `call.bridged` for Leg B.
	//
	// POST /calls/{call_control_id}/actions/bridge
	BridgeCall(ctx context.Context, request *BridgeRequest, params BridgeCallParams) (BridgeCallRes, error)
	// BulkCredentialAction invokes BulkCredentialAction operation.
	//
	// Perform activate or deactivate action on all credentials filtered by the provided tag. Activate
	// action will change the status to active, making it possible to connect calls with the credential.
	// Deactivate action will change the status to inactive, making it impossible to connect calls with
	// the credential.
	//
	// POST /actions/{action}/telephony_credentials
	BulkCredentialAction(ctx context.Context, params BulkCredentialActionParams) (BulkCredentialActionRes, error)
	// CancelPortingOrder invokes CancelPortingOrder operation.
	//
	// Cancel a porting order.
	//
	// POST /porting_orders/{id}/actions/cancel
	CancelPortingOrder(ctx context.Context, params CancelPortingOrderParams) (CancelPortingOrderRes, error)
	// ConfirmPortingOrder invokes ConfirmPortingOrder operation.
	//
	// Confirm and submit your porting order.
	//
	// POST /porting_orders/{id}/actions/confirm
	ConfirmPortingOrder(ctx context.Context, params ConfirmPortingOrderParams) (ConfirmPortingOrderRes, error)
	// CreateAdditionalDocuments invokes CreateAdditionalDocuments operation.
	//
	// Creates a list of additional documents for a porting order.
	//
	// POST /porting_orders/{id}/additional_documents
	CreateAdditionalDocuments(ctx context.Context, request *CreateAdditionalDocumentsReq, params CreateAdditionalDocumentsParams) (CreateAdditionalDocumentsRes, error)
	// CreateBulkTelephonyCredentials invokes CreateBulkTelephonyCredentials operation.
	//
	// Creates several credentials in bulk.
	//
	// POST /actions/bulk/telephony_credentials
	CreateBulkTelephonyCredentials(ctx context.Context, request *BulkCredentialRequest) (CreateBulkTelephonyCredentialsRes, error)
	// CreateCallControlApplication invokes CreateCallControlApplication operation.
	//
	// Create a call control application.
	//
	// POST /call_control_applications
	CreateCallControlApplication(ctx context.Context, request *CreateCallControlApplicationRequest) (CreateCallControlApplicationRes, error)
	// CreateComment invokes CreateComment operation.
	//
	// Create a comment.
	//
	// POST /comments
	CreateComment(ctx context.Context, request *Comment) (CreateCommentRes, error)
	// CreateCsvDownload invokes CreateCsvDownload operation.
	//
	// Create a CSV download.
	//
	// POST /phone_numbers/csv_downloads
	CreateCsvDownload(ctx context.Context) (CreateCsvDownloadRes, error)
	// CreateCustomStorageCredentials invokes CreateCustomStorageCredentials operation.
	//
	// Creates a custom storage credentials configuration.
	//
	// POST /custom_storage_credentials/{connection_id}
	CreateCustomStorageCredentials(ctx context.Context, request *CustomStorageConfiguration, params CreateCustomStorageCredentialsParams) (CreateCustomStorageCredentialsRes, error)
	// CreateDefaultGateway invokes CreateDefaultGateway operation.
	//
	// Create Default Gateway.
	//
	// POST /networks/{id}/default_gateway
	CreateDefaultGateway(ctx context.Context, request *DefaultGateway, params CreateDefaultGatewayParams) (CreateDefaultGatewayRes, error)
	// CreateDeletePhoneNumbersJob invokes CreateDeletePhoneNumbersJob operation.
	//
	// Creates a new background job to delete a batch of numbers. At most one thousand numbers can be
	// updated per API call.
	//
	// POST /phone_numbers/jobs/delete_phone_numbers
	CreateDeletePhoneNumbersJob(ctx context.Context, request *PhoneNumbersJobDeletePhoneNumbersRequest) (CreateDeletePhoneNumbersJobRes, error)
	// CreateFlashcallVerification invokes CreateFlashcallVerification operation.
	//
	// Trigger Flash call verification.
	//
	// POST /verifications/flashcall
	CreateFlashcallVerification(ctx context.Context, request *CreateVerificationRequestFlashcall) (CreateFlashcallVerificationRes, error)
	// CreateGroupMmsMessage invokes CreateGroupMmsMessage operation.
	//
	// Send a group MMS message.
	//
	// POST /messages/group_mms
	CreateGroupMmsMessage(ctx context.Context, request OptCreateGroupMMSMessageRequest) (CreateGroupMmsMessageRes, error)
	// CreateLoaConfiguration invokes CreateLoaConfiguration operation.
	//
	// Create a LOA configuration.
	//
	// POST /porting/loa_configurations
	CreateLoaConfiguration(ctx context.Context, request *CreateLoaConfigurationReq) (CreateLoaConfigurationRes, error)
	// CreateLongCodeMessage invokes CreateLongCodeMessage operation.
	//
	// Send a long code message.
	//
	// POST /messages/long_code
	CreateLongCodeMessage(ctx context.Context, request OptCreateLongCodeMessageRequest) (CreateLongCodeMessageRes, error)
	// CreateMessagingHostedNumberOrder invokes CreateMessagingHostedNumberOrder operation.
	//
	// Create a messaging hosted number order.
	//
	// POST /messaging_hosted_number_orders
	CreateMessagingHostedNumberOrder(ctx context.Context, request OptCreateMessagingHostedNumberOrderRequest) (CreateMessagingHostedNumberOrderRes, error)
	// CreateNetwork invokes CreateNetwork operation.
	//
	// Create a new Network.
	//
	// POST /networks
	CreateNetwork(ctx context.Context, request *NetworkCreate) (CreateNetworkRes, error)
	// CreateNotificationChannels invokes CreateNotificationChannels operation.
	//
	// Create a notification channel.
	//
	// POST /notification_channels
	CreateNotificationChannels(ctx context.Context, request OptNotificationChannel) (CreateNotificationChannelsRes, error)
	// CreateNumberOrderDocument invokes CreateNumberOrderDocument operation.
	//
	// Upload a phone number order document.
	//
	// POST /number_order_documents
	CreateNumberOrderDocument(ctx context.Context, request *CreateNumberOrderDocumentRequest) (CreateNumberOrderDocumentRes, error)
	// CreateNumberPoolMessage invokes CreateNumberPoolMessage operation.
	//
	// Send a message using number pool.
	//
	// POST /messages/number_pool
	CreateNumberPoolMessage(ctx context.Context, request OptCreateNumberPoolMessageRequest) (CreateNumberPoolMessageRes, error)
	// CreateNumberReservation invokes CreateNumberReservation operation.
	//
	// Creates a Phone Number Reservation for multiple numbers.
	//
	// POST /number_reservations
	CreateNumberReservation(ctx context.Context, request *CreateNumberReservationRequest) (CreateNumberReservationRes, error)
	// CreatePhoneNumberConfigurations invokes CreatePhoneNumberConfigurations operation.
	//
	// Creates a list of phone number configurations.
	//
	// POST /porting_orders/phone_number_configurations
	CreatePhoneNumberConfigurations(ctx context.Context, request *CreatePhoneNumberConfigurationsReq) (CreatePhoneNumberConfigurationsRes, error)
	// CreatePhoneNumbersJobUpdateEmergencySettings invokes CreatePhoneNumbersJobUpdateEmergencySettings operation.
	//
	// Creates a background job to update the emergency settings of a collection of phone numbers. At
	// most one thousand numbers can be updated per API call.
	//
	// POST /phone_numbers/jobs/update_emergency_settings
	CreatePhoneNumbersJobUpdateEmergencySettings(ctx context.Context, request *PhoneNumbersJobUpdateEmergencySettingsRequest) (CreatePhoneNumbersJobUpdateEmergencySettingsRes, error)
	// CreatePortingOrder invokes CreatePortingOrder operation.
	//
	// Creates a new porting order object.
	//
	// POST /porting_orders
	CreatePortingOrder(ctx context.Context, request *CreatePortingOrder) (CreatePortingOrderRes, error)
	// CreatePortingReport invokes CreatePortingReport operation.
	//
	// Generate reports about porting operations.
	//
	// POST /porting/reports
	CreatePortingReport(ctx context.Context, request *CreatePortingReportReq) (CreatePortingReportRes, error)
	// CreatePrivateWirelessGateway invokes CreatePrivateWirelessGateway operation.
	//
	// Asynchronously create a Private Wireless Gateway for SIM cards for a previously created network.
	//
	// POST /private_wireless_gateways
	CreatePrivateWirelessGateway(ctx context.Context, request *CreatePrivateWirelessGatewayReq) (CreatePrivateWirelessGatewayRes, error)
	// CreateProfile invokes CreateProfile operation.
	//
	// Creates a Verified Calls Display Profile associated with the given Business Identity.
	//
	// POST /verified_calls_display_profiles
	CreateProfile(ctx context.Context, request *CreateVerifiedCallsDisplayProfileRequest) (CreateProfileRes, error)
	// CreateProfileVerificationRequest invokes CreateProfileVerificationRequest operation.
	//
	// Starts a new Verified Calls Display Profile verification process.
	//
	// POST /verified_calls_display_profiles/{id}/verification_request
	CreateProfileVerificationRequest(ctx context.Context, params CreateProfileVerificationRequestParams) (CreateProfileVerificationRequestRes, error)
	// CreateShortCodeMessage invokes CreateShortCodeMessage operation.
	//
	// Send a short code message.
	//
	// POST /messages/short_code
	CreateShortCodeMessage(ctx context.Context, request OptCreateShortCodeMessageRequest) (CreateShortCodeMessageRes, error)
	// CreateTelephonyCredential invokes CreateTelephonyCredential operation.
	//
	// Create a credential.
	//
	// POST /telephony_credentials
	CreateTelephonyCredential(ctx context.Context, request *TelephonyCredentialCreateRequest) (CreateTelephonyCredentialRes, error)
	// CreateTelephonyCredentialToken invokes CreateTelephonyCredentialToken operation.
	//
	// Create an Access Token (JWT) for the credential.
	//
	// POST /telephony_credentials/{id}/token
	CreateTelephonyCredentialToken(ctx context.Context, params CreateTelephonyCredentialTokenParams) (CreateTelephonyCredentialTokenRes, error)
	// CreateTexmlApplication invokes CreateTexmlApplication operation.
	//
	// Creates a TeXML Application.
	//
	// POST /texml_applications
	CreateTexmlApplication(ctx context.Context, request *CreateTexmlApplicationRequest) (CreateTexmlApplicationRes, error)
	// CreateTexmlSecret invokes CreateTexmlSecret operation.
	//
	// Create a TeXML secret which can be later used as a Dynamic Parameter for TeXML when using Mustache
	// Templates in your TeXML. In your TeXML you will be able to use your secret name, and this name
	// will be replaced by the actual secret value when processing the TeXML on Telnyx side.  The secrets
	// are not visible in any logs.
	//
	// POST /texml/secrets
	CreateTexmlSecret(ctx context.Context, request *CreateTeXMLSecretRequest) (CreateTexmlSecretRes, error)
	// CreateUpdatePhoneNumbersJob invokes CreateUpdatePhoneNumbersJob operation.
	//
	// Creates a new background job to update a batch of numbers. At most one thousand numbers can be
	// updated per API call. At least one of the updateable fields must be submitted.
	//
	// POST /phone_numbers/jobs/update_phone_numbers
	CreateUpdatePhoneNumbersJob(ctx context.Context, request *PhoneNumbersJobUpdatePhoneNumbersRequest) (CreateUpdatePhoneNumbersJobRes, error)
	// CreateVerificationCall invokes CreateVerificationCall operation.
	//
	// Trigger Call verification.
	//
	// POST /verifications/call
	CreateVerificationCall(ctx context.Context, request *CreateVerificationRequestCall) (CreateVerificationCallRes, error)
	// CreateVerificationSms invokes CreateVerificationSms operation.
	//
	// Trigger SMS verification.
	//
	// POST /verifications/sms
	CreateVerificationSms(ctx context.Context, request *CreateVerificationRequestSMS) (CreateVerificationSmsRes, error)
	// CreateVerifiedNumber invokes CreateVerifiedNumber operation.
	//
	// Initiates phone number verification procedure.
	//
	// POST /verified_numbers
	CreateVerifiedNumber(ctx context.Context, request *CreateVerifiedNumberReq) (CreateVerifiedNumberRes, error)
	// CreateVerifyProfile invokes CreateVerifyProfile operation.
	//
	// Creates a new Verify profile to associate verifications with.
	//
	// POST /verify_profiles
	CreateVerifyProfile(ctx context.Context, request *CreateVerifyProfileReq) (CreateVerifyProfileRes, error)
	// CreateVoiceProfile invokes CreateVoiceProfile operation.
	//
	// Create an outbound voice profile.
	//
	// POST /outbound_voice_profiles
	CreateVoiceProfile(ctx context.Context, request *CreateOutboundVoiceProfileRequest) (CreateVoiceProfileRes, error)
	// DeleteAdditionalDocument invokes DeleteAdditionalDocument operation.
	//
	// Deletes an additional document for a porting order.
	//
	// DELETE /porting_orders/{id}/additional_documents/{additional_document_id}
	DeleteAdditionalDocument(ctx context.Context, params DeleteAdditionalDocumentParams) (DeleteAdditionalDocumentRes, error)
	// DeleteCallControlApplication invokes DeleteCallControlApplication operation.
	//
	// Deletes a call control application.
	//
	// DELETE /call_control_applications/{id}
	DeleteCallControlApplication(ctx context.Context, params DeleteCallControlApplicationParams) (DeleteCallControlApplicationRes, error)
	// DeleteCustomStorageCredentials invokes DeleteCustomStorageCredentials operation.
	//
	// Deletes a stored custom credentials configuration.
	//
	// DELETE /custom_storage_credentials/{connection_id}
	DeleteCustomStorageCredentials(ctx context.Context, params DeleteCustomStorageCredentialsParams) (DeleteCustomStorageCredentialsRes, error)
	// DeleteDefaultGateway invokes DeleteDefaultGateway operation.
	//
	// Delete Default Gateway.
	//
	// DELETE /networks/{id}/default_gateway
	DeleteDefaultGateway(ctx context.Context, params DeleteDefaultGatewayParams) (DeleteDefaultGatewayRes, error)
	// DeleteExternalConnectionLogMessage invokes DeleteExternalConnectionLogMessage operation.
	//
	// Dismiss a log message for an external connection associated with your account.
	//
	// DELETE /external_connections/log_messages/{id}
	DeleteExternalConnectionLogMessage(ctx context.Context, params DeleteExternalConnectionLogMessageParams) (DeleteExternalConnectionLogMessageRes, error)
	// DeleteLoaConfiguration invokes DeleteLoaConfiguration operation.
	//
	// Delete a specific LOA configuration.
	//
	// DELETE /porting/loa_configurations/{id}
	DeleteLoaConfiguration(ctx context.Context, params DeleteLoaConfigurationParams) (DeleteLoaConfigurationRes, error)
	// DeleteNetwork invokes DeleteNetwork operation.
	//
	// Delete a Network.
	//
	// DELETE /networks/{id}
	DeleteNetwork(ctx context.Context, params DeleteNetworkParams) (DeleteNetworkRes, error)
	// DeleteNotificationChannel invokes DeleteNotificationChannel operation.
	//
	// Delete a notification channel.
	//
	// DELETE /notification_channels/{id}
	DeleteNotificationChannel(ctx context.Context, params DeleteNotificationChannelParams) (DeleteNotificationChannelRes, error)
	// DeleteOutboundVoiceProfile invokes DeleteOutboundVoiceProfile operation.
	//
	// Deletes an existing outbound voice profile.
	//
	// DELETE /outbound_voice_profiles/{id}
	DeleteOutboundVoiceProfile(ctx context.Context, params DeleteOutboundVoiceProfileParams) (DeleteOutboundVoiceProfileRes, error)
	// DeletePhoneNumber invokes DeletePhoneNumber operation.
	//
	// Delete a phone number.
	//
	// DELETE /phone_numbers/{id}
	DeletePhoneNumber(ctx context.Context, params DeletePhoneNumberParams) (DeletePhoneNumberRes, error)
	// DeletePortingOrder invokes DeletePortingOrder operation.
	//
	// Deletes an existing porting order. This operation is restrict to porting orders in draft state.
	//
	// DELETE /porting_orders/{id}
	DeletePortingOrder(ctx context.Context, params DeletePortingOrderParams) (DeletePortingOrderRes, error)
	// DeleteProfile invokes DeleteProfile operation.
	//
	// Delete Verify profile.
	//
	// DELETE /verify_profiles/{verify_profile_id}
	DeleteProfile(ctx context.Context, params DeleteProfileParams) (DeleteProfileRes, error)
	// DeleteRecording invokes DeleteRecording operation.
	//
	// Permanently deletes a call recording.
	//
	// DELETE /recordings/{recording_id}
	DeleteRecording(ctx context.Context, params DeleteRecordingParams) (DeleteRecordingRes, error)
	// DeleteRecordingTranscription invokes deleteRecordingTranscription operation.
	//
	// Permanently deletes a recording transcription.
	//
	// DELETE /recording_transcriptions/{recording_transcription_id}
	DeleteRecordingTranscription(ctx context.Context, params DeleteRecordingTranscriptionParams) (DeleteRecordingTranscriptionRes, error)
	// DeleteRecordings invokes DeleteRecordings operation.
	//
	// Permanently deletes a list of call recordings.
	//
	// DELETE /recordings/actions/delete
	DeleteRecordings(ctx context.Context, request []string) (DeleteRecordingsRes, error)
	// DeleteRoomRecording invokes DeleteRoomRecording operation.
	//
	// Synchronously delete a Room Recording.
	//
	// DELETE /room_recordings/{room_recording_id}
	DeleteRoomRecording(ctx context.Context, params DeleteRoomRecordingParams) (DeleteRoomRecordingRes, error)
	// DeleteRoomRecordings invokes DeleteRoomRecordings operation.
	//
	// Delete several room recordings in a bulk.
	//
	// DELETE /room_recordings
	DeleteRoomRecordings(ctx context.Context, params DeleteRoomRecordingsParams) (DeleteRoomRecordingsRes, error)
	// DeleteTeXMLCallRecording invokes DeleteTeXMLCallRecording operation.
	//
	// Deletes recording resource identified by recording id.
	//
	// DELETE /texml/Accounts/{account_sid}/Recordings/{recording_sid}.json
	DeleteTeXMLCallRecording(ctx context.Context, params DeleteTeXMLCallRecordingParams) (DeleteTeXMLCallRecordingRes, error)
	// DeleteTeXMLRecordingTranscription invokes DeleteTeXMLRecordingTranscription operation.
	//
	// Permanently deletes a recording transcription.
	//
	// DELETE /texml/Accounts/{account_sid}/Transcriptions/{recording_transcription_sid}.json
	DeleteTeXMLRecordingTranscription(ctx context.Context, params DeleteTeXMLRecordingTranscriptionParams) (DeleteTeXMLRecordingTranscriptionRes, error)
	// DeleteTelephonyCredential invokes DeleteTelephonyCredential operation.
	//
	// Delete an existing credential.
	//
	// DELETE /telephony_credentials/{id}
	DeleteTelephonyCredential(ctx context.Context, params DeleteTelephonyCredentialParams) (DeleteTelephonyCredentialRes, error)
	// DeleteTelephonyCredentials invokes DeleteTelephonyCredentials operation.
	//
	// Delete several credentials in bulk.
	//
	// DELETE /actions/bulk/telephony_credentials
	DeleteTelephonyCredentials(ctx context.Context, params DeleteTelephonyCredentialsParams) (DeleteTelephonyCredentialsRes, error)
	// DeleteTexmlApplication invokes DeleteTexmlApplication operation.
	//
	// Deletes a TeXML Application.
	//
	// DELETE /texml_applications/{id}
	DeleteTexmlApplication(ctx context.Context, params DeleteTexmlApplicationParams) (DeleteTexmlApplicationRes, error)
	// DeleteTexmlConferenceParticipant invokes DeleteTexmlConferenceParticipant operation.
	//
	// Deletes a conference participant.
	//
	// DELETE /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants/{call_sid}
	DeleteTexmlConferenceParticipant(ctx context.Context, params DeleteTexmlConferenceParticipantParams) (DeleteTexmlConferenceParticipantRes, error)
	// DeleteVerifiedCallDisplayProfile invokes DeleteVerifiedCallDisplayProfile operation.
	//
	// Deletes the Verified Calls Display Profile. This action will fail if any verification requests
	// have been made for this Verified Calls Display Profile. Please contact support@telnyx.com in case
	// you want to delete a Verified Calls Display Profile in that situation.
	//
	// DELETE /verified_calls_display_profiles/{id}
	DeleteVerifiedCallDisplayProfile(ctx context.Context, params DeleteVerifiedCallDisplayProfileParams) (DeleteVerifiedCallDisplayProfileRes, error)
	// DeleteVerifiedNumber invokes DeleteVerifiedNumber operation.
	//
	// Delete a verified number.
	//
	// DELETE /verified_numbers/{phone_number}
	DeleteVerifiedNumber(ctx context.Context, params DeleteVerifiedNumberParams) (DeleteVerifiedNumberRes, error)
	// DeleteWirelessGateway invokes DeleteWirelessGateway operation.
	//
	// Deletes the Private Wireless Gateway.
	//
	// DELETE /private_wireless_gateways/{id}
	DeleteWirelessGateway(ctx context.Context, params DeleteWirelessGatewayParams) (DeleteWirelessGatewayRes, error)
	// DialCall invokes DialCall operation.
	//
	// Dial a number or SIP URI from a given connection. A successful response will include a
	// `call_leg_id` which can be used to correlate the command with subsequent webhooks.
	// **Expected Webhooks:**
	// - `call.initiated`
	// - `call.answered` or `call.hangup`
	// - `call.machine.detection.ended` if `answering_machine_detection` was requested
	// - `call.machine.greeting.ended` if `answering_machine_detection` was requested to detect the end
	// of machine greeting
	// - `call.machine.premium.detection.ended` if `answering_machine_detection=premium` was requested
	// - `call.machine.premium.greeting.ended` if `answering_machine_detection=premium` was requested and
	// a beep was detected
	// - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set.
	//
	// POST /calls
	DialCall(ctx context.Context, request *CallRequest) (DialCallRes, error)
	// DialTexmlConferenceParticipant invokes DialTexmlConferenceParticipant operation.
	//
	// Dials a new conference participant.
	//
	// POST /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants
	DialTexmlConferenceParticipant(ctx context.Context, request *DialConferenceParticipantRequest, params DialTexmlConferenceParticipantParams) (DialTexmlConferenceParticipantRes, error)
	// DisplayProfile invokes DisplayProfile operation.
	//
	// Display the Verified Calls Display Profile.
	//
	// GET /verified_calls_display_profiles/{id}
	DisplayProfile(ctx context.Context, params DisplayProfileParams) (DisplayProfileRes, error)
	// EnablePhoneNumberEmergency invokes EnablePhoneNumberEmergency operation.
	//
	// Enable emergency for a phone number.
	//
	// POST /phone_numbers/{id}/actions/enable_emergency
	EnablePhoneNumberEmergency(ctx context.Context, request *PhoneNumberEnableEmergencyRequest, params EnablePhoneNumberEmergencyParams) (EnablePhoneNumberEmergencyRes, error)
	// EnqueueCall invokes EnqueueCall operation.
	//
	// Put the call in a queue.
	//
	// POST /calls/{call_control_id}/actions/enqueue
	EnqueueCall(ctx context.Context, request *EnqueueRequest, params EnqueueCallParams) (EnqueueCallRes, error)
	// ExtendNumberReservationExpiryTime invokes ExtendNumberReservationExpiryTime operation.
	//
	// Extends reservation expiry time on all phone numbers.
	//
	// POST /number_reservations/{number_reservation_id}/actions/extend
	ExtendNumberReservationExpiryTime(ctx context.Context, params ExtendNumberReservationExpiryTimeParams) (ExtendNumberReservationExpiryTimeRes, error)
	// FetchTeXMLCallRecordings invokes FetchTeXMLCallRecordings operation.
	//
	// Returns recordings for a call identified by call_sid.
	//
	// GET /texml/Accounts/{account_sid}/Calls/{call_sid}/Recordings.json
	FetchTeXMLCallRecordings(ctx context.Context, params FetchTeXMLCallRecordingsParams) (FetchTeXMLCallRecordingsRes, error)
	// FetchTeXMLConferenceRecordings invokes FetchTeXMLConferenceRecordings operation.
	//
	// Returns recordings for a conference identified by conference_sid.
	//
	// GET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Recordings.json
	FetchTeXMLConferenceRecordings(ctx context.Context, params FetchTeXMLConferenceRecordingsParams) (FetchTeXMLConferenceRecordingsRes, error)
	// FindPortoutComments invokes FindPortoutComments operation.
	//
	// Returns a list of comments for a portout request.
	//
	// GET /portouts/{id}/comments
	FindPortoutComments(ctx context.Context, params FindPortoutCommentsParams) (FindPortoutCommentsRes, error)
	// FindPortoutRequest invokes FindPortoutRequest operation.
	//
	// Returns the portout request based on the ID provided.
	//
	// GET /portouts/{id}
	FindPortoutRequest(ctx context.Context, params FindPortoutRequestParams) (FindPortoutRequestRes, error)
	// FindTelephonyCredentials invokes FindTelephonyCredentials operation.
	//
	// List all On-demand Credentials.
	//
	// GET /telephony_credentials
	FindTelephonyCredentials(ctx context.Context, params FindTelephonyCredentialsParams) (FindTelephonyCredentialsRes, error)
	// FindTexmlApplications invokes FindTexmlApplications operation.
	//
	// Returns a list of your TeXML Applications.
	//
	// GET /texml_applications
	FindTexmlApplications(ctx context.Context, params FindTexmlApplicationsParams) (FindTexmlApplicationsRes, error)
	// GatherCall invokes GatherCall operation.
	//
	// Gather DTMF signals to build interactive menus.
	// You can pass a list of valid digits. The `Answer` command must be issued before the `gather`
	// command.
	// **Expected Webhooks:**
	// - `call.dtmf.received` (you may receive many of these webhooks)
	// - `call.gather.ended`.
	//
	// POST /calls/{call_control_id}/actions/gather
	GatherCall(ctx context.Context, request *GatherRequest, params GatherCallParams) (GatherCallRes, error)
	// GatherUsingAudio invokes GatherUsingAudio operation.
	//
	// Play an audio file on the call until the required DTMF signals are gathered to build interactive
	// menus.
	// You can pass a list of valid digits along with an 'invalid_audio_url', which will be played back
	// at the beginning of each prompt. Playback will be interrupted when a DTMF signal is received. The
	// `Answer command must be issued before the `gather_using_audio` command.
	// **Expected Webhooks:**
	// - `call.playback.started`
	// - `call.playback.ended`
	// - `call.dtmf.received` (you may receive many of these webhooks)
	// - `call.gather.ended`.
	//
	// POST /calls/{call_control_id}/actions/gather_using_audio
	GatherUsingAudio(ctx context.Context, request *GatherUsingAudioRequest, params GatherUsingAudioParams) (GatherUsingAudioRes, error)
	// GatherUsingSpeak invokes GatherUsingSpeak operation.
	//
	// Convert text to speech and play it on the call until the required DTMF signals are gathered to
	// build interactive menus.
	// You can pass a list of valid digits along with an 'invalid_payload', which will be played back at
	// the beginning of each prompt. Speech will be interrupted when a DTMF signal is received. The
	// `Answer` command must be issued before the `gather_using_speak` command.
	// **Expected Webhooks:**
	// - `call.dtmf.received` (you may receive many of these webhooks)
	// - `call.gather.ended`.
	//
	// POST /calls/{call_control_id}/actions/gather_using_speak
	GatherUsingSpeak(ctx context.Context, request *GatherUsingSpeakRequest, params GatherUsingSpeakParams) (GatherUsingSpeakRes, error)
	// GetCsvDownload invokes GetCsvDownload operation.
	//
	// Retrieve a CSV download.
	//
	// GET /phone_numbers/csv_downloads/{id}
	GetCsvDownload(ctx context.Context, params GetCsvDownloadParams) (GetCsvDownloadRes, error)
	// GetCustomStorageCredentials invokes GetCustomStorageCredentials operation.
	//
	// Returns the information about custom storage credentials.
	//
	// GET /custom_storage_credentials/{connection_id}
	GetCustomStorageCredentials(ctx context.Context, params GetCustomStorageCredentialsParams) (GetCustomStorageCredentialsRes, error)
	// GetDefaultGateway invokes GetDefaultGateway operation.
	//
	// Get Default Gateway status.
	//
	// GET /networks/{id}/default_gateway
	GetDefaultGateway(ctx context.Context, params GetDefaultGatewayParams) (GetDefaultGatewayRes, error)
	// GetExternalConnectionLogMessage invokes GetExternalConnectionLogMessage operation.
	//
	// Retrieve a log message for an external connection associated with your account.
	//
	// GET /external_connections/log_messages/{id}
	GetExternalConnectionLogMessage(ctx context.Context, params GetExternalConnectionLogMessageParams) (GetExternalConnectionLogMessageRes, error)
	// GetExternalConnectionPhoneNumber invokes GetExternalConnectionPhoneNumber operation.
	//
	// Return the details of a phone number associated with the given external connection.
	//
	// GET /external_connections/{id}/phone_numbers/{phone_number_id}
	GetExternalConnectionPhoneNumber(ctx context.Context, params GetExternalConnectionPhoneNumberParams) (GetExternalConnectionPhoneNumberRes, error)
	// GetLoaConfiguration invokes GetLoaConfiguration operation.
	//
	// Retrieve a specific LOA configuration.
	//
	// GET /porting/loa_configurations/{id}
	GetLoaConfiguration(ctx context.Context, params GetLoaConfigurationParams) (GetLoaConfigurationRes, error)
	// GetMessage invokes GetMessage operation.
	//
	// Note: This API endpoint can only retrieve messages that are no older than 10 days since their
	// creation. If you require messages older than this, please generate an [MDR report.
	// ](https://developers.telnyx.com/docs/api/v1/reports/MDR-Reports).
	//
	// GET /messages/{id}
	GetMessage(ctx context.Context, params GetMessageParams) (GetMessageRes, error)
	// GetMessagingHostedNumberOrder invokes GetMessagingHostedNumberOrder operation.
	//
	// Retrieve a messaging hosted number order.
	//
	// GET /messaging_hosted_number_orders/{id}
	GetMessagingHostedNumberOrder(ctx context.Context, params GetMessagingHostedNumberOrderParams) (GetMessagingHostedNumberOrderRes, error)
	// GetMobileNetworkOperators invokes GetMobileNetworkOperators operation.
	//
	// Telnyx has a set of GSM mobile operators partners that are available through our mobile network
	// roaming. This resource is entirely managed by Telnyx and may change over time. That means that
	// this resource won't allow any write operations for it. Still, it's available so it can be used as
	// a support resource that can be related to other resources or become a configuration option.
	//
	// GET /mobile_network_operators
	GetMobileNetworkOperators(ctx context.Context, params GetMobileNetworkOperatorsParams) (GetMobileNetworkOperatorsRes, error)
	// GetNetwork invokes GetNetwork operation.
	//
	// Retrieve a Network.
	//
	// GET /networks/{id}
	GetNetwork(ctx context.Context, params GetNetworkParams) (GetNetworkRes, error)
	// GetNotificationChannel invokes GetNotificationChannel operation.
	//
	// Get a notification channel.
	//
	// GET /notification_channels/{id}
	GetNotificationChannel(ctx context.Context, params GetNotificationChannelParams) (GetNotificationChannelRes, error)
	// GetNumberOrderPhoneNumber invokes GetNumberOrderPhoneNumber operation.
	//
	// Get an existing number order phone number.
	//
	// GET /number_order_phone_numbers/{number_order_phone_number_id}
	GetNumberOrderPhoneNumber(ctx context.Context, params GetNumberOrderPhoneNumberParams) (GetNumberOrderPhoneNumberRes, error)
	// GetOtaUpdate invokes GetOtaUpdate operation.
	//
	// This API returns the details of an Over the Air (OTA) update.
	//
	// GET /ota_updates/{id}
	GetOtaUpdate(ctx context.Context, params GetOtaUpdateParams) (GetOtaUpdateRes, error)
	// GetOutboundVoiceProfile invokes GetOutboundVoiceProfile operation.
	//
	// Retrieves the details of an existing outbound voice profile.
	//
	// GET /outbound_voice_profiles/{id}
	GetOutboundVoiceProfile(ctx context.Context, params GetOutboundVoiceProfileParams) (GetOutboundVoiceProfileRes, error)
	// GetPhoneNumberMessagingSettings invokes GetPhoneNumberMessagingSettings operation.
	//
	// Retrieve a phone number with messaging settings.
	//
	// GET /phone_numbers/{id}/messaging
	GetPhoneNumberMessagingSettings(ctx context.Context, params GetPhoneNumberMessagingSettingsParams) (GetPhoneNumberMessagingSettingsRes, error)
	// GetPhoneNumberVoiceSettings invokes GetPhoneNumberVoiceSettings operation.
	//
	// Retrieve a phone number with voice settings.
	//
	// GET /phone_numbers/{id}/voice
	GetPhoneNumberVoiceSettings(ctx context.Context, params GetPhoneNumberVoiceSettingsParams) (GetPhoneNumberVoiceSettingsRes, error)
	// GetPhoneNumbers invokes GetPhoneNumbers operation.
	//
	// Retrieve the assigned phone numbers in a channel zone. Phone numbers assigned to a channel zone
	// can receive concurrent calls up to the quantity reserved in that channel zone. Additional
	// concurrent calls are rejected with a busy signal.
	//
	// GET /channel_zones/{channel_zone_id}/channel_zone_phone_numbers
	GetPhoneNumbers(ctx context.Context, params GetPhoneNumbersParams) (*GetGcbPhoneNumbersRequestResponse, error)
	// GetPortRequestSupportingDocuments invokes GetPortRequestSupportingDocuments operation.
	//
	// List every supporting documents for a portout request.
	//
	// GET /portouts/{id}/supporting_documents
	GetPortRequestSupportingDocuments(ctx context.Context, params GetPortRequestSupportingDocumentsParams) (GetPortRequestSupportingDocumentsRes, error)
	// GetPortingOrder invokes GetPortingOrder operation.
	//
	// Retrieves the details of an existing porting order.
	//
	// GET /porting_orders/{id}
	GetPortingOrder(ctx context.Context, params GetPortingOrderParams) (GetPortingOrderRes, error)
	// GetPortingOrderLoaTemplate invokes GetPortingOrderLoaTemplate operation.
	//
	// Download a porting order loa template.
	//
	// GET /porting_orders/{id}/loa_template
	GetPortingOrderLoaTemplate(ctx context.Context, params GetPortingOrderLoaTemplateParams) (GetPortingOrderLoaTemplateRes, error)
	// GetPortingOrderSubRequest invokes GetPortingOrderSubRequest operation.
	//
	// Retrieve the associated V1 sub_request_id and port_request_id.
	//
	// GET /porting_orders/{id}/sub_request
	GetPortingOrderSubRequest(ctx context.Context, params GetPortingOrderSubRequestParams) (GetPortingOrderSubRequestRes, error)
	// GetPortingOrdersActivationJob invokes GetPortingOrdersActivationJob operation.
	//
	// Returns a porting activation job.
	//
	// GET /porting_orders/{id}/activation_jobs/{activationJobId}
	GetPortingOrdersActivationJob(ctx context.Context, params GetPortingOrdersActivationJobParams) (GetPortingOrdersActivationJobRes, error)
	// GetPortingReport invokes GetPortingReport operation.
	//
	// Retrieve a specific report generated.
	//
	// GET /porting/reports/{id}
	GetPortingReport(ctx context.Context, params GetPortingReportParams) (GetPortingReportRes, error)
	// GetPrivateWirelessGateway invokes GetPrivateWirelessGateway operation.
	//
	// Retrieve information about a Private Wireless Gateway.
	//
	// GET /private_wireless_gateways/{id}
	GetPrivateWirelessGateway(ctx context.Context, params GetPrivateWirelessGatewayParams) (GetPrivateWirelessGatewayRes, error)
	// GetPrivateWirelessGateways invokes GetPrivateWirelessGateways operation.
	//
	// Get all Private Wireless Gateways belonging to the user.
	//
	// GET /private_wireless_gateways
	GetPrivateWirelessGateways(ctx context.Context, params GetPrivateWirelessGatewaysParams) (GetPrivateWirelessGatewaysRes, error)
	// GetRecording invokes GetRecording operation.
	//
	// Retrieves the details of an existing call recording.
	//
	// GET /recordings/{recording_id}
	GetRecording(ctx context.Context, params GetRecordingParams) (GetRecordingRes, error)
	// GetRecordingTranscription invokes getRecordingTranscription operation.
	//
	// Retrieves the details of an existing recording transcription.
	//
	// GET /recording_transcriptions/{recording_transcription_id}
	GetRecordingTranscription(ctx context.Context, params GetRecordingTranscriptionParams) (GetRecordingTranscriptionRes, error)
	// GetRecordingTranscriptions invokes getRecordingTranscriptions operation.
	//
	// Returns a list of your recording transcriptions.
	//
	// GET /recording_transcriptions
	GetRecordingTranscriptions(ctx context.Context) (GetRecordingTranscriptionsRes, error)
	// GetRecordings invokes GetRecordings operation.
	//
	// Returns a list of your call recordings.
	//
	// GET /recordings
	GetRecordings(ctx context.Context, params GetRecordingsParams) (GetRecordingsRes, error)
	// GetTeXMLCallRecording invokes GetTeXMLCallRecording operation.
	//
	// Returns recording resource identified by recording id.
	//
	// GET /texml/Accounts/{account_sid}/Recordings/{recording_sid}.json
	GetTeXMLCallRecording(ctx context.Context, params GetTeXMLCallRecordingParams) (GetTeXMLCallRecordingRes, error)
	// GetTeXMLCallRecordings invokes GetTeXMLCallRecordings operation.
	//
	// Returns multiple recording resources for an account.
	//
	// GET /texml/Accounts/{account_sid}/Recordings.json
	GetTeXMLCallRecordings(ctx context.Context, params GetTeXMLCallRecordingsParams) (GetTeXMLCallRecordingsRes, error)
	// GetTeXMLRecordingTranscription invokes GetTeXMLRecordingTranscription operation.
	//
	// Returns the recording transcription resource identified by its ID.
	//
	// GET /texml/Accounts/{account_sid}/Transcriptions/{recording_transcription_sid}.json
	GetTeXMLRecordingTranscription(ctx context.Context, params GetTeXMLRecordingTranscriptionParams) (GetTeXMLRecordingTranscriptionRes, error)
	// GetTeXMLRecordingTranscriptions invokes GetTeXMLRecordingTranscriptions operation.
	//
	// Returns multiple recording transcription resources for an account.
	//
	// GET /texml/Accounts/{account_sid}/Transcriptions.json
	GetTeXMLRecordingTranscriptions(ctx context.Context, params GetTeXMLRecordingTranscriptionsParams) (GetTeXMLRecordingTranscriptionsRes, error)
	// GetTelephonyCredential invokes GetTelephonyCredential operation.
	//
	// Get the details of an existing On-demand Credential.
	//
	// GET /telephony_credentials/{id}
	GetTelephonyCredential(ctx context.Context, params GetTelephonyCredentialParams) (GetTelephonyCredentialRes, error)
	// GetTexmlApplication invokes GetTexmlApplication operation.
	//
	// Retrieves the details of an existing TeXML Application.
	//
	// GET /texml_applications/{id}
	GetTexmlApplication(ctx context.Context, params GetTexmlApplicationParams) (GetTexmlApplicationRes, error)
	// GetTexmlCall invokes GetTexmlCall operation.
	//
	// Returns an individual call identified by its CallSid. This endpoint is eventually consistent.
	//
	// GET /texml/Accounts/{account_sid}/Calls/{call_sid}
	GetTexmlCall(ctx context.Context, params GetTexmlCallParams) (GetTexmlCallRes, error)
	// GetTexmlCalls invokes GetTexmlCalls operation.
	//
	// Returns multiple call resouces for an account. This endpoint is eventually consistent.
	//
	// GET /texml/Accounts/{account_sid}/Calls
	GetTexmlCalls(ctx context.Context, params GetTexmlCallsParams) (GetTexmlCallsRes, error)
	// GetTexmlConference invokes GetTexmlConference operation.
	//
	// Returns a conference resource.
	//
	// GET /texml/Accounts/{account_sid}/Conferences/{conference_sid}
	GetTexmlConference(ctx context.Context, params GetTexmlConferenceParams) (GetTexmlConferenceRes, error)
	// GetTexmlConferenceParticipant invokes GetTexmlConferenceParticipant operation.
	//
	// Gets conference participant resource.
	//
	// GET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants/{call_sid}
	GetTexmlConferenceParticipant(ctx context.Context, params GetTexmlConferenceParticipantParams) (GetTexmlConferenceParticipantRes, error)
	// GetTexmlConferenceParticipants invokes GetTexmlConferenceParticipants operation.
	//
	// Lists conference participants.
	//
	// GET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants
	GetTexmlConferenceParticipants(ctx context.Context, params GetTexmlConferenceParticipantsParams) (GetTexmlConferenceParticipantsRes, error)
	// GetTexmlConferenceRecordings invokes GetTexmlConferenceRecordings operation.
	//
	// Lists conference recordings.
	//
	// GET /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Recordings
	GetTexmlConferenceRecordings(ctx context.Context, params GetTexmlConferenceRecordingsParams) (GetTexmlConferenceRecordingsRes, error)
	// GetTexmlConferences invokes GetTexmlConferences operation.
	//
	// Lists conference resources.
	//
	// GET /texml/Accounts/{account_sid}/Conferences
	GetTexmlConferences(ctx context.Context, params GetTexmlConferencesParams) (GetTexmlConferencesRes, error)
	// GetUserBalance invokes GetUserBalance operation.
	//
	// Get user balance details.
	//
	// GET /balance
	GetUserBalance(ctx context.Context) (GetUserBalanceRes, error)
	// GetVerifiedNumber invokes GetVerifiedNumber operation.
	//
	// Retrieve a verified number.
	//
	// GET /verified_numbers/{phone_number}
	GetVerifiedNumber(ctx context.Context, params GetVerifiedNumberParams) (GetVerifiedNumberRes, error)
	// GetVerifyProfile invokes GetVerifyProfile operation.
	//
	// Gets a single Verify profile.
	//
	// GET /verify_profiles/{verify_profile_id}
	GetVerifyProfile(ctx context.Context, params GetVerifyProfileParams) (GetVerifyProfileRes, error)
	// GetWebhookDeliveries invokes GetWebhookDeliveries operation.
	//
	// Lists webhook_deliveries for the authenticated user.
	//
	// GET /webhook_deliveries
	GetWebhookDeliveries(ctx context.Context, params GetWebhookDeliveriesParams) (GetWebhookDeliveriesRes, error)
	// GetWebhookDelivery invokes GetWebhookDelivery operation.
	//
	// Provides webhook_delivery debug data, such as timestamps, delivery status and attempts.
	//
	// GET /webhook_deliveries/{id}
	GetWebhookDelivery(ctx context.Context, params GetWebhookDeliveryParams) (GetWebhookDeliveryRes, error)
	// HangupCall invokes HangupCall operation.
	//
	// Hang up the call.
	// **Expected Webhooks:**
	// - `call.hangup`
	// - `call.recording.saved`.
	//
	// POST /calls/{call_control_id}/actions/hangup
	HangupCall(ctx context.Context, request *HangupRequest, params HangupCallParams) (HangupCallRes, error)
	// InitiateTexmlCallByAccount invokes InitiateTexmlCallByAccount operation.
	//
	// Initiate an outbound TeXML call. Telnyx will request TeXML from the XML Request URL configured for
	// the connection in the Mission Control Portal.
	//
	// POST /texml/Accounts/{account_sid}/Calls
	InitiateTexmlCallByAccount(ctx context.Context, request *InitiateCallRequest, params InitiateTexmlCallByAccountParams) (*InitiateCallResponse, error)
	// InitiateTexmlCallByApplication invokes InitiateTexmlCallByApplication operation.
	//
	// Initiate an outbound TeXML call. Telnyx will request TeXML from the XML Request URL configured for
	// the connection in the Mission Control Portal.
	//
	// POST /texml/calls/{application_id}
	InitiateTexmlCallByApplication(ctx context.Context, request *InitiateCallRequest, params InitiateTexmlCallByApplicationParams) (*InitiateCallResponse, error)
	// LeaveQueue invokes LeaveQueue operation.
	//
	// Removes the call from a queue.
	//
	// POST /calls/{call_control_id}/actions/leave_queue
	LeaveQueue(ctx context.Context, request *LeaveQueueRequest, params LeaveQueueParams) (LeaveQueueRes, error)
	// ListAdditionalDocuments invokes ListAdditionalDocuments operation.
	//
	// Returns a list of additional documents for a porting order.
	//
	// GET /porting_orders/{id}/additional_documents
	ListAdditionalDocuments(ctx context.Context, params ListAdditionalDocumentsParams) (ListAdditionalDocumentsRes, error)
	// ListAllowedFocWindows invokes ListAllowedFocWindows operation.
	//
	// Returns a list of allowed FOC dates for a porting order.
	//
	// GET /porting_orders/{id}/allowed_foc_windows
	ListAllowedFocWindows(ctx context.Context, params ListAllowedFocWindowsParams) (ListAllowedFocWindowsRes, error)
	// ListAvailablePhoneNumberBlocks invokes ListAvailablePhoneNumberBlocks operation.
	//
	// List available phone number blocks.
	//
	// GET /available_phone_number_blocks
	ListAvailablePhoneNumberBlocks(ctx context.Context, params ListAvailablePhoneNumberBlocksParams) (ListAvailablePhoneNumberBlocksRes, error)
	// ListAvailablePhoneNumbers invokes ListAvailablePhoneNumbers operation.
	//
	// List available phone numbers.
	//
	// GET /available_phone_numbers
	ListAvailablePhoneNumbers(ctx context.Context, params ListAvailablePhoneNumbersParams) (ListAvailablePhoneNumbersRes, error)
	// ListCallControlApplications invokes ListCallControlApplications operation.
	//
	// Return a list of call control applications.
	//
	// GET /call_control_applications
	ListCallControlApplications(ctx context.Context, params ListCallControlApplicationsParams) (ListCallControlApplicationsRes, error)
	// ListComments invokes ListComments operation.
	//
	// Retrieve all comments.
	//
	// GET /comments
	ListComments(ctx context.Context, params ListCommentsParams) (ListCommentsRes, error)
	// ListConnectionActiveCalls invokes ListConnectionActiveCalls operation.
	//
	// Lists all active calls for given connection. Acceptable connections are either SIP connections
	// with webhook_url or xml_request_url, call control or texml. Returned results are cursor paginated.
	//
	// GET /connections/{connection_id}/active_calls
	ListConnectionActiveCalls(ctx context.Context, params ListConnectionActiveCallsParams) (ListConnectionActiveCallsRes, error)
	// ListCsvDownloads invokes ListCsvDownloads operation.
	//
	// List CSV downloads.
	//
	// GET /phone_numbers/csv_downloads
	ListCsvDownloads(ctx context.Context, params ListCsvDownloadsParams) (ListCsvDownloadsRes, error)
	// ListExceptionTypes invokes ListExceptionTypes operation.
	//
	// Returns a list of all possible exception types for a porting order.
	//
	// GET /porting_orders/exception_types
	ListExceptionTypes(ctx context.Context) (ListExceptionTypesRes, error)
	// ListExternalConnectionLogMessages invokes ListExternalConnectionLogMessages operation.
	//
	// Retrieve a list of log messages for all external connections associated with your account.
	//
	// GET /external_connections/log_messages
	ListExternalConnectionLogMessages(ctx context.Context, params ListExternalConnectionLogMessagesParams) (ListExternalConnectionLogMessagesRes, error)
	// ListExternalConnectionPhoneNumbers invokes ListExternalConnectionPhoneNumbers operation.
	//
	// Returns a list of all active phone numbers associated with the given external connection.
	//
	// GET /external_connections/{id}/phone_numbers
	ListExternalConnectionPhoneNumbers(ctx context.Context, params ListExternalConnectionPhoneNumbersParams) (ListExternalConnectionPhoneNumbersRes, error)
	// ListInboundChannels invokes ListInboundChannels operation.
	//
	// Returns the inbound channels for your account. Inbound channels allows you to use Channel Billing
	// for calls to your Telnyx phone numbers. Please check the Telnyx Support Articles section for full
	// information and examples of how to utilize Channel Billing.
	//
	// GET /phone_numbers/inbound_channels
	ListInboundChannels(ctx context.Context) (ListInboundChannelsRes, error)
	// ListLoaConfigurations invokes ListLoaConfigurations operation.
	//
	// List the LOA configurations.
	//
	// GET /porting/loa_configurations
	ListLoaConfigurations(ctx context.Context, params ListLoaConfigurationsParams) (ListLoaConfigurationsRes, error)
	// ListMessagingHostedNumberOrders invokes ListMessagingHostedNumberOrders operation.
	//
	// List messaging hosted number orders.
	//
	// GET /messaging_hosted_number_orders
	ListMessagingHostedNumberOrders(ctx context.Context, params ListMessagingHostedNumberOrdersParams) (ListMessagingHostedNumberOrdersRes, error)
	// ListMessagingUrlDomains invokes ListMessagingUrlDomains operation.
	//
	// List messaging URL domains.
	//
	// GET /messaging_url_domains
	ListMessagingUrlDomains(ctx context.Context, params ListMessagingUrlDomainsParams) (ListMessagingUrlDomainsRes, error)
	// ListNetworkInterfaces invokes ListNetworkInterfaces operation.
	//
	// List all Interfaces for a Network.
	//
	// GET /networks/{id}/network_interfaces
	ListNetworkInterfaces(ctx context.Context, params ListNetworkInterfacesParams) (ListNetworkInterfacesRes, error)
	// ListNetworks invokes ListNetworks operation.
	//
	// List all Networks.
	//
	// GET /networks
	ListNetworks(ctx context.Context, params ListNetworksParams) (ListNetworksRes, error)
	// ListNotificationChannels invokes ListNotificationChannels operation.
	//
	// List notification channels.
	//
	// GET /notification_channels
	ListNotificationChannels(ctx context.Context, params ListNotificationChannelsParams) (ListNotificationChannelsRes, error)
	// ListNumberOrderDocuments invokes ListNumberOrderDocuments operation.
	//
	// Gets a paginated list of number order documents.
	//
	// GET /number_order_documents
	ListNumberOrderDocuments(ctx context.Context, params ListNumberOrderDocumentsParams) (ListNumberOrderDocumentsRes, error)
	// ListNumberReservations invokes ListNumberReservations operation.
	//
	// Gets a paginated list of phone number reservations.
	//
	// GET /number_reservations
	ListNumberReservations(ctx context.Context, params ListNumberReservationsParams) (ListNumberReservationsRes, error)
	// ListOtaUpdates invokes ListOtaUpdates operation.
	//
	// List OTA updates.
	//
	// GET /ota_updates
	ListOtaUpdates(ctx context.Context, params ListOtaUpdatesParams) (ListOtaUpdatesRes, error)
	// ListOutboundVoiceProfiles invokes ListOutboundVoiceProfiles operation.
	//
	// Get all outbound voice profiles belonging to the user that match the given filters.
	//
	// GET /outbound_voice_profiles
	ListOutboundVoiceProfiles(ctx context.Context, params ListOutboundVoiceProfilesParams) (ListOutboundVoiceProfilesRes, error)
	// ListPhoneNumberConfigurations invokes ListPhoneNumberConfigurations operation.
	//
	// Returns a list of phone number configurations paginated.
	//
	// GET /porting_orders/phone_number_configurations
	ListPhoneNumberConfigurations(ctx context.Context, params ListPhoneNumberConfigurationsParams) (ListPhoneNumberConfigurationsRes, error)
	// ListPhoneNumbers invokes ListPhoneNumbers operation.
	//
	// List phone numbers.
	//
	// GET /phone_numbers
	ListPhoneNumbers(ctx context.Context, params ListPhoneNumbersParams) (ListPhoneNumbersRes, error)
	// ListPhoneNumbersJobs invokes ListPhoneNumbersJobs operation.
	//
	// Lists the phone numbers jobs.
	//
	// GET /phone_numbers/jobs
	ListPhoneNumbersJobs(ctx context.Context, params ListPhoneNumbersJobsParams) (ListPhoneNumbersJobsRes, error)
	// ListPhoneNumbersWithMessagingSettings invokes ListPhoneNumbersWithMessagingSettings operation.
	//
	// List phone numbers with messaging settings.
	//
	// GET /phone_numbers/messaging
	ListPhoneNumbersWithMessagingSettings(ctx context.Context, params ListPhoneNumbersWithMessagingSettingsParams) (ListPhoneNumbersWithMessagingSettingsRes, error)
	// ListPhoneNumbersWithVoiceSettings invokes ListPhoneNumbersWithVoiceSettings operation.
	//
	// List phone numbers with voice settings.
	//
	// GET /phone_numbers/voice
	ListPhoneNumbersWithVoiceSettings(ctx context.Context, params ListPhoneNumbersWithVoiceSettingsParams) (ListPhoneNumbersWithVoiceSettingsRes, error)
	// ListPortingOrderActivationJobs invokes ListPortingOrderActivationJobs operation.
	//
	// Returns a list of your porting activation jobs.
	//
	// GET /porting_orders/{id}/activation_jobs
	ListPortingOrderActivationJobs(ctx context.Context, params ListPortingOrderActivationJobsParams) (ListPortingOrderActivationJobsRes, error)
	// ListPortingOrderComments invokes ListPortingOrderComments operation.
	//
	// Returns a list of all comments of a porting order.
	//
	// GET /porting_orders/{id}/comments
	ListPortingOrderComments(ctx context.Context, params ListPortingOrderCommentsParams) (ListPortingOrderCommentsRes, error)
	// ListPortingOrderRequirements invokes ListPortingOrderRequirements operation.
	//
	// Returns a list of all requirements based on country/number type for this porting order.
	//
	// GET /porting_orders/{id}/requirements
	ListPortingOrderRequirements(ctx context.Context, params ListPortingOrderRequirementsParams) (ListPortingOrderRequirementsRes, error)
	// ListPortingOrders invokes ListPortingOrders operation.
	//
	// Returns a list of your porting order.
	//
	// GET /porting_orders
	ListPortingOrders(ctx context.Context, params ListPortingOrdersParams) (ListPortingOrdersRes, error)
	// ListPortingPhoneNumbers invokes ListPortingPhoneNumbers operation.
	//
	// Returns a list of your porting phone numbers.
	//
	// GET /porting_phone_numbers
	ListPortingPhoneNumbers(ctx context.Context, params ListPortingPhoneNumbersParams) (ListPortingPhoneNumbersRes, error)
	// ListPortingReports invokes ListPortingReports operation.
	//
	// List the reports generated about porting operations.
	//
	// GET /porting/reports
	ListPortingReports(ctx context.Context, params ListPortingReportsParams) (ListPortingReportsRes, error)
	// ListPortoutRequest invokes ListPortoutRequest operation.
	//
	// Returns the portout requests according to filters.
	//
	// GET /portouts
	ListPortoutRequest(ctx context.Context, params ListPortoutRequestParams) (ListPortoutRequestRes, error)
	// ListProfileMessageTemplates invokes ListProfileMessageTemplates operation.
	//
	// List all Verify profile message templates.
	//
	// GET /verify_profiles/templates
	ListProfileMessageTemplates(ctx context.Context) (*ListVerifyProfileMessageTemplateResponse, error)
	// ListProfilePhoneNumbers invokes ListProfilePhoneNumbers operation.
	//
	// List phone numbers associated with a messaging profile.
	//
	// GET /messaging_profiles/{id}/phone_numbers
	ListProfilePhoneNumbers(ctx context.Context, params ListProfilePhoneNumbersParams) (ListProfilePhoneNumbersRes, error)
	// ListProfiles invokes ListProfiles operation.
	//
	// Gets a paginated list of Verify profiles.
	//
	// GET /verify_profiles
	ListProfiles(ctx context.Context, params ListProfilesParams) (ListProfilesRes, error)
	// ListQueueCalls invokes ListQueueCalls operation.
	//
	// Retrieve the list of calls in an existing queue.
	//
	// GET /queues/{queue_name}/calls
	ListQueueCalls(ctx context.Context, params ListQueueCallsParams) (ListQueueCallsRes, error)
	// ListRegulatoryRequirements invokes ListRegulatoryRequirements operation.
	//
	// Retrieve regulartory requirements.
	//
	// GET /phone_numbers_regulatory_requirements
	ListRegulatoryRequirements(ctx context.Context, params ListRegulatoryRequirementsParams) (ListRegulatoryRequirementsRes, error)
	// ListRequirementTypes invokes ListRequirementTypes operation.
	//
	// List all requirement types ordered by created_at descending.
	//
	// GET /requirement_types
	ListRequirementTypes(ctx context.Context, params ListRequirementTypesParams) (ListRequirementTypesRes, error)
	// ListRequirements invokes ListRequirements operation.
	//
	// List all requirements with filtering, sorting, and pagination.
	//
	// GET /requirements
	ListRequirements(ctx context.Context, params ListRequirementsParams) (ListRequirementsRes, error)
	// ListRoomRecordings invokes ListRoomRecordings operation.
	//
	// View a list of room recordings.
	//
	// GET /room_recordings
	ListRoomRecordings(ctx context.Context, params ListRoomRecordingsParams) (*ListRoomRecordingsResponse, error)
	// ListTags invokes ListTags operation.
	//
	// Returns a list of tags used on Credentials.
	//
	// GET /telephony_credentials/tags
	ListTags(ctx context.Context, params ListTagsParams) (ListTagsRes, error)
	// ListVerificationCodes invokes ListVerificationCodes operation.
	//
	// Returns a list of verification codes for a porting order.
	//
	// GET /porting_orders/{id}/verification_codes
	ListVerificationCodes(ctx context.Context, params ListVerificationCodesParams) (ListVerificationCodesRes, error)
	// ListVerifications invokes ListVerifications operation.
	//
	// List verifications by phone number.
	//
	// GET /verifications/by_phone_number/{phone_number}
	ListVerifications(ctx context.Context, params ListVerificationsParams) (ListVerificationsRes, error)
	// ListVerifiedCallDisplayProfiles invokes ListVerifiedCallDisplayProfiles operation.
	//
	// Lists the Verified Calls Display Profiles owned by the current user/organization.
	//
	// GET /verified_calls_display_profiles
	ListVerifiedCallDisplayProfiles(ctx context.Context, params ListVerifiedCallDisplayProfilesParams) (ListVerifiedCallDisplayProfilesRes, error)
	// ListVerifiedNumbers invokes ListVerifiedNumbers operation.
	//
	// Gets a paginated list of Verified Numbers.
	//
	// GET /verified_numbers
	ListVerifiedNumbers(ctx context.Context, params ListVerifiedNumbersParams) (ListVerifiedNumbersRes, error)
	// LookupNumber invokes LookupNumber operation.
	//
	// Returns information about the provided phone number.
	//
	// GET /number_lookup/{phone_number}
	LookupNumber(ctx context.Context, params LookupNumberParams) (LookupNumberRes, error)
	// MarkCommentRead invokes MarkCommentRead operation.
	//
	// Mark a comment as read.
	//
	// PATCH /comments/{id}/read
	MarkCommentRead(ctx context.Context, params MarkCommentReadParams) (MarkCommentReadRes, error)
	// NoiseSuppressionStart invokes noiseSuppressionStart operation.
	//
	// Noise Suppression Start (BETA).
	//
	// POST /calls/{call_control_id}/actions/suppression_start
	NoiseSuppressionStart(ctx context.Context, request *NoiseSuppressionStart, params NoiseSuppressionStartParams) (NoiseSuppressionStartRes, error)
	// NoiseSuppressionStop invokes noiseSuppressionStop operation.
	//
	// Noise Suppression Stop (BETA).
	//
	// POST /calls/{call_control_id}/actions/suppression_stop
	NoiseSuppressionStop(ctx context.Context, request *NoiseSuppressionStop, params NoiseSuppressionStopParams) (NoiseSuppressionStopRes, error)
	// PauseCallRecording invokes PauseCallRecording operation.
	//
	// Pause recording the call. Recording can be resumed via Resume recording command.
	// **Expected Webhooks:**
	// There are no webhooks associated with this command.
	//
	// POST /calls/{call_control_id}/actions/record_pause
	PauseCallRecording(ctx context.Context, request *PauseRecordingRequest, params PauseCallRecordingParams) (PauseCallRecordingRes, error)
	// PerformCredentialAction invokes PerformCredentialAction operation.
	//
	// Perform activate or deactivate action on provided Credential. Activate action will change the
	// status to active, making it possible to connect calls with the credential. Deactivate action will
	// change the status to inactive, making it impossible to connect calls with the credential.
	//
	// POST /telephony_credentials/{id}/actions/{action}
	PerformCredentialAction(ctx context.Context, params PerformCredentialActionParams) (PerformCredentialActionRes, error)
	// PortingOrdersIDCommentsPost invokes POST /porting_orders/{id}/comments operation.
	//
	// Creates a new comment for a porting order.
	//
	// POST /porting_orders/{id}/comments
	PortingOrdersIDCommentsPost(ctx context.Context, request *CreatePortingOrderComment, params PortingOrdersIDCommentsPostParams) (PortingOrdersIDCommentsPostRes, error)
	// PostPortRequestComment invokes PostPortRequestComment operation.
	//
	// Creates a comment on a portout request.
	//
	// POST /portouts/{id}/comments
	PostPortRequestComment(ctx context.Context, request *PostPortRequestCommentReq, params PostPortRequestCommentParams) (PostPortRequestCommentRes, error)
	// PostPortRequestSupportingDocuments invokes PostPortRequestSupportingDocuments operation.
	//
	// Creates a list of supporting documents on a portout request.
	//
	// POST /portouts/{id}/supporting_documents
	PostPortRequestSupportingDocuments(ctx context.Context, request *PostPortRequestSupportingDocumentsReq, params PostPortRequestSupportingDocumentsParams) (PostPortRequestSupportingDocumentsRes, error)
	// PostPortabilityCheck invokes PostPortabilityCheck operation.
	//
	// Runs a portability check, returning the results immediately.
	//
	// POST /portability_checks
	PostPortabilityCheck(ctx context.Context, request *PostPortabilityCheckReq) (PostPortabilityCheckRes, error)
	// PreviewLoaConfiguration invokes PreviewLoaConfiguration operation.
	//
	// Preview a specific LOA configuration.
	//
	// GET /porting/loa_configurations/{id}/preview
	PreviewLoaConfiguration(ctx context.Context, params PreviewLoaConfigurationParams) (PreviewLoaConfigurationRes, error)
	// PreviewLoaConfigurationParams invokes PreviewLoaConfigurationParams operation.
	//
	// Preview the LOA template that would be generated without need to create LOA configuration.
	//
	// POST /porting/loa_configuration/preview
	PreviewLoaConfigurationParams(ctx context.Context, request *PreviewLoaConfigurationParamsReq) (PreviewLoaConfigurationParamsRes, error)
	// ReferCall invokes ReferCall operation.
	//
	// Initiate a SIP Refer on a Call Control call. You can initiate a SIP Refer at any point in the
	// duration of a call.
	// **Expected Webhooks:**
	// - `call.refer.started`
	// - `call.refer.completed`
	// - `call.refer.failed`.
	//
	// POST /calls/{call_control_id}/actions/refer
	ReferCall(ctx context.Context, request *ReferRequest, params ReferCallParams) (ReferCallRes, error)
	// RegisterCall invokes RegisterCall operation.
	//
	// Register the call before dialing to show your brand on callee's phone.
	//
	// POST /calls/register
	RegisterCall(ctx context.Context, request *RegisterCallRequest) (RegisterCallRes, error)
	// RejectCall invokes RejectCall operation.
	//
	// Reject an incoming call.
	// **Expected Webhooks:**
	// - `call.hangup`.
	//
	// POST /calls/{call_control_id}/actions/reject
	RejectCall(ctx context.Context, request *RejectRequest, params RejectCallParams) (RejectCallRes, error)
	// ResumeCallRecording invokes ResumeCallRecording operation.
	//
	// Resume recording the call.
	// **Expected Webhooks:**
	// There are no webhooks associated with this command.
	//
	// POST /calls/{call_control_id}/actions/record_resume
	ResumeCallRecording(ctx context.Context, request *ResumeRecordingRequest, params ResumeCallRecordingParams) (ResumeCallRecordingRes, error)
	// RetrieveCallControlApplication invokes RetrieveCallControlApplication operation.
	//
	// Retrieves the details of an existing call control application.
	//
	// GET /call_control_applications/{id}
	RetrieveCallControlApplication(ctx context.Context, params RetrieveCallControlApplicationParams) (RetrieveCallControlApplicationRes, error)
	// RetrieveCallFromQueue invokes RetrieveCallFromQueue operation.
	//
	// Retrieve an existing call from an existing queue.
	//
	// GET /queues/{queue_name}/calls/{call_control_id}
	RetrieveCallFromQueue(ctx context.Context, params RetrieveCallFromQueueParams) (RetrieveCallFromQueueRes, error)
	// RetrieveCallStatus invokes RetrieveCallStatus operation.
	//
	// Returns the status of a call (data is available 10 minutes after call ended).
	//
	// GET /calls/{call_control_id}
	RetrieveCallStatus(ctx context.Context, params RetrieveCallStatusParams) (RetrieveCallStatusRes, error)
	// RetrieveComment invokes RetrieveComment operation.
	//
	// Retrieve a comment.
	//
	// GET /comments/{id}
	RetrieveComment(ctx context.Context, params RetrieveCommentParams) (RetrieveCommentRes, error)
	// RetrieveDocumentRequirements invokes RetrieveDocumentRequirements operation.
	//
	// Retrieve a document requirement record.
	//
	// GET /requirements/{id}
	RetrieveDocumentRequirements(ctx context.Context, params RetrieveDocumentRequirementsParams) (RetrieveDocumentRequirementsRes, error)
	// RetrieveNumberOrderDocument invokes RetrieveNumberOrderDocument operation.
	//
	// Gets a single number order document.
	//
	// GET /number_order_documents/{number_order_document_id}
	RetrieveNumberOrderDocument(ctx context.Context, params RetrieveNumberOrderDocumentParams) (RetrieveNumberOrderDocumentRes, error)
	// RetrieveNumberReservation invokes RetrieveNumberReservation operation.
	//
	// Gets a single phone number reservation.
	//
	// GET /number_reservations/{number_reservation_id}
	RetrieveNumberReservation(ctx context.Context, params RetrieveNumberReservationParams) (RetrieveNumberReservationRes, error)
	// RetrieveOrderPhoneNumbers invokes RetrieveOrderPhoneNumbers operation.
	//
	// Get a list of phone numbers associated to orders.
	//
	// GET /number_order_phone_numbers
	RetrieveOrderPhoneNumbers(ctx context.Context) (RetrieveOrderPhoneNumbersRes, error)
	// RetrievePhoneNumber invokes RetrievePhoneNumber operation.
	//
	// Retrieve a phone number.
	//
	// GET /phone_numbers/{id}
	RetrievePhoneNumber(ctx context.Context, params RetrievePhoneNumberParams) (RetrievePhoneNumberRes, error)
	// RetrievePhoneNumbersJob invokes RetrievePhoneNumbersJob operation.
	//
	// Retrieve a phone numbers job.
	//
	// GET /phone_numbers/jobs/{id}
	RetrievePhoneNumbersJob(ctx context.Context, params RetrievePhoneNumbersJobParams) (RetrievePhoneNumbersJobRes, error)
	// RetrieveRequirementType invokes RetrieveRequirementType operation.
	//
	// Retrieve a requirement type by id.
	//
	// GET /requirement_types/{id}
	RetrieveRequirementType(ctx context.Context, params RetrieveRequirementTypeParams) (RetrieveRequirementTypeRes, error)
	// RetrieveVerification invokes RetrieveVerification operation.
	//
	// Retrieve verification.
	//
	// GET /verifications/{verification_id}
	RetrieveVerification(ctx context.Context, params RetrieveVerificationParams) (RetrieveVerificationRes, error)
	// SendDTMF invokes SendDTMF operation.
	//
	// Sends DTMF tones from this leg. DTMF tones will be heard by the other end of the call.
	// **Expected Webhooks:**
	// There are no webhooks associated with this command.
	//
	// POST /calls/{call_control_id}/actions/send_dtmf
	SendDTMF(ctx context.Context, request *SendDTMFRequest, params SendDTMFParams) (SendDTMFRes, error)
	// SendMessage invokes SendMessage operation.
	//
	// Send a message with a Phone Number, Alphanumeric Sender ID, Short Code or Number Pool.
	// This endpoint allows you to send a message with any messaging resource.
	// Current messaging resources include: long-code, short-code, number-pool, and
	// alphanumeric-sender-id.
	//
	// POST /messages
	SendMessage(ctx context.Context, request OptCreateMessageRequest) (SendMessageRes, error)
	// SendPortingVerificationCodes invokes SendPortingVerificationCodes operation.
	//
	// Send the verification code for all porting phone numbers.
	//
	// POST /porting_orders/{id}/verification_codes/send
	SendPortingVerificationCodes(ctx context.Context, request OptSendPortingVerificationCodesReq, params SendPortingVerificationCodesParams) (SendPortingVerificationCodesRes, error)
	// SharePortingOrder invokes SharePortingOrder operation.
	//
	// Creates a sharing token for a porting order. The token can be used to share the porting order with
	// non-Telnyx users.
	//
	// POST /porting_orders/{id}/actions/share
	SharePortingOrder(ctx context.Context, request *SharePortingOrderReq, params SharePortingOrderParams) (SharePortingOrderRes, error)
	// SlimListPhoneNumbers invokes SlimListPhoneNumbers operation.
	//
	// List phone numbers, This endpoint is a lighter version of the /phone_numbers endpoint having
	// higher performance and rate limit.
	//
	// GET /phone_numbers/slim
	SlimListPhoneNumbers(ctx context.Context, params SlimListPhoneNumbersParams) (SlimListPhoneNumbersRes, error)
	// SpeakCall invokes SpeakCall operation.
	//
	// Convert text to speech and play it back on the call. If multiple speak text commands are issued
	// consecutively, the audio files will be placed in a queue awaiting playback.
	// **Expected Webhooks:**
	// - `call.speak.started`
	// - `call.speak.ended`.
	//
	// POST /calls/{call_control_id}/actions/speak
	SpeakCall(ctx context.Context, request *SpeakRequest, params SpeakCallParams) (SpeakCallRes, error)
	// StartCallFork invokes StartCallFork operation.
	//
	// Call forking allows you to stream the media from a call to a specific target in realtime.
	// This stream can be used to enable realtime audio analysis to support a
	// variety of use cases, including fraud detection, or the creation of AI-generated audio responses.
	// Requests must specify either the `target` attribute or the `rx` and `tx` attributes.
	// **Expected Webhooks:**
	// - `call.fork.started`
	// - `call.fork.stopped`
	// **Simple Telnyx RTP Encapsulation Protocol (STREP)**
	// *Note: This header/encapsulation is not used when the `rx` and `tx`
	// parameters have been specified; it only applies when media is forked
	// using the `target` attribute.*
	// If the destination for forked media is specified using the "target"
	// attribute, the RTP will be encapsulated in an extra Telnyx protocol,
	// which adds a 24 byte header to the RTP payload in each packet. The STREP
	// header includes the Call Control `call_leg_id` for stream
	// identification, along with bits that represent the direction (inbound or
	// outbound) of the media. This 24-byte header sits between the UDP header
	// and the RTP header.
	// The STREP header makes it possible to fork RTP for multiple calls (or
	// two RTP streams for the same call) to the same IP:port, where the
	// streams can be demultiplexed by your application using the information
	// in the header. Of course, it's still possible to ignore this header
	// completely, for example, if sending forked media for different calls to
	// different ports or IP addresses. In this case, simply strip 24 bytes
	// (or use the second byte to find the header length) from the received UDP
	// payload to get the RTP (RTP header and payload).
	// “`
	// STREP Specification
	// 0                   1                   2                   3
	// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
	// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
	// |1 1|Version|L|D|    HeaderLen  |  reserved (2 bytes)           |
	// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
	// |       reserved (4 bytes, for UDP ports or anything else)      |
	// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
	// |               The call_leg_id                                 |
	// |                   from Call Control                           |
	// |                       (128 bits / 16 bytes)                   |
	// |                           (this is binary data)               |
	// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
	// 11
	// Static bits 11, always set to 11 to easily distinguish forked media
	// from RTP (10) and T.38 media (usually 00) and SIP (which begins
	// with a capital letter, so begins with bits 01). This is a magic number.
	// Version
	// Four bits to indicate the version number of the protocol, starting at 0001.
	// L
	// One bit to represent the leg of the call (A or B).
	// 0 represents the A (first) leg of the call.
	// 1 represents the B (second) leg of the call.
	// D
	// One bit to represent the direction of this RTP stream.
	// 0 represents media received by Telnyx.
	// 1 represents media transmitted by Telnyx.
	// HeaderLen (1 byte)
	// The length of the header in bytes.
	// Note that this value does not include the length of the payload. The total
	// size of the RTP can be calculated by subtracting the HeaderLen from the UDP
	// length (minus 8 for the UDP header).
	// In version 1, this value will always be 24.
	// Reserved (6 bytes)
	// Reserved for future use and to make sure that the header is a multiple of 32 bits
	// Call Leg ID
	// A 128-bit identifier for the call leg.
	// This is the call_leg_id from Call Control.
	// “`.
	//
	// POST /calls/{call_control_id}/actions/fork_start
	StartCallFork(ctx context.Context, request *StartForkingRequest, params StartCallForkParams) (StartCallForkRes, error)
	// StartCallPlayback invokes StartCallPlayback operation.
	//
	// Play an audio file on the call. If multiple play audio commands are issued consecutively,
	// the audio files will be placed in a queue awaiting playback.
	// *Notes:*
	// - When `overlay` is enabled, `target_legs` is limited to `self`.
	// - A customer cannot Play Audio with `overlay=true` unless there is a Play Audio with
	// `overlay=false` actively playing.
	// **Expected Webhooks:**
	// - `call.playback.started`
	// - `call.playback.ended`.
	//
	// POST /calls/{call_control_id}/actions/playback_start
	StartCallPlayback(ctx context.Context, request *PlayAudioUrlRequest, params StartCallPlaybackParams) (StartCallPlaybackRes, error)
	// StartCallRecord invokes StartCallRecord operation.
	//
	// Start recording the call. Recording will stop on call hang-up, or can be initiated via the Stop
	// Recording command.
	// **Expected Webhooks:**
	// - `call.recording.saved`.
	//
	// POST /calls/{call_control_id}/actions/record_start
	StartCallRecord(ctx context.Context, request *StartRecordingRequest, params StartCallRecordParams) (StartCallRecordRes, error)
	// StartCallStreaming invokes StartCallStreaming operation.
	//
	// Start streaming the media from a call to a specific WebSocket address or Dialogflow connection in
	// near-realtime. Audio will be delivered as base64-encoded RTP payload (raw audio), wrapped in JSON
	// payloads.
	// **Example: Starting a stream to a Websocket address**
	// The `stream_url` param is mandatory.
	// “`
	// curl -X POST \
	// --header "Content-Type: application/json" \
	// --header "Accept: application/json" \
	// --header "Authorization: Bearer YOUR_API_KEY" \
	// --data '{
	// "stream_url": "wss://www.example.com/websocket",\
	// "client_state":"aGF2ZSBhIG5pY2UgZGF5ID1d",\
	// "command_id":"891510ac-f3e4-11e8-af5b-de00688a4901" \
	// }' \
	// https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start
	// “`
	// **Example: Starting a stream to a Dialogflow connection**
	// Enable the Dialogflow integration by sending `"enable_dialogflow": true` in the request. You need
	// to have a Dialogflow connection associated with your Call Control application first, [click here
	// for instructions](https://developers.telnyx.com/docs/voice/programmable-voice/dialogflow-es).
	// “`
	// curl -X POST \
	// --header "Content-Type: application/json" \
	// --header "Accept: application/json" \
	// --header "Authorization: Bearer YOUR_API_KEY" \
	// --data '{
	// "client_state":"aGF2ZSBhIG5pY2UgZGF5ID1d", \
	// "command_id":"891510ac-f3e4-11e8-af5b-de00688a4901", \
	// "enable_dialogflow": true \
	// }' \
	// https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start
	// “`
	// **Expected Webhooks:**
	// - `streaming.started`
	// - `streaming.stopped`
	// - `streaming.failed`
	// **WebSocket events**
	// When the WebSocket connection is established, the following event is being sent over it:
	// “`
	// {
	// "event": "connected",
	// "version": "1.0.0"
	// }
	// “`
	// And when the call is started, an event which contains information about the encoding and
	// `stream_id` that identifies a particular stream:
	// “`
	// {
	// "event": "start",
	// "sequence_number": "1",
	// "start": {
	// "user_id": "3e6f995f-85f7-4705-9741-53b116d28237",
	// "call_control_id": "v3:MdI91X4lWFEs7IgbBEOT9M4AigoY08M0WWZFISt1Yw2axZ_IiE4pqg",
	// "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
	// "media_format": {
	// "encoding": "audio/x-mulaw",
	// "sample_rate": 8000,
	// "channels": 1
	// }
	// },
	// "stream_id": "32de0dea-53cb-4b21-89a4-9e1819c043bc"
	// }
	// “`
	// The start event is followed by the following media events that contain base64-encoded RTP payload
	// (raw audio, no RTP headers) (:
	// “`
	// {
	// "event": "media",
	// "sequence_number": "4",
	// "media": {
	// "track": "inbound/outbound",
	// "chunk": "2",
	// "timestamp": "5",
	// "payload": "no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic"
	// },
	// "stream_id": "32de0dea-53cb-4b21-89a4-9e1819c043bc"
	// }
	// “`
	// Please note that the order of events is not guaranteed and the chunk number can be used to reorder
	// the events.
	// When the call ends, the stop event over WebSockets connection is sent:
	// “`
	// {
	// "event": "stop",
	// "sequence_number": "5",
	// "stop": {
	// "user_id": "3e6f995f-85f7-4705-9741-53b116d28237",
	// "call_control_id": "v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ"
	// },
	// "stream_id": "32de0dea-53cb-4b21-89a4-9e1819c043bc"
	// }
	// “`
	// **Bidirectional Media Streaming**
	// Media can be sent back to the call through the websocket as well. This is done in a way very
	// similar to the [playback_start](https://developers.telnyx.
	// com/docs/api/v2/call-control/Call-Commands#callPlaybackStart)
	// command, when using a base64 encoded mp3 file in the payload. Simply send a packet to the
	// websocket connection as follows:
	// “`
	// {
	// "event": "media",
	// "media": {
	// "payload" : <your base64 encoded mp3 file>
	// }
	// }
	// “`
	// The payload, which is a base64-encoded mp3 file, will be played on the call.
	// Some limitations to be aware of:
	// - Media payloads can only be submitted once per second.
	// - Media _must_ be base64 encoded mp3
	// **Stream Errors**
	// Any errors in the media packet, including when a rate limit is reached, will result in an error
	// frame being
	// sent to your websocket server. The error frame will appear as follows:
	// “`
	// {
	// "stream_id": "32de0dea-53cb-4b21-89a4-9e1819c043bc",
	// "event": "error",
	// "sequence_number": "6",
	// "error": {
	// "title": "rate_limit_reached",
	// "code": "100005",
	// "detail": "Too many requests"
	// }
	// }
	// “`
	// Possible errors are as follows:
	// - Error 100002: `"unknown_error"`
	// - Error 100003: `"malformed_frame"`
	// - Error 100004: `"invalid_media"`
	// - Error 100005: `"rate_limit_reached"`.
	//
	// POST /calls/{call_control_id}/actions/streaming_start
	StartCallStreaming(ctx context.Context, request *StartStreamingRequest, params StartCallStreamingParams) (StartCallStreamingRes, error)
	// StartCallTranscription invokes StartCallTranscription operation.
	//
	// Start real-time transcription. Transcription will stop on call hang-up, or can be initiated via
	// the Transcription stop command.
	// **Expected Webhooks:**
	// - `call.transcription`.
	//
	// POST /calls/{call_control_id}/actions/transcription_start
	StartCallTranscription(ctx context.Context, request *TranscriptionStartRequest, params StartCallTranscriptionParams) (StartCallTranscriptionRes, error)
	// StartTeXMLCallRecording invokes StartTeXMLCallRecording operation.
	//
	// Starts recording with specified parameters for call idientified by call_sid.
	//
	// POST /texml/Accounts/{account_sid}/Calls/{call_sid}/Recordings.json
	StartTeXMLCallRecording(ctx context.Context, request OptTexmlCreateCallRecordingRequestBody, params StartTeXMLCallRecordingParams) (StartTeXMLCallRecordingRes, error)
	// StopCallFork invokes StopCallFork operation.
	//
	// Stop forking a call.
	// **Expected Webhooks:**
	// - `call.fork.stopped`.
	//
	// POST /calls/{call_control_id}/actions/fork_stop
	StopCallFork(ctx context.Context, request *StopForkingRequest, params StopCallForkParams) (StopCallForkRes, error)
	// StopCallGather invokes StopCallGather operation.
	//
	// Stop current gather.
	// **Expected Webhooks:**
	// - `call.gather.ended`.
	//
	// POST /calls/{call_control_id}/actions/gather_stop
	StopCallGather(ctx context.Context, request *StopGatherRequest, params StopCallGatherParams) (StopCallGatherRes, error)
	// StopCallPlayback invokes StopCallPlayback operation.
	//
	// Stop audio being played on the call.
	// **Expected Webhooks:**
	// - `call.playback.ended` or `call.speak.ended`.
	//
	// POST /calls/{call_control_id}/actions/playback_stop
	StopCallPlayback(ctx context.Context, request *PlaybackStopRequest, params StopCallPlaybackParams) (StopCallPlaybackRes, error)
	// StopCallRecording invokes StopCallRecording operation.
	//
	// Stop recording the call.
	// **Expected Webhooks:**
	// - `call.recording.saved`.
	//
	// POST /calls/{call_control_id}/actions/record_stop
	StopCallRecording(ctx context.Context, request *StopRecordingRequest, params StopCallRecordingParams) (StopCallRecordingRes, error)
	// StopCallStreaming invokes StopCallStreaming operation.
	//
	// Stop streaming a call to a WebSocket.
	// **Expected Webhooks:**
	// - `streaming.stopped`.
	//
	// POST /calls/{call_control_id}/actions/streaming_stop
	StopCallStreaming(ctx context.Context, request *StopStreamingRequest, params StopCallStreamingParams) (StopCallStreamingRes, error)
	// StopCallTranscription invokes StopCallTranscription operation.
	//
	// Stop real-time transcription.
	//
	// POST /calls/{call_control_id}/actions/transcription_stop
	StopCallTranscription(ctx context.Context, request *TranscriptionStopRequest, params StopCallTranscriptionParams) (StopCallTranscriptionRes, error)
	// TransferCall invokes TransferCall operation.
	//
	// Transfer a call to a new destination. If the transfer is unsuccessful, a `call.hangup` webhook for
	// the other call (Leg B) will be sent indicating that the transfer could not be completed. The
	// original call will remain active and may be issued additional commands, potentially transfering
	// the call to an alternate destination.
	// **Expected Webhooks:**
	// - `call.initiated`
	// - `call.bridged` to Leg B
	// - `call.answered` or `call.hangup`
	// - `call.machine.detection.ended` if `answering_machine_detection` was requested
	// - `call.machine.greeting.ended` if `answering_machine_detection` was requested to detect the end
	// of machine greeting
	// - `call.machine.premium.detection.ended` if `answering_machine_detection=premium` was requested
	// - `call.machine.premium.greeting.ended` if `answering_machine_detection=premium` was requested and
	// a beep was detected.
	//
	// POST /calls/{call_control_id}/actions/transfer
	TransferCall(ctx context.Context, request *TransferCallRequest, params TransferCallParams) (TransferCallRes, error)
	// UnassignPhoneNumber invokes UnassignPhoneNumber operation.
	//
	// Unassign a phone number from a channel zone.
	//
	// DELETE /channel_zones/{channel_zone_id}/channel_zone_phone_numbers/{phone_number}
	UnassignPhoneNumber(ctx context.Context, params UnassignPhoneNumberParams) (UnassignPhoneNumberRes, error)
	// UpdateBulkTelephonyCredential invokes UpdateBulkTelephonyCredential operation.
	//
	// Update several credentials in bulk.
	//
	// PATCH /actions/bulk/telephony_credentials
	UpdateBulkTelephonyCredential(ctx context.Context, request *BulkCredentialRequest, params UpdateBulkTelephonyCredentialParams) (UpdateBulkTelephonyCredentialRes, error)
	// UpdateCallControlApplication invokes UpdateCallControlApplication operation.
	//
	// Updates settings of an existing call control application.
	//
	// PATCH /call_control_applications/{id}
	UpdateCallControlApplication(ctx context.Context, request *UpdateCallControlApplicationRequest, params UpdateCallControlApplicationParams) (UpdateCallControlApplicationRes, error)
	// UpdateClientState invokes UpdateClientState operation.
	//
	// Updates client state.
	//
	// PUT /calls/{call_control_id}/actions/client_state_update
	UpdateClientState(ctx context.Context, request *ClientStateUpdateRequest, params UpdateClientStateParams) (UpdateClientStateRes, error)
	// UpdateCustomStorageCredentials invokes UpdateCustomStorageCredentials operation.
	//
	// Updates a stored custom credentials configuration.
	//
	// PUT /custom_storage_credentials/{connection_id}
	UpdateCustomStorageCredentials(ctx context.Context, request *CustomStorageConfiguration, params UpdateCustomStorageCredentialsParams) (UpdateCustomStorageCredentialsRes, error)
	// UpdateExternalConnectionPhoneNumber invokes UpdateExternalConnectionPhoneNumber operation.
	//
	// Asynchronously update settings of the phone number associated with the given external connection.
	//
	// PATCH /external_connections/{id}/phone_numbers/{phone_number_id}
	UpdateExternalConnectionPhoneNumber(ctx context.Context, request *UpdateExternalConnectionPhoneNumberRequest, params UpdateExternalConnectionPhoneNumberParams) (UpdateExternalConnectionPhoneNumberRes, error)
	// UpdateLoaConfiguration invokes UpdateLoaConfiguration operation.
	//
	// Update a specific LOA configuration.
	//
	// PATCH /porting/loa_configurations/{id}
	UpdateLoaConfiguration(ctx context.Context, request *UpdateLoaConfigurationReq, params UpdateLoaConfigurationParams) (UpdateLoaConfigurationRes, error)
	// UpdateNetwork invokes UpdateNetwork operation.
	//
	// Update a Network.
	//
	// PATCH /networks/{id}
	UpdateNetwork(ctx context.Context, request *NetworkCreate, params UpdateNetworkParams) (UpdateNetworkRes, error)
	// UpdateNotificationChannel invokes UpdateNotificationChannel operation.
	//
	// Update a notification channel.
	//
	// PATCH /notification_channels/{id}
	UpdateNotificationChannel(ctx context.Context, request *NotificationChannel, params UpdateNotificationChannelParams) (UpdateNotificationChannelRes, error)
	// UpdateNumberOrderDocument invokes UpdateNumberOrderDocument operation.
	//
	// Updates a number order document.
	//
	// PATCH /number_order_documents/{number_order_document_id}
	UpdateNumberOrderDocument(ctx context.Context, request *UpdateNumberOrderDocumentRequest, params UpdateNumberOrderDocumentParams) (UpdateNumberOrderDocumentRes, error)
	// UpdateNumberOrderPhoneNumber invokes UpdateNumberOrderPhoneNumber operation.
	//
	// Updates a number order phone number.
	//
	// PATCH /number_order_phone_numbers/{number_order_phone_number_id}
	UpdateNumberOrderPhoneNumber(ctx context.Context, request *UpdateNumberOrderPhoneNumberRequest, params UpdateNumberOrderPhoneNumberParams) (UpdateNumberOrderPhoneNumberRes, error)
	// UpdateOutboundChannels invokes UpdateOutboundChannels operation.
	//
	// Update the inbound channels for the account.
	//
	// PATCH /phone_numbers/inbound_channels
	UpdateOutboundChannels(ctx context.Context, request *UpdateOutboundChannelsReq) (UpdateOutboundChannelsRes, error)
	// UpdateOutboundVoiceProfile invokes UpdateOutboundVoiceProfile operation.
	//
	// Updates an existing outbound voice profile.
	//
	// PATCH /outbound_voice_profiles/{id}
	UpdateOutboundVoiceProfile(ctx context.Context, request *UpdateOutboundVoiceProfileRequest, params UpdateOutboundVoiceProfileParams) (UpdateOutboundVoiceProfileRes, error)
	// UpdatePhoneNumber invokes UpdatePhoneNumber operation.
	//
	// Update a phone number.
	//
	// PATCH /phone_numbers/{id}
	UpdatePhoneNumber(ctx context.Context, request *UpdatePhoneNumberRequest, params UpdatePhoneNumberParams) (UpdatePhoneNumberRes, error)
	// UpdatePhoneNumberMessagingSettings invokes UpdatePhoneNumberMessagingSettings operation.
	//
	// Update a phone number with messaging settings.
	//
	// PATCH /phone_numbers/{id}/messaging
	UpdatePhoneNumberMessagingSettings(ctx context.Context, request *UpdatePhoneNumberMessagingSettingsRequest, params UpdatePhoneNumberMessagingSettingsParams) (UpdatePhoneNumberMessagingSettingsRes, error)
	// UpdatePhoneNumberVoiceSettings invokes UpdatePhoneNumberVoiceSettings operation.
	//
	// Update a phone number with voice settings.
	//
	// PATCH /phone_numbers/{id}/voice
	UpdatePhoneNumberVoiceSettings(ctx context.Context, request *UpdatePhoneNumberVoiceSettingsRequest, params UpdatePhoneNumberVoiceSettingsParams) (UpdatePhoneNumberVoiceSettingsRes, error)
	// UpdatePortingOrder invokes UpdatePortingOrder operation.
	//
	// Edits the details of an existing porting order.
	// Any or all of a porting orders attributes may be included in the resource object included in a
	// PATCH request.
	// If a request does not include all of the attributes for a resource, the system will interpret the
	// missing attributes as if they were included with their current values. To explicitly set something
	// to null, it must be included in the request with a null value.
	//
	// PATCH /porting_orders/{id}
	UpdatePortingOrder(ctx context.Context, request *UpdatePortingOrder, params UpdatePortingOrderParams) (UpdatePortingOrderRes, error)
	// UpdatePortingOrdersActivationJob invokes UpdatePortingOrdersActivationJob operation.
	//
	// Updates the activation time of a porting activation job.
	//
	// PATCH /porting_orders/{id}/activation_jobs/{activationJobId}
	UpdatePortingOrdersActivationJob(ctx context.Context, request *UpdatePortingOrdersActivationJobReq, params UpdatePortingOrdersActivationJobParams) (UpdatePortingOrdersActivationJobRes, error)
	// UpdatePortoutStatus invokes UpdatePortoutStatus operation.
	//
	// Authorize or reject portout request.
	//
	// PATCH /portouts/{id}/{status}
	UpdatePortoutStatus(ctx context.Context, request *UpdatePortoutStatusReq, params UpdatePortoutStatusParams) (UpdatePortoutStatusRes, error)
	// UpdateProfile invokes UpdateProfile operation.
	//
	// Update an existing Verified Calls Display Profile and allows adding/removing nested Call Reasons
	// and Phone Numbers. Different attributes can be updated depending on the Verified Calls Display
	// Profile's status: For the VERIFICATION_STATE_PENDING status, no fields can be updated. For the
	// VERIFICATION_STATE_VERIFIED status, it is allowed only to add/remove Call Reaons and Phone Numbers.
	//  For the other statuses, all fields can be updated. All existing Call Reasons and Phone Numbers
	// must be sent during the request, or the update will fail.
	//
	// PATCH /verified_calls_display_profiles/{id}
	UpdateProfile(ctx context.Context, request *UpdateVerifiedCallsDisplayProfileRequest, params UpdateProfileParams) (UpdateProfileRes, error)
	// UpdateTeXMLCallRecording invokes UpdateTeXMLCallRecording operation.
	//
	// Updates recording resource for particular call.
	//
	// POST /texml/Accounts/{account_sid}/Calls/{call_sid}/Recordings/{recording_sid}.json
	UpdateTeXMLCallRecording(ctx context.Context, request OptTexmlUpdateCallRecordingRequestBody, params UpdateTeXMLCallRecordingParams) (UpdateTeXMLCallRecordingRes, error)
	// UpdateTelephonyCredential invokes UpdateTelephonyCredential operation.
	//
	// Update an existing credential.
	//
	// PATCH /telephony_credentials/{id}
	UpdateTelephonyCredential(ctx context.Context, request *TelephonyCredentialUpdateRequest, params UpdateTelephonyCredentialParams) (UpdateTelephonyCredentialRes, error)
	// UpdateTexmlApplication invokes UpdateTexmlApplication operation.
	//
	// Updates settings of an existing TeXML Application.
	//
	// PATCH /texml_applications/{id}
	UpdateTexmlApplication(ctx context.Context, request *UpdateTexmlApplicationRequest, params UpdateTexmlApplicationParams) (UpdateTexmlApplicationRes, error)
	// UpdateTexmlCall invokes UpdateTexmlCall operation.
	//
	// Update TeXML call. Please note that the keys present in the payload MUST BE formatted in CamelCase
	// as specified in the example.
	//
	// POST /texml/calls/{call_sid}/update
	UpdateTexmlCall(ctx context.Context, request *UpdateCallRequest, params UpdateTexmlCallParams) (*UpdateTeXMLCallResponse, error)
	// UpdateTexmlCallByAccount invokes UpdateTexmlCallByAccount operation.
	//
	// Update TeXML call. Please note that the keys present in the payload MUST BE formatted in CamelCase
	// as specified in the example.
	//
	// POST /texml/Accounts/{account_sid}/Calls/{call_sid}
	UpdateTexmlCallByAccount(ctx context.Context, request *UpdateCallRequest, params UpdateTexmlCallByAccountParams) (*GetCallResponse, error)
	// UpdateTexmlConference invokes UpdateTexmlConference operation.
	//
	// Updates a conference resource.
	//
	// POST /texml/Accounts/{account_sid}/Conferences/{conference_sid}
	UpdateTexmlConference(ctx context.Context, request *UpdateConferenceRequest, params UpdateTexmlConferenceParams) (UpdateTexmlConferenceRes, error)
	// UpdateTexmlConferenceParticipant invokes UpdateTexmlConferenceParticipant operation.
	//
	// Updates a conference participant.
	//
	// POST /texml/Accounts/{account_sid}/Conferences/{conference_sid}/Participants/{call_sid}
	UpdateTexmlConferenceParticipant(ctx context.Context, request *UpdateConferenceParticipantRequest, params UpdateTexmlConferenceParticipantParams) (UpdateTexmlConferenceParticipantRes, error)
	// UpdateVerifyProfile invokes UpdateVerifyProfile operation.
	//
	// Update Verify profile.
	//
	// PATCH /verify_profiles/{verify_profile_id}
	UpdateVerifyProfile(ctx context.Context, request *UpdateVerifyProfileReq, params UpdateVerifyProfileParams) (UpdateVerifyProfileRes, error)
	// VerifyPortingVerificationCodes invokes VerifyPortingVerificationCodes operation.
	//
	// Verifies the verification code for a list of phone numbers.
	//
	// POST /porting_orders/{id}/verification_codes/verify
	VerifyPortingVerificationCodes(ctx context.Context, request *VerifyPortingVerificationCodesReq, params VerifyPortingVerificationCodesParams) (VerifyPortingVerificationCodesRes, error)
	// VerifyVerificationCode invokes VerifyVerificationCode operation.
	//
	// Submit verification code.
	//
	// POST /verified_numbers/{phone_number}/actions/verify
	VerifyVerificationCode(ctx context.Context, request *VerifyVerificationCodeReq, params VerifyVerificationCodeParams) (VerifyVerificationCodeRes, error)
	// VerifyVerificationCodeByPhoneNumber invokes VerifyVerificationCodeByPhoneNumber operation.
	//
	// Submit verification code.
	//
	// POST /verifications/by_phone_number/{phone_number}/actions/verify
	VerifyVerificationCodeByPhoneNumber(ctx context.Context, request *VerifyVerificationCodeRequest, params VerifyVerificationCodeByPhoneNumberParams) (VerifyVerificationCodeByPhoneNumberRes, error)
	// ViewRoomRecording invokes ViewRoomRecording operation.
	//
	// View a room recording.
	//
	// GET /room_recordings/{room_recording_id}
	ViewRoomRecording(ctx context.Context, params ViewRoomRecordingParams) (ViewRoomRecordingRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type LeaveQueueParams

type LeaveQueueParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

LeaveQueueParams is parameters of LeaveQueue operation.

type LeaveQueueRequest

type LeaveQueueRequest struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/LeaveQueueRequest

func (*LeaveQueueRequest) Decode

func (s *LeaveQueueRequest) Decode(d *jx.Decoder) error

Decode decodes LeaveQueueRequest from json.

func (*LeaveQueueRequest) Encode

func (s *LeaveQueueRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LeaveQueueRequest) GetClientState

func (s *LeaveQueueRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*LeaveQueueRequest) GetCommandID

func (s *LeaveQueueRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*LeaveQueueRequest) MarshalJSON

func (s *LeaveQueueRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LeaveQueueRequest) SetClientState

func (s *LeaveQueueRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*LeaveQueueRequest) SetCommandID

func (s *LeaveQueueRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*LeaveQueueRequest) UnmarshalJSON

func (s *LeaveQueueRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LeaveQueueRes

type LeaveQueueRes interface {
	// contains filtered or unexported methods
}

type ListAdditionalDocumentsFilterDocumentType

type ListAdditionalDocumentsFilterDocumentType string
const (
	ListAdditionalDocumentsFilterDocumentTypeLoa     ListAdditionalDocumentsFilterDocumentType = "loa"
	ListAdditionalDocumentsFilterDocumentTypeInvoice ListAdditionalDocumentsFilterDocumentType = "invoice"
	ListAdditionalDocumentsFilterDocumentTypeCsr     ListAdditionalDocumentsFilterDocumentType = "csr"
	ListAdditionalDocumentsFilterDocumentTypeOther   ListAdditionalDocumentsFilterDocumentType = "other"
)

func (ListAdditionalDocumentsFilterDocumentType) AllValues

AllValues returns all ListAdditionalDocumentsFilterDocumentType values.

func (ListAdditionalDocumentsFilterDocumentType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*ListAdditionalDocumentsFilterDocumentType) UnmarshalText

func (s *ListAdditionalDocumentsFilterDocumentType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListAdditionalDocumentsFilterDocumentType) Validate

type ListAdditionalDocumentsFilterDocumentTypeInItem

type ListAdditionalDocumentsFilterDocumentTypeInItem string
const (
	ListAdditionalDocumentsFilterDocumentTypeInItemLoa     ListAdditionalDocumentsFilterDocumentTypeInItem = "loa"
	ListAdditionalDocumentsFilterDocumentTypeInItemInvoice ListAdditionalDocumentsFilterDocumentTypeInItem = "invoice"
	ListAdditionalDocumentsFilterDocumentTypeInItemCsr     ListAdditionalDocumentsFilterDocumentTypeInItem = "csr"
	ListAdditionalDocumentsFilterDocumentTypeInItemOther   ListAdditionalDocumentsFilterDocumentTypeInItem = "other"
)

func (ListAdditionalDocumentsFilterDocumentTypeInItem) AllValues

AllValues returns all ListAdditionalDocumentsFilterDocumentTypeInItem values.

func (ListAdditionalDocumentsFilterDocumentTypeInItem) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*ListAdditionalDocumentsFilterDocumentTypeInItem) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (ListAdditionalDocumentsFilterDocumentTypeInItem) Validate

type ListAdditionalDocumentsNotFound

type ListAdditionalDocumentsNotFound struct{}

ListAdditionalDocumentsNotFound is response for ListAdditionalDocuments operation.

type ListAdditionalDocumentsParams

type ListAdditionalDocumentsParams struct {
	// Porting Order id.
	ID uuid.UUID
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Filter additional documents of a specific document type.
	FilterDocumentType OptListAdditionalDocumentsFilterDocumentType
	// Filter additional documents by a list of document types.
	FilterDocumentTypeIn []ListAdditionalDocumentsFilterDocumentTypeInItem
	// Specifies the sort order for results. If not given, results are sorted by created_at in descending
	// order.
	Sort OptListAdditionalDocumentsSort
}

ListAdditionalDocumentsParams is parameters of ListAdditionalDocuments operation.

type ListAdditionalDocumentsRes

type ListAdditionalDocumentsRes interface {
	// contains filtered or unexported methods
}

type ListAdditionalDocumentsSort

type ListAdditionalDocumentsSort string
const (
	ListAdditionalDocumentsSortCreatedAt      ListAdditionalDocumentsSort = "created_at"
	ListAdditionalDocumentsSortMinusCreatedAt ListAdditionalDocumentsSort = "-created_at"
)

func (ListAdditionalDocumentsSort) AllValues

AllValues returns all ListAdditionalDocumentsSort values.

func (ListAdditionalDocumentsSort) MarshalText

func (s ListAdditionalDocumentsSort) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListAdditionalDocumentsSort) UnmarshalText

func (s *ListAdditionalDocumentsSort) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListAdditionalDocumentsSort) Validate

func (s ListAdditionalDocumentsSort) Validate() error

type ListAdditionalDocumentsUnauthorized

type ListAdditionalDocumentsUnauthorized struct{}

ListAdditionalDocumentsUnauthorized is response for ListAdditionalDocuments operation.

type ListAllowedFocWindows

type ListAllowedFocWindows struct {
	Data []PortingOrdersAllowedFocWindow `json:"data"`
	Meta OptPaginationMeta               `json:"meta"`
}

func (*ListAllowedFocWindows) Decode

func (s *ListAllowedFocWindows) Decode(d *jx.Decoder) error

Decode decodes ListAllowedFocWindows from json.

func (*ListAllowedFocWindows) Encode

func (s *ListAllowedFocWindows) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListAllowedFocWindows) GetData

GetData returns the value of Data.

func (*ListAllowedFocWindows) GetMeta

GetMeta returns the value of Meta.

func (*ListAllowedFocWindows) MarshalJSON

func (s *ListAllowedFocWindows) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListAllowedFocWindows) SetData

SetData sets the value of Data.

func (*ListAllowedFocWindows) SetMeta

func (s *ListAllowedFocWindows) SetMeta(val OptPaginationMeta)

SetMeta sets the value of Meta.

func (*ListAllowedFocWindows) UnmarshalJSON

func (s *ListAllowedFocWindows) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListAllowedFocWindowsParams

type ListAllowedFocWindowsParams struct {
	// Porting Order id.
	ID uuid.UUID
}

ListAllowedFocWindowsParams is parameters of ListAllowedFocWindows operation.

type ListAllowedFocWindowsRes

type ListAllowedFocWindowsRes interface {
	// contains filtered or unexported methods
}

type ListAllowedFocWindowsUnauthorized

type ListAllowedFocWindowsUnauthorized struct{}

ListAllowedFocWindowsUnauthorized is response for ListAllowedFocWindows operation.

type ListAvailablePhoneNumberBlocksFilterNumberType

type ListAvailablePhoneNumberBlocksFilterNumberType string
const (
	ListAvailablePhoneNumberBlocksFilterNumberTypeTollFree ListAvailablePhoneNumberBlocksFilterNumberType = "toll-free"
)

func (ListAvailablePhoneNumberBlocksFilterNumberType) AllValues

AllValues returns all ListAvailablePhoneNumberBlocksFilterNumberType values.

func (ListAvailablePhoneNumberBlocksFilterNumberType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*ListAvailablePhoneNumberBlocksFilterNumberType) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (ListAvailablePhoneNumberBlocksFilterNumberType) Validate

type ListAvailablePhoneNumberBlocksParams

type ListAvailablePhoneNumberBlocksParams struct {
	// Filter phone numbers by city.
	FilterLocality OptString
	// Filter phone numbers by ISO alpha-2 country code.
	FilterCountryCode OptString
	// Filter by the national destination code of the number. This filter is only applicable to North
	// American numbers.
	FilterNationalDestinationCode OptString
	// Filter phone numbers by number type.
	FilterNumberType OptListAvailablePhoneNumberBlocksFilterNumberType
}

ListAvailablePhoneNumberBlocksParams is parameters of ListAvailablePhoneNumberBlocks operation.

type ListAvailablePhoneNumberBlocksRes

type ListAvailablePhoneNumberBlocksRes interface {
	// contains filtered or unexported methods
}

type ListAvailablePhoneNumbersBlockResponse

type ListAvailablePhoneNumbersBlockResponse struct {
	Data []AvailablePhoneNumberBlock      `json:"data"`
	Meta OptAvailablePhoneNumbersMetadata `json:"meta"`
}

func (*ListAvailablePhoneNumbersBlockResponse) Decode

Decode decodes ListAvailablePhoneNumbersBlockResponse from json.

func (*ListAvailablePhoneNumbersBlockResponse) Encode

Encode implements json.Marshaler.

func (*ListAvailablePhoneNumbersBlockResponse) GetData

GetData returns the value of Data.

func (*ListAvailablePhoneNumbersBlockResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListAvailablePhoneNumbersBlockResponse) MarshalJSON

func (s *ListAvailablePhoneNumbersBlockResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListAvailablePhoneNumbersBlockResponse) SetData

SetData sets the value of Data.

func (*ListAvailablePhoneNumbersBlockResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListAvailablePhoneNumbersBlockResponse) UnmarshalJSON

func (s *ListAvailablePhoneNumbersBlockResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListAvailablePhoneNumbersBlockResponse) Validate

type ListAvailablePhoneNumbersFilterFeaturesItem

type ListAvailablePhoneNumbersFilterFeaturesItem string
const (
	ListAvailablePhoneNumbersFilterFeaturesItemSMS       ListAvailablePhoneNumbersFilterFeaturesItem = "sms"
	ListAvailablePhoneNumbersFilterFeaturesItemMms       ListAvailablePhoneNumbersFilterFeaturesItem = "mms"
	ListAvailablePhoneNumbersFilterFeaturesItemVoice     ListAvailablePhoneNumbersFilterFeaturesItem = "voice"
	ListAvailablePhoneNumbersFilterFeaturesItemFax       ListAvailablePhoneNumbersFilterFeaturesItem = "fax"
	ListAvailablePhoneNumbersFilterFeaturesItemEmergency ListAvailablePhoneNumbersFilterFeaturesItem = "emergency"
)

func (ListAvailablePhoneNumbersFilterFeaturesItem) AllValues

AllValues returns all ListAvailablePhoneNumbersFilterFeaturesItem values.

func (ListAvailablePhoneNumbersFilterFeaturesItem) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*ListAvailablePhoneNumbersFilterFeaturesItem) UnmarshalText

func (s *ListAvailablePhoneNumbersFilterFeaturesItem) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListAvailablePhoneNumbersFilterFeaturesItem) Validate

type ListAvailablePhoneNumbersFilterPhoneNumberType

type ListAvailablePhoneNumbersFilterPhoneNumberType string
const (
	ListAvailablePhoneNumbersFilterPhoneNumberTypeLocal      ListAvailablePhoneNumbersFilterPhoneNumberType = "local"
	ListAvailablePhoneNumbersFilterPhoneNumberTypeTollFree   ListAvailablePhoneNumbersFilterPhoneNumberType = "toll_free"
	ListAvailablePhoneNumbersFilterPhoneNumberTypeMobile     ListAvailablePhoneNumbersFilterPhoneNumberType = "mobile"
	ListAvailablePhoneNumbersFilterPhoneNumberTypeNational   ListAvailablePhoneNumbersFilterPhoneNumberType = "national"
	ListAvailablePhoneNumbersFilterPhoneNumberTypeSharedCost ListAvailablePhoneNumbersFilterPhoneNumberType = "shared_cost"
	ListAvailablePhoneNumbersFilterPhoneNumberTypeLandline   ListAvailablePhoneNumbersFilterPhoneNumberType = "landline"
)

func (ListAvailablePhoneNumbersFilterPhoneNumberType) AllValues

AllValues returns all ListAvailablePhoneNumbersFilterPhoneNumberType values.

func (ListAvailablePhoneNumbersFilterPhoneNumberType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*ListAvailablePhoneNumbersFilterPhoneNumberType) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (ListAvailablePhoneNumbersFilterPhoneNumberType) Validate

type ListAvailablePhoneNumbersParams

type ListAvailablePhoneNumbersParams struct {
	// Filter numbers starting with a pattern (exclude NDC from start of this filter if used with
	// `national_destination_code` filter).
	FilterPhoneNumberStartsWith OptString
	// Filter numbers ending with a pattern (max length of 4 digits if used with
	// `national_destination_code` filter).
	FilterPhoneNumberEndsWith OptString
	// Filter numbers containing a pattern (must be used with `national_destination_code` filter and only
	// searches within last 4 digits).
	FilterPhoneNumberContains OptString
	// Filter phone numbers by city.
	FilterLocality OptString
	// Filter phone numbers by US state/CA province.
	FilterAdministrativeArea OptString
	// Filter phone numbers by ISO alpha-2 country code.
	FilterCountryCode OptString
	// Filter by the national destination code of the number. This filter is only applicable to North
	// American numbers.
	FilterNationalDestinationCode OptString
	// Filter phone numbers by NANP rate center. This filter is only applicable to North American numbers.
	FilterRateCenter OptString
	// Filter phone numbers by number type.
	FilterPhoneNumberType OptListAvailablePhoneNumbersFilterPhoneNumberType
	// Filter if the phone number should be used for voice, fax, mms, sms, emergency.
	FilterFeatures []ListAvailablePhoneNumbersFilterFeaturesItem
	// Limits the number of results.
	FilterLimit OptInt
	// Filter to determine if best effort results should be included. Only available in NANPA countries.
	FilterBestEffort OptBool
	// Filter to exclude phone numbers that need additional time after to purchase to receive phone calls.
	//  Only available for toll-free numbers.
	FilterQuickship OptBool
	// Filter to exclude phone numbers that cannot be reserved before purchase.
	FilterReservable OptBool
	// Filter to exclude phone numbers that are currently on hold for your account.
	FilterExcludeHeldNumbers OptBool
}

ListAvailablePhoneNumbersParams is parameters of ListAvailablePhoneNumbers operation.

type ListAvailablePhoneNumbersRes

type ListAvailablePhoneNumbersRes interface {
	// contains filtered or unexported methods
}

type ListAvailablePhoneNumbersResponse

type ListAvailablePhoneNumbersResponse struct {
	Data []AvailablePhoneNumber           `json:"data"`
	Meta OptAvailablePhoneNumbersMetadata `json:"meta"`
}

func (*ListAvailablePhoneNumbersResponse) Decode

Decode decodes ListAvailablePhoneNumbersResponse from json.

func (*ListAvailablePhoneNumbersResponse) Encode

Encode implements json.Marshaler.

func (*ListAvailablePhoneNumbersResponse) GetData

GetData returns the value of Data.

func (*ListAvailablePhoneNumbersResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListAvailablePhoneNumbersResponse) MarshalJSON

func (s *ListAvailablePhoneNumbersResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListAvailablePhoneNumbersResponse) SetData

SetData sets the value of Data.

func (*ListAvailablePhoneNumbersResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListAvailablePhoneNumbersResponse) UnmarshalJSON

func (s *ListAvailablePhoneNumbersResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListAvailablePhoneNumbersResponse) Validate

type ListCallControlApplicationsBadRequest

type ListCallControlApplicationsBadRequest struct{}

ListCallControlApplicationsBadRequest is response for ListCallControlApplications operation.

type ListCallControlApplicationsNotFound

type ListCallControlApplicationsNotFound struct{}

ListCallControlApplicationsNotFound is response for ListCallControlApplications operation.

type ListCallControlApplicationsParams

type ListCallControlApplicationsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// If present, applications with <code>application_name</code> containing the given value will be
	// returned. Matching is not case-sensitive. Requires at least three characters.
	FilterApplicationNameContains OptString
	// Identifies the associated outbound voice profile.
	FilterOutboundVoiceProfileID OptStringInt64
	// Specifies the sort order for results. By default sorting direction is ascending. To have the
	// results sorted in descending order add the <code> -</code> prefix.<br/><br/>
	// That is: <ul>
	// <li>
	// <code>connection_name</code>: sorts the result by the
	// <code>connection_name</code> field in ascending order.
	// </li>
	// <li>
	// <code>-connection_name</code>: sorts the result by the
	// <code>connection_name</code> field in descending order.
	// </li>
	// </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order.
	Sort OptSortConnection
}

ListCallControlApplicationsParams is parameters of ListCallControlApplications operation.

type ListCallControlApplicationsRes

type ListCallControlApplicationsRes interface {
	// contains filtered or unexported methods
}

type ListCallControlApplicationsResponse

type ListCallControlApplicationsResponse struct {
	Data []CallControlApplication `json:"data"`
	Meta OptPaginationMeta        `json:"meta"`
}

func (*ListCallControlApplicationsResponse) Decode

Decode decodes ListCallControlApplicationsResponse from json.

func (*ListCallControlApplicationsResponse) Encode

Encode implements json.Marshaler.

func (*ListCallControlApplicationsResponse) GetData

GetData returns the value of Data.

func (*ListCallControlApplicationsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListCallControlApplicationsResponse) MarshalJSON

func (s *ListCallControlApplicationsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListCallControlApplicationsResponse) SetData

SetData sets the value of Data.

func (*ListCallControlApplicationsResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListCallControlApplicationsResponse) UnmarshalJSON

func (s *ListCallControlApplicationsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListCallControlApplicationsResponse) Validate

type ListCommentsParams

type ListCommentsParams struct {
	// Record type that the comment relates to i.e number_order, sub_number_order or
	// number_order_phone_number.
	FilterCommentRecordType string
	// ID of the record the comments relate to.
	FilterCommentRecordID string
}

ListCommentsParams is parameters of ListComments operation.

type ListCommentsRes

type ListCommentsRes interface {
	// contains filtered or unexported methods
}

type ListCommentsResponse

type ListCommentsResponse struct {
	Data []Comment         `json:"data"`
	Meta OptPaginationMeta `json:"meta"`
}

func (*ListCommentsResponse) Decode

func (s *ListCommentsResponse) Decode(d *jx.Decoder) error

Decode decodes ListCommentsResponse from json.

func (*ListCommentsResponse) Encode

func (s *ListCommentsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListCommentsResponse) GetData

func (s *ListCommentsResponse) GetData() []Comment

GetData returns the value of Data.

func (*ListCommentsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListCommentsResponse) MarshalJSON

func (s *ListCommentsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListCommentsResponse) SetData

func (s *ListCommentsResponse) SetData(val []Comment)

SetData sets the value of Data.

func (*ListCommentsResponse) SetMeta

func (s *ListCommentsResponse) SetMeta(val OptPaginationMeta)

SetMeta sets the value of Meta.

func (*ListCommentsResponse) UnmarshalJSON

func (s *ListCommentsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListCommentsResponse) Validate

func (s *ListCommentsResponse) Validate() error

type ListConnectionActiveCallsParams

type ListConnectionActiveCallsParams struct {
	// Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource.
	ConnectionID string
	// Limit of records per single page.
	PageLimit OptInt
	// Opaque identifier of next page.
	PageAfter OptString
	// Opaque identifier of previous page.
	PageBefore OptString
}

ListConnectionActiveCallsParams is parameters of ListConnectionActiveCalls operation.

type ListConnectionActiveCallsRes

type ListConnectionActiveCallsRes interface {
	// contains filtered or unexported methods
}

type ListCsvDownloadsParams

type ListCsvDownloadsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListCsvDownloadsParams is parameters of ListCsvDownloads operation.

type ListCsvDownloadsRes

type ListCsvDownloadsRes interface {
	// contains filtered or unexported methods
}

type ListCsvDownloadsResponse

type ListCsvDownloadsResponse struct {
	Data []CsvDownload     `json:"data"`
	Meta OptPaginationMeta `json:"meta"`
}

func (*ListCsvDownloadsResponse) Decode

func (s *ListCsvDownloadsResponse) Decode(d *jx.Decoder) error

Decode decodes ListCsvDownloadsResponse from json.

func (*ListCsvDownloadsResponse) Encode

func (s *ListCsvDownloadsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListCsvDownloadsResponse) GetData

func (s *ListCsvDownloadsResponse) GetData() []CsvDownload

GetData returns the value of Data.

func (*ListCsvDownloadsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListCsvDownloadsResponse) MarshalJSON

func (s *ListCsvDownloadsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListCsvDownloadsResponse) SetData

func (s *ListCsvDownloadsResponse) SetData(val []CsvDownload)

SetData sets the value of Data.

func (*ListCsvDownloadsResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListCsvDownloadsResponse) UnmarshalJSON

func (s *ListCsvDownloadsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListCsvDownloadsResponse) Validate

func (s *ListCsvDownloadsResponse) Validate() error

type ListDraftPortingOrdersWithoutPagination

type ListDraftPortingOrdersWithoutPagination struct {
	Data []PortingOrder `json:"data"`
}

func (*ListDraftPortingOrdersWithoutPagination) Decode

Decode decodes ListDraftPortingOrdersWithoutPagination from json.

func (*ListDraftPortingOrdersWithoutPagination) Encode

Encode implements json.Marshaler.

func (*ListDraftPortingOrdersWithoutPagination) GetData

GetData returns the value of Data.

func (*ListDraftPortingOrdersWithoutPagination) MarshalJSON

func (s *ListDraftPortingOrdersWithoutPagination) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDraftPortingOrdersWithoutPagination) SetData

SetData sets the value of Data.

func (*ListDraftPortingOrdersWithoutPagination) UnmarshalJSON

func (s *ListDraftPortingOrdersWithoutPagination) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListDraftPortingOrdersWithoutPagination) Validate

type ListExceptionTypesRes

type ListExceptionTypesRes interface {
	// contains filtered or unexported methods
}

type ListExceptionTypesUnauthorized

type ListExceptionTypesUnauthorized struct{}

ListExceptionTypesUnauthorized is response for ListExceptionTypes operation.

type ListExceptionTypesUnprocessableEntity

type ListExceptionTypesUnprocessableEntity struct{}

ListExceptionTypesUnprocessableEntity is response for ListExceptionTypes operation.

type ListExternalConnectionLogMessagesParams

type ListExternalConnectionLogMessagesParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// The external connection ID to filter by or "null" to filter for logs without an external
	// connection ID.
	FilterExternalConnectionID OptString
	// The partial phone number to filter log messages for. Requires 3-15 digits.
	FilterTelephoneNumberContains OptString
	// The phone number to filter log messages for or "null" to filter for logs without a phone number.
	FilterTelephoneNumberEq OptString
}

ListExternalConnectionLogMessagesParams is parameters of ListExternalConnectionLogMessages operation.

type ListExternalConnectionLogMessagesRes

type ListExternalConnectionLogMessagesRes interface {
	// contains filtered or unexported methods
}

type ListExternalConnectionLogMessagesUnauthorized

type ListExternalConnectionLogMessagesUnauthorized struct{}

ListExternalConnectionLogMessagesUnauthorized is response for ListExternalConnectionLogMessages operation.

type ListExternalConnectionLogMessagesUnprocessableEntity

type ListExternalConnectionLogMessagesUnprocessableEntity struct{}

ListExternalConnectionLogMessagesUnprocessableEntity is response for ListExternalConnectionLogMessages operation.

type ListExternalConnectionPhoneNumbersNotFound

type ListExternalConnectionPhoneNumbersNotFound struct{}

ListExternalConnectionPhoneNumbersNotFound is response for ListExternalConnectionPhoneNumbers operation.

type ListExternalConnectionPhoneNumbersParams

type ListExternalConnectionPhoneNumbersParams struct {
	// Identifies the resource.
	ID int64
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// The phone number to filter by.
	FilterPhoneNumberEq OptString
	// The partial phone number to filter by. Requires 3-15 digits.
	FilterPhoneNumberContains OptString
	// If present, connections associated with the given phone_number will be returned. A full match is
	// necessary with a e164 format.
	FilterPhoneNumber OptNilString
	// The civic address ID to filter by.
	FilterCivicAddressIDEq OptUUID
	// The location ID to filter by.
	FilterLocationIDEq OptUUID
}

ListExternalConnectionPhoneNumbersParams is parameters of ListExternalConnectionPhoneNumbers operation.

type ListExternalConnectionPhoneNumbersRes

type ListExternalConnectionPhoneNumbersRes interface {
	// contains filtered or unexported methods
}

type ListExternalConnectionPhoneNumbersResponse

type ListExternalConnectionPhoneNumbersResponse struct {
	Data []ExternalConnectionPhoneNumber `json:"data"`
	Meta OptPaginationMeta               `json:"meta"`
}

func (*ListExternalConnectionPhoneNumbersResponse) Decode

Decode decodes ListExternalConnectionPhoneNumbersResponse from json.

func (*ListExternalConnectionPhoneNumbersResponse) Encode

Encode implements json.Marshaler.

func (*ListExternalConnectionPhoneNumbersResponse) GetData

GetData returns the value of Data.

func (*ListExternalConnectionPhoneNumbersResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListExternalConnectionPhoneNumbersResponse) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ListExternalConnectionPhoneNumbersResponse) SetData

SetData sets the value of Data.

func (*ListExternalConnectionPhoneNumbersResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListExternalConnectionPhoneNumbersResponse) UnmarshalJSON

func (s *ListExternalConnectionPhoneNumbersResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListExternalConnectionPhoneNumbersResponse) Validate

type ListExternalConnectionPhoneNumbersUnauthorized

type ListExternalConnectionPhoneNumbersUnauthorized struct{}

ListExternalConnectionPhoneNumbersUnauthorized is response for ListExternalConnectionPhoneNumbers operation.

type ListExternalConnectionPhoneNumbersUnprocessableEntity

type ListExternalConnectionPhoneNumbersUnprocessableEntity struct{}

ListExternalConnectionPhoneNumbersUnprocessableEntity is response for ListExternalConnectionPhoneNumbers operation.

type ListInboundChannelsNotFound

type ListInboundChannelsNotFound struct{}

ListInboundChannelsNotFound is response for ListInboundChannels operation.

type ListInboundChannelsOK

type ListInboundChannelsOK struct {
	Data OptListInboundChannelsOKData `json:"data"`
}

func (*ListInboundChannelsOK) Decode

func (s *ListInboundChannelsOK) Decode(d *jx.Decoder) error

Decode decodes ListInboundChannelsOK from json.

func (*ListInboundChannelsOK) Encode

func (s *ListInboundChannelsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListInboundChannelsOK) GetData

GetData returns the value of Data.

func (*ListInboundChannelsOK) MarshalJSON

func (s *ListInboundChannelsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListInboundChannelsOK) SetData

SetData sets the value of Data.

func (*ListInboundChannelsOK) UnmarshalJSON

func (s *ListInboundChannelsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListInboundChannelsOKData

type ListInboundChannelsOKData struct {
	// The current number of concurrent channels set for the account.
	Channels OptInt `json:"channels"`
	// Identifies the type of the response.
	RecordType OptString `json:"record_type"`
}

func (*ListInboundChannelsOKData) Decode

func (s *ListInboundChannelsOKData) Decode(d *jx.Decoder) error

Decode decodes ListInboundChannelsOKData from json.

func (*ListInboundChannelsOKData) Encode

func (s *ListInboundChannelsOKData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListInboundChannelsOKData) GetChannels

func (s *ListInboundChannelsOKData) GetChannels() OptInt

GetChannels returns the value of Channels.

func (*ListInboundChannelsOKData) GetRecordType

func (s *ListInboundChannelsOKData) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*ListInboundChannelsOKData) MarshalJSON

func (s *ListInboundChannelsOKData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListInboundChannelsOKData) SetChannels

func (s *ListInboundChannelsOKData) SetChannels(val OptInt)

SetChannels sets the value of Channels.

func (*ListInboundChannelsOKData) SetRecordType

func (s *ListInboundChannelsOKData) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*ListInboundChannelsOKData) UnmarshalJSON

func (s *ListInboundChannelsOKData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListInboundChannelsRes

type ListInboundChannelsRes interface {
	// contains filtered or unexported methods
}

type ListInboundChannelsUnauthorized

type ListInboundChannelsUnauthorized struct{}

ListInboundChannelsUnauthorized is response for ListInboundChannels operation.

type ListInboundChannelsUnprocessableEntity

type ListInboundChannelsUnprocessableEntity struct{}

ListInboundChannelsUnprocessableEntity is response for ListInboundChannels operation.

type ListLoaConfigurationsInternalServerError

type ListLoaConfigurationsInternalServerError struct{}

ListLoaConfigurationsInternalServerError is response for ListLoaConfigurations operation.

type ListLoaConfigurationsParams

type ListLoaConfigurationsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListLoaConfigurationsParams is parameters of ListLoaConfigurations operation.

type ListLoaConfigurationsRes

type ListLoaConfigurationsRes interface {
	// contains filtered or unexported methods
}

type ListLoaConfigurationsUnprocessableEntity

type ListLoaConfigurationsUnprocessableEntity struct{}

ListLoaConfigurationsUnprocessableEntity is response for ListLoaConfigurations operation.

type ListLogMessagesResponse

type ListLogMessagesResponse struct {
	LogMessages []LogMessage      `json:"log_messages"`
	Meta        OptPaginationMeta `json:"meta"`
}

func (*ListLogMessagesResponse) Decode

func (s *ListLogMessagesResponse) Decode(d *jx.Decoder) error

Decode decodes ListLogMessagesResponse from json.

func (*ListLogMessagesResponse) Encode

func (s *ListLogMessagesResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListLogMessagesResponse) GetLogMessages

func (s *ListLogMessagesResponse) GetLogMessages() []LogMessage

GetLogMessages returns the value of LogMessages.

func (*ListLogMessagesResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListLogMessagesResponse) MarshalJSON

func (s *ListLogMessagesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListLogMessagesResponse) SetLogMessages

func (s *ListLogMessagesResponse) SetLogMessages(val []LogMessage)

SetLogMessages sets the value of LogMessages.

func (*ListLogMessagesResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListLogMessagesResponse) UnmarshalJSON

func (s *ListLogMessagesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListMessagingHostedNumberOrdersParams

type ListMessagingHostedNumberOrdersParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListMessagingHostedNumberOrdersParams is parameters of ListMessagingHostedNumberOrders operation.

type ListMessagingHostedNumberOrdersRes

type ListMessagingHostedNumberOrdersRes interface {
	// contains filtered or unexported methods
}

type ListMessagingHostedNumberOrdersResponse

type ListMessagingHostedNumberOrdersResponse struct {
	Data []MessagingHostedNumberOrder `json:"data"`
	Meta OptPaginationMeta            `json:"meta"`
}

func (*ListMessagingHostedNumberOrdersResponse) Decode

Decode decodes ListMessagingHostedNumberOrdersResponse from json.

func (*ListMessagingHostedNumberOrdersResponse) Encode

Encode implements json.Marshaler.

func (*ListMessagingHostedNumberOrdersResponse) GetData

GetData returns the value of Data.

func (*ListMessagingHostedNumberOrdersResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListMessagingHostedNumberOrdersResponse) MarshalJSON

func (s *ListMessagingHostedNumberOrdersResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListMessagingHostedNumberOrdersResponse) SetData

SetData sets the value of Data.

func (*ListMessagingHostedNumberOrdersResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListMessagingHostedNumberOrdersResponse) UnmarshalJSON

func (s *ListMessagingHostedNumberOrdersResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListMessagingHostedNumberOrdersResponse) Validate

type ListMessagingProfilePhoneNumbersResponse

type ListMessagingProfilePhoneNumbersResponse struct {
	Data []PhoneNumberWithMessagingSettings `json:"data"`
	Meta OptPaginationMeta                  `json:"meta"`
}

func (*ListMessagingProfilePhoneNumbersResponse) Decode

Decode decodes ListMessagingProfilePhoneNumbersResponse from json.

func (*ListMessagingProfilePhoneNumbersResponse) Encode

Encode implements json.Marshaler.

func (*ListMessagingProfilePhoneNumbersResponse) GetData

GetData returns the value of Data.

func (*ListMessagingProfilePhoneNumbersResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListMessagingProfilePhoneNumbersResponse) MarshalJSON

func (s *ListMessagingProfilePhoneNumbersResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListMessagingProfilePhoneNumbersResponse) SetData

SetData sets the value of Data.

func (*ListMessagingProfilePhoneNumbersResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListMessagingProfilePhoneNumbersResponse) UnmarshalJSON

func (s *ListMessagingProfilePhoneNumbersResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListMessagingProfilePhoneNumbersResponse) Validate

type ListMessagingUrlDomains

type ListMessagingUrlDomains struct {
	Data []MessagingUrlDomain `json:"data"`
	Meta OptPaginationMeta    `json:"meta"`
}

func (*ListMessagingUrlDomains) Decode

func (s *ListMessagingUrlDomains) Decode(d *jx.Decoder) error

Decode decodes ListMessagingUrlDomains from json.

func (*ListMessagingUrlDomains) Encode

func (s *ListMessagingUrlDomains) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListMessagingUrlDomains) GetData

GetData returns the value of Data.

func (*ListMessagingUrlDomains) GetMeta

GetMeta returns the value of Meta.

func (*ListMessagingUrlDomains) MarshalJSON

func (s *ListMessagingUrlDomains) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListMessagingUrlDomains) SetData

func (s *ListMessagingUrlDomains) SetData(val []MessagingUrlDomain)

SetData sets the value of Data.

func (*ListMessagingUrlDomains) SetMeta

SetMeta sets the value of Meta.

func (*ListMessagingUrlDomains) UnmarshalJSON

func (s *ListMessagingUrlDomains) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListMessagingUrlDomainsParams

type ListMessagingUrlDomainsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListMessagingUrlDomainsParams is parameters of ListMessagingUrlDomains operation.

type ListMessagingUrlDomainsRes

type ListMessagingUrlDomainsRes interface {
	// contains filtered or unexported methods
}

type ListNetworkInterfacesParams

type ListNetworkInterfacesParams struct {
	// Identifies the resource.
	ID uuid.UUID
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// The interface name to filter on.
	FilterName OptString
	// The interface type to filter on.
	FilterType OptString
	// The interface status to filter on.
	FilterStatus OptInterfaceStatus
}

ListNetworkInterfacesParams is parameters of ListNetworkInterfaces operation.

type ListNetworkInterfacesRes

type ListNetworkInterfacesRes interface {
	// contains filtered or unexported methods
}

type ListNetworksParams

type ListNetworksParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// The network name to filter on.
	FilterName OptString
}

ListNetworksParams is parameters of ListNetworks operation.

type ListNetworksRes

type ListNetworksRes interface {
	// contains filtered or unexported methods
}

type ListNotificationChannelsOK

type ListNotificationChannelsOK struct {
	Data []NotificationChannel `json:"data"`
	Meta OptPaginationMeta     `json:"meta"`
}

func (*ListNotificationChannelsOK) Decode

Decode decodes ListNotificationChannelsOK from json.

func (*ListNotificationChannelsOK) Encode

func (s *ListNotificationChannelsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListNotificationChannelsOK) GetData

GetData returns the value of Data.

func (*ListNotificationChannelsOK) GetMeta

GetMeta returns the value of Meta.

func (*ListNotificationChannelsOK) MarshalJSON

func (s *ListNotificationChannelsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListNotificationChannelsOK) SetData

SetData sets the value of Data.

func (*ListNotificationChannelsOK) SetMeta

SetMeta sets the value of Meta.

func (*ListNotificationChannelsOK) UnmarshalJSON

func (s *ListNotificationChannelsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListNotificationChannelsOK) Validate

func (s *ListNotificationChannelsOK) Validate() error

type ListNotificationChannelsParams

type ListNotificationChannelsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Filter by the id of a channel type.
	FilterChannelTypeIDEq OptChannelTypeId
}

ListNotificationChannelsParams is parameters of ListNotificationChannels operation.

type ListNotificationChannelsRes

type ListNotificationChannelsRes interface {
	// contains filtered or unexported methods
}

type ListNumberOrderDocumentsParams

type ListNumberOrderDocumentsParams struct {
	// Filter number order documents by `requirement_id`.
	FilterRequirementID OptString
	// Filter number order documents after this datetime.
	FilterCreatedAtGt OptString
	// Filter number order documents from before this datetime.
	FilterCreatedAtLt OptString
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListNumberOrderDocumentsParams is parameters of ListNumberOrderDocuments operation.

type ListNumberOrderDocumentsRes

type ListNumberOrderDocumentsRes interface {
	// contains filtered or unexported methods
}

type ListNumberOrderDocumentsResponse

type ListNumberOrderDocumentsResponse struct {
	Data []NumberOrderDocument `json:"data"`
	Meta OptPaginationMeta     `json:"meta"`
}

func (*ListNumberOrderDocumentsResponse) Decode

Decode decodes ListNumberOrderDocumentsResponse from json.

func (*ListNumberOrderDocumentsResponse) Encode

Encode implements json.Marshaler.

func (*ListNumberOrderDocumentsResponse) GetData

GetData returns the value of Data.

func (*ListNumberOrderDocumentsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListNumberOrderDocumentsResponse) MarshalJSON

func (s *ListNumberOrderDocumentsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListNumberOrderDocumentsResponse) SetData

SetData sets the value of Data.

func (*ListNumberOrderDocumentsResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListNumberOrderDocumentsResponse) UnmarshalJSON

func (s *ListNumberOrderDocumentsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListNumberOrderDocumentsResponse) Validate

type ListNumberOrderPhoneNumbersResponse

type ListNumberOrderPhoneNumbersResponse struct {
	Data []NumberOrderPhoneNumber `json:"data"`
	Meta OptPaginationMeta        `json:"meta"`
}

func (*ListNumberOrderPhoneNumbersResponse) Decode

Decode decodes ListNumberOrderPhoneNumbersResponse from json.

func (*ListNumberOrderPhoneNumbersResponse) Encode

Encode implements json.Marshaler.

func (*ListNumberOrderPhoneNumbersResponse) GetData

GetData returns the value of Data.

func (*ListNumberOrderPhoneNumbersResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListNumberOrderPhoneNumbersResponse) MarshalJSON

func (s *ListNumberOrderPhoneNumbersResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListNumberOrderPhoneNumbersResponse) SetData

SetData sets the value of Data.

func (*ListNumberOrderPhoneNumbersResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListNumberOrderPhoneNumbersResponse) UnmarshalJSON

func (s *ListNumberOrderPhoneNumbersResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListNumberOrderPhoneNumbersResponse) Validate

type ListNumberReservationsParams

type ListNumberReservationsParams struct {
	// Filter number reservations by status.
	FilterStatus OptString
	// Filter number reservations later than this value.
	FilterCreatedAtGt OptString
	// Filter number reservations earlier than this value.
	FilterCreatedAtLt OptString
	// Filter number reservations having these phone numbers.
	FilterPhoneNumbersPhoneNumber OptString
	// Filter number reservations via the customer reference set.
	FilterCustomerReference OptString
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListNumberReservationsParams is parameters of ListNumberReservations operation.

type ListNumberReservationsRes

type ListNumberReservationsRes interface {
	// contains filtered or unexported methods
}

type ListNumberReservationsResponse

type ListNumberReservationsResponse struct {
	Data []NumberReservation `json:"data"`
	Meta OptPaginationMeta   `json:"meta"`
}

func (*ListNumberReservationsResponse) Decode

Decode decodes ListNumberReservationsResponse from json.

func (*ListNumberReservationsResponse) Encode

Encode implements json.Marshaler.

func (*ListNumberReservationsResponse) GetData

GetData returns the value of Data.

func (*ListNumberReservationsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListNumberReservationsResponse) MarshalJSON

func (s *ListNumberReservationsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListNumberReservationsResponse) SetData

SetData sets the value of Data.

func (*ListNumberReservationsResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListNumberReservationsResponse) UnmarshalJSON

func (s *ListNumberReservationsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListNumberReservationsResponse) Validate

func (s *ListNumberReservationsResponse) Validate() error

type ListOtaUpdatesFilterType

type ListOtaUpdatesFilterType string
const (
	ListOtaUpdatesFilterTypeSimCardNetworkPreferences ListOtaUpdatesFilterType = "sim_card_network_preferences"
)

func (ListOtaUpdatesFilterType) AllValues

AllValues returns all ListOtaUpdatesFilterType values.

func (ListOtaUpdatesFilterType) MarshalText

func (s ListOtaUpdatesFilterType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListOtaUpdatesFilterType) UnmarshalText

func (s *ListOtaUpdatesFilterType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListOtaUpdatesFilterType) Validate

func (s ListOtaUpdatesFilterType) Validate() error

type ListOtaUpdatesParams

type ListOtaUpdatesParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Filter by a specific status of the resource's lifecycle.
	FilterStatus OptFilterBasicStatusLifecycle
	// The SIM card identification UUID.
	FilterSimCardID OptString
	// Filter by type.
	FilterType OptListOtaUpdatesFilterType
}

ListOtaUpdatesParams is parameters of ListOtaUpdates operation.

type ListOtaUpdatesRes

type ListOtaUpdatesRes interface {
	// contains filtered or unexported methods
}

type ListOutboundVoiceProfilesParams

type ListOutboundVoiceProfilesParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Optional filter on outbound voice profile name.
	FilterNameContains OptString
	// Specifies the sort order for results. By default sorting direction is ascending. To have the
	// results sorted in descending order add the <code>-</code> prefix.<br/><br/>
	// That is: <ul>
	// <li>
	// <code>name</code>: sorts the result by the
	// <code>name</code> field in ascending order.
	// </li>
	// <li>
	// <code>-name</code>: sorts the result by the
	// <code>name</code> field in descending order.
	// </li>
	// </ul> <br/>.
	Sort OptSortOutboundVoiceProfile
}

ListOutboundVoiceProfilesParams is parameters of ListOutboundVoiceProfiles operation.

type ListOutboundVoiceProfilesRes

type ListOutboundVoiceProfilesRes interface {
	// contains filtered or unexported methods
}

type ListOutboundVoiceProfilesResponse

type ListOutboundVoiceProfilesResponse struct {
	Data []OutboundVoiceProfile `json:"data"`
	Meta OptPaginationMeta      `json:"meta"`
}

func (*ListOutboundVoiceProfilesResponse) Decode

Decode decodes ListOutboundVoiceProfilesResponse from json.

func (*ListOutboundVoiceProfilesResponse) Encode

Encode implements json.Marshaler.

func (*ListOutboundVoiceProfilesResponse) GetData

GetData returns the value of Data.

func (*ListOutboundVoiceProfilesResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListOutboundVoiceProfilesResponse) MarshalJSON

func (s *ListOutboundVoiceProfilesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListOutboundVoiceProfilesResponse) SetData

SetData sets the value of Data.

func (*ListOutboundVoiceProfilesResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListOutboundVoiceProfilesResponse) UnmarshalJSON

func (s *ListOutboundVoiceProfilesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListOutboundVoiceProfilesResponse) Validate

type ListOutboundVoiceProfilesUnauthorized

type ListOutboundVoiceProfilesUnauthorized struct{}

ListOutboundVoiceProfilesUnauthorized is response for ListOutboundVoiceProfiles operation.

type ListOutboundVoiceProfilesUnprocessableEntity

type ListOutboundVoiceProfilesUnprocessableEntity struct{}

ListOutboundVoiceProfilesUnprocessableEntity is response for ListOutboundVoiceProfiles operation.

type ListPhoneNumberConfigurationsParams

type ListPhoneNumberConfigurationsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Filter results by porting order id.
	FilterPortingOrderID OptUUID
	// Filter results by a list of porting order ids.
	FilterPortingOrderIDIn []uuid.UUID
	// Filter results by a specific user bundle ID.
	FilterUserBundleID OptUUID
	// Filter results by a list of user bundle IDs.
	FilterUserBundleIDIn []uuid.UUID
	// Filter results by a specific porting phone number ID.
	FilterPortingPhoneNumber OptUUID
	// Filter results by a list of porting phone number IDs.
	FilterPortingPhoneNumberIn []uuid.UUID
	// Specifies the sort order for results. If not given, results are sorted by created_at in descending
	// order.
	Sort OptListPhoneNumberConfigurationsSort
}

ListPhoneNumberConfigurationsParams is parameters of ListPhoneNumberConfigurations operation.

type ListPhoneNumberConfigurationsRes

type ListPhoneNumberConfigurationsRes interface {
	// contains filtered or unexported methods
}

type ListPhoneNumberConfigurationsSort

type ListPhoneNumberConfigurationsSort string
const (
	ListPhoneNumberConfigurationsSortCreatedAt      ListPhoneNumberConfigurationsSort = "created_at"
	ListPhoneNumberConfigurationsSortMinusCreatedAt ListPhoneNumberConfigurationsSort = "-created_at"
)

func (ListPhoneNumberConfigurationsSort) AllValues

AllValues returns all ListPhoneNumberConfigurationsSort values.

func (ListPhoneNumberConfigurationsSort) MarshalText

func (s ListPhoneNumberConfigurationsSort) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListPhoneNumberConfigurationsSort) UnmarshalText

func (s *ListPhoneNumberConfigurationsSort) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPhoneNumberConfigurationsSort) Validate

type ListPhoneNumberConfigurationsUnauthorized

type ListPhoneNumberConfigurationsUnauthorized struct{}

ListPhoneNumberConfigurationsUnauthorized is response for ListPhoneNumberConfigurations operation.

type ListPhoneNumberConfigurationsUnprocessableEntity

type ListPhoneNumberConfigurationsUnprocessableEntity struct{}

ListPhoneNumberConfigurationsUnprocessableEntity is response for ListPhoneNumberConfigurations operation.

type ListPhoneNumbersFilterStatus

type ListPhoneNumbersFilterStatus string
const (
	ListPhoneNumbersFilterStatusPurchasePending ListPhoneNumbersFilterStatus = "purchase_pending"
	ListPhoneNumbersFilterStatusPurchaseFailed  ListPhoneNumbersFilterStatus = "purchase_failed"
	ListPhoneNumbersFilterStatusPortPending     ListPhoneNumbersFilterStatus = "port_pending"
	ListPhoneNumbersFilterStatusActive          ListPhoneNumbersFilterStatus = "active"
	ListPhoneNumbersFilterStatusDeleted         ListPhoneNumbersFilterStatus = "deleted"
	ListPhoneNumbersFilterStatusPortFailed      ListPhoneNumbersFilterStatus = "port_failed"
	ListPhoneNumbersFilterStatusEmergencyOnly   ListPhoneNumbersFilterStatus = "emergency_only"
	ListPhoneNumbersFilterStatusPortedOut       ListPhoneNumbersFilterStatus = "ported_out"
	ListPhoneNumbersFilterStatusPortOutPending  ListPhoneNumbersFilterStatus = "port_out_pending"
)

func (ListPhoneNumbersFilterStatus) AllValues

AllValues returns all ListPhoneNumbersFilterStatus values.

func (ListPhoneNumbersFilterStatus) MarshalText

func (s ListPhoneNumbersFilterStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListPhoneNumbersFilterStatus) UnmarshalText

func (s *ListPhoneNumbersFilterStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPhoneNumbersFilterStatus) Validate

func (s ListPhoneNumbersFilterStatus) Validate() error

type ListPhoneNumbersFilterVoiceUsagePaymentMethod

type ListPhoneNumbersFilterVoiceUsagePaymentMethod string
const (
	ListPhoneNumbersFilterVoiceUsagePaymentMethodPayPerMinute ListPhoneNumbersFilterVoiceUsagePaymentMethod = "pay-per-minute"
	ListPhoneNumbersFilterVoiceUsagePaymentMethodChannel      ListPhoneNumbersFilterVoiceUsagePaymentMethod = "channel"
)

func (ListPhoneNumbersFilterVoiceUsagePaymentMethod) AllValues

AllValues returns all ListPhoneNumbersFilterVoiceUsagePaymentMethod values.

func (ListPhoneNumbersFilterVoiceUsagePaymentMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*ListPhoneNumbersFilterVoiceUsagePaymentMethod) UnmarshalText

func (s *ListPhoneNumbersFilterVoiceUsagePaymentMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPhoneNumbersFilterVoiceUsagePaymentMethod) Validate

type ListPhoneNumbersJobsFilterType

type ListPhoneNumbersJobsFilterType string

Identifies the type of the background job.

const (
	ListPhoneNumbersJobsFilterTypeUpdateEmergencySettings ListPhoneNumbersJobsFilterType = "update_emergency_settings"
	ListPhoneNumbersJobsFilterTypeDeletePhoneNumbers      ListPhoneNumbersJobsFilterType = "delete_phone_numbers"
	ListPhoneNumbersJobsFilterTypeUpdatePhoneNumbers      ListPhoneNumbersJobsFilterType = "update_phone_numbers"
)

func (ListPhoneNumbersJobsFilterType) AllValues

AllValues returns all ListPhoneNumbersJobsFilterType values.

func (ListPhoneNumbersJobsFilterType) MarshalText

func (s ListPhoneNumbersJobsFilterType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListPhoneNumbersJobsFilterType) UnmarshalText

func (s *ListPhoneNumbersJobsFilterType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPhoneNumbersJobsFilterType) Validate

type ListPhoneNumbersJobsParams

type ListPhoneNumbersJobsParams struct {
	// Filter the phone number jobs by type.
	FilterType OptListPhoneNumbersJobsFilterType
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Specifies the sort order for results. If not given, results are sorted by created_at in descending
	// order.
	Sort OptListPhoneNumbersJobsSort
}

ListPhoneNumbersJobsParams is parameters of ListPhoneNumbersJobs operation.

type ListPhoneNumbersJobsRes

type ListPhoneNumbersJobsRes interface {
	// contains filtered or unexported methods
}

type ListPhoneNumbersJobsResponse

type ListPhoneNumbersJobsResponse struct {
	Data []PhoneNumbersJob `json:"data"`
	Meta OptPaginationMeta `json:"meta"`
}

func (*ListPhoneNumbersJobsResponse) Decode

Decode decodes ListPhoneNumbersJobsResponse from json.

func (*ListPhoneNumbersJobsResponse) Encode

func (s *ListPhoneNumbersJobsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListPhoneNumbersJobsResponse) GetData

GetData returns the value of Data.

func (*ListPhoneNumbersJobsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListPhoneNumbersJobsResponse) MarshalJSON

func (s *ListPhoneNumbersJobsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPhoneNumbersJobsResponse) SetData

SetData sets the value of Data.

func (*ListPhoneNumbersJobsResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListPhoneNumbersJobsResponse) UnmarshalJSON

func (s *ListPhoneNumbersJobsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPhoneNumbersJobsResponse) Validate

func (s *ListPhoneNumbersJobsResponse) Validate() error

type ListPhoneNumbersJobsSort

type ListPhoneNumbersJobsSort string
const (
	ListPhoneNumbersJobsSortCreatedAt ListPhoneNumbersJobsSort = "created_at"
)

func (ListPhoneNumbersJobsSort) AllValues

AllValues returns all ListPhoneNumbersJobsSort values.

func (ListPhoneNumbersJobsSort) MarshalText

func (s ListPhoneNumbersJobsSort) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListPhoneNumbersJobsSort) UnmarshalText

func (s *ListPhoneNumbersJobsSort) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPhoneNumbersJobsSort) Validate

func (s ListPhoneNumbersJobsSort) Validate() error

type ListPhoneNumbersParams

type ListPhoneNumbersParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Filter by phone number tags.
	FilterTag OptString
	// Filter by phone number. Requires at least three digits.
	// Non-numerical characters will result in no values being returned.
	FilterPhoneNumber OptString
	// Filter by phone number status.
	FilterStatus OptListPhoneNumbersFilterStatus
	// Filter by connection_id.
	FilterConnectionID OptStringInt64
	// Filter contains connection name. Requires at least three characters.
	FilterVoiceConnectionNameContains OptString
	// Filter starts with connection name. Requires at least three characters.
	FilterVoiceConnectionNameStartsWith OptString
	// Filter ends with connection name. Requires at least three characters.
	FilterVoiceConnectionNameEndsWith OptString
	// Filter by connection name.
	FilterVoiceConnectionNameEq OptString
	// Filter by usage_payment_method.
	FilterVoiceUsagePaymentMethod OptListPhoneNumbersFilterVoiceUsagePaymentMethod
	// Filter by the billing_group_id associated with phone numbers. To filter to only phone numbers that
	// have no billing group associated them, set the value of this filter to the string 'null'.
	FilterBillingGroupID OptString
	// Filter by the emergency_address_id associated with phone numbers. To filter only phone numbers
	// that have no emergency address associated with them, set the value of this filter to the string
	// 'null'.
	FilterEmergencyAddressID OptStringInt64
	// Filter numbers via the customer_reference set.
	FilterCustomerReference OptString
	// Specifies the sort order for results. If not given, results are sorted by created_at in descending
	// order.
	Sort OptListPhoneNumbersSort
}

ListPhoneNumbersParams is parameters of ListPhoneNumbers operation.

type ListPhoneNumbersRes

type ListPhoneNumbersRes interface {
	// contains filtered or unexported methods
}

type ListPhoneNumbersResponse

type ListPhoneNumbersResponse struct {
	Data []PhoneNumberDetailed `json:"data"`
	Meta OptPaginationMeta     `json:"meta"`
}

func (*ListPhoneNumbersResponse) Decode

func (s *ListPhoneNumbersResponse) Decode(d *jx.Decoder) error

Decode decodes ListPhoneNumbersResponse from json.

func (*ListPhoneNumbersResponse) Encode

func (s *ListPhoneNumbersResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListPhoneNumbersResponse) GetData

GetData returns the value of Data.

func (*ListPhoneNumbersResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListPhoneNumbersResponse) MarshalJSON

func (s *ListPhoneNumbersResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPhoneNumbersResponse) SetData

SetData sets the value of Data.

func (*ListPhoneNumbersResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListPhoneNumbersResponse) UnmarshalJSON

func (s *ListPhoneNumbersResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPhoneNumbersResponse) Validate

func (s *ListPhoneNumbersResponse) Validate() error

type ListPhoneNumbersSort

type ListPhoneNumbersSort string
const (
	ListPhoneNumbersSortPurchasedAt        ListPhoneNumbersSort = "purchased_at"
	ListPhoneNumbersSortPhoneNumber        ListPhoneNumbersSort = "phone_number"
	ListPhoneNumbersSortConnectionName     ListPhoneNumbersSort = "connection_name"
	ListPhoneNumbersSortUsagePaymentMethod ListPhoneNumbersSort = "usage_payment_method"
)

func (ListPhoneNumbersSort) AllValues

AllValues returns all ListPhoneNumbersSort values.

func (ListPhoneNumbersSort) MarshalText

func (s ListPhoneNumbersSort) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListPhoneNumbersSort) UnmarshalText

func (s *ListPhoneNumbersSort) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPhoneNumbersSort) Validate

func (s ListPhoneNumbersSort) Validate() error

type ListPhoneNumbersWithMessagingSettingsParams

type ListPhoneNumbersWithMessagingSettingsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListPhoneNumbersWithMessagingSettingsParams is parameters of ListPhoneNumbersWithMessagingSettings operation.

type ListPhoneNumbersWithMessagingSettingsRes

type ListPhoneNumbersWithMessagingSettingsRes interface {
	// contains filtered or unexported methods
}

type ListPhoneNumbersWithMessagingSettingsResponse

type ListPhoneNumbersWithMessagingSettingsResponse struct {
	Data []PhoneNumberWithMessagingSettings `json:"data"`
	Meta OptPaginationMeta                  `json:"meta"`
}

func (*ListPhoneNumbersWithMessagingSettingsResponse) Decode

Decode decodes ListPhoneNumbersWithMessagingSettingsResponse from json.

func (*ListPhoneNumbersWithMessagingSettingsResponse) Encode

Encode implements json.Marshaler.

func (*ListPhoneNumbersWithMessagingSettingsResponse) GetData

GetData returns the value of Data.

func (*ListPhoneNumbersWithMessagingSettingsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListPhoneNumbersWithMessagingSettingsResponse) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ListPhoneNumbersWithMessagingSettingsResponse) SetData

SetData sets the value of Data.

func (*ListPhoneNumbersWithMessagingSettingsResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListPhoneNumbersWithMessagingSettingsResponse) UnmarshalJSON

func (s *ListPhoneNumbersWithMessagingSettingsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPhoneNumbersWithMessagingSettingsResponse) Validate

type ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod

type ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod string
const (
	ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethodPayPerMinute ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod = "pay-per-minute"
	ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethodChannel      ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod = "channel"
)

func (ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod) AllValues

AllValues returns all ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod values.

func (ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod) Validate

type ListPhoneNumbersWithVoiceSettingsParams

type ListPhoneNumbersWithVoiceSettingsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Filter by phone number. Requires at least three digits.
	// Non-numerical characters will result in no values being returned.
	FilterPhoneNumber OptString
	// Filter contains connection name. Requires at least three characters.
	FilterConnectionNameContains OptString
	// Filter numbers via the customer_reference set.
	FilterCustomerReference OptString
	// Filter by usage_payment_method.
	FilterVoiceUsagePaymentMethod OptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod
	// Specifies the sort order for results. If not given, results are sorted by created_at in descending
	// order.
	Sort OptListPhoneNumbersWithVoiceSettingsSort
}

ListPhoneNumbersWithVoiceSettingsParams is parameters of ListPhoneNumbersWithVoiceSettings operation.

type ListPhoneNumbersWithVoiceSettingsRes

type ListPhoneNumbersWithVoiceSettingsRes interface {
	// contains filtered or unexported methods
}

type ListPhoneNumbersWithVoiceSettingsResponse

type ListPhoneNumbersWithVoiceSettingsResponse struct {
	Data []PhoneNumberWithVoiceSettings `json:"data"`
	Meta OptPaginationMeta              `json:"meta"`
}

func (*ListPhoneNumbersWithVoiceSettingsResponse) Decode

Decode decodes ListPhoneNumbersWithVoiceSettingsResponse from json.

func (*ListPhoneNumbersWithVoiceSettingsResponse) Encode

Encode implements json.Marshaler.

func (*ListPhoneNumbersWithVoiceSettingsResponse) GetData

GetData returns the value of Data.

func (*ListPhoneNumbersWithVoiceSettingsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListPhoneNumbersWithVoiceSettingsResponse) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ListPhoneNumbersWithVoiceSettingsResponse) SetData

SetData sets the value of Data.

func (*ListPhoneNumbersWithVoiceSettingsResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListPhoneNumbersWithVoiceSettingsResponse) UnmarshalJSON

func (s *ListPhoneNumbersWithVoiceSettingsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPhoneNumbersWithVoiceSettingsResponse) Validate

type ListPhoneNumbersWithVoiceSettingsSort

type ListPhoneNumbersWithVoiceSettingsSort string
const (
	ListPhoneNumbersWithVoiceSettingsSortPurchasedAt        ListPhoneNumbersWithVoiceSettingsSort = "purchased_at"
	ListPhoneNumbersWithVoiceSettingsSortPhoneNumber        ListPhoneNumbersWithVoiceSettingsSort = "phone_number"
	ListPhoneNumbersWithVoiceSettingsSortConnectionName     ListPhoneNumbersWithVoiceSettingsSort = "connection_name"
	ListPhoneNumbersWithVoiceSettingsSortUsagePaymentMethod ListPhoneNumbersWithVoiceSettingsSort = "usage_payment_method"
)

func (ListPhoneNumbersWithVoiceSettingsSort) AllValues

AllValues returns all ListPhoneNumbersWithVoiceSettingsSort values.

func (ListPhoneNumbersWithVoiceSettingsSort) MarshalText

func (s ListPhoneNumbersWithVoiceSettingsSort) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListPhoneNumbersWithVoiceSettingsSort) UnmarshalText

func (s *ListPhoneNumbersWithVoiceSettingsSort) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPhoneNumbersWithVoiceSettingsSort) Validate

type ListPortingAdditionalDocuments

type ListPortingAdditionalDocuments struct {
	Data []PortingAdditionalDocument `json:"data"`
	Meta OptPaginationMeta           `json:"meta"`
}

func (*ListPortingAdditionalDocuments) Decode

Decode decodes ListPortingAdditionalDocuments from json.

func (*ListPortingAdditionalDocuments) Encode

Encode implements json.Marshaler.

func (*ListPortingAdditionalDocuments) GetData

GetData returns the value of Data.

func (*ListPortingAdditionalDocuments) GetMeta

GetMeta returns the value of Meta.

func (*ListPortingAdditionalDocuments) MarshalJSON

func (s *ListPortingAdditionalDocuments) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortingAdditionalDocuments) SetData

SetData sets the value of Data.

func (*ListPortingAdditionalDocuments) SetMeta

SetMeta sets the value of Meta.

func (*ListPortingAdditionalDocuments) UnmarshalJSON

func (s *ListPortingAdditionalDocuments) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPortingAdditionalDocuments) Validate

func (s *ListPortingAdditionalDocuments) Validate() error

type ListPortingLOAConfigurations

type ListPortingLOAConfigurations struct {
	Data []PortingLOAConfiguration `json:"data"`
	Meta OptPaginationMeta         `json:"meta"`
}

func (*ListPortingLOAConfigurations) Decode

Decode decodes ListPortingLOAConfigurations from json.

func (*ListPortingLOAConfigurations) Encode

func (s *ListPortingLOAConfigurations) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListPortingLOAConfigurations) GetData

GetData returns the value of Data.

func (*ListPortingLOAConfigurations) GetMeta

GetMeta returns the value of Meta.

func (*ListPortingLOAConfigurations) MarshalJSON

func (s *ListPortingLOAConfigurations) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortingLOAConfigurations) SetData

SetData sets the value of Data.

func (*ListPortingLOAConfigurations) SetMeta

SetMeta sets the value of Meta.

func (*ListPortingLOAConfigurations) UnmarshalJSON

func (s *ListPortingLOAConfigurations) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPortingLOAConfigurations) Validate

func (s *ListPortingLOAConfigurations) Validate() error

type ListPortingOrder

type ListPortingOrder struct {
	Data []PortingOrder    `json:"data"`
	Meta OptPaginationMeta `json:"meta"`
}

func (*ListPortingOrder) Decode

func (s *ListPortingOrder) Decode(d *jx.Decoder) error

Decode decodes ListPortingOrder from json.

func (*ListPortingOrder) Encode

func (s *ListPortingOrder) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListPortingOrder) GetData

func (s *ListPortingOrder) GetData() []PortingOrder

GetData returns the value of Data.

func (*ListPortingOrder) GetMeta

func (s *ListPortingOrder) GetMeta() OptPaginationMeta

GetMeta returns the value of Meta.

func (*ListPortingOrder) MarshalJSON

func (s *ListPortingOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortingOrder) SetData

func (s *ListPortingOrder) SetData(val []PortingOrder)

SetData sets the value of Data.

func (*ListPortingOrder) SetMeta

func (s *ListPortingOrder) SetMeta(val OptPaginationMeta)

SetMeta sets the value of Meta.

func (*ListPortingOrder) UnmarshalJSON

func (s *ListPortingOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPortingOrder) Validate

func (s *ListPortingOrder) Validate() error

type ListPortingOrderActivationJobsParams

type ListPortingOrderActivationJobsParams struct {
	// Porting Order id.
	ID uuid.UUID
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListPortingOrderActivationJobsParams is parameters of ListPortingOrderActivationJobs operation.

type ListPortingOrderActivationJobsRes

type ListPortingOrderActivationJobsRes interface {
	// contains filtered or unexported methods
}

type ListPortingOrderActivationJobsUnauthorized

type ListPortingOrderActivationJobsUnauthorized struct{}

ListPortingOrderActivationJobsUnauthorized is response for ListPortingOrderActivationJobs operation.

type ListPortingOrderActivationJobsUnprocessableEntity

type ListPortingOrderActivationJobsUnprocessableEntity struct{}

ListPortingOrderActivationJobsUnprocessableEntity is response for ListPortingOrderActivationJobs operation.

type ListPortingOrderCommentsParams

type ListPortingOrderCommentsParams struct {
	// Porting Order id.
	ID uuid.UUID
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListPortingOrderCommentsParams is parameters of ListPortingOrderComments operation.

type ListPortingOrderCommentsRes

type ListPortingOrderCommentsRes interface {
	// contains filtered or unexported methods
}

type ListPortingOrderCommentsUnauthorized

type ListPortingOrderCommentsUnauthorized struct{}

ListPortingOrderCommentsUnauthorized is response for ListPortingOrderComments operation.

type ListPortingOrderCommentsUnprocessableEntity

type ListPortingOrderCommentsUnprocessableEntity struct{}

ListPortingOrderCommentsUnprocessableEntity is response for ListPortingOrderComments operation.

type ListPortingOrderRequirements

type ListPortingOrderRequirements struct {
	Data []PortingOrderRequirementDetail `json:"data"`
	Meta OptPaginationMeta               `json:"meta"`
}

func (*ListPortingOrderRequirements) Decode

Decode decodes ListPortingOrderRequirements from json.

func (*ListPortingOrderRequirements) Encode

func (s *ListPortingOrderRequirements) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListPortingOrderRequirements) GetData

GetData returns the value of Data.

func (*ListPortingOrderRequirements) GetMeta

GetMeta returns the value of Meta.

func (*ListPortingOrderRequirements) MarshalJSON

func (s *ListPortingOrderRequirements) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortingOrderRequirements) SetData

SetData sets the value of Data.

func (*ListPortingOrderRequirements) SetMeta

SetMeta sets the value of Meta.

func (*ListPortingOrderRequirements) UnmarshalJSON

func (s *ListPortingOrderRequirements) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPortingOrderRequirements) Validate

func (s *ListPortingOrderRequirements) Validate() error

type ListPortingOrderRequirementsParams

type ListPortingOrderRequirementsParams struct {
	// Porting Order id.
	ID uuid.UUID
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListPortingOrderRequirementsParams is parameters of ListPortingOrderRequirements operation.

type ListPortingOrderRequirementsRes

type ListPortingOrderRequirementsRes interface {
	// contains filtered or unexported methods
}

type ListPortingOrderRequirementsUnauthorized

type ListPortingOrderRequirementsUnauthorized struct{}

ListPortingOrderRequirementsUnauthorized is response for ListPortingOrderRequirements operation.

type ListPortingOrderRequirementsUnprocessableEntity

type ListPortingOrderRequirementsUnprocessableEntity struct{}

ListPortingOrderRequirementsUnprocessableEntity is response for ListPortingOrderRequirements operation.

type ListPortingOrdersActivationJobs

type ListPortingOrdersActivationJobs struct {
	Data []PortingOrdersActivationJob `json:"data"`
	Meta OptPaginationMeta            `json:"meta"`
}

func (*ListPortingOrdersActivationJobs) Decode

Decode decodes ListPortingOrdersActivationJobs from json.

func (*ListPortingOrdersActivationJobs) Encode

Encode implements json.Marshaler.

func (*ListPortingOrdersActivationJobs) GetData

GetData returns the value of Data.

func (*ListPortingOrdersActivationJobs) GetMeta

GetMeta returns the value of Meta.

func (*ListPortingOrdersActivationJobs) MarshalJSON

func (s *ListPortingOrdersActivationJobs) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortingOrdersActivationJobs) SetData

SetData sets the value of Data.

func (*ListPortingOrdersActivationJobs) SetMeta

SetMeta sets the value of Meta.

func (*ListPortingOrdersActivationJobs) UnmarshalJSON

func (s *ListPortingOrdersActivationJobs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPortingOrdersActivationJobs) Validate

func (s *ListPortingOrdersActivationJobs) Validate() error

type ListPortingOrdersComments

type ListPortingOrdersComments struct {
	Data []PortingOrdersComment `json:"data"`
	Meta OptPaginationMeta      `json:"meta"`
}

func (*ListPortingOrdersComments) Decode

func (s *ListPortingOrdersComments) Decode(d *jx.Decoder) error

Decode decodes ListPortingOrdersComments from json.

func (*ListPortingOrdersComments) Encode

func (s *ListPortingOrdersComments) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListPortingOrdersComments) GetData

GetData returns the value of Data.

func (*ListPortingOrdersComments) GetMeta

GetMeta returns the value of Meta.

func (*ListPortingOrdersComments) MarshalJSON

func (s *ListPortingOrdersComments) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortingOrdersComments) SetData

SetData sets the value of Data.

func (*ListPortingOrdersComments) SetMeta

SetMeta sets the value of Meta.

func (*ListPortingOrdersComments) UnmarshalJSON

func (s *ListPortingOrdersComments) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPortingOrdersComments) Validate

func (s *ListPortingOrdersComments) Validate() error

type ListPortingOrdersExceptionTypes

type ListPortingOrdersExceptionTypes struct {
	Data []PortingOrdersExceptionType `json:"data"`
}

func (*ListPortingOrdersExceptionTypes) Decode

Decode decodes ListPortingOrdersExceptionTypes from json.

func (*ListPortingOrdersExceptionTypes) Encode

Encode implements json.Marshaler.

func (*ListPortingOrdersExceptionTypes) GetData

GetData returns the value of Data.

func (*ListPortingOrdersExceptionTypes) MarshalJSON

func (s *ListPortingOrdersExceptionTypes) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortingOrdersExceptionTypes) SetData

SetData sets the value of Data.

func (*ListPortingOrdersExceptionTypes) UnmarshalJSON

func (s *ListPortingOrdersExceptionTypes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPortingOrdersExceptionTypes) Validate

func (s *ListPortingOrdersExceptionTypes) Validate() error

type ListPortingOrdersParams

type ListPortingOrdersParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Include the first 50 phone number objects in the results.
	IncludePhoneNumbers OptBool
	// Filter results by status.
	FilterStatus OptFilterByPortingOrderStatus
	// Filter porting orders by multiple statuses.
	FilterStatusIn OptFilterByPortingOrderStatusIn
	// Filter results by customer_reference.
	FilterCustomerReference OptString
	// Filter results by parent_support_key.
	FilterParentSupportKey OptString
	// Filter results by country ISO 3166-1 alpha-2 code.
	FilterPhoneNumbersCountryCode OptString
	// Filter results by old service provider.
	FilterPhoneNumbersCarrierName OptString
	// Filter results by porting order type.
	FilterMiscType OptPortingOrderType
	// Filter results by person or company name.
	FilterEndUserAdminEntityName OptString
	// Filter results by authorized person.
	FilterEndUserAdminAuthPersonName OptString
	// Filter results by fast port eligible.
	FilterActivationSettingsFastPortEligible OptBool
	// Filter results by foc date later than this value.
	FilterActivationSettingsFocDatetimeRequestedGt OptString
	// Filter results by foc date earlier than this value.
	FilterActivationSettingsFocDatetimeRequestedLt OptString
	// Filter results by full or partial phone_number.
	FilterPhoneNumbersPhoneNumberContains OptString
	// Specifies the sort order for results. If not given, results are sorted by created_at in descending
	// order.
	Sort OptListPortingOrdersSort
}

ListPortingOrdersParams is parameters of ListPortingOrders operation.

type ListPortingOrdersRes

type ListPortingOrdersRes interface {
	// contains filtered or unexported methods
}

type ListPortingOrdersSort

type ListPortingOrdersSort string
const (
	ListPortingOrdersSortCreatedAt                                      ListPortingOrdersSort = "created_at"
	ListPortingOrdersSortMinusCreatedAt                                 ListPortingOrdersSort = "-created_at"
	ListPortingOrdersSortActivationSettingsDotFocDatetimeRequested      ListPortingOrdersSort = "activation_settings.foc_datetime_requested"
	ListPortingOrdersSortMinusActivationSettingsDotFocDatetimeRequested ListPortingOrdersSort = "-activation_settings.foc_datetime_requested"
)

func (ListPortingOrdersSort) AllValues

AllValues returns all ListPortingOrdersSort values.

func (ListPortingOrdersSort) MarshalText

func (s ListPortingOrdersSort) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListPortingOrdersSort) UnmarshalText

func (s *ListPortingOrdersSort) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPortingOrdersSort) Validate

func (s ListPortingOrdersSort) Validate() error

type ListPortingOrdersUnauthorized

type ListPortingOrdersUnauthorized struct{}

ListPortingOrdersUnauthorized is response for ListPortingOrders operation.

type ListPortingOrdersUnprocessableEntity

type ListPortingOrdersUnprocessableEntity struct{}

ListPortingOrdersUnprocessableEntity is response for ListPortingOrders operation.

type ListPortingPhoneNumberConfigurations

type ListPortingPhoneNumberConfigurations struct {
	Data []PortingPhoneNumberConfiguration `json:"data"`
	Meta OptPaginationMeta                 `json:"meta"`
}

func (*ListPortingPhoneNumberConfigurations) Decode

Decode decodes ListPortingPhoneNumberConfigurations from json.

func (*ListPortingPhoneNumberConfigurations) Encode

Encode implements json.Marshaler.

func (*ListPortingPhoneNumberConfigurations) GetData

GetData returns the value of Data.

func (*ListPortingPhoneNumberConfigurations) GetMeta

GetMeta returns the value of Meta.

func (*ListPortingPhoneNumberConfigurations) MarshalJSON

func (s *ListPortingPhoneNumberConfigurations) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortingPhoneNumberConfigurations) SetData

SetData sets the value of Data.

func (*ListPortingPhoneNumberConfigurations) SetMeta

SetMeta sets the value of Meta.

func (*ListPortingPhoneNumberConfigurations) UnmarshalJSON

func (s *ListPortingPhoneNumberConfigurations) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListPortingPhoneNumbersApplicationJSON

type ListPortingPhoneNumbersApplicationJSON struct {
	Data []PortingPhoneNumber `json:"data"`
	Meta OptPaginationMeta    `json:"meta"`
}

func (*ListPortingPhoneNumbersApplicationJSON) Decode

Decode decodes ListPortingPhoneNumbersApplicationJSON from json.

func (*ListPortingPhoneNumbersApplicationJSON) Encode

Encode implements json.Marshaler.

func (*ListPortingPhoneNumbersApplicationJSON) GetData

GetData returns the value of Data.

func (*ListPortingPhoneNumbersApplicationJSON) GetMeta

GetMeta returns the value of Meta.

func (*ListPortingPhoneNumbersApplicationJSON) MarshalJSON

func (s *ListPortingPhoneNumbersApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortingPhoneNumbersApplicationJSON) SetData

SetData sets the value of Data.

func (*ListPortingPhoneNumbersApplicationJSON) SetMeta

SetMeta sets the value of Meta.

func (*ListPortingPhoneNumbersApplicationJSON) UnmarshalJSON

func (s *ListPortingPhoneNumbersApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPortingPhoneNumbersApplicationJSON) Validate

type ListPortingPhoneNumbersFilterPortingOrderStatus

type ListPortingPhoneNumbersFilterPortingOrderStatus string
const (
	ListPortingPhoneNumbersFilterPortingOrderStatusDraft            ListPortingPhoneNumbersFilterPortingOrderStatus = "draft"
	ListPortingPhoneNumbersFilterPortingOrderStatusInProcess        ListPortingPhoneNumbersFilterPortingOrderStatus = "in-process"
	ListPortingPhoneNumbersFilterPortingOrderStatusSubmitted        ListPortingPhoneNumbersFilterPortingOrderStatus = "submitted"
	ListPortingPhoneNumbersFilterPortingOrderStatusException        ListPortingPhoneNumbersFilterPortingOrderStatus = "exception"
	ListPortingPhoneNumbersFilterPortingOrderStatusFocDateConfirmed ListPortingPhoneNumbersFilterPortingOrderStatus = "foc-date-confirmed"
	ListPortingPhoneNumbersFilterPortingOrderStatusCancelPending    ListPortingPhoneNumbersFilterPortingOrderStatus = "cancel-pending"
	ListPortingPhoneNumbersFilterPortingOrderStatusPorted           ListPortingPhoneNumbersFilterPortingOrderStatus = "ported"
	ListPortingPhoneNumbersFilterPortingOrderStatusCancelled        ListPortingPhoneNumbersFilterPortingOrderStatus = "cancelled"
)

func (ListPortingPhoneNumbersFilterPortingOrderStatus) AllValues

AllValues returns all ListPortingPhoneNumbersFilterPortingOrderStatus values.

func (ListPortingPhoneNumbersFilterPortingOrderStatus) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*ListPortingPhoneNumbersFilterPortingOrderStatus) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPortingPhoneNumbersFilterPortingOrderStatus) Validate

type ListPortingPhoneNumbersParams

type ListPortingPhoneNumbersParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Filter results by porting order id.
	FilterPortingOrderID OptUUID
	// Filter results by a list of porting order ids.
	FilterPortingOrderIDIn []uuid.UUID
	// Filter results by support key.
	FilterSupportKeyEq OptString
	// Filter results by a list of support keys.
	FilterSupportKeyIn []string
	// Filter results by phone number.
	FilterPhoneNumber OptString
	// Filter results by a list of phone numbers.
	FilterPhoneNumberIn []string
	// Filter results by porting order status.
	FilterPortingOrderStatus OptListPortingPhoneNumbersFilterPortingOrderStatus
	// Filter results by activation status.
	FilterActivationStatus OptPortingOrderActivationStatus
	// Filter results by portability status.
	FilterPortabilityStatus OptPortabilityStatus
}

ListPortingPhoneNumbersParams is parameters of ListPortingPhoneNumbers operation.

type ListPortingPhoneNumbersRes

type ListPortingPhoneNumbersRes interface {
	// contains filtered or unexported methods
}

type ListPortingPhoneNumbersTextCsv

type ListPortingPhoneNumbersTextCsv struct {
	Data io.Reader
}

func (ListPortingPhoneNumbersTextCsv) Read

func (s ListPortingPhoneNumbersTextCsv) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ListPortingPhoneNumbersUnauthorized

type ListPortingPhoneNumbersUnauthorized struct{}

ListPortingPhoneNumbersUnauthorized is response for ListPortingPhoneNumbers operation.

type ListPortingPhoneNumbersUnprocessableEntity

type ListPortingPhoneNumbersUnprocessableEntity struct{}

ListPortingPhoneNumbersUnprocessableEntity is response for ListPortingPhoneNumbers operation.

type ListPortingReports

type ListPortingReports struct {
	Data []PortingReport   `json:"data"`
	Meta OptPaginationMeta `json:"meta"`
}

func (*ListPortingReports) Decode

func (s *ListPortingReports) Decode(d *jx.Decoder) error

Decode decodes ListPortingReports from json.

func (*ListPortingReports) Encode

func (s *ListPortingReports) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListPortingReports) GetData

func (s *ListPortingReports) GetData() []PortingReport

GetData returns the value of Data.

func (*ListPortingReports) GetMeta

GetMeta returns the value of Meta.

func (*ListPortingReports) MarshalJSON

func (s *ListPortingReports) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortingReports) SetData

func (s *ListPortingReports) SetData(val []PortingReport)

SetData sets the value of Data.

func (*ListPortingReports) SetMeta

func (s *ListPortingReports) SetMeta(val OptPaginationMeta)

SetMeta sets the value of Meta.

func (*ListPortingReports) UnmarshalJSON

func (s *ListPortingReports) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPortingReports) Validate

func (s *ListPortingReports) Validate() error

type ListPortingReportsFilterReportType

type ListPortingReportsFilterReportType string
const (
	ListPortingReportsFilterReportTypeExportPortingOrdersCsv ListPortingReportsFilterReportType = "export_porting_orders_csv"
)

func (ListPortingReportsFilterReportType) AllValues

AllValues returns all ListPortingReportsFilterReportType values.

func (ListPortingReportsFilterReportType) MarshalText

func (s ListPortingReportsFilterReportType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListPortingReportsFilterReportType) UnmarshalText

func (s *ListPortingReportsFilterReportType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPortingReportsFilterReportType) Validate

type ListPortingReportsFilterStatus

type ListPortingReportsFilterStatus string
const (
	ListPortingReportsFilterStatusPending   ListPortingReportsFilterStatus = "pending"
	ListPortingReportsFilterStatusCompleted ListPortingReportsFilterStatus = "completed"
)

func (ListPortingReportsFilterStatus) AllValues

AllValues returns all ListPortingReportsFilterStatus values.

func (ListPortingReportsFilterStatus) MarshalText

func (s ListPortingReportsFilterStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListPortingReportsFilterStatus) UnmarshalText

func (s *ListPortingReportsFilterStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPortingReportsFilterStatus) Validate

type ListPortingReportsInternalServerError

type ListPortingReportsInternalServerError struct{}

ListPortingReportsInternalServerError is response for ListPortingReports operation.

type ListPortingReportsParams

type ListPortingReportsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Filter reports of a specific type.
	FilterReportType OptListPortingReportsFilterReportType
	// Filter reports of a specific status.
	FilterStatus OptListPortingReportsFilterStatus
}

ListPortingReportsParams is parameters of ListPortingReports operation.

type ListPortingReportsRes

type ListPortingReportsRes interface {
	// contains filtered or unexported methods
}

type ListPortingReportsUnprocessableEntity

type ListPortingReportsUnprocessableEntity struct{}

ListPortingReportsUnprocessableEntity is response for ListPortingReports operation.

type ListPortingVerificationCodes

type ListPortingVerificationCodes struct {
	Data []PortingVerificationCode `json:"data"`
	Meta OptPaginationMeta         `json:"meta"`
}

func (*ListPortingVerificationCodes) Decode

Decode decodes ListPortingVerificationCodes from json.

func (*ListPortingVerificationCodes) Encode

func (s *ListPortingVerificationCodes) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListPortingVerificationCodes) GetData

GetData returns the value of Data.

func (*ListPortingVerificationCodes) GetMeta

GetMeta returns the value of Meta.

func (*ListPortingVerificationCodes) MarshalJSON

func (s *ListPortingVerificationCodes) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortingVerificationCodes) SetData

SetData sets the value of Data.

func (*ListPortingVerificationCodes) SetMeta

SetMeta sets the value of Meta.

func (*ListPortingVerificationCodes) UnmarshalJSON

func (s *ListPortingVerificationCodes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListPortoutComments

type ListPortoutComments struct {
	Data []PortoutComment `json:"data"`
	Meta OptMetadata      `json:"meta"`
}

func (*ListPortoutComments) Decode

func (s *ListPortoutComments) Decode(d *jx.Decoder) error

Decode decodes ListPortoutComments from json.

func (*ListPortoutComments) Encode

func (s *ListPortoutComments) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListPortoutComments) GetData

func (s *ListPortoutComments) GetData() []PortoutComment

GetData returns the value of Data.

func (*ListPortoutComments) GetMeta

func (s *ListPortoutComments) GetMeta() OptMetadata

GetMeta returns the value of Meta.

func (*ListPortoutComments) MarshalJSON

func (s *ListPortoutComments) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortoutComments) SetData

func (s *ListPortoutComments) SetData(val []PortoutComment)

SetData sets the value of Data.

func (*ListPortoutComments) SetMeta

func (s *ListPortoutComments) SetMeta(val OptMetadata)

SetMeta sets the value of Meta.

func (*ListPortoutComments) UnmarshalJSON

func (s *ListPortoutComments) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPortoutComments) Validate

func (s *ListPortoutComments) Validate() error

type ListPortoutRequestFilterStatus

type ListPortoutRequestFilterStatus string
const (
	ListPortoutRequestFilterStatusPending         ListPortoutRequestFilterStatus = "pending"
	ListPortoutRequestFilterStatusAuthorized      ListPortoutRequestFilterStatus = "authorized"
	ListPortoutRequestFilterStatusPorted          ListPortoutRequestFilterStatus = "ported"
	ListPortoutRequestFilterStatusRejected        ListPortoutRequestFilterStatus = "rejected"
	ListPortoutRequestFilterStatusRejectedPending ListPortoutRequestFilterStatus = "rejected-pending"
	ListPortoutRequestFilterStatusCanceled        ListPortoutRequestFilterStatus = "canceled"
)

func (ListPortoutRequestFilterStatus) AllValues

AllValues returns all ListPortoutRequestFilterStatus values.

func (ListPortoutRequestFilterStatus) MarshalText

func (s ListPortoutRequestFilterStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListPortoutRequestFilterStatus) UnmarshalText

func (s *ListPortoutRequestFilterStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListPortoutRequestFilterStatus) Validate

type ListPortoutRequestNotFound

type ListPortoutRequestNotFound struct{}

ListPortoutRequestNotFound is response for ListPortoutRequest operation.

type ListPortoutRequestParams

type ListPortoutRequestParams struct {
	// Filter by new carrier name.
	FilterCarrierName OptString
	// Filter by new carrier spid.
	FilterSpid OptString
	// Filter by portout status.
	FilterStatus OptListPortoutRequestFilterStatus
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListPortoutRequestParams is parameters of ListPortoutRequest operation.

type ListPortoutRequestRes

type ListPortoutRequestRes interface {
	// contains filtered or unexported methods
}

type ListPortoutRequestUnauthorized

type ListPortoutRequestUnauthorized struct{}

ListPortoutRequestUnauthorized is response for ListPortoutRequest operation.

type ListPortoutRequestUnprocessableEntity

type ListPortoutRequestUnprocessableEntity struct{}

ListPortoutRequestUnprocessableEntity is response for ListPortoutRequest operation.

type ListPortoutResponse

type ListPortoutResponse struct {
	Data []PortoutDetails `json:"data"`
	Meta OptMetadata      `json:"meta"`
}

func (*ListPortoutResponse) Decode

func (s *ListPortoutResponse) Decode(d *jx.Decoder) error

Decode decodes ListPortoutResponse from json.

func (*ListPortoutResponse) Encode

func (s *ListPortoutResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListPortoutResponse) GetData

func (s *ListPortoutResponse) GetData() []PortoutDetails

GetData returns the value of Data.

func (*ListPortoutResponse) GetMeta

func (s *ListPortoutResponse) GetMeta() OptMetadata

GetMeta returns the value of Meta.

func (*ListPortoutResponse) MarshalJSON

func (s *ListPortoutResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListPortoutResponse) SetData

func (s *ListPortoutResponse) SetData(val []PortoutDetails)

SetData sets the value of Data.

func (*ListPortoutResponse) SetMeta

func (s *ListPortoutResponse) SetMeta(val OptMetadata)

SetMeta sets the value of Meta.

func (*ListPortoutResponse) UnmarshalJSON

func (s *ListPortoutResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListPortoutResponse) Validate

func (s *ListPortoutResponse) Validate() error

type ListProfilePhoneNumbersParams

type ListProfilePhoneNumbersParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// The id of the messaging profile to retrieve.
	ID uuid.UUID
}

ListProfilePhoneNumbersParams is parameters of ListProfilePhoneNumbers operation.

type ListProfilePhoneNumbersRes

type ListProfilePhoneNumbersRes interface {
	// contains filtered or unexported methods
}

type ListProfilesParams

type ListProfilesParams struct {
	FilterName OptString
	PageSize   OptInt
	PageNumber OptInt
}

ListProfilesParams is parameters of ListProfiles operation.

type ListProfilesRes

type ListProfilesRes interface {
	// contains filtered or unexported methods
}

type ListQueueCallsParams

type ListQueueCallsParams struct {
	// Uniquely identifies the queue by name.
	QueueName string
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListQueueCallsParams is parameters of ListQueueCalls operation.

type ListQueueCallsRes

type ListQueueCallsRes interface {
	// contains filtered or unexported methods
}

type ListQueueCallsResponse

type ListQueueCallsResponse struct {
	Data []QueueCall       `json:"data"`
	Meta OptPaginationMeta `json:"meta"`
}

func (*ListQueueCallsResponse) Decode

func (s *ListQueueCallsResponse) Decode(d *jx.Decoder) error

Decode decodes ListQueueCallsResponse from json.

func (*ListQueueCallsResponse) Encode

func (s *ListQueueCallsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListQueueCallsResponse) GetData

func (s *ListQueueCallsResponse) GetData() []QueueCall

GetData returns the value of Data.

func (*ListQueueCallsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListQueueCallsResponse) MarshalJSON

func (s *ListQueueCallsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListQueueCallsResponse) SetData

func (s *ListQueueCallsResponse) SetData(val []QueueCall)

SetData sets the value of Data.

func (*ListQueueCallsResponse) SetMeta

func (s *ListQueueCallsResponse) SetMeta(val OptPaginationMeta)

SetMeta sets the value of Meta.

func (*ListQueueCallsResponse) UnmarshalJSON

func (s *ListQueueCallsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListQueueCallsResponse) Validate

func (s *ListQueueCallsResponse) Validate() error

type ListRecordingTranscriptionsResponse

type ListRecordingTranscriptionsResponse struct {
	Data []RecordingTranscription `json:"data"`
	Meta OptCursorPaginationMeta  `json:"meta"`
}

func (*ListRecordingTranscriptionsResponse) Decode

Decode decodes ListRecordingTranscriptionsResponse from json.

func (*ListRecordingTranscriptionsResponse) Encode

Encode implements json.Marshaler.

func (*ListRecordingTranscriptionsResponse) GetData

GetData returns the value of Data.

func (*ListRecordingTranscriptionsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListRecordingTranscriptionsResponse) MarshalJSON

func (s *ListRecordingTranscriptionsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListRecordingTranscriptionsResponse) SetData

SetData sets the value of Data.

func (*ListRecordingTranscriptionsResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListRecordingTranscriptionsResponse) UnmarshalJSON

func (s *ListRecordingTranscriptionsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListRecordingTranscriptionsResponse) Validate

type ListRegulatoryRequirements

type ListRegulatoryRequirements struct {
	Data []RegulatoryRequirements `json:"data"`
	Meta OptPaginationMeta        `json:"meta"`
}

func (*ListRegulatoryRequirements) Decode

Decode decodes ListRegulatoryRequirements from json.

func (*ListRegulatoryRequirements) Encode

func (s *ListRegulatoryRequirements) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListRegulatoryRequirements) GetData

GetData returns the value of Data.

func (*ListRegulatoryRequirements) GetMeta

GetMeta returns the value of Meta.

func (*ListRegulatoryRequirements) MarshalJSON

func (s *ListRegulatoryRequirements) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListRegulatoryRequirements) SetData

SetData sets the value of Data.

func (*ListRegulatoryRequirements) SetMeta

SetMeta sets the value of Meta.

func (*ListRegulatoryRequirements) UnmarshalJSON

func (s *ListRegulatoryRequirements) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListRegulatoryRequirementsParams

type ListRegulatoryRequirementsParams struct {
	// Record type phone number/ phone numbers.
	FilterPhoneNumber string
}

ListRegulatoryRequirementsParams is parameters of ListRegulatoryRequirements operation.

type ListRegulatoryRequirementsRes

type ListRegulatoryRequirementsRes interface {
	// contains filtered or unexported methods
}

type ListRequirementTypesParams

type ListRequirementTypesParams struct {
	// Filters requirement types to those whose name contains a certain string.
	FilterNameContains OptString
	// Specifies the sort order for results. If you want to sort by a field in ascending order, include
	// it as a sort parameter. If you want to sort in descending order, prepend a `-` in front of the
	// field name.
	Sort OptDocReqsRequirementTypesSort
}

ListRequirementTypesParams is parameters of ListRequirementTypes operation.

type ListRequirementTypesRes

type ListRequirementTypesRes interface {
	// contains filtered or unexported methods
}

type ListRequirementsParams

type ListRequirementsParams struct {
	// Filters results to those applying to a 2-character (ISO 3166-1 alpha-2) country code.
	FilterCountryCode OptString
	// Filters results to those applying to a specific `phone_number_type`.
	FilterPhoneNumberType OptDocReqsPhoneNumberTypeFilter
	// Filters requirements to those applying to a specific action.
	FilterAction OptDocReqsActionFilter
	// Specifies the sort order for results. If you want to sort by a field in ascending order, include
	// it as a sort parameter. If you want to sort in descending order, prepend a `-` in front of the
	// field name.
	Sort OptDocReqsRequirementsSort
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListRequirementsParams is parameters of ListRequirements operation.

type ListRequirementsRes

type ListRequirementsRes interface {
	// contains filtered or unexported methods
}

type ListRequirementsResponse

type ListRequirementsResponse struct {
	Data DocReqsRequirementList `json:"data"`
	Meta OptPaginationMeta      `json:"meta"`
}

func (*ListRequirementsResponse) Decode

func (s *ListRequirementsResponse) Decode(d *jx.Decoder) error

Decode decodes ListRequirementsResponse from json.

func (*ListRequirementsResponse) Encode

func (s *ListRequirementsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListRequirementsResponse) GetData

GetData returns the value of Data.

func (*ListRequirementsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListRequirementsResponse) MarshalJSON

func (s *ListRequirementsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListRequirementsResponse) SetData

SetData sets the value of Data.

func (*ListRequirementsResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListRequirementsResponse) UnmarshalJSON

func (s *ListRequirementsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListRequirementsResponse) Validate

func (s *ListRequirementsResponse) Validate() error

type ListRoomRecordingsParams

type ListRoomRecordingsParams struct {
	// ISO 8601 date for filtering room recordings ended on that date.
	FilterDateEndedAtEq OptDate
	// ISO 8601 date for filtering room recordings ended after that date.
	FilterDateEndedAtGte OptDate
	// ISO 8601 date for filtering room recordings ended before that date.
	FilterDateEndedAtLte OptDate
	// ISO 8601 date for filtering room recordings started on that date.
	FilterDateStartedAtEq OptDate
	// ISO 8601 date for filtering room recordings started after that date.
	FilterDateStartedAtGte OptDate
	// ISO 8601 date for filtering room recordings started before that date.
	FilterDateStartedAtLte OptDate
	// Room_id for filtering room recordings.
	FilterRoomID OptUUID
	// Participant_id for filtering room recordings.
	FilterParticipantID OptUUID
	// Session_id for filtering room recordings.
	FilterSessionID OptUUID
	// Status for filtering room recordings.
	FilterStatus OptString
	// Type for filtering room recordings.
	FilterType OptString
	// Duration_secs equal for filtering room recordings.
	FilterDurationSecsEq OptInt
	// Duration_secs less or equal for filtering room recordings.
	FilterDurationSecsLte OptInt
	// Duration_secs greater or equal for filtering room recordings.
	FilterDurationSecsGte OptInt
	// The size of the page.
	PageSize OptInt
	// The page number to load.
	PageNumber OptInt
}

ListRoomRecordingsParams is parameters of ListRoomRecordings operation.

type ListRoomRecordingsResponse

type ListRoomRecordingsResponse struct {
	Data []RoomRecording   `json:"data"`
	Meta OptPaginationMeta `json:"meta"`
}

func (*ListRoomRecordingsResponse) Decode

Decode decodes ListRoomRecordingsResponse from json.

func (*ListRoomRecordingsResponse) Encode

func (s *ListRoomRecordingsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListRoomRecordingsResponse) GetData

GetData returns the value of Data.

func (*ListRoomRecordingsResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListRoomRecordingsResponse) MarshalJSON

func (s *ListRoomRecordingsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListRoomRecordingsResponse) SetData

func (s *ListRoomRecordingsResponse) SetData(val []RoomRecording)

SetData sets the value of Data.

func (*ListRoomRecordingsResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListRoomRecordingsResponse) UnmarshalJSON

func (s *ListRoomRecordingsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListRoomRecordingsResponse) Validate

func (s *ListRoomRecordingsResponse) Validate() error

type ListTagsBadRequest

type ListTagsBadRequest struct{}

ListTagsBadRequest is response for ListTags operation.

type ListTagsNotFound

type ListTagsNotFound struct{}

ListTagsNotFound is response for ListTags operation.

type ListTagsParams

type ListTagsParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListTagsParams is parameters of ListTags operation.

type ListTagsRes

type ListTagsRes interface {
	// contains filtered or unexported methods
}

type ListTagsResponse

type ListTagsResponse struct {
	Data []ListTagsResponseDataItem `json:"data"`
	Meta OptPaginationMeta          `json:"meta"`
}

func (*ListTagsResponse) Decode

func (s *ListTagsResponse) Decode(d *jx.Decoder) error

Decode decodes ListTagsResponse from json.

func (*ListTagsResponse) Encode

func (s *ListTagsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListTagsResponse) GetData

GetData returns the value of Data.

func (*ListTagsResponse) GetMeta

func (s *ListTagsResponse) GetMeta() OptPaginationMeta

GetMeta returns the value of Meta.

func (*ListTagsResponse) MarshalJSON

func (s *ListTagsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListTagsResponse) SetData

func (s *ListTagsResponse) SetData(val []ListTagsResponseDataItem)

SetData sets the value of Data.

func (*ListTagsResponse) SetMeta

func (s *ListTagsResponse) SetMeta(val OptPaginationMeta)

SetMeta sets the value of Meta.

func (*ListTagsResponse) UnmarshalJSON

func (s *ListTagsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListTagsResponseDataItem

type ListTagsResponseDataItem struct {
	Tag    OptString `json:"tag"`
	Amount OptInt    `json:"amount"`
}

func (*ListTagsResponseDataItem) Decode

func (s *ListTagsResponseDataItem) Decode(d *jx.Decoder) error

Decode decodes ListTagsResponseDataItem from json.

func (*ListTagsResponseDataItem) Encode

func (s *ListTagsResponseDataItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListTagsResponseDataItem) GetAmount

func (s *ListTagsResponseDataItem) GetAmount() OptInt

GetAmount returns the value of Amount.

func (*ListTagsResponseDataItem) GetTag

func (s *ListTagsResponseDataItem) GetTag() OptString

GetTag returns the value of Tag.

func (*ListTagsResponseDataItem) MarshalJSON

func (s *ListTagsResponseDataItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListTagsResponseDataItem) SetAmount

func (s *ListTagsResponseDataItem) SetAmount(val OptInt)

SetAmount sets the value of Amount.

func (*ListTagsResponseDataItem) SetTag

func (s *ListTagsResponseDataItem) SetTag(val OptString)

SetTag sets the value of Tag.

func (*ListTagsResponseDataItem) UnmarshalJSON

func (s *ListTagsResponseDataItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ListTagsUnauthorized

type ListTagsUnauthorized struct{}

ListTagsUnauthorized is response for ListTags operation.

type ListVerificationCodesNotFound

type ListVerificationCodesNotFound struct{}

ListVerificationCodesNotFound is response for ListVerificationCodes operation.

type ListVerificationCodesParams

type ListVerificationCodesParams struct {
	// Porting Order id.
	ID uuid.UUID
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Filter results by phone number.
	FilterPhoneNumber OptString
	// Filter results by a list of phone numbers.
	FilterPhoneNumberIn []string
	// Filter verification codes that have been verified or not.
	FilterVerified OptBool
	// Specifies the sort order for results. If not given, results are sorted by created_at in descending
	// order.
	Sort OptListVerificationCodesSort
}

ListVerificationCodesParams is parameters of ListVerificationCodes operation.

type ListVerificationCodesRes

type ListVerificationCodesRes interface {
	// contains filtered or unexported methods
}

type ListVerificationCodesSort

type ListVerificationCodesSort string
const (
	ListVerificationCodesSortCreatedAt      ListVerificationCodesSort = "created_at"
	ListVerificationCodesSortMinusCreatedAt ListVerificationCodesSort = "-created_at"
)

func (ListVerificationCodesSort) AllValues

AllValues returns all ListVerificationCodesSort values.

func (ListVerificationCodesSort) MarshalText

func (s ListVerificationCodesSort) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListVerificationCodesSort) UnmarshalText

func (s *ListVerificationCodesSort) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListVerificationCodesSort) Validate

func (s ListVerificationCodesSort) Validate() error

type ListVerificationCodesUnauthorized

type ListVerificationCodesUnauthorized struct{}

ListVerificationCodesUnauthorized is response for ListVerificationCodes operation.

type ListVerificationsParams

type ListVerificationsParams struct {
	// The phone number associated with the verifications to retrieve.
	PhoneNumber string
}

ListVerificationsParams is parameters of ListVerifications operation.

type ListVerificationsRes

type ListVerificationsRes interface {
	// contains filtered or unexported methods
}

type ListVerificationsResponse

type ListVerificationsResponse struct {
	Data []Verification `json:"data"`
	Meta Meta           `json:"meta"`
}

Ref: #/components/schemas/ListVerificationsResponse

func (*ListVerificationsResponse) Decode

func (s *ListVerificationsResponse) Decode(d *jx.Decoder) error

Decode decodes ListVerificationsResponse from json.

func (*ListVerificationsResponse) Encode

func (s *ListVerificationsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListVerificationsResponse) GetData

func (s *ListVerificationsResponse) GetData() []Verification

GetData returns the value of Data.

func (*ListVerificationsResponse) GetMeta

func (s *ListVerificationsResponse) GetMeta() Meta

GetMeta returns the value of Meta.

func (*ListVerificationsResponse) MarshalJSON

func (s *ListVerificationsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListVerificationsResponse) SetData

func (s *ListVerificationsResponse) SetData(val []Verification)

SetData sets the value of Data.

func (*ListVerificationsResponse) SetMeta

func (s *ListVerificationsResponse) SetMeta(val Meta)

SetMeta sets the value of Meta.

func (*ListVerificationsResponse) UnmarshalJSON

func (s *ListVerificationsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListVerificationsResponse) Validate

func (s *ListVerificationsResponse) Validate() error

type ListVerifiedCallDisplayProfilesParams

type ListVerifiedCallDisplayProfilesParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
}

ListVerifiedCallDisplayProfilesParams is parameters of ListVerifiedCallDisplayProfiles operation.

type ListVerifiedCallDisplayProfilesRes

type ListVerifiedCallDisplayProfilesRes interface {
	// contains filtered or unexported methods
}

type ListVerifiedCallsDisplayProfilesResponse

type ListVerifiedCallsDisplayProfilesResponse struct {
	Data []VerifiedCallsDisplayProfile `json:"data"`
	Meta OptPaginationMeta             `json:"meta"`
}

func (*ListVerifiedCallsDisplayProfilesResponse) Decode

Decode decodes ListVerifiedCallsDisplayProfilesResponse from json.

func (*ListVerifiedCallsDisplayProfilesResponse) Encode

Encode implements json.Marshaler.

func (*ListVerifiedCallsDisplayProfilesResponse) GetData

GetData returns the value of Data.

func (*ListVerifiedCallsDisplayProfilesResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListVerifiedCallsDisplayProfilesResponse) MarshalJSON

func (s *ListVerifiedCallsDisplayProfilesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListVerifiedCallsDisplayProfilesResponse) SetData

SetData sets the value of Data.

func (*ListVerifiedCallsDisplayProfilesResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListVerifiedCallsDisplayProfilesResponse) UnmarshalJSON

func (s *ListVerifiedCallsDisplayProfilesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListVerifiedCallsDisplayProfilesResponse) Validate

type ListVerifiedNumbersParams

type ListVerifiedNumbersParams struct {
	PageSize   OptInt
	PageNumber OptInt
}

ListVerifiedNumbersParams is parameters of ListVerifiedNumbers operation.

type ListVerifiedNumbersRes

type ListVerifiedNumbersRes interface {
	// contains filtered or unexported methods
}

type ListVerifiedNumbersResponse

type ListVerifiedNumbersResponse struct {
	Data []VerifiedNumberResponse `json:"data"`
	Meta Meta                     `json:"meta"`
}

A paginated list of Verified Numbers. Ref: #/components/schemas/ListVerifiedNumbersResponse

func (*ListVerifiedNumbersResponse) Decode

Decode decodes ListVerifiedNumbersResponse from json.

func (*ListVerifiedNumbersResponse) Encode

func (s *ListVerifiedNumbersResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListVerifiedNumbersResponse) GetData

GetData returns the value of Data.

func (*ListVerifiedNumbersResponse) GetMeta

func (s *ListVerifiedNumbersResponse) GetMeta() Meta

GetMeta returns the value of Meta.

func (*ListVerifiedNumbersResponse) MarshalJSON

func (s *ListVerifiedNumbersResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListVerifiedNumbersResponse) SetData

SetData sets the value of Data.

func (*ListVerifiedNumbersResponse) SetMeta

func (s *ListVerifiedNumbersResponse) SetMeta(val Meta)

SetMeta sets the value of Meta.

func (*ListVerifiedNumbersResponse) UnmarshalJSON

func (s *ListVerifiedNumbersResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListVerifiedNumbersResponse) Validate

func (s *ListVerifiedNumbersResponse) Validate() error

type ListVerifyProfileMessageTemplateResponse

type ListVerifyProfileMessageTemplateResponse struct {
	Data []VerifyProfileMessageTemplateResponse `json:"data"`
}

A list of Verify profile message templates. Ref: #/components/schemas/ListVerifyProfileMessageTemplateResponse

func (*ListVerifyProfileMessageTemplateResponse) Decode

Decode decodes ListVerifyProfileMessageTemplateResponse from json.

func (*ListVerifyProfileMessageTemplateResponse) Encode

Encode implements json.Marshaler.

func (*ListVerifyProfileMessageTemplateResponse) GetData

GetData returns the value of Data.

func (*ListVerifyProfileMessageTemplateResponse) MarshalJSON

func (s *ListVerifyProfileMessageTemplateResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListVerifyProfileMessageTemplateResponse) SetData

SetData sets the value of Data.

func (*ListVerifyProfileMessageTemplateResponse) UnmarshalJSON

func (s *ListVerifyProfileMessageTemplateResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListVerifyProfileMessageTemplateResponse) Validate

type ListVerifyProfilesResponse

type ListVerifyProfilesResponse struct {
	Data []VerifyProfileResponse `json:"data"`
	Meta Meta                    `json:"meta"`
}

A paginated list of Verify profiles. Ref: #/components/schemas/ListVerifyProfilesResponse

func (*ListVerifyProfilesResponse) Decode

Decode decodes ListVerifyProfilesResponse from json.

func (*ListVerifyProfilesResponse) Encode

func (s *ListVerifyProfilesResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListVerifyProfilesResponse) GetData

GetData returns the value of Data.

func (*ListVerifyProfilesResponse) GetMeta

func (s *ListVerifyProfilesResponse) GetMeta() Meta

GetMeta returns the value of Meta.

func (*ListVerifyProfilesResponse) MarshalJSON

func (s *ListVerifyProfilesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListVerifyProfilesResponse) SetData

SetData sets the value of Data.

func (*ListVerifyProfilesResponse) SetMeta

func (s *ListVerifyProfilesResponse) SetMeta(val Meta)

SetMeta sets the value of Meta.

func (*ListVerifyProfilesResponse) UnmarshalJSON

func (s *ListVerifyProfilesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListVerifyProfilesResponse) Validate

func (s *ListVerifyProfilesResponse) Validate() error

type ListWebhookDeliveriesResponse

type ListWebhookDeliveriesResponse struct {
	Data []WebhookDelivery       `json:"data"`
	Meta OptPaginationMetaSimple `json:"meta"`
}

func (*ListWebhookDeliveriesResponse) Decode

Decode decodes ListWebhookDeliveriesResponse from json.

func (*ListWebhookDeliveriesResponse) Encode

Encode implements json.Marshaler.

func (*ListWebhookDeliveriesResponse) GetData

GetData returns the value of Data.

func (*ListWebhookDeliveriesResponse) GetMeta

GetMeta returns the value of Meta.

func (*ListWebhookDeliveriesResponse) MarshalJSON

func (s *ListWebhookDeliveriesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListWebhookDeliveriesResponse) SetData

SetData sets the value of Data.

func (*ListWebhookDeliveriesResponse) SetMeta

SetMeta sets the value of Meta.

func (*ListWebhookDeliveriesResponse) UnmarshalJSON

func (s *ListWebhookDeliveriesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListWebhookDeliveriesResponse) Validate

func (s *ListWebhookDeliveriesResponse) Validate() error

type LogMessage

type LogMessage struct {
	Code   string              `json:"code"`
	Title  string              `json:"title"`
	Detail OptString           `json:"detail"`
	Source OptLogMessageSource `json:"source"`
	Meta   OptLogMessageMeta   `json:"meta"`
}

Ref: #/components/schemas/LogMessage

func (*LogMessage) Decode

func (s *LogMessage) Decode(d *jx.Decoder) error

Decode decodes LogMessage from json.

func (*LogMessage) Encode

func (s *LogMessage) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LogMessage) GetCode

func (s *LogMessage) GetCode() string

GetCode returns the value of Code.

func (*LogMessage) GetDetail

func (s *LogMessage) GetDetail() OptString

GetDetail returns the value of Detail.

func (*LogMessage) GetMeta

func (s *LogMessage) GetMeta() OptLogMessageMeta

GetMeta returns the value of Meta.

func (*LogMessage) GetSource

func (s *LogMessage) GetSource() OptLogMessageSource

GetSource returns the value of Source.

func (*LogMessage) GetTitle

func (s *LogMessage) GetTitle() string

GetTitle returns the value of Title.

func (*LogMessage) MarshalJSON

func (s *LogMessage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LogMessage) SetCode

func (s *LogMessage) SetCode(val string)

SetCode sets the value of Code.

func (*LogMessage) SetDetail

func (s *LogMessage) SetDetail(val OptString)

SetDetail sets the value of Detail.

func (*LogMessage) SetMeta

func (s *LogMessage) SetMeta(val OptLogMessageMeta)

SetMeta sets the value of Meta.

func (*LogMessage) SetSource

func (s *LogMessage) SetSource(val OptLogMessageSource)

SetSource sets the value of Source.

func (*LogMessage) SetTitle

func (s *LogMessage) SetTitle(val string)

SetTitle sets the value of Title.

func (*LogMessage) UnmarshalJSON

func (s *LogMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LogMessageMeta

type LogMessageMeta struct {
	// The telephone number the log message is associated with, if any.
	TelephoneNumber OptString `json:"telephone_number"`
	// The external connection the log message is associated with, if any.
	ExternalConnectionID OptStringInt64 `json:"external_connection_id"`
	// The ticket ID for an operation that generated the log message, if any.
	TicketID OptUUID `json:"ticket_id"`
}

func (*LogMessageMeta) Decode

func (s *LogMessageMeta) Decode(d *jx.Decoder) error

Decode decodes LogMessageMeta from json.

func (*LogMessageMeta) Encode

func (s *LogMessageMeta) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LogMessageMeta) GetExternalConnectionID

func (s *LogMessageMeta) GetExternalConnectionID() OptStringInt64

GetExternalConnectionID returns the value of ExternalConnectionID.

func (*LogMessageMeta) GetTelephoneNumber

func (s *LogMessageMeta) GetTelephoneNumber() OptString

GetTelephoneNumber returns the value of TelephoneNumber.

func (*LogMessageMeta) GetTicketID

func (s *LogMessageMeta) GetTicketID() OptUUID

GetTicketID returns the value of TicketID.

func (*LogMessageMeta) MarshalJSON

func (s *LogMessageMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LogMessageMeta) SetExternalConnectionID

func (s *LogMessageMeta) SetExternalConnectionID(val OptStringInt64)

SetExternalConnectionID sets the value of ExternalConnectionID.

func (*LogMessageMeta) SetTelephoneNumber

func (s *LogMessageMeta) SetTelephoneNumber(val OptString)

SetTelephoneNumber sets the value of TelephoneNumber.

func (*LogMessageMeta) SetTicketID

func (s *LogMessageMeta) SetTicketID(val OptUUID)

SetTicketID sets the value of TicketID.

func (*LogMessageMeta) UnmarshalJSON

func (s *LogMessageMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LogMessageSource

type LogMessageSource struct {
	// JSON pointer (RFC6901) to the offending entity.
	Pointer OptString `json:"pointer"`
}

func (*LogMessageSource) Decode

func (s *LogMessageSource) Decode(d *jx.Decoder) error

Decode decodes LogMessageSource from json.

func (*LogMessageSource) Encode

func (s *LogMessageSource) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LogMessageSource) GetPointer

func (s *LogMessageSource) GetPointer() OptString

GetPointer returns the value of Pointer.

func (*LogMessageSource) MarshalJSON

func (s *LogMessageSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LogMessageSource) SetPointer

func (s *LogMessageSource) SetPointer(val OptString)

SetPointer sets the value of Pointer.

func (*LogMessageSource) UnmarshalJSON

func (s *LogMessageSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LogoURL

type LogoURL string

func (*LogoURL) Decode

func (s *LogoURL) Decode(d *jx.Decoder) error

Decode decodes LogoURL from json.

func (LogoURL) Encode

func (s LogoURL) Encode(e *jx.Encoder)

Encode encodes LogoURL as json.

func (LogoURL) MarshalJSON

func (s LogoURL) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LogoURL) UnmarshalJSON

func (s *LogoURL) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LookupNumberParams

type LookupNumberParams struct {
	// The phone number to be looked up.
	PhoneNumber string
	// Specifies the type of number lookup to be performed.
	Type OptNumberLookupType
}

LookupNumberParams is parameters of LookupNumber operation.

type LookupNumberRes

type LookupNumberRes interface {
	// contains filtered or unexported methods
}

type Loopcount

type Loopcount struct {
	Type   LoopcountType // switch on this field
	String string
	Int    int
}

Ref: #/components/schemas/Loopcount Loopcount represents sum type.

func NewIntLoopcount

func NewIntLoopcount(v int) Loopcount

NewIntLoopcount returns new Loopcount from int.

func NewStringLoopcount

func NewStringLoopcount(v string) Loopcount

NewStringLoopcount returns new Loopcount from string.

func (*Loopcount) Decode

func (s *Loopcount) Decode(d *jx.Decoder) error

Decode decodes Loopcount from json.

func (Loopcount) Encode

func (s Loopcount) Encode(e *jx.Encoder)

Encode encodes Loopcount as json.

func (Loopcount) GetInt

func (s Loopcount) GetInt() (v int, ok bool)

GetInt returns int and true boolean if Loopcount is int.

func (Loopcount) GetString

func (s Loopcount) GetString() (v string, ok bool)

GetString returns string and true boolean if Loopcount is string.

func (Loopcount) IsInt

func (s Loopcount) IsInt() bool

IsInt reports whether Loopcount is int.

func (Loopcount) IsString

func (s Loopcount) IsString() bool

IsString reports whether Loopcount is string.

func (Loopcount) MarshalJSON

func (s Loopcount) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Loopcount) SetInt

func (s *Loopcount) SetInt(v int)

SetInt sets Loopcount to int.

func (*Loopcount) SetString

func (s *Loopcount) SetString(v string)

SetString sets Loopcount to string.

func (*Loopcount) UnmarshalJSON

func (s *Loopcount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LoopcountType

type LoopcountType string

LoopcountType is oneOf type of Loopcount.

const (
	StringLoopcount LoopcountType = "string"
	IntLoopcount    LoopcountType = "int"
)

Possible values for LoopcountType.

type MarkCommentReadParams

type MarkCommentReadParams struct {
	// The comment ID.
	ID string
}

MarkCommentReadParams is parameters of MarkCommentRead operation.

type MarkCommentReadRes

type MarkCommentReadRes interface {
	// contains filtered or unexported methods
}

type MediaFeatures

type MediaFeatures struct {
	// When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to
	// match the source of the incoming RTP packets.
	RtpAutoAdjustEnabled OptBool `json:"rtp_auto_adjust_enabled"`
	// When enabled, Telnyx will accept RTP packets from any customer-side IP address and port, not just
	// those to which Telnyx is sending RTP.
	AcceptAnyRtpPacketsEnabled OptBool `json:"accept_any_rtp_packets_enabled"`
	// Controls whether Telnyx will accept a T.38 re-INVITE for this phone number. Note that Telnyx will
	// not send a T.38 re-INVITE; this option only controls whether one will be accepted.
	T38FaxGatewayEnabled OptBool `json:"t38_fax_gateway_enabled"`
}

The media features settings for a phone number. Ref: #/components/schemas/MediaFeatures

func (*MediaFeatures) Decode

func (s *MediaFeatures) Decode(d *jx.Decoder) error

Decode decodes MediaFeatures from json.

func (*MediaFeatures) Encode

func (s *MediaFeatures) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MediaFeatures) GetAcceptAnyRtpPacketsEnabled

func (s *MediaFeatures) GetAcceptAnyRtpPacketsEnabled() OptBool

GetAcceptAnyRtpPacketsEnabled returns the value of AcceptAnyRtpPacketsEnabled.

func (*MediaFeatures) GetRtpAutoAdjustEnabled

func (s *MediaFeatures) GetRtpAutoAdjustEnabled() OptBool

GetRtpAutoAdjustEnabled returns the value of RtpAutoAdjustEnabled.

func (*MediaFeatures) GetT38FaxGatewayEnabled

func (s *MediaFeatures) GetT38FaxGatewayEnabled() OptBool

GetT38FaxGatewayEnabled returns the value of T38FaxGatewayEnabled.

func (*MediaFeatures) MarshalJSON

func (s *MediaFeatures) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MediaFeatures) SetAcceptAnyRtpPacketsEnabled

func (s *MediaFeatures) SetAcceptAnyRtpPacketsEnabled(val OptBool)

SetAcceptAnyRtpPacketsEnabled sets the value of AcceptAnyRtpPacketsEnabled.

func (*MediaFeatures) SetRtpAutoAdjustEnabled

func (s *MediaFeatures) SetRtpAutoAdjustEnabled(val OptBool)

SetRtpAutoAdjustEnabled sets the value of RtpAutoAdjustEnabled.

func (*MediaFeatures) SetT38FaxGatewayEnabled

func (s *MediaFeatures) SetT38FaxGatewayEnabled(val OptBool)

SetT38FaxGatewayEnabled sets the value of T38FaxGatewayEnabled.

func (*MediaFeatures) UnmarshalJSON

func (s *MediaFeatures) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MessageResponse

type MessageResponse struct {
	Data OptOutboundMessagePayload `json:"data"`
}

func (*MessageResponse) Decode

func (s *MessageResponse) Decode(d *jx.Decoder) error

Decode decodes MessageResponse from json.

func (*MessageResponse) Encode

func (s *MessageResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MessageResponse) GetData

GetData returns the value of Data.

func (*MessageResponse) MarshalJSON

func (s *MessageResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MessageResponse) SetData

SetData sets the value of Data.

func (*MessageResponse) UnmarshalJSON

func (s *MessageResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MessageResponse) Validate

func (s *MessageResponse) Validate() error

type MessagingFeatureSet

type MessagingFeatureSet struct {
	// Send messages to and receive messages from numbers in the same country.
	DomesticTwoWay bool `json:"domestic_two_way"`
	// Receive messages from numbers in other countries.
	InternationalInbound bool `json:"international_inbound"`
	// Send messages to numbers in other countries.
	InternationalOutbound bool `json:"international_outbound"`
}

The set of features available for a specific messaging use case (SMS or MMS). Features can vary depending on the characteristics the phone number, as well as its current product configuration. Ref: #/components/schemas/MessagingFeatureSet

func (*MessagingFeatureSet) Decode

func (s *MessagingFeatureSet) Decode(d *jx.Decoder) error

Decode decodes MessagingFeatureSet from json.

func (*MessagingFeatureSet) Encode

func (s *MessagingFeatureSet) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MessagingFeatureSet) GetDomesticTwoWay

func (s *MessagingFeatureSet) GetDomesticTwoWay() bool

GetDomesticTwoWay returns the value of DomesticTwoWay.

func (*MessagingFeatureSet) GetInternationalInbound

func (s *MessagingFeatureSet) GetInternationalInbound() bool

GetInternationalInbound returns the value of InternationalInbound.

func (*MessagingFeatureSet) GetInternationalOutbound

func (s *MessagingFeatureSet) GetInternationalOutbound() bool

GetInternationalOutbound returns the value of InternationalOutbound.

func (*MessagingFeatureSet) MarshalJSON

func (s *MessagingFeatureSet) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MessagingFeatureSet) SetDomesticTwoWay

func (s *MessagingFeatureSet) SetDomesticTwoWay(val bool)

SetDomesticTwoWay sets the value of DomesticTwoWay.

func (*MessagingFeatureSet) SetInternationalInbound

func (s *MessagingFeatureSet) SetInternationalInbound(val bool)

SetInternationalInbound sets the value of InternationalInbound.

func (*MessagingFeatureSet) SetInternationalOutbound

func (s *MessagingFeatureSet) SetInternationalOutbound(val bool)

SetInternationalOutbound sets the value of InternationalOutbound.

func (*MessagingFeatureSet) UnmarshalJSON

func (s *MessagingFeatureSet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MessagingHostedNumberOrder

type MessagingHostedNumberOrder struct {
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// Resource unique identifier.
	ID OptUUID `json:"id"`
	// Automatically associate the number with this messaging profile ID when the order is complete.
	MessagingProfileID OptNilString                        `json:"messaging_profile_id"`
	Status             OptMessagingHostedNumberOrderStatus `json:"status"`
	PhoneNumbers       []HostedNumber                      `json:"phone_numbers"`
}

Ref: #/components/schemas/MessagingHostedNumberOrder

func (*MessagingHostedNumberOrder) Decode

Decode decodes MessagingHostedNumberOrder from json.

func (*MessagingHostedNumberOrder) Encode

func (s *MessagingHostedNumberOrder) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MessagingHostedNumberOrder) GetID

GetID returns the value of ID.

func (*MessagingHostedNumberOrder) GetMessagingProfileID

func (s *MessagingHostedNumberOrder) GetMessagingProfileID() OptNilString

GetMessagingProfileID returns the value of MessagingProfileID.

func (*MessagingHostedNumberOrder) GetPhoneNumbers

func (s *MessagingHostedNumberOrder) GetPhoneNumbers() []HostedNumber

GetPhoneNumbers returns the value of PhoneNumbers.

func (*MessagingHostedNumberOrder) GetRecordType

func (s *MessagingHostedNumberOrder) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*MessagingHostedNumberOrder) GetStatus

GetStatus returns the value of Status.

func (*MessagingHostedNumberOrder) MarshalJSON

func (s *MessagingHostedNumberOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MessagingHostedNumberOrder) SetID

func (s *MessagingHostedNumberOrder) SetID(val OptUUID)

SetID sets the value of ID.

func (*MessagingHostedNumberOrder) SetMessagingProfileID

func (s *MessagingHostedNumberOrder) SetMessagingProfileID(val OptNilString)

SetMessagingProfileID sets the value of MessagingProfileID.

func (*MessagingHostedNumberOrder) SetPhoneNumbers

func (s *MessagingHostedNumberOrder) SetPhoneNumbers(val []HostedNumber)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*MessagingHostedNumberOrder) SetRecordType

func (s *MessagingHostedNumberOrder) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*MessagingHostedNumberOrder) SetStatus

SetStatus sets the value of Status.

func (*MessagingHostedNumberOrder) UnmarshalJSON

func (s *MessagingHostedNumberOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MessagingHostedNumberOrder) Validate

func (s *MessagingHostedNumberOrder) Validate() error

type MessagingHostedNumberOrderResponse

type MessagingHostedNumberOrderResponse struct {
	Data OptMessagingHostedNumberOrder `json:"data"`
}

func (*MessagingHostedNumberOrderResponse) Decode

Decode decodes MessagingHostedNumberOrderResponse from json.

func (*MessagingHostedNumberOrderResponse) Encode

Encode implements json.Marshaler.

func (*MessagingHostedNumberOrderResponse) GetData

GetData returns the value of Data.

func (*MessagingHostedNumberOrderResponse) MarshalJSON

func (s *MessagingHostedNumberOrderResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MessagingHostedNumberOrderResponse) SetData

SetData sets the value of Data.

func (*MessagingHostedNumberOrderResponse) UnmarshalJSON

func (s *MessagingHostedNumberOrderResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MessagingHostedNumberOrderResponse) Validate

type MessagingHostedNumberOrderStatus

type MessagingHostedNumberOrderStatus string
const (
	MessagingHostedNumberOrderStatusFailed     MessagingHostedNumberOrderStatus = "failed"
	MessagingHostedNumberOrderStatusPending    MessagingHostedNumberOrderStatus = "pending"
	MessagingHostedNumberOrderStatusSuccessful MessagingHostedNumberOrderStatus = "successful"
)

func (MessagingHostedNumberOrderStatus) AllValues

AllValues returns all MessagingHostedNumberOrderStatus values.

func (*MessagingHostedNumberOrderStatus) Decode

Decode decodes MessagingHostedNumberOrderStatus from json.

func (MessagingHostedNumberOrderStatus) Encode

Encode encodes MessagingHostedNumberOrderStatus as json.

func (MessagingHostedNumberOrderStatus) MarshalJSON

func (s MessagingHostedNumberOrderStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (MessagingHostedNumberOrderStatus) MarshalText

func (s MessagingHostedNumberOrderStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*MessagingHostedNumberOrderStatus) UnmarshalJSON

func (s *MessagingHostedNumberOrderStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MessagingHostedNumberOrderStatus) UnmarshalText

func (s *MessagingHostedNumberOrderStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (MessagingHostedNumberOrderStatus) Validate

type MessagingUrlDomain

type MessagingUrlDomain struct {
	RecordType OptString `json:"record_type"`
	ID         OptString `json:"id"`
	URLDomain  OptString `json:"url_domain"`
	UseCase    OptString `json:"use_case"`
}

Ref: #/components/schemas/MessagingUrlDomain

func (*MessagingUrlDomain) Decode

func (s *MessagingUrlDomain) Decode(d *jx.Decoder) error

Decode decodes MessagingUrlDomain from json.

func (*MessagingUrlDomain) Encode

func (s *MessagingUrlDomain) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MessagingUrlDomain) GetID

func (s *MessagingUrlDomain) GetID() OptString

GetID returns the value of ID.

func (*MessagingUrlDomain) GetRecordType

func (s *MessagingUrlDomain) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*MessagingUrlDomain) GetURLDomain

func (s *MessagingUrlDomain) GetURLDomain() OptString

GetURLDomain returns the value of URLDomain.

func (*MessagingUrlDomain) GetUseCase

func (s *MessagingUrlDomain) GetUseCase() OptString

GetUseCase returns the value of UseCase.

func (*MessagingUrlDomain) MarshalJSON

func (s *MessagingUrlDomain) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MessagingUrlDomain) SetID

func (s *MessagingUrlDomain) SetID(val OptString)

SetID sets the value of ID.

func (*MessagingUrlDomain) SetRecordType

func (s *MessagingUrlDomain) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*MessagingUrlDomain) SetURLDomain

func (s *MessagingUrlDomain) SetURLDomain(val OptString)

SetURLDomain sets the value of URLDomain.

func (*MessagingUrlDomain) SetUseCase

func (s *MessagingUrlDomain) SetUseCase(val OptString)

SetUseCase sets the value of UseCase.

func (*MessagingUrlDomain) UnmarshalJSON

func (s *MessagingUrlDomain) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Meta

type Meta struct {
	TotalPages   OptInt `json:"total_pages"`
	TotalResults OptInt `json:"total_results"`
	PageNumber   OptInt `json:"page_number"`
	PageSize     OptInt `json:"page_size"`
}

Ref: #/components/schemas/Meta

func (*Meta) Decode

func (s *Meta) Decode(d *jx.Decoder) error

Decode decodes Meta from json.

func (*Meta) Encode

func (s *Meta) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Meta) GetPageNumber

func (s *Meta) GetPageNumber() OptInt

GetPageNumber returns the value of PageNumber.

func (*Meta) GetPageSize

func (s *Meta) GetPageSize() OptInt

GetPageSize returns the value of PageSize.

func (*Meta) GetTotalPages

func (s *Meta) GetTotalPages() OptInt

GetTotalPages returns the value of TotalPages.

func (*Meta) GetTotalResults

func (s *Meta) GetTotalResults() OptInt

GetTotalResults returns the value of TotalResults.

func (*Meta) MarshalJSON

func (s *Meta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Meta) SetPageNumber

func (s *Meta) SetPageNumber(val OptInt)

SetPageNumber sets the value of PageNumber.

func (*Meta) SetPageSize

func (s *Meta) SetPageSize(val OptInt)

SetPageSize sets the value of PageSize.

func (*Meta) SetTotalPages

func (s *Meta) SetTotalPages(val OptInt)

SetTotalPages sets the value of TotalPages.

func (*Meta) SetTotalResults

func (s *Meta) SetTotalResults(val OptInt)

SetTotalResults sets the value of TotalResults.

func (*Meta) UnmarshalJSON

func (s *Meta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MetaResponse

type MetaResponse struct {
	// This should likely be a URL to the relevant documentation.
	URL OptString `json:"url"`
}

Ref: #/components/schemas/MetaResponse

func (*MetaResponse) Decode

func (s *MetaResponse) Decode(d *jx.Decoder) error

Decode decodes MetaResponse from json.

func (*MetaResponse) Encode

func (s *MetaResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MetaResponse) GetURL

func (s *MetaResponse) GetURL() OptString

GetURL returns the value of URL.

func (*MetaResponse) MarshalJSON

func (s *MetaResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MetaResponse) SetURL

func (s *MetaResponse) SetURL(val OptString)

SetURL sets the value of URL.

func (*MetaResponse) UnmarshalJSON

func (s *MetaResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Metadata

type Metadata struct {
	// Total number of pages based on pagination settings.
	TotalPages OptFloat64 `json:"total_pages"`
	// Total number of results.
	TotalResults OptFloat64 `json:"total_results"`
	// Current Page based on pagination settings (included when defaults are used.).
	PageNumber OptFloat64 `json:"page_number"`
	// Number of results to return per page based on pagination settings (included when defaults are used.
	// ).
	PageSize OptFloat64 `json:"page_size"`
}

Ref: #/components/schemas/Metadata

func (*Metadata) Decode

func (s *Metadata) Decode(d *jx.Decoder) error

Decode decodes Metadata from json.

func (*Metadata) Encode

func (s *Metadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Metadata) GetPageNumber

func (s *Metadata) GetPageNumber() OptFloat64

GetPageNumber returns the value of PageNumber.

func (*Metadata) GetPageSize

func (s *Metadata) GetPageSize() OptFloat64

GetPageSize returns the value of PageSize.

func (*Metadata) GetTotalPages

func (s *Metadata) GetTotalPages() OptFloat64

GetTotalPages returns the value of TotalPages.

func (*Metadata) GetTotalResults

func (s *Metadata) GetTotalResults() OptFloat64

GetTotalResults returns the value of TotalResults.

func (*Metadata) MarshalJSON

func (s *Metadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Metadata) SetPageNumber

func (s *Metadata) SetPageNumber(val OptFloat64)

SetPageNumber sets the value of PageNumber.

func (*Metadata) SetPageSize

func (s *Metadata) SetPageSize(val OptFloat64)

SetPageSize sets the value of PageSize.

func (*Metadata) SetTotalPages

func (s *Metadata) SetTotalPages(val OptFloat64)

SetTotalPages sets the value of TotalPages.

func (*Metadata) SetTotalResults

func (s *Metadata) SetTotalResults(val OptFloat64)

SetTotalResults sets the value of TotalResults.

func (*Metadata) UnmarshalJSON

func (s *Metadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Metadata) Validate

func (s *Metadata) Validate() error

type MobileNetworkOperator

type MobileNetworkOperator struct {
	// Identifies the resource.
	ID OptUUID `json:"id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// The network operator name.
	Name OptString `json:"name"`
	// TADIG stands for Transferred Account Data Interchange Group. The TADIG code is a unique identifier
	// for network operators in GSM mobile networks.
	Tadig OptString `json:"tadig"`
	// The mobile operator two-character (ISO 3166-1 alpha-2) origin country code.
	CountryCode OptString `json:"country_code"`
	// MCC stands for Mobile Country Code. It's a three decimal digit that identifies a country.<br/><br/>
	// This code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows
	// identifying a carrier known as PLMN (Public Land Mobile Network) code.
	Mcc OptString `json:"mcc"`
	// MNC stands for Mobile Network Code. It's a two to three decimal digits that identify a network.
	// <br/><br/>
	// This code is commonly seen joined with a Mobile Country Code (MCC) in a tuple that allows
	// identifying a carrier known as PLMN (Public Land Mobile Network) code.
	Mnc OptString `json:"mnc"`
	// Indicate whether the mobile network operator can be set as preferred in the Network Preferences
	// API.
	NetworkPreferencesEnabled OptBool `json:"network_preferences_enabled"`
}

Ref: #/components/schemas/MobileNetworkOperator

func (*MobileNetworkOperator) Decode

func (s *MobileNetworkOperator) Decode(d *jx.Decoder) error

Decode decodes MobileNetworkOperator from json.

func (*MobileNetworkOperator) Encode

func (s *MobileNetworkOperator) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MobileNetworkOperator) GetCountryCode

func (s *MobileNetworkOperator) GetCountryCode() OptString

GetCountryCode returns the value of CountryCode.

func (*MobileNetworkOperator) GetID

func (s *MobileNetworkOperator) GetID() OptUUID

GetID returns the value of ID.

func (*MobileNetworkOperator) GetMcc

func (s *MobileNetworkOperator) GetMcc() OptString

GetMcc returns the value of Mcc.

func (*MobileNetworkOperator) GetMnc

func (s *MobileNetworkOperator) GetMnc() OptString

GetMnc returns the value of Mnc.

func (*MobileNetworkOperator) GetName

func (s *MobileNetworkOperator) GetName() OptString

GetName returns the value of Name.

func (*MobileNetworkOperator) GetNetworkPreferencesEnabled

func (s *MobileNetworkOperator) GetNetworkPreferencesEnabled() OptBool

GetNetworkPreferencesEnabled returns the value of NetworkPreferencesEnabled.

func (*MobileNetworkOperator) GetRecordType

func (s *MobileNetworkOperator) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*MobileNetworkOperator) GetTadig

func (s *MobileNetworkOperator) GetTadig() OptString

GetTadig returns the value of Tadig.

func (*MobileNetworkOperator) MarshalJSON

func (s *MobileNetworkOperator) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MobileNetworkOperator) SetCountryCode

func (s *MobileNetworkOperator) SetCountryCode(val OptString)

SetCountryCode sets the value of CountryCode.

func (*MobileNetworkOperator) SetID

func (s *MobileNetworkOperator) SetID(val OptUUID)

SetID sets the value of ID.

func (*MobileNetworkOperator) SetMcc

func (s *MobileNetworkOperator) SetMcc(val OptString)

SetMcc sets the value of Mcc.

func (*MobileNetworkOperator) SetMnc

func (s *MobileNetworkOperator) SetMnc(val OptString)

SetMnc sets the value of Mnc.

func (*MobileNetworkOperator) SetName

func (s *MobileNetworkOperator) SetName(val OptString)

SetName sets the value of Name.

func (*MobileNetworkOperator) SetNetworkPreferencesEnabled

func (s *MobileNetworkOperator) SetNetworkPreferencesEnabled(val OptBool)

SetNetworkPreferencesEnabled sets the value of NetworkPreferencesEnabled.

func (*MobileNetworkOperator) SetRecordType

func (s *MobileNetworkOperator) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*MobileNetworkOperator) SetTadig

func (s *MobileNetworkOperator) SetTadig(val OptString)

SetTadig sets the value of Tadig.

func (*MobileNetworkOperator) UnmarshalJSON

func (s *MobileNetworkOperator) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MobileNetworkOperatorPreferencesResponse

type MobileNetworkOperatorPreferencesResponse struct {
	// The mobile network operator resource identification UUID.
	MobileNetworkOperatorID OptUUID `json:"mobile_network_operator_id"`
	// The mobile network operator resource name.
	MobileNetworkOperatorName OptString `json:"mobile_network_operator_name"`
	// It determines what is the priority of a specific network operator that should be assumed by a SIM
	// card when connecting to a network. The highest priority is 0, the second highest is 1 and so on.
	Priority OptInt `json:"priority"`
}

Ref: #/components/schemas/MobileNetworkOperatorPreferencesResponse

func (*MobileNetworkOperatorPreferencesResponse) Decode

Decode decodes MobileNetworkOperatorPreferencesResponse from json.

func (*MobileNetworkOperatorPreferencesResponse) Encode

Encode implements json.Marshaler.

func (*MobileNetworkOperatorPreferencesResponse) GetMobileNetworkOperatorID

func (s *MobileNetworkOperatorPreferencesResponse) GetMobileNetworkOperatorID() OptUUID

GetMobileNetworkOperatorID returns the value of MobileNetworkOperatorID.

func (*MobileNetworkOperatorPreferencesResponse) GetMobileNetworkOperatorName

func (s *MobileNetworkOperatorPreferencesResponse) GetMobileNetworkOperatorName() OptString

GetMobileNetworkOperatorName returns the value of MobileNetworkOperatorName.

func (*MobileNetworkOperatorPreferencesResponse) GetPriority

GetPriority returns the value of Priority.

func (*MobileNetworkOperatorPreferencesResponse) MarshalJSON

func (s *MobileNetworkOperatorPreferencesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MobileNetworkOperatorPreferencesResponse) SetMobileNetworkOperatorID

func (s *MobileNetworkOperatorPreferencesResponse) SetMobileNetworkOperatorID(val OptUUID)

SetMobileNetworkOperatorID sets the value of MobileNetworkOperatorID.

func (*MobileNetworkOperatorPreferencesResponse) SetMobileNetworkOperatorName

func (s *MobileNetworkOperatorPreferencesResponse) SetMobileNetworkOperatorName(val OptString)

SetMobileNetworkOperatorName sets the value of MobileNetworkOperatorName.

func (*MobileNetworkOperatorPreferencesResponse) SetPriority

SetPriority sets the value of Priority.

func (*MobileNetworkOperatorPreferencesResponse) UnmarshalJSON

func (s *MobileNetworkOperatorPreferencesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MobileNetworkOperatorsPreferencesResponse

type MobileNetworkOperatorsPreferencesResponse []MobileNetworkOperatorPreferencesResponse

func (*MobileNetworkOperatorsPreferencesResponse) Decode

Decode decodes MobileNetworkOperatorsPreferencesResponse from json.

func (MobileNetworkOperatorsPreferencesResponse) Encode

Encode encodes MobileNetworkOperatorsPreferencesResponse as json.

func (MobileNetworkOperatorsPreferencesResponse) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*MobileNetworkOperatorsPreferencesResponse) UnmarshalJSON

func (s *MobileNetworkOperatorsPreferencesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Name

type Name string

func (*Name) Decode

func (s *Name) Decode(d *jx.Decoder) error

Decode decodes Name from json.

func (Name) Encode

func (s Name) Encode(e *jx.Encoder)

Encode encodes Name as json.

func (Name) MarshalJSON

func (s Name) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Name) UnmarshalJSON

func (s *Name) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Network

type Network struct {
	// Identifies the resource.
	ID OptUUID `json:"id"`
	// Merged property.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date-time indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date-time indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
	// A user specified name for the network.
	Name OptString `json:"name"`
}

Merged schema. Ref: #/components/schemas/Network

func (*Network) Decode

func (s *Network) Decode(d *jx.Decoder) error

Decode decodes Network from json.

func (*Network) Encode

func (s *Network) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Network) GetCreatedAt

func (s *Network) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*Network) GetID

func (s *Network) GetID() OptUUID

GetID returns the value of ID.

func (*Network) GetName

func (s *Network) GetName() OptString

GetName returns the value of Name.

func (*Network) GetRecordType

func (s *Network) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*Network) GetUpdatedAt

func (s *Network) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*Network) MarshalJSON

func (s *Network) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Network) SetCreatedAt

func (s *Network) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*Network) SetID

func (s *Network) SetID(val OptUUID)

SetID sets the value of ID.

func (*Network) SetName

func (s *Network) SetName(val OptString)

SetName sets the value of Name.

func (*Network) SetRecordType

func (s *Network) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*Network) SetUpdatedAt

func (s *Network) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*Network) UnmarshalJSON

func (s *Network) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NetworkCreate

type NetworkCreate struct {
	// Identifies the resource.
	ID OptUUID `json:"id"`
	// Merged property.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date-time indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date-time indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
	// A user specified name for the network.
	Name string `json:"name"`
}

Merged schema. Ref: #/components/schemas/NetworkCreate

func (*NetworkCreate) Decode

func (s *NetworkCreate) Decode(d *jx.Decoder) error

Decode decodes NetworkCreate from json.

func (*NetworkCreate) Encode

func (s *NetworkCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NetworkCreate) GetCreatedAt

func (s *NetworkCreate) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*NetworkCreate) GetID

func (s *NetworkCreate) GetID() OptUUID

GetID returns the value of ID.

func (*NetworkCreate) GetName

func (s *NetworkCreate) GetName() string

GetName returns the value of Name.

func (*NetworkCreate) GetRecordType

func (s *NetworkCreate) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*NetworkCreate) GetUpdatedAt

func (s *NetworkCreate) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*NetworkCreate) MarshalJSON

func (s *NetworkCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NetworkCreate) SetCreatedAt

func (s *NetworkCreate) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*NetworkCreate) SetID

func (s *NetworkCreate) SetID(val OptUUID)

SetID sets the value of ID.

func (*NetworkCreate) SetName

func (s *NetworkCreate) SetName(val string)

SetName sets the value of Name.

func (*NetworkCreate) SetRecordType

func (s *NetworkCreate) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*NetworkCreate) SetUpdatedAt

func (s *NetworkCreate) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*NetworkCreate) UnmarshalJSON

func (s *NetworkCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NetworkInterface

type NetworkInterface struct {
	// Identifies the resource.
	ID OptUUID `json:"id"`
	// Merged property.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date-time indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date-time indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
	// The id of the network associated with the interface.
	NetworkID OptUUID `json:"network_id"`
	// A user specified name for the interface.
	Name   OptString          `json:"name"`
	Status OptInterfaceStatus `json:"status"`
	// The region interface is deployed to.
	RegionCode OptString                 `json:"region_code"`
	Region     OptNetworkInterfaceRegion `json:"region"`
	// Identifies the type of the interface.
	Type OptString `json:"type"`
}

Merged schema. Ref: #/components/schemas/NetworkInterface

func (*NetworkInterface) Decode

func (s *NetworkInterface) Decode(d *jx.Decoder) error

Decode decodes NetworkInterface from json.

func (*NetworkInterface) Encode

func (s *NetworkInterface) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NetworkInterface) GetCreatedAt

func (s *NetworkInterface) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*NetworkInterface) GetID

func (s *NetworkInterface) GetID() OptUUID

GetID returns the value of ID.

func (*NetworkInterface) GetName

func (s *NetworkInterface) GetName() OptString

GetName returns the value of Name.

func (*NetworkInterface) GetNetworkID

func (s *NetworkInterface) GetNetworkID() OptUUID

GetNetworkID returns the value of NetworkID.

func (*NetworkInterface) GetRecordType

func (s *NetworkInterface) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*NetworkInterface) GetRegion

GetRegion returns the value of Region.

func (*NetworkInterface) GetRegionCode

func (s *NetworkInterface) GetRegionCode() OptString

GetRegionCode returns the value of RegionCode.

func (*NetworkInterface) GetStatus

func (s *NetworkInterface) GetStatus() OptInterfaceStatus

GetStatus returns the value of Status.

func (*NetworkInterface) GetType

func (s *NetworkInterface) GetType() OptString

GetType returns the value of Type.

func (*NetworkInterface) GetUpdatedAt

func (s *NetworkInterface) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*NetworkInterface) MarshalJSON

func (s *NetworkInterface) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NetworkInterface) SetCreatedAt

func (s *NetworkInterface) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*NetworkInterface) SetID

func (s *NetworkInterface) SetID(val OptUUID)

SetID sets the value of ID.

func (*NetworkInterface) SetName

func (s *NetworkInterface) SetName(val OptString)

SetName sets the value of Name.

func (*NetworkInterface) SetNetworkID

func (s *NetworkInterface) SetNetworkID(val OptUUID)

SetNetworkID sets the value of NetworkID.

func (*NetworkInterface) SetRecordType

func (s *NetworkInterface) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*NetworkInterface) SetRegion

func (s *NetworkInterface) SetRegion(val OptNetworkInterfaceRegion)

SetRegion sets the value of Region.

func (*NetworkInterface) SetRegionCode

func (s *NetworkInterface) SetRegionCode(val OptString)

SetRegionCode sets the value of RegionCode.

func (*NetworkInterface) SetStatus

func (s *NetworkInterface) SetStatus(val OptInterfaceStatus)

SetStatus sets the value of Status.

func (*NetworkInterface) SetType

func (s *NetworkInterface) SetType(val OptString)

SetType sets the value of Type.

func (*NetworkInterface) SetUpdatedAt

func (s *NetworkInterface) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*NetworkInterface) UnmarshalJSON

func (s *NetworkInterface) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NetworkInterface) Validate

func (s *NetworkInterface) Validate() error

type NetworkInterfaceListResponse

type NetworkInterfaceListResponse struct {
	Data []NetworkInterface `json:"data"`
	Meta OptPaginationMeta  `json:"meta"`
}

func (*NetworkInterfaceListResponse) Decode

Decode decodes NetworkInterfaceListResponse from json.

func (*NetworkInterfaceListResponse) Encode

func (s *NetworkInterfaceListResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NetworkInterfaceListResponse) GetData

GetData returns the value of Data.

func (*NetworkInterfaceListResponse) GetMeta

GetMeta returns the value of Meta.

func (*NetworkInterfaceListResponse) MarshalJSON

func (s *NetworkInterfaceListResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NetworkInterfaceListResponse) SetData

SetData sets the value of Data.

func (*NetworkInterfaceListResponse) SetMeta

SetMeta sets the value of Meta.

func (*NetworkInterfaceListResponse) UnmarshalJSON

func (s *NetworkInterfaceListResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NetworkInterfaceListResponse) Validate

func (s *NetworkInterfaceListResponse) Validate() error

type NetworkInterfaceRegion

type NetworkInterfaceRegion struct {
	// Region code of the interface.
	Code OptString `json:"code"`
	// Region name of the interface.
	Name OptString `json:"name"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
}

func (*NetworkInterfaceRegion) Decode

func (s *NetworkInterfaceRegion) Decode(d *jx.Decoder) error

Decode decodes NetworkInterfaceRegion from json.

func (*NetworkInterfaceRegion) Encode

func (s *NetworkInterfaceRegion) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NetworkInterfaceRegion) GetCode

func (s *NetworkInterfaceRegion) GetCode() OptString

GetCode returns the value of Code.

func (*NetworkInterfaceRegion) GetName

func (s *NetworkInterfaceRegion) GetName() OptString

GetName returns the value of Name.

func (*NetworkInterfaceRegion) GetRecordType

func (s *NetworkInterfaceRegion) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*NetworkInterfaceRegion) MarshalJSON

func (s *NetworkInterfaceRegion) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NetworkInterfaceRegion) SetCode

func (s *NetworkInterfaceRegion) SetCode(val OptString)

SetCode sets the value of Code.

func (*NetworkInterfaceRegion) SetName

func (s *NetworkInterfaceRegion) SetName(val OptString)

SetName sets the value of Name.

func (*NetworkInterfaceRegion) SetRecordType

func (s *NetworkInterfaceRegion) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*NetworkInterfaceRegion) UnmarshalJSON

func (s *NetworkInterfaceRegion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NetworkListResponse

type NetworkListResponse struct {
	Data []Network         `json:"data"`
	Meta OptPaginationMeta `json:"meta"`
}

func (*NetworkListResponse) Decode

func (s *NetworkListResponse) Decode(d *jx.Decoder) error

Decode decodes NetworkListResponse from json.

func (*NetworkListResponse) Encode

func (s *NetworkListResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NetworkListResponse) GetData

func (s *NetworkListResponse) GetData() []Network

GetData returns the value of Data.

func (*NetworkListResponse) GetMeta

GetMeta returns the value of Meta.

func (*NetworkListResponse) MarshalJSON

func (s *NetworkListResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NetworkListResponse) SetData

func (s *NetworkListResponse) SetData(val []Network)

SetData sets the value of Data.

func (*NetworkListResponse) SetMeta

func (s *NetworkListResponse) SetMeta(val OptPaginationMeta)

SetMeta sets the value of Meta.

func (*NetworkListResponse) UnmarshalJSON

func (s *NetworkListResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NetworkResponse

type NetworkResponse struct {
	Data OptNetwork `json:"data"`
}

func (*NetworkResponse) Decode

func (s *NetworkResponse) Decode(d *jx.Decoder) error

Decode decodes NetworkResponse from json.

func (*NetworkResponse) Encode

func (s *NetworkResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NetworkResponse) GetData

func (s *NetworkResponse) GetData() OptNetwork

GetData returns the value of Data.

func (*NetworkResponse) MarshalJSON

func (s *NetworkResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NetworkResponse) SetData

func (s *NetworkResponse) SetData(val OptNetwork)

SetData sets the value of Data.

func (*NetworkResponse) UnmarshalJSON

func (s *NetworkResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NewParticipantResource

type NewParticipantResource struct {
	// The id of the account the resource belongs to.
	AccountSid OptString `json:"account_sid"`
	// The identifier of this participant's call.
	CallSid OptString `json:"call_sid"`
	// Whether the participant is coaching another call.
	Coaching OptBool `json:"coaching"`
	// The identifier of the coached participant's call.
	CoachingCallSid OptString `json:"coaching_call_sid"`
	// Whether the conference ends when the participant leaves.
	EndConferenceOnExit OptBool `json:"end_conference_on_exit"`
	// Whether the participant is on hold.
	Hold OptBool `json:"hold"`
	// Whether the participant is muted.
	Muted OptBool `json:"muted"`
	// The status of the participant's call in the conference.
	Status OptNewParticipantResourceStatus `json:"status"`
	// The relative URI for this participant.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/NewParticipantResource

func (*NewParticipantResource) Decode

func (s *NewParticipantResource) Decode(d *jx.Decoder) error

Decode decodes NewParticipantResource from json.

func (*NewParticipantResource) Encode

func (s *NewParticipantResource) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NewParticipantResource) GetAccountSid

func (s *NewParticipantResource) GetAccountSid() OptString

GetAccountSid returns the value of AccountSid.

func (*NewParticipantResource) GetCallSid

func (s *NewParticipantResource) GetCallSid() OptString

GetCallSid returns the value of CallSid.

func (*NewParticipantResource) GetCoaching

func (s *NewParticipantResource) GetCoaching() OptBool

GetCoaching returns the value of Coaching.

func (*NewParticipantResource) GetCoachingCallSid

func (s *NewParticipantResource) GetCoachingCallSid() OptString

GetCoachingCallSid returns the value of CoachingCallSid.

func (*NewParticipantResource) GetEndConferenceOnExit

func (s *NewParticipantResource) GetEndConferenceOnExit() OptBool

GetEndConferenceOnExit returns the value of EndConferenceOnExit.

func (*NewParticipantResource) GetHold

func (s *NewParticipantResource) GetHold() OptBool

GetHold returns the value of Hold.

func (*NewParticipantResource) GetMuted

func (s *NewParticipantResource) GetMuted() OptBool

GetMuted returns the value of Muted.

func (*NewParticipantResource) GetStatus

GetStatus returns the value of Status.

func (*NewParticipantResource) GetURI

func (s *NewParticipantResource) GetURI() OptString

GetURI returns the value of URI.

func (*NewParticipantResource) MarshalJSON

func (s *NewParticipantResource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NewParticipantResource) SetAccountSid

func (s *NewParticipantResource) SetAccountSid(val OptString)

SetAccountSid sets the value of AccountSid.

func (*NewParticipantResource) SetCallSid

func (s *NewParticipantResource) SetCallSid(val OptString)

SetCallSid sets the value of CallSid.

func (*NewParticipantResource) SetCoaching

func (s *NewParticipantResource) SetCoaching(val OptBool)

SetCoaching sets the value of Coaching.

func (*NewParticipantResource) SetCoachingCallSid

func (s *NewParticipantResource) SetCoachingCallSid(val OptString)

SetCoachingCallSid sets the value of CoachingCallSid.

func (*NewParticipantResource) SetEndConferenceOnExit

func (s *NewParticipantResource) SetEndConferenceOnExit(val OptBool)

SetEndConferenceOnExit sets the value of EndConferenceOnExit.

func (*NewParticipantResource) SetHold

func (s *NewParticipantResource) SetHold(val OptBool)

SetHold sets the value of Hold.

func (*NewParticipantResource) SetMuted

func (s *NewParticipantResource) SetMuted(val OptBool)

SetMuted sets the value of Muted.

func (*NewParticipantResource) SetStatus

SetStatus sets the value of Status.

func (*NewParticipantResource) SetURI

func (s *NewParticipantResource) SetURI(val OptString)

SetURI sets the value of URI.

func (*NewParticipantResource) UnmarshalJSON

func (s *NewParticipantResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NewParticipantResource) Validate

func (s *NewParticipantResource) Validate() error

type NewParticipantResourceStatus

type NewParticipantResourceStatus string

The status of the participant's call in the conference.

const (
	NewParticipantResourceStatusConnecting NewParticipantResourceStatus = "connecting"
	NewParticipantResourceStatusConnected  NewParticipantResourceStatus = "connected"
	NewParticipantResourceStatusCompleted  NewParticipantResourceStatus = "completed"
)

func (NewParticipantResourceStatus) AllValues

AllValues returns all NewParticipantResourceStatus values.

func (*NewParticipantResourceStatus) Decode

Decode decodes NewParticipantResourceStatus from json.

func (NewParticipantResourceStatus) Encode

Encode encodes NewParticipantResourceStatus as json.

func (NewParticipantResourceStatus) MarshalJSON

func (s NewParticipantResourceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NewParticipantResourceStatus) MarshalText

func (s NewParticipantResourceStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*NewParticipantResourceStatus) UnmarshalJSON

func (s *NewParticipantResourceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NewParticipantResourceStatus) UnmarshalText

func (s *NewParticipantResourceStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (NewParticipantResourceStatus) Validate

func (s NewParticipantResourceStatus) Validate() error

type NoiseSuppressionDirection

type NoiseSuppressionDirection string

The direction of the audio stream to be noise suppressed. Ref: #/components/schemas/NoiseSuppressionDirection

const (
	NoiseSuppressionDirectionInbound  NoiseSuppressionDirection = "inbound"
	NoiseSuppressionDirectionOutbound NoiseSuppressionDirection = "outbound"
	NoiseSuppressionDirectionBoth     NoiseSuppressionDirection = "both"
)

func (NoiseSuppressionDirection) AllValues

AllValues returns all NoiseSuppressionDirection values.

func (*NoiseSuppressionDirection) Decode

func (s *NoiseSuppressionDirection) Decode(d *jx.Decoder) error

Decode decodes NoiseSuppressionDirection from json.

func (NoiseSuppressionDirection) Encode

func (s NoiseSuppressionDirection) Encode(e *jx.Encoder)

Encode encodes NoiseSuppressionDirection as json.

func (NoiseSuppressionDirection) MarshalJSON

func (s NoiseSuppressionDirection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NoiseSuppressionDirection) MarshalText

func (s NoiseSuppressionDirection) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*NoiseSuppressionDirection) UnmarshalJSON

func (s *NoiseSuppressionDirection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NoiseSuppressionDirection) UnmarshalText

func (s *NoiseSuppressionDirection) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (NoiseSuppressionDirection) Validate

func (s NoiseSuppressionDirection) Validate() error

type NoiseSuppressionStart

type NoiseSuppressionStart struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString                    `json:"command_id"`
	Direction OptNoiseSuppressionDirection `json:"direction"`
}

Ref: #/components/schemas/NoiseSuppressionStart

func (*NoiseSuppressionStart) Decode

func (s *NoiseSuppressionStart) Decode(d *jx.Decoder) error

Decode decodes NoiseSuppressionStart from json.

func (*NoiseSuppressionStart) Encode

func (s *NoiseSuppressionStart) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NoiseSuppressionStart) GetClientState

func (s *NoiseSuppressionStart) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*NoiseSuppressionStart) GetCommandID

func (s *NoiseSuppressionStart) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*NoiseSuppressionStart) GetDirection

GetDirection returns the value of Direction.

func (*NoiseSuppressionStart) MarshalJSON

func (s *NoiseSuppressionStart) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NoiseSuppressionStart) SetClientState

func (s *NoiseSuppressionStart) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*NoiseSuppressionStart) SetCommandID

func (s *NoiseSuppressionStart) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*NoiseSuppressionStart) SetDirection

SetDirection sets the value of Direction.

func (*NoiseSuppressionStart) UnmarshalJSON

func (s *NoiseSuppressionStart) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NoiseSuppressionStart) Validate

func (s *NoiseSuppressionStart) Validate() error

type NoiseSuppressionStartParams

type NoiseSuppressionStartParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

NoiseSuppressionStartParams is parameters of noiseSuppressionStart operation.

type NoiseSuppressionStartRes

type NoiseSuppressionStartRes interface {
	// contains filtered or unexported methods
}

type NoiseSuppressionStop

type NoiseSuppressionStop struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/NoiseSuppressionStop

func (*NoiseSuppressionStop) Decode

func (s *NoiseSuppressionStop) Decode(d *jx.Decoder) error

Decode decodes NoiseSuppressionStop from json.

func (*NoiseSuppressionStop) Encode

func (s *NoiseSuppressionStop) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NoiseSuppressionStop) GetClientState

func (s *NoiseSuppressionStop) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*NoiseSuppressionStop) GetCommandID

func (s *NoiseSuppressionStop) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*NoiseSuppressionStop) MarshalJSON

func (s *NoiseSuppressionStop) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NoiseSuppressionStop) SetClientState

func (s *NoiseSuppressionStop) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*NoiseSuppressionStop) SetCommandID

func (s *NoiseSuppressionStop) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*NoiseSuppressionStop) UnmarshalJSON

func (s *NoiseSuppressionStop) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NoiseSuppressionStopParams

type NoiseSuppressionStopParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

NoiseSuppressionStopParams is parameters of noiseSuppressionStop operation.

type NoiseSuppressionStopRes

type NoiseSuppressionStopRes interface {
	// contains filtered or unexported methods
}

type NotificationChannel

type NotificationChannel struct {
	// A UUID.
	ID OptString `json:"id"`
	// A UUID reference to the associated Notification Profile.
	NotificationProfileID OptString `json:"notification_profile_id"`
	// A Channel Type ID.
	ChannelTypeID OptNotificationChannelChannelTypeID `json:"channel_type_id"`
	// The destination associated with the channel type.
	ChannelDestination OptString `json:"channel_destination"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptDateTime `json:"created_at"`
	// ISO 8601 formatted date indicating when the resource was updated.
	UpdatedAt OptDateTime `json:"updated_at"`
}

A Notification Channel. Ref: #/components/schemas/NotificationChannel

func (*NotificationChannel) Decode

func (s *NotificationChannel) Decode(d *jx.Decoder) error

Decode decodes NotificationChannel from json.

func (*NotificationChannel) Encode

func (s *NotificationChannel) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NotificationChannel) GetChannelDestination

func (s *NotificationChannel) GetChannelDestination() OptString

GetChannelDestination returns the value of ChannelDestination.

func (*NotificationChannel) GetChannelTypeID

GetChannelTypeID returns the value of ChannelTypeID.

func (*NotificationChannel) GetCreatedAt

func (s *NotificationChannel) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*NotificationChannel) GetID

func (s *NotificationChannel) GetID() OptString

GetID returns the value of ID.

func (*NotificationChannel) GetNotificationProfileID

func (s *NotificationChannel) GetNotificationProfileID() OptString

GetNotificationProfileID returns the value of NotificationProfileID.

func (*NotificationChannel) GetUpdatedAt

func (s *NotificationChannel) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*NotificationChannel) MarshalJSON

func (s *NotificationChannel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NotificationChannel) SetChannelDestination

func (s *NotificationChannel) SetChannelDestination(val OptString)

SetChannelDestination sets the value of ChannelDestination.

func (*NotificationChannel) SetChannelTypeID

SetChannelTypeID sets the value of ChannelTypeID.

func (*NotificationChannel) SetCreatedAt

func (s *NotificationChannel) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*NotificationChannel) SetID

func (s *NotificationChannel) SetID(val OptString)

SetID sets the value of ID.

func (*NotificationChannel) SetNotificationProfileID

func (s *NotificationChannel) SetNotificationProfileID(val OptString)

SetNotificationProfileID sets the value of NotificationProfileID.

func (*NotificationChannel) SetUpdatedAt

func (s *NotificationChannel) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*NotificationChannel) UnmarshalJSON

func (s *NotificationChannel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NotificationChannel) Validate

func (s *NotificationChannel) Validate() error

type NotificationChannelChannelTypeID

type NotificationChannelChannelTypeID string

A Channel Type ID.

const (
	NotificationChannelChannelTypeIDSMS     NotificationChannelChannelTypeID = "sms"
	NotificationChannelChannelTypeIDVoice   NotificationChannelChannelTypeID = "voice"
	NotificationChannelChannelTypeIDEmail   NotificationChannelChannelTypeID = "email"
	NotificationChannelChannelTypeIDWebhook NotificationChannelChannelTypeID = "webhook"
)

func (NotificationChannelChannelTypeID) AllValues

AllValues returns all NotificationChannelChannelTypeID values.

func (*NotificationChannelChannelTypeID) Decode

Decode decodes NotificationChannelChannelTypeID from json.

func (NotificationChannelChannelTypeID) Encode

Encode encodes NotificationChannelChannelTypeID as json.

func (NotificationChannelChannelTypeID) MarshalJSON

func (s NotificationChannelChannelTypeID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NotificationChannelChannelTypeID) MarshalText

func (s NotificationChannelChannelTypeID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*NotificationChannelChannelTypeID) UnmarshalJSON

func (s *NotificationChannelChannelTypeID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NotificationChannelChannelTypeID) UnmarshalText

func (s *NotificationChannelChannelTypeID) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (NotificationChannelChannelTypeID) Validate

type NumberHealthMetrics

type NumberHealthMetrics struct {
	// The number of messages analyzed for the health metrics.
	MessageCount int `json:"message_count"`
	// The ratio of messages received to the number of messages sent.
	InboundOutboundRatio float32 `json:"inbound_outbound_ratio"`
	// The ratio of messages sucessfully delivered to the number of messages attempted.
	SuccessRatio float32 `json:"success_ratio"`
	// The ratio of messages blocked for spam to the number of messages attempted.
	SpamRatio float32 `json:"spam_ratio"`
}

High level health metrics about the number and it's messaging sending patterns. Ref: #/components/schemas/NumberHealthMetrics

func (*NumberHealthMetrics) Decode

func (s *NumberHealthMetrics) Decode(d *jx.Decoder) error

Decode decodes NumberHealthMetrics from json.

func (*NumberHealthMetrics) Encode

func (s *NumberHealthMetrics) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NumberHealthMetrics) GetInboundOutboundRatio

func (s *NumberHealthMetrics) GetInboundOutboundRatio() float32

GetInboundOutboundRatio returns the value of InboundOutboundRatio.

func (*NumberHealthMetrics) GetMessageCount

func (s *NumberHealthMetrics) GetMessageCount() int

GetMessageCount returns the value of MessageCount.

func (*NumberHealthMetrics) GetSpamRatio

func (s *NumberHealthMetrics) GetSpamRatio() float32

GetSpamRatio returns the value of SpamRatio.

func (*NumberHealthMetrics) GetSuccessRatio

func (s *NumberHealthMetrics) GetSuccessRatio() float32

GetSuccessRatio returns the value of SuccessRatio.

func (*NumberHealthMetrics) MarshalJSON

func (s *NumberHealthMetrics) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NumberHealthMetrics) SetInboundOutboundRatio

func (s *NumberHealthMetrics) SetInboundOutboundRatio(val float32)

SetInboundOutboundRatio sets the value of InboundOutboundRatio.

func (*NumberHealthMetrics) SetMessageCount

func (s *NumberHealthMetrics) SetMessageCount(val int)

SetMessageCount sets the value of MessageCount.

func (*NumberHealthMetrics) SetSpamRatio

func (s *NumberHealthMetrics) SetSpamRatio(val float32)

SetSpamRatio sets the value of SpamRatio.

func (*NumberHealthMetrics) SetSuccessRatio

func (s *NumberHealthMetrics) SetSuccessRatio(val float32)

SetSuccessRatio sets the value of SuccessRatio.

func (*NumberHealthMetrics) UnmarshalJSON

func (s *NumberHealthMetrics) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberHealthMetrics) Validate

func (s *NumberHealthMetrics) Validate() error

type NumberLookupRecord

type NumberLookupRecord struct {
	// Identifies the type of record.
	RecordType OptString `json:"record_type"`
	// Region code that matches the specific country calling code.
	CountryCode OptString `json:"country_code"`
	// Hyphen-separated national number, preceded by the national destination code (NDC), with a 0 prefix,
	//  if an NDC is found.
	NationalFormat OptString `json:"national_format"`
	// E164-formatted phone number.
	PhoneNumber OptString `json:"phone_number"`
	// Unused.
	Fraud       OptString      `json:"fraud"`
	Carrier     OptCarrier     `json:"carrier"`
	CallerName  OptCallerName  `json:"caller_name"`
	Portability OptPortability `json:"portability"`
}

Ref: #/components/schemas/NumberLookupRecord

func (*NumberLookupRecord) Decode

func (s *NumberLookupRecord) Decode(d *jx.Decoder) error

Decode decodes NumberLookupRecord from json.

func (*NumberLookupRecord) Encode

func (s *NumberLookupRecord) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NumberLookupRecord) GetCallerName

func (s *NumberLookupRecord) GetCallerName() OptCallerName

GetCallerName returns the value of CallerName.

func (*NumberLookupRecord) GetCarrier

func (s *NumberLookupRecord) GetCarrier() OptCarrier

GetCarrier returns the value of Carrier.

func (*NumberLookupRecord) GetCountryCode

func (s *NumberLookupRecord) GetCountryCode() OptString

GetCountryCode returns the value of CountryCode.

func (*NumberLookupRecord) GetFraud

func (s *NumberLookupRecord) GetFraud() OptString

GetFraud returns the value of Fraud.

func (*NumberLookupRecord) GetNationalFormat

func (s *NumberLookupRecord) GetNationalFormat() OptString

GetNationalFormat returns the value of NationalFormat.

func (*NumberLookupRecord) GetPhoneNumber

func (s *NumberLookupRecord) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*NumberLookupRecord) GetPortability

func (s *NumberLookupRecord) GetPortability() OptPortability

GetPortability returns the value of Portability.

func (*NumberLookupRecord) GetRecordType

func (s *NumberLookupRecord) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*NumberLookupRecord) MarshalJSON

func (s *NumberLookupRecord) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NumberLookupRecord) SetCallerName

func (s *NumberLookupRecord) SetCallerName(val OptCallerName)

SetCallerName sets the value of CallerName.

func (*NumberLookupRecord) SetCarrier

func (s *NumberLookupRecord) SetCarrier(val OptCarrier)

SetCarrier sets the value of Carrier.

func (*NumberLookupRecord) SetCountryCode

func (s *NumberLookupRecord) SetCountryCode(val OptString)

SetCountryCode sets the value of CountryCode.

func (*NumberLookupRecord) SetFraud

func (s *NumberLookupRecord) SetFraud(val OptString)

SetFraud sets the value of Fraud.

func (*NumberLookupRecord) SetNationalFormat

func (s *NumberLookupRecord) SetNationalFormat(val OptString)

SetNationalFormat sets the value of NationalFormat.

func (*NumberLookupRecord) SetPhoneNumber

func (s *NumberLookupRecord) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*NumberLookupRecord) SetPortability

func (s *NumberLookupRecord) SetPortability(val OptPortability)

SetPortability sets the value of Portability.

func (*NumberLookupRecord) SetRecordType

func (s *NumberLookupRecord) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*NumberLookupRecord) UnmarshalJSON

func (s *NumberLookupRecord) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberLookupRecord) Validate

func (s *NumberLookupRecord) Validate() error

type NumberLookupResponse

type NumberLookupResponse struct {
	Data OptNumberLookupRecord `json:"data"`
}

func (*NumberLookupResponse) Decode

func (s *NumberLookupResponse) Decode(d *jx.Decoder) error

Decode decodes NumberLookupResponse from json.

func (*NumberLookupResponse) Encode

func (s *NumberLookupResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NumberLookupResponse) GetData

GetData returns the value of Data.

func (*NumberLookupResponse) MarshalJSON

func (s *NumberLookupResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NumberLookupResponse) SetData

SetData sets the value of Data.

func (*NumberLookupResponse) UnmarshalJSON

func (s *NumberLookupResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberLookupResponse) Validate

func (s *NumberLookupResponse) Validate() error

type NumberLookupType

type NumberLookupType string
const (
	NumberLookupTypeCarrier    NumberLookupType = "carrier"
	NumberLookupTypeCallerName NumberLookupType = "caller-name"
)

func (NumberLookupType) AllValues

func (NumberLookupType) AllValues() []NumberLookupType

AllValues returns all NumberLookupType values.

func (NumberLookupType) MarshalText

func (s NumberLookupType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*NumberLookupType) UnmarshalText

func (s *NumberLookupType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (NumberLookupType) Validate

func (s NumberLookupType) Validate() error

type NumberOrderDocument

type NumberOrderDocument struct {
	ID         OptUUID   `json:"id"`
	RecordType OptString `json:"record_type"`
	// The id of the file to associate as a number order document.
	FileID OptString `json:"file_id"`
	// Unique id for a requirement.
	RequirementsID OptString `json:"requirements_id"`
	// A customer reference string for customer look ups.
	CustomerReference OptString                             `json:"customer_reference"`
	RequirementType   OptNumberOrderDocumentRequirementType `json:"requirement_type"`
	// An ISO 8901 datetime string denoting when the number order document was uploaded.
	CreatedAt OptString `json:"created_at"`
}

Ref: #/components/schemas/NumberOrderDocument

func (*NumberOrderDocument) Decode

func (s *NumberOrderDocument) Decode(d *jx.Decoder) error

Decode decodes NumberOrderDocument from json.

func (*NumberOrderDocument) Encode

func (s *NumberOrderDocument) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NumberOrderDocument) GetCreatedAt

func (s *NumberOrderDocument) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*NumberOrderDocument) GetCustomerReference

func (s *NumberOrderDocument) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*NumberOrderDocument) GetFileID

func (s *NumberOrderDocument) GetFileID() OptString

GetFileID returns the value of FileID.

func (*NumberOrderDocument) GetID

func (s *NumberOrderDocument) GetID() OptUUID

GetID returns the value of ID.

func (*NumberOrderDocument) GetRecordType

func (s *NumberOrderDocument) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*NumberOrderDocument) GetRequirementType

GetRequirementType returns the value of RequirementType.

func (*NumberOrderDocument) GetRequirementsID

func (s *NumberOrderDocument) GetRequirementsID() OptString

GetRequirementsID returns the value of RequirementsID.

func (*NumberOrderDocument) MarshalJSON

func (s *NumberOrderDocument) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NumberOrderDocument) SetCreatedAt

func (s *NumberOrderDocument) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*NumberOrderDocument) SetCustomerReference

func (s *NumberOrderDocument) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*NumberOrderDocument) SetFileID

func (s *NumberOrderDocument) SetFileID(val OptString)

SetFileID sets the value of FileID.

func (*NumberOrderDocument) SetID

func (s *NumberOrderDocument) SetID(val OptUUID)

SetID sets the value of ID.

func (*NumberOrderDocument) SetRecordType

func (s *NumberOrderDocument) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*NumberOrderDocument) SetRequirementType

SetRequirementType sets the value of RequirementType.

func (*NumberOrderDocument) SetRequirementsID

func (s *NumberOrderDocument) SetRequirementsID(val OptString)

SetRequirementsID sets the value of RequirementsID.

func (*NumberOrderDocument) UnmarshalJSON

func (s *NumberOrderDocument) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberOrderDocument) Validate

func (s *NumberOrderDocument) Validate() error

type NumberOrderDocumentRequirementType

type NumberOrderDocumentRequirementType string
const (
	NumberOrderDocumentRequirementTypeAddressProof   NumberOrderDocumentRequirementType = "address_proof"
	NumberOrderDocumentRequirementTypeIdentification NumberOrderDocumentRequirementType = "identification"
	NumberOrderDocumentRequirementTypeRegForm        NumberOrderDocumentRequirementType = "reg_form"
)

func (NumberOrderDocumentRequirementType) AllValues

AllValues returns all NumberOrderDocumentRequirementType values.

func (*NumberOrderDocumentRequirementType) Decode

Decode decodes NumberOrderDocumentRequirementType from json.

func (NumberOrderDocumentRequirementType) Encode

Encode encodes NumberOrderDocumentRequirementType as json.

func (NumberOrderDocumentRequirementType) MarshalJSON

func (s NumberOrderDocumentRequirementType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NumberOrderDocumentRequirementType) MarshalText

func (s NumberOrderDocumentRequirementType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*NumberOrderDocumentRequirementType) UnmarshalJSON

func (s *NumberOrderDocumentRequirementType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberOrderDocumentRequirementType) UnmarshalText

func (s *NumberOrderDocumentRequirementType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (NumberOrderDocumentRequirementType) Validate

type NumberOrderDocumentResponse

type NumberOrderDocumentResponse struct {
	Data OptNumberOrderDocument `json:"data"`
}

func (*NumberOrderDocumentResponse) Decode

Decode decodes NumberOrderDocumentResponse from json.

func (*NumberOrderDocumentResponse) Encode

func (s *NumberOrderDocumentResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NumberOrderDocumentResponse) GetData

GetData returns the value of Data.

func (*NumberOrderDocumentResponse) MarshalJSON

func (s *NumberOrderDocumentResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NumberOrderDocumentResponse) SetData

SetData sets the value of Data.

func (*NumberOrderDocumentResponse) UnmarshalJSON

func (s *NumberOrderDocumentResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberOrderDocumentResponse) Validate

func (s *NumberOrderDocumentResponse) Validate() error

type NumberOrderPhoneNumber

type NumberOrderPhoneNumber struct {
	ID                     OptUUID                                        `json:"id"`
	RecordType             OptString                                      `json:"record_type"`
	PhoneNumber            OptString                                      `json:"phone_number"`
	OrderRequestID         OptUUID                                        `json:"order_request_id"`
	SubNumberOrderID       OptUUID                                        `json:"sub_number_order_id"`
	CountryCode            OptString                                      `json:"country_code"`
	PhoneNumberType        OptNumberOrderPhoneNumberPhoneNumberType       `json:"phone_number_type"`
	RegulatoryRequirements []SubNumberOrderRegulatoryRequirementWithValue `json:"regulatory_requirements"`
	// True if all requirements are met for a phone number, false otherwise.
	RequirementsMet OptBool `json:"requirements_met"`
	// The status of the phone number in the order.
	Status OptNumberOrderPhoneNumberStatus `json:"status"`
}

Ref: #/components/schemas/NumberOrderPhoneNumber

func (*NumberOrderPhoneNumber) Decode

func (s *NumberOrderPhoneNumber) Decode(d *jx.Decoder) error

Decode decodes NumberOrderPhoneNumber from json.

func (*NumberOrderPhoneNumber) Encode

func (s *NumberOrderPhoneNumber) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NumberOrderPhoneNumber) GetCountryCode

func (s *NumberOrderPhoneNumber) GetCountryCode() OptString

GetCountryCode returns the value of CountryCode.

func (*NumberOrderPhoneNumber) GetID

func (s *NumberOrderPhoneNumber) GetID() OptUUID

GetID returns the value of ID.

func (*NumberOrderPhoneNumber) GetOrderRequestID

func (s *NumberOrderPhoneNumber) GetOrderRequestID() OptUUID

GetOrderRequestID returns the value of OrderRequestID.

func (*NumberOrderPhoneNumber) GetPhoneNumber

func (s *NumberOrderPhoneNumber) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*NumberOrderPhoneNumber) GetPhoneNumberType

GetPhoneNumberType returns the value of PhoneNumberType.

func (*NumberOrderPhoneNumber) GetRecordType

func (s *NumberOrderPhoneNumber) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*NumberOrderPhoneNumber) GetRegulatoryRequirements

GetRegulatoryRequirements returns the value of RegulatoryRequirements.

func (*NumberOrderPhoneNumber) GetRequirementsMet

func (s *NumberOrderPhoneNumber) GetRequirementsMet() OptBool

GetRequirementsMet returns the value of RequirementsMet.

func (*NumberOrderPhoneNumber) GetStatus

GetStatus returns the value of Status.

func (*NumberOrderPhoneNumber) GetSubNumberOrderID

func (s *NumberOrderPhoneNumber) GetSubNumberOrderID() OptUUID

GetSubNumberOrderID returns the value of SubNumberOrderID.

func (*NumberOrderPhoneNumber) MarshalJSON

func (s *NumberOrderPhoneNumber) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NumberOrderPhoneNumber) SetCountryCode

func (s *NumberOrderPhoneNumber) SetCountryCode(val OptString)

SetCountryCode sets the value of CountryCode.

func (*NumberOrderPhoneNumber) SetID

func (s *NumberOrderPhoneNumber) SetID(val OptUUID)

SetID sets the value of ID.

func (*NumberOrderPhoneNumber) SetOrderRequestID

func (s *NumberOrderPhoneNumber) SetOrderRequestID(val OptUUID)

SetOrderRequestID sets the value of OrderRequestID.

func (*NumberOrderPhoneNumber) SetPhoneNumber

func (s *NumberOrderPhoneNumber) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*NumberOrderPhoneNumber) SetPhoneNumberType

SetPhoneNumberType sets the value of PhoneNumberType.

func (*NumberOrderPhoneNumber) SetRecordType

func (s *NumberOrderPhoneNumber) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*NumberOrderPhoneNumber) SetRegulatoryRequirements

func (s *NumberOrderPhoneNumber) SetRegulatoryRequirements(val []SubNumberOrderRegulatoryRequirementWithValue)

SetRegulatoryRequirements sets the value of RegulatoryRequirements.

func (*NumberOrderPhoneNumber) SetRequirementsMet

func (s *NumberOrderPhoneNumber) SetRequirementsMet(val OptBool)

SetRequirementsMet sets the value of RequirementsMet.

func (*NumberOrderPhoneNumber) SetStatus

SetStatus sets the value of Status.

func (*NumberOrderPhoneNumber) SetSubNumberOrderID

func (s *NumberOrderPhoneNumber) SetSubNumberOrderID(val OptUUID)

SetSubNumberOrderID sets the value of SubNumberOrderID.

func (*NumberOrderPhoneNumber) UnmarshalJSON

func (s *NumberOrderPhoneNumber) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberOrderPhoneNumber) Validate

func (s *NumberOrderPhoneNumber) Validate() error

type NumberOrderPhoneNumberPhoneNumberType

type NumberOrderPhoneNumberPhoneNumberType string
const (
	NumberOrderPhoneNumberPhoneNumberTypeLocal      NumberOrderPhoneNumberPhoneNumberType = "local"
	NumberOrderPhoneNumberPhoneNumberTypeTollFree   NumberOrderPhoneNumberPhoneNumberType = "toll_free"
	NumberOrderPhoneNumberPhoneNumberTypeMobile     NumberOrderPhoneNumberPhoneNumberType = "mobile"
	NumberOrderPhoneNumberPhoneNumberTypeNational   NumberOrderPhoneNumberPhoneNumberType = "national"
	NumberOrderPhoneNumberPhoneNumberTypeSharedCost NumberOrderPhoneNumberPhoneNumberType = "shared_cost"
	NumberOrderPhoneNumberPhoneNumberTypeLandline   NumberOrderPhoneNumberPhoneNumberType = "landline"
)

func (NumberOrderPhoneNumberPhoneNumberType) AllValues

AllValues returns all NumberOrderPhoneNumberPhoneNumberType values.

func (*NumberOrderPhoneNumberPhoneNumberType) Decode

Decode decodes NumberOrderPhoneNumberPhoneNumberType from json.

func (NumberOrderPhoneNumberPhoneNumberType) Encode

Encode encodes NumberOrderPhoneNumberPhoneNumberType as json.

func (NumberOrderPhoneNumberPhoneNumberType) MarshalJSON

func (s NumberOrderPhoneNumberPhoneNumberType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NumberOrderPhoneNumberPhoneNumberType) MarshalText

func (s NumberOrderPhoneNumberPhoneNumberType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*NumberOrderPhoneNumberPhoneNumberType) UnmarshalJSON

func (s *NumberOrderPhoneNumberPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberOrderPhoneNumberPhoneNumberType) UnmarshalText

func (s *NumberOrderPhoneNumberPhoneNumberType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (NumberOrderPhoneNumberPhoneNumberType) Validate

type NumberOrderPhoneNumberResponse

type NumberOrderPhoneNumberResponse struct {
	Data OptNumberOrderPhoneNumber `json:"data"`
}

func (*NumberOrderPhoneNumberResponse) Decode

Decode decodes NumberOrderPhoneNumberResponse from json.

func (*NumberOrderPhoneNumberResponse) Encode

Encode implements json.Marshaler.

func (*NumberOrderPhoneNumberResponse) GetData

GetData returns the value of Data.

func (*NumberOrderPhoneNumberResponse) MarshalJSON

func (s *NumberOrderPhoneNumberResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NumberOrderPhoneNumberResponse) SetData

SetData sets the value of Data.

func (*NumberOrderPhoneNumberResponse) UnmarshalJSON

func (s *NumberOrderPhoneNumberResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberOrderPhoneNumberResponse) Validate

func (s *NumberOrderPhoneNumberResponse) Validate() error

type NumberOrderPhoneNumberStatus

type NumberOrderPhoneNumberStatus string

The status of the phone number in the order.

const (
	NumberOrderPhoneNumberStatusPending NumberOrderPhoneNumberStatus = "pending"
	NumberOrderPhoneNumberStatusSuccess NumberOrderPhoneNumberStatus = "success"
	NumberOrderPhoneNumberStatusFailure NumberOrderPhoneNumberStatus = "failure"
)

func (NumberOrderPhoneNumberStatus) AllValues

AllValues returns all NumberOrderPhoneNumberStatus values.

func (*NumberOrderPhoneNumberStatus) Decode

Decode decodes NumberOrderPhoneNumberStatus from json.

func (NumberOrderPhoneNumberStatus) Encode

Encode encodes NumberOrderPhoneNumberStatus as json.

func (NumberOrderPhoneNumberStatus) MarshalJSON

func (s NumberOrderPhoneNumberStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NumberOrderPhoneNumberStatus) MarshalText

func (s NumberOrderPhoneNumberStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*NumberOrderPhoneNumberStatus) UnmarshalJSON

func (s *NumberOrderPhoneNumberStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberOrderPhoneNumberStatus) UnmarshalText

func (s *NumberOrderPhoneNumberStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (NumberOrderPhoneNumberStatus) Validate

func (s NumberOrderPhoneNumberStatus) Validate() error

type NumberReservation

type NumberReservation struct {
	ID           OptUUID               `json:"id"`
	RecordType   OptString             `json:"record_type"`
	PhoneNumbers []ReservedPhoneNumber `json:"phone_numbers"`
	// The status of the entire reservation.
	Status OptNumberReservationStatus `json:"status"`
	// A customer reference string for customer look ups.
	CustomerReference OptString `json:"customer_reference"`
	// An ISO 8901 datetime string denoting when the numbers reservation was created.
	CreatedAt OptString `json:"created_at"`
	// An ISO 8901 datetime string for when the number reservation was updated.
	UpdatedAt OptString `json:"updated_at"`
}

Ref: #/components/schemas/NumberReservation

func (*NumberReservation) Decode

func (s *NumberReservation) Decode(d *jx.Decoder) error

Decode decodes NumberReservation from json.

func (*NumberReservation) Encode

func (s *NumberReservation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NumberReservation) GetCreatedAt

func (s *NumberReservation) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*NumberReservation) GetCustomerReference

func (s *NumberReservation) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*NumberReservation) GetID

func (s *NumberReservation) GetID() OptUUID

GetID returns the value of ID.

func (*NumberReservation) GetPhoneNumbers

func (s *NumberReservation) GetPhoneNumbers() []ReservedPhoneNumber

GetPhoneNumbers returns the value of PhoneNumbers.

func (*NumberReservation) GetRecordType

func (s *NumberReservation) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*NumberReservation) GetStatus

GetStatus returns the value of Status.

func (*NumberReservation) GetUpdatedAt

func (s *NumberReservation) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*NumberReservation) MarshalJSON

func (s *NumberReservation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NumberReservation) SetCreatedAt

func (s *NumberReservation) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*NumberReservation) SetCustomerReference

func (s *NumberReservation) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*NumberReservation) SetID

func (s *NumberReservation) SetID(val OptUUID)

SetID sets the value of ID.

func (*NumberReservation) SetPhoneNumbers

func (s *NumberReservation) SetPhoneNumbers(val []ReservedPhoneNumber)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*NumberReservation) SetRecordType

func (s *NumberReservation) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*NumberReservation) SetStatus

SetStatus sets the value of Status.

func (*NumberReservation) SetUpdatedAt

func (s *NumberReservation) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*NumberReservation) UnmarshalJSON

func (s *NumberReservation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberReservation) Validate

func (s *NumberReservation) Validate() error

type NumberReservationResponse

type NumberReservationResponse struct {
	Data OptNumberReservation `json:"data"`
}

func (*NumberReservationResponse) Decode

func (s *NumberReservationResponse) Decode(d *jx.Decoder) error

Decode decodes NumberReservationResponse from json.

func (*NumberReservationResponse) Encode

func (s *NumberReservationResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NumberReservationResponse) GetData

GetData returns the value of Data.

func (*NumberReservationResponse) MarshalJSON

func (s *NumberReservationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NumberReservationResponse) SetData

SetData sets the value of Data.

func (*NumberReservationResponse) UnmarshalJSON

func (s *NumberReservationResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberReservationResponse) Validate

func (s *NumberReservationResponse) Validate() error

type NumberReservationStatus

type NumberReservationStatus string

The status of the entire reservation.

const (
	NumberReservationStatusPending NumberReservationStatus = "pending"
	NumberReservationStatusSuccess NumberReservationStatus = "success"
	NumberReservationStatusFailure NumberReservationStatus = "failure"
)

func (NumberReservationStatus) AllValues

AllValues returns all NumberReservationStatus values.

func (*NumberReservationStatus) Decode

func (s *NumberReservationStatus) Decode(d *jx.Decoder) error

Decode decodes NumberReservationStatus from json.

func (NumberReservationStatus) Encode

func (s NumberReservationStatus) Encode(e *jx.Encoder)

Encode encodes NumberReservationStatus as json.

func (NumberReservationStatus) MarshalJSON

func (s NumberReservationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NumberReservationStatus) MarshalText

func (s NumberReservationStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*NumberReservationStatus) UnmarshalJSON

func (s *NumberReservationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NumberReservationStatus) UnmarshalText

func (s *NumberReservationStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (NumberReservationStatus) Validate

func (s NumberReservationStatus) Validate() error

type OTAUpdateResponse

type OTAUpdateResponse struct {
	Data OptCompleteOTAUpdate `json:"data"`
}

func (*OTAUpdateResponse) Decode

func (s *OTAUpdateResponse) Decode(d *jx.Decoder) error

Decode decodes OTAUpdateResponse from json.

func (*OTAUpdateResponse) Encode

func (s *OTAUpdateResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OTAUpdateResponse) GetData

GetData returns the value of Data.

func (*OTAUpdateResponse) MarshalJSON

func (s *OTAUpdateResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OTAUpdateResponse) SetData

func (s *OTAUpdateResponse) SetData(val OptCompleteOTAUpdate)

SetData sets the value of Data.

func (*OTAUpdateResponse) UnmarshalJSON

func (s *OTAUpdateResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OTAUpdateResponse) Validate

func (s *OTAUpdateResponse) Validate() error

type OptAccountSid

type OptAccountSid struct {
	Value AccountSid
	Set   bool
}

OptAccountSid is optional AccountSid.

func NewOptAccountSid

func NewOptAccountSid(v AccountSid) OptAccountSid

NewOptAccountSid returns new OptAccountSid with value set to v.

func (*OptAccountSid) Decode

func (o *OptAccountSid) Decode(d *jx.Decoder) error

Decode decodes AccountSid from json.

func (OptAccountSid) Encode

func (o OptAccountSid) Encode(e *jx.Encoder)

Encode encodes AccountSid as json.

func (OptAccountSid) Get

func (o OptAccountSid) Get() (v AccountSid, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAccountSid) IsSet

func (o OptAccountSid) IsSet() bool

IsSet returns true if OptAccountSid was set.

func (OptAccountSid) MarshalJSON

func (s OptAccountSid) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAccountSid) Or

Or returns value if set, or given parameter if does not.

func (*OptAccountSid) Reset

func (o *OptAccountSid) Reset()

Reset unsets value.

func (*OptAccountSid) SetTo

func (o *OptAccountSid) SetTo(v AccountSid)

SetTo sets value to v.

func (*OptAccountSid) UnmarshalJSON

func (s *OptAccountSid) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAnchorsiteOverride

type OptAnchorsiteOverride struct {
	Value AnchorsiteOverride
	Set   bool
}

OptAnchorsiteOverride is optional AnchorsiteOverride.

func NewOptAnchorsiteOverride

func NewOptAnchorsiteOverride(v AnchorsiteOverride) OptAnchorsiteOverride

NewOptAnchorsiteOverride returns new OptAnchorsiteOverride with value set to v.

func (*OptAnchorsiteOverride) Decode

func (o *OptAnchorsiteOverride) Decode(d *jx.Decoder) error

Decode decodes AnchorsiteOverride from json.

func (OptAnchorsiteOverride) Encode

func (o OptAnchorsiteOverride) Encode(e *jx.Encoder)

Encode encodes AnchorsiteOverride as json.

func (OptAnchorsiteOverride) Get

Get returns value and boolean that denotes whether value was set.

func (OptAnchorsiteOverride) IsSet

func (o OptAnchorsiteOverride) IsSet() bool

IsSet returns true if OptAnchorsiteOverride was set.

func (OptAnchorsiteOverride) MarshalJSON

func (s OptAnchorsiteOverride) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAnchorsiteOverride) Or

Or returns value if set, or given parameter if does not.

func (*OptAnchorsiteOverride) Reset

func (o *OptAnchorsiteOverride) Reset()

Reset unsets value.

func (*OptAnchorsiteOverride) SetTo

SetTo sets value to v.

func (*OptAnchorsiteOverride) UnmarshalJSON

func (s *OptAnchorsiteOverride) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAnswerRequestPreferredCodecs

type OptAnswerRequestPreferredCodecs struct {
	Value AnswerRequestPreferredCodecs
	Set   bool
}

OptAnswerRequestPreferredCodecs is optional AnswerRequestPreferredCodecs.

func NewOptAnswerRequestPreferredCodecs

func NewOptAnswerRequestPreferredCodecs(v AnswerRequestPreferredCodecs) OptAnswerRequestPreferredCodecs

NewOptAnswerRequestPreferredCodecs returns new OptAnswerRequestPreferredCodecs with value set to v.

func (*OptAnswerRequestPreferredCodecs) Decode

Decode decodes AnswerRequestPreferredCodecs from json.

func (OptAnswerRequestPreferredCodecs) Encode

Encode encodes AnswerRequestPreferredCodecs as json.

func (OptAnswerRequestPreferredCodecs) Get

Get returns value and boolean that denotes whether value was set.

func (OptAnswerRequestPreferredCodecs) IsSet

IsSet returns true if OptAnswerRequestPreferredCodecs was set.

func (OptAnswerRequestPreferredCodecs) MarshalJSON

func (s OptAnswerRequestPreferredCodecs) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAnswerRequestPreferredCodecs) Or

Or returns value if set, or given parameter if does not.

func (*OptAnswerRequestPreferredCodecs) Reset

Reset unsets value.

func (*OptAnswerRequestPreferredCodecs) SetTo

SetTo sets value to v.

func (*OptAnswerRequestPreferredCodecs) UnmarshalJSON

func (s *OptAnswerRequestPreferredCodecs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAnswerRequestStreamTrack

type OptAnswerRequestStreamTrack struct {
	Value AnswerRequestStreamTrack
	Set   bool
}

OptAnswerRequestStreamTrack is optional AnswerRequestStreamTrack.

func NewOptAnswerRequestStreamTrack

func NewOptAnswerRequestStreamTrack(v AnswerRequestStreamTrack) OptAnswerRequestStreamTrack

NewOptAnswerRequestStreamTrack returns new OptAnswerRequestStreamTrack with value set to v.

func (*OptAnswerRequestStreamTrack) Decode

Decode decodes AnswerRequestStreamTrack from json.

func (OptAnswerRequestStreamTrack) Encode

func (o OptAnswerRequestStreamTrack) Encode(e *jx.Encoder)

Encode encodes AnswerRequestStreamTrack as json.

func (OptAnswerRequestStreamTrack) Get

Get returns value and boolean that denotes whether value was set.

func (OptAnswerRequestStreamTrack) IsSet

IsSet returns true if OptAnswerRequestStreamTrack was set.

func (OptAnswerRequestStreamTrack) MarshalJSON

func (s OptAnswerRequestStreamTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAnswerRequestStreamTrack) Or

Or returns value if set, or given parameter if does not.

func (*OptAnswerRequestStreamTrack) Reset

func (o *OptAnswerRequestStreamTrack) Reset()

Reset unsets value.

func (*OptAnswerRequestStreamTrack) SetTo

SetTo sets value to v.

func (*OptAnswerRequestStreamTrack) UnmarshalJSON

func (s *OptAnswerRequestStreamTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAnswerRequestWebhookURLMethod

type OptAnswerRequestWebhookURLMethod struct {
	Value AnswerRequestWebhookURLMethod
	Set   bool
}

OptAnswerRequestWebhookURLMethod is optional AnswerRequestWebhookURLMethod.

func NewOptAnswerRequestWebhookURLMethod

func NewOptAnswerRequestWebhookURLMethod(v AnswerRequestWebhookURLMethod) OptAnswerRequestWebhookURLMethod

NewOptAnswerRequestWebhookURLMethod returns new OptAnswerRequestWebhookURLMethod with value set to v.

func (*OptAnswerRequestWebhookURLMethod) Decode

Decode decodes AnswerRequestWebhookURLMethod from json.

func (OptAnswerRequestWebhookURLMethod) Encode

Encode encodes AnswerRequestWebhookURLMethod as json.

func (OptAnswerRequestWebhookURLMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptAnswerRequestWebhookURLMethod) IsSet

IsSet returns true if OptAnswerRequestWebhookURLMethod was set.

func (OptAnswerRequestWebhookURLMethod) MarshalJSON

func (s OptAnswerRequestWebhookURLMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAnswerRequestWebhookURLMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptAnswerRequestWebhookURLMethod) Reset

Reset unsets value.

func (*OptAnswerRequestWebhookURLMethod) SetTo

SetTo sets value to v.

func (*OptAnswerRequestWebhookURLMethod) UnmarshalJSON

func (s *OptAnswerRequestWebhookURLMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptApplicationName

type OptApplicationName struct {
	Value ApplicationName
	Set   bool
}

OptApplicationName is optional ApplicationName.

func NewOptApplicationName

func NewOptApplicationName(v ApplicationName) OptApplicationName

NewOptApplicationName returns new OptApplicationName with value set to v.

func (*OptApplicationName) Decode

func (o *OptApplicationName) Decode(d *jx.Decoder) error

Decode decodes ApplicationName from json.

func (OptApplicationName) Encode

func (o OptApplicationName) Encode(e *jx.Encoder)

Encode encodes ApplicationName as json.

func (OptApplicationName) Get

func (o OptApplicationName) Get() (v ApplicationName, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptApplicationName) IsSet

func (o OptApplicationName) IsSet() bool

IsSet returns true if OptApplicationName was set.

func (OptApplicationName) MarshalJSON

func (s OptApplicationName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptApplicationName) Or

Or returns value if set, or given parameter if does not.

func (*OptApplicationName) Reset

func (o *OptApplicationName) Reset()

Reset unsets value.

func (*OptApplicationName) SetTo

func (o *OptApplicationName) SetTo(v ApplicationName)

SetTo sets value to v.

func (*OptApplicationName) UnmarshalJSON

func (s *OptApplicationName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAttemptStatus

type OptAttemptStatus struct {
	Value AttemptStatus
	Set   bool
}

OptAttemptStatus is optional AttemptStatus.

func NewOptAttemptStatus

func NewOptAttemptStatus(v AttemptStatus) OptAttemptStatus

NewOptAttemptStatus returns new OptAttemptStatus with value set to v.

func (*OptAttemptStatus) Decode

func (o *OptAttemptStatus) Decode(d *jx.Decoder) error

Decode decodes AttemptStatus from json.

func (OptAttemptStatus) Encode

func (o OptAttemptStatus) Encode(e *jx.Encoder)

Encode encodes AttemptStatus as json.

func (OptAttemptStatus) Get

func (o OptAttemptStatus) Get() (v AttemptStatus, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAttemptStatus) IsSet

func (o OptAttemptStatus) IsSet() bool

IsSet returns true if OptAttemptStatus was set.

func (OptAttemptStatus) MarshalJSON

func (s OptAttemptStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAttemptStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptAttemptStatus) Reset

func (o *OptAttemptStatus) Reset()

Reset unsets value.

func (*OptAttemptStatus) SetTo

func (o *OptAttemptStatus) SetTo(v AttemptStatus)

SetTo sets value to v.

func (*OptAttemptStatus) UnmarshalJSON

func (s *OptAttemptStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAudioTranscriptionRequestMultipartResponseFormat

type OptAudioTranscriptionRequestMultipartResponseFormat struct {
	Value AudioTranscriptionRequestMultipartResponseFormat
	Set   bool
}

OptAudioTranscriptionRequestMultipartResponseFormat is optional AudioTranscriptionRequestMultipartResponseFormat.

func NewOptAudioTranscriptionRequestMultipartResponseFormat

func NewOptAudioTranscriptionRequestMultipartResponseFormat(v AudioTranscriptionRequestMultipartResponseFormat) OptAudioTranscriptionRequestMultipartResponseFormat

NewOptAudioTranscriptionRequestMultipartResponseFormat returns new OptAudioTranscriptionRequestMultipartResponseFormat with value set to v.

func (OptAudioTranscriptionRequestMultipartResponseFormat) Get

Get returns value and boolean that denotes whether value was set.

func (OptAudioTranscriptionRequestMultipartResponseFormat) IsSet

IsSet returns true if OptAudioTranscriptionRequestMultipartResponseFormat was set.

func (OptAudioTranscriptionRequestMultipartResponseFormat) Or

Or returns value if set, or given parameter if does not.

func (*OptAudioTranscriptionRequestMultipartResponseFormat) Reset

Reset unsets value.

func (*OptAudioTranscriptionRequestMultipartResponseFormat) SetTo

SetTo sets value to v.

type OptAudioTranscriptionRequestMultipartTimestampGranularities

type OptAudioTranscriptionRequestMultipartTimestampGranularities struct {
	Value AudioTranscriptionRequestMultipartTimestampGranularities
	Set   bool
}

OptAudioTranscriptionRequestMultipartTimestampGranularities is optional AudioTranscriptionRequestMultipartTimestampGranularities.

func NewOptAudioTranscriptionRequestMultipartTimestampGranularities

NewOptAudioTranscriptionRequestMultipartTimestampGranularities returns new OptAudioTranscriptionRequestMultipartTimestampGranularities with value set to v.

func (OptAudioTranscriptionRequestMultipartTimestampGranularities) Get

Get returns value and boolean that denotes whether value was set.

func (OptAudioTranscriptionRequestMultipartTimestampGranularities) IsSet

IsSet returns true if OptAudioTranscriptionRequestMultipartTimestampGranularities was set.

func (OptAudioTranscriptionRequestMultipartTimestampGranularities) Or

Or returns value if set, or given parameter if does not.

func (*OptAudioTranscriptionRequestMultipartTimestampGranularities) Reset

Reset unsets value.

func (*OptAudioTranscriptionRequestMultipartTimestampGranularities) SetTo

SetTo sets value to v.

type OptAvailablePhoneNumberBlockRecordType

type OptAvailablePhoneNumberBlockRecordType struct {
	Value AvailablePhoneNumberBlockRecordType
	Set   bool
}

OptAvailablePhoneNumberBlockRecordType is optional AvailablePhoneNumberBlockRecordType.

func NewOptAvailablePhoneNumberBlockRecordType

func NewOptAvailablePhoneNumberBlockRecordType(v AvailablePhoneNumberBlockRecordType) OptAvailablePhoneNumberBlockRecordType

NewOptAvailablePhoneNumberBlockRecordType returns new OptAvailablePhoneNumberBlockRecordType with value set to v.

func (*OptAvailablePhoneNumberBlockRecordType) Decode

Decode decodes AvailablePhoneNumberBlockRecordType from json.

func (OptAvailablePhoneNumberBlockRecordType) Encode

Encode encodes AvailablePhoneNumberBlockRecordType as json.

func (OptAvailablePhoneNumberBlockRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptAvailablePhoneNumberBlockRecordType) IsSet

IsSet returns true if OptAvailablePhoneNumberBlockRecordType was set.

func (OptAvailablePhoneNumberBlockRecordType) MarshalJSON

func (s OptAvailablePhoneNumberBlockRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAvailablePhoneNumberBlockRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptAvailablePhoneNumberBlockRecordType) Reset

Reset unsets value.

func (*OptAvailablePhoneNumberBlockRecordType) SetTo

SetTo sets value to v.

func (*OptAvailablePhoneNumberBlockRecordType) UnmarshalJSON

func (s *OptAvailablePhoneNumberBlockRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAvailablePhoneNumberRecordType

type OptAvailablePhoneNumberRecordType struct {
	Value AvailablePhoneNumberRecordType
	Set   bool
}

OptAvailablePhoneNumberRecordType is optional AvailablePhoneNumberRecordType.

func NewOptAvailablePhoneNumberRecordType

func NewOptAvailablePhoneNumberRecordType(v AvailablePhoneNumberRecordType) OptAvailablePhoneNumberRecordType

NewOptAvailablePhoneNumberRecordType returns new OptAvailablePhoneNumberRecordType with value set to v.

func (*OptAvailablePhoneNumberRecordType) Decode

Decode decodes AvailablePhoneNumberRecordType from json.

func (OptAvailablePhoneNumberRecordType) Encode

Encode encodes AvailablePhoneNumberRecordType as json.

func (OptAvailablePhoneNumberRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptAvailablePhoneNumberRecordType) IsSet

IsSet returns true if OptAvailablePhoneNumberRecordType was set.

func (OptAvailablePhoneNumberRecordType) MarshalJSON

func (s OptAvailablePhoneNumberRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAvailablePhoneNumberRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptAvailablePhoneNumberRecordType) Reset

Reset unsets value.

func (*OptAvailablePhoneNumberRecordType) SetTo

SetTo sets value to v.

func (*OptAvailablePhoneNumberRecordType) UnmarshalJSON

func (s *OptAvailablePhoneNumberRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAvailablePhoneNumbersMetadata

type OptAvailablePhoneNumbersMetadata struct {
	Value AvailablePhoneNumbersMetadata
	Set   bool
}

OptAvailablePhoneNumbersMetadata is optional AvailablePhoneNumbersMetadata.

func NewOptAvailablePhoneNumbersMetadata

func NewOptAvailablePhoneNumbersMetadata(v AvailablePhoneNumbersMetadata) OptAvailablePhoneNumbersMetadata

NewOptAvailablePhoneNumbersMetadata returns new OptAvailablePhoneNumbersMetadata with value set to v.

func (*OptAvailablePhoneNumbersMetadata) Decode

Decode decodes AvailablePhoneNumbersMetadata from json.

func (OptAvailablePhoneNumbersMetadata) Encode

Encode encodes AvailablePhoneNumbersMetadata as json.

func (OptAvailablePhoneNumbersMetadata) Get

Get returns value and boolean that denotes whether value was set.

func (OptAvailablePhoneNumbersMetadata) IsSet

IsSet returns true if OptAvailablePhoneNumbersMetadata was set.

func (OptAvailablePhoneNumbersMetadata) MarshalJSON

func (s OptAvailablePhoneNumbersMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAvailablePhoneNumbersMetadata) Or

Or returns value if set, or given parameter if does not.

func (*OptAvailablePhoneNumbersMetadata) Reset

Reset unsets value.

func (*OptAvailablePhoneNumbersMetadata) SetTo

SetTo sets value to v.

func (*OptAvailablePhoneNumbersMetadata) UnmarshalJSON

func (s *OptAvailablePhoneNumbersMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAwsAccessKeyId

type OptAwsAccessKeyId struct {
	Value AwsAccessKeyId
	Set   bool
}

OptAwsAccessKeyId is optional AwsAccessKeyId.

func NewOptAwsAccessKeyId

func NewOptAwsAccessKeyId(v AwsAccessKeyId) OptAwsAccessKeyId

NewOptAwsAccessKeyId returns new OptAwsAccessKeyId with value set to v.

func (*OptAwsAccessKeyId) Decode

func (o *OptAwsAccessKeyId) Decode(d *jx.Decoder) error

Decode decodes AwsAccessKeyId from json.

func (OptAwsAccessKeyId) Encode

func (o OptAwsAccessKeyId) Encode(e *jx.Encoder)

Encode encodes AwsAccessKeyId as json.

func (OptAwsAccessKeyId) Get

func (o OptAwsAccessKeyId) Get() (v AwsAccessKeyId, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAwsAccessKeyId) IsSet

func (o OptAwsAccessKeyId) IsSet() bool

IsSet returns true if OptAwsAccessKeyId was set.

func (OptAwsAccessKeyId) MarshalJSON

func (s OptAwsAccessKeyId) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAwsAccessKeyId) Or

Or returns value if set, or given parameter if does not.

func (*OptAwsAccessKeyId) Reset

func (o *OptAwsAccessKeyId) Reset()

Reset unsets value.

func (*OptAwsAccessKeyId) SetTo

func (o *OptAwsAccessKeyId) SetTo(v AwsAccessKeyId)

SetTo sets value to v.

func (*OptAwsAccessKeyId) UnmarshalJSON

func (s *OptAwsAccessKeyId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAwsSecretAccessKey

type OptAwsSecretAccessKey struct {
	Value AwsSecretAccessKey
	Set   bool
}

OptAwsSecretAccessKey is optional AwsSecretAccessKey.

func NewOptAwsSecretAccessKey

func NewOptAwsSecretAccessKey(v AwsSecretAccessKey) OptAwsSecretAccessKey

NewOptAwsSecretAccessKey returns new OptAwsSecretAccessKey with value set to v.

func (*OptAwsSecretAccessKey) Decode

func (o *OptAwsSecretAccessKey) Decode(d *jx.Decoder) error

Decode decodes AwsSecretAccessKey from json.

func (OptAwsSecretAccessKey) Encode

func (o OptAwsSecretAccessKey) Encode(e *jx.Encoder)

Encode encodes AwsSecretAccessKey as json.

func (OptAwsSecretAccessKey) Get

Get returns value and boolean that denotes whether value was set.

func (OptAwsSecretAccessKey) IsSet

func (o OptAwsSecretAccessKey) IsSet() bool

IsSet returns true if OptAwsSecretAccessKey was set.

func (OptAwsSecretAccessKey) MarshalJSON

func (s OptAwsSecretAccessKey) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAwsSecretAccessKey) Or

Or returns value if set, or given parameter if does not.

func (*OptAwsSecretAccessKey) Reset

func (o *OptAwsSecretAccessKey) Reset()

Reset unsets value.

func (*OptAwsSecretAccessKey) SetTo

SetTo sets value to v.

func (*OptAwsSecretAccessKey) UnmarshalJSON

func (s *OptAwsSecretAccessKey) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAzureAccountKey

type OptAzureAccountKey struct {
	Value AzureAccountKey
	Set   bool
}

OptAzureAccountKey is optional AzureAccountKey.

func NewOptAzureAccountKey

func NewOptAzureAccountKey(v AzureAccountKey) OptAzureAccountKey

NewOptAzureAccountKey returns new OptAzureAccountKey with value set to v.

func (*OptAzureAccountKey) Decode

func (o *OptAzureAccountKey) Decode(d *jx.Decoder) error

Decode decodes AzureAccountKey from json.

func (OptAzureAccountKey) Encode

func (o OptAzureAccountKey) Encode(e *jx.Encoder)

Encode encodes AzureAccountKey as json.

func (OptAzureAccountKey) Get

func (o OptAzureAccountKey) Get() (v AzureAccountKey, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAzureAccountKey) IsSet

func (o OptAzureAccountKey) IsSet() bool

IsSet returns true if OptAzureAccountKey was set.

func (OptAzureAccountKey) MarshalJSON

func (s OptAzureAccountKey) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAzureAccountKey) Or

Or returns value if set, or given parameter if does not.

func (*OptAzureAccountKey) Reset

func (o *OptAzureAccountKey) Reset()

Reset unsets value.

func (*OptAzureAccountKey) SetTo

func (o *OptAzureAccountKey) SetTo(v AzureAccountKey)

SetTo sets value to v.

func (*OptAzureAccountKey) UnmarshalJSON

func (s *OptAzureAccountKey) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAzureAccountName

type OptAzureAccountName struct {
	Value AzureAccountName
	Set   bool
}

OptAzureAccountName is optional AzureAccountName.

func NewOptAzureAccountName

func NewOptAzureAccountName(v AzureAccountName) OptAzureAccountName

NewOptAzureAccountName returns new OptAzureAccountName with value set to v.

func (*OptAzureAccountName) Decode

func (o *OptAzureAccountName) Decode(d *jx.Decoder) error

Decode decodes AzureAccountName from json.

func (OptAzureAccountName) Encode

func (o OptAzureAccountName) Encode(e *jx.Encoder)

Encode encodes AzureAccountName as json.

func (OptAzureAccountName) Get

func (o OptAzureAccountName) Get() (v AzureAccountName, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAzureAccountName) IsSet

func (o OptAzureAccountName) IsSet() bool

IsSet returns true if OptAzureAccountName was set.

func (OptAzureAccountName) MarshalJSON

func (s OptAzureAccountName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAzureAccountName) Or

Or returns value if set, or given parameter if does not.

func (*OptAzureAccountName) Reset

func (o *OptAzureAccountName) Reset()

Reset unsets value.

func (*OptAzureAccountName) SetTo

SetTo sets value to v.

func (*OptAzureAccountName) UnmarshalJSON

func (s *OptAzureAccountName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBucket

type OptBucket struct {
	Value Bucket
	Set   bool
}

OptBucket is optional Bucket.

func NewOptBucket

func NewOptBucket(v Bucket) OptBucket

NewOptBucket returns new OptBucket with value set to v.

func (*OptBucket) Decode

func (o *OptBucket) Decode(d *jx.Decoder) error

Decode decodes Bucket from json.

func (OptBucket) Encode

func (o OptBucket) Encode(e *jx.Encoder)

Encode encodes Bucket as json.

func (OptBucket) Get

func (o OptBucket) Get() (v Bucket, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBucket) IsSet

func (o OptBucket) IsSet() bool

IsSet returns true if OptBucket was set.

func (OptBucket) MarshalJSON

func (s OptBucket) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBucket) Or

func (o OptBucket) Or(d Bucket) Bucket

Or returns value if set, or given parameter if does not.

func (*OptBucket) Reset

func (o *OptBucket) Reset()

Reset unsets value.

func (*OptBucket) SetTo

func (o *OptBucket) SetTo(v Bucket)

SetTo sets value to v.

func (*OptBucket) UnmarshalJSON

func (s *OptBucket) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBulkCredentialResponseData

type OptBulkCredentialResponseData struct {
	Value BulkCredentialResponseData
	Set   bool
}

OptBulkCredentialResponseData is optional BulkCredentialResponseData.

func NewOptBulkCredentialResponseData

func NewOptBulkCredentialResponseData(v BulkCredentialResponseData) OptBulkCredentialResponseData

NewOptBulkCredentialResponseData returns new OptBulkCredentialResponseData with value set to v.

func (*OptBulkCredentialResponseData) Decode

Decode decodes BulkCredentialResponseData from json.

func (OptBulkCredentialResponseData) Encode

Encode encodes BulkCredentialResponseData as json.

func (OptBulkCredentialResponseData) Get

Get returns value and boolean that denotes whether value was set.

func (OptBulkCredentialResponseData) IsSet

IsSet returns true if OptBulkCredentialResponseData was set.

func (OptBulkCredentialResponseData) MarshalJSON

func (s OptBulkCredentialResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBulkCredentialResponseData) Or

Or returns value if set, or given parameter if does not.

func (*OptBulkCredentialResponseData) Reset

func (o *OptBulkCredentialResponseData) Reset()

Reset unsets value.

func (*OptBulkCredentialResponseData) SetTo

SetTo sets value to v.

func (*OptBulkCredentialResponseData) UnmarshalJSON

func (s *OptBulkCredentialResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBulkDeleteRoomRecordingsResponseData

type OptBulkDeleteRoomRecordingsResponseData struct {
	Value BulkDeleteRoomRecordingsResponseData
	Set   bool
}

OptBulkDeleteRoomRecordingsResponseData is optional BulkDeleteRoomRecordingsResponseData.

func NewOptBulkDeleteRoomRecordingsResponseData

func NewOptBulkDeleteRoomRecordingsResponseData(v BulkDeleteRoomRecordingsResponseData) OptBulkDeleteRoomRecordingsResponseData

NewOptBulkDeleteRoomRecordingsResponseData returns new OptBulkDeleteRoomRecordingsResponseData with value set to v.

func (*OptBulkDeleteRoomRecordingsResponseData) Decode

Decode decodes BulkDeleteRoomRecordingsResponseData from json.

func (OptBulkDeleteRoomRecordingsResponseData) Encode

Encode encodes BulkDeleteRoomRecordingsResponseData as json.

func (OptBulkDeleteRoomRecordingsResponseData) Get

Get returns value and boolean that denotes whether value was set.

func (OptBulkDeleteRoomRecordingsResponseData) IsSet

IsSet returns true if OptBulkDeleteRoomRecordingsResponseData was set.

func (OptBulkDeleteRoomRecordingsResponseData) MarshalJSON

func (s OptBulkDeleteRoomRecordingsResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBulkDeleteRoomRecordingsResponseData) Or

Or returns value if set, or given parameter if does not.

func (*OptBulkDeleteRoomRecordingsResponseData) Reset

Reset unsets value.

func (*OptBulkDeleteRoomRecordingsResponseData) SetTo

SetTo sets value to v.

func (*OptBulkDeleteRoomRecordingsResponseData) UnmarshalJSON

func (s *OptBulkDeleteRoomRecordingsResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCall

type OptCall struct {
	Value Call
	Set   bool
}

OptCall is optional Call.

func NewOptCall

func NewOptCall(v Call) OptCall

NewOptCall returns new OptCall with value set to v.

func (*OptCall) Decode

func (o *OptCall) Decode(d *jx.Decoder) error

Decode decodes Call from json.

func (OptCall) Encode

func (o OptCall) Encode(e *jx.Encoder)

Encode encodes Call as json.

func (OptCall) Get

func (o OptCall) Get() (v Call, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCall) IsSet

func (o OptCall) IsSet() bool

IsSet returns true if OptCall was set.

func (OptCall) MarshalJSON

func (s OptCall) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCall) Or

func (o OptCall) Or(d Call) Call

Or returns value if set, or given parameter if does not.

func (*OptCall) Reset

func (o *OptCall) Reset()

Reset unsets value.

func (*OptCall) SetTo

func (o *OptCall) SetTo(v Call)

SetTo sets value to v.

func (*OptCall) UnmarshalJSON

func (s *OptCall) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallControlApplication

type OptCallControlApplication struct {
	Value CallControlApplication
	Set   bool
}

OptCallControlApplication is optional CallControlApplication.

func NewOptCallControlApplication

func NewOptCallControlApplication(v CallControlApplication) OptCallControlApplication

NewOptCallControlApplication returns new OptCallControlApplication with value set to v.

func (*OptCallControlApplication) Decode

func (o *OptCallControlApplication) Decode(d *jx.Decoder) error

Decode decodes CallControlApplication from json.

func (OptCallControlApplication) Encode

func (o OptCallControlApplication) Encode(e *jx.Encoder)

Encode encodes CallControlApplication as json.

func (OptCallControlApplication) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallControlApplication) IsSet

func (o OptCallControlApplication) IsSet() bool

IsSet returns true if OptCallControlApplication was set.

func (OptCallControlApplication) MarshalJSON

func (s OptCallControlApplication) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallControlApplication) Or

Or returns value if set, or given parameter if does not.

func (*OptCallControlApplication) Reset

func (o *OptCallControlApplication) Reset()

Reset unsets value.

func (*OptCallControlApplication) SetTo

SetTo sets value to v.

func (*OptCallControlApplication) UnmarshalJSON

func (s *OptCallControlApplication) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallControlApplicationDtmfType

type OptCallControlApplicationDtmfType struct {
	Value CallControlApplicationDtmfType
	Set   bool
}

OptCallControlApplicationDtmfType is optional CallControlApplicationDtmfType.

func NewOptCallControlApplicationDtmfType

func NewOptCallControlApplicationDtmfType(v CallControlApplicationDtmfType) OptCallControlApplicationDtmfType

NewOptCallControlApplicationDtmfType returns new OptCallControlApplicationDtmfType with value set to v.

func (*OptCallControlApplicationDtmfType) Decode

Decode decodes CallControlApplicationDtmfType from json.

func (OptCallControlApplicationDtmfType) Encode

Encode encodes CallControlApplicationDtmfType as json.

func (OptCallControlApplicationDtmfType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallControlApplicationDtmfType) IsSet

IsSet returns true if OptCallControlApplicationDtmfType was set.

func (OptCallControlApplicationDtmfType) MarshalJSON

func (s OptCallControlApplicationDtmfType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallControlApplicationDtmfType) Or

Or returns value if set, or given parameter if does not.

func (*OptCallControlApplicationDtmfType) Reset

Reset unsets value.

func (*OptCallControlApplicationDtmfType) SetTo

SetTo sets value to v.

func (*OptCallControlApplicationDtmfType) UnmarshalJSON

func (s *OptCallControlApplicationDtmfType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallControlApplicationInbound

type OptCallControlApplicationInbound struct {
	Value CallControlApplicationInbound
	Set   bool
}

OptCallControlApplicationInbound is optional CallControlApplicationInbound.

func NewOptCallControlApplicationInbound

func NewOptCallControlApplicationInbound(v CallControlApplicationInbound) OptCallControlApplicationInbound

NewOptCallControlApplicationInbound returns new OptCallControlApplicationInbound with value set to v.

func (*OptCallControlApplicationInbound) Decode

Decode decodes CallControlApplicationInbound from json.

func (OptCallControlApplicationInbound) Encode

Encode encodes CallControlApplicationInbound as json.

func (OptCallControlApplicationInbound) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallControlApplicationInbound) IsSet

IsSet returns true if OptCallControlApplicationInbound was set.

func (OptCallControlApplicationInbound) MarshalJSON

func (s OptCallControlApplicationInbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallControlApplicationInbound) Or

Or returns value if set, or given parameter if does not.

func (*OptCallControlApplicationInbound) Reset

Reset unsets value.

func (*OptCallControlApplicationInbound) SetTo

SetTo sets value to v.

func (*OptCallControlApplicationInbound) UnmarshalJSON

func (s *OptCallControlApplicationInbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallControlApplicationInboundSipSubdomainReceiveSettings

type OptCallControlApplicationInboundSipSubdomainReceiveSettings struct {
	Value CallControlApplicationInboundSipSubdomainReceiveSettings
	Set   bool
}

OptCallControlApplicationInboundSipSubdomainReceiveSettings is optional CallControlApplicationInboundSipSubdomainReceiveSettings.

func NewOptCallControlApplicationInboundSipSubdomainReceiveSettings

NewOptCallControlApplicationInboundSipSubdomainReceiveSettings returns new OptCallControlApplicationInboundSipSubdomainReceiveSettings with value set to v.

func (*OptCallControlApplicationInboundSipSubdomainReceiveSettings) Decode

Decode decodes CallControlApplicationInboundSipSubdomainReceiveSettings from json.

func (OptCallControlApplicationInboundSipSubdomainReceiveSettings) Encode

Encode encodes CallControlApplicationInboundSipSubdomainReceiveSettings as json.

func (OptCallControlApplicationInboundSipSubdomainReceiveSettings) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallControlApplicationInboundSipSubdomainReceiveSettings) IsSet

IsSet returns true if OptCallControlApplicationInboundSipSubdomainReceiveSettings was set.

func (OptCallControlApplicationInboundSipSubdomainReceiveSettings) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCallControlApplicationInboundSipSubdomainReceiveSettings) Or

Or returns value if set, or given parameter if does not.

func (*OptCallControlApplicationInboundSipSubdomainReceiveSettings) Reset

Reset unsets value.

func (*OptCallControlApplicationInboundSipSubdomainReceiveSettings) SetTo

SetTo sets value to v.

func (*OptCallControlApplicationInboundSipSubdomainReceiveSettings) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallControlApplicationOutbound

type OptCallControlApplicationOutbound struct {
	Value CallControlApplicationOutbound
	Set   bool
}

OptCallControlApplicationOutbound is optional CallControlApplicationOutbound.

func NewOptCallControlApplicationOutbound

func NewOptCallControlApplicationOutbound(v CallControlApplicationOutbound) OptCallControlApplicationOutbound

NewOptCallControlApplicationOutbound returns new OptCallControlApplicationOutbound with value set to v.

func (*OptCallControlApplicationOutbound) Decode

Decode decodes CallControlApplicationOutbound from json.

func (OptCallControlApplicationOutbound) Encode

Encode encodes CallControlApplicationOutbound as json.

func (OptCallControlApplicationOutbound) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallControlApplicationOutbound) IsSet

IsSet returns true if OptCallControlApplicationOutbound was set.

func (OptCallControlApplicationOutbound) MarshalJSON

func (s OptCallControlApplicationOutbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallControlApplicationOutbound) Or

Or returns value if set, or given parameter if does not.

func (*OptCallControlApplicationOutbound) Reset

Reset unsets value.

func (*OptCallControlApplicationOutbound) SetTo

SetTo sets value to v.

func (*OptCallControlApplicationOutbound) UnmarshalJSON

func (s *OptCallControlApplicationOutbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallControlApplicationRecordType

type OptCallControlApplicationRecordType struct {
	Value CallControlApplicationRecordType
	Set   bool
}

OptCallControlApplicationRecordType is optional CallControlApplicationRecordType.

func NewOptCallControlApplicationRecordType

func NewOptCallControlApplicationRecordType(v CallControlApplicationRecordType) OptCallControlApplicationRecordType

NewOptCallControlApplicationRecordType returns new OptCallControlApplicationRecordType with value set to v.

func (*OptCallControlApplicationRecordType) Decode

Decode decodes CallControlApplicationRecordType from json.

func (OptCallControlApplicationRecordType) Encode

Encode encodes CallControlApplicationRecordType as json.

func (OptCallControlApplicationRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallControlApplicationRecordType) IsSet

IsSet returns true if OptCallControlApplicationRecordType was set.

func (OptCallControlApplicationRecordType) MarshalJSON

func (s OptCallControlApplicationRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallControlApplicationRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptCallControlApplicationRecordType) Reset

Reset unsets value.

func (*OptCallControlApplicationRecordType) SetTo

SetTo sets value to v.

func (*OptCallControlApplicationRecordType) UnmarshalJSON

func (s *OptCallControlApplicationRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallControlApplicationWebhookAPIVersion

type OptCallControlApplicationWebhookAPIVersion struct {
	Value CallControlApplicationWebhookAPIVersion
	Set   bool
}

OptCallControlApplicationWebhookAPIVersion is optional CallControlApplicationWebhookAPIVersion.

func NewOptCallControlApplicationWebhookAPIVersion

func NewOptCallControlApplicationWebhookAPIVersion(v CallControlApplicationWebhookAPIVersion) OptCallControlApplicationWebhookAPIVersion

NewOptCallControlApplicationWebhookAPIVersion returns new OptCallControlApplicationWebhookAPIVersion with value set to v.

func (*OptCallControlApplicationWebhookAPIVersion) Decode

Decode decodes CallControlApplicationWebhookAPIVersion from json.

func (OptCallControlApplicationWebhookAPIVersion) Encode

Encode encodes CallControlApplicationWebhookAPIVersion as json.

func (OptCallControlApplicationWebhookAPIVersion) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallControlApplicationWebhookAPIVersion) IsSet

IsSet returns true if OptCallControlApplicationWebhookAPIVersion was set.

func (OptCallControlApplicationWebhookAPIVersion) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCallControlApplicationWebhookAPIVersion) Or

Or returns value if set, or given parameter if does not.

func (*OptCallControlApplicationWebhookAPIVersion) Reset

Reset unsets value.

func (*OptCallControlApplicationWebhookAPIVersion) SetTo

SetTo sets value to v.

func (*OptCallControlApplicationWebhookAPIVersion) UnmarshalJSON

func (s *OptCallControlApplicationWebhookAPIVersion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallControlCommandResult

type OptCallControlCommandResult struct {
	Value CallControlCommandResult
	Set   bool
}

OptCallControlCommandResult is optional CallControlCommandResult.

func NewOptCallControlCommandResult

func NewOptCallControlCommandResult(v CallControlCommandResult) OptCallControlCommandResult

NewOptCallControlCommandResult returns new OptCallControlCommandResult with value set to v.

func (*OptCallControlCommandResult) Decode

Decode decodes CallControlCommandResult from json.

func (OptCallControlCommandResult) Encode

func (o OptCallControlCommandResult) Encode(e *jx.Encoder)

Encode encodes CallControlCommandResult as json.

func (OptCallControlCommandResult) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallControlCommandResult) IsSet

IsSet returns true if OptCallControlCommandResult was set.

func (OptCallControlCommandResult) MarshalJSON

func (s OptCallControlCommandResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallControlCommandResult) Or

Or returns value if set, or given parameter if does not.

func (*OptCallControlCommandResult) Reset

func (o *OptCallControlCommandResult) Reset()

Reset unsets value.

func (*OptCallControlCommandResult) SetTo

SetTo sets value to v.

func (*OptCallControlCommandResult) UnmarshalJSON

func (s *OptCallControlCommandResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallControlId

type OptCallControlId struct {
	Value CallControlId
	Set   bool
}

OptCallControlId is optional CallControlId.

func NewOptCallControlId

func NewOptCallControlId(v CallControlId) OptCallControlId

NewOptCallControlId returns new OptCallControlId with value set to v.

func (*OptCallControlId) Decode

func (o *OptCallControlId) Decode(d *jx.Decoder) error

Decode decodes CallControlId from json.

func (OptCallControlId) Encode

func (o OptCallControlId) Encode(e *jx.Encoder)

Encode encodes CallControlId as json.

func (OptCallControlId) Get

func (o OptCallControlId) Get() (v CallControlId, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCallControlId) IsSet

func (o OptCallControlId) IsSet() bool

IsSet returns true if OptCallControlId was set.

func (OptCallControlId) MarshalJSON

func (s OptCallControlId) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallControlId) Or

Or returns value if set, or given parameter if does not.

func (*OptCallControlId) Reset

func (o *OptCallControlId) Reset()

Reset unsets value.

func (*OptCallControlId) SetTo

func (o *OptCallControlId) SetTo(v CallControlId)

SetTo sets value to v.

func (*OptCallControlId) UnmarshalJSON

func (s *OptCallControlId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallForwarding

type OptCallForwarding struct {
	Value CallForwarding
	Set   bool
}

OptCallForwarding is optional CallForwarding.

func NewOptCallForwarding

func NewOptCallForwarding(v CallForwarding) OptCallForwarding

NewOptCallForwarding returns new OptCallForwarding with value set to v.

func (*OptCallForwarding) Decode

func (o *OptCallForwarding) Decode(d *jx.Decoder) error

Decode decodes CallForwarding from json.

func (OptCallForwarding) Encode

func (o OptCallForwarding) Encode(e *jx.Encoder)

Encode encodes CallForwarding as json.

func (OptCallForwarding) Get

func (o OptCallForwarding) Get() (v CallForwarding, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCallForwarding) IsSet

func (o OptCallForwarding) IsSet() bool

IsSet returns true if OptCallForwarding was set.

func (OptCallForwarding) MarshalJSON

func (s OptCallForwarding) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallForwarding) Or

Or returns value if set, or given parameter if does not.

func (*OptCallForwarding) Reset

func (o *OptCallForwarding) Reset()

Reset unsets value.

func (*OptCallForwarding) SetTo

func (o *OptCallForwarding) SetTo(v CallForwarding)

SetTo sets value to v.

func (*OptCallForwarding) UnmarshalJSON

func (s *OptCallForwarding) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallForwardingForwardingType

type OptCallForwardingForwardingType struct {
	Value CallForwardingForwardingType
	Set   bool
}

OptCallForwardingForwardingType is optional CallForwardingForwardingType.

func NewOptCallForwardingForwardingType

func NewOptCallForwardingForwardingType(v CallForwardingForwardingType) OptCallForwardingForwardingType

NewOptCallForwardingForwardingType returns new OptCallForwardingForwardingType with value set to v.

func (*OptCallForwardingForwardingType) Decode

Decode decodes CallForwardingForwardingType from json.

func (OptCallForwardingForwardingType) Encode

Encode encodes CallForwardingForwardingType as json.

func (OptCallForwardingForwardingType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallForwardingForwardingType) IsSet

IsSet returns true if OptCallForwardingForwardingType was set.

func (OptCallForwardingForwardingType) MarshalJSON

func (s OptCallForwardingForwardingType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallForwardingForwardingType) Or

Or returns value if set, or given parameter if does not.

func (*OptCallForwardingForwardingType) Reset

Reset unsets value.

func (*OptCallForwardingForwardingType) SetTo

SetTo sets value to v.

func (*OptCallForwardingForwardingType) UnmarshalJSON

func (s *OptCallForwardingForwardingType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallReasonsItemGoogleVerificationStatus

type OptCallReasonsItemGoogleVerificationStatus struct {
	Value CallReasonsItemGoogleVerificationStatus
	Set   bool
}

OptCallReasonsItemGoogleVerificationStatus is optional CallReasonsItemGoogleVerificationStatus.

func NewOptCallReasonsItemGoogleVerificationStatus

func NewOptCallReasonsItemGoogleVerificationStatus(v CallReasonsItemGoogleVerificationStatus) OptCallReasonsItemGoogleVerificationStatus

NewOptCallReasonsItemGoogleVerificationStatus returns new OptCallReasonsItemGoogleVerificationStatus with value set to v.

func (*OptCallReasonsItemGoogleVerificationStatus) Decode

Decode decodes CallReasonsItemGoogleVerificationStatus from json.

func (OptCallReasonsItemGoogleVerificationStatus) Encode

Encode encodes CallReasonsItemGoogleVerificationStatus as json.

func (OptCallReasonsItemGoogleVerificationStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallReasonsItemGoogleVerificationStatus) IsSet

IsSet returns true if OptCallReasonsItemGoogleVerificationStatus was set.

func (OptCallReasonsItemGoogleVerificationStatus) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCallReasonsItemGoogleVerificationStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptCallReasonsItemGoogleVerificationStatus) Reset

Reset unsets value.

func (*OptCallReasonsItemGoogleVerificationStatus) SetTo

SetTo sets value to v.

func (*OptCallReasonsItemGoogleVerificationStatus) UnmarshalJSON

func (s *OptCallReasonsItemGoogleVerificationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRecording

type OptCallRecording struct {
	Value CallRecording
	Set   bool
}

OptCallRecording is optional CallRecording.

func NewOptCallRecording

func NewOptCallRecording(v CallRecording) OptCallRecording

NewOptCallRecording returns new OptCallRecording with value set to v.

func (*OptCallRecording) Decode

func (o *OptCallRecording) Decode(d *jx.Decoder) error

Decode decodes CallRecording from json.

func (OptCallRecording) Encode

func (o OptCallRecording) Encode(e *jx.Encoder)

Encode encodes CallRecording as json.

func (OptCallRecording) Get

func (o OptCallRecording) Get() (v CallRecording, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCallRecording) IsSet

func (o OptCallRecording) IsSet() bool

IsSet returns true if OptCallRecording was set.

func (OptCallRecording) MarshalJSON

func (s OptCallRecording) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallRecording) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRecording) Reset

func (o *OptCallRecording) Reset()

Reset unsets value.

func (*OptCallRecording) SetTo

func (o *OptCallRecording) SetTo(v CallRecording)

SetTo sets value to v.

func (*OptCallRecording) UnmarshalJSON

func (s *OptCallRecording) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRecordingInboundCallRecordingChannels

type OptCallRecordingInboundCallRecordingChannels struct {
	Value CallRecordingInboundCallRecordingChannels
	Set   bool
}

OptCallRecordingInboundCallRecordingChannels is optional CallRecordingInboundCallRecordingChannels.

func NewOptCallRecordingInboundCallRecordingChannels

func NewOptCallRecordingInboundCallRecordingChannels(v CallRecordingInboundCallRecordingChannels) OptCallRecordingInboundCallRecordingChannels

NewOptCallRecordingInboundCallRecordingChannels returns new OptCallRecordingInboundCallRecordingChannels with value set to v.

func (*OptCallRecordingInboundCallRecordingChannels) Decode

Decode decodes CallRecordingInboundCallRecordingChannels from json.

func (OptCallRecordingInboundCallRecordingChannels) Encode

Encode encodes CallRecordingInboundCallRecordingChannels as json.

func (OptCallRecordingInboundCallRecordingChannels) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRecordingInboundCallRecordingChannels) IsSet

IsSet returns true if OptCallRecordingInboundCallRecordingChannels was set.

func (OptCallRecordingInboundCallRecordingChannels) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCallRecordingInboundCallRecordingChannels) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRecordingInboundCallRecordingChannels) Reset

Reset unsets value.

func (*OptCallRecordingInboundCallRecordingChannels) SetTo

SetTo sets value to v.

func (*OptCallRecordingInboundCallRecordingChannels) UnmarshalJSON

func (s *OptCallRecordingInboundCallRecordingChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRecordingInboundCallRecordingFormat

type OptCallRecordingInboundCallRecordingFormat struct {
	Value CallRecordingInboundCallRecordingFormat
	Set   bool
}

OptCallRecordingInboundCallRecordingFormat is optional CallRecordingInboundCallRecordingFormat.

func NewOptCallRecordingInboundCallRecordingFormat

func NewOptCallRecordingInboundCallRecordingFormat(v CallRecordingInboundCallRecordingFormat) OptCallRecordingInboundCallRecordingFormat

NewOptCallRecordingInboundCallRecordingFormat returns new OptCallRecordingInboundCallRecordingFormat with value set to v.

func (*OptCallRecordingInboundCallRecordingFormat) Decode

Decode decodes CallRecordingInboundCallRecordingFormat from json.

func (OptCallRecordingInboundCallRecordingFormat) Encode

Encode encodes CallRecordingInboundCallRecordingFormat as json.

func (OptCallRecordingInboundCallRecordingFormat) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRecordingInboundCallRecordingFormat) IsSet

IsSet returns true if OptCallRecordingInboundCallRecordingFormat was set.

func (OptCallRecordingInboundCallRecordingFormat) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCallRecordingInboundCallRecordingFormat) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRecordingInboundCallRecordingFormat) Reset

Reset unsets value.

func (*OptCallRecordingInboundCallRecordingFormat) SetTo

SetTo sets value to v.

func (*OptCallRecordingInboundCallRecordingFormat) UnmarshalJSON

func (s *OptCallRecordingInboundCallRecordingFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestAnsweringMachineDetection

type OptCallRequestAnsweringMachineDetection struct {
	Value CallRequestAnsweringMachineDetection
	Set   bool
}

OptCallRequestAnsweringMachineDetection is optional CallRequestAnsweringMachineDetection.

func NewOptCallRequestAnsweringMachineDetection

func NewOptCallRequestAnsweringMachineDetection(v CallRequestAnsweringMachineDetection) OptCallRequestAnsweringMachineDetection

NewOptCallRequestAnsweringMachineDetection returns new OptCallRequestAnsweringMachineDetection with value set to v.

func (*OptCallRequestAnsweringMachineDetection) Decode

Decode decodes CallRequestAnsweringMachineDetection from json.

func (OptCallRequestAnsweringMachineDetection) Encode

Encode encodes CallRequestAnsweringMachineDetection as json.

func (OptCallRequestAnsweringMachineDetection) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestAnsweringMachineDetection) IsSet

IsSet returns true if OptCallRequestAnsweringMachineDetection was set.

func (OptCallRequestAnsweringMachineDetection) MarshalJSON

func (s OptCallRequestAnsweringMachineDetection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestAnsweringMachineDetection) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestAnsweringMachineDetection) Reset

Reset unsets value.

func (*OptCallRequestAnsweringMachineDetection) SetTo

SetTo sets value to v.

func (*OptCallRequestAnsweringMachineDetection) UnmarshalJSON

func (s *OptCallRequestAnsweringMachineDetection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestAnsweringMachineDetectionConfig

type OptCallRequestAnsweringMachineDetectionConfig struct {
	Value CallRequestAnsweringMachineDetectionConfig
	Set   bool
}

OptCallRequestAnsweringMachineDetectionConfig is optional CallRequestAnsweringMachineDetectionConfig.

func NewOptCallRequestAnsweringMachineDetectionConfig

func NewOptCallRequestAnsweringMachineDetectionConfig(v CallRequestAnsweringMachineDetectionConfig) OptCallRequestAnsweringMachineDetectionConfig

NewOptCallRequestAnsweringMachineDetectionConfig returns new OptCallRequestAnsweringMachineDetectionConfig with value set to v.

func (*OptCallRequestAnsweringMachineDetectionConfig) Decode

Decode decodes CallRequestAnsweringMachineDetectionConfig from json.

func (OptCallRequestAnsweringMachineDetectionConfig) Encode

Encode encodes CallRequestAnsweringMachineDetectionConfig as json.

func (OptCallRequestAnsweringMachineDetectionConfig) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestAnsweringMachineDetectionConfig) IsSet

IsSet returns true if OptCallRequestAnsweringMachineDetectionConfig was set.

func (OptCallRequestAnsweringMachineDetectionConfig) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestAnsweringMachineDetectionConfig) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestAnsweringMachineDetectionConfig) Reset

Reset unsets value.

func (*OptCallRequestAnsweringMachineDetectionConfig) SetTo

SetTo sets value to v.

func (*OptCallRequestAnsweringMachineDetectionConfig) UnmarshalJSON

func (s *OptCallRequestAnsweringMachineDetectionConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestConferenceConfig

type OptCallRequestConferenceConfig struct {
	Value CallRequestConferenceConfig
	Set   bool
}

OptCallRequestConferenceConfig is optional CallRequestConferenceConfig.

func NewOptCallRequestConferenceConfig

func NewOptCallRequestConferenceConfig(v CallRequestConferenceConfig) OptCallRequestConferenceConfig

NewOptCallRequestConferenceConfig returns new OptCallRequestConferenceConfig with value set to v.

func (*OptCallRequestConferenceConfig) Decode

Decode decodes CallRequestConferenceConfig from json.

func (OptCallRequestConferenceConfig) Encode

Encode encodes CallRequestConferenceConfig as json.

func (OptCallRequestConferenceConfig) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestConferenceConfig) IsSet

IsSet returns true if OptCallRequestConferenceConfig was set.

func (OptCallRequestConferenceConfig) MarshalJSON

func (s OptCallRequestConferenceConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestConferenceConfig) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestConferenceConfig) Reset

func (o *OptCallRequestConferenceConfig) Reset()

Reset unsets value.

func (*OptCallRequestConferenceConfig) SetTo

SetTo sets value to v.

func (*OptCallRequestConferenceConfig) UnmarshalJSON

func (s *OptCallRequestConferenceConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestConferenceConfigBeepEnabled

type OptCallRequestConferenceConfigBeepEnabled struct {
	Value CallRequestConferenceConfigBeepEnabled
	Set   bool
}

OptCallRequestConferenceConfigBeepEnabled is optional CallRequestConferenceConfigBeepEnabled.

func NewOptCallRequestConferenceConfigBeepEnabled

func NewOptCallRequestConferenceConfigBeepEnabled(v CallRequestConferenceConfigBeepEnabled) OptCallRequestConferenceConfigBeepEnabled

NewOptCallRequestConferenceConfigBeepEnabled returns new OptCallRequestConferenceConfigBeepEnabled with value set to v.

func (*OptCallRequestConferenceConfigBeepEnabled) Decode

Decode decodes CallRequestConferenceConfigBeepEnabled from json.

func (OptCallRequestConferenceConfigBeepEnabled) Encode

Encode encodes CallRequestConferenceConfigBeepEnabled as json.

func (OptCallRequestConferenceConfigBeepEnabled) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestConferenceConfigBeepEnabled) IsSet

IsSet returns true if OptCallRequestConferenceConfigBeepEnabled was set.

func (OptCallRequestConferenceConfigBeepEnabled) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestConferenceConfigBeepEnabled) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestConferenceConfigBeepEnabled) Reset

Reset unsets value.

func (*OptCallRequestConferenceConfigBeepEnabled) SetTo

SetTo sets value to v.

func (*OptCallRequestConferenceConfigBeepEnabled) UnmarshalJSON

func (s *OptCallRequestConferenceConfigBeepEnabled) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestConferenceConfigSupervisorRole

type OptCallRequestConferenceConfigSupervisorRole struct {
	Value CallRequestConferenceConfigSupervisorRole
	Set   bool
}

OptCallRequestConferenceConfigSupervisorRole is optional CallRequestConferenceConfigSupervisorRole.

func NewOptCallRequestConferenceConfigSupervisorRole

func NewOptCallRequestConferenceConfigSupervisorRole(v CallRequestConferenceConfigSupervisorRole) OptCallRequestConferenceConfigSupervisorRole

NewOptCallRequestConferenceConfigSupervisorRole returns new OptCallRequestConferenceConfigSupervisorRole with value set to v.

func (*OptCallRequestConferenceConfigSupervisorRole) Decode

Decode decodes CallRequestConferenceConfigSupervisorRole from json.

func (OptCallRequestConferenceConfigSupervisorRole) Encode

Encode encodes CallRequestConferenceConfigSupervisorRole as json.

func (OptCallRequestConferenceConfigSupervisorRole) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestConferenceConfigSupervisorRole) IsSet

IsSet returns true if OptCallRequestConferenceConfigSupervisorRole was set.

func (OptCallRequestConferenceConfigSupervisorRole) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestConferenceConfigSupervisorRole) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestConferenceConfigSupervisorRole) Reset

Reset unsets value.

func (*OptCallRequestConferenceConfigSupervisorRole) SetTo

SetTo sets value to v.

func (*OptCallRequestConferenceConfigSupervisorRole) UnmarshalJSON

func (s *OptCallRequestConferenceConfigSupervisorRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestMediaEncryption

type OptCallRequestMediaEncryption struct {
	Value CallRequestMediaEncryption
	Set   bool
}

OptCallRequestMediaEncryption is optional CallRequestMediaEncryption.

func NewOptCallRequestMediaEncryption

func NewOptCallRequestMediaEncryption(v CallRequestMediaEncryption) OptCallRequestMediaEncryption

NewOptCallRequestMediaEncryption returns new OptCallRequestMediaEncryption with value set to v.

func (*OptCallRequestMediaEncryption) Decode

Decode decodes CallRequestMediaEncryption from json.

func (OptCallRequestMediaEncryption) Encode

Encode encodes CallRequestMediaEncryption as json.

func (OptCallRequestMediaEncryption) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestMediaEncryption) IsSet

IsSet returns true if OptCallRequestMediaEncryption was set.

func (OptCallRequestMediaEncryption) MarshalJSON

func (s OptCallRequestMediaEncryption) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestMediaEncryption) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestMediaEncryption) Reset

func (o *OptCallRequestMediaEncryption) Reset()

Reset unsets value.

func (*OptCallRequestMediaEncryption) SetTo

SetTo sets value to v.

func (*OptCallRequestMediaEncryption) UnmarshalJSON

func (s *OptCallRequestMediaEncryption) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestRecord

type OptCallRequestRecord struct {
	Value CallRequestRecord
	Set   bool
}

OptCallRequestRecord is optional CallRequestRecord.

func NewOptCallRequestRecord

func NewOptCallRequestRecord(v CallRequestRecord) OptCallRequestRecord

NewOptCallRequestRecord returns new OptCallRequestRecord with value set to v.

func (*OptCallRequestRecord) Decode

func (o *OptCallRequestRecord) Decode(d *jx.Decoder) error

Decode decodes CallRequestRecord from json.

func (OptCallRequestRecord) Encode

func (o OptCallRequestRecord) Encode(e *jx.Encoder)

Encode encodes CallRequestRecord as json.

func (OptCallRequestRecord) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestRecord) IsSet

func (o OptCallRequestRecord) IsSet() bool

IsSet returns true if OptCallRequestRecord was set.

func (OptCallRequestRecord) MarshalJSON

func (s OptCallRequestRecord) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestRecord) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestRecord) Reset

func (o *OptCallRequestRecord) Reset()

Reset unsets value.

func (*OptCallRequestRecord) SetTo

SetTo sets value to v.

func (*OptCallRequestRecord) UnmarshalJSON

func (s *OptCallRequestRecord) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestRecordChannels

type OptCallRequestRecordChannels struct {
	Value CallRequestRecordChannels
	Set   bool
}

OptCallRequestRecordChannels is optional CallRequestRecordChannels.

func NewOptCallRequestRecordChannels

func NewOptCallRequestRecordChannels(v CallRequestRecordChannels) OptCallRequestRecordChannels

NewOptCallRequestRecordChannels returns new OptCallRequestRecordChannels with value set to v.

func (*OptCallRequestRecordChannels) Decode

Decode decodes CallRequestRecordChannels from json.

func (OptCallRequestRecordChannels) Encode

Encode encodes CallRequestRecordChannels as json.

func (OptCallRequestRecordChannels) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestRecordChannels) IsSet

IsSet returns true if OptCallRequestRecordChannels was set.

func (OptCallRequestRecordChannels) MarshalJSON

func (s OptCallRequestRecordChannels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestRecordChannels) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestRecordChannels) Reset

func (o *OptCallRequestRecordChannels) Reset()

Reset unsets value.

func (*OptCallRequestRecordChannels) SetTo

SetTo sets value to v.

func (*OptCallRequestRecordChannels) UnmarshalJSON

func (s *OptCallRequestRecordChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestRecordFormat

type OptCallRequestRecordFormat struct {
	Value CallRequestRecordFormat
	Set   bool
}

OptCallRequestRecordFormat is optional CallRequestRecordFormat.

func NewOptCallRequestRecordFormat

func NewOptCallRequestRecordFormat(v CallRequestRecordFormat) OptCallRequestRecordFormat

NewOptCallRequestRecordFormat returns new OptCallRequestRecordFormat with value set to v.

func (*OptCallRequestRecordFormat) Decode

Decode decodes CallRequestRecordFormat from json.

func (OptCallRequestRecordFormat) Encode

func (o OptCallRequestRecordFormat) Encode(e *jx.Encoder)

Encode encodes CallRequestRecordFormat as json.

func (OptCallRequestRecordFormat) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestRecordFormat) IsSet

func (o OptCallRequestRecordFormat) IsSet() bool

IsSet returns true if OptCallRequestRecordFormat was set.

func (OptCallRequestRecordFormat) MarshalJSON

func (s OptCallRequestRecordFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestRecordFormat) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestRecordFormat) Reset

func (o *OptCallRequestRecordFormat) Reset()

Reset unsets value.

func (*OptCallRequestRecordFormat) SetTo

SetTo sets value to v.

func (*OptCallRequestRecordFormat) UnmarshalJSON

func (s *OptCallRequestRecordFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestRecordTrim

type OptCallRequestRecordTrim struct {
	Value CallRequestRecordTrim
	Set   bool
}

OptCallRequestRecordTrim is optional CallRequestRecordTrim.

func NewOptCallRequestRecordTrim

func NewOptCallRequestRecordTrim(v CallRequestRecordTrim) OptCallRequestRecordTrim

NewOptCallRequestRecordTrim returns new OptCallRequestRecordTrim with value set to v.

func (*OptCallRequestRecordTrim) Decode

func (o *OptCallRequestRecordTrim) Decode(d *jx.Decoder) error

Decode decodes CallRequestRecordTrim from json.

func (OptCallRequestRecordTrim) Encode

func (o OptCallRequestRecordTrim) Encode(e *jx.Encoder)

Encode encodes CallRequestRecordTrim as json.

func (OptCallRequestRecordTrim) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestRecordTrim) IsSet

func (o OptCallRequestRecordTrim) IsSet() bool

IsSet returns true if OptCallRequestRecordTrim was set.

func (OptCallRequestRecordTrim) MarshalJSON

func (s OptCallRequestRecordTrim) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestRecordTrim) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestRecordTrim) Reset

func (o *OptCallRequestRecordTrim) Reset()

Reset unsets value.

func (*OptCallRequestRecordTrim) SetTo

SetTo sets value to v.

func (*OptCallRequestRecordTrim) UnmarshalJSON

func (s *OptCallRequestRecordTrim) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestSipTransportProtocol

type OptCallRequestSipTransportProtocol struct {
	Value CallRequestSipTransportProtocol
	Set   bool
}

OptCallRequestSipTransportProtocol is optional CallRequestSipTransportProtocol.

func NewOptCallRequestSipTransportProtocol

func NewOptCallRequestSipTransportProtocol(v CallRequestSipTransportProtocol) OptCallRequestSipTransportProtocol

NewOptCallRequestSipTransportProtocol returns new OptCallRequestSipTransportProtocol with value set to v.

func (*OptCallRequestSipTransportProtocol) Decode

Decode decodes CallRequestSipTransportProtocol from json.

func (OptCallRequestSipTransportProtocol) Encode

Encode encodes CallRequestSipTransportProtocol as json.

func (OptCallRequestSipTransportProtocol) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestSipTransportProtocol) IsSet

IsSet returns true if OptCallRequestSipTransportProtocol was set.

func (OptCallRequestSipTransportProtocol) MarshalJSON

func (s OptCallRequestSipTransportProtocol) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestSipTransportProtocol) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestSipTransportProtocol) Reset

Reset unsets value.

func (*OptCallRequestSipTransportProtocol) SetTo

SetTo sets value to v.

func (*OptCallRequestSipTransportProtocol) UnmarshalJSON

func (s *OptCallRequestSipTransportProtocol) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestStreamTrack

type OptCallRequestStreamTrack struct {
	Value CallRequestStreamTrack
	Set   bool
}

OptCallRequestStreamTrack is optional CallRequestStreamTrack.

func NewOptCallRequestStreamTrack

func NewOptCallRequestStreamTrack(v CallRequestStreamTrack) OptCallRequestStreamTrack

NewOptCallRequestStreamTrack returns new OptCallRequestStreamTrack with value set to v.

func (*OptCallRequestStreamTrack) Decode

func (o *OptCallRequestStreamTrack) Decode(d *jx.Decoder) error

Decode decodes CallRequestStreamTrack from json.

func (OptCallRequestStreamTrack) Encode

func (o OptCallRequestStreamTrack) Encode(e *jx.Encoder)

Encode encodes CallRequestStreamTrack as json.

func (OptCallRequestStreamTrack) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestStreamTrack) IsSet

func (o OptCallRequestStreamTrack) IsSet() bool

IsSet returns true if OptCallRequestStreamTrack was set.

func (OptCallRequestStreamTrack) MarshalJSON

func (s OptCallRequestStreamTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestStreamTrack) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestStreamTrack) Reset

func (o *OptCallRequestStreamTrack) Reset()

Reset unsets value.

func (*OptCallRequestStreamTrack) SetTo

SetTo sets value to v.

func (*OptCallRequestStreamTrack) UnmarshalJSON

func (s *OptCallRequestStreamTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallRequestWebhookURLMethod

type OptCallRequestWebhookURLMethod struct {
	Value CallRequestWebhookURLMethod
	Set   bool
}

OptCallRequestWebhookURLMethod is optional CallRequestWebhookURLMethod.

func NewOptCallRequestWebhookURLMethod

func NewOptCallRequestWebhookURLMethod(v CallRequestWebhookURLMethod) OptCallRequestWebhookURLMethod

NewOptCallRequestWebhookURLMethod returns new OptCallRequestWebhookURLMethod with value set to v.

func (*OptCallRequestWebhookURLMethod) Decode

Decode decodes CallRequestWebhookURLMethod from json.

func (OptCallRequestWebhookURLMethod) Encode

Encode encodes CallRequestWebhookURLMethod as json.

func (OptCallRequestWebhookURLMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallRequestWebhookURLMethod) IsSet

IsSet returns true if OptCallRequestWebhookURLMethod was set.

func (OptCallRequestWebhookURLMethod) MarshalJSON

func (s OptCallRequestWebhookURLMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallRequestWebhookURLMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptCallRequestWebhookURLMethod) Reset

func (o *OptCallRequestWebhookURLMethod) Reset()

Reset unsets value.

func (*OptCallRequestWebhookURLMethod) SetTo

SetTo sets value to v.

func (*OptCallRequestWebhookURLMethod) UnmarshalJSON

func (s *OptCallRequestWebhookURLMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallResource

type OptCallResource struct {
	Value CallResource
	Set   bool
}

OptCallResource is optional CallResource.

func NewOptCallResource

func NewOptCallResource(v CallResource) OptCallResource

NewOptCallResource returns new OptCallResource with value set to v.

func (*OptCallResource) Decode

func (o *OptCallResource) Decode(d *jx.Decoder) error

Decode decodes CallResource from json.

func (OptCallResource) Encode

func (o OptCallResource) Encode(e *jx.Encoder)

Encode encodes CallResource as json.

func (OptCallResource) Get

func (o OptCallResource) Get() (v CallResource, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCallResource) IsSet

func (o OptCallResource) IsSet() bool

IsSet returns true if OptCallResource was set.

func (OptCallResource) MarshalJSON

func (s OptCallResource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallResource) Or

Or returns value if set, or given parameter if does not.

func (*OptCallResource) Reset

func (o *OptCallResource) Reset()

Reset unsets value.

func (*OptCallResource) SetTo

func (o *OptCallResource) SetTo(v CallResource)

SetTo sets value to v.

func (*OptCallResource) UnmarshalJSON

func (s *OptCallResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallResourceAnsweredBy

type OptCallResourceAnsweredBy struct {
	Value CallResourceAnsweredBy
	Set   bool
}

OptCallResourceAnsweredBy is optional CallResourceAnsweredBy.

func NewOptCallResourceAnsweredBy

func NewOptCallResourceAnsweredBy(v CallResourceAnsweredBy) OptCallResourceAnsweredBy

NewOptCallResourceAnsweredBy returns new OptCallResourceAnsweredBy with value set to v.

func (*OptCallResourceAnsweredBy) Decode

func (o *OptCallResourceAnsweredBy) Decode(d *jx.Decoder) error

Decode decodes CallResourceAnsweredBy from json.

func (OptCallResourceAnsweredBy) Encode

func (o OptCallResourceAnsweredBy) Encode(e *jx.Encoder)

Encode encodes CallResourceAnsweredBy as json.

func (OptCallResourceAnsweredBy) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallResourceAnsweredBy) IsSet

func (o OptCallResourceAnsweredBy) IsSet() bool

IsSet returns true if OptCallResourceAnsweredBy was set.

func (OptCallResourceAnsweredBy) MarshalJSON

func (s OptCallResourceAnsweredBy) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallResourceAnsweredBy) Or

Or returns value if set, or given parameter if does not.

func (*OptCallResourceAnsweredBy) Reset

func (o *OptCallResourceAnsweredBy) Reset()

Reset unsets value.

func (*OptCallResourceAnsweredBy) SetTo

SetTo sets value to v.

func (*OptCallResourceAnsweredBy) UnmarshalJSON

func (s *OptCallResourceAnsweredBy) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallResourceDirection

type OptCallResourceDirection struct {
	Value CallResourceDirection
	Set   bool
}

OptCallResourceDirection is optional CallResourceDirection.

func NewOptCallResourceDirection

func NewOptCallResourceDirection(v CallResourceDirection) OptCallResourceDirection

NewOptCallResourceDirection returns new OptCallResourceDirection with value set to v.

func (*OptCallResourceDirection) Decode

func (o *OptCallResourceDirection) Decode(d *jx.Decoder) error

Decode decodes CallResourceDirection from json.

func (OptCallResourceDirection) Encode

func (o OptCallResourceDirection) Encode(e *jx.Encoder)

Encode encodes CallResourceDirection as json.

func (OptCallResourceDirection) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallResourceDirection) IsSet

func (o OptCallResourceDirection) IsSet() bool

IsSet returns true if OptCallResourceDirection was set.

func (OptCallResourceDirection) MarshalJSON

func (s OptCallResourceDirection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallResourceDirection) Or

Or returns value if set, or given parameter if does not.

func (*OptCallResourceDirection) Reset

func (o *OptCallResourceDirection) Reset()

Reset unsets value.

func (*OptCallResourceDirection) SetTo

SetTo sets value to v.

func (*OptCallResourceDirection) UnmarshalJSON

func (s *OptCallResourceDirection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallResourceIndex

type OptCallResourceIndex struct {
	Value CallResourceIndex
	Set   bool
}

OptCallResourceIndex is optional CallResourceIndex.

func NewOptCallResourceIndex

func NewOptCallResourceIndex(v CallResourceIndex) OptCallResourceIndex

NewOptCallResourceIndex returns new OptCallResourceIndex with value set to v.

func (*OptCallResourceIndex) Decode

func (o *OptCallResourceIndex) Decode(d *jx.Decoder) error

Decode decodes CallResourceIndex from json.

func (OptCallResourceIndex) Encode

func (o OptCallResourceIndex) Encode(e *jx.Encoder)

Encode encodes CallResourceIndex as json.

func (OptCallResourceIndex) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallResourceIndex) IsSet

func (o OptCallResourceIndex) IsSet() bool

IsSet returns true if OptCallResourceIndex was set.

func (OptCallResourceIndex) MarshalJSON

func (s OptCallResourceIndex) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallResourceIndex) Or

Or returns value if set, or given parameter if does not.

func (*OptCallResourceIndex) Reset

func (o *OptCallResourceIndex) Reset()

Reset unsets value.

func (*OptCallResourceIndex) SetTo

SetTo sets value to v.

func (*OptCallResourceIndex) UnmarshalJSON

func (s *OptCallResourceIndex) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallResourceStatus

type OptCallResourceStatus struct {
	Value CallResourceStatus
	Set   bool
}

OptCallResourceStatus is optional CallResourceStatus.

func NewOptCallResourceStatus

func NewOptCallResourceStatus(v CallResourceStatus) OptCallResourceStatus

NewOptCallResourceStatus returns new OptCallResourceStatus with value set to v.

func (*OptCallResourceStatus) Decode

func (o *OptCallResourceStatus) Decode(d *jx.Decoder) error

Decode decodes CallResourceStatus from json.

func (OptCallResourceStatus) Encode

func (o OptCallResourceStatus) Encode(e *jx.Encoder)

Encode encodes CallResourceStatus as json.

func (OptCallResourceStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptCallResourceStatus) IsSet

func (o OptCallResourceStatus) IsSet() bool

IsSet returns true if OptCallResourceStatus was set.

func (OptCallResourceStatus) MarshalJSON

func (s OptCallResourceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallResourceStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptCallResourceStatus) Reset

func (o *OptCallResourceStatus) Reset()

Reset unsets value.

func (*OptCallResourceStatus) SetTo

SetTo sets value to v.

func (*OptCallResourceStatus) UnmarshalJSON

func (s *OptCallResourceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCallerName

type OptCallerName struct {
	Value CallerName
	Set   bool
}

OptCallerName is optional CallerName.

func NewOptCallerName

func NewOptCallerName(v CallerName) OptCallerName

NewOptCallerName returns new OptCallerName with value set to v.

func (*OptCallerName) Decode

func (o *OptCallerName) Decode(d *jx.Decoder) error

Decode decodes CallerName from json.

func (OptCallerName) Encode

func (o OptCallerName) Encode(e *jx.Encoder)

Encode encodes CallerName as json.

func (OptCallerName) Get

func (o OptCallerName) Get() (v CallerName, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCallerName) IsSet

func (o OptCallerName) IsSet() bool

IsSet returns true if OptCallerName was set.

func (OptCallerName) MarshalJSON

func (s OptCallerName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCallerName) Or

Or returns value if set, or given parameter if does not.

func (*OptCallerName) Reset

func (o *OptCallerName) Reset()

Reset unsets value.

func (*OptCallerName) SetTo

func (o *OptCallerName) SetTo(v CallerName)

SetTo sets value to v.

func (*OptCallerName) UnmarshalJSON

func (s *OptCallerName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCancelPortingOrderResponseMeta

type OptCancelPortingOrderResponseMeta struct {
	Value CancelPortingOrderResponseMeta
	Set   bool
}

OptCancelPortingOrderResponseMeta is optional CancelPortingOrderResponseMeta.

func NewOptCancelPortingOrderResponseMeta

func NewOptCancelPortingOrderResponseMeta(v CancelPortingOrderResponseMeta) OptCancelPortingOrderResponseMeta

NewOptCancelPortingOrderResponseMeta returns new OptCancelPortingOrderResponseMeta with value set to v.

func (*OptCancelPortingOrderResponseMeta) Decode

Decode decodes CancelPortingOrderResponseMeta from json.

func (OptCancelPortingOrderResponseMeta) Encode

Encode encodes CancelPortingOrderResponseMeta as json.

func (OptCancelPortingOrderResponseMeta) Get

Get returns value and boolean that denotes whether value was set.

func (OptCancelPortingOrderResponseMeta) IsSet

IsSet returns true if OptCancelPortingOrderResponseMeta was set.

func (OptCancelPortingOrderResponseMeta) MarshalJSON

func (s OptCancelPortingOrderResponseMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCancelPortingOrderResponseMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptCancelPortingOrderResponseMeta) Reset

Reset unsets value.

func (*OptCancelPortingOrderResponseMeta) SetTo

SetTo sets value to v.

func (*OptCancelPortingOrderResponseMeta) UnmarshalJSON

func (s *OptCancelPortingOrderResponseMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCarrier

type OptCarrier struct {
	Value Carrier
	Set   bool
}

OptCarrier is optional Carrier.

func NewOptCarrier

func NewOptCarrier(v Carrier) OptCarrier

NewOptCarrier returns new OptCarrier with value set to v.

func (*OptCarrier) Decode

func (o *OptCarrier) Decode(d *jx.Decoder) error

Decode decodes Carrier from json.

func (OptCarrier) Encode

func (o OptCarrier) Encode(e *jx.Encoder)

Encode encodes Carrier as json.

func (OptCarrier) Get

func (o OptCarrier) Get() (v Carrier, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCarrier) IsSet

func (o OptCarrier) IsSet() bool

IsSet returns true if OptCarrier was set.

func (OptCarrier) MarshalJSON

func (s OptCarrier) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCarrier) Or

func (o OptCarrier) Or(d Carrier) Carrier

Or returns value if set, or given parameter if does not.

func (*OptCarrier) Reset

func (o *OptCarrier) Reset()

Reset unsets value.

func (*OptCarrier) SetTo

func (o *OptCarrier) SetTo(v Carrier)

SetTo sets value to v.

func (*OptCarrier) UnmarshalJSON

func (s *OptCarrier) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCarrierType

type OptCarrierType struct {
	Value CarrierType
	Set   bool
}

OptCarrierType is optional CarrierType.

func NewOptCarrierType

func NewOptCarrierType(v CarrierType) OptCarrierType

NewOptCarrierType returns new OptCarrierType with value set to v.

func (*OptCarrierType) Decode

func (o *OptCarrierType) Decode(d *jx.Decoder) error

Decode decodes CarrierType from json.

func (OptCarrierType) Encode

func (o OptCarrierType) Encode(e *jx.Encoder)

Encode encodes CarrierType as json.

func (OptCarrierType) Get

func (o OptCarrierType) Get() (v CarrierType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCarrierType) IsSet

func (o OptCarrierType) IsSet() bool

IsSet returns true if OptCarrierType was set.

func (OptCarrierType) MarshalJSON

func (s OptCarrierType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCarrierType) Or

Or returns value if set, or given parameter if does not.

func (*OptCarrierType) Reset

func (o *OptCarrierType) Reset()

Reset unsets value.

func (*OptCarrierType) SetTo

func (o *OptCarrierType) SetTo(v CarrierType)

SetTo sets value to v.

func (*OptCarrierType) UnmarshalJSON

func (s *OptCarrierType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptChannelTypeId

type OptChannelTypeId struct {
	Value ChannelTypeId
	Set   bool
}

OptChannelTypeId is optional ChannelTypeId.

func NewOptChannelTypeId

func NewOptChannelTypeId(v ChannelTypeId) OptChannelTypeId

NewOptChannelTypeId returns new OptChannelTypeId with value set to v.

func (OptChannelTypeId) Get

func (o OptChannelTypeId) Get() (v ChannelTypeId, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptChannelTypeId) IsSet

func (o OptChannelTypeId) IsSet() bool

IsSet returns true if OptChannelTypeId was set.

func (OptChannelTypeId) Or

Or returns value if set, or given parameter if does not.

func (*OptChannelTypeId) Reset

func (o *OptChannelTypeId) Reset()

Reset unsets value.

func (*OptChannelTypeId) SetTo

func (o *OptChannelTypeId) SetTo(v ChannelTypeId)

SetTo sets value to v.

type OptCnamListing

type OptCnamListing struct {
	Value CnamListing
	Set   bool
}

OptCnamListing is optional CnamListing.

func NewOptCnamListing

func NewOptCnamListing(v CnamListing) OptCnamListing

NewOptCnamListing returns new OptCnamListing with value set to v.

func (*OptCnamListing) Decode

func (o *OptCnamListing) Decode(d *jx.Decoder) error

Decode decodes CnamListing from json.

func (OptCnamListing) Encode

func (o OptCnamListing) Encode(e *jx.Encoder)

Encode encodes CnamListing as json.

func (OptCnamListing) Get

func (o OptCnamListing) Get() (v CnamListing, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCnamListing) IsSet

func (o OptCnamListing) IsSet() bool

IsSet returns true if OptCnamListing was set.

func (OptCnamListing) MarshalJSON

func (s OptCnamListing) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCnamListing) Or

Or returns value if set, or given parameter if does not.

func (*OptCnamListing) Reset

func (o *OptCnamListing) Reset()

Reset unsets value.

func (*OptCnamListing) SetTo

func (o *OptCnamListing) SetTo(v CnamListing)

SetTo sets value to v.

func (*OptCnamListing) UnmarshalJSON

func (s *OptCnamListing) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCommentCommentRecordType

type OptCommentCommentRecordType struct {
	Value CommentCommentRecordType
	Set   bool
}

OptCommentCommentRecordType is optional CommentCommentRecordType.

func NewOptCommentCommentRecordType

func NewOptCommentCommentRecordType(v CommentCommentRecordType) OptCommentCommentRecordType

NewOptCommentCommentRecordType returns new OptCommentCommentRecordType with value set to v.

func (*OptCommentCommentRecordType) Decode

Decode decodes CommentCommentRecordType from json.

func (OptCommentCommentRecordType) Encode

func (o OptCommentCommentRecordType) Encode(e *jx.Encoder)

Encode encodes CommentCommentRecordType as json.

func (OptCommentCommentRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCommentCommentRecordType) IsSet

IsSet returns true if OptCommentCommentRecordType was set.

func (OptCommentCommentRecordType) MarshalJSON

func (s OptCommentCommentRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCommentCommentRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptCommentCommentRecordType) Reset

func (o *OptCommentCommentRecordType) Reset()

Reset unsets value.

func (*OptCommentCommentRecordType) SetTo

SetTo sets value to v.

func (*OptCommentCommentRecordType) UnmarshalJSON

func (s *OptCommentCommentRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCommentCommenterType

type OptCommentCommenterType struct {
	Value CommentCommenterType
	Set   bool
}

OptCommentCommenterType is optional CommentCommenterType.

func NewOptCommentCommenterType

func NewOptCommentCommenterType(v CommentCommenterType) OptCommentCommenterType

NewOptCommentCommenterType returns new OptCommentCommenterType with value set to v.

func (*OptCommentCommenterType) Decode

func (o *OptCommentCommenterType) Decode(d *jx.Decoder) error

Decode decodes CommentCommenterType from json.

func (OptCommentCommenterType) Encode

func (o OptCommentCommenterType) Encode(e *jx.Encoder)

Encode encodes CommentCommenterType as json.

func (OptCommentCommenterType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCommentCommenterType) IsSet

func (o OptCommentCommenterType) IsSet() bool

IsSet returns true if OptCommentCommenterType was set.

func (OptCommentCommenterType) MarshalJSON

func (s OptCommentCommenterType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCommentCommenterType) Or

Or returns value if set, or given parameter if does not.

func (*OptCommentCommenterType) Reset

func (o *OptCommentCommenterType) Reset()

Reset unsets value.

func (*OptCommentCommenterType) SetTo

SetTo sets value to v.

func (*OptCommentCommenterType) UnmarshalJSON

func (s *OptCommentCommenterType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCommentResponseData

type OptCommentResponseData struct {
	Value CommentResponseData
	Set   bool
}

OptCommentResponseData is optional CommentResponseData.

func NewOptCommentResponseData

func NewOptCommentResponseData(v CommentResponseData) OptCommentResponseData

NewOptCommentResponseData returns new OptCommentResponseData with value set to v.

func (*OptCommentResponseData) Decode

func (o *OptCommentResponseData) Decode(d *jx.Decoder) error

Decode decodes CommentResponseData from json.

func (OptCommentResponseData) Encode

func (o OptCommentResponseData) Encode(e *jx.Encoder)

Encode encodes CommentResponseData as json.

func (OptCommentResponseData) Get

Get returns value and boolean that denotes whether value was set.

func (OptCommentResponseData) IsSet

func (o OptCommentResponseData) IsSet() bool

IsSet returns true if OptCommentResponseData was set.

func (OptCommentResponseData) MarshalJSON

func (s OptCommentResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCommentResponseData) Or

Or returns value if set, or given parameter if does not.

func (*OptCommentResponseData) Reset

func (o *OptCommentResponseData) Reset()

Reset unsets value.

func (*OptCommentResponseData) SetTo

SetTo sets value to v.

func (*OptCommentResponseData) UnmarshalJSON

func (s *OptCommentResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCommentResponseDataCommentRecordType

type OptCommentResponseDataCommentRecordType struct {
	Value CommentResponseDataCommentRecordType
	Set   bool
}

OptCommentResponseDataCommentRecordType is optional CommentResponseDataCommentRecordType.

func NewOptCommentResponseDataCommentRecordType

func NewOptCommentResponseDataCommentRecordType(v CommentResponseDataCommentRecordType) OptCommentResponseDataCommentRecordType

NewOptCommentResponseDataCommentRecordType returns new OptCommentResponseDataCommentRecordType with value set to v.

func (*OptCommentResponseDataCommentRecordType) Decode

Decode decodes CommentResponseDataCommentRecordType from json.

func (OptCommentResponseDataCommentRecordType) Encode

Encode encodes CommentResponseDataCommentRecordType as json.

func (OptCommentResponseDataCommentRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCommentResponseDataCommentRecordType) IsSet

IsSet returns true if OptCommentResponseDataCommentRecordType was set.

func (OptCommentResponseDataCommentRecordType) MarshalJSON

func (s OptCommentResponseDataCommentRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCommentResponseDataCommentRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptCommentResponseDataCommentRecordType) Reset

Reset unsets value.

func (*OptCommentResponseDataCommentRecordType) SetTo

SetTo sets value to v.

func (*OptCommentResponseDataCommentRecordType) UnmarshalJSON

func (s *OptCommentResponseDataCommentRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCommentResponseDataCommenterType

type OptCommentResponseDataCommenterType struct {
	Value CommentResponseDataCommenterType
	Set   bool
}

OptCommentResponseDataCommenterType is optional CommentResponseDataCommenterType.

func NewOptCommentResponseDataCommenterType

func NewOptCommentResponseDataCommenterType(v CommentResponseDataCommenterType) OptCommentResponseDataCommenterType

NewOptCommentResponseDataCommenterType returns new OptCommentResponseDataCommenterType with value set to v.

func (*OptCommentResponseDataCommenterType) Decode

Decode decodes CommentResponseDataCommenterType from json.

func (OptCommentResponseDataCommenterType) Encode

Encode encodes CommentResponseDataCommenterType as json.

func (OptCommentResponseDataCommenterType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCommentResponseDataCommenterType) IsSet

IsSet returns true if OptCommentResponseDataCommenterType was set.

func (OptCommentResponseDataCommenterType) MarshalJSON

func (s OptCommentResponseDataCommenterType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCommentResponseDataCommenterType) Or

Or returns value if set, or given parameter if does not.

func (*OptCommentResponseDataCommenterType) Reset

Reset unsets value.

func (*OptCommentResponseDataCommenterType) SetTo

SetTo sets value to v.

func (*OptCommentResponseDataCommenterType) UnmarshalJSON

func (s *OptCommentResponseDataCommenterType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCompleteOTAUpdate

type OptCompleteOTAUpdate struct {
	Value CompleteOTAUpdate
	Set   bool
}

OptCompleteOTAUpdate is optional CompleteOTAUpdate.

func NewOptCompleteOTAUpdate

func NewOptCompleteOTAUpdate(v CompleteOTAUpdate) OptCompleteOTAUpdate

NewOptCompleteOTAUpdate returns new OptCompleteOTAUpdate with value set to v.

func (*OptCompleteOTAUpdate) Decode

func (o *OptCompleteOTAUpdate) Decode(d *jx.Decoder) error

Decode decodes CompleteOTAUpdate from json.

func (OptCompleteOTAUpdate) Encode

func (o OptCompleteOTAUpdate) Encode(e *jx.Encoder)

Encode encodes CompleteOTAUpdate as json.

func (OptCompleteOTAUpdate) Get

Get returns value and boolean that denotes whether value was set.

func (OptCompleteOTAUpdate) IsSet

func (o OptCompleteOTAUpdate) IsSet() bool

IsSet returns true if OptCompleteOTAUpdate was set.

func (OptCompleteOTAUpdate) MarshalJSON

func (s OptCompleteOTAUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCompleteOTAUpdate) Or

Or returns value if set, or given parameter if does not.

func (*OptCompleteOTAUpdate) Reset

func (o *OptCompleteOTAUpdate) Reset()

Reset unsets value.

func (*OptCompleteOTAUpdate) SetTo

SetTo sets value to v.

func (*OptCompleteOTAUpdate) UnmarshalJSON

func (s *OptCompleteOTAUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCompleteOTAUpdateSettings

type OptCompleteOTAUpdateSettings struct {
	Value CompleteOTAUpdateSettings
	Set   bool
}

OptCompleteOTAUpdateSettings is optional CompleteOTAUpdateSettings.

func NewOptCompleteOTAUpdateSettings

func NewOptCompleteOTAUpdateSettings(v CompleteOTAUpdateSettings) OptCompleteOTAUpdateSettings

NewOptCompleteOTAUpdateSettings returns new OptCompleteOTAUpdateSettings with value set to v.

func (*OptCompleteOTAUpdateSettings) Decode

Decode decodes CompleteOTAUpdateSettings from json.

func (OptCompleteOTAUpdateSettings) Encode

Encode encodes CompleteOTAUpdateSettings as json.

func (OptCompleteOTAUpdateSettings) Get

Get returns value and boolean that denotes whether value was set.

func (OptCompleteOTAUpdateSettings) IsSet

IsSet returns true if OptCompleteOTAUpdateSettings was set.

func (OptCompleteOTAUpdateSettings) MarshalJSON

func (s OptCompleteOTAUpdateSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCompleteOTAUpdateSettings) Or

Or returns value if set, or given parameter if does not.

func (*OptCompleteOTAUpdateSettings) Reset

func (o *OptCompleteOTAUpdateSettings) Reset()

Reset unsets value.

func (*OptCompleteOTAUpdateSettings) SetTo

SetTo sets value to v.

func (*OptCompleteOTAUpdateSettings) UnmarshalJSON

func (s *OptCompleteOTAUpdateSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCompleteOTAUpdateStatus

type OptCompleteOTAUpdateStatus struct {
	Value CompleteOTAUpdateStatus
	Set   bool
}

OptCompleteOTAUpdateStatus is optional CompleteOTAUpdateStatus.

func NewOptCompleteOTAUpdateStatus

func NewOptCompleteOTAUpdateStatus(v CompleteOTAUpdateStatus) OptCompleteOTAUpdateStatus

NewOptCompleteOTAUpdateStatus returns new OptCompleteOTAUpdateStatus with value set to v.

func (*OptCompleteOTAUpdateStatus) Decode

Decode decodes CompleteOTAUpdateStatus from json.

func (OptCompleteOTAUpdateStatus) Encode

func (o OptCompleteOTAUpdateStatus) Encode(e *jx.Encoder)

Encode encodes CompleteOTAUpdateStatus as json.

func (OptCompleteOTAUpdateStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptCompleteOTAUpdateStatus) IsSet

func (o OptCompleteOTAUpdateStatus) IsSet() bool

IsSet returns true if OptCompleteOTAUpdateStatus was set.

func (OptCompleteOTAUpdateStatus) MarshalJSON

func (s OptCompleteOTAUpdateStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCompleteOTAUpdateStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptCompleteOTAUpdateStatus) Reset

func (o *OptCompleteOTAUpdateStatus) Reset()

Reset unsets value.

func (*OptCompleteOTAUpdateStatus) SetTo

SetTo sets value to v.

func (*OptCompleteOTAUpdateStatus) UnmarshalJSON

func (s *OptCompleteOTAUpdateStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCompleteOTAUpdateType

type OptCompleteOTAUpdateType struct {
	Value CompleteOTAUpdateType
	Set   bool
}

OptCompleteOTAUpdateType is optional CompleteOTAUpdateType.

func NewOptCompleteOTAUpdateType

func NewOptCompleteOTAUpdateType(v CompleteOTAUpdateType) OptCompleteOTAUpdateType

NewOptCompleteOTAUpdateType returns new OptCompleteOTAUpdateType with value set to v.

func (*OptCompleteOTAUpdateType) Decode

func (o *OptCompleteOTAUpdateType) Decode(d *jx.Decoder) error

Decode decodes CompleteOTAUpdateType from json.

func (OptCompleteOTAUpdateType) Encode

func (o OptCompleteOTAUpdateType) Encode(e *jx.Encoder)

Encode encodes CompleteOTAUpdateType as json.

func (OptCompleteOTAUpdateType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCompleteOTAUpdateType) IsSet

func (o OptCompleteOTAUpdateType) IsSet() bool

IsSet returns true if OptCompleteOTAUpdateType was set.

func (OptCompleteOTAUpdateType) MarshalJSON

func (s OptCompleteOTAUpdateType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCompleteOTAUpdateType) Or

Or returns value if set, or given parameter if does not.

func (*OptCompleteOTAUpdateType) Reset

func (o *OptCompleteOTAUpdateType) Reset()

Reset unsets value.

func (*OptCompleteOTAUpdateType) SetTo

SetTo sets value to v.

func (*OptCompleteOTAUpdateType) UnmarshalJSON

func (s *OptCompleteOTAUpdateType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptConferenceRecordingResourceIndex

type OptConferenceRecordingResourceIndex struct {
	Value ConferenceRecordingResourceIndex
	Set   bool
}

OptConferenceRecordingResourceIndex is optional ConferenceRecordingResourceIndex.

func NewOptConferenceRecordingResourceIndex

func NewOptConferenceRecordingResourceIndex(v ConferenceRecordingResourceIndex) OptConferenceRecordingResourceIndex

NewOptConferenceRecordingResourceIndex returns new OptConferenceRecordingResourceIndex with value set to v.

func (*OptConferenceRecordingResourceIndex) Decode

Decode decodes ConferenceRecordingResourceIndex from json.

func (OptConferenceRecordingResourceIndex) Encode

Encode encodes ConferenceRecordingResourceIndex as json.

func (OptConferenceRecordingResourceIndex) Get

Get returns value and boolean that denotes whether value was set.

func (OptConferenceRecordingResourceIndex) IsSet

IsSet returns true if OptConferenceRecordingResourceIndex was set.

func (OptConferenceRecordingResourceIndex) MarshalJSON

func (s OptConferenceRecordingResourceIndex) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptConferenceRecordingResourceIndex) Or

Or returns value if set, or given parameter if does not.

func (*OptConferenceRecordingResourceIndex) Reset

Reset unsets value.

func (*OptConferenceRecordingResourceIndex) SetTo

SetTo sets value to v.

func (*OptConferenceRecordingResourceIndex) UnmarshalJSON

func (s *OptConferenceRecordingResourceIndex) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptConferenceRecordingResourceSource

type OptConferenceRecordingResourceSource struct {
	Value ConferenceRecordingResourceSource
	Set   bool
}

OptConferenceRecordingResourceSource is optional ConferenceRecordingResourceSource.

func NewOptConferenceRecordingResourceSource

func NewOptConferenceRecordingResourceSource(v ConferenceRecordingResourceSource) OptConferenceRecordingResourceSource

NewOptConferenceRecordingResourceSource returns new OptConferenceRecordingResourceSource with value set to v.

func (*OptConferenceRecordingResourceSource) Decode

Decode decodes ConferenceRecordingResourceSource from json.

func (OptConferenceRecordingResourceSource) Encode

Encode encodes ConferenceRecordingResourceSource as json.

func (OptConferenceRecordingResourceSource) Get

Get returns value and boolean that denotes whether value was set.

func (OptConferenceRecordingResourceSource) IsSet

IsSet returns true if OptConferenceRecordingResourceSource was set.

func (OptConferenceRecordingResourceSource) MarshalJSON

func (s OptConferenceRecordingResourceSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptConferenceRecordingResourceSource) Or

Or returns value if set, or given parameter if does not.

func (*OptConferenceRecordingResourceSource) Reset

Reset unsets value.

func (*OptConferenceRecordingResourceSource) SetTo

SetTo sets value to v.

func (*OptConferenceRecordingResourceSource) UnmarshalJSON

func (s *OptConferenceRecordingResourceSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptConferenceRecordingResourceStatus

type OptConferenceRecordingResourceStatus struct {
	Value ConferenceRecordingResourceStatus
	Set   bool
}

OptConferenceRecordingResourceStatus is optional ConferenceRecordingResourceStatus.

func NewOptConferenceRecordingResourceStatus

func NewOptConferenceRecordingResourceStatus(v ConferenceRecordingResourceStatus) OptConferenceRecordingResourceStatus

NewOptConferenceRecordingResourceStatus returns new OptConferenceRecordingResourceStatus with value set to v.

func (*OptConferenceRecordingResourceStatus) Decode

Decode decodes ConferenceRecordingResourceStatus from json.

func (OptConferenceRecordingResourceStatus) Encode

Encode encodes ConferenceRecordingResourceStatus as json.

func (OptConferenceRecordingResourceStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptConferenceRecordingResourceStatus) IsSet

IsSet returns true if OptConferenceRecordingResourceStatus was set.

func (OptConferenceRecordingResourceStatus) MarshalJSON

func (s OptConferenceRecordingResourceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptConferenceRecordingResourceStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptConferenceRecordingResourceStatus) Reset

Reset unsets value.

func (*OptConferenceRecordingResourceStatus) SetTo

SetTo sets value to v.

func (*OptConferenceRecordingResourceStatus) UnmarshalJSON

func (s *OptConferenceRecordingResourceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptConferenceRecordingResourceSubresourceUris

type OptConferenceRecordingResourceSubresourceUris struct {
	Value ConferenceRecordingResourceSubresourceUris
	Set   bool
}

OptConferenceRecordingResourceSubresourceUris is optional ConferenceRecordingResourceSubresourceUris.

func NewOptConferenceRecordingResourceSubresourceUris

func NewOptConferenceRecordingResourceSubresourceUris(v ConferenceRecordingResourceSubresourceUris) OptConferenceRecordingResourceSubresourceUris

NewOptConferenceRecordingResourceSubresourceUris returns new OptConferenceRecordingResourceSubresourceUris with value set to v.

func (*OptConferenceRecordingResourceSubresourceUris) Decode

Decode decodes ConferenceRecordingResourceSubresourceUris from json.

func (OptConferenceRecordingResourceSubresourceUris) Encode

Encode encodes ConferenceRecordingResourceSubresourceUris as json.

func (OptConferenceRecordingResourceSubresourceUris) Get

Get returns value and boolean that denotes whether value was set.

func (OptConferenceRecordingResourceSubresourceUris) IsSet

IsSet returns true if OptConferenceRecordingResourceSubresourceUris was set.

func (OptConferenceRecordingResourceSubresourceUris) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptConferenceRecordingResourceSubresourceUris) Or

Or returns value if set, or given parameter if does not.

func (*OptConferenceRecordingResourceSubresourceUris) Reset

Reset unsets value.

func (*OptConferenceRecordingResourceSubresourceUris) SetTo

SetTo sets value to v.

func (*OptConferenceRecordingResourceSubresourceUris) UnmarshalJSON

func (s *OptConferenceRecordingResourceSubresourceUris) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptConferenceResource

type OptConferenceResource struct {
	Value ConferenceResource
	Set   bool
}

OptConferenceResource is optional ConferenceResource.

func NewOptConferenceResource

func NewOptConferenceResource(v ConferenceResource) OptConferenceResource

NewOptConferenceResource returns new OptConferenceResource with value set to v.

func (*OptConferenceResource) Decode

func (o *OptConferenceResource) Decode(d *jx.Decoder) error

Decode decodes ConferenceResource from json.

func (OptConferenceResource) Encode

func (o OptConferenceResource) Encode(e *jx.Encoder)

Encode encodes ConferenceResource as json.

func (OptConferenceResource) Get

Get returns value and boolean that denotes whether value was set.

func (OptConferenceResource) IsSet

func (o OptConferenceResource) IsSet() bool

IsSet returns true if OptConferenceResource was set.

func (OptConferenceResource) MarshalJSON

func (s OptConferenceResource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptConferenceResource) Or

Or returns value if set, or given parameter if does not.

func (*OptConferenceResource) Reset

func (o *OptConferenceResource) Reset()

Reset unsets value.

func (*OptConferenceResource) SetTo

SetTo sets value to v.

func (*OptConferenceResource) UnmarshalJSON

func (s *OptConferenceResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptConferenceResourceIndex

type OptConferenceResourceIndex struct {
	Value ConferenceResourceIndex
	Set   bool
}

OptConferenceResourceIndex is optional ConferenceResourceIndex.

func NewOptConferenceResourceIndex

func NewOptConferenceResourceIndex(v ConferenceResourceIndex) OptConferenceResourceIndex

NewOptConferenceResourceIndex returns new OptConferenceResourceIndex with value set to v.

func (*OptConferenceResourceIndex) Decode

Decode decodes ConferenceResourceIndex from json.

func (OptConferenceResourceIndex) Encode

func (o OptConferenceResourceIndex) Encode(e *jx.Encoder)

Encode encodes ConferenceResourceIndex as json.

func (OptConferenceResourceIndex) Get

Get returns value and boolean that denotes whether value was set.

func (OptConferenceResourceIndex) IsSet

func (o OptConferenceResourceIndex) IsSet() bool

IsSet returns true if OptConferenceResourceIndex was set.

func (OptConferenceResourceIndex) MarshalJSON

func (s OptConferenceResourceIndex) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptConferenceResourceIndex) Or

Or returns value if set, or given parameter if does not.

func (*OptConferenceResourceIndex) Reset

func (o *OptConferenceResourceIndex) Reset()

Reset unsets value.

func (*OptConferenceResourceIndex) SetTo

SetTo sets value to v.

func (*OptConferenceResourceIndex) UnmarshalJSON

func (s *OptConferenceResourceIndex) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptConferenceResourceReasonConferenceEnded

type OptConferenceResourceReasonConferenceEnded struct {
	Value ConferenceResourceReasonConferenceEnded
	Set   bool
}

OptConferenceResourceReasonConferenceEnded is optional ConferenceResourceReasonConferenceEnded.

func NewOptConferenceResourceReasonConferenceEnded

func NewOptConferenceResourceReasonConferenceEnded(v ConferenceResourceReasonConferenceEnded) OptConferenceResourceReasonConferenceEnded

NewOptConferenceResourceReasonConferenceEnded returns new OptConferenceResourceReasonConferenceEnded with value set to v.

func (*OptConferenceResourceReasonConferenceEnded) Decode

Decode decodes ConferenceResourceReasonConferenceEnded from json.

func (OptConferenceResourceReasonConferenceEnded) Encode

Encode encodes ConferenceResourceReasonConferenceEnded as json.

func (OptConferenceResourceReasonConferenceEnded) Get

Get returns value and boolean that denotes whether value was set.

func (OptConferenceResourceReasonConferenceEnded) IsSet

IsSet returns true if OptConferenceResourceReasonConferenceEnded was set.

func (OptConferenceResourceReasonConferenceEnded) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptConferenceResourceReasonConferenceEnded) Or

Or returns value if set, or given parameter if does not.

func (*OptConferenceResourceReasonConferenceEnded) Reset

Reset unsets value.

func (*OptConferenceResourceReasonConferenceEnded) SetTo

SetTo sets value to v.

func (*OptConferenceResourceReasonConferenceEnded) UnmarshalJSON

func (s *OptConferenceResourceReasonConferenceEnded) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptConferenceResourceStatus

type OptConferenceResourceStatus struct {
	Value ConferenceResourceStatus
	Set   bool
}

OptConferenceResourceStatus is optional ConferenceResourceStatus.

func NewOptConferenceResourceStatus

func NewOptConferenceResourceStatus(v ConferenceResourceStatus) OptConferenceResourceStatus

NewOptConferenceResourceStatus returns new OptConferenceResourceStatus with value set to v.

func (*OptConferenceResourceStatus) Decode

Decode decodes ConferenceResourceStatus from json.

func (OptConferenceResourceStatus) Encode

func (o OptConferenceResourceStatus) Encode(e *jx.Encoder)

Encode encodes ConferenceResourceStatus as json.

func (OptConferenceResourceStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptConferenceResourceStatus) IsSet

IsSet returns true if OptConferenceResourceStatus was set.

func (OptConferenceResourceStatus) MarshalJSON

func (s OptConferenceResourceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptConferenceResourceStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptConferenceResourceStatus) Reset

func (o *OptConferenceResourceStatus) Reset()

Reset unsets value.

func (*OptConferenceResourceStatus) SetTo

SetTo sets value to v.

func (*OptConferenceResourceStatus) UnmarshalJSON

func (s *OptConferenceResourceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptConferenceResourceSubresourceUris

type OptConferenceResourceSubresourceUris struct {
	Value ConferenceResourceSubresourceUris
	Set   bool
}

OptConferenceResourceSubresourceUris is optional ConferenceResourceSubresourceUris.

func NewOptConferenceResourceSubresourceUris

func NewOptConferenceResourceSubresourceUris(v ConferenceResourceSubresourceUris) OptConferenceResourceSubresourceUris

NewOptConferenceResourceSubresourceUris returns new OptConferenceResourceSubresourceUris with value set to v.

func (*OptConferenceResourceSubresourceUris) Decode

Decode decodes ConferenceResourceSubresourceUris from json.

func (OptConferenceResourceSubresourceUris) Encode

Encode encodes ConferenceResourceSubresourceUris as json.

func (OptConferenceResourceSubresourceUris) Get

Get returns value and boolean that denotes whether value was set.

func (OptConferenceResourceSubresourceUris) IsSet

IsSet returns true if OptConferenceResourceSubresourceUris was set.

func (OptConferenceResourceSubresourceUris) MarshalJSON

func (s OptConferenceResourceSubresourceUris) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptConferenceResourceSubresourceUris) Or

Or returns value if set, or given parameter if does not.

func (*OptConferenceResourceSubresourceUris) Reset

Reset unsets value.

func (*OptConferenceResourceSubresourceUris) SetTo

SetTo sets value to v.

func (*OptConferenceResourceSubresourceUris) UnmarshalJSON

func (s *OptConferenceResourceSubresourceUris) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptConferenceStatus

type OptConferenceStatus struct {
	Value ConferenceStatus
	Set   bool
}

OptConferenceStatus is optional ConferenceStatus.

func NewOptConferenceStatus

func NewOptConferenceStatus(v ConferenceStatus) OptConferenceStatus

NewOptConferenceStatus returns new OptConferenceStatus with value set to v.

func (OptConferenceStatus) Get

func (o OptConferenceStatus) Get() (v ConferenceStatus, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptConferenceStatus) IsSet

func (o OptConferenceStatus) IsSet() bool

IsSet returns true if OptConferenceStatus was set.

func (OptConferenceStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptConferenceStatus) Reset

func (o *OptConferenceStatus) Reset()

Reset unsets value.

func (*OptConferenceStatus) SetTo

SetTo sets value to v.

type OptConfirmPortingOrderResponseMeta

type OptConfirmPortingOrderResponseMeta struct {
	Value ConfirmPortingOrderResponseMeta
	Set   bool
}

OptConfirmPortingOrderResponseMeta is optional ConfirmPortingOrderResponseMeta.

func NewOptConfirmPortingOrderResponseMeta

func NewOptConfirmPortingOrderResponseMeta(v ConfirmPortingOrderResponseMeta) OptConfirmPortingOrderResponseMeta

NewOptConfirmPortingOrderResponseMeta returns new OptConfirmPortingOrderResponseMeta with value set to v.

func (*OptConfirmPortingOrderResponseMeta) Decode

Decode decodes ConfirmPortingOrderResponseMeta from json.

func (OptConfirmPortingOrderResponseMeta) Encode

Encode encodes ConfirmPortingOrderResponseMeta as json.

func (OptConfirmPortingOrderResponseMeta) Get

Get returns value and boolean that denotes whether value was set.

func (OptConfirmPortingOrderResponseMeta) IsSet

IsSet returns true if OptConfirmPortingOrderResponseMeta was set.

func (OptConfirmPortingOrderResponseMeta) MarshalJSON

func (s OptConfirmPortingOrderResponseMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptConfirmPortingOrderResponseMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptConfirmPortingOrderResponseMeta) Reset

Reset unsets value.

func (*OptConfirmPortingOrderResponseMeta) SetTo

SetTo sets value to v.

func (*OptConfirmPortingOrderResponseMeta) UnmarshalJSON

func (s *OptConfirmPortingOrderResponseMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptConnectionActive

type OptConnectionActive struct {
	Value ConnectionActive
	Set   bool
}

OptConnectionActive is optional ConnectionActive.

func NewOptConnectionActive

func NewOptConnectionActive(v ConnectionActive) OptConnectionActive

NewOptConnectionActive returns new OptConnectionActive with value set to v.

func (*OptConnectionActive) Decode

func (o *OptConnectionActive) Decode(d *jx.Decoder) error

Decode decodes ConnectionActive from json.

func (OptConnectionActive) Encode

func (o OptConnectionActive) Encode(e *jx.Encoder)

Encode encodes ConnectionActive as json.

func (OptConnectionActive) Get

func (o OptConnectionActive) Get() (v ConnectionActive, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptConnectionActive) IsSet

func (o OptConnectionActive) IsSet() bool

IsSet returns true if OptConnectionActive was set.

func (OptConnectionActive) MarshalJSON

func (s OptConnectionActive) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptConnectionActive) Or

Or returns value if set, or given parameter if does not.

func (*OptConnectionActive) Reset

func (o *OptConnectionActive) Reset()

Reset unsets value.

func (*OptConnectionActive) SetTo

SetTo sets value to v.

func (*OptConnectionActive) UnmarshalJSON

func (s *OptConnectionActive) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCostInformation

type OptCostInformation struct {
	Value CostInformation
	Set   bool
}

OptCostInformation is optional CostInformation.

func NewOptCostInformation

func NewOptCostInformation(v CostInformation) OptCostInformation

NewOptCostInformation returns new OptCostInformation with value set to v.

func (*OptCostInformation) Decode

func (o *OptCostInformation) Decode(d *jx.Decoder) error

Decode decodes CostInformation from json.

func (OptCostInformation) Encode

func (o OptCostInformation) Encode(e *jx.Encoder)

Encode encodes CostInformation as json.

func (OptCostInformation) Get

func (o OptCostInformation) Get() (v CostInformation, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCostInformation) IsSet

func (o OptCostInformation) IsSet() bool

IsSet returns true if OptCostInformation was set.

func (OptCostInformation) MarshalJSON

func (s OptCostInformation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCostInformation) Or

Or returns value if set, or given parameter if does not.

func (*OptCostInformation) Reset

func (o *OptCostInformation) Reset()

Reset unsets value.

func (*OptCostInformation) SetTo

func (o *OptCostInformation) SetTo(v CostInformation)

SetTo sets value to v.

func (*OptCostInformation) UnmarshalJSON

func (s *OptCostInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType

type OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType struct {
	Value CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType
	Set   bool
}

OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType is optional CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType.

func NewOptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType

NewOptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType returns new OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType with value set to v.

func (*OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) Decode

Decode decodes CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType from json.

func (OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) Encode

Encode encodes CreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType as json.

func (OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) IsSet

IsSet returns true if OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType was set.

func (OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) Reset

Reset unsets value.

func (*OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) SetTo

SetTo sets value to v.

func (*OptCreateAdditionalDocumentsReqAdditionalDocumentsItemDocumentType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateCallControlApplicationRequestAnchorsiteOverride

type OptCreateCallControlApplicationRequestAnchorsiteOverride struct {
	Value CreateCallControlApplicationRequestAnchorsiteOverride
	Set   bool
}

OptCreateCallControlApplicationRequestAnchorsiteOverride is optional CreateCallControlApplicationRequestAnchorsiteOverride.

func NewOptCreateCallControlApplicationRequestAnchorsiteOverride

NewOptCreateCallControlApplicationRequestAnchorsiteOverride returns new OptCreateCallControlApplicationRequestAnchorsiteOverride with value set to v.

func (*OptCreateCallControlApplicationRequestAnchorsiteOverride) Decode

Decode decodes CreateCallControlApplicationRequestAnchorsiteOverride from json.

func (OptCreateCallControlApplicationRequestAnchorsiteOverride) Encode

Encode encodes CreateCallControlApplicationRequestAnchorsiteOverride as json.

func (OptCreateCallControlApplicationRequestAnchorsiteOverride) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateCallControlApplicationRequestAnchorsiteOverride) IsSet

IsSet returns true if OptCreateCallControlApplicationRequestAnchorsiteOverride was set.

func (OptCreateCallControlApplicationRequestAnchorsiteOverride) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCreateCallControlApplicationRequestAnchorsiteOverride) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateCallControlApplicationRequestAnchorsiteOverride) Reset

Reset unsets value.

func (*OptCreateCallControlApplicationRequestAnchorsiteOverride) SetTo

SetTo sets value to v.

func (*OptCreateCallControlApplicationRequestAnchorsiteOverride) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateCallControlApplicationRequestDtmfType

type OptCreateCallControlApplicationRequestDtmfType struct {
	Value CreateCallControlApplicationRequestDtmfType
	Set   bool
}

OptCreateCallControlApplicationRequestDtmfType is optional CreateCallControlApplicationRequestDtmfType.

func NewOptCreateCallControlApplicationRequestDtmfType

func NewOptCreateCallControlApplicationRequestDtmfType(v CreateCallControlApplicationRequestDtmfType) OptCreateCallControlApplicationRequestDtmfType

NewOptCreateCallControlApplicationRequestDtmfType returns new OptCreateCallControlApplicationRequestDtmfType with value set to v.

func (*OptCreateCallControlApplicationRequestDtmfType) Decode

Decode decodes CreateCallControlApplicationRequestDtmfType from json.

func (OptCreateCallControlApplicationRequestDtmfType) Encode

Encode encodes CreateCallControlApplicationRequestDtmfType as json.

func (OptCreateCallControlApplicationRequestDtmfType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateCallControlApplicationRequestDtmfType) IsSet

IsSet returns true if OptCreateCallControlApplicationRequestDtmfType was set.

func (OptCreateCallControlApplicationRequestDtmfType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCreateCallControlApplicationRequestDtmfType) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateCallControlApplicationRequestDtmfType) Reset

Reset unsets value.

func (*OptCreateCallControlApplicationRequestDtmfType) SetTo

SetTo sets value to v.

func (*OptCreateCallControlApplicationRequestDtmfType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateCallControlApplicationRequestWebhookAPIVersion

type OptCreateCallControlApplicationRequestWebhookAPIVersion struct {
	Value CreateCallControlApplicationRequestWebhookAPIVersion
	Set   bool
}

OptCreateCallControlApplicationRequestWebhookAPIVersion is optional CreateCallControlApplicationRequestWebhookAPIVersion.

func NewOptCreateCallControlApplicationRequestWebhookAPIVersion

NewOptCreateCallControlApplicationRequestWebhookAPIVersion returns new OptCreateCallControlApplicationRequestWebhookAPIVersion with value set to v.

func (*OptCreateCallControlApplicationRequestWebhookAPIVersion) Decode

Decode decodes CreateCallControlApplicationRequestWebhookAPIVersion from json.

func (OptCreateCallControlApplicationRequestWebhookAPIVersion) Encode

Encode encodes CreateCallControlApplicationRequestWebhookAPIVersion as json.

func (OptCreateCallControlApplicationRequestWebhookAPIVersion) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateCallControlApplicationRequestWebhookAPIVersion) IsSet

IsSet returns true if OptCreateCallControlApplicationRequestWebhookAPIVersion was set.

func (OptCreateCallControlApplicationRequestWebhookAPIVersion) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCreateCallControlApplicationRequestWebhookAPIVersion) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateCallControlApplicationRequestWebhookAPIVersion) Reset

Reset unsets value.

func (*OptCreateCallControlApplicationRequestWebhookAPIVersion) SetTo

SetTo sets value to v.

func (*OptCreateCallControlApplicationRequestWebhookAPIVersion) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateGroupMMSMessageRequest

type OptCreateGroupMMSMessageRequest struct {
	Value CreateGroupMMSMessageRequest
	Set   bool
}

OptCreateGroupMMSMessageRequest is optional CreateGroupMMSMessageRequest.

func NewOptCreateGroupMMSMessageRequest

func NewOptCreateGroupMMSMessageRequest(v CreateGroupMMSMessageRequest) OptCreateGroupMMSMessageRequest

NewOptCreateGroupMMSMessageRequest returns new OptCreateGroupMMSMessageRequest with value set to v.

func (*OptCreateGroupMMSMessageRequest) Decode

Decode decodes CreateGroupMMSMessageRequest from json.

func (OptCreateGroupMMSMessageRequest) Encode

Encode encodes CreateGroupMMSMessageRequest as json.

func (OptCreateGroupMMSMessageRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateGroupMMSMessageRequest) IsSet

IsSet returns true if OptCreateGroupMMSMessageRequest was set.

func (OptCreateGroupMMSMessageRequest) MarshalJSON

func (s OptCreateGroupMMSMessageRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateGroupMMSMessageRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateGroupMMSMessageRequest) Reset

Reset unsets value.

func (*OptCreateGroupMMSMessageRequest) SetTo

SetTo sets value to v.

func (*OptCreateGroupMMSMessageRequest) UnmarshalJSON

func (s *OptCreateGroupMMSMessageRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateLongCodeMessageRequest

type OptCreateLongCodeMessageRequest struct {
	Value CreateLongCodeMessageRequest
	Set   bool
}

OptCreateLongCodeMessageRequest is optional CreateLongCodeMessageRequest.

func NewOptCreateLongCodeMessageRequest

func NewOptCreateLongCodeMessageRequest(v CreateLongCodeMessageRequest) OptCreateLongCodeMessageRequest

NewOptCreateLongCodeMessageRequest returns new OptCreateLongCodeMessageRequest with value set to v.

func (*OptCreateLongCodeMessageRequest) Decode

Decode decodes CreateLongCodeMessageRequest from json.

func (OptCreateLongCodeMessageRequest) Encode

Encode encodes CreateLongCodeMessageRequest as json.

func (OptCreateLongCodeMessageRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateLongCodeMessageRequest) IsSet

IsSet returns true if OptCreateLongCodeMessageRequest was set.

func (OptCreateLongCodeMessageRequest) MarshalJSON

func (s OptCreateLongCodeMessageRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateLongCodeMessageRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateLongCodeMessageRequest) Reset

Reset unsets value.

func (*OptCreateLongCodeMessageRequest) SetTo

SetTo sets value to v.

func (*OptCreateLongCodeMessageRequest) UnmarshalJSON

func (s *OptCreateLongCodeMessageRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateLongCodeMessageRequestType

type OptCreateLongCodeMessageRequestType struct {
	Value CreateLongCodeMessageRequestType
	Set   bool
}

OptCreateLongCodeMessageRequestType is optional CreateLongCodeMessageRequestType.

func NewOptCreateLongCodeMessageRequestType

func NewOptCreateLongCodeMessageRequestType(v CreateLongCodeMessageRequestType) OptCreateLongCodeMessageRequestType

NewOptCreateLongCodeMessageRequestType returns new OptCreateLongCodeMessageRequestType with value set to v.

func (*OptCreateLongCodeMessageRequestType) Decode

Decode decodes CreateLongCodeMessageRequestType from json.

func (OptCreateLongCodeMessageRequestType) Encode

Encode encodes CreateLongCodeMessageRequestType as json.

func (OptCreateLongCodeMessageRequestType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateLongCodeMessageRequestType) IsSet

IsSet returns true if OptCreateLongCodeMessageRequestType was set.

func (OptCreateLongCodeMessageRequestType) MarshalJSON

func (s OptCreateLongCodeMessageRequestType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateLongCodeMessageRequestType) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateLongCodeMessageRequestType) Reset

Reset unsets value.

func (*OptCreateLongCodeMessageRequestType) SetTo

SetTo sets value to v.

func (*OptCreateLongCodeMessageRequestType) UnmarshalJSON

func (s *OptCreateLongCodeMessageRequestType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateMessageRequest

type OptCreateMessageRequest struct {
	Value CreateMessageRequest
	Set   bool
}

OptCreateMessageRequest is optional CreateMessageRequest.

func NewOptCreateMessageRequest

func NewOptCreateMessageRequest(v CreateMessageRequest) OptCreateMessageRequest

NewOptCreateMessageRequest returns new OptCreateMessageRequest with value set to v.

func (*OptCreateMessageRequest) Decode

func (o *OptCreateMessageRequest) Decode(d *jx.Decoder) error

Decode decodes CreateMessageRequest from json.

func (OptCreateMessageRequest) Encode

func (o OptCreateMessageRequest) Encode(e *jx.Encoder)

Encode encodes CreateMessageRequest as json.

func (OptCreateMessageRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateMessageRequest) IsSet

func (o OptCreateMessageRequest) IsSet() bool

IsSet returns true if OptCreateMessageRequest was set.

func (OptCreateMessageRequest) MarshalJSON

func (s OptCreateMessageRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateMessageRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateMessageRequest) Reset

func (o *OptCreateMessageRequest) Reset()

Reset unsets value.

func (*OptCreateMessageRequest) SetTo

SetTo sets value to v.

func (*OptCreateMessageRequest) UnmarshalJSON

func (s *OptCreateMessageRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateMessageRequestType

type OptCreateMessageRequestType struct {
	Value CreateMessageRequestType
	Set   bool
}

OptCreateMessageRequestType is optional CreateMessageRequestType.

func NewOptCreateMessageRequestType

func NewOptCreateMessageRequestType(v CreateMessageRequestType) OptCreateMessageRequestType

NewOptCreateMessageRequestType returns new OptCreateMessageRequestType with value set to v.

func (*OptCreateMessageRequestType) Decode

Decode decodes CreateMessageRequestType from json.

func (OptCreateMessageRequestType) Encode

func (o OptCreateMessageRequestType) Encode(e *jx.Encoder)

Encode encodes CreateMessageRequestType as json.

func (OptCreateMessageRequestType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateMessageRequestType) IsSet

IsSet returns true if OptCreateMessageRequestType was set.

func (OptCreateMessageRequestType) MarshalJSON

func (s OptCreateMessageRequestType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateMessageRequestType) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateMessageRequestType) Reset

func (o *OptCreateMessageRequestType) Reset()

Reset unsets value.

func (*OptCreateMessageRequestType) SetTo

SetTo sets value to v.

func (*OptCreateMessageRequestType) UnmarshalJSON

func (s *OptCreateMessageRequestType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateMessagingHostedNumberOrderRequest

type OptCreateMessagingHostedNumberOrderRequest struct {
	Value CreateMessagingHostedNumberOrderRequest
	Set   bool
}

OptCreateMessagingHostedNumberOrderRequest is optional CreateMessagingHostedNumberOrderRequest.

func NewOptCreateMessagingHostedNumberOrderRequest

func NewOptCreateMessagingHostedNumberOrderRequest(v CreateMessagingHostedNumberOrderRequest) OptCreateMessagingHostedNumberOrderRequest

NewOptCreateMessagingHostedNumberOrderRequest returns new OptCreateMessagingHostedNumberOrderRequest with value set to v.

func (*OptCreateMessagingHostedNumberOrderRequest) Decode

Decode decodes CreateMessagingHostedNumberOrderRequest from json.

func (OptCreateMessagingHostedNumberOrderRequest) Encode

Encode encodes CreateMessagingHostedNumberOrderRequest as json.

func (OptCreateMessagingHostedNumberOrderRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateMessagingHostedNumberOrderRequest) IsSet

IsSet returns true if OptCreateMessagingHostedNumberOrderRequest was set.

func (OptCreateMessagingHostedNumberOrderRequest) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCreateMessagingHostedNumberOrderRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateMessagingHostedNumberOrderRequest) Reset

Reset unsets value.

func (*OptCreateMessagingHostedNumberOrderRequest) SetTo

SetTo sets value to v.

func (*OptCreateMessagingHostedNumberOrderRequest) UnmarshalJSON

func (s *OptCreateMessagingHostedNumberOrderRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateNumberOrderDocumentRequestRequirementType

type OptCreateNumberOrderDocumentRequestRequirementType struct {
	Value CreateNumberOrderDocumentRequestRequirementType
	Set   bool
}

OptCreateNumberOrderDocumentRequestRequirementType is optional CreateNumberOrderDocumentRequestRequirementType.

func NewOptCreateNumberOrderDocumentRequestRequirementType

func NewOptCreateNumberOrderDocumentRequestRequirementType(v CreateNumberOrderDocumentRequestRequirementType) OptCreateNumberOrderDocumentRequestRequirementType

NewOptCreateNumberOrderDocumentRequestRequirementType returns new OptCreateNumberOrderDocumentRequestRequirementType with value set to v.

func (*OptCreateNumberOrderDocumentRequestRequirementType) Decode

Decode decodes CreateNumberOrderDocumentRequestRequirementType from json.

func (OptCreateNumberOrderDocumentRequestRequirementType) Encode

Encode encodes CreateNumberOrderDocumentRequestRequirementType as json.

func (OptCreateNumberOrderDocumentRequestRequirementType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateNumberOrderDocumentRequestRequirementType) IsSet

IsSet returns true if OptCreateNumberOrderDocumentRequestRequirementType was set.

func (OptCreateNumberOrderDocumentRequestRequirementType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCreateNumberOrderDocumentRequestRequirementType) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateNumberOrderDocumentRequestRequirementType) Reset

Reset unsets value.

func (*OptCreateNumberOrderDocumentRequestRequirementType) SetTo

SetTo sets value to v.

func (*OptCreateNumberOrderDocumentRequestRequirementType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateNumberPoolMessageRequest

type OptCreateNumberPoolMessageRequest struct {
	Value CreateNumberPoolMessageRequest
	Set   bool
}

OptCreateNumberPoolMessageRequest is optional CreateNumberPoolMessageRequest.

func NewOptCreateNumberPoolMessageRequest

func NewOptCreateNumberPoolMessageRequest(v CreateNumberPoolMessageRequest) OptCreateNumberPoolMessageRequest

NewOptCreateNumberPoolMessageRequest returns new OptCreateNumberPoolMessageRequest with value set to v.

func (*OptCreateNumberPoolMessageRequest) Decode

Decode decodes CreateNumberPoolMessageRequest from json.

func (OptCreateNumberPoolMessageRequest) Encode

Encode encodes CreateNumberPoolMessageRequest as json.

func (OptCreateNumberPoolMessageRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateNumberPoolMessageRequest) IsSet

IsSet returns true if OptCreateNumberPoolMessageRequest was set.

func (OptCreateNumberPoolMessageRequest) MarshalJSON

func (s OptCreateNumberPoolMessageRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateNumberPoolMessageRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateNumberPoolMessageRequest) Reset

Reset unsets value.

func (*OptCreateNumberPoolMessageRequest) SetTo

SetTo sets value to v.

func (*OptCreateNumberPoolMessageRequest) UnmarshalJSON

func (s *OptCreateNumberPoolMessageRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateNumberPoolMessageRequestType

type OptCreateNumberPoolMessageRequestType struct {
	Value CreateNumberPoolMessageRequestType
	Set   bool
}

OptCreateNumberPoolMessageRequestType is optional CreateNumberPoolMessageRequestType.

func NewOptCreateNumberPoolMessageRequestType

func NewOptCreateNumberPoolMessageRequestType(v CreateNumberPoolMessageRequestType) OptCreateNumberPoolMessageRequestType

NewOptCreateNumberPoolMessageRequestType returns new OptCreateNumberPoolMessageRequestType with value set to v.

func (*OptCreateNumberPoolMessageRequestType) Decode

Decode decodes CreateNumberPoolMessageRequestType from json.

func (OptCreateNumberPoolMessageRequestType) Encode

Encode encodes CreateNumberPoolMessageRequestType as json.

func (OptCreateNumberPoolMessageRequestType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateNumberPoolMessageRequestType) IsSet

IsSet returns true if OptCreateNumberPoolMessageRequestType was set.

func (OptCreateNumberPoolMessageRequestType) MarshalJSON

func (s OptCreateNumberPoolMessageRequestType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateNumberPoolMessageRequestType) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateNumberPoolMessageRequestType) Reset

Reset unsets value.

func (*OptCreateNumberPoolMessageRequestType) SetTo

SetTo sets value to v.

func (*OptCreateNumberPoolMessageRequestType) UnmarshalJSON

func (s *OptCreateNumberPoolMessageRequestType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateNumberReservationRequestStatus

type OptCreateNumberReservationRequestStatus struct {
	Value CreateNumberReservationRequestStatus
	Set   bool
}

OptCreateNumberReservationRequestStatus is optional CreateNumberReservationRequestStatus.

func NewOptCreateNumberReservationRequestStatus

func NewOptCreateNumberReservationRequestStatus(v CreateNumberReservationRequestStatus) OptCreateNumberReservationRequestStatus

NewOptCreateNumberReservationRequestStatus returns new OptCreateNumberReservationRequestStatus with value set to v.

func (*OptCreateNumberReservationRequestStatus) Decode

Decode decodes CreateNumberReservationRequestStatus from json.

func (OptCreateNumberReservationRequestStatus) Encode

Encode encodes CreateNumberReservationRequestStatus as json.

func (OptCreateNumberReservationRequestStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateNumberReservationRequestStatus) IsSet

IsSet returns true if OptCreateNumberReservationRequestStatus was set.

func (OptCreateNumberReservationRequestStatus) MarshalJSON

func (s OptCreateNumberReservationRequestStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateNumberReservationRequestStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateNumberReservationRequestStatus) Reset

Reset unsets value.

func (*OptCreateNumberReservationRequestStatus) SetTo

SetTo sets value to v.

func (*OptCreateNumberReservationRequestStatus) UnmarshalJSON

func (s *OptCreateNumberReservationRequestStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateShortCodeMessageRequest

type OptCreateShortCodeMessageRequest struct {
	Value CreateShortCodeMessageRequest
	Set   bool
}

OptCreateShortCodeMessageRequest is optional CreateShortCodeMessageRequest.

func NewOptCreateShortCodeMessageRequest

func NewOptCreateShortCodeMessageRequest(v CreateShortCodeMessageRequest) OptCreateShortCodeMessageRequest

NewOptCreateShortCodeMessageRequest returns new OptCreateShortCodeMessageRequest with value set to v.

func (*OptCreateShortCodeMessageRequest) Decode

Decode decodes CreateShortCodeMessageRequest from json.

func (OptCreateShortCodeMessageRequest) Encode

Encode encodes CreateShortCodeMessageRequest as json.

func (OptCreateShortCodeMessageRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateShortCodeMessageRequest) IsSet

IsSet returns true if OptCreateShortCodeMessageRequest was set.

func (OptCreateShortCodeMessageRequest) MarshalJSON

func (s OptCreateShortCodeMessageRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateShortCodeMessageRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateShortCodeMessageRequest) Reset

Reset unsets value.

func (*OptCreateShortCodeMessageRequest) SetTo

SetTo sets value to v.

func (*OptCreateShortCodeMessageRequest) UnmarshalJSON

func (s *OptCreateShortCodeMessageRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateShortCodeMessageRequestType

type OptCreateShortCodeMessageRequestType struct {
	Value CreateShortCodeMessageRequestType
	Set   bool
}

OptCreateShortCodeMessageRequestType is optional CreateShortCodeMessageRequestType.

func NewOptCreateShortCodeMessageRequestType

func NewOptCreateShortCodeMessageRequestType(v CreateShortCodeMessageRequestType) OptCreateShortCodeMessageRequestType

NewOptCreateShortCodeMessageRequestType returns new OptCreateShortCodeMessageRequestType with value set to v.

func (*OptCreateShortCodeMessageRequestType) Decode

Decode decodes CreateShortCodeMessageRequestType from json.

func (OptCreateShortCodeMessageRequestType) Encode

Encode encodes CreateShortCodeMessageRequestType as json.

func (OptCreateShortCodeMessageRequestType) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateShortCodeMessageRequestType) IsSet

IsSet returns true if OptCreateShortCodeMessageRequestType was set.

func (OptCreateShortCodeMessageRequestType) MarshalJSON

func (s OptCreateShortCodeMessageRequestType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateShortCodeMessageRequestType) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateShortCodeMessageRequestType) Reset

Reset unsets value.

func (*OptCreateShortCodeMessageRequestType) SetTo

SetTo sets value to v.

func (*OptCreateShortCodeMessageRequestType) UnmarshalJSON

func (s *OptCreateShortCodeMessageRequestType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateTeXMLSecretResult

type OptCreateTeXMLSecretResult struct {
	Value CreateTeXMLSecretResult
	Set   bool
}

OptCreateTeXMLSecretResult is optional CreateTeXMLSecretResult.

func NewOptCreateTeXMLSecretResult

func NewOptCreateTeXMLSecretResult(v CreateTeXMLSecretResult) OptCreateTeXMLSecretResult

NewOptCreateTeXMLSecretResult returns new OptCreateTeXMLSecretResult with value set to v.

func (*OptCreateTeXMLSecretResult) Decode

Decode decodes CreateTeXMLSecretResult from json.

func (OptCreateTeXMLSecretResult) Encode

func (o OptCreateTeXMLSecretResult) Encode(e *jx.Encoder)

Encode encodes CreateTeXMLSecretResult as json.

func (OptCreateTeXMLSecretResult) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateTeXMLSecretResult) IsSet

func (o OptCreateTeXMLSecretResult) IsSet() bool

IsSet returns true if OptCreateTeXMLSecretResult was set.

func (OptCreateTeXMLSecretResult) MarshalJSON

func (s OptCreateTeXMLSecretResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateTeXMLSecretResult) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateTeXMLSecretResult) Reset

func (o *OptCreateTeXMLSecretResult) Reset()

Reset unsets value.

func (*OptCreateTeXMLSecretResult) SetTo

SetTo sets value to v.

func (*OptCreateTeXMLSecretResult) UnmarshalJSON

func (s *OptCreateTeXMLSecretResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateTeXMLSecretResultValue

type OptCreateTeXMLSecretResultValue struct {
	Value CreateTeXMLSecretResultValue
	Set   bool
}

OptCreateTeXMLSecretResultValue is optional CreateTeXMLSecretResultValue.

func NewOptCreateTeXMLSecretResultValue

func NewOptCreateTeXMLSecretResultValue(v CreateTeXMLSecretResultValue) OptCreateTeXMLSecretResultValue

NewOptCreateTeXMLSecretResultValue returns new OptCreateTeXMLSecretResultValue with value set to v.

func (*OptCreateTeXMLSecretResultValue) Decode

Decode decodes CreateTeXMLSecretResultValue from json.

func (OptCreateTeXMLSecretResultValue) Encode

Encode encodes CreateTeXMLSecretResultValue as json.

func (OptCreateTeXMLSecretResultValue) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateTeXMLSecretResultValue) IsSet

IsSet returns true if OptCreateTeXMLSecretResultValue was set.

func (OptCreateTeXMLSecretResultValue) MarshalJSON

func (s OptCreateTeXMLSecretResultValue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateTeXMLSecretResultValue) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateTeXMLSecretResultValue) Reset

Reset unsets value.

func (*OptCreateTeXMLSecretResultValue) SetTo

SetTo sets value to v.

func (*OptCreateTeXMLSecretResultValue) UnmarshalJSON

func (s *OptCreateTeXMLSecretResultValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateTexmlApplicationRequestInbound

type OptCreateTexmlApplicationRequestInbound struct {
	Value CreateTexmlApplicationRequestInbound
	Set   bool
}

OptCreateTexmlApplicationRequestInbound is optional CreateTexmlApplicationRequestInbound.

func NewOptCreateTexmlApplicationRequestInbound

func NewOptCreateTexmlApplicationRequestInbound(v CreateTexmlApplicationRequestInbound) OptCreateTexmlApplicationRequestInbound

NewOptCreateTexmlApplicationRequestInbound returns new OptCreateTexmlApplicationRequestInbound with value set to v.

func (*OptCreateTexmlApplicationRequestInbound) Decode

Decode decodes CreateTexmlApplicationRequestInbound from json.

func (OptCreateTexmlApplicationRequestInbound) Encode

Encode encodes CreateTexmlApplicationRequestInbound as json.

func (OptCreateTexmlApplicationRequestInbound) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateTexmlApplicationRequestInbound) IsSet

IsSet returns true if OptCreateTexmlApplicationRequestInbound was set.

func (OptCreateTexmlApplicationRequestInbound) MarshalJSON

func (s OptCreateTexmlApplicationRequestInbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateTexmlApplicationRequestInbound) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateTexmlApplicationRequestInbound) Reset

Reset unsets value.

func (*OptCreateTexmlApplicationRequestInbound) SetTo

SetTo sets value to v.

func (*OptCreateTexmlApplicationRequestInbound) UnmarshalJSON

func (s *OptCreateTexmlApplicationRequestInbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings

type OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings struct {
	Value CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings
	Set   bool
}

OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings is optional CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings.

func NewOptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings

NewOptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings returns new OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings with value set to v.

func (*OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Decode

Decode decodes CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings from json.

func (OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Encode

Encode encodes CreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings as json.

func (OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) IsSet

IsSet returns true if OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings was set.

func (OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Reset

Reset unsets value.

func (*OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) SetTo

SetTo sets value to v.

func (*OptCreateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateTexmlApplicationRequestOutbound

type OptCreateTexmlApplicationRequestOutbound struct {
	Value CreateTexmlApplicationRequestOutbound
	Set   bool
}

OptCreateTexmlApplicationRequestOutbound is optional CreateTexmlApplicationRequestOutbound.

func NewOptCreateTexmlApplicationRequestOutbound

func NewOptCreateTexmlApplicationRequestOutbound(v CreateTexmlApplicationRequestOutbound) OptCreateTexmlApplicationRequestOutbound

NewOptCreateTexmlApplicationRequestOutbound returns new OptCreateTexmlApplicationRequestOutbound with value set to v.

func (*OptCreateTexmlApplicationRequestOutbound) Decode

Decode decodes CreateTexmlApplicationRequestOutbound from json.

func (OptCreateTexmlApplicationRequestOutbound) Encode

Encode encodes CreateTexmlApplicationRequestOutbound as json.

func (OptCreateTexmlApplicationRequestOutbound) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateTexmlApplicationRequestOutbound) IsSet

IsSet returns true if OptCreateTexmlApplicationRequestOutbound was set.

func (OptCreateTexmlApplicationRequestOutbound) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCreateTexmlApplicationRequestOutbound) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateTexmlApplicationRequestOutbound) Reset

Reset unsets value.

func (*OptCreateTexmlApplicationRequestOutbound) SetTo

SetTo sets value to v.

func (*OptCreateTexmlApplicationRequestOutbound) UnmarshalJSON

func (s *OptCreateTexmlApplicationRequestOutbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateTexmlApplicationRequestStatusCallbackMethod

type OptCreateTexmlApplicationRequestStatusCallbackMethod struct {
	Value CreateTexmlApplicationRequestStatusCallbackMethod
	Set   bool
}

OptCreateTexmlApplicationRequestStatusCallbackMethod is optional CreateTexmlApplicationRequestStatusCallbackMethod.

func NewOptCreateTexmlApplicationRequestStatusCallbackMethod

NewOptCreateTexmlApplicationRequestStatusCallbackMethod returns new OptCreateTexmlApplicationRequestStatusCallbackMethod with value set to v.

func (*OptCreateTexmlApplicationRequestStatusCallbackMethod) Decode

Decode decodes CreateTexmlApplicationRequestStatusCallbackMethod from json.

func (OptCreateTexmlApplicationRequestStatusCallbackMethod) Encode

Encode encodes CreateTexmlApplicationRequestStatusCallbackMethod as json.

func (OptCreateTexmlApplicationRequestStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateTexmlApplicationRequestStatusCallbackMethod) IsSet

IsSet returns true if OptCreateTexmlApplicationRequestStatusCallbackMethod was set.

func (OptCreateTexmlApplicationRequestStatusCallbackMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCreateTexmlApplicationRequestStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateTexmlApplicationRequestStatusCallbackMethod) Reset

Reset unsets value.

func (*OptCreateTexmlApplicationRequestStatusCallbackMethod) SetTo

SetTo sets value to v.

func (*OptCreateTexmlApplicationRequestStatusCallbackMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateTexmlApplicationRequestVoiceMethod

type OptCreateTexmlApplicationRequestVoiceMethod struct {
	Value CreateTexmlApplicationRequestVoiceMethod
	Set   bool
}

OptCreateTexmlApplicationRequestVoiceMethod is optional CreateTexmlApplicationRequestVoiceMethod.

func NewOptCreateTexmlApplicationRequestVoiceMethod

func NewOptCreateTexmlApplicationRequestVoiceMethod(v CreateTexmlApplicationRequestVoiceMethod) OptCreateTexmlApplicationRequestVoiceMethod

NewOptCreateTexmlApplicationRequestVoiceMethod returns new OptCreateTexmlApplicationRequestVoiceMethod with value set to v.

func (*OptCreateTexmlApplicationRequestVoiceMethod) Decode

Decode decodes CreateTexmlApplicationRequestVoiceMethod from json.

func (OptCreateTexmlApplicationRequestVoiceMethod) Encode

Encode encodes CreateTexmlApplicationRequestVoiceMethod as json.

func (OptCreateTexmlApplicationRequestVoiceMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateTexmlApplicationRequestVoiceMethod) IsSet

IsSet returns true if OptCreateTexmlApplicationRequestVoiceMethod was set.

func (OptCreateTexmlApplicationRequestVoiceMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptCreateTexmlApplicationRequestVoiceMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateTexmlApplicationRequestVoiceMethod) Reset

Reset unsets value.

func (*OptCreateTexmlApplicationRequestVoiceMethod) SetTo

SetTo sets value to v.

func (*OptCreateTexmlApplicationRequestVoiceMethod) UnmarshalJSON

func (s *OptCreateTexmlApplicationRequestVoiceMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateVerifyProfileCallRequest

type OptCreateVerifyProfileCallRequest struct {
	Value CreateVerifyProfileCallRequest
	Set   bool
}

OptCreateVerifyProfileCallRequest is optional CreateVerifyProfileCallRequest.

func NewOptCreateVerifyProfileCallRequest

func NewOptCreateVerifyProfileCallRequest(v CreateVerifyProfileCallRequest) OptCreateVerifyProfileCallRequest

NewOptCreateVerifyProfileCallRequest returns new OptCreateVerifyProfileCallRequest with value set to v.

func (*OptCreateVerifyProfileCallRequest) Decode

Decode decodes CreateVerifyProfileCallRequest from json.

func (OptCreateVerifyProfileCallRequest) Encode

Encode encodes CreateVerifyProfileCallRequest as json.

func (OptCreateVerifyProfileCallRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateVerifyProfileCallRequest) IsSet

IsSet returns true if OptCreateVerifyProfileCallRequest was set.

func (OptCreateVerifyProfileCallRequest) MarshalJSON

func (s OptCreateVerifyProfileCallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateVerifyProfileCallRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateVerifyProfileCallRequest) Reset

Reset unsets value.

func (*OptCreateVerifyProfileCallRequest) SetTo

SetTo sets value to v.

func (*OptCreateVerifyProfileCallRequest) UnmarshalJSON

func (s *OptCreateVerifyProfileCallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateVerifyProfileFlashcallRequest

type OptCreateVerifyProfileFlashcallRequest struct {
	Value CreateVerifyProfileFlashcallRequest
	Set   bool
}

OptCreateVerifyProfileFlashcallRequest is optional CreateVerifyProfileFlashcallRequest.

func NewOptCreateVerifyProfileFlashcallRequest

func NewOptCreateVerifyProfileFlashcallRequest(v CreateVerifyProfileFlashcallRequest) OptCreateVerifyProfileFlashcallRequest

NewOptCreateVerifyProfileFlashcallRequest returns new OptCreateVerifyProfileFlashcallRequest with value set to v.

func (*OptCreateVerifyProfileFlashcallRequest) Decode

Decode decodes CreateVerifyProfileFlashcallRequest from json.

func (OptCreateVerifyProfileFlashcallRequest) Encode

Encode encodes CreateVerifyProfileFlashcallRequest as json.

func (OptCreateVerifyProfileFlashcallRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateVerifyProfileFlashcallRequest) IsSet

IsSet returns true if OptCreateVerifyProfileFlashcallRequest was set.

func (OptCreateVerifyProfileFlashcallRequest) MarshalJSON

func (s OptCreateVerifyProfileFlashcallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateVerifyProfileFlashcallRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateVerifyProfileFlashcallRequest) Reset

Reset unsets value.

func (*OptCreateVerifyProfileFlashcallRequest) SetTo

SetTo sets value to v.

func (*OptCreateVerifyProfileFlashcallRequest) UnmarshalJSON

func (s *OptCreateVerifyProfileFlashcallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateVerifyProfileSMSRequest

type OptCreateVerifyProfileSMSRequest struct {
	Value CreateVerifyProfileSMSRequest
	Set   bool
}

OptCreateVerifyProfileSMSRequest is optional CreateVerifyProfileSMSRequest.

func NewOptCreateVerifyProfileSMSRequest

func NewOptCreateVerifyProfileSMSRequest(v CreateVerifyProfileSMSRequest) OptCreateVerifyProfileSMSRequest

NewOptCreateVerifyProfileSMSRequest returns new OptCreateVerifyProfileSMSRequest with value set to v.

func (*OptCreateVerifyProfileSMSRequest) Decode

Decode decodes CreateVerifyProfileSMSRequest from json.

func (OptCreateVerifyProfileSMSRequest) Encode

Encode encodes CreateVerifyProfileSMSRequest as json.

func (OptCreateVerifyProfileSMSRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateVerifyProfileSMSRequest) IsSet

IsSet returns true if OptCreateVerifyProfileSMSRequest was set.

func (OptCreateVerifyProfileSMSRequest) MarshalJSON

func (s OptCreateVerifyProfileSMSRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateVerifyProfileSMSRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateVerifyProfileSMSRequest) Reset

Reset unsets value.

func (*OptCreateVerifyProfileSMSRequest) SetTo

SetTo sets value to v.

func (*OptCreateVerifyProfileSMSRequest) UnmarshalJSON

func (s *OptCreateVerifyProfileSMSRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreatedAt

type OptCreatedAt struct {
	Value CreatedAt
	Set   bool
}

OptCreatedAt is optional CreatedAt.

func NewOptCreatedAt

func NewOptCreatedAt(v CreatedAt) OptCreatedAt

NewOptCreatedAt returns new OptCreatedAt with value set to v.

func (*OptCreatedAt) Decode

func (o *OptCreatedAt) Decode(d *jx.Decoder) error

Decode decodes CreatedAt from json.

func (OptCreatedAt) Encode

func (o OptCreatedAt) Encode(e *jx.Encoder)

Encode encodes CreatedAt as json.

func (OptCreatedAt) Get

func (o OptCreatedAt) Get() (v CreatedAt, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCreatedAt) IsSet

func (o OptCreatedAt) IsSet() bool

IsSet returns true if OptCreatedAt was set.

func (OptCreatedAt) MarshalJSON

func (s OptCreatedAt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreatedAt) Or

Or returns value if set, or given parameter if does not.

func (*OptCreatedAt) Reset

func (o *OptCreatedAt) Reset()

Reset unsets value.

func (*OptCreatedAt) SetTo

func (o *OptCreatedAt) SetTo(v CreatedAt)

SetTo sets value to v.

func (*OptCreatedAt) UnmarshalJSON

func (s *OptCreatedAt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCredentials

type OptCredentials struct {
	Value Credentials
	Set   bool
}

OptCredentials is optional Credentials.

func NewOptCredentials

func NewOptCredentials(v Credentials) OptCredentials

NewOptCredentials returns new OptCredentials with value set to v.

func (*OptCredentials) Decode

func (o *OptCredentials) Decode(d *jx.Decoder) error

Decode decodes Credentials from json.

func (OptCredentials) Encode

func (o OptCredentials) Encode(e *jx.Encoder)

Encode encodes Credentials as json.

func (OptCredentials) Get

func (o OptCredentials) Get() (v Credentials, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCredentials) IsSet

func (o OptCredentials) IsSet() bool

IsSet returns true if OptCredentials was set.

func (OptCredentials) MarshalJSON

func (s OptCredentials) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCredentials) Or

Or returns value if set, or given parameter if does not.

func (*OptCredentials) Reset

func (o *OptCredentials) Reset()

Reset unsets value.

func (*OptCredentials) SetTo

func (o *OptCredentials) SetTo(v Credentials)

SetTo sets value to v.

func (*OptCredentials) UnmarshalJSON

func (s *OptCredentials) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCsvDownloadStatus

type OptCsvDownloadStatus struct {
	Value CsvDownloadStatus
	Set   bool
}

OptCsvDownloadStatus is optional CsvDownloadStatus.

func NewOptCsvDownloadStatus

func NewOptCsvDownloadStatus(v CsvDownloadStatus) OptCsvDownloadStatus

NewOptCsvDownloadStatus returns new OptCsvDownloadStatus with value set to v.

func (*OptCsvDownloadStatus) Decode

func (o *OptCsvDownloadStatus) Decode(d *jx.Decoder) error

Decode decodes CsvDownloadStatus from json.

func (OptCsvDownloadStatus) Encode

func (o OptCsvDownloadStatus) Encode(e *jx.Encoder)

Encode encodes CsvDownloadStatus as json.

func (OptCsvDownloadStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptCsvDownloadStatus) IsSet

func (o OptCsvDownloadStatus) IsSet() bool

IsSet returns true if OptCsvDownloadStatus was set.

func (OptCsvDownloadStatus) MarshalJSON

func (s OptCsvDownloadStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCsvDownloadStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptCsvDownloadStatus) Reset

func (o *OptCsvDownloadStatus) Reset()

Reset unsets value.

func (*OptCsvDownloadStatus) SetTo

SetTo sets value to v.

func (*OptCsvDownloadStatus) UnmarshalJSON

func (s *OptCsvDownloadStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCursor

type OptCursor struct {
	Value Cursor
	Set   bool
}

OptCursor is optional Cursor.

func NewOptCursor

func NewOptCursor(v Cursor) OptCursor

NewOptCursor returns new OptCursor with value set to v.

func (*OptCursor) Decode

func (o *OptCursor) Decode(d *jx.Decoder) error

Decode decodes Cursor from json.

func (OptCursor) Encode

func (o OptCursor) Encode(e *jx.Encoder)

Encode encodes Cursor as json.

func (OptCursor) Get

func (o OptCursor) Get() (v Cursor, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCursor) IsSet

func (o OptCursor) IsSet() bool

IsSet returns true if OptCursor was set.

func (OptCursor) MarshalJSON

func (s OptCursor) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCursor) Or

func (o OptCursor) Or(d Cursor) Cursor

Or returns value if set, or given parameter if does not.

func (*OptCursor) Reset

func (o *OptCursor) Reset()

Reset unsets value.

func (*OptCursor) SetTo

func (o *OptCursor) SetTo(v Cursor)

SetTo sets value to v.

func (*OptCursor) UnmarshalJSON

func (s *OptCursor) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCursorPaginationMeta

type OptCursorPaginationMeta struct {
	Value CursorPaginationMeta
	Set   bool
}

OptCursorPaginationMeta is optional CursorPaginationMeta.

func NewOptCursorPaginationMeta

func NewOptCursorPaginationMeta(v CursorPaginationMeta) OptCursorPaginationMeta

NewOptCursorPaginationMeta returns new OptCursorPaginationMeta with value set to v.

func (*OptCursorPaginationMeta) Decode

func (o *OptCursorPaginationMeta) Decode(d *jx.Decoder) error

Decode decodes CursorPaginationMeta from json.

func (OptCursorPaginationMeta) Encode

func (o OptCursorPaginationMeta) Encode(e *jx.Encoder)

Encode encodes CursorPaginationMeta as json.

func (OptCursorPaginationMeta) Get

Get returns value and boolean that denotes whether value was set.

func (OptCursorPaginationMeta) IsSet

func (o OptCursorPaginationMeta) IsSet() bool

IsSet returns true if OptCursorPaginationMeta was set.

func (OptCursorPaginationMeta) MarshalJSON

func (s OptCursorPaginationMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCursorPaginationMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptCursorPaginationMeta) Reset

func (o *OptCursorPaginationMeta) Reset()

Reset unsets value.

func (*OptCursorPaginationMeta) SetTo

SetTo sets value to v.

func (*OptCursorPaginationMeta) UnmarshalJSON

func (s *OptCursorPaginationMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDate

type OptDate struct {
	Value time.Time
	Set   bool
}

OptDate is optional time.Time.

func NewOptDate

func NewOptDate(v time.Time) OptDate

NewOptDate returns new OptDate with value set to v.

func (OptDate) Get

func (o OptDate) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDate) IsSet

func (o OptDate) IsSet() bool

IsSet returns true if OptDate was set.

func (OptDate) Or

func (o OptDate) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDate) Reset

func (o *OptDate) Reset()

Reset unsets value.

func (*OptDate) SetTo

func (o *OptDate) SetTo(v time.Time)

SetTo sets value to v.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) MarshalJSON

func (s OptDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptDateTime) UnmarshalJSON

func (s *OptDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTimeRFC2822

type OptDateTimeRFC2822 struct {
	Value DateTimeRFC2822
	Set   bool
}

OptDateTimeRFC2822 is optional DateTimeRFC2822.

func NewOptDateTimeRFC2822

func NewOptDateTimeRFC2822(v DateTimeRFC2822) OptDateTimeRFC2822

NewOptDateTimeRFC2822 returns new OptDateTimeRFC2822 with value set to v.

func (*OptDateTimeRFC2822) Decode

func (o *OptDateTimeRFC2822) Decode(d *jx.Decoder) error

Decode decodes DateTimeRFC2822 from json.

func (OptDateTimeRFC2822) Encode

func (o OptDateTimeRFC2822) Encode(e *jx.Encoder)

Encode encodes DateTimeRFC2822 as json.

func (OptDateTimeRFC2822) Get

func (o OptDateTimeRFC2822) Get() (v DateTimeRFC2822, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTimeRFC2822) IsSet

func (o OptDateTimeRFC2822) IsSet() bool

IsSet returns true if OptDateTimeRFC2822 was set.

func (OptDateTimeRFC2822) MarshalJSON

func (s OptDateTimeRFC2822) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDateTimeRFC2822) Or

Or returns value if set, or given parameter if does not.

func (*OptDateTimeRFC2822) Reset

func (o *OptDateTimeRFC2822) Reset()

Reset unsets value.

func (*OptDateTimeRFC2822) SetTo

func (o *OptDateTimeRFC2822) SetTo(v DateTimeRFC2822)

SetTo sets value to v.

func (*OptDateTimeRFC2822) UnmarshalJSON

func (s *OptDateTimeRFC2822) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDialConferenceParticipantRequestAmdStatusCallbackMethod

type OptDialConferenceParticipantRequestAmdStatusCallbackMethod struct {
	Value DialConferenceParticipantRequestAmdStatusCallbackMethod
	Set   bool
}

OptDialConferenceParticipantRequestAmdStatusCallbackMethod is optional DialConferenceParticipantRequestAmdStatusCallbackMethod.

func NewOptDialConferenceParticipantRequestAmdStatusCallbackMethod

NewOptDialConferenceParticipantRequestAmdStatusCallbackMethod returns new OptDialConferenceParticipantRequestAmdStatusCallbackMethod with value set to v.

func (OptDialConferenceParticipantRequestAmdStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestAmdStatusCallbackMethod) IsSet

IsSet returns true if OptDialConferenceParticipantRequestAmdStatusCallbackMethod was set.

func (OptDialConferenceParticipantRequestAmdStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestAmdStatusCallbackMethod) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestAmdStatusCallbackMethod) SetTo

SetTo sets value to v.

type OptDialConferenceParticipantRequestBeep

type OptDialConferenceParticipantRequestBeep struct {
	Value DialConferenceParticipantRequestBeep
	Set   bool
}

OptDialConferenceParticipantRequestBeep is optional DialConferenceParticipantRequestBeep.

func NewOptDialConferenceParticipantRequestBeep

func NewOptDialConferenceParticipantRequestBeep(v DialConferenceParticipantRequestBeep) OptDialConferenceParticipantRequestBeep

NewOptDialConferenceParticipantRequestBeep returns new OptDialConferenceParticipantRequestBeep with value set to v.

func (OptDialConferenceParticipantRequestBeep) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestBeep) IsSet

IsSet returns true if OptDialConferenceParticipantRequestBeep was set.

func (OptDialConferenceParticipantRequestBeep) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestBeep) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestBeep) SetTo

SetTo sets value to v.

type OptDialConferenceParticipantRequestConferenceRecord

type OptDialConferenceParticipantRequestConferenceRecord struct {
	Value DialConferenceParticipantRequestConferenceRecord
	Set   bool
}

OptDialConferenceParticipantRequestConferenceRecord is optional DialConferenceParticipantRequestConferenceRecord.

func NewOptDialConferenceParticipantRequestConferenceRecord

func NewOptDialConferenceParticipantRequestConferenceRecord(v DialConferenceParticipantRequestConferenceRecord) OptDialConferenceParticipantRequestConferenceRecord

NewOptDialConferenceParticipantRequestConferenceRecord returns new OptDialConferenceParticipantRequestConferenceRecord with value set to v.

func (OptDialConferenceParticipantRequestConferenceRecord) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestConferenceRecord) IsSet

IsSet returns true if OptDialConferenceParticipantRequestConferenceRecord was set.

func (OptDialConferenceParticipantRequestConferenceRecord) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestConferenceRecord) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestConferenceRecord) SetTo

SetTo sets value to v.

type OptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod

type OptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod struct {
	Value DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod
	Set   bool
}

OptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod is optional DialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod.

func NewOptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod

NewOptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod returns new OptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod with value set to v.

func (OptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod) IsSet

IsSet returns true if OptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod was set.

func (OptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestConferenceRecordingStatusCallbackMethod) SetTo

SetTo sets value to v.

type OptDialConferenceParticipantRequestConferenceStatusCallbackMethod

type OptDialConferenceParticipantRequestConferenceStatusCallbackMethod struct {
	Value DialConferenceParticipantRequestConferenceStatusCallbackMethod
	Set   bool
}

OptDialConferenceParticipantRequestConferenceStatusCallbackMethod is optional DialConferenceParticipantRequestConferenceStatusCallbackMethod.

func NewOptDialConferenceParticipantRequestConferenceStatusCallbackMethod

NewOptDialConferenceParticipantRequestConferenceStatusCallbackMethod returns new OptDialConferenceParticipantRequestConferenceStatusCallbackMethod with value set to v.

func (OptDialConferenceParticipantRequestConferenceStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestConferenceStatusCallbackMethod) IsSet

IsSet returns true if OptDialConferenceParticipantRequestConferenceStatusCallbackMethod was set.

func (OptDialConferenceParticipantRequestConferenceStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestConferenceStatusCallbackMethod) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestConferenceStatusCallbackMethod) SetTo

SetTo sets value to v.

type OptDialConferenceParticipantRequestConferenceTrim

type OptDialConferenceParticipantRequestConferenceTrim struct {
	Value DialConferenceParticipantRequestConferenceTrim
	Set   bool
}

OptDialConferenceParticipantRequestConferenceTrim is optional DialConferenceParticipantRequestConferenceTrim.

func NewOptDialConferenceParticipantRequestConferenceTrim

func NewOptDialConferenceParticipantRequestConferenceTrim(v DialConferenceParticipantRequestConferenceTrim) OptDialConferenceParticipantRequestConferenceTrim

NewOptDialConferenceParticipantRequestConferenceTrim returns new OptDialConferenceParticipantRequestConferenceTrim with value set to v.

func (OptDialConferenceParticipantRequestConferenceTrim) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestConferenceTrim) IsSet

IsSet returns true if OptDialConferenceParticipantRequestConferenceTrim was set.

func (OptDialConferenceParticipantRequestConferenceTrim) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestConferenceTrim) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestConferenceTrim) SetTo

SetTo sets value to v.

type OptDialConferenceParticipantRequestMachineDetection

type OptDialConferenceParticipantRequestMachineDetection struct {
	Value DialConferenceParticipantRequestMachineDetection
	Set   bool
}

OptDialConferenceParticipantRequestMachineDetection is optional DialConferenceParticipantRequestMachineDetection.

func NewOptDialConferenceParticipantRequestMachineDetection

func NewOptDialConferenceParticipantRequestMachineDetection(v DialConferenceParticipantRequestMachineDetection) OptDialConferenceParticipantRequestMachineDetection

NewOptDialConferenceParticipantRequestMachineDetection returns new OptDialConferenceParticipantRequestMachineDetection with value set to v.

func (OptDialConferenceParticipantRequestMachineDetection) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestMachineDetection) IsSet

IsSet returns true if OptDialConferenceParticipantRequestMachineDetection was set.

func (OptDialConferenceParticipantRequestMachineDetection) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestMachineDetection) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestMachineDetection) SetTo

SetTo sets value to v.

type OptDialConferenceParticipantRequestRecordingChannels

type OptDialConferenceParticipantRequestRecordingChannels struct {
	Value DialConferenceParticipantRequestRecordingChannels
	Set   bool
}

OptDialConferenceParticipantRequestRecordingChannels is optional DialConferenceParticipantRequestRecordingChannels.

func NewOptDialConferenceParticipantRequestRecordingChannels

NewOptDialConferenceParticipantRequestRecordingChannels returns new OptDialConferenceParticipantRequestRecordingChannels with value set to v.

func (OptDialConferenceParticipantRequestRecordingChannels) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestRecordingChannels) IsSet

IsSet returns true if OptDialConferenceParticipantRequestRecordingChannels was set.

func (OptDialConferenceParticipantRequestRecordingChannels) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestRecordingChannels) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestRecordingChannels) SetTo

SetTo sets value to v.

type OptDialConferenceParticipantRequestRecordingStatusCallbackMethod

type OptDialConferenceParticipantRequestRecordingStatusCallbackMethod struct {
	Value DialConferenceParticipantRequestRecordingStatusCallbackMethod
	Set   bool
}

OptDialConferenceParticipantRequestRecordingStatusCallbackMethod is optional DialConferenceParticipantRequestRecordingStatusCallbackMethod.

func NewOptDialConferenceParticipantRequestRecordingStatusCallbackMethod

NewOptDialConferenceParticipantRequestRecordingStatusCallbackMethod returns new OptDialConferenceParticipantRequestRecordingStatusCallbackMethod with value set to v.

func (OptDialConferenceParticipantRequestRecordingStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestRecordingStatusCallbackMethod) IsSet

IsSet returns true if OptDialConferenceParticipantRequestRecordingStatusCallbackMethod was set.

func (OptDialConferenceParticipantRequestRecordingStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestRecordingStatusCallbackMethod) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestRecordingStatusCallbackMethod) SetTo

SetTo sets value to v.

type OptDialConferenceParticipantRequestRecordingTrack

type OptDialConferenceParticipantRequestRecordingTrack struct {
	Value DialConferenceParticipantRequestRecordingTrack
	Set   bool
}

OptDialConferenceParticipantRequestRecordingTrack is optional DialConferenceParticipantRequestRecordingTrack.

func NewOptDialConferenceParticipantRequestRecordingTrack

func NewOptDialConferenceParticipantRequestRecordingTrack(v DialConferenceParticipantRequestRecordingTrack) OptDialConferenceParticipantRequestRecordingTrack

NewOptDialConferenceParticipantRequestRecordingTrack returns new OptDialConferenceParticipantRequestRecordingTrack with value set to v.

func (OptDialConferenceParticipantRequestRecordingTrack) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestRecordingTrack) IsSet

IsSet returns true if OptDialConferenceParticipantRequestRecordingTrack was set.

func (OptDialConferenceParticipantRequestRecordingTrack) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestRecordingTrack) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestRecordingTrack) SetTo

SetTo sets value to v.

type OptDialConferenceParticipantRequestStatusCallbackMethod

type OptDialConferenceParticipantRequestStatusCallbackMethod struct {
	Value DialConferenceParticipantRequestStatusCallbackMethod
	Set   bool
}

OptDialConferenceParticipantRequestStatusCallbackMethod is optional DialConferenceParticipantRequestStatusCallbackMethod.

func NewOptDialConferenceParticipantRequestStatusCallbackMethod

NewOptDialConferenceParticipantRequestStatusCallbackMethod returns new OptDialConferenceParticipantRequestStatusCallbackMethod with value set to v.

func (OptDialConferenceParticipantRequestStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestStatusCallbackMethod) IsSet

IsSet returns true if OptDialConferenceParticipantRequestStatusCallbackMethod was set.

func (OptDialConferenceParticipantRequestStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestStatusCallbackMethod) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestStatusCallbackMethod) SetTo

SetTo sets value to v.

type OptDialConferenceParticipantRequestTrim

type OptDialConferenceParticipantRequestTrim struct {
	Value DialConferenceParticipantRequestTrim
	Set   bool
}

OptDialConferenceParticipantRequestTrim is optional DialConferenceParticipantRequestTrim.

func NewOptDialConferenceParticipantRequestTrim

func NewOptDialConferenceParticipantRequestTrim(v DialConferenceParticipantRequestTrim) OptDialConferenceParticipantRequestTrim

NewOptDialConferenceParticipantRequestTrim returns new OptDialConferenceParticipantRequestTrim with value set to v.

func (OptDialConferenceParticipantRequestTrim) Get

Get returns value and boolean that denotes whether value was set.

func (OptDialConferenceParticipantRequestTrim) IsSet

IsSet returns true if OptDialConferenceParticipantRequestTrim was set.

func (OptDialConferenceParticipantRequestTrim) Or

Or returns value if set, or given parameter if does not.

func (*OptDialConferenceParticipantRequestTrim) Reset

Reset unsets value.

func (*OptDialConferenceParticipantRequestTrim) SetTo

SetTo sets value to v.

type OptDialogflowConfig

type OptDialogflowConfig struct {
	Value DialogflowConfig
	Set   bool
}

OptDialogflowConfig is optional DialogflowConfig.

func NewOptDialogflowConfig

func NewOptDialogflowConfig(v DialogflowConfig) OptDialogflowConfig

NewOptDialogflowConfig returns new OptDialogflowConfig with value set to v.

func (*OptDialogflowConfig) Decode

func (o *OptDialogflowConfig) Decode(d *jx.Decoder) error

Decode decodes DialogflowConfig from json.

func (OptDialogflowConfig) Encode

func (o OptDialogflowConfig) Encode(e *jx.Encoder)

Encode encodes DialogflowConfig as json.

func (OptDialogflowConfig) Get

func (o OptDialogflowConfig) Get() (v DialogflowConfig, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDialogflowConfig) IsSet

func (o OptDialogflowConfig) IsSet() bool

IsSet returns true if OptDialogflowConfig was set.

func (OptDialogflowConfig) MarshalJSON

func (s OptDialogflowConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDialogflowConfig) Or

Or returns value if set, or given parameter if does not.

func (*OptDialogflowConfig) Reset

func (o *OptDialogflowConfig) Reset()

Reset unsets value.

func (*OptDialogflowConfig) SetTo

SetTo sets value to v.

func (*OptDialogflowConfig) UnmarshalJSON

func (s *OptDialogflowConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDisplayName

type OptDisplayName struct {
	Value DisplayName
	Set   bool
}

OptDisplayName is optional DisplayName.

func NewOptDisplayName

func NewOptDisplayName(v DisplayName) OptDisplayName

NewOptDisplayName returns new OptDisplayName with value set to v.

func (*OptDisplayName) Decode

func (o *OptDisplayName) Decode(d *jx.Decoder) error

Decode decodes DisplayName from json.

func (OptDisplayName) Encode

func (o OptDisplayName) Encode(e *jx.Encoder)

Encode encodes DisplayName as json.

func (OptDisplayName) Get

func (o OptDisplayName) Get() (v DisplayName, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDisplayName) IsSet

func (o OptDisplayName) IsSet() bool

IsSet returns true if OptDisplayName was set.

func (OptDisplayName) MarshalJSON

func (s OptDisplayName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDisplayName) Or

Or returns value if set, or given parameter if does not.

func (*OptDisplayName) Reset

func (o *OptDisplayName) Reset()

Reset unsets value.

func (*OptDisplayName) SetTo

func (o *OptDisplayName) SetTo(v DisplayName)

SetTo sets value to v.

func (*OptDisplayName) UnmarshalJSON

func (s *OptDisplayName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDocReqsActionFilter

type OptDocReqsActionFilter struct {
	Value DocReqsActionFilter
	Set   bool
}

OptDocReqsActionFilter is optional DocReqsActionFilter.

func NewOptDocReqsActionFilter

func NewOptDocReqsActionFilter(v DocReqsActionFilter) OptDocReqsActionFilter

NewOptDocReqsActionFilter returns new OptDocReqsActionFilter with value set to v.

func (OptDocReqsActionFilter) Get

Get returns value and boolean that denotes whether value was set.

func (OptDocReqsActionFilter) IsSet

func (o OptDocReqsActionFilter) IsSet() bool

IsSet returns true if OptDocReqsActionFilter was set.

func (OptDocReqsActionFilter) Or

Or returns value if set, or given parameter if does not.

func (*OptDocReqsActionFilter) Reset

func (o *OptDocReqsActionFilter) Reset()

Reset unsets value.

func (*OptDocReqsActionFilter) SetTo

SetTo sets value to v.

type OptDocReqsPhoneNumberTypeFilter

type OptDocReqsPhoneNumberTypeFilter struct {
	Value DocReqsPhoneNumberTypeFilter
	Set   bool
}

OptDocReqsPhoneNumberTypeFilter is optional DocReqsPhoneNumberTypeFilter.

func NewOptDocReqsPhoneNumberTypeFilter

func NewOptDocReqsPhoneNumberTypeFilter(v DocReqsPhoneNumberTypeFilter) OptDocReqsPhoneNumberTypeFilter

NewOptDocReqsPhoneNumberTypeFilter returns new OptDocReqsPhoneNumberTypeFilter with value set to v.

func (OptDocReqsPhoneNumberTypeFilter) Get

Get returns value and boolean that denotes whether value was set.

func (OptDocReqsPhoneNumberTypeFilter) IsSet

IsSet returns true if OptDocReqsPhoneNumberTypeFilter was set.

func (OptDocReqsPhoneNumberTypeFilter) Or

Or returns value if set, or given parameter if does not.

func (*OptDocReqsPhoneNumberTypeFilter) Reset

Reset unsets value.

func (*OptDocReqsPhoneNumberTypeFilter) SetTo

SetTo sets value to v.

type OptDocReqsRequirement

type OptDocReqsRequirement struct {
	Value DocReqsRequirement
	Set   bool
}

OptDocReqsRequirement is optional DocReqsRequirement.

func NewOptDocReqsRequirement

func NewOptDocReqsRequirement(v DocReqsRequirement) OptDocReqsRequirement

NewOptDocReqsRequirement returns new OptDocReqsRequirement with value set to v.

func (*OptDocReqsRequirement) Decode

func (o *OptDocReqsRequirement) Decode(d *jx.Decoder) error

Decode decodes DocReqsRequirement from json.

func (OptDocReqsRequirement) Encode

func (o OptDocReqsRequirement) Encode(e *jx.Encoder)

Encode encodes DocReqsRequirement as json.

func (OptDocReqsRequirement) Get

Get returns value and boolean that denotes whether value was set.

func (OptDocReqsRequirement) IsSet

func (o OptDocReqsRequirement) IsSet() bool

IsSet returns true if OptDocReqsRequirement was set.

func (OptDocReqsRequirement) MarshalJSON

func (s OptDocReqsRequirement) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDocReqsRequirement) Or

Or returns value if set, or given parameter if does not.

func (*OptDocReqsRequirement) Reset

func (o *OptDocReqsRequirement) Reset()

Reset unsets value.

func (*OptDocReqsRequirement) SetTo

SetTo sets value to v.

func (*OptDocReqsRequirement) UnmarshalJSON

func (s *OptDocReqsRequirement) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDocReqsRequirementAction

type OptDocReqsRequirementAction struct {
	Value DocReqsRequirementAction
	Set   bool
}

OptDocReqsRequirementAction is optional DocReqsRequirementAction.

func NewOptDocReqsRequirementAction

func NewOptDocReqsRequirementAction(v DocReqsRequirementAction) OptDocReqsRequirementAction

NewOptDocReqsRequirementAction returns new OptDocReqsRequirementAction with value set to v.

func (*OptDocReqsRequirementAction) Decode

Decode decodes DocReqsRequirementAction from json.

func (OptDocReqsRequirementAction) Encode

func (o OptDocReqsRequirementAction) Encode(e *jx.Encoder)

Encode encodes DocReqsRequirementAction as json.

func (OptDocReqsRequirementAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptDocReqsRequirementAction) IsSet

IsSet returns true if OptDocReqsRequirementAction was set.

func (OptDocReqsRequirementAction) MarshalJSON

func (s OptDocReqsRequirementAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDocReqsRequirementAction) Or

Or returns value if set, or given parameter if does not.

func (*OptDocReqsRequirementAction) Reset

func (o *OptDocReqsRequirementAction) Reset()

Reset unsets value.

func (*OptDocReqsRequirementAction) SetTo

SetTo sets value to v.

func (*OptDocReqsRequirementAction) UnmarshalJSON

func (s *OptDocReqsRequirementAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDocReqsRequirementPhoneNumberType

type OptDocReqsRequirementPhoneNumberType struct {
	Value DocReqsRequirementPhoneNumberType
	Set   bool
}

OptDocReqsRequirementPhoneNumberType is optional DocReqsRequirementPhoneNumberType.

func NewOptDocReqsRequirementPhoneNumberType

func NewOptDocReqsRequirementPhoneNumberType(v DocReqsRequirementPhoneNumberType) OptDocReqsRequirementPhoneNumberType

NewOptDocReqsRequirementPhoneNumberType returns new OptDocReqsRequirementPhoneNumberType with value set to v.

func (*OptDocReqsRequirementPhoneNumberType) Decode

Decode decodes DocReqsRequirementPhoneNumberType from json.

func (OptDocReqsRequirementPhoneNumberType) Encode

Encode encodes DocReqsRequirementPhoneNumberType as json.

func (OptDocReqsRequirementPhoneNumberType) Get

Get returns value and boolean that denotes whether value was set.

func (OptDocReqsRequirementPhoneNumberType) IsSet

IsSet returns true if OptDocReqsRequirementPhoneNumberType was set.

func (OptDocReqsRequirementPhoneNumberType) MarshalJSON

func (s OptDocReqsRequirementPhoneNumberType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDocReqsRequirementPhoneNumberType) Or

Or returns value if set, or given parameter if does not.

func (*OptDocReqsRequirementPhoneNumberType) Reset

Reset unsets value.

func (*OptDocReqsRequirementPhoneNumberType) SetTo

SetTo sets value to v.

func (*OptDocReqsRequirementPhoneNumberType) UnmarshalJSON

func (s *OptDocReqsRequirementPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDocReqsRequirementType

type OptDocReqsRequirementType struct {
	Value DocReqsRequirementType
	Set   bool
}

OptDocReqsRequirementType is optional DocReqsRequirementType.

func NewOptDocReqsRequirementType

func NewOptDocReqsRequirementType(v DocReqsRequirementType) OptDocReqsRequirementType

NewOptDocReqsRequirementType returns new OptDocReqsRequirementType with value set to v.

func (*OptDocReqsRequirementType) Decode

func (o *OptDocReqsRequirementType) Decode(d *jx.Decoder) error

Decode decodes DocReqsRequirementType from json.

func (OptDocReqsRequirementType) Encode

func (o OptDocReqsRequirementType) Encode(e *jx.Encoder)

Encode encodes DocReqsRequirementType as json.

func (OptDocReqsRequirementType) Get

Get returns value and boolean that denotes whether value was set.

func (OptDocReqsRequirementType) IsSet

func (o OptDocReqsRequirementType) IsSet() bool

IsSet returns true if OptDocReqsRequirementType was set.

func (OptDocReqsRequirementType) MarshalJSON

func (s OptDocReqsRequirementType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDocReqsRequirementType) Or

Or returns value if set, or given parameter if does not.

func (*OptDocReqsRequirementType) Reset

func (o *OptDocReqsRequirementType) Reset()

Reset unsets value.

func (*OptDocReqsRequirementType) SetTo

SetTo sets value to v.

func (*OptDocReqsRequirementType) UnmarshalJSON

func (s *OptDocReqsRequirementType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDocReqsRequirementTypeAcceptanceCriteria

type OptDocReqsRequirementTypeAcceptanceCriteria struct {
	Value DocReqsRequirementTypeAcceptanceCriteria
	Set   bool
}

OptDocReqsRequirementTypeAcceptanceCriteria is optional DocReqsRequirementTypeAcceptanceCriteria.

func NewOptDocReqsRequirementTypeAcceptanceCriteria

func NewOptDocReqsRequirementTypeAcceptanceCriteria(v DocReqsRequirementTypeAcceptanceCriteria) OptDocReqsRequirementTypeAcceptanceCriteria

NewOptDocReqsRequirementTypeAcceptanceCriteria returns new OptDocReqsRequirementTypeAcceptanceCriteria with value set to v.

func (*OptDocReqsRequirementTypeAcceptanceCriteria) Decode

Decode decodes DocReqsRequirementTypeAcceptanceCriteria from json.

func (OptDocReqsRequirementTypeAcceptanceCriteria) Encode

Encode encodes DocReqsRequirementTypeAcceptanceCriteria as json.

func (OptDocReqsRequirementTypeAcceptanceCriteria) Get

Get returns value and boolean that denotes whether value was set.

func (OptDocReqsRequirementTypeAcceptanceCriteria) IsSet

IsSet returns true if OptDocReqsRequirementTypeAcceptanceCriteria was set.

func (OptDocReqsRequirementTypeAcceptanceCriteria) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptDocReqsRequirementTypeAcceptanceCriteria) Or

Or returns value if set, or given parameter if does not.

func (*OptDocReqsRequirementTypeAcceptanceCriteria) Reset

Reset unsets value.

func (*OptDocReqsRequirementTypeAcceptanceCriteria) SetTo

SetTo sets value to v.

func (*OptDocReqsRequirementTypeAcceptanceCriteria) UnmarshalJSON

func (s *OptDocReqsRequirementTypeAcceptanceCriteria) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDocReqsRequirementTypeType

type OptDocReqsRequirementTypeType struct {
	Value DocReqsRequirementTypeType
	Set   bool
}

OptDocReqsRequirementTypeType is optional DocReqsRequirementTypeType.

func NewOptDocReqsRequirementTypeType

func NewOptDocReqsRequirementTypeType(v DocReqsRequirementTypeType) OptDocReqsRequirementTypeType

NewOptDocReqsRequirementTypeType returns new OptDocReqsRequirementTypeType with value set to v.

func (*OptDocReqsRequirementTypeType) Decode

Decode decodes DocReqsRequirementTypeType from json.

func (OptDocReqsRequirementTypeType) Encode

Encode encodes DocReqsRequirementTypeType as json.

func (OptDocReqsRequirementTypeType) Get

Get returns value and boolean that denotes whether value was set.

func (OptDocReqsRequirementTypeType) IsSet

IsSet returns true if OptDocReqsRequirementTypeType was set.

func (OptDocReqsRequirementTypeType) MarshalJSON

func (s OptDocReqsRequirementTypeType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDocReqsRequirementTypeType) Or

Or returns value if set, or given parameter if does not.

func (*OptDocReqsRequirementTypeType) Reset

func (o *OptDocReqsRequirementTypeType) Reset()

Reset unsets value.

func (*OptDocReqsRequirementTypeType) SetTo

SetTo sets value to v.

func (*OptDocReqsRequirementTypeType) UnmarshalJSON

func (s *OptDocReqsRequirementTypeType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDocReqsRequirementTypesSort

type OptDocReqsRequirementTypesSort struct {
	Value DocReqsRequirementTypesSort
	Set   bool
}

OptDocReqsRequirementTypesSort is optional DocReqsRequirementTypesSort.

func NewOptDocReqsRequirementTypesSort

func NewOptDocReqsRequirementTypesSort(v DocReqsRequirementTypesSort) OptDocReqsRequirementTypesSort

NewOptDocReqsRequirementTypesSort returns new OptDocReqsRequirementTypesSort with value set to v.

func (OptDocReqsRequirementTypesSort) Get

Get returns value and boolean that denotes whether value was set.

func (OptDocReqsRequirementTypesSort) IsSet

IsSet returns true if OptDocReqsRequirementTypesSort was set.

func (OptDocReqsRequirementTypesSort) Or

Or returns value if set, or given parameter if does not.

func (*OptDocReqsRequirementTypesSort) Reset

func (o *OptDocReqsRequirementTypesSort) Reset()

Reset unsets value.

func (*OptDocReqsRequirementTypesSort) SetTo

SetTo sets value to v.

type OptDocReqsRequirementsSort

type OptDocReqsRequirementsSort struct {
	Value DocReqsRequirementsSort
	Set   bool
}

OptDocReqsRequirementsSort is optional DocReqsRequirementsSort.

func NewOptDocReqsRequirementsSort

func NewOptDocReqsRequirementsSort(v DocReqsRequirementsSort) OptDocReqsRequirementsSort

NewOptDocReqsRequirementsSort returns new OptDocReqsRequirementsSort with value set to v.

func (OptDocReqsRequirementsSort) Get

Get returns value and boolean that denotes whether value was set.

func (OptDocReqsRequirementsSort) IsSet

func (o OptDocReqsRequirementsSort) IsSet() bool

IsSet returns true if OptDocReqsRequirementsSort was set.

func (OptDocReqsRequirementsSort) Or

Or returns value if set, or given parameter if does not.

func (*OptDocReqsRequirementsSort) Reset

func (o *OptDocReqsRequirementsSort) Reset()

Reset unsets value.

func (*OptDocReqsRequirementsSort) SetTo

SetTo sets value to v.

type OptDtmfType

type OptDtmfType struct {
	Value DtmfType
	Set   bool
}

OptDtmfType is optional DtmfType.

func NewOptDtmfType

func NewOptDtmfType(v DtmfType) OptDtmfType

NewOptDtmfType returns new OptDtmfType with value set to v.

func (*OptDtmfType) Decode

func (o *OptDtmfType) Decode(d *jx.Decoder) error

Decode decodes DtmfType from json.

func (OptDtmfType) Encode

func (o OptDtmfType) Encode(e *jx.Encoder)

Encode encodes DtmfType as json.

func (OptDtmfType) Get

func (o OptDtmfType) Get() (v DtmfType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDtmfType) IsSet

func (o OptDtmfType) IsSet() bool

IsSet returns true if OptDtmfType was set.

func (OptDtmfType) MarshalJSON

func (s OptDtmfType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDtmfType) Or

func (o OptDtmfType) Or(d DtmfType) DtmfType

Or returns value if set, or given parameter if does not.

func (*OptDtmfType) Reset

func (o *OptDtmfType) Reset()

Reset unsets value.

func (*OptDtmfType) SetTo

func (o *OptDtmfType) SetTo(v DtmfType)

SetTo sets value to v.

func (*OptDtmfType) UnmarshalJSON

func (s *OptDtmfType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEmergencySettings

type OptEmergencySettings struct {
	Value EmergencySettings
	Set   bool
}

OptEmergencySettings is optional EmergencySettings.

func NewOptEmergencySettings

func NewOptEmergencySettings(v EmergencySettings) OptEmergencySettings

NewOptEmergencySettings returns new OptEmergencySettings with value set to v.

func (*OptEmergencySettings) Decode

func (o *OptEmergencySettings) Decode(d *jx.Decoder) error

Decode decodes EmergencySettings from json.

func (OptEmergencySettings) Encode

func (o OptEmergencySettings) Encode(e *jx.Encoder)

Encode encodes EmergencySettings as json.

func (OptEmergencySettings) Get

Get returns value and boolean that denotes whether value was set.

func (OptEmergencySettings) IsSet

func (o OptEmergencySettings) IsSet() bool

IsSet returns true if OptEmergencySettings was set.

func (OptEmergencySettings) MarshalJSON

func (s OptEmergencySettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEmergencySettings) Or

Or returns value if set, or given parameter if does not.

func (*OptEmergencySettings) Reset

func (o *OptEmergencySettings) Reset()

Reset unsets value.

func (*OptEmergencySettings) SetTo

SetTo sets value to v.

func (*OptEmergencySettings) UnmarshalJSON

func (s *OptEmergencySettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEmergencySettingsEmergencyStatus

type OptEmergencySettingsEmergencyStatus struct {
	Value EmergencySettingsEmergencyStatus
	Set   bool
}

OptEmergencySettingsEmergencyStatus is optional EmergencySettingsEmergencyStatus.

func NewOptEmergencySettingsEmergencyStatus

func NewOptEmergencySettingsEmergencyStatus(v EmergencySettingsEmergencyStatus) OptEmergencySettingsEmergencyStatus

NewOptEmergencySettingsEmergencyStatus returns new OptEmergencySettingsEmergencyStatus with value set to v.

func (*OptEmergencySettingsEmergencyStatus) Decode

Decode decodes EmergencySettingsEmergencyStatus from json.

func (OptEmergencySettingsEmergencyStatus) Encode

Encode encodes EmergencySettingsEmergencyStatus as json.

func (OptEmergencySettingsEmergencyStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptEmergencySettingsEmergencyStatus) IsSet

IsSet returns true if OptEmergencySettingsEmergencyStatus was set.

func (OptEmergencySettingsEmergencyStatus) MarshalJSON

func (s OptEmergencySettingsEmergencyStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEmergencySettingsEmergencyStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptEmergencySettingsEmergencyStatus) Reset

Reset unsets value.

func (*OptEmergencySettingsEmergencyStatus) SetTo

SetTo sets value to v.

func (*OptEmergencySettingsEmergencyStatus) UnmarshalJSON

func (s *OptEmergencySettingsEmergencyStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptErrorMeta

type OptErrorMeta struct {
	Value ErrorMeta
	Set   bool
}

OptErrorMeta is optional ErrorMeta.

func NewOptErrorMeta

func NewOptErrorMeta(v ErrorMeta) OptErrorMeta

NewOptErrorMeta returns new OptErrorMeta with value set to v.

func (*OptErrorMeta) Decode

func (o *OptErrorMeta) Decode(d *jx.Decoder) error

Decode decodes ErrorMeta from json.

func (OptErrorMeta) Encode

func (o OptErrorMeta) Encode(e *jx.Encoder)

Encode encodes ErrorMeta as json.

func (OptErrorMeta) Get

func (o OptErrorMeta) Get() (v ErrorMeta, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptErrorMeta) IsSet

func (o OptErrorMeta) IsSet() bool

IsSet returns true if OptErrorMeta was set.

func (OptErrorMeta) MarshalJSON

func (s OptErrorMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptErrorMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptErrorMeta) Reset

func (o *OptErrorMeta) Reset()

Reset unsets value.

func (*OptErrorMeta) SetTo

func (o *OptErrorMeta) SetTo(v ErrorMeta)

SetTo sets value to v.

func (*OptErrorMeta) UnmarshalJSON

func (s *OptErrorMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptErrorSource

type OptErrorSource struct {
	Value ErrorSource
	Set   bool
}

OptErrorSource is optional ErrorSource.

func NewOptErrorSource

func NewOptErrorSource(v ErrorSource) OptErrorSource

NewOptErrorSource returns new OptErrorSource with value set to v.

func (*OptErrorSource) Decode

func (o *OptErrorSource) Decode(d *jx.Decoder) error

Decode decodes ErrorSource from json.

func (OptErrorSource) Encode

func (o OptErrorSource) Encode(e *jx.Encoder)

Encode encodes ErrorSource as json.

func (OptErrorSource) Get

func (o OptErrorSource) Get() (v ErrorSource, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptErrorSource) IsSet

func (o OptErrorSource) IsSet() bool

IsSet returns true if OptErrorSource was set.

func (OptErrorSource) MarshalJSON

func (s OptErrorSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptErrorSource) Or

Or returns value if set, or given parameter if does not.

func (*OptErrorSource) Reset

func (o *OptErrorSource) Reset()

Reset unsets value.

func (*OptErrorSource) SetTo

func (o *OptErrorSource) SetTo(v ErrorSource)

SetTo sets value to v.

func (*OptErrorSource) UnmarshalJSON

func (s *OptErrorSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptExternalConnectionPhoneNumber

type OptExternalConnectionPhoneNumber struct {
	Value ExternalConnectionPhoneNumber
	Set   bool
}

OptExternalConnectionPhoneNumber is optional ExternalConnectionPhoneNumber.

func NewOptExternalConnectionPhoneNumber

func NewOptExternalConnectionPhoneNumber(v ExternalConnectionPhoneNumber) OptExternalConnectionPhoneNumber

NewOptExternalConnectionPhoneNumber returns new OptExternalConnectionPhoneNumber with value set to v.

func (*OptExternalConnectionPhoneNumber) Decode

Decode decodes ExternalConnectionPhoneNumber from json.

func (OptExternalConnectionPhoneNumber) Encode

Encode encodes ExternalConnectionPhoneNumber as json.

func (OptExternalConnectionPhoneNumber) Get

Get returns value and boolean that denotes whether value was set.

func (OptExternalConnectionPhoneNumber) IsSet

IsSet returns true if OptExternalConnectionPhoneNumber was set.

func (OptExternalConnectionPhoneNumber) MarshalJSON

func (s OptExternalConnectionPhoneNumber) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptExternalConnectionPhoneNumber) Or

Or returns value if set, or given parameter if does not.

func (*OptExternalConnectionPhoneNumber) Reset

Reset unsets value.

func (*OptExternalConnectionPhoneNumber) SetTo

SetTo sets value to v.

func (*OptExternalConnectionPhoneNumber) UnmarshalJSON

func (s *OptExternalConnectionPhoneNumber) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFilterBasicStatusLifecycle

type OptFilterBasicStatusLifecycle struct {
	Value FilterBasicStatusLifecycle
	Set   bool
}

OptFilterBasicStatusLifecycle is optional FilterBasicStatusLifecycle.

func NewOptFilterBasicStatusLifecycle

func NewOptFilterBasicStatusLifecycle(v FilterBasicStatusLifecycle) OptFilterBasicStatusLifecycle

NewOptFilterBasicStatusLifecycle returns new OptFilterBasicStatusLifecycle with value set to v.

func (OptFilterBasicStatusLifecycle) Get

Get returns value and boolean that denotes whether value was set.

func (OptFilterBasicStatusLifecycle) IsSet

IsSet returns true if OptFilterBasicStatusLifecycle was set.

func (OptFilterBasicStatusLifecycle) Or

Or returns value if set, or given parameter if does not.

func (*OptFilterBasicStatusLifecycle) Reset

func (o *OptFilterBasicStatusLifecycle) Reset()

Reset unsets value.

func (*OptFilterBasicStatusLifecycle) SetTo

SetTo sets value to v.

type OptFilterByPortingOrderStatus

type OptFilterByPortingOrderStatus struct {
	Value FilterByPortingOrderStatus
	Set   bool
}

OptFilterByPortingOrderStatus is optional FilterByPortingOrderStatus.

func NewOptFilterByPortingOrderStatus

func NewOptFilterByPortingOrderStatus(v FilterByPortingOrderStatus) OptFilterByPortingOrderStatus

NewOptFilterByPortingOrderStatus returns new OptFilterByPortingOrderStatus with value set to v.

func (OptFilterByPortingOrderStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptFilterByPortingOrderStatus) IsSet

IsSet returns true if OptFilterByPortingOrderStatus was set.

func (OptFilterByPortingOrderStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptFilterByPortingOrderStatus) Reset

func (o *OptFilterByPortingOrderStatus) Reset()

Reset unsets value.

func (*OptFilterByPortingOrderStatus) SetTo

SetTo sets value to v.

type OptFilterByPortingOrderStatusIn

type OptFilterByPortingOrderStatusIn struct {
	Value FilterByPortingOrderStatusIn
	Set   bool
}

OptFilterByPortingOrderStatusIn is optional FilterByPortingOrderStatusIn.

func NewOptFilterByPortingOrderStatusIn

func NewOptFilterByPortingOrderStatusIn(v FilterByPortingOrderStatusIn) OptFilterByPortingOrderStatusIn

NewOptFilterByPortingOrderStatusIn returns new OptFilterByPortingOrderStatusIn with value set to v.

func (OptFilterByPortingOrderStatusIn) Get

Get returns value and boolean that denotes whether value was set.

func (OptFilterByPortingOrderStatusIn) IsSet

IsSet returns true if OptFilterByPortingOrderStatusIn was set.

func (OptFilterByPortingOrderStatusIn) Or

Or returns value if set, or given parameter if does not.

func (*OptFilterByPortingOrderStatusIn) Reset

Reset unsets value.

func (*OptFilterByPortingOrderStatusIn) SetTo

SetTo sets value to v.

type OptFirstCommandTimeout

type OptFirstCommandTimeout struct {
	Value FirstCommandTimeout
	Set   bool
}

OptFirstCommandTimeout is optional FirstCommandTimeout.

func NewOptFirstCommandTimeout

func NewOptFirstCommandTimeout(v FirstCommandTimeout) OptFirstCommandTimeout

NewOptFirstCommandTimeout returns new OptFirstCommandTimeout with value set to v.

func (*OptFirstCommandTimeout) Decode

func (o *OptFirstCommandTimeout) Decode(d *jx.Decoder) error

Decode decodes FirstCommandTimeout from json.

func (OptFirstCommandTimeout) Encode

func (o OptFirstCommandTimeout) Encode(e *jx.Encoder)

Encode encodes FirstCommandTimeout as json.

func (OptFirstCommandTimeout) Get

Get returns value and boolean that denotes whether value was set.

func (OptFirstCommandTimeout) IsSet

func (o OptFirstCommandTimeout) IsSet() bool

IsSet returns true if OptFirstCommandTimeout was set.

func (OptFirstCommandTimeout) MarshalJSON

func (s OptFirstCommandTimeout) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFirstCommandTimeout) Or

Or returns value if set, or given parameter if does not.

func (*OptFirstCommandTimeout) Reset

func (o *OptFirstCommandTimeout) Reset()

Reset unsets value.

func (*OptFirstCommandTimeout) SetTo

SetTo sets value to v.

func (*OptFirstCommandTimeout) UnmarshalJSON

func (s *OptFirstCommandTimeout) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFirstCommandTimeoutSecs

type OptFirstCommandTimeoutSecs struct {
	Value FirstCommandTimeoutSecs
	Set   bool
}

OptFirstCommandTimeoutSecs is optional FirstCommandTimeoutSecs.

func NewOptFirstCommandTimeoutSecs

func NewOptFirstCommandTimeoutSecs(v FirstCommandTimeoutSecs) OptFirstCommandTimeoutSecs

NewOptFirstCommandTimeoutSecs returns new OptFirstCommandTimeoutSecs with value set to v.

func (*OptFirstCommandTimeoutSecs) Decode

Decode decodes FirstCommandTimeoutSecs from json.

func (OptFirstCommandTimeoutSecs) Encode

func (o OptFirstCommandTimeoutSecs) Encode(e *jx.Encoder)

Encode encodes FirstCommandTimeoutSecs as json.

func (OptFirstCommandTimeoutSecs) Get

Get returns value and boolean that denotes whether value was set.

func (OptFirstCommandTimeoutSecs) IsSet

func (o OptFirstCommandTimeoutSecs) IsSet() bool

IsSet returns true if OptFirstCommandTimeoutSecs was set.

func (OptFirstCommandTimeoutSecs) MarshalJSON

func (s OptFirstCommandTimeoutSecs) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFirstCommandTimeoutSecs) Or

Or returns value if set, or given parameter if does not.

func (*OptFirstCommandTimeoutSecs) Reset

func (o *OptFirstCommandTimeoutSecs) Reset()

Reset unsets value.

func (*OptFirstCommandTimeoutSecs) SetTo

SetTo sets value to v.

func (*OptFirstCommandTimeoutSecs) UnmarshalJSON

func (s *OptFirstCommandTimeoutSecs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFloat32

type OptFloat32 struct {
	Value float32
	Set   bool
}

OptFloat32 is optional float32.

func NewOptFloat32

func NewOptFloat32(v float32) OptFloat32

NewOptFloat32 returns new OptFloat32 with value set to v.

func (*OptFloat32) Decode

func (o *OptFloat32) Decode(d *jx.Decoder) error

Decode decodes float32 from json.

func (OptFloat32) Encode

func (o OptFloat32) Encode(e *jx.Encoder)

Encode encodes float32 as json.

func (OptFloat32) Get

func (o OptFloat32) Get() (v float32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFloat32) IsSet

func (o OptFloat32) IsSet() bool

IsSet returns true if OptFloat32 was set.

func (OptFloat32) MarshalJSON

func (s OptFloat32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFloat32) Or

func (o OptFloat32) Or(d float32) float32

Or returns value if set, or given parameter if does not.

func (*OptFloat32) Reset

func (o *OptFloat32) Reset()

Reset unsets value.

func (*OptFloat32) SetTo

func (o *OptFloat32) SetTo(v float32)

SetTo sets value to v.

func (*OptFloat32) UnmarshalJSON

func (s *OptFloat32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFloat64

type OptFloat64 struct {
	Value float64
	Set   bool
}

OptFloat64 is optional float64.

func NewOptFloat64

func NewOptFloat64(v float64) OptFloat64

NewOptFloat64 returns new OptFloat64 with value set to v.

func (*OptFloat64) Decode

func (o *OptFloat64) Decode(d *jx.Decoder) error

Decode decodes float64 from json.

func (OptFloat64) Encode

func (o OptFloat64) Encode(e *jx.Encoder)

Encode encodes float64 as json.

func (OptFloat64) Get

func (o OptFloat64) Get() (v float64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFloat64) IsSet

func (o OptFloat64) IsSet() bool

IsSet returns true if OptFloat64 was set.

func (OptFloat64) MarshalJSON

func (s OptFloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFloat64) Or

func (o OptFloat64) Or(d float64) float64

Or returns value if set, or given parameter if does not.

func (*OptFloat64) Reset

func (o *OptFloat64) Reset()

Reset unsets value.

func (*OptFloat64) SetTo

func (o *OptFloat64) SetTo(v float64)

SetTo sets value to v.

func (*OptFloat64) UnmarshalJSON

func (s *OptFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGatherUsingSpeakRequestLanguage

type OptGatherUsingSpeakRequestLanguage struct {
	Value GatherUsingSpeakRequestLanguage
	Set   bool
}

OptGatherUsingSpeakRequestLanguage is optional GatherUsingSpeakRequestLanguage.

func NewOptGatherUsingSpeakRequestLanguage

func NewOptGatherUsingSpeakRequestLanguage(v GatherUsingSpeakRequestLanguage) OptGatherUsingSpeakRequestLanguage

NewOptGatherUsingSpeakRequestLanguage returns new OptGatherUsingSpeakRequestLanguage with value set to v.

func (*OptGatherUsingSpeakRequestLanguage) Decode

Decode decodes GatherUsingSpeakRequestLanguage from json.

func (OptGatherUsingSpeakRequestLanguage) Encode

Encode encodes GatherUsingSpeakRequestLanguage as json.

func (OptGatherUsingSpeakRequestLanguage) Get

Get returns value and boolean that denotes whether value was set.

func (OptGatherUsingSpeakRequestLanguage) IsSet

IsSet returns true if OptGatherUsingSpeakRequestLanguage was set.

func (OptGatherUsingSpeakRequestLanguage) MarshalJSON

func (s OptGatherUsingSpeakRequestLanguage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGatherUsingSpeakRequestLanguage) Or

Or returns value if set, or given parameter if does not.

func (*OptGatherUsingSpeakRequestLanguage) Reset

Reset unsets value.

func (*OptGatherUsingSpeakRequestLanguage) SetTo

SetTo sets value to v.

func (*OptGatherUsingSpeakRequestLanguage) UnmarshalJSON

func (s *OptGatherUsingSpeakRequestLanguage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGatherUsingSpeakRequestPayloadType

type OptGatherUsingSpeakRequestPayloadType struct {
	Value GatherUsingSpeakRequestPayloadType
	Set   bool
}

OptGatherUsingSpeakRequestPayloadType is optional GatherUsingSpeakRequestPayloadType.

func NewOptGatherUsingSpeakRequestPayloadType

func NewOptGatherUsingSpeakRequestPayloadType(v GatherUsingSpeakRequestPayloadType) OptGatherUsingSpeakRequestPayloadType

NewOptGatherUsingSpeakRequestPayloadType returns new OptGatherUsingSpeakRequestPayloadType with value set to v.

func (*OptGatherUsingSpeakRequestPayloadType) Decode

Decode decodes GatherUsingSpeakRequestPayloadType from json.

func (OptGatherUsingSpeakRequestPayloadType) Encode

Encode encodes GatherUsingSpeakRequestPayloadType as json.

func (OptGatherUsingSpeakRequestPayloadType) Get

Get returns value and boolean that denotes whether value was set.

func (OptGatherUsingSpeakRequestPayloadType) IsSet

IsSet returns true if OptGatherUsingSpeakRequestPayloadType was set.

func (OptGatherUsingSpeakRequestPayloadType) MarshalJSON

func (s OptGatherUsingSpeakRequestPayloadType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGatherUsingSpeakRequestPayloadType) Or

Or returns value if set, or given parameter if does not.

func (*OptGatherUsingSpeakRequestPayloadType) Reset

Reset unsets value.

func (*OptGatherUsingSpeakRequestPayloadType) SetTo

SetTo sets value to v.

func (*OptGatherUsingSpeakRequestPayloadType) UnmarshalJSON

func (s *OptGatherUsingSpeakRequestPayloadType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGatherUsingSpeakRequestServiceLevel

type OptGatherUsingSpeakRequestServiceLevel struct {
	Value GatherUsingSpeakRequestServiceLevel
	Set   bool
}

OptGatherUsingSpeakRequestServiceLevel is optional GatherUsingSpeakRequestServiceLevel.

func NewOptGatherUsingSpeakRequestServiceLevel

func NewOptGatherUsingSpeakRequestServiceLevel(v GatherUsingSpeakRequestServiceLevel) OptGatherUsingSpeakRequestServiceLevel

NewOptGatherUsingSpeakRequestServiceLevel returns new OptGatherUsingSpeakRequestServiceLevel with value set to v.

func (*OptGatherUsingSpeakRequestServiceLevel) Decode

Decode decodes GatherUsingSpeakRequestServiceLevel from json.

func (OptGatherUsingSpeakRequestServiceLevel) Encode

Encode encodes GatherUsingSpeakRequestServiceLevel as json.

func (OptGatherUsingSpeakRequestServiceLevel) Get

Get returns value and boolean that denotes whether value was set.

func (OptGatherUsingSpeakRequestServiceLevel) IsSet

IsSet returns true if OptGatherUsingSpeakRequestServiceLevel was set.

func (OptGatherUsingSpeakRequestServiceLevel) MarshalJSON

func (s OptGatherUsingSpeakRequestServiceLevel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGatherUsingSpeakRequestServiceLevel) Or

Or returns value if set, or given parameter if does not.

func (*OptGatherUsingSpeakRequestServiceLevel) Reset

Reset unsets value.

func (*OptGatherUsingSpeakRequestServiceLevel) SetTo

SetTo sets value to v.

func (*OptGatherUsingSpeakRequestServiceLevel) UnmarshalJSON

func (s *OptGatherUsingSpeakRequestServiceLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGetSubRequestByPortingOrder

type OptGetSubRequestByPortingOrder struct {
	Value GetSubRequestByPortingOrder
	Set   bool
}

OptGetSubRequestByPortingOrder is optional GetSubRequestByPortingOrder.

func NewOptGetSubRequestByPortingOrder

func NewOptGetSubRequestByPortingOrder(v GetSubRequestByPortingOrder) OptGetSubRequestByPortingOrder

NewOptGetSubRequestByPortingOrder returns new OptGetSubRequestByPortingOrder with value set to v.

func (*OptGetSubRequestByPortingOrder) Decode

Decode decodes GetSubRequestByPortingOrder from json.

func (OptGetSubRequestByPortingOrder) Encode

Encode encodes GetSubRequestByPortingOrder as json.

func (OptGetSubRequestByPortingOrder) Get

Get returns value and boolean that denotes whether value was set.

func (OptGetSubRequestByPortingOrder) IsSet

IsSet returns true if OptGetSubRequestByPortingOrder was set.

func (OptGetSubRequestByPortingOrder) MarshalJSON

func (s OptGetSubRequestByPortingOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGetSubRequestByPortingOrder) Or

Or returns value if set, or given parameter if does not.

func (*OptGetSubRequestByPortingOrder) Reset

func (o *OptGetSubRequestByPortingOrder) Reset()

Reset unsets value.

func (*OptGetSubRequestByPortingOrder) SetTo

SetTo sets value to v.

func (*OptGetSubRequestByPortingOrder) UnmarshalJSON

func (s *OptGetSubRequestByPortingOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGetWebhookDeliveriesFilterStatusEq

type OptGetWebhookDeliveriesFilterStatusEq struct {
	Value GetWebhookDeliveriesFilterStatusEq
	Set   bool
}

OptGetWebhookDeliveriesFilterStatusEq is optional GetWebhookDeliveriesFilterStatusEq.

func NewOptGetWebhookDeliveriesFilterStatusEq

func NewOptGetWebhookDeliveriesFilterStatusEq(v GetWebhookDeliveriesFilterStatusEq) OptGetWebhookDeliveriesFilterStatusEq

NewOptGetWebhookDeliveriesFilterStatusEq returns new OptGetWebhookDeliveriesFilterStatusEq with value set to v.

func (OptGetWebhookDeliveriesFilterStatusEq) Get

Get returns value and boolean that denotes whether value was set.

func (OptGetWebhookDeliveriesFilterStatusEq) IsSet

IsSet returns true if OptGetWebhookDeliveriesFilterStatusEq was set.

func (OptGetWebhookDeliveriesFilterStatusEq) Or

Or returns value if set, or given parameter if does not.

func (*OptGetWebhookDeliveriesFilterStatusEq) Reset

Reset unsets value.

func (*OptGetWebhookDeliveriesFilterStatusEq) SetTo

SetTo sets value to v.

type OptHTTP

type OptHTTP struct {
	Value HTTP
	Set   bool
}

OptHTTP is optional HTTP.

func NewOptHTTP

func NewOptHTTP(v HTTP) OptHTTP

NewOptHTTP returns new OptHTTP with value set to v.

func (*OptHTTP) Decode

func (o *OptHTTP) Decode(d *jx.Decoder) error

Decode decodes HTTP from json.

func (OptHTTP) Encode

func (o OptHTTP) Encode(e *jx.Encoder)

Encode encodes HTTP as json.

func (OptHTTP) Get

func (o OptHTTP) Get() (v HTTP, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptHTTP) IsSet

func (o OptHTTP) IsSet() bool

IsSet returns true if OptHTTP was set.

func (OptHTTP) MarshalJSON

func (s OptHTTP) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptHTTP) Or

func (o OptHTTP) Or(d HTTP) HTTP

Or returns value if set, or given parameter if does not.

func (*OptHTTP) Reset

func (o *OptHTTP) Reset()

Reset unsets value.

func (*OptHTTP) SetTo

func (o *OptHTTP) SetTo(v HTTP)

SetTo sets value to v.

func (*OptHTTP) UnmarshalJSON

func (s *OptHTTP) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptHTTPRequest

type OptHTTPRequest struct {
	Value HTTPRequest
	Set   bool
}

OptHTTPRequest is optional HTTPRequest.

func NewOptHTTPRequest

func NewOptHTTPRequest(v HTTPRequest) OptHTTPRequest

NewOptHTTPRequest returns new OptHTTPRequest with value set to v.

func (*OptHTTPRequest) Decode

func (o *OptHTTPRequest) Decode(d *jx.Decoder) error

Decode decodes HTTPRequest from json.

func (OptHTTPRequest) Encode

func (o OptHTTPRequest) Encode(e *jx.Encoder)

Encode encodes HTTPRequest as json.

func (OptHTTPRequest) Get

func (o OptHTTPRequest) Get() (v HTTPRequest, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptHTTPRequest) IsSet

func (o OptHTTPRequest) IsSet() bool

IsSet returns true if OptHTTPRequest was set.

func (OptHTTPRequest) MarshalJSON

func (s OptHTTPRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptHTTPRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptHTTPRequest) Reset

func (o *OptHTTPRequest) Reset()

Reset unsets value.

func (*OptHTTPRequest) SetTo

func (o *OptHTTPRequest) SetTo(v HTTPRequest)

SetTo sets value to v.

func (*OptHTTPRequest) UnmarshalJSON

func (s *OptHTTPRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptHostedNumberStatus

type OptHostedNumberStatus struct {
	Value HostedNumberStatus
	Set   bool
}

OptHostedNumberStatus is optional HostedNumberStatus.

func NewOptHostedNumberStatus

func NewOptHostedNumberStatus(v HostedNumberStatus) OptHostedNumberStatus

NewOptHostedNumberStatus returns new OptHostedNumberStatus with value set to v.

func (*OptHostedNumberStatus) Decode

func (o *OptHostedNumberStatus) Decode(d *jx.Decoder) error

Decode decodes HostedNumberStatus from json.

func (OptHostedNumberStatus) Encode

func (o OptHostedNumberStatus) Encode(e *jx.Encoder)

Encode encodes HostedNumberStatus as json.

func (OptHostedNumberStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptHostedNumberStatus) IsSet

func (o OptHostedNumberStatus) IsSet() bool

IsSet returns true if OptHostedNumberStatus was set.

func (OptHostedNumberStatus) MarshalJSON

func (s OptHostedNumberStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptHostedNumberStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptHostedNumberStatus) Reset

func (o *OptHostedNumberStatus) Reset()

Reset unsets value.

func (*OptHostedNumberStatus) SetTo

SetTo sets value to v.

func (*OptHostedNumberStatus) UnmarshalJSON

func (s *OptHostedNumberStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInitiateCallRequestAsyncAmdStatusCallbackMethod

type OptInitiateCallRequestAsyncAmdStatusCallbackMethod struct {
	Value InitiateCallRequestAsyncAmdStatusCallbackMethod
	Set   bool
}

OptInitiateCallRequestAsyncAmdStatusCallbackMethod is optional InitiateCallRequestAsyncAmdStatusCallbackMethod.

func NewOptInitiateCallRequestAsyncAmdStatusCallbackMethod

func NewOptInitiateCallRequestAsyncAmdStatusCallbackMethod(v InitiateCallRequestAsyncAmdStatusCallbackMethod) OptInitiateCallRequestAsyncAmdStatusCallbackMethod

NewOptInitiateCallRequestAsyncAmdStatusCallbackMethod returns new OptInitiateCallRequestAsyncAmdStatusCallbackMethod with value set to v.

func (*OptInitiateCallRequestAsyncAmdStatusCallbackMethod) Decode

Decode decodes InitiateCallRequestAsyncAmdStatusCallbackMethod from json.

func (OptInitiateCallRequestAsyncAmdStatusCallbackMethod) Encode

Encode encodes InitiateCallRequestAsyncAmdStatusCallbackMethod as json.

func (OptInitiateCallRequestAsyncAmdStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptInitiateCallRequestAsyncAmdStatusCallbackMethod) IsSet

IsSet returns true if OptInitiateCallRequestAsyncAmdStatusCallbackMethod was set.

func (OptInitiateCallRequestAsyncAmdStatusCallbackMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptInitiateCallRequestAsyncAmdStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptInitiateCallRequestAsyncAmdStatusCallbackMethod) Reset

Reset unsets value.

func (*OptInitiateCallRequestAsyncAmdStatusCallbackMethod) SetTo

SetTo sets value to v.

func (*OptInitiateCallRequestAsyncAmdStatusCallbackMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInitiateCallRequestDetectionMode

type OptInitiateCallRequestDetectionMode struct {
	Value InitiateCallRequestDetectionMode
	Set   bool
}

OptInitiateCallRequestDetectionMode is optional InitiateCallRequestDetectionMode.

func NewOptInitiateCallRequestDetectionMode

func NewOptInitiateCallRequestDetectionMode(v InitiateCallRequestDetectionMode) OptInitiateCallRequestDetectionMode

NewOptInitiateCallRequestDetectionMode returns new OptInitiateCallRequestDetectionMode with value set to v.

func (*OptInitiateCallRequestDetectionMode) Decode

Decode decodes InitiateCallRequestDetectionMode from json.

func (OptInitiateCallRequestDetectionMode) Encode

Encode encodes InitiateCallRequestDetectionMode as json.

func (OptInitiateCallRequestDetectionMode) Get

Get returns value and boolean that denotes whether value was set.

func (OptInitiateCallRequestDetectionMode) IsSet

IsSet returns true if OptInitiateCallRequestDetectionMode was set.

func (OptInitiateCallRequestDetectionMode) MarshalJSON

func (s OptInitiateCallRequestDetectionMode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInitiateCallRequestDetectionMode) Or

Or returns value if set, or given parameter if does not.

func (*OptInitiateCallRequestDetectionMode) Reset

Reset unsets value.

func (*OptInitiateCallRequestDetectionMode) SetTo

SetTo sets value to v.

func (*OptInitiateCallRequestDetectionMode) UnmarshalJSON

func (s *OptInitiateCallRequestDetectionMode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInitiateCallRequestMachineDetection

type OptInitiateCallRequestMachineDetection struct {
	Value InitiateCallRequestMachineDetection
	Set   bool
}

OptInitiateCallRequestMachineDetection is optional InitiateCallRequestMachineDetection.

func NewOptInitiateCallRequestMachineDetection

func NewOptInitiateCallRequestMachineDetection(v InitiateCallRequestMachineDetection) OptInitiateCallRequestMachineDetection

NewOptInitiateCallRequestMachineDetection returns new OptInitiateCallRequestMachineDetection with value set to v.

func (*OptInitiateCallRequestMachineDetection) Decode

Decode decodes InitiateCallRequestMachineDetection from json.

func (OptInitiateCallRequestMachineDetection) Encode

Encode encodes InitiateCallRequestMachineDetection as json.

func (OptInitiateCallRequestMachineDetection) Get

Get returns value and boolean that denotes whether value was set.

func (OptInitiateCallRequestMachineDetection) IsSet

IsSet returns true if OptInitiateCallRequestMachineDetection was set.

func (OptInitiateCallRequestMachineDetection) MarshalJSON

func (s OptInitiateCallRequestMachineDetection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInitiateCallRequestMachineDetection) Or

Or returns value if set, or given parameter if does not.

func (*OptInitiateCallRequestMachineDetection) Reset

Reset unsets value.

func (*OptInitiateCallRequestMachineDetection) SetTo

SetTo sets value to v.

func (*OptInitiateCallRequestMachineDetection) UnmarshalJSON

func (s *OptInitiateCallRequestMachineDetection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInitiateCallRequestRecordingChannels

type OptInitiateCallRequestRecordingChannels struct {
	Value InitiateCallRequestRecordingChannels
	Set   bool
}

OptInitiateCallRequestRecordingChannels is optional InitiateCallRequestRecordingChannels.

func NewOptInitiateCallRequestRecordingChannels

func NewOptInitiateCallRequestRecordingChannels(v InitiateCallRequestRecordingChannels) OptInitiateCallRequestRecordingChannels

NewOptInitiateCallRequestRecordingChannels returns new OptInitiateCallRequestRecordingChannels with value set to v.

func (*OptInitiateCallRequestRecordingChannels) Decode

Decode decodes InitiateCallRequestRecordingChannels from json.

func (OptInitiateCallRequestRecordingChannels) Encode

Encode encodes InitiateCallRequestRecordingChannels as json.

func (OptInitiateCallRequestRecordingChannels) Get

Get returns value and boolean that denotes whether value was set.

func (OptInitiateCallRequestRecordingChannels) IsSet

IsSet returns true if OptInitiateCallRequestRecordingChannels was set.

func (OptInitiateCallRequestRecordingChannels) MarshalJSON

func (s OptInitiateCallRequestRecordingChannels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInitiateCallRequestRecordingChannels) Or

Or returns value if set, or given parameter if does not.

func (*OptInitiateCallRequestRecordingChannels) Reset

Reset unsets value.

func (*OptInitiateCallRequestRecordingChannels) SetTo

SetTo sets value to v.

func (*OptInitiateCallRequestRecordingChannels) UnmarshalJSON

func (s *OptInitiateCallRequestRecordingChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInitiateCallRequestRecordingStatusCallbackMethod

type OptInitiateCallRequestRecordingStatusCallbackMethod struct {
	Value InitiateCallRequestRecordingStatusCallbackMethod
	Set   bool
}

OptInitiateCallRequestRecordingStatusCallbackMethod is optional InitiateCallRequestRecordingStatusCallbackMethod.

func NewOptInitiateCallRequestRecordingStatusCallbackMethod

func NewOptInitiateCallRequestRecordingStatusCallbackMethod(v InitiateCallRequestRecordingStatusCallbackMethod) OptInitiateCallRequestRecordingStatusCallbackMethod

NewOptInitiateCallRequestRecordingStatusCallbackMethod returns new OptInitiateCallRequestRecordingStatusCallbackMethod with value set to v.

func (*OptInitiateCallRequestRecordingStatusCallbackMethod) Decode

Decode decodes InitiateCallRequestRecordingStatusCallbackMethod from json.

func (OptInitiateCallRequestRecordingStatusCallbackMethod) Encode

Encode encodes InitiateCallRequestRecordingStatusCallbackMethod as json.

func (OptInitiateCallRequestRecordingStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptInitiateCallRequestRecordingStatusCallbackMethod) IsSet

IsSet returns true if OptInitiateCallRequestRecordingStatusCallbackMethod was set.

func (OptInitiateCallRequestRecordingStatusCallbackMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptInitiateCallRequestRecordingStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptInitiateCallRequestRecordingStatusCallbackMethod) Reset

Reset unsets value.

func (*OptInitiateCallRequestRecordingStatusCallbackMethod) SetTo

SetTo sets value to v.

func (*OptInitiateCallRequestRecordingStatusCallbackMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInitiateCallRequestRecordingTrack

type OptInitiateCallRequestRecordingTrack struct {
	Value InitiateCallRequestRecordingTrack
	Set   bool
}

OptInitiateCallRequestRecordingTrack is optional InitiateCallRequestRecordingTrack.

func NewOptInitiateCallRequestRecordingTrack

func NewOptInitiateCallRequestRecordingTrack(v InitiateCallRequestRecordingTrack) OptInitiateCallRequestRecordingTrack

NewOptInitiateCallRequestRecordingTrack returns new OptInitiateCallRequestRecordingTrack with value set to v.

func (*OptInitiateCallRequestRecordingTrack) Decode

Decode decodes InitiateCallRequestRecordingTrack from json.

func (OptInitiateCallRequestRecordingTrack) Encode

Encode encodes InitiateCallRequestRecordingTrack as json.

func (OptInitiateCallRequestRecordingTrack) Get

Get returns value and boolean that denotes whether value was set.

func (OptInitiateCallRequestRecordingTrack) IsSet

IsSet returns true if OptInitiateCallRequestRecordingTrack was set.

func (OptInitiateCallRequestRecordingTrack) MarshalJSON

func (s OptInitiateCallRequestRecordingTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInitiateCallRequestRecordingTrack) Or

Or returns value if set, or given parameter if does not.

func (*OptInitiateCallRequestRecordingTrack) Reset

Reset unsets value.

func (*OptInitiateCallRequestRecordingTrack) SetTo

SetTo sets value to v.

func (*OptInitiateCallRequestRecordingTrack) UnmarshalJSON

func (s *OptInitiateCallRequestRecordingTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInitiateCallRequestStatusCallbackEvent

type OptInitiateCallRequestStatusCallbackEvent struct {
	Value InitiateCallRequestStatusCallbackEvent
	Set   bool
}

OptInitiateCallRequestStatusCallbackEvent is optional InitiateCallRequestStatusCallbackEvent.

func NewOptInitiateCallRequestStatusCallbackEvent

func NewOptInitiateCallRequestStatusCallbackEvent(v InitiateCallRequestStatusCallbackEvent) OptInitiateCallRequestStatusCallbackEvent

NewOptInitiateCallRequestStatusCallbackEvent returns new OptInitiateCallRequestStatusCallbackEvent with value set to v.

func (*OptInitiateCallRequestStatusCallbackEvent) Decode

Decode decodes InitiateCallRequestStatusCallbackEvent from json.

func (OptInitiateCallRequestStatusCallbackEvent) Encode

Encode encodes InitiateCallRequestStatusCallbackEvent as json.

func (OptInitiateCallRequestStatusCallbackEvent) Get

Get returns value and boolean that denotes whether value was set.

func (OptInitiateCallRequestStatusCallbackEvent) IsSet

IsSet returns true if OptInitiateCallRequestStatusCallbackEvent was set.

func (OptInitiateCallRequestStatusCallbackEvent) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptInitiateCallRequestStatusCallbackEvent) Or

Or returns value if set, or given parameter if does not.

func (*OptInitiateCallRequestStatusCallbackEvent) Reset

Reset unsets value.

func (*OptInitiateCallRequestStatusCallbackEvent) SetTo

SetTo sets value to v.

func (*OptInitiateCallRequestStatusCallbackEvent) UnmarshalJSON

func (s *OptInitiateCallRequestStatusCallbackEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInitiateCallRequestStatusCallbackMethod

type OptInitiateCallRequestStatusCallbackMethod struct {
	Value InitiateCallRequestStatusCallbackMethod
	Set   bool
}

OptInitiateCallRequestStatusCallbackMethod is optional InitiateCallRequestStatusCallbackMethod.

func NewOptInitiateCallRequestStatusCallbackMethod

func NewOptInitiateCallRequestStatusCallbackMethod(v InitiateCallRequestStatusCallbackMethod) OptInitiateCallRequestStatusCallbackMethod

NewOptInitiateCallRequestStatusCallbackMethod returns new OptInitiateCallRequestStatusCallbackMethod with value set to v.

func (*OptInitiateCallRequestStatusCallbackMethod) Decode

Decode decodes InitiateCallRequestStatusCallbackMethod from json.

func (OptInitiateCallRequestStatusCallbackMethod) Encode

Encode encodes InitiateCallRequestStatusCallbackMethod as json.

func (OptInitiateCallRequestStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptInitiateCallRequestStatusCallbackMethod) IsSet

IsSet returns true if OptInitiateCallRequestStatusCallbackMethod was set.

func (OptInitiateCallRequestStatusCallbackMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptInitiateCallRequestStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptInitiateCallRequestStatusCallbackMethod) Reset

Reset unsets value.

func (*OptInitiateCallRequestStatusCallbackMethod) SetTo

SetTo sets value to v.

func (*OptInitiateCallRequestStatusCallbackMethod) UnmarshalJSON

func (s *OptInitiateCallRequestStatusCallbackMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInitiateCallRequestTrim

type OptInitiateCallRequestTrim struct {
	Value InitiateCallRequestTrim
	Set   bool
}

OptInitiateCallRequestTrim is optional InitiateCallRequestTrim.

func NewOptInitiateCallRequestTrim

func NewOptInitiateCallRequestTrim(v InitiateCallRequestTrim) OptInitiateCallRequestTrim

NewOptInitiateCallRequestTrim returns new OptInitiateCallRequestTrim with value set to v.

func (*OptInitiateCallRequestTrim) Decode

Decode decodes InitiateCallRequestTrim from json.

func (OptInitiateCallRequestTrim) Encode

func (o OptInitiateCallRequestTrim) Encode(e *jx.Encoder)

Encode encodes InitiateCallRequestTrim as json.

func (OptInitiateCallRequestTrim) Get

Get returns value and boolean that denotes whether value was set.

func (OptInitiateCallRequestTrim) IsSet

func (o OptInitiateCallRequestTrim) IsSet() bool

IsSet returns true if OptInitiateCallRequestTrim was set.

func (OptInitiateCallRequestTrim) MarshalJSON

func (s OptInitiateCallRequestTrim) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInitiateCallRequestTrim) Or

Or returns value if set, or given parameter if does not.

func (*OptInitiateCallRequestTrim) Reset

func (o *OptInitiateCallRequestTrim) Reset()

Reset unsets value.

func (*OptInitiateCallRequestTrim) SetTo

SetTo sets value to v.

func (*OptInitiateCallRequestTrim) UnmarshalJSON

func (s *OptInitiateCallRequestTrim) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInitiateCallRequestUrlMethod

type OptInitiateCallRequestUrlMethod struct {
	Value InitiateCallRequestUrlMethod
	Set   bool
}

OptInitiateCallRequestUrlMethod is optional InitiateCallRequestUrlMethod.

func NewOptInitiateCallRequestUrlMethod

func NewOptInitiateCallRequestUrlMethod(v InitiateCallRequestUrlMethod) OptInitiateCallRequestUrlMethod

NewOptInitiateCallRequestUrlMethod returns new OptInitiateCallRequestUrlMethod with value set to v.

func (*OptInitiateCallRequestUrlMethod) Decode

Decode decodes InitiateCallRequestUrlMethod from json.

func (OptInitiateCallRequestUrlMethod) Encode

Encode encodes InitiateCallRequestUrlMethod as json.

func (OptInitiateCallRequestUrlMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptInitiateCallRequestUrlMethod) IsSet

IsSet returns true if OptInitiateCallRequestUrlMethod was set.

func (OptInitiateCallRequestUrlMethod) MarshalJSON

func (s OptInitiateCallRequestUrlMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInitiateCallRequestUrlMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptInitiateCallRequestUrlMethod) Reset

Reset unsets value.

func (*OptInitiateCallRequestUrlMethod) SetTo

SetTo sets value to v.

func (*OptInitiateCallRequestUrlMethod) UnmarshalJSON

func (s *OptInitiateCallRequestUrlMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInitiateCallResult

type OptInitiateCallResult struct {
	Value InitiateCallResult
	Set   bool
}

OptInitiateCallResult is optional InitiateCallResult.

func NewOptInitiateCallResult

func NewOptInitiateCallResult(v InitiateCallResult) OptInitiateCallResult

NewOptInitiateCallResult returns new OptInitiateCallResult with value set to v.

func (*OptInitiateCallResult) Decode

func (o *OptInitiateCallResult) Decode(d *jx.Decoder) error

Decode decodes InitiateCallResult from json.

func (OptInitiateCallResult) Encode

func (o OptInitiateCallResult) Encode(e *jx.Encoder)

Encode encodes InitiateCallResult as json.

func (OptInitiateCallResult) Get

Get returns value and boolean that denotes whether value was set.

func (OptInitiateCallResult) IsSet

func (o OptInitiateCallResult) IsSet() bool

IsSet returns true if OptInitiateCallResult was set.

func (OptInitiateCallResult) MarshalJSON

func (s OptInitiateCallResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInitiateCallResult) Or

Or returns value if set, or given parameter if does not.

func (*OptInitiateCallResult) Reset

func (o *OptInitiateCallResult) Reset()

Reset unsets value.

func (*OptInitiateCallResult) SetTo

SetTo sets value to v.

func (*OptInitiateCallResult) UnmarshalJSON

func (s *OptInitiateCallResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt32

type OptInt32 struct {
	Value int32
	Set   bool
}

OptInt32 is optional int32.

func NewOptInt32

func NewOptInt32(v int32) OptInt32

NewOptInt32 returns new OptInt32 with value set to v.

func (*OptInt32) Decode

func (o *OptInt32) Decode(d *jx.Decoder) error

Decode decodes int32 from json.

func (OptInt32) Encode

func (o OptInt32) Encode(e *jx.Encoder)

Encode encodes int32 as json.

func (OptInt32) Get

func (o OptInt32) Get() (v int32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt32) IsSet

func (o OptInt32) IsSet() bool

IsSet returns true if OptInt32 was set.

func (OptInt32) MarshalJSON

func (s OptInt32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt32) Or

func (o OptInt32) Or(d int32) int32

Or returns value if set, or given parameter if does not.

func (*OptInt32) Reset

func (o *OptInt32) Reset()

Reset unsets value.

func (*OptInt32) SetTo

func (o *OptInt32) SetTo(v int32)

SetTo sets value to v.

func (*OptInt32) UnmarshalJSON

func (s *OptInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptIntId

type OptIntId struct {
	Value IntId
	Set   bool
}

OptIntId is optional IntId.

func NewOptIntId

func NewOptIntId(v IntId) OptIntId

NewOptIntId returns new OptIntId with value set to v.

func (*OptIntId) Decode

func (o *OptIntId) Decode(d *jx.Decoder) error

Decode decodes IntId from json.

func (OptIntId) Encode

func (o OptIntId) Encode(e *jx.Encoder)

Encode encodes IntId as json.

func (OptIntId) Get

func (o OptIntId) Get() (v IntId, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptIntId) IsSet

func (o OptIntId) IsSet() bool

IsSet returns true if OptIntId was set.

func (OptIntId) MarshalJSON

func (s OptIntId) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptIntId) Or

func (o OptIntId) Or(d IntId) IntId

Or returns value if set, or given parameter if does not.

func (*OptIntId) Reset

func (o *OptIntId) Reset()

Reset unsets value.

func (*OptIntId) SetTo

func (o *OptIntId) SetTo(v IntId)

SetTo sets value to v.

func (*OptIntId) UnmarshalJSON

func (s *OptIntId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInterfaceStatus

type OptInterfaceStatus struct {
	Value InterfaceStatus
	Set   bool
}

OptInterfaceStatus is optional InterfaceStatus.

func NewOptInterfaceStatus

func NewOptInterfaceStatus(v InterfaceStatus) OptInterfaceStatus

NewOptInterfaceStatus returns new OptInterfaceStatus with value set to v.

func (*OptInterfaceStatus) Decode

func (o *OptInterfaceStatus) Decode(d *jx.Decoder) error

Decode decodes InterfaceStatus from json.

func (OptInterfaceStatus) Encode

func (o OptInterfaceStatus) Encode(e *jx.Encoder)

Encode encodes InterfaceStatus as json.

func (OptInterfaceStatus) Get

func (o OptInterfaceStatus) Get() (v InterfaceStatus, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInterfaceStatus) IsSet

func (o OptInterfaceStatus) IsSet() bool

IsSet returns true if OptInterfaceStatus was set.

func (OptInterfaceStatus) MarshalJSON

func (s OptInterfaceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInterfaceStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptInterfaceStatus) Reset

func (o *OptInterfaceStatus) Reset()

Reset unsets value.

func (*OptInterfaceStatus) SetTo

func (o *OptInterfaceStatus) SetTo(v InterfaceStatus)

SetTo sets value to v.

func (*OptInterfaceStatus) UnmarshalJSON

func (s *OptInterfaceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptListAdditionalDocumentsFilterDocumentType

type OptListAdditionalDocumentsFilterDocumentType struct {
	Value ListAdditionalDocumentsFilterDocumentType
	Set   bool
}

OptListAdditionalDocumentsFilterDocumentType is optional ListAdditionalDocumentsFilterDocumentType.

func NewOptListAdditionalDocumentsFilterDocumentType

func NewOptListAdditionalDocumentsFilterDocumentType(v ListAdditionalDocumentsFilterDocumentType) OptListAdditionalDocumentsFilterDocumentType

NewOptListAdditionalDocumentsFilterDocumentType returns new OptListAdditionalDocumentsFilterDocumentType with value set to v.

func (OptListAdditionalDocumentsFilterDocumentType) Get

Get returns value and boolean that denotes whether value was set.

func (OptListAdditionalDocumentsFilterDocumentType) IsSet

IsSet returns true if OptListAdditionalDocumentsFilterDocumentType was set.

func (OptListAdditionalDocumentsFilterDocumentType) Or

Or returns value if set, or given parameter if does not.

func (*OptListAdditionalDocumentsFilterDocumentType) Reset

Reset unsets value.

func (*OptListAdditionalDocumentsFilterDocumentType) SetTo

SetTo sets value to v.

type OptListAdditionalDocumentsSort

type OptListAdditionalDocumentsSort struct {
	Value ListAdditionalDocumentsSort
	Set   bool
}

OptListAdditionalDocumentsSort is optional ListAdditionalDocumentsSort.

func NewOptListAdditionalDocumentsSort

func NewOptListAdditionalDocumentsSort(v ListAdditionalDocumentsSort) OptListAdditionalDocumentsSort

NewOptListAdditionalDocumentsSort returns new OptListAdditionalDocumentsSort with value set to v.

func (OptListAdditionalDocumentsSort) Get

Get returns value and boolean that denotes whether value was set.

func (OptListAdditionalDocumentsSort) IsSet

IsSet returns true if OptListAdditionalDocumentsSort was set.

func (OptListAdditionalDocumentsSort) Or

Or returns value if set, or given parameter if does not.

func (*OptListAdditionalDocumentsSort) Reset

func (o *OptListAdditionalDocumentsSort) Reset()

Reset unsets value.

func (*OptListAdditionalDocumentsSort) SetTo

SetTo sets value to v.

type OptListAvailablePhoneNumberBlocksFilterNumberType

type OptListAvailablePhoneNumberBlocksFilterNumberType struct {
	Value ListAvailablePhoneNumberBlocksFilterNumberType
	Set   bool
}

OptListAvailablePhoneNumberBlocksFilterNumberType is optional ListAvailablePhoneNumberBlocksFilterNumberType.

func NewOptListAvailablePhoneNumberBlocksFilterNumberType

func NewOptListAvailablePhoneNumberBlocksFilterNumberType(v ListAvailablePhoneNumberBlocksFilterNumberType) OptListAvailablePhoneNumberBlocksFilterNumberType

NewOptListAvailablePhoneNumberBlocksFilterNumberType returns new OptListAvailablePhoneNumberBlocksFilterNumberType with value set to v.

func (OptListAvailablePhoneNumberBlocksFilterNumberType) Get

Get returns value and boolean that denotes whether value was set.

func (OptListAvailablePhoneNumberBlocksFilterNumberType) IsSet

IsSet returns true if OptListAvailablePhoneNumberBlocksFilterNumberType was set.

func (OptListAvailablePhoneNumberBlocksFilterNumberType) Or

Or returns value if set, or given parameter if does not.

func (*OptListAvailablePhoneNumberBlocksFilterNumberType) Reset

Reset unsets value.

func (*OptListAvailablePhoneNumberBlocksFilterNumberType) SetTo

SetTo sets value to v.

type OptListAvailablePhoneNumbersFilterPhoneNumberType

type OptListAvailablePhoneNumbersFilterPhoneNumberType struct {
	Value ListAvailablePhoneNumbersFilterPhoneNumberType
	Set   bool
}

OptListAvailablePhoneNumbersFilterPhoneNumberType is optional ListAvailablePhoneNumbersFilterPhoneNumberType.

func NewOptListAvailablePhoneNumbersFilterPhoneNumberType

func NewOptListAvailablePhoneNumbersFilterPhoneNumberType(v ListAvailablePhoneNumbersFilterPhoneNumberType) OptListAvailablePhoneNumbersFilterPhoneNumberType

NewOptListAvailablePhoneNumbersFilterPhoneNumberType returns new OptListAvailablePhoneNumbersFilterPhoneNumberType with value set to v.

func (OptListAvailablePhoneNumbersFilterPhoneNumberType) Get

Get returns value and boolean that denotes whether value was set.

func (OptListAvailablePhoneNumbersFilterPhoneNumberType) IsSet

IsSet returns true if OptListAvailablePhoneNumbersFilterPhoneNumberType was set.

func (OptListAvailablePhoneNumbersFilterPhoneNumberType) Or

Or returns value if set, or given parameter if does not.

func (*OptListAvailablePhoneNumbersFilterPhoneNumberType) Reset

Reset unsets value.

func (*OptListAvailablePhoneNumbersFilterPhoneNumberType) SetTo

SetTo sets value to v.

type OptListInboundChannelsOKData

type OptListInboundChannelsOKData struct {
	Value ListInboundChannelsOKData
	Set   bool
}

OptListInboundChannelsOKData is optional ListInboundChannelsOKData.

func NewOptListInboundChannelsOKData

func NewOptListInboundChannelsOKData(v ListInboundChannelsOKData) OptListInboundChannelsOKData

NewOptListInboundChannelsOKData returns new OptListInboundChannelsOKData with value set to v.

func (*OptListInboundChannelsOKData) Decode

Decode decodes ListInboundChannelsOKData from json.

func (OptListInboundChannelsOKData) Encode

Encode encodes ListInboundChannelsOKData as json.

func (OptListInboundChannelsOKData) Get

Get returns value and boolean that denotes whether value was set.

func (OptListInboundChannelsOKData) IsSet

IsSet returns true if OptListInboundChannelsOKData was set.

func (OptListInboundChannelsOKData) MarshalJSON

func (s OptListInboundChannelsOKData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptListInboundChannelsOKData) Or

Or returns value if set, or given parameter if does not.

func (*OptListInboundChannelsOKData) Reset

func (o *OptListInboundChannelsOKData) Reset()

Reset unsets value.

func (*OptListInboundChannelsOKData) SetTo

SetTo sets value to v.

func (*OptListInboundChannelsOKData) UnmarshalJSON

func (s *OptListInboundChannelsOKData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptListOtaUpdatesFilterType

type OptListOtaUpdatesFilterType struct {
	Value ListOtaUpdatesFilterType
	Set   bool
}

OptListOtaUpdatesFilterType is optional ListOtaUpdatesFilterType.

func NewOptListOtaUpdatesFilterType

func NewOptListOtaUpdatesFilterType(v ListOtaUpdatesFilterType) OptListOtaUpdatesFilterType

NewOptListOtaUpdatesFilterType returns new OptListOtaUpdatesFilterType with value set to v.

func (OptListOtaUpdatesFilterType) Get

Get returns value and boolean that denotes whether value was set.

func (OptListOtaUpdatesFilterType) IsSet

IsSet returns true if OptListOtaUpdatesFilterType was set.

func (OptListOtaUpdatesFilterType) Or

Or returns value if set, or given parameter if does not.

func (*OptListOtaUpdatesFilterType) Reset

func (o *OptListOtaUpdatesFilterType) Reset()

Reset unsets value.

func (*OptListOtaUpdatesFilterType) SetTo

SetTo sets value to v.

type OptListPhoneNumberConfigurationsSort

type OptListPhoneNumberConfigurationsSort struct {
	Value ListPhoneNumberConfigurationsSort
	Set   bool
}

OptListPhoneNumberConfigurationsSort is optional ListPhoneNumberConfigurationsSort.

func NewOptListPhoneNumberConfigurationsSort

func NewOptListPhoneNumberConfigurationsSort(v ListPhoneNumberConfigurationsSort) OptListPhoneNumberConfigurationsSort

NewOptListPhoneNumberConfigurationsSort returns new OptListPhoneNumberConfigurationsSort with value set to v.

func (OptListPhoneNumberConfigurationsSort) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPhoneNumberConfigurationsSort) IsSet

IsSet returns true if OptListPhoneNumberConfigurationsSort was set.

func (OptListPhoneNumberConfigurationsSort) Or

Or returns value if set, or given parameter if does not.

func (*OptListPhoneNumberConfigurationsSort) Reset

Reset unsets value.

func (*OptListPhoneNumberConfigurationsSort) SetTo

SetTo sets value to v.

type OptListPhoneNumbersFilterStatus

type OptListPhoneNumbersFilterStatus struct {
	Value ListPhoneNumbersFilterStatus
	Set   bool
}

OptListPhoneNumbersFilterStatus is optional ListPhoneNumbersFilterStatus.

func NewOptListPhoneNumbersFilterStatus

func NewOptListPhoneNumbersFilterStatus(v ListPhoneNumbersFilterStatus) OptListPhoneNumbersFilterStatus

NewOptListPhoneNumbersFilterStatus returns new OptListPhoneNumbersFilterStatus with value set to v.

func (OptListPhoneNumbersFilterStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPhoneNumbersFilterStatus) IsSet

IsSet returns true if OptListPhoneNumbersFilterStatus was set.

func (OptListPhoneNumbersFilterStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptListPhoneNumbersFilterStatus) Reset

Reset unsets value.

func (*OptListPhoneNumbersFilterStatus) SetTo

SetTo sets value to v.

type OptListPhoneNumbersFilterVoiceUsagePaymentMethod

type OptListPhoneNumbersFilterVoiceUsagePaymentMethod struct {
	Value ListPhoneNumbersFilterVoiceUsagePaymentMethod
	Set   bool
}

OptListPhoneNumbersFilterVoiceUsagePaymentMethod is optional ListPhoneNumbersFilterVoiceUsagePaymentMethod.

func NewOptListPhoneNumbersFilterVoiceUsagePaymentMethod

func NewOptListPhoneNumbersFilterVoiceUsagePaymentMethod(v ListPhoneNumbersFilterVoiceUsagePaymentMethod) OptListPhoneNumbersFilterVoiceUsagePaymentMethod

NewOptListPhoneNumbersFilterVoiceUsagePaymentMethod returns new OptListPhoneNumbersFilterVoiceUsagePaymentMethod with value set to v.

func (OptListPhoneNumbersFilterVoiceUsagePaymentMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPhoneNumbersFilterVoiceUsagePaymentMethod) IsSet

IsSet returns true if OptListPhoneNumbersFilterVoiceUsagePaymentMethod was set.

func (OptListPhoneNumbersFilterVoiceUsagePaymentMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptListPhoneNumbersFilterVoiceUsagePaymentMethod) Reset

Reset unsets value.

func (*OptListPhoneNumbersFilterVoiceUsagePaymentMethod) SetTo

SetTo sets value to v.

type OptListPhoneNumbersJobsFilterType

type OptListPhoneNumbersJobsFilterType struct {
	Value ListPhoneNumbersJobsFilterType
	Set   bool
}

OptListPhoneNumbersJobsFilterType is optional ListPhoneNumbersJobsFilterType.

func NewOptListPhoneNumbersJobsFilterType

func NewOptListPhoneNumbersJobsFilterType(v ListPhoneNumbersJobsFilterType) OptListPhoneNumbersJobsFilterType

NewOptListPhoneNumbersJobsFilterType returns new OptListPhoneNumbersJobsFilterType with value set to v.

func (OptListPhoneNumbersJobsFilterType) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPhoneNumbersJobsFilterType) IsSet

IsSet returns true if OptListPhoneNumbersJobsFilterType was set.

func (OptListPhoneNumbersJobsFilterType) Or

Or returns value if set, or given parameter if does not.

func (*OptListPhoneNumbersJobsFilterType) Reset

Reset unsets value.

func (*OptListPhoneNumbersJobsFilterType) SetTo

SetTo sets value to v.

type OptListPhoneNumbersJobsSort

type OptListPhoneNumbersJobsSort struct {
	Value ListPhoneNumbersJobsSort
	Set   bool
}

OptListPhoneNumbersJobsSort is optional ListPhoneNumbersJobsSort.

func NewOptListPhoneNumbersJobsSort

func NewOptListPhoneNumbersJobsSort(v ListPhoneNumbersJobsSort) OptListPhoneNumbersJobsSort

NewOptListPhoneNumbersJobsSort returns new OptListPhoneNumbersJobsSort with value set to v.

func (OptListPhoneNumbersJobsSort) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPhoneNumbersJobsSort) IsSet

IsSet returns true if OptListPhoneNumbersJobsSort was set.

func (OptListPhoneNumbersJobsSort) Or

Or returns value if set, or given parameter if does not.

func (*OptListPhoneNumbersJobsSort) Reset

func (o *OptListPhoneNumbersJobsSort) Reset()

Reset unsets value.

func (*OptListPhoneNumbersJobsSort) SetTo

SetTo sets value to v.

type OptListPhoneNumbersSort

type OptListPhoneNumbersSort struct {
	Value ListPhoneNumbersSort
	Set   bool
}

OptListPhoneNumbersSort is optional ListPhoneNumbersSort.

func NewOptListPhoneNumbersSort

func NewOptListPhoneNumbersSort(v ListPhoneNumbersSort) OptListPhoneNumbersSort

NewOptListPhoneNumbersSort returns new OptListPhoneNumbersSort with value set to v.

func (OptListPhoneNumbersSort) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPhoneNumbersSort) IsSet

func (o OptListPhoneNumbersSort) IsSet() bool

IsSet returns true if OptListPhoneNumbersSort was set.

func (OptListPhoneNumbersSort) Or

Or returns value if set, or given parameter if does not.

func (*OptListPhoneNumbersSort) Reset

func (o *OptListPhoneNumbersSort) Reset()

Reset unsets value.

func (*OptListPhoneNumbersSort) SetTo

SetTo sets value to v.

type OptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod

type OptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod struct {
	Value ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod
	Set   bool
}

OptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod is optional ListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod.

func NewOptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod

NewOptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod returns new OptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod with value set to v.

func (OptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod) IsSet

IsSet returns true if OptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod was set.

func (OptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod) Reset

Reset unsets value.

func (*OptListPhoneNumbersWithVoiceSettingsFilterVoiceUsagePaymentMethod) SetTo

SetTo sets value to v.

type OptListPhoneNumbersWithVoiceSettingsSort

type OptListPhoneNumbersWithVoiceSettingsSort struct {
	Value ListPhoneNumbersWithVoiceSettingsSort
	Set   bool
}

OptListPhoneNumbersWithVoiceSettingsSort is optional ListPhoneNumbersWithVoiceSettingsSort.

func NewOptListPhoneNumbersWithVoiceSettingsSort

func NewOptListPhoneNumbersWithVoiceSettingsSort(v ListPhoneNumbersWithVoiceSettingsSort) OptListPhoneNumbersWithVoiceSettingsSort

NewOptListPhoneNumbersWithVoiceSettingsSort returns new OptListPhoneNumbersWithVoiceSettingsSort with value set to v.

func (OptListPhoneNumbersWithVoiceSettingsSort) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPhoneNumbersWithVoiceSettingsSort) IsSet

IsSet returns true if OptListPhoneNumbersWithVoiceSettingsSort was set.

func (OptListPhoneNumbersWithVoiceSettingsSort) Or

Or returns value if set, or given parameter if does not.

func (*OptListPhoneNumbersWithVoiceSettingsSort) Reset

Reset unsets value.

func (*OptListPhoneNumbersWithVoiceSettingsSort) SetTo

SetTo sets value to v.

type OptListPortingOrdersSort

type OptListPortingOrdersSort struct {
	Value ListPortingOrdersSort
	Set   bool
}

OptListPortingOrdersSort is optional ListPortingOrdersSort.

func NewOptListPortingOrdersSort

func NewOptListPortingOrdersSort(v ListPortingOrdersSort) OptListPortingOrdersSort

NewOptListPortingOrdersSort returns new OptListPortingOrdersSort with value set to v.

func (OptListPortingOrdersSort) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPortingOrdersSort) IsSet

func (o OptListPortingOrdersSort) IsSet() bool

IsSet returns true if OptListPortingOrdersSort was set.

func (OptListPortingOrdersSort) Or

Or returns value if set, or given parameter if does not.

func (*OptListPortingOrdersSort) Reset

func (o *OptListPortingOrdersSort) Reset()

Reset unsets value.

func (*OptListPortingOrdersSort) SetTo

SetTo sets value to v.

type OptListPortingPhoneNumbersFilterPortingOrderStatus

type OptListPortingPhoneNumbersFilterPortingOrderStatus struct {
	Value ListPortingPhoneNumbersFilterPortingOrderStatus
	Set   bool
}

OptListPortingPhoneNumbersFilterPortingOrderStatus is optional ListPortingPhoneNumbersFilterPortingOrderStatus.

func NewOptListPortingPhoneNumbersFilterPortingOrderStatus

func NewOptListPortingPhoneNumbersFilterPortingOrderStatus(v ListPortingPhoneNumbersFilterPortingOrderStatus) OptListPortingPhoneNumbersFilterPortingOrderStatus

NewOptListPortingPhoneNumbersFilterPortingOrderStatus returns new OptListPortingPhoneNumbersFilterPortingOrderStatus with value set to v.

func (OptListPortingPhoneNumbersFilterPortingOrderStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPortingPhoneNumbersFilterPortingOrderStatus) IsSet

IsSet returns true if OptListPortingPhoneNumbersFilterPortingOrderStatus was set.

func (OptListPortingPhoneNumbersFilterPortingOrderStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptListPortingPhoneNumbersFilterPortingOrderStatus) Reset

Reset unsets value.

func (*OptListPortingPhoneNumbersFilterPortingOrderStatus) SetTo

SetTo sets value to v.

type OptListPortingReportsFilterReportType

type OptListPortingReportsFilterReportType struct {
	Value ListPortingReportsFilterReportType
	Set   bool
}

OptListPortingReportsFilterReportType is optional ListPortingReportsFilterReportType.

func NewOptListPortingReportsFilterReportType

func NewOptListPortingReportsFilterReportType(v ListPortingReportsFilterReportType) OptListPortingReportsFilterReportType

NewOptListPortingReportsFilterReportType returns new OptListPortingReportsFilterReportType with value set to v.

func (OptListPortingReportsFilterReportType) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPortingReportsFilterReportType) IsSet

IsSet returns true if OptListPortingReportsFilterReportType was set.

func (OptListPortingReportsFilterReportType) Or

Or returns value if set, or given parameter if does not.

func (*OptListPortingReportsFilterReportType) Reset

Reset unsets value.

func (*OptListPortingReportsFilterReportType) SetTo

SetTo sets value to v.

type OptListPortingReportsFilterStatus

type OptListPortingReportsFilterStatus struct {
	Value ListPortingReportsFilterStatus
	Set   bool
}

OptListPortingReportsFilterStatus is optional ListPortingReportsFilterStatus.

func NewOptListPortingReportsFilterStatus

func NewOptListPortingReportsFilterStatus(v ListPortingReportsFilterStatus) OptListPortingReportsFilterStatus

NewOptListPortingReportsFilterStatus returns new OptListPortingReportsFilterStatus with value set to v.

func (OptListPortingReportsFilterStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPortingReportsFilterStatus) IsSet

IsSet returns true if OptListPortingReportsFilterStatus was set.

func (OptListPortingReportsFilterStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptListPortingReportsFilterStatus) Reset

Reset unsets value.

func (*OptListPortingReportsFilterStatus) SetTo

SetTo sets value to v.

type OptListPortoutRequestFilterStatus

type OptListPortoutRequestFilterStatus struct {
	Value ListPortoutRequestFilterStatus
	Set   bool
}

OptListPortoutRequestFilterStatus is optional ListPortoutRequestFilterStatus.

func NewOptListPortoutRequestFilterStatus

func NewOptListPortoutRequestFilterStatus(v ListPortoutRequestFilterStatus) OptListPortoutRequestFilterStatus

NewOptListPortoutRequestFilterStatus returns new OptListPortoutRequestFilterStatus with value set to v.

func (OptListPortoutRequestFilterStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptListPortoutRequestFilterStatus) IsSet

IsSet returns true if OptListPortoutRequestFilterStatus was set.

func (OptListPortoutRequestFilterStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptListPortoutRequestFilterStatus) Reset

Reset unsets value.

func (*OptListPortoutRequestFilterStatus) SetTo

SetTo sets value to v.

type OptListVerificationCodesSort

type OptListVerificationCodesSort struct {
	Value ListVerificationCodesSort
	Set   bool
}

OptListVerificationCodesSort is optional ListVerificationCodesSort.

func NewOptListVerificationCodesSort

func NewOptListVerificationCodesSort(v ListVerificationCodesSort) OptListVerificationCodesSort

NewOptListVerificationCodesSort returns new OptListVerificationCodesSort with value set to v.

func (OptListVerificationCodesSort) Get

Get returns value and boolean that denotes whether value was set.

func (OptListVerificationCodesSort) IsSet

IsSet returns true if OptListVerificationCodesSort was set.

func (OptListVerificationCodesSort) Or

Or returns value if set, or given parameter if does not.

func (*OptListVerificationCodesSort) Reset

func (o *OptListVerificationCodesSort) Reset()

Reset unsets value.

func (*OptListVerificationCodesSort) SetTo

SetTo sets value to v.

type OptLogMessageMeta

type OptLogMessageMeta struct {
	Value LogMessageMeta
	Set   bool
}

OptLogMessageMeta is optional LogMessageMeta.

func NewOptLogMessageMeta

func NewOptLogMessageMeta(v LogMessageMeta) OptLogMessageMeta

NewOptLogMessageMeta returns new OptLogMessageMeta with value set to v.

func (*OptLogMessageMeta) Decode

func (o *OptLogMessageMeta) Decode(d *jx.Decoder) error

Decode decodes LogMessageMeta from json.

func (OptLogMessageMeta) Encode

func (o OptLogMessageMeta) Encode(e *jx.Encoder)

Encode encodes LogMessageMeta as json.

func (OptLogMessageMeta) Get

func (o OptLogMessageMeta) Get() (v LogMessageMeta, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptLogMessageMeta) IsSet

func (o OptLogMessageMeta) IsSet() bool

IsSet returns true if OptLogMessageMeta was set.

func (OptLogMessageMeta) MarshalJSON

func (s OptLogMessageMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptLogMessageMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptLogMessageMeta) Reset

func (o *OptLogMessageMeta) Reset()

Reset unsets value.

func (*OptLogMessageMeta) SetTo

func (o *OptLogMessageMeta) SetTo(v LogMessageMeta)

SetTo sets value to v.

func (*OptLogMessageMeta) UnmarshalJSON

func (s *OptLogMessageMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLogMessageSource

type OptLogMessageSource struct {
	Value LogMessageSource
	Set   bool
}

OptLogMessageSource is optional LogMessageSource.

func NewOptLogMessageSource

func NewOptLogMessageSource(v LogMessageSource) OptLogMessageSource

NewOptLogMessageSource returns new OptLogMessageSource with value set to v.

func (*OptLogMessageSource) Decode

func (o *OptLogMessageSource) Decode(d *jx.Decoder) error

Decode decodes LogMessageSource from json.

func (OptLogMessageSource) Encode

func (o OptLogMessageSource) Encode(e *jx.Encoder)

Encode encodes LogMessageSource as json.

func (OptLogMessageSource) Get

func (o OptLogMessageSource) Get() (v LogMessageSource, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptLogMessageSource) IsSet

func (o OptLogMessageSource) IsSet() bool

IsSet returns true if OptLogMessageSource was set.

func (OptLogMessageSource) MarshalJSON

func (s OptLogMessageSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptLogMessageSource) Or

Or returns value if set, or given parameter if does not.

func (*OptLogMessageSource) Reset

func (o *OptLogMessageSource) Reset()

Reset unsets value.

func (*OptLogMessageSource) SetTo

SetTo sets value to v.

func (*OptLogMessageSource) UnmarshalJSON

func (s *OptLogMessageSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLogoURL

type OptLogoURL struct {
	Value LogoURL
	Set   bool
}

OptLogoURL is optional LogoURL.

func NewOptLogoURL

func NewOptLogoURL(v LogoURL) OptLogoURL

NewOptLogoURL returns new OptLogoURL with value set to v.

func (*OptLogoURL) Decode

func (o *OptLogoURL) Decode(d *jx.Decoder) error

Decode decodes LogoURL from json.

func (OptLogoURL) Encode

func (o OptLogoURL) Encode(e *jx.Encoder)

Encode encodes LogoURL as json.

func (OptLogoURL) Get

func (o OptLogoURL) Get() (v LogoURL, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptLogoURL) IsSet

func (o OptLogoURL) IsSet() bool

IsSet returns true if OptLogoURL was set.

func (OptLogoURL) MarshalJSON

func (s OptLogoURL) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptLogoURL) Or

func (o OptLogoURL) Or(d LogoURL) LogoURL

Or returns value if set, or given parameter if does not.

func (*OptLogoURL) Reset

func (o *OptLogoURL) Reset()

Reset unsets value.

func (*OptLogoURL) SetTo

func (o *OptLogoURL) SetTo(v LogoURL)

SetTo sets value to v.

func (*OptLogoURL) UnmarshalJSON

func (s *OptLogoURL) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLoopcount

type OptLoopcount struct {
	Value Loopcount
	Set   bool
}

OptLoopcount is optional Loopcount.

func NewOptLoopcount

func NewOptLoopcount(v Loopcount) OptLoopcount

NewOptLoopcount returns new OptLoopcount with value set to v.

func (*OptLoopcount) Decode

func (o *OptLoopcount) Decode(d *jx.Decoder) error

Decode decodes Loopcount from json.

func (OptLoopcount) Encode

func (o OptLoopcount) Encode(e *jx.Encoder)

Encode encodes Loopcount as json.

func (OptLoopcount) Get

func (o OptLoopcount) Get() (v Loopcount, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptLoopcount) IsSet

func (o OptLoopcount) IsSet() bool

IsSet returns true if OptLoopcount was set.

func (OptLoopcount) MarshalJSON

func (s OptLoopcount) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptLoopcount) Or

Or returns value if set, or given parameter if does not.

func (*OptLoopcount) Reset

func (o *OptLoopcount) Reset()

Reset unsets value.

func (*OptLoopcount) SetTo

func (o *OptLoopcount) SetTo(v Loopcount)

SetTo sets value to v.

func (*OptLoopcount) UnmarshalJSON

func (s *OptLoopcount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMediaFeatures

type OptMediaFeatures struct {
	Value MediaFeatures
	Set   bool
}

OptMediaFeatures is optional MediaFeatures.

func NewOptMediaFeatures

func NewOptMediaFeatures(v MediaFeatures) OptMediaFeatures

NewOptMediaFeatures returns new OptMediaFeatures with value set to v.

func (*OptMediaFeatures) Decode

func (o *OptMediaFeatures) Decode(d *jx.Decoder) error

Decode decodes MediaFeatures from json.

func (OptMediaFeatures) Encode

func (o OptMediaFeatures) Encode(e *jx.Encoder)

Encode encodes MediaFeatures as json.

func (OptMediaFeatures) Get

func (o OptMediaFeatures) Get() (v MediaFeatures, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMediaFeatures) IsSet

func (o OptMediaFeatures) IsSet() bool

IsSet returns true if OptMediaFeatures was set.

func (OptMediaFeatures) MarshalJSON

func (s OptMediaFeatures) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMediaFeatures) Or

Or returns value if set, or given parameter if does not.

func (*OptMediaFeatures) Reset

func (o *OptMediaFeatures) Reset()

Reset unsets value.

func (*OptMediaFeatures) SetTo

func (o *OptMediaFeatures) SetTo(v MediaFeatures)

SetTo sets value to v.

func (*OptMediaFeatures) UnmarshalJSON

func (s *OptMediaFeatures) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMessagingHostedNumberOrder

type OptMessagingHostedNumberOrder struct {
	Value MessagingHostedNumberOrder
	Set   bool
}

OptMessagingHostedNumberOrder is optional MessagingHostedNumberOrder.

func NewOptMessagingHostedNumberOrder

func NewOptMessagingHostedNumberOrder(v MessagingHostedNumberOrder) OptMessagingHostedNumberOrder

NewOptMessagingHostedNumberOrder returns new OptMessagingHostedNumberOrder with value set to v.

func (*OptMessagingHostedNumberOrder) Decode

Decode decodes MessagingHostedNumberOrder from json.

func (OptMessagingHostedNumberOrder) Encode

Encode encodes MessagingHostedNumberOrder as json.

func (OptMessagingHostedNumberOrder) Get

Get returns value and boolean that denotes whether value was set.

func (OptMessagingHostedNumberOrder) IsSet

IsSet returns true if OptMessagingHostedNumberOrder was set.

func (OptMessagingHostedNumberOrder) MarshalJSON

func (s OptMessagingHostedNumberOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMessagingHostedNumberOrder) Or

Or returns value if set, or given parameter if does not.

func (*OptMessagingHostedNumberOrder) Reset

func (o *OptMessagingHostedNumberOrder) Reset()

Reset unsets value.

func (*OptMessagingHostedNumberOrder) SetTo

SetTo sets value to v.

func (*OptMessagingHostedNumberOrder) UnmarshalJSON

func (s *OptMessagingHostedNumberOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMessagingHostedNumberOrderStatus

type OptMessagingHostedNumberOrderStatus struct {
	Value MessagingHostedNumberOrderStatus
	Set   bool
}

OptMessagingHostedNumberOrderStatus is optional MessagingHostedNumberOrderStatus.

func NewOptMessagingHostedNumberOrderStatus

func NewOptMessagingHostedNumberOrderStatus(v MessagingHostedNumberOrderStatus) OptMessagingHostedNumberOrderStatus

NewOptMessagingHostedNumberOrderStatus returns new OptMessagingHostedNumberOrderStatus with value set to v.

func (*OptMessagingHostedNumberOrderStatus) Decode

Decode decodes MessagingHostedNumberOrderStatus from json.

func (OptMessagingHostedNumberOrderStatus) Encode

Encode encodes MessagingHostedNumberOrderStatus as json.

func (OptMessagingHostedNumberOrderStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptMessagingHostedNumberOrderStatus) IsSet

IsSet returns true if OptMessagingHostedNumberOrderStatus was set.

func (OptMessagingHostedNumberOrderStatus) MarshalJSON

func (s OptMessagingHostedNumberOrderStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMessagingHostedNumberOrderStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptMessagingHostedNumberOrderStatus) Reset

Reset unsets value.

func (*OptMessagingHostedNumberOrderStatus) SetTo

SetTo sets value to v.

func (*OptMessagingHostedNumberOrderStatus) UnmarshalJSON

func (s *OptMessagingHostedNumberOrderStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMetaResponse

type OptMetaResponse struct {
	Value MetaResponse
	Set   bool
}

OptMetaResponse is optional MetaResponse.

func NewOptMetaResponse

func NewOptMetaResponse(v MetaResponse) OptMetaResponse

NewOptMetaResponse returns new OptMetaResponse with value set to v.

func (*OptMetaResponse) Decode

func (o *OptMetaResponse) Decode(d *jx.Decoder) error

Decode decodes MetaResponse from json.

func (OptMetaResponse) Encode

func (o OptMetaResponse) Encode(e *jx.Encoder)

Encode encodes MetaResponse as json.

func (OptMetaResponse) Get

func (o OptMetaResponse) Get() (v MetaResponse, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMetaResponse) IsSet

func (o OptMetaResponse) IsSet() bool

IsSet returns true if OptMetaResponse was set.

func (OptMetaResponse) MarshalJSON

func (s OptMetaResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMetaResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptMetaResponse) Reset

func (o *OptMetaResponse) Reset()

Reset unsets value.

func (*OptMetaResponse) SetTo

func (o *OptMetaResponse) SetTo(v MetaResponse)

SetTo sets value to v.

func (*OptMetaResponse) UnmarshalJSON

func (s *OptMetaResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMetadata

type OptMetadata struct {
	Value Metadata
	Set   bool
}

OptMetadata is optional Metadata.

func NewOptMetadata

func NewOptMetadata(v Metadata) OptMetadata

NewOptMetadata returns new OptMetadata with value set to v.

func (*OptMetadata) Decode

func (o *OptMetadata) Decode(d *jx.Decoder) error

Decode decodes Metadata from json.

func (OptMetadata) Encode

func (o OptMetadata) Encode(e *jx.Encoder)

Encode encodes Metadata as json.

func (OptMetadata) Get

func (o OptMetadata) Get() (v Metadata, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMetadata) IsSet

func (o OptMetadata) IsSet() bool

IsSet returns true if OptMetadata was set.

func (OptMetadata) MarshalJSON

func (s OptMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMetadata) Or

func (o OptMetadata) Or(d Metadata) Metadata

Or returns value if set, or given parameter if does not.

func (*OptMetadata) Reset

func (o *OptMetadata) Reset()

Reset unsets value.

func (*OptMetadata) SetTo

func (o *OptMetadata) SetTo(v Metadata)

SetTo sets value to v.

func (*OptMetadata) UnmarshalJSON

func (s *OptMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNetwork

type OptNetwork struct {
	Value Network
	Set   bool
}

OptNetwork is optional Network.

func NewOptNetwork

func NewOptNetwork(v Network) OptNetwork

NewOptNetwork returns new OptNetwork with value set to v.

func (*OptNetwork) Decode

func (o *OptNetwork) Decode(d *jx.Decoder) error

Decode decodes Network from json.

func (OptNetwork) Encode

func (o OptNetwork) Encode(e *jx.Encoder)

Encode encodes Network as json.

func (OptNetwork) Get

func (o OptNetwork) Get() (v Network, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNetwork) IsSet

func (o OptNetwork) IsSet() bool

IsSet returns true if OptNetwork was set.

func (OptNetwork) MarshalJSON

func (s OptNetwork) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNetwork) Or

func (o OptNetwork) Or(d Network) Network

Or returns value if set, or given parameter if does not.

func (*OptNetwork) Reset

func (o *OptNetwork) Reset()

Reset unsets value.

func (*OptNetwork) SetTo

func (o *OptNetwork) SetTo(v Network)

SetTo sets value to v.

func (*OptNetwork) UnmarshalJSON

func (s *OptNetwork) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNetworkInterfaceRegion

type OptNetworkInterfaceRegion struct {
	Value NetworkInterfaceRegion
	Set   bool
}

OptNetworkInterfaceRegion is optional NetworkInterfaceRegion.

func NewOptNetworkInterfaceRegion

func NewOptNetworkInterfaceRegion(v NetworkInterfaceRegion) OptNetworkInterfaceRegion

NewOptNetworkInterfaceRegion returns new OptNetworkInterfaceRegion with value set to v.

func (*OptNetworkInterfaceRegion) Decode

func (o *OptNetworkInterfaceRegion) Decode(d *jx.Decoder) error

Decode decodes NetworkInterfaceRegion from json.

func (OptNetworkInterfaceRegion) Encode

func (o OptNetworkInterfaceRegion) Encode(e *jx.Encoder)

Encode encodes NetworkInterfaceRegion as json.

func (OptNetworkInterfaceRegion) Get

Get returns value and boolean that denotes whether value was set.

func (OptNetworkInterfaceRegion) IsSet

func (o OptNetworkInterfaceRegion) IsSet() bool

IsSet returns true if OptNetworkInterfaceRegion was set.

func (OptNetworkInterfaceRegion) MarshalJSON

func (s OptNetworkInterfaceRegion) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNetworkInterfaceRegion) Or

Or returns value if set, or given parameter if does not.

func (*OptNetworkInterfaceRegion) Reset

func (o *OptNetworkInterfaceRegion) Reset()

Reset unsets value.

func (*OptNetworkInterfaceRegion) SetTo

SetTo sets value to v.

func (*OptNetworkInterfaceRegion) UnmarshalJSON

func (s *OptNetworkInterfaceRegion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNewParticipantResource

type OptNewParticipantResource struct {
	Value NewParticipantResource
	Set   bool
}

OptNewParticipantResource is optional NewParticipantResource.

func NewOptNewParticipantResource

func NewOptNewParticipantResource(v NewParticipantResource) OptNewParticipantResource

NewOptNewParticipantResource returns new OptNewParticipantResource with value set to v.

func (*OptNewParticipantResource) Decode

func (o *OptNewParticipantResource) Decode(d *jx.Decoder) error

Decode decodes NewParticipantResource from json.

func (OptNewParticipantResource) Encode

func (o OptNewParticipantResource) Encode(e *jx.Encoder)

Encode encodes NewParticipantResource as json.

func (OptNewParticipantResource) Get

Get returns value and boolean that denotes whether value was set.

func (OptNewParticipantResource) IsSet

func (o OptNewParticipantResource) IsSet() bool

IsSet returns true if OptNewParticipantResource was set.

func (OptNewParticipantResource) MarshalJSON

func (s OptNewParticipantResource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNewParticipantResource) Or

Or returns value if set, or given parameter if does not.

func (*OptNewParticipantResource) Reset

func (o *OptNewParticipantResource) Reset()

Reset unsets value.

func (*OptNewParticipantResource) SetTo

SetTo sets value to v.

func (*OptNewParticipantResource) UnmarshalJSON

func (s *OptNewParticipantResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNewParticipantResourceStatus

type OptNewParticipantResourceStatus struct {
	Value NewParticipantResourceStatus
	Set   bool
}

OptNewParticipantResourceStatus is optional NewParticipantResourceStatus.

func NewOptNewParticipantResourceStatus

func NewOptNewParticipantResourceStatus(v NewParticipantResourceStatus) OptNewParticipantResourceStatus

NewOptNewParticipantResourceStatus returns new OptNewParticipantResourceStatus with value set to v.

func (*OptNewParticipantResourceStatus) Decode

Decode decodes NewParticipantResourceStatus from json.

func (OptNewParticipantResourceStatus) Encode

Encode encodes NewParticipantResourceStatus as json.

func (OptNewParticipantResourceStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptNewParticipantResourceStatus) IsSet

IsSet returns true if OptNewParticipantResourceStatus was set.

func (OptNewParticipantResourceStatus) MarshalJSON

func (s OptNewParticipantResourceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNewParticipantResourceStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptNewParticipantResourceStatus) Reset

Reset unsets value.

func (*OptNewParticipantResourceStatus) SetTo

SetTo sets value to v.

func (*OptNewParticipantResourceStatus) UnmarshalJSON

func (s *OptNewParticipantResourceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilConferenceSid

type OptNilConferenceSid struct {
	Value ConferenceSid
	Set   bool
	Null  bool
}

OptNilConferenceSid is optional nullable ConferenceSid.

func NewOptNilConferenceSid

func NewOptNilConferenceSid(v ConferenceSid) OptNilConferenceSid

NewOptNilConferenceSid returns new OptNilConferenceSid with value set to v.

func (*OptNilConferenceSid) Decode

func (o *OptNilConferenceSid) Decode(d *jx.Decoder) error

Decode decodes ConferenceSid from json.

func (OptNilConferenceSid) Encode

func (o OptNilConferenceSid) Encode(e *jx.Encoder)

Encode encodes ConferenceSid as json.

func (OptNilConferenceSid) Get

func (o OptNilConferenceSid) Get() (v ConferenceSid, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilConferenceSid) IsNull

func (o OptNilConferenceSid) IsNull() bool

IsSet returns true if value is Null.

func (OptNilConferenceSid) IsSet

func (o OptNilConferenceSid) IsSet() bool

IsSet returns true if OptNilConferenceSid was set.

func (OptNilConferenceSid) MarshalJSON

func (s OptNilConferenceSid) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilConferenceSid) Or

Or returns value if set, or given parameter if does not.

func (*OptNilConferenceSid) Reset

func (o *OptNilConferenceSid) Reset()

Reset unsets value.

func (*OptNilConferenceSid) SetTo

func (o *OptNilConferenceSid) SetTo(v ConferenceSid)

SetTo sets value to v.

func (*OptNilConferenceSid) SetToNull

func (o *OptNilConferenceSid) SetToNull()

SetNull sets value to null.

func (*OptNilConferenceSid) UnmarshalJSON

func (s *OptNilConferenceSid) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilDateTime

type OptNilDateTime struct {
	Value time.Time
	Set   bool
	Null  bool
}

OptNilDateTime is optional nullable time.Time.

func NewOptNilDateTime

func NewOptNilDateTime(v time.Time) OptNilDateTime

NewOptNilDateTime returns new OptNilDateTime with value set to v.

func (*OptNilDateTime) Decode

func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptNilDateTime) Encode

func (o OptNilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptNilDateTime) Get

func (o OptNilDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilDateTime) IsNull

func (o OptNilDateTime) IsNull() bool

IsSet returns true if value is Null.

func (OptNilDateTime) IsSet

func (o OptNilDateTime) IsSet() bool

IsSet returns true if OptNilDateTime was set.

func (OptNilDateTime) MarshalJSON

func (s OptNilDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilDateTime) Or

func (o OptNilDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptNilDateTime) Reset

func (o *OptNilDateTime) Reset()

Reset unsets value.

func (*OptNilDateTime) SetTo

func (o *OptNilDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptNilDateTime) SetToNull

func (o *OptNilDateTime) SetToNull()

SetNull sets value to null.

func (*OptNilDateTime) UnmarshalJSON

func (s *OptNilDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilHTTPResponse

type OptNilHTTPResponse struct {
	Value HTTPResponse
	Set   bool
	Null  bool
}

OptNilHTTPResponse is optional nullable HTTPResponse.

func NewOptNilHTTPResponse

func NewOptNilHTTPResponse(v HTTPResponse) OptNilHTTPResponse

NewOptNilHTTPResponse returns new OptNilHTTPResponse with value set to v.

func (*OptNilHTTPResponse) Decode

func (o *OptNilHTTPResponse) Decode(d *jx.Decoder) error

Decode decodes HTTPResponse from json.

func (OptNilHTTPResponse) Encode

func (o OptNilHTTPResponse) Encode(e *jx.Encoder)

Encode encodes HTTPResponse as json.

func (OptNilHTTPResponse) Get

func (o OptNilHTTPResponse) Get() (v HTTPResponse, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilHTTPResponse) IsNull

func (o OptNilHTTPResponse) IsNull() bool

IsSet returns true if value is Null.

func (OptNilHTTPResponse) IsSet

func (o OptNilHTTPResponse) IsSet() bool

IsSet returns true if OptNilHTTPResponse was set.

func (OptNilHTTPResponse) MarshalJSON

func (s OptNilHTTPResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilHTTPResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptNilHTTPResponse) Reset

func (o *OptNilHTTPResponse) Reset()

Reset unsets value.

func (*OptNilHTTPResponse) SetTo

func (o *OptNilHTTPResponse) SetTo(v HTTPResponse)

SetTo sets value to v.

func (*OptNilHTTPResponse) SetToNull

func (o *OptNilHTTPResponse) SetToNull()

SetNull sets value to null.

func (*OptNilHTTPResponse) UnmarshalJSON

func (s *OptNilHTTPResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilInt

type OptNilInt struct {
	Value int
	Set   bool
	Null  bool
}

OptNilInt is optional nullable int.

func NewOptNilInt

func NewOptNilInt(v int) OptNilInt

NewOptNilInt returns new OptNilInt with value set to v.

func (*OptNilInt) Decode

func (o *OptNilInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptNilInt) Encode

func (o OptNilInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptNilInt) Get

func (o OptNilInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilInt) IsNull

func (o OptNilInt) IsNull() bool

IsSet returns true if value is Null.

func (OptNilInt) IsSet

func (o OptNilInt) IsSet() bool

IsSet returns true if OptNilInt was set.

func (OptNilInt) MarshalJSON

func (s OptNilInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilInt) Or

func (o OptNilInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptNilInt) Reset

func (o *OptNilInt) Reset()

Reset unsets value.

func (*OptNilInt) SetTo

func (o *OptNilInt) SetTo(v int)

SetTo sets value to v.

func (*OptNilInt) SetToNull

func (o *OptNilInt) SetToNull()

SetNull sets value to null.

func (*OptNilInt) UnmarshalJSON

func (s *OptNilInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilMessagingFeatureSet

type OptNilMessagingFeatureSet struct {
	Value MessagingFeatureSet
	Set   bool
	Null  bool
}

OptNilMessagingFeatureSet is optional nullable MessagingFeatureSet.

func NewOptNilMessagingFeatureSet

func NewOptNilMessagingFeatureSet(v MessagingFeatureSet) OptNilMessagingFeatureSet

NewOptNilMessagingFeatureSet returns new OptNilMessagingFeatureSet with value set to v.

func (*OptNilMessagingFeatureSet) Decode

func (o *OptNilMessagingFeatureSet) Decode(d *jx.Decoder) error

Decode decodes MessagingFeatureSet from json.

func (OptNilMessagingFeatureSet) Encode

func (o OptNilMessagingFeatureSet) Encode(e *jx.Encoder)

Encode encodes MessagingFeatureSet as json.

func (OptNilMessagingFeatureSet) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilMessagingFeatureSet) IsNull

func (o OptNilMessagingFeatureSet) IsNull() bool

IsSet returns true if value is Null.

func (OptNilMessagingFeatureSet) IsSet

func (o OptNilMessagingFeatureSet) IsSet() bool

IsSet returns true if OptNilMessagingFeatureSet was set.

func (OptNilMessagingFeatureSet) MarshalJSON

func (s OptNilMessagingFeatureSet) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilMessagingFeatureSet) Or

Or returns value if set, or given parameter if does not.

func (*OptNilMessagingFeatureSet) Reset

func (o *OptNilMessagingFeatureSet) Reset()

Reset unsets value.

func (*OptNilMessagingFeatureSet) SetTo

SetTo sets value to v.

func (*OptNilMessagingFeatureSet) SetToNull

func (o *OptNilMessagingFeatureSet) SetToNull()

SetNull sets value to null.

func (*OptNilMessagingFeatureSet) UnmarshalJSON

func (s *OptNilMessagingFeatureSet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilOutboundMessagePayloadCost

type OptNilOutboundMessagePayloadCost struct {
	Value OutboundMessagePayloadCost
	Set   bool
	Null  bool
}

OptNilOutboundMessagePayloadCost is optional nullable OutboundMessagePayloadCost.

func NewOptNilOutboundMessagePayloadCost

func NewOptNilOutboundMessagePayloadCost(v OutboundMessagePayloadCost) OptNilOutboundMessagePayloadCost

NewOptNilOutboundMessagePayloadCost returns new OptNilOutboundMessagePayloadCost with value set to v.

func (*OptNilOutboundMessagePayloadCost) Decode

Decode decodes OutboundMessagePayloadCost from json.

func (OptNilOutboundMessagePayloadCost) Encode

Encode encodes OutboundMessagePayloadCost as json.

func (OptNilOutboundMessagePayloadCost) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilOutboundMessagePayloadCost) IsNull

IsSet returns true if value is Null.

func (OptNilOutboundMessagePayloadCost) IsSet

IsSet returns true if OptNilOutboundMessagePayloadCost was set.

func (OptNilOutboundMessagePayloadCost) MarshalJSON

func (s OptNilOutboundMessagePayloadCost) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilOutboundMessagePayloadCost) Or

Or returns value if set, or given parameter if does not.

func (*OptNilOutboundMessagePayloadCost) Reset

Reset unsets value.

func (*OptNilOutboundMessagePayloadCost) SetTo

SetTo sets value to v.

func (*OptNilOutboundMessagePayloadCost) SetToNull

func (o *OptNilOutboundMessagePayloadCost) SetToNull()

SetNull sets value to null.

func (*OptNilOutboundMessagePayloadCost) UnmarshalJSON

func (s *OptNilOutboundMessagePayloadCost) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func (*OptNilString) Decode

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) IsNull

func (o OptNilString) IsNull() bool

IsSet returns true if value is Null.

func (OptNilString) IsSet

func (o OptNilString) IsSet() bool

IsSet returns true if OptNilString was set.

func (OptNilString) MarshalJSON

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or

func (o OptNilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptNilString) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull

func (o *OptNilString) SetToNull()

SetNull sets value to null.

func (*OptNilString) UnmarshalJSON

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilTexmlErrorCode

type OptNilTexmlErrorCode struct {
	Value TexmlErrorCode
	Set   bool
	Null  bool
}

OptNilTexmlErrorCode is optional nullable TexmlErrorCode.

func NewOptNilTexmlErrorCode

func NewOptNilTexmlErrorCode(v TexmlErrorCode) OptNilTexmlErrorCode

NewOptNilTexmlErrorCode returns new OptNilTexmlErrorCode with value set to v.

func (*OptNilTexmlErrorCode) Decode

func (o *OptNilTexmlErrorCode) Decode(d *jx.Decoder) error

Decode decodes TexmlErrorCode from json.

func (OptNilTexmlErrorCode) Encode

func (o OptNilTexmlErrorCode) Encode(e *jx.Encoder)

Encode encodes TexmlErrorCode as json.

func (OptNilTexmlErrorCode) Get

func (o OptNilTexmlErrorCode) Get() (v TexmlErrorCode, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilTexmlErrorCode) IsNull

func (o OptNilTexmlErrorCode) IsNull() bool

IsSet returns true if value is Null.

func (OptNilTexmlErrorCode) IsSet

func (o OptNilTexmlErrorCode) IsSet() bool

IsSet returns true if OptNilTexmlErrorCode was set.

func (OptNilTexmlErrorCode) MarshalJSON

func (s OptNilTexmlErrorCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilTexmlErrorCode) Or

Or returns value if set, or given parameter if does not.

func (*OptNilTexmlErrorCode) Reset

func (o *OptNilTexmlErrorCode) Reset()

Reset unsets value.

func (*OptNilTexmlErrorCode) SetTo

SetTo sets value to v.

func (*OptNilTexmlErrorCode) SetToNull

func (o *OptNilTexmlErrorCode) SetToNull()

SetNull sets value to null.

func (*OptNilTexmlErrorCode) UnmarshalJSON

func (s *OptNilTexmlErrorCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilTexmlPriceUnit

type OptNilTexmlPriceUnit struct {
	Value TexmlPriceUnit
	Set   bool
	Null  bool
}

OptNilTexmlPriceUnit is optional nullable TexmlPriceUnit.

func NewOptNilTexmlPriceUnit

func NewOptNilTexmlPriceUnit(v TexmlPriceUnit) OptNilTexmlPriceUnit

NewOptNilTexmlPriceUnit returns new OptNilTexmlPriceUnit with value set to v.

func (*OptNilTexmlPriceUnit) Decode

func (o *OptNilTexmlPriceUnit) Decode(d *jx.Decoder) error

Decode decodes TexmlPriceUnit from json.

func (OptNilTexmlPriceUnit) Encode

func (o OptNilTexmlPriceUnit) Encode(e *jx.Encoder)

Encode encodes TexmlPriceUnit as json.

func (OptNilTexmlPriceUnit) Get

func (o OptNilTexmlPriceUnit) Get() (v TexmlPriceUnit, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilTexmlPriceUnit) IsNull

func (o OptNilTexmlPriceUnit) IsNull() bool

IsSet returns true if value is Null.

func (OptNilTexmlPriceUnit) IsSet

func (o OptNilTexmlPriceUnit) IsSet() bool

IsSet returns true if OptNilTexmlPriceUnit was set.

func (OptNilTexmlPriceUnit) MarshalJSON

func (s OptNilTexmlPriceUnit) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilTexmlPriceUnit) Or

Or returns value if set, or given parameter if does not.

func (*OptNilTexmlPriceUnit) Reset

func (o *OptNilTexmlPriceUnit) Reset()

Reset unsets value.

func (*OptNilTexmlPriceUnit) SetTo

SetTo sets value to v.

func (*OptNilTexmlPriceUnit) SetToNull

func (o *OptNilTexmlPriceUnit) SetToNull()

SetNull sets value to null.

func (*OptNilTexmlPriceUnit) UnmarshalJSON

func (s *OptNilTexmlPriceUnit) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilTexmlRecordingDuration

type OptNilTexmlRecordingDuration struct {
	Value TexmlRecordingDuration
	Set   bool
	Null  bool
}

OptNilTexmlRecordingDuration is optional nullable TexmlRecordingDuration.

func NewOptNilTexmlRecordingDuration

func NewOptNilTexmlRecordingDuration(v TexmlRecordingDuration) OptNilTexmlRecordingDuration

NewOptNilTexmlRecordingDuration returns new OptNilTexmlRecordingDuration with value set to v.

func (*OptNilTexmlRecordingDuration) Decode

Decode decodes TexmlRecordingDuration from json.

func (OptNilTexmlRecordingDuration) Encode

Encode encodes TexmlRecordingDuration as json.

func (OptNilTexmlRecordingDuration) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilTexmlRecordingDuration) IsNull

IsSet returns true if value is Null.

func (OptNilTexmlRecordingDuration) IsSet

IsSet returns true if OptNilTexmlRecordingDuration was set.

func (OptNilTexmlRecordingDuration) MarshalJSON

func (s OptNilTexmlRecordingDuration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilTexmlRecordingDuration) Or

Or returns value if set, or given parameter if does not.

func (*OptNilTexmlRecordingDuration) Reset

func (o *OptNilTexmlRecordingDuration) Reset()

Reset unsets value.

func (*OptNilTexmlRecordingDuration) SetTo

SetTo sets value to v.

func (*OptNilTexmlRecordingDuration) SetToNull

func (o *OptNilTexmlRecordingDuration) SetToNull()

SetNull sets value to null.

func (*OptNilTexmlRecordingDuration) UnmarshalJSON

func (s *OptNilTexmlRecordingDuration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilTexmlRecordingPrice

type OptNilTexmlRecordingPrice struct {
	Value TexmlRecordingPrice
	Set   bool
	Null  bool
}

OptNilTexmlRecordingPrice is optional nullable TexmlRecordingPrice.

func NewOptNilTexmlRecordingPrice

func NewOptNilTexmlRecordingPrice(v TexmlRecordingPrice) OptNilTexmlRecordingPrice

NewOptNilTexmlRecordingPrice returns new OptNilTexmlRecordingPrice with value set to v.

func (*OptNilTexmlRecordingPrice) Decode

func (o *OptNilTexmlRecordingPrice) Decode(d *jx.Decoder) error

Decode decodes TexmlRecordingPrice from json.

func (OptNilTexmlRecordingPrice) Encode

func (o OptNilTexmlRecordingPrice) Encode(e *jx.Encoder)

Encode encodes TexmlRecordingPrice as json.

func (OptNilTexmlRecordingPrice) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilTexmlRecordingPrice) IsNull

func (o OptNilTexmlRecordingPrice) IsNull() bool

IsSet returns true if value is Null.

func (OptNilTexmlRecordingPrice) IsSet

func (o OptNilTexmlRecordingPrice) IsSet() bool

IsSet returns true if OptNilTexmlRecordingPrice was set.

func (OptNilTexmlRecordingPrice) MarshalJSON

func (s OptNilTexmlRecordingPrice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilTexmlRecordingPrice) Or

Or returns value if set, or given parameter if does not.

func (*OptNilTexmlRecordingPrice) Reset

func (o *OptNilTexmlRecordingPrice) Reset()

Reset unsets value.

func (*OptNilTexmlRecordingPrice) SetTo

SetTo sets value to v.

func (*OptNilTexmlRecordingPrice) SetToNull

func (o *OptNilTexmlRecordingPrice) SetToNull()

SetNull sets value to null.

func (*OptNilTexmlRecordingPrice) UnmarshalJSON

func (s *OptNilTexmlRecordingPrice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilURI

type OptNilURI struct {
	Value url.URL
	Set   bool
	Null  bool
}

OptNilURI is optional nullable url.URL.

func NewOptNilURI

func NewOptNilURI(v url.URL) OptNilURI

NewOptNilURI returns new OptNilURI with value set to v.

func (*OptNilURI) Decode

func (o *OptNilURI) Decode(d *jx.Decoder) error

Decode decodes url.URL from json.

func (OptNilURI) Encode

func (o OptNilURI) Encode(e *jx.Encoder)

Encode encodes url.URL as json.

func (OptNilURI) Get

func (o OptNilURI) Get() (v url.URL, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilURI) IsNull

func (o OptNilURI) IsNull() bool

IsSet returns true if value is Null.

func (OptNilURI) IsSet

func (o OptNilURI) IsSet() bool

IsSet returns true if OptNilURI was set.

func (OptNilURI) MarshalJSON

func (s OptNilURI) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilURI) Or

func (o OptNilURI) Or(d url.URL) url.URL

Or returns value if set, or given parameter if does not.

func (*OptNilURI) Reset

func (o *OptNilURI) Reset()

Reset unsets value.

func (*OptNilURI) SetTo

func (o *OptNilURI) SetTo(v url.URL)

SetTo sets value to v.

func (*OptNilURI) SetToNull

func (o *OptNilURI) SetToNull()

SetNull sets value to null.

func (*OptNilURI) UnmarshalJSON

func (s *OptNilURI) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilUUID

type OptNilUUID struct {
	Value uuid.UUID
	Set   bool
	Null  bool
}

OptNilUUID is optional nullable uuid.UUID.

func NewOptNilUUID

func NewOptNilUUID(v uuid.UUID) OptNilUUID

NewOptNilUUID returns new OptNilUUID with value set to v.

func (*OptNilUUID) Decode

func (o *OptNilUUID) Decode(d *jx.Decoder) error

Decode decodes uuid.UUID from json.

func (OptNilUUID) Encode

func (o OptNilUUID) Encode(e *jx.Encoder)

Encode encodes uuid.UUID as json.

func (OptNilUUID) Get

func (o OptNilUUID) Get() (v uuid.UUID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilUUID) IsNull

func (o OptNilUUID) IsNull() bool

IsSet returns true if value is Null.

func (OptNilUUID) IsSet

func (o OptNilUUID) IsSet() bool

IsSet returns true if OptNilUUID was set.

func (OptNilUUID) MarshalJSON

func (s OptNilUUID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilUUID) Or

func (o OptNilUUID) Or(d uuid.UUID) uuid.UUID

Or returns value if set, or given parameter if does not.

func (*OptNilUUID) Reset

func (o *OptNilUUID) Reset()

Reset unsets value.

func (*OptNilUUID) SetTo

func (o *OptNilUUID) SetTo(v uuid.UUID)

SetTo sets value to v.

func (*OptNilUUID) SetToNull

func (o *OptNilUUID) SetToNull()

SetNull sets value to null.

func (*OptNilUUID) UnmarshalJSON

func (s *OptNilUUID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNoiseSuppressionDirection

type OptNoiseSuppressionDirection struct {
	Value NoiseSuppressionDirection
	Set   bool
}

OptNoiseSuppressionDirection is optional NoiseSuppressionDirection.

func NewOptNoiseSuppressionDirection

func NewOptNoiseSuppressionDirection(v NoiseSuppressionDirection) OptNoiseSuppressionDirection

NewOptNoiseSuppressionDirection returns new OptNoiseSuppressionDirection with value set to v.

func (*OptNoiseSuppressionDirection) Decode

Decode decodes NoiseSuppressionDirection from json.

func (OptNoiseSuppressionDirection) Encode

Encode encodes NoiseSuppressionDirection as json.

func (OptNoiseSuppressionDirection) Get

Get returns value and boolean that denotes whether value was set.

func (OptNoiseSuppressionDirection) IsSet

IsSet returns true if OptNoiseSuppressionDirection was set.

func (OptNoiseSuppressionDirection) MarshalJSON

func (s OptNoiseSuppressionDirection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNoiseSuppressionDirection) Or

Or returns value if set, or given parameter if does not.

func (*OptNoiseSuppressionDirection) Reset

func (o *OptNoiseSuppressionDirection) Reset()

Reset unsets value.

func (*OptNoiseSuppressionDirection) SetTo

SetTo sets value to v.

func (*OptNoiseSuppressionDirection) UnmarshalJSON

func (s *OptNoiseSuppressionDirection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNotificationChannel

type OptNotificationChannel struct {
	Value NotificationChannel
	Set   bool
}

OptNotificationChannel is optional NotificationChannel.

func NewOptNotificationChannel

func NewOptNotificationChannel(v NotificationChannel) OptNotificationChannel

NewOptNotificationChannel returns new OptNotificationChannel with value set to v.

func (*OptNotificationChannel) Decode

func (o *OptNotificationChannel) Decode(d *jx.Decoder) error

Decode decodes NotificationChannel from json.

func (OptNotificationChannel) Encode

func (o OptNotificationChannel) Encode(e *jx.Encoder)

Encode encodes NotificationChannel as json.

func (OptNotificationChannel) Get

Get returns value and boolean that denotes whether value was set.

func (OptNotificationChannel) IsSet

func (o OptNotificationChannel) IsSet() bool

IsSet returns true if OptNotificationChannel was set.

func (OptNotificationChannel) MarshalJSON

func (s OptNotificationChannel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNotificationChannel) Or

Or returns value if set, or given parameter if does not.

func (*OptNotificationChannel) Reset

func (o *OptNotificationChannel) Reset()

Reset unsets value.

func (*OptNotificationChannel) SetTo

SetTo sets value to v.

func (*OptNotificationChannel) UnmarshalJSON

func (s *OptNotificationChannel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNotificationChannelChannelTypeID

type OptNotificationChannelChannelTypeID struct {
	Value NotificationChannelChannelTypeID
	Set   bool
}

OptNotificationChannelChannelTypeID is optional NotificationChannelChannelTypeID.

func NewOptNotificationChannelChannelTypeID

func NewOptNotificationChannelChannelTypeID(v NotificationChannelChannelTypeID) OptNotificationChannelChannelTypeID

NewOptNotificationChannelChannelTypeID returns new OptNotificationChannelChannelTypeID with value set to v.

func (*OptNotificationChannelChannelTypeID) Decode

Decode decodes NotificationChannelChannelTypeID from json.

func (OptNotificationChannelChannelTypeID) Encode

Encode encodes NotificationChannelChannelTypeID as json.

func (OptNotificationChannelChannelTypeID) Get

Get returns value and boolean that denotes whether value was set.

func (OptNotificationChannelChannelTypeID) IsSet

IsSet returns true if OptNotificationChannelChannelTypeID was set.

func (OptNotificationChannelChannelTypeID) MarshalJSON

func (s OptNotificationChannelChannelTypeID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNotificationChannelChannelTypeID) Or

Or returns value if set, or given parameter if does not.

func (*OptNotificationChannelChannelTypeID) Reset

Reset unsets value.

func (*OptNotificationChannelChannelTypeID) SetTo

SetTo sets value to v.

func (*OptNotificationChannelChannelTypeID) UnmarshalJSON

func (s *OptNotificationChannelChannelTypeID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNumberHealthMetrics

type OptNumberHealthMetrics struct {
	Value NumberHealthMetrics
	Set   bool
}

OptNumberHealthMetrics is optional NumberHealthMetrics.

func NewOptNumberHealthMetrics

func NewOptNumberHealthMetrics(v NumberHealthMetrics) OptNumberHealthMetrics

NewOptNumberHealthMetrics returns new OptNumberHealthMetrics with value set to v.

func (*OptNumberHealthMetrics) Decode

func (o *OptNumberHealthMetrics) Decode(d *jx.Decoder) error

Decode decodes NumberHealthMetrics from json.

func (OptNumberHealthMetrics) Encode

func (o OptNumberHealthMetrics) Encode(e *jx.Encoder)

Encode encodes NumberHealthMetrics as json.

func (OptNumberHealthMetrics) Get

Get returns value and boolean that denotes whether value was set.

func (OptNumberHealthMetrics) IsSet

func (o OptNumberHealthMetrics) IsSet() bool

IsSet returns true if OptNumberHealthMetrics was set.

func (OptNumberHealthMetrics) MarshalJSON

func (s OptNumberHealthMetrics) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNumberHealthMetrics) Or

Or returns value if set, or given parameter if does not.

func (*OptNumberHealthMetrics) Reset

func (o *OptNumberHealthMetrics) Reset()

Reset unsets value.

func (*OptNumberHealthMetrics) SetTo

SetTo sets value to v.

func (*OptNumberHealthMetrics) UnmarshalJSON

func (s *OptNumberHealthMetrics) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNumberLookupRecord

type OptNumberLookupRecord struct {
	Value NumberLookupRecord
	Set   bool
}

OptNumberLookupRecord is optional NumberLookupRecord.

func NewOptNumberLookupRecord

func NewOptNumberLookupRecord(v NumberLookupRecord) OptNumberLookupRecord

NewOptNumberLookupRecord returns new OptNumberLookupRecord with value set to v.

func (*OptNumberLookupRecord) Decode

func (o *OptNumberLookupRecord) Decode(d *jx.Decoder) error

Decode decodes NumberLookupRecord from json.

func (OptNumberLookupRecord) Encode

func (o OptNumberLookupRecord) Encode(e *jx.Encoder)

Encode encodes NumberLookupRecord as json.

func (OptNumberLookupRecord) Get

Get returns value and boolean that denotes whether value was set.

func (OptNumberLookupRecord) IsSet

func (o OptNumberLookupRecord) IsSet() bool

IsSet returns true if OptNumberLookupRecord was set.

func (OptNumberLookupRecord) MarshalJSON

func (s OptNumberLookupRecord) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNumberLookupRecord) Or

Or returns value if set, or given parameter if does not.

func (*OptNumberLookupRecord) Reset

func (o *OptNumberLookupRecord) Reset()

Reset unsets value.

func (*OptNumberLookupRecord) SetTo

SetTo sets value to v.

func (*OptNumberLookupRecord) UnmarshalJSON

func (s *OptNumberLookupRecord) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNumberLookupType

type OptNumberLookupType struct {
	Value NumberLookupType
	Set   bool
}

OptNumberLookupType is optional NumberLookupType.

func NewOptNumberLookupType

func NewOptNumberLookupType(v NumberLookupType) OptNumberLookupType

NewOptNumberLookupType returns new OptNumberLookupType with value set to v.

func (OptNumberLookupType) Get

func (o OptNumberLookupType) Get() (v NumberLookupType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNumberLookupType) IsSet

func (o OptNumberLookupType) IsSet() bool

IsSet returns true if OptNumberLookupType was set.

func (OptNumberLookupType) Or

Or returns value if set, or given parameter if does not.

func (*OptNumberLookupType) Reset

func (o *OptNumberLookupType) Reset()

Reset unsets value.

func (*OptNumberLookupType) SetTo

SetTo sets value to v.

type OptNumberOrderDocument

type OptNumberOrderDocument struct {
	Value NumberOrderDocument
	Set   bool
}

OptNumberOrderDocument is optional NumberOrderDocument.

func NewOptNumberOrderDocument

func NewOptNumberOrderDocument(v NumberOrderDocument) OptNumberOrderDocument

NewOptNumberOrderDocument returns new OptNumberOrderDocument with value set to v.

func (*OptNumberOrderDocument) Decode

func (o *OptNumberOrderDocument) Decode(d *jx.Decoder) error

Decode decodes NumberOrderDocument from json.

func (OptNumberOrderDocument) Encode

func (o OptNumberOrderDocument) Encode(e *jx.Encoder)

Encode encodes NumberOrderDocument as json.

func (OptNumberOrderDocument) Get

Get returns value and boolean that denotes whether value was set.

func (OptNumberOrderDocument) IsSet

func (o OptNumberOrderDocument) IsSet() bool

IsSet returns true if OptNumberOrderDocument was set.

func (OptNumberOrderDocument) MarshalJSON

func (s OptNumberOrderDocument) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNumberOrderDocument) Or

Or returns value if set, or given parameter if does not.

func (*OptNumberOrderDocument) Reset

func (o *OptNumberOrderDocument) Reset()

Reset unsets value.

func (*OptNumberOrderDocument) SetTo

SetTo sets value to v.

func (*OptNumberOrderDocument) UnmarshalJSON

func (s *OptNumberOrderDocument) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNumberOrderDocumentRequirementType

type OptNumberOrderDocumentRequirementType struct {
	Value NumberOrderDocumentRequirementType
	Set   bool
}

OptNumberOrderDocumentRequirementType is optional NumberOrderDocumentRequirementType.

func NewOptNumberOrderDocumentRequirementType

func NewOptNumberOrderDocumentRequirementType(v NumberOrderDocumentRequirementType) OptNumberOrderDocumentRequirementType

NewOptNumberOrderDocumentRequirementType returns new OptNumberOrderDocumentRequirementType with value set to v.

func (*OptNumberOrderDocumentRequirementType) Decode

Decode decodes NumberOrderDocumentRequirementType from json.

func (OptNumberOrderDocumentRequirementType) Encode

Encode encodes NumberOrderDocumentRequirementType as json.

func (OptNumberOrderDocumentRequirementType) Get

Get returns value and boolean that denotes whether value was set.

func (OptNumberOrderDocumentRequirementType) IsSet

IsSet returns true if OptNumberOrderDocumentRequirementType was set.

func (OptNumberOrderDocumentRequirementType) MarshalJSON

func (s OptNumberOrderDocumentRequirementType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNumberOrderDocumentRequirementType) Or

Or returns value if set, or given parameter if does not.

func (*OptNumberOrderDocumentRequirementType) Reset

Reset unsets value.

func (*OptNumberOrderDocumentRequirementType) SetTo

SetTo sets value to v.

func (*OptNumberOrderDocumentRequirementType) UnmarshalJSON

func (s *OptNumberOrderDocumentRequirementType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNumberOrderPhoneNumber

type OptNumberOrderPhoneNumber struct {
	Value NumberOrderPhoneNumber
	Set   bool
}

OptNumberOrderPhoneNumber is optional NumberOrderPhoneNumber.

func NewOptNumberOrderPhoneNumber

func NewOptNumberOrderPhoneNumber(v NumberOrderPhoneNumber) OptNumberOrderPhoneNumber

NewOptNumberOrderPhoneNumber returns new OptNumberOrderPhoneNumber with value set to v.

func (*OptNumberOrderPhoneNumber) Decode

func (o *OptNumberOrderPhoneNumber) Decode(d *jx.Decoder) error

Decode decodes NumberOrderPhoneNumber from json.

func (OptNumberOrderPhoneNumber) Encode

func (o OptNumberOrderPhoneNumber) Encode(e *jx.Encoder)

Encode encodes NumberOrderPhoneNumber as json.

func (OptNumberOrderPhoneNumber) Get

Get returns value and boolean that denotes whether value was set.

func (OptNumberOrderPhoneNumber) IsSet

func (o OptNumberOrderPhoneNumber) IsSet() bool

IsSet returns true if OptNumberOrderPhoneNumber was set.

func (OptNumberOrderPhoneNumber) MarshalJSON

func (s OptNumberOrderPhoneNumber) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNumberOrderPhoneNumber) Or

Or returns value if set, or given parameter if does not.

func (*OptNumberOrderPhoneNumber) Reset

func (o *OptNumberOrderPhoneNumber) Reset()

Reset unsets value.

func (*OptNumberOrderPhoneNumber) SetTo

SetTo sets value to v.

func (*OptNumberOrderPhoneNumber) UnmarshalJSON

func (s *OptNumberOrderPhoneNumber) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNumberOrderPhoneNumberPhoneNumberType

type OptNumberOrderPhoneNumberPhoneNumberType struct {
	Value NumberOrderPhoneNumberPhoneNumberType
	Set   bool
}

OptNumberOrderPhoneNumberPhoneNumberType is optional NumberOrderPhoneNumberPhoneNumberType.

func NewOptNumberOrderPhoneNumberPhoneNumberType

func NewOptNumberOrderPhoneNumberPhoneNumberType(v NumberOrderPhoneNumberPhoneNumberType) OptNumberOrderPhoneNumberPhoneNumberType

NewOptNumberOrderPhoneNumberPhoneNumberType returns new OptNumberOrderPhoneNumberPhoneNumberType with value set to v.

func (*OptNumberOrderPhoneNumberPhoneNumberType) Decode

Decode decodes NumberOrderPhoneNumberPhoneNumberType from json.

func (OptNumberOrderPhoneNumberPhoneNumberType) Encode

Encode encodes NumberOrderPhoneNumberPhoneNumberType as json.

func (OptNumberOrderPhoneNumberPhoneNumberType) Get

Get returns value and boolean that denotes whether value was set.

func (OptNumberOrderPhoneNumberPhoneNumberType) IsSet

IsSet returns true if OptNumberOrderPhoneNumberPhoneNumberType was set.

func (OptNumberOrderPhoneNumberPhoneNumberType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptNumberOrderPhoneNumberPhoneNumberType) Or

Or returns value if set, or given parameter if does not.

func (*OptNumberOrderPhoneNumberPhoneNumberType) Reset

Reset unsets value.

func (*OptNumberOrderPhoneNumberPhoneNumberType) SetTo

SetTo sets value to v.

func (*OptNumberOrderPhoneNumberPhoneNumberType) UnmarshalJSON

func (s *OptNumberOrderPhoneNumberPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNumberOrderPhoneNumberStatus

type OptNumberOrderPhoneNumberStatus struct {
	Value NumberOrderPhoneNumberStatus
	Set   bool
}

OptNumberOrderPhoneNumberStatus is optional NumberOrderPhoneNumberStatus.

func NewOptNumberOrderPhoneNumberStatus

func NewOptNumberOrderPhoneNumberStatus(v NumberOrderPhoneNumberStatus) OptNumberOrderPhoneNumberStatus

NewOptNumberOrderPhoneNumberStatus returns new OptNumberOrderPhoneNumberStatus with value set to v.

func (*OptNumberOrderPhoneNumberStatus) Decode

Decode decodes NumberOrderPhoneNumberStatus from json.

func (OptNumberOrderPhoneNumberStatus) Encode

Encode encodes NumberOrderPhoneNumberStatus as json.

func (OptNumberOrderPhoneNumberStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptNumberOrderPhoneNumberStatus) IsSet

IsSet returns true if OptNumberOrderPhoneNumberStatus was set.

func (OptNumberOrderPhoneNumberStatus) MarshalJSON

func (s OptNumberOrderPhoneNumberStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNumberOrderPhoneNumberStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptNumberOrderPhoneNumberStatus) Reset

Reset unsets value.

func (*OptNumberOrderPhoneNumberStatus) SetTo

SetTo sets value to v.

func (*OptNumberOrderPhoneNumberStatus) UnmarshalJSON

func (s *OptNumberOrderPhoneNumberStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNumberReservation

type OptNumberReservation struct {
	Value NumberReservation
	Set   bool
}

OptNumberReservation is optional NumberReservation.

func NewOptNumberReservation

func NewOptNumberReservation(v NumberReservation) OptNumberReservation

NewOptNumberReservation returns new OptNumberReservation with value set to v.

func (*OptNumberReservation) Decode

func (o *OptNumberReservation) Decode(d *jx.Decoder) error

Decode decodes NumberReservation from json.

func (OptNumberReservation) Encode

func (o OptNumberReservation) Encode(e *jx.Encoder)

Encode encodes NumberReservation as json.

func (OptNumberReservation) Get

Get returns value and boolean that denotes whether value was set.

func (OptNumberReservation) IsSet

func (o OptNumberReservation) IsSet() bool

IsSet returns true if OptNumberReservation was set.

func (OptNumberReservation) MarshalJSON

func (s OptNumberReservation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNumberReservation) Or

Or returns value if set, or given parameter if does not.

func (*OptNumberReservation) Reset

func (o *OptNumberReservation) Reset()

Reset unsets value.

func (*OptNumberReservation) SetTo

SetTo sets value to v.

func (*OptNumberReservation) UnmarshalJSON

func (s *OptNumberReservation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNumberReservationStatus

type OptNumberReservationStatus struct {
	Value NumberReservationStatus
	Set   bool
}

OptNumberReservationStatus is optional NumberReservationStatus.

func NewOptNumberReservationStatus

func NewOptNumberReservationStatus(v NumberReservationStatus) OptNumberReservationStatus

NewOptNumberReservationStatus returns new OptNumberReservationStatus with value set to v.

func (*OptNumberReservationStatus) Decode

Decode decodes NumberReservationStatus from json.

func (OptNumberReservationStatus) Encode

func (o OptNumberReservationStatus) Encode(e *jx.Encoder)

Encode encodes NumberReservationStatus as json.

func (OptNumberReservationStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptNumberReservationStatus) IsSet

func (o OptNumberReservationStatus) IsSet() bool

IsSet returns true if OptNumberReservationStatus was set.

func (OptNumberReservationStatus) MarshalJSON

func (s OptNumberReservationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNumberReservationStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptNumberReservationStatus) Reset

func (o *OptNumberReservationStatus) Reset()

Reset unsets value.

func (*OptNumberReservationStatus) SetTo

SetTo sets value to v.

func (*OptNumberReservationStatus) UnmarshalJSON

func (s *OptNumberReservationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundCallRecording

type OptOutboundCallRecording struct {
	Value OutboundCallRecording
	Set   bool
}

OptOutboundCallRecording is optional OutboundCallRecording.

func NewOptOutboundCallRecording

func NewOptOutboundCallRecording(v OutboundCallRecording) OptOutboundCallRecording

NewOptOutboundCallRecording returns new OptOutboundCallRecording with value set to v.

func (*OptOutboundCallRecording) Decode

func (o *OptOutboundCallRecording) Decode(d *jx.Decoder) error

Decode decodes OutboundCallRecording from json.

func (OptOutboundCallRecording) Encode

func (o OptOutboundCallRecording) Encode(e *jx.Encoder)

Encode encodes OutboundCallRecording as json.

func (OptOutboundCallRecording) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundCallRecording) IsSet

func (o OptOutboundCallRecording) IsSet() bool

IsSet returns true if OptOutboundCallRecording was set.

func (OptOutboundCallRecording) MarshalJSON

func (s OptOutboundCallRecording) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundCallRecording) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundCallRecording) Reset

func (o *OptOutboundCallRecording) Reset()

Reset unsets value.

func (*OptOutboundCallRecording) SetTo

SetTo sets value to v.

func (*OptOutboundCallRecording) UnmarshalJSON

func (s *OptOutboundCallRecording) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundCallRecordingCallRecordingChannels

type OptOutboundCallRecordingCallRecordingChannels struct {
	Value OutboundCallRecordingCallRecordingChannels
	Set   bool
}

OptOutboundCallRecordingCallRecordingChannels is optional OutboundCallRecordingCallRecordingChannels.

func NewOptOutboundCallRecordingCallRecordingChannels

func NewOptOutboundCallRecordingCallRecordingChannels(v OutboundCallRecordingCallRecordingChannels) OptOutboundCallRecordingCallRecordingChannels

NewOptOutboundCallRecordingCallRecordingChannels returns new OptOutboundCallRecordingCallRecordingChannels with value set to v.

func (*OptOutboundCallRecordingCallRecordingChannels) Decode

Decode decodes OutboundCallRecordingCallRecordingChannels from json.

func (OptOutboundCallRecordingCallRecordingChannels) Encode

Encode encodes OutboundCallRecordingCallRecordingChannels as json.

func (OptOutboundCallRecordingCallRecordingChannels) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundCallRecordingCallRecordingChannels) IsSet

IsSet returns true if OptOutboundCallRecordingCallRecordingChannels was set.

func (OptOutboundCallRecordingCallRecordingChannels) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundCallRecordingCallRecordingChannels) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundCallRecordingCallRecordingChannels) Reset

Reset unsets value.

func (*OptOutboundCallRecordingCallRecordingChannels) SetTo

SetTo sets value to v.

func (*OptOutboundCallRecordingCallRecordingChannels) UnmarshalJSON

func (s *OptOutboundCallRecordingCallRecordingChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundCallRecordingCallRecordingFormat

type OptOutboundCallRecordingCallRecordingFormat struct {
	Value OutboundCallRecordingCallRecordingFormat
	Set   bool
}

OptOutboundCallRecordingCallRecordingFormat is optional OutboundCallRecordingCallRecordingFormat.

func NewOptOutboundCallRecordingCallRecordingFormat

func NewOptOutboundCallRecordingCallRecordingFormat(v OutboundCallRecordingCallRecordingFormat) OptOutboundCallRecordingCallRecordingFormat

NewOptOutboundCallRecordingCallRecordingFormat returns new OptOutboundCallRecordingCallRecordingFormat with value set to v.

func (*OptOutboundCallRecordingCallRecordingFormat) Decode

Decode decodes OutboundCallRecordingCallRecordingFormat from json.

func (OptOutboundCallRecordingCallRecordingFormat) Encode

Encode encodes OutboundCallRecordingCallRecordingFormat as json.

func (OptOutboundCallRecordingCallRecordingFormat) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundCallRecordingCallRecordingFormat) IsSet

IsSet returns true if OptOutboundCallRecordingCallRecordingFormat was set.

func (OptOutboundCallRecordingCallRecordingFormat) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundCallRecordingCallRecordingFormat) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundCallRecordingCallRecordingFormat) Reset

Reset unsets value.

func (*OptOutboundCallRecordingCallRecordingFormat) SetTo

SetTo sets value to v.

func (*OptOutboundCallRecordingCallRecordingFormat) UnmarshalJSON

func (s *OptOutboundCallRecordingCallRecordingFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundCallRecordingCallRecordingType

type OptOutboundCallRecordingCallRecordingType struct {
	Value OutboundCallRecordingCallRecordingType
	Set   bool
}

OptOutboundCallRecordingCallRecordingType is optional OutboundCallRecordingCallRecordingType.

func NewOptOutboundCallRecordingCallRecordingType

func NewOptOutboundCallRecordingCallRecordingType(v OutboundCallRecordingCallRecordingType) OptOutboundCallRecordingCallRecordingType

NewOptOutboundCallRecordingCallRecordingType returns new OptOutboundCallRecordingCallRecordingType with value set to v.

func (*OptOutboundCallRecordingCallRecordingType) Decode

Decode decodes OutboundCallRecordingCallRecordingType from json.

func (OptOutboundCallRecordingCallRecordingType) Encode

Encode encodes OutboundCallRecordingCallRecordingType as json.

func (OptOutboundCallRecordingCallRecordingType) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundCallRecordingCallRecordingType) IsSet

IsSet returns true if OptOutboundCallRecordingCallRecordingType was set.

func (OptOutboundCallRecordingCallRecordingType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundCallRecordingCallRecordingType) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundCallRecordingCallRecordingType) Reset

Reset unsets value.

func (*OptOutboundCallRecordingCallRecordingType) SetTo

SetTo sets value to v.

func (*OptOutboundCallRecordingCallRecordingType) UnmarshalJSON

func (s *OptOutboundCallRecordingCallRecordingType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundMessagePayload

type OptOutboundMessagePayload struct {
	Value OutboundMessagePayload
	Set   bool
}

OptOutboundMessagePayload is optional OutboundMessagePayload.

func NewOptOutboundMessagePayload

func NewOptOutboundMessagePayload(v OutboundMessagePayload) OptOutboundMessagePayload

NewOptOutboundMessagePayload returns new OptOutboundMessagePayload with value set to v.

func (*OptOutboundMessagePayload) Decode

func (o *OptOutboundMessagePayload) Decode(d *jx.Decoder) error

Decode decodes OutboundMessagePayload from json.

func (OptOutboundMessagePayload) Encode

func (o OptOutboundMessagePayload) Encode(e *jx.Encoder)

Encode encodes OutboundMessagePayload as json.

func (OptOutboundMessagePayload) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundMessagePayload) IsSet

func (o OptOutboundMessagePayload) IsSet() bool

IsSet returns true if OptOutboundMessagePayload was set.

func (OptOutboundMessagePayload) MarshalJSON

func (s OptOutboundMessagePayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundMessagePayload) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundMessagePayload) Reset

func (o *OptOutboundMessagePayload) Reset()

Reset unsets value.

func (*OptOutboundMessagePayload) SetTo

SetTo sets value to v.

func (*OptOutboundMessagePayload) UnmarshalJSON

func (s *OptOutboundMessagePayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundMessagePayloadDirection

type OptOutboundMessagePayloadDirection struct {
	Value OutboundMessagePayloadDirection
	Set   bool
}

OptOutboundMessagePayloadDirection is optional OutboundMessagePayloadDirection.

func NewOptOutboundMessagePayloadDirection

func NewOptOutboundMessagePayloadDirection(v OutboundMessagePayloadDirection) OptOutboundMessagePayloadDirection

NewOptOutboundMessagePayloadDirection returns new OptOutboundMessagePayloadDirection with value set to v.

func (*OptOutboundMessagePayloadDirection) Decode

Decode decodes OutboundMessagePayloadDirection from json.

func (OptOutboundMessagePayloadDirection) Encode

Encode encodes OutboundMessagePayloadDirection as json.

func (OptOutboundMessagePayloadDirection) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundMessagePayloadDirection) IsSet

IsSet returns true if OptOutboundMessagePayloadDirection was set.

func (OptOutboundMessagePayloadDirection) MarshalJSON

func (s OptOutboundMessagePayloadDirection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundMessagePayloadDirection) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundMessagePayloadDirection) Reset

Reset unsets value.

func (*OptOutboundMessagePayloadDirection) SetTo

SetTo sets value to v.

func (*OptOutboundMessagePayloadDirection) UnmarshalJSON

func (s *OptOutboundMessagePayloadDirection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundMessagePayloadFrom

type OptOutboundMessagePayloadFrom struct {
	Value OutboundMessagePayloadFrom
	Set   bool
}

OptOutboundMessagePayloadFrom is optional OutboundMessagePayloadFrom.

func NewOptOutboundMessagePayloadFrom

func NewOptOutboundMessagePayloadFrom(v OutboundMessagePayloadFrom) OptOutboundMessagePayloadFrom

NewOptOutboundMessagePayloadFrom returns new OptOutboundMessagePayloadFrom with value set to v.

func (*OptOutboundMessagePayloadFrom) Decode

Decode decodes OutboundMessagePayloadFrom from json.

func (OptOutboundMessagePayloadFrom) Encode

Encode encodes OutboundMessagePayloadFrom as json.

func (OptOutboundMessagePayloadFrom) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundMessagePayloadFrom) IsSet

IsSet returns true if OptOutboundMessagePayloadFrom was set.

func (OptOutboundMessagePayloadFrom) MarshalJSON

func (s OptOutboundMessagePayloadFrom) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundMessagePayloadFrom) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundMessagePayloadFrom) Reset

func (o *OptOutboundMessagePayloadFrom) Reset()

Reset unsets value.

func (*OptOutboundMessagePayloadFrom) SetTo

SetTo sets value to v.

func (*OptOutboundMessagePayloadFrom) UnmarshalJSON

func (s *OptOutboundMessagePayloadFrom) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundMessagePayloadFromLineType

type OptOutboundMessagePayloadFromLineType struct {
	Value OutboundMessagePayloadFromLineType
	Set   bool
}

OptOutboundMessagePayloadFromLineType is optional OutboundMessagePayloadFromLineType.

func NewOptOutboundMessagePayloadFromLineType

func NewOptOutboundMessagePayloadFromLineType(v OutboundMessagePayloadFromLineType) OptOutboundMessagePayloadFromLineType

NewOptOutboundMessagePayloadFromLineType returns new OptOutboundMessagePayloadFromLineType with value set to v.

func (*OptOutboundMessagePayloadFromLineType) Decode

Decode decodes OutboundMessagePayloadFromLineType from json.

func (OptOutboundMessagePayloadFromLineType) Encode

Encode encodes OutboundMessagePayloadFromLineType as json.

func (OptOutboundMessagePayloadFromLineType) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundMessagePayloadFromLineType) IsSet

IsSet returns true if OptOutboundMessagePayloadFromLineType was set.

func (OptOutboundMessagePayloadFromLineType) MarshalJSON

func (s OptOutboundMessagePayloadFromLineType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundMessagePayloadFromLineType) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundMessagePayloadFromLineType) Reset

Reset unsets value.

func (*OptOutboundMessagePayloadFromLineType) SetTo

SetTo sets value to v.

func (*OptOutboundMessagePayloadFromLineType) UnmarshalJSON

func (s *OptOutboundMessagePayloadFromLineType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundMessagePayloadRecordType

type OptOutboundMessagePayloadRecordType struct {
	Value OutboundMessagePayloadRecordType
	Set   bool
}

OptOutboundMessagePayloadRecordType is optional OutboundMessagePayloadRecordType.

func NewOptOutboundMessagePayloadRecordType

func NewOptOutboundMessagePayloadRecordType(v OutboundMessagePayloadRecordType) OptOutboundMessagePayloadRecordType

NewOptOutboundMessagePayloadRecordType returns new OptOutboundMessagePayloadRecordType with value set to v.

func (*OptOutboundMessagePayloadRecordType) Decode

Decode decodes OutboundMessagePayloadRecordType from json.

func (OptOutboundMessagePayloadRecordType) Encode

Encode encodes OutboundMessagePayloadRecordType as json.

func (OptOutboundMessagePayloadRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundMessagePayloadRecordType) IsSet

IsSet returns true if OptOutboundMessagePayloadRecordType was set.

func (OptOutboundMessagePayloadRecordType) MarshalJSON

func (s OptOutboundMessagePayloadRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundMessagePayloadRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundMessagePayloadRecordType) Reset

Reset unsets value.

func (*OptOutboundMessagePayloadRecordType) SetTo

SetTo sets value to v.

func (*OptOutboundMessagePayloadRecordType) UnmarshalJSON

func (s *OptOutboundMessagePayloadRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundMessagePayloadToItemLineType

type OptOutboundMessagePayloadToItemLineType struct {
	Value OutboundMessagePayloadToItemLineType
	Set   bool
}

OptOutboundMessagePayloadToItemLineType is optional OutboundMessagePayloadToItemLineType.

func NewOptOutboundMessagePayloadToItemLineType

func NewOptOutboundMessagePayloadToItemLineType(v OutboundMessagePayloadToItemLineType) OptOutboundMessagePayloadToItemLineType

NewOptOutboundMessagePayloadToItemLineType returns new OptOutboundMessagePayloadToItemLineType with value set to v.

func (*OptOutboundMessagePayloadToItemLineType) Decode

Decode decodes OutboundMessagePayloadToItemLineType from json.

func (OptOutboundMessagePayloadToItemLineType) Encode

Encode encodes OutboundMessagePayloadToItemLineType as json.

func (OptOutboundMessagePayloadToItemLineType) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundMessagePayloadToItemLineType) IsSet

IsSet returns true if OptOutboundMessagePayloadToItemLineType was set.

func (OptOutboundMessagePayloadToItemLineType) MarshalJSON

func (s OptOutboundMessagePayloadToItemLineType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundMessagePayloadToItemLineType) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundMessagePayloadToItemLineType) Reset

Reset unsets value.

func (*OptOutboundMessagePayloadToItemLineType) SetTo

SetTo sets value to v.

func (*OptOutboundMessagePayloadToItemLineType) UnmarshalJSON

func (s *OptOutboundMessagePayloadToItemLineType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundMessagePayloadToItemStatus

type OptOutboundMessagePayloadToItemStatus struct {
	Value OutboundMessagePayloadToItemStatus
	Set   bool
}

OptOutboundMessagePayloadToItemStatus is optional OutboundMessagePayloadToItemStatus.

func NewOptOutboundMessagePayloadToItemStatus

func NewOptOutboundMessagePayloadToItemStatus(v OutboundMessagePayloadToItemStatus) OptOutboundMessagePayloadToItemStatus

NewOptOutboundMessagePayloadToItemStatus returns new OptOutboundMessagePayloadToItemStatus with value set to v.

func (*OptOutboundMessagePayloadToItemStatus) Decode

Decode decodes OutboundMessagePayloadToItemStatus from json.

func (OptOutboundMessagePayloadToItemStatus) Encode

Encode encodes OutboundMessagePayloadToItemStatus as json.

func (OptOutboundMessagePayloadToItemStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundMessagePayloadToItemStatus) IsSet

IsSet returns true if OptOutboundMessagePayloadToItemStatus was set.

func (OptOutboundMessagePayloadToItemStatus) MarshalJSON

func (s OptOutboundMessagePayloadToItemStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundMessagePayloadToItemStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundMessagePayloadToItemStatus) Reset

Reset unsets value.

func (*OptOutboundMessagePayloadToItemStatus) SetTo

SetTo sets value to v.

func (*OptOutboundMessagePayloadToItemStatus) UnmarshalJSON

func (s *OptOutboundMessagePayloadToItemStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundMessagePayloadType

type OptOutboundMessagePayloadType struct {
	Value OutboundMessagePayloadType
	Set   bool
}

OptOutboundMessagePayloadType is optional OutboundMessagePayloadType.

func NewOptOutboundMessagePayloadType

func NewOptOutboundMessagePayloadType(v OutboundMessagePayloadType) OptOutboundMessagePayloadType

NewOptOutboundMessagePayloadType returns new OptOutboundMessagePayloadType with value set to v.

func (*OptOutboundMessagePayloadType) Decode

Decode decodes OutboundMessagePayloadType from json.

func (OptOutboundMessagePayloadType) Encode

Encode encodes OutboundMessagePayloadType as json.

func (OptOutboundMessagePayloadType) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundMessagePayloadType) IsSet

IsSet returns true if OptOutboundMessagePayloadType was set.

func (OptOutboundMessagePayloadType) MarshalJSON

func (s OptOutboundMessagePayloadType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundMessagePayloadType) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundMessagePayloadType) Reset

func (o *OptOutboundMessagePayloadType) Reset()

Reset unsets value.

func (*OptOutboundMessagePayloadType) SetTo

SetTo sets value to v.

func (*OptOutboundMessagePayloadType) UnmarshalJSON

func (s *OptOutboundMessagePayloadType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundVoiceProfile

type OptOutboundVoiceProfile struct {
	Value OutboundVoiceProfile
	Set   bool
}

OptOutboundVoiceProfile is optional OutboundVoiceProfile.

func NewOptOutboundVoiceProfile

func NewOptOutboundVoiceProfile(v OutboundVoiceProfile) OptOutboundVoiceProfile

NewOptOutboundVoiceProfile returns new OptOutboundVoiceProfile with value set to v.

func (*OptOutboundVoiceProfile) Decode

func (o *OptOutboundVoiceProfile) Decode(d *jx.Decoder) error

Decode decodes OutboundVoiceProfile from json.

func (OptOutboundVoiceProfile) Encode

func (o OptOutboundVoiceProfile) Encode(e *jx.Encoder)

Encode encodes OutboundVoiceProfile as json.

func (OptOutboundVoiceProfile) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundVoiceProfile) IsSet

func (o OptOutboundVoiceProfile) IsSet() bool

IsSet returns true if OptOutboundVoiceProfile was set.

func (OptOutboundVoiceProfile) MarshalJSON

func (s OptOutboundVoiceProfile) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundVoiceProfile) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundVoiceProfile) Reset

func (o *OptOutboundVoiceProfile) Reset()

Reset unsets value.

func (*OptOutboundVoiceProfile) SetTo

SetTo sets value to v.

func (*OptOutboundVoiceProfile) UnmarshalJSON

func (s *OptOutboundVoiceProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOutboundVoiceProfileId

type OptOutboundVoiceProfileId struct {
	Value OutboundVoiceProfileId
	Set   bool
}

OptOutboundVoiceProfileId is optional OutboundVoiceProfileId.

func NewOptOutboundVoiceProfileId

func NewOptOutboundVoiceProfileId(v OutboundVoiceProfileId) OptOutboundVoiceProfileId

NewOptOutboundVoiceProfileId returns new OptOutboundVoiceProfileId with value set to v.

func (*OptOutboundVoiceProfileId) Decode

func (o *OptOutboundVoiceProfileId) Decode(d *jx.Decoder) error

Decode decodes OutboundVoiceProfileId from json.

func (OptOutboundVoiceProfileId) Encode

func (o OptOutboundVoiceProfileId) Encode(e *jx.Encoder)

Encode encodes OutboundVoiceProfileId as json.

func (OptOutboundVoiceProfileId) Get

Get returns value and boolean that denotes whether value was set.

func (OptOutboundVoiceProfileId) IsSet

func (o OptOutboundVoiceProfileId) IsSet() bool

IsSet returns true if OptOutboundVoiceProfileId was set.

func (OptOutboundVoiceProfileId) MarshalJSON

func (s OptOutboundVoiceProfileId) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOutboundVoiceProfileId) Or

Or returns value if set, or given parameter if does not.

func (*OptOutboundVoiceProfileId) Reset

func (o *OptOutboundVoiceProfileId) Reset()

Reset unsets value.

func (*OptOutboundVoiceProfileId) SetTo

SetTo sets value to v.

func (*OptOutboundVoiceProfileId) UnmarshalJSON

func (s *OptOutboundVoiceProfileId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaginationMeta

type OptPaginationMeta struct {
	Value PaginationMeta
	Set   bool
}

OptPaginationMeta is optional PaginationMeta.

func NewOptPaginationMeta

func NewOptPaginationMeta(v PaginationMeta) OptPaginationMeta

NewOptPaginationMeta returns new OptPaginationMeta with value set to v.

func (*OptPaginationMeta) Decode

func (o *OptPaginationMeta) Decode(d *jx.Decoder) error

Decode decodes PaginationMeta from json.

func (OptPaginationMeta) Encode

func (o OptPaginationMeta) Encode(e *jx.Encoder)

Encode encodes PaginationMeta as json.

func (OptPaginationMeta) Get

func (o OptPaginationMeta) Get() (v PaginationMeta, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPaginationMeta) IsSet

func (o OptPaginationMeta) IsSet() bool

IsSet returns true if OptPaginationMeta was set.

func (OptPaginationMeta) MarshalJSON

func (s OptPaginationMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPaginationMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptPaginationMeta) Reset

func (o *OptPaginationMeta) Reset()

Reset unsets value.

func (*OptPaginationMeta) SetTo

func (o *OptPaginationMeta) SetTo(v PaginationMeta)

SetTo sets value to v.

func (*OptPaginationMeta) UnmarshalJSON

func (s *OptPaginationMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaginationMetaSimple

type OptPaginationMetaSimple struct {
	Value PaginationMetaSimple
	Set   bool
}

OptPaginationMetaSimple is optional PaginationMetaSimple.

func NewOptPaginationMetaSimple

func NewOptPaginationMetaSimple(v PaginationMetaSimple) OptPaginationMetaSimple

NewOptPaginationMetaSimple returns new OptPaginationMetaSimple with value set to v.

func (*OptPaginationMetaSimple) Decode

func (o *OptPaginationMetaSimple) Decode(d *jx.Decoder) error

Decode decodes PaginationMetaSimple from json.

func (OptPaginationMetaSimple) Encode

func (o OptPaginationMetaSimple) Encode(e *jx.Encoder)

Encode encodes PaginationMetaSimple as json.

func (OptPaginationMetaSimple) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaginationMetaSimple) IsSet

func (o OptPaginationMetaSimple) IsSet() bool

IsSet returns true if OptPaginationMetaSimple was set.

func (OptPaginationMetaSimple) MarshalJSON

func (s OptPaginationMetaSimple) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPaginationMetaSimple) Or

Or returns value if set, or given parameter if does not.

func (*OptPaginationMetaSimple) Reset

func (o *OptPaginationMetaSimple) Reset()

Reset unsets value.

func (*OptPaginationMetaSimple) SetTo

SetTo sets value to v.

func (*OptPaginationMetaSimple) UnmarshalJSON

func (s *OptPaginationMetaSimple) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptParticipantResource

type OptParticipantResource struct {
	Value ParticipantResource
	Set   bool
}

OptParticipantResource is optional ParticipantResource.

func NewOptParticipantResource

func NewOptParticipantResource(v ParticipantResource) OptParticipantResource

NewOptParticipantResource returns new OptParticipantResource with value set to v.

func (*OptParticipantResource) Decode

func (o *OptParticipantResource) Decode(d *jx.Decoder) error

Decode decodes ParticipantResource from json.

func (OptParticipantResource) Encode

func (o OptParticipantResource) Encode(e *jx.Encoder)

Encode encodes ParticipantResource as json.

func (OptParticipantResource) Get

Get returns value and boolean that denotes whether value was set.

func (OptParticipantResource) IsSet

func (o OptParticipantResource) IsSet() bool

IsSet returns true if OptParticipantResource was set.

func (OptParticipantResource) MarshalJSON

func (s OptParticipantResource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptParticipantResource) Or

Or returns value if set, or given parameter if does not.

func (*OptParticipantResource) Reset

func (o *OptParticipantResource) Reset()

Reset unsets value.

func (*OptParticipantResource) SetTo

SetTo sets value to v.

func (*OptParticipantResource) UnmarshalJSON

func (s *OptParticipantResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptParticipantResourceIndex

type OptParticipantResourceIndex struct {
	Value ParticipantResourceIndex
	Set   bool
}

OptParticipantResourceIndex is optional ParticipantResourceIndex.

func NewOptParticipantResourceIndex

func NewOptParticipantResourceIndex(v ParticipantResourceIndex) OptParticipantResourceIndex

NewOptParticipantResourceIndex returns new OptParticipantResourceIndex with value set to v.

func (*OptParticipantResourceIndex) Decode

Decode decodes ParticipantResourceIndex from json.

func (OptParticipantResourceIndex) Encode

func (o OptParticipantResourceIndex) Encode(e *jx.Encoder)

Encode encodes ParticipantResourceIndex as json.

func (OptParticipantResourceIndex) Get

Get returns value and boolean that denotes whether value was set.

func (OptParticipantResourceIndex) IsSet

IsSet returns true if OptParticipantResourceIndex was set.

func (OptParticipantResourceIndex) MarshalJSON

func (s OptParticipantResourceIndex) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptParticipantResourceIndex) Or

Or returns value if set, or given parameter if does not.

func (*OptParticipantResourceIndex) Reset

func (o *OptParticipantResourceIndex) Reset()

Reset unsets value.

func (*OptParticipantResourceIndex) SetTo

SetTo sets value to v.

func (*OptParticipantResourceIndex) UnmarshalJSON

func (s *OptParticipantResourceIndex) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptParticipantResourceStatus

type OptParticipantResourceStatus struct {
	Value ParticipantResourceStatus
	Set   bool
}

OptParticipantResourceStatus is optional ParticipantResourceStatus.

func NewOptParticipantResourceStatus

func NewOptParticipantResourceStatus(v ParticipantResourceStatus) OptParticipantResourceStatus

NewOptParticipantResourceStatus returns new OptParticipantResourceStatus with value set to v.

func (*OptParticipantResourceStatus) Decode

Decode decodes ParticipantResourceStatus from json.

func (OptParticipantResourceStatus) Encode

Encode encodes ParticipantResourceStatus as json.

func (OptParticipantResourceStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptParticipantResourceStatus) IsSet

IsSet returns true if OptParticipantResourceStatus was set.

func (OptParticipantResourceStatus) MarshalJSON

func (s OptParticipantResourceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptParticipantResourceStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptParticipantResourceStatus) Reset

func (o *OptParticipantResourceStatus) Reset()

Reset unsets value.

func (*OptParticipantResourceStatus) SetTo

SetTo sets value to v.

func (*OptParticipantResourceStatus) UnmarshalJSON

func (s *OptParticipantResourceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberDeletedDetailed

type OptPhoneNumberDeletedDetailed struct {
	Value PhoneNumberDeletedDetailed
	Set   bool
}

OptPhoneNumberDeletedDetailed is optional PhoneNumberDeletedDetailed.

func NewOptPhoneNumberDeletedDetailed

func NewOptPhoneNumberDeletedDetailed(v PhoneNumberDeletedDetailed) OptPhoneNumberDeletedDetailed

NewOptPhoneNumberDeletedDetailed returns new OptPhoneNumberDeletedDetailed with value set to v.

func (*OptPhoneNumberDeletedDetailed) Decode

Decode decodes PhoneNumberDeletedDetailed from json.

func (OptPhoneNumberDeletedDetailed) Encode

Encode encodes PhoneNumberDeletedDetailed as json.

func (OptPhoneNumberDeletedDetailed) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberDeletedDetailed) IsSet

IsSet returns true if OptPhoneNumberDeletedDetailed was set.

func (OptPhoneNumberDeletedDetailed) MarshalJSON

func (s OptPhoneNumberDeletedDetailed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberDeletedDetailed) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberDeletedDetailed) Reset

func (o *OptPhoneNumberDeletedDetailed) Reset()

Reset unsets value.

func (*OptPhoneNumberDeletedDetailed) SetTo

SetTo sets value to v.

func (*OptPhoneNumberDeletedDetailed) UnmarshalJSON

func (s *OptPhoneNumberDeletedDetailed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberDeletedDetailedNumberLevelRouting

type OptPhoneNumberDeletedDetailedNumberLevelRouting struct {
	Value PhoneNumberDeletedDetailedNumberLevelRouting
	Set   bool
}

OptPhoneNumberDeletedDetailedNumberLevelRouting is optional PhoneNumberDeletedDetailedNumberLevelRouting.

func NewOptPhoneNumberDeletedDetailedNumberLevelRouting

func NewOptPhoneNumberDeletedDetailedNumberLevelRouting(v PhoneNumberDeletedDetailedNumberLevelRouting) OptPhoneNumberDeletedDetailedNumberLevelRouting

NewOptPhoneNumberDeletedDetailedNumberLevelRouting returns new OptPhoneNumberDeletedDetailedNumberLevelRouting with value set to v.

func (*OptPhoneNumberDeletedDetailedNumberLevelRouting) Decode

Decode decodes PhoneNumberDeletedDetailedNumberLevelRouting from json.

func (OptPhoneNumberDeletedDetailedNumberLevelRouting) Encode

Encode encodes PhoneNumberDeletedDetailedNumberLevelRouting as json.

func (OptPhoneNumberDeletedDetailedNumberLevelRouting) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberDeletedDetailedNumberLevelRouting) IsSet

IsSet returns true if OptPhoneNumberDeletedDetailedNumberLevelRouting was set.

func (OptPhoneNumberDeletedDetailedNumberLevelRouting) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberDeletedDetailedNumberLevelRouting) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberDeletedDetailedNumberLevelRouting) Reset

Reset unsets value.

func (*OptPhoneNumberDeletedDetailedNumberLevelRouting) SetTo

SetTo sets value to v.

func (*OptPhoneNumberDeletedDetailedNumberLevelRouting) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberDeletedDetailedPhoneNumberType

type OptPhoneNumberDeletedDetailedPhoneNumberType struct {
	Value PhoneNumberDeletedDetailedPhoneNumberType
	Set   bool
}

OptPhoneNumberDeletedDetailedPhoneNumberType is optional PhoneNumberDeletedDetailedPhoneNumberType.

func NewOptPhoneNumberDeletedDetailedPhoneNumberType

func NewOptPhoneNumberDeletedDetailedPhoneNumberType(v PhoneNumberDeletedDetailedPhoneNumberType) OptPhoneNumberDeletedDetailedPhoneNumberType

NewOptPhoneNumberDeletedDetailedPhoneNumberType returns new OptPhoneNumberDeletedDetailedPhoneNumberType with value set to v.

func (*OptPhoneNumberDeletedDetailedPhoneNumberType) Decode

Decode decodes PhoneNumberDeletedDetailedPhoneNumberType from json.

func (OptPhoneNumberDeletedDetailedPhoneNumberType) Encode

Encode encodes PhoneNumberDeletedDetailedPhoneNumberType as json.

func (OptPhoneNumberDeletedDetailedPhoneNumberType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberDeletedDetailedPhoneNumberType) IsSet

IsSet returns true if OptPhoneNumberDeletedDetailedPhoneNumberType was set.

func (OptPhoneNumberDeletedDetailedPhoneNumberType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberDeletedDetailedPhoneNumberType) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberDeletedDetailedPhoneNumberType) Reset

Reset unsets value.

func (*OptPhoneNumberDeletedDetailedPhoneNumberType) SetTo

SetTo sets value to v.

func (*OptPhoneNumberDeletedDetailedPhoneNumberType) UnmarshalJSON

func (s *OptPhoneNumberDeletedDetailedPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberDeletedDetailedStatus

type OptPhoneNumberDeletedDetailedStatus struct {
	Value PhoneNumberDeletedDetailedStatus
	Set   bool
}

OptPhoneNumberDeletedDetailedStatus is optional PhoneNumberDeletedDetailedStatus.

func NewOptPhoneNumberDeletedDetailedStatus

func NewOptPhoneNumberDeletedDetailedStatus(v PhoneNumberDeletedDetailedStatus) OptPhoneNumberDeletedDetailedStatus

NewOptPhoneNumberDeletedDetailedStatus returns new OptPhoneNumberDeletedDetailedStatus with value set to v.

func (*OptPhoneNumberDeletedDetailedStatus) Decode

Decode decodes PhoneNumberDeletedDetailedStatus from json.

func (OptPhoneNumberDeletedDetailedStatus) Encode

Encode encodes PhoneNumberDeletedDetailedStatus as json.

func (OptPhoneNumberDeletedDetailedStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberDeletedDetailedStatus) IsSet

IsSet returns true if OptPhoneNumberDeletedDetailedStatus was set.

func (OptPhoneNumberDeletedDetailedStatus) MarshalJSON

func (s OptPhoneNumberDeletedDetailedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberDeletedDetailedStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberDeletedDetailedStatus) Reset

Reset unsets value.

func (*OptPhoneNumberDeletedDetailedStatus) SetTo

SetTo sets value to v.

func (*OptPhoneNumberDeletedDetailedStatus) UnmarshalJSON

func (s *OptPhoneNumberDeletedDetailedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberDetailed

type OptPhoneNumberDetailed struct {
	Value PhoneNumberDetailed
	Set   bool
}

OptPhoneNumberDetailed is optional PhoneNumberDetailed.

func NewOptPhoneNumberDetailed

func NewOptPhoneNumberDetailed(v PhoneNumberDetailed) OptPhoneNumberDetailed

NewOptPhoneNumberDetailed returns new OptPhoneNumberDetailed with value set to v.

func (*OptPhoneNumberDetailed) Decode

func (o *OptPhoneNumberDetailed) Decode(d *jx.Decoder) error

Decode decodes PhoneNumberDetailed from json.

func (OptPhoneNumberDetailed) Encode

func (o OptPhoneNumberDetailed) Encode(e *jx.Encoder)

Encode encodes PhoneNumberDetailed as json.

func (OptPhoneNumberDetailed) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberDetailed) IsSet

func (o OptPhoneNumberDetailed) IsSet() bool

IsSet returns true if OptPhoneNumberDetailed was set.

func (OptPhoneNumberDetailed) MarshalJSON

func (s OptPhoneNumberDetailed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberDetailed) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberDetailed) Reset

func (o *OptPhoneNumberDetailed) Reset()

Reset unsets value.

func (*OptPhoneNumberDetailed) SetTo

SetTo sets value to v.

func (*OptPhoneNumberDetailed) UnmarshalJSON

func (s *OptPhoneNumberDetailed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberDetailedInboundCallScreening

type OptPhoneNumberDetailedInboundCallScreening struct {
	Value PhoneNumberDetailedInboundCallScreening
	Set   bool
}

OptPhoneNumberDetailedInboundCallScreening is optional PhoneNumberDetailedInboundCallScreening.

func NewOptPhoneNumberDetailedInboundCallScreening

func NewOptPhoneNumberDetailedInboundCallScreening(v PhoneNumberDetailedInboundCallScreening) OptPhoneNumberDetailedInboundCallScreening

NewOptPhoneNumberDetailedInboundCallScreening returns new OptPhoneNumberDetailedInboundCallScreening with value set to v.

func (*OptPhoneNumberDetailedInboundCallScreening) Decode

Decode decodes PhoneNumberDetailedInboundCallScreening from json.

func (OptPhoneNumberDetailedInboundCallScreening) Encode

Encode encodes PhoneNumberDetailedInboundCallScreening as json.

func (OptPhoneNumberDetailedInboundCallScreening) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberDetailedInboundCallScreening) IsSet

IsSet returns true if OptPhoneNumberDetailedInboundCallScreening was set.

func (OptPhoneNumberDetailedInboundCallScreening) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberDetailedInboundCallScreening) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberDetailedInboundCallScreening) Reset

Reset unsets value.

func (*OptPhoneNumberDetailedInboundCallScreening) SetTo

SetTo sets value to v.

func (*OptPhoneNumberDetailedInboundCallScreening) UnmarshalJSON

func (s *OptPhoneNumberDetailedInboundCallScreening) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberDetailedNumberLevelRouting

type OptPhoneNumberDetailedNumberLevelRouting struct {
	Value PhoneNumberDetailedNumberLevelRouting
	Set   bool
}

OptPhoneNumberDetailedNumberLevelRouting is optional PhoneNumberDetailedNumberLevelRouting.

func NewOptPhoneNumberDetailedNumberLevelRouting

func NewOptPhoneNumberDetailedNumberLevelRouting(v PhoneNumberDetailedNumberLevelRouting) OptPhoneNumberDetailedNumberLevelRouting

NewOptPhoneNumberDetailedNumberLevelRouting returns new OptPhoneNumberDetailedNumberLevelRouting with value set to v.

func (*OptPhoneNumberDetailedNumberLevelRouting) Decode

Decode decodes PhoneNumberDetailedNumberLevelRouting from json.

func (OptPhoneNumberDetailedNumberLevelRouting) Encode

Encode encodes PhoneNumberDetailedNumberLevelRouting as json.

func (OptPhoneNumberDetailedNumberLevelRouting) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberDetailedNumberLevelRouting) IsSet

IsSet returns true if OptPhoneNumberDetailedNumberLevelRouting was set.

func (OptPhoneNumberDetailedNumberLevelRouting) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberDetailedNumberLevelRouting) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberDetailedNumberLevelRouting) Reset

Reset unsets value.

func (*OptPhoneNumberDetailedNumberLevelRouting) SetTo

SetTo sets value to v.

func (*OptPhoneNumberDetailedNumberLevelRouting) UnmarshalJSON

func (s *OptPhoneNumberDetailedNumberLevelRouting) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberDetailedPhoneNumberType

type OptPhoneNumberDetailedPhoneNumberType struct {
	Value PhoneNumberDetailedPhoneNumberType
	Set   bool
}

OptPhoneNumberDetailedPhoneNumberType is optional PhoneNumberDetailedPhoneNumberType.

func NewOptPhoneNumberDetailedPhoneNumberType

func NewOptPhoneNumberDetailedPhoneNumberType(v PhoneNumberDetailedPhoneNumberType) OptPhoneNumberDetailedPhoneNumberType

NewOptPhoneNumberDetailedPhoneNumberType returns new OptPhoneNumberDetailedPhoneNumberType with value set to v.

func (*OptPhoneNumberDetailedPhoneNumberType) Decode

Decode decodes PhoneNumberDetailedPhoneNumberType from json.

func (OptPhoneNumberDetailedPhoneNumberType) Encode

Encode encodes PhoneNumberDetailedPhoneNumberType as json.

func (OptPhoneNumberDetailedPhoneNumberType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberDetailedPhoneNumberType) IsSet

IsSet returns true if OptPhoneNumberDetailedPhoneNumberType was set.

func (OptPhoneNumberDetailedPhoneNumberType) MarshalJSON

func (s OptPhoneNumberDetailedPhoneNumberType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberDetailedPhoneNumberType) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberDetailedPhoneNumberType) Reset

Reset unsets value.

func (*OptPhoneNumberDetailedPhoneNumberType) SetTo

SetTo sets value to v.

func (*OptPhoneNumberDetailedPhoneNumberType) UnmarshalJSON

func (s *OptPhoneNumberDetailedPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberDetailedStatus

type OptPhoneNumberDetailedStatus struct {
	Value PhoneNumberDetailedStatus
	Set   bool
}

OptPhoneNumberDetailedStatus is optional PhoneNumberDetailedStatus.

func NewOptPhoneNumberDetailedStatus

func NewOptPhoneNumberDetailedStatus(v PhoneNumberDetailedStatus) OptPhoneNumberDetailedStatus

NewOptPhoneNumberDetailedStatus returns new OptPhoneNumberDetailedStatus with value set to v.

func (*OptPhoneNumberDetailedStatus) Decode

Decode decodes PhoneNumberDetailedStatus from json.

func (OptPhoneNumberDetailedStatus) Encode

Encode encodes PhoneNumberDetailedStatus as json.

func (OptPhoneNumberDetailedStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberDetailedStatus) IsSet

IsSet returns true if OptPhoneNumberDetailedStatus was set.

func (OptPhoneNumberDetailedStatus) MarshalJSON

func (s OptPhoneNumberDetailedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberDetailedStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberDetailedStatus) Reset

func (o *OptPhoneNumberDetailedStatus) Reset()

Reset unsets value.

func (*OptPhoneNumberDetailedStatus) SetTo

SetTo sets value to v.

func (*OptPhoneNumberDetailedStatus) UnmarshalJSON

func (s *OptPhoneNumberDetailedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberWithMessagingSettings

type OptPhoneNumberWithMessagingSettings struct {
	Value PhoneNumberWithMessagingSettings
	Set   bool
}

OptPhoneNumberWithMessagingSettings is optional PhoneNumberWithMessagingSettings.

func NewOptPhoneNumberWithMessagingSettings

func NewOptPhoneNumberWithMessagingSettings(v PhoneNumberWithMessagingSettings) OptPhoneNumberWithMessagingSettings

NewOptPhoneNumberWithMessagingSettings returns new OptPhoneNumberWithMessagingSettings with value set to v.

func (*OptPhoneNumberWithMessagingSettings) Decode

Decode decodes PhoneNumberWithMessagingSettings from json.

func (OptPhoneNumberWithMessagingSettings) Encode

Encode encodes PhoneNumberWithMessagingSettings as json.

func (OptPhoneNumberWithMessagingSettings) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberWithMessagingSettings) IsSet

IsSet returns true if OptPhoneNumberWithMessagingSettings was set.

func (OptPhoneNumberWithMessagingSettings) MarshalJSON

func (s OptPhoneNumberWithMessagingSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberWithMessagingSettings) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberWithMessagingSettings) Reset

Reset unsets value.

func (*OptPhoneNumberWithMessagingSettings) SetTo

SetTo sets value to v.

func (*OptPhoneNumberWithMessagingSettings) UnmarshalJSON

func (s *OptPhoneNumberWithMessagingSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberWithMessagingSettingsFeatures

type OptPhoneNumberWithMessagingSettingsFeatures struct {
	Value PhoneNumberWithMessagingSettingsFeatures
	Set   bool
}

OptPhoneNumberWithMessagingSettingsFeatures is optional PhoneNumberWithMessagingSettingsFeatures.

func NewOptPhoneNumberWithMessagingSettingsFeatures

func NewOptPhoneNumberWithMessagingSettingsFeatures(v PhoneNumberWithMessagingSettingsFeatures) OptPhoneNumberWithMessagingSettingsFeatures

NewOptPhoneNumberWithMessagingSettingsFeatures returns new OptPhoneNumberWithMessagingSettingsFeatures with value set to v.

func (*OptPhoneNumberWithMessagingSettingsFeatures) Decode

Decode decodes PhoneNumberWithMessagingSettingsFeatures from json.

func (OptPhoneNumberWithMessagingSettingsFeatures) Encode

Encode encodes PhoneNumberWithMessagingSettingsFeatures as json.

func (OptPhoneNumberWithMessagingSettingsFeatures) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberWithMessagingSettingsFeatures) IsSet

IsSet returns true if OptPhoneNumberWithMessagingSettingsFeatures was set.

func (OptPhoneNumberWithMessagingSettingsFeatures) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberWithMessagingSettingsFeatures) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberWithMessagingSettingsFeatures) Reset

Reset unsets value.

func (*OptPhoneNumberWithMessagingSettingsFeatures) SetTo

SetTo sets value to v.

func (*OptPhoneNumberWithMessagingSettingsFeatures) UnmarshalJSON

func (s *OptPhoneNumberWithMessagingSettingsFeatures) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberWithMessagingSettingsRecordType

type OptPhoneNumberWithMessagingSettingsRecordType struct {
	Value PhoneNumberWithMessagingSettingsRecordType
	Set   bool
}

OptPhoneNumberWithMessagingSettingsRecordType is optional PhoneNumberWithMessagingSettingsRecordType.

func NewOptPhoneNumberWithMessagingSettingsRecordType

func NewOptPhoneNumberWithMessagingSettingsRecordType(v PhoneNumberWithMessagingSettingsRecordType) OptPhoneNumberWithMessagingSettingsRecordType

NewOptPhoneNumberWithMessagingSettingsRecordType returns new OptPhoneNumberWithMessagingSettingsRecordType with value set to v.

func (*OptPhoneNumberWithMessagingSettingsRecordType) Decode

Decode decodes PhoneNumberWithMessagingSettingsRecordType from json.

func (OptPhoneNumberWithMessagingSettingsRecordType) Encode

Encode encodes PhoneNumberWithMessagingSettingsRecordType as json.

func (OptPhoneNumberWithMessagingSettingsRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberWithMessagingSettingsRecordType) IsSet

IsSet returns true if OptPhoneNumberWithMessagingSettingsRecordType was set.

func (OptPhoneNumberWithMessagingSettingsRecordType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberWithMessagingSettingsRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberWithMessagingSettingsRecordType) Reset

Reset unsets value.

func (*OptPhoneNumberWithMessagingSettingsRecordType) SetTo

SetTo sets value to v.

func (*OptPhoneNumberWithMessagingSettingsRecordType) UnmarshalJSON

func (s *OptPhoneNumberWithMessagingSettingsRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberWithMessagingSettingsType

type OptPhoneNumberWithMessagingSettingsType struct {
	Value PhoneNumberWithMessagingSettingsType
	Set   bool
}

OptPhoneNumberWithMessagingSettingsType is optional PhoneNumberWithMessagingSettingsType.

func NewOptPhoneNumberWithMessagingSettingsType

func NewOptPhoneNumberWithMessagingSettingsType(v PhoneNumberWithMessagingSettingsType) OptPhoneNumberWithMessagingSettingsType

NewOptPhoneNumberWithMessagingSettingsType returns new OptPhoneNumberWithMessagingSettingsType with value set to v.

func (*OptPhoneNumberWithMessagingSettingsType) Decode

Decode decodes PhoneNumberWithMessagingSettingsType from json.

func (OptPhoneNumberWithMessagingSettingsType) Encode

Encode encodes PhoneNumberWithMessagingSettingsType as json.

func (OptPhoneNumberWithMessagingSettingsType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberWithMessagingSettingsType) IsSet

IsSet returns true if OptPhoneNumberWithMessagingSettingsType was set.

func (OptPhoneNumberWithMessagingSettingsType) MarshalJSON

func (s OptPhoneNumberWithMessagingSettingsType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberWithMessagingSettingsType) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberWithMessagingSettingsType) Reset

Reset unsets value.

func (*OptPhoneNumberWithMessagingSettingsType) SetTo

SetTo sets value to v.

func (*OptPhoneNumberWithMessagingSettingsType) UnmarshalJSON

func (s *OptPhoneNumberWithMessagingSettingsType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberWithVoiceSettings

type OptPhoneNumberWithVoiceSettings struct {
	Value PhoneNumberWithVoiceSettings
	Set   bool
}

OptPhoneNumberWithVoiceSettings is optional PhoneNumberWithVoiceSettings.

func NewOptPhoneNumberWithVoiceSettings

func NewOptPhoneNumberWithVoiceSettings(v PhoneNumberWithVoiceSettings) OptPhoneNumberWithVoiceSettings

NewOptPhoneNumberWithVoiceSettings returns new OptPhoneNumberWithVoiceSettings with value set to v.

func (*OptPhoneNumberWithVoiceSettings) Decode

Decode decodes PhoneNumberWithVoiceSettings from json.

func (OptPhoneNumberWithVoiceSettings) Encode

Encode encodes PhoneNumberWithVoiceSettings as json.

func (OptPhoneNumberWithVoiceSettings) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberWithVoiceSettings) IsSet

IsSet returns true if OptPhoneNumberWithVoiceSettings was set.

func (OptPhoneNumberWithVoiceSettings) MarshalJSON

func (s OptPhoneNumberWithVoiceSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberWithVoiceSettings) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberWithVoiceSettings) Reset

Reset unsets value.

func (*OptPhoneNumberWithVoiceSettings) SetTo

SetTo sets value to v.

func (*OptPhoneNumberWithVoiceSettings) UnmarshalJSON

func (s *OptPhoneNumberWithVoiceSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberWithVoiceSettingsInboundCallScreening

type OptPhoneNumberWithVoiceSettingsInboundCallScreening struct {
	Value PhoneNumberWithVoiceSettingsInboundCallScreening
	Set   bool
}

OptPhoneNumberWithVoiceSettingsInboundCallScreening is optional PhoneNumberWithVoiceSettingsInboundCallScreening.

func NewOptPhoneNumberWithVoiceSettingsInboundCallScreening

func NewOptPhoneNumberWithVoiceSettingsInboundCallScreening(v PhoneNumberWithVoiceSettingsInboundCallScreening) OptPhoneNumberWithVoiceSettingsInboundCallScreening

NewOptPhoneNumberWithVoiceSettingsInboundCallScreening returns new OptPhoneNumberWithVoiceSettingsInboundCallScreening with value set to v.

func (*OptPhoneNumberWithVoiceSettingsInboundCallScreening) Decode

Decode decodes PhoneNumberWithVoiceSettingsInboundCallScreening from json.

func (OptPhoneNumberWithVoiceSettingsInboundCallScreening) Encode

Encode encodes PhoneNumberWithVoiceSettingsInboundCallScreening as json.

func (OptPhoneNumberWithVoiceSettingsInboundCallScreening) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberWithVoiceSettingsInboundCallScreening) IsSet

IsSet returns true if OptPhoneNumberWithVoiceSettingsInboundCallScreening was set.

func (OptPhoneNumberWithVoiceSettingsInboundCallScreening) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberWithVoiceSettingsInboundCallScreening) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberWithVoiceSettingsInboundCallScreening) Reset

Reset unsets value.

func (*OptPhoneNumberWithVoiceSettingsInboundCallScreening) SetTo

SetTo sets value to v.

func (*OptPhoneNumberWithVoiceSettingsInboundCallScreening) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumberWithVoiceSettingsUsagePaymentMethod

type OptPhoneNumberWithVoiceSettingsUsagePaymentMethod struct {
	Value PhoneNumberWithVoiceSettingsUsagePaymentMethod
	Set   bool
}

OptPhoneNumberWithVoiceSettingsUsagePaymentMethod is optional PhoneNumberWithVoiceSettingsUsagePaymentMethod.

func NewOptPhoneNumberWithVoiceSettingsUsagePaymentMethod

func NewOptPhoneNumberWithVoiceSettingsUsagePaymentMethod(v PhoneNumberWithVoiceSettingsUsagePaymentMethod) OptPhoneNumberWithVoiceSettingsUsagePaymentMethod

NewOptPhoneNumberWithVoiceSettingsUsagePaymentMethod returns new OptPhoneNumberWithVoiceSettingsUsagePaymentMethod with value set to v.

func (*OptPhoneNumberWithVoiceSettingsUsagePaymentMethod) Decode

Decode decodes PhoneNumberWithVoiceSettingsUsagePaymentMethod from json.

func (OptPhoneNumberWithVoiceSettingsUsagePaymentMethod) Encode

Encode encodes PhoneNumberWithVoiceSettingsUsagePaymentMethod as json.

func (OptPhoneNumberWithVoiceSettingsUsagePaymentMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumberWithVoiceSettingsUsagePaymentMethod) IsSet

IsSet returns true if OptPhoneNumberWithVoiceSettingsUsagePaymentMethod was set.

func (OptPhoneNumberWithVoiceSettingsUsagePaymentMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumberWithVoiceSettingsUsagePaymentMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumberWithVoiceSettingsUsagePaymentMethod) Reset

Reset unsets value.

func (*OptPhoneNumberWithVoiceSettingsUsagePaymentMethod) SetTo

SetTo sets value to v.

func (*OptPhoneNumberWithVoiceSettingsUsagePaymentMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumbersItemGoogleVerificationStatus

type OptPhoneNumbersItemGoogleVerificationStatus struct {
	Value PhoneNumbersItemGoogleVerificationStatus
	Set   bool
}

OptPhoneNumbersItemGoogleVerificationStatus is optional PhoneNumbersItemGoogleVerificationStatus.

func NewOptPhoneNumbersItemGoogleVerificationStatus

func NewOptPhoneNumbersItemGoogleVerificationStatus(v PhoneNumbersItemGoogleVerificationStatus) OptPhoneNumbersItemGoogleVerificationStatus

NewOptPhoneNumbersItemGoogleVerificationStatus returns new OptPhoneNumbersItemGoogleVerificationStatus with value set to v.

func (*OptPhoneNumbersItemGoogleVerificationStatus) Decode

Decode decodes PhoneNumbersItemGoogleVerificationStatus from json.

func (OptPhoneNumbersItemGoogleVerificationStatus) Encode

Encode encodes PhoneNumbersItemGoogleVerificationStatus as json.

func (OptPhoneNumbersItemGoogleVerificationStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumbersItemGoogleVerificationStatus) IsSet

IsSet returns true if OptPhoneNumbersItemGoogleVerificationStatus was set.

func (OptPhoneNumbersItemGoogleVerificationStatus) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumbersItemGoogleVerificationStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumbersItemGoogleVerificationStatus) Reset

Reset unsets value.

func (*OptPhoneNumbersItemGoogleVerificationStatus) SetTo

SetTo sets value to v.

func (*OptPhoneNumbersItemGoogleVerificationStatus) UnmarshalJSON

func (s *OptPhoneNumbersItemGoogleVerificationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumbersJob

type OptPhoneNumbersJob struct {
	Value PhoneNumbersJob
	Set   bool
}

OptPhoneNumbersJob is optional PhoneNumbersJob.

func NewOptPhoneNumbersJob

func NewOptPhoneNumbersJob(v PhoneNumbersJob) OptPhoneNumbersJob

NewOptPhoneNumbersJob returns new OptPhoneNumbersJob with value set to v.

func (*OptPhoneNumbersJob) Decode

func (o *OptPhoneNumbersJob) Decode(d *jx.Decoder) error

Decode decodes PhoneNumbersJob from json.

func (OptPhoneNumbersJob) Encode

func (o OptPhoneNumbersJob) Encode(e *jx.Encoder)

Encode encodes PhoneNumbersJob as json.

func (OptPhoneNumbersJob) Get

func (o OptPhoneNumbersJob) Get() (v PhoneNumbersJob, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumbersJob) IsSet

func (o OptPhoneNumbersJob) IsSet() bool

IsSet returns true if OptPhoneNumbersJob was set.

func (OptPhoneNumbersJob) MarshalJSON

func (s OptPhoneNumbersJob) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumbersJob) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumbersJob) Reset

func (o *OptPhoneNumbersJob) Reset()

Reset unsets value.

func (*OptPhoneNumbersJob) SetTo

func (o *OptPhoneNumbersJob) SetTo(v PhoneNumbersJob)

SetTo sets value to v.

func (*OptPhoneNumbersJob) UnmarshalJSON

func (s *OptPhoneNumbersJob) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumbersJobStatus

type OptPhoneNumbersJobStatus struct {
	Value PhoneNumbersJobStatus
	Set   bool
}

OptPhoneNumbersJobStatus is optional PhoneNumbersJobStatus.

func NewOptPhoneNumbersJobStatus

func NewOptPhoneNumbersJobStatus(v PhoneNumbersJobStatus) OptPhoneNumbersJobStatus

NewOptPhoneNumbersJobStatus returns new OptPhoneNumbersJobStatus with value set to v.

func (*OptPhoneNumbersJobStatus) Decode

func (o *OptPhoneNumbersJobStatus) Decode(d *jx.Decoder) error

Decode decodes PhoneNumbersJobStatus from json.

func (OptPhoneNumbersJobStatus) Encode

func (o OptPhoneNumbersJobStatus) Encode(e *jx.Encoder)

Encode encodes PhoneNumbersJobStatus as json.

func (OptPhoneNumbersJobStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumbersJobStatus) IsSet

func (o OptPhoneNumbersJobStatus) IsSet() bool

IsSet returns true if OptPhoneNumbersJobStatus was set.

func (OptPhoneNumbersJobStatus) MarshalJSON

func (s OptPhoneNumbersJobStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumbersJobStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumbersJobStatus) Reset

func (o *OptPhoneNumbersJobStatus) Reset()

Reset unsets value.

func (*OptPhoneNumbersJobStatus) SetTo

SetTo sets value to v.

func (*OptPhoneNumbersJobStatus) UnmarshalJSON

func (s *OptPhoneNumbersJobStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPhoneNumbersJobType

type OptPhoneNumbersJobType struct {
	Value PhoneNumbersJobType
	Set   bool
}

OptPhoneNumbersJobType is optional PhoneNumbersJobType.

func NewOptPhoneNumbersJobType

func NewOptPhoneNumbersJobType(v PhoneNumbersJobType) OptPhoneNumbersJobType

NewOptPhoneNumbersJobType returns new OptPhoneNumbersJobType with value set to v.

func (*OptPhoneNumbersJobType) Decode

func (o *OptPhoneNumbersJobType) Decode(d *jx.Decoder) error

Decode decodes PhoneNumbersJobType from json.

func (OptPhoneNumbersJobType) Encode

func (o OptPhoneNumbersJobType) Encode(e *jx.Encoder)

Encode encodes PhoneNumbersJobType as json.

func (OptPhoneNumbersJobType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPhoneNumbersJobType) IsSet

func (o OptPhoneNumbersJobType) IsSet() bool

IsSet returns true if OptPhoneNumbersJobType was set.

func (OptPhoneNumbersJobType) MarshalJSON

func (s OptPhoneNumbersJobType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPhoneNumbersJobType) Or

Or returns value if set, or given parameter if does not.

func (*OptPhoneNumbersJobType) Reset

func (o *OptPhoneNumbersJobType) Reset()

Reset unsets value.

func (*OptPhoneNumbersJobType) SetTo

SetTo sets value to v.

func (*OptPhoneNumbersJobType) UnmarshalJSON

func (s *OptPhoneNumbersJobType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPlayAudioUrlRequestAudioType

type OptPlayAudioUrlRequestAudioType struct {
	Value PlayAudioUrlRequestAudioType
	Set   bool
}

OptPlayAudioUrlRequestAudioType is optional PlayAudioUrlRequestAudioType.

func NewOptPlayAudioUrlRequestAudioType

func NewOptPlayAudioUrlRequestAudioType(v PlayAudioUrlRequestAudioType) OptPlayAudioUrlRequestAudioType

NewOptPlayAudioUrlRequestAudioType returns new OptPlayAudioUrlRequestAudioType with value set to v.

func (*OptPlayAudioUrlRequestAudioType) Decode

Decode decodes PlayAudioUrlRequestAudioType from json.

func (OptPlayAudioUrlRequestAudioType) Encode

Encode encodes PlayAudioUrlRequestAudioType as json.

func (OptPlayAudioUrlRequestAudioType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPlayAudioUrlRequestAudioType) IsSet

IsSet returns true if OptPlayAudioUrlRequestAudioType was set.

func (OptPlayAudioUrlRequestAudioType) MarshalJSON

func (s OptPlayAudioUrlRequestAudioType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPlayAudioUrlRequestAudioType) Or

Or returns value if set, or given parameter if does not.

func (*OptPlayAudioUrlRequestAudioType) Reset

Reset unsets value.

func (*OptPlayAudioUrlRequestAudioType) SetTo

SetTo sets value to v.

func (*OptPlayAudioUrlRequestAudioType) UnmarshalJSON

func (s *OptPlayAudioUrlRequestAudioType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPlayBeep

type OptPlayBeep struct {
	Value PlayBeep
	Set   bool
}

OptPlayBeep is optional PlayBeep.

func NewOptPlayBeep

func NewOptPlayBeep(v PlayBeep) OptPlayBeep

NewOptPlayBeep returns new OptPlayBeep with value set to v.

func (OptPlayBeep) Get

func (o OptPlayBeep) Get() (v PlayBeep, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPlayBeep) IsSet

func (o OptPlayBeep) IsSet() bool

IsSet returns true if OptPlayBeep was set.

func (OptPlayBeep) Or

func (o OptPlayBeep) Or(d PlayBeep) PlayBeep

Or returns value if set, or given parameter if does not.

func (*OptPlayBeep) Reset

func (o *OptPlayBeep) Reset()

Reset unsets value.

func (*OptPlayBeep) SetTo

func (o *OptPlayBeep) SetTo(v PlayBeep)

SetTo sets value to v.

type OptPortability

type OptPortability struct {
	Value Portability
	Set   bool
}

OptPortability is optional Portability.

func NewOptPortability

func NewOptPortability(v Portability) OptPortability

NewOptPortability returns new OptPortability with value set to v.

func (*OptPortability) Decode

func (o *OptPortability) Decode(d *jx.Decoder) error

Decode decodes Portability from json.

func (OptPortability) Encode

func (o OptPortability) Encode(e *jx.Encoder)

Encode encodes Portability as json.

func (OptPortability) Get

func (o OptPortability) Get() (v Portability, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPortability) IsSet

func (o OptPortability) IsSet() bool

IsSet returns true if OptPortability was set.

func (OptPortability) MarshalJSON

func (s OptPortability) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortability) Or

Or returns value if set, or given parameter if does not.

func (*OptPortability) Reset

func (o *OptPortability) Reset()

Reset unsets value.

func (*OptPortability) SetTo

func (o *OptPortability) SetTo(v Portability)

SetTo sets value to v.

func (*OptPortability) UnmarshalJSON

func (s *OptPortability) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortabilityPortedStatus

type OptPortabilityPortedStatus struct {
	Value PortabilityPortedStatus
	Set   bool
}

OptPortabilityPortedStatus is optional PortabilityPortedStatus.

func NewOptPortabilityPortedStatus

func NewOptPortabilityPortedStatus(v PortabilityPortedStatus) OptPortabilityPortedStatus

NewOptPortabilityPortedStatus returns new OptPortabilityPortedStatus with value set to v.

func (*OptPortabilityPortedStatus) Decode

Decode decodes PortabilityPortedStatus from json.

func (OptPortabilityPortedStatus) Encode

func (o OptPortabilityPortedStatus) Encode(e *jx.Encoder)

Encode encodes PortabilityPortedStatus as json.

func (OptPortabilityPortedStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortabilityPortedStatus) IsSet

func (o OptPortabilityPortedStatus) IsSet() bool

IsSet returns true if OptPortabilityPortedStatus was set.

func (OptPortabilityPortedStatus) MarshalJSON

func (s OptPortabilityPortedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortabilityPortedStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPortabilityPortedStatus) Reset

func (o *OptPortabilityPortedStatus) Reset()

Reset unsets value.

func (*OptPortabilityPortedStatus) SetTo

SetTo sets value to v.

func (*OptPortabilityPortedStatus) UnmarshalJSON

func (s *OptPortabilityPortedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortabilityStatus

type OptPortabilityStatus struct {
	Value PortabilityStatus
	Set   bool
}

OptPortabilityStatus is optional PortabilityStatus.

func NewOptPortabilityStatus

func NewOptPortabilityStatus(v PortabilityStatus) OptPortabilityStatus

NewOptPortabilityStatus returns new OptPortabilityStatus with value set to v.

func (*OptPortabilityStatus) Decode

func (o *OptPortabilityStatus) Decode(d *jx.Decoder) error

Decode decodes PortabilityStatus from json.

func (OptPortabilityStatus) Encode

func (o OptPortabilityStatus) Encode(e *jx.Encoder)

Encode encodes PortabilityStatus as json.

func (OptPortabilityStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortabilityStatus) IsSet

func (o OptPortabilityStatus) IsSet() bool

IsSet returns true if OptPortabilityStatus was set.

func (OptPortabilityStatus) MarshalJSON

func (s OptPortabilityStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortabilityStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPortabilityStatus) Reset

func (o *OptPortabilityStatus) Reset()

Reset unsets value.

func (*OptPortabilityStatus) SetTo

SetTo sets value to v.

func (*OptPortabilityStatus) UnmarshalJSON

func (s *OptPortabilityStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingAdditionalDocumentDocumentType

type OptPortingAdditionalDocumentDocumentType struct {
	Value PortingAdditionalDocumentDocumentType
	Set   bool
}

OptPortingAdditionalDocumentDocumentType is optional PortingAdditionalDocumentDocumentType.

func NewOptPortingAdditionalDocumentDocumentType

func NewOptPortingAdditionalDocumentDocumentType(v PortingAdditionalDocumentDocumentType) OptPortingAdditionalDocumentDocumentType

NewOptPortingAdditionalDocumentDocumentType returns new OptPortingAdditionalDocumentDocumentType with value set to v.

func (*OptPortingAdditionalDocumentDocumentType) Decode

Decode decodes PortingAdditionalDocumentDocumentType from json.

func (OptPortingAdditionalDocumentDocumentType) Encode

Encode encodes PortingAdditionalDocumentDocumentType as json.

func (OptPortingAdditionalDocumentDocumentType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingAdditionalDocumentDocumentType) IsSet

IsSet returns true if OptPortingAdditionalDocumentDocumentType was set.

func (OptPortingAdditionalDocumentDocumentType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPortingAdditionalDocumentDocumentType) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingAdditionalDocumentDocumentType) Reset

Reset unsets value.

func (*OptPortingAdditionalDocumentDocumentType) SetTo

SetTo sets value to v.

func (*OptPortingAdditionalDocumentDocumentType) UnmarshalJSON

func (s *OptPortingAdditionalDocumentDocumentType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingLOAConfiguration

type OptPortingLOAConfiguration struct {
	Value PortingLOAConfiguration
	Set   bool
}

OptPortingLOAConfiguration is optional PortingLOAConfiguration.

func NewOptPortingLOAConfiguration

func NewOptPortingLOAConfiguration(v PortingLOAConfiguration) OptPortingLOAConfiguration

NewOptPortingLOAConfiguration returns new OptPortingLOAConfiguration with value set to v.

func (*OptPortingLOAConfiguration) Decode

Decode decodes PortingLOAConfiguration from json.

func (OptPortingLOAConfiguration) Encode

func (o OptPortingLOAConfiguration) Encode(e *jx.Encoder)

Encode encodes PortingLOAConfiguration as json.

func (OptPortingLOAConfiguration) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingLOAConfiguration) IsSet

func (o OptPortingLOAConfiguration) IsSet() bool

IsSet returns true if OptPortingLOAConfiguration was set.

func (OptPortingLOAConfiguration) MarshalJSON

func (s OptPortingLOAConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingLOAConfiguration) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingLOAConfiguration) Reset

func (o *OptPortingLOAConfiguration) Reset()

Reset unsets value.

func (*OptPortingLOAConfiguration) SetTo

SetTo sets value to v.

func (*OptPortingLOAConfiguration) UnmarshalJSON

func (s *OptPortingLOAConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingLOAConfigurationAddress

type OptPortingLOAConfigurationAddress struct {
	Value PortingLOAConfigurationAddress
	Set   bool
}

OptPortingLOAConfigurationAddress is optional PortingLOAConfigurationAddress.

func NewOptPortingLOAConfigurationAddress

func NewOptPortingLOAConfigurationAddress(v PortingLOAConfigurationAddress) OptPortingLOAConfigurationAddress

NewOptPortingLOAConfigurationAddress returns new OptPortingLOAConfigurationAddress with value set to v.

func (*OptPortingLOAConfigurationAddress) Decode

Decode decodes PortingLOAConfigurationAddress from json.

func (OptPortingLOAConfigurationAddress) Encode

Encode encodes PortingLOAConfigurationAddress as json.

func (OptPortingLOAConfigurationAddress) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingLOAConfigurationAddress) IsSet

IsSet returns true if OptPortingLOAConfigurationAddress was set.

func (OptPortingLOAConfigurationAddress) MarshalJSON

func (s OptPortingLOAConfigurationAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingLOAConfigurationAddress) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingLOAConfigurationAddress) Reset

Reset unsets value.

func (*OptPortingLOAConfigurationAddress) SetTo

SetTo sets value to v.

func (*OptPortingLOAConfigurationAddress) UnmarshalJSON

func (s *OptPortingLOAConfigurationAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingLOAConfigurationContact

type OptPortingLOAConfigurationContact struct {
	Value PortingLOAConfigurationContact
	Set   bool
}

OptPortingLOAConfigurationContact is optional PortingLOAConfigurationContact.

func NewOptPortingLOAConfigurationContact

func NewOptPortingLOAConfigurationContact(v PortingLOAConfigurationContact) OptPortingLOAConfigurationContact

NewOptPortingLOAConfigurationContact returns new OptPortingLOAConfigurationContact with value set to v.

func (*OptPortingLOAConfigurationContact) Decode

Decode decodes PortingLOAConfigurationContact from json.

func (OptPortingLOAConfigurationContact) Encode

Encode encodes PortingLOAConfigurationContact as json.

func (OptPortingLOAConfigurationContact) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingLOAConfigurationContact) IsSet

IsSet returns true if OptPortingLOAConfigurationContact was set.

func (OptPortingLOAConfigurationContact) MarshalJSON

func (s OptPortingLOAConfigurationContact) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingLOAConfigurationContact) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingLOAConfigurationContact) Reset

Reset unsets value.

func (*OptPortingLOAConfigurationContact) SetTo

SetTo sets value to v.

func (*OptPortingLOAConfigurationContact) UnmarshalJSON

func (s *OptPortingLOAConfigurationContact) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingLOAConfigurationLogo struct {
	Value PortingLOAConfigurationLogo
	Set   bool
}

OptPortingLOAConfigurationLogo is optional PortingLOAConfigurationLogo.

func NewOptPortingLOAConfigurationLogo(v PortingLOAConfigurationLogo) OptPortingLOAConfigurationLogo

NewOptPortingLOAConfigurationLogo returns new OptPortingLOAConfigurationLogo with value set to v.

func (*OptPortingLOAConfigurationLogo) Decode

Decode decodes PortingLOAConfigurationLogo from json.

func (OptPortingLOAConfigurationLogo) Encode

Encode encodes PortingLOAConfigurationLogo as json.

func (OptPortingLOAConfigurationLogo) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingLOAConfigurationLogo) IsSet

IsSet returns true if OptPortingLOAConfigurationLogo was set.

func (OptPortingLOAConfigurationLogo) MarshalJSON

func (s OptPortingLOAConfigurationLogo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingLOAConfigurationLogo) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingLOAConfigurationLogo) Reset

func (o *OptPortingLOAConfigurationLogo) Reset()

Reset unsets value.

func (*OptPortingLOAConfigurationLogo) SetTo

SetTo sets value to v.

func (*OptPortingLOAConfigurationLogo) UnmarshalJSON

func (s *OptPortingLOAConfigurationLogo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingLOAConfigurationLogoContentType

type OptPortingLOAConfigurationLogoContentType struct {
	Value PortingLOAConfigurationLogoContentType
	Set   bool
}

OptPortingLOAConfigurationLogoContentType is optional PortingLOAConfigurationLogoContentType.

func NewOptPortingLOAConfigurationLogoContentType

func NewOptPortingLOAConfigurationLogoContentType(v PortingLOAConfigurationLogoContentType) OptPortingLOAConfigurationLogoContentType

NewOptPortingLOAConfigurationLogoContentType returns new OptPortingLOAConfigurationLogoContentType with value set to v.

func (*OptPortingLOAConfigurationLogoContentType) Decode

Decode decodes PortingLOAConfigurationLogoContentType from json.

func (OptPortingLOAConfigurationLogoContentType) Encode

Encode encodes PortingLOAConfigurationLogoContentType as json.

func (OptPortingLOAConfigurationLogoContentType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingLOAConfigurationLogoContentType) IsSet

IsSet returns true if OptPortingLOAConfigurationLogoContentType was set.

func (OptPortingLOAConfigurationLogoContentType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPortingLOAConfigurationLogoContentType) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingLOAConfigurationLogoContentType) Reset

Reset unsets value.

func (*OptPortingLOAConfigurationLogoContentType) SetTo

SetTo sets value to v.

func (*OptPortingLOAConfigurationLogoContentType) UnmarshalJSON

func (s *OptPortingLOAConfigurationLogoContentType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrder

type OptPortingOrder struct {
	Value PortingOrder
	Set   bool
}

OptPortingOrder is optional PortingOrder.

func NewOptPortingOrder

func NewOptPortingOrder(v PortingOrder) OptPortingOrder

NewOptPortingOrder returns new OptPortingOrder with value set to v.

func (*OptPortingOrder) Decode

func (o *OptPortingOrder) Decode(d *jx.Decoder) error

Decode decodes PortingOrder from json.

func (OptPortingOrder) Encode

func (o OptPortingOrder) Encode(e *jx.Encoder)

Encode encodes PortingOrder as json.

func (OptPortingOrder) Get

func (o OptPortingOrder) Get() (v PortingOrder, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrder) IsSet

func (o OptPortingOrder) IsSet() bool

IsSet returns true if OptPortingOrder was set.

func (OptPortingOrder) MarshalJSON

func (s OptPortingOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrder) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrder) Reset

func (o *OptPortingOrder) Reset()

Reset unsets value.

func (*OptPortingOrder) SetTo

func (o *OptPortingOrder) SetTo(v PortingOrder)

SetTo sets value to v.

func (*OptPortingOrder) UnmarshalJSON

func (s *OptPortingOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderActivationSettings

type OptPortingOrderActivationSettings struct {
	Value PortingOrderActivationSettings
	Set   bool
}

OptPortingOrderActivationSettings is optional PortingOrderActivationSettings.

func NewOptPortingOrderActivationSettings

func NewOptPortingOrderActivationSettings(v PortingOrderActivationSettings) OptPortingOrderActivationSettings

NewOptPortingOrderActivationSettings returns new OptPortingOrderActivationSettings with value set to v.

func (*OptPortingOrderActivationSettings) Decode

Decode decodes PortingOrderActivationSettings from json.

func (OptPortingOrderActivationSettings) Encode

Encode encodes PortingOrderActivationSettings as json.

func (OptPortingOrderActivationSettings) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderActivationSettings) IsSet

IsSet returns true if OptPortingOrderActivationSettings was set.

func (OptPortingOrderActivationSettings) MarshalJSON

func (s OptPortingOrderActivationSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderActivationSettings) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderActivationSettings) Reset

Reset unsets value.

func (*OptPortingOrderActivationSettings) SetTo

SetTo sets value to v.

func (*OptPortingOrderActivationSettings) UnmarshalJSON

func (s *OptPortingOrderActivationSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderActivationStatus

type OptPortingOrderActivationStatus struct {
	Value PortingOrderActivationStatus
	Set   bool
}

OptPortingOrderActivationStatus is optional PortingOrderActivationStatus.

func NewOptPortingOrderActivationStatus

func NewOptPortingOrderActivationStatus(v PortingOrderActivationStatus) OptPortingOrderActivationStatus

NewOptPortingOrderActivationStatus returns new OptPortingOrderActivationStatus with value set to v.

func (*OptPortingOrderActivationStatus) Decode

Decode decodes PortingOrderActivationStatus from json.

func (OptPortingOrderActivationStatus) Encode

Encode encodes PortingOrderActivationStatus as json.

func (OptPortingOrderActivationStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderActivationStatus) IsSet

IsSet returns true if OptPortingOrderActivationStatus was set.

func (OptPortingOrderActivationStatus) MarshalJSON

func (s OptPortingOrderActivationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderActivationStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderActivationStatus) Reset

Reset unsets value.

func (*OptPortingOrderActivationStatus) SetTo

SetTo sets value to v.

func (*OptPortingOrderActivationStatus) UnmarshalJSON

func (s *OptPortingOrderActivationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderDocuments

type OptPortingOrderDocuments struct {
	Value PortingOrderDocuments
	Set   bool
}

OptPortingOrderDocuments is optional PortingOrderDocuments.

func NewOptPortingOrderDocuments

func NewOptPortingOrderDocuments(v PortingOrderDocuments) OptPortingOrderDocuments

NewOptPortingOrderDocuments returns new OptPortingOrderDocuments with value set to v.

func (*OptPortingOrderDocuments) Decode

func (o *OptPortingOrderDocuments) Decode(d *jx.Decoder) error

Decode decodes PortingOrderDocuments from json.

func (OptPortingOrderDocuments) Encode

func (o OptPortingOrderDocuments) Encode(e *jx.Encoder)

Encode encodes PortingOrderDocuments as json.

func (OptPortingOrderDocuments) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderDocuments) IsSet

func (o OptPortingOrderDocuments) IsSet() bool

IsSet returns true if OptPortingOrderDocuments was set.

func (OptPortingOrderDocuments) MarshalJSON

func (s OptPortingOrderDocuments) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderDocuments) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderDocuments) Reset

func (o *OptPortingOrderDocuments) Reset()

Reset unsets value.

func (*OptPortingOrderDocuments) SetTo

SetTo sets value to v.

func (*OptPortingOrderDocuments) UnmarshalJSON

func (s *OptPortingOrderDocuments) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderEndUser

type OptPortingOrderEndUser struct {
	Value PortingOrderEndUser
	Set   bool
}

OptPortingOrderEndUser is optional PortingOrderEndUser.

func NewOptPortingOrderEndUser

func NewOptPortingOrderEndUser(v PortingOrderEndUser) OptPortingOrderEndUser

NewOptPortingOrderEndUser returns new OptPortingOrderEndUser with value set to v.

func (*OptPortingOrderEndUser) Decode

func (o *OptPortingOrderEndUser) Decode(d *jx.Decoder) error

Decode decodes PortingOrderEndUser from json.

func (OptPortingOrderEndUser) Encode

func (o OptPortingOrderEndUser) Encode(e *jx.Encoder)

Encode encodes PortingOrderEndUser as json.

func (OptPortingOrderEndUser) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderEndUser) IsSet

func (o OptPortingOrderEndUser) IsSet() bool

IsSet returns true if OptPortingOrderEndUser was set.

func (OptPortingOrderEndUser) MarshalJSON

func (s OptPortingOrderEndUser) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderEndUser) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderEndUser) Reset

func (o *OptPortingOrderEndUser) Reset()

Reset unsets value.

func (*OptPortingOrderEndUser) SetTo

SetTo sets value to v.

func (*OptPortingOrderEndUser) UnmarshalJSON

func (s *OptPortingOrderEndUser) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderEndUserAdmin

type OptPortingOrderEndUserAdmin struct {
	Value PortingOrderEndUserAdmin
	Set   bool
}

OptPortingOrderEndUserAdmin is optional PortingOrderEndUserAdmin.

func NewOptPortingOrderEndUserAdmin

func NewOptPortingOrderEndUserAdmin(v PortingOrderEndUserAdmin) OptPortingOrderEndUserAdmin

NewOptPortingOrderEndUserAdmin returns new OptPortingOrderEndUserAdmin with value set to v.

func (*OptPortingOrderEndUserAdmin) Decode

Decode decodes PortingOrderEndUserAdmin from json.

func (OptPortingOrderEndUserAdmin) Encode

func (o OptPortingOrderEndUserAdmin) Encode(e *jx.Encoder)

Encode encodes PortingOrderEndUserAdmin as json.

func (OptPortingOrderEndUserAdmin) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderEndUserAdmin) IsSet

IsSet returns true if OptPortingOrderEndUserAdmin was set.

func (OptPortingOrderEndUserAdmin) MarshalJSON

func (s OptPortingOrderEndUserAdmin) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderEndUserAdmin) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderEndUserAdmin) Reset

func (o *OptPortingOrderEndUserAdmin) Reset()

Reset unsets value.

func (*OptPortingOrderEndUserAdmin) SetTo

SetTo sets value to v.

func (*OptPortingOrderEndUserAdmin) UnmarshalJSON

func (s *OptPortingOrderEndUserAdmin) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderEndUserLocation

type OptPortingOrderEndUserLocation struct {
	Value PortingOrderEndUserLocation
	Set   bool
}

OptPortingOrderEndUserLocation is optional PortingOrderEndUserLocation.

func NewOptPortingOrderEndUserLocation

func NewOptPortingOrderEndUserLocation(v PortingOrderEndUserLocation) OptPortingOrderEndUserLocation

NewOptPortingOrderEndUserLocation returns new OptPortingOrderEndUserLocation with value set to v.

func (*OptPortingOrderEndUserLocation) Decode

Decode decodes PortingOrderEndUserLocation from json.

func (OptPortingOrderEndUserLocation) Encode

Encode encodes PortingOrderEndUserLocation as json.

func (OptPortingOrderEndUserLocation) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderEndUserLocation) IsSet

IsSet returns true if OptPortingOrderEndUserLocation was set.

func (OptPortingOrderEndUserLocation) MarshalJSON

func (s OptPortingOrderEndUserLocation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderEndUserLocation) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderEndUserLocation) Reset

func (o *OptPortingOrderEndUserLocation) Reset()

Reset unsets value.

func (*OptPortingOrderEndUserLocation) SetTo

SetTo sets value to v.

func (*OptPortingOrderEndUserLocation) UnmarshalJSON

func (s *OptPortingOrderEndUserLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderMisc

type OptPortingOrderMisc struct {
	Value PortingOrderMisc
	Set   bool
}

OptPortingOrderMisc is optional PortingOrderMisc.

func NewOptPortingOrderMisc

func NewOptPortingOrderMisc(v PortingOrderMisc) OptPortingOrderMisc

NewOptPortingOrderMisc returns new OptPortingOrderMisc with value set to v.

func (*OptPortingOrderMisc) Decode

func (o *OptPortingOrderMisc) Decode(d *jx.Decoder) error

Decode decodes PortingOrderMisc from json.

func (OptPortingOrderMisc) Encode

func (o OptPortingOrderMisc) Encode(e *jx.Encoder)

Encode encodes PortingOrderMisc as json.

func (OptPortingOrderMisc) Get

func (o OptPortingOrderMisc) Get() (v PortingOrderMisc, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderMisc) IsSet

func (o OptPortingOrderMisc) IsSet() bool

IsSet returns true if OptPortingOrderMisc was set.

func (OptPortingOrderMisc) MarshalJSON

func (s OptPortingOrderMisc) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderMisc) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderMisc) Reset

func (o *OptPortingOrderMisc) Reset()

Reset unsets value.

func (*OptPortingOrderMisc) SetTo

SetTo sets value to v.

func (*OptPortingOrderMisc) UnmarshalJSON

func (s *OptPortingOrderMisc) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderMiscRemainingNumbersAction

type OptPortingOrderMiscRemainingNumbersAction struct {
	Value PortingOrderMiscRemainingNumbersAction
	Set   bool
}

OptPortingOrderMiscRemainingNumbersAction is optional PortingOrderMiscRemainingNumbersAction.

func NewOptPortingOrderMiscRemainingNumbersAction

func NewOptPortingOrderMiscRemainingNumbersAction(v PortingOrderMiscRemainingNumbersAction) OptPortingOrderMiscRemainingNumbersAction

NewOptPortingOrderMiscRemainingNumbersAction returns new OptPortingOrderMiscRemainingNumbersAction with value set to v.

func (*OptPortingOrderMiscRemainingNumbersAction) Decode

Decode decodes PortingOrderMiscRemainingNumbersAction from json.

func (OptPortingOrderMiscRemainingNumbersAction) Encode

Encode encodes PortingOrderMiscRemainingNumbersAction as json.

func (OptPortingOrderMiscRemainingNumbersAction) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderMiscRemainingNumbersAction) IsSet

IsSet returns true if OptPortingOrderMiscRemainingNumbersAction was set.

func (OptPortingOrderMiscRemainingNumbersAction) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderMiscRemainingNumbersAction) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderMiscRemainingNumbersAction) Reset

Reset unsets value.

func (*OptPortingOrderMiscRemainingNumbersAction) SetTo

SetTo sets value to v.

func (*OptPortingOrderMiscRemainingNumbersAction) UnmarshalJSON

func (s *OptPortingOrderMiscRemainingNumbersAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderPhoneNumberConfiguration

type OptPortingOrderPhoneNumberConfiguration struct {
	Value PortingOrderPhoneNumberConfiguration
	Set   bool
}

OptPortingOrderPhoneNumberConfiguration is optional PortingOrderPhoneNumberConfiguration.

func NewOptPortingOrderPhoneNumberConfiguration

func NewOptPortingOrderPhoneNumberConfiguration(v PortingOrderPhoneNumberConfiguration) OptPortingOrderPhoneNumberConfiguration

NewOptPortingOrderPhoneNumberConfiguration returns new OptPortingOrderPhoneNumberConfiguration with value set to v.

func (*OptPortingOrderPhoneNumberConfiguration) Decode

Decode decodes PortingOrderPhoneNumberConfiguration from json.

func (OptPortingOrderPhoneNumberConfiguration) Encode

Encode encodes PortingOrderPhoneNumberConfiguration as json.

func (OptPortingOrderPhoneNumberConfiguration) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderPhoneNumberConfiguration) IsSet

IsSet returns true if OptPortingOrderPhoneNumberConfiguration was set.

func (OptPortingOrderPhoneNumberConfiguration) MarshalJSON

func (s OptPortingOrderPhoneNumberConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderPhoneNumberConfiguration) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderPhoneNumberConfiguration) Reset

Reset unsets value.

func (*OptPortingOrderPhoneNumberConfiguration) SetTo

SetTo sets value to v.

func (*OptPortingOrderPhoneNumberConfiguration) UnmarshalJSON

func (s *OptPortingOrderPhoneNumberConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderPhoneNumberType

type OptPortingOrderPhoneNumberType struct {
	Value PortingOrderPhoneNumberType
	Set   bool
}

OptPortingOrderPhoneNumberType is optional PortingOrderPhoneNumberType.

func NewOptPortingOrderPhoneNumberType

func NewOptPortingOrderPhoneNumberType(v PortingOrderPhoneNumberType) OptPortingOrderPhoneNumberType

NewOptPortingOrderPhoneNumberType returns new OptPortingOrderPhoneNumberType with value set to v.

func (*OptPortingOrderPhoneNumberType) Decode

Decode decodes PortingOrderPhoneNumberType from json.

func (OptPortingOrderPhoneNumberType) Encode

Encode encodes PortingOrderPhoneNumberType as json.

func (OptPortingOrderPhoneNumberType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderPhoneNumberType) IsSet

IsSet returns true if OptPortingOrderPhoneNumberType was set.

func (OptPortingOrderPhoneNumberType) MarshalJSON

func (s OptPortingOrderPhoneNumberType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderPhoneNumberType) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderPhoneNumberType) Reset

func (o *OptPortingOrderPhoneNumberType) Reset()

Reset unsets value.

func (*OptPortingOrderPhoneNumberType) SetTo

SetTo sets value to v.

func (*OptPortingOrderPhoneNumberType) UnmarshalJSON

func (s *OptPortingOrderPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderRequirementDetailFieldType

type OptPortingOrderRequirementDetailFieldType struct {
	Value PortingOrderRequirementDetailFieldType
	Set   bool
}

OptPortingOrderRequirementDetailFieldType is optional PortingOrderRequirementDetailFieldType.

func NewOptPortingOrderRequirementDetailFieldType

func NewOptPortingOrderRequirementDetailFieldType(v PortingOrderRequirementDetailFieldType) OptPortingOrderRequirementDetailFieldType

NewOptPortingOrderRequirementDetailFieldType returns new OptPortingOrderRequirementDetailFieldType with value set to v.

func (*OptPortingOrderRequirementDetailFieldType) Decode

Decode decodes PortingOrderRequirementDetailFieldType from json.

func (OptPortingOrderRequirementDetailFieldType) Encode

Encode encodes PortingOrderRequirementDetailFieldType as json.

func (OptPortingOrderRequirementDetailFieldType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderRequirementDetailFieldType) IsSet

IsSet returns true if OptPortingOrderRequirementDetailFieldType was set.

func (OptPortingOrderRequirementDetailFieldType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderRequirementDetailFieldType) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderRequirementDetailFieldType) Reset

Reset unsets value.

func (*OptPortingOrderRequirementDetailFieldType) SetTo

SetTo sets value to v.

func (*OptPortingOrderRequirementDetailFieldType) UnmarshalJSON

func (s *OptPortingOrderRequirementDetailFieldType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderRequirementDetailRequirementType

type OptPortingOrderRequirementDetailRequirementType struct {
	Value PortingOrderRequirementDetailRequirementType
	Set   bool
}

OptPortingOrderRequirementDetailRequirementType is optional PortingOrderRequirementDetailRequirementType.

func NewOptPortingOrderRequirementDetailRequirementType

func NewOptPortingOrderRequirementDetailRequirementType(v PortingOrderRequirementDetailRequirementType) OptPortingOrderRequirementDetailRequirementType

NewOptPortingOrderRequirementDetailRequirementType returns new OptPortingOrderRequirementDetailRequirementType with value set to v.

func (*OptPortingOrderRequirementDetailRequirementType) Decode

Decode decodes PortingOrderRequirementDetailRequirementType from json.

func (OptPortingOrderRequirementDetailRequirementType) Encode

Encode encodes PortingOrderRequirementDetailRequirementType as json.

func (OptPortingOrderRequirementDetailRequirementType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderRequirementDetailRequirementType) IsSet

IsSet returns true if OptPortingOrderRequirementDetailRequirementType was set.

func (OptPortingOrderRequirementDetailRequirementType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderRequirementDetailRequirementType) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderRequirementDetailRequirementType) Reset

Reset unsets value.

func (*OptPortingOrderRequirementDetailRequirementType) SetTo

SetTo sets value to v.

func (*OptPortingOrderRequirementDetailRequirementType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria

type OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria struct {
	Value PortingOrderRequirementDetailRequirementTypeAcceptanceCriteria
	Set   bool
}

OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria is optional PortingOrderRequirementDetailRequirementTypeAcceptanceCriteria.

func NewOptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria

NewOptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria returns new OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria with value set to v.

func (*OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) Decode

Decode decodes PortingOrderRequirementDetailRequirementTypeAcceptanceCriteria from json.

func (OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) Encode

Encode encodes PortingOrderRequirementDetailRequirementTypeAcceptanceCriteria as json.

func (OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) IsSet

IsSet returns true if OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria was set.

func (OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) Reset

Reset unsets value.

func (*OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) SetTo

SetTo sets value to v.

func (*OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderRequirementFieldType

type OptPortingOrderRequirementFieldType struct {
	Value PortingOrderRequirementFieldType
	Set   bool
}

OptPortingOrderRequirementFieldType is optional PortingOrderRequirementFieldType.

func NewOptPortingOrderRequirementFieldType

func NewOptPortingOrderRequirementFieldType(v PortingOrderRequirementFieldType) OptPortingOrderRequirementFieldType

NewOptPortingOrderRequirementFieldType returns new OptPortingOrderRequirementFieldType with value set to v.

func (*OptPortingOrderRequirementFieldType) Decode

Decode decodes PortingOrderRequirementFieldType from json.

func (OptPortingOrderRequirementFieldType) Encode

Encode encodes PortingOrderRequirementFieldType as json.

func (OptPortingOrderRequirementFieldType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderRequirementFieldType) IsSet

IsSet returns true if OptPortingOrderRequirementFieldType was set.

func (OptPortingOrderRequirementFieldType) MarshalJSON

func (s OptPortingOrderRequirementFieldType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderRequirementFieldType) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderRequirementFieldType) Reset

Reset unsets value.

func (*OptPortingOrderRequirementFieldType) SetTo

SetTo sets value to v.

func (*OptPortingOrderRequirementFieldType) UnmarshalJSON

func (s *OptPortingOrderRequirementFieldType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderSharingToken

type OptPortingOrderSharingToken struct {
	Value PortingOrderSharingToken
	Set   bool
}

OptPortingOrderSharingToken is optional PortingOrderSharingToken.

func NewOptPortingOrderSharingToken

func NewOptPortingOrderSharingToken(v PortingOrderSharingToken) OptPortingOrderSharingToken

NewOptPortingOrderSharingToken returns new OptPortingOrderSharingToken with value set to v.

func (*OptPortingOrderSharingToken) Decode

Decode decodes PortingOrderSharingToken from json.

func (OptPortingOrderSharingToken) Encode

func (o OptPortingOrderSharingToken) Encode(e *jx.Encoder)

Encode encodes PortingOrderSharingToken as json.

func (OptPortingOrderSharingToken) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderSharingToken) IsSet

IsSet returns true if OptPortingOrderSharingToken was set.

func (OptPortingOrderSharingToken) MarshalJSON

func (s OptPortingOrderSharingToken) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderSharingToken) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderSharingToken) Reset

func (o *OptPortingOrderSharingToken) Reset()

Reset unsets value.

func (*OptPortingOrderSharingToken) SetTo

SetTo sets value to v.

func (*OptPortingOrderSharingToken) UnmarshalJSON

func (s *OptPortingOrderSharingToken) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderStatus

type OptPortingOrderStatus struct {
	Value PortingOrderStatus
	Set   bool
}

OptPortingOrderStatus is optional PortingOrderStatus.

func NewOptPortingOrderStatus

func NewOptPortingOrderStatus(v PortingOrderStatus) OptPortingOrderStatus

NewOptPortingOrderStatus returns new OptPortingOrderStatus with value set to v.

func (*OptPortingOrderStatus) Decode

func (o *OptPortingOrderStatus) Decode(d *jx.Decoder) error

Decode decodes PortingOrderStatus from json.

func (OptPortingOrderStatus) Encode

func (o OptPortingOrderStatus) Encode(e *jx.Encoder)

Encode encodes PortingOrderStatus as json.

func (OptPortingOrderStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderStatus) IsSet

func (o OptPortingOrderStatus) IsSet() bool

IsSet returns true if OptPortingOrderStatus was set.

func (OptPortingOrderStatus) MarshalJSON

func (s OptPortingOrderStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderStatus) Reset

func (o *OptPortingOrderStatus) Reset()

Reset unsets value.

func (*OptPortingOrderStatus) SetTo

SetTo sets value to v.

func (*OptPortingOrderStatus) UnmarshalJSON

func (s *OptPortingOrderStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderStatusValue

type OptPortingOrderStatusValue struct {
	Value PortingOrderStatusValue
	Set   bool
}

OptPortingOrderStatusValue is optional PortingOrderStatusValue.

func NewOptPortingOrderStatusValue

func NewOptPortingOrderStatusValue(v PortingOrderStatusValue) OptPortingOrderStatusValue

NewOptPortingOrderStatusValue returns new OptPortingOrderStatusValue with value set to v.

func (*OptPortingOrderStatusValue) Decode

Decode decodes PortingOrderStatusValue from json.

func (OptPortingOrderStatusValue) Encode

func (o OptPortingOrderStatusValue) Encode(e *jx.Encoder)

Encode encodes PortingOrderStatusValue as json.

func (OptPortingOrderStatusValue) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderStatusValue) IsSet

func (o OptPortingOrderStatusValue) IsSet() bool

IsSet returns true if OptPortingOrderStatusValue was set.

func (OptPortingOrderStatusValue) MarshalJSON

func (s OptPortingOrderStatusValue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderStatusValue) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderStatusValue) Reset

func (o *OptPortingOrderStatusValue) Reset()

Reset unsets value.

func (*OptPortingOrderStatusValue) SetTo

SetTo sets value to v.

func (*OptPortingOrderStatusValue) UnmarshalJSON

func (s *OptPortingOrderStatusValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderType

type OptPortingOrderType struct {
	Value PortingOrderType
	Set   bool
}

OptPortingOrderType is optional PortingOrderType.

func NewOptPortingOrderType

func NewOptPortingOrderType(v PortingOrderType) OptPortingOrderType

NewOptPortingOrderType returns new OptPortingOrderType with value set to v.

func (*OptPortingOrderType) Decode

func (o *OptPortingOrderType) Decode(d *jx.Decoder) error

Decode decodes PortingOrderType from json.

func (OptPortingOrderType) Encode

func (o OptPortingOrderType) Encode(e *jx.Encoder)

Encode encodes PortingOrderType as json.

func (OptPortingOrderType) Get

func (o OptPortingOrderType) Get() (v PortingOrderType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderType) IsSet

func (o OptPortingOrderType) IsSet() bool

IsSet returns true if OptPortingOrderType was set.

func (OptPortingOrderType) MarshalJSON

func (s OptPortingOrderType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderType) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderType) Reset

func (o *OptPortingOrderType) Reset()

Reset unsets value.

func (*OptPortingOrderType) SetTo

SetTo sets value to v.

func (*OptPortingOrderType) UnmarshalJSON

func (s *OptPortingOrderType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrderUserFeedback

type OptPortingOrderUserFeedback struct {
	Value PortingOrderUserFeedback
	Set   bool
}

OptPortingOrderUserFeedback is optional PortingOrderUserFeedback.

func NewOptPortingOrderUserFeedback

func NewOptPortingOrderUserFeedback(v PortingOrderUserFeedback) OptPortingOrderUserFeedback

NewOptPortingOrderUserFeedback returns new OptPortingOrderUserFeedback with value set to v.

func (*OptPortingOrderUserFeedback) Decode

Decode decodes PortingOrderUserFeedback from json.

func (OptPortingOrderUserFeedback) Encode

func (o OptPortingOrderUserFeedback) Encode(e *jx.Encoder)

Encode encodes PortingOrderUserFeedback as json.

func (OptPortingOrderUserFeedback) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrderUserFeedback) IsSet

IsSet returns true if OptPortingOrderUserFeedback was set.

func (OptPortingOrderUserFeedback) MarshalJSON

func (s OptPortingOrderUserFeedback) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrderUserFeedback) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrderUserFeedback) Reset

func (o *OptPortingOrderUserFeedback) Reset()

Reset unsets value.

func (*OptPortingOrderUserFeedback) SetTo

SetTo sets value to v.

func (*OptPortingOrderUserFeedback) UnmarshalJSON

func (s *OptPortingOrderUserFeedback) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrdersActivationJob

type OptPortingOrdersActivationJob struct {
	Value PortingOrdersActivationJob
	Set   bool
}

OptPortingOrdersActivationJob is optional PortingOrdersActivationJob.

func NewOptPortingOrdersActivationJob

func NewOptPortingOrdersActivationJob(v PortingOrdersActivationJob) OptPortingOrdersActivationJob

NewOptPortingOrdersActivationJob returns new OptPortingOrdersActivationJob with value set to v.

func (*OptPortingOrdersActivationJob) Decode

Decode decodes PortingOrdersActivationJob from json.

func (OptPortingOrdersActivationJob) Encode

Encode encodes PortingOrdersActivationJob as json.

func (OptPortingOrdersActivationJob) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrdersActivationJob) IsSet

IsSet returns true if OptPortingOrdersActivationJob was set.

func (OptPortingOrdersActivationJob) MarshalJSON

func (s OptPortingOrdersActivationJob) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrdersActivationJob) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrdersActivationJob) Reset

func (o *OptPortingOrdersActivationJob) Reset()

Reset unsets value.

func (*OptPortingOrdersActivationJob) SetTo

SetTo sets value to v.

func (*OptPortingOrdersActivationJob) UnmarshalJSON

func (s *OptPortingOrdersActivationJob) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrdersActivationJobActivationType

type OptPortingOrdersActivationJobActivationType struct {
	Value PortingOrdersActivationJobActivationType
	Set   bool
}

OptPortingOrdersActivationJobActivationType is optional PortingOrdersActivationJobActivationType.

func NewOptPortingOrdersActivationJobActivationType

func NewOptPortingOrdersActivationJobActivationType(v PortingOrdersActivationJobActivationType) OptPortingOrdersActivationJobActivationType

NewOptPortingOrdersActivationJobActivationType returns new OptPortingOrdersActivationJobActivationType with value set to v.

func (*OptPortingOrdersActivationJobActivationType) Decode

Decode decodes PortingOrdersActivationJobActivationType from json.

func (OptPortingOrdersActivationJobActivationType) Encode

Encode encodes PortingOrdersActivationJobActivationType as json.

func (OptPortingOrdersActivationJobActivationType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrdersActivationJobActivationType) IsSet

IsSet returns true if OptPortingOrdersActivationJobActivationType was set.

func (OptPortingOrdersActivationJobActivationType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrdersActivationJobActivationType) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrdersActivationJobActivationType) Reset

Reset unsets value.

func (*OptPortingOrdersActivationJobActivationType) SetTo

SetTo sets value to v.

func (*OptPortingOrdersActivationJobActivationType) UnmarshalJSON

func (s *OptPortingOrdersActivationJobActivationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrdersActivationJobStatus

type OptPortingOrdersActivationJobStatus struct {
	Value PortingOrdersActivationJobStatus
	Set   bool
}

OptPortingOrdersActivationJobStatus is optional PortingOrdersActivationJobStatus.

func NewOptPortingOrdersActivationJobStatus

func NewOptPortingOrdersActivationJobStatus(v PortingOrdersActivationJobStatus) OptPortingOrdersActivationJobStatus

NewOptPortingOrdersActivationJobStatus returns new OptPortingOrdersActivationJobStatus with value set to v.

func (*OptPortingOrdersActivationJobStatus) Decode

Decode decodes PortingOrdersActivationJobStatus from json.

func (OptPortingOrdersActivationJobStatus) Encode

Encode encodes PortingOrdersActivationJobStatus as json.

func (OptPortingOrdersActivationJobStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrdersActivationJobStatus) IsSet

IsSet returns true if OptPortingOrdersActivationJobStatus was set.

func (OptPortingOrdersActivationJobStatus) MarshalJSON

func (s OptPortingOrdersActivationJobStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrdersActivationJobStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrdersActivationJobStatus) Reset

Reset unsets value.

func (*OptPortingOrdersActivationJobStatus) SetTo

SetTo sets value to v.

func (*OptPortingOrdersActivationJobStatus) UnmarshalJSON

func (s *OptPortingOrdersActivationJobStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrdersComment

type OptPortingOrdersComment struct {
	Value PortingOrdersComment
	Set   bool
}

OptPortingOrdersComment is optional PortingOrdersComment.

func NewOptPortingOrdersComment

func NewOptPortingOrdersComment(v PortingOrdersComment) OptPortingOrdersComment

NewOptPortingOrdersComment returns new OptPortingOrdersComment with value set to v.

func (*OptPortingOrdersComment) Decode

func (o *OptPortingOrdersComment) Decode(d *jx.Decoder) error

Decode decodes PortingOrdersComment from json.

func (OptPortingOrdersComment) Encode

func (o OptPortingOrdersComment) Encode(e *jx.Encoder)

Encode encodes PortingOrdersComment as json.

func (OptPortingOrdersComment) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrdersComment) IsSet

func (o OptPortingOrdersComment) IsSet() bool

IsSet returns true if OptPortingOrdersComment was set.

func (OptPortingOrdersComment) MarshalJSON

func (s OptPortingOrdersComment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrdersComment) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrdersComment) Reset

func (o *OptPortingOrdersComment) Reset()

Reset unsets value.

func (*OptPortingOrdersComment) SetTo

SetTo sets value to v.

func (*OptPortingOrdersComment) UnmarshalJSON

func (s *OptPortingOrdersComment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrdersCommentUserType

type OptPortingOrdersCommentUserType struct {
	Value PortingOrdersCommentUserType
	Set   bool
}

OptPortingOrdersCommentUserType is optional PortingOrdersCommentUserType.

func NewOptPortingOrdersCommentUserType

func NewOptPortingOrdersCommentUserType(v PortingOrdersCommentUserType) OptPortingOrdersCommentUserType

NewOptPortingOrdersCommentUserType returns new OptPortingOrdersCommentUserType with value set to v.

func (*OptPortingOrdersCommentUserType) Decode

Decode decodes PortingOrdersCommentUserType from json.

func (OptPortingOrdersCommentUserType) Encode

Encode encodes PortingOrdersCommentUserType as json.

func (OptPortingOrdersCommentUserType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrdersCommentUserType) IsSet

IsSet returns true if OptPortingOrdersCommentUserType was set.

func (OptPortingOrdersCommentUserType) MarshalJSON

func (s OptPortingOrdersCommentUserType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrdersCommentUserType) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrdersCommentUserType) Reset

Reset unsets value.

func (*OptPortingOrdersCommentUserType) SetTo

SetTo sets value to v.

func (*OptPortingOrdersCommentUserType) UnmarshalJSON

func (s *OptPortingOrdersCommentUserType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingOrdersExceptionTypeCode

type OptPortingOrdersExceptionTypeCode struct {
	Value PortingOrdersExceptionTypeCode
	Set   bool
}

OptPortingOrdersExceptionTypeCode is optional PortingOrdersExceptionTypeCode.

func NewOptPortingOrdersExceptionTypeCode

func NewOptPortingOrdersExceptionTypeCode(v PortingOrdersExceptionTypeCode) OptPortingOrdersExceptionTypeCode

NewOptPortingOrdersExceptionTypeCode returns new OptPortingOrdersExceptionTypeCode with value set to v.

func (*OptPortingOrdersExceptionTypeCode) Decode

Decode decodes PortingOrdersExceptionTypeCode from json.

func (OptPortingOrdersExceptionTypeCode) Encode

Encode encodes PortingOrdersExceptionTypeCode as json.

func (OptPortingOrdersExceptionTypeCode) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingOrdersExceptionTypeCode) IsSet

IsSet returns true if OptPortingOrdersExceptionTypeCode was set.

func (OptPortingOrdersExceptionTypeCode) MarshalJSON

func (s OptPortingOrdersExceptionTypeCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingOrdersExceptionTypeCode) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingOrdersExceptionTypeCode) Reset

Reset unsets value.

func (*OptPortingOrdersExceptionTypeCode) SetTo

SetTo sets value to v.

func (*OptPortingOrdersExceptionTypeCode) UnmarshalJSON

func (s *OptPortingOrdersExceptionTypeCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingPhoneNumberPhoneNumberType

type OptPortingPhoneNumberPhoneNumberType struct {
	Value PortingPhoneNumberPhoneNumberType
	Set   bool
}

OptPortingPhoneNumberPhoneNumberType is optional PortingPhoneNumberPhoneNumberType.

func NewOptPortingPhoneNumberPhoneNumberType

func NewOptPortingPhoneNumberPhoneNumberType(v PortingPhoneNumberPhoneNumberType) OptPortingPhoneNumberPhoneNumberType

NewOptPortingPhoneNumberPhoneNumberType returns new OptPortingPhoneNumberPhoneNumberType with value set to v.

func (*OptPortingPhoneNumberPhoneNumberType) Decode

Decode decodes PortingPhoneNumberPhoneNumberType from json.

func (OptPortingPhoneNumberPhoneNumberType) Encode

Encode encodes PortingPhoneNumberPhoneNumberType as json.

func (OptPortingPhoneNumberPhoneNumberType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingPhoneNumberPhoneNumberType) IsSet

IsSet returns true if OptPortingPhoneNumberPhoneNumberType was set.

func (OptPortingPhoneNumberPhoneNumberType) MarshalJSON

func (s OptPortingPhoneNumberPhoneNumberType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingPhoneNumberPhoneNumberType) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingPhoneNumberPhoneNumberType) Reset

Reset unsets value.

func (*OptPortingPhoneNumberPhoneNumberType) SetTo

SetTo sets value to v.

func (*OptPortingPhoneNumberPhoneNumberType) UnmarshalJSON

func (s *OptPortingPhoneNumberPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingPhoneNumberPortingOrderStatus

type OptPortingPhoneNumberPortingOrderStatus struct {
	Value PortingPhoneNumberPortingOrderStatus
	Set   bool
}

OptPortingPhoneNumberPortingOrderStatus is optional PortingPhoneNumberPortingOrderStatus.

func NewOptPortingPhoneNumberPortingOrderStatus

func NewOptPortingPhoneNumberPortingOrderStatus(v PortingPhoneNumberPortingOrderStatus) OptPortingPhoneNumberPortingOrderStatus

NewOptPortingPhoneNumberPortingOrderStatus returns new OptPortingPhoneNumberPortingOrderStatus with value set to v.

func (*OptPortingPhoneNumberPortingOrderStatus) Decode

Decode decodes PortingPhoneNumberPortingOrderStatus from json.

func (OptPortingPhoneNumberPortingOrderStatus) Encode

Encode encodes PortingPhoneNumberPortingOrderStatus as json.

func (OptPortingPhoneNumberPortingOrderStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingPhoneNumberPortingOrderStatus) IsSet

IsSet returns true if OptPortingPhoneNumberPortingOrderStatus was set.

func (OptPortingPhoneNumberPortingOrderStatus) MarshalJSON

func (s OptPortingPhoneNumberPortingOrderStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingPhoneNumberPortingOrderStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingPhoneNumberPortingOrderStatus) Reset

Reset unsets value.

func (*OptPortingPhoneNumberPortingOrderStatus) SetTo

SetTo sets value to v.

func (*OptPortingPhoneNumberPortingOrderStatus) UnmarshalJSON

func (s *OptPortingPhoneNumberPortingOrderStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingPhoneNumberRequirementsStatus

type OptPortingPhoneNumberRequirementsStatus struct {
	Value PortingPhoneNumberRequirementsStatus
	Set   bool
}

OptPortingPhoneNumberRequirementsStatus is optional PortingPhoneNumberRequirementsStatus.

func NewOptPortingPhoneNumberRequirementsStatus

func NewOptPortingPhoneNumberRequirementsStatus(v PortingPhoneNumberRequirementsStatus) OptPortingPhoneNumberRequirementsStatus

NewOptPortingPhoneNumberRequirementsStatus returns new OptPortingPhoneNumberRequirementsStatus with value set to v.

func (*OptPortingPhoneNumberRequirementsStatus) Decode

Decode decodes PortingPhoneNumberRequirementsStatus from json.

func (OptPortingPhoneNumberRequirementsStatus) Encode

Encode encodes PortingPhoneNumberRequirementsStatus as json.

func (OptPortingPhoneNumberRequirementsStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingPhoneNumberRequirementsStatus) IsSet

IsSet returns true if OptPortingPhoneNumberRequirementsStatus was set.

func (OptPortingPhoneNumberRequirementsStatus) MarshalJSON

func (s OptPortingPhoneNumberRequirementsStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingPhoneNumberRequirementsStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingPhoneNumberRequirementsStatus) Reset

Reset unsets value.

func (*OptPortingPhoneNumberRequirementsStatus) SetTo

SetTo sets value to v.

func (*OptPortingPhoneNumberRequirementsStatus) UnmarshalJSON

func (s *OptPortingPhoneNumberRequirementsStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingReport

type OptPortingReport struct {
	Value PortingReport
	Set   bool
}

OptPortingReport is optional PortingReport.

func NewOptPortingReport

func NewOptPortingReport(v PortingReport) OptPortingReport

NewOptPortingReport returns new OptPortingReport with value set to v.

func (*OptPortingReport) Decode

func (o *OptPortingReport) Decode(d *jx.Decoder) error

Decode decodes PortingReport from json.

func (OptPortingReport) Encode

func (o OptPortingReport) Encode(e *jx.Encoder)

Encode encodes PortingReport as json.

func (OptPortingReport) Get

func (o OptPortingReport) Get() (v PortingReport, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPortingReport) IsSet

func (o OptPortingReport) IsSet() bool

IsSet returns true if OptPortingReport was set.

func (OptPortingReport) MarshalJSON

func (s OptPortingReport) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingReport) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingReport) Reset

func (o *OptPortingReport) Reset()

Reset unsets value.

func (*OptPortingReport) SetTo

func (o *OptPortingReport) SetTo(v PortingReport)

SetTo sets value to v.

func (*OptPortingReport) UnmarshalJSON

func (s *OptPortingReport) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingReportParams

type OptPortingReportParams struct {
	Value PortingReportParams
	Set   bool
}

OptPortingReportParams is optional PortingReportParams.

func NewOptPortingReportParams

func NewOptPortingReportParams(v PortingReportParams) OptPortingReportParams

NewOptPortingReportParams returns new OptPortingReportParams with value set to v.

func (*OptPortingReportParams) Decode

func (o *OptPortingReportParams) Decode(d *jx.Decoder) error

Decode decodes PortingReportParams from json.

func (OptPortingReportParams) Encode

func (o OptPortingReportParams) Encode(e *jx.Encoder)

Encode encodes PortingReportParams as json.

func (OptPortingReportParams) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingReportParams) IsSet

func (o OptPortingReportParams) IsSet() bool

IsSet returns true if OptPortingReportParams was set.

func (OptPortingReportParams) MarshalJSON

func (s OptPortingReportParams) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingReportParams) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingReportParams) Reset

func (o *OptPortingReportParams) Reset()

Reset unsets value.

func (*OptPortingReportParams) SetTo

SetTo sets value to v.

func (*OptPortingReportParams) UnmarshalJSON

func (s *OptPortingReportParams) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingReportReportType

type OptPortingReportReportType struct {
	Value PortingReportReportType
	Set   bool
}

OptPortingReportReportType is optional PortingReportReportType.

func NewOptPortingReportReportType

func NewOptPortingReportReportType(v PortingReportReportType) OptPortingReportReportType

NewOptPortingReportReportType returns new OptPortingReportReportType with value set to v.

func (*OptPortingReportReportType) Decode

Decode decodes PortingReportReportType from json.

func (OptPortingReportReportType) Encode

func (o OptPortingReportReportType) Encode(e *jx.Encoder)

Encode encodes PortingReportReportType as json.

func (OptPortingReportReportType) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingReportReportType) IsSet

func (o OptPortingReportReportType) IsSet() bool

IsSet returns true if OptPortingReportReportType was set.

func (OptPortingReportReportType) MarshalJSON

func (s OptPortingReportReportType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingReportReportType) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingReportReportType) Reset

func (o *OptPortingReportReportType) Reset()

Reset unsets value.

func (*OptPortingReportReportType) SetTo

SetTo sets value to v.

func (*OptPortingReportReportType) UnmarshalJSON

func (s *OptPortingReportReportType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortingReportStatus

type OptPortingReportStatus struct {
	Value PortingReportStatus
	Set   bool
}

OptPortingReportStatus is optional PortingReportStatus.

func NewOptPortingReportStatus

func NewOptPortingReportStatus(v PortingReportStatus) OptPortingReportStatus

NewOptPortingReportStatus returns new OptPortingReportStatus with value set to v.

func (*OptPortingReportStatus) Decode

func (o *OptPortingReportStatus) Decode(d *jx.Decoder) error

Decode decodes PortingReportStatus from json.

func (OptPortingReportStatus) Encode

func (o OptPortingReportStatus) Encode(e *jx.Encoder)

Encode encodes PortingReportStatus as json.

func (OptPortingReportStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortingReportStatus) IsSet

func (o OptPortingReportStatus) IsSet() bool

IsSet returns true if OptPortingReportStatus was set.

func (OptPortingReportStatus) MarshalJSON

func (s OptPortingReportStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortingReportStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPortingReportStatus) Reset

func (o *OptPortingReportStatus) Reset()

Reset unsets value.

func (*OptPortingReportStatus) SetTo

SetTo sets value to v.

func (*OptPortingReportStatus) UnmarshalJSON

func (s *OptPortingReportStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortoutComment

type OptPortoutComment struct {
	Value PortoutComment
	Set   bool
}

OptPortoutComment is optional PortoutComment.

func NewOptPortoutComment

func NewOptPortoutComment(v PortoutComment) OptPortoutComment

NewOptPortoutComment returns new OptPortoutComment with value set to v.

func (*OptPortoutComment) Decode

func (o *OptPortoutComment) Decode(d *jx.Decoder) error

Decode decodes PortoutComment from json.

func (OptPortoutComment) Encode

func (o OptPortoutComment) Encode(e *jx.Encoder)

Encode encodes PortoutComment as json.

func (OptPortoutComment) Get

func (o OptPortoutComment) Get() (v PortoutComment, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPortoutComment) IsSet

func (o OptPortoutComment) IsSet() bool

IsSet returns true if OptPortoutComment was set.

func (OptPortoutComment) MarshalJSON

func (s OptPortoutComment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortoutComment) Or

Or returns value if set, or given parameter if does not.

func (*OptPortoutComment) Reset

func (o *OptPortoutComment) Reset()

Reset unsets value.

func (*OptPortoutComment) SetTo

func (o *OptPortoutComment) SetTo(v PortoutComment)

SetTo sets value to v.

func (*OptPortoutComment) UnmarshalJSON

func (s *OptPortoutComment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortoutDetails

type OptPortoutDetails struct {
	Value PortoutDetails
	Set   bool
}

OptPortoutDetails is optional PortoutDetails.

func NewOptPortoutDetails

func NewOptPortoutDetails(v PortoutDetails) OptPortoutDetails

NewOptPortoutDetails returns new OptPortoutDetails with value set to v.

func (*OptPortoutDetails) Decode

func (o *OptPortoutDetails) Decode(d *jx.Decoder) error

Decode decodes PortoutDetails from json.

func (OptPortoutDetails) Encode

func (o OptPortoutDetails) Encode(e *jx.Encoder)

Encode encodes PortoutDetails as json.

func (OptPortoutDetails) Get

func (o OptPortoutDetails) Get() (v PortoutDetails, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPortoutDetails) IsSet

func (o OptPortoutDetails) IsSet() bool

IsSet returns true if OptPortoutDetails was set.

func (OptPortoutDetails) MarshalJSON

func (s OptPortoutDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortoutDetails) Or

Or returns value if set, or given parameter if does not.

func (*OptPortoutDetails) Reset

func (o *OptPortoutDetails) Reset()

Reset unsets value.

func (*OptPortoutDetails) SetTo

func (o *OptPortoutDetails) SetTo(v PortoutDetails)

SetTo sets value to v.

func (*OptPortoutDetails) UnmarshalJSON

func (s *OptPortoutDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPortoutDetailsStatus

type OptPortoutDetailsStatus struct {
	Value PortoutDetailsStatus
	Set   bool
}

OptPortoutDetailsStatus is optional PortoutDetailsStatus.

func NewOptPortoutDetailsStatus

func NewOptPortoutDetailsStatus(v PortoutDetailsStatus) OptPortoutDetailsStatus

NewOptPortoutDetailsStatus returns new OptPortoutDetailsStatus with value set to v.

func (*OptPortoutDetailsStatus) Decode

func (o *OptPortoutDetailsStatus) Decode(d *jx.Decoder) error

Decode decodes PortoutDetailsStatus from json.

func (OptPortoutDetailsStatus) Encode

func (o OptPortoutDetailsStatus) Encode(e *jx.Encoder)

Encode encodes PortoutDetailsStatus as json.

func (OptPortoutDetailsStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPortoutDetailsStatus) IsSet

func (o OptPortoutDetailsStatus) IsSet() bool

IsSet returns true if OptPortoutDetailsStatus was set.

func (OptPortoutDetailsStatus) MarshalJSON

func (s OptPortoutDetailsStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPortoutDetailsStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPortoutDetailsStatus) Reset

func (o *OptPortoutDetailsStatus) Reset()

Reset unsets value.

func (*OptPortoutDetailsStatus) SetTo

SetTo sets value to v.

func (*OptPortoutDetailsStatus) UnmarshalJSON

func (s *OptPortoutDetailsStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPrivateWirelessGateway

type OptPrivateWirelessGateway struct {
	Value PrivateWirelessGateway
	Set   bool
}

OptPrivateWirelessGateway is optional PrivateWirelessGateway.

func NewOptPrivateWirelessGateway

func NewOptPrivateWirelessGateway(v PrivateWirelessGateway) OptPrivateWirelessGateway

NewOptPrivateWirelessGateway returns new OptPrivateWirelessGateway with value set to v.

func (*OptPrivateWirelessGateway) Decode

func (o *OptPrivateWirelessGateway) Decode(d *jx.Decoder) error

Decode decodes PrivateWirelessGateway from json.

func (OptPrivateWirelessGateway) Encode

func (o OptPrivateWirelessGateway) Encode(e *jx.Encoder)

Encode encodes PrivateWirelessGateway as json.

func (OptPrivateWirelessGateway) Get

Get returns value and boolean that denotes whether value was set.

func (OptPrivateWirelessGateway) IsSet

func (o OptPrivateWirelessGateway) IsSet() bool

IsSet returns true if OptPrivateWirelessGateway was set.

func (OptPrivateWirelessGateway) MarshalJSON

func (s OptPrivateWirelessGateway) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPrivateWirelessGateway) Or

Or returns value if set, or given parameter if does not.

func (*OptPrivateWirelessGateway) Reset

func (o *OptPrivateWirelessGateway) Reset()

Reset unsets value.

func (*OptPrivateWirelessGateway) SetTo

SetTo sets value to v.

func (*OptPrivateWirelessGateway) UnmarshalJSON

func (s *OptPrivateWirelessGateway) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPrivateWirelessGatewayStatus

type OptPrivateWirelessGatewayStatus struct {
	Value PrivateWirelessGatewayStatus
	Set   bool
}

OptPrivateWirelessGatewayStatus is optional PrivateWirelessGatewayStatus.

func NewOptPrivateWirelessGatewayStatus

func NewOptPrivateWirelessGatewayStatus(v PrivateWirelessGatewayStatus) OptPrivateWirelessGatewayStatus

NewOptPrivateWirelessGatewayStatus returns new OptPrivateWirelessGatewayStatus with value set to v.

func (*OptPrivateWirelessGatewayStatus) Decode

Decode decodes PrivateWirelessGatewayStatus from json.

func (OptPrivateWirelessGatewayStatus) Encode

Encode encodes PrivateWirelessGatewayStatus as json.

func (OptPrivateWirelessGatewayStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptPrivateWirelessGatewayStatus) IsSet

IsSet returns true if OptPrivateWirelessGatewayStatus was set.

func (OptPrivateWirelessGatewayStatus) MarshalJSON

func (s OptPrivateWirelessGatewayStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPrivateWirelessGatewayStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptPrivateWirelessGatewayStatus) Reset

Reset unsets value.

func (*OptPrivateWirelessGatewayStatus) SetTo

SetTo sets value to v.

func (*OptPrivateWirelessGatewayStatus) UnmarshalJSON

func (s *OptPrivateWirelessGatewayStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPrivateWirelessGatewayStatusValue

type OptPrivateWirelessGatewayStatusValue struct {
	Value PrivateWirelessGatewayStatusValue
	Set   bool
}

OptPrivateWirelessGatewayStatusValue is optional PrivateWirelessGatewayStatusValue.

func NewOptPrivateWirelessGatewayStatusValue

func NewOptPrivateWirelessGatewayStatusValue(v PrivateWirelessGatewayStatusValue) OptPrivateWirelessGatewayStatusValue

NewOptPrivateWirelessGatewayStatusValue returns new OptPrivateWirelessGatewayStatusValue with value set to v.

func (*OptPrivateWirelessGatewayStatusValue) Decode

Decode decodes PrivateWirelessGatewayStatusValue from json.

func (OptPrivateWirelessGatewayStatusValue) Encode

Encode encodes PrivateWirelessGatewayStatusValue as json.

func (OptPrivateWirelessGatewayStatusValue) Get

Get returns value and boolean that denotes whether value was set.

func (OptPrivateWirelessGatewayStatusValue) IsSet

IsSet returns true if OptPrivateWirelessGatewayStatusValue was set.

func (OptPrivateWirelessGatewayStatusValue) MarshalJSON

func (s OptPrivateWirelessGatewayStatusValue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPrivateWirelessGatewayStatusValue) Or

Or returns value if set, or given parameter if does not.

func (*OptPrivateWirelessGatewayStatusValue) Reset

Reset unsets value.

func (*OptPrivateWirelessGatewayStatusValue) SetTo

SetTo sets value to v.

func (*OptPrivateWirelessGatewayStatusValue) UnmarshalJSON

func (s *OptPrivateWirelessGatewayStatusValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptQueueCall

type OptQueueCall struct {
	Value QueueCall
	Set   bool
}

OptQueueCall is optional QueueCall.

func NewOptQueueCall

func NewOptQueueCall(v QueueCall) OptQueueCall

NewOptQueueCall returns new OptQueueCall with value set to v.

func (*OptQueueCall) Decode

func (o *OptQueueCall) Decode(d *jx.Decoder) error

Decode decodes QueueCall from json.

func (OptQueueCall) Encode

func (o OptQueueCall) Encode(e *jx.Encoder)

Encode encodes QueueCall as json.

func (OptQueueCall) Get

func (o OptQueueCall) Get() (v QueueCall, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptQueueCall) IsSet

func (o OptQueueCall) IsSet() bool

IsSet returns true if OptQueueCall was set.

func (OptQueueCall) MarshalJSON

func (s OptQueueCall) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptQueueCall) Or

Or returns value if set, or given parameter if does not.

func (*OptQueueCall) Reset

func (o *OptQueueCall) Reset()

Reset unsets value.

func (*OptQueueCall) SetTo

func (o *OptQueueCall) SetTo(v QueueCall)

SetTo sets value to v.

func (*OptQueueCall) UnmarshalJSON

func (s *OptQueueCall) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptReadCommentResponseData

type OptReadCommentResponseData struct {
	Value ReadCommentResponseData
	Set   bool
}

OptReadCommentResponseData is optional ReadCommentResponseData.

func NewOptReadCommentResponseData

func NewOptReadCommentResponseData(v ReadCommentResponseData) OptReadCommentResponseData

NewOptReadCommentResponseData returns new OptReadCommentResponseData with value set to v.

func (*OptReadCommentResponseData) Decode

Decode decodes ReadCommentResponseData from json.

func (OptReadCommentResponseData) Encode

func (o OptReadCommentResponseData) Encode(e *jx.Encoder)

Encode encodes ReadCommentResponseData as json.

func (OptReadCommentResponseData) Get

Get returns value and boolean that denotes whether value was set.

func (OptReadCommentResponseData) IsSet

func (o OptReadCommentResponseData) IsSet() bool

IsSet returns true if OptReadCommentResponseData was set.

func (OptReadCommentResponseData) MarshalJSON

func (s OptReadCommentResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptReadCommentResponseData) Or

Or returns value if set, or given parameter if does not.

func (*OptReadCommentResponseData) Reset

func (o *OptReadCommentResponseData) Reset()

Reset unsets value.

func (*OptReadCommentResponseData) SetTo

SetTo sets value to v.

func (*OptReadCommentResponseData) UnmarshalJSON

func (s *OptReadCommentResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptReadCommentResponseDataCommentRecordType

type OptReadCommentResponseDataCommentRecordType struct {
	Value ReadCommentResponseDataCommentRecordType
	Set   bool
}

OptReadCommentResponseDataCommentRecordType is optional ReadCommentResponseDataCommentRecordType.

func NewOptReadCommentResponseDataCommentRecordType

func NewOptReadCommentResponseDataCommentRecordType(v ReadCommentResponseDataCommentRecordType) OptReadCommentResponseDataCommentRecordType

NewOptReadCommentResponseDataCommentRecordType returns new OptReadCommentResponseDataCommentRecordType with value set to v.

func (*OptReadCommentResponseDataCommentRecordType) Decode

Decode decodes ReadCommentResponseDataCommentRecordType from json.

func (OptReadCommentResponseDataCommentRecordType) Encode

Encode encodes ReadCommentResponseDataCommentRecordType as json.

func (OptReadCommentResponseDataCommentRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptReadCommentResponseDataCommentRecordType) IsSet

IsSet returns true if OptReadCommentResponseDataCommentRecordType was set.

func (OptReadCommentResponseDataCommentRecordType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptReadCommentResponseDataCommentRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptReadCommentResponseDataCommentRecordType) Reset

Reset unsets value.

func (*OptReadCommentResponseDataCommentRecordType) SetTo

SetTo sets value to v.

func (*OptReadCommentResponseDataCommentRecordType) UnmarshalJSON

func (s *OptReadCommentResponseDataCommentRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptReadCommentResponseDataCommenterType

type OptReadCommentResponseDataCommenterType struct {
	Value ReadCommentResponseDataCommenterType
	Set   bool
}

OptReadCommentResponseDataCommenterType is optional ReadCommentResponseDataCommenterType.

func NewOptReadCommentResponseDataCommenterType

func NewOptReadCommentResponseDataCommenterType(v ReadCommentResponseDataCommenterType) OptReadCommentResponseDataCommenterType

NewOptReadCommentResponseDataCommenterType returns new OptReadCommentResponseDataCommenterType with value set to v.

func (*OptReadCommentResponseDataCommenterType) Decode

Decode decodes ReadCommentResponseDataCommenterType from json.

func (OptReadCommentResponseDataCommenterType) Encode

Encode encodes ReadCommentResponseDataCommenterType as json.

func (OptReadCommentResponseDataCommenterType) Get

Get returns value and boolean that denotes whether value was set.

func (OptReadCommentResponseDataCommenterType) IsSet

IsSet returns true if OptReadCommentResponseDataCommenterType was set.

func (OptReadCommentResponseDataCommenterType) MarshalJSON

func (s OptReadCommentResponseDataCommenterType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptReadCommentResponseDataCommenterType) Or

Or returns value if set, or given parameter if does not.

func (*OptReadCommentResponseDataCommenterType) Reset

Reset unsets value.

func (*OptReadCommentResponseDataCommenterType) SetTo

SetTo sets value to v.

func (*OptReadCommentResponseDataCommenterType) UnmarshalJSON

func (s *OptReadCommentResponseDataCommenterType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRecordingResponseData

type OptRecordingResponseData struct {
	Value RecordingResponseData
	Set   bool
}

OptRecordingResponseData is optional RecordingResponseData.

func NewOptRecordingResponseData

func NewOptRecordingResponseData(v RecordingResponseData) OptRecordingResponseData

NewOptRecordingResponseData returns new OptRecordingResponseData with value set to v.

func (*OptRecordingResponseData) Decode

func (o *OptRecordingResponseData) Decode(d *jx.Decoder) error

Decode decodes RecordingResponseData from json.

func (OptRecordingResponseData) Encode

func (o OptRecordingResponseData) Encode(e *jx.Encoder)

Encode encodes RecordingResponseData as json.

func (OptRecordingResponseData) Get

Get returns value and boolean that denotes whether value was set.

func (OptRecordingResponseData) IsSet

func (o OptRecordingResponseData) IsSet() bool

IsSet returns true if OptRecordingResponseData was set.

func (OptRecordingResponseData) MarshalJSON

func (s OptRecordingResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRecordingResponseData) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingResponseData) Reset

func (o *OptRecordingResponseData) Reset()

Reset unsets value.

func (*OptRecordingResponseData) SetTo

SetTo sets value to v.

func (*OptRecordingResponseData) UnmarshalJSON

func (s *OptRecordingResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRecordingResponseDataChannels

type OptRecordingResponseDataChannels struct {
	Value RecordingResponseDataChannels
	Set   bool
}

OptRecordingResponseDataChannels is optional RecordingResponseDataChannels.

func NewOptRecordingResponseDataChannels

func NewOptRecordingResponseDataChannels(v RecordingResponseDataChannels) OptRecordingResponseDataChannels

NewOptRecordingResponseDataChannels returns new OptRecordingResponseDataChannels with value set to v.

func (*OptRecordingResponseDataChannels) Decode

Decode decodes RecordingResponseDataChannels from json.

func (OptRecordingResponseDataChannels) Encode

Encode encodes RecordingResponseDataChannels as json.

func (OptRecordingResponseDataChannels) Get

Get returns value and boolean that denotes whether value was set.

func (OptRecordingResponseDataChannels) IsSet

IsSet returns true if OptRecordingResponseDataChannels was set.

func (OptRecordingResponseDataChannels) MarshalJSON

func (s OptRecordingResponseDataChannels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRecordingResponseDataChannels) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingResponseDataChannels) Reset

Reset unsets value.

func (*OptRecordingResponseDataChannels) SetTo

SetTo sets value to v.

func (*OptRecordingResponseDataChannels) UnmarshalJSON

func (s *OptRecordingResponseDataChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRecordingResponseDataDownloadUrls

type OptRecordingResponseDataDownloadUrls struct {
	Value RecordingResponseDataDownloadUrls
	Set   bool
}

OptRecordingResponseDataDownloadUrls is optional RecordingResponseDataDownloadUrls.

func NewOptRecordingResponseDataDownloadUrls

func NewOptRecordingResponseDataDownloadUrls(v RecordingResponseDataDownloadUrls) OptRecordingResponseDataDownloadUrls

NewOptRecordingResponseDataDownloadUrls returns new OptRecordingResponseDataDownloadUrls with value set to v.

func (*OptRecordingResponseDataDownloadUrls) Decode

Decode decodes RecordingResponseDataDownloadUrls from json.

func (OptRecordingResponseDataDownloadUrls) Encode

Encode encodes RecordingResponseDataDownloadUrls as json.

func (OptRecordingResponseDataDownloadUrls) Get

Get returns value and boolean that denotes whether value was set.

func (OptRecordingResponseDataDownloadUrls) IsSet

IsSet returns true if OptRecordingResponseDataDownloadUrls was set.

func (OptRecordingResponseDataDownloadUrls) MarshalJSON

func (s OptRecordingResponseDataDownloadUrls) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRecordingResponseDataDownloadUrls) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingResponseDataDownloadUrls) Reset

Reset unsets value.

func (*OptRecordingResponseDataDownloadUrls) SetTo

SetTo sets value to v.

func (*OptRecordingResponseDataDownloadUrls) UnmarshalJSON

func (s *OptRecordingResponseDataDownloadUrls) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRecordingResponseDataRecordType

type OptRecordingResponseDataRecordType struct {
	Value RecordingResponseDataRecordType
	Set   bool
}

OptRecordingResponseDataRecordType is optional RecordingResponseDataRecordType.

func NewOptRecordingResponseDataRecordType

func NewOptRecordingResponseDataRecordType(v RecordingResponseDataRecordType) OptRecordingResponseDataRecordType

NewOptRecordingResponseDataRecordType returns new OptRecordingResponseDataRecordType with value set to v.

func (*OptRecordingResponseDataRecordType) Decode

Decode decodes RecordingResponseDataRecordType from json.

func (OptRecordingResponseDataRecordType) Encode

Encode encodes RecordingResponseDataRecordType as json.

func (OptRecordingResponseDataRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptRecordingResponseDataRecordType) IsSet

IsSet returns true if OptRecordingResponseDataRecordType was set.

func (OptRecordingResponseDataRecordType) MarshalJSON

func (s OptRecordingResponseDataRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRecordingResponseDataRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingResponseDataRecordType) Reset

Reset unsets value.

func (*OptRecordingResponseDataRecordType) SetTo

SetTo sets value to v.

func (*OptRecordingResponseDataRecordType) UnmarshalJSON

func (s *OptRecordingResponseDataRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRecordingResponseDataSource

type OptRecordingResponseDataSource struct {
	Value RecordingResponseDataSource
	Set   bool
}

OptRecordingResponseDataSource is optional RecordingResponseDataSource.

func NewOptRecordingResponseDataSource

func NewOptRecordingResponseDataSource(v RecordingResponseDataSource) OptRecordingResponseDataSource

NewOptRecordingResponseDataSource returns new OptRecordingResponseDataSource with value set to v.

func (*OptRecordingResponseDataSource) Decode

Decode decodes RecordingResponseDataSource from json.

func (OptRecordingResponseDataSource) Encode

Encode encodes RecordingResponseDataSource as json.

func (OptRecordingResponseDataSource) Get

Get returns value and boolean that denotes whether value was set.

func (OptRecordingResponseDataSource) IsSet

IsSet returns true if OptRecordingResponseDataSource was set.

func (OptRecordingResponseDataSource) MarshalJSON

func (s OptRecordingResponseDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRecordingResponseDataSource) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingResponseDataSource) Reset

func (o *OptRecordingResponseDataSource) Reset()

Reset unsets value.

func (*OptRecordingResponseDataSource) SetTo

SetTo sets value to v.

func (*OptRecordingResponseDataSource) UnmarshalJSON

func (s *OptRecordingResponseDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRecordingResponseDataStatus

type OptRecordingResponseDataStatus struct {
	Value RecordingResponseDataStatus
	Set   bool
}

OptRecordingResponseDataStatus is optional RecordingResponseDataStatus.

func NewOptRecordingResponseDataStatus

func NewOptRecordingResponseDataStatus(v RecordingResponseDataStatus) OptRecordingResponseDataStatus

NewOptRecordingResponseDataStatus returns new OptRecordingResponseDataStatus with value set to v.

func (*OptRecordingResponseDataStatus) Decode

Decode decodes RecordingResponseDataStatus from json.

func (OptRecordingResponseDataStatus) Encode

Encode encodes RecordingResponseDataStatus as json.

func (OptRecordingResponseDataStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptRecordingResponseDataStatus) IsSet

IsSet returns true if OptRecordingResponseDataStatus was set.

func (OptRecordingResponseDataStatus) MarshalJSON

func (s OptRecordingResponseDataStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRecordingResponseDataStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingResponseDataStatus) Reset

func (o *OptRecordingResponseDataStatus) Reset()

Reset unsets value.

func (*OptRecordingResponseDataStatus) SetTo

SetTo sets value to v.

func (*OptRecordingResponseDataStatus) UnmarshalJSON

func (s *OptRecordingResponseDataStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRecordingSource

type OptRecordingSource struct {
	Value RecordingSource
	Set   bool
}

OptRecordingSource is optional RecordingSource.

func NewOptRecordingSource

func NewOptRecordingSource(v RecordingSource) OptRecordingSource

NewOptRecordingSource returns new OptRecordingSource with value set to v.

func (*OptRecordingSource) Decode

func (o *OptRecordingSource) Decode(d *jx.Decoder) error

Decode decodes RecordingSource from json.

func (OptRecordingSource) Encode

func (o OptRecordingSource) Encode(e *jx.Encoder)

Encode encodes RecordingSource as json.

func (OptRecordingSource) Get

func (o OptRecordingSource) Get() (v RecordingSource, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRecordingSource) IsSet

func (o OptRecordingSource) IsSet() bool

IsSet returns true if OptRecordingSource was set.

func (OptRecordingSource) MarshalJSON

func (s OptRecordingSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRecordingSource) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingSource) Reset

func (o *OptRecordingSource) Reset()

Reset unsets value.

func (*OptRecordingSource) SetTo

func (o *OptRecordingSource) SetTo(v RecordingSource)

SetTo sets value to v.

func (*OptRecordingSource) UnmarshalJSON

func (s *OptRecordingSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRecordingStatusCallbackEvent

type OptRecordingStatusCallbackEvent struct {
	Value RecordingStatusCallbackEvent
	Set   bool
}

OptRecordingStatusCallbackEvent is optional RecordingStatusCallbackEvent.

func NewOptRecordingStatusCallbackEvent

func NewOptRecordingStatusCallbackEvent(v RecordingStatusCallbackEvent) OptRecordingStatusCallbackEvent

NewOptRecordingStatusCallbackEvent returns new OptRecordingStatusCallbackEvent with value set to v.

func (OptRecordingStatusCallbackEvent) Get

Get returns value and boolean that denotes whether value was set.

func (OptRecordingStatusCallbackEvent) IsSet

IsSet returns true if OptRecordingStatusCallbackEvent was set.

func (OptRecordingStatusCallbackEvent) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingStatusCallbackEvent) Reset

Reset unsets value.

func (*OptRecordingStatusCallbackEvent) SetTo

SetTo sets value to v.

type OptRecordingTrack

type OptRecordingTrack struct {
	Value RecordingTrack
	Set   bool
}

OptRecordingTrack is optional RecordingTrack.

func NewOptRecordingTrack

func NewOptRecordingTrack(v RecordingTrack) OptRecordingTrack

NewOptRecordingTrack returns new OptRecordingTrack with value set to v.

func (*OptRecordingTrack) Decode

func (o *OptRecordingTrack) Decode(d *jx.Decoder) error

Decode decodes RecordingTrack from json.

func (OptRecordingTrack) Encode

func (o OptRecordingTrack) Encode(e *jx.Encoder)

Encode encodes RecordingTrack as json.

func (OptRecordingTrack) Get

func (o OptRecordingTrack) Get() (v RecordingTrack, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRecordingTrack) IsSet

func (o OptRecordingTrack) IsSet() bool

IsSet returns true if OptRecordingTrack was set.

func (OptRecordingTrack) MarshalJSON

func (s OptRecordingTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRecordingTrack) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingTrack) Reset

func (o *OptRecordingTrack) Reset()

Reset unsets value.

func (*OptRecordingTrack) SetTo

func (o *OptRecordingTrack) SetTo(v RecordingTrack)

SetTo sets value to v.

func (*OptRecordingTrack) UnmarshalJSON

func (s *OptRecordingTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRecordingTranscription

type OptRecordingTranscription struct {
	Value RecordingTranscription
	Set   bool
}

OptRecordingTranscription is optional RecordingTranscription.

func NewOptRecordingTranscription

func NewOptRecordingTranscription(v RecordingTranscription) OptRecordingTranscription

NewOptRecordingTranscription returns new OptRecordingTranscription with value set to v.

func (*OptRecordingTranscription) Decode

func (o *OptRecordingTranscription) Decode(d *jx.Decoder) error

Decode decodes RecordingTranscription from json.

func (OptRecordingTranscription) Encode

func (o OptRecordingTranscription) Encode(e *jx.Encoder)

Encode encodes RecordingTranscription as json.

func (OptRecordingTranscription) Get

Get returns value and boolean that denotes whether value was set.

func (OptRecordingTranscription) IsSet

func (o OptRecordingTranscription) IsSet() bool

IsSet returns true if OptRecordingTranscription was set.

func (OptRecordingTranscription) MarshalJSON

func (s OptRecordingTranscription) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRecordingTranscription) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingTranscription) Reset

func (o *OptRecordingTranscription) Reset()

Reset unsets value.

func (*OptRecordingTranscription) SetTo

SetTo sets value to v.

func (*OptRecordingTranscription) UnmarshalJSON

func (s *OptRecordingTranscription) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRecordingTranscriptionRecordType

type OptRecordingTranscriptionRecordType struct {
	Value RecordingTranscriptionRecordType
	Set   bool
}

OptRecordingTranscriptionRecordType is optional RecordingTranscriptionRecordType.

func NewOptRecordingTranscriptionRecordType

func NewOptRecordingTranscriptionRecordType(v RecordingTranscriptionRecordType) OptRecordingTranscriptionRecordType

NewOptRecordingTranscriptionRecordType returns new OptRecordingTranscriptionRecordType with value set to v.

func (*OptRecordingTranscriptionRecordType) Decode

Decode decodes RecordingTranscriptionRecordType from json.

func (OptRecordingTranscriptionRecordType) Encode

Encode encodes RecordingTranscriptionRecordType as json.

func (OptRecordingTranscriptionRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptRecordingTranscriptionRecordType) IsSet

IsSet returns true if OptRecordingTranscriptionRecordType was set.

func (OptRecordingTranscriptionRecordType) MarshalJSON

func (s OptRecordingTranscriptionRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRecordingTranscriptionRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingTranscriptionRecordType) Reset

Reset unsets value.

func (*OptRecordingTranscriptionRecordType) SetTo

SetTo sets value to v.

func (*OptRecordingTranscriptionRecordType) UnmarshalJSON

func (s *OptRecordingTranscriptionRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRecordingTranscriptionStatus

type OptRecordingTranscriptionStatus struct {
	Value RecordingTranscriptionStatus
	Set   bool
}

OptRecordingTranscriptionStatus is optional RecordingTranscriptionStatus.

func NewOptRecordingTranscriptionStatus

func NewOptRecordingTranscriptionStatus(v RecordingTranscriptionStatus) OptRecordingTranscriptionStatus

NewOptRecordingTranscriptionStatus returns new OptRecordingTranscriptionStatus with value set to v.

func (*OptRecordingTranscriptionStatus) Decode

Decode decodes RecordingTranscriptionStatus from json.

func (OptRecordingTranscriptionStatus) Encode

Encode encodes RecordingTranscriptionStatus as json.

func (OptRecordingTranscriptionStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptRecordingTranscriptionStatus) IsSet

IsSet returns true if OptRecordingTranscriptionStatus was set.

func (OptRecordingTranscriptionStatus) MarshalJSON

func (s OptRecordingTranscriptionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRecordingTranscriptionStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptRecordingTranscriptionStatus) Reset

Reset unsets value.

func (*OptRecordingTranscriptionStatus) SetTo

SetTo sets value to v.

func (*OptRecordingTranscriptionStatus) UnmarshalJSON

func (s *OptRecordingTranscriptionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRegion

type OptRegion struct {
	Value Region
	Set   bool
}

OptRegion is optional Region.

func NewOptRegion

func NewOptRegion(v Region) OptRegion

NewOptRegion returns new OptRegion with value set to v.

func (*OptRegion) Decode

func (o *OptRegion) Decode(d *jx.Decoder) error

Decode decodes Region from json.

func (OptRegion) Encode

func (o OptRegion) Encode(e *jx.Encoder)

Encode encodes Region as json.

func (OptRegion) Get

func (o OptRegion) Get() (v Region, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRegion) IsSet

func (o OptRegion) IsSet() bool

IsSet returns true if OptRegion was set.

func (OptRegion) MarshalJSON

func (s OptRegion) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRegion) Or

func (o OptRegion) Or(d Region) Region

Or returns value if set, or given parameter if does not.

func (*OptRegion) Reset

func (o *OptRegion) Reset()

Reset unsets value.

func (*OptRegion) SetTo

func (o *OptRegion) SetTo(v Region)

SetTo sets value to v.

func (*OptRegion) UnmarshalJSON

func (s *OptRegion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRegionInformationRegionType

type OptRegionInformationRegionType struct {
	Value RegionInformationRegionType
	Set   bool
}

OptRegionInformationRegionType is optional RegionInformationRegionType.

func NewOptRegionInformationRegionType

func NewOptRegionInformationRegionType(v RegionInformationRegionType) OptRegionInformationRegionType

NewOptRegionInformationRegionType returns new OptRegionInformationRegionType with value set to v.

func (*OptRegionInformationRegionType) Decode

Decode decodes RegionInformationRegionType from json.

func (OptRegionInformationRegionType) Encode

Encode encodes RegionInformationRegionType as json.

func (OptRegionInformationRegionType) Get

Get returns value and boolean that denotes whether value was set.

func (OptRegionInformationRegionType) IsSet

IsSet returns true if OptRegionInformationRegionType was set.

func (OptRegionInformationRegionType) MarshalJSON

func (s OptRegionInformationRegionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRegionInformationRegionType) Or

Or returns value if set, or given parameter if does not.

func (*OptRegionInformationRegionType) Reset

func (o *OptRegionInformationRegionType) Reset()

Reset unsets value.

func (*OptRegionInformationRegionType) SetTo

SetTo sets value to v.

func (*OptRegionInformationRegionType) UnmarshalJSON

func (s *OptRegionInformationRegionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRegisterCallResponseData

type OptRegisterCallResponseData struct {
	Value RegisterCallResponseData
	Set   bool
}

OptRegisterCallResponseData is optional RegisterCallResponseData.

func NewOptRegisterCallResponseData

func NewOptRegisterCallResponseData(v RegisterCallResponseData) OptRegisterCallResponseData

NewOptRegisterCallResponseData returns new OptRegisterCallResponseData with value set to v.

func (*OptRegisterCallResponseData) Decode

Decode decodes RegisterCallResponseData from json.

func (OptRegisterCallResponseData) Encode

func (o OptRegisterCallResponseData) Encode(e *jx.Encoder)

Encode encodes RegisterCallResponseData as json.

func (OptRegisterCallResponseData) Get

Get returns value and boolean that denotes whether value was set.

func (OptRegisterCallResponseData) IsSet

IsSet returns true if OptRegisterCallResponseData was set.

func (OptRegisterCallResponseData) MarshalJSON

func (s OptRegisterCallResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRegisterCallResponseData) Or

Or returns value if set, or given parameter if does not.

func (*OptRegisterCallResponseData) Reset

func (o *OptRegisterCallResponseData) Reset()

Reset unsets value.

func (*OptRegisterCallResponseData) SetTo

SetTo sets value to v.

func (*OptRegisterCallResponseData) UnmarshalJSON

func (s *OptRegisterCallResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria

type OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria struct {
	Value RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria
	Set   bool
}

OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria is optional RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria.

func NewOptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria

NewOptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria returns new OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria with value set to v.

func (*OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) Decode

Decode decodes RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria from json.

func (OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) Encode

Encode encodes RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria as json.

func (OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) Get

Get returns value and boolean that denotes whether value was set.

func (OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) IsSet

IsSet returns true if OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria was set.

func (OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) Or

Or returns value if set, or given parameter if does not.

func (*OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) Reset

Reset unsets value.

func (*OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) SetTo

SetTo sets value to v.

func (*OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptReservedPhoneNumberStatus

type OptReservedPhoneNumberStatus struct {
	Value ReservedPhoneNumberStatus
	Set   bool
}

OptReservedPhoneNumberStatus is optional ReservedPhoneNumberStatus.

func NewOptReservedPhoneNumberStatus

func NewOptReservedPhoneNumberStatus(v ReservedPhoneNumberStatus) OptReservedPhoneNumberStatus

NewOptReservedPhoneNumberStatus returns new OptReservedPhoneNumberStatus with value set to v.

func (*OptReservedPhoneNumberStatus) Decode

Decode decodes ReservedPhoneNumberStatus from json.

func (OptReservedPhoneNumberStatus) Encode

Encode encodes ReservedPhoneNumberStatus as json.

func (OptReservedPhoneNumberStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptReservedPhoneNumberStatus) IsSet

IsSet returns true if OptReservedPhoneNumberStatus was set.

func (OptReservedPhoneNumberStatus) MarshalJSON

func (s OptReservedPhoneNumberStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptReservedPhoneNumberStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptReservedPhoneNumberStatus) Reset

func (o *OptReservedPhoneNumberStatus) Reset()

Reset unsets value.

func (*OptReservedPhoneNumberStatus) SetTo

SetTo sets value to v.

func (*OptReservedPhoneNumberStatus) UnmarshalJSON

func (s *OptReservedPhoneNumberStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRoomRecording

type OptRoomRecording struct {
	Value RoomRecording
	Set   bool
}

OptRoomRecording is optional RoomRecording.

func NewOptRoomRecording

func NewOptRoomRecording(v RoomRecording) OptRoomRecording

NewOptRoomRecording returns new OptRoomRecording with value set to v.

func (*OptRoomRecording) Decode

func (o *OptRoomRecording) Decode(d *jx.Decoder) error

Decode decodes RoomRecording from json.

func (OptRoomRecording) Encode

func (o OptRoomRecording) Encode(e *jx.Encoder)

Encode encodes RoomRecording as json.

func (OptRoomRecording) Get

func (o OptRoomRecording) Get() (v RoomRecording, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRoomRecording) IsSet

func (o OptRoomRecording) IsSet() bool

IsSet returns true if OptRoomRecording was set.

func (OptRoomRecording) MarshalJSON

func (s OptRoomRecording) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRoomRecording) Or

Or returns value if set, or given parameter if does not.

func (*OptRoomRecording) Reset

func (o *OptRoomRecording) Reset()

Reset unsets value.

func (*OptRoomRecording) SetTo

func (o *OptRoomRecording) SetTo(v RoomRecording)

SetTo sets value to v.

func (*OptRoomRecording) UnmarshalJSON

func (s *OptRoomRecording) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRoomRecordingStatus

type OptRoomRecordingStatus struct {
	Value RoomRecordingStatus
	Set   bool
}

OptRoomRecordingStatus is optional RoomRecordingStatus.

func NewOptRoomRecordingStatus

func NewOptRoomRecordingStatus(v RoomRecordingStatus) OptRoomRecordingStatus

NewOptRoomRecordingStatus returns new OptRoomRecordingStatus with value set to v.

func (*OptRoomRecordingStatus) Decode

func (o *OptRoomRecordingStatus) Decode(d *jx.Decoder) error

Decode decodes RoomRecordingStatus from json.

func (OptRoomRecordingStatus) Encode

func (o OptRoomRecordingStatus) Encode(e *jx.Encoder)

Encode encodes RoomRecordingStatus as json.

func (OptRoomRecordingStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptRoomRecordingStatus) IsSet

func (o OptRoomRecordingStatus) IsSet() bool

IsSet returns true if OptRoomRecordingStatus was set.

func (OptRoomRecordingStatus) MarshalJSON

func (s OptRoomRecordingStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRoomRecordingStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptRoomRecordingStatus) Reset

func (o *OptRoomRecordingStatus) Reset()

Reset unsets value.

func (*OptRoomRecordingStatus) SetTo

SetTo sets value to v.

func (*OptRoomRecordingStatus) UnmarshalJSON

func (s *OptRoomRecordingStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRoomRecordingType

type OptRoomRecordingType struct {
	Value RoomRecordingType
	Set   bool
}

OptRoomRecordingType is optional RoomRecordingType.

func NewOptRoomRecordingType

func NewOptRoomRecordingType(v RoomRecordingType) OptRoomRecordingType

NewOptRoomRecordingType returns new OptRoomRecordingType with value set to v.

func (*OptRoomRecordingType) Decode

func (o *OptRoomRecordingType) Decode(d *jx.Decoder) error

Decode decodes RoomRecordingType from json.

func (OptRoomRecordingType) Encode

func (o OptRoomRecordingType) Encode(e *jx.Encoder)

Encode encodes RoomRecordingType as json.

func (OptRoomRecordingType) Get

Get returns value and boolean that denotes whether value was set.

func (OptRoomRecordingType) IsSet

func (o OptRoomRecordingType) IsSet() bool

IsSet returns true if OptRoomRecordingType was set.

func (OptRoomRecordingType) MarshalJSON

func (s OptRoomRecordingType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRoomRecordingType) Or

Or returns value if set, or given parameter if does not.

func (*OptRoomRecordingType) Reset

func (o *OptRoomRecordingType) Reset()

Reset unsets value.

func (*OptRoomRecordingType) SetTo

SetTo sets value to v.

func (*OptRoomRecordingType) UnmarshalJSON

func (s *OptRoomRecordingType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSendPortingVerificationCodesReq

type OptSendPortingVerificationCodesReq struct {
	Value SendPortingVerificationCodesReq
	Set   bool
}

OptSendPortingVerificationCodesReq is optional SendPortingVerificationCodesReq.

func NewOptSendPortingVerificationCodesReq

func NewOptSendPortingVerificationCodesReq(v SendPortingVerificationCodesReq) OptSendPortingVerificationCodesReq

NewOptSendPortingVerificationCodesReq returns new OptSendPortingVerificationCodesReq with value set to v.

func (*OptSendPortingVerificationCodesReq) Decode

Decode decodes SendPortingVerificationCodesReq from json.

func (OptSendPortingVerificationCodesReq) Encode

Encode encodes SendPortingVerificationCodesReq as json.

func (OptSendPortingVerificationCodesReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptSendPortingVerificationCodesReq) IsSet

IsSet returns true if OptSendPortingVerificationCodesReq was set.

func (OptSendPortingVerificationCodesReq) MarshalJSON

func (s OptSendPortingVerificationCodesReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSendPortingVerificationCodesReq) Or

Or returns value if set, or given parameter if does not.

func (*OptSendPortingVerificationCodesReq) Reset

Reset unsets value.

func (*OptSendPortingVerificationCodesReq) SetTo

SetTo sets value to v.

func (*OptSendPortingVerificationCodesReq) UnmarshalJSON

func (s *OptSendPortingVerificationCodesReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSendPortingVerificationCodesReqVerificationMethod

type OptSendPortingVerificationCodesReqVerificationMethod struct {
	Value SendPortingVerificationCodesReqVerificationMethod
	Set   bool
}

OptSendPortingVerificationCodesReqVerificationMethod is optional SendPortingVerificationCodesReqVerificationMethod.

func NewOptSendPortingVerificationCodesReqVerificationMethod

NewOptSendPortingVerificationCodesReqVerificationMethod returns new OptSendPortingVerificationCodesReqVerificationMethod with value set to v.

func (*OptSendPortingVerificationCodesReqVerificationMethod) Decode

Decode decodes SendPortingVerificationCodesReqVerificationMethod from json.

func (OptSendPortingVerificationCodesReqVerificationMethod) Encode

Encode encodes SendPortingVerificationCodesReqVerificationMethod as json.

func (OptSendPortingVerificationCodesReqVerificationMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptSendPortingVerificationCodesReqVerificationMethod) IsSet

IsSet returns true if OptSendPortingVerificationCodesReqVerificationMethod was set.

func (OptSendPortingVerificationCodesReqVerificationMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptSendPortingVerificationCodesReqVerificationMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptSendPortingVerificationCodesReqVerificationMethod) Reset

Reset unsets value.

func (*OptSendPortingVerificationCodesReqVerificationMethod) SetTo

SetTo sets value to v.

func (*OptSendPortingVerificationCodesReqVerificationMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptServicePlan

type OptServicePlan struct {
	Value ServicePlan
	Set   bool
}

OptServicePlan is optional ServicePlan.

func NewOptServicePlan

func NewOptServicePlan(v ServicePlan) OptServicePlan

NewOptServicePlan returns new OptServicePlan with value set to v.

func (*OptServicePlan) Decode

func (o *OptServicePlan) Decode(d *jx.Decoder) error

Decode decodes ServicePlan from json.

func (OptServicePlan) Encode

func (o OptServicePlan) Encode(e *jx.Encoder)

Encode encodes ServicePlan as json.

func (OptServicePlan) Get

func (o OptServicePlan) Get() (v ServicePlan, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptServicePlan) IsSet

func (o OptServicePlan) IsSet() bool

IsSet returns true if OptServicePlan was set.

func (OptServicePlan) MarshalJSON

func (s OptServicePlan) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptServicePlan) Or

Or returns value if set, or given parameter if does not.

func (*OptServicePlan) Reset

func (o *OptServicePlan) Reset()

Reset unsets value.

func (*OptServicePlan) SetTo

func (o *OptServicePlan) SetTo(v ServicePlan)

SetTo sets value to v.

func (*OptServicePlan) UnmarshalJSON

func (s *OptServicePlan) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSharePortingOrderReqPermissions

type OptSharePortingOrderReqPermissions struct {
	Value SharePortingOrderReqPermissions
	Set   bool
}

OptSharePortingOrderReqPermissions is optional SharePortingOrderReqPermissions.

func NewOptSharePortingOrderReqPermissions

func NewOptSharePortingOrderReqPermissions(v SharePortingOrderReqPermissions) OptSharePortingOrderReqPermissions

NewOptSharePortingOrderReqPermissions returns new OptSharePortingOrderReqPermissions with value set to v.

func (*OptSharePortingOrderReqPermissions) Decode

Decode decodes SharePortingOrderReqPermissions from json.

func (OptSharePortingOrderReqPermissions) Encode

Encode encodes SharePortingOrderReqPermissions as json.

func (OptSharePortingOrderReqPermissions) Get

Get returns value and boolean that denotes whether value was set.

func (OptSharePortingOrderReqPermissions) IsSet

IsSet returns true if OptSharePortingOrderReqPermissions was set.

func (OptSharePortingOrderReqPermissions) MarshalJSON

func (s OptSharePortingOrderReqPermissions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSharePortingOrderReqPermissions) Or

Or returns value if set, or given parameter if does not.

func (*OptSharePortingOrderReqPermissions) Reset

Reset unsets value.

func (*OptSharePortingOrderReqPermissions) SetTo

SetTo sets value to v.

func (*OptSharePortingOrderReqPermissions) UnmarshalJSON

func (s *OptSharePortingOrderReqPermissions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptShowPortingOrderMeta

type OptShowPortingOrderMeta struct {
	Value ShowPortingOrderMeta
	Set   bool
}

OptShowPortingOrderMeta is optional ShowPortingOrderMeta.

func NewOptShowPortingOrderMeta

func NewOptShowPortingOrderMeta(v ShowPortingOrderMeta) OptShowPortingOrderMeta

NewOptShowPortingOrderMeta returns new OptShowPortingOrderMeta with value set to v.

func (*OptShowPortingOrderMeta) Decode

func (o *OptShowPortingOrderMeta) Decode(d *jx.Decoder) error

Decode decodes ShowPortingOrderMeta from json.

func (OptShowPortingOrderMeta) Encode

func (o OptShowPortingOrderMeta) Encode(e *jx.Encoder)

Encode encodes ShowPortingOrderMeta as json.

func (OptShowPortingOrderMeta) Get

Get returns value and boolean that denotes whether value was set.

func (OptShowPortingOrderMeta) IsSet

func (o OptShowPortingOrderMeta) IsSet() bool

IsSet returns true if OptShowPortingOrderMeta was set.

func (OptShowPortingOrderMeta) MarshalJSON

func (s OptShowPortingOrderMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptShowPortingOrderMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptShowPortingOrderMeta) Reset

func (o *OptShowPortingOrderMeta) Reset()

Reset unsets value.

func (*OptShowPortingOrderMeta) SetTo

SetTo sets value to v.

func (*OptShowPortingOrderMeta) UnmarshalJSON

func (s *OptShowPortingOrderMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSimplifiedOTAUpdateStatus

type OptSimplifiedOTAUpdateStatus struct {
	Value SimplifiedOTAUpdateStatus
	Set   bool
}

OptSimplifiedOTAUpdateStatus is optional SimplifiedOTAUpdateStatus.

func NewOptSimplifiedOTAUpdateStatus

func NewOptSimplifiedOTAUpdateStatus(v SimplifiedOTAUpdateStatus) OptSimplifiedOTAUpdateStatus

NewOptSimplifiedOTAUpdateStatus returns new OptSimplifiedOTAUpdateStatus with value set to v.

func (*OptSimplifiedOTAUpdateStatus) Decode

Decode decodes SimplifiedOTAUpdateStatus from json.

func (OptSimplifiedOTAUpdateStatus) Encode

Encode encodes SimplifiedOTAUpdateStatus as json.

func (OptSimplifiedOTAUpdateStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptSimplifiedOTAUpdateStatus) IsSet

IsSet returns true if OptSimplifiedOTAUpdateStatus was set.

func (OptSimplifiedOTAUpdateStatus) MarshalJSON

func (s OptSimplifiedOTAUpdateStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSimplifiedOTAUpdateStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptSimplifiedOTAUpdateStatus) Reset

func (o *OptSimplifiedOTAUpdateStatus) Reset()

Reset unsets value.

func (*OptSimplifiedOTAUpdateStatus) SetTo

SetTo sets value to v.

func (*OptSimplifiedOTAUpdateStatus) UnmarshalJSON

func (s *OptSimplifiedOTAUpdateStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSimplifiedOTAUpdateType

type OptSimplifiedOTAUpdateType struct {
	Value SimplifiedOTAUpdateType
	Set   bool
}

OptSimplifiedOTAUpdateType is optional SimplifiedOTAUpdateType.

func NewOptSimplifiedOTAUpdateType

func NewOptSimplifiedOTAUpdateType(v SimplifiedOTAUpdateType) OptSimplifiedOTAUpdateType

NewOptSimplifiedOTAUpdateType returns new OptSimplifiedOTAUpdateType with value set to v.

func (*OptSimplifiedOTAUpdateType) Decode

Decode decodes SimplifiedOTAUpdateType from json.

func (OptSimplifiedOTAUpdateType) Encode

func (o OptSimplifiedOTAUpdateType) Encode(e *jx.Encoder)

Encode encodes SimplifiedOTAUpdateType as json.

func (OptSimplifiedOTAUpdateType) Get

Get returns value and boolean that denotes whether value was set.

func (OptSimplifiedOTAUpdateType) IsSet

func (o OptSimplifiedOTAUpdateType) IsSet() bool

IsSet returns true if OptSimplifiedOTAUpdateType was set.

func (OptSimplifiedOTAUpdateType) MarshalJSON

func (s OptSimplifiedOTAUpdateType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSimplifiedOTAUpdateType) Or

Or returns value if set, or given parameter if does not.

func (*OptSimplifiedOTAUpdateType) Reset

func (o *OptSimplifiedOTAUpdateType) Reset()

Reset unsets value.

func (*OptSimplifiedOTAUpdateType) SetTo

SetTo sets value to v.

func (*OptSimplifiedOTAUpdateType) UnmarshalJSON

func (s *OptSimplifiedOTAUpdateType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSlimListPhoneNumbersFilterStatus

type OptSlimListPhoneNumbersFilterStatus struct {
	Value SlimListPhoneNumbersFilterStatus
	Set   bool
}

OptSlimListPhoneNumbersFilterStatus is optional SlimListPhoneNumbersFilterStatus.

func NewOptSlimListPhoneNumbersFilterStatus

func NewOptSlimListPhoneNumbersFilterStatus(v SlimListPhoneNumbersFilterStatus) OptSlimListPhoneNumbersFilterStatus

NewOptSlimListPhoneNumbersFilterStatus returns new OptSlimListPhoneNumbersFilterStatus with value set to v.

func (OptSlimListPhoneNumbersFilterStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptSlimListPhoneNumbersFilterStatus) IsSet

IsSet returns true if OptSlimListPhoneNumbersFilterStatus was set.

func (OptSlimListPhoneNumbersFilterStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptSlimListPhoneNumbersFilterStatus) Reset

Reset unsets value.

func (*OptSlimListPhoneNumbersFilterStatus) SetTo

SetTo sets value to v.

type OptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod

type OptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod struct {
	Value SlimListPhoneNumbersFilterVoiceUsagePaymentMethod
	Set   bool
}

OptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod is optional SlimListPhoneNumbersFilterVoiceUsagePaymentMethod.

func NewOptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod

NewOptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod returns new OptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod with value set to v.

func (OptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod) IsSet

IsSet returns true if OptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod was set.

func (OptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod) Reset

Reset unsets value.

func (*OptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod) SetTo

SetTo sets value to v.

type OptSlimListPhoneNumbersSort

type OptSlimListPhoneNumbersSort struct {
	Value SlimListPhoneNumbersSort
	Set   bool
}

OptSlimListPhoneNumbersSort is optional SlimListPhoneNumbersSort.

func NewOptSlimListPhoneNumbersSort

func NewOptSlimListPhoneNumbersSort(v SlimListPhoneNumbersSort) OptSlimListPhoneNumbersSort

NewOptSlimListPhoneNumbersSort returns new OptSlimListPhoneNumbersSort with value set to v.

func (OptSlimListPhoneNumbersSort) Get

Get returns value and boolean that denotes whether value was set.

func (OptSlimListPhoneNumbersSort) IsSet

IsSet returns true if OptSlimListPhoneNumbersSort was set.

func (OptSlimListPhoneNumbersSort) Or

Or returns value if set, or given parameter if does not.

func (*OptSlimListPhoneNumbersSort) Reset

func (o *OptSlimListPhoneNumbersSort) Reset()

Reset unsets value.

func (*OptSlimListPhoneNumbersSort) SetTo

SetTo sets value to v.

type OptSlimPhoneNumberDetailedInboundCallScreening

type OptSlimPhoneNumberDetailedInboundCallScreening struct {
	Value SlimPhoneNumberDetailedInboundCallScreening
	Set   bool
}

OptSlimPhoneNumberDetailedInboundCallScreening is optional SlimPhoneNumberDetailedInboundCallScreening.

func NewOptSlimPhoneNumberDetailedInboundCallScreening

func NewOptSlimPhoneNumberDetailedInboundCallScreening(v SlimPhoneNumberDetailedInboundCallScreening) OptSlimPhoneNumberDetailedInboundCallScreening

NewOptSlimPhoneNumberDetailedInboundCallScreening returns new OptSlimPhoneNumberDetailedInboundCallScreening with value set to v.

func (*OptSlimPhoneNumberDetailedInboundCallScreening) Decode

Decode decodes SlimPhoneNumberDetailedInboundCallScreening from json.

func (OptSlimPhoneNumberDetailedInboundCallScreening) Encode

Encode encodes SlimPhoneNumberDetailedInboundCallScreening as json.

func (OptSlimPhoneNumberDetailedInboundCallScreening) Get

Get returns value and boolean that denotes whether value was set.

func (OptSlimPhoneNumberDetailedInboundCallScreening) IsSet

IsSet returns true if OptSlimPhoneNumberDetailedInboundCallScreening was set.

func (OptSlimPhoneNumberDetailedInboundCallScreening) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptSlimPhoneNumberDetailedInboundCallScreening) Or

Or returns value if set, or given parameter if does not.

func (*OptSlimPhoneNumberDetailedInboundCallScreening) Reset

Reset unsets value.

func (*OptSlimPhoneNumberDetailedInboundCallScreening) SetTo

SetTo sets value to v.

func (*OptSlimPhoneNumberDetailedInboundCallScreening) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSlimPhoneNumberDetailedNumberLevelRouting

type OptSlimPhoneNumberDetailedNumberLevelRouting struct {
	Value SlimPhoneNumberDetailedNumberLevelRouting
	Set   bool
}

OptSlimPhoneNumberDetailedNumberLevelRouting is optional SlimPhoneNumberDetailedNumberLevelRouting.

func NewOptSlimPhoneNumberDetailedNumberLevelRouting

func NewOptSlimPhoneNumberDetailedNumberLevelRouting(v SlimPhoneNumberDetailedNumberLevelRouting) OptSlimPhoneNumberDetailedNumberLevelRouting

NewOptSlimPhoneNumberDetailedNumberLevelRouting returns new OptSlimPhoneNumberDetailedNumberLevelRouting with value set to v.

func (*OptSlimPhoneNumberDetailedNumberLevelRouting) Decode

Decode decodes SlimPhoneNumberDetailedNumberLevelRouting from json.

func (OptSlimPhoneNumberDetailedNumberLevelRouting) Encode

Encode encodes SlimPhoneNumberDetailedNumberLevelRouting as json.

func (OptSlimPhoneNumberDetailedNumberLevelRouting) Get

Get returns value and boolean that denotes whether value was set.

func (OptSlimPhoneNumberDetailedNumberLevelRouting) IsSet

IsSet returns true if OptSlimPhoneNumberDetailedNumberLevelRouting was set.

func (OptSlimPhoneNumberDetailedNumberLevelRouting) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptSlimPhoneNumberDetailedNumberLevelRouting) Or

Or returns value if set, or given parameter if does not.

func (*OptSlimPhoneNumberDetailedNumberLevelRouting) Reset

Reset unsets value.

func (*OptSlimPhoneNumberDetailedNumberLevelRouting) SetTo

SetTo sets value to v.

func (*OptSlimPhoneNumberDetailedNumberLevelRouting) UnmarshalJSON

func (s *OptSlimPhoneNumberDetailedNumberLevelRouting) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSlimPhoneNumberDetailedPhoneNumberType

type OptSlimPhoneNumberDetailedPhoneNumberType struct {
	Value SlimPhoneNumberDetailedPhoneNumberType
	Set   bool
}

OptSlimPhoneNumberDetailedPhoneNumberType is optional SlimPhoneNumberDetailedPhoneNumberType.

func NewOptSlimPhoneNumberDetailedPhoneNumberType

func NewOptSlimPhoneNumberDetailedPhoneNumberType(v SlimPhoneNumberDetailedPhoneNumberType) OptSlimPhoneNumberDetailedPhoneNumberType

NewOptSlimPhoneNumberDetailedPhoneNumberType returns new OptSlimPhoneNumberDetailedPhoneNumberType with value set to v.

func (*OptSlimPhoneNumberDetailedPhoneNumberType) Decode

Decode decodes SlimPhoneNumberDetailedPhoneNumberType from json.

func (OptSlimPhoneNumberDetailedPhoneNumberType) Encode

Encode encodes SlimPhoneNumberDetailedPhoneNumberType as json.

func (OptSlimPhoneNumberDetailedPhoneNumberType) Get

Get returns value and boolean that denotes whether value was set.

func (OptSlimPhoneNumberDetailedPhoneNumberType) IsSet

IsSet returns true if OptSlimPhoneNumberDetailedPhoneNumberType was set.

func (OptSlimPhoneNumberDetailedPhoneNumberType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptSlimPhoneNumberDetailedPhoneNumberType) Or

Or returns value if set, or given parameter if does not.

func (*OptSlimPhoneNumberDetailedPhoneNumberType) Reset

Reset unsets value.

func (*OptSlimPhoneNumberDetailedPhoneNumberType) SetTo

SetTo sets value to v.

func (*OptSlimPhoneNumberDetailedPhoneNumberType) UnmarshalJSON

func (s *OptSlimPhoneNumberDetailedPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSlimPhoneNumberDetailedStatus

type OptSlimPhoneNumberDetailedStatus struct {
	Value SlimPhoneNumberDetailedStatus
	Set   bool
}

OptSlimPhoneNumberDetailedStatus is optional SlimPhoneNumberDetailedStatus.

func NewOptSlimPhoneNumberDetailedStatus

func NewOptSlimPhoneNumberDetailedStatus(v SlimPhoneNumberDetailedStatus) OptSlimPhoneNumberDetailedStatus

NewOptSlimPhoneNumberDetailedStatus returns new OptSlimPhoneNumberDetailedStatus with value set to v.

func (*OptSlimPhoneNumberDetailedStatus) Decode

Decode decodes SlimPhoneNumberDetailedStatus from json.

func (OptSlimPhoneNumberDetailedStatus) Encode

Encode encodes SlimPhoneNumberDetailedStatus as json.

func (OptSlimPhoneNumberDetailedStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptSlimPhoneNumberDetailedStatus) IsSet

IsSet returns true if OptSlimPhoneNumberDetailedStatus was set.

func (OptSlimPhoneNumberDetailedStatus) MarshalJSON

func (s OptSlimPhoneNumberDetailedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSlimPhoneNumberDetailedStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptSlimPhoneNumberDetailedStatus) Reset

Reset unsets value.

func (*OptSlimPhoneNumberDetailedStatus) SetTo

SetTo sets value to v.

func (*OptSlimPhoneNumberDetailedStatus) UnmarshalJSON

func (s *OptSlimPhoneNumberDetailedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSortApplication

type OptSortApplication struct {
	Value SortApplication
	Set   bool
}

OptSortApplication is optional SortApplication.

func NewOptSortApplication

func NewOptSortApplication(v SortApplication) OptSortApplication

NewOptSortApplication returns new OptSortApplication with value set to v.

func (OptSortApplication) Get

func (o OptSortApplication) Get() (v SortApplication, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSortApplication) IsSet

func (o OptSortApplication) IsSet() bool

IsSet returns true if OptSortApplication was set.

func (OptSortApplication) Or

Or returns value if set, or given parameter if does not.

func (*OptSortApplication) Reset

func (o *OptSortApplication) Reset()

Reset unsets value.

func (*OptSortApplication) SetTo

func (o *OptSortApplication) SetTo(v SortApplication)

SetTo sets value to v.

type OptSortConnection

type OptSortConnection struct {
	Value SortConnection
	Set   bool
}

OptSortConnection is optional SortConnection.

func NewOptSortConnection

func NewOptSortConnection(v SortConnection) OptSortConnection

NewOptSortConnection returns new OptSortConnection with value set to v.

func (OptSortConnection) Get

func (o OptSortConnection) Get() (v SortConnection, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSortConnection) IsSet

func (o OptSortConnection) IsSet() bool

IsSet returns true if OptSortConnection was set.

func (OptSortConnection) Or

Or returns value if set, or given parameter if does not.

func (*OptSortConnection) Reset

func (o *OptSortConnection) Reset()

Reset unsets value.

func (*OptSortConnection) SetTo

func (o *OptSortConnection) SetTo(v SortConnection)

SetTo sets value to v.

type OptSortOutboundVoiceProfile

type OptSortOutboundVoiceProfile struct {
	Value SortOutboundVoiceProfile
	Set   bool
}

OptSortOutboundVoiceProfile is optional SortOutboundVoiceProfile.

func NewOptSortOutboundVoiceProfile

func NewOptSortOutboundVoiceProfile(v SortOutboundVoiceProfile) OptSortOutboundVoiceProfile

NewOptSortOutboundVoiceProfile returns new OptSortOutboundVoiceProfile with value set to v.

func (OptSortOutboundVoiceProfile) Get

Get returns value and boolean that denotes whether value was set.

func (OptSortOutboundVoiceProfile) IsSet

IsSet returns true if OptSortOutboundVoiceProfile was set.

func (OptSortOutboundVoiceProfile) Or

Or returns value if set, or given parameter if does not.

func (*OptSortOutboundVoiceProfile) Reset

func (o *OptSortOutboundVoiceProfile) Reset()

Reset unsets value.

func (*OptSortOutboundVoiceProfile) SetTo

SetTo sets value to v.

type OptSoundModifications

type OptSoundModifications struct {
	Value SoundModifications
	Set   bool
}

OptSoundModifications is optional SoundModifications.

func NewOptSoundModifications

func NewOptSoundModifications(v SoundModifications) OptSoundModifications

NewOptSoundModifications returns new OptSoundModifications with value set to v.

func (*OptSoundModifications) Decode

func (o *OptSoundModifications) Decode(d *jx.Decoder) error

Decode decodes SoundModifications from json.

func (OptSoundModifications) Encode

func (o OptSoundModifications) Encode(e *jx.Encoder)

Encode encodes SoundModifications as json.

func (OptSoundModifications) Get

Get returns value and boolean that denotes whether value was set.

func (OptSoundModifications) IsSet

func (o OptSoundModifications) IsSet() bool

IsSet returns true if OptSoundModifications was set.

func (OptSoundModifications) MarshalJSON

func (s OptSoundModifications) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSoundModifications) Or

Or returns value if set, or given parameter if does not.

func (*OptSoundModifications) Reset

func (o *OptSoundModifications) Reset()

Reset unsets value.

func (*OptSoundModifications) SetTo

SetTo sets value to v.

func (*OptSoundModifications) UnmarshalJSON

func (s *OptSoundModifications) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSourceResponse

type OptSourceResponse struct {
	Value SourceResponse
	Set   bool
}

OptSourceResponse is optional SourceResponse.

func NewOptSourceResponse

func NewOptSourceResponse(v SourceResponse) OptSourceResponse

NewOptSourceResponse returns new OptSourceResponse with value set to v.

func (*OptSourceResponse) Decode

func (o *OptSourceResponse) Decode(d *jx.Decoder) error

Decode decodes SourceResponse from json.

func (OptSourceResponse) Encode

func (o OptSourceResponse) Encode(e *jx.Encoder)

Encode encodes SourceResponse as json.

func (OptSourceResponse) Get

func (o OptSourceResponse) Get() (v SourceResponse, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSourceResponse) IsSet

func (o OptSourceResponse) IsSet() bool

IsSet returns true if OptSourceResponse was set.

func (OptSourceResponse) MarshalJSON

func (s OptSourceResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSourceResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptSourceResponse) Reset

func (o *OptSourceResponse) Reset()

Reset unsets value.

func (*OptSourceResponse) SetTo

func (o *OptSourceResponse) SetTo(v SourceResponse)

SetTo sets value to v.

func (*OptSourceResponse) UnmarshalJSON

func (s *OptSourceResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSpeakRequestLanguage

type OptSpeakRequestLanguage struct {
	Value SpeakRequestLanguage
	Set   bool
}

OptSpeakRequestLanguage is optional SpeakRequestLanguage.

func NewOptSpeakRequestLanguage

func NewOptSpeakRequestLanguage(v SpeakRequestLanguage) OptSpeakRequestLanguage

NewOptSpeakRequestLanguage returns new OptSpeakRequestLanguage with value set to v.

func (*OptSpeakRequestLanguage) Decode

func (o *OptSpeakRequestLanguage) Decode(d *jx.Decoder) error

Decode decodes SpeakRequestLanguage from json.

func (OptSpeakRequestLanguage) Encode

func (o OptSpeakRequestLanguage) Encode(e *jx.Encoder)

Encode encodes SpeakRequestLanguage as json.

func (OptSpeakRequestLanguage) Get

Get returns value and boolean that denotes whether value was set.

func (OptSpeakRequestLanguage) IsSet

func (o OptSpeakRequestLanguage) IsSet() bool

IsSet returns true if OptSpeakRequestLanguage was set.

func (OptSpeakRequestLanguage) MarshalJSON

func (s OptSpeakRequestLanguage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSpeakRequestLanguage) Or

Or returns value if set, or given parameter if does not.

func (*OptSpeakRequestLanguage) Reset

func (o *OptSpeakRequestLanguage) Reset()

Reset unsets value.

func (*OptSpeakRequestLanguage) SetTo

SetTo sets value to v.

func (*OptSpeakRequestLanguage) UnmarshalJSON

func (s *OptSpeakRequestLanguage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSpeakRequestPayloadType

type OptSpeakRequestPayloadType struct {
	Value SpeakRequestPayloadType
	Set   bool
}

OptSpeakRequestPayloadType is optional SpeakRequestPayloadType.

func NewOptSpeakRequestPayloadType

func NewOptSpeakRequestPayloadType(v SpeakRequestPayloadType) OptSpeakRequestPayloadType

NewOptSpeakRequestPayloadType returns new OptSpeakRequestPayloadType with value set to v.

func (*OptSpeakRequestPayloadType) Decode

Decode decodes SpeakRequestPayloadType from json.

func (OptSpeakRequestPayloadType) Encode

func (o OptSpeakRequestPayloadType) Encode(e *jx.Encoder)

Encode encodes SpeakRequestPayloadType as json.

func (OptSpeakRequestPayloadType) Get

Get returns value and boolean that denotes whether value was set.

func (OptSpeakRequestPayloadType) IsSet

func (o OptSpeakRequestPayloadType) IsSet() bool

IsSet returns true if OptSpeakRequestPayloadType was set.

func (OptSpeakRequestPayloadType) MarshalJSON

func (s OptSpeakRequestPayloadType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSpeakRequestPayloadType) Or

Or returns value if set, or given parameter if does not.

func (*OptSpeakRequestPayloadType) Reset

func (o *OptSpeakRequestPayloadType) Reset()

Reset unsets value.

func (*OptSpeakRequestPayloadType) SetTo

SetTo sets value to v.

func (*OptSpeakRequestPayloadType) UnmarshalJSON

func (s *OptSpeakRequestPayloadType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSpeakRequestServiceLevel

type OptSpeakRequestServiceLevel struct {
	Value SpeakRequestServiceLevel
	Set   bool
}

OptSpeakRequestServiceLevel is optional SpeakRequestServiceLevel.

func NewOptSpeakRequestServiceLevel

func NewOptSpeakRequestServiceLevel(v SpeakRequestServiceLevel) OptSpeakRequestServiceLevel

NewOptSpeakRequestServiceLevel returns new OptSpeakRequestServiceLevel with value set to v.

func (*OptSpeakRequestServiceLevel) Decode

Decode decodes SpeakRequestServiceLevel from json.

func (OptSpeakRequestServiceLevel) Encode

func (o OptSpeakRequestServiceLevel) Encode(e *jx.Encoder)

Encode encodes SpeakRequestServiceLevel as json.

func (OptSpeakRequestServiceLevel) Get

Get returns value and boolean that denotes whether value was set.

func (OptSpeakRequestServiceLevel) IsSet

IsSet returns true if OptSpeakRequestServiceLevel was set.

func (OptSpeakRequestServiceLevel) MarshalJSON

func (s OptSpeakRequestServiceLevel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSpeakRequestServiceLevel) Or

Or returns value if set, or given parameter if does not.

func (*OptSpeakRequestServiceLevel) Reset

func (o *OptSpeakRequestServiceLevel) Reset()

Reset unsets value.

func (*OptSpeakRequestServiceLevel) SetTo

SetTo sets value to v.

func (*OptSpeakRequestServiceLevel) UnmarshalJSON

func (s *OptSpeakRequestServiceLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStartForkingRequestStreamType

type OptStartForkingRequestStreamType struct {
	Value StartForkingRequestStreamType
	Set   bool
}

OptStartForkingRequestStreamType is optional StartForkingRequestStreamType.

func NewOptStartForkingRequestStreamType

func NewOptStartForkingRequestStreamType(v StartForkingRequestStreamType) OptStartForkingRequestStreamType

NewOptStartForkingRequestStreamType returns new OptStartForkingRequestStreamType with value set to v.

func (*OptStartForkingRequestStreamType) Decode

Decode decodes StartForkingRequestStreamType from json.

func (OptStartForkingRequestStreamType) Encode

Encode encodes StartForkingRequestStreamType as json.

func (OptStartForkingRequestStreamType) Get

Get returns value and boolean that denotes whether value was set.

func (OptStartForkingRequestStreamType) IsSet

IsSet returns true if OptStartForkingRequestStreamType was set.

func (OptStartForkingRequestStreamType) MarshalJSON

func (s OptStartForkingRequestStreamType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStartForkingRequestStreamType) Or

Or returns value if set, or given parameter if does not.

func (*OptStartForkingRequestStreamType) Reset

Reset unsets value.

func (*OptStartForkingRequestStreamType) SetTo

SetTo sets value to v.

func (*OptStartForkingRequestStreamType) UnmarshalJSON

func (s *OptStartForkingRequestStreamType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStartRecordingRequestRecordingTrack

type OptStartRecordingRequestRecordingTrack struct {
	Value StartRecordingRequestRecordingTrack
	Set   bool
}

OptStartRecordingRequestRecordingTrack is optional StartRecordingRequestRecordingTrack.

func NewOptStartRecordingRequestRecordingTrack

func NewOptStartRecordingRequestRecordingTrack(v StartRecordingRequestRecordingTrack) OptStartRecordingRequestRecordingTrack

NewOptStartRecordingRequestRecordingTrack returns new OptStartRecordingRequestRecordingTrack with value set to v.

func (*OptStartRecordingRequestRecordingTrack) Decode

Decode decodes StartRecordingRequestRecordingTrack from json.

func (OptStartRecordingRequestRecordingTrack) Encode

Encode encodes StartRecordingRequestRecordingTrack as json.

func (OptStartRecordingRequestRecordingTrack) Get

Get returns value and boolean that denotes whether value was set.

func (OptStartRecordingRequestRecordingTrack) IsSet

IsSet returns true if OptStartRecordingRequestRecordingTrack was set.

func (OptStartRecordingRequestRecordingTrack) MarshalJSON

func (s OptStartRecordingRequestRecordingTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStartRecordingRequestRecordingTrack) Or

Or returns value if set, or given parameter if does not.

func (*OptStartRecordingRequestRecordingTrack) Reset

Reset unsets value.

func (*OptStartRecordingRequestRecordingTrack) SetTo

SetTo sets value to v.

func (*OptStartRecordingRequestRecordingTrack) UnmarshalJSON

func (s *OptStartRecordingRequestRecordingTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStartRecordingRequestTrim

type OptStartRecordingRequestTrim struct {
	Value StartRecordingRequestTrim
	Set   bool
}

OptStartRecordingRequestTrim is optional StartRecordingRequestTrim.

func NewOptStartRecordingRequestTrim

func NewOptStartRecordingRequestTrim(v StartRecordingRequestTrim) OptStartRecordingRequestTrim

NewOptStartRecordingRequestTrim returns new OptStartRecordingRequestTrim with value set to v.

func (*OptStartRecordingRequestTrim) Decode

Decode decodes StartRecordingRequestTrim from json.

func (OptStartRecordingRequestTrim) Encode

Encode encodes StartRecordingRequestTrim as json.

func (OptStartRecordingRequestTrim) Get

Get returns value and boolean that denotes whether value was set.

func (OptStartRecordingRequestTrim) IsSet

IsSet returns true if OptStartRecordingRequestTrim was set.

func (OptStartRecordingRequestTrim) MarshalJSON

func (s OptStartRecordingRequestTrim) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStartRecordingRequestTrim) Or

Or returns value if set, or given parameter if does not.

func (*OptStartRecordingRequestTrim) Reset

func (o *OptStartRecordingRequestTrim) Reset()

Reset unsets value.

func (*OptStartRecordingRequestTrim) SetTo

SetTo sets value to v.

func (*OptStartRecordingRequestTrim) UnmarshalJSON

func (s *OptStartRecordingRequestTrim) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStartStreamingRequestStreamTrack

type OptStartStreamingRequestStreamTrack struct {
	Value StartStreamingRequestStreamTrack
	Set   bool
}

OptStartStreamingRequestStreamTrack is optional StartStreamingRequestStreamTrack.

func NewOptStartStreamingRequestStreamTrack

func NewOptStartStreamingRequestStreamTrack(v StartStreamingRequestStreamTrack) OptStartStreamingRequestStreamTrack

NewOptStartStreamingRequestStreamTrack returns new OptStartStreamingRequestStreamTrack with value set to v.

func (*OptStartStreamingRequestStreamTrack) Decode

Decode decodes StartStreamingRequestStreamTrack from json.

func (OptStartStreamingRequestStreamTrack) Encode

Encode encodes StartStreamingRequestStreamTrack as json.

func (OptStartStreamingRequestStreamTrack) Get

Get returns value and boolean that denotes whether value was set.

func (OptStartStreamingRequestStreamTrack) IsSet

IsSet returns true if OptStartStreamingRequestStreamTrack was set.

func (OptStartStreamingRequestStreamTrack) MarshalJSON

func (s OptStartStreamingRequestStreamTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStartStreamingRequestStreamTrack) Or

Or returns value if set, or given parameter if does not.

func (*OptStartStreamingRequestStreamTrack) Reset

Reset unsets value.

func (*OptStartStreamingRequestStreamTrack) SetTo

SetTo sets value to v.

func (*OptStartStreamingRequestStreamTrack) UnmarshalJSON

func (s *OptStartStreamingRequestStreamTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStatus

type OptStatus struct {
	Value Status
	Set   bool
}

OptStatus is optional Status.

func NewOptStatus

func NewOptStatus(v Status) OptStatus

NewOptStatus returns new OptStatus with value set to v.

func (OptStatus) Get

func (o OptStatus) Get() (v Status, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptStatus) IsSet

func (o OptStatus) IsSet() bool

IsSet returns true if OptStatus was set.

func (OptStatus) Or

func (o OptStatus) Or(d Status) Status

Or returns value if set, or given parameter if does not.

func (*OptStatus) Reset

func (o *OptStatus) Reset()

Reset unsets value.

func (*OptStatus) SetTo

func (o *OptStatus) SetTo(v Status)

SetTo sets value to v.

type OptStopForkingRequestStreamType

type OptStopForkingRequestStreamType struct {
	Value StopForkingRequestStreamType
	Set   bool
}

OptStopForkingRequestStreamType is optional StopForkingRequestStreamType.

func NewOptStopForkingRequestStreamType

func NewOptStopForkingRequestStreamType(v StopForkingRequestStreamType) OptStopForkingRequestStreamType

NewOptStopForkingRequestStreamType returns new OptStopForkingRequestStreamType with value set to v.

func (*OptStopForkingRequestStreamType) Decode

Decode decodes StopForkingRequestStreamType from json.

func (OptStopForkingRequestStreamType) Encode

Encode encodes StopForkingRequestStreamType as json.

func (OptStopForkingRequestStreamType) Get

Get returns value and boolean that denotes whether value was set.

func (OptStopForkingRequestStreamType) IsSet

IsSet returns true if OptStopForkingRequestStreamType was set.

func (OptStopForkingRequestStreamType) MarshalJSON

func (s OptStopForkingRequestStreamType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStopForkingRequestStreamType) Or

Or returns value if set, or given parameter if does not.

func (*OptStopForkingRequestStreamType) Reset

Reset unsets value.

func (*OptStopForkingRequestStreamType) SetTo

SetTo sets value to v.

func (*OptStopForkingRequestStreamType) UnmarshalJSON

func (s *OptStopForkingRequestStreamType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStringInt

type OptStringInt struct {
	Value int
	Set   bool
}

OptStringInt is optional int.

func NewOptStringInt

func NewOptStringInt(v int) OptStringInt

NewOptStringInt returns new OptStringInt with value set to v.

func (*OptStringInt) Decode

func (o *OptStringInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptStringInt) Encode

func (o OptStringInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptStringInt) Get

func (o OptStringInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptStringInt) IsSet

func (o OptStringInt) IsSet() bool

IsSet returns true if OptStringInt was set.

func (OptStringInt) MarshalJSON

func (s OptStringInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStringInt) Or

func (o OptStringInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptStringInt) Reset

func (o *OptStringInt) Reset()

Reset unsets value.

func (*OptStringInt) SetTo

func (o *OptStringInt) SetTo(v int)

SetTo sets value to v.

func (*OptStringInt) UnmarshalJSON

func (s *OptStringInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStringInt64

type OptStringInt64 struct {
	Value int64
	Set   bool
}

OptStringInt64 is optional int64.

func NewOptStringInt64

func NewOptStringInt64(v int64) OptStringInt64

NewOptStringInt64 returns new OptStringInt64 with value set to v.

func (*OptStringInt64) Decode

func (o *OptStringInt64) Decode(d *jx.Decoder) error

Decode decodes int64 from json.

func (OptStringInt64) Encode

func (o OptStringInt64) Encode(e *jx.Encoder)

Encode encodes int64 as json.

func (OptStringInt64) Get

func (o OptStringInt64) Get() (v int64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptStringInt64) IsSet

func (o OptStringInt64) IsSet() bool

IsSet returns true if OptStringInt64 was set.

func (OptStringInt64) MarshalJSON

func (s OptStringInt64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStringInt64) Or

func (o OptStringInt64) Or(d int64) int64

Or returns value if set, or given parameter if does not.

func (*OptStringInt64) Reset

func (o *OptStringInt64) Reset()

Reset unsets value.

func (*OptStringInt64) SetTo

func (o *OptStringInt64) SetTo(v int64)

SetTo sets value to v.

func (*OptStringInt64) UnmarshalJSON

func (s *OptStringInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSubNumberOrderRegulatoryRequirementWithValueFieldType

type OptSubNumberOrderRegulatoryRequirementWithValueFieldType struct {
	Value SubNumberOrderRegulatoryRequirementWithValueFieldType
	Set   bool
}

OptSubNumberOrderRegulatoryRequirementWithValueFieldType is optional SubNumberOrderRegulatoryRequirementWithValueFieldType.

func NewOptSubNumberOrderRegulatoryRequirementWithValueFieldType

NewOptSubNumberOrderRegulatoryRequirementWithValueFieldType returns new OptSubNumberOrderRegulatoryRequirementWithValueFieldType with value set to v.

func (*OptSubNumberOrderRegulatoryRequirementWithValueFieldType) Decode

Decode decodes SubNumberOrderRegulatoryRequirementWithValueFieldType from json.

func (OptSubNumberOrderRegulatoryRequirementWithValueFieldType) Encode

Encode encodes SubNumberOrderRegulatoryRequirementWithValueFieldType as json.

func (OptSubNumberOrderRegulatoryRequirementWithValueFieldType) Get

Get returns value and boolean that denotes whether value was set.

func (OptSubNumberOrderRegulatoryRequirementWithValueFieldType) IsSet

IsSet returns true if OptSubNumberOrderRegulatoryRequirementWithValueFieldType was set.

func (OptSubNumberOrderRegulatoryRequirementWithValueFieldType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptSubNumberOrderRegulatoryRequirementWithValueFieldType) Or

Or returns value if set, or given parameter if does not.

func (*OptSubNumberOrderRegulatoryRequirementWithValueFieldType) Reset

Reset unsets value.

func (*OptSubNumberOrderRegulatoryRequirementWithValueFieldType) SetTo

SetTo sets value to v.

func (*OptSubNumberOrderRegulatoryRequirementWithValueFieldType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTelephonyCredential

type OptTelephonyCredential struct {
	Value TelephonyCredential
	Set   bool
}

OptTelephonyCredential is optional TelephonyCredential.

func NewOptTelephonyCredential

func NewOptTelephonyCredential(v TelephonyCredential) OptTelephonyCredential

NewOptTelephonyCredential returns new OptTelephonyCredential with value set to v.

func (*OptTelephonyCredential) Decode

func (o *OptTelephonyCredential) Decode(d *jx.Decoder) error

Decode decodes TelephonyCredential from json.

func (OptTelephonyCredential) Encode

func (o OptTelephonyCredential) Encode(e *jx.Encoder)

Encode encodes TelephonyCredential as json.

func (OptTelephonyCredential) Get

Get returns value and boolean that denotes whether value was set.

func (OptTelephonyCredential) IsSet

func (o OptTelephonyCredential) IsSet() bool

IsSet returns true if OptTelephonyCredential was set.

func (OptTelephonyCredential) MarshalJSON

func (s OptTelephonyCredential) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTelephonyCredential) Or

Or returns value if set, or given parameter if does not.

func (*OptTelephonyCredential) Reset

func (o *OptTelephonyCredential) Reset()

Reset unsets value.

func (*OptTelephonyCredential) SetTo

SetTo sets value to v.

func (*OptTelephonyCredential) UnmarshalJSON

func (s *OptTelephonyCredential) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlApplication

type OptTexmlApplication struct {
	Value TexmlApplication
	Set   bool
}

OptTexmlApplication is optional TexmlApplication.

func NewOptTexmlApplication

func NewOptTexmlApplication(v TexmlApplication) OptTexmlApplication

NewOptTexmlApplication returns new OptTexmlApplication with value set to v.

func (*OptTexmlApplication) Decode

func (o *OptTexmlApplication) Decode(d *jx.Decoder) error

Decode decodes TexmlApplication from json.

func (OptTexmlApplication) Encode

func (o OptTexmlApplication) Encode(e *jx.Encoder)

Encode encodes TexmlApplication as json.

func (OptTexmlApplication) Get

func (o OptTexmlApplication) Get() (v TexmlApplication, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTexmlApplication) IsSet

func (o OptTexmlApplication) IsSet() bool

IsSet returns true if OptTexmlApplication was set.

func (OptTexmlApplication) MarshalJSON

func (s OptTexmlApplication) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTexmlApplication) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlApplication) Reset

func (o *OptTexmlApplication) Reset()

Reset unsets value.

func (*OptTexmlApplication) SetTo

SetTo sets value to v.

func (*OptTexmlApplication) UnmarshalJSON

func (s *OptTexmlApplication) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlApplicationInbound

type OptTexmlApplicationInbound struct {
	Value TexmlApplicationInbound
	Set   bool
}

OptTexmlApplicationInbound is optional TexmlApplicationInbound.

func NewOptTexmlApplicationInbound

func NewOptTexmlApplicationInbound(v TexmlApplicationInbound) OptTexmlApplicationInbound

NewOptTexmlApplicationInbound returns new OptTexmlApplicationInbound with value set to v.

func (*OptTexmlApplicationInbound) Decode

Decode decodes TexmlApplicationInbound from json.

func (OptTexmlApplicationInbound) Encode

func (o OptTexmlApplicationInbound) Encode(e *jx.Encoder)

Encode encodes TexmlApplicationInbound as json.

func (OptTexmlApplicationInbound) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlApplicationInbound) IsSet

func (o OptTexmlApplicationInbound) IsSet() bool

IsSet returns true if OptTexmlApplicationInbound was set.

func (OptTexmlApplicationInbound) MarshalJSON

func (s OptTexmlApplicationInbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTexmlApplicationInbound) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlApplicationInbound) Reset

func (o *OptTexmlApplicationInbound) Reset()

Reset unsets value.

func (*OptTexmlApplicationInbound) SetTo

SetTo sets value to v.

func (*OptTexmlApplicationInbound) UnmarshalJSON

func (s *OptTexmlApplicationInbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlApplicationInboundSipSubdomainReceiveSettings

type OptTexmlApplicationInboundSipSubdomainReceiveSettings struct {
	Value TexmlApplicationInboundSipSubdomainReceiveSettings
	Set   bool
}

OptTexmlApplicationInboundSipSubdomainReceiveSettings is optional TexmlApplicationInboundSipSubdomainReceiveSettings.

func NewOptTexmlApplicationInboundSipSubdomainReceiveSettings

NewOptTexmlApplicationInboundSipSubdomainReceiveSettings returns new OptTexmlApplicationInboundSipSubdomainReceiveSettings with value set to v.

func (*OptTexmlApplicationInboundSipSubdomainReceiveSettings) Decode

Decode decodes TexmlApplicationInboundSipSubdomainReceiveSettings from json.

func (OptTexmlApplicationInboundSipSubdomainReceiveSettings) Encode

Encode encodes TexmlApplicationInboundSipSubdomainReceiveSettings as json.

func (OptTexmlApplicationInboundSipSubdomainReceiveSettings) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlApplicationInboundSipSubdomainReceiveSettings) IsSet

IsSet returns true if OptTexmlApplicationInboundSipSubdomainReceiveSettings was set.

func (OptTexmlApplicationInboundSipSubdomainReceiveSettings) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptTexmlApplicationInboundSipSubdomainReceiveSettings) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlApplicationInboundSipSubdomainReceiveSettings) Reset

Reset unsets value.

func (*OptTexmlApplicationInboundSipSubdomainReceiveSettings) SetTo

SetTo sets value to v.

func (*OptTexmlApplicationInboundSipSubdomainReceiveSettings) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlApplicationOutbound

type OptTexmlApplicationOutbound struct {
	Value TexmlApplicationOutbound
	Set   bool
}

OptTexmlApplicationOutbound is optional TexmlApplicationOutbound.

func NewOptTexmlApplicationOutbound

func NewOptTexmlApplicationOutbound(v TexmlApplicationOutbound) OptTexmlApplicationOutbound

NewOptTexmlApplicationOutbound returns new OptTexmlApplicationOutbound with value set to v.

func (*OptTexmlApplicationOutbound) Decode

Decode decodes TexmlApplicationOutbound from json.

func (OptTexmlApplicationOutbound) Encode

func (o OptTexmlApplicationOutbound) Encode(e *jx.Encoder)

Encode encodes TexmlApplicationOutbound as json.

func (OptTexmlApplicationOutbound) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlApplicationOutbound) IsSet

IsSet returns true if OptTexmlApplicationOutbound was set.

func (OptTexmlApplicationOutbound) MarshalJSON

func (s OptTexmlApplicationOutbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTexmlApplicationOutbound) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlApplicationOutbound) Reset

func (o *OptTexmlApplicationOutbound) Reset()

Reset unsets value.

func (*OptTexmlApplicationOutbound) SetTo

SetTo sets value to v.

func (*OptTexmlApplicationOutbound) UnmarshalJSON

func (s *OptTexmlApplicationOutbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlApplicationStatusCallbackMethod

type OptTexmlApplicationStatusCallbackMethod struct {
	Value TexmlApplicationStatusCallbackMethod
	Set   bool
}

OptTexmlApplicationStatusCallbackMethod is optional TexmlApplicationStatusCallbackMethod.

func NewOptTexmlApplicationStatusCallbackMethod

func NewOptTexmlApplicationStatusCallbackMethod(v TexmlApplicationStatusCallbackMethod) OptTexmlApplicationStatusCallbackMethod

NewOptTexmlApplicationStatusCallbackMethod returns new OptTexmlApplicationStatusCallbackMethod with value set to v.

func (*OptTexmlApplicationStatusCallbackMethod) Decode

Decode decodes TexmlApplicationStatusCallbackMethod from json.

func (OptTexmlApplicationStatusCallbackMethod) Encode

Encode encodes TexmlApplicationStatusCallbackMethod as json.

func (OptTexmlApplicationStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlApplicationStatusCallbackMethod) IsSet

IsSet returns true if OptTexmlApplicationStatusCallbackMethod was set.

func (OptTexmlApplicationStatusCallbackMethod) MarshalJSON

func (s OptTexmlApplicationStatusCallbackMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTexmlApplicationStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlApplicationStatusCallbackMethod) Reset

Reset unsets value.

func (*OptTexmlApplicationStatusCallbackMethod) SetTo

SetTo sets value to v.

func (*OptTexmlApplicationStatusCallbackMethod) UnmarshalJSON

func (s *OptTexmlApplicationStatusCallbackMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlApplicationVoiceMethod

type OptTexmlApplicationVoiceMethod struct {
	Value TexmlApplicationVoiceMethod
	Set   bool
}

OptTexmlApplicationVoiceMethod is optional TexmlApplicationVoiceMethod.

func NewOptTexmlApplicationVoiceMethod

func NewOptTexmlApplicationVoiceMethod(v TexmlApplicationVoiceMethod) OptTexmlApplicationVoiceMethod

NewOptTexmlApplicationVoiceMethod returns new OptTexmlApplicationVoiceMethod with value set to v.

func (*OptTexmlApplicationVoiceMethod) Decode

Decode decodes TexmlApplicationVoiceMethod from json.

func (OptTexmlApplicationVoiceMethod) Encode

Encode encodes TexmlApplicationVoiceMethod as json.

func (OptTexmlApplicationVoiceMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlApplicationVoiceMethod) IsSet

IsSet returns true if OptTexmlApplicationVoiceMethod was set.

func (OptTexmlApplicationVoiceMethod) MarshalJSON

func (s OptTexmlApplicationVoiceMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTexmlApplicationVoiceMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlApplicationVoiceMethod) Reset

func (o *OptTexmlApplicationVoiceMethod) Reset()

Reset unsets value.

func (*OptTexmlApplicationVoiceMethod) SetTo

SetTo sets value to v.

func (*OptTexmlApplicationVoiceMethod) UnmarshalJSON

func (s *OptTexmlApplicationVoiceMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlCreateCallRecordingRequestBody

type OptTexmlCreateCallRecordingRequestBody struct {
	Value TexmlCreateCallRecordingRequestBody
	Set   bool
}

OptTexmlCreateCallRecordingRequestBody is optional TexmlCreateCallRecordingRequestBody.

func NewOptTexmlCreateCallRecordingRequestBody

func NewOptTexmlCreateCallRecordingRequestBody(v TexmlCreateCallRecordingRequestBody) OptTexmlCreateCallRecordingRequestBody

NewOptTexmlCreateCallRecordingRequestBody returns new OptTexmlCreateCallRecordingRequestBody with value set to v.

func (OptTexmlCreateCallRecordingRequestBody) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlCreateCallRecordingRequestBody) IsSet

IsSet returns true if OptTexmlCreateCallRecordingRequestBody was set.

func (OptTexmlCreateCallRecordingRequestBody) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlCreateCallRecordingRequestBody) Reset

Reset unsets value.

func (*OptTexmlCreateCallRecordingRequestBody) SetTo

SetTo sets value to v.

type OptTexmlRecordingChannels

type OptTexmlRecordingChannels struct {
	Value TexmlRecordingChannels
	Set   bool
}

OptTexmlRecordingChannels is optional TexmlRecordingChannels.

func NewOptTexmlRecordingChannels

func NewOptTexmlRecordingChannels(v TexmlRecordingChannels) OptTexmlRecordingChannels

NewOptTexmlRecordingChannels returns new OptTexmlRecordingChannels with value set to v.

func (OptTexmlRecordingChannels) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlRecordingChannels) IsSet

func (o OptTexmlRecordingChannels) IsSet() bool

IsSet returns true if OptTexmlRecordingChannels was set.

func (OptTexmlRecordingChannels) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlRecordingChannels) Reset

func (o *OptTexmlRecordingChannels) Reset()

Reset unsets value.

func (*OptTexmlRecordingChannels) SetTo

SetTo sets value to v.

type OptTexmlRecordingMediaUrl

type OptTexmlRecordingMediaUrl struct {
	Value TexmlRecordingMediaUrl
	Set   bool
}

OptTexmlRecordingMediaUrl is optional TexmlRecordingMediaUrl.

func NewOptTexmlRecordingMediaUrl

func NewOptTexmlRecordingMediaUrl(v TexmlRecordingMediaUrl) OptTexmlRecordingMediaUrl

NewOptTexmlRecordingMediaUrl returns new OptTexmlRecordingMediaUrl with value set to v.

func (*OptTexmlRecordingMediaUrl) Decode

func (o *OptTexmlRecordingMediaUrl) Decode(d *jx.Decoder) error

Decode decodes TexmlRecordingMediaUrl from json.

func (OptTexmlRecordingMediaUrl) Encode

func (o OptTexmlRecordingMediaUrl) Encode(e *jx.Encoder)

Encode encodes TexmlRecordingMediaUrl as json.

func (OptTexmlRecordingMediaUrl) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlRecordingMediaUrl) IsSet

func (o OptTexmlRecordingMediaUrl) IsSet() bool

IsSet returns true if OptTexmlRecordingMediaUrl was set.

func (OptTexmlRecordingMediaUrl) MarshalJSON

func (s OptTexmlRecordingMediaUrl) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTexmlRecordingMediaUrl) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlRecordingMediaUrl) Reset

func (o *OptTexmlRecordingMediaUrl) Reset()

Reset unsets value.

func (*OptTexmlRecordingMediaUrl) SetTo

SetTo sets value to v.

func (*OptTexmlRecordingMediaUrl) UnmarshalJSON

func (s *OptTexmlRecordingMediaUrl) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlRecordingStatus

type OptTexmlRecordingStatus struct {
	Value TexmlRecordingStatus
	Set   bool
}

OptTexmlRecordingStatus is optional TexmlRecordingStatus.

func NewOptTexmlRecordingStatus

func NewOptTexmlRecordingStatus(v TexmlRecordingStatus) OptTexmlRecordingStatus

NewOptTexmlRecordingStatus returns new OptTexmlRecordingStatus with value set to v.

func (*OptTexmlRecordingStatus) Decode

func (o *OptTexmlRecordingStatus) Decode(d *jx.Decoder) error

Decode decodes TexmlRecordingStatus from json.

func (OptTexmlRecordingStatus) Encode

func (o OptTexmlRecordingStatus) Encode(e *jx.Encoder)

Encode encodes TexmlRecordingStatus as json.

func (OptTexmlRecordingStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlRecordingStatus) IsSet

func (o OptTexmlRecordingStatus) IsSet() bool

IsSet returns true if OptTexmlRecordingStatus was set.

func (OptTexmlRecordingStatus) MarshalJSON

func (s OptTexmlRecordingStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTexmlRecordingStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlRecordingStatus) Reset

func (o *OptTexmlRecordingStatus) Reset()

Reset unsets value.

func (*OptTexmlRecordingStatus) SetTo

SetTo sets value to v.

func (*OptTexmlRecordingStatus) UnmarshalJSON

func (s *OptTexmlRecordingStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlRecordingSubresourcesUris

type OptTexmlRecordingSubresourcesUris struct {
	Value TexmlRecordingSubresourcesUris
	Set   bool
}

OptTexmlRecordingSubresourcesUris is optional TexmlRecordingSubresourcesUris.

func NewOptTexmlRecordingSubresourcesUris

func NewOptTexmlRecordingSubresourcesUris(v TexmlRecordingSubresourcesUris) OptTexmlRecordingSubresourcesUris

NewOptTexmlRecordingSubresourcesUris returns new OptTexmlRecordingSubresourcesUris with value set to v.

func (*OptTexmlRecordingSubresourcesUris) Decode

Decode decodes TexmlRecordingSubresourcesUris from json.

func (OptTexmlRecordingSubresourcesUris) Encode

Encode encodes TexmlRecordingSubresourcesUris as json.

func (OptTexmlRecordingSubresourcesUris) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlRecordingSubresourcesUris) IsSet

IsSet returns true if OptTexmlRecordingSubresourcesUris was set.

func (OptTexmlRecordingSubresourcesUris) MarshalJSON

func (s OptTexmlRecordingSubresourcesUris) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTexmlRecordingSubresourcesUris) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlRecordingSubresourcesUris) Reset

Reset unsets value.

func (*OptTexmlRecordingSubresourcesUris) SetTo

SetTo sets value to v.

func (*OptTexmlRecordingSubresourcesUris) UnmarshalJSON

func (s *OptTexmlRecordingSubresourcesUris) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlRecordingTranscriptionStatus

type OptTexmlRecordingTranscriptionStatus struct {
	Value TexmlRecordingTranscriptionStatus
	Set   bool
}

OptTexmlRecordingTranscriptionStatus is optional TexmlRecordingTranscriptionStatus.

func NewOptTexmlRecordingTranscriptionStatus

func NewOptTexmlRecordingTranscriptionStatus(v TexmlRecordingTranscriptionStatus) OptTexmlRecordingTranscriptionStatus

NewOptTexmlRecordingTranscriptionStatus returns new OptTexmlRecordingTranscriptionStatus with value set to v.

func (*OptTexmlRecordingTranscriptionStatus) Decode

Decode decodes TexmlRecordingTranscriptionStatus from json.

func (OptTexmlRecordingTranscriptionStatus) Encode

Encode encodes TexmlRecordingTranscriptionStatus as json.

func (OptTexmlRecordingTranscriptionStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlRecordingTranscriptionStatus) IsSet

IsSet returns true if OptTexmlRecordingTranscriptionStatus was set.

func (OptTexmlRecordingTranscriptionStatus) MarshalJSON

func (s OptTexmlRecordingTranscriptionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTexmlRecordingTranscriptionStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlRecordingTranscriptionStatus) Reset

Reset unsets value.

func (*OptTexmlRecordingTranscriptionStatus) SetTo

SetTo sets value to v.

func (*OptTexmlRecordingTranscriptionStatus) UnmarshalJSON

func (s *OptTexmlRecordingTranscriptionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlSid

type OptTexmlSid struct {
	Value TexmlSid
	Set   bool
}

OptTexmlSid is optional TexmlSid.

func NewOptTexmlSid

func NewOptTexmlSid(v TexmlSid) OptTexmlSid

NewOptTexmlSid returns new OptTexmlSid with value set to v.

func (*OptTexmlSid) Decode

func (o *OptTexmlSid) Decode(d *jx.Decoder) error

Decode decodes TexmlSid from json.

func (OptTexmlSid) Encode

func (o OptTexmlSid) Encode(e *jx.Encoder)

Encode encodes TexmlSid as json.

func (OptTexmlSid) Get

func (o OptTexmlSid) Get() (v TexmlSid, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTexmlSid) IsSet

func (o OptTexmlSid) IsSet() bool

IsSet returns true if OptTexmlSid was set.

func (OptTexmlSid) MarshalJSON

func (s OptTexmlSid) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTexmlSid) Or

func (o OptTexmlSid) Or(d TexmlSid) TexmlSid

Or returns value if set, or given parameter if does not.

func (*OptTexmlSid) Reset

func (o *OptTexmlSid) Reset()

Reset unsets value.

func (*OptTexmlSid) SetTo

func (o *OptTexmlSid) SetTo(v TexmlSid)

SetTo sets value to v.

func (*OptTexmlSid) UnmarshalJSON

func (s *OptTexmlSid) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTexmlStatusCallback

type OptTexmlStatusCallback struct {
	Value TexmlStatusCallback
	Set   bool
}

OptTexmlStatusCallback is optional TexmlStatusCallback.

func NewOptTexmlStatusCallback

func NewOptTexmlStatusCallback(v TexmlStatusCallback) OptTexmlStatusCallback

NewOptTexmlStatusCallback returns new OptTexmlStatusCallback with value set to v.

func (OptTexmlStatusCallback) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlStatusCallback) IsSet

func (o OptTexmlStatusCallback) IsSet() bool

IsSet returns true if OptTexmlStatusCallback was set.

func (OptTexmlStatusCallback) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlStatusCallback) Reset

func (o *OptTexmlStatusCallback) Reset()

Reset unsets value.

func (*OptTexmlStatusCallback) SetTo

SetTo sets value to v.

type OptTexmlStatusCallbackMethod

type OptTexmlStatusCallbackMethod struct {
	Value TexmlStatusCallbackMethod
	Set   bool
}

OptTexmlStatusCallbackMethod is optional TexmlStatusCallbackMethod.

func NewOptTexmlStatusCallbackMethod

func NewOptTexmlStatusCallbackMethod(v TexmlStatusCallbackMethod) OptTexmlStatusCallbackMethod

NewOptTexmlStatusCallbackMethod returns new OptTexmlStatusCallbackMethod with value set to v.

func (OptTexmlStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlStatusCallbackMethod) IsSet

IsSet returns true if OptTexmlStatusCallbackMethod was set.

func (OptTexmlStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlStatusCallbackMethod) Reset

func (o *OptTexmlStatusCallbackMethod) Reset()

Reset unsets value.

func (*OptTexmlStatusCallbackMethod) SetTo

SetTo sets value to v.

type OptTexmlUpdateCallRecordingRequestBody

type OptTexmlUpdateCallRecordingRequestBody struct {
	Value TexmlUpdateCallRecordingRequestBody
	Set   bool
}

OptTexmlUpdateCallRecordingRequestBody is optional TexmlUpdateCallRecordingRequestBody.

func NewOptTexmlUpdateCallRecordingRequestBody

func NewOptTexmlUpdateCallRecordingRequestBody(v TexmlUpdateCallRecordingRequestBody) OptTexmlUpdateCallRecordingRequestBody

NewOptTexmlUpdateCallRecordingRequestBody returns new OptTexmlUpdateCallRecordingRequestBody with value set to v.

func (OptTexmlUpdateCallRecordingRequestBody) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlUpdateCallRecordingRequestBody) IsSet

IsSet returns true if OptTexmlUpdateCallRecordingRequestBody was set.

func (OptTexmlUpdateCallRecordingRequestBody) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlUpdateCallRecordingRequestBody) Reset

Reset unsets value.

func (*OptTexmlUpdateCallRecordingRequestBody) SetTo

SetTo sets value to v.

type OptTexmlUpdateCallRecordingRequestBodyStatus

type OptTexmlUpdateCallRecordingRequestBodyStatus struct {
	Value TexmlUpdateCallRecordingRequestBodyStatus
	Set   bool
}

OptTexmlUpdateCallRecordingRequestBodyStatus is optional TexmlUpdateCallRecordingRequestBodyStatus.

func NewOptTexmlUpdateCallRecordingRequestBodyStatus

func NewOptTexmlUpdateCallRecordingRequestBodyStatus(v TexmlUpdateCallRecordingRequestBodyStatus) OptTexmlUpdateCallRecordingRequestBodyStatus

NewOptTexmlUpdateCallRecordingRequestBodyStatus returns new OptTexmlUpdateCallRecordingRequestBodyStatus with value set to v.

func (OptTexmlUpdateCallRecordingRequestBodyStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptTexmlUpdateCallRecordingRequestBodyStatus) IsSet

IsSet returns true if OptTexmlUpdateCallRecordingRequestBodyStatus was set.

func (OptTexmlUpdateCallRecordingRequestBodyStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptTexmlUpdateCallRecordingRequestBodyStatus) Reset

Reset unsets value.

func (*OptTexmlUpdateCallRecordingRequestBodyStatus) SetTo

SetTo sets value to v.

type OptTrafficType

type OptTrafficType struct {
	Value TrafficType
	Set   bool
}

OptTrafficType is optional TrafficType.

func NewOptTrafficType

func NewOptTrafficType(v TrafficType) OptTrafficType

NewOptTrafficType returns new OptTrafficType with value set to v.

func (*OptTrafficType) Decode

func (o *OptTrafficType) Decode(d *jx.Decoder) error

Decode decodes TrafficType from json.

func (OptTrafficType) Encode

func (o OptTrafficType) Encode(e *jx.Encoder)

Encode encodes TrafficType as json.

func (OptTrafficType) Get

func (o OptTrafficType) Get() (v TrafficType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTrafficType) IsSet

func (o OptTrafficType) IsSet() bool

IsSet returns true if OptTrafficType was set.

func (OptTrafficType) MarshalJSON

func (s OptTrafficType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTrafficType) Or

Or returns value if set, or given parameter if does not.

func (*OptTrafficType) Reset

func (o *OptTrafficType) Reset()

Reset unsets value.

func (*OptTrafficType) SetTo

func (o *OptTrafficType) SetTo(v TrafficType)

SetTo sets value to v.

func (*OptTrafficType) UnmarshalJSON

func (s *OptTrafficType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTranscriptionStartRequestLanguage

type OptTranscriptionStartRequestLanguage struct {
	Value TranscriptionStartRequestLanguage
	Set   bool
}

OptTranscriptionStartRequestLanguage is optional TranscriptionStartRequestLanguage.

func NewOptTranscriptionStartRequestLanguage

func NewOptTranscriptionStartRequestLanguage(v TranscriptionStartRequestLanguage) OptTranscriptionStartRequestLanguage

NewOptTranscriptionStartRequestLanguage returns new OptTranscriptionStartRequestLanguage with value set to v.

func (*OptTranscriptionStartRequestLanguage) Decode

Decode decodes TranscriptionStartRequestLanguage from json.

func (OptTranscriptionStartRequestLanguage) Encode

Encode encodes TranscriptionStartRequestLanguage as json.

func (OptTranscriptionStartRequestLanguage) Get

Get returns value and boolean that denotes whether value was set.

func (OptTranscriptionStartRequestLanguage) IsSet

IsSet returns true if OptTranscriptionStartRequestLanguage was set.

func (OptTranscriptionStartRequestLanguage) MarshalJSON

func (s OptTranscriptionStartRequestLanguage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTranscriptionStartRequestLanguage) Or

Or returns value if set, or given parameter if does not.

func (*OptTranscriptionStartRequestLanguage) Reset

Reset unsets value.

func (*OptTranscriptionStartRequestLanguage) SetTo

SetTo sets value to v.

func (*OptTranscriptionStartRequestLanguage) UnmarshalJSON

func (s *OptTranscriptionStartRequestLanguage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTranscriptionStartRequestTranscriptionEngine

type OptTranscriptionStartRequestTranscriptionEngine struct {
	Value TranscriptionStartRequestTranscriptionEngine
	Set   bool
}

OptTranscriptionStartRequestTranscriptionEngine is optional TranscriptionStartRequestTranscriptionEngine.

func NewOptTranscriptionStartRequestTranscriptionEngine

func NewOptTranscriptionStartRequestTranscriptionEngine(v TranscriptionStartRequestTranscriptionEngine) OptTranscriptionStartRequestTranscriptionEngine

NewOptTranscriptionStartRequestTranscriptionEngine returns new OptTranscriptionStartRequestTranscriptionEngine with value set to v.

func (*OptTranscriptionStartRequestTranscriptionEngine) Decode

Decode decodes TranscriptionStartRequestTranscriptionEngine from json.

func (OptTranscriptionStartRequestTranscriptionEngine) Encode

Encode encodes TranscriptionStartRequestTranscriptionEngine as json.

func (OptTranscriptionStartRequestTranscriptionEngine) Get

Get returns value and boolean that denotes whether value was set.

func (OptTranscriptionStartRequestTranscriptionEngine) IsSet

IsSet returns true if OptTranscriptionStartRequestTranscriptionEngine was set.

func (OptTranscriptionStartRequestTranscriptionEngine) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptTranscriptionStartRequestTranscriptionEngine) Or

Or returns value if set, or given parameter if does not.

func (*OptTranscriptionStartRequestTranscriptionEngine) Reset

Reset unsets value.

func (*OptTranscriptionStartRequestTranscriptionEngine) SetTo

SetTo sets value to v.

func (*OptTranscriptionStartRequestTranscriptionEngine) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTransferCallRequestAnsweringMachineDetection

type OptTransferCallRequestAnsweringMachineDetection struct {
	Value TransferCallRequestAnsweringMachineDetection
	Set   bool
}

OptTransferCallRequestAnsweringMachineDetection is optional TransferCallRequestAnsweringMachineDetection.

func NewOptTransferCallRequestAnsweringMachineDetection

func NewOptTransferCallRequestAnsweringMachineDetection(v TransferCallRequestAnsweringMachineDetection) OptTransferCallRequestAnsweringMachineDetection

NewOptTransferCallRequestAnsweringMachineDetection returns new OptTransferCallRequestAnsweringMachineDetection with value set to v.

func (*OptTransferCallRequestAnsweringMachineDetection) Decode

Decode decodes TransferCallRequestAnsweringMachineDetection from json.

func (OptTransferCallRequestAnsweringMachineDetection) Encode

Encode encodes TransferCallRequestAnsweringMachineDetection as json.

func (OptTransferCallRequestAnsweringMachineDetection) Get

Get returns value and boolean that denotes whether value was set.

func (OptTransferCallRequestAnsweringMachineDetection) IsSet

IsSet returns true if OptTransferCallRequestAnsweringMachineDetection was set.

func (OptTransferCallRequestAnsweringMachineDetection) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptTransferCallRequestAnsweringMachineDetection) Or

Or returns value if set, or given parameter if does not.

func (*OptTransferCallRequestAnsweringMachineDetection) Reset

Reset unsets value.

func (*OptTransferCallRequestAnsweringMachineDetection) SetTo

SetTo sets value to v.

func (*OptTransferCallRequestAnsweringMachineDetection) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTransferCallRequestAnsweringMachineDetectionConfig

type OptTransferCallRequestAnsweringMachineDetectionConfig struct {
	Value TransferCallRequestAnsweringMachineDetectionConfig
	Set   bool
}

OptTransferCallRequestAnsweringMachineDetectionConfig is optional TransferCallRequestAnsweringMachineDetectionConfig.

func NewOptTransferCallRequestAnsweringMachineDetectionConfig

NewOptTransferCallRequestAnsweringMachineDetectionConfig returns new OptTransferCallRequestAnsweringMachineDetectionConfig with value set to v.

func (*OptTransferCallRequestAnsweringMachineDetectionConfig) Decode

Decode decodes TransferCallRequestAnsweringMachineDetectionConfig from json.

func (OptTransferCallRequestAnsweringMachineDetectionConfig) Encode

Encode encodes TransferCallRequestAnsweringMachineDetectionConfig as json.

func (OptTransferCallRequestAnsweringMachineDetectionConfig) Get

Get returns value and boolean that denotes whether value was set.

func (OptTransferCallRequestAnsweringMachineDetectionConfig) IsSet

IsSet returns true if OptTransferCallRequestAnsweringMachineDetectionConfig was set.

func (OptTransferCallRequestAnsweringMachineDetectionConfig) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptTransferCallRequestAnsweringMachineDetectionConfig) Or

Or returns value if set, or given parameter if does not.

func (*OptTransferCallRequestAnsweringMachineDetectionConfig) Reset

Reset unsets value.

func (*OptTransferCallRequestAnsweringMachineDetectionConfig) SetTo

SetTo sets value to v.

func (*OptTransferCallRequestAnsweringMachineDetectionConfig) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTransferCallRequestMediaEncryption

type OptTransferCallRequestMediaEncryption struct {
	Value TransferCallRequestMediaEncryption
	Set   bool
}

OptTransferCallRequestMediaEncryption is optional TransferCallRequestMediaEncryption.

func NewOptTransferCallRequestMediaEncryption

func NewOptTransferCallRequestMediaEncryption(v TransferCallRequestMediaEncryption) OptTransferCallRequestMediaEncryption

NewOptTransferCallRequestMediaEncryption returns new OptTransferCallRequestMediaEncryption with value set to v.

func (*OptTransferCallRequestMediaEncryption) Decode

Decode decodes TransferCallRequestMediaEncryption from json.

func (OptTransferCallRequestMediaEncryption) Encode

Encode encodes TransferCallRequestMediaEncryption as json.

func (OptTransferCallRequestMediaEncryption) Get

Get returns value and boolean that denotes whether value was set.

func (OptTransferCallRequestMediaEncryption) IsSet

IsSet returns true if OptTransferCallRequestMediaEncryption was set.

func (OptTransferCallRequestMediaEncryption) MarshalJSON

func (s OptTransferCallRequestMediaEncryption) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTransferCallRequestMediaEncryption) Or

Or returns value if set, or given parameter if does not.

func (*OptTransferCallRequestMediaEncryption) Reset

Reset unsets value.

func (*OptTransferCallRequestMediaEncryption) SetTo

SetTo sets value to v.

func (*OptTransferCallRequestMediaEncryption) UnmarshalJSON

func (s *OptTransferCallRequestMediaEncryption) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTransferCallRequestSipTransportProtocol

type OptTransferCallRequestSipTransportProtocol struct {
	Value TransferCallRequestSipTransportProtocol
	Set   bool
}

OptTransferCallRequestSipTransportProtocol is optional TransferCallRequestSipTransportProtocol.

func NewOptTransferCallRequestSipTransportProtocol

func NewOptTransferCallRequestSipTransportProtocol(v TransferCallRequestSipTransportProtocol) OptTransferCallRequestSipTransportProtocol

NewOptTransferCallRequestSipTransportProtocol returns new OptTransferCallRequestSipTransportProtocol with value set to v.

func (*OptTransferCallRequestSipTransportProtocol) Decode

Decode decodes TransferCallRequestSipTransportProtocol from json.

func (OptTransferCallRequestSipTransportProtocol) Encode

Encode encodes TransferCallRequestSipTransportProtocol as json.

func (OptTransferCallRequestSipTransportProtocol) Get

Get returns value and boolean that denotes whether value was set.

func (OptTransferCallRequestSipTransportProtocol) IsSet

IsSet returns true if OptTransferCallRequestSipTransportProtocol was set.

func (OptTransferCallRequestSipTransportProtocol) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptTransferCallRequestSipTransportProtocol) Or

Or returns value if set, or given parameter if does not.

func (*OptTransferCallRequestSipTransportProtocol) Reset

Reset unsets value.

func (*OptTransferCallRequestSipTransportProtocol) SetTo

SetTo sets value to v.

func (*OptTransferCallRequestSipTransportProtocol) UnmarshalJSON

func (s *OptTransferCallRequestSipTransportProtocol) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTransferCallRequestWebhookURLMethod

type OptTransferCallRequestWebhookURLMethod struct {
	Value TransferCallRequestWebhookURLMethod
	Set   bool
}

OptTransferCallRequestWebhookURLMethod is optional TransferCallRequestWebhookURLMethod.

func NewOptTransferCallRequestWebhookURLMethod

func NewOptTransferCallRequestWebhookURLMethod(v TransferCallRequestWebhookURLMethod) OptTransferCallRequestWebhookURLMethod

NewOptTransferCallRequestWebhookURLMethod returns new OptTransferCallRequestWebhookURLMethod with value set to v.

func (*OptTransferCallRequestWebhookURLMethod) Decode

Decode decodes TransferCallRequestWebhookURLMethod from json.

func (OptTransferCallRequestWebhookURLMethod) Encode

Encode encodes TransferCallRequestWebhookURLMethod as json.

func (OptTransferCallRequestWebhookURLMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptTransferCallRequestWebhookURLMethod) IsSet

IsSet returns true if OptTransferCallRequestWebhookURLMethod was set.

func (OptTransferCallRequestWebhookURLMethod) MarshalJSON

func (s OptTransferCallRequestWebhookURLMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTransferCallRequestWebhookURLMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptTransferCallRequestWebhookURLMethod) Reset

Reset unsets value.

func (*OptTransferCallRequestWebhookURLMethod) SetTo

SetTo sets value to v.

func (*OptTransferCallRequestWebhookURLMethod) UnmarshalJSON

func (s *OptTransferCallRequestWebhookURLMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTwimlRecordingChannels

type OptTwimlRecordingChannels struct {
	Value TwimlRecordingChannels
	Set   bool
}

OptTwimlRecordingChannels is optional TwimlRecordingChannels.

func NewOptTwimlRecordingChannels

func NewOptTwimlRecordingChannels(v TwimlRecordingChannels) OptTwimlRecordingChannels

NewOptTwimlRecordingChannels returns new OptTwimlRecordingChannels with value set to v.

func (*OptTwimlRecordingChannels) Decode

func (o *OptTwimlRecordingChannels) Decode(d *jx.Decoder) error

Decode decodes TwimlRecordingChannels from json.

func (OptTwimlRecordingChannels) Encode

func (o OptTwimlRecordingChannels) Encode(e *jx.Encoder)

Encode encodes TwimlRecordingChannels as json.

func (OptTwimlRecordingChannels) Get

Get returns value and boolean that denotes whether value was set.

func (OptTwimlRecordingChannels) IsSet

func (o OptTwimlRecordingChannels) IsSet() bool

IsSet returns true if OptTwimlRecordingChannels was set.

func (OptTwimlRecordingChannels) MarshalJSON

func (s OptTwimlRecordingChannels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTwimlRecordingChannels) Or

Or returns value if set, or given parameter if does not.

func (*OptTwimlRecordingChannels) Reset

func (o *OptTwimlRecordingChannels) Reset()

Reset unsets value.

func (*OptTwimlRecordingChannels) SetTo

SetTo sets value to v.

func (*OptTwimlRecordingChannels) UnmarshalJSON

func (s *OptTwimlRecordingChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptURI

type OptURI struct {
	Value url.URL
	Set   bool
}

OptURI is optional url.URL.

func NewOptURI

func NewOptURI(v url.URL) OptURI

NewOptURI returns new OptURI with value set to v.

func (*OptURI) Decode

func (o *OptURI) Decode(d *jx.Decoder) error

Decode decodes url.URL from json.

func (OptURI) Encode

func (o OptURI) Encode(e *jx.Encoder)

Encode encodes url.URL as json.

func (OptURI) Get

func (o OptURI) Get() (v url.URL, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptURI) IsSet

func (o OptURI) IsSet() bool

IsSet returns true if OptURI was set.

func (OptURI) MarshalJSON

func (s OptURI) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptURI) Or

func (o OptURI) Or(d url.URL) url.URL

Or returns value if set, or given parameter if does not.

func (*OptURI) Reset

func (o *OptURI) Reset()

Reset unsets value.

func (*OptURI) SetTo

func (o *OptURI) SetTo(v url.URL)

SetTo sets value to v.

func (*OptURI) UnmarshalJSON

func (s *OptURI) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUUID

type OptUUID struct {
	Value uuid.UUID
	Set   bool
}

OptUUID is optional uuid.UUID.

func NewOptUUID

func NewOptUUID(v uuid.UUID) OptUUID

NewOptUUID returns new OptUUID with value set to v.

func (*OptUUID) Decode

func (o *OptUUID) Decode(d *jx.Decoder) error

Decode decodes uuid.UUID from json.

func (OptUUID) Encode

func (o OptUUID) Encode(e *jx.Encoder)

Encode encodes uuid.UUID as json.

func (OptUUID) Get

func (o OptUUID) Get() (v uuid.UUID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUUID) IsSet

func (o OptUUID) IsSet() bool

IsSet returns true if OptUUID was set.

func (OptUUID) MarshalJSON

func (s OptUUID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUUID) Or

func (o OptUUID) Or(d uuid.UUID) uuid.UUID

Or returns value if set, or given parameter if does not.

func (*OptUUID) Reset

func (o *OptUUID) Reset()

Reset unsets value.

func (*OptUUID) SetTo

func (o *OptUUID) SetTo(v uuid.UUID)

SetTo sets value to v.

func (*OptUUID) UnmarshalJSON

func (s *OptUUID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUnprocessableEntityErrorMeta

type OptUnprocessableEntityErrorMeta struct {
	Value UnprocessableEntityErrorMeta
	Set   bool
}

OptUnprocessableEntityErrorMeta is optional UnprocessableEntityErrorMeta.

func NewOptUnprocessableEntityErrorMeta

func NewOptUnprocessableEntityErrorMeta(v UnprocessableEntityErrorMeta) OptUnprocessableEntityErrorMeta

NewOptUnprocessableEntityErrorMeta returns new OptUnprocessableEntityErrorMeta with value set to v.

func (*OptUnprocessableEntityErrorMeta) Decode

Decode decodes UnprocessableEntityErrorMeta from json.

func (OptUnprocessableEntityErrorMeta) Encode

Encode encodes UnprocessableEntityErrorMeta as json.

func (OptUnprocessableEntityErrorMeta) Get

Get returns value and boolean that denotes whether value was set.

func (OptUnprocessableEntityErrorMeta) IsSet

IsSet returns true if OptUnprocessableEntityErrorMeta was set.

func (OptUnprocessableEntityErrorMeta) MarshalJSON

func (s OptUnprocessableEntityErrorMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUnprocessableEntityErrorMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptUnprocessableEntityErrorMeta) Reset

Reset unsets value.

func (*OptUnprocessableEntityErrorMeta) SetTo

SetTo sets value to v.

func (*OptUnprocessableEntityErrorMeta) UnmarshalJSON

func (s *OptUnprocessableEntityErrorMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUnprocessableEntityErrorSource

type OptUnprocessableEntityErrorSource struct {
	Value UnprocessableEntityErrorSource
	Set   bool
}

OptUnprocessableEntityErrorSource is optional UnprocessableEntityErrorSource.

func NewOptUnprocessableEntityErrorSource

func NewOptUnprocessableEntityErrorSource(v UnprocessableEntityErrorSource) OptUnprocessableEntityErrorSource

NewOptUnprocessableEntityErrorSource returns new OptUnprocessableEntityErrorSource with value set to v.

func (*OptUnprocessableEntityErrorSource) Decode

Decode decodes UnprocessableEntityErrorSource from json.

func (OptUnprocessableEntityErrorSource) Encode

Encode encodes UnprocessableEntityErrorSource as json.

func (OptUnprocessableEntityErrorSource) Get

Get returns value and boolean that denotes whether value was set.

func (OptUnprocessableEntityErrorSource) IsSet

IsSet returns true if OptUnprocessableEntityErrorSource was set.

func (OptUnprocessableEntityErrorSource) MarshalJSON

func (s OptUnprocessableEntityErrorSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUnprocessableEntityErrorSource) Or

Or returns value if set, or given parameter if does not.

func (*OptUnprocessableEntityErrorSource) Reset

Reset unsets value.

func (*OptUnprocessableEntityErrorSource) SetTo

SetTo sets value to v.

func (*OptUnprocessableEntityErrorSource) UnmarshalJSON

func (s *OptUnprocessableEntityErrorSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateCallControlApplicationRequestDtmfType

type OptUpdateCallControlApplicationRequestDtmfType struct {
	Value UpdateCallControlApplicationRequestDtmfType
	Set   bool
}

OptUpdateCallControlApplicationRequestDtmfType is optional UpdateCallControlApplicationRequestDtmfType.

func NewOptUpdateCallControlApplicationRequestDtmfType

func NewOptUpdateCallControlApplicationRequestDtmfType(v UpdateCallControlApplicationRequestDtmfType) OptUpdateCallControlApplicationRequestDtmfType

NewOptUpdateCallControlApplicationRequestDtmfType returns new OptUpdateCallControlApplicationRequestDtmfType with value set to v.

func (*OptUpdateCallControlApplicationRequestDtmfType) Decode

Decode decodes UpdateCallControlApplicationRequestDtmfType from json.

func (OptUpdateCallControlApplicationRequestDtmfType) Encode

Encode encodes UpdateCallControlApplicationRequestDtmfType as json.

func (OptUpdateCallControlApplicationRequestDtmfType) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateCallControlApplicationRequestDtmfType) IsSet

IsSet returns true if OptUpdateCallControlApplicationRequestDtmfType was set.

func (OptUpdateCallControlApplicationRequestDtmfType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateCallControlApplicationRequestDtmfType) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateCallControlApplicationRequestDtmfType) Reset

Reset unsets value.

func (*OptUpdateCallControlApplicationRequestDtmfType) SetTo

SetTo sets value to v.

func (*OptUpdateCallControlApplicationRequestDtmfType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateCallControlApplicationRequestWebhookAPIVersion

type OptUpdateCallControlApplicationRequestWebhookAPIVersion struct {
	Value UpdateCallControlApplicationRequestWebhookAPIVersion
	Set   bool
}

OptUpdateCallControlApplicationRequestWebhookAPIVersion is optional UpdateCallControlApplicationRequestWebhookAPIVersion.

func NewOptUpdateCallControlApplicationRequestWebhookAPIVersion

NewOptUpdateCallControlApplicationRequestWebhookAPIVersion returns new OptUpdateCallControlApplicationRequestWebhookAPIVersion with value set to v.

func (*OptUpdateCallControlApplicationRequestWebhookAPIVersion) Decode

Decode decodes UpdateCallControlApplicationRequestWebhookAPIVersion from json.

func (OptUpdateCallControlApplicationRequestWebhookAPIVersion) Encode

Encode encodes UpdateCallControlApplicationRequestWebhookAPIVersion as json.

func (OptUpdateCallControlApplicationRequestWebhookAPIVersion) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateCallControlApplicationRequestWebhookAPIVersion) IsSet

IsSet returns true if OptUpdateCallControlApplicationRequestWebhookAPIVersion was set.

func (OptUpdateCallControlApplicationRequestWebhookAPIVersion) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateCallControlApplicationRequestWebhookAPIVersion) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateCallControlApplicationRequestWebhookAPIVersion) Reset

Reset unsets value.

func (*OptUpdateCallControlApplicationRequestWebhookAPIVersion) SetTo

SetTo sets value to v.

func (*OptUpdateCallControlApplicationRequestWebhookAPIVersion) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateCallRequestFallbackMethod

type OptUpdateCallRequestFallbackMethod struct {
	Value UpdateCallRequestFallbackMethod
	Set   bool
}

OptUpdateCallRequestFallbackMethod is optional UpdateCallRequestFallbackMethod.

func NewOptUpdateCallRequestFallbackMethod

func NewOptUpdateCallRequestFallbackMethod(v UpdateCallRequestFallbackMethod) OptUpdateCallRequestFallbackMethod

NewOptUpdateCallRequestFallbackMethod returns new OptUpdateCallRequestFallbackMethod with value set to v.

func (*OptUpdateCallRequestFallbackMethod) Decode

Decode decodes UpdateCallRequestFallbackMethod from json.

func (OptUpdateCallRequestFallbackMethod) Encode

Encode encodes UpdateCallRequestFallbackMethod as json.

func (OptUpdateCallRequestFallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateCallRequestFallbackMethod) IsSet

IsSet returns true if OptUpdateCallRequestFallbackMethod was set.

func (OptUpdateCallRequestFallbackMethod) MarshalJSON

func (s OptUpdateCallRequestFallbackMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateCallRequestFallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateCallRequestFallbackMethod) Reset

Reset unsets value.

func (*OptUpdateCallRequestFallbackMethod) SetTo

SetTo sets value to v.

func (*OptUpdateCallRequestFallbackMethod) UnmarshalJSON

func (s *OptUpdateCallRequestFallbackMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateCallRequestMethod

type OptUpdateCallRequestMethod struct {
	Value UpdateCallRequestMethod
	Set   bool
}

OptUpdateCallRequestMethod is optional UpdateCallRequestMethod.

func NewOptUpdateCallRequestMethod

func NewOptUpdateCallRequestMethod(v UpdateCallRequestMethod) OptUpdateCallRequestMethod

NewOptUpdateCallRequestMethod returns new OptUpdateCallRequestMethod with value set to v.

func (*OptUpdateCallRequestMethod) Decode

Decode decodes UpdateCallRequestMethod from json.

func (OptUpdateCallRequestMethod) Encode

func (o OptUpdateCallRequestMethod) Encode(e *jx.Encoder)

Encode encodes UpdateCallRequestMethod as json.

func (OptUpdateCallRequestMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateCallRequestMethod) IsSet

func (o OptUpdateCallRequestMethod) IsSet() bool

IsSet returns true if OptUpdateCallRequestMethod was set.

func (OptUpdateCallRequestMethod) MarshalJSON

func (s OptUpdateCallRequestMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateCallRequestMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateCallRequestMethod) Reset

func (o *OptUpdateCallRequestMethod) Reset()

Reset unsets value.

func (*OptUpdateCallRequestMethod) SetTo

SetTo sets value to v.

func (*OptUpdateCallRequestMethod) UnmarshalJSON

func (s *OptUpdateCallRequestMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateCallRequestStatusCallbackMethod

type OptUpdateCallRequestStatusCallbackMethod struct {
	Value UpdateCallRequestStatusCallbackMethod
	Set   bool
}

OptUpdateCallRequestStatusCallbackMethod is optional UpdateCallRequestStatusCallbackMethod.

func NewOptUpdateCallRequestStatusCallbackMethod

func NewOptUpdateCallRequestStatusCallbackMethod(v UpdateCallRequestStatusCallbackMethod) OptUpdateCallRequestStatusCallbackMethod

NewOptUpdateCallRequestStatusCallbackMethod returns new OptUpdateCallRequestStatusCallbackMethod with value set to v.

func (*OptUpdateCallRequestStatusCallbackMethod) Decode

Decode decodes UpdateCallRequestStatusCallbackMethod from json.

func (OptUpdateCallRequestStatusCallbackMethod) Encode

Encode encodes UpdateCallRequestStatusCallbackMethod as json.

func (OptUpdateCallRequestStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateCallRequestStatusCallbackMethod) IsSet

IsSet returns true if OptUpdateCallRequestStatusCallbackMethod was set.

func (OptUpdateCallRequestStatusCallbackMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateCallRequestStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateCallRequestStatusCallbackMethod) Reset

Reset unsets value.

func (*OptUpdateCallRequestStatusCallbackMethod) SetTo

SetTo sets value to v.

func (*OptUpdateCallRequestStatusCallbackMethod) UnmarshalJSON

func (s *OptUpdateCallRequestStatusCallbackMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateCommandResult

type OptUpdateCommandResult struct {
	Value UpdateCommandResult
	Set   bool
}

OptUpdateCommandResult is optional UpdateCommandResult.

func NewOptUpdateCommandResult

func NewOptUpdateCommandResult(v UpdateCommandResult) OptUpdateCommandResult

NewOptUpdateCommandResult returns new OptUpdateCommandResult with value set to v.

func (*OptUpdateCommandResult) Decode

func (o *OptUpdateCommandResult) Decode(d *jx.Decoder) error

Decode decodes UpdateCommandResult from json.

func (OptUpdateCommandResult) Encode

func (o OptUpdateCommandResult) Encode(e *jx.Encoder)

Encode encodes UpdateCommandResult as json.

func (OptUpdateCommandResult) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateCommandResult) IsSet

func (o OptUpdateCommandResult) IsSet() bool

IsSet returns true if OptUpdateCommandResult was set.

func (OptUpdateCommandResult) MarshalJSON

func (s OptUpdateCommandResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateCommandResult) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateCommandResult) Reset

func (o *OptUpdateCommandResult) Reset()

Reset unsets value.

func (*OptUpdateCommandResult) SetTo

SetTo sets value to v.

func (*OptUpdateCommandResult) UnmarshalJSON

func (s *OptUpdateCommandResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateConferenceParticipantRequestAnnounceMethod

type OptUpdateConferenceParticipantRequestAnnounceMethod struct {
	Value UpdateConferenceParticipantRequestAnnounceMethod
	Set   bool
}

OptUpdateConferenceParticipantRequestAnnounceMethod is optional UpdateConferenceParticipantRequestAnnounceMethod.

func NewOptUpdateConferenceParticipantRequestAnnounceMethod

func NewOptUpdateConferenceParticipantRequestAnnounceMethod(v UpdateConferenceParticipantRequestAnnounceMethod) OptUpdateConferenceParticipantRequestAnnounceMethod

NewOptUpdateConferenceParticipantRequestAnnounceMethod returns new OptUpdateConferenceParticipantRequestAnnounceMethod with value set to v.

func (OptUpdateConferenceParticipantRequestAnnounceMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateConferenceParticipantRequestAnnounceMethod) IsSet

IsSet returns true if OptUpdateConferenceParticipantRequestAnnounceMethod was set.

func (OptUpdateConferenceParticipantRequestAnnounceMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateConferenceParticipantRequestAnnounceMethod) Reset

Reset unsets value.

func (*OptUpdateConferenceParticipantRequestAnnounceMethod) SetTo

SetTo sets value to v.

type OptUpdateConferenceParticipantRequestHoldMethod

type OptUpdateConferenceParticipantRequestHoldMethod struct {
	Value UpdateConferenceParticipantRequestHoldMethod
	Set   bool
}

OptUpdateConferenceParticipantRequestHoldMethod is optional UpdateConferenceParticipantRequestHoldMethod.

func NewOptUpdateConferenceParticipantRequestHoldMethod

func NewOptUpdateConferenceParticipantRequestHoldMethod(v UpdateConferenceParticipantRequestHoldMethod) OptUpdateConferenceParticipantRequestHoldMethod

NewOptUpdateConferenceParticipantRequestHoldMethod returns new OptUpdateConferenceParticipantRequestHoldMethod with value set to v.

func (OptUpdateConferenceParticipantRequestHoldMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateConferenceParticipantRequestHoldMethod) IsSet

IsSet returns true if OptUpdateConferenceParticipantRequestHoldMethod was set.

func (OptUpdateConferenceParticipantRequestHoldMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateConferenceParticipantRequestHoldMethod) Reset

Reset unsets value.

func (*OptUpdateConferenceParticipantRequestHoldMethod) SetTo

SetTo sets value to v.

type OptUpdateConferenceRequestAnnounceMethod

type OptUpdateConferenceRequestAnnounceMethod struct {
	Value UpdateConferenceRequestAnnounceMethod
	Set   bool
}

OptUpdateConferenceRequestAnnounceMethod is optional UpdateConferenceRequestAnnounceMethod.

func NewOptUpdateConferenceRequestAnnounceMethod

func NewOptUpdateConferenceRequestAnnounceMethod(v UpdateConferenceRequestAnnounceMethod) OptUpdateConferenceRequestAnnounceMethod

NewOptUpdateConferenceRequestAnnounceMethod returns new OptUpdateConferenceRequestAnnounceMethod with value set to v.

func (OptUpdateConferenceRequestAnnounceMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateConferenceRequestAnnounceMethod) IsSet

IsSet returns true if OptUpdateConferenceRequestAnnounceMethod was set.

func (OptUpdateConferenceRequestAnnounceMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateConferenceRequestAnnounceMethod) Reset

Reset unsets value.

func (*OptUpdateConferenceRequestAnnounceMethod) SetTo

SetTo sets value to v.

type OptUpdateNumberOrderDocumentRequestRequirementType

type OptUpdateNumberOrderDocumentRequestRequirementType struct {
	Value UpdateNumberOrderDocumentRequestRequirementType
	Set   bool
}

OptUpdateNumberOrderDocumentRequestRequirementType is optional UpdateNumberOrderDocumentRequestRequirementType.

func NewOptUpdateNumberOrderDocumentRequestRequirementType

func NewOptUpdateNumberOrderDocumentRequestRequirementType(v UpdateNumberOrderDocumentRequestRequirementType) OptUpdateNumberOrderDocumentRequestRequirementType

NewOptUpdateNumberOrderDocumentRequestRequirementType returns new OptUpdateNumberOrderDocumentRequestRequirementType with value set to v.

func (*OptUpdateNumberOrderDocumentRequestRequirementType) Decode

Decode decodes UpdateNumberOrderDocumentRequestRequirementType from json.

func (OptUpdateNumberOrderDocumentRequestRequirementType) Encode

Encode encodes UpdateNumberOrderDocumentRequestRequirementType as json.

func (OptUpdateNumberOrderDocumentRequestRequirementType) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateNumberOrderDocumentRequestRequirementType) IsSet

IsSet returns true if OptUpdateNumberOrderDocumentRequestRequirementType was set.

func (OptUpdateNumberOrderDocumentRequestRequirementType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateNumberOrderDocumentRequestRequirementType) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateNumberOrderDocumentRequestRequirementType) Reset

Reset unsets value.

func (*OptUpdateNumberOrderDocumentRequestRequirementType) SetTo

SetTo sets value to v.

func (*OptUpdateNumberOrderDocumentRequestRequirementType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateOutboundChannelsDefErrorsItemMeta

type OptUpdateOutboundChannelsDefErrorsItemMeta struct {
	Value UpdateOutboundChannelsDefErrorsItemMeta
	Set   bool
}

OptUpdateOutboundChannelsDefErrorsItemMeta is optional UpdateOutboundChannelsDefErrorsItemMeta.

func NewOptUpdateOutboundChannelsDefErrorsItemMeta

func NewOptUpdateOutboundChannelsDefErrorsItemMeta(v UpdateOutboundChannelsDefErrorsItemMeta) OptUpdateOutboundChannelsDefErrorsItemMeta

NewOptUpdateOutboundChannelsDefErrorsItemMeta returns new OptUpdateOutboundChannelsDefErrorsItemMeta with value set to v.

func (*OptUpdateOutboundChannelsDefErrorsItemMeta) Decode

Decode decodes UpdateOutboundChannelsDefErrorsItemMeta from json.

func (OptUpdateOutboundChannelsDefErrorsItemMeta) Encode

Encode encodes UpdateOutboundChannelsDefErrorsItemMeta as json.

func (OptUpdateOutboundChannelsDefErrorsItemMeta) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateOutboundChannelsDefErrorsItemMeta) IsSet

IsSet returns true if OptUpdateOutboundChannelsDefErrorsItemMeta was set.

func (OptUpdateOutboundChannelsDefErrorsItemMeta) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateOutboundChannelsDefErrorsItemMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateOutboundChannelsDefErrorsItemMeta) Reset

Reset unsets value.

func (*OptUpdateOutboundChannelsDefErrorsItemMeta) SetTo

SetTo sets value to v.

func (*OptUpdateOutboundChannelsDefErrorsItemMeta) UnmarshalJSON

func (s *OptUpdateOutboundChannelsDefErrorsItemMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateOutboundChannelsDefErrorsItemSource

type OptUpdateOutboundChannelsDefErrorsItemSource struct {
	Value UpdateOutboundChannelsDefErrorsItemSource
	Set   bool
}

OptUpdateOutboundChannelsDefErrorsItemSource is optional UpdateOutboundChannelsDefErrorsItemSource.

func NewOptUpdateOutboundChannelsDefErrorsItemSource

func NewOptUpdateOutboundChannelsDefErrorsItemSource(v UpdateOutboundChannelsDefErrorsItemSource) OptUpdateOutboundChannelsDefErrorsItemSource

NewOptUpdateOutboundChannelsDefErrorsItemSource returns new OptUpdateOutboundChannelsDefErrorsItemSource with value set to v.

func (*OptUpdateOutboundChannelsDefErrorsItemSource) Decode

Decode decodes UpdateOutboundChannelsDefErrorsItemSource from json.

func (OptUpdateOutboundChannelsDefErrorsItemSource) Encode

Encode encodes UpdateOutboundChannelsDefErrorsItemSource as json.

func (OptUpdateOutboundChannelsDefErrorsItemSource) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateOutboundChannelsDefErrorsItemSource) IsSet

IsSet returns true if OptUpdateOutboundChannelsDefErrorsItemSource was set.

func (OptUpdateOutboundChannelsDefErrorsItemSource) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateOutboundChannelsDefErrorsItemSource) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateOutboundChannelsDefErrorsItemSource) Reset

Reset unsets value.

func (*OptUpdateOutboundChannelsDefErrorsItemSource) SetTo

SetTo sets value to v.

func (*OptUpdateOutboundChannelsDefErrorsItemSource) UnmarshalJSON

func (s *OptUpdateOutboundChannelsDefErrorsItemSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateOutboundChannelsOKData

type OptUpdateOutboundChannelsOKData struct {
	Value UpdateOutboundChannelsOKData
	Set   bool
}

OptUpdateOutboundChannelsOKData is optional UpdateOutboundChannelsOKData.

func NewOptUpdateOutboundChannelsOKData

func NewOptUpdateOutboundChannelsOKData(v UpdateOutboundChannelsOKData) OptUpdateOutboundChannelsOKData

NewOptUpdateOutboundChannelsOKData returns new OptUpdateOutboundChannelsOKData with value set to v.

func (*OptUpdateOutboundChannelsOKData) Decode

Decode decodes UpdateOutboundChannelsOKData from json.

func (OptUpdateOutboundChannelsOKData) Encode

Encode encodes UpdateOutboundChannelsOKData as json.

func (OptUpdateOutboundChannelsOKData) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateOutboundChannelsOKData) IsSet

IsSet returns true if OptUpdateOutboundChannelsOKData was set.

func (OptUpdateOutboundChannelsOKData) MarshalJSON

func (s OptUpdateOutboundChannelsOKData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateOutboundChannelsOKData) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateOutboundChannelsOKData) Reset

Reset unsets value.

func (*OptUpdateOutboundChannelsOKData) SetTo

SetTo sets value to v.

func (*OptUpdateOutboundChannelsOKData) UnmarshalJSON

func (s *OptUpdateOutboundChannelsOKData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdatePhoneNumberRequestNumberLevelRouting

type OptUpdatePhoneNumberRequestNumberLevelRouting struct {
	Value UpdatePhoneNumberRequestNumberLevelRouting
	Set   bool
}

OptUpdatePhoneNumberRequestNumberLevelRouting is optional UpdatePhoneNumberRequestNumberLevelRouting.

func NewOptUpdatePhoneNumberRequestNumberLevelRouting

func NewOptUpdatePhoneNumberRequestNumberLevelRouting(v UpdatePhoneNumberRequestNumberLevelRouting) OptUpdatePhoneNumberRequestNumberLevelRouting

NewOptUpdatePhoneNumberRequestNumberLevelRouting returns new OptUpdatePhoneNumberRequestNumberLevelRouting with value set to v.

func (*OptUpdatePhoneNumberRequestNumberLevelRouting) Decode

Decode decodes UpdatePhoneNumberRequestNumberLevelRouting from json.

func (OptUpdatePhoneNumberRequestNumberLevelRouting) Encode

Encode encodes UpdatePhoneNumberRequestNumberLevelRouting as json.

func (OptUpdatePhoneNumberRequestNumberLevelRouting) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdatePhoneNumberRequestNumberLevelRouting) IsSet

IsSet returns true if OptUpdatePhoneNumberRequestNumberLevelRouting was set.

func (OptUpdatePhoneNumberRequestNumberLevelRouting) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdatePhoneNumberRequestNumberLevelRouting) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdatePhoneNumberRequestNumberLevelRouting) Reset

Reset unsets value.

func (*OptUpdatePhoneNumberRequestNumberLevelRouting) SetTo

SetTo sets value to v.

func (*OptUpdatePhoneNumberRequestNumberLevelRouting) UnmarshalJSON

func (s *OptUpdatePhoneNumberRequestNumberLevelRouting) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdatePhoneNumberVoiceSettingsRequest

type OptUpdatePhoneNumberVoiceSettingsRequest struct {
	Value UpdatePhoneNumberVoiceSettingsRequest
	Set   bool
}

OptUpdatePhoneNumberVoiceSettingsRequest is optional UpdatePhoneNumberVoiceSettingsRequest.

func NewOptUpdatePhoneNumberVoiceSettingsRequest

func NewOptUpdatePhoneNumberVoiceSettingsRequest(v UpdatePhoneNumberVoiceSettingsRequest) OptUpdatePhoneNumberVoiceSettingsRequest

NewOptUpdatePhoneNumberVoiceSettingsRequest returns new OptUpdatePhoneNumberVoiceSettingsRequest with value set to v.

func (*OptUpdatePhoneNumberVoiceSettingsRequest) Decode

Decode decodes UpdatePhoneNumberVoiceSettingsRequest from json.

func (OptUpdatePhoneNumberVoiceSettingsRequest) Encode

Encode encodes UpdatePhoneNumberVoiceSettingsRequest as json.

func (OptUpdatePhoneNumberVoiceSettingsRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdatePhoneNumberVoiceSettingsRequest) IsSet

IsSet returns true if OptUpdatePhoneNumberVoiceSettingsRequest was set.

func (OptUpdatePhoneNumberVoiceSettingsRequest) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdatePhoneNumberVoiceSettingsRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdatePhoneNumberVoiceSettingsRequest) Reset

Reset unsets value.

func (*OptUpdatePhoneNumberVoiceSettingsRequest) SetTo

SetTo sets value to v.

func (*OptUpdatePhoneNumberVoiceSettingsRequest) UnmarshalJSON

func (s *OptUpdatePhoneNumberVoiceSettingsRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening

type OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening struct {
	Value UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening
	Set   bool
}

OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening is optional UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening.

func NewOptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening

NewOptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening returns new OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening with value set to v.

func (*OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) Decode

Decode decodes UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening from json.

func (OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) Encode

Encode encodes UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening as json.

func (OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) IsSet

IsSet returns true if OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening was set.

func (OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) Reset

Reset unsets value.

func (*OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) SetTo

SetTo sets value to v.

func (*OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod

type OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod struct {
	Value UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod
	Set   bool
}

OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod is optional UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod.

func NewOptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod

NewOptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod returns new OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod with value set to v.

func (*OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) Decode

Decode decodes UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod from json.

func (OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) Encode

Encode encodes UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod as json.

func (OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) IsSet

IsSet returns true if OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod was set.

func (OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) Reset

Reset unsets value.

func (*OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) SetTo

SetTo sets value to v.

func (*OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdatePortingOrderActivationSettings

type OptUpdatePortingOrderActivationSettings struct {
	Value UpdatePortingOrderActivationSettings
	Set   bool
}

OptUpdatePortingOrderActivationSettings is optional UpdatePortingOrderActivationSettings.

func NewOptUpdatePortingOrderActivationSettings

func NewOptUpdatePortingOrderActivationSettings(v UpdatePortingOrderActivationSettings) OptUpdatePortingOrderActivationSettings

NewOptUpdatePortingOrderActivationSettings returns new OptUpdatePortingOrderActivationSettings with value set to v.

func (*OptUpdatePortingOrderActivationSettings) Decode

Decode decodes UpdatePortingOrderActivationSettings from json.

func (OptUpdatePortingOrderActivationSettings) Encode

Encode encodes UpdatePortingOrderActivationSettings as json.

func (OptUpdatePortingOrderActivationSettings) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdatePortingOrderActivationSettings) IsSet

IsSet returns true if OptUpdatePortingOrderActivationSettings was set.

func (OptUpdatePortingOrderActivationSettings) MarshalJSON

func (s OptUpdatePortingOrderActivationSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdatePortingOrderActivationSettings) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdatePortingOrderActivationSettings) Reset

Reset unsets value.

func (*OptUpdatePortingOrderActivationSettings) SetTo

SetTo sets value to v.

func (*OptUpdatePortingOrderActivationSettings) UnmarshalJSON

func (s *OptUpdatePortingOrderActivationSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdatePortingOrderResponseMeta

type OptUpdatePortingOrderResponseMeta struct {
	Value UpdatePortingOrderResponseMeta
	Set   bool
}

OptUpdatePortingOrderResponseMeta is optional UpdatePortingOrderResponseMeta.

func NewOptUpdatePortingOrderResponseMeta

func NewOptUpdatePortingOrderResponseMeta(v UpdatePortingOrderResponseMeta) OptUpdatePortingOrderResponseMeta

NewOptUpdatePortingOrderResponseMeta returns new OptUpdatePortingOrderResponseMeta with value set to v.

func (*OptUpdatePortingOrderResponseMeta) Decode

Decode decodes UpdatePortingOrderResponseMeta from json.

func (OptUpdatePortingOrderResponseMeta) Encode

Encode encodes UpdatePortingOrderResponseMeta as json.

func (OptUpdatePortingOrderResponseMeta) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdatePortingOrderResponseMeta) IsSet

IsSet returns true if OptUpdatePortingOrderResponseMeta was set.

func (OptUpdatePortingOrderResponseMeta) MarshalJSON

func (s OptUpdatePortingOrderResponseMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdatePortingOrderResponseMeta) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdatePortingOrderResponseMeta) Reset

Reset unsets value.

func (*OptUpdatePortingOrderResponseMeta) SetTo

SetTo sets value to v.

func (*OptUpdatePortingOrderResponseMeta) UnmarshalJSON

func (s *OptUpdatePortingOrderResponseMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateTexmlApplicationRequestInbound

type OptUpdateTexmlApplicationRequestInbound struct {
	Value UpdateTexmlApplicationRequestInbound
	Set   bool
}

OptUpdateTexmlApplicationRequestInbound is optional UpdateTexmlApplicationRequestInbound.

func NewOptUpdateTexmlApplicationRequestInbound

func NewOptUpdateTexmlApplicationRequestInbound(v UpdateTexmlApplicationRequestInbound) OptUpdateTexmlApplicationRequestInbound

NewOptUpdateTexmlApplicationRequestInbound returns new OptUpdateTexmlApplicationRequestInbound with value set to v.

func (*OptUpdateTexmlApplicationRequestInbound) Decode

Decode decodes UpdateTexmlApplicationRequestInbound from json.

func (OptUpdateTexmlApplicationRequestInbound) Encode

Encode encodes UpdateTexmlApplicationRequestInbound as json.

func (OptUpdateTexmlApplicationRequestInbound) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateTexmlApplicationRequestInbound) IsSet

IsSet returns true if OptUpdateTexmlApplicationRequestInbound was set.

func (OptUpdateTexmlApplicationRequestInbound) MarshalJSON

func (s OptUpdateTexmlApplicationRequestInbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateTexmlApplicationRequestInbound) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateTexmlApplicationRequestInbound) Reset

Reset unsets value.

func (*OptUpdateTexmlApplicationRequestInbound) SetTo

SetTo sets value to v.

func (*OptUpdateTexmlApplicationRequestInbound) UnmarshalJSON

func (s *OptUpdateTexmlApplicationRequestInbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings

type OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings struct {
	Value UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings
	Set   bool
}

OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings is optional UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings.

func NewOptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings

NewOptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings returns new OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings with value set to v.

func (*OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Decode

Decode decodes UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings from json.

func (OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Encode

Encode encodes UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings as json.

func (OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) IsSet

IsSet returns true if OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings was set.

func (OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Reset

Reset unsets value.

func (*OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) SetTo

SetTo sets value to v.

func (*OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateTexmlApplicationRequestOutbound

type OptUpdateTexmlApplicationRequestOutbound struct {
	Value UpdateTexmlApplicationRequestOutbound
	Set   bool
}

OptUpdateTexmlApplicationRequestOutbound is optional UpdateTexmlApplicationRequestOutbound.

func NewOptUpdateTexmlApplicationRequestOutbound

func NewOptUpdateTexmlApplicationRequestOutbound(v UpdateTexmlApplicationRequestOutbound) OptUpdateTexmlApplicationRequestOutbound

NewOptUpdateTexmlApplicationRequestOutbound returns new OptUpdateTexmlApplicationRequestOutbound with value set to v.

func (*OptUpdateTexmlApplicationRequestOutbound) Decode

Decode decodes UpdateTexmlApplicationRequestOutbound from json.

func (OptUpdateTexmlApplicationRequestOutbound) Encode

Encode encodes UpdateTexmlApplicationRequestOutbound as json.

func (OptUpdateTexmlApplicationRequestOutbound) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateTexmlApplicationRequestOutbound) IsSet

IsSet returns true if OptUpdateTexmlApplicationRequestOutbound was set.

func (OptUpdateTexmlApplicationRequestOutbound) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateTexmlApplicationRequestOutbound) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateTexmlApplicationRequestOutbound) Reset

Reset unsets value.

func (*OptUpdateTexmlApplicationRequestOutbound) SetTo

SetTo sets value to v.

func (*OptUpdateTexmlApplicationRequestOutbound) UnmarshalJSON

func (s *OptUpdateTexmlApplicationRequestOutbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateTexmlApplicationRequestStatusCallbackMethod

type OptUpdateTexmlApplicationRequestStatusCallbackMethod struct {
	Value UpdateTexmlApplicationRequestStatusCallbackMethod
	Set   bool
}

OptUpdateTexmlApplicationRequestStatusCallbackMethod is optional UpdateTexmlApplicationRequestStatusCallbackMethod.

func NewOptUpdateTexmlApplicationRequestStatusCallbackMethod

NewOptUpdateTexmlApplicationRequestStatusCallbackMethod returns new OptUpdateTexmlApplicationRequestStatusCallbackMethod with value set to v.

func (*OptUpdateTexmlApplicationRequestStatusCallbackMethod) Decode

Decode decodes UpdateTexmlApplicationRequestStatusCallbackMethod from json.

func (OptUpdateTexmlApplicationRequestStatusCallbackMethod) Encode

Encode encodes UpdateTexmlApplicationRequestStatusCallbackMethod as json.

func (OptUpdateTexmlApplicationRequestStatusCallbackMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateTexmlApplicationRequestStatusCallbackMethod) IsSet

IsSet returns true if OptUpdateTexmlApplicationRequestStatusCallbackMethod was set.

func (OptUpdateTexmlApplicationRequestStatusCallbackMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateTexmlApplicationRequestStatusCallbackMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateTexmlApplicationRequestStatusCallbackMethod) Reset

Reset unsets value.

func (*OptUpdateTexmlApplicationRequestStatusCallbackMethod) SetTo

SetTo sets value to v.

func (*OptUpdateTexmlApplicationRequestStatusCallbackMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateTexmlApplicationRequestVoiceMethod

type OptUpdateTexmlApplicationRequestVoiceMethod struct {
	Value UpdateTexmlApplicationRequestVoiceMethod
	Set   bool
}

OptUpdateTexmlApplicationRequestVoiceMethod is optional UpdateTexmlApplicationRequestVoiceMethod.

func NewOptUpdateTexmlApplicationRequestVoiceMethod

func NewOptUpdateTexmlApplicationRequestVoiceMethod(v UpdateTexmlApplicationRequestVoiceMethod) OptUpdateTexmlApplicationRequestVoiceMethod

NewOptUpdateTexmlApplicationRequestVoiceMethod returns new OptUpdateTexmlApplicationRequestVoiceMethod with value set to v.

func (*OptUpdateTexmlApplicationRequestVoiceMethod) Decode

Decode decodes UpdateTexmlApplicationRequestVoiceMethod from json.

func (OptUpdateTexmlApplicationRequestVoiceMethod) Encode

Encode encodes UpdateTexmlApplicationRequestVoiceMethod as json.

func (OptUpdateTexmlApplicationRequestVoiceMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateTexmlApplicationRequestVoiceMethod) IsSet

IsSet returns true if OptUpdateTexmlApplicationRequestVoiceMethod was set.

func (OptUpdateTexmlApplicationRequestVoiceMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateTexmlApplicationRequestVoiceMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateTexmlApplicationRequestVoiceMethod) Reset

Reset unsets value.

func (*OptUpdateTexmlApplicationRequestVoiceMethod) SetTo

SetTo sets value to v.

func (*OptUpdateTexmlApplicationRequestVoiceMethod) UnmarshalJSON

func (s *OptUpdateTexmlApplicationRequestVoiceMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateVerifyProfileCallRequest

type OptUpdateVerifyProfileCallRequest struct {
	Value UpdateVerifyProfileCallRequest
	Set   bool
}

OptUpdateVerifyProfileCallRequest is optional UpdateVerifyProfileCallRequest.

func NewOptUpdateVerifyProfileCallRequest

func NewOptUpdateVerifyProfileCallRequest(v UpdateVerifyProfileCallRequest) OptUpdateVerifyProfileCallRequest

NewOptUpdateVerifyProfileCallRequest returns new OptUpdateVerifyProfileCallRequest with value set to v.

func (*OptUpdateVerifyProfileCallRequest) Decode

Decode decodes UpdateVerifyProfileCallRequest from json.

func (OptUpdateVerifyProfileCallRequest) Encode

Encode encodes UpdateVerifyProfileCallRequest as json.

func (OptUpdateVerifyProfileCallRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateVerifyProfileCallRequest) IsSet

IsSet returns true if OptUpdateVerifyProfileCallRequest was set.

func (OptUpdateVerifyProfileCallRequest) MarshalJSON

func (s OptUpdateVerifyProfileCallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateVerifyProfileCallRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateVerifyProfileCallRequest) Reset

Reset unsets value.

func (*OptUpdateVerifyProfileCallRequest) SetTo

SetTo sets value to v.

func (*OptUpdateVerifyProfileCallRequest) UnmarshalJSON

func (s *OptUpdateVerifyProfileCallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateVerifyProfileFlashcallRequest

type OptUpdateVerifyProfileFlashcallRequest struct {
	Value UpdateVerifyProfileFlashcallRequest
	Set   bool
}

OptUpdateVerifyProfileFlashcallRequest is optional UpdateVerifyProfileFlashcallRequest.

func NewOptUpdateVerifyProfileFlashcallRequest

func NewOptUpdateVerifyProfileFlashcallRequest(v UpdateVerifyProfileFlashcallRequest) OptUpdateVerifyProfileFlashcallRequest

NewOptUpdateVerifyProfileFlashcallRequest returns new OptUpdateVerifyProfileFlashcallRequest with value set to v.

func (*OptUpdateVerifyProfileFlashcallRequest) Decode

Decode decodes UpdateVerifyProfileFlashcallRequest from json.

func (OptUpdateVerifyProfileFlashcallRequest) Encode

Encode encodes UpdateVerifyProfileFlashcallRequest as json.

func (OptUpdateVerifyProfileFlashcallRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateVerifyProfileFlashcallRequest) IsSet

IsSet returns true if OptUpdateVerifyProfileFlashcallRequest was set.

func (OptUpdateVerifyProfileFlashcallRequest) MarshalJSON

func (s OptUpdateVerifyProfileFlashcallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateVerifyProfileFlashcallRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateVerifyProfileFlashcallRequest) Reset

Reset unsets value.

func (*OptUpdateVerifyProfileFlashcallRequest) SetTo

SetTo sets value to v.

func (*OptUpdateVerifyProfileFlashcallRequest) UnmarshalJSON

func (s *OptUpdateVerifyProfileFlashcallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateVerifyProfileSMSRequest

type OptUpdateVerifyProfileSMSRequest struct {
	Value UpdateVerifyProfileSMSRequest
	Set   bool
}

OptUpdateVerifyProfileSMSRequest is optional UpdateVerifyProfileSMSRequest.

func NewOptUpdateVerifyProfileSMSRequest

func NewOptUpdateVerifyProfileSMSRequest(v UpdateVerifyProfileSMSRequest) OptUpdateVerifyProfileSMSRequest

NewOptUpdateVerifyProfileSMSRequest returns new OptUpdateVerifyProfileSMSRequest with value set to v.

func (*OptUpdateVerifyProfileSMSRequest) Decode

Decode decodes UpdateVerifyProfileSMSRequest from json.

func (OptUpdateVerifyProfileSMSRequest) Encode

Encode encodes UpdateVerifyProfileSMSRequest as json.

func (OptUpdateVerifyProfileSMSRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateVerifyProfileSMSRequest) IsSet

IsSet returns true if OptUpdateVerifyProfileSMSRequest was set.

func (OptUpdateVerifyProfileSMSRequest) MarshalJSON

func (s OptUpdateVerifyProfileSMSRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateVerifyProfileSMSRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateVerifyProfileSMSRequest) Reset

Reset unsets value.

func (*OptUpdateVerifyProfileSMSRequest) SetTo

SetTo sets value to v.

func (*OptUpdateVerifyProfileSMSRequest) UnmarshalJSON

func (s *OptUpdateVerifyProfileSMSRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdatedAt

type OptUpdatedAt struct {
	Value UpdatedAt
	Set   bool
}

OptUpdatedAt is optional UpdatedAt.

func NewOptUpdatedAt

func NewOptUpdatedAt(v UpdatedAt) OptUpdatedAt

NewOptUpdatedAt returns new OptUpdatedAt with value set to v.

func (*OptUpdatedAt) Decode

func (o *OptUpdatedAt) Decode(d *jx.Decoder) error

Decode decodes UpdatedAt from json.

func (OptUpdatedAt) Encode

func (o OptUpdatedAt) Encode(e *jx.Encoder)

Encode encodes UpdatedAt as json.

func (OptUpdatedAt) Get

func (o OptUpdatedAt) Get() (v UpdatedAt, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUpdatedAt) IsSet

func (o OptUpdatedAt) IsSet() bool

IsSet returns true if OptUpdatedAt was set.

func (OptUpdatedAt) MarshalJSON

func (s OptUpdatedAt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdatedAt) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdatedAt) Reset

func (o *OptUpdatedAt) Reset()

Reset unsets value.

func (*OptUpdatedAt) SetTo

func (o *OptUpdatedAt) SetTo(v UpdatedAt)

SetTo sets value to v.

func (*OptUpdatedAt) UnmarshalJSON

func (s *OptUpdatedAt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUsagePaymentMethod

type OptUsagePaymentMethod struct {
	Value UsagePaymentMethod
	Set   bool
}

OptUsagePaymentMethod is optional UsagePaymentMethod.

func NewOptUsagePaymentMethod

func NewOptUsagePaymentMethod(v UsagePaymentMethod) OptUsagePaymentMethod

NewOptUsagePaymentMethod returns new OptUsagePaymentMethod with value set to v.

func (*OptUsagePaymentMethod) Decode

func (o *OptUsagePaymentMethod) Decode(d *jx.Decoder) error

Decode decodes UsagePaymentMethod from json.

func (OptUsagePaymentMethod) Encode

func (o OptUsagePaymentMethod) Encode(e *jx.Encoder)

Encode encodes UsagePaymentMethod as json.

func (OptUsagePaymentMethod) Get

Get returns value and boolean that denotes whether value was set.

func (OptUsagePaymentMethod) IsSet

func (o OptUsagePaymentMethod) IsSet() bool

IsSet returns true if OptUsagePaymentMethod was set.

func (OptUsagePaymentMethod) MarshalJSON

func (s OptUsagePaymentMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUsagePaymentMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptUsagePaymentMethod) Reset

func (o *OptUsagePaymentMethod) Reset()

Reset unsets value.

func (*OptUsagePaymentMethod) SetTo

SetTo sets value to v.

func (*OptUsagePaymentMethod) UnmarshalJSON

func (s *OptUsagePaymentMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUserBalance

type OptUserBalance struct {
	Value UserBalance
	Set   bool
}

OptUserBalance is optional UserBalance.

func NewOptUserBalance

func NewOptUserBalance(v UserBalance) OptUserBalance

NewOptUserBalance returns new OptUserBalance with value set to v.

func (*OptUserBalance) Decode

func (o *OptUserBalance) Decode(d *jx.Decoder) error

Decode decodes UserBalance from json.

func (OptUserBalance) Encode

func (o OptUserBalance) Encode(e *jx.Encoder)

Encode encodes UserBalance as json.

func (OptUserBalance) Get

func (o OptUserBalance) Get() (v UserBalance, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUserBalance) IsSet

func (o OptUserBalance) IsSet() bool

IsSet returns true if OptUserBalance was set.

func (OptUserBalance) MarshalJSON

func (s OptUserBalance) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserBalance) Or

Or returns value if set, or given parameter if does not.

func (*OptUserBalance) Reset

func (o *OptUserBalance) Reset()

Reset unsets value.

func (*OptUserBalance) SetTo

func (o *OptUserBalance) SetTo(v UserBalance)

SetTo sets value to v.

func (*OptUserBalance) UnmarshalJSON

func (s *OptUserBalance) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUserBalanceRecordType

type OptUserBalanceRecordType struct {
	Value UserBalanceRecordType
	Set   bool
}

OptUserBalanceRecordType is optional UserBalanceRecordType.

func NewOptUserBalanceRecordType

func NewOptUserBalanceRecordType(v UserBalanceRecordType) OptUserBalanceRecordType

NewOptUserBalanceRecordType returns new OptUserBalanceRecordType with value set to v.

func (*OptUserBalanceRecordType) Decode

func (o *OptUserBalanceRecordType) Decode(d *jx.Decoder) error

Decode decodes UserBalanceRecordType from json.

func (OptUserBalanceRecordType) Encode

func (o OptUserBalanceRecordType) Encode(e *jx.Encoder)

Encode encodes UserBalanceRecordType as json.

func (OptUserBalanceRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserBalanceRecordType) IsSet

func (o OptUserBalanceRecordType) IsSet() bool

IsSet returns true if OptUserBalanceRecordType was set.

func (OptUserBalanceRecordType) MarshalJSON

func (s OptUserBalanceRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserBalanceRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptUserBalanceRecordType) Reset

func (o *OptUserBalanceRecordType) Reset()

Reset unsets value.

func (*OptUserBalanceRecordType) SetTo

SetTo sets value to v.

func (*OptUserBalanceRecordType) UnmarshalJSON

func (s *OptUserBalanceRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerificationProfileRecordType

type OptVerificationProfileRecordType struct {
	Value VerificationProfileRecordType
	Set   bool
}

OptVerificationProfileRecordType is optional VerificationProfileRecordType.

func NewOptVerificationProfileRecordType

func NewOptVerificationProfileRecordType(v VerificationProfileRecordType) OptVerificationProfileRecordType

NewOptVerificationProfileRecordType returns new OptVerificationProfileRecordType with value set to v.

func (*OptVerificationProfileRecordType) Decode

Decode decodes VerificationProfileRecordType from json.

func (OptVerificationProfileRecordType) Encode

Encode encodes VerificationProfileRecordType as json.

func (OptVerificationProfileRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerificationProfileRecordType) IsSet

IsSet returns true if OptVerificationProfileRecordType was set.

func (OptVerificationProfileRecordType) MarshalJSON

func (s OptVerificationProfileRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerificationProfileRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptVerificationProfileRecordType) Reset

Reset unsets value.

func (*OptVerificationProfileRecordType) SetTo

SetTo sets value to v.

func (*OptVerificationProfileRecordType) UnmarshalJSON

func (s *OptVerificationProfileRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerificationRecordType

type OptVerificationRecordType struct {
	Value VerificationRecordType
	Set   bool
}

OptVerificationRecordType is optional VerificationRecordType.

func NewOptVerificationRecordType

func NewOptVerificationRecordType(v VerificationRecordType) OptVerificationRecordType

NewOptVerificationRecordType returns new OptVerificationRecordType with value set to v.

func (*OptVerificationRecordType) Decode

func (o *OptVerificationRecordType) Decode(d *jx.Decoder) error

Decode decodes VerificationRecordType from json.

func (OptVerificationRecordType) Encode

func (o OptVerificationRecordType) Encode(e *jx.Encoder)

Encode encodes VerificationRecordType as json.

func (OptVerificationRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerificationRecordType) IsSet

func (o OptVerificationRecordType) IsSet() bool

IsSet returns true if OptVerificationRecordType was set.

func (OptVerificationRecordType) MarshalJSON

func (s OptVerificationRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerificationRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptVerificationRecordType) Reset

func (o *OptVerificationRecordType) Reset()

Reset unsets value.

func (*OptVerificationRecordType) SetTo

SetTo sets value to v.

func (*OptVerificationRecordType) UnmarshalJSON

func (s *OptVerificationRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerificationStatus

type OptVerificationStatus struct {
	Value VerificationStatus
	Set   bool
}

OptVerificationStatus is optional VerificationStatus.

func NewOptVerificationStatus

func NewOptVerificationStatus(v VerificationStatus) OptVerificationStatus

NewOptVerificationStatus returns new OptVerificationStatus with value set to v.

func (*OptVerificationStatus) Decode

func (o *OptVerificationStatus) Decode(d *jx.Decoder) error

Decode decodes VerificationStatus from json.

func (OptVerificationStatus) Encode

func (o OptVerificationStatus) Encode(e *jx.Encoder)

Encode encodes VerificationStatus as json.

func (OptVerificationStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerificationStatus) IsSet

func (o OptVerificationStatus) IsSet() bool

IsSet returns true if OptVerificationStatus was set.

func (OptVerificationStatus) MarshalJSON

func (s OptVerificationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerificationStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptVerificationStatus) Reset

func (o *OptVerificationStatus) Reset()

Reset unsets value.

func (*OptVerificationStatus) SetTo

SetTo sets value to v.

func (*OptVerificationStatus) UnmarshalJSON

func (s *OptVerificationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerificationType

type OptVerificationType struct {
	Value VerificationType
	Set   bool
}

OptVerificationType is optional VerificationType.

func NewOptVerificationType

func NewOptVerificationType(v VerificationType) OptVerificationType

NewOptVerificationType returns new OptVerificationType with value set to v.

func (*OptVerificationType) Decode

func (o *OptVerificationType) Decode(d *jx.Decoder) error

Decode decodes VerificationType from json.

func (OptVerificationType) Encode

func (o OptVerificationType) Encode(e *jx.Encoder)

Encode encodes VerificationType as json.

func (OptVerificationType) Get

func (o OptVerificationType) Get() (v VerificationType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptVerificationType) IsSet

func (o OptVerificationType) IsSet() bool

IsSet returns true if OptVerificationType was set.

func (OptVerificationType) MarshalJSON

func (s OptVerificationType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerificationType) Or

Or returns value if set, or given parameter if does not.

func (*OptVerificationType) Reset

func (o *OptVerificationType) Reset()

Reset unsets value.

func (*OptVerificationType) SetTo

SetTo sets value to v.

func (*OptVerificationType) UnmarshalJSON

func (s *OptVerificationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerifiedCallsDisplayProfile

type OptVerifiedCallsDisplayProfile struct {
	Value VerifiedCallsDisplayProfile
	Set   bool
}

OptVerifiedCallsDisplayProfile is optional VerifiedCallsDisplayProfile.

func NewOptVerifiedCallsDisplayProfile

func NewOptVerifiedCallsDisplayProfile(v VerifiedCallsDisplayProfile) OptVerifiedCallsDisplayProfile

NewOptVerifiedCallsDisplayProfile returns new OptVerifiedCallsDisplayProfile with value set to v.

func (*OptVerifiedCallsDisplayProfile) Decode

Decode decodes VerifiedCallsDisplayProfile from json.

func (OptVerifiedCallsDisplayProfile) Encode

Encode encodes VerifiedCallsDisplayProfile as json.

func (OptVerifiedCallsDisplayProfile) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerifiedCallsDisplayProfile) IsSet

IsSet returns true if OptVerifiedCallsDisplayProfile was set.

func (OptVerifiedCallsDisplayProfile) MarshalJSON

func (s OptVerifiedCallsDisplayProfile) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerifiedCallsDisplayProfile) Or

Or returns value if set, or given parameter if does not.

func (*OptVerifiedCallsDisplayProfile) Reset

func (o *OptVerifiedCallsDisplayProfile) Reset()

Reset unsets value.

func (*OptVerifiedCallsDisplayProfile) SetTo

SetTo sets value to v.

func (*OptVerifiedCallsDisplayProfile) UnmarshalJSON

func (s *OptVerifiedCallsDisplayProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerifiedCallsDisplayProfileBusinessIdentity

type OptVerifiedCallsDisplayProfileBusinessIdentity struct {
	Value VerifiedCallsDisplayProfileBusinessIdentity
	Set   bool
}

OptVerifiedCallsDisplayProfileBusinessIdentity is optional VerifiedCallsDisplayProfileBusinessIdentity.

func NewOptVerifiedCallsDisplayProfileBusinessIdentity

func NewOptVerifiedCallsDisplayProfileBusinessIdentity(v VerifiedCallsDisplayProfileBusinessIdentity) OptVerifiedCallsDisplayProfileBusinessIdentity

NewOptVerifiedCallsDisplayProfileBusinessIdentity returns new OptVerifiedCallsDisplayProfileBusinessIdentity with value set to v.

func (*OptVerifiedCallsDisplayProfileBusinessIdentity) Decode

Decode decodes VerifiedCallsDisplayProfileBusinessIdentity from json.

func (OptVerifiedCallsDisplayProfileBusinessIdentity) Encode

Encode encodes VerifiedCallsDisplayProfileBusinessIdentity as json.

func (OptVerifiedCallsDisplayProfileBusinessIdentity) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerifiedCallsDisplayProfileBusinessIdentity) IsSet

IsSet returns true if OptVerifiedCallsDisplayProfileBusinessIdentity was set.

func (OptVerifiedCallsDisplayProfileBusinessIdentity) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptVerifiedCallsDisplayProfileBusinessIdentity) Or

Or returns value if set, or given parameter if does not.

func (*OptVerifiedCallsDisplayProfileBusinessIdentity) Reset

Reset unsets value.

func (*OptVerifiedCallsDisplayProfileBusinessIdentity) SetTo

SetTo sets value to v.

func (*OptVerifiedCallsDisplayProfileBusinessIdentity) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus

type OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus struct {
	Value VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus
	Set   bool
}

OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus is optional VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus.

func NewOptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus

NewOptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus returns new OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus with value set to v.

func (*OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) Decode

Decode decodes VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus from json.

func (OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) Encode

Encode encodes VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus as json.

func (OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) IsSet

IsSet returns true if OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus was set.

func (OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) Reset

Reset unsets value.

func (*OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) SetTo

SetTo sets value to v.

func (*OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus

type OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus struct {
	Value VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus
	Set   bool
}

OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus is optional VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus.

func NewOptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus

NewOptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus returns new OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus with value set to v.

func (*OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) Decode

Decode decodes VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus from json.

func (OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) Encode

Encode encodes VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus as json.

func (OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) IsSet

IsSet returns true if OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus was set.

func (OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) Reset

Reset unsets value.

func (*OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) SetTo

SetTo sets value to v.

func (*OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerifiedCallsDisplayProfileStatus

type OptVerifiedCallsDisplayProfileStatus struct {
	Value VerifiedCallsDisplayProfileStatus
	Set   bool
}

OptVerifiedCallsDisplayProfileStatus is optional VerifiedCallsDisplayProfileStatus.

func NewOptVerifiedCallsDisplayProfileStatus

func NewOptVerifiedCallsDisplayProfileStatus(v VerifiedCallsDisplayProfileStatus) OptVerifiedCallsDisplayProfileStatus

NewOptVerifiedCallsDisplayProfileStatus returns new OptVerifiedCallsDisplayProfileStatus with value set to v.

func (*OptVerifiedCallsDisplayProfileStatus) Decode

Decode decodes VerifiedCallsDisplayProfileStatus from json.

func (OptVerifiedCallsDisplayProfileStatus) Encode

Encode encodes VerifiedCallsDisplayProfileStatus as json.

func (OptVerifiedCallsDisplayProfileStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerifiedCallsDisplayProfileStatus) IsSet

IsSet returns true if OptVerifiedCallsDisplayProfileStatus was set.

func (OptVerifiedCallsDisplayProfileStatus) MarshalJSON

func (s OptVerifiedCallsDisplayProfileStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerifiedCallsDisplayProfileStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptVerifiedCallsDisplayProfileStatus) Reset

Reset unsets value.

func (*OptVerifiedCallsDisplayProfileStatus) SetTo

SetTo sets value to v.

func (*OptVerifiedCallsDisplayProfileStatus) UnmarshalJSON

func (s *OptVerifiedCallsDisplayProfileStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerifiedNumberRecordType

type OptVerifiedNumberRecordType struct {
	Value VerifiedNumberRecordType
	Set   bool
}

OptVerifiedNumberRecordType is optional VerifiedNumberRecordType.

func NewOptVerifiedNumberRecordType

func NewOptVerifiedNumberRecordType(v VerifiedNumberRecordType) OptVerifiedNumberRecordType

NewOptVerifiedNumberRecordType returns new OptVerifiedNumberRecordType with value set to v.

func (*OptVerifiedNumberRecordType) Decode

Decode decodes VerifiedNumberRecordType from json.

func (OptVerifiedNumberRecordType) Encode

func (o OptVerifiedNumberRecordType) Encode(e *jx.Encoder)

Encode encodes VerifiedNumberRecordType as json.

func (OptVerifiedNumberRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerifiedNumberRecordType) IsSet

IsSet returns true if OptVerifiedNumberRecordType was set.

func (OptVerifiedNumberRecordType) MarshalJSON

func (s OptVerifiedNumberRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerifiedNumberRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptVerifiedNumberRecordType) Reset

func (o *OptVerifiedNumberRecordType) Reset()

Reset unsets value.

func (*OptVerifiedNumberRecordType) SetTo

SetTo sets value to v.

func (*OptVerifiedNumberRecordType) UnmarshalJSON

func (s *OptVerifiedNumberRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerifiedNumberResponse

type OptVerifiedNumberResponse struct {
	Value VerifiedNumberResponse
	Set   bool
}

OptVerifiedNumberResponse is optional VerifiedNumberResponse.

func NewOptVerifiedNumberResponse

func NewOptVerifiedNumberResponse(v VerifiedNumberResponse) OptVerifiedNumberResponse

NewOptVerifiedNumberResponse returns new OptVerifiedNumberResponse with value set to v.

func (*OptVerifiedNumberResponse) Decode

func (o *OptVerifiedNumberResponse) Decode(d *jx.Decoder) error

Decode decodes VerifiedNumberResponse from json.

func (OptVerifiedNumberResponse) Encode

func (o OptVerifiedNumberResponse) Encode(e *jx.Encoder)

Encode encodes VerifiedNumberResponse as json.

func (OptVerifiedNumberResponse) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerifiedNumberResponse) IsSet

func (o OptVerifiedNumberResponse) IsSet() bool

IsSet returns true if OptVerifiedNumberResponse was set.

func (OptVerifiedNumberResponse) MarshalJSON

func (s OptVerifiedNumberResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerifiedNumberResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptVerifiedNumberResponse) Reset

func (o *OptVerifiedNumberResponse) Reset()

Reset unsets value.

func (*OptVerifiedNumberResponse) SetTo

SetTo sets value to v.

func (*OptVerifiedNumberResponse) UnmarshalJSON

func (s *OptVerifiedNumberResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerifyProfileCallResponse

type OptVerifyProfileCallResponse struct {
	Value VerifyProfileCallResponse
	Set   bool
}

OptVerifyProfileCallResponse is optional VerifyProfileCallResponse.

func NewOptVerifyProfileCallResponse

func NewOptVerifyProfileCallResponse(v VerifyProfileCallResponse) OptVerifyProfileCallResponse

NewOptVerifyProfileCallResponse returns new OptVerifyProfileCallResponse with value set to v.

func (*OptVerifyProfileCallResponse) Decode

Decode decodes VerifyProfileCallResponse from json.

func (OptVerifyProfileCallResponse) Encode

Encode encodes VerifyProfileCallResponse as json.

func (OptVerifyProfileCallResponse) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerifyProfileCallResponse) IsSet

IsSet returns true if OptVerifyProfileCallResponse was set.

func (OptVerifyProfileCallResponse) MarshalJSON

func (s OptVerifyProfileCallResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerifyProfileCallResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptVerifyProfileCallResponse) Reset

func (o *OptVerifyProfileCallResponse) Reset()

Reset unsets value.

func (*OptVerifyProfileCallResponse) SetTo

SetTo sets value to v.

func (*OptVerifyProfileCallResponse) UnmarshalJSON

func (s *OptVerifyProfileCallResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerifyProfileFlashcallResponse

type OptVerifyProfileFlashcallResponse struct {
	Value VerifyProfileFlashcallResponse
	Set   bool
}

OptVerifyProfileFlashcallResponse is optional VerifyProfileFlashcallResponse.

func NewOptVerifyProfileFlashcallResponse

func NewOptVerifyProfileFlashcallResponse(v VerifyProfileFlashcallResponse) OptVerifyProfileFlashcallResponse

NewOptVerifyProfileFlashcallResponse returns new OptVerifyProfileFlashcallResponse with value set to v.

func (*OptVerifyProfileFlashcallResponse) Decode

Decode decodes VerifyProfileFlashcallResponse from json.

func (OptVerifyProfileFlashcallResponse) Encode

Encode encodes VerifyProfileFlashcallResponse as json.

func (OptVerifyProfileFlashcallResponse) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerifyProfileFlashcallResponse) IsSet

IsSet returns true if OptVerifyProfileFlashcallResponse was set.

func (OptVerifyProfileFlashcallResponse) MarshalJSON

func (s OptVerifyProfileFlashcallResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerifyProfileFlashcallResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptVerifyProfileFlashcallResponse) Reset

Reset unsets value.

func (*OptVerifyProfileFlashcallResponse) SetTo

SetTo sets value to v.

func (*OptVerifyProfileFlashcallResponse) UnmarshalJSON

func (s *OptVerifyProfileFlashcallResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerifyProfileResponse

type OptVerifyProfileResponse struct {
	Value VerifyProfileResponse
	Set   bool
}

OptVerifyProfileResponse is optional VerifyProfileResponse.

func NewOptVerifyProfileResponse

func NewOptVerifyProfileResponse(v VerifyProfileResponse) OptVerifyProfileResponse

NewOptVerifyProfileResponse returns new OptVerifyProfileResponse with value set to v.

func (*OptVerifyProfileResponse) Decode

func (o *OptVerifyProfileResponse) Decode(d *jx.Decoder) error

Decode decodes VerifyProfileResponse from json.

func (OptVerifyProfileResponse) Encode

func (o OptVerifyProfileResponse) Encode(e *jx.Encoder)

Encode encodes VerifyProfileResponse as json.

func (OptVerifyProfileResponse) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerifyProfileResponse) IsSet

func (o OptVerifyProfileResponse) IsSet() bool

IsSet returns true if OptVerifyProfileResponse was set.

func (OptVerifyProfileResponse) MarshalJSON

func (s OptVerifyProfileResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerifyProfileResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptVerifyProfileResponse) Reset

func (o *OptVerifyProfileResponse) Reset()

Reset unsets value.

func (*OptVerifyProfileResponse) SetTo

SetTo sets value to v.

func (*OptVerifyProfileResponse) UnmarshalJSON

func (s *OptVerifyProfileResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVerifyProfileSMSResponse

type OptVerifyProfileSMSResponse struct {
	Value VerifyProfileSMSResponse
	Set   bool
}

OptVerifyProfileSMSResponse is optional VerifyProfileSMSResponse.

func NewOptVerifyProfileSMSResponse

func NewOptVerifyProfileSMSResponse(v VerifyProfileSMSResponse) OptVerifyProfileSMSResponse

NewOptVerifyProfileSMSResponse returns new OptVerifyProfileSMSResponse with value set to v.

func (*OptVerifyProfileSMSResponse) Decode

Decode decodes VerifyProfileSMSResponse from json.

func (OptVerifyProfileSMSResponse) Encode

func (o OptVerifyProfileSMSResponse) Encode(e *jx.Encoder)

Encode encodes VerifyProfileSMSResponse as json.

func (OptVerifyProfileSMSResponse) Get

Get returns value and boolean that denotes whether value was set.

func (OptVerifyProfileSMSResponse) IsSet

IsSet returns true if OptVerifyProfileSMSResponse was set.

func (OptVerifyProfileSMSResponse) MarshalJSON

func (s OptVerifyProfileSMSResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVerifyProfileSMSResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptVerifyProfileSMSResponse) Reset

func (o *OptVerifyProfileSMSResponse) Reset()

Reset unsets value.

func (*OptVerifyProfileSMSResponse) SetTo

SetTo sets value to v.

func (*OptVerifyProfileSMSResponse) UnmarshalJSON

func (s *OptVerifyProfileSMSResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptWebhookDelivery

type OptWebhookDelivery struct {
	Value WebhookDelivery
	Set   bool
}

OptWebhookDelivery is optional WebhookDelivery.

func NewOptWebhookDelivery

func NewOptWebhookDelivery(v WebhookDelivery) OptWebhookDelivery

NewOptWebhookDelivery returns new OptWebhookDelivery with value set to v.

func (*OptWebhookDelivery) Decode

func (o *OptWebhookDelivery) Decode(d *jx.Decoder) error

Decode decodes WebhookDelivery from json.

func (OptWebhookDelivery) Encode

func (o OptWebhookDelivery) Encode(e *jx.Encoder)

Encode encodes WebhookDelivery as json.

func (OptWebhookDelivery) Get

func (o OptWebhookDelivery) Get() (v WebhookDelivery, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptWebhookDelivery) IsSet

func (o OptWebhookDelivery) IsSet() bool

IsSet returns true if OptWebhookDelivery was set.

func (OptWebhookDelivery) MarshalJSON

func (s OptWebhookDelivery) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptWebhookDelivery) Or

Or returns value if set, or given parameter if does not.

func (*OptWebhookDelivery) Reset

func (o *OptWebhookDelivery) Reset()

Reset unsets value.

func (*OptWebhookDelivery) SetTo

func (o *OptWebhookDelivery) SetTo(v WebhookDelivery)

SetTo sets value to v.

func (*OptWebhookDelivery) UnmarshalJSON

func (s *OptWebhookDelivery) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptWebhookDeliveryStatus

type OptWebhookDeliveryStatus struct {
	Value WebhookDeliveryStatus
	Set   bool
}

OptWebhookDeliveryStatus is optional WebhookDeliveryStatus.

func NewOptWebhookDeliveryStatus

func NewOptWebhookDeliveryStatus(v WebhookDeliveryStatus) OptWebhookDeliveryStatus

NewOptWebhookDeliveryStatus returns new OptWebhookDeliveryStatus with value set to v.

func (*OptWebhookDeliveryStatus) Decode

func (o *OptWebhookDeliveryStatus) Decode(d *jx.Decoder) error

Decode decodes WebhookDeliveryStatus from json.

func (OptWebhookDeliveryStatus) Encode

func (o OptWebhookDeliveryStatus) Encode(e *jx.Encoder)

Encode encodes WebhookDeliveryStatus as json.

func (OptWebhookDeliveryStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptWebhookDeliveryStatus) IsSet

func (o OptWebhookDeliveryStatus) IsSet() bool

IsSet returns true if OptWebhookDeliveryStatus was set.

func (OptWebhookDeliveryStatus) MarshalJSON

func (s OptWebhookDeliveryStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptWebhookDeliveryStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptWebhookDeliveryStatus) Reset

func (o *OptWebhookDeliveryStatus) Reset()

Reset unsets value.

func (*OptWebhookDeliveryStatus) SetTo

SetTo sets value to v.

func (*OptWebhookDeliveryStatus) UnmarshalJSON

func (s *OptWebhookDeliveryStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptWebhookDeliveryWebhook

type OptWebhookDeliveryWebhook struct {
	Value WebhookDeliveryWebhook
	Set   bool
}

OptWebhookDeliveryWebhook is optional WebhookDeliveryWebhook.

func NewOptWebhookDeliveryWebhook

func NewOptWebhookDeliveryWebhook(v WebhookDeliveryWebhook) OptWebhookDeliveryWebhook

NewOptWebhookDeliveryWebhook returns new OptWebhookDeliveryWebhook with value set to v.

func (*OptWebhookDeliveryWebhook) Decode

func (o *OptWebhookDeliveryWebhook) Decode(d *jx.Decoder) error

Decode decodes WebhookDeliveryWebhook from json.

func (OptWebhookDeliveryWebhook) Encode

func (o OptWebhookDeliveryWebhook) Encode(e *jx.Encoder)

Encode encodes WebhookDeliveryWebhook as json.

func (OptWebhookDeliveryWebhook) Get

Get returns value and boolean that denotes whether value was set.

func (OptWebhookDeliveryWebhook) IsSet

func (o OptWebhookDeliveryWebhook) IsSet() bool

IsSet returns true if OptWebhookDeliveryWebhook was set.

func (OptWebhookDeliveryWebhook) MarshalJSON

func (s OptWebhookDeliveryWebhook) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptWebhookDeliveryWebhook) Or

Or returns value if set, or given parameter if does not.

func (*OptWebhookDeliveryWebhook) Reset

func (o *OptWebhookDeliveryWebhook) Reset()

Reset unsets value.

func (*OptWebhookDeliveryWebhook) SetTo

SetTo sets value to v.

func (*OptWebhookDeliveryWebhook) UnmarshalJSON

func (s *OptWebhookDeliveryWebhook) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptWebhookDeliveryWebhookPayload

type OptWebhookDeliveryWebhookPayload struct {
	Value WebhookDeliveryWebhookPayload
	Set   bool
}

OptWebhookDeliveryWebhookPayload is optional WebhookDeliveryWebhookPayload.

func NewOptWebhookDeliveryWebhookPayload

func NewOptWebhookDeliveryWebhookPayload(v WebhookDeliveryWebhookPayload) OptWebhookDeliveryWebhookPayload

NewOptWebhookDeliveryWebhookPayload returns new OptWebhookDeliveryWebhookPayload with value set to v.

func (*OptWebhookDeliveryWebhookPayload) Decode

Decode decodes WebhookDeliveryWebhookPayload from json.

func (OptWebhookDeliveryWebhookPayload) Encode

Encode encodes WebhookDeliveryWebhookPayload as json.

func (OptWebhookDeliveryWebhookPayload) Get

Get returns value and boolean that denotes whether value was set.

func (OptWebhookDeliveryWebhookPayload) IsSet

IsSet returns true if OptWebhookDeliveryWebhookPayload was set.

func (OptWebhookDeliveryWebhookPayload) MarshalJSON

func (s OptWebhookDeliveryWebhookPayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptWebhookDeliveryWebhookPayload) Or

Or returns value if set, or given parameter if does not.

func (*OptWebhookDeliveryWebhookPayload) Reset

Reset unsets value.

func (*OptWebhookDeliveryWebhookPayload) SetTo

SetTo sets value to v.

func (*OptWebhookDeliveryWebhookPayload) UnmarshalJSON

func (s *OptWebhookDeliveryWebhookPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptWebhookDeliveryWebhookRecordType

type OptWebhookDeliveryWebhookRecordType struct {
	Value WebhookDeliveryWebhookRecordType
	Set   bool
}

OptWebhookDeliveryWebhookRecordType is optional WebhookDeliveryWebhookRecordType.

func NewOptWebhookDeliveryWebhookRecordType

func NewOptWebhookDeliveryWebhookRecordType(v WebhookDeliveryWebhookRecordType) OptWebhookDeliveryWebhookRecordType

NewOptWebhookDeliveryWebhookRecordType returns new OptWebhookDeliveryWebhookRecordType with value set to v.

func (*OptWebhookDeliveryWebhookRecordType) Decode

Decode decodes WebhookDeliveryWebhookRecordType from json.

func (OptWebhookDeliveryWebhookRecordType) Encode

Encode encodes WebhookDeliveryWebhookRecordType as json.

func (OptWebhookDeliveryWebhookRecordType) Get

Get returns value and boolean that denotes whether value was set.

func (OptWebhookDeliveryWebhookRecordType) IsSet

IsSet returns true if OptWebhookDeliveryWebhookRecordType was set.

func (OptWebhookDeliveryWebhookRecordType) MarshalJSON

func (s OptWebhookDeliveryWebhookRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptWebhookDeliveryWebhookRecordType) Or

Or returns value if set, or given parameter if does not.

func (*OptWebhookDeliveryWebhookRecordType) Reset

Reset unsets value.

func (*OptWebhookDeliveryWebhookRecordType) SetTo

SetTo sets value to v.

func (*OptWebhookDeliveryWebhookRecordType) UnmarshalJSON

func (s *OptWebhookDeliveryWebhookRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ClientOption
}

Option is config option.

type OutboundCallRecording

type OutboundCallRecording struct {
	// Specifies which calls are recorded.
	CallRecordingType OptOutboundCallRecordingCallRecordingType `json:"call_recording_type"`
	// When call_recording_type is 'by_caller_phone_number', only outbound calls using one of these
	// numbers will be recorded. Numbers must be specified in E164 format.
	CallRecordingCallerPhoneNumbers []string `json:"call_recording_caller_phone_numbers"`
	// When using 'dual' channels, the final audio file will be a stereo recording with the first leg on
	// channel A, and the rest on channel B.
	CallRecordingChannels OptOutboundCallRecordingCallRecordingChannels `json:"call_recording_channels"`
	// The audio file format for calls being recorded.
	CallRecordingFormat OptOutboundCallRecordingCallRecordingFormat `json:"call_recording_format"`
}

Ref: #/components/schemas/OutboundCallRecording

func (*OutboundCallRecording) Decode

func (s *OutboundCallRecording) Decode(d *jx.Decoder) error

Decode decodes OutboundCallRecording from json.

func (*OutboundCallRecording) Encode

func (s *OutboundCallRecording) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OutboundCallRecording) GetCallRecordingCallerPhoneNumbers

func (s *OutboundCallRecording) GetCallRecordingCallerPhoneNumbers() []string

GetCallRecordingCallerPhoneNumbers returns the value of CallRecordingCallerPhoneNumbers.

func (*OutboundCallRecording) GetCallRecordingChannels

GetCallRecordingChannels returns the value of CallRecordingChannels.

func (*OutboundCallRecording) GetCallRecordingFormat

GetCallRecordingFormat returns the value of CallRecordingFormat.

func (*OutboundCallRecording) GetCallRecordingType

GetCallRecordingType returns the value of CallRecordingType.

func (*OutboundCallRecording) MarshalJSON

func (s *OutboundCallRecording) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OutboundCallRecording) SetCallRecordingCallerPhoneNumbers

func (s *OutboundCallRecording) SetCallRecordingCallerPhoneNumbers(val []string)

SetCallRecordingCallerPhoneNumbers sets the value of CallRecordingCallerPhoneNumbers.

func (*OutboundCallRecording) SetCallRecordingChannels

SetCallRecordingChannels sets the value of CallRecordingChannels.

func (*OutboundCallRecording) SetCallRecordingFormat

SetCallRecordingFormat sets the value of CallRecordingFormat.

func (*OutboundCallRecording) SetCallRecordingType

SetCallRecordingType sets the value of CallRecordingType.

func (*OutboundCallRecording) UnmarshalJSON

func (s *OutboundCallRecording) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundCallRecording) Validate

func (s *OutboundCallRecording) Validate() error

type OutboundCallRecordingCallRecordingChannels

type OutboundCallRecordingCallRecordingChannels string

When using 'dual' channels, the final audio file will be a stereo recording with the first leg on channel A, and the rest on channel B.

const (
	OutboundCallRecordingCallRecordingChannelsSingle OutboundCallRecordingCallRecordingChannels = "single"
	OutboundCallRecordingCallRecordingChannelsDual   OutboundCallRecordingCallRecordingChannels = "dual"
)

func (OutboundCallRecordingCallRecordingChannels) AllValues

AllValues returns all OutboundCallRecordingCallRecordingChannels values.

func (*OutboundCallRecordingCallRecordingChannels) Decode

Decode decodes OutboundCallRecordingCallRecordingChannels from json.

func (OutboundCallRecordingCallRecordingChannels) Encode

Encode encodes OutboundCallRecordingCallRecordingChannels as json.

func (OutboundCallRecordingCallRecordingChannels) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OutboundCallRecordingCallRecordingChannels) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*OutboundCallRecordingCallRecordingChannels) UnmarshalJSON

func (s *OutboundCallRecordingCallRecordingChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundCallRecordingCallRecordingChannels) UnmarshalText

func (s *OutboundCallRecordingCallRecordingChannels) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OutboundCallRecordingCallRecordingChannels) Validate

type OutboundCallRecordingCallRecordingFormat

type OutboundCallRecordingCallRecordingFormat string

The audio file format for calls being recorded.

const (
	OutboundCallRecordingCallRecordingFormatWav OutboundCallRecordingCallRecordingFormat = "wav"
	OutboundCallRecordingCallRecordingFormatMp3 OutboundCallRecordingCallRecordingFormat = "mp3"
)

func (OutboundCallRecordingCallRecordingFormat) AllValues

AllValues returns all OutboundCallRecordingCallRecordingFormat values.

func (*OutboundCallRecordingCallRecordingFormat) Decode

Decode decodes OutboundCallRecordingCallRecordingFormat from json.

func (OutboundCallRecordingCallRecordingFormat) Encode

Encode encodes OutboundCallRecordingCallRecordingFormat as json.

func (OutboundCallRecordingCallRecordingFormat) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OutboundCallRecordingCallRecordingFormat) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*OutboundCallRecordingCallRecordingFormat) UnmarshalJSON

func (s *OutboundCallRecordingCallRecordingFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundCallRecordingCallRecordingFormat) UnmarshalText

func (s *OutboundCallRecordingCallRecordingFormat) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OutboundCallRecordingCallRecordingFormat) Validate

type OutboundCallRecordingCallRecordingType

type OutboundCallRecordingCallRecordingType string

Specifies which calls are recorded.

const (
	OutboundCallRecordingCallRecordingTypeAll                 OutboundCallRecordingCallRecordingType = "all"
	OutboundCallRecordingCallRecordingTypeNone                OutboundCallRecordingCallRecordingType = "none"
	OutboundCallRecordingCallRecordingTypeByCallerPhoneNumber OutboundCallRecordingCallRecordingType = "by_caller_phone_number"
)

func (OutboundCallRecordingCallRecordingType) AllValues

AllValues returns all OutboundCallRecordingCallRecordingType values.

func (*OutboundCallRecordingCallRecordingType) Decode

Decode decodes OutboundCallRecordingCallRecordingType from json.

func (OutboundCallRecordingCallRecordingType) Encode

Encode encodes OutboundCallRecordingCallRecordingType as json.

func (OutboundCallRecordingCallRecordingType) MarshalJSON

func (s OutboundCallRecordingCallRecordingType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OutboundCallRecordingCallRecordingType) MarshalText

func (s OutboundCallRecordingCallRecordingType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OutboundCallRecordingCallRecordingType) UnmarshalJSON

func (s *OutboundCallRecordingCallRecordingType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundCallRecordingCallRecordingType) UnmarshalText

func (s *OutboundCallRecordingCallRecordingType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OutboundCallRecordingCallRecordingType) Validate

type OutboundMessagePayload

type OutboundMessagePayload struct {
	// Identifies the type of the resource.
	RecordType OptOutboundMessagePayloadRecordType `json:"record_type"`
	// The direction of the message. Inbound messages are sent to you whereas outbound messages are sent
	// from you.
	Direction OptOutboundMessagePayloadDirection `json:"direction"`
	// Identifies the type of resource.
	ID OptUUID `json:"id"`
	// The type of message.
	Type OptOutboundMessagePayloadType `json:"type"`
	// Unique identifier for a messaging profile.
	MessagingProfileID OptString `json:"messaging_profile_id"`
	// The id of the organization the messaging profile belongs to.
	OrganizationID OptUUID                        `json:"organization_id"`
	From           OptOutboundMessagePayloadFrom  `json:"from"`
	To             []OutboundMessagePayloadToItem `json:"to"`
	// Message body (i.e., content) as a non-empty string.
	// **Required for SMS**.
	Text OptString `json:"text"`
	// Subject of multimedia message.
	Subject OptNilString                      `json:"subject"`
	Media   []OutboundMessagePayloadMediaItem `json:"media"`
	// The URL where webhooks related to this message will be sent.
	WebhookURL OptNilString `json:"webhook_url"`
	// The failover URL where webhooks related to this message will be sent if sending to the primary URL
	// fails.
	WebhookFailoverURL OptNilString `json:"webhook_failover_url"`
	// Encoding scheme used for the message body.
	Encoding OptString `json:"encoding"`
	// Number of parts into which the message's body must be split.
	Parts OptInt `json:"parts"`
	// Tags associated with the resource.
	Tags []string                         `json:"tags"`
	Cost OptNilOutboundMessagePayloadCost `json:"cost"`
	// ISO 8601 formatted date indicating when the message request was received.
	ReceivedAt OptDateTime `json:"received_at"`
	// ISO 8601 formatted date indicating when the message was sent.
	SentAt OptDateTime `json:"sent_at"`
	// ISO 8601 formatted date indicating when the message was finalized.
	CompletedAt OptDateTime `json:"completed_at"`
	// Message must be out of the queue by this time or else it will be discarded and marked as
	// 'sending_failed'. Once the message moves out of the queue, this field will be nulled.
	ValidUntil OptNilDateTime `json:"valid_until"`
	// These errors may point at addressees when referring to unsuccessful/unconfirmed delivery statuses.
	Errors []Error `json:"errors"`
}

Ref: #/components/schemas/OutboundMessagePayload

func (*OutboundMessagePayload) Decode

func (s *OutboundMessagePayload) Decode(d *jx.Decoder) error

Decode decodes OutboundMessagePayload from json.

func (*OutboundMessagePayload) Encode

func (s *OutboundMessagePayload) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OutboundMessagePayload) GetCompletedAt

func (s *OutboundMessagePayload) GetCompletedAt() OptDateTime

GetCompletedAt returns the value of CompletedAt.

func (*OutboundMessagePayload) GetCost

GetCost returns the value of Cost.

func (*OutboundMessagePayload) GetDirection

GetDirection returns the value of Direction.

func (*OutboundMessagePayload) GetEncoding

func (s *OutboundMessagePayload) GetEncoding() OptString

GetEncoding returns the value of Encoding.

func (*OutboundMessagePayload) GetErrors

func (s *OutboundMessagePayload) GetErrors() []Error

GetErrors returns the value of Errors.

func (*OutboundMessagePayload) GetFrom

GetFrom returns the value of From.

func (*OutboundMessagePayload) GetID

func (s *OutboundMessagePayload) GetID() OptUUID

GetID returns the value of ID.

func (*OutboundMessagePayload) GetMedia

GetMedia returns the value of Media.

func (*OutboundMessagePayload) GetMessagingProfileID

func (s *OutboundMessagePayload) GetMessagingProfileID() OptString

GetMessagingProfileID returns the value of MessagingProfileID.

func (*OutboundMessagePayload) GetOrganizationID

func (s *OutboundMessagePayload) GetOrganizationID() OptUUID

GetOrganizationID returns the value of OrganizationID.

func (*OutboundMessagePayload) GetParts

func (s *OutboundMessagePayload) GetParts() OptInt

GetParts returns the value of Parts.

func (*OutboundMessagePayload) GetReceivedAt

func (s *OutboundMessagePayload) GetReceivedAt() OptDateTime

GetReceivedAt returns the value of ReceivedAt.

func (*OutboundMessagePayload) GetRecordType

GetRecordType returns the value of RecordType.

func (*OutboundMessagePayload) GetSentAt

func (s *OutboundMessagePayload) GetSentAt() OptDateTime

GetSentAt returns the value of SentAt.

func (*OutboundMessagePayload) GetSubject

func (s *OutboundMessagePayload) GetSubject() OptNilString

GetSubject returns the value of Subject.

func (*OutboundMessagePayload) GetTags

func (s *OutboundMessagePayload) GetTags() []string

GetTags returns the value of Tags.

func (*OutboundMessagePayload) GetText

func (s *OutboundMessagePayload) GetText() OptString

GetText returns the value of Text.

func (*OutboundMessagePayload) GetTo

GetTo returns the value of To.

func (*OutboundMessagePayload) GetType

GetType returns the value of Type.

func (*OutboundMessagePayload) GetValidUntil

func (s *OutboundMessagePayload) GetValidUntil() OptNilDateTime

GetValidUntil returns the value of ValidUntil.

func (*OutboundMessagePayload) GetWebhookFailoverURL

func (s *OutboundMessagePayload) GetWebhookFailoverURL() OptNilString

GetWebhookFailoverURL returns the value of WebhookFailoverURL.

func (*OutboundMessagePayload) GetWebhookURL

func (s *OutboundMessagePayload) GetWebhookURL() OptNilString

GetWebhookURL returns the value of WebhookURL.

func (*OutboundMessagePayload) MarshalJSON

func (s *OutboundMessagePayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OutboundMessagePayload) SetCompletedAt

func (s *OutboundMessagePayload) SetCompletedAt(val OptDateTime)

SetCompletedAt sets the value of CompletedAt.

func (*OutboundMessagePayload) SetCost

SetCost sets the value of Cost.

func (*OutboundMessagePayload) SetDirection

SetDirection sets the value of Direction.

func (*OutboundMessagePayload) SetEncoding

func (s *OutboundMessagePayload) SetEncoding(val OptString)

SetEncoding sets the value of Encoding.

func (*OutboundMessagePayload) SetErrors

func (s *OutboundMessagePayload) SetErrors(val []Error)

SetErrors sets the value of Errors.

func (*OutboundMessagePayload) SetFrom

SetFrom sets the value of From.

func (*OutboundMessagePayload) SetID

func (s *OutboundMessagePayload) SetID(val OptUUID)

SetID sets the value of ID.

func (*OutboundMessagePayload) SetMedia

SetMedia sets the value of Media.

func (*OutboundMessagePayload) SetMessagingProfileID

func (s *OutboundMessagePayload) SetMessagingProfileID(val OptString)

SetMessagingProfileID sets the value of MessagingProfileID.

func (*OutboundMessagePayload) SetOrganizationID

func (s *OutboundMessagePayload) SetOrganizationID(val OptUUID)

SetOrganizationID sets the value of OrganizationID.

func (*OutboundMessagePayload) SetParts

func (s *OutboundMessagePayload) SetParts(val OptInt)

SetParts sets the value of Parts.

func (*OutboundMessagePayload) SetReceivedAt

func (s *OutboundMessagePayload) SetReceivedAt(val OptDateTime)

SetReceivedAt sets the value of ReceivedAt.

func (*OutboundMessagePayload) SetRecordType

SetRecordType sets the value of RecordType.

func (*OutboundMessagePayload) SetSentAt

func (s *OutboundMessagePayload) SetSentAt(val OptDateTime)

SetSentAt sets the value of SentAt.

func (*OutboundMessagePayload) SetSubject

func (s *OutboundMessagePayload) SetSubject(val OptNilString)

SetSubject sets the value of Subject.

func (*OutboundMessagePayload) SetTags

func (s *OutboundMessagePayload) SetTags(val []string)

SetTags sets the value of Tags.

func (*OutboundMessagePayload) SetText

func (s *OutboundMessagePayload) SetText(val OptString)

SetText sets the value of Text.

func (*OutboundMessagePayload) SetTo

SetTo sets the value of To.

func (*OutboundMessagePayload) SetType

SetType sets the value of Type.

func (*OutboundMessagePayload) SetValidUntil

func (s *OutboundMessagePayload) SetValidUntil(val OptNilDateTime)

SetValidUntil sets the value of ValidUntil.

func (*OutboundMessagePayload) SetWebhookFailoverURL

func (s *OutboundMessagePayload) SetWebhookFailoverURL(val OptNilString)

SetWebhookFailoverURL sets the value of WebhookFailoverURL.

func (*OutboundMessagePayload) SetWebhookURL

func (s *OutboundMessagePayload) SetWebhookURL(val OptNilString)

SetWebhookURL sets the value of WebhookURL.

func (*OutboundMessagePayload) UnmarshalJSON

func (s *OutboundMessagePayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundMessagePayload) Validate

func (s *OutboundMessagePayload) Validate() error

type OutboundMessagePayloadCost

type OutboundMessagePayloadCost struct {
	// The amount deducted from your account.
	Amount OptString `json:"amount"`
	// The ISO 4217 currency identifier.
	Currency OptString `json:"currency"`
}

func (*OutboundMessagePayloadCost) Decode

Decode decodes OutboundMessagePayloadCost from json.

func (*OutboundMessagePayloadCost) Encode

func (s *OutboundMessagePayloadCost) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OutboundMessagePayloadCost) GetAmount

func (s *OutboundMessagePayloadCost) GetAmount() OptString

GetAmount returns the value of Amount.

func (*OutboundMessagePayloadCost) GetCurrency

func (s *OutboundMessagePayloadCost) GetCurrency() OptString

GetCurrency returns the value of Currency.

func (*OutboundMessagePayloadCost) MarshalJSON

func (s *OutboundMessagePayloadCost) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OutboundMessagePayloadCost) SetAmount

func (s *OutboundMessagePayloadCost) SetAmount(val OptString)

SetAmount sets the value of Amount.

func (*OutboundMessagePayloadCost) SetCurrency

func (s *OutboundMessagePayloadCost) SetCurrency(val OptString)

SetCurrency sets the value of Currency.

func (*OutboundMessagePayloadCost) UnmarshalJSON

func (s *OutboundMessagePayloadCost) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OutboundMessagePayloadDirection

type OutboundMessagePayloadDirection string

The direction of the message. Inbound messages are sent to you whereas outbound messages are sent from you.

const (
	OutboundMessagePayloadDirectionOutbound OutboundMessagePayloadDirection = "outbound"
)

func (OutboundMessagePayloadDirection) AllValues

AllValues returns all OutboundMessagePayloadDirection values.

func (*OutboundMessagePayloadDirection) Decode

Decode decodes OutboundMessagePayloadDirection from json.

func (OutboundMessagePayloadDirection) Encode

Encode encodes OutboundMessagePayloadDirection as json.

func (OutboundMessagePayloadDirection) MarshalJSON

func (s OutboundMessagePayloadDirection) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OutboundMessagePayloadDirection) MarshalText

func (s OutboundMessagePayloadDirection) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OutboundMessagePayloadDirection) UnmarshalJSON

func (s *OutboundMessagePayloadDirection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundMessagePayloadDirection) UnmarshalText

func (s *OutboundMessagePayloadDirection) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OutboundMessagePayloadDirection) Validate

type OutboundMessagePayloadFrom

type OutboundMessagePayloadFrom struct {
	// Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code).
	PhoneNumber OptString `json:"phone_number"`
	// The carrier of the receiver.
	Carrier OptString `json:"carrier"`
	// The line-type of the receiver.
	LineType OptOutboundMessagePayloadFromLineType `json:"line_type"`
}

func (*OutboundMessagePayloadFrom) Decode

Decode decodes OutboundMessagePayloadFrom from json.

func (*OutboundMessagePayloadFrom) Encode

func (s *OutboundMessagePayloadFrom) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OutboundMessagePayloadFrom) GetCarrier

func (s *OutboundMessagePayloadFrom) GetCarrier() OptString

GetCarrier returns the value of Carrier.

func (*OutboundMessagePayloadFrom) GetLineType

GetLineType returns the value of LineType.

func (*OutboundMessagePayloadFrom) GetPhoneNumber

func (s *OutboundMessagePayloadFrom) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*OutboundMessagePayloadFrom) MarshalJSON

func (s *OutboundMessagePayloadFrom) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OutboundMessagePayloadFrom) SetCarrier

func (s *OutboundMessagePayloadFrom) SetCarrier(val OptString)

SetCarrier sets the value of Carrier.

func (*OutboundMessagePayloadFrom) SetLineType

SetLineType sets the value of LineType.

func (*OutboundMessagePayloadFrom) SetPhoneNumber

func (s *OutboundMessagePayloadFrom) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*OutboundMessagePayloadFrom) UnmarshalJSON

func (s *OutboundMessagePayloadFrom) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundMessagePayloadFrom) Validate

func (s *OutboundMessagePayloadFrom) Validate() error

type OutboundMessagePayloadFromLineType

type OutboundMessagePayloadFromLineType string

The line-type of the receiver.

const (
	OutboundMessagePayloadFromLineTypeWireline        OutboundMessagePayloadFromLineType = "Wireline"
	OutboundMessagePayloadFromLineTypeWireless        OutboundMessagePayloadFromLineType = "Wireless"
	OutboundMessagePayloadFromLineTypeVoWiFi          OutboundMessagePayloadFromLineType = "VoWiFi"
	OutboundMessagePayloadFromLineTypeVoIP            OutboundMessagePayloadFromLineType = "VoIP"
	OutboundMessagePayloadFromLineTypePrePaidWireless OutboundMessagePayloadFromLineType = "Pre-Paid Wireless"
	OutboundMessagePayloadFromLineTypeEmpty           OutboundMessagePayloadFromLineType = ""
)

func (OutboundMessagePayloadFromLineType) AllValues

AllValues returns all OutboundMessagePayloadFromLineType values.

func (*OutboundMessagePayloadFromLineType) Decode

Decode decodes OutboundMessagePayloadFromLineType from json.

func (OutboundMessagePayloadFromLineType) Encode

Encode encodes OutboundMessagePayloadFromLineType as json.

func (OutboundMessagePayloadFromLineType) MarshalJSON

func (s OutboundMessagePayloadFromLineType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OutboundMessagePayloadFromLineType) MarshalText

func (s OutboundMessagePayloadFromLineType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OutboundMessagePayloadFromLineType) UnmarshalJSON

func (s *OutboundMessagePayloadFromLineType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundMessagePayloadFromLineType) UnmarshalText

func (s *OutboundMessagePayloadFromLineType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OutboundMessagePayloadFromLineType) Validate

type OutboundMessagePayloadMediaItem

type OutboundMessagePayloadMediaItem struct {
	// The url of the media requested to be sent.
	URL OptString `json:"url"`
	// The MIME type of the requested media.
	ContentType OptNilString `json:"content_type"`
	// The SHA256 hash of the requested media.
	SHA256 OptNilString `json:"sha256"`
	// The size of the requested media.
	Size OptNilInt `json:"size"`
}

func (*OutboundMessagePayloadMediaItem) Decode

Decode decodes OutboundMessagePayloadMediaItem from json.

func (*OutboundMessagePayloadMediaItem) Encode

Encode implements json.Marshaler.

func (*OutboundMessagePayloadMediaItem) GetContentType

func (s *OutboundMessagePayloadMediaItem) GetContentType() OptNilString

GetContentType returns the value of ContentType.

func (*OutboundMessagePayloadMediaItem) GetSHA256

GetSHA256 returns the value of SHA256.

func (*OutboundMessagePayloadMediaItem) GetSize

GetSize returns the value of Size.

func (*OutboundMessagePayloadMediaItem) GetURL

GetURL returns the value of URL.

func (*OutboundMessagePayloadMediaItem) MarshalJSON

func (s *OutboundMessagePayloadMediaItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OutboundMessagePayloadMediaItem) SetContentType

func (s *OutboundMessagePayloadMediaItem) SetContentType(val OptNilString)

SetContentType sets the value of ContentType.

func (*OutboundMessagePayloadMediaItem) SetSHA256

SetSHA256 sets the value of SHA256.

func (*OutboundMessagePayloadMediaItem) SetSize

SetSize sets the value of Size.

func (*OutboundMessagePayloadMediaItem) SetURL

SetURL sets the value of URL.

func (*OutboundMessagePayloadMediaItem) UnmarshalJSON

func (s *OutboundMessagePayloadMediaItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OutboundMessagePayloadRecordType

type OutboundMessagePayloadRecordType string

Identifies the type of the resource.

const (
	OutboundMessagePayloadRecordTypeMessage OutboundMessagePayloadRecordType = "message"
)

func (OutboundMessagePayloadRecordType) AllValues

AllValues returns all OutboundMessagePayloadRecordType values.

func (*OutboundMessagePayloadRecordType) Decode

Decode decodes OutboundMessagePayloadRecordType from json.

func (OutboundMessagePayloadRecordType) Encode

Encode encodes OutboundMessagePayloadRecordType as json.

func (OutboundMessagePayloadRecordType) MarshalJSON

func (s OutboundMessagePayloadRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OutboundMessagePayloadRecordType) MarshalText

func (s OutboundMessagePayloadRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OutboundMessagePayloadRecordType) UnmarshalJSON

func (s *OutboundMessagePayloadRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundMessagePayloadRecordType) UnmarshalText

func (s *OutboundMessagePayloadRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OutboundMessagePayloadRecordType) Validate

type OutboundMessagePayloadToItem

type OutboundMessagePayloadToItem struct {
	// Receiving address (+E.164 formatted phone number or short code).
	PhoneNumber OptString `json:"phone_number"`
	// The delivery status of the message.
	Status OptOutboundMessagePayloadToItemStatus `json:"status"`
	// The carrier of the receiver.
	Carrier OptString `json:"carrier"`
	// The line-type of the receiver.
	LineType OptOutboundMessagePayloadToItemLineType `json:"line_type"`
}

func (*OutboundMessagePayloadToItem) Decode

Decode decodes OutboundMessagePayloadToItem from json.

func (*OutboundMessagePayloadToItem) Encode

func (s *OutboundMessagePayloadToItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OutboundMessagePayloadToItem) GetCarrier

func (s *OutboundMessagePayloadToItem) GetCarrier() OptString

GetCarrier returns the value of Carrier.

func (*OutboundMessagePayloadToItem) GetLineType

GetLineType returns the value of LineType.

func (*OutboundMessagePayloadToItem) GetPhoneNumber

func (s *OutboundMessagePayloadToItem) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*OutboundMessagePayloadToItem) GetStatus

GetStatus returns the value of Status.

func (*OutboundMessagePayloadToItem) MarshalJSON

func (s *OutboundMessagePayloadToItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OutboundMessagePayloadToItem) SetCarrier

func (s *OutboundMessagePayloadToItem) SetCarrier(val OptString)

SetCarrier sets the value of Carrier.

func (*OutboundMessagePayloadToItem) SetLineType

SetLineType sets the value of LineType.

func (*OutboundMessagePayloadToItem) SetPhoneNumber

func (s *OutboundMessagePayloadToItem) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*OutboundMessagePayloadToItem) SetStatus

SetStatus sets the value of Status.

func (*OutboundMessagePayloadToItem) UnmarshalJSON

func (s *OutboundMessagePayloadToItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundMessagePayloadToItem) Validate

func (s *OutboundMessagePayloadToItem) Validate() error

type OutboundMessagePayloadToItemLineType

type OutboundMessagePayloadToItemLineType string

The line-type of the receiver.

const (
	OutboundMessagePayloadToItemLineTypeWireline        OutboundMessagePayloadToItemLineType = "Wireline"
	OutboundMessagePayloadToItemLineTypeWireless        OutboundMessagePayloadToItemLineType = "Wireless"
	OutboundMessagePayloadToItemLineTypeVoWiFi          OutboundMessagePayloadToItemLineType = "VoWiFi"
	OutboundMessagePayloadToItemLineTypeVoIP            OutboundMessagePayloadToItemLineType = "VoIP"
	OutboundMessagePayloadToItemLineTypePrePaidWireless OutboundMessagePayloadToItemLineType = "Pre-Paid Wireless"
	OutboundMessagePayloadToItemLineTypeEmpty           OutboundMessagePayloadToItemLineType = ""
)

func (OutboundMessagePayloadToItemLineType) AllValues

AllValues returns all OutboundMessagePayloadToItemLineType values.

func (*OutboundMessagePayloadToItemLineType) Decode

Decode decodes OutboundMessagePayloadToItemLineType from json.

func (OutboundMessagePayloadToItemLineType) Encode

Encode encodes OutboundMessagePayloadToItemLineType as json.

func (OutboundMessagePayloadToItemLineType) MarshalJSON

func (s OutboundMessagePayloadToItemLineType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OutboundMessagePayloadToItemLineType) MarshalText

func (s OutboundMessagePayloadToItemLineType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OutboundMessagePayloadToItemLineType) UnmarshalJSON

func (s *OutboundMessagePayloadToItemLineType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundMessagePayloadToItemLineType) UnmarshalText

func (s *OutboundMessagePayloadToItemLineType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OutboundMessagePayloadToItemLineType) Validate

type OutboundMessagePayloadToItemStatus

type OutboundMessagePayloadToItemStatus string

The delivery status of the message.

const (
	OutboundMessagePayloadToItemStatusQueued              OutboundMessagePayloadToItemStatus = "queued"
	OutboundMessagePayloadToItemStatusSending             OutboundMessagePayloadToItemStatus = "sending"
	OutboundMessagePayloadToItemStatusSent                OutboundMessagePayloadToItemStatus = "sent"
	OutboundMessagePayloadToItemStatusExpired             OutboundMessagePayloadToItemStatus = "expired"
	OutboundMessagePayloadToItemStatusSendingFailed       OutboundMessagePayloadToItemStatus = "sending_failed"
	OutboundMessagePayloadToItemStatusDeliveryUnconfirmed OutboundMessagePayloadToItemStatus = "delivery_unconfirmed"
	OutboundMessagePayloadToItemStatusDelivered           OutboundMessagePayloadToItemStatus = "delivered"
	OutboundMessagePayloadToItemStatusDeliveryFailed      OutboundMessagePayloadToItemStatus = "delivery_failed"
)

func (OutboundMessagePayloadToItemStatus) AllValues

AllValues returns all OutboundMessagePayloadToItemStatus values.

func (*OutboundMessagePayloadToItemStatus) Decode

Decode decodes OutboundMessagePayloadToItemStatus from json.

func (OutboundMessagePayloadToItemStatus) Encode

Encode encodes OutboundMessagePayloadToItemStatus as json.

func (OutboundMessagePayloadToItemStatus) MarshalJSON

func (s OutboundMessagePayloadToItemStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OutboundMessagePayloadToItemStatus) MarshalText

func (s OutboundMessagePayloadToItemStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OutboundMessagePayloadToItemStatus) UnmarshalJSON

func (s *OutboundMessagePayloadToItemStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundMessagePayloadToItemStatus) UnmarshalText

func (s *OutboundMessagePayloadToItemStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OutboundMessagePayloadToItemStatus) Validate

type OutboundMessagePayloadType

type OutboundMessagePayloadType string

The type of message.

const (
	OutboundMessagePayloadTypeSMS OutboundMessagePayloadType = "SMS"
	OutboundMessagePayloadTypeMMS OutboundMessagePayloadType = "MMS"
)

func (OutboundMessagePayloadType) AllValues

AllValues returns all OutboundMessagePayloadType values.

func (*OutboundMessagePayloadType) Decode

Decode decodes OutboundMessagePayloadType from json.

func (OutboundMessagePayloadType) Encode

func (s OutboundMessagePayloadType) Encode(e *jx.Encoder)

Encode encodes OutboundMessagePayloadType as json.

func (OutboundMessagePayloadType) MarshalJSON

func (s OutboundMessagePayloadType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OutboundMessagePayloadType) MarshalText

func (s OutboundMessagePayloadType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OutboundMessagePayloadType) UnmarshalJSON

func (s *OutboundMessagePayloadType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundMessagePayloadType) UnmarshalText

func (s *OutboundMessagePayloadType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OutboundMessagePayloadType) Validate

func (s OutboundMessagePayloadType) Validate() error

type OutboundVoiceProfile

type OutboundVoiceProfile struct {
	// Identifies the resource.
	ID OptStringInt64 `json:"id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// A user-supplied name to help with organization.
	Name string `json:"name"`
	// Amount of connections associated with this outbound voice profile.
	ConnectionsCount OptInt         `json:"connections_count"`
	TrafficType      OptTrafficType `json:"traffic_type"`
	ServicePlan      OptServicePlan `json:"service_plan"`
	// Must be no more than your global concurrent call limit. Null means no limit.
	ConcurrentCallLimit OptNilInt `json:"concurrent_call_limit"`
	// Specifies whether the outbound voice profile can be used. Disabled profiles will result in
	// outbound calls being blocked for the associated Connections.
	Enabled            OptBool               `json:"enabled"`
	Tags               []string              `json:"tags"`
	UsagePaymentMethod OptUsagePaymentMethod `json:"usage_payment_method"`
	// The list of destinations you want to be able to call using this outbound voice profile formatted
	// in alpha2.
	WhitelistedDestinations []string `json:"whitelisted_destinations"`
	// Maximum rate (price per minute) for a Destination to be allowed when making outbound calls.
	MaxDestinationRate OptFloat64 `json:"max_destination_rate"`
	// The maximum amount of usage charges, in USD, you want Telnyx to allow on this outbound voice
	// profile in a day before disallowing new calls.
	DailySpendLimit OptString `json:"daily_spend_limit"`
	// Specifies whether to enforce the daily_spend_limit on this outbound voice profile.
	DailySpendLimitEnabled OptBool                  `json:"daily_spend_limit_enabled"`
	CallRecording          OptOutboundCallRecording `json:"call_recording"`
	// The ID of the billing group associated with the outbound proflile. Defaults to null (for no group
	// assigned).
	BillingGroupID OptNilUUID `json:"billing_group_id"`
	// ISO 8601 formatted date-time indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date-time indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
}

Ref: #/components/schemas/OutboundVoiceProfile

func (*OutboundVoiceProfile) Decode

func (s *OutboundVoiceProfile) Decode(d *jx.Decoder) error

Decode decodes OutboundVoiceProfile from json.

func (*OutboundVoiceProfile) Encode

func (s *OutboundVoiceProfile) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OutboundVoiceProfile) GetBillingGroupID

func (s *OutboundVoiceProfile) GetBillingGroupID() OptNilUUID

GetBillingGroupID returns the value of BillingGroupID.

func (*OutboundVoiceProfile) GetCallRecording

func (s *OutboundVoiceProfile) GetCallRecording() OptOutboundCallRecording

GetCallRecording returns the value of CallRecording.

func (*OutboundVoiceProfile) GetConcurrentCallLimit

func (s *OutboundVoiceProfile) GetConcurrentCallLimit() OptNilInt

GetConcurrentCallLimit returns the value of ConcurrentCallLimit.

func (*OutboundVoiceProfile) GetConnectionsCount

func (s *OutboundVoiceProfile) GetConnectionsCount() OptInt

GetConnectionsCount returns the value of ConnectionsCount.

func (*OutboundVoiceProfile) GetCreatedAt

func (s *OutboundVoiceProfile) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*OutboundVoiceProfile) GetDailySpendLimit

func (s *OutboundVoiceProfile) GetDailySpendLimit() OptString

GetDailySpendLimit returns the value of DailySpendLimit.

func (*OutboundVoiceProfile) GetDailySpendLimitEnabled

func (s *OutboundVoiceProfile) GetDailySpendLimitEnabled() OptBool

GetDailySpendLimitEnabled returns the value of DailySpendLimitEnabled.

func (*OutboundVoiceProfile) GetEnabled

func (s *OutboundVoiceProfile) GetEnabled() OptBool

GetEnabled returns the value of Enabled.

func (*OutboundVoiceProfile) GetID

GetID returns the value of ID.

func (*OutboundVoiceProfile) GetMaxDestinationRate

func (s *OutboundVoiceProfile) GetMaxDestinationRate() OptFloat64

GetMaxDestinationRate returns the value of MaxDestinationRate.

func (*OutboundVoiceProfile) GetName

func (s *OutboundVoiceProfile) GetName() string

GetName returns the value of Name.

func (*OutboundVoiceProfile) GetRecordType

func (s *OutboundVoiceProfile) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*OutboundVoiceProfile) GetServicePlan

func (s *OutboundVoiceProfile) GetServicePlan() OptServicePlan

GetServicePlan returns the value of ServicePlan.

func (*OutboundVoiceProfile) GetTags

func (s *OutboundVoiceProfile) GetTags() []string

GetTags returns the value of Tags.

func (*OutboundVoiceProfile) GetTrafficType

func (s *OutboundVoiceProfile) GetTrafficType() OptTrafficType

GetTrafficType returns the value of TrafficType.

func (*OutboundVoiceProfile) GetUpdatedAt

func (s *OutboundVoiceProfile) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*OutboundVoiceProfile) GetUsagePaymentMethod

func (s *OutboundVoiceProfile) GetUsagePaymentMethod() OptUsagePaymentMethod

GetUsagePaymentMethod returns the value of UsagePaymentMethod.

func (*OutboundVoiceProfile) GetWhitelistedDestinations

func (s *OutboundVoiceProfile) GetWhitelistedDestinations() []string

GetWhitelistedDestinations returns the value of WhitelistedDestinations.

func (*OutboundVoiceProfile) MarshalJSON

func (s *OutboundVoiceProfile) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OutboundVoiceProfile) SetBillingGroupID

func (s *OutboundVoiceProfile) SetBillingGroupID(val OptNilUUID)

SetBillingGroupID sets the value of BillingGroupID.

func (*OutboundVoiceProfile) SetCallRecording

func (s *OutboundVoiceProfile) SetCallRecording(val OptOutboundCallRecording)

SetCallRecording sets the value of CallRecording.

func (*OutboundVoiceProfile) SetConcurrentCallLimit

func (s *OutboundVoiceProfile) SetConcurrentCallLimit(val OptNilInt)

SetConcurrentCallLimit sets the value of ConcurrentCallLimit.

func (*OutboundVoiceProfile) SetConnectionsCount

func (s *OutboundVoiceProfile) SetConnectionsCount(val OptInt)

SetConnectionsCount sets the value of ConnectionsCount.

func (*OutboundVoiceProfile) SetCreatedAt

func (s *OutboundVoiceProfile) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*OutboundVoiceProfile) SetDailySpendLimit

func (s *OutboundVoiceProfile) SetDailySpendLimit(val OptString)

SetDailySpendLimit sets the value of DailySpendLimit.

func (*OutboundVoiceProfile) SetDailySpendLimitEnabled

func (s *OutboundVoiceProfile) SetDailySpendLimitEnabled(val OptBool)

SetDailySpendLimitEnabled sets the value of DailySpendLimitEnabled.

func (*OutboundVoiceProfile) SetEnabled

func (s *OutboundVoiceProfile) SetEnabled(val OptBool)

SetEnabled sets the value of Enabled.

func (*OutboundVoiceProfile) SetID

func (s *OutboundVoiceProfile) SetID(val OptStringInt64)

SetID sets the value of ID.

func (*OutboundVoiceProfile) SetMaxDestinationRate

func (s *OutboundVoiceProfile) SetMaxDestinationRate(val OptFloat64)

SetMaxDestinationRate sets the value of MaxDestinationRate.

func (*OutboundVoiceProfile) SetName

func (s *OutboundVoiceProfile) SetName(val string)

SetName sets the value of Name.

func (*OutboundVoiceProfile) SetRecordType

func (s *OutboundVoiceProfile) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*OutboundVoiceProfile) SetServicePlan

func (s *OutboundVoiceProfile) SetServicePlan(val OptServicePlan)

SetServicePlan sets the value of ServicePlan.

func (*OutboundVoiceProfile) SetTags

func (s *OutboundVoiceProfile) SetTags(val []string)

SetTags sets the value of Tags.

func (*OutboundVoiceProfile) SetTrafficType

func (s *OutboundVoiceProfile) SetTrafficType(val OptTrafficType)

SetTrafficType sets the value of TrafficType.

func (*OutboundVoiceProfile) SetUpdatedAt

func (s *OutboundVoiceProfile) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*OutboundVoiceProfile) SetUsagePaymentMethod

func (s *OutboundVoiceProfile) SetUsagePaymentMethod(val OptUsagePaymentMethod)

SetUsagePaymentMethod sets the value of UsagePaymentMethod.

func (*OutboundVoiceProfile) SetWhitelistedDestinations

func (s *OutboundVoiceProfile) SetWhitelistedDestinations(val []string)

SetWhitelistedDestinations sets the value of WhitelistedDestinations.

func (*OutboundVoiceProfile) UnmarshalJSON

func (s *OutboundVoiceProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundVoiceProfile) Validate

func (s *OutboundVoiceProfile) Validate() error

type OutboundVoiceProfileId

type OutboundVoiceProfileId int64

func (*OutboundVoiceProfileId) Decode

func (s *OutboundVoiceProfileId) Decode(d *jx.Decoder) error

Decode decodes OutboundVoiceProfileId from json.

func (OutboundVoiceProfileId) Encode

func (s OutboundVoiceProfileId) Encode(e *jx.Encoder)

Encode encodes OutboundVoiceProfileId as json.

func (OutboundVoiceProfileId) MarshalJSON

func (s OutboundVoiceProfileId) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OutboundVoiceProfileId) UnmarshalJSON

func (s *OutboundVoiceProfileId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OutboundVoiceProfileResponse

type OutboundVoiceProfileResponse struct {
	Data OptOutboundVoiceProfile `json:"data"`
}

func (*OutboundVoiceProfileResponse) Decode

Decode decodes OutboundVoiceProfileResponse from json.

func (*OutboundVoiceProfileResponse) Encode

func (s *OutboundVoiceProfileResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OutboundVoiceProfileResponse) GetData

GetData returns the value of Data.

func (*OutboundVoiceProfileResponse) MarshalJSON

func (s *OutboundVoiceProfileResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OutboundVoiceProfileResponse) SetData

SetData sets the value of Data.

func (*OutboundVoiceProfileResponse) UnmarshalJSON

func (s *OutboundVoiceProfileResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OutboundVoiceProfileResponse) Validate

func (s *OutboundVoiceProfileResponse) Validate() error

type PWGAssignedResourcesSummary

type PWGAssignedResourcesSummary struct {
	// The type of the resource assigned to the Private Wireless Gateway.
	RecordType OptString `json:"record_type"`
	// The current count of a resource type assigned to the Private Wireless Gateway.
	Count OptInt `json:"count"`
}

The summary of the resource that have been assigned to the Private Wireless Gateway. Ref: #/components/schemas/PWGAssignedResourcesSummary

func (*PWGAssignedResourcesSummary) Decode

Decode decodes PWGAssignedResourcesSummary from json.

func (*PWGAssignedResourcesSummary) Encode

func (s *PWGAssignedResourcesSummary) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PWGAssignedResourcesSummary) GetCount

func (s *PWGAssignedResourcesSummary) GetCount() OptInt

GetCount returns the value of Count.

func (*PWGAssignedResourcesSummary) GetRecordType

func (s *PWGAssignedResourcesSummary) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PWGAssignedResourcesSummary) MarshalJSON

func (s *PWGAssignedResourcesSummary) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PWGAssignedResourcesSummary) SetCount

func (s *PWGAssignedResourcesSummary) SetCount(val OptInt)

SetCount sets the value of Count.

func (*PWGAssignedResourcesSummary) SetRecordType

func (s *PWGAssignedResourcesSummary) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PWGAssignedResourcesSummary) UnmarshalJSON

func (s *PWGAssignedResourcesSummary) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaginationMeta

type PaginationMeta struct {
	TotalPages   OptInt `json:"total_pages"`
	TotalResults OptInt `json:"total_results"`
	PageNumber   OptInt `json:"page_number"`
	PageSize     OptInt `json:"page_size"`
}

Ref: #/components/schemas/PaginationMeta

func (*PaginationMeta) Decode

func (s *PaginationMeta) Decode(d *jx.Decoder) error

Decode decodes PaginationMeta from json.

func (*PaginationMeta) Encode

func (s *PaginationMeta) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PaginationMeta) GetPageNumber

func (s *PaginationMeta) GetPageNumber() OptInt

GetPageNumber returns the value of PageNumber.

func (*PaginationMeta) GetPageSize

func (s *PaginationMeta) GetPageSize() OptInt

GetPageSize returns the value of PageSize.

func (*PaginationMeta) GetTotalPages

func (s *PaginationMeta) GetTotalPages() OptInt

GetTotalPages returns the value of TotalPages.

func (*PaginationMeta) GetTotalResults

func (s *PaginationMeta) GetTotalResults() OptInt

GetTotalResults returns the value of TotalResults.

func (*PaginationMeta) MarshalJSON

func (s *PaginationMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaginationMeta) SetPageNumber

func (s *PaginationMeta) SetPageNumber(val OptInt)

SetPageNumber sets the value of PageNumber.

func (*PaginationMeta) SetPageSize

func (s *PaginationMeta) SetPageSize(val OptInt)

SetPageSize sets the value of PageSize.

func (*PaginationMeta) SetTotalPages

func (s *PaginationMeta) SetTotalPages(val OptInt)

SetTotalPages sets the value of TotalPages.

func (*PaginationMeta) SetTotalResults

func (s *PaginationMeta) SetTotalResults(val OptInt)

SetTotalResults sets the value of TotalResults.

func (*PaginationMeta) UnmarshalJSON

func (s *PaginationMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaginationMetaSimple

type PaginationMetaSimple struct {
	PageNumber   OptInt `json:"page_number"`
	PageSize     OptInt `json:"page_size"`
	TotalPages   OptInt `json:"total_pages"`
	TotalResults OptInt `json:"total_results"`
}

Ref: #/components/schemas/PaginationMetaSimple

func (*PaginationMetaSimple) Decode

func (s *PaginationMetaSimple) Decode(d *jx.Decoder) error

Decode decodes PaginationMetaSimple from json.

func (*PaginationMetaSimple) Encode

func (s *PaginationMetaSimple) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PaginationMetaSimple) GetPageNumber

func (s *PaginationMetaSimple) GetPageNumber() OptInt

GetPageNumber returns the value of PageNumber.

func (*PaginationMetaSimple) GetPageSize

func (s *PaginationMetaSimple) GetPageSize() OptInt

GetPageSize returns the value of PageSize.

func (*PaginationMetaSimple) GetTotalPages

func (s *PaginationMetaSimple) GetTotalPages() OptInt

GetTotalPages returns the value of TotalPages.

func (*PaginationMetaSimple) GetTotalResults

func (s *PaginationMetaSimple) GetTotalResults() OptInt

GetTotalResults returns the value of TotalResults.

func (*PaginationMetaSimple) MarshalJSON

func (s *PaginationMetaSimple) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaginationMetaSimple) SetPageNumber

func (s *PaginationMetaSimple) SetPageNumber(val OptInt)

SetPageNumber sets the value of PageNumber.

func (*PaginationMetaSimple) SetPageSize

func (s *PaginationMetaSimple) SetPageSize(val OptInt)

SetPageSize sets the value of PageSize.

func (*PaginationMetaSimple) SetTotalPages

func (s *PaginationMetaSimple) SetTotalPages(val OptInt)

SetTotalPages sets the value of TotalPages.

func (*PaginationMetaSimple) SetTotalResults

func (s *PaginationMetaSimple) SetTotalResults(val OptInt)

SetTotalResults sets the value of TotalResults.

func (*PaginationMetaSimple) UnmarshalJSON

func (s *PaginationMetaSimple) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ParticipantResource

type ParticipantResource struct {
	// The id of the account the resource belongs to.
	AccountSid OptString `json:"account_sid"`
	// The version of the API that was used to make the request.
	APIVersion OptString `json:"api_version"`
	// The identifier of this participant's call.
	CallSid OptString `json:"call_sid"`
	// The identifier of this participant's call.
	CallSidLegacy OptString `json:"call_sid_legacy"`
	// Whether the participant is coaching another call.
	Coaching OptBool `json:"coaching"`
	// The identifier of the coached participant's call.
	CoachingCallSid OptString `json:"coaching_call_sid"`
	// The identifier of the coached participant's call.
	CoachingCallSidLegacy OptString `json:"coaching_call_sid_legacy"`
	// The timestamp of when the resource was created.
	DateCreated OptString `json:"date_created"`
	// The timestamp of when the resource was last updated.
	DateUpdated OptString `json:"date_updated"`
	// Whether the conference ends when the participant leaves.
	EndConferenceOnExit OptBool `json:"end_conference_on_exit"`
	// Whether the participant is on hold.
	Hold OptBool `json:"hold"`
	// Whether the participant is muted.
	Muted OptBool `json:"muted"`
	// The status of the participant's call in the conference.
	Status OptParticipantResourceStatus `json:"status"`
	// The relative URI for this participant.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/ParticipantResource

func (*ParticipantResource) Decode

func (s *ParticipantResource) Decode(d *jx.Decoder) error

Decode decodes ParticipantResource from json.

func (*ParticipantResource) Encode

func (s *ParticipantResource) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ParticipantResource) GetAPIVersion

func (s *ParticipantResource) GetAPIVersion() OptString

GetAPIVersion returns the value of APIVersion.

func (*ParticipantResource) GetAccountSid

func (s *ParticipantResource) GetAccountSid() OptString

GetAccountSid returns the value of AccountSid.

func (*ParticipantResource) GetCallSid

func (s *ParticipantResource) GetCallSid() OptString

GetCallSid returns the value of CallSid.

func (*ParticipantResource) GetCallSidLegacy

func (s *ParticipantResource) GetCallSidLegacy() OptString

GetCallSidLegacy returns the value of CallSidLegacy.

func (*ParticipantResource) GetCoaching

func (s *ParticipantResource) GetCoaching() OptBool

GetCoaching returns the value of Coaching.

func (*ParticipantResource) GetCoachingCallSid

func (s *ParticipantResource) GetCoachingCallSid() OptString

GetCoachingCallSid returns the value of CoachingCallSid.

func (*ParticipantResource) GetCoachingCallSidLegacy

func (s *ParticipantResource) GetCoachingCallSidLegacy() OptString

GetCoachingCallSidLegacy returns the value of CoachingCallSidLegacy.

func (*ParticipantResource) GetDateCreated

func (s *ParticipantResource) GetDateCreated() OptString

GetDateCreated returns the value of DateCreated.

func (*ParticipantResource) GetDateUpdated

func (s *ParticipantResource) GetDateUpdated() OptString

GetDateUpdated returns the value of DateUpdated.

func (*ParticipantResource) GetEndConferenceOnExit

func (s *ParticipantResource) GetEndConferenceOnExit() OptBool

GetEndConferenceOnExit returns the value of EndConferenceOnExit.

func (*ParticipantResource) GetHold

func (s *ParticipantResource) GetHold() OptBool

GetHold returns the value of Hold.

func (*ParticipantResource) GetMuted

func (s *ParticipantResource) GetMuted() OptBool

GetMuted returns the value of Muted.

func (*ParticipantResource) GetStatus

GetStatus returns the value of Status.

func (*ParticipantResource) GetURI

func (s *ParticipantResource) GetURI() OptString

GetURI returns the value of URI.

func (*ParticipantResource) MarshalJSON

func (s *ParticipantResource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ParticipantResource) SetAPIVersion

func (s *ParticipantResource) SetAPIVersion(val OptString)

SetAPIVersion sets the value of APIVersion.

func (*ParticipantResource) SetAccountSid

func (s *ParticipantResource) SetAccountSid(val OptString)

SetAccountSid sets the value of AccountSid.

func (*ParticipantResource) SetCallSid

func (s *ParticipantResource) SetCallSid(val OptString)

SetCallSid sets the value of CallSid.

func (*ParticipantResource) SetCallSidLegacy

func (s *ParticipantResource) SetCallSidLegacy(val OptString)

SetCallSidLegacy sets the value of CallSidLegacy.

func (*ParticipantResource) SetCoaching

func (s *ParticipantResource) SetCoaching(val OptBool)

SetCoaching sets the value of Coaching.

func (*ParticipantResource) SetCoachingCallSid

func (s *ParticipantResource) SetCoachingCallSid(val OptString)

SetCoachingCallSid sets the value of CoachingCallSid.

func (*ParticipantResource) SetCoachingCallSidLegacy

func (s *ParticipantResource) SetCoachingCallSidLegacy(val OptString)

SetCoachingCallSidLegacy sets the value of CoachingCallSidLegacy.

func (*ParticipantResource) SetDateCreated

func (s *ParticipantResource) SetDateCreated(val OptString)

SetDateCreated sets the value of DateCreated.

func (*ParticipantResource) SetDateUpdated

func (s *ParticipantResource) SetDateUpdated(val OptString)

SetDateUpdated sets the value of DateUpdated.

func (*ParticipantResource) SetEndConferenceOnExit

func (s *ParticipantResource) SetEndConferenceOnExit(val OptBool)

SetEndConferenceOnExit sets the value of EndConferenceOnExit.

func (*ParticipantResource) SetHold

func (s *ParticipantResource) SetHold(val OptBool)

SetHold sets the value of Hold.

func (*ParticipantResource) SetMuted

func (s *ParticipantResource) SetMuted(val OptBool)

SetMuted sets the value of Muted.

func (*ParticipantResource) SetStatus

SetStatus sets the value of Status.

func (*ParticipantResource) SetURI

func (s *ParticipantResource) SetURI(val OptString)

SetURI sets the value of URI.

func (*ParticipantResource) UnmarshalJSON

func (s *ParticipantResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ParticipantResource) Validate

func (s *ParticipantResource) Validate() error

type ParticipantResourceIndex

type ParticipantResourceIndex struct {
	Participants []ParticipantResource `json:"participants"`
	// The number of the last element on the page, zero-indexed.
	End OptInt `json:"end"`
	// /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Conferences/6dc6cc1a-1ba1-4351-86b8-4c22c95cd98f/Participants.json?page=0&pagesize=20.
	FirstPageURI OptString `json:"first_page_uri"`
	// /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Conferences/6dc6cc1a-1ba1-4351-86b8-4c22c95cd98f/Participants.json?Page=1&PageSize=1&PageToken=MTY4AjgyNDkwNzIxMQ.
	NextPageURI OptString `json:"next_page_uri"`
	// Current page number, zero-indexed.
	Page OptInt `json:"page"`
	// The number of items on the page.
	PageSize OptInt `json:"page_size"`
	// The number of the first element on the page, zero-indexed.
	Start OptInt `json:"start"`
	// The URI of the current page.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/ParticipantResourceIndex

func (*ParticipantResourceIndex) Decode

func (s *ParticipantResourceIndex) Decode(d *jx.Decoder) error

Decode decodes ParticipantResourceIndex from json.

func (*ParticipantResourceIndex) Encode

func (s *ParticipantResourceIndex) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ParticipantResourceIndex) GetEnd

func (s *ParticipantResourceIndex) GetEnd() OptInt

GetEnd returns the value of End.

func (*ParticipantResourceIndex) GetFirstPageURI

func (s *ParticipantResourceIndex) GetFirstPageURI() OptString

GetFirstPageURI returns the value of FirstPageURI.

func (*ParticipantResourceIndex) GetNextPageURI

func (s *ParticipantResourceIndex) GetNextPageURI() OptString

GetNextPageURI returns the value of NextPageURI.

func (*ParticipantResourceIndex) GetPage

func (s *ParticipantResourceIndex) GetPage() OptInt

GetPage returns the value of Page.

func (*ParticipantResourceIndex) GetPageSize

func (s *ParticipantResourceIndex) GetPageSize() OptInt

GetPageSize returns the value of PageSize.

func (*ParticipantResourceIndex) GetParticipants

func (s *ParticipantResourceIndex) GetParticipants() []ParticipantResource

GetParticipants returns the value of Participants.

func (*ParticipantResourceIndex) GetStart

func (s *ParticipantResourceIndex) GetStart() OptInt

GetStart returns the value of Start.

func (*ParticipantResourceIndex) GetURI

func (s *ParticipantResourceIndex) GetURI() OptString

GetURI returns the value of URI.

func (*ParticipantResourceIndex) MarshalJSON

func (s *ParticipantResourceIndex) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ParticipantResourceIndex) SetEnd

func (s *ParticipantResourceIndex) SetEnd(val OptInt)

SetEnd sets the value of End.

func (*ParticipantResourceIndex) SetFirstPageURI

func (s *ParticipantResourceIndex) SetFirstPageURI(val OptString)

SetFirstPageURI sets the value of FirstPageURI.

func (*ParticipantResourceIndex) SetNextPageURI

func (s *ParticipantResourceIndex) SetNextPageURI(val OptString)

SetNextPageURI sets the value of NextPageURI.

func (*ParticipantResourceIndex) SetPage

func (s *ParticipantResourceIndex) SetPage(val OptInt)

SetPage sets the value of Page.

func (*ParticipantResourceIndex) SetPageSize

func (s *ParticipantResourceIndex) SetPageSize(val OptInt)

SetPageSize sets the value of PageSize.

func (*ParticipantResourceIndex) SetParticipants

func (s *ParticipantResourceIndex) SetParticipants(val []ParticipantResource)

SetParticipants sets the value of Participants.

func (*ParticipantResourceIndex) SetStart

func (s *ParticipantResourceIndex) SetStart(val OptInt)

SetStart sets the value of Start.

func (*ParticipantResourceIndex) SetURI

func (s *ParticipantResourceIndex) SetURI(val OptString)

SetURI sets the value of URI.

func (*ParticipantResourceIndex) UnmarshalJSON

func (s *ParticipantResourceIndex) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ParticipantResourceIndex) Validate

func (s *ParticipantResourceIndex) Validate() error

type ParticipantResourceStatus

type ParticipantResourceStatus string

The status of the participant's call in the conference.

const (
	ParticipantResourceStatusConnecting ParticipantResourceStatus = "connecting"
	ParticipantResourceStatusConnected  ParticipantResourceStatus = "connected"
	ParticipantResourceStatusCompleted  ParticipantResourceStatus = "completed"
)

func (ParticipantResourceStatus) AllValues

AllValues returns all ParticipantResourceStatus values.

func (*ParticipantResourceStatus) Decode

func (s *ParticipantResourceStatus) Decode(d *jx.Decoder) error

Decode decodes ParticipantResourceStatus from json.

func (ParticipantResourceStatus) Encode

func (s ParticipantResourceStatus) Encode(e *jx.Encoder)

Encode encodes ParticipantResourceStatus as json.

func (ParticipantResourceStatus) MarshalJSON

func (s ParticipantResourceStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ParticipantResourceStatus) MarshalText

func (s ParticipantResourceStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ParticipantResourceStatus) UnmarshalJSON

func (s *ParticipantResourceStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ParticipantResourceStatus) UnmarshalText

func (s *ParticipantResourceStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ParticipantResourceStatus) Validate

func (s ParticipantResourceStatus) Validate() error

type PauseCallRecordingParams

type PauseCallRecordingParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

PauseCallRecordingParams is parameters of PauseCallRecording operation.

type PauseCallRecordingRes

type PauseCallRecordingRes interface {
	// contains filtered or unexported methods
}

type PauseRecordingRequest

type PauseRecordingRequest struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/PauseRecordingRequest

func (*PauseRecordingRequest) Decode

func (s *PauseRecordingRequest) Decode(d *jx.Decoder) error

Decode decodes PauseRecordingRequest from json.

func (*PauseRecordingRequest) Encode

func (s *PauseRecordingRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PauseRecordingRequest) GetClientState

func (s *PauseRecordingRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*PauseRecordingRequest) GetCommandID

func (s *PauseRecordingRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*PauseRecordingRequest) MarshalJSON

func (s *PauseRecordingRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PauseRecordingRequest) SetClientState

func (s *PauseRecordingRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*PauseRecordingRequest) SetCommandID

func (s *PauseRecordingRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*PauseRecordingRequest) UnmarshalJSON

func (s *PauseRecordingRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PerformCredentialActionAction

type PerformCredentialActionAction string
const (
	PerformCredentialActionActionActivate   PerformCredentialActionAction = "activate"
	PerformCredentialActionActionDeactivate PerformCredentialActionAction = "deactivate"
)

func (PerformCredentialActionAction) AllValues

AllValues returns all PerformCredentialActionAction values.

func (PerformCredentialActionAction) MarshalText

func (s PerformCredentialActionAction) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PerformCredentialActionAction) UnmarshalText

func (s *PerformCredentialActionAction) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PerformCredentialActionAction) Validate

func (s PerformCredentialActionAction) Validate() error

type PerformCredentialActionBadRequest

type PerformCredentialActionBadRequest struct{}

PerformCredentialActionBadRequest is response for PerformCredentialAction operation.

type PerformCredentialActionNotFound

type PerformCredentialActionNotFound struct{}

PerformCredentialActionNotFound is response for PerformCredentialAction operation.

type PerformCredentialActionParams

type PerformCredentialActionParams struct {
	// Identifies the resource.
	ID string
	// Identifies the action to be taken.
	Action PerformCredentialActionAction
}

PerformCredentialActionParams is parameters of PerformCredentialAction operation.

type PerformCredentialActionRes

type PerformCredentialActionRes interface {
	// contains filtered or unexported methods
}

type PerformCredentialActionUnauthorized

type PerformCredentialActionUnauthorized struct{}

PerformCredentialActionUnauthorized is response for PerformCredentialAction operation.

type PhoneNumberDeletedDetailed

type PhoneNumberDeletedDetailed struct {
	ID OptIntId `json:"id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// The +E.164-formatted phone number associated with this record.
	PhoneNumber OptString `json:"phone_number"`
	// The phone number's current status.
	Status OptPhoneNumberDeletedDetailedStatus `json:"status"`
	// A list of user-assigned tags to help manage the phone number.
	Tags []string `json:"tags"`
	// If someone attempts to port your phone number away from Telnyx and your phone number has an
	// external PIN set, Telnyx will attempt to verify that you provided the correct external PIN to the
	// winning carrier. Note that not all carriers cooperate with this security mechanism.
	ExternalPin OptString `json:"external_pin"`
	// The user-assigned name of the connection to be associated with this phone number.
	ConnectionName OptString `json:"connection_name"`
	// Identifies the connection associated with the phone number.
	ConnectionID OptString `json:"connection_id"`
	// A customer reference string for customer look ups.
	CustomerReference OptString `json:"customer_reference"`
	// Identifies the messaging profile associated with the phone number.
	MessagingProfileID OptString `json:"messaging_profile_id"`
	// The name of the messaging profile associated with the phone number.
	MessagingProfileName OptString `json:"messaging_profile_name"`
	// Identifies the billing group associated with the phone number.
	BillingGroupID OptString `json:"billing_group_id"`
	// Indicates whether emergency services are enabled for this number.
	EmergencyEnabled OptBool `json:"emergency_enabled"`
	// Identifies the emergency address associated with the phone number.
	EmergencyAddressID OptStringInt64 `json:"emergency_address_id"`
	// Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type
	// are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints.
	CallForwardingEnabled OptBool `json:"call_forwarding_enabled"`
	// Indicates whether a CNAM listing is enabled for this number.
	CnamListingEnabled OptBool `json:"cnam_listing_enabled"`
	// Indicates whether caller ID is enabled for this number.
	CallerIDNameEnabled OptBool `json:"caller_id_name_enabled"`
	// Indicates whether call recording is enabled for this number.
	CallRecordingEnabled OptBool `json:"call_recording_enabled"`
	// Indicates whether T38 Fax Gateway for inbound calls to this number.
	T38FaxGatewayEnabled OptBool `json:"t38_fax_gateway_enabled"`
	// ISO 8601 formatted date indicating the time the request was made to purchase the number.
	PurchasedAt OptString `json:"purchased_at"`
	// ISO 8601 formatted date indicating when the time it took to activate after the purchase.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
	// Deprecated field, the only value for this is 'disabled'. All routing for numbers should be
	// configured via connection settings.
	NumberLevelRouting OptPhoneNumberDeletedDetailedNumberLevelRouting `json:"number_level_routing"`
	// The phone number's type.
	PhoneNumberType OptPhoneNumberDeletedDetailedPhoneNumberType `json:"phone_number_type"`
}

Ref: #/components/schemas/PhoneNumberDeletedDetailed

func (*PhoneNumberDeletedDetailed) Decode

Decode decodes PhoneNumberDeletedDetailed from json.

func (*PhoneNumberDeletedDetailed) Encode

func (s *PhoneNumberDeletedDetailed) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PhoneNumberDeletedDetailed) GetBillingGroupID

func (s *PhoneNumberDeletedDetailed) GetBillingGroupID() OptString

GetBillingGroupID returns the value of BillingGroupID.

func (*PhoneNumberDeletedDetailed) GetCallForwardingEnabled

func (s *PhoneNumberDeletedDetailed) GetCallForwardingEnabled() OptBool

GetCallForwardingEnabled returns the value of CallForwardingEnabled.

func (*PhoneNumberDeletedDetailed) GetCallRecordingEnabled

func (s *PhoneNumberDeletedDetailed) GetCallRecordingEnabled() OptBool

GetCallRecordingEnabled returns the value of CallRecordingEnabled.

func (*PhoneNumberDeletedDetailed) GetCallerIDNameEnabled

func (s *PhoneNumberDeletedDetailed) GetCallerIDNameEnabled() OptBool

GetCallerIDNameEnabled returns the value of CallerIDNameEnabled.

func (*PhoneNumberDeletedDetailed) GetCnamListingEnabled

func (s *PhoneNumberDeletedDetailed) GetCnamListingEnabled() OptBool

GetCnamListingEnabled returns the value of CnamListingEnabled.

func (*PhoneNumberDeletedDetailed) GetConnectionID

func (s *PhoneNumberDeletedDetailed) GetConnectionID() OptString

GetConnectionID returns the value of ConnectionID.

func (*PhoneNumberDeletedDetailed) GetConnectionName

func (s *PhoneNumberDeletedDetailed) GetConnectionName() OptString

GetConnectionName returns the value of ConnectionName.

func (*PhoneNumberDeletedDetailed) GetCreatedAt

func (s *PhoneNumberDeletedDetailed) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*PhoneNumberDeletedDetailed) GetCustomerReference

func (s *PhoneNumberDeletedDetailed) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*PhoneNumberDeletedDetailed) GetEmergencyAddressID

func (s *PhoneNumberDeletedDetailed) GetEmergencyAddressID() OptStringInt64

GetEmergencyAddressID returns the value of EmergencyAddressID.

func (*PhoneNumberDeletedDetailed) GetEmergencyEnabled

func (s *PhoneNumberDeletedDetailed) GetEmergencyEnabled() OptBool

GetEmergencyEnabled returns the value of EmergencyEnabled.

func (*PhoneNumberDeletedDetailed) GetExternalPin

func (s *PhoneNumberDeletedDetailed) GetExternalPin() OptString

GetExternalPin returns the value of ExternalPin.

func (*PhoneNumberDeletedDetailed) GetID

GetID returns the value of ID.

func (*PhoneNumberDeletedDetailed) GetMessagingProfileID

func (s *PhoneNumberDeletedDetailed) GetMessagingProfileID() OptString

GetMessagingProfileID returns the value of MessagingProfileID.

func (*PhoneNumberDeletedDetailed) GetMessagingProfileName

func (s *PhoneNumberDeletedDetailed) GetMessagingProfileName() OptString

GetMessagingProfileName returns the value of MessagingProfileName.

func (*PhoneNumberDeletedDetailed) GetNumberLevelRouting

GetNumberLevelRouting returns the value of NumberLevelRouting.

func (*PhoneNumberDeletedDetailed) GetPhoneNumber

func (s *PhoneNumberDeletedDetailed) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PhoneNumberDeletedDetailed) GetPhoneNumberType

GetPhoneNumberType returns the value of PhoneNumberType.

func (*PhoneNumberDeletedDetailed) GetPurchasedAt

func (s *PhoneNumberDeletedDetailed) GetPurchasedAt() OptString

GetPurchasedAt returns the value of PurchasedAt.

func (*PhoneNumberDeletedDetailed) GetRecordType

func (s *PhoneNumberDeletedDetailed) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PhoneNumberDeletedDetailed) GetStatus

GetStatus returns the value of Status.

func (*PhoneNumberDeletedDetailed) GetT38FaxGatewayEnabled

func (s *PhoneNumberDeletedDetailed) GetT38FaxGatewayEnabled() OptBool

GetT38FaxGatewayEnabled returns the value of T38FaxGatewayEnabled.

func (*PhoneNumberDeletedDetailed) GetTags

func (s *PhoneNumberDeletedDetailed) GetTags() []string

GetTags returns the value of Tags.

func (*PhoneNumberDeletedDetailed) GetUpdatedAt

func (s *PhoneNumberDeletedDetailed) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*PhoneNumberDeletedDetailed) MarshalJSON

func (s *PhoneNumberDeletedDetailed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumberDeletedDetailed) SetBillingGroupID

func (s *PhoneNumberDeletedDetailed) SetBillingGroupID(val OptString)

SetBillingGroupID sets the value of BillingGroupID.

func (*PhoneNumberDeletedDetailed) SetCallForwardingEnabled

func (s *PhoneNumberDeletedDetailed) SetCallForwardingEnabled(val OptBool)

SetCallForwardingEnabled sets the value of CallForwardingEnabled.

func (*PhoneNumberDeletedDetailed) SetCallRecordingEnabled

func (s *PhoneNumberDeletedDetailed) SetCallRecordingEnabled(val OptBool)

SetCallRecordingEnabled sets the value of CallRecordingEnabled.

func (*PhoneNumberDeletedDetailed) SetCallerIDNameEnabled

func (s *PhoneNumberDeletedDetailed) SetCallerIDNameEnabled(val OptBool)

SetCallerIDNameEnabled sets the value of CallerIDNameEnabled.

func (*PhoneNumberDeletedDetailed) SetCnamListingEnabled

func (s *PhoneNumberDeletedDetailed) SetCnamListingEnabled(val OptBool)

SetCnamListingEnabled sets the value of CnamListingEnabled.

func (*PhoneNumberDeletedDetailed) SetConnectionID

func (s *PhoneNumberDeletedDetailed) SetConnectionID(val OptString)

SetConnectionID sets the value of ConnectionID.

func (*PhoneNumberDeletedDetailed) SetConnectionName

func (s *PhoneNumberDeletedDetailed) SetConnectionName(val OptString)

SetConnectionName sets the value of ConnectionName.

func (*PhoneNumberDeletedDetailed) SetCreatedAt

func (s *PhoneNumberDeletedDetailed) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*PhoneNumberDeletedDetailed) SetCustomerReference

func (s *PhoneNumberDeletedDetailed) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*PhoneNumberDeletedDetailed) SetEmergencyAddressID

func (s *PhoneNumberDeletedDetailed) SetEmergencyAddressID(val OptStringInt64)

SetEmergencyAddressID sets the value of EmergencyAddressID.

func (*PhoneNumberDeletedDetailed) SetEmergencyEnabled

func (s *PhoneNumberDeletedDetailed) SetEmergencyEnabled(val OptBool)

SetEmergencyEnabled sets the value of EmergencyEnabled.

func (*PhoneNumberDeletedDetailed) SetExternalPin

func (s *PhoneNumberDeletedDetailed) SetExternalPin(val OptString)

SetExternalPin sets the value of ExternalPin.

func (*PhoneNumberDeletedDetailed) SetID

func (s *PhoneNumberDeletedDetailed) SetID(val OptIntId)

SetID sets the value of ID.

func (*PhoneNumberDeletedDetailed) SetMessagingProfileID

func (s *PhoneNumberDeletedDetailed) SetMessagingProfileID(val OptString)

SetMessagingProfileID sets the value of MessagingProfileID.

func (*PhoneNumberDeletedDetailed) SetMessagingProfileName

func (s *PhoneNumberDeletedDetailed) SetMessagingProfileName(val OptString)

SetMessagingProfileName sets the value of MessagingProfileName.

func (*PhoneNumberDeletedDetailed) SetNumberLevelRouting

SetNumberLevelRouting sets the value of NumberLevelRouting.

func (*PhoneNumberDeletedDetailed) SetPhoneNumber

func (s *PhoneNumberDeletedDetailed) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PhoneNumberDeletedDetailed) SetPhoneNumberType

SetPhoneNumberType sets the value of PhoneNumberType.

func (*PhoneNumberDeletedDetailed) SetPurchasedAt

func (s *PhoneNumberDeletedDetailed) SetPurchasedAt(val OptString)

SetPurchasedAt sets the value of PurchasedAt.

func (*PhoneNumberDeletedDetailed) SetRecordType

func (s *PhoneNumberDeletedDetailed) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PhoneNumberDeletedDetailed) SetStatus

SetStatus sets the value of Status.

func (*PhoneNumberDeletedDetailed) SetT38FaxGatewayEnabled

func (s *PhoneNumberDeletedDetailed) SetT38FaxGatewayEnabled(val OptBool)

SetT38FaxGatewayEnabled sets the value of T38FaxGatewayEnabled.

func (*PhoneNumberDeletedDetailed) SetTags

func (s *PhoneNumberDeletedDetailed) SetTags(val []string)

SetTags sets the value of Tags.

func (*PhoneNumberDeletedDetailed) SetUpdatedAt

func (s *PhoneNumberDeletedDetailed) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*PhoneNumberDeletedDetailed) UnmarshalJSON

func (s *PhoneNumberDeletedDetailed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberDeletedDetailed) Validate

func (s *PhoneNumberDeletedDetailed) Validate() error

type PhoneNumberDeletedDetailedNumberLevelRouting

type PhoneNumberDeletedDetailedNumberLevelRouting string

Deprecated field, the only value for this is 'disabled'. All routing for numbers should be configured via connection settings.

const (
	PhoneNumberDeletedDetailedNumberLevelRoutingDisabled PhoneNumberDeletedDetailedNumberLevelRouting = "disabled"
)

func (PhoneNumberDeletedDetailedNumberLevelRouting) AllValues

AllValues returns all PhoneNumberDeletedDetailedNumberLevelRouting values.

func (*PhoneNumberDeletedDetailedNumberLevelRouting) Decode

Decode decodes PhoneNumberDeletedDetailedNumberLevelRouting from json.

func (PhoneNumberDeletedDetailedNumberLevelRouting) Encode

Encode encodes PhoneNumberDeletedDetailedNumberLevelRouting as json.

func (PhoneNumberDeletedDetailedNumberLevelRouting) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumberDeletedDetailedNumberLevelRouting) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumberDeletedDetailedNumberLevelRouting) UnmarshalJSON

func (s *PhoneNumberDeletedDetailedNumberLevelRouting) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberDeletedDetailedNumberLevelRouting) UnmarshalText

func (s *PhoneNumberDeletedDetailedNumberLevelRouting) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumberDeletedDetailedNumberLevelRouting) Validate

type PhoneNumberDeletedDetailedPhoneNumberType

type PhoneNumberDeletedDetailedPhoneNumberType string

The phone number's type.

const (
	PhoneNumberDeletedDetailedPhoneNumberTypeLocal      PhoneNumberDeletedDetailedPhoneNumberType = "local"
	PhoneNumberDeletedDetailedPhoneNumberTypeTollFree   PhoneNumberDeletedDetailedPhoneNumberType = "toll_free"
	PhoneNumberDeletedDetailedPhoneNumberTypeMobile     PhoneNumberDeletedDetailedPhoneNumberType = "mobile"
	PhoneNumberDeletedDetailedPhoneNumberTypeNational   PhoneNumberDeletedDetailedPhoneNumberType = "national"
	PhoneNumberDeletedDetailedPhoneNumberTypeSharedCost PhoneNumberDeletedDetailedPhoneNumberType = "shared_cost"
	PhoneNumberDeletedDetailedPhoneNumberTypeLandline   PhoneNumberDeletedDetailedPhoneNumberType = "landline"
)

func (PhoneNumberDeletedDetailedPhoneNumberType) AllValues

AllValues returns all PhoneNumberDeletedDetailedPhoneNumberType values.

func (*PhoneNumberDeletedDetailedPhoneNumberType) Decode

Decode decodes PhoneNumberDeletedDetailedPhoneNumberType from json.

func (PhoneNumberDeletedDetailedPhoneNumberType) Encode

Encode encodes PhoneNumberDeletedDetailedPhoneNumberType as json.

func (PhoneNumberDeletedDetailedPhoneNumberType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumberDeletedDetailedPhoneNumberType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumberDeletedDetailedPhoneNumberType) UnmarshalJSON

func (s *PhoneNumberDeletedDetailedPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberDeletedDetailedPhoneNumberType) UnmarshalText

func (s *PhoneNumberDeletedDetailedPhoneNumberType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumberDeletedDetailedPhoneNumberType) Validate

type PhoneNumberDeletedDetailedStatus

type PhoneNumberDeletedDetailedStatus string

The phone number's current status.

const (
	PhoneNumberDeletedDetailedStatusPurchasePending PhoneNumberDeletedDetailedStatus = "purchase-pending"
	PhoneNumberDeletedDetailedStatusPurchaseFailed  PhoneNumberDeletedDetailedStatus = "purchase-failed"
	PhoneNumberDeletedDetailedStatusPortPending     PhoneNumberDeletedDetailedStatus = "port-pending"
	PhoneNumberDeletedDetailedStatusPortFailed      PhoneNumberDeletedDetailedStatus = "port-failed"
	PhoneNumberDeletedDetailedStatusActive          PhoneNumberDeletedDetailedStatus = "active"
	PhoneNumberDeletedDetailedStatusDeleted         PhoneNumberDeletedDetailedStatus = "deleted"
	PhoneNumberDeletedDetailedStatusEmergencyOnly   PhoneNumberDeletedDetailedStatus = "emergency-only"
	PhoneNumberDeletedDetailedStatusPortedOut       PhoneNumberDeletedDetailedStatus = "ported-out"
	PhoneNumberDeletedDetailedStatusPortOutPending  PhoneNumberDeletedDetailedStatus = "port-out-pending"
)

func (PhoneNumberDeletedDetailedStatus) AllValues

AllValues returns all PhoneNumberDeletedDetailedStatus values.

func (*PhoneNumberDeletedDetailedStatus) Decode

Decode decodes PhoneNumberDeletedDetailedStatus from json.

func (PhoneNumberDeletedDetailedStatus) Encode

Encode encodes PhoneNumberDeletedDetailedStatus as json.

func (PhoneNumberDeletedDetailedStatus) MarshalJSON

func (s PhoneNumberDeletedDetailedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumberDeletedDetailedStatus) MarshalText

func (s PhoneNumberDeletedDetailedStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumberDeletedDetailedStatus) UnmarshalJSON

func (s *PhoneNumberDeletedDetailedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberDeletedDetailedStatus) UnmarshalText

func (s *PhoneNumberDeletedDetailedStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumberDeletedDetailedStatus) Validate

type PhoneNumberDetailed

type PhoneNumberDetailed struct {
	ID OptIntId `json:"id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// The +E.164-formatted phone number associated with this record.
	PhoneNumber OptString `json:"phone_number"`
	// The phone number's current status.
	Status OptPhoneNumberDetailedStatus `json:"status"`
	// A list of user-assigned tags to help manage the phone number.
	Tags []string `json:"tags"`
	// If someone attempts to port your phone number away from Telnyx and your phone number has an
	// external PIN set, Telnyx will attempt to verify that you provided the correct external PIN to the
	// winning carrier. Note that not all carriers cooperate with this security mechanism.
	ExternalPin OptString `json:"external_pin"`
	// The user-assigned name of the connection to be associated with this phone number.
	ConnectionName OptString `json:"connection_name"`
	// Identifies the connection associated with the phone number.
	ConnectionID OptString `json:"connection_id"`
	// A customer reference string for customer look ups.
	CustomerReference OptString `json:"customer_reference"`
	// Identifies the messaging profile associated with the phone number.
	MessagingProfileID OptString `json:"messaging_profile_id"`
	// The name of the messaging profile associated with the phone number.
	MessagingProfileName OptString `json:"messaging_profile_name"`
	// Identifies the billing group associated with the phone number.
	BillingGroupID OptString `json:"billing_group_id"`
	// Indicates whether emergency services are enabled for this number.
	EmergencyEnabled OptBool `json:"emergency_enabled"`
	// Identifies the emergency address associated with the phone number.
	EmergencyAddressID OptStringInt64 `json:"emergency_address_id"`
	// Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type
	// are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints.
	CallForwardingEnabled OptBool `json:"call_forwarding_enabled"`
	// Indicates whether a CNAM listing is enabled for this number.
	CnamListingEnabled OptBool `json:"cnam_listing_enabled"`
	// Indicates whether caller ID is enabled for this number.
	CallerIDNameEnabled OptBool `json:"caller_id_name_enabled"`
	// Indicates whether call recording is enabled for this number.
	CallRecordingEnabled OptBool `json:"call_recording_enabled"`
	// Indicates whether T38 Fax Gateway for inbound calls to this number.
	T38FaxGatewayEnabled OptBool `json:"t38_fax_gateway_enabled"`
	// ISO 8601 formatted date indicating when the resource was purchased.
	PurchasedAt OptString `json:"purchased_at"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// Deprecated field, the only value for this is 'disabled'. All routing for numbers should be
	// configured via connection settings.
	NumberLevelRouting OptPhoneNumberDetailedNumberLevelRouting `json:"number_level_routing"`
	// The phone number's type.
	// Note: For numbers purchased prior to July 2023 or when fetching a number's details immediately
	// after a purchase completes, the legacy values `tollfree`, `shortcode` or `longcode` may be
	// returned instead.
	PhoneNumberType OptPhoneNumberDetailedPhoneNumberType `json:"phone_number_type"`
	// The inbound_call_screening setting is a phone number configuration option variable that allows
	// users to configure their settings to block or flag fraudulent calls. It can be set to disabled,
	// reject_calls, or flag_calls. This feature has an additional per-number monthly cost associated
	// with it.
	InboundCallScreening OptPhoneNumberDetailedInboundCallScreening `json:"inbound_call_screening"`
}

Ref: #/components/schemas/PhoneNumberDetailed

func (*PhoneNumberDetailed) Decode

func (s *PhoneNumberDetailed) Decode(d *jx.Decoder) error

Decode decodes PhoneNumberDetailed from json.

func (*PhoneNumberDetailed) Encode

func (s *PhoneNumberDetailed) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PhoneNumberDetailed) GetBillingGroupID

func (s *PhoneNumberDetailed) GetBillingGroupID() OptString

GetBillingGroupID returns the value of BillingGroupID.

func (*PhoneNumberDetailed) GetCallForwardingEnabled

func (s *PhoneNumberDetailed) GetCallForwardingEnabled() OptBool

GetCallForwardingEnabled returns the value of CallForwardingEnabled.

func (*PhoneNumberDetailed) GetCallRecordingEnabled

func (s *PhoneNumberDetailed) GetCallRecordingEnabled() OptBool

GetCallRecordingEnabled returns the value of CallRecordingEnabled.

func (*PhoneNumberDetailed) GetCallerIDNameEnabled

func (s *PhoneNumberDetailed) GetCallerIDNameEnabled() OptBool

GetCallerIDNameEnabled returns the value of CallerIDNameEnabled.

func (*PhoneNumberDetailed) GetCnamListingEnabled

func (s *PhoneNumberDetailed) GetCnamListingEnabled() OptBool

GetCnamListingEnabled returns the value of CnamListingEnabled.

func (*PhoneNumberDetailed) GetConnectionID

func (s *PhoneNumberDetailed) GetConnectionID() OptString

GetConnectionID returns the value of ConnectionID.

func (*PhoneNumberDetailed) GetConnectionName

func (s *PhoneNumberDetailed) GetConnectionName() OptString

GetConnectionName returns the value of ConnectionName.

func (*PhoneNumberDetailed) GetCreatedAt

func (s *PhoneNumberDetailed) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*PhoneNumberDetailed) GetCustomerReference

func (s *PhoneNumberDetailed) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*PhoneNumberDetailed) GetEmergencyAddressID

func (s *PhoneNumberDetailed) GetEmergencyAddressID() OptStringInt64

GetEmergencyAddressID returns the value of EmergencyAddressID.

func (*PhoneNumberDetailed) GetEmergencyEnabled

func (s *PhoneNumberDetailed) GetEmergencyEnabled() OptBool

GetEmergencyEnabled returns the value of EmergencyEnabled.

func (*PhoneNumberDetailed) GetExternalPin

func (s *PhoneNumberDetailed) GetExternalPin() OptString

GetExternalPin returns the value of ExternalPin.

func (*PhoneNumberDetailed) GetID

func (s *PhoneNumberDetailed) GetID() OptIntId

GetID returns the value of ID.

func (*PhoneNumberDetailed) GetInboundCallScreening

GetInboundCallScreening returns the value of InboundCallScreening.

func (*PhoneNumberDetailed) GetMessagingProfileID

func (s *PhoneNumberDetailed) GetMessagingProfileID() OptString

GetMessagingProfileID returns the value of MessagingProfileID.

func (*PhoneNumberDetailed) GetMessagingProfileName

func (s *PhoneNumberDetailed) GetMessagingProfileName() OptString

GetMessagingProfileName returns the value of MessagingProfileName.

func (*PhoneNumberDetailed) GetNumberLevelRouting

GetNumberLevelRouting returns the value of NumberLevelRouting.

func (*PhoneNumberDetailed) GetPhoneNumber

func (s *PhoneNumberDetailed) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PhoneNumberDetailed) GetPhoneNumberType

GetPhoneNumberType returns the value of PhoneNumberType.

func (*PhoneNumberDetailed) GetPurchasedAt

func (s *PhoneNumberDetailed) GetPurchasedAt() OptString

GetPurchasedAt returns the value of PurchasedAt.

func (*PhoneNumberDetailed) GetRecordType

func (s *PhoneNumberDetailed) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PhoneNumberDetailed) GetStatus

GetStatus returns the value of Status.

func (*PhoneNumberDetailed) GetT38FaxGatewayEnabled

func (s *PhoneNumberDetailed) GetT38FaxGatewayEnabled() OptBool

GetT38FaxGatewayEnabled returns the value of T38FaxGatewayEnabled.

func (*PhoneNumberDetailed) GetTags

func (s *PhoneNumberDetailed) GetTags() []string

GetTags returns the value of Tags.

func (*PhoneNumberDetailed) MarshalJSON

func (s *PhoneNumberDetailed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumberDetailed) SetBillingGroupID

func (s *PhoneNumberDetailed) SetBillingGroupID(val OptString)

SetBillingGroupID sets the value of BillingGroupID.

func (*PhoneNumberDetailed) SetCallForwardingEnabled

func (s *PhoneNumberDetailed) SetCallForwardingEnabled(val OptBool)

SetCallForwardingEnabled sets the value of CallForwardingEnabled.

func (*PhoneNumberDetailed) SetCallRecordingEnabled

func (s *PhoneNumberDetailed) SetCallRecordingEnabled(val OptBool)

SetCallRecordingEnabled sets the value of CallRecordingEnabled.

func (*PhoneNumberDetailed) SetCallerIDNameEnabled

func (s *PhoneNumberDetailed) SetCallerIDNameEnabled(val OptBool)

SetCallerIDNameEnabled sets the value of CallerIDNameEnabled.

func (*PhoneNumberDetailed) SetCnamListingEnabled

func (s *PhoneNumberDetailed) SetCnamListingEnabled(val OptBool)

SetCnamListingEnabled sets the value of CnamListingEnabled.

func (*PhoneNumberDetailed) SetConnectionID

func (s *PhoneNumberDetailed) SetConnectionID(val OptString)

SetConnectionID sets the value of ConnectionID.

func (*PhoneNumberDetailed) SetConnectionName

func (s *PhoneNumberDetailed) SetConnectionName(val OptString)

SetConnectionName sets the value of ConnectionName.

func (*PhoneNumberDetailed) SetCreatedAt

func (s *PhoneNumberDetailed) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*PhoneNumberDetailed) SetCustomerReference

func (s *PhoneNumberDetailed) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*PhoneNumberDetailed) SetEmergencyAddressID

func (s *PhoneNumberDetailed) SetEmergencyAddressID(val OptStringInt64)

SetEmergencyAddressID sets the value of EmergencyAddressID.

func (*PhoneNumberDetailed) SetEmergencyEnabled

func (s *PhoneNumberDetailed) SetEmergencyEnabled(val OptBool)

SetEmergencyEnabled sets the value of EmergencyEnabled.

func (*PhoneNumberDetailed) SetExternalPin

func (s *PhoneNumberDetailed) SetExternalPin(val OptString)

SetExternalPin sets the value of ExternalPin.

func (*PhoneNumberDetailed) SetID

func (s *PhoneNumberDetailed) SetID(val OptIntId)

SetID sets the value of ID.

func (*PhoneNumberDetailed) SetInboundCallScreening

func (s *PhoneNumberDetailed) SetInboundCallScreening(val OptPhoneNumberDetailedInboundCallScreening)

SetInboundCallScreening sets the value of InboundCallScreening.

func (*PhoneNumberDetailed) SetMessagingProfileID

func (s *PhoneNumberDetailed) SetMessagingProfileID(val OptString)

SetMessagingProfileID sets the value of MessagingProfileID.

func (*PhoneNumberDetailed) SetMessagingProfileName

func (s *PhoneNumberDetailed) SetMessagingProfileName(val OptString)

SetMessagingProfileName sets the value of MessagingProfileName.

func (*PhoneNumberDetailed) SetNumberLevelRouting

func (s *PhoneNumberDetailed) SetNumberLevelRouting(val OptPhoneNumberDetailedNumberLevelRouting)

SetNumberLevelRouting sets the value of NumberLevelRouting.

func (*PhoneNumberDetailed) SetPhoneNumber

func (s *PhoneNumberDetailed) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PhoneNumberDetailed) SetPhoneNumberType

SetPhoneNumberType sets the value of PhoneNumberType.

func (*PhoneNumberDetailed) SetPurchasedAt

func (s *PhoneNumberDetailed) SetPurchasedAt(val OptString)

SetPurchasedAt sets the value of PurchasedAt.

func (*PhoneNumberDetailed) SetRecordType

func (s *PhoneNumberDetailed) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PhoneNumberDetailed) SetStatus

SetStatus sets the value of Status.

func (*PhoneNumberDetailed) SetT38FaxGatewayEnabled

func (s *PhoneNumberDetailed) SetT38FaxGatewayEnabled(val OptBool)

SetT38FaxGatewayEnabled sets the value of T38FaxGatewayEnabled.

func (*PhoneNumberDetailed) SetTags

func (s *PhoneNumberDetailed) SetTags(val []string)

SetTags sets the value of Tags.

func (*PhoneNumberDetailed) UnmarshalJSON

func (s *PhoneNumberDetailed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberDetailed) Validate

func (s *PhoneNumberDetailed) Validate() error

type PhoneNumberDetailedInboundCallScreening

type PhoneNumberDetailedInboundCallScreening string

The inbound_call_screening setting is a phone number configuration option variable that allows users to configure their settings to block or flag fraudulent calls. It can be set to disabled, reject_calls, or flag_calls. This feature has an additional per-number monthly cost associated with it.

const (
	PhoneNumberDetailedInboundCallScreeningDisabled    PhoneNumberDetailedInboundCallScreening = "disabled"
	PhoneNumberDetailedInboundCallScreeningRejectCalls PhoneNumberDetailedInboundCallScreening = "reject_calls"
	PhoneNumberDetailedInboundCallScreeningFlagCalls   PhoneNumberDetailedInboundCallScreening = "flag_calls"
)

func (PhoneNumberDetailedInboundCallScreening) AllValues

AllValues returns all PhoneNumberDetailedInboundCallScreening values.

func (*PhoneNumberDetailedInboundCallScreening) Decode

Decode decodes PhoneNumberDetailedInboundCallScreening from json.

func (PhoneNumberDetailedInboundCallScreening) Encode

Encode encodes PhoneNumberDetailedInboundCallScreening as json.

func (PhoneNumberDetailedInboundCallScreening) MarshalJSON

func (s PhoneNumberDetailedInboundCallScreening) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumberDetailedInboundCallScreening) MarshalText

func (s PhoneNumberDetailedInboundCallScreening) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumberDetailedInboundCallScreening) UnmarshalJSON

func (s *PhoneNumberDetailedInboundCallScreening) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberDetailedInboundCallScreening) UnmarshalText

func (s *PhoneNumberDetailedInboundCallScreening) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumberDetailedInboundCallScreening) Validate

type PhoneNumberDetailedNumberLevelRouting

type PhoneNumberDetailedNumberLevelRouting string

Deprecated field, the only value for this is 'disabled'. All routing for numbers should be configured via connection settings.

const (
	PhoneNumberDetailedNumberLevelRoutingDisabled PhoneNumberDetailedNumberLevelRouting = "disabled"
)

func (PhoneNumberDetailedNumberLevelRouting) AllValues

AllValues returns all PhoneNumberDetailedNumberLevelRouting values.

func (*PhoneNumberDetailedNumberLevelRouting) Decode

Decode decodes PhoneNumberDetailedNumberLevelRouting from json.

func (PhoneNumberDetailedNumberLevelRouting) Encode

Encode encodes PhoneNumberDetailedNumberLevelRouting as json.

func (PhoneNumberDetailedNumberLevelRouting) MarshalJSON

func (s PhoneNumberDetailedNumberLevelRouting) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumberDetailedNumberLevelRouting) MarshalText

func (s PhoneNumberDetailedNumberLevelRouting) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumberDetailedNumberLevelRouting) UnmarshalJSON

func (s *PhoneNumberDetailedNumberLevelRouting) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberDetailedNumberLevelRouting) UnmarshalText

func (s *PhoneNumberDetailedNumberLevelRouting) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumberDetailedNumberLevelRouting) Validate

type PhoneNumberDetailedPhoneNumberType

type PhoneNumberDetailedPhoneNumberType string

The phone number's type. Note: For numbers purchased prior to July 2023 or when fetching a number's details immediately after a purchase completes, the legacy values `tollfree`, `shortcode` or `longcode` may be returned instead.

const (
	PhoneNumberDetailedPhoneNumberTypeLocal      PhoneNumberDetailedPhoneNumberType = "local"
	PhoneNumberDetailedPhoneNumberTypeTollFree   PhoneNumberDetailedPhoneNumberType = "toll_free"
	PhoneNumberDetailedPhoneNumberTypeMobile     PhoneNumberDetailedPhoneNumberType = "mobile"
	PhoneNumberDetailedPhoneNumberTypeNational   PhoneNumberDetailedPhoneNumberType = "national"
	PhoneNumberDetailedPhoneNumberTypeSharedCost PhoneNumberDetailedPhoneNumberType = "shared_cost"
	PhoneNumberDetailedPhoneNumberTypeLandline   PhoneNumberDetailedPhoneNumberType = "landline"
	PhoneNumberDetailedPhoneNumberTypeTollfree   PhoneNumberDetailedPhoneNumberType = "tollfree"
	PhoneNumberDetailedPhoneNumberTypeShortcode  PhoneNumberDetailedPhoneNumberType = "shortcode"
	PhoneNumberDetailedPhoneNumberTypeLongcode   PhoneNumberDetailedPhoneNumberType = "longcode"
)

func (PhoneNumberDetailedPhoneNumberType) AllValues

AllValues returns all PhoneNumberDetailedPhoneNumberType values.

func (*PhoneNumberDetailedPhoneNumberType) Decode

Decode decodes PhoneNumberDetailedPhoneNumberType from json.

func (PhoneNumberDetailedPhoneNumberType) Encode

Encode encodes PhoneNumberDetailedPhoneNumberType as json.

func (PhoneNumberDetailedPhoneNumberType) MarshalJSON

func (s PhoneNumberDetailedPhoneNumberType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumberDetailedPhoneNumberType) MarshalText

func (s PhoneNumberDetailedPhoneNumberType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumberDetailedPhoneNumberType) UnmarshalJSON

func (s *PhoneNumberDetailedPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberDetailedPhoneNumberType) UnmarshalText

func (s *PhoneNumberDetailedPhoneNumberType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumberDetailedPhoneNumberType) Validate

type PhoneNumberDetailedStatus

type PhoneNumberDetailedStatus string

The phone number's current status.

const (
	PhoneNumberDetailedStatusPurchasePending            PhoneNumberDetailedStatus = "purchase-pending"
	PhoneNumberDetailedStatusPurchaseFailed             PhoneNumberDetailedStatus = "purchase-failed"
	PhoneNumberDetailedStatusPortPending                PhoneNumberDetailedStatus = "port-pending"
	PhoneNumberDetailedStatusPortFailed                 PhoneNumberDetailedStatus = "port-failed"
	PhoneNumberDetailedStatusActive                     PhoneNumberDetailedStatus = "active"
	PhoneNumberDetailedStatusDeleted                    PhoneNumberDetailedStatus = "deleted"
	PhoneNumberDetailedStatusEmergencyOnly              PhoneNumberDetailedStatus = "emergency-only"
	PhoneNumberDetailedStatusPortedOut                  PhoneNumberDetailedStatus = "ported-out"
	PhoneNumberDetailedStatusPortOutPending             PhoneNumberDetailedStatus = "port-out-pending"
	PhoneNumberDetailedStatusRequirementInfoPending     PhoneNumberDetailedStatus = "requirement-info-pending"
	PhoneNumberDetailedStatusRequirementInfoUnderReview PhoneNumberDetailedStatus = "requirement-info-under-review"
	PhoneNumberDetailedStatusRequirementInfoException   PhoneNumberDetailedStatus = "requirement-info-exception"
	PhoneNumberDetailedStatusProvisionPending           PhoneNumberDetailedStatus = "provision-pending"
)

func (PhoneNumberDetailedStatus) AllValues

AllValues returns all PhoneNumberDetailedStatus values.

func (*PhoneNumberDetailedStatus) Decode

func (s *PhoneNumberDetailedStatus) Decode(d *jx.Decoder) error

Decode decodes PhoneNumberDetailedStatus from json.

func (PhoneNumberDetailedStatus) Encode

func (s PhoneNumberDetailedStatus) Encode(e *jx.Encoder)

Encode encodes PhoneNumberDetailedStatus as json.

func (PhoneNumberDetailedStatus) MarshalJSON

func (s PhoneNumberDetailedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumberDetailedStatus) MarshalText

func (s PhoneNumberDetailedStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumberDetailedStatus) UnmarshalJSON

func (s *PhoneNumberDetailedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberDetailedStatus) UnmarshalText

func (s *PhoneNumberDetailedStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumberDetailedStatus) Validate

func (s PhoneNumberDetailedStatus) Validate() error

type PhoneNumberEnableEmergencyRequest

type PhoneNumberEnableEmergencyRequest struct {
	// Indicates whether to enable emergency services on this number.
	EmergencyEnabled bool `json:"emergency_enabled"`
	// Identifies the address to be used with emergency services.
	EmergencyAddressID int64 `json:"emergency_address_id"`
}

Ref: #/components/schemas/PhoneNumberEnableEmergencyRequest

func (*PhoneNumberEnableEmergencyRequest) Decode

Decode decodes PhoneNumberEnableEmergencyRequest from json.

func (*PhoneNumberEnableEmergencyRequest) Encode

Encode implements json.Marshaler.

func (*PhoneNumberEnableEmergencyRequest) GetEmergencyAddressID

func (s *PhoneNumberEnableEmergencyRequest) GetEmergencyAddressID() int64

GetEmergencyAddressID returns the value of EmergencyAddressID.

func (*PhoneNumberEnableEmergencyRequest) GetEmergencyEnabled

func (s *PhoneNumberEnableEmergencyRequest) GetEmergencyEnabled() bool

GetEmergencyEnabled returns the value of EmergencyEnabled.

func (*PhoneNumberEnableEmergencyRequest) MarshalJSON

func (s *PhoneNumberEnableEmergencyRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumberEnableEmergencyRequest) SetEmergencyAddressID

func (s *PhoneNumberEnableEmergencyRequest) SetEmergencyAddressID(val int64)

SetEmergencyAddressID sets the value of EmergencyAddressID.

func (*PhoneNumberEnableEmergencyRequest) SetEmergencyEnabled

func (s *PhoneNumberEnableEmergencyRequest) SetEmergencyEnabled(val bool)

SetEmergencyEnabled sets the value of EmergencyEnabled.

func (*PhoneNumberEnableEmergencyRequest) UnmarshalJSON

func (s *PhoneNumberEnableEmergencyRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PhoneNumberResponse

type PhoneNumberResponse struct {
	Data OptPhoneNumberDetailed `json:"data"`
}

func (*PhoneNumberResponse) Decode

func (s *PhoneNumberResponse) Decode(d *jx.Decoder) error

Decode decodes PhoneNumberResponse from json.

func (*PhoneNumberResponse) Encode

func (s *PhoneNumberResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PhoneNumberResponse) GetData

GetData returns the value of Data.

func (*PhoneNumberResponse) MarshalJSON

func (s *PhoneNumberResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumberResponse) SetData

SetData sets the value of Data.

func (*PhoneNumberResponse) UnmarshalJSON

func (s *PhoneNumberResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberResponse) Validate

func (s *PhoneNumberResponse) Validate() error

type PhoneNumberWithMessagingSettings

type PhoneNumberWithMessagingSettings struct {
	// Identifies the type of the resource.
	RecordType OptPhoneNumberWithMessagingSettingsRecordType `json:"record_type"`
	// Identifies the type of resource.
	ID OptString `json:"id"`
	// +E.164 formatted phone number.
	PhoneNumber OptString `json:"phone_number"`
	// Unique identifier for a messaging profile.
	MessagingProfileID OptNilString `json:"messaging_profile_id"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptDateTime `json:"created_at"`
	// ISO 8601 formatted date indicating when the resource was updated.
	UpdatedAt OptDateTime `json:"updated_at"`
	// ISO 3166-1 alpha-2 country code.
	CountryCode OptString `json:"country_code"`
	// The type of the phone number.
	Type   OptPhoneNumberWithMessagingSettingsType `json:"type"`
	Health OptNumberHealthMetrics                  `json:"health"`
	// The messaging products that this number can be registered to use.
	EligibleMessagingProducts []string `json:"eligible_messaging_products"`
	// The messaging traffic or use case for which the number is currently configured.
	TrafficType OptString `json:"traffic_type"`
	// The messaging product that the number is registered to use.
	MessagingProduct OptString                                   `json:"messaging_product"`
	Features         OptPhoneNumberWithMessagingSettingsFeatures `json:"features"`
}

Ref: #/components/schemas/PhoneNumberWithMessagingSettings

func (*PhoneNumberWithMessagingSettings) Decode

Decode decodes PhoneNumberWithMessagingSettings from json.

func (*PhoneNumberWithMessagingSettings) Encode

Encode implements json.Marshaler.

func (*PhoneNumberWithMessagingSettings) GetCountryCode

func (s *PhoneNumberWithMessagingSettings) GetCountryCode() OptString

GetCountryCode returns the value of CountryCode.

func (*PhoneNumberWithMessagingSettings) GetCreatedAt

GetCreatedAt returns the value of CreatedAt.

func (*PhoneNumberWithMessagingSettings) GetEligibleMessagingProducts

func (s *PhoneNumberWithMessagingSettings) GetEligibleMessagingProducts() []string

GetEligibleMessagingProducts returns the value of EligibleMessagingProducts.

func (*PhoneNumberWithMessagingSettings) GetFeatures

GetFeatures returns the value of Features.

func (*PhoneNumberWithMessagingSettings) GetHealth

GetHealth returns the value of Health.

func (*PhoneNumberWithMessagingSettings) GetID

GetID returns the value of ID.

func (*PhoneNumberWithMessagingSettings) GetMessagingProduct

func (s *PhoneNumberWithMessagingSettings) GetMessagingProduct() OptString

GetMessagingProduct returns the value of MessagingProduct.

func (*PhoneNumberWithMessagingSettings) GetMessagingProfileID

func (s *PhoneNumberWithMessagingSettings) GetMessagingProfileID() OptNilString

GetMessagingProfileID returns the value of MessagingProfileID.

func (*PhoneNumberWithMessagingSettings) GetPhoneNumber

func (s *PhoneNumberWithMessagingSettings) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PhoneNumberWithMessagingSettings) GetRecordType

GetRecordType returns the value of RecordType.

func (*PhoneNumberWithMessagingSettings) GetTrafficType

func (s *PhoneNumberWithMessagingSettings) GetTrafficType() OptString

GetTrafficType returns the value of TrafficType.

func (*PhoneNumberWithMessagingSettings) GetType

GetType returns the value of Type.

func (*PhoneNumberWithMessagingSettings) GetUpdatedAt

GetUpdatedAt returns the value of UpdatedAt.

func (*PhoneNumberWithMessagingSettings) MarshalJSON

func (s *PhoneNumberWithMessagingSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumberWithMessagingSettings) SetCountryCode

func (s *PhoneNumberWithMessagingSettings) SetCountryCode(val OptString)

SetCountryCode sets the value of CountryCode.

func (*PhoneNumberWithMessagingSettings) SetCreatedAt

func (s *PhoneNumberWithMessagingSettings) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*PhoneNumberWithMessagingSettings) SetEligibleMessagingProducts

func (s *PhoneNumberWithMessagingSettings) SetEligibleMessagingProducts(val []string)

SetEligibleMessagingProducts sets the value of EligibleMessagingProducts.

func (*PhoneNumberWithMessagingSettings) SetFeatures

SetFeatures sets the value of Features.

func (*PhoneNumberWithMessagingSettings) SetHealth

SetHealth sets the value of Health.

func (*PhoneNumberWithMessagingSettings) SetID

SetID sets the value of ID.

func (*PhoneNumberWithMessagingSettings) SetMessagingProduct

func (s *PhoneNumberWithMessagingSettings) SetMessagingProduct(val OptString)

SetMessagingProduct sets the value of MessagingProduct.

func (*PhoneNumberWithMessagingSettings) SetMessagingProfileID

func (s *PhoneNumberWithMessagingSettings) SetMessagingProfileID(val OptNilString)

SetMessagingProfileID sets the value of MessagingProfileID.

func (*PhoneNumberWithMessagingSettings) SetPhoneNumber

func (s *PhoneNumberWithMessagingSettings) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PhoneNumberWithMessagingSettings) SetRecordType

SetRecordType sets the value of RecordType.

func (*PhoneNumberWithMessagingSettings) SetTrafficType

func (s *PhoneNumberWithMessagingSettings) SetTrafficType(val OptString)

SetTrafficType sets the value of TrafficType.

func (*PhoneNumberWithMessagingSettings) SetType

SetType sets the value of Type.

func (*PhoneNumberWithMessagingSettings) SetUpdatedAt

func (s *PhoneNumberWithMessagingSettings) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*PhoneNumberWithMessagingSettings) UnmarshalJSON

func (s *PhoneNumberWithMessagingSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberWithMessagingSettings) Validate

type PhoneNumberWithMessagingSettingsFeatures

type PhoneNumberWithMessagingSettingsFeatures struct {
	SMS OptNilMessagingFeatureSet `json:"sms"`
	Mms OptNilMessagingFeatureSet `json:"mms"`
}

func (*PhoneNumberWithMessagingSettingsFeatures) Decode

Decode decodes PhoneNumberWithMessagingSettingsFeatures from json.

func (*PhoneNumberWithMessagingSettingsFeatures) Encode

Encode implements json.Marshaler.

func (*PhoneNumberWithMessagingSettingsFeatures) GetMms

GetMms returns the value of Mms.

func (*PhoneNumberWithMessagingSettingsFeatures) GetSMS

GetSMS returns the value of SMS.

func (*PhoneNumberWithMessagingSettingsFeatures) MarshalJSON

func (s *PhoneNumberWithMessagingSettingsFeatures) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumberWithMessagingSettingsFeatures) SetMms

SetMms sets the value of Mms.

func (*PhoneNumberWithMessagingSettingsFeatures) SetSMS

SetSMS sets the value of SMS.

func (*PhoneNumberWithMessagingSettingsFeatures) UnmarshalJSON

func (s *PhoneNumberWithMessagingSettingsFeatures) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PhoneNumberWithMessagingSettingsRecordType

type PhoneNumberWithMessagingSettingsRecordType string

Identifies the type of the resource.

const (
	PhoneNumberWithMessagingSettingsRecordTypeMessagingPhoneNumber PhoneNumberWithMessagingSettingsRecordType = "messaging_phone_number"
	PhoneNumberWithMessagingSettingsRecordTypeMessagingSettings    PhoneNumberWithMessagingSettingsRecordType = "messaging_settings"
)

func (PhoneNumberWithMessagingSettingsRecordType) AllValues

AllValues returns all PhoneNumberWithMessagingSettingsRecordType values.

func (*PhoneNumberWithMessagingSettingsRecordType) Decode

Decode decodes PhoneNumberWithMessagingSettingsRecordType from json.

func (PhoneNumberWithMessagingSettingsRecordType) Encode

Encode encodes PhoneNumberWithMessagingSettingsRecordType as json.

func (PhoneNumberWithMessagingSettingsRecordType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumberWithMessagingSettingsRecordType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumberWithMessagingSettingsRecordType) UnmarshalJSON

func (s *PhoneNumberWithMessagingSettingsRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberWithMessagingSettingsRecordType) UnmarshalText

func (s *PhoneNumberWithMessagingSettingsRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumberWithMessagingSettingsRecordType) Validate

type PhoneNumberWithMessagingSettingsResponse

type PhoneNumberWithMessagingSettingsResponse struct {
	Data OptPhoneNumberWithMessagingSettings `json:"data"`
}

func (*PhoneNumberWithMessagingSettingsResponse) Decode

Decode decodes PhoneNumberWithMessagingSettingsResponse from json.

func (*PhoneNumberWithMessagingSettingsResponse) Encode

Encode implements json.Marshaler.

func (*PhoneNumberWithMessagingSettingsResponse) GetData

GetData returns the value of Data.

func (*PhoneNumberWithMessagingSettingsResponse) MarshalJSON

func (s *PhoneNumberWithMessagingSettingsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumberWithMessagingSettingsResponse) SetData

SetData sets the value of Data.

func (*PhoneNumberWithMessagingSettingsResponse) UnmarshalJSON

func (s *PhoneNumberWithMessagingSettingsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberWithMessagingSettingsResponse) Validate

type PhoneNumberWithMessagingSettingsType

type PhoneNumberWithMessagingSettingsType string

The type of the phone number.

const (
	PhoneNumberWithMessagingSettingsTypeLongCode  PhoneNumberWithMessagingSettingsType = "long-code"
	PhoneNumberWithMessagingSettingsTypeTollFree  PhoneNumberWithMessagingSettingsType = "toll-free"
	PhoneNumberWithMessagingSettingsTypeShortCode PhoneNumberWithMessagingSettingsType = "short-code"
	PhoneNumberWithMessagingSettingsTypeLongcode  PhoneNumberWithMessagingSettingsType = "longcode"
	PhoneNumberWithMessagingSettingsTypeTollfree  PhoneNumberWithMessagingSettingsType = "tollfree"
	PhoneNumberWithMessagingSettingsTypeShortcode PhoneNumberWithMessagingSettingsType = "shortcode"
)

func (PhoneNumberWithMessagingSettingsType) AllValues

AllValues returns all PhoneNumberWithMessagingSettingsType values.

func (*PhoneNumberWithMessagingSettingsType) Decode

Decode decodes PhoneNumberWithMessagingSettingsType from json.

func (PhoneNumberWithMessagingSettingsType) Encode

Encode encodes PhoneNumberWithMessagingSettingsType as json.

func (PhoneNumberWithMessagingSettingsType) MarshalJSON

func (s PhoneNumberWithMessagingSettingsType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumberWithMessagingSettingsType) MarshalText

func (s PhoneNumberWithMessagingSettingsType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumberWithMessagingSettingsType) UnmarshalJSON

func (s *PhoneNumberWithMessagingSettingsType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberWithMessagingSettingsType) UnmarshalText

func (s *PhoneNumberWithMessagingSettingsType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumberWithMessagingSettingsType) Validate

type PhoneNumberWithVoiceSettings

type PhoneNumberWithVoiceSettings struct {
	// Identifies the type of resource.
	ID OptString `json:"id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// The phone number in +E164 format.
	PhoneNumber OptString `json:"phone_number"`
	// Identifies the connection associated with this phone number.
	ConnectionID OptString `json:"connection_id"`
	// A customer reference string for customer look ups.
	CustomerReference OptString `json:"customer_reference"`
	// Controls whether a tech prefix is enabled for this phone number.
	TechPrefixEnabled OptBool `json:"tech_prefix_enabled"`
	// This field allows you to rewrite the destination number of an inbound call before the call is
	// routed to you. The value of this field may be any alphanumeric value, and the value will replace
	// the number originally dialed.
	TranslatedNumber OptString            `json:"translated_number"`
	CallForwarding   OptCallForwarding    `json:"call_forwarding"`
	CnamListing      OptCnamListing       `json:"cnam_listing"`
	Emergency        OptEmergencySettings `json:"emergency"`
	// Controls whether a number is billed per minute or uses your concurrent channels.
	UsagePaymentMethod OptPhoneNumberWithVoiceSettingsUsagePaymentMethod `json:"usage_payment_method"`
	MediaFeatures      OptMediaFeatures                                  `json:"media_features"`
	CallRecording      OptCallRecording                                  `json:"call_recording"`
	// The inbound_call_screening setting is a phone number configuration option variable that allows
	// users to configure their settings to block or flag fraudulent calls. It can be set to disabled,
	// reject_calls, or flag_calls. This feature has an additional per-number monthly cost associated
	// with it.
	InboundCallScreening OptPhoneNumberWithVoiceSettingsInboundCallScreening `json:"inbound_call_screening"`
}

Ref: #/components/schemas/PhoneNumberWithVoiceSettings

func (*PhoneNumberWithVoiceSettings) Decode

Decode decodes PhoneNumberWithVoiceSettings from json.

func (*PhoneNumberWithVoiceSettings) Encode

func (s *PhoneNumberWithVoiceSettings) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PhoneNumberWithVoiceSettings) GetCallForwarding

func (s *PhoneNumberWithVoiceSettings) GetCallForwarding() OptCallForwarding

GetCallForwarding returns the value of CallForwarding.

func (*PhoneNumberWithVoiceSettings) GetCallRecording

func (s *PhoneNumberWithVoiceSettings) GetCallRecording() OptCallRecording

GetCallRecording returns the value of CallRecording.

func (*PhoneNumberWithVoiceSettings) GetCnamListing

func (s *PhoneNumberWithVoiceSettings) GetCnamListing() OptCnamListing

GetCnamListing returns the value of CnamListing.

func (*PhoneNumberWithVoiceSettings) GetConnectionID

func (s *PhoneNumberWithVoiceSettings) GetConnectionID() OptString

GetConnectionID returns the value of ConnectionID.

func (*PhoneNumberWithVoiceSettings) GetCustomerReference

func (s *PhoneNumberWithVoiceSettings) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*PhoneNumberWithVoiceSettings) GetEmergency

GetEmergency returns the value of Emergency.

func (*PhoneNumberWithVoiceSettings) GetID

GetID returns the value of ID.

func (*PhoneNumberWithVoiceSettings) GetInboundCallScreening

GetInboundCallScreening returns the value of InboundCallScreening.

func (*PhoneNumberWithVoiceSettings) GetMediaFeatures

func (s *PhoneNumberWithVoiceSettings) GetMediaFeatures() OptMediaFeatures

GetMediaFeatures returns the value of MediaFeatures.

func (*PhoneNumberWithVoiceSettings) GetPhoneNumber

func (s *PhoneNumberWithVoiceSettings) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PhoneNumberWithVoiceSettings) GetRecordType

func (s *PhoneNumberWithVoiceSettings) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PhoneNumberWithVoiceSettings) GetTechPrefixEnabled

func (s *PhoneNumberWithVoiceSettings) GetTechPrefixEnabled() OptBool

GetTechPrefixEnabled returns the value of TechPrefixEnabled.

func (*PhoneNumberWithVoiceSettings) GetTranslatedNumber

func (s *PhoneNumberWithVoiceSettings) GetTranslatedNumber() OptString

GetTranslatedNumber returns the value of TranslatedNumber.

func (*PhoneNumberWithVoiceSettings) GetUsagePaymentMethod

GetUsagePaymentMethod returns the value of UsagePaymentMethod.

func (*PhoneNumberWithVoiceSettings) MarshalJSON

func (s *PhoneNumberWithVoiceSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumberWithVoiceSettings) SetCallForwarding

func (s *PhoneNumberWithVoiceSettings) SetCallForwarding(val OptCallForwarding)

SetCallForwarding sets the value of CallForwarding.

func (*PhoneNumberWithVoiceSettings) SetCallRecording

func (s *PhoneNumberWithVoiceSettings) SetCallRecording(val OptCallRecording)

SetCallRecording sets the value of CallRecording.

func (*PhoneNumberWithVoiceSettings) SetCnamListing

func (s *PhoneNumberWithVoiceSettings) SetCnamListing(val OptCnamListing)

SetCnamListing sets the value of CnamListing.

func (*PhoneNumberWithVoiceSettings) SetConnectionID

func (s *PhoneNumberWithVoiceSettings) SetConnectionID(val OptString)

SetConnectionID sets the value of ConnectionID.

func (*PhoneNumberWithVoiceSettings) SetCustomerReference

func (s *PhoneNumberWithVoiceSettings) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*PhoneNumberWithVoiceSettings) SetEmergency

SetEmergency sets the value of Emergency.

func (*PhoneNumberWithVoiceSettings) SetID

SetID sets the value of ID.

func (*PhoneNumberWithVoiceSettings) SetInboundCallScreening

SetInboundCallScreening sets the value of InboundCallScreening.

func (*PhoneNumberWithVoiceSettings) SetMediaFeatures

func (s *PhoneNumberWithVoiceSettings) SetMediaFeatures(val OptMediaFeatures)

SetMediaFeatures sets the value of MediaFeatures.

func (*PhoneNumberWithVoiceSettings) SetPhoneNumber

func (s *PhoneNumberWithVoiceSettings) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PhoneNumberWithVoiceSettings) SetRecordType

func (s *PhoneNumberWithVoiceSettings) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PhoneNumberWithVoiceSettings) SetTechPrefixEnabled

func (s *PhoneNumberWithVoiceSettings) SetTechPrefixEnabled(val OptBool)

SetTechPrefixEnabled sets the value of TechPrefixEnabled.

func (*PhoneNumberWithVoiceSettings) SetTranslatedNumber

func (s *PhoneNumberWithVoiceSettings) SetTranslatedNumber(val OptString)

SetTranslatedNumber sets the value of TranslatedNumber.

func (*PhoneNumberWithVoiceSettings) SetUsagePaymentMethod

SetUsagePaymentMethod sets the value of UsagePaymentMethod.

func (*PhoneNumberWithVoiceSettings) UnmarshalJSON

func (s *PhoneNumberWithVoiceSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberWithVoiceSettings) Validate

func (s *PhoneNumberWithVoiceSettings) Validate() error

type PhoneNumberWithVoiceSettingsInboundCallScreening

type PhoneNumberWithVoiceSettingsInboundCallScreening string

The inbound_call_screening setting is a phone number configuration option variable that allows users to configure their settings to block or flag fraudulent calls. It can be set to disabled, reject_calls, or flag_calls. This feature has an additional per-number monthly cost associated with it.

const (
	PhoneNumberWithVoiceSettingsInboundCallScreeningDisabled    PhoneNumberWithVoiceSettingsInboundCallScreening = "disabled"
	PhoneNumberWithVoiceSettingsInboundCallScreeningRejectCalls PhoneNumberWithVoiceSettingsInboundCallScreening = "reject_calls"
	PhoneNumberWithVoiceSettingsInboundCallScreeningFlagCalls   PhoneNumberWithVoiceSettingsInboundCallScreening = "flag_calls"
)

func (PhoneNumberWithVoiceSettingsInboundCallScreening) AllValues

AllValues returns all PhoneNumberWithVoiceSettingsInboundCallScreening values.

func (*PhoneNumberWithVoiceSettingsInboundCallScreening) Decode

Decode decodes PhoneNumberWithVoiceSettingsInboundCallScreening from json.

func (PhoneNumberWithVoiceSettingsInboundCallScreening) Encode

Encode encodes PhoneNumberWithVoiceSettingsInboundCallScreening as json.

func (PhoneNumberWithVoiceSettingsInboundCallScreening) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumberWithVoiceSettingsInboundCallScreening) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumberWithVoiceSettingsInboundCallScreening) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberWithVoiceSettingsInboundCallScreening) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumberWithVoiceSettingsInboundCallScreening) Validate

type PhoneNumberWithVoiceSettingsResponse

type PhoneNumberWithVoiceSettingsResponse struct {
	Data OptPhoneNumberWithVoiceSettings `json:"data"`
}

func (*PhoneNumberWithVoiceSettingsResponse) Decode

Decode decodes PhoneNumberWithVoiceSettingsResponse from json.

func (*PhoneNumberWithVoiceSettingsResponse) Encode

Encode implements json.Marshaler.

func (*PhoneNumberWithVoiceSettingsResponse) GetData

GetData returns the value of Data.

func (*PhoneNumberWithVoiceSettingsResponse) MarshalJSON

func (s *PhoneNumberWithVoiceSettingsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumberWithVoiceSettingsResponse) SetData

SetData sets the value of Data.

func (*PhoneNumberWithVoiceSettingsResponse) UnmarshalJSON

func (s *PhoneNumberWithVoiceSettingsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberWithVoiceSettingsResponse) Validate

type PhoneNumberWithVoiceSettingsUsagePaymentMethod

type PhoneNumberWithVoiceSettingsUsagePaymentMethod string

Controls whether a number is billed per minute or uses your concurrent channels.

const (
	PhoneNumberWithVoiceSettingsUsagePaymentMethodPayPerMinute PhoneNumberWithVoiceSettingsUsagePaymentMethod = "pay-per-minute"
	PhoneNumberWithVoiceSettingsUsagePaymentMethodChannel      PhoneNumberWithVoiceSettingsUsagePaymentMethod = "channel"
)

func (PhoneNumberWithVoiceSettingsUsagePaymentMethod) AllValues

AllValues returns all PhoneNumberWithVoiceSettingsUsagePaymentMethod values.

func (*PhoneNumberWithVoiceSettingsUsagePaymentMethod) Decode

Decode decodes PhoneNumberWithVoiceSettingsUsagePaymentMethod from json.

func (PhoneNumberWithVoiceSettingsUsagePaymentMethod) Encode

Encode encodes PhoneNumberWithVoiceSettingsUsagePaymentMethod as json.

func (PhoneNumberWithVoiceSettingsUsagePaymentMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumberWithVoiceSettingsUsagePaymentMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumberWithVoiceSettingsUsagePaymentMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumberWithVoiceSettingsUsagePaymentMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumberWithVoiceSettingsUsagePaymentMethod) Validate

type PhoneNumbers

type PhoneNumbers []PhoneNumbersItem

func (*PhoneNumbers) Decode

func (s *PhoneNumbers) Decode(d *jx.Decoder) error

Decode decodes PhoneNumbers from json.

func (PhoneNumbers) Encode

func (s PhoneNumbers) Encode(e *jx.Encoder)

Encode encodes PhoneNumbers as json.

func (PhoneNumbers) MarshalJSON

func (s PhoneNumbers) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumbers) UnmarshalJSON

func (s *PhoneNumbers) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PhoneNumbers) Validate

func (s PhoneNumbers) Validate() error

type PhoneNumbersItem

type PhoneNumbersItem struct {
	RecordType OptString `json:"record_type"`
	ID         OptUUID   `json:"id"`
	// The phone number in e164 format.
	PhoneNumber OptString `json:"phone_number"`
	// The approval status of this individual phone number in Google.
	GoogleVerificationStatus OptPhoneNumbersItemGoogleVerificationStatus `json:"google_verification_status"`
	// Additional information about the decision, if available.
	GoogleApprovalInfo OptString `json:"google_approval_info"`
	DisplayProfileID   OptUUID   `json:"display_profile_id"`
	// Marks the Phone Number to be removed from the Display Profile.
	Delete OptBool `json:"delete"`
}

A Phone Number that can make phone calls displaying the configured brand information.

func (*PhoneNumbersItem) Decode

func (s *PhoneNumbersItem) Decode(d *jx.Decoder) error

Decode decodes PhoneNumbersItem from json.

func (*PhoneNumbersItem) Encode

func (s *PhoneNumbersItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PhoneNumbersItem) GetDelete

func (s *PhoneNumbersItem) GetDelete() OptBool

GetDelete returns the value of Delete.

func (*PhoneNumbersItem) GetDisplayProfileID

func (s *PhoneNumbersItem) GetDisplayProfileID() OptUUID

GetDisplayProfileID returns the value of DisplayProfileID.

func (*PhoneNumbersItem) GetGoogleApprovalInfo

func (s *PhoneNumbersItem) GetGoogleApprovalInfo() OptString

GetGoogleApprovalInfo returns the value of GoogleApprovalInfo.

func (*PhoneNumbersItem) GetGoogleVerificationStatus

func (s *PhoneNumbersItem) GetGoogleVerificationStatus() OptPhoneNumbersItemGoogleVerificationStatus

GetGoogleVerificationStatus returns the value of GoogleVerificationStatus.

func (*PhoneNumbersItem) GetID

func (s *PhoneNumbersItem) GetID() OptUUID

GetID returns the value of ID.

func (*PhoneNumbersItem) GetPhoneNumber

func (s *PhoneNumbersItem) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PhoneNumbersItem) GetRecordType

func (s *PhoneNumbersItem) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PhoneNumbersItem) MarshalJSON

func (s *PhoneNumbersItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumbersItem) SetDelete

func (s *PhoneNumbersItem) SetDelete(val OptBool)

SetDelete sets the value of Delete.

func (*PhoneNumbersItem) SetDisplayProfileID

func (s *PhoneNumbersItem) SetDisplayProfileID(val OptUUID)

SetDisplayProfileID sets the value of DisplayProfileID.

func (*PhoneNumbersItem) SetGoogleApprovalInfo

func (s *PhoneNumbersItem) SetGoogleApprovalInfo(val OptString)

SetGoogleApprovalInfo sets the value of GoogleApprovalInfo.

func (*PhoneNumbersItem) SetGoogleVerificationStatus

func (s *PhoneNumbersItem) SetGoogleVerificationStatus(val OptPhoneNumbersItemGoogleVerificationStatus)

SetGoogleVerificationStatus sets the value of GoogleVerificationStatus.

func (*PhoneNumbersItem) SetID

func (s *PhoneNumbersItem) SetID(val OptUUID)

SetID sets the value of ID.

func (*PhoneNumbersItem) SetPhoneNumber

func (s *PhoneNumbersItem) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PhoneNumbersItem) SetRecordType

func (s *PhoneNumbersItem) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PhoneNumbersItem) UnmarshalJSON

func (s *PhoneNumbersItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumbersItem) Validate

func (s *PhoneNumbersItem) Validate() error

type PhoneNumbersItemGoogleVerificationStatus

type PhoneNumbersItemGoogleVerificationStatus string

The approval status of this individual phone number in Google.

const (
	PhoneNumbersItemGoogleVerificationStatusSTATEUNSPECIFIED PhoneNumbersItemGoogleVerificationStatus = "STATE_UNSPECIFIED"
	PhoneNumbersItemGoogleVerificationStatusPENDINGAPPROVAL  PhoneNumbersItemGoogleVerificationStatus = "PENDING_APPROVAL"
	PhoneNumbersItemGoogleVerificationStatusAPPROVED         PhoneNumbersItemGoogleVerificationStatus = "APPROVED"
	PhoneNumbersItemGoogleVerificationStatusDENIED           PhoneNumbersItemGoogleVerificationStatus = "DENIED"
	PhoneNumbersItemGoogleVerificationStatusPENDINGREMOVAL   PhoneNumbersItemGoogleVerificationStatus = "PENDING_REMOVAL"
)

func (PhoneNumbersItemGoogleVerificationStatus) AllValues

AllValues returns all PhoneNumbersItemGoogleVerificationStatus values.

func (*PhoneNumbersItemGoogleVerificationStatus) Decode

Decode decodes PhoneNumbersItemGoogleVerificationStatus from json.

func (PhoneNumbersItemGoogleVerificationStatus) Encode

Encode encodes PhoneNumbersItemGoogleVerificationStatus as json.

func (PhoneNumbersItemGoogleVerificationStatus) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumbersItemGoogleVerificationStatus) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumbersItemGoogleVerificationStatus) UnmarshalJSON

func (s *PhoneNumbersItemGoogleVerificationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumbersItemGoogleVerificationStatus) UnmarshalText

func (s *PhoneNumbersItemGoogleVerificationStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumbersItemGoogleVerificationStatus) Validate

type PhoneNumbersJob

type PhoneNumbersJob struct {
	// Identifies the resource.
	ID OptUUID `json:"id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// Indicates the completion status of the background update.
	Status OptPhoneNumbersJobStatus `json:"status"`
	// Identifies the type of the background job.
	Type OptPhoneNumbersJobType `json:"type"`
	// ISO 8601 formatted date indicating when the estimated time of completion of the background job.
	Etc OptDateTime `json:"etc"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date indicating when the resource was updated.
	UpdatedAt            OptString                            `json:"updated_at"`
	PhoneNumbers         []PhoneNumbersJobPhoneNumber         `json:"phone_numbers"`
	SuccessfulOperations []PhoneNumbersJobSuccessfulOperation `json:"successful_operations"`
	PendingOperations    []PhoneNumbersJobPendingOperation    `json:"pending_operations"`
	FailedOperations     []PhoneNumbersJobFailedOperation     `json:"failed_operations"`
}

Ref: #/components/schemas/PhoneNumbersJob

func (*PhoneNumbersJob) Decode

func (s *PhoneNumbersJob) Decode(d *jx.Decoder) error

Decode decodes PhoneNumbersJob from json.

func (*PhoneNumbersJob) Encode

func (s *PhoneNumbersJob) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PhoneNumbersJob) GetCreatedAt

func (s *PhoneNumbersJob) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*PhoneNumbersJob) GetEtc

func (s *PhoneNumbersJob) GetEtc() OptDateTime

GetEtc returns the value of Etc.

func (*PhoneNumbersJob) GetFailedOperations

func (s *PhoneNumbersJob) GetFailedOperations() []PhoneNumbersJobFailedOperation

GetFailedOperations returns the value of FailedOperations.

func (*PhoneNumbersJob) GetID

func (s *PhoneNumbersJob) GetID() OptUUID

GetID returns the value of ID.

func (*PhoneNumbersJob) GetPendingOperations

func (s *PhoneNumbersJob) GetPendingOperations() []PhoneNumbersJobPendingOperation

GetPendingOperations returns the value of PendingOperations.

func (*PhoneNumbersJob) GetPhoneNumbers

func (s *PhoneNumbersJob) GetPhoneNumbers() []PhoneNumbersJobPhoneNumber

GetPhoneNumbers returns the value of PhoneNumbers.

func (*PhoneNumbersJob) GetRecordType

func (s *PhoneNumbersJob) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PhoneNumbersJob) GetStatus

GetStatus returns the value of Status.

func (*PhoneNumbersJob) GetSuccessfulOperations

func (s *PhoneNumbersJob) GetSuccessfulOperations() []PhoneNumbersJobSuccessfulOperation

GetSuccessfulOperations returns the value of SuccessfulOperations.

func (*PhoneNumbersJob) GetType

GetType returns the value of Type.

func (*PhoneNumbersJob) GetUpdatedAt

func (s *PhoneNumbersJob) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*PhoneNumbersJob) MarshalJSON

func (s *PhoneNumbersJob) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumbersJob) SetCreatedAt

func (s *PhoneNumbersJob) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*PhoneNumbersJob) SetEtc

func (s *PhoneNumbersJob) SetEtc(val OptDateTime)

SetEtc sets the value of Etc.

func (*PhoneNumbersJob) SetFailedOperations

func (s *PhoneNumbersJob) SetFailedOperations(val []PhoneNumbersJobFailedOperation)

SetFailedOperations sets the value of FailedOperations.

func (*PhoneNumbersJob) SetID

func (s *PhoneNumbersJob) SetID(val OptUUID)

SetID sets the value of ID.

func (*PhoneNumbersJob) SetPendingOperations

func (s *PhoneNumbersJob) SetPendingOperations(val []PhoneNumbersJobPendingOperation)

SetPendingOperations sets the value of PendingOperations.

func (*PhoneNumbersJob) SetPhoneNumbers

func (s *PhoneNumbersJob) SetPhoneNumbers(val []PhoneNumbersJobPhoneNumber)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*PhoneNumbersJob) SetRecordType

func (s *PhoneNumbersJob) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PhoneNumbersJob) SetStatus

func (s *PhoneNumbersJob) SetStatus(val OptPhoneNumbersJobStatus)

SetStatus sets the value of Status.

func (*PhoneNumbersJob) SetSuccessfulOperations

func (s *PhoneNumbersJob) SetSuccessfulOperations(val []PhoneNumbersJobSuccessfulOperation)

SetSuccessfulOperations sets the value of SuccessfulOperations.

func (*PhoneNumbersJob) SetType

func (s *PhoneNumbersJob) SetType(val OptPhoneNumbersJobType)

SetType sets the value of Type.

func (*PhoneNumbersJob) SetUpdatedAt

func (s *PhoneNumbersJob) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*PhoneNumbersJob) UnmarshalJSON

func (s *PhoneNumbersJob) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumbersJob) Validate

func (s *PhoneNumbersJob) Validate() error

type PhoneNumbersJobDeletePhoneNumbersRequest

type PhoneNumbersJobDeletePhoneNumbersRequest struct {
	PhoneNumbers []string `json:"phone_numbers"`
}

Ref: #/components/schemas/PhoneNumbersJobDeletePhoneNumbersRequest

func (*PhoneNumbersJobDeletePhoneNumbersRequest) Decode

Decode decodes PhoneNumbersJobDeletePhoneNumbersRequest from json.

func (*PhoneNumbersJobDeletePhoneNumbersRequest) Encode

Encode implements json.Marshaler.

func (*PhoneNumbersJobDeletePhoneNumbersRequest) GetPhoneNumbers

func (s *PhoneNumbersJobDeletePhoneNumbersRequest) GetPhoneNumbers() []string

GetPhoneNumbers returns the value of PhoneNumbers.

func (*PhoneNumbersJobDeletePhoneNumbersRequest) MarshalJSON

func (s *PhoneNumbersJobDeletePhoneNumbersRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumbersJobDeletePhoneNumbersRequest) SetPhoneNumbers

func (s *PhoneNumbersJobDeletePhoneNumbersRequest) SetPhoneNumbers(val []string)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*PhoneNumbersJobDeletePhoneNumbersRequest) UnmarshalJSON

func (s *PhoneNumbersJobDeletePhoneNumbersRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumbersJobDeletePhoneNumbersRequest) Validate

type PhoneNumbersJobFailedOperation

type PhoneNumbersJobFailedOperation struct {
	// The phone number in e164 format.
	PhoneNumber OptString `json:"phone_number"`
	// The phone number's ID.
	ID     OptStringInt64 `json:"id"`
	Errors []Error        `json:"errors"`
}

Ref: #/components/schemas/PhoneNumbersJobFailedOperation

func (*PhoneNumbersJobFailedOperation) Decode

Decode decodes PhoneNumbersJobFailedOperation from json.

func (*PhoneNumbersJobFailedOperation) Encode

Encode implements json.Marshaler.

func (*PhoneNumbersJobFailedOperation) GetErrors

func (s *PhoneNumbersJobFailedOperation) GetErrors() []Error

GetErrors returns the value of Errors.

func (*PhoneNumbersJobFailedOperation) GetID

GetID returns the value of ID.

func (*PhoneNumbersJobFailedOperation) GetPhoneNumber

func (s *PhoneNumbersJobFailedOperation) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PhoneNumbersJobFailedOperation) MarshalJSON

func (s *PhoneNumbersJobFailedOperation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumbersJobFailedOperation) SetErrors

func (s *PhoneNumbersJobFailedOperation) SetErrors(val []Error)

SetErrors sets the value of Errors.

func (*PhoneNumbersJobFailedOperation) SetID

SetID sets the value of ID.

func (*PhoneNumbersJobFailedOperation) SetPhoneNumber

func (s *PhoneNumbersJobFailedOperation) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PhoneNumbersJobFailedOperation) UnmarshalJSON

func (s *PhoneNumbersJobFailedOperation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PhoneNumbersJobPendingOperation

type PhoneNumbersJobPendingOperation struct {
	// The phone number in e164 format.
	PhoneNumber OptString `json:"phone_number"`
	// The phone number's ID.
	ID OptStringInt64 `json:"id"`
}

Ref: #/components/schemas/PhoneNumbersJobPendingOperation

func (*PhoneNumbersJobPendingOperation) Decode

Decode decodes PhoneNumbersJobPendingOperation from json.

func (*PhoneNumbersJobPendingOperation) Encode

Encode implements json.Marshaler.

func (*PhoneNumbersJobPendingOperation) GetID

GetID returns the value of ID.

func (*PhoneNumbersJobPendingOperation) GetPhoneNumber

func (s *PhoneNumbersJobPendingOperation) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PhoneNumbersJobPendingOperation) MarshalJSON

func (s *PhoneNumbersJobPendingOperation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumbersJobPendingOperation) SetID

SetID sets the value of ID.

func (*PhoneNumbersJobPendingOperation) SetPhoneNumber

func (s *PhoneNumbersJobPendingOperation) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PhoneNumbersJobPendingOperation) UnmarshalJSON

func (s *PhoneNumbersJobPendingOperation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PhoneNumbersJobPhoneNumber

type PhoneNumbersJobPhoneNumber struct {
	// The phone number in e164 format.
	PhoneNumber OptString `json:"phone_number"`
	// The phone number's ID.
	ID OptStringInt64 `json:"id"`
}

Ref: #/components/schemas/PhoneNumbersJobPhoneNumber

func (*PhoneNumbersJobPhoneNumber) Decode

Decode decodes PhoneNumbersJobPhoneNumber from json.

func (*PhoneNumbersJobPhoneNumber) Encode

func (s *PhoneNumbersJobPhoneNumber) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PhoneNumbersJobPhoneNumber) GetID

GetID returns the value of ID.

func (*PhoneNumbersJobPhoneNumber) GetPhoneNumber

func (s *PhoneNumbersJobPhoneNumber) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PhoneNumbersJobPhoneNumber) MarshalJSON

func (s *PhoneNumbersJobPhoneNumber) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumbersJobPhoneNumber) SetID

SetID sets the value of ID.

func (*PhoneNumbersJobPhoneNumber) SetPhoneNumber

func (s *PhoneNumbersJobPhoneNumber) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PhoneNumbersJobPhoneNumber) UnmarshalJSON

func (s *PhoneNumbersJobPhoneNumber) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PhoneNumbersJobStatus

type PhoneNumbersJobStatus string

Indicates the completion status of the background update.

const (
	PhoneNumbersJobStatusPending    PhoneNumbersJobStatus = "pending"
	PhoneNumbersJobStatusInProgress PhoneNumbersJobStatus = "in_progress"
	PhoneNumbersJobStatusCompleted  PhoneNumbersJobStatus = "completed"
	PhoneNumbersJobStatusFailed     PhoneNumbersJobStatus = "failed"
	PhoneNumbersJobStatusExpired    PhoneNumbersJobStatus = "expired"
)

func (PhoneNumbersJobStatus) AllValues

AllValues returns all PhoneNumbersJobStatus values.

func (*PhoneNumbersJobStatus) Decode

func (s *PhoneNumbersJobStatus) Decode(d *jx.Decoder) error

Decode decodes PhoneNumbersJobStatus from json.

func (PhoneNumbersJobStatus) Encode

func (s PhoneNumbersJobStatus) Encode(e *jx.Encoder)

Encode encodes PhoneNumbersJobStatus as json.

func (PhoneNumbersJobStatus) MarshalJSON

func (s PhoneNumbersJobStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumbersJobStatus) MarshalText

func (s PhoneNumbersJobStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumbersJobStatus) UnmarshalJSON

func (s *PhoneNumbersJobStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumbersJobStatus) UnmarshalText

func (s *PhoneNumbersJobStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumbersJobStatus) Validate

func (s PhoneNumbersJobStatus) Validate() error

type PhoneNumbersJobSuccessfulOperation

type PhoneNumbersJobSuccessfulOperation struct {
	// The phone number in e164 format.
	PhoneNumber OptString `json:"phone_number"`
	// The phone number's ID.
	ID OptStringInt64 `json:"id"`
}

Ref: #/components/schemas/PhoneNumbersJobSuccessfulOperation

func (*PhoneNumbersJobSuccessfulOperation) Decode

Decode decodes PhoneNumbersJobSuccessfulOperation from json.

func (*PhoneNumbersJobSuccessfulOperation) Encode

Encode implements json.Marshaler.

func (*PhoneNumbersJobSuccessfulOperation) GetID

GetID returns the value of ID.

func (*PhoneNumbersJobSuccessfulOperation) GetPhoneNumber

func (s *PhoneNumbersJobSuccessfulOperation) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PhoneNumbersJobSuccessfulOperation) MarshalJSON

func (s *PhoneNumbersJobSuccessfulOperation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumbersJobSuccessfulOperation) SetID

SetID sets the value of ID.

func (*PhoneNumbersJobSuccessfulOperation) SetPhoneNumber

func (s *PhoneNumbersJobSuccessfulOperation) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PhoneNumbersJobSuccessfulOperation) UnmarshalJSON

func (s *PhoneNumbersJobSuccessfulOperation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PhoneNumbersJobType

type PhoneNumbersJobType string

Identifies the type of the background job.

const (
	PhoneNumbersJobTypeUpdateEmergencySettings PhoneNumbersJobType = "update_emergency_settings"
	PhoneNumbersJobTypeDeletePhoneNumbers      PhoneNumbersJobType = "delete_phone_numbers"
	PhoneNumbersJobTypeUpdatePhoneNumbers      PhoneNumbersJobType = "update_phone_numbers"
)

func (PhoneNumbersJobType) AllValues

AllValues returns all PhoneNumbersJobType values.

func (*PhoneNumbersJobType) Decode

func (s *PhoneNumbersJobType) Decode(d *jx.Decoder) error

Decode decodes PhoneNumbersJobType from json.

func (PhoneNumbersJobType) Encode

func (s PhoneNumbersJobType) Encode(e *jx.Encoder)

Encode encodes PhoneNumbersJobType as json.

func (PhoneNumbersJobType) MarshalJSON

func (s PhoneNumbersJobType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PhoneNumbersJobType) MarshalText

func (s PhoneNumbersJobType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PhoneNumbersJobType) UnmarshalJSON

func (s *PhoneNumbersJobType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumbersJobType) UnmarshalText

func (s *PhoneNumbersJobType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PhoneNumbersJobType) Validate

func (s PhoneNumbersJobType) Validate() error

type PhoneNumbersJobUpdateEmergencySettingsRequest

type PhoneNumbersJobUpdateEmergencySettingsRequest struct {
	PhoneNumbers []string `json:"phone_numbers"`
	// Indicates whether to enable emergency services on this number.
	EmergencyEnabled bool `json:"emergency_enabled"`
	// Identifies the address to be used with emergency services.
	EmergencyAddressID int64 `json:"emergency_address_id"`
}

Ref: #/components/schemas/PhoneNumbersJobUpdateEmergencySettingsRequest

func (*PhoneNumbersJobUpdateEmergencySettingsRequest) Decode

Decode decodes PhoneNumbersJobUpdateEmergencySettingsRequest from json.

func (*PhoneNumbersJobUpdateEmergencySettingsRequest) Encode

Encode implements json.Marshaler.

func (*PhoneNumbersJobUpdateEmergencySettingsRequest) GetEmergencyAddressID

func (s *PhoneNumbersJobUpdateEmergencySettingsRequest) GetEmergencyAddressID() int64

GetEmergencyAddressID returns the value of EmergencyAddressID.

func (*PhoneNumbersJobUpdateEmergencySettingsRequest) GetEmergencyEnabled

func (s *PhoneNumbersJobUpdateEmergencySettingsRequest) GetEmergencyEnabled() bool

GetEmergencyEnabled returns the value of EmergencyEnabled.

func (*PhoneNumbersJobUpdateEmergencySettingsRequest) GetPhoneNumbers

GetPhoneNumbers returns the value of PhoneNumbers.

func (*PhoneNumbersJobUpdateEmergencySettingsRequest) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumbersJobUpdateEmergencySettingsRequest) SetEmergencyAddressID

func (s *PhoneNumbersJobUpdateEmergencySettingsRequest) SetEmergencyAddressID(val int64)

SetEmergencyAddressID sets the value of EmergencyAddressID.

func (*PhoneNumbersJobUpdateEmergencySettingsRequest) SetEmergencyEnabled

func (s *PhoneNumbersJobUpdateEmergencySettingsRequest) SetEmergencyEnabled(val bool)

SetEmergencyEnabled sets the value of EmergencyEnabled.

func (*PhoneNumbersJobUpdateEmergencySettingsRequest) SetPhoneNumbers

func (s *PhoneNumbersJobUpdateEmergencySettingsRequest) SetPhoneNumbers(val []string)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*PhoneNumbersJobUpdateEmergencySettingsRequest) UnmarshalJSON

func (s *PhoneNumbersJobUpdateEmergencySettingsRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumbersJobUpdateEmergencySettingsRequest) Validate

type PhoneNumbersJobUpdatePhoneNumbersRequest

type PhoneNumbersJobUpdatePhoneNumbersRequest struct {
	// Array of phone number ids and/or phone numbers in E164 format to update.
	PhoneNumbers []string `json:"phone_numbers"`
	// A list of user-assigned tags to help organize phone numbers.
	Tags []string `json:"tags"`
	// If someone attempts to port your phone number away from Telnyx and your phone number has an
	// external PIN set, we will attempt to verify that you provided the correct external PIN to the
	// winning carrier. Note that not all carriers cooperate with this security mechanism.
	ExternalPin OptString `json:"external_pin"`
	// A customer reference string for customer look ups.
	CustomerReference OptString `json:"customer_reference"`
	// Identifies the connection associated with the phone number.
	ConnectionID OptString `json:"connection_id"`
	// Identifies the billing group associated with the phone number.
	BillingGroupID OptString                                `json:"billing_group_id"`
	Voice          OptUpdatePhoneNumberVoiceSettingsRequest `json:"voice"`
}

Ref: #/components/schemas/PhoneNumbersJobUpdatePhoneNumbersRequest

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) Decode

Decode decodes PhoneNumbersJobUpdatePhoneNumbersRequest from json.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) Encode

Encode implements json.Marshaler.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) GetBillingGroupID

func (s *PhoneNumbersJobUpdatePhoneNumbersRequest) GetBillingGroupID() OptString

GetBillingGroupID returns the value of BillingGroupID.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) GetConnectionID

GetConnectionID returns the value of ConnectionID.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) GetCustomerReference

func (s *PhoneNumbersJobUpdatePhoneNumbersRequest) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) GetExternalPin

GetExternalPin returns the value of ExternalPin.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) GetPhoneNumbers

func (s *PhoneNumbersJobUpdatePhoneNumbersRequest) GetPhoneNumbers() []string

GetPhoneNumbers returns the value of PhoneNumbers.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) GetTags

GetTags returns the value of Tags.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) GetVoice

GetVoice returns the value of Voice.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) MarshalJSON

func (s *PhoneNumbersJobUpdatePhoneNumbersRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) SetBillingGroupID

func (s *PhoneNumbersJobUpdatePhoneNumbersRequest) SetBillingGroupID(val OptString)

SetBillingGroupID sets the value of BillingGroupID.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) SetConnectionID

func (s *PhoneNumbersJobUpdatePhoneNumbersRequest) SetConnectionID(val OptString)

SetConnectionID sets the value of ConnectionID.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) SetCustomerReference

func (s *PhoneNumbersJobUpdatePhoneNumbersRequest) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) SetExternalPin

func (s *PhoneNumbersJobUpdatePhoneNumbersRequest) SetExternalPin(val OptString)

SetExternalPin sets the value of ExternalPin.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) SetPhoneNumbers

func (s *PhoneNumbersJobUpdatePhoneNumbersRequest) SetPhoneNumbers(val []string)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) SetTags

SetTags sets the value of Tags.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) SetVoice

SetVoice sets the value of Voice.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) UnmarshalJSON

func (s *PhoneNumbersJobUpdatePhoneNumbersRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhoneNumbersJobUpdatePhoneNumbersRequest) Validate

type PlayAudioUrlRequest

type PlayAudioUrlRequest struct {
	// The URL of a file to be played back on the call. The URL can point to either a WAV or MP3 file.
	// media_name and audio_url cannot be used together in one request.
	AudioURL OptString `json:"audio_url"`
	// The media_name of a file to be played back on the call. The media_name must point to a file
	// previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either
	// be a WAV or MP3 file.
	MediaName OptString `json:"media_name"`
	// The number of times the audio file should be played. If supplied, the value must be an integer
	// between 1 and 100, or the special string `infinity` for an endless loop.
	Loop OptLoopcount `json:"loop"`
	// When enabled, audio will be mixed on top of any other audio that is actively being played back.
	// Note that `overlay: true` will only work if there is another audio file already being played on
	// the call.
	Overlay OptBool `json:"overlay"`
	// When specified, it stops the current audio being played. Specify `current` to stop the current
	// audio being played, and to play the next file in the queue. Specify `all` to stop the current
	// audio file being played and to also clear all audio files from the queue.
	Stop OptString `json:"stop"`
	// Specifies the leg or legs on which audio will be played. If supplied, the value must be either
	// `self`, `opposite` or `both`.
	TargetLegs OptString `json:"target_legs"`
	// Caches the audio file. Useful when playing the same audio file multiple times during the call.
	CacheAudio OptBool `json:"cache_audio"`
	// Specifies the type of audio provided in `audio_url` or `playback_content`.
	AudioType OptPlayAudioUrlRequestAudioType `json:"audio_type"`
	// Allows a user to provide base64 encoded mp3 or wav. Note: when using this parameter, `media_url`
	// and `media_name` in the `playback_started` and `playback_ended` webhooks will be empty.
	PlaybackContent OptString `json:"playback_content"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/PlayAudioUrlRequest

func (*PlayAudioUrlRequest) Decode

func (s *PlayAudioUrlRequest) Decode(d *jx.Decoder) error

Decode decodes PlayAudioUrlRequest from json.

func (*PlayAudioUrlRequest) Encode

func (s *PlayAudioUrlRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PlayAudioUrlRequest) GetAudioType

GetAudioType returns the value of AudioType.

func (*PlayAudioUrlRequest) GetAudioURL

func (s *PlayAudioUrlRequest) GetAudioURL() OptString

GetAudioURL returns the value of AudioURL.

func (*PlayAudioUrlRequest) GetCacheAudio

func (s *PlayAudioUrlRequest) GetCacheAudio() OptBool

GetCacheAudio returns the value of CacheAudio.

func (*PlayAudioUrlRequest) GetClientState

func (s *PlayAudioUrlRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*PlayAudioUrlRequest) GetCommandID

func (s *PlayAudioUrlRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*PlayAudioUrlRequest) GetLoop

func (s *PlayAudioUrlRequest) GetLoop() OptLoopcount

GetLoop returns the value of Loop.

func (*PlayAudioUrlRequest) GetMediaName

func (s *PlayAudioUrlRequest) GetMediaName() OptString

GetMediaName returns the value of MediaName.

func (*PlayAudioUrlRequest) GetOverlay

func (s *PlayAudioUrlRequest) GetOverlay() OptBool

GetOverlay returns the value of Overlay.

func (*PlayAudioUrlRequest) GetPlaybackContent

func (s *PlayAudioUrlRequest) GetPlaybackContent() OptString

GetPlaybackContent returns the value of PlaybackContent.

func (*PlayAudioUrlRequest) GetStop

func (s *PlayAudioUrlRequest) GetStop() OptString

GetStop returns the value of Stop.

func (*PlayAudioUrlRequest) GetTargetLegs

func (s *PlayAudioUrlRequest) GetTargetLegs() OptString

GetTargetLegs returns the value of TargetLegs.

func (*PlayAudioUrlRequest) MarshalJSON

func (s *PlayAudioUrlRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PlayAudioUrlRequest) SetAudioType

SetAudioType sets the value of AudioType.

func (*PlayAudioUrlRequest) SetAudioURL

func (s *PlayAudioUrlRequest) SetAudioURL(val OptString)

SetAudioURL sets the value of AudioURL.

func (*PlayAudioUrlRequest) SetCacheAudio

func (s *PlayAudioUrlRequest) SetCacheAudio(val OptBool)

SetCacheAudio sets the value of CacheAudio.

func (*PlayAudioUrlRequest) SetClientState

func (s *PlayAudioUrlRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*PlayAudioUrlRequest) SetCommandID

func (s *PlayAudioUrlRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*PlayAudioUrlRequest) SetLoop

func (s *PlayAudioUrlRequest) SetLoop(val OptLoopcount)

SetLoop sets the value of Loop.

func (*PlayAudioUrlRequest) SetMediaName

func (s *PlayAudioUrlRequest) SetMediaName(val OptString)

SetMediaName sets the value of MediaName.

func (*PlayAudioUrlRequest) SetOverlay

func (s *PlayAudioUrlRequest) SetOverlay(val OptBool)

SetOverlay sets the value of Overlay.

func (*PlayAudioUrlRequest) SetPlaybackContent

func (s *PlayAudioUrlRequest) SetPlaybackContent(val OptString)

SetPlaybackContent sets the value of PlaybackContent.

func (*PlayAudioUrlRequest) SetStop

func (s *PlayAudioUrlRequest) SetStop(val OptString)

SetStop sets the value of Stop.

func (*PlayAudioUrlRequest) SetTargetLegs

func (s *PlayAudioUrlRequest) SetTargetLegs(val OptString)

SetTargetLegs sets the value of TargetLegs.

func (*PlayAudioUrlRequest) UnmarshalJSON

func (s *PlayAudioUrlRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PlayAudioUrlRequest) Validate

func (s *PlayAudioUrlRequest) Validate() error

type PlayAudioUrlRequestAudioType

type PlayAudioUrlRequestAudioType string

Specifies the type of audio provided in `audio_url` or `playback_content`.

const (
	PlayAudioUrlRequestAudioTypeMp3 PlayAudioUrlRequestAudioType = "mp3"
	PlayAudioUrlRequestAudioTypeWav PlayAudioUrlRequestAudioType = "wav"
)

func (PlayAudioUrlRequestAudioType) AllValues

AllValues returns all PlayAudioUrlRequestAudioType values.

func (*PlayAudioUrlRequestAudioType) Decode

Decode decodes PlayAudioUrlRequestAudioType from json.

func (PlayAudioUrlRequestAudioType) Encode

Encode encodes PlayAudioUrlRequestAudioType as json.

func (PlayAudioUrlRequestAudioType) MarshalJSON

func (s PlayAudioUrlRequestAudioType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PlayAudioUrlRequestAudioType) MarshalText

func (s PlayAudioUrlRequestAudioType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PlayAudioUrlRequestAudioType) UnmarshalJSON

func (s *PlayAudioUrlRequestAudioType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PlayAudioUrlRequestAudioType) UnmarshalText

func (s *PlayAudioUrlRequestAudioType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PlayAudioUrlRequestAudioType) Validate

func (s PlayAudioUrlRequestAudioType) Validate() error

type PlayBeep

type PlayBeep bool

type PlaybackStopRequest

type PlaybackStopRequest struct {
	// When enabled, it stops the audio being played in the overlay queue.
	Overlay OptBool `json:"overlay"`
	// Use `current` to stop the current audio being played. Use `all` to stop the current audio file
	// being played and clear all audio files from the queue.
	Stop OptString `json:"stop"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/PlaybackStopRequest

func (*PlaybackStopRequest) Decode

func (s *PlaybackStopRequest) Decode(d *jx.Decoder) error

Decode decodes PlaybackStopRequest from json.

func (*PlaybackStopRequest) Encode

func (s *PlaybackStopRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PlaybackStopRequest) GetClientState

func (s *PlaybackStopRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*PlaybackStopRequest) GetCommandID

func (s *PlaybackStopRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*PlaybackStopRequest) GetOverlay

func (s *PlaybackStopRequest) GetOverlay() OptBool

GetOverlay returns the value of Overlay.

func (*PlaybackStopRequest) GetStop

func (s *PlaybackStopRequest) GetStop() OptString

GetStop returns the value of Stop.

func (*PlaybackStopRequest) MarshalJSON

func (s *PlaybackStopRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PlaybackStopRequest) SetClientState

func (s *PlaybackStopRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*PlaybackStopRequest) SetCommandID

func (s *PlaybackStopRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*PlaybackStopRequest) SetOverlay

func (s *PlaybackStopRequest) SetOverlay(val OptBool)

SetOverlay sets the value of Overlay.

func (*PlaybackStopRequest) SetStop

func (s *PlaybackStopRequest) SetStop(val OptString)

SetStop sets the value of Stop.

func (*PlaybackStopRequest) UnmarshalJSON

func (s *PlaybackStopRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortOutListSupportingDocumentsResponse

type PortOutListSupportingDocumentsResponse struct {
	Data []PortOutSupportingDocument `json:"data"`
}

func (*PortOutListSupportingDocumentsResponse) Decode

Decode decodes PortOutListSupportingDocumentsResponse from json.

func (*PortOutListSupportingDocumentsResponse) Encode

Encode implements json.Marshaler.

func (*PortOutListSupportingDocumentsResponse) GetData

GetData returns the value of Data.

func (*PortOutListSupportingDocumentsResponse) MarshalJSON

func (s *PortOutListSupportingDocumentsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortOutListSupportingDocumentsResponse) SetData

SetData sets the value of Data.

func (*PortOutListSupportingDocumentsResponse) UnmarshalJSON

func (s *PortOutListSupportingDocumentsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortOutListSupportingDocumentsResponse) Validate

type PortOutSupportingDocument

type PortOutSupportingDocument struct {
	ID uuid.UUID `json:"id"`
	// Identifies the type of the resource.
	RecordType string `json:"record_type"`
	// Identifies the type of the document.
	Type PortOutSupportingDocumentType `json:"type"`
	// Identifies the associated port request.
	PortoutID uuid.UUID `json:"portout_id"`
	// Identifies the associated document.
	DocumentID uuid.UUID `json:"document_id"`
	// Supporting document creation timestamp in ISO 8601 format.
	CreatedAt string `json:"created_at"`
	// Supporting document last changed timestamp in ISO 8601 format.
	UpdatedAt string `json:"updated_at"`
}

Ref: #/components/schemas/PortOutSupportingDocument

func (*PortOutSupportingDocument) Decode

func (s *PortOutSupportingDocument) Decode(d *jx.Decoder) error

Decode decodes PortOutSupportingDocument from json.

func (*PortOutSupportingDocument) Encode

func (s *PortOutSupportingDocument) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortOutSupportingDocument) GetCreatedAt

func (s *PortOutSupportingDocument) GetCreatedAt() string

GetCreatedAt returns the value of CreatedAt.

func (*PortOutSupportingDocument) GetDocumentID

func (s *PortOutSupportingDocument) GetDocumentID() uuid.UUID

GetDocumentID returns the value of DocumentID.

func (*PortOutSupportingDocument) GetID

func (s *PortOutSupportingDocument) GetID() uuid.UUID

GetID returns the value of ID.

func (*PortOutSupportingDocument) GetPortoutID

func (s *PortOutSupportingDocument) GetPortoutID() uuid.UUID

GetPortoutID returns the value of PortoutID.

func (*PortOutSupportingDocument) GetRecordType

func (s *PortOutSupportingDocument) GetRecordType() string

GetRecordType returns the value of RecordType.

func (*PortOutSupportingDocument) GetType

GetType returns the value of Type.

func (*PortOutSupportingDocument) GetUpdatedAt

func (s *PortOutSupportingDocument) GetUpdatedAt() string

GetUpdatedAt returns the value of UpdatedAt.

func (*PortOutSupportingDocument) MarshalJSON

func (s *PortOutSupportingDocument) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortOutSupportingDocument) SetCreatedAt

func (s *PortOutSupportingDocument) SetCreatedAt(val string)

SetCreatedAt sets the value of CreatedAt.

func (*PortOutSupportingDocument) SetDocumentID

func (s *PortOutSupportingDocument) SetDocumentID(val uuid.UUID)

SetDocumentID sets the value of DocumentID.

func (*PortOutSupportingDocument) SetID

func (s *PortOutSupportingDocument) SetID(val uuid.UUID)

SetID sets the value of ID.

func (*PortOutSupportingDocument) SetPortoutID

func (s *PortOutSupportingDocument) SetPortoutID(val uuid.UUID)

SetPortoutID sets the value of PortoutID.

func (*PortOutSupportingDocument) SetRecordType

func (s *PortOutSupportingDocument) SetRecordType(val string)

SetRecordType sets the value of RecordType.

func (*PortOutSupportingDocument) SetType

SetType sets the value of Type.

func (*PortOutSupportingDocument) SetUpdatedAt

func (s *PortOutSupportingDocument) SetUpdatedAt(val string)

SetUpdatedAt sets the value of UpdatedAt.

func (*PortOutSupportingDocument) UnmarshalJSON

func (s *PortOutSupportingDocument) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortOutSupportingDocument) Validate

func (s *PortOutSupportingDocument) Validate() error

type PortOutSupportingDocumentType

type PortOutSupportingDocumentType string

Identifies the type of the document.

const (
	PortOutSupportingDocumentTypeLoa     PortOutSupportingDocumentType = "loa"
	PortOutSupportingDocumentTypeInvoice PortOutSupportingDocumentType = "invoice"
)

func (PortOutSupportingDocumentType) AllValues

AllValues returns all PortOutSupportingDocumentType values.

func (*PortOutSupportingDocumentType) Decode

Decode decodes PortOutSupportingDocumentType from json.

func (PortOutSupportingDocumentType) Encode

Encode encodes PortOutSupportingDocumentType as json.

func (PortOutSupportingDocumentType) MarshalJSON

func (s PortOutSupportingDocumentType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortOutSupportingDocumentType) MarshalText

func (s PortOutSupportingDocumentType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortOutSupportingDocumentType) UnmarshalJSON

func (s *PortOutSupportingDocumentType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortOutSupportingDocumentType) UnmarshalText

func (s *PortOutSupportingDocumentType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortOutSupportingDocumentType) Validate

func (s PortOutSupportingDocumentType) Validate() error

type Portability

type Portability struct {
	// Local Routing Number, if assigned to the requested phone number.
	Lrn OptString `json:"lrn"`
	// Indicates whether or not the requested phone number has been ported.
	PortedStatus OptPortabilityPortedStatus `json:"ported_status"`
	// ISO-formatted date when the requested phone number has been ported.
	PortedDate OptString `json:"ported_date"`
	// Operating Company Name (OCN) as per the Local Exchange Routing Guide (LERG) database.
	Ocn OptString `json:"ocn"`
	// Type of number.
	LineType OptString `json:"line_type"`
	// SPID (Service Provider ID).
	Spid OptString `json:"spid"`
	// Service provider name.
	SpidCarrierName OptString `json:"spid_carrier_name"`
	// Service provider type.
	SpidCarrierType OptString `json:"spid_carrier_type"`
	// Alternative SPID (Service Provider ID). Often used when a carrier is using a number from another
	// carrier.
	Altspid OptString `json:"altspid"`
	// Alternative service provider name.
	AltspidCarrierName OptString `json:"altspid_carrier_name"`
	// Alternative service provider type.
	AltspidCarrierType OptString `json:"altspid_carrier_type"`
	// City name extracted from the locality in the Local Exchange Routing Guide (LERG) database.
	City  OptString `json:"city"`
	State OptString `json:"state"`
}

Ref: #/components/schemas/Portability

func (*Portability) Decode

func (s *Portability) Decode(d *jx.Decoder) error

Decode decodes Portability from json.

func (*Portability) Encode

func (s *Portability) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Portability) GetAltspid

func (s *Portability) GetAltspid() OptString

GetAltspid returns the value of Altspid.

func (*Portability) GetAltspidCarrierName

func (s *Portability) GetAltspidCarrierName() OptString

GetAltspidCarrierName returns the value of AltspidCarrierName.

func (*Portability) GetAltspidCarrierType

func (s *Portability) GetAltspidCarrierType() OptString

GetAltspidCarrierType returns the value of AltspidCarrierType.

func (*Portability) GetCity

func (s *Portability) GetCity() OptString

GetCity returns the value of City.

func (*Portability) GetLineType

func (s *Portability) GetLineType() OptString

GetLineType returns the value of LineType.

func (*Portability) GetLrn

func (s *Portability) GetLrn() OptString

GetLrn returns the value of Lrn.

func (*Portability) GetOcn

func (s *Portability) GetOcn() OptString

GetOcn returns the value of Ocn.

func (*Portability) GetPortedDate

func (s *Portability) GetPortedDate() OptString

GetPortedDate returns the value of PortedDate.

func (*Portability) GetPortedStatus

func (s *Portability) GetPortedStatus() OptPortabilityPortedStatus

GetPortedStatus returns the value of PortedStatus.

func (*Portability) GetSpid

func (s *Portability) GetSpid() OptString

GetSpid returns the value of Spid.

func (*Portability) GetSpidCarrierName

func (s *Portability) GetSpidCarrierName() OptString

GetSpidCarrierName returns the value of SpidCarrierName.

func (*Portability) GetSpidCarrierType

func (s *Portability) GetSpidCarrierType() OptString

GetSpidCarrierType returns the value of SpidCarrierType.

func (*Portability) GetState

func (s *Portability) GetState() OptString

GetState returns the value of State.

func (*Portability) MarshalJSON

func (s *Portability) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Portability) SetAltspid

func (s *Portability) SetAltspid(val OptString)

SetAltspid sets the value of Altspid.

func (*Portability) SetAltspidCarrierName

func (s *Portability) SetAltspidCarrierName(val OptString)

SetAltspidCarrierName sets the value of AltspidCarrierName.

func (*Portability) SetAltspidCarrierType

func (s *Portability) SetAltspidCarrierType(val OptString)

SetAltspidCarrierType sets the value of AltspidCarrierType.

func (*Portability) SetCity

func (s *Portability) SetCity(val OptString)

SetCity sets the value of City.

func (*Portability) SetLineType

func (s *Portability) SetLineType(val OptString)

SetLineType sets the value of LineType.

func (*Portability) SetLrn

func (s *Portability) SetLrn(val OptString)

SetLrn sets the value of Lrn.

func (*Portability) SetOcn

func (s *Portability) SetOcn(val OptString)

SetOcn sets the value of Ocn.

func (*Portability) SetPortedDate

func (s *Portability) SetPortedDate(val OptString)

SetPortedDate sets the value of PortedDate.

func (*Portability) SetPortedStatus

func (s *Portability) SetPortedStatus(val OptPortabilityPortedStatus)

SetPortedStatus sets the value of PortedStatus.

func (*Portability) SetSpid

func (s *Portability) SetSpid(val OptString)

SetSpid sets the value of Spid.

func (*Portability) SetSpidCarrierName

func (s *Portability) SetSpidCarrierName(val OptString)

SetSpidCarrierName sets the value of SpidCarrierName.

func (*Portability) SetSpidCarrierType

func (s *Portability) SetSpidCarrierType(val OptString)

SetSpidCarrierType sets the value of SpidCarrierType.

func (*Portability) SetState

func (s *Portability) SetState(val OptString)

SetState sets the value of State.

func (*Portability) UnmarshalJSON

func (s *Portability) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Portability) Validate

func (s *Portability) Validate() error

type PortabilityCheckDetails

type PortabilityCheckDetails struct {
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// Indicates whether this phone number is FastPort eligible.
	FastPortable OptBool `json:"fast_portable"`
	// If this phone number is not portable, explains why. Empty string if the number is portable.
	NotPortableReason OptString `json:"not_portable_reason"`
	// The +E.164 formatted phone number this result is about.
	PhoneNumber OptString `json:"phone_number"`
	// Indicates whether this phone number is portable.
	Portable OptBool `json:"portable"`
}

Ref: #/components/schemas/PortabilityCheckDetails

func (*PortabilityCheckDetails) Decode

func (s *PortabilityCheckDetails) Decode(d *jx.Decoder) error

Decode decodes PortabilityCheckDetails from json.

func (*PortabilityCheckDetails) Encode

func (s *PortabilityCheckDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortabilityCheckDetails) GetFastPortable

func (s *PortabilityCheckDetails) GetFastPortable() OptBool

GetFastPortable returns the value of FastPortable.

func (*PortabilityCheckDetails) GetNotPortableReason

func (s *PortabilityCheckDetails) GetNotPortableReason() OptString

GetNotPortableReason returns the value of NotPortableReason.

func (*PortabilityCheckDetails) GetPhoneNumber

func (s *PortabilityCheckDetails) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PortabilityCheckDetails) GetPortable

func (s *PortabilityCheckDetails) GetPortable() OptBool

GetPortable returns the value of Portable.

func (*PortabilityCheckDetails) GetRecordType

func (s *PortabilityCheckDetails) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortabilityCheckDetails) MarshalJSON

func (s *PortabilityCheckDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortabilityCheckDetails) SetFastPortable

func (s *PortabilityCheckDetails) SetFastPortable(val OptBool)

SetFastPortable sets the value of FastPortable.

func (*PortabilityCheckDetails) SetNotPortableReason

func (s *PortabilityCheckDetails) SetNotPortableReason(val OptString)

SetNotPortableReason sets the value of NotPortableReason.

func (*PortabilityCheckDetails) SetPhoneNumber

func (s *PortabilityCheckDetails) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PortabilityCheckDetails) SetPortable

func (s *PortabilityCheckDetails) SetPortable(val OptBool)

SetPortable sets the value of Portable.

func (*PortabilityCheckDetails) SetRecordType

func (s *PortabilityCheckDetails) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortabilityCheckDetails) UnmarshalJSON

func (s *PortabilityCheckDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortabilityCheckResponse

type PortabilityCheckResponse struct {
	Data []PortabilityCheckDetails `json:"data"`
}

func (*PortabilityCheckResponse) Decode

func (s *PortabilityCheckResponse) Decode(d *jx.Decoder) error

Decode decodes PortabilityCheckResponse from json.

func (*PortabilityCheckResponse) Encode

func (s *PortabilityCheckResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortabilityCheckResponse) GetData

GetData returns the value of Data.

func (*PortabilityCheckResponse) MarshalJSON

func (s *PortabilityCheckResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortabilityCheckResponse) SetData

SetData sets the value of Data.

func (*PortabilityCheckResponse) UnmarshalJSON

func (s *PortabilityCheckResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortabilityPortedStatus

type PortabilityPortedStatus string

Indicates whether or not the requested phone number has been ported.

const (
	PortabilityPortedStatusY     PortabilityPortedStatus = "Y"
	PortabilityPortedStatusN     PortabilityPortedStatus = "N"
	PortabilityPortedStatusEmpty PortabilityPortedStatus = ""
)

func (PortabilityPortedStatus) AllValues

AllValues returns all PortabilityPortedStatus values.

func (*PortabilityPortedStatus) Decode

func (s *PortabilityPortedStatus) Decode(d *jx.Decoder) error

Decode decodes PortabilityPortedStatus from json.

func (PortabilityPortedStatus) Encode

func (s PortabilityPortedStatus) Encode(e *jx.Encoder)

Encode encodes PortabilityPortedStatus as json.

func (PortabilityPortedStatus) MarshalJSON

func (s PortabilityPortedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortabilityPortedStatus) MarshalText

func (s PortabilityPortedStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortabilityPortedStatus) UnmarshalJSON

func (s *PortabilityPortedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortabilityPortedStatus) UnmarshalText

func (s *PortabilityPortedStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortabilityPortedStatus) Validate

func (s PortabilityPortedStatus) Validate() error

type PortabilityStatus

type PortabilityStatus string

Specifies whether Telnyx is able to confirm portability this number in the United States & Canada. International phone numbers are provisional by default. Ref: #/components/schemas/PortabilityStatus

const (
	PortabilityStatusPending     PortabilityStatus = "pending"
	PortabilityStatusConfirmed   PortabilityStatus = "confirmed"
	PortabilityStatusProvisional PortabilityStatus = "provisional"
)

func (PortabilityStatus) AllValues

func (PortabilityStatus) AllValues() []PortabilityStatus

AllValues returns all PortabilityStatus values.

func (*PortabilityStatus) Decode

func (s *PortabilityStatus) Decode(d *jx.Decoder) error

Decode decodes PortabilityStatus from json.

func (PortabilityStatus) Encode

func (s PortabilityStatus) Encode(e *jx.Encoder)

Encode encodes PortabilityStatus as json.

func (PortabilityStatus) MarshalJSON

func (s PortabilityStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortabilityStatus) MarshalText

func (s PortabilityStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortabilityStatus) UnmarshalJSON

func (s *PortabilityStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortabilityStatus) UnmarshalText

func (s *PortabilityStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortabilityStatus) Validate

func (s PortabilityStatus) Validate() error

type PortingAdditionalDocument

type PortingAdditionalDocument struct {
	// Uniquely identifies this additional document.
	ID OptUUID `json:"id"`
	// Identifies the type of additional document.
	DocumentType OptPortingAdditionalDocumentDocumentType `json:"document_type"`
	// Identifies the associated document.
	DocumentID OptUUID `json:"document_id"`
	// The filename of the related document.
	Filename OptString `json:"filename"`
	// The content type of the related document.
	ContentType OptString `json:"content_type"`
	// Identifies the associated porting order.
	PortingOrderID OptUUID `json:"porting_order_id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptDateTime `json:"created_at"`
	// ISO 8601 formatted date indicating when the resource was updated.
	UpdatedAt OptDateTime `json:"updated_at"`
}

Ref: #/components/schemas/PortingAdditionalDocument

func (*PortingAdditionalDocument) Decode

func (s *PortingAdditionalDocument) Decode(d *jx.Decoder) error

Decode decodes PortingAdditionalDocument from json.

func (*PortingAdditionalDocument) Encode

func (s *PortingAdditionalDocument) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingAdditionalDocument) GetContentType

func (s *PortingAdditionalDocument) GetContentType() OptString

GetContentType returns the value of ContentType.

func (*PortingAdditionalDocument) GetCreatedAt

func (s *PortingAdditionalDocument) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*PortingAdditionalDocument) GetDocumentID

func (s *PortingAdditionalDocument) GetDocumentID() OptUUID

GetDocumentID returns the value of DocumentID.

func (*PortingAdditionalDocument) GetDocumentType

GetDocumentType returns the value of DocumentType.

func (*PortingAdditionalDocument) GetFilename

func (s *PortingAdditionalDocument) GetFilename() OptString

GetFilename returns the value of Filename.

func (*PortingAdditionalDocument) GetID

GetID returns the value of ID.

func (*PortingAdditionalDocument) GetPortingOrderID

func (s *PortingAdditionalDocument) GetPortingOrderID() OptUUID

GetPortingOrderID returns the value of PortingOrderID.

func (*PortingAdditionalDocument) GetRecordType

func (s *PortingAdditionalDocument) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingAdditionalDocument) GetUpdatedAt

func (s *PortingAdditionalDocument) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*PortingAdditionalDocument) MarshalJSON

func (s *PortingAdditionalDocument) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingAdditionalDocument) SetContentType

func (s *PortingAdditionalDocument) SetContentType(val OptString)

SetContentType sets the value of ContentType.

func (*PortingAdditionalDocument) SetCreatedAt

func (s *PortingAdditionalDocument) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*PortingAdditionalDocument) SetDocumentID

func (s *PortingAdditionalDocument) SetDocumentID(val OptUUID)

SetDocumentID sets the value of DocumentID.

func (*PortingAdditionalDocument) SetDocumentType

SetDocumentType sets the value of DocumentType.

func (*PortingAdditionalDocument) SetFilename

func (s *PortingAdditionalDocument) SetFilename(val OptString)

SetFilename sets the value of Filename.

func (*PortingAdditionalDocument) SetID

func (s *PortingAdditionalDocument) SetID(val OptUUID)

SetID sets the value of ID.

func (*PortingAdditionalDocument) SetPortingOrderID

func (s *PortingAdditionalDocument) SetPortingOrderID(val OptUUID)

SetPortingOrderID sets the value of PortingOrderID.

func (*PortingAdditionalDocument) SetRecordType

func (s *PortingAdditionalDocument) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingAdditionalDocument) SetUpdatedAt

func (s *PortingAdditionalDocument) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*PortingAdditionalDocument) UnmarshalJSON

func (s *PortingAdditionalDocument) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingAdditionalDocument) Validate

func (s *PortingAdditionalDocument) Validate() error

type PortingAdditionalDocumentDocumentType

type PortingAdditionalDocumentDocumentType string

Identifies the type of additional document.

const (
	PortingAdditionalDocumentDocumentTypeLoa     PortingAdditionalDocumentDocumentType = "loa"
	PortingAdditionalDocumentDocumentTypeInvoice PortingAdditionalDocumentDocumentType = "invoice"
	PortingAdditionalDocumentDocumentTypeCsr     PortingAdditionalDocumentDocumentType = "csr"
	PortingAdditionalDocumentDocumentTypeOther   PortingAdditionalDocumentDocumentType = "other"
)

func (PortingAdditionalDocumentDocumentType) AllValues

AllValues returns all PortingAdditionalDocumentDocumentType values.

func (*PortingAdditionalDocumentDocumentType) Decode

Decode decodes PortingAdditionalDocumentDocumentType from json.

func (PortingAdditionalDocumentDocumentType) Encode

Encode encodes PortingAdditionalDocumentDocumentType as json.

func (PortingAdditionalDocumentDocumentType) MarshalJSON

func (s PortingAdditionalDocumentDocumentType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingAdditionalDocumentDocumentType) MarshalText

func (s PortingAdditionalDocumentDocumentType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingAdditionalDocumentDocumentType) UnmarshalJSON

func (s *PortingAdditionalDocumentDocumentType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingAdditionalDocumentDocumentType) UnmarshalText

func (s *PortingAdditionalDocumentDocumentType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingAdditionalDocumentDocumentType) Validate

type PortingLOAConfiguration

type PortingLOAConfiguration struct {
	// Uniquely identifies the LOA configuration.
	ID OptUUID `json:"id"`
	// The name of the company.
	CompanyName OptString `json:"company_name"`
	// The organization that owns the LOA configuration.
	OrganizationID OptString `json:"organization_id"`
	// The name of the LOA configuration.
	Name OptString `json:"name"`
	Logo OptPortingLOAConfigurationLogo `json:"logo"`
	// The address of the company.
	Address OptPortingLOAConfigurationAddress `json:"address"`
	// The contact information of the company.
	Contact OptPortingLOAConfigurationContact `json:"contact"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptDateTime `json:"created_at"`
	// ISO 8601 formatted date indicating when the resource was updated.
	UpdatedAt OptDateTime `json:"updated_at"`
}

Ref: #/components/schemas/PortingLOAConfiguration

func (*PortingLOAConfiguration) Decode

func (s *PortingLOAConfiguration) Decode(d *jx.Decoder) error

Decode decodes PortingLOAConfiguration from json.

func (*PortingLOAConfiguration) Encode

func (s *PortingLOAConfiguration) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingLOAConfiguration) GetAddress

GetAddress returns the value of Address.

func (*PortingLOAConfiguration) GetCompanyName

func (s *PortingLOAConfiguration) GetCompanyName() OptString

GetCompanyName returns the value of CompanyName.

func (*PortingLOAConfiguration) GetContact

GetContact returns the value of Contact.

func (*PortingLOAConfiguration) GetCreatedAt

func (s *PortingLOAConfiguration) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*PortingLOAConfiguration) GetID

func (s *PortingLOAConfiguration) GetID() OptUUID

GetID returns the value of ID.

GetLogo returns the value of Logo.

func (*PortingLOAConfiguration) GetName

func (s *PortingLOAConfiguration) GetName() OptString

GetName returns the value of Name.

func (*PortingLOAConfiguration) GetOrganizationID

func (s *PortingLOAConfiguration) GetOrganizationID() OptString

GetOrganizationID returns the value of OrganizationID.

func (*PortingLOAConfiguration) GetRecordType

func (s *PortingLOAConfiguration) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingLOAConfiguration) GetUpdatedAt

func (s *PortingLOAConfiguration) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*PortingLOAConfiguration) MarshalJSON

func (s *PortingLOAConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingLOAConfiguration) SetAddress

SetAddress sets the value of Address.

func (*PortingLOAConfiguration) SetCompanyName

func (s *PortingLOAConfiguration) SetCompanyName(val OptString)

SetCompanyName sets the value of CompanyName.

func (*PortingLOAConfiguration) SetContact

SetContact sets the value of Contact.

func (*PortingLOAConfiguration) SetCreatedAt

func (s *PortingLOAConfiguration) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*PortingLOAConfiguration) SetID

func (s *PortingLOAConfiguration) SetID(val OptUUID)

SetID sets the value of ID.

SetLogo sets the value of Logo.

func (*PortingLOAConfiguration) SetName

func (s *PortingLOAConfiguration) SetName(val OptString)

SetName sets the value of Name.

func (*PortingLOAConfiguration) SetOrganizationID

func (s *PortingLOAConfiguration) SetOrganizationID(val OptString)

SetOrganizationID sets the value of OrganizationID.

func (*PortingLOAConfiguration) SetRecordType

func (s *PortingLOAConfiguration) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingLOAConfiguration) SetUpdatedAt

func (s *PortingLOAConfiguration) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*PortingLOAConfiguration) UnmarshalJSON

func (s *PortingLOAConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingLOAConfiguration) Validate

func (s *PortingLOAConfiguration) Validate() error

type PortingLOAConfigurationAddress

type PortingLOAConfigurationAddress struct {
	// The street address of the company.
	StreetAddress OptString `json:"street_address"`
	// The extended address of the company.
	ExtendedAddress OptString `json:"extended_address"`
	// The locality of the company.
	City OptString `json:"city"`
	// The administrative area of the company.
	State OptString `json:"state"`
	// The postal code of the company.
	ZipCode OptString `json:"zip_code"`
	// The country code of the company.
	CountryCode OptString `json:"country_code"`
}

The address of the company.

func (*PortingLOAConfigurationAddress) Decode

Decode decodes PortingLOAConfigurationAddress from json.

func (*PortingLOAConfigurationAddress) Encode

Encode implements json.Marshaler.

func (*PortingLOAConfigurationAddress) GetCity

GetCity returns the value of City.

func (*PortingLOAConfigurationAddress) GetCountryCode

func (s *PortingLOAConfigurationAddress) GetCountryCode() OptString

GetCountryCode returns the value of CountryCode.

func (*PortingLOAConfigurationAddress) GetExtendedAddress

func (s *PortingLOAConfigurationAddress) GetExtendedAddress() OptString

GetExtendedAddress returns the value of ExtendedAddress.

func (*PortingLOAConfigurationAddress) GetState

GetState returns the value of State.

func (*PortingLOAConfigurationAddress) GetStreetAddress

func (s *PortingLOAConfigurationAddress) GetStreetAddress() OptString

GetStreetAddress returns the value of StreetAddress.

func (*PortingLOAConfigurationAddress) GetZipCode

func (s *PortingLOAConfigurationAddress) GetZipCode() OptString

GetZipCode returns the value of ZipCode.

func (*PortingLOAConfigurationAddress) MarshalJSON

func (s *PortingLOAConfigurationAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingLOAConfigurationAddress) SetCity

func (s *PortingLOAConfigurationAddress) SetCity(val OptString)

SetCity sets the value of City.

func (*PortingLOAConfigurationAddress) SetCountryCode

func (s *PortingLOAConfigurationAddress) SetCountryCode(val OptString)

SetCountryCode sets the value of CountryCode.

func (*PortingLOAConfigurationAddress) SetExtendedAddress

func (s *PortingLOAConfigurationAddress) SetExtendedAddress(val OptString)

SetExtendedAddress sets the value of ExtendedAddress.

func (*PortingLOAConfigurationAddress) SetState

func (s *PortingLOAConfigurationAddress) SetState(val OptString)

SetState sets the value of State.

func (*PortingLOAConfigurationAddress) SetStreetAddress

func (s *PortingLOAConfigurationAddress) SetStreetAddress(val OptString)

SetStreetAddress sets the value of StreetAddress.

func (*PortingLOAConfigurationAddress) SetZipCode

func (s *PortingLOAConfigurationAddress) SetZipCode(val OptString)

SetZipCode sets the value of ZipCode.

func (*PortingLOAConfigurationAddress) UnmarshalJSON

func (s *PortingLOAConfigurationAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingLOAConfigurationAddress) Validate

func (s *PortingLOAConfigurationAddress) Validate() error

type PortingLOAConfigurationContact

type PortingLOAConfigurationContact struct {
	// The email address of the contact.
	Email OptString `json:"email"`
	// The phone number of the contact.
	PhoneNumber OptString `json:"phone_number"`
}

The contact information of the company.

func (*PortingLOAConfigurationContact) Decode

Decode decodes PortingLOAConfigurationContact from json.

func (*PortingLOAConfigurationContact) Encode

Encode implements json.Marshaler.

func (*PortingLOAConfigurationContact) GetEmail

GetEmail returns the value of Email.

func (*PortingLOAConfigurationContact) GetPhoneNumber

func (s *PortingLOAConfigurationContact) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PortingLOAConfigurationContact) MarshalJSON

func (s *PortingLOAConfigurationContact) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingLOAConfigurationContact) SetEmail

func (s *PortingLOAConfigurationContact) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*PortingLOAConfigurationContact) SetPhoneNumber

func (s *PortingLOAConfigurationContact) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PortingLOAConfigurationContact) UnmarshalJSON

func (s *PortingLOAConfigurationContact) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingLOAConfigurationContact) Validate

func (s *PortingLOAConfigurationContact) Validate() error
type PortingLOAConfigurationLogo struct {
	// Identifies the document that contains the logo.
	DocumentID OptUUID `json:"document_id"`
	// The content type of the logo.
	ContentType OptPortingLOAConfigurationLogoContentType `json:"content_type"`
}

The logo to be used in the LOA.

func (*PortingLOAConfigurationLogo) Decode

Decode decodes PortingLOAConfigurationLogo from json.

func (*PortingLOAConfigurationLogo) Encode

func (s *PortingLOAConfigurationLogo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingLOAConfigurationLogo) GetContentType

GetContentType returns the value of ContentType.

func (*PortingLOAConfigurationLogo) GetDocumentID

func (s *PortingLOAConfigurationLogo) GetDocumentID() OptUUID

GetDocumentID returns the value of DocumentID.

func (*PortingLOAConfigurationLogo) MarshalJSON

func (s *PortingLOAConfigurationLogo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingLOAConfigurationLogo) SetContentType

SetContentType sets the value of ContentType.

func (*PortingLOAConfigurationLogo) SetDocumentID

func (s *PortingLOAConfigurationLogo) SetDocumentID(val OptUUID)

SetDocumentID sets the value of DocumentID.

func (*PortingLOAConfigurationLogo) UnmarshalJSON

func (s *PortingLOAConfigurationLogo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingLOAConfigurationLogo) Validate

func (s *PortingLOAConfigurationLogo) Validate() error

type PortingLOAConfigurationLogoContentType

type PortingLOAConfigurationLogoContentType string

The content type of the logo.

const (
	PortingLOAConfigurationLogoContentTypeImagePNG PortingLOAConfigurationLogoContentType = "image/png"
)

func (PortingLOAConfigurationLogoContentType) AllValues

AllValues returns all PortingLOAConfigurationLogoContentType values.

func (*PortingLOAConfigurationLogoContentType) Decode

Decode decodes PortingLOAConfigurationLogoContentType from json.

func (PortingLOAConfigurationLogoContentType) Encode

Encode encodes PortingLOAConfigurationLogoContentType as json.

func (PortingLOAConfigurationLogoContentType) MarshalJSON

func (s PortingLOAConfigurationLogoContentType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingLOAConfigurationLogoContentType) MarshalText

func (s PortingLOAConfigurationLogoContentType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingLOAConfigurationLogoContentType) UnmarshalJSON

func (s *PortingLOAConfigurationLogoContentType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingLOAConfigurationLogoContentType) UnmarshalText

func (s *PortingLOAConfigurationLogoContentType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingLOAConfigurationLogoContentType) Validate

type PortingOrder

type PortingOrder struct {
	// Uniquely identifies this porting order.
	ID OptUUID `json:"id"`
	// A customer-specified reference number for customer bookkeeping purposes.
	CustomerReference OptString `json:"customer_reference"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptDateTime `json:"created_at"`
	// ISO 8601 formatted date indicating when the resource was created.
	UpdatedAt OptDateTime           `json:"updated_at"`
	Status    OptPortingOrderStatus `json:"status"`
	// A key to reference this porting order when contacting Telnyx customer support. This information is
	// not available in draft porting orders.
	SupportKey OptString `json:"support_key"`
	// A key to reference for the porting order group when contacting Telnyx customer support. This
	// information is not available for porting orders in `draft` state.
	ParentSupportKey OptString `json:"parent_support_key"`
	// Count of phone numbers associated with this porting order.
	PortingPhoneNumbersCount OptInt `json:"porting_phone_numbers_count"`
	// Identifies the old service provider.
	OldServiceProviderOcn    OptString                               `json:"old_service_provider_ocn"`
	Documents                OptPortingOrderDocuments                `json:"documents"`
	Misc                     OptPortingOrderMisc                     `json:"misc"`
	EndUser                  OptPortingOrderEndUser                  `json:"end_user"`
	ActivationSettings       OptPortingOrderActivationSettings       `json:"activation_settings"`
	PhoneNumberConfiguration OptPortingOrderPhoneNumberConfiguration `json:"phone_number_configuration"`
	// The type of the phone number.
	PhoneNumberType OptPortingOrderPhoneNumberType `json:"phone_number_type"`
	// A description of the porting order.
	Description OptString `json:"description"`
	// List of documentation requirements for porting numbers.
	Requirements []PortingOrderRequirement `json:"requirements"`
	// Is true when the required documentation is met.
	RequirementsMet OptBool                     `json:"requirements_met"`
	UserFeedback    OptPortingOrderUserFeedback `json:"user_feedback"`
	// Identifies the user (or organization) who requested the porting order.
	UserID     OptUUID `json:"user_id"`
	WebhookURL OptURI  `json:"webhook_url"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
}

Ref: #/components/schemas/PortingOrder

func (*PortingOrder) Decode

func (s *PortingOrder) Decode(d *jx.Decoder) error

Decode decodes PortingOrder from json.

func (*PortingOrder) Encode

func (s *PortingOrder) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrder) GetActivationSettings

func (s *PortingOrder) GetActivationSettings() OptPortingOrderActivationSettings

GetActivationSettings returns the value of ActivationSettings.

func (*PortingOrder) GetCreatedAt

func (s *PortingOrder) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*PortingOrder) GetCustomerReference

func (s *PortingOrder) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*PortingOrder) GetDescription

func (s *PortingOrder) GetDescription() OptString

GetDescription returns the value of Description.

func (*PortingOrder) GetDocuments

func (s *PortingOrder) GetDocuments() OptPortingOrderDocuments

GetDocuments returns the value of Documents.

func (*PortingOrder) GetEndUser

func (s *PortingOrder) GetEndUser() OptPortingOrderEndUser

GetEndUser returns the value of EndUser.

func (*PortingOrder) GetID

func (s *PortingOrder) GetID() OptUUID

GetID returns the value of ID.

func (*PortingOrder) GetMisc

func (s *PortingOrder) GetMisc() OptPortingOrderMisc

GetMisc returns the value of Misc.

func (*PortingOrder) GetOldServiceProviderOcn

func (s *PortingOrder) GetOldServiceProviderOcn() OptString

GetOldServiceProviderOcn returns the value of OldServiceProviderOcn.

func (*PortingOrder) GetParentSupportKey

func (s *PortingOrder) GetParentSupportKey() OptString

GetParentSupportKey returns the value of ParentSupportKey.

func (*PortingOrder) GetPhoneNumberConfiguration

func (s *PortingOrder) GetPhoneNumberConfiguration() OptPortingOrderPhoneNumberConfiguration

GetPhoneNumberConfiguration returns the value of PhoneNumberConfiguration.

func (*PortingOrder) GetPhoneNumberType

func (s *PortingOrder) GetPhoneNumberType() OptPortingOrderPhoneNumberType

GetPhoneNumberType returns the value of PhoneNumberType.

func (*PortingOrder) GetPortingPhoneNumbersCount

func (s *PortingOrder) GetPortingPhoneNumbersCount() OptInt

GetPortingPhoneNumbersCount returns the value of PortingPhoneNumbersCount.

func (*PortingOrder) GetRecordType

func (s *PortingOrder) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingOrder) GetRequirements

func (s *PortingOrder) GetRequirements() []PortingOrderRequirement

GetRequirements returns the value of Requirements.

func (*PortingOrder) GetRequirementsMet

func (s *PortingOrder) GetRequirementsMet() OptBool

GetRequirementsMet returns the value of RequirementsMet.

func (*PortingOrder) GetStatus

func (s *PortingOrder) GetStatus() OptPortingOrderStatus

GetStatus returns the value of Status.

func (*PortingOrder) GetSupportKey

func (s *PortingOrder) GetSupportKey() OptString

GetSupportKey returns the value of SupportKey.

func (*PortingOrder) GetUpdatedAt

func (s *PortingOrder) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*PortingOrder) GetUserFeedback

func (s *PortingOrder) GetUserFeedback() OptPortingOrderUserFeedback

GetUserFeedback returns the value of UserFeedback.

func (*PortingOrder) GetUserID

func (s *PortingOrder) GetUserID() OptUUID

GetUserID returns the value of UserID.

func (*PortingOrder) GetWebhookURL

func (s *PortingOrder) GetWebhookURL() OptURI

GetWebhookURL returns the value of WebhookURL.

func (*PortingOrder) MarshalJSON

func (s *PortingOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrder) SetActivationSettings

func (s *PortingOrder) SetActivationSettings(val OptPortingOrderActivationSettings)

SetActivationSettings sets the value of ActivationSettings.

func (*PortingOrder) SetCreatedAt

func (s *PortingOrder) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*PortingOrder) SetCustomerReference

func (s *PortingOrder) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*PortingOrder) SetDescription

func (s *PortingOrder) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*PortingOrder) SetDocuments

func (s *PortingOrder) SetDocuments(val OptPortingOrderDocuments)

SetDocuments sets the value of Documents.

func (*PortingOrder) SetEndUser

func (s *PortingOrder) SetEndUser(val OptPortingOrderEndUser)

SetEndUser sets the value of EndUser.

func (*PortingOrder) SetID

func (s *PortingOrder) SetID(val OptUUID)

SetID sets the value of ID.

func (*PortingOrder) SetMisc

func (s *PortingOrder) SetMisc(val OptPortingOrderMisc)

SetMisc sets the value of Misc.

func (*PortingOrder) SetOldServiceProviderOcn

func (s *PortingOrder) SetOldServiceProviderOcn(val OptString)

SetOldServiceProviderOcn sets the value of OldServiceProviderOcn.

func (*PortingOrder) SetParentSupportKey

func (s *PortingOrder) SetParentSupportKey(val OptString)

SetParentSupportKey sets the value of ParentSupportKey.

func (*PortingOrder) SetPhoneNumberConfiguration

func (s *PortingOrder) SetPhoneNumberConfiguration(val OptPortingOrderPhoneNumberConfiguration)

SetPhoneNumberConfiguration sets the value of PhoneNumberConfiguration.

func (*PortingOrder) SetPhoneNumberType

func (s *PortingOrder) SetPhoneNumberType(val OptPortingOrderPhoneNumberType)

SetPhoneNumberType sets the value of PhoneNumberType.

func (*PortingOrder) SetPortingPhoneNumbersCount

func (s *PortingOrder) SetPortingPhoneNumbersCount(val OptInt)

SetPortingPhoneNumbersCount sets the value of PortingPhoneNumbersCount.

func (*PortingOrder) SetRecordType

func (s *PortingOrder) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingOrder) SetRequirements

func (s *PortingOrder) SetRequirements(val []PortingOrderRequirement)

SetRequirements sets the value of Requirements.

func (*PortingOrder) SetRequirementsMet

func (s *PortingOrder) SetRequirementsMet(val OptBool)

SetRequirementsMet sets the value of RequirementsMet.

func (*PortingOrder) SetStatus

func (s *PortingOrder) SetStatus(val OptPortingOrderStatus)

SetStatus sets the value of Status.

func (*PortingOrder) SetSupportKey

func (s *PortingOrder) SetSupportKey(val OptString)

SetSupportKey sets the value of SupportKey.

func (*PortingOrder) SetUpdatedAt

func (s *PortingOrder) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*PortingOrder) SetUserFeedback

func (s *PortingOrder) SetUserFeedback(val OptPortingOrderUserFeedback)

SetUserFeedback sets the value of UserFeedback.

func (*PortingOrder) SetUserID

func (s *PortingOrder) SetUserID(val OptUUID)

SetUserID sets the value of UserID.

func (*PortingOrder) SetWebhookURL

func (s *PortingOrder) SetWebhookURL(val OptURI)

SetWebhookURL sets the value of WebhookURL.

func (*PortingOrder) UnmarshalJSON

func (s *PortingOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrder) Validate

func (s *PortingOrder) Validate() error

type PortingOrderActivationSettings

type PortingOrderActivationSettings struct {
	// ISO 8601 formatted Date/Time requested for the FOC date.
	FocDatetimeRequested OptDateTime `json:"foc_datetime_requested"`
	// ISO 8601 formatted Date/Time of the FOC date.
	FocDatetimeActual OptDateTime `json:"foc_datetime_actual"`
	// Indicates whether this porting order is eligible for FastPort.
	FastPortEligible OptBool                         `json:"fast_port_eligible"`
	ActivationStatus OptPortingOrderActivationStatus `json:"activation_status"`
}

Ref: #/components/schemas/PortingOrderActivationSettings

func (*PortingOrderActivationSettings) Decode

Decode decodes PortingOrderActivationSettings from json.

func (*PortingOrderActivationSettings) Encode

Encode implements json.Marshaler.

func (*PortingOrderActivationSettings) GetActivationStatus

GetActivationStatus returns the value of ActivationStatus.

func (*PortingOrderActivationSettings) GetFastPortEligible

func (s *PortingOrderActivationSettings) GetFastPortEligible() OptBool

GetFastPortEligible returns the value of FastPortEligible.

func (*PortingOrderActivationSettings) GetFocDatetimeActual

func (s *PortingOrderActivationSettings) GetFocDatetimeActual() OptDateTime

GetFocDatetimeActual returns the value of FocDatetimeActual.

func (*PortingOrderActivationSettings) GetFocDatetimeRequested

func (s *PortingOrderActivationSettings) GetFocDatetimeRequested() OptDateTime

GetFocDatetimeRequested returns the value of FocDatetimeRequested.

func (*PortingOrderActivationSettings) MarshalJSON

func (s *PortingOrderActivationSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderActivationSettings) SetActivationStatus

SetActivationStatus sets the value of ActivationStatus.

func (*PortingOrderActivationSettings) SetFastPortEligible

func (s *PortingOrderActivationSettings) SetFastPortEligible(val OptBool)

SetFastPortEligible sets the value of FastPortEligible.

func (*PortingOrderActivationSettings) SetFocDatetimeActual

func (s *PortingOrderActivationSettings) SetFocDatetimeActual(val OptDateTime)

SetFocDatetimeActual sets the value of FocDatetimeActual.

func (*PortingOrderActivationSettings) SetFocDatetimeRequested

func (s *PortingOrderActivationSettings) SetFocDatetimeRequested(val OptDateTime)

SetFocDatetimeRequested sets the value of FocDatetimeRequested.

func (*PortingOrderActivationSettings) UnmarshalJSON

func (s *PortingOrderActivationSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderActivationSettings) Validate

func (s *PortingOrderActivationSettings) Validate() error

type PortingOrderActivationStatus

type PortingOrderActivationStatus string

Activation status. Ref: #/components/schemas/PortingOrderActivationStatus

const (
	PortingOrderActivationStatusNew               PortingOrderActivationStatus = "New"
	PortingOrderActivationStatusPending           PortingOrderActivationStatus = "Pending"
	PortingOrderActivationStatusConflict          PortingOrderActivationStatus = "Conflict"
	PortingOrderActivationStatusCancelPending     PortingOrderActivationStatus = "Cancel Pending"
	PortingOrderActivationStatusFailed            PortingOrderActivationStatus = "Failed"
	PortingOrderActivationStatusConcurred         PortingOrderActivationStatus = "Concurred"
	PortingOrderActivationStatusActivateRDY       PortingOrderActivationStatus = "Activate RDY"
	PortingOrderActivationStatusDisconnectPending PortingOrderActivationStatus = "Disconnect Pending"
	PortingOrderActivationStatusConcurrenceSent   PortingOrderActivationStatus = "Concurrence Sent"
	PortingOrderActivationStatusOld               PortingOrderActivationStatus = "Old"
	PortingOrderActivationStatusSending           PortingOrderActivationStatus = "Sending"
	PortingOrderActivationStatusActive            PortingOrderActivationStatus = "Active"
	PortingOrderActivationStatusCanceled          PortingOrderActivationStatus = "Canceled"
)

func (PortingOrderActivationStatus) AllValues

AllValues returns all PortingOrderActivationStatus values.

func (*PortingOrderActivationStatus) Decode

Decode decodes PortingOrderActivationStatus from json.

func (PortingOrderActivationStatus) Encode

Encode encodes PortingOrderActivationStatus as json.

func (PortingOrderActivationStatus) MarshalJSON

func (s PortingOrderActivationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingOrderActivationStatus) MarshalText

func (s PortingOrderActivationStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingOrderActivationStatus) UnmarshalJSON

func (s *PortingOrderActivationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderActivationStatus) UnmarshalText

func (s *PortingOrderActivationStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrderActivationStatus) Validate

func (s PortingOrderActivationStatus) Validate() error

type PortingOrderDocuments

type PortingOrderDocuments struct {
	// Returned ID of the submitted LOA via the Documents endpoint.
	Loa OptUUID `json:"loa"`
	// Returned ID of the submitted Invoice via the Documents endpoint.
	Invoice OptUUID `json:"invoice"`
}

Ref: #/components/schemas/PortingOrderDocuments

func (*PortingOrderDocuments) Decode

func (s *PortingOrderDocuments) Decode(d *jx.Decoder) error

Decode decodes PortingOrderDocuments from json.

func (*PortingOrderDocuments) Encode

func (s *PortingOrderDocuments) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrderDocuments) GetInvoice

func (s *PortingOrderDocuments) GetInvoice() OptUUID

GetInvoice returns the value of Invoice.

func (*PortingOrderDocuments) GetLoa

func (s *PortingOrderDocuments) GetLoa() OptUUID

GetLoa returns the value of Loa.

func (*PortingOrderDocuments) MarshalJSON

func (s *PortingOrderDocuments) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderDocuments) SetInvoice

func (s *PortingOrderDocuments) SetInvoice(val OptUUID)

SetInvoice sets the value of Invoice.

func (*PortingOrderDocuments) SetLoa

func (s *PortingOrderDocuments) SetLoa(val OptUUID)

SetLoa sets the value of Loa.

func (*PortingOrderDocuments) UnmarshalJSON

func (s *PortingOrderDocuments) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortingOrderEndUser

type PortingOrderEndUser struct {
	Admin    OptPortingOrderEndUserAdmin    `json:"admin"`
	Location OptPortingOrderEndUserLocation `json:"location"`
}

Ref: #/components/schemas/PortingOrderEndUser

func (*PortingOrderEndUser) Decode

func (s *PortingOrderEndUser) Decode(d *jx.Decoder) error

Decode decodes PortingOrderEndUser from json.

func (*PortingOrderEndUser) Encode

func (s *PortingOrderEndUser) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrderEndUser) GetAdmin

GetAdmin returns the value of Admin.

func (*PortingOrderEndUser) GetLocation

GetLocation returns the value of Location.

func (*PortingOrderEndUser) MarshalJSON

func (s *PortingOrderEndUser) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderEndUser) SetAdmin

SetAdmin sets the value of Admin.

func (*PortingOrderEndUser) SetLocation

SetLocation sets the value of Location.

func (*PortingOrderEndUser) UnmarshalJSON

func (s *PortingOrderEndUser) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortingOrderEndUserAdmin

type PortingOrderEndUserAdmin struct {
	// Person Name or Company name requesting the port.
	EntityName OptString `json:"entity_name"`
	// Name of person authorizing the porting order.
	AuthPersonName OptString `json:"auth_person_name"`
	// Billing phone number associated with these phone numbers.
	BillingPhoneNumber OptString `json:"billing_phone_number"`
	// The authorized person's account number with the current service provider.
	AccountNumber OptString `json:"account_number"`
	// European tax identification number. Applicable only in the European Union.
	TaxIdentifier OptString `json:"tax_identifier"`
	// PIN/passcode possibly required by the old service provider for extra verification.
	PinPasscode OptString `json:"pin_passcode"`
	// European business identification number. Applicable only in the European Union.
	BusinessIdentifier OptString `json:"business_identifier"`
}

Ref: #/components/schemas/PortingOrderEndUserAdmin

func (*PortingOrderEndUserAdmin) Decode

func (s *PortingOrderEndUserAdmin) Decode(d *jx.Decoder) error

Decode decodes PortingOrderEndUserAdmin from json.

func (*PortingOrderEndUserAdmin) Encode

func (s *PortingOrderEndUserAdmin) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrderEndUserAdmin) GetAccountNumber

func (s *PortingOrderEndUserAdmin) GetAccountNumber() OptString

GetAccountNumber returns the value of AccountNumber.

func (*PortingOrderEndUserAdmin) GetAuthPersonName

func (s *PortingOrderEndUserAdmin) GetAuthPersonName() OptString

GetAuthPersonName returns the value of AuthPersonName.

func (*PortingOrderEndUserAdmin) GetBillingPhoneNumber

func (s *PortingOrderEndUserAdmin) GetBillingPhoneNumber() OptString

GetBillingPhoneNumber returns the value of BillingPhoneNumber.

func (*PortingOrderEndUserAdmin) GetBusinessIdentifier

func (s *PortingOrderEndUserAdmin) GetBusinessIdentifier() OptString

GetBusinessIdentifier returns the value of BusinessIdentifier.

func (*PortingOrderEndUserAdmin) GetEntityName

func (s *PortingOrderEndUserAdmin) GetEntityName() OptString

GetEntityName returns the value of EntityName.

func (*PortingOrderEndUserAdmin) GetPinPasscode

func (s *PortingOrderEndUserAdmin) GetPinPasscode() OptString

GetPinPasscode returns the value of PinPasscode.

func (*PortingOrderEndUserAdmin) GetTaxIdentifier

func (s *PortingOrderEndUserAdmin) GetTaxIdentifier() OptString

GetTaxIdentifier returns the value of TaxIdentifier.

func (*PortingOrderEndUserAdmin) MarshalJSON

func (s *PortingOrderEndUserAdmin) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderEndUserAdmin) SetAccountNumber

func (s *PortingOrderEndUserAdmin) SetAccountNumber(val OptString)

SetAccountNumber sets the value of AccountNumber.

func (*PortingOrderEndUserAdmin) SetAuthPersonName

func (s *PortingOrderEndUserAdmin) SetAuthPersonName(val OptString)

SetAuthPersonName sets the value of AuthPersonName.

func (*PortingOrderEndUserAdmin) SetBillingPhoneNumber

func (s *PortingOrderEndUserAdmin) SetBillingPhoneNumber(val OptString)

SetBillingPhoneNumber sets the value of BillingPhoneNumber.

func (*PortingOrderEndUserAdmin) SetBusinessIdentifier

func (s *PortingOrderEndUserAdmin) SetBusinessIdentifier(val OptString)

SetBusinessIdentifier sets the value of BusinessIdentifier.

func (*PortingOrderEndUserAdmin) SetEntityName

func (s *PortingOrderEndUserAdmin) SetEntityName(val OptString)

SetEntityName sets the value of EntityName.

func (*PortingOrderEndUserAdmin) SetPinPasscode

func (s *PortingOrderEndUserAdmin) SetPinPasscode(val OptString)

SetPinPasscode sets the value of PinPasscode.

func (*PortingOrderEndUserAdmin) SetTaxIdentifier

func (s *PortingOrderEndUserAdmin) SetTaxIdentifier(val OptString)

SetTaxIdentifier sets the value of TaxIdentifier.

func (*PortingOrderEndUserAdmin) UnmarshalJSON

func (s *PortingOrderEndUserAdmin) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortingOrderEndUserLocation

type PortingOrderEndUserLocation struct {
	// First line of billing address.
	StreetAddress OptString `json:"street_address"`
	// Second line of billing address.
	ExtendedAddress OptString `json:"extended_address"`
	// City or municipality of billing address.
	Locality OptString `json:"locality"`
	// State, province, or similar of billing address.
	AdministrativeArea OptString `json:"administrative_area"`
	// Postal Code of billing address.
	PostalCode OptString `json:"postal_code"`
	// ISO3166-1 alpha-2 country code of billing address.
	CountryCode OptString `json:"country_code"`
}

Ref: #/components/schemas/PortingOrderEndUserLocation

func (*PortingOrderEndUserLocation) Decode

Decode decodes PortingOrderEndUserLocation from json.

func (*PortingOrderEndUserLocation) Encode

func (s *PortingOrderEndUserLocation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrderEndUserLocation) GetAdministrativeArea

func (s *PortingOrderEndUserLocation) GetAdministrativeArea() OptString

GetAdministrativeArea returns the value of AdministrativeArea.

func (*PortingOrderEndUserLocation) GetCountryCode

func (s *PortingOrderEndUserLocation) GetCountryCode() OptString

GetCountryCode returns the value of CountryCode.

func (*PortingOrderEndUserLocation) GetExtendedAddress

func (s *PortingOrderEndUserLocation) GetExtendedAddress() OptString

GetExtendedAddress returns the value of ExtendedAddress.

func (*PortingOrderEndUserLocation) GetLocality

func (s *PortingOrderEndUserLocation) GetLocality() OptString

GetLocality returns the value of Locality.

func (*PortingOrderEndUserLocation) GetPostalCode

func (s *PortingOrderEndUserLocation) GetPostalCode() OptString

GetPostalCode returns the value of PostalCode.

func (*PortingOrderEndUserLocation) GetStreetAddress

func (s *PortingOrderEndUserLocation) GetStreetAddress() OptString

GetStreetAddress returns the value of StreetAddress.

func (*PortingOrderEndUserLocation) MarshalJSON

func (s *PortingOrderEndUserLocation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderEndUserLocation) SetAdministrativeArea

func (s *PortingOrderEndUserLocation) SetAdministrativeArea(val OptString)

SetAdministrativeArea sets the value of AdministrativeArea.

func (*PortingOrderEndUserLocation) SetCountryCode

func (s *PortingOrderEndUserLocation) SetCountryCode(val OptString)

SetCountryCode sets the value of CountryCode.

func (*PortingOrderEndUserLocation) SetExtendedAddress

func (s *PortingOrderEndUserLocation) SetExtendedAddress(val OptString)

SetExtendedAddress sets the value of ExtendedAddress.

func (*PortingOrderEndUserLocation) SetLocality

func (s *PortingOrderEndUserLocation) SetLocality(val OptString)

SetLocality sets the value of Locality.

func (*PortingOrderEndUserLocation) SetPostalCode

func (s *PortingOrderEndUserLocation) SetPostalCode(val OptString)

SetPostalCode sets the value of PostalCode.

func (*PortingOrderEndUserLocation) SetStreetAddress

func (s *PortingOrderEndUserLocation) SetStreetAddress(val OptString)

SetStreetAddress sets the value of StreetAddress.

func (*PortingOrderEndUserLocation) UnmarshalJSON

func (s *PortingOrderEndUserLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortingOrderMisc

type PortingOrderMisc struct {
	Type OptPortingOrderType `json:"type"`
	// Remaining numbers can be either kept with their current service provider or disconnected.
	// 'new_billing_telephone_number' is required when 'remaining_numbers_action' is 'keep'.
	RemainingNumbersAction OptPortingOrderMiscRemainingNumbersAction `json:"remaining_numbers_action"`
	// New billing phone number for the remaining numbers. Used in case the current billing phone number
	// is being ported to Telnyx. This will be set on your account with your current service provider and
	// should be one of the numbers remaining on that account.
	NewBillingPhoneNumber OptString `json:"new_billing_phone_number"`
}

Ref: #/components/schemas/PortingOrderMisc

func (*PortingOrderMisc) Decode

func (s *PortingOrderMisc) Decode(d *jx.Decoder) error

Decode decodes PortingOrderMisc from json.

func (*PortingOrderMisc) Encode

func (s *PortingOrderMisc) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrderMisc) GetNewBillingPhoneNumber

func (s *PortingOrderMisc) GetNewBillingPhoneNumber() OptString

GetNewBillingPhoneNumber returns the value of NewBillingPhoneNumber.

func (*PortingOrderMisc) GetRemainingNumbersAction

func (s *PortingOrderMisc) GetRemainingNumbersAction() OptPortingOrderMiscRemainingNumbersAction

GetRemainingNumbersAction returns the value of RemainingNumbersAction.

func (*PortingOrderMisc) GetType

GetType returns the value of Type.

func (*PortingOrderMisc) MarshalJSON

func (s *PortingOrderMisc) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderMisc) SetNewBillingPhoneNumber

func (s *PortingOrderMisc) SetNewBillingPhoneNumber(val OptString)

SetNewBillingPhoneNumber sets the value of NewBillingPhoneNumber.

func (*PortingOrderMisc) SetRemainingNumbersAction

func (s *PortingOrderMisc) SetRemainingNumbersAction(val OptPortingOrderMiscRemainingNumbersAction)

SetRemainingNumbersAction sets the value of RemainingNumbersAction.

func (*PortingOrderMisc) SetType

func (s *PortingOrderMisc) SetType(val OptPortingOrderType)

SetType sets the value of Type.

func (*PortingOrderMisc) UnmarshalJSON

func (s *PortingOrderMisc) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderMisc) Validate

func (s *PortingOrderMisc) Validate() error

type PortingOrderMiscRemainingNumbersAction

type PortingOrderMiscRemainingNumbersAction string

Remaining numbers can be either kept with their current service provider or disconnected. 'new_billing_telephone_number' is required when 'remaining_numbers_action' is 'keep'.

const (
	PortingOrderMiscRemainingNumbersActionKeep       PortingOrderMiscRemainingNumbersAction = "keep"
	PortingOrderMiscRemainingNumbersActionDisconnect PortingOrderMiscRemainingNumbersAction = "disconnect"
)

func (PortingOrderMiscRemainingNumbersAction) AllValues

AllValues returns all PortingOrderMiscRemainingNumbersAction values.

func (*PortingOrderMiscRemainingNumbersAction) Decode

Decode decodes PortingOrderMiscRemainingNumbersAction from json.

func (PortingOrderMiscRemainingNumbersAction) Encode

Encode encodes PortingOrderMiscRemainingNumbersAction as json.

func (PortingOrderMiscRemainingNumbersAction) MarshalJSON

func (s PortingOrderMiscRemainingNumbersAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingOrderMiscRemainingNumbersAction) MarshalText

func (s PortingOrderMiscRemainingNumbersAction) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingOrderMiscRemainingNumbersAction) UnmarshalJSON

func (s *PortingOrderMiscRemainingNumbersAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderMiscRemainingNumbersAction) UnmarshalText

func (s *PortingOrderMiscRemainingNumbersAction) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrderMiscRemainingNumbersAction) Validate

type PortingOrderPhoneNumberConfiguration

type PortingOrderPhoneNumberConfiguration struct {
	// Identifies the billing group to set on the numbers when ported.
	BillingGroupID OptString `json:"billing_group_id"`
	// Identifies the connection to set on the numbers when ported.
	ConnectionID OptString `json:"connection_id"`
	// Identifies the messaging profile to set on the numbers when ported.
	MessagingProfileID OptString `json:"messaging_profile_id"`
	// Identifies the emergency address to set on the numbers when ported.
	EmergencyAddressID OptString `json:"emergency_address_id"`
	Tags               []string  `json:"tags"`
}

Ref: #/components/schemas/PortingOrderPhoneNumberConfiguration

func (*PortingOrderPhoneNumberConfiguration) Decode

Decode decodes PortingOrderPhoneNumberConfiguration from json.

func (*PortingOrderPhoneNumberConfiguration) Encode

Encode implements json.Marshaler.

func (*PortingOrderPhoneNumberConfiguration) GetBillingGroupID

func (s *PortingOrderPhoneNumberConfiguration) GetBillingGroupID() OptString

GetBillingGroupID returns the value of BillingGroupID.

func (*PortingOrderPhoneNumberConfiguration) GetConnectionID

func (s *PortingOrderPhoneNumberConfiguration) GetConnectionID() OptString

GetConnectionID returns the value of ConnectionID.

func (*PortingOrderPhoneNumberConfiguration) GetEmergencyAddressID

func (s *PortingOrderPhoneNumberConfiguration) GetEmergencyAddressID() OptString

GetEmergencyAddressID returns the value of EmergencyAddressID.

func (*PortingOrderPhoneNumberConfiguration) GetMessagingProfileID

func (s *PortingOrderPhoneNumberConfiguration) GetMessagingProfileID() OptString

GetMessagingProfileID returns the value of MessagingProfileID.

func (*PortingOrderPhoneNumberConfiguration) GetTags

GetTags returns the value of Tags.

func (*PortingOrderPhoneNumberConfiguration) MarshalJSON

func (s *PortingOrderPhoneNumberConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderPhoneNumberConfiguration) SetBillingGroupID

func (s *PortingOrderPhoneNumberConfiguration) SetBillingGroupID(val OptString)

SetBillingGroupID sets the value of BillingGroupID.

func (*PortingOrderPhoneNumberConfiguration) SetConnectionID

func (s *PortingOrderPhoneNumberConfiguration) SetConnectionID(val OptString)

SetConnectionID sets the value of ConnectionID.

func (*PortingOrderPhoneNumberConfiguration) SetEmergencyAddressID

func (s *PortingOrderPhoneNumberConfiguration) SetEmergencyAddressID(val OptString)

SetEmergencyAddressID sets the value of EmergencyAddressID.

func (*PortingOrderPhoneNumberConfiguration) SetMessagingProfileID

func (s *PortingOrderPhoneNumberConfiguration) SetMessagingProfileID(val OptString)

SetMessagingProfileID sets the value of MessagingProfileID.

func (*PortingOrderPhoneNumberConfiguration) SetTags

func (s *PortingOrderPhoneNumberConfiguration) SetTags(val []string)

SetTags sets the value of Tags.

func (*PortingOrderPhoneNumberConfiguration) UnmarshalJSON

func (s *PortingOrderPhoneNumberConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortingOrderPhoneNumberType

type PortingOrderPhoneNumberType string

The type of the phone number.

const (
	PortingOrderPhoneNumberTypeLandline   PortingOrderPhoneNumberType = "landline"
	PortingOrderPhoneNumberTypeLocal      PortingOrderPhoneNumberType = "local"
	PortingOrderPhoneNumberTypeMobile     PortingOrderPhoneNumberType = "mobile"
	PortingOrderPhoneNumberTypeNational   PortingOrderPhoneNumberType = "national"
	PortingOrderPhoneNumberTypeSharedCost PortingOrderPhoneNumberType = "shared_cost"
	PortingOrderPhoneNumberTypeTollFree   PortingOrderPhoneNumberType = "toll_free"
)

func (PortingOrderPhoneNumberType) AllValues

AllValues returns all PortingOrderPhoneNumberType values.

func (*PortingOrderPhoneNumberType) Decode

Decode decodes PortingOrderPhoneNumberType from json.

func (PortingOrderPhoneNumberType) Encode

func (s PortingOrderPhoneNumberType) Encode(e *jx.Encoder)

Encode encodes PortingOrderPhoneNumberType as json.

func (PortingOrderPhoneNumberType) MarshalJSON

func (s PortingOrderPhoneNumberType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingOrderPhoneNumberType) MarshalText

func (s PortingOrderPhoneNumberType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingOrderPhoneNumberType) UnmarshalJSON

func (s *PortingOrderPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderPhoneNumberType) UnmarshalText

func (s *PortingOrderPhoneNumberType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrderPhoneNumberType) Validate

func (s PortingOrderPhoneNumberType) Validate() error

type PortingOrderRequirement

type PortingOrderRequirement struct {
	// Type of value expected on field_value field.
	FieldType OptPortingOrderRequirementFieldType `json:"field_type"`
	// Identifies the document that satisfies this requirement.
	FieldValue OptString `json:"field_value"`
	// Identifies the requirement type that meets this requirement.
	RequirementTypeID OptString `json:"requirement_type_id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
}

Ref: #/components/schemas/PortingOrderRequirement

func (*PortingOrderRequirement) Decode

func (s *PortingOrderRequirement) Decode(d *jx.Decoder) error

Decode decodes PortingOrderRequirement from json.

func (*PortingOrderRequirement) Encode

func (s *PortingOrderRequirement) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrderRequirement) GetFieldType

GetFieldType returns the value of FieldType.

func (*PortingOrderRequirement) GetFieldValue

func (s *PortingOrderRequirement) GetFieldValue() OptString

GetFieldValue returns the value of FieldValue.

func (*PortingOrderRequirement) GetRecordType

func (s *PortingOrderRequirement) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingOrderRequirement) GetRequirementTypeID

func (s *PortingOrderRequirement) GetRequirementTypeID() OptString

GetRequirementTypeID returns the value of RequirementTypeID.

func (*PortingOrderRequirement) MarshalJSON

func (s *PortingOrderRequirement) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderRequirement) SetFieldType

SetFieldType sets the value of FieldType.

func (*PortingOrderRequirement) SetFieldValue

func (s *PortingOrderRequirement) SetFieldValue(val OptString)

SetFieldValue sets the value of FieldValue.

func (*PortingOrderRequirement) SetRecordType

func (s *PortingOrderRequirement) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingOrderRequirement) SetRequirementTypeID

func (s *PortingOrderRequirement) SetRequirementTypeID(val OptString)

SetRequirementTypeID sets the value of RequirementTypeID.

func (*PortingOrderRequirement) UnmarshalJSON

func (s *PortingOrderRequirement) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderRequirement) Validate

func (s *PortingOrderRequirement) Validate() error

type PortingOrderRequirementDetail

type PortingOrderRequirementDetail struct {
	// Type of value expected on field_value field.
	FieldType OptPortingOrderRequirementDetailFieldType `json:"field_type"`
	// Identifies the document that satisfies this requirement.
	FieldValue OptString `json:"field_value"`
	// Identifies the requirement type that meets this requirement.
	RequirementType OptPortingOrderRequirementDetailRequirementType `json:"requirement_type"`
	// Status of the requirement.
	RequirementStatus OptString `json:"requirement_status"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
}

Ref: #/components/schemas/PortingOrderRequirementDetail

func (*PortingOrderRequirementDetail) Decode

Decode decodes PortingOrderRequirementDetail from json.

func (*PortingOrderRequirementDetail) Encode

Encode implements json.Marshaler.

func (*PortingOrderRequirementDetail) GetFieldType

GetFieldType returns the value of FieldType.

func (*PortingOrderRequirementDetail) GetFieldValue

func (s *PortingOrderRequirementDetail) GetFieldValue() OptString

GetFieldValue returns the value of FieldValue.

func (*PortingOrderRequirementDetail) GetRecordType

func (s *PortingOrderRequirementDetail) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingOrderRequirementDetail) GetRequirementStatus

func (s *PortingOrderRequirementDetail) GetRequirementStatus() OptString

GetRequirementStatus returns the value of RequirementStatus.

func (*PortingOrderRequirementDetail) GetRequirementType

GetRequirementType returns the value of RequirementType.

func (*PortingOrderRequirementDetail) MarshalJSON

func (s *PortingOrderRequirementDetail) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderRequirementDetail) SetFieldType

SetFieldType sets the value of FieldType.

func (*PortingOrderRequirementDetail) SetFieldValue

func (s *PortingOrderRequirementDetail) SetFieldValue(val OptString)

SetFieldValue sets the value of FieldValue.

func (*PortingOrderRequirementDetail) SetRecordType

func (s *PortingOrderRequirementDetail) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingOrderRequirementDetail) SetRequirementStatus

func (s *PortingOrderRequirementDetail) SetRequirementStatus(val OptString)

SetRequirementStatus sets the value of RequirementStatus.

func (*PortingOrderRequirementDetail) SetRequirementType

SetRequirementType sets the value of RequirementType.

func (*PortingOrderRequirementDetail) UnmarshalJSON

func (s *PortingOrderRequirementDetail) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderRequirementDetail) Validate

func (s *PortingOrderRequirementDetail) Validate() error

type PortingOrderRequirementDetailFieldType

type PortingOrderRequirementDetailFieldType string

Type of value expected on field_value field.

const (
	PortingOrderRequirementDetailFieldTypeDocument PortingOrderRequirementDetailFieldType = "document"
	PortingOrderRequirementDetailFieldTypeTextual  PortingOrderRequirementDetailFieldType = "textual"
)

func (PortingOrderRequirementDetailFieldType) AllValues

AllValues returns all PortingOrderRequirementDetailFieldType values.

func (*PortingOrderRequirementDetailFieldType) Decode

Decode decodes PortingOrderRequirementDetailFieldType from json.

func (PortingOrderRequirementDetailFieldType) Encode

Encode encodes PortingOrderRequirementDetailFieldType as json.

func (PortingOrderRequirementDetailFieldType) MarshalJSON

func (s PortingOrderRequirementDetailFieldType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingOrderRequirementDetailFieldType) MarshalText

func (s PortingOrderRequirementDetailFieldType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingOrderRequirementDetailFieldType) UnmarshalJSON

func (s *PortingOrderRequirementDetailFieldType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderRequirementDetailFieldType) UnmarshalText

func (s *PortingOrderRequirementDetailFieldType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrderRequirementDetailFieldType) Validate

type PortingOrderRequirementDetailRequirementType

type PortingOrderRequirementDetailRequirementType struct {
	// The acceptance criteria for the requirement type.
	AcceptanceCriteria OptPortingOrderRequirementDetailRequirementTypeAcceptanceCriteria `json:"acceptance_criteria"`
	// A description of the requirement type.
	Description OptString `json:"description"`
	// An example of the requirement type.
	Example OptString `json:"example"`
	// Identifies the requirement type.
	ID OptString `json:"id"`
	// The name of the requirement type.
	Name OptString `json:"name"`
	// The type of the requirement type.
	Type OptString `json:"type"`
}

Identifies the requirement type that meets this requirement.

func (*PortingOrderRequirementDetailRequirementType) Decode

Decode decodes PortingOrderRequirementDetailRequirementType from json.

func (*PortingOrderRequirementDetailRequirementType) Encode

Encode implements json.Marshaler.

func (*PortingOrderRequirementDetailRequirementType) GetAcceptanceCriteria

GetAcceptanceCriteria returns the value of AcceptanceCriteria.

func (*PortingOrderRequirementDetailRequirementType) GetDescription

GetDescription returns the value of Description.

func (*PortingOrderRequirementDetailRequirementType) GetExample

GetExample returns the value of Example.

func (*PortingOrderRequirementDetailRequirementType) GetID

GetID returns the value of ID.

func (*PortingOrderRequirementDetailRequirementType) GetName

GetName returns the value of Name.

func (*PortingOrderRequirementDetailRequirementType) GetType

GetType returns the value of Type.

func (*PortingOrderRequirementDetailRequirementType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderRequirementDetailRequirementType) SetAcceptanceCriteria

SetAcceptanceCriteria sets the value of AcceptanceCriteria.

func (*PortingOrderRequirementDetailRequirementType) SetDescription

SetDescription sets the value of Description.

func (*PortingOrderRequirementDetailRequirementType) SetExample

SetExample sets the value of Example.

func (*PortingOrderRequirementDetailRequirementType) SetID

SetID sets the value of ID.

func (*PortingOrderRequirementDetailRequirementType) SetName

SetName sets the value of Name.

func (*PortingOrderRequirementDetailRequirementType) SetType

SetType sets the value of Type.

func (*PortingOrderRequirementDetailRequirementType) UnmarshalJSON

func (s *PortingOrderRequirementDetailRequirementType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortingOrderRequirementDetailRequirementTypeAcceptanceCriteria

type PortingOrderRequirementDetailRequirementTypeAcceptanceCriteria map[string]jx.Raw

The acceptance criteria for the requirement type.

func (*PortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) Decode

Decode decodes PortingOrderRequirementDetailRequirementTypeAcceptanceCriteria from json.

func (PortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) Encode

Encode implements json.Marshaler.

func (PortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderRequirementDetailRequirementTypeAcceptanceCriteria) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type PortingOrderRequirementFieldType

type PortingOrderRequirementFieldType string

Type of value expected on field_value field.

const (
	PortingOrderRequirementFieldTypeDocument PortingOrderRequirementFieldType = "document"
)

func (PortingOrderRequirementFieldType) AllValues

AllValues returns all PortingOrderRequirementFieldType values.

func (*PortingOrderRequirementFieldType) Decode

Decode decodes PortingOrderRequirementFieldType from json.

func (PortingOrderRequirementFieldType) Encode

Encode encodes PortingOrderRequirementFieldType as json.

func (PortingOrderRequirementFieldType) MarshalJSON

func (s PortingOrderRequirementFieldType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingOrderRequirementFieldType) MarshalText

func (s PortingOrderRequirementFieldType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingOrderRequirementFieldType) UnmarshalJSON

func (s *PortingOrderRequirementFieldType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderRequirementFieldType) UnmarshalText

func (s *PortingOrderRequirementFieldType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrderRequirementFieldType) Validate

type PortingOrderSharingToken

type PortingOrderSharingToken struct {
	// Uniquely identifies this sharing token.
	ID OptUUID `json:"id"`
	// Identifies the porting order resource being shared.
	PortingOrderID OptUUID `json:"porting_order_id"`
	// The number of seconds until the sharing token expires.
	ExpiresInSeconds OptInt `json:"expires_in_seconds"`
	// The permissions granted to the sharing token.
	Permissions []PortingOrderSharingTokenPermissionsItem `json:"permissions"`
	// A signed JWT token that can be used to access the shared resource.
	Token OptString `json:"token"`
	// ISO 8601 formatted date indicating when the sharing token expires.
	ExpiresAt OptDateTime `json:"expires_at"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptDateTime `json:"created_at"`
}

Ref: #/components/schemas/PortingOrderSharingToken

func (*PortingOrderSharingToken) Decode

func (s *PortingOrderSharingToken) Decode(d *jx.Decoder) error

Decode decodes PortingOrderSharingToken from json.

func (*PortingOrderSharingToken) Encode

func (s *PortingOrderSharingToken) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrderSharingToken) GetCreatedAt

func (s *PortingOrderSharingToken) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*PortingOrderSharingToken) GetExpiresAt

func (s *PortingOrderSharingToken) GetExpiresAt() OptDateTime

GetExpiresAt returns the value of ExpiresAt.

func (*PortingOrderSharingToken) GetExpiresInSeconds

func (s *PortingOrderSharingToken) GetExpiresInSeconds() OptInt

GetExpiresInSeconds returns the value of ExpiresInSeconds.

func (*PortingOrderSharingToken) GetID

func (s *PortingOrderSharingToken) GetID() OptUUID

GetID returns the value of ID.

func (*PortingOrderSharingToken) GetPermissions

GetPermissions returns the value of Permissions.

func (*PortingOrderSharingToken) GetPortingOrderID

func (s *PortingOrderSharingToken) GetPortingOrderID() OptUUID

GetPortingOrderID returns the value of PortingOrderID.

func (*PortingOrderSharingToken) GetRecordType

func (s *PortingOrderSharingToken) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingOrderSharingToken) GetToken

func (s *PortingOrderSharingToken) GetToken() OptString

GetToken returns the value of Token.

func (*PortingOrderSharingToken) MarshalJSON

func (s *PortingOrderSharingToken) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderSharingToken) SetCreatedAt

func (s *PortingOrderSharingToken) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*PortingOrderSharingToken) SetExpiresAt

func (s *PortingOrderSharingToken) SetExpiresAt(val OptDateTime)

SetExpiresAt sets the value of ExpiresAt.

func (*PortingOrderSharingToken) SetExpiresInSeconds

func (s *PortingOrderSharingToken) SetExpiresInSeconds(val OptInt)

SetExpiresInSeconds sets the value of ExpiresInSeconds.

func (*PortingOrderSharingToken) SetID

func (s *PortingOrderSharingToken) SetID(val OptUUID)

SetID sets the value of ID.

func (*PortingOrderSharingToken) SetPermissions

SetPermissions sets the value of Permissions.

func (*PortingOrderSharingToken) SetPortingOrderID

func (s *PortingOrderSharingToken) SetPortingOrderID(val OptUUID)

SetPortingOrderID sets the value of PortingOrderID.

func (*PortingOrderSharingToken) SetRecordType

func (s *PortingOrderSharingToken) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingOrderSharingToken) SetToken

func (s *PortingOrderSharingToken) SetToken(val OptString)

SetToken sets the value of Token.

func (*PortingOrderSharingToken) UnmarshalJSON

func (s *PortingOrderSharingToken) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderSharingToken) Validate

func (s *PortingOrderSharingToken) Validate() error

type PortingOrderSharingTokenPermissionsItem

type PortingOrderSharingTokenPermissionsItem string
const (
	PortingOrderSharingTokenPermissionsItemPortingOrderDocumentRead   PortingOrderSharingTokenPermissionsItem = "porting_order.document.read"
	PortingOrderSharingTokenPermissionsItemPortingOrderDocumentUpdate PortingOrderSharingTokenPermissionsItem = "porting_order.document.update"
)

func (PortingOrderSharingTokenPermissionsItem) AllValues

AllValues returns all PortingOrderSharingTokenPermissionsItem values.

func (*PortingOrderSharingTokenPermissionsItem) Decode

Decode decodes PortingOrderSharingTokenPermissionsItem from json.

func (PortingOrderSharingTokenPermissionsItem) Encode

Encode encodes PortingOrderSharingTokenPermissionsItem as json.

func (PortingOrderSharingTokenPermissionsItem) MarshalJSON

func (s PortingOrderSharingTokenPermissionsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingOrderSharingTokenPermissionsItem) MarshalText

func (s PortingOrderSharingTokenPermissionsItem) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingOrderSharingTokenPermissionsItem) UnmarshalJSON

func (s *PortingOrderSharingTokenPermissionsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderSharingTokenPermissionsItem) UnmarshalText

func (s *PortingOrderSharingTokenPermissionsItem) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrderSharingTokenPermissionsItem) Validate

type PortingOrderStatus

type PortingOrderStatus struct {
	// A list of 0 or more details about this porting order's status.
	Details []PortingOrdersExceptionType `json:"details"`
	// The current status of the porting order.
	Value OptPortingOrderStatusValue `json:"value"`
}

Porting order status. Ref: #/components/schemas/PortingOrderStatus

func (*PortingOrderStatus) Decode

func (s *PortingOrderStatus) Decode(d *jx.Decoder) error

Decode decodes PortingOrderStatus from json.

func (*PortingOrderStatus) Encode

func (s *PortingOrderStatus) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrderStatus) GetDetails

GetDetails returns the value of Details.

func (*PortingOrderStatus) GetValue

GetValue returns the value of Value.

func (*PortingOrderStatus) MarshalJSON

func (s *PortingOrderStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderStatus) SetDetails

func (s *PortingOrderStatus) SetDetails(val []PortingOrdersExceptionType)

SetDetails sets the value of Details.

func (*PortingOrderStatus) SetValue

SetValue sets the value of Value.

func (*PortingOrderStatus) UnmarshalJSON

func (s *PortingOrderStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderStatus) Validate

func (s *PortingOrderStatus) Validate() error

type PortingOrderStatusValue

type PortingOrderStatusValue string

The current status of the porting order.

const (
	PortingOrderStatusValueDraft            PortingOrderStatusValue = "draft"
	PortingOrderStatusValueInProcess        PortingOrderStatusValue = "in-process"
	PortingOrderStatusValueSubmitted        PortingOrderStatusValue = "submitted"
	PortingOrderStatusValueException        PortingOrderStatusValue = "exception"
	PortingOrderStatusValueFocDateConfirmed PortingOrderStatusValue = "foc-date-confirmed"
	PortingOrderStatusValuePorted           PortingOrderStatusValue = "ported"
	PortingOrderStatusValueCanceled         PortingOrderStatusValue = "canceled"
	PortingOrderStatusValueCancelPending    PortingOrderStatusValue = "cancel-pending"
)

func (PortingOrderStatusValue) AllValues

AllValues returns all PortingOrderStatusValue values.

func (*PortingOrderStatusValue) Decode

func (s *PortingOrderStatusValue) Decode(d *jx.Decoder) error

Decode decodes PortingOrderStatusValue from json.

func (PortingOrderStatusValue) Encode

func (s PortingOrderStatusValue) Encode(e *jx.Encoder)

Encode encodes PortingOrderStatusValue as json.

func (PortingOrderStatusValue) MarshalJSON

func (s PortingOrderStatusValue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingOrderStatusValue) MarshalText

func (s PortingOrderStatusValue) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingOrderStatusValue) UnmarshalJSON

func (s *PortingOrderStatusValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderStatusValue) UnmarshalText

func (s *PortingOrderStatusValue) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrderStatusValue) Validate

func (s PortingOrderStatusValue) Validate() error

type PortingOrderType

type PortingOrderType string

A port can be either 'full' or 'partial'. When type is 'full' the other attributes should be omitted. Ref: #/components/schemas/PortingOrderType

const (
	PortingOrderTypeFull    PortingOrderType = "full"
	PortingOrderTypePartial PortingOrderType = "partial"
)

func (PortingOrderType) AllValues

func (PortingOrderType) AllValues() []PortingOrderType

AllValues returns all PortingOrderType values.

func (*PortingOrderType) Decode

func (s *PortingOrderType) Decode(d *jx.Decoder) error

Decode decodes PortingOrderType from json.

func (PortingOrderType) Encode

func (s PortingOrderType) Encode(e *jx.Encoder)

Encode encodes PortingOrderType as json.

func (PortingOrderType) MarshalJSON

func (s PortingOrderType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingOrderType) MarshalText

func (s PortingOrderType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingOrderType) UnmarshalJSON

func (s *PortingOrderType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrderType) UnmarshalText

func (s *PortingOrderType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrderType) Validate

func (s PortingOrderType) Validate() error

type PortingOrderUserFeedback

type PortingOrderUserFeedback struct {
	// Once an order is ported, cancellation is requested or the request is canceled, the user may rate
	// their experience.
	UserRating OptInt `json:"user_rating"`
	// A comment related to the customer rating.
	UserComment OptString `json:"user_comment"`
}

Ref: #/components/schemas/PortingOrderUserFeedback

func (*PortingOrderUserFeedback) Decode

func (s *PortingOrderUserFeedback) Decode(d *jx.Decoder) error

Decode decodes PortingOrderUserFeedback from json.

func (*PortingOrderUserFeedback) Encode

func (s *PortingOrderUserFeedback) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrderUserFeedback) GetUserComment

func (s *PortingOrderUserFeedback) GetUserComment() OptString

GetUserComment returns the value of UserComment.

func (*PortingOrderUserFeedback) GetUserRating

func (s *PortingOrderUserFeedback) GetUserRating() OptInt

GetUserRating returns the value of UserRating.

func (*PortingOrderUserFeedback) MarshalJSON

func (s *PortingOrderUserFeedback) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrderUserFeedback) SetUserComment

func (s *PortingOrderUserFeedback) SetUserComment(val OptString)

SetUserComment sets the value of UserComment.

func (*PortingOrderUserFeedback) SetUserRating

func (s *PortingOrderUserFeedback) SetUserRating(val OptInt)

SetUserRating sets the value of UserRating.

func (*PortingOrderUserFeedback) UnmarshalJSON

func (s *PortingOrderUserFeedback) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortingOrdersActivationJob

type PortingOrdersActivationJob struct {
	// Uniquely identifies this activation job.
	ID OptUUID `json:"id"`
	// Specifies the status of this activation job.
	Status OptPortingOrdersActivationJobStatus `json:"status"`
	// Specifies the type of this activation job.
	ActivationType OptPortingOrdersActivationJobActivationType `json:"activation_type"`
	// ISO 8601 formatted date indicating when the activation job should be executed. This time should be
	// between some activation window.
	ActivateAt OptDateTime `json:"activate_at"`
	// List of allowed activation windows for this activation job.
	ActivationWindows []PortingOrdersActivationJobActivationWindowsItem `json:"activation_windows"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptDateTime `json:"created_at"`
	// ISO 8601 formatted date indicating when the resource was created.
	UpdatedAt OptDateTime `json:"updated_at"`
}

Ref: #/components/schemas/PortingOrdersActivationJob

func (*PortingOrdersActivationJob) Decode

Decode decodes PortingOrdersActivationJob from json.

func (*PortingOrdersActivationJob) Encode

func (s *PortingOrdersActivationJob) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrdersActivationJob) GetActivateAt

func (s *PortingOrdersActivationJob) GetActivateAt() OptDateTime

GetActivateAt returns the value of ActivateAt.

func (*PortingOrdersActivationJob) GetActivationType

GetActivationType returns the value of ActivationType.

func (*PortingOrdersActivationJob) GetActivationWindows

GetActivationWindows returns the value of ActivationWindows.

func (*PortingOrdersActivationJob) GetCreatedAt

func (s *PortingOrdersActivationJob) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*PortingOrdersActivationJob) GetID

GetID returns the value of ID.

func (*PortingOrdersActivationJob) GetRecordType

func (s *PortingOrdersActivationJob) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingOrdersActivationJob) GetStatus

GetStatus returns the value of Status.

func (*PortingOrdersActivationJob) GetUpdatedAt

func (s *PortingOrdersActivationJob) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*PortingOrdersActivationJob) MarshalJSON

func (s *PortingOrdersActivationJob) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrdersActivationJob) SetActivateAt

func (s *PortingOrdersActivationJob) SetActivateAt(val OptDateTime)

SetActivateAt sets the value of ActivateAt.

func (*PortingOrdersActivationJob) SetActivationType

SetActivationType sets the value of ActivationType.

func (*PortingOrdersActivationJob) SetActivationWindows

SetActivationWindows sets the value of ActivationWindows.

func (*PortingOrdersActivationJob) SetCreatedAt

func (s *PortingOrdersActivationJob) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*PortingOrdersActivationJob) SetID

func (s *PortingOrdersActivationJob) SetID(val OptUUID)

SetID sets the value of ID.

func (*PortingOrdersActivationJob) SetRecordType

func (s *PortingOrdersActivationJob) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingOrdersActivationJob) SetStatus

SetStatus sets the value of Status.

func (*PortingOrdersActivationJob) SetUpdatedAt

func (s *PortingOrdersActivationJob) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*PortingOrdersActivationJob) UnmarshalJSON

func (s *PortingOrdersActivationJob) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrdersActivationJob) Validate

func (s *PortingOrdersActivationJob) Validate() error

type PortingOrdersActivationJobActivationType

type PortingOrdersActivationJobActivationType string

Specifies the type of this activation job.

const (
	PortingOrdersActivationJobActivationTypeScheduled PortingOrdersActivationJobActivationType = "scheduled"
	PortingOrdersActivationJobActivationTypeOnDemand  PortingOrdersActivationJobActivationType = "on-demand"
)

func (PortingOrdersActivationJobActivationType) AllValues

AllValues returns all PortingOrdersActivationJobActivationType values.

func (*PortingOrdersActivationJobActivationType) Decode

Decode decodes PortingOrdersActivationJobActivationType from json.

func (PortingOrdersActivationJobActivationType) Encode

Encode encodes PortingOrdersActivationJobActivationType as json.

func (PortingOrdersActivationJobActivationType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PortingOrdersActivationJobActivationType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PortingOrdersActivationJobActivationType) UnmarshalJSON

func (s *PortingOrdersActivationJobActivationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrdersActivationJobActivationType) UnmarshalText

func (s *PortingOrdersActivationJobActivationType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrdersActivationJobActivationType) Validate

type PortingOrdersActivationJobActivationWindowsItem

type PortingOrdersActivationJobActivationWindowsItem struct {
	// ISO 8601 formatted date indicating when the activation window starts.
	StartAt OptDateTime `json:"start_at"`
	// ISO 8601 formatted date indicating when the activation window ends.
	EndAt OptDateTime `json:"end_at"`
}

func (*PortingOrdersActivationJobActivationWindowsItem) Decode

Decode decodes PortingOrdersActivationJobActivationWindowsItem from json.

func (*PortingOrdersActivationJobActivationWindowsItem) Encode

Encode implements json.Marshaler.

func (*PortingOrdersActivationJobActivationWindowsItem) GetEndAt

GetEndAt returns the value of EndAt.

func (*PortingOrdersActivationJobActivationWindowsItem) GetStartAt

GetStartAt returns the value of StartAt.

func (*PortingOrdersActivationJobActivationWindowsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrdersActivationJobActivationWindowsItem) SetEndAt

SetEndAt sets the value of EndAt.

func (*PortingOrdersActivationJobActivationWindowsItem) SetStartAt

SetStartAt sets the value of StartAt.

func (*PortingOrdersActivationJobActivationWindowsItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type PortingOrdersActivationJobStatus

type PortingOrdersActivationJobStatus string

Specifies the status of this activation job.

const (
	PortingOrdersActivationJobStatusCreated   PortingOrdersActivationJobStatus = "created"
	PortingOrdersActivationJobStatusInProcess PortingOrdersActivationJobStatus = "in-process"
	PortingOrdersActivationJobStatusCompleted PortingOrdersActivationJobStatus = "completed"
	PortingOrdersActivationJobStatusFailed    PortingOrdersActivationJobStatus = "failed"
)

func (PortingOrdersActivationJobStatus) AllValues

AllValues returns all PortingOrdersActivationJobStatus values.

func (*PortingOrdersActivationJobStatus) Decode

Decode decodes PortingOrdersActivationJobStatus from json.

func (PortingOrdersActivationJobStatus) Encode

Encode encodes PortingOrdersActivationJobStatus as json.

func (PortingOrdersActivationJobStatus) MarshalJSON

func (s PortingOrdersActivationJobStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingOrdersActivationJobStatus) MarshalText

func (s PortingOrdersActivationJobStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingOrdersActivationJobStatus) UnmarshalJSON

func (s *PortingOrdersActivationJobStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrdersActivationJobStatus) UnmarshalText

func (s *PortingOrdersActivationJobStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrdersActivationJobStatus) Validate

type PortingOrdersAllowedFocWindow

type PortingOrdersAllowedFocWindow struct {
	// ISO 8601 formatted date indicating the start of the range of foc window.
	StartedAt OptDateTime `json:"started_at"`
	// ISO 8601 formatted date indicating the end of the range of foc window.
	EndedAt OptDateTime `json:"ended_at"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
}

Ref: #/components/schemas/PortingOrdersAllowedFocWindow

func (*PortingOrdersAllowedFocWindow) Decode

Decode decodes PortingOrdersAllowedFocWindow from json.

func (*PortingOrdersAllowedFocWindow) Encode

Encode implements json.Marshaler.

func (*PortingOrdersAllowedFocWindow) GetEndedAt

GetEndedAt returns the value of EndedAt.

func (*PortingOrdersAllowedFocWindow) GetRecordType

func (s *PortingOrdersAllowedFocWindow) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingOrdersAllowedFocWindow) GetStartedAt

func (s *PortingOrdersAllowedFocWindow) GetStartedAt() OptDateTime

GetStartedAt returns the value of StartedAt.

func (*PortingOrdersAllowedFocWindow) MarshalJSON

func (s *PortingOrdersAllowedFocWindow) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrdersAllowedFocWindow) SetEndedAt

func (s *PortingOrdersAllowedFocWindow) SetEndedAt(val OptDateTime)

SetEndedAt sets the value of EndedAt.

func (*PortingOrdersAllowedFocWindow) SetRecordType

func (s *PortingOrdersAllowedFocWindow) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingOrdersAllowedFocWindow) SetStartedAt

func (s *PortingOrdersAllowedFocWindow) SetStartedAt(val OptDateTime)

SetStartedAt sets the value of StartedAt.

func (*PortingOrdersAllowedFocWindow) UnmarshalJSON

func (s *PortingOrdersAllowedFocWindow) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortingOrdersComment

type PortingOrdersComment struct {
	ID OptUUID `json:"id"`
	// Body of comment.
	Body           OptString `json:"body"`
	PortingOrderID OptUUID   `json:"porting_order_id"`
	// Indicates whether this comment was created by a Telnyx Admin, user, or system.
	UserType OptPortingOrdersCommentUserType `json:"user_type"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptDateTime `json:"created_at"`
}

Ref: #/components/schemas/PortingOrdersComment

func (*PortingOrdersComment) Decode

func (s *PortingOrdersComment) Decode(d *jx.Decoder) error

Decode decodes PortingOrdersComment from json.

func (*PortingOrdersComment) Encode

func (s *PortingOrdersComment) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrdersComment) GetBody

func (s *PortingOrdersComment) GetBody() OptString

GetBody returns the value of Body.

func (*PortingOrdersComment) GetCreatedAt

func (s *PortingOrdersComment) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*PortingOrdersComment) GetID

func (s *PortingOrdersComment) GetID() OptUUID

GetID returns the value of ID.

func (*PortingOrdersComment) GetPortingOrderID

func (s *PortingOrdersComment) GetPortingOrderID() OptUUID

GetPortingOrderID returns the value of PortingOrderID.

func (*PortingOrdersComment) GetRecordType

func (s *PortingOrdersComment) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingOrdersComment) GetUserType

GetUserType returns the value of UserType.

func (*PortingOrdersComment) MarshalJSON

func (s *PortingOrdersComment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrdersComment) SetBody

func (s *PortingOrdersComment) SetBody(val OptString)

SetBody sets the value of Body.

func (*PortingOrdersComment) SetCreatedAt

func (s *PortingOrdersComment) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*PortingOrdersComment) SetID

func (s *PortingOrdersComment) SetID(val OptUUID)

SetID sets the value of ID.

func (*PortingOrdersComment) SetPortingOrderID

func (s *PortingOrdersComment) SetPortingOrderID(val OptUUID)

SetPortingOrderID sets the value of PortingOrderID.

func (*PortingOrdersComment) SetRecordType

func (s *PortingOrdersComment) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingOrdersComment) SetUserType

SetUserType sets the value of UserType.

func (*PortingOrdersComment) UnmarshalJSON

func (s *PortingOrdersComment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrdersComment) Validate

func (s *PortingOrdersComment) Validate() error

type PortingOrdersCommentUserType

type PortingOrdersCommentUserType string

Indicates whether this comment was created by a Telnyx Admin, user, or system.

const (
	PortingOrdersCommentUserTypeAdmin  PortingOrdersCommentUserType = "admin"
	PortingOrdersCommentUserTypeUser   PortingOrdersCommentUserType = "user"
	PortingOrdersCommentUserTypeSystem PortingOrdersCommentUserType = "system"
)

func (PortingOrdersCommentUserType) AllValues

AllValues returns all PortingOrdersCommentUserType values.

func (*PortingOrdersCommentUserType) Decode

Decode decodes PortingOrdersCommentUserType from json.

func (PortingOrdersCommentUserType) Encode

Encode encodes PortingOrdersCommentUserType as json.

func (PortingOrdersCommentUserType) MarshalJSON

func (s PortingOrdersCommentUserType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingOrdersCommentUserType) MarshalText

func (s PortingOrdersCommentUserType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingOrdersCommentUserType) UnmarshalJSON

func (s *PortingOrdersCommentUserType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrdersCommentUserType) UnmarshalText

func (s *PortingOrdersCommentUserType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrdersCommentUserType) Validate

func (s PortingOrdersCommentUserType) Validate() error

type PortingOrdersExceptionType

type PortingOrdersExceptionType struct {
	// Identifier of an exception type.
	Code OptPortingOrdersExceptionTypeCode `json:"code"`
	// Description of an exception type.
	Description OptString `json:"description"`
}

Ref: #/components/schemas/PortingOrdersExceptionType

func (*PortingOrdersExceptionType) Decode

Decode decodes PortingOrdersExceptionType from json.

func (*PortingOrdersExceptionType) Encode

func (s *PortingOrdersExceptionType) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingOrdersExceptionType) GetCode

GetCode returns the value of Code.

func (*PortingOrdersExceptionType) GetDescription

func (s *PortingOrdersExceptionType) GetDescription() OptString

GetDescription returns the value of Description.

func (*PortingOrdersExceptionType) MarshalJSON

func (s *PortingOrdersExceptionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingOrdersExceptionType) SetCode

SetCode sets the value of Code.

func (*PortingOrdersExceptionType) SetDescription

func (s *PortingOrdersExceptionType) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*PortingOrdersExceptionType) UnmarshalJSON

func (s *PortingOrdersExceptionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrdersExceptionType) Validate

func (s *PortingOrdersExceptionType) Validate() error

type PortingOrdersExceptionTypeCode

type PortingOrdersExceptionTypeCode string

Identifier of an exception type.

const (
	PortingOrdersExceptionTypeCodeACCOUNTNUMBERMISMATCH        PortingOrdersExceptionTypeCode = "ACCOUNT_NUMBER_MISMATCH"
	PortingOrdersExceptionTypeCodeAUTHPERSONMISMATCH           PortingOrdersExceptionTypeCode = "AUTH_PERSON_MISMATCH"
	PortingOrdersExceptionTypeCodeBTNATNMISMATCH               PortingOrdersExceptionTypeCode = "BTN_ATN_MISMATCH"
	PortingOrdersExceptionTypeCodeENTITYNAMEMISMATCH           PortingOrdersExceptionTypeCode = "ENTITY_NAME_MISMATCH"
	PortingOrdersExceptionTypeCodeFOCEXPIRED                   PortingOrdersExceptionTypeCode = "FOC_EXPIRED"
	PortingOrdersExceptionTypeCodeFOCREJECTED                  PortingOrdersExceptionTypeCode = "FOC_REJECTED"
	PortingOrdersExceptionTypeCodeLOCATIONMISMATCH             PortingOrdersExceptionTypeCode = "LOCATION_MISMATCH"
	PortingOrdersExceptionTypeCodeLSRPENDING                   PortingOrdersExceptionTypeCode = "LSR_PENDING"
	PortingOrdersExceptionTypeCodeMAINBTNPORTING               PortingOrdersExceptionTypeCode = "MAIN_BTN_PORTING"
	PortingOrdersExceptionTypeCodeOSPIRRESPONSIVE              PortingOrdersExceptionTypeCode = "OSP_IRRESPONSIVE"
	PortingOrdersExceptionTypeCodeOTHER                        PortingOrdersExceptionTypeCode = "OTHER"
	PortingOrdersExceptionTypeCodePASSCODEPININVALID           PortingOrdersExceptionTypeCode = "PASSCODE_PIN_INVALID"
	PortingOrdersExceptionTypeCodePHONENUMBERHASSPECIALFEATURE PortingOrdersExceptionTypeCode = "PHONE_NUMBER_HAS_SPECIAL_FEATURE"
	PortingOrdersExceptionTypeCodePHONENUMBERMISMATCH          PortingOrdersExceptionTypeCode = "PHONE_NUMBER_MISMATCH"
	PortingOrdersExceptionTypeCodePHONENUMBERNOTPORTABLE       PortingOrdersExceptionTypeCode = "PHONE_NUMBER_NOT_PORTABLE"
	PortingOrdersExceptionTypeCodePORTTYPEINCORRECT            PortingOrdersExceptionTypeCode = "PORT_TYPE_INCORRECT"
	PortingOrdersExceptionTypeCodePORTINGORDERSPLITREQUIRED    PortingOrdersExceptionTypeCode = "PORTING_ORDER_SPLIT_REQUIRED"
	PortingOrdersExceptionTypeCodePOSTALCODEMISMATCH           PortingOrdersExceptionTypeCode = "POSTAL_CODE_MISMATCH"
	PortingOrdersExceptionTypeCodeRATECENTERNOTPORTABLE        PortingOrdersExceptionTypeCode = "RATE_CENTER_NOT_PORTABLE"
	PortingOrdersExceptionTypeCodeSVCONFLICT                   PortingOrdersExceptionTypeCode = "SV_CONFLICT"
	PortingOrdersExceptionTypeCodeSVUNKNOWNFAILURE             PortingOrdersExceptionTypeCode = "SV_UNKNOWN_FAILURE"
)

func (PortingOrdersExceptionTypeCode) AllValues

AllValues returns all PortingOrdersExceptionTypeCode values.

func (*PortingOrdersExceptionTypeCode) Decode

Decode decodes PortingOrdersExceptionTypeCode from json.

func (PortingOrdersExceptionTypeCode) Encode

Encode encodes PortingOrdersExceptionTypeCode as json.

func (PortingOrdersExceptionTypeCode) MarshalJSON

func (s PortingOrdersExceptionTypeCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingOrdersExceptionTypeCode) MarshalText

func (s PortingOrdersExceptionTypeCode) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingOrdersExceptionTypeCode) UnmarshalJSON

func (s *PortingOrdersExceptionTypeCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingOrdersExceptionTypeCode) UnmarshalText

func (s *PortingOrdersExceptionTypeCode) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingOrdersExceptionTypeCode) Validate

type PortingOrdersIDCommentsPostParams

type PortingOrdersIDCommentsPostParams struct {
	// Porting Order id.
	ID uuid.UUID
}

PortingOrdersIDCommentsPostParams is parameters of POST /porting_orders/{id}/comments operation.

type PortingOrdersIDCommentsPostRes

type PortingOrdersIDCommentsPostRes interface {
	// contains filtered or unexported methods
}

type PortingOrdersIDCommentsPostUnauthorized

type PortingOrdersIDCommentsPostUnauthorized struct{}

PortingOrdersIDCommentsPostUnauthorized is response for PortingOrdersIDCommentsPost operation.

type PortingOrdersIDCommentsPostUnprocessableEntity

type PortingOrdersIDCommentsPostUnprocessableEntity struct{}

PortingOrdersIDCommentsPostUnprocessableEntity is response for PortingOrdersIDCommentsPost operation.

type PortingPhoneNumber

type PortingPhoneNumber struct {
	// The current status of the porting order.
	PortingOrderStatus OptPortingPhoneNumberPortingOrderStatus `json:"porting_order_status"`
	// The type of the phone number.
	PhoneNumberType OptPortingPhoneNumberPhoneNumberType `json:"phone_number_type"`
	// E164 formatted phone number.
	PhoneNumber OptString `json:"phone_number"`
	// Identifies the associated port request.
	PortingOrderID OptUUID `json:"porting_order_id"`
	// A key to reference this porting order when contacting Telnyx customer support.
	SupportKey        OptString                       `json:"support_key"`
	ActivationStatus  OptPortingOrderActivationStatus `json:"activation_status"`
	PortabilityStatus OptPortabilityStatus            `json:"portability_status"`
	// The current status of the requirements in a INTL porting order.
	RequirementsStatus OptPortingPhoneNumberRequirementsStatus `json:"requirements_status"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
}

Ref: #/components/schemas/PortingPhoneNumber

func (*PortingPhoneNumber) Decode

func (s *PortingPhoneNumber) Decode(d *jx.Decoder) error

Decode decodes PortingPhoneNumber from json.

func (*PortingPhoneNumber) Encode

func (s *PortingPhoneNumber) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingPhoneNumber) GetActivationStatus

func (s *PortingPhoneNumber) GetActivationStatus() OptPortingOrderActivationStatus

GetActivationStatus returns the value of ActivationStatus.

func (*PortingPhoneNumber) GetPhoneNumber

func (s *PortingPhoneNumber) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PortingPhoneNumber) GetPhoneNumberType

GetPhoneNumberType returns the value of PhoneNumberType.

func (*PortingPhoneNumber) GetPortabilityStatus

func (s *PortingPhoneNumber) GetPortabilityStatus() OptPortabilityStatus

GetPortabilityStatus returns the value of PortabilityStatus.

func (*PortingPhoneNumber) GetPortingOrderID

func (s *PortingPhoneNumber) GetPortingOrderID() OptUUID

GetPortingOrderID returns the value of PortingOrderID.

func (*PortingPhoneNumber) GetPortingOrderStatus

GetPortingOrderStatus returns the value of PortingOrderStatus.

func (*PortingPhoneNumber) GetRecordType

func (s *PortingPhoneNumber) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingPhoneNumber) GetRequirementsStatus

GetRequirementsStatus returns the value of RequirementsStatus.

func (*PortingPhoneNumber) GetSupportKey

func (s *PortingPhoneNumber) GetSupportKey() OptString

GetSupportKey returns the value of SupportKey.

func (*PortingPhoneNumber) MarshalJSON

func (s *PortingPhoneNumber) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingPhoneNumber) SetActivationStatus

func (s *PortingPhoneNumber) SetActivationStatus(val OptPortingOrderActivationStatus)

SetActivationStatus sets the value of ActivationStatus.

func (*PortingPhoneNumber) SetPhoneNumber

func (s *PortingPhoneNumber) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PortingPhoneNumber) SetPhoneNumberType

func (s *PortingPhoneNumber) SetPhoneNumberType(val OptPortingPhoneNumberPhoneNumberType)

SetPhoneNumberType sets the value of PhoneNumberType.

func (*PortingPhoneNumber) SetPortabilityStatus

func (s *PortingPhoneNumber) SetPortabilityStatus(val OptPortabilityStatus)

SetPortabilityStatus sets the value of PortabilityStatus.

func (*PortingPhoneNumber) SetPortingOrderID

func (s *PortingPhoneNumber) SetPortingOrderID(val OptUUID)

SetPortingOrderID sets the value of PortingOrderID.

func (*PortingPhoneNumber) SetPortingOrderStatus

func (s *PortingPhoneNumber) SetPortingOrderStatus(val OptPortingPhoneNumberPortingOrderStatus)

SetPortingOrderStatus sets the value of PortingOrderStatus.

func (*PortingPhoneNumber) SetRecordType

func (s *PortingPhoneNumber) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingPhoneNumber) SetRequirementsStatus

func (s *PortingPhoneNumber) SetRequirementsStatus(val OptPortingPhoneNumberRequirementsStatus)

SetRequirementsStatus sets the value of RequirementsStatus.

func (*PortingPhoneNumber) SetSupportKey

func (s *PortingPhoneNumber) SetSupportKey(val OptString)

SetSupportKey sets the value of SupportKey.

func (*PortingPhoneNumber) UnmarshalJSON

func (s *PortingPhoneNumber) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingPhoneNumber) Validate

func (s *PortingPhoneNumber) Validate() error

type PortingPhoneNumberConfiguration

type PortingPhoneNumberConfiguration struct {
	// Uniquely identifies this phone number configuration.
	ID OptUUID `json:"id"`
	// Identifies the associated user bundle.
	UserBundleID OptUUID `json:"user_bundle_id"`
	// Identifies the associated porting phone number.
	PortingPhoneNumberID OptUUID `json:"porting_phone_number_id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptDateTime `json:"created_at"`
	// ISO 8601 formatted date indicating when the resource was updated.
	UpdatedAt OptDateTime `json:"updated_at"`
}

Ref: #/components/schemas/PortingPhoneNumberConfiguration

func (*PortingPhoneNumberConfiguration) Decode

Decode decodes PortingPhoneNumberConfiguration from json.

func (*PortingPhoneNumberConfiguration) Encode

Encode implements json.Marshaler.

func (*PortingPhoneNumberConfiguration) GetCreatedAt

func (s *PortingPhoneNumberConfiguration) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*PortingPhoneNumberConfiguration) GetID

GetID returns the value of ID.

func (*PortingPhoneNumberConfiguration) GetPortingPhoneNumberID

func (s *PortingPhoneNumberConfiguration) GetPortingPhoneNumberID() OptUUID

GetPortingPhoneNumberID returns the value of PortingPhoneNumberID.

func (*PortingPhoneNumberConfiguration) GetRecordType

func (s *PortingPhoneNumberConfiguration) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingPhoneNumberConfiguration) GetUpdatedAt

func (s *PortingPhoneNumberConfiguration) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*PortingPhoneNumberConfiguration) GetUserBundleID

func (s *PortingPhoneNumberConfiguration) GetUserBundleID() OptUUID

GetUserBundleID returns the value of UserBundleID.

func (*PortingPhoneNumberConfiguration) MarshalJSON

func (s *PortingPhoneNumberConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingPhoneNumberConfiguration) SetCreatedAt

func (s *PortingPhoneNumberConfiguration) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*PortingPhoneNumberConfiguration) SetID

SetID sets the value of ID.

func (*PortingPhoneNumberConfiguration) SetPortingPhoneNumberID

func (s *PortingPhoneNumberConfiguration) SetPortingPhoneNumberID(val OptUUID)

SetPortingPhoneNumberID sets the value of PortingPhoneNumberID.

func (*PortingPhoneNumberConfiguration) SetRecordType

func (s *PortingPhoneNumberConfiguration) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingPhoneNumberConfiguration) SetUpdatedAt

func (s *PortingPhoneNumberConfiguration) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*PortingPhoneNumberConfiguration) SetUserBundleID

func (s *PortingPhoneNumberConfiguration) SetUserBundleID(val OptUUID)

SetUserBundleID sets the value of UserBundleID.

func (*PortingPhoneNumberConfiguration) UnmarshalJSON

func (s *PortingPhoneNumberConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortingPhoneNumberPhoneNumberType

type PortingPhoneNumberPhoneNumberType string

The type of the phone number.

const (
	PortingPhoneNumberPhoneNumberTypeLandline   PortingPhoneNumberPhoneNumberType = "landline"
	PortingPhoneNumberPhoneNumberTypeLocal      PortingPhoneNumberPhoneNumberType = "local"
	PortingPhoneNumberPhoneNumberTypeMobile     PortingPhoneNumberPhoneNumberType = "mobile"
	PortingPhoneNumberPhoneNumberTypeNational   PortingPhoneNumberPhoneNumberType = "national"
	PortingPhoneNumberPhoneNumberTypeSharedCost PortingPhoneNumberPhoneNumberType = "shared_cost"
	PortingPhoneNumberPhoneNumberTypeTollFree   PortingPhoneNumberPhoneNumberType = "toll_free"
)

func (PortingPhoneNumberPhoneNumberType) AllValues

AllValues returns all PortingPhoneNumberPhoneNumberType values.

func (*PortingPhoneNumberPhoneNumberType) Decode

Decode decodes PortingPhoneNumberPhoneNumberType from json.

func (PortingPhoneNumberPhoneNumberType) Encode

Encode encodes PortingPhoneNumberPhoneNumberType as json.

func (PortingPhoneNumberPhoneNumberType) MarshalJSON

func (s PortingPhoneNumberPhoneNumberType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingPhoneNumberPhoneNumberType) MarshalText

func (s PortingPhoneNumberPhoneNumberType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingPhoneNumberPhoneNumberType) UnmarshalJSON

func (s *PortingPhoneNumberPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingPhoneNumberPhoneNumberType) UnmarshalText

func (s *PortingPhoneNumberPhoneNumberType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingPhoneNumberPhoneNumberType) Validate

type PortingPhoneNumberPortingOrderStatus

type PortingPhoneNumberPortingOrderStatus string

The current status of the porting order.

const (
	PortingPhoneNumberPortingOrderStatusDraft            PortingPhoneNumberPortingOrderStatus = "draft"
	PortingPhoneNumberPortingOrderStatusInProcess        PortingPhoneNumberPortingOrderStatus = "in-process"
	PortingPhoneNumberPortingOrderStatusSubmitted        PortingPhoneNumberPortingOrderStatus = "submitted"
	PortingPhoneNumberPortingOrderStatusException        PortingPhoneNumberPortingOrderStatus = "exception"
	PortingPhoneNumberPortingOrderStatusFocDateConfirmed PortingPhoneNumberPortingOrderStatus = "foc-date-confirmed"
	PortingPhoneNumberPortingOrderStatusCancelPending    PortingPhoneNumberPortingOrderStatus = "cancel-pending"
	PortingPhoneNumberPortingOrderStatusPorted           PortingPhoneNumberPortingOrderStatus = "ported"
	PortingPhoneNumberPortingOrderStatusCancelled        PortingPhoneNumberPortingOrderStatus = "cancelled"
)

func (PortingPhoneNumberPortingOrderStatus) AllValues

AllValues returns all PortingPhoneNumberPortingOrderStatus values.

func (*PortingPhoneNumberPortingOrderStatus) Decode

Decode decodes PortingPhoneNumberPortingOrderStatus from json.

func (PortingPhoneNumberPortingOrderStatus) Encode

Encode encodes PortingPhoneNumberPortingOrderStatus as json.

func (PortingPhoneNumberPortingOrderStatus) MarshalJSON

func (s PortingPhoneNumberPortingOrderStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingPhoneNumberPortingOrderStatus) MarshalText

func (s PortingPhoneNumberPortingOrderStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingPhoneNumberPortingOrderStatus) UnmarshalJSON

func (s *PortingPhoneNumberPortingOrderStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingPhoneNumberPortingOrderStatus) UnmarshalText

func (s *PortingPhoneNumberPortingOrderStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingPhoneNumberPortingOrderStatus) Validate

type PortingPhoneNumberRequirementsStatus

type PortingPhoneNumberRequirementsStatus string

The current status of the requirements in a INTL porting order.

const (
	PortingPhoneNumberRequirementsStatusRequirementInfoPending     PortingPhoneNumberRequirementsStatus = "requirement-info-pending"
	PortingPhoneNumberRequirementsStatusRequirementInfoUnderReview PortingPhoneNumberRequirementsStatus = "requirement-info-under-review"
	PortingPhoneNumberRequirementsStatusRequirementInfoException   PortingPhoneNumberRequirementsStatus = "requirement-info-exception"
	PortingPhoneNumberRequirementsStatusApproved                   PortingPhoneNumberRequirementsStatus = "approved"
)

func (PortingPhoneNumberRequirementsStatus) AllValues

AllValues returns all PortingPhoneNumberRequirementsStatus values.

func (*PortingPhoneNumberRequirementsStatus) Decode

Decode decodes PortingPhoneNumberRequirementsStatus from json.

func (PortingPhoneNumberRequirementsStatus) Encode

Encode encodes PortingPhoneNumberRequirementsStatus as json.

func (PortingPhoneNumberRequirementsStatus) MarshalJSON

func (s PortingPhoneNumberRequirementsStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingPhoneNumberRequirementsStatus) MarshalText

func (s PortingPhoneNumberRequirementsStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingPhoneNumberRequirementsStatus) UnmarshalJSON

func (s *PortingPhoneNumberRequirementsStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingPhoneNumberRequirementsStatus) UnmarshalText

func (s *PortingPhoneNumberRequirementsStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingPhoneNumberRequirementsStatus) Validate

type PortingReport

type PortingReport struct {
	// Uniquely identifies the report.
	ID OptUUID `json:"id"`
	// Identifies the type of report.
	ReportType OptPortingReportReportType `json:"report_type"`
	// The current status of the report generation.
	Status OptPortingReportStatus `json:"status"`
	Params OptPortingReportParams `json:"params"`
	// Identifies the document that was uploaded when report was generated. This field is only populated
	// when the report is under completed status.
	DocumentID OptUUID `json:"document_id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptDateTime `json:"created_at"`
	// ISO 8601 formatted date indicating when the resource was updated.
	UpdatedAt OptDateTime `json:"updated_at"`
}

Ref: #/components/schemas/PortingReport

func (*PortingReport) Decode

func (s *PortingReport) Decode(d *jx.Decoder) error

Decode decodes PortingReport from json.

func (*PortingReport) Encode

func (s *PortingReport) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingReport) GetCreatedAt

func (s *PortingReport) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*PortingReport) GetDocumentID

func (s *PortingReport) GetDocumentID() OptUUID

GetDocumentID returns the value of DocumentID.

func (*PortingReport) GetID

func (s *PortingReport) GetID() OptUUID

GetID returns the value of ID.

func (*PortingReport) GetParams

func (s *PortingReport) GetParams() OptPortingReportParams

GetParams returns the value of Params.

func (*PortingReport) GetRecordType

func (s *PortingReport) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingReport) GetReportType

func (s *PortingReport) GetReportType() OptPortingReportReportType

GetReportType returns the value of ReportType.

func (*PortingReport) GetStatus

func (s *PortingReport) GetStatus() OptPortingReportStatus

GetStatus returns the value of Status.

func (*PortingReport) GetUpdatedAt

func (s *PortingReport) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*PortingReport) MarshalJSON

func (s *PortingReport) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingReport) SetCreatedAt

func (s *PortingReport) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*PortingReport) SetDocumentID

func (s *PortingReport) SetDocumentID(val OptUUID)

SetDocumentID sets the value of DocumentID.

func (*PortingReport) SetID

func (s *PortingReport) SetID(val OptUUID)

SetID sets the value of ID.

func (*PortingReport) SetParams

func (s *PortingReport) SetParams(val OptPortingReportParams)

SetParams sets the value of Params.

func (*PortingReport) SetRecordType

func (s *PortingReport) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingReport) SetReportType

func (s *PortingReport) SetReportType(val OptPortingReportReportType)

SetReportType sets the value of ReportType.

func (*PortingReport) SetStatus

func (s *PortingReport) SetStatus(val OptPortingReportStatus)

SetStatus sets the value of Status.

func (*PortingReport) SetUpdatedAt

func (s *PortingReport) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*PortingReport) UnmarshalJSON

func (s *PortingReport) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingReport) Validate

func (s *PortingReport) Validate() error

type PortingReportParams

type PortingReportParams struct {
	Type                         PortingReportParamsType // switch on this field
	ExportPortingOrdersCSVReport ExportPortingOrdersCSVReport
}

PortingReportParams represents sum type.

func NewExportPortingOrdersCSVReportPortingReportParams

func NewExportPortingOrdersCSVReportPortingReportParams(v ExportPortingOrdersCSVReport) PortingReportParams

NewExportPortingOrdersCSVReportPortingReportParams returns new PortingReportParams from ExportPortingOrdersCSVReport.

func (*PortingReportParams) Decode

func (s *PortingReportParams) Decode(d *jx.Decoder) error

Decode decodes PortingReportParams from json.

func (PortingReportParams) Encode

func (s PortingReportParams) Encode(e *jx.Encoder)

Encode encodes PortingReportParams as json.

func (PortingReportParams) GetExportPortingOrdersCSVReport

func (s PortingReportParams) GetExportPortingOrdersCSVReport() (v ExportPortingOrdersCSVReport, ok bool)

GetExportPortingOrdersCSVReport returns ExportPortingOrdersCSVReport and true boolean if PortingReportParams is ExportPortingOrdersCSVReport.

func (PortingReportParams) IsExportPortingOrdersCSVReport

func (s PortingReportParams) IsExportPortingOrdersCSVReport() bool

IsExportPortingOrdersCSVReport reports whether PortingReportParams is ExportPortingOrdersCSVReport.

func (PortingReportParams) MarshalJSON

func (s PortingReportParams) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingReportParams) SetExportPortingOrdersCSVReport

func (s *PortingReportParams) SetExportPortingOrdersCSVReport(v ExportPortingOrdersCSVReport)

SetExportPortingOrdersCSVReport sets PortingReportParams to ExportPortingOrdersCSVReport.

func (*PortingReportParams) UnmarshalJSON

func (s *PortingReportParams) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PortingReportParams) Validate

func (s PortingReportParams) Validate() error

type PortingReportParamsType

type PortingReportParamsType string

PortingReportParamsType is oneOf type of PortingReportParams.

const (
	ExportPortingOrdersCSVReportPortingReportParams PortingReportParamsType = "ExportPortingOrdersCSVReport"
)

Possible values for PortingReportParamsType.

type PortingReportReportType

type PortingReportReportType string

Identifies the type of report.

const (
	PortingReportReportTypeExportPortingOrdersCsv PortingReportReportType = "export_porting_orders_csv"
)

func (PortingReportReportType) AllValues

AllValues returns all PortingReportReportType values.

func (*PortingReportReportType) Decode

func (s *PortingReportReportType) Decode(d *jx.Decoder) error

Decode decodes PortingReportReportType from json.

func (PortingReportReportType) Encode

func (s PortingReportReportType) Encode(e *jx.Encoder)

Encode encodes PortingReportReportType as json.

func (PortingReportReportType) MarshalJSON

func (s PortingReportReportType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingReportReportType) MarshalText

func (s PortingReportReportType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingReportReportType) UnmarshalJSON

func (s *PortingReportReportType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingReportReportType) UnmarshalText

func (s *PortingReportReportType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingReportReportType) Validate

func (s PortingReportReportType) Validate() error

type PortingReportStatus

type PortingReportStatus string

The current status of the report generation.

const (
	PortingReportStatusPending   PortingReportStatus = "pending"
	PortingReportStatusCompleted PortingReportStatus = "completed"
)

func (PortingReportStatus) AllValues

AllValues returns all PortingReportStatus values.

func (*PortingReportStatus) Decode

func (s *PortingReportStatus) Decode(d *jx.Decoder) error

Decode decodes PortingReportStatus from json.

func (PortingReportStatus) Encode

func (s PortingReportStatus) Encode(e *jx.Encoder)

Encode encodes PortingReportStatus as json.

func (PortingReportStatus) MarshalJSON

func (s PortingReportStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortingReportStatus) MarshalText

func (s PortingReportStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortingReportStatus) UnmarshalJSON

func (s *PortingReportStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortingReportStatus) UnmarshalText

func (s *PortingReportStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortingReportStatus) Validate

func (s PortingReportStatus) Validate() error

type PortingVerificationCode

type PortingVerificationCode struct {
	// Uniquely identifies this porting verification code.
	ID OptUUID `json:"id"`
	// E164 formatted phone number.
	PhoneNumber OptString `json:"phone_number"`
	// Indicates whether the verification code has been verified.
	Verified OptBool `json:"verified"`
	// Identifies the associated porting order.
	PortingOrderID OptUUID `json:"porting_order_id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptDateTime `json:"created_at"`
	// ISO 8601 formatted date indicating when the resource was updated.
	UpdatedAt OptDateTime `json:"updated_at"`
}

Ref: #/components/schemas/PortingVerificationCode

func (*PortingVerificationCode) Decode

func (s *PortingVerificationCode) Decode(d *jx.Decoder) error

Decode decodes PortingVerificationCode from json.

func (*PortingVerificationCode) Encode

func (s *PortingVerificationCode) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortingVerificationCode) GetCreatedAt

func (s *PortingVerificationCode) GetCreatedAt() OptDateTime

GetCreatedAt returns the value of CreatedAt.

func (*PortingVerificationCode) GetID

func (s *PortingVerificationCode) GetID() OptUUID

GetID returns the value of ID.

func (*PortingVerificationCode) GetPhoneNumber

func (s *PortingVerificationCode) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*PortingVerificationCode) GetPortingOrderID

func (s *PortingVerificationCode) GetPortingOrderID() OptUUID

GetPortingOrderID returns the value of PortingOrderID.

func (*PortingVerificationCode) GetRecordType

func (s *PortingVerificationCode) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortingVerificationCode) GetUpdatedAt

func (s *PortingVerificationCode) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*PortingVerificationCode) GetVerified

func (s *PortingVerificationCode) GetVerified() OptBool

GetVerified returns the value of Verified.

func (*PortingVerificationCode) MarshalJSON

func (s *PortingVerificationCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortingVerificationCode) SetCreatedAt

func (s *PortingVerificationCode) SetCreatedAt(val OptDateTime)

SetCreatedAt sets the value of CreatedAt.

func (*PortingVerificationCode) SetID

func (s *PortingVerificationCode) SetID(val OptUUID)

SetID sets the value of ID.

func (*PortingVerificationCode) SetPhoneNumber

func (s *PortingVerificationCode) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*PortingVerificationCode) SetPortingOrderID

func (s *PortingVerificationCode) SetPortingOrderID(val OptUUID)

SetPortingOrderID sets the value of PortingOrderID.

func (*PortingVerificationCode) SetRecordType

func (s *PortingVerificationCode) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortingVerificationCode) SetUpdatedAt

func (s *PortingVerificationCode) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*PortingVerificationCode) SetVerified

func (s *PortingVerificationCode) SetVerified(val OptBool)

SetVerified sets the value of Verified.

func (*PortingVerificationCode) UnmarshalJSON

func (s *PortingVerificationCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortoutComment

type PortoutComment struct {
	ID string `json:"id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// Comment body.
	Body string `json:"body"`
	// Identifies the associated port request.
	PortoutID OptNilString `json:"portout_id"`
	// Identifies the user who created the comment. Will be null if created by Telnyx Admin.
	UserID string `json:"user_id"`
	// Comment creation timestamp in ISO 8601 format.
	CreatedAt string `json:"created_at"`
}

Ref: #/components/schemas/PortoutComment

func (*PortoutComment) Decode

func (s *PortoutComment) Decode(d *jx.Decoder) error

Decode decodes PortoutComment from json.

func (*PortoutComment) Encode

func (s *PortoutComment) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortoutComment) GetBody

func (s *PortoutComment) GetBody() string

GetBody returns the value of Body.

func (*PortoutComment) GetCreatedAt

func (s *PortoutComment) GetCreatedAt() string

GetCreatedAt returns the value of CreatedAt.

func (*PortoutComment) GetID

func (s *PortoutComment) GetID() string

GetID returns the value of ID.

func (*PortoutComment) GetPortoutID

func (s *PortoutComment) GetPortoutID() OptNilString

GetPortoutID returns the value of PortoutID.

func (*PortoutComment) GetRecordType

func (s *PortoutComment) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortoutComment) GetUserID

func (s *PortoutComment) GetUserID() string

GetUserID returns the value of UserID.

func (*PortoutComment) MarshalJSON

func (s *PortoutComment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortoutComment) SetBody

func (s *PortoutComment) SetBody(val string)

SetBody sets the value of Body.

func (*PortoutComment) SetCreatedAt

func (s *PortoutComment) SetCreatedAt(val string)

SetCreatedAt sets the value of CreatedAt.

func (*PortoutComment) SetID

func (s *PortoutComment) SetID(val string)

SetID sets the value of ID.

func (*PortoutComment) SetPortoutID

func (s *PortoutComment) SetPortoutID(val OptNilString)

SetPortoutID sets the value of PortoutID.

func (*PortoutComment) SetRecordType

func (s *PortoutComment) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortoutComment) SetUserID

func (s *PortoutComment) SetUserID(val string)

SetUserID sets the value of UserID.

func (*PortoutComment) UnmarshalJSON

func (s *PortoutComment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortoutCommentResponse

type PortoutCommentResponse struct {
	Data OptPortoutComment `json:"data"`
}

func (*PortoutCommentResponse) Decode

func (s *PortoutCommentResponse) Decode(d *jx.Decoder) error

Decode decodes PortoutCommentResponse from json.

func (*PortoutCommentResponse) Encode

func (s *PortoutCommentResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortoutCommentResponse) GetData

GetData returns the value of Data.

func (*PortoutCommentResponse) MarshalJSON

func (s *PortoutCommentResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortoutCommentResponse) SetData

func (s *PortoutCommentResponse) SetData(val OptPortoutComment)

SetData sets the value of Data.

func (*PortoutCommentResponse) UnmarshalJSON

func (s *PortoutCommentResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PortoutDetails

type PortoutDetails struct {
	ID OptString `json:"id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// Phone numbers associated with this portout.
	PhoneNumbers []string `json:"phone_numbers"`
	// Name of person authorizing the porting order.
	AuthorizedName OptString `json:"authorized_name"`
	// Carrier the number will be ported out to.
	CarrierName OptString `json:"carrier_name"`
	// The current carrier.
	CurrentCarrier OptString `json:"current_carrier"`
	// Person name or company name requesting the port.
	EndUserName OptString `json:"end_user_name"`
	// City or municipality of billing address.
	City OptString `json:"city"`
	// State, province, or similar of billing address.
	State OptString `json:"state"`
	// Postal Code of billing address.
	Zip OptString `json:"zip"`
	// The Local Service Request.
	Lsr []url.URL `json:"lsr"`
	// Port order number assigned by the carrier the number will be ported out to.
	Pon OptString `json:"pon"`
	// The reason why the order is being rejected by the user. If the order is authorized, this field can
	// be left null.
	Reason OptString `json:"reason"`
	// First line of billing address (street address).
	ServiceAddress OptString `json:"service_address"`
	// ISO 8601 formatted Date/Time of the FOC date.
	FocDate OptString `json:"foc_date"`
	// ISO 8601 formatted Date/Time of the user requested FOC date.
	RequestedFocDate OptString `json:"requested_foc_date"`
	// New service provider spid.
	Spid OptString `json:"spid"`
	// A key to reference this port out request when contacting Telnyx customer support.
	SupportKey OptString `json:"support_key"`
	// Status of portout request.
	Status OptPortoutDetailsStatus `json:"status"`
	// Is true when the number is already ported.
	AlreadyPorted OptBool `json:"already_ported"`
	// Identifies the user (or organization) who requested the port out.
	UserID OptUUID `json:"user_id"`
	// Telnyx partner providing network coverage.
	Vendor OptUUID `json:"vendor"`
	// ISO 8601 formatted date of when the portout was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date of when the portout was created.
	InsertedAt OptString `json:"inserted_at"`
	// ISO 8601 formatted date of when the portout was last updated.
	UpdatedAt OptString `json:"updated_at"`
}

Ref: #/components/schemas/PortoutDetails

func (*PortoutDetails) Decode

func (s *PortoutDetails) Decode(d *jx.Decoder) error

Decode decodes PortoutDetails from json.

func (*PortoutDetails) Encode

func (s *PortoutDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortoutDetails) GetAlreadyPorted

func (s *PortoutDetails) GetAlreadyPorted() OptBool

GetAlreadyPorted returns the value of AlreadyPorted.

func (*PortoutDetails) GetAuthorizedName

func (s *PortoutDetails) GetAuthorizedName() OptString

GetAuthorizedName returns the value of AuthorizedName.

func (*PortoutDetails) GetCarrierName

func (s *PortoutDetails) GetCarrierName() OptString

GetCarrierName returns the value of CarrierName.

func (*PortoutDetails) GetCity

func (s *PortoutDetails) GetCity() OptString

GetCity returns the value of City.

func (*PortoutDetails) GetCreatedAt

func (s *PortoutDetails) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*PortoutDetails) GetCurrentCarrier

func (s *PortoutDetails) GetCurrentCarrier() OptString

GetCurrentCarrier returns the value of CurrentCarrier.

func (*PortoutDetails) GetEndUserName

func (s *PortoutDetails) GetEndUserName() OptString

GetEndUserName returns the value of EndUserName.

func (*PortoutDetails) GetFocDate

func (s *PortoutDetails) GetFocDate() OptString

GetFocDate returns the value of FocDate.

func (*PortoutDetails) GetID

func (s *PortoutDetails) GetID() OptString

GetID returns the value of ID.

func (*PortoutDetails) GetInsertedAt

func (s *PortoutDetails) GetInsertedAt() OptString

GetInsertedAt returns the value of InsertedAt.

func (*PortoutDetails) GetLsr

func (s *PortoutDetails) GetLsr() []url.URL

GetLsr returns the value of Lsr.

func (*PortoutDetails) GetPhoneNumbers

func (s *PortoutDetails) GetPhoneNumbers() []string

GetPhoneNumbers returns the value of PhoneNumbers.

func (*PortoutDetails) GetPon

func (s *PortoutDetails) GetPon() OptString

GetPon returns the value of Pon.

func (*PortoutDetails) GetReason

func (s *PortoutDetails) GetReason() OptString

GetReason returns the value of Reason.

func (*PortoutDetails) GetRecordType

func (s *PortoutDetails) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PortoutDetails) GetRequestedFocDate

func (s *PortoutDetails) GetRequestedFocDate() OptString

GetRequestedFocDate returns the value of RequestedFocDate.

func (*PortoutDetails) GetServiceAddress

func (s *PortoutDetails) GetServiceAddress() OptString

GetServiceAddress returns the value of ServiceAddress.

func (*PortoutDetails) GetSpid

func (s *PortoutDetails) GetSpid() OptString

GetSpid returns the value of Spid.

func (*PortoutDetails) GetState

func (s *PortoutDetails) GetState() OptString

GetState returns the value of State.

func (*PortoutDetails) GetStatus

func (s *PortoutDetails) GetStatus() OptPortoutDetailsStatus

GetStatus returns the value of Status.

func (*PortoutDetails) GetSupportKey

func (s *PortoutDetails) GetSupportKey() OptString

GetSupportKey returns the value of SupportKey.

func (*PortoutDetails) GetUpdatedAt

func (s *PortoutDetails) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*PortoutDetails) GetUserID

func (s *PortoutDetails) GetUserID() OptUUID

GetUserID returns the value of UserID.

func (*PortoutDetails) GetVendor

func (s *PortoutDetails) GetVendor() OptUUID

GetVendor returns the value of Vendor.

func (*PortoutDetails) GetZip

func (s *PortoutDetails) GetZip() OptString

GetZip returns the value of Zip.

func (*PortoutDetails) MarshalJSON

func (s *PortoutDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortoutDetails) SetAlreadyPorted

func (s *PortoutDetails) SetAlreadyPorted(val OptBool)

SetAlreadyPorted sets the value of AlreadyPorted.

func (*PortoutDetails) SetAuthorizedName

func (s *PortoutDetails) SetAuthorizedName(val OptString)

SetAuthorizedName sets the value of AuthorizedName.

func (*PortoutDetails) SetCarrierName

func (s *PortoutDetails) SetCarrierName(val OptString)

SetCarrierName sets the value of CarrierName.

func (*PortoutDetails) SetCity

func (s *PortoutDetails) SetCity(val OptString)

SetCity sets the value of City.

func (*PortoutDetails) SetCreatedAt

func (s *PortoutDetails) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*PortoutDetails) SetCurrentCarrier

func (s *PortoutDetails) SetCurrentCarrier(val OptString)

SetCurrentCarrier sets the value of CurrentCarrier.

func (*PortoutDetails) SetEndUserName

func (s *PortoutDetails) SetEndUserName(val OptString)

SetEndUserName sets the value of EndUserName.

func (*PortoutDetails) SetFocDate

func (s *PortoutDetails) SetFocDate(val OptString)

SetFocDate sets the value of FocDate.

func (*PortoutDetails) SetID

func (s *PortoutDetails) SetID(val OptString)

SetID sets the value of ID.

func (*PortoutDetails) SetInsertedAt

func (s *PortoutDetails) SetInsertedAt(val OptString)

SetInsertedAt sets the value of InsertedAt.

func (*PortoutDetails) SetLsr

func (s *PortoutDetails) SetLsr(val []url.URL)

SetLsr sets the value of Lsr.

func (*PortoutDetails) SetPhoneNumbers

func (s *PortoutDetails) SetPhoneNumbers(val []string)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*PortoutDetails) SetPon

func (s *PortoutDetails) SetPon(val OptString)

SetPon sets the value of Pon.

func (*PortoutDetails) SetReason

func (s *PortoutDetails) SetReason(val OptString)

SetReason sets the value of Reason.

func (*PortoutDetails) SetRecordType

func (s *PortoutDetails) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PortoutDetails) SetRequestedFocDate

func (s *PortoutDetails) SetRequestedFocDate(val OptString)

SetRequestedFocDate sets the value of RequestedFocDate.

func (*PortoutDetails) SetServiceAddress

func (s *PortoutDetails) SetServiceAddress(val OptString)

SetServiceAddress sets the value of ServiceAddress.

func (*PortoutDetails) SetSpid

func (s *PortoutDetails) SetSpid(val OptString)

SetSpid sets the value of Spid.

func (*PortoutDetails) SetState

func (s *PortoutDetails) SetState(val OptString)

SetState sets the value of State.

func (*PortoutDetails) SetStatus

func (s *PortoutDetails) SetStatus(val OptPortoutDetailsStatus)

SetStatus sets the value of Status.

func (*PortoutDetails) SetSupportKey

func (s *PortoutDetails) SetSupportKey(val OptString)

SetSupportKey sets the value of SupportKey.

func (*PortoutDetails) SetUpdatedAt

func (s *PortoutDetails) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*PortoutDetails) SetUserID

func (s *PortoutDetails) SetUserID(val OptUUID)

SetUserID sets the value of UserID.

func (*PortoutDetails) SetVendor

func (s *PortoutDetails) SetVendor(val OptUUID)

SetVendor sets the value of Vendor.

func (*PortoutDetails) SetZip

func (s *PortoutDetails) SetZip(val OptString)

SetZip sets the value of Zip.

func (*PortoutDetails) UnmarshalJSON

func (s *PortoutDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortoutDetails) Validate

func (s *PortoutDetails) Validate() error

type PortoutDetailsStatus

type PortoutDetailsStatus string

Status of portout request.

const (
	PortoutDetailsStatusPending         PortoutDetailsStatus = "pending"
	PortoutDetailsStatusAuthorized      PortoutDetailsStatus = "authorized"
	PortoutDetailsStatusPorted          PortoutDetailsStatus = "ported"
	PortoutDetailsStatusRejected        PortoutDetailsStatus = "rejected"
	PortoutDetailsStatusRejectedPending PortoutDetailsStatus = "rejected-pending"
	PortoutDetailsStatusCanceled        PortoutDetailsStatus = "canceled"
)

func (PortoutDetailsStatus) AllValues

AllValues returns all PortoutDetailsStatus values.

func (*PortoutDetailsStatus) Decode

func (s *PortoutDetailsStatus) Decode(d *jx.Decoder) error

Decode decodes PortoutDetailsStatus from json.

func (PortoutDetailsStatus) Encode

func (s PortoutDetailsStatus) Encode(e *jx.Encoder)

Encode encodes PortoutDetailsStatus as json.

func (PortoutDetailsStatus) MarshalJSON

func (s PortoutDetailsStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PortoutDetailsStatus) MarshalText

func (s PortoutDetailsStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PortoutDetailsStatus) UnmarshalJSON

func (s *PortoutDetailsStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortoutDetailsStatus) UnmarshalText

func (s *PortoutDetailsStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PortoutDetailsStatus) Validate

func (s PortoutDetailsStatus) Validate() error

type PortoutResponse

type PortoutResponse struct {
	Data OptPortoutDetails `json:"data"`
}

func (*PortoutResponse) Decode

func (s *PortoutResponse) Decode(d *jx.Decoder) error

Decode decodes PortoutResponse from json.

func (*PortoutResponse) Encode

func (s *PortoutResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PortoutResponse) GetData

func (s *PortoutResponse) GetData() OptPortoutDetails

GetData returns the value of Data.

func (*PortoutResponse) MarshalJSON

func (s *PortoutResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PortoutResponse) SetData

func (s *PortoutResponse) SetData(val OptPortoutDetails)

SetData sets the value of Data.

func (*PortoutResponse) UnmarshalJSON

func (s *PortoutResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PortoutResponse) Validate

func (s *PortoutResponse) Validate() error

type PostPortRequestCommentNotFound

type PostPortRequestCommentNotFound struct{}

PostPortRequestCommentNotFound is response for PostPortRequestComment operation.

type PostPortRequestCommentParams

type PostPortRequestCommentParams struct {
	// Portout id.
	ID uuid.UUID
}

PostPortRequestCommentParams is parameters of PostPortRequestComment operation.

type PostPortRequestCommentReq

type PostPortRequestCommentReq struct {
	// Comment to post on this portout request.
	Body OptString `json:"body"`
}

func (*PostPortRequestCommentReq) Decode

func (s *PostPortRequestCommentReq) Decode(d *jx.Decoder) error

Decode decodes PostPortRequestCommentReq from json.

func (*PostPortRequestCommentReq) Encode

func (s *PostPortRequestCommentReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PostPortRequestCommentReq) GetBody

func (s *PostPortRequestCommentReq) GetBody() OptString

GetBody returns the value of Body.

func (*PostPortRequestCommentReq) MarshalJSON

func (s *PostPortRequestCommentReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PostPortRequestCommentReq) SetBody

func (s *PostPortRequestCommentReq) SetBody(val OptString)

SetBody sets the value of Body.

func (*PostPortRequestCommentReq) UnmarshalJSON

func (s *PostPortRequestCommentReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PostPortRequestCommentRes

type PostPortRequestCommentRes interface {
	// contains filtered or unexported methods
}

type PostPortRequestCommentUnauthorized

type PostPortRequestCommentUnauthorized struct{}

PostPortRequestCommentUnauthorized is response for PostPortRequestComment operation.

type PostPortRequestCommentUnprocessableEntity

type PostPortRequestCommentUnprocessableEntity struct{}

PostPortRequestCommentUnprocessableEntity is response for PostPortRequestComment operation.

type PostPortRequestSupportingDocumentsNotFound

type PostPortRequestSupportingDocumentsNotFound struct{}

PostPortRequestSupportingDocumentsNotFound is response for PostPortRequestSupportingDocuments operation.

type PostPortRequestSupportingDocumentsParams

type PostPortRequestSupportingDocumentsParams struct {
	// Portout id.
	ID uuid.UUID
}

PostPortRequestSupportingDocumentsParams is parameters of PostPortRequestSupportingDocuments operation.

type PostPortRequestSupportingDocumentsReq

type PostPortRequestSupportingDocumentsReq struct {
	// List of supporting documents parameters.
	Documents []PostPortRequestSupportingDocumentsReqDocumentsItem `json:"documents"`
}

func (*PostPortRequestSupportingDocumentsReq) Decode

Decode decodes PostPortRequestSupportingDocumentsReq from json.

func (*PostPortRequestSupportingDocumentsReq) Encode

Encode implements json.Marshaler.

func (*PostPortRequestSupportingDocumentsReq) GetDocuments

GetDocuments returns the value of Documents.

func (*PostPortRequestSupportingDocumentsReq) MarshalJSON

func (s *PostPortRequestSupportingDocumentsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PostPortRequestSupportingDocumentsReq) SetDocuments

SetDocuments sets the value of Documents.

func (*PostPortRequestSupportingDocumentsReq) UnmarshalJSON

func (s *PostPortRequestSupportingDocumentsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PostPortRequestSupportingDocumentsReq) Validate

type PostPortRequestSupportingDocumentsReqDocumentsItem

type PostPortRequestSupportingDocumentsReqDocumentsItem struct {
	// Identifies the type of the document.
	Type PostPortRequestSupportingDocumentsReqDocumentsItemType `json:"type"`
	// Identifies the associated document.
	DocumentID uuid.UUID `json:"document_id"`
}

func (*PostPortRequestSupportingDocumentsReqDocumentsItem) Decode

Decode decodes PostPortRequestSupportingDocumentsReqDocumentsItem from json.

func (*PostPortRequestSupportingDocumentsReqDocumentsItem) Encode

Encode implements json.Marshaler.

func (*PostPortRequestSupportingDocumentsReqDocumentsItem) GetDocumentID

GetDocumentID returns the value of DocumentID.

func (*PostPortRequestSupportingDocumentsReqDocumentsItem) GetType

GetType returns the value of Type.

func (*PostPortRequestSupportingDocumentsReqDocumentsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PostPortRequestSupportingDocumentsReqDocumentsItem) SetDocumentID

SetDocumentID sets the value of DocumentID.

func (*PostPortRequestSupportingDocumentsReqDocumentsItem) SetType

SetType sets the value of Type.

func (*PostPortRequestSupportingDocumentsReqDocumentsItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PostPortRequestSupportingDocumentsReqDocumentsItem) Validate

type PostPortRequestSupportingDocumentsReqDocumentsItemType

type PostPortRequestSupportingDocumentsReqDocumentsItemType string

Identifies the type of the document.

const (
	PostPortRequestSupportingDocumentsReqDocumentsItemTypeLoa     PostPortRequestSupportingDocumentsReqDocumentsItemType = "loa"
	PostPortRequestSupportingDocumentsReqDocumentsItemTypeInvoice PostPortRequestSupportingDocumentsReqDocumentsItemType = "invoice"
)

func (PostPortRequestSupportingDocumentsReqDocumentsItemType) AllValues

AllValues returns all PostPortRequestSupportingDocumentsReqDocumentsItemType values.

func (*PostPortRequestSupportingDocumentsReqDocumentsItemType) Decode

Decode decodes PostPortRequestSupportingDocumentsReqDocumentsItemType from json.

func (PostPortRequestSupportingDocumentsReqDocumentsItemType) Encode

Encode encodes PostPortRequestSupportingDocumentsReqDocumentsItemType as json.

func (PostPortRequestSupportingDocumentsReqDocumentsItemType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PostPortRequestSupportingDocumentsReqDocumentsItemType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*PostPortRequestSupportingDocumentsReqDocumentsItemType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PostPortRequestSupportingDocumentsReqDocumentsItemType) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (PostPortRequestSupportingDocumentsReqDocumentsItemType) Validate

type PostPortRequestSupportingDocumentsRes

type PostPortRequestSupportingDocumentsRes interface {
	// contains filtered or unexported methods
}

type PostPortRequestSupportingDocumentsUnauthorized

type PostPortRequestSupportingDocumentsUnauthorized struct{}

PostPortRequestSupportingDocumentsUnauthorized is response for PostPortRequestSupportingDocuments operation.

type PostPortRequestSupportingDocumentsUnprocessableEntity

type PostPortRequestSupportingDocumentsUnprocessableEntity struct{}

PostPortRequestSupportingDocumentsUnprocessableEntity is response for PostPortRequestSupportingDocuments operation.

type PostPortabilityCheckReq

type PostPortabilityCheckReq struct {
	// The list of +E.164 formatted phone numbers to check for portability.
	PhoneNumbers []string `json:"phone_numbers"`
}

func (*PostPortabilityCheckReq) Decode

func (s *PostPortabilityCheckReq) Decode(d *jx.Decoder) error

Decode decodes PostPortabilityCheckReq from json.

func (*PostPortabilityCheckReq) Encode

func (s *PostPortabilityCheckReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PostPortabilityCheckReq) GetPhoneNumbers

func (s *PostPortabilityCheckReq) GetPhoneNumbers() []string

GetPhoneNumbers returns the value of PhoneNumbers.

func (*PostPortabilityCheckReq) MarshalJSON

func (s *PostPortabilityCheckReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PostPortabilityCheckReq) SetPhoneNumbers

func (s *PostPortabilityCheckReq) SetPhoneNumbers(val []string)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*PostPortabilityCheckReq) UnmarshalJSON

func (s *PostPortabilityCheckReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PostPortabilityCheckRes

type PostPortabilityCheckRes interface {
	// contains filtered or unexported methods
}

type PostPortabilityCheckUnauthorized

type PostPortabilityCheckUnauthorized struct{}

PostPortabilityCheckUnauthorized is response for PostPortabilityCheck operation.

type PostPortabilityCheckUnprocessableEntity

type PostPortabilityCheckUnprocessableEntity struct{}

PostPortabilityCheckUnprocessableEntity is response for PostPortabilityCheck operation.

type PreviewLoaConfigurationInternalServerError

type PreviewLoaConfigurationInternalServerError struct{}

PreviewLoaConfigurationInternalServerError is response for PreviewLoaConfiguration operation.

type PreviewLoaConfigurationNotFound

type PreviewLoaConfigurationNotFound struct{}

PreviewLoaConfigurationNotFound is response for PreviewLoaConfiguration operation.

type PreviewLoaConfigurationParams

type PreviewLoaConfigurationParams struct {
	// Identifies a LOA configuration.
	ID uuid.UUID
}

PreviewLoaConfigurationParams is parameters of PreviewLoaConfiguration operation.

type PreviewLoaConfigurationParamsInternalServerError

type PreviewLoaConfigurationParamsInternalServerError struct{}

PreviewLoaConfigurationParamsInternalServerError is response for PreviewLoaConfigurationParams operation.

type PreviewLoaConfigurationParamsReq

type PreviewLoaConfigurationParamsReq struct {
	// The name of the LOA configuration.
	Name string `json:"name"`
	Logo PreviewLoaConfigurationParamsReqLogo `json:"logo"`
	// The name of the company.
	CompanyName string `json:"company_name"`
	// The address of the company.
	Address PreviewLoaConfigurationParamsReqAddress `json:"address"`
	// The contact information of the company.
	Contact PreviewLoaConfigurationParamsReqContact `json:"contact"`
}

The parameters for creating a new LOA configuration.

func (*PreviewLoaConfigurationParamsReq) Decode

Decode decodes PreviewLoaConfigurationParamsReq from json.

func (*PreviewLoaConfigurationParamsReq) Encode

Encode implements json.Marshaler.

func (*PreviewLoaConfigurationParamsReq) GetAddress

GetAddress returns the value of Address.

func (*PreviewLoaConfigurationParamsReq) GetCompanyName

func (s *PreviewLoaConfigurationParamsReq) GetCompanyName() string

GetCompanyName returns the value of CompanyName.

func (*PreviewLoaConfigurationParamsReq) GetContact

GetContact returns the value of Contact.

GetLogo returns the value of Logo.

func (*PreviewLoaConfigurationParamsReq) GetName

GetName returns the value of Name.

func (*PreviewLoaConfigurationParamsReq) MarshalJSON

func (s *PreviewLoaConfigurationParamsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PreviewLoaConfigurationParamsReq) SetAddress

SetAddress sets the value of Address.

func (*PreviewLoaConfigurationParamsReq) SetCompanyName

func (s *PreviewLoaConfigurationParamsReq) SetCompanyName(val string)

SetCompanyName sets the value of CompanyName.

func (*PreviewLoaConfigurationParamsReq) SetContact

SetContact sets the value of Contact.

SetLogo sets the value of Logo.

func (*PreviewLoaConfigurationParamsReq) SetName

func (s *PreviewLoaConfigurationParamsReq) SetName(val string)

SetName sets the value of Name.

func (*PreviewLoaConfigurationParamsReq) UnmarshalJSON

func (s *PreviewLoaConfigurationParamsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PreviewLoaConfigurationParamsReq) Validate

type PreviewLoaConfigurationParamsReqAddress

type PreviewLoaConfigurationParamsReqAddress struct {
	// The street address of the company.
	StreetAddress string `json:"street_address"`
	// The extended address of the company.
	ExtendedAddress OptString `json:"extended_address"`
	// The locality of the company.
	City OptString `json:"city"`
	// The administrative area of the company.
	State OptString `json:"state"`
	// The postal code of the company.
	ZipCode OptString `json:"zip_code"`
	// The country code of the company.
	CountryCode string `json:"country_code"`
}

The address of the company.

func (*PreviewLoaConfigurationParamsReqAddress) Decode

Decode decodes PreviewLoaConfigurationParamsReqAddress from json.

func (*PreviewLoaConfigurationParamsReqAddress) Encode

Encode implements json.Marshaler.

func (*PreviewLoaConfigurationParamsReqAddress) GetCity

GetCity returns the value of City.

func (*PreviewLoaConfigurationParamsReqAddress) GetCountryCode

func (s *PreviewLoaConfigurationParamsReqAddress) GetCountryCode() string

GetCountryCode returns the value of CountryCode.

func (*PreviewLoaConfigurationParamsReqAddress) GetExtendedAddress

func (s *PreviewLoaConfigurationParamsReqAddress) GetExtendedAddress() OptString

GetExtendedAddress returns the value of ExtendedAddress.

func (*PreviewLoaConfigurationParamsReqAddress) GetState

GetState returns the value of State.

func (*PreviewLoaConfigurationParamsReqAddress) GetStreetAddress

func (s *PreviewLoaConfigurationParamsReqAddress) GetStreetAddress() string

GetStreetAddress returns the value of StreetAddress.

func (*PreviewLoaConfigurationParamsReqAddress) GetZipCode

GetZipCode returns the value of ZipCode.

func (*PreviewLoaConfigurationParamsReqAddress) MarshalJSON

func (s *PreviewLoaConfigurationParamsReqAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PreviewLoaConfigurationParamsReqAddress) SetCity

SetCity sets the value of City.

func (*PreviewLoaConfigurationParamsReqAddress) SetCountryCode

func (s *PreviewLoaConfigurationParamsReqAddress) SetCountryCode(val string)

SetCountryCode sets the value of CountryCode.

func (*PreviewLoaConfigurationParamsReqAddress) SetExtendedAddress

func (s *PreviewLoaConfigurationParamsReqAddress) SetExtendedAddress(val OptString)

SetExtendedAddress sets the value of ExtendedAddress.

func (*PreviewLoaConfigurationParamsReqAddress) SetState

SetState sets the value of State.

func (*PreviewLoaConfigurationParamsReqAddress) SetStreetAddress

func (s *PreviewLoaConfigurationParamsReqAddress) SetStreetAddress(val string)

SetStreetAddress sets the value of StreetAddress.

func (*PreviewLoaConfigurationParamsReqAddress) SetZipCode

SetZipCode sets the value of ZipCode.

func (*PreviewLoaConfigurationParamsReqAddress) UnmarshalJSON

func (s *PreviewLoaConfigurationParamsReqAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PreviewLoaConfigurationParamsReqAddress) Validate

type PreviewLoaConfigurationParamsReqContact

type PreviewLoaConfigurationParamsReqContact struct {
	// The email address of the contact.
	Email string `json:"email"`
	// The phone number of the contact.
	PhoneNumber string `json:"phone_number"`
}

The contact information of the company.

func (*PreviewLoaConfigurationParamsReqContact) Decode

Decode decodes PreviewLoaConfigurationParamsReqContact from json.

func (*PreviewLoaConfigurationParamsReqContact) Encode

Encode implements json.Marshaler.

func (*PreviewLoaConfigurationParamsReqContact) GetEmail

GetEmail returns the value of Email.

func (*PreviewLoaConfigurationParamsReqContact) GetPhoneNumber

func (s *PreviewLoaConfigurationParamsReqContact) GetPhoneNumber() string

GetPhoneNumber returns the value of PhoneNumber.

func (*PreviewLoaConfigurationParamsReqContact) MarshalJSON

func (s *PreviewLoaConfigurationParamsReqContact) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PreviewLoaConfigurationParamsReqContact) SetEmail

SetEmail sets the value of Email.

func (*PreviewLoaConfigurationParamsReqContact) SetPhoneNumber

func (s *PreviewLoaConfigurationParamsReqContact) SetPhoneNumber(val string)

SetPhoneNumber sets the value of PhoneNumber.

func (*PreviewLoaConfigurationParamsReqContact) UnmarshalJSON

func (s *PreviewLoaConfigurationParamsReqContact) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PreviewLoaConfigurationParamsReqContact) Validate

type PreviewLoaConfigurationParamsReqLogo struct {
	// The document identification.
	DocumentID uuid.UUID `json:"document_id"`
}

The logo of the LOA configuration.

func (*PreviewLoaConfigurationParamsReqLogo) Decode

Decode decodes PreviewLoaConfigurationParamsReqLogo from json.

func (*PreviewLoaConfigurationParamsReqLogo) Encode

Encode implements json.Marshaler.

func (*PreviewLoaConfigurationParamsReqLogo) GetDocumentID

func (s *PreviewLoaConfigurationParamsReqLogo) GetDocumentID() uuid.UUID

GetDocumentID returns the value of DocumentID.

func (*PreviewLoaConfigurationParamsReqLogo) MarshalJSON

func (s *PreviewLoaConfigurationParamsReqLogo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PreviewLoaConfigurationParamsReqLogo) SetDocumentID

func (s *PreviewLoaConfigurationParamsReqLogo) SetDocumentID(val uuid.UUID)

SetDocumentID sets the value of DocumentID.

func (*PreviewLoaConfigurationParamsReqLogo) UnmarshalJSON

func (s *PreviewLoaConfigurationParamsReqLogo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PreviewLoaConfigurationParamsRes

type PreviewLoaConfigurationParamsRes interface {
	// contains filtered or unexported methods
}

type PreviewLoaConfigurationParamsUnprocessableEntity

type PreviewLoaConfigurationParamsUnprocessableEntity struct{}

PreviewLoaConfigurationParamsUnprocessableEntity is response for PreviewLoaConfigurationParams operation.

type PreviewLoaConfigurationRes

type PreviewLoaConfigurationRes interface {
	// contains filtered or unexported methods
}

type PrivateWirelessGateway

type PrivateWirelessGateway struct {
	// Identifies the resource.
	ID OptUUID `json:"id"`
	// The identification of the related network resource.
	NetworkID  OptUUID   `json:"network_id"`
	RecordType OptString `json:"record_type"`
	// ISO 8601 formatted date-time indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date-time indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
	// The private wireless gateway name.
	Name OptString `json:"name"`
	// The geographical region where the Private Wireless Gateway is deployed to.
	RegionCode OptString                       `json:"region_code"`
	Status     OptPrivateWirelessGatewayStatus `json:"status"`
	// IP block used to assign IPs to the SIM cards in the Private Wireless Gateway.
	IPRange OptNilString `json:"ip_range"`
	// A list of the resources that have been assigned to the Private Wireless Gateway.
	AssignedResources []PWGAssignedResourcesSummary `json:"assigned_resources"`
}

Ref: #/components/schemas/PrivateWirelessGateway

func (*PrivateWirelessGateway) Decode

func (s *PrivateWirelessGateway) Decode(d *jx.Decoder) error

Decode decodes PrivateWirelessGateway from json.

func (*PrivateWirelessGateway) Encode

func (s *PrivateWirelessGateway) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PrivateWirelessGateway) GetAssignedResources

func (s *PrivateWirelessGateway) GetAssignedResources() []PWGAssignedResourcesSummary

GetAssignedResources returns the value of AssignedResources.

func (*PrivateWirelessGateway) GetCreatedAt

func (s *PrivateWirelessGateway) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*PrivateWirelessGateway) GetID

func (s *PrivateWirelessGateway) GetID() OptUUID

GetID returns the value of ID.

func (*PrivateWirelessGateway) GetIPRange

func (s *PrivateWirelessGateway) GetIPRange() OptNilString

GetIPRange returns the value of IPRange.

func (*PrivateWirelessGateway) GetName

func (s *PrivateWirelessGateway) GetName() OptString

GetName returns the value of Name.

func (*PrivateWirelessGateway) GetNetworkID

func (s *PrivateWirelessGateway) GetNetworkID() OptUUID

GetNetworkID returns the value of NetworkID.

func (*PrivateWirelessGateway) GetRecordType

func (s *PrivateWirelessGateway) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*PrivateWirelessGateway) GetRegionCode

func (s *PrivateWirelessGateway) GetRegionCode() OptString

GetRegionCode returns the value of RegionCode.

func (*PrivateWirelessGateway) GetStatus

GetStatus returns the value of Status.

func (*PrivateWirelessGateway) GetUpdatedAt

func (s *PrivateWirelessGateway) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*PrivateWirelessGateway) MarshalJSON

func (s *PrivateWirelessGateway) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PrivateWirelessGateway) SetAssignedResources

func (s *PrivateWirelessGateway) SetAssignedResources(val []PWGAssignedResourcesSummary)

SetAssignedResources sets the value of AssignedResources.

func (*PrivateWirelessGateway) SetCreatedAt

func (s *PrivateWirelessGateway) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*PrivateWirelessGateway) SetID

func (s *PrivateWirelessGateway) SetID(val OptUUID)

SetID sets the value of ID.

func (*PrivateWirelessGateway) SetIPRange

func (s *PrivateWirelessGateway) SetIPRange(val OptNilString)

SetIPRange sets the value of IPRange.

func (*PrivateWirelessGateway) SetName

func (s *PrivateWirelessGateway) SetName(val OptString)

SetName sets the value of Name.

func (*PrivateWirelessGateway) SetNetworkID

func (s *PrivateWirelessGateway) SetNetworkID(val OptUUID)

SetNetworkID sets the value of NetworkID.

func (*PrivateWirelessGateway) SetRecordType

func (s *PrivateWirelessGateway) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*PrivateWirelessGateway) SetRegionCode

func (s *PrivateWirelessGateway) SetRegionCode(val OptString)

SetRegionCode sets the value of RegionCode.

func (*PrivateWirelessGateway) SetStatus

SetStatus sets the value of Status.

func (*PrivateWirelessGateway) SetUpdatedAt

func (s *PrivateWirelessGateway) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*PrivateWirelessGateway) UnmarshalJSON

func (s *PrivateWirelessGateway) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PrivateWirelessGateway) Validate

func (s *PrivateWirelessGateway) Validate() error

type PrivateWirelessGatewayStatus

type PrivateWirelessGatewayStatus struct {
	// The current status or failure details of the Private Wireless Gateway. <ul>
	// <li><code>provisioning</code> - the Private Wireless Gateway is being provisioned.</li>
	// <li><code>provisioned</code> - the Private Wireless Gateway was provisioned and able to receive
	// connections.</li>
	// <li><code>failed</code> - the provisioning had failed for a reason and it requires an intervention.
	// </li>
	// <li><code>decommissioning</code> - the Private Wireless Gateway is being removed from the network.
	// </li>
	// </ul>
	// Transitioning between the provisioning and provisioned states may take some time.
	Value OptPrivateWirelessGatewayStatusValue `json:"value"`
	// This attribute provides a human-readable explanation of why a failure happened.
	ErrorDescription OptNilString `json:"error_description"`
	// This attribute is an <a href="https://developers.telnyx.com/docs/api/v2/overview#errors">error
	// code</a> related to the failure reason.
	ErrorCode OptNilString `json:"error_code"`
}

The current status or failure details of the Private Wireless Gateway. Ref: #/components/schemas/PrivateWirelessGatewayStatus

func (*PrivateWirelessGatewayStatus) Decode

Decode decodes PrivateWirelessGatewayStatus from json.

func (*PrivateWirelessGatewayStatus) Encode

func (s *PrivateWirelessGatewayStatus) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PrivateWirelessGatewayStatus) GetErrorCode

func (s *PrivateWirelessGatewayStatus) GetErrorCode() OptNilString

GetErrorCode returns the value of ErrorCode.

func (*PrivateWirelessGatewayStatus) GetErrorDescription

func (s *PrivateWirelessGatewayStatus) GetErrorDescription() OptNilString

GetErrorDescription returns the value of ErrorDescription.

func (*PrivateWirelessGatewayStatus) GetValue

GetValue returns the value of Value.

func (*PrivateWirelessGatewayStatus) MarshalJSON

func (s *PrivateWirelessGatewayStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PrivateWirelessGatewayStatus) SetErrorCode

func (s *PrivateWirelessGatewayStatus) SetErrorCode(val OptNilString)

SetErrorCode sets the value of ErrorCode.

func (*PrivateWirelessGatewayStatus) SetErrorDescription

func (s *PrivateWirelessGatewayStatus) SetErrorDescription(val OptNilString)

SetErrorDescription sets the value of ErrorDescription.

func (*PrivateWirelessGatewayStatus) SetValue

SetValue sets the value of Value.

func (*PrivateWirelessGatewayStatus) UnmarshalJSON

func (s *PrivateWirelessGatewayStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PrivateWirelessGatewayStatus) Validate

func (s *PrivateWirelessGatewayStatus) Validate() error

type PrivateWirelessGatewayStatusValue

type PrivateWirelessGatewayStatusValue string

The current status or failure details of the Private Wireless Gateway. <ul> <li><code>provisioning</code> - the Private Wireless Gateway is being provisioned.</li> <li><code>provisioned</code> - the Private Wireless Gateway was provisioned and able to receive connections.</li> <li><code>failed</code> - the provisioning had failed for a reason and it requires an intervention. </li> <li><code>decommissioning</code> - the Private Wireless Gateway is being removed from the network. </li> </ul> Transitioning between the provisioning and provisioned states may take some time.

const (
	PrivateWirelessGatewayStatusValueProvisioning    PrivateWirelessGatewayStatusValue = "provisioning"
	PrivateWirelessGatewayStatusValueProvisioned     PrivateWirelessGatewayStatusValue = "provisioned"
	PrivateWirelessGatewayStatusValueFailed          PrivateWirelessGatewayStatusValue = "failed"
	PrivateWirelessGatewayStatusValueDecommissioning PrivateWirelessGatewayStatusValue = "decommissioning"
)

func (PrivateWirelessGatewayStatusValue) AllValues

AllValues returns all PrivateWirelessGatewayStatusValue values.

func (*PrivateWirelessGatewayStatusValue) Decode

Decode decodes PrivateWirelessGatewayStatusValue from json.

func (PrivateWirelessGatewayStatusValue) Encode

Encode encodes PrivateWirelessGatewayStatusValue as json.

func (PrivateWirelessGatewayStatusValue) MarshalJSON

func (s PrivateWirelessGatewayStatusValue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PrivateWirelessGatewayStatusValue) MarshalText

func (s PrivateWirelessGatewayStatusValue) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PrivateWirelessGatewayStatusValue) UnmarshalJSON

func (s *PrivateWirelessGatewayStatusValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PrivateWirelessGatewayStatusValue) UnmarshalText

func (s *PrivateWirelessGatewayStatusValue) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PrivateWirelessGatewayStatusValue) Validate

type QueueCall

type QueueCall struct {
	RecordType QueueCallRecordType `json:"record_type"`
	// ID that is unique to the call session and can be used to correlate webhook events. Call session is
	// a group of related call legs that logically belong to the same phone call, e.g. an inbound and
	// outbound leg of a transferred call.
	CallSessionID string `json:"call_session_id"`
	// ID that is unique to the call and can be used to correlate webhook events.
	CallLegID string `json:"call_leg_id"`
	// Unique identifier and token for controlling the call.
	CallControlID string `json:"call_control_id"`
	// Call Control App ID (formerly Telnyx connection ID) used in the call.
	ConnectionID string `json:"connection_id"`
	// Number or SIP URI placing the call.
	From string `json:"from"`
	// Destination number or SIP URI of the call.
	To string `json:"to"`
	// ISO 8601 formatted date of when the call was put in the queue.
	EnqueuedAt string `json:"enqueued_at"`
	// The time the call has been waiting in the queue, given in seconds.
	WaitTimeSecs int `json:"wait_time_secs"`
	// Current position of the call in the queue.
	QueuePosition int `json:"queue_position"`
	// Unique identifier of the queue the call is in.
	QueueID string `json:"queue_id"`
}

Ref: #/components/schemas/QueueCall

func (*QueueCall) Decode

func (s *QueueCall) Decode(d *jx.Decoder) error

Decode decodes QueueCall from json.

func (*QueueCall) Encode

func (s *QueueCall) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*QueueCall) GetCallControlID

func (s *QueueCall) GetCallControlID() string

GetCallControlID returns the value of CallControlID.

func (*QueueCall) GetCallLegID

func (s *QueueCall) GetCallLegID() string

GetCallLegID returns the value of CallLegID.

func (*QueueCall) GetCallSessionID

func (s *QueueCall) GetCallSessionID() string

GetCallSessionID returns the value of CallSessionID.

func (*QueueCall) GetConnectionID

func (s *QueueCall) GetConnectionID() string

GetConnectionID returns the value of ConnectionID.

func (*QueueCall) GetEnqueuedAt

func (s *QueueCall) GetEnqueuedAt() string

GetEnqueuedAt returns the value of EnqueuedAt.

func (*QueueCall) GetFrom

func (s *QueueCall) GetFrom() string

GetFrom returns the value of From.

func (*QueueCall) GetQueueID

func (s *QueueCall) GetQueueID() string

GetQueueID returns the value of QueueID.

func (*QueueCall) GetQueuePosition

func (s *QueueCall) GetQueuePosition() int

GetQueuePosition returns the value of QueuePosition.

func (*QueueCall) GetRecordType

func (s *QueueCall) GetRecordType() QueueCallRecordType

GetRecordType returns the value of RecordType.

func (*QueueCall) GetTo

func (s *QueueCall) GetTo() string

GetTo returns the value of To.

func (*QueueCall) GetWaitTimeSecs

func (s *QueueCall) GetWaitTimeSecs() int

GetWaitTimeSecs returns the value of WaitTimeSecs.

func (*QueueCall) MarshalJSON

func (s *QueueCall) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*QueueCall) SetCallControlID

func (s *QueueCall) SetCallControlID(val string)

SetCallControlID sets the value of CallControlID.

func (*QueueCall) SetCallLegID

func (s *QueueCall) SetCallLegID(val string)

SetCallLegID sets the value of CallLegID.

func (*QueueCall) SetCallSessionID

func (s *QueueCall) SetCallSessionID(val string)

SetCallSessionID sets the value of CallSessionID.

func (*QueueCall) SetConnectionID

func (s *QueueCall) SetConnectionID(val string)

SetConnectionID sets the value of ConnectionID.

func (*QueueCall) SetEnqueuedAt

func (s *QueueCall) SetEnqueuedAt(val string)

SetEnqueuedAt sets the value of EnqueuedAt.

func (*QueueCall) SetFrom

func (s *QueueCall) SetFrom(val string)

SetFrom sets the value of From.

func (*QueueCall) SetQueueID

func (s *QueueCall) SetQueueID(val string)

SetQueueID sets the value of QueueID.

func (*QueueCall) SetQueuePosition

func (s *QueueCall) SetQueuePosition(val int)

SetQueuePosition sets the value of QueuePosition.

func (*QueueCall) SetRecordType

func (s *QueueCall) SetRecordType(val QueueCallRecordType)

SetRecordType sets the value of RecordType.

func (*QueueCall) SetTo

func (s *QueueCall) SetTo(val string)

SetTo sets the value of To.

func (*QueueCall) SetWaitTimeSecs

func (s *QueueCall) SetWaitTimeSecs(val int)

SetWaitTimeSecs sets the value of WaitTimeSecs.

func (*QueueCall) UnmarshalJSON

func (s *QueueCall) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*QueueCall) Validate

func (s *QueueCall) Validate() error

type QueueCallRecordType

type QueueCallRecordType string
const (
	QueueCallRecordTypeQueueCall QueueCallRecordType = "queue_call"
)

func (QueueCallRecordType) AllValues

AllValues returns all QueueCallRecordType values.

func (*QueueCallRecordType) Decode

func (s *QueueCallRecordType) Decode(d *jx.Decoder) error

Decode decodes QueueCallRecordType from json.

func (QueueCallRecordType) Encode

func (s QueueCallRecordType) Encode(e *jx.Encoder)

Encode encodes QueueCallRecordType as json.

func (QueueCallRecordType) MarshalJSON

func (s QueueCallRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (QueueCallRecordType) MarshalText

func (s QueueCallRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*QueueCallRecordType) UnmarshalJSON

func (s *QueueCallRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*QueueCallRecordType) UnmarshalText

func (s *QueueCallRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (QueueCallRecordType) Validate

func (s QueueCallRecordType) Validate() error

type QueueCallResponse

type QueueCallResponse struct {
	Data OptQueueCall `json:"data"`
}

func (*QueueCallResponse) Decode

func (s *QueueCallResponse) Decode(d *jx.Decoder) error

Decode decodes QueueCallResponse from json.

func (*QueueCallResponse) Encode

func (s *QueueCallResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*QueueCallResponse) GetData

func (s *QueueCallResponse) GetData() OptQueueCall

GetData returns the value of Data.

func (*QueueCallResponse) MarshalJSON

func (s *QueueCallResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*QueueCallResponse) SetData

func (s *QueueCallResponse) SetData(val OptQueueCall)

SetData sets the value of Data.

func (*QueueCallResponse) UnmarshalJSON

func (s *QueueCallResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*QueueCallResponse) Validate

func (s *QueueCallResponse) Validate() error

type ReadCommentResponse

type ReadCommentResponse struct {
	Data OptReadCommentResponseData `json:"data"`
}

func (*ReadCommentResponse) Decode

func (s *ReadCommentResponse) Decode(d *jx.Decoder) error

Decode decodes ReadCommentResponse from json.

func (*ReadCommentResponse) Encode

func (s *ReadCommentResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ReadCommentResponse) GetData

GetData returns the value of Data.

func (*ReadCommentResponse) MarshalJSON

func (s *ReadCommentResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReadCommentResponse) SetData

SetData sets the value of Data.

func (*ReadCommentResponse) UnmarshalJSON

func (s *ReadCommentResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReadCommentResponse) Validate

func (s *ReadCommentResponse) Validate() error

type ReadCommentResponseData

type ReadCommentResponseData struct {
	ID                OptUUID                                     `json:"id"`
	Body              OptString                                   `json:"body"`
	Commenter         OptString                                   `json:"commenter"`
	CommenterType     OptReadCommentResponseDataCommenterType     `json:"commenter_type"`
	CommentRecordType OptReadCommentResponseDataCommentRecordType `json:"comment_record_type"`
	CommentRecordID   OptUUID                                     `json:"comment_record_id"`
	// Merged property.
	ReadAt OptString `json:"read_at"`
	// An ISO 8901 datetime string denoting when the comment was created.
	CreatedAt OptString `json:"created_at"`
	// An ISO 8901 datetime string for when the comment was updated.
	UpdatedAt OptString `json:"updated_at"`
}

Merged schema.

func (*ReadCommentResponseData) Decode

func (s *ReadCommentResponseData) Decode(d *jx.Decoder) error

Decode decodes ReadCommentResponseData from json.

func (*ReadCommentResponseData) Encode

func (s *ReadCommentResponseData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ReadCommentResponseData) GetBody

func (s *ReadCommentResponseData) GetBody() OptString

GetBody returns the value of Body.

func (*ReadCommentResponseData) GetCommentRecordID

func (s *ReadCommentResponseData) GetCommentRecordID() OptUUID

GetCommentRecordID returns the value of CommentRecordID.

func (*ReadCommentResponseData) GetCommentRecordType

GetCommentRecordType returns the value of CommentRecordType.

func (*ReadCommentResponseData) GetCommenter

func (s *ReadCommentResponseData) GetCommenter() OptString

GetCommenter returns the value of Commenter.

func (*ReadCommentResponseData) GetCommenterType

GetCommenterType returns the value of CommenterType.

func (*ReadCommentResponseData) GetCreatedAt

func (s *ReadCommentResponseData) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*ReadCommentResponseData) GetID

func (s *ReadCommentResponseData) GetID() OptUUID

GetID returns the value of ID.

func (*ReadCommentResponseData) GetReadAt

func (s *ReadCommentResponseData) GetReadAt() OptString

GetReadAt returns the value of ReadAt.

func (*ReadCommentResponseData) GetUpdatedAt

func (s *ReadCommentResponseData) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*ReadCommentResponseData) MarshalJSON

func (s *ReadCommentResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReadCommentResponseData) SetBody

func (s *ReadCommentResponseData) SetBody(val OptString)

SetBody sets the value of Body.

func (*ReadCommentResponseData) SetCommentRecordID

func (s *ReadCommentResponseData) SetCommentRecordID(val OptUUID)

SetCommentRecordID sets the value of CommentRecordID.

func (*ReadCommentResponseData) SetCommentRecordType

SetCommentRecordType sets the value of CommentRecordType.

func (*ReadCommentResponseData) SetCommenter

func (s *ReadCommentResponseData) SetCommenter(val OptString)

SetCommenter sets the value of Commenter.

func (*ReadCommentResponseData) SetCommenterType

SetCommenterType sets the value of CommenterType.

func (*ReadCommentResponseData) SetCreatedAt

func (s *ReadCommentResponseData) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*ReadCommentResponseData) SetID

func (s *ReadCommentResponseData) SetID(val OptUUID)

SetID sets the value of ID.

func (*ReadCommentResponseData) SetReadAt

func (s *ReadCommentResponseData) SetReadAt(val OptString)

SetReadAt sets the value of ReadAt.

func (*ReadCommentResponseData) SetUpdatedAt

func (s *ReadCommentResponseData) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*ReadCommentResponseData) UnmarshalJSON

func (s *ReadCommentResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReadCommentResponseData) Validate

func (s *ReadCommentResponseData) Validate() error

type ReadCommentResponseDataCommentRecordType

type ReadCommentResponseDataCommentRecordType string
const (
	ReadCommentResponseDataCommentRecordTypeNumberOrder            ReadCommentResponseDataCommentRecordType = "number_order"
	ReadCommentResponseDataCommentRecordTypeSubNumberOrder         ReadCommentResponseDataCommentRecordType = "sub_number_order"
	ReadCommentResponseDataCommentRecordTypeNumberOrderPhoneNumber ReadCommentResponseDataCommentRecordType = "number_order_phone_number"
)

func (ReadCommentResponseDataCommentRecordType) AllValues

AllValues returns all ReadCommentResponseDataCommentRecordType values.

func (*ReadCommentResponseDataCommentRecordType) Decode

Decode decodes ReadCommentResponseDataCommentRecordType from json.

func (ReadCommentResponseDataCommentRecordType) Encode

Encode encodes ReadCommentResponseDataCommentRecordType as json.

func (ReadCommentResponseDataCommentRecordType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (ReadCommentResponseDataCommentRecordType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*ReadCommentResponseDataCommentRecordType) UnmarshalJSON

func (s *ReadCommentResponseDataCommentRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReadCommentResponseDataCommentRecordType) UnmarshalText

func (s *ReadCommentResponseDataCommentRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ReadCommentResponseDataCommentRecordType) Validate

type ReadCommentResponseDataCommenterType

type ReadCommentResponseDataCommenterType string
const (
	ReadCommentResponseDataCommenterTypeAdmin ReadCommentResponseDataCommenterType = "admin"
	ReadCommentResponseDataCommenterTypeUser  ReadCommentResponseDataCommenterType = "user"
)

func (ReadCommentResponseDataCommenterType) AllValues

AllValues returns all ReadCommentResponseDataCommenterType values.

func (*ReadCommentResponseDataCommenterType) Decode

Decode decodes ReadCommentResponseDataCommenterType from json.

func (ReadCommentResponseDataCommenterType) Encode

Encode encodes ReadCommentResponseDataCommenterType as json.

func (ReadCommentResponseDataCommenterType) MarshalJSON

func (s ReadCommentResponseDataCommenterType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ReadCommentResponseDataCommenterType) MarshalText

func (s ReadCommentResponseDataCommenterType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ReadCommentResponseDataCommenterType) UnmarshalJSON

func (s *ReadCommentResponseDataCommenterType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReadCommentResponseDataCommenterType) UnmarshalText

func (s *ReadCommentResponseDataCommenterType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ReadCommentResponseDataCommenterType) Validate

type RecordType

type RecordType struct {
	// Telnyx Product type.
	RecordType OptString `json:"record_type"`
	// Telnyx Product Dimensions.
	ProductDimensions []string `json:"product_dimensions"`
	// Telnyx Product Metrics.
	ProductMetrics []string `json:"product_metrics"`
}

An object following one of the schemas published in https://developers.telnyx. com/docs/api/v2/detail-records. Ref: #/components/schemas/RecordType

func (*RecordType) Decode

func (s *RecordType) Decode(d *jx.Decoder) error

Decode decodes RecordType from json.

func (*RecordType) Encode

func (s *RecordType) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RecordType) GetProductDimensions

func (s *RecordType) GetProductDimensions() []string

GetProductDimensions returns the value of ProductDimensions.

func (*RecordType) GetProductMetrics

func (s *RecordType) GetProductMetrics() []string

GetProductMetrics returns the value of ProductMetrics.

func (*RecordType) GetRecordType

func (s *RecordType) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*RecordType) MarshalJSON

func (s *RecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RecordType) SetProductDimensions

func (s *RecordType) SetProductDimensions(val []string)

SetProductDimensions sets the value of ProductDimensions.

func (*RecordType) SetProductMetrics

func (s *RecordType) SetProductMetrics(val []string)

SetProductMetrics sets the value of ProductMetrics.

func (*RecordType) SetRecordType

func (s *RecordType) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*RecordType) UnmarshalJSON

func (s *RecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RecordingResponse

type RecordingResponse struct {
	Data OptRecordingResponseData `json:"data"`
}

Ref: #/components/schemas/RecordingResponse

func (*RecordingResponse) Decode

func (s *RecordingResponse) Decode(d *jx.Decoder) error

Decode decodes RecordingResponse from json.

func (*RecordingResponse) Encode

func (s *RecordingResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RecordingResponse) GetData

GetData returns the value of Data.

func (*RecordingResponse) MarshalJSON

func (s *RecordingResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RecordingResponse) SetData

SetData sets the value of Data.

func (*RecordingResponse) UnmarshalJSON

func (s *RecordingResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingResponse) Validate

func (s *RecordingResponse) Validate() error

type RecordingResponseData

type RecordingResponseData struct {
	// Unique identifier and token for controlling the call.
	CallControlID OptString `json:"call_control_id"`
	// ID that is unique to the call and can be used to correlate webhook events.
	CallLegID OptString `json:"call_leg_id"`
	// ID that is unique to the call session and can be used to correlate webhook events. Call session is
	// a group of related call legs that logically belong to the same phone call, e.g. an inbound and
	// outbound leg of a transferred call.
	CallSessionID OptString `json:"call_session_id"`
	// When `dual`, final audio file has the first leg on channel A, and the rest on channel B.
	Channels OptRecordingResponseDataChannels `json:"channels"`
	// Uniquely identifies the conference.
	ConferenceID OptString `json:"conference_id"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// The links to download the recording files.
	DownloadUrls OptRecordingResponseDataDownloadUrls `json:"download_urls"`
	// The duration of the recording in milliseconds.
	DurationMillis OptInt32 `json:"duration_millis"`
	// Uniquely identifies the recording.
	ID         OptString                          `json:"id"`
	RecordType OptRecordingResponseDataRecordType `json:"record_type"`
	// ISO 8601 formatted date of when the recording started.
	RecordingStartedAt OptString `json:"recording_started_at"`
	// ISO 8601 formatted date of when the recording ended.
	RecordingEndedAt OptString `json:"recording_ended_at"`
	// The kind of event that led to this recording being created.
	Source OptRecordingResponseDataSource `json:"source"`
	// The status of the recording. Only resources for `completed` recordings are currently supported.
	Status OptRecordingResponseDataStatus `json:"status"`
	// ISO 8601 formatted date indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
}

Ref: #/components/schemas/RecordingResponseData

func (*RecordingResponseData) Decode

func (s *RecordingResponseData) Decode(d *jx.Decoder) error

Decode decodes RecordingResponseData from json.

func (*RecordingResponseData) Encode

func (s *RecordingResponseData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RecordingResponseData) GetCallControlID

func (s *RecordingResponseData) GetCallControlID() OptString

GetCallControlID returns the value of CallControlID.

func (*RecordingResponseData) GetCallLegID

func (s *RecordingResponseData) GetCallLegID() OptString

GetCallLegID returns the value of CallLegID.

func (*RecordingResponseData) GetCallSessionID

func (s *RecordingResponseData) GetCallSessionID() OptString

GetCallSessionID returns the value of CallSessionID.

func (*RecordingResponseData) GetChannels

GetChannels returns the value of Channels.

func (*RecordingResponseData) GetConferenceID

func (s *RecordingResponseData) GetConferenceID() OptString

GetConferenceID returns the value of ConferenceID.

func (*RecordingResponseData) GetCreatedAt

func (s *RecordingResponseData) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*RecordingResponseData) GetDownloadUrls

GetDownloadUrls returns the value of DownloadUrls.

func (*RecordingResponseData) GetDurationMillis

func (s *RecordingResponseData) GetDurationMillis() OptInt32

GetDurationMillis returns the value of DurationMillis.

func (*RecordingResponseData) GetID

func (s *RecordingResponseData) GetID() OptString

GetID returns the value of ID.

func (*RecordingResponseData) GetRecordType

GetRecordType returns the value of RecordType.

func (*RecordingResponseData) GetRecordingEndedAt

func (s *RecordingResponseData) GetRecordingEndedAt() OptString

GetRecordingEndedAt returns the value of RecordingEndedAt.

func (*RecordingResponseData) GetRecordingStartedAt

func (s *RecordingResponseData) GetRecordingStartedAt() OptString

GetRecordingStartedAt returns the value of RecordingStartedAt.

func (*RecordingResponseData) GetSource

GetSource returns the value of Source.

func (*RecordingResponseData) GetStatus

GetStatus returns the value of Status.

func (*RecordingResponseData) GetUpdatedAt

func (s *RecordingResponseData) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*RecordingResponseData) MarshalJSON

func (s *RecordingResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RecordingResponseData) SetCallControlID

func (s *RecordingResponseData) SetCallControlID(val OptString)

SetCallControlID sets the value of CallControlID.

func (*RecordingResponseData) SetCallLegID

func (s *RecordingResponseData) SetCallLegID(val OptString)

SetCallLegID sets the value of CallLegID.

func (*RecordingResponseData) SetCallSessionID

func (s *RecordingResponseData) SetCallSessionID(val OptString)

SetCallSessionID sets the value of CallSessionID.

func (*RecordingResponseData) SetChannels

SetChannels sets the value of Channels.

func (*RecordingResponseData) SetConferenceID

func (s *RecordingResponseData) SetConferenceID(val OptString)

SetConferenceID sets the value of ConferenceID.

func (*RecordingResponseData) SetCreatedAt

func (s *RecordingResponseData) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*RecordingResponseData) SetDownloadUrls

SetDownloadUrls sets the value of DownloadUrls.

func (*RecordingResponseData) SetDurationMillis

func (s *RecordingResponseData) SetDurationMillis(val OptInt32)

SetDurationMillis sets the value of DurationMillis.

func (*RecordingResponseData) SetID

func (s *RecordingResponseData) SetID(val OptString)

SetID sets the value of ID.

func (*RecordingResponseData) SetRecordType

SetRecordType sets the value of RecordType.

func (*RecordingResponseData) SetRecordingEndedAt

func (s *RecordingResponseData) SetRecordingEndedAt(val OptString)

SetRecordingEndedAt sets the value of RecordingEndedAt.

func (*RecordingResponseData) SetRecordingStartedAt

func (s *RecordingResponseData) SetRecordingStartedAt(val OptString)

SetRecordingStartedAt sets the value of RecordingStartedAt.

func (*RecordingResponseData) SetSource

SetSource sets the value of Source.

func (*RecordingResponseData) SetStatus

SetStatus sets the value of Status.

func (*RecordingResponseData) SetUpdatedAt

func (s *RecordingResponseData) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*RecordingResponseData) UnmarshalJSON

func (s *RecordingResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingResponseData) Validate

func (s *RecordingResponseData) Validate() error

type RecordingResponseDataChannels

type RecordingResponseDataChannels string

When `dual`, final audio file has the first leg on channel A, and the rest on channel B.

const (
	RecordingResponseDataChannelsSingle RecordingResponseDataChannels = "single"
	RecordingResponseDataChannelsDual   RecordingResponseDataChannels = "dual"
)

func (RecordingResponseDataChannels) AllValues

AllValues returns all RecordingResponseDataChannels values.

func (*RecordingResponseDataChannels) Decode

Decode decodes RecordingResponseDataChannels from json.

func (RecordingResponseDataChannels) Encode

Encode encodes RecordingResponseDataChannels as json.

func (RecordingResponseDataChannels) MarshalJSON

func (s RecordingResponseDataChannels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RecordingResponseDataChannels) MarshalText

func (s RecordingResponseDataChannels) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RecordingResponseDataChannels) UnmarshalJSON

func (s *RecordingResponseDataChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingResponseDataChannels) UnmarshalText

func (s *RecordingResponseDataChannels) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RecordingResponseDataChannels) Validate

func (s RecordingResponseDataChannels) Validate() error

type RecordingResponseDataDownloadUrls

type RecordingResponseDataDownloadUrls struct {
	// Link to download the recording in mp3 format.
	Mp3 OptString `json:"mp3"`
	// Link to download the recording in wav format.
	Wav OptString `json:"wav"`
}

The links to download the recording files.

func (*RecordingResponseDataDownloadUrls) Decode

Decode decodes RecordingResponseDataDownloadUrls from json.

func (*RecordingResponseDataDownloadUrls) Encode

Encode implements json.Marshaler.

func (*RecordingResponseDataDownloadUrls) GetMp3

GetMp3 returns the value of Mp3.

func (*RecordingResponseDataDownloadUrls) GetWav

GetWav returns the value of Wav.

func (*RecordingResponseDataDownloadUrls) MarshalJSON

func (s *RecordingResponseDataDownloadUrls) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RecordingResponseDataDownloadUrls) SetMp3

SetMp3 sets the value of Mp3.

func (*RecordingResponseDataDownloadUrls) SetWav

SetWav sets the value of Wav.

func (*RecordingResponseDataDownloadUrls) UnmarshalJSON

func (s *RecordingResponseDataDownloadUrls) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RecordingResponseDataRecordType

type RecordingResponseDataRecordType string
const (
	RecordingResponseDataRecordTypeRecording RecordingResponseDataRecordType = "recording"
)

func (RecordingResponseDataRecordType) AllValues

AllValues returns all RecordingResponseDataRecordType values.

func (*RecordingResponseDataRecordType) Decode

Decode decodes RecordingResponseDataRecordType from json.

func (RecordingResponseDataRecordType) Encode

Encode encodes RecordingResponseDataRecordType as json.

func (RecordingResponseDataRecordType) MarshalJSON

func (s RecordingResponseDataRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RecordingResponseDataRecordType) MarshalText

func (s RecordingResponseDataRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RecordingResponseDataRecordType) UnmarshalJSON

func (s *RecordingResponseDataRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingResponseDataRecordType) UnmarshalText

func (s *RecordingResponseDataRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RecordingResponseDataRecordType) Validate

type RecordingResponseDataSource

type RecordingResponseDataSource string

The kind of event that led to this recording being created.

const (
	RecordingResponseDataSourceConference RecordingResponseDataSource = "conference"
	RecordingResponseDataSourceCall       RecordingResponseDataSource = "call"
)

func (RecordingResponseDataSource) AllValues

AllValues returns all RecordingResponseDataSource values.

func (*RecordingResponseDataSource) Decode

Decode decodes RecordingResponseDataSource from json.

func (RecordingResponseDataSource) Encode

func (s RecordingResponseDataSource) Encode(e *jx.Encoder)

Encode encodes RecordingResponseDataSource as json.

func (RecordingResponseDataSource) MarshalJSON

func (s RecordingResponseDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RecordingResponseDataSource) MarshalText

func (s RecordingResponseDataSource) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RecordingResponseDataSource) UnmarshalJSON

func (s *RecordingResponseDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingResponseDataSource) UnmarshalText

func (s *RecordingResponseDataSource) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RecordingResponseDataSource) Validate

func (s RecordingResponseDataSource) Validate() error

type RecordingResponseDataStatus

type RecordingResponseDataStatus string

The status of the recording. Only resources for `completed` recordings are currently supported.

const (
	RecordingResponseDataStatusCompleted RecordingResponseDataStatus = "completed"
)

func (RecordingResponseDataStatus) AllValues

AllValues returns all RecordingResponseDataStatus values.

func (*RecordingResponseDataStatus) Decode

Decode decodes RecordingResponseDataStatus from json.

func (RecordingResponseDataStatus) Encode

func (s RecordingResponseDataStatus) Encode(e *jx.Encoder)

Encode encodes RecordingResponseDataStatus as json.

func (RecordingResponseDataStatus) MarshalJSON

func (s RecordingResponseDataStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RecordingResponseDataStatus) MarshalText

func (s RecordingResponseDataStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RecordingResponseDataStatus) UnmarshalJSON

func (s *RecordingResponseDataStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingResponseDataStatus) UnmarshalText

func (s *RecordingResponseDataStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RecordingResponseDataStatus) Validate

func (s RecordingResponseDataStatus) Validate() error

type RecordingSource

type RecordingSource string

Defines how the recording was created. Ref: #/components/schemas/RecordingSource

const (
	RecordingSourceStartCallRecordingAPI       RecordingSource = "StartCallRecordingAPI"
	RecordingSourceStartConferenceRecordingAPI RecordingSource = "StartConferenceRecordingAPI"
	RecordingSourceOutboundAPI                 RecordingSource = "OutboundAPI"
	RecordingSourceDialVerb                    RecordingSource = "DialVerb"
	RecordingSourceConference                  RecordingSource = "Conference"
	RecordingSourceRecordVerb                  RecordingSource = "RecordVerb"
	RecordingSourceTrunking                    RecordingSource = "Trunking"
)

func (RecordingSource) AllValues

func (RecordingSource) AllValues() []RecordingSource

AllValues returns all RecordingSource values.

func (*RecordingSource) Decode

func (s *RecordingSource) Decode(d *jx.Decoder) error

Decode decodes RecordingSource from json.

func (RecordingSource) Encode

func (s RecordingSource) Encode(e *jx.Encoder)

Encode encodes RecordingSource as json.

func (RecordingSource) MarshalJSON

func (s RecordingSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RecordingSource) MarshalText

func (s RecordingSource) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RecordingSource) UnmarshalJSON

func (s *RecordingSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingSource) UnmarshalText

func (s *RecordingSource) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RecordingSource) Validate

func (s RecordingSource) Validate() error

type RecordingStatusCallbackEvent

type RecordingStatusCallbackEvent string

type RecordingTrack

type RecordingTrack string

The audio track to record for the call. The default is `both`. Ref: #/components/schemas/RecordingTrack

const (
	RecordingTrackInbound  RecordingTrack = "inbound"
	RecordingTrackOutbound RecordingTrack = "outbound"
	RecordingTrackBoth     RecordingTrack = "both"
)

func (RecordingTrack) AllValues

func (RecordingTrack) AllValues() []RecordingTrack

AllValues returns all RecordingTrack values.

func (*RecordingTrack) Decode

func (s *RecordingTrack) Decode(d *jx.Decoder) error

Decode decodes RecordingTrack from json.

func (RecordingTrack) Encode

func (s RecordingTrack) Encode(e *jx.Encoder)

Encode encodes RecordingTrack as json.

func (RecordingTrack) MarshalJSON

func (s RecordingTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RecordingTrack) MarshalText

func (s RecordingTrack) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RecordingTrack) UnmarshalJSON

func (s *RecordingTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingTrack) UnmarshalText

func (s *RecordingTrack) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RecordingTrack) Validate

func (s RecordingTrack) Validate() error

type RecordingTranscription

type RecordingTranscription struct {
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// The duration of the recording transcription in milliseconds.
	DurationMillis OptInt32 `json:"duration_millis"`
	// Uniquely identifies the recording transcription.
	ID OptString `json:"id"`
	// Uniquely identifies the recording associated with this transcription.
	RecordingID OptString                           `json:"recording_id"`
	RecordType  OptRecordingTranscriptionRecordType `json:"record_type"`
	// The status of the recording transcriptions. The transcription text will be available only when the
	// status is completed.
	Status OptRecordingTranscriptionStatus `json:"status"`
	// The recording's transcribed text.
	TranscriptionText OptString `json:"transcription_text"`
	// ISO 8601 formatted date indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
}

Ref: #/components/schemas/RecordingTranscription

func (*RecordingTranscription) Decode

func (s *RecordingTranscription) Decode(d *jx.Decoder) error

Decode decodes RecordingTranscription from json.

func (*RecordingTranscription) Encode

func (s *RecordingTranscription) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RecordingTranscription) GetCreatedAt

func (s *RecordingTranscription) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*RecordingTranscription) GetDurationMillis

func (s *RecordingTranscription) GetDurationMillis() OptInt32

GetDurationMillis returns the value of DurationMillis.

func (*RecordingTranscription) GetID

func (s *RecordingTranscription) GetID() OptString

GetID returns the value of ID.

func (*RecordingTranscription) GetRecordType

GetRecordType returns the value of RecordType.

func (*RecordingTranscription) GetRecordingID

func (s *RecordingTranscription) GetRecordingID() OptString

GetRecordingID returns the value of RecordingID.

func (*RecordingTranscription) GetStatus

GetStatus returns the value of Status.

func (*RecordingTranscription) GetTranscriptionText

func (s *RecordingTranscription) GetTranscriptionText() OptString

GetTranscriptionText returns the value of TranscriptionText.

func (*RecordingTranscription) GetUpdatedAt

func (s *RecordingTranscription) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*RecordingTranscription) MarshalJSON

func (s *RecordingTranscription) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RecordingTranscription) SetCreatedAt

func (s *RecordingTranscription) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*RecordingTranscription) SetDurationMillis

func (s *RecordingTranscription) SetDurationMillis(val OptInt32)

SetDurationMillis sets the value of DurationMillis.

func (*RecordingTranscription) SetID

func (s *RecordingTranscription) SetID(val OptString)

SetID sets the value of ID.

func (*RecordingTranscription) SetRecordType

SetRecordType sets the value of RecordType.

func (*RecordingTranscription) SetRecordingID

func (s *RecordingTranscription) SetRecordingID(val OptString)

SetRecordingID sets the value of RecordingID.

func (*RecordingTranscription) SetStatus

SetStatus sets the value of Status.

func (*RecordingTranscription) SetTranscriptionText

func (s *RecordingTranscription) SetTranscriptionText(val OptString)

SetTranscriptionText sets the value of TranscriptionText.

func (*RecordingTranscription) SetUpdatedAt

func (s *RecordingTranscription) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*RecordingTranscription) UnmarshalJSON

func (s *RecordingTranscription) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingTranscription) Validate

func (s *RecordingTranscription) Validate() error

type RecordingTranscriptionRecordType

type RecordingTranscriptionRecordType string
const (
	RecordingTranscriptionRecordTypeRecordingTranscription RecordingTranscriptionRecordType = "recording_transcription"
)

func (RecordingTranscriptionRecordType) AllValues

AllValues returns all RecordingTranscriptionRecordType values.

func (*RecordingTranscriptionRecordType) Decode

Decode decodes RecordingTranscriptionRecordType from json.

func (RecordingTranscriptionRecordType) Encode

Encode encodes RecordingTranscriptionRecordType as json.

func (RecordingTranscriptionRecordType) MarshalJSON

func (s RecordingTranscriptionRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RecordingTranscriptionRecordType) MarshalText

func (s RecordingTranscriptionRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RecordingTranscriptionRecordType) UnmarshalJSON

func (s *RecordingTranscriptionRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingTranscriptionRecordType) UnmarshalText

func (s *RecordingTranscriptionRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RecordingTranscriptionRecordType) Validate

type RecordingTranscriptionResponse

type RecordingTranscriptionResponse struct {
	Data OptRecordingTranscription `json:"data"`
}

func (*RecordingTranscriptionResponse) Decode

Decode decodes RecordingTranscriptionResponse from json.

func (*RecordingTranscriptionResponse) Encode

Encode implements json.Marshaler.

func (*RecordingTranscriptionResponse) GetData

GetData returns the value of Data.

func (*RecordingTranscriptionResponse) MarshalJSON

func (s *RecordingTranscriptionResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RecordingTranscriptionResponse) SetData

SetData sets the value of Data.

func (*RecordingTranscriptionResponse) UnmarshalJSON

func (s *RecordingTranscriptionResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingTranscriptionResponse) Validate

func (s *RecordingTranscriptionResponse) Validate() error

type RecordingTranscriptionStatus

type RecordingTranscriptionStatus string

The status of the recording transcriptions. The transcription text will be available only when the status is completed.

const (
	RecordingTranscriptionStatusInProgress RecordingTranscriptionStatus = "in-progress"
	RecordingTranscriptionStatusCompleted  RecordingTranscriptionStatus = "completed"
)

func (RecordingTranscriptionStatus) AllValues

AllValues returns all RecordingTranscriptionStatus values.

func (*RecordingTranscriptionStatus) Decode

Decode decodes RecordingTranscriptionStatus from json.

func (RecordingTranscriptionStatus) Encode

Encode encodes RecordingTranscriptionStatus as json.

func (RecordingTranscriptionStatus) MarshalJSON

func (s RecordingTranscriptionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RecordingTranscriptionStatus) MarshalText

func (s RecordingTranscriptionStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RecordingTranscriptionStatus) UnmarshalJSON

func (s *RecordingTranscriptionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingTranscriptionStatus) UnmarshalText

func (s *RecordingTranscriptionStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RecordingTranscriptionStatus) Validate

func (s RecordingTranscriptionStatus) Validate() error

type RecordingsResponseBody

type RecordingsResponseBody struct {
	Data []RecordingResponse `json:"data"`
	Meta OptPaginationMeta   `json:"meta"`
}

func (*RecordingsResponseBody) Decode

func (s *RecordingsResponseBody) Decode(d *jx.Decoder) error

Decode decodes RecordingsResponseBody from json.

func (*RecordingsResponseBody) Encode

func (s *RecordingsResponseBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RecordingsResponseBody) GetData

GetData returns the value of Data.

func (*RecordingsResponseBody) GetMeta

GetMeta returns the value of Meta.

func (*RecordingsResponseBody) MarshalJSON

func (s *RecordingsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RecordingsResponseBody) SetData

func (s *RecordingsResponseBody) SetData(val []RecordingResponse)

SetData sets the value of Data.

func (*RecordingsResponseBody) SetMeta

func (s *RecordingsResponseBody) SetMeta(val OptPaginationMeta)

SetMeta sets the value of Meta.

func (*RecordingsResponseBody) UnmarshalJSON

func (s *RecordingsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RecordingsResponseBody) Validate

func (s *RecordingsResponseBody) Validate() error

type ReferCallParams

type ReferCallParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

ReferCallParams is parameters of ReferCall operation.

type ReferCallRes

type ReferCallRes interface {
	// contains filtered or unexported methods
}

type ReferRequest

type ReferRequest struct {
	// The SIP URI to which the call will be referred to.
	SipAddress string `json:"sip_address"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands
	// with the same `command_id` as one that has already been executed.
	CommandID OptString `json:"command_id"`
	// Custom headers to be added to the SIP INVITE.
	CustomHeaders []CustomSipHeader `json:"custom_headers"`
	// SIP Authentication username used for SIP challenges.
	SipAuthUsername OptString `json:"sip_auth_username"`
	// SIP Authentication password used for SIP challenges.
	SipAuthPassword OptString `json:"sip_auth_password"`
	// SIP headers to be added to the request. Currently only User-to-User header is supported.
	SipHeaders []SipHeader `json:"sip_headers"`
}

Ref: #/components/schemas/ReferRequest

func (*ReferRequest) Decode

func (s *ReferRequest) Decode(d *jx.Decoder) error

Decode decodes ReferRequest from json.

func (*ReferRequest) Encode

func (s *ReferRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ReferRequest) GetClientState

func (s *ReferRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*ReferRequest) GetCommandID

func (s *ReferRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*ReferRequest) GetCustomHeaders

func (s *ReferRequest) GetCustomHeaders() []CustomSipHeader

GetCustomHeaders returns the value of CustomHeaders.

func (*ReferRequest) GetSipAddress

func (s *ReferRequest) GetSipAddress() string

GetSipAddress returns the value of SipAddress.

func (*ReferRequest) GetSipAuthPassword

func (s *ReferRequest) GetSipAuthPassword() OptString

GetSipAuthPassword returns the value of SipAuthPassword.

func (*ReferRequest) GetSipAuthUsername

func (s *ReferRequest) GetSipAuthUsername() OptString

GetSipAuthUsername returns the value of SipAuthUsername.

func (*ReferRequest) GetSipHeaders

func (s *ReferRequest) GetSipHeaders() []SipHeader

GetSipHeaders returns the value of SipHeaders.

func (*ReferRequest) MarshalJSON

func (s *ReferRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReferRequest) SetClientState

func (s *ReferRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*ReferRequest) SetCommandID

func (s *ReferRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*ReferRequest) SetCustomHeaders

func (s *ReferRequest) SetCustomHeaders(val []CustomSipHeader)

SetCustomHeaders sets the value of CustomHeaders.

func (*ReferRequest) SetSipAddress

func (s *ReferRequest) SetSipAddress(val string)

SetSipAddress sets the value of SipAddress.

func (*ReferRequest) SetSipAuthPassword

func (s *ReferRequest) SetSipAuthPassword(val OptString)

SetSipAuthPassword sets the value of SipAuthPassword.

func (*ReferRequest) SetSipAuthUsername

func (s *ReferRequest) SetSipAuthUsername(val OptString)

SetSipAuthUsername sets the value of SipAuthUsername.

func (*ReferRequest) SetSipHeaders

func (s *ReferRequest) SetSipHeaders(val []SipHeader)

SetSipHeaders sets the value of SipHeaders.

func (*ReferRequest) UnmarshalJSON

func (s *ReferRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReferRequest) Validate

func (s *ReferRequest) Validate() error

type Region

type Region string

func (*Region) Decode

func (s *Region) Decode(d *jx.Decoder) error

Decode decodes Region from json.

func (Region) Encode

func (s Region) Encode(e *jx.Encoder)

Encode encodes Region as json.

func (Region) MarshalJSON

func (s Region) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Region) UnmarshalJSON

func (s *Region) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RegionInformation

type RegionInformation struct {
	RegionType OptRegionInformationRegionType `json:"region_type"`
	RegionName OptString                      `json:"region_name"`
}

Ref: #/components/schemas/RegionInformation

func (*RegionInformation) Decode

func (s *RegionInformation) Decode(d *jx.Decoder) error

Decode decodes RegionInformation from json.

func (*RegionInformation) Encode

func (s *RegionInformation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RegionInformation) GetRegionName

func (s *RegionInformation) GetRegionName() OptString

GetRegionName returns the value of RegionName.

func (*RegionInformation) GetRegionType

GetRegionType returns the value of RegionType.

func (*RegionInformation) MarshalJSON

func (s *RegionInformation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RegionInformation) SetRegionName

func (s *RegionInformation) SetRegionName(val OptString)

SetRegionName sets the value of RegionName.

func (*RegionInformation) SetRegionType

func (s *RegionInformation) SetRegionType(val OptRegionInformationRegionType)

SetRegionType sets the value of RegionType.

func (*RegionInformation) UnmarshalJSON

func (s *RegionInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RegionInformation) Validate

func (s *RegionInformation) Validate() error

type RegionInformationRegionType

type RegionInformationRegionType string
const (
	RegionInformationRegionTypeCountryCode RegionInformationRegionType = "country_code"
	RegionInformationRegionTypeRateCenter  RegionInformationRegionType = "rate_center"
	RegionInformationRegionTypeState       RegionInformationRegionType = "state"
	RegionInformationRegionTypeLocation    RegionInformationRegionType = "location"
)

func (RegionInformationRegionType) AllValues

AllValues returns all RegionInformationRegionType values.

func (*RegionInformationRegionType) Decode

Decode decodes RegionInformationRegionType from json.

func (RegionInformationRegionType) Encode

func (s RegionInformationRegionType) Encode(e *jx.Encoder)

Encode encodes RegionInformationRegionType as json.

func (RegionInformationRegionType) MarshalJSON

func (s RegionInformationRegionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RegionInformationRegionType) MarshalText

func (s RegionInformationRegionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RegionInformationRegionType) UnmarshalJSON

func (s *RegionInformationRegionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RegionInformationRegionType) UnmarshalText

func (s *RegionInformationRegionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RegionInformationRegionType) Validate

func (s RegionInformationRegionType) Validate() error

type RegisterCallRequest

type RegisterCallRequest struct {
	// The DID that you will dial out from.
	From string `json:"from"`
	// The DID that you will dial out to.
	To string `json:"to"`
	// The reason for call (this will be displayed on call recipient's device).
	Reason string `json:"reason"`
}

Ref: #/components/schemas/RegisterCallRequest

func (*RegisterCallRequest) Decode

func (s *RegisterCallRequest) Decode(d *jx.Decoder) error

Decode decodes RegisterCallRequest from json.

func (*RegisterCallRequest) Encode

func (s *RegisterCallRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RegisterCallRequest) GetFrom

func (s *RegisterCallRequest) GetFrom() string

GetFrom returns the value of From.

func (*RegisterCallRequest) GetReason

func (s *RegisterCallRequest) GetReason() string

GetReason returns the value of Reason.

func (*RegisterCallRequest) GetTo

func (s *RegisterCallRequest) GetTo() string

GetTo returns the value of To.

func (*RegisterCallRequest) MarshalJSON

func (s *RegisterCallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RegisterCallRequest) SetFrom

func (s *RegisterCallRequest) SetFrom(val string)

SetFrom sets the value of From.

func (*RegisterCallRequest) SetReason

func (s *RegisterCallRequest) SetReason(val string)

SetReason sets the value of Reason.

func (*RegisterCallRequest) SetTo

func (s *RegisterCallRequest) SetTo(val string)

SetTo sets the value of To.

func (*RegisterCallRequest) UnmarshalJSON

func (s *RegisterCallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RegisterCallRes

type RegisterCallRes interface {
	// contains filtered or unexported methods
}

type RegisterCallResponse

type RegisterCallResponse struct {
	Data OptRegisterCallResponseData `json:"data"`
}

func (*RegisterCallResponse) Decode

func (s *RegisterCallResponse) Decode(d *jx.Decoder) error

Decode decodes RegisterCallResponse from json.

func (*RegisterCallResponse) Encode

func (s *RegisterCallResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RegisterCallResponse) GetData

GetData returns the value of Data.

func (*RegisterCallResponse) MarshalJSON

func (s *RegisterCallResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RegisterCallResponse) SetData

SetData sets the value of Data.

func (*RegisterCallResponse) UnmarshalJSON

func (s *RegisterCallResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RegisterCallResponseData

type RegisterCallResponseData struct {
	Result OptString `json:"result"`
}

func (*RegisterCallResponseData) Decode

func (s *RegisterCallResponseData) Decode(d *jx.Decoder) error

Decode decodes RegisterCallResponseData from json.

func (*RegisterCallResponseData) Encode

func (s *RegisterCallResponseData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RegisterCallResponseData) GetResult

func (s *RegisterCallResponseData) GetResult() OptString

GetResult returns the value of Result.

func (*RegisterCallResponseData) MarshalJSON

func (s *RegisterCallResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RegisterCallResponseData) SetResult

func (s *RegisterCallResponseData) SetResult(val OptString)

SetResult sets the value of Result.

func (*RegisterCallResponseData) UnmarshalJSON

func (s *RegisterCallResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RegulatoryRequirements

type RegulatoryRequirements struct {
	PhoneNumber            OptString                                          `json:"phone_number"`
	PhoneNumberType        OptString                                          `json:"phone_number_type"`
	RegionInformation      []RegulatoryRequirementsRegionInformationItem      `json:"region_information"`
	RecordType             OptString                                          `json:"record_type"`
	RegulatoryRequirements []RegulatoryRequirementsRegulatoryRequirementsItem `json:"regulatory_requirements"`
}

Ref: #/components/schemas/RegulatoryRequirements

func (*RegulatoryRequirements) Decode

func (s *RegulatoryRequirements) Decode(d *jx.Decoder) error

Decode decodes RegulatoryRequirements from json.

func (*RegulatoryRequirements) Encode

func (s *RegulatoryRequirements) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RegulatoryRequirements) GetPhoneNumber

func (s *RegulatoryRequirements) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*RegulatoryRequirements) GetPhoneNumberType

func (s *RegulatoryRequirements) GetPhoneNumberType() OptString

GetPhoneNumberType returns the value of PhoneNumberType.

func (*RegulatoryRequirements) GetRecordType

func (s *RegulatoryRequirements) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*RegulatoryRequirements) GetRegionInformation

GetRegionInformation returns the value of RegionInformation.

func (*RegulatoryRequirements) GetRegulatoryRequirements

GetRegulatoryRequirements returns the value of RegulatoryRequirements.

func (*RegulatoryRequirements) MarshalJSON

func (s *RegulatoryRequirements) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RegulatoryRequirements) SetPhoneNumber

func (s *RegulatoryRequirements) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*RegulatoryRequirements) SetPhoneNumberType

func (s *RegulatoryRequirements) SetPhoneNumberType(val OptString)

SetPhoneNumberType sets the value of PhoneNumberType.

func (*RegulatoryRequirements) SetRecordType

func (s *RegulatoryRequirements) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*RegulatoryRequirements) SetRegionInformation

SetRegionInformation sets the value of RegionInformation.

func (*RegulatoryRequirements) SetRegulatoryRequirements

SetRegulatoryRequirements sets the value of RegulatoryRequirements.

func (*RegulatoryRequirements) UnmarshalJSON

func (s *RegulatoryRequirements) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RegulatoryRequirementsRegionInformationItem

type RegulatoryRequirementsRegionInformationItem struct {
	RegionName OptString `json:"region_name"`
	RegionType OptString `json:"region_type"`
}

func (*RegulatoryRequirementsRegionInformationItem) Decode

Decode decodes RegulatoryRequirementsRegionInformationItem from json.

func (*RegulatoryRequirementsRegionInformationItem) Encode

Encode implements json.Marshaler.

func (*RegulatoryRequirementsRegionInformationItem) GetRegionName

GetRegionName returns the value of RegionName.

func (*RegulatoryRequirementsRegionInformationItem) GetRegionType

GetRegionType returns the value of RegionType.

func (*RegulatoryRequirementsRegionInformationItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*RegulatoryRequirementsRegionInformationItem) SetRegionName

SetRegionName sets the value of RegionName.

func (*RegulatoryRequirementsRegionInformationItem) SetRegionType

SetRegionType sets the value of RegionType.

func (*RegulatoryRequirementsRegionInformationItem) UnmarshalJSON

func (s *RegulatoryRequirementsRegionInformationItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RegulatoryRequirementsRegulatoryRequirementsItem

type RegulatoryRequirementsRegulatoryRequirementsItem struct {
	Description        OptString                                                             `json:"description"`
	ID                 OptUUID                                                               `json:"id"`
	Example            OptString                                                             `json:"example"`
	Label              OptString                                                             `json:"label"`
	FieldType          OptString                                                             `json:"field_type"`
	AcceptanceCriteria OptRegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria `json:"acceptance_criteria"`
	RecordType         OptString                                                             `json:"record_type"`
}

func (*RegulatoryRequirementsRegulatoryRequirementsItem) Decode

Decode decodes RegulatoryRequirementsRegulatoryRequirementsItem from json.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) Encode

Encode implements json.Marshaler.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) GetAcceptanceCriteria

GetAcceptanceCriteria returns the value of AcceptanceCriteria.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) GetDescription

GetDescription returns the value of Description.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) GetExample

GetExample returns the value of Example.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) GetFieldType

GetFieldType returns the value of FieldType.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) GetID

GetID returns the value of ID.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) GetLabel

GetLabel returns the value of Label.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) GetRecordType

GetRecordType returns the value of RecordType.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) SetAcceptanceCriteria

SetAcceptanceCriteria sets the value of AcceptanceCriteria.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) SetDescription

SetDescription sets the value of Description.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) SetExample

SetExample sets the value of Example.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) SetFieldType

SetFieldType sets the value of FieldType.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) SetID

SetID sets the value of ID.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) SetLabel

SetLabel sets the value of Label.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) SetRecordType

SetRecordType sets the value of RecordType.

func (*RegulatoryRequirementsRegulatoryRequirementsItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria

type RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria struct {
	LocalityLimit OptString `json:"locality_limit"`
	FieldValue    OptString `json:"field_value"`
	FieldType     OptString `json:"field_type"`
}

func (*RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) Decode

Decode decodes RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria from json.

func (*RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) Encode

Encode implements json.Marshaler.

func (*RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) GetFieldType

GetFieldType returns the value of FieldType.

func (*RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) GetFieldValue

GetFieldValue returns the value of FieldValue.

func (*RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) GetLocalityLimit

GetLocalityLimit returns the value of LocalityLimit.

func (*RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) SetFieldType

SetFieldType sets the value of FieldType.

func (*RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) SetFieldValue

SetFieldValue sets the value of FieldValue.

func (*RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) SetLocalityLimit

SetLocalityLimit sets the value of LocalityLimit.

func (*RegulatoryRequirementsRegulatoryRequirementsItemAcceptanceCriteria) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type RejectCallParams

type RejectCallParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

RejectCallParams is parameters of RejectCall operation.

type RejectCallRes

type RejectCallRes interface {
	// contains filtered or unexported methods
}

type RejectRequest

type RejectRequest struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
	// Cause for call rejection.
	Cause RejectRequestCause `json:"cause"`
}

Ref: #/components/schemas/RejectRequest

func (*RejectRequest) Decode

func (s *RejectRequest) Decode(d *jx.Decoder) error

Decode decodes RejectRequest from json.

func (*RejectRequest) Encode

func (s *RejectRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RejectRequest) GetCause

func (s *RejectRequest) GetCause() RejectRequestCause

GetCause returns the value of Cause.

func (*RejectRequest) GetClientState

func (s *RejectRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*RejectRequest) GetCommandID

func (s *RejectRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*RejectRequest) MarshalJSON

func (s *RejectRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RejectRequest) SetCause

func (s *RejectRequest) SetCause(val RejectRequestCause)

SetCause sets the value of Cause.

func (*RejectRequest) SetClientState

func (s *RejectRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*RejectRequest) SetCommandID

func (s *RejectRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*RejectRequest) UnmarshalJSON

func (s *RejectRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RejectRequest) Validate

func (s *RejectRequest) Validate() error

type RejectRequestCause

type RejectRequestCause string

Cause for call rejection.

const (
	RejectRequestCauseCALLREJECTED RejectRequestCause = "CALL_REJECTED"
	RejectRequestCauseUSERBUSY     RejectRequestCause = "USER_BUSY"
)

func (RejectRequestCause) AllValues

func (RejectRequestCause) AllValues() []RejectRequestCause

AllValues returns all RejectRequestCause values.

func (*RejectRequestCause) Decode

func (s *RejectRequestCause) Decode(d *jx.Decoder) error

Decode decodes RejectRequestCause from json.

func (RejectRequestCause) Encode

func (s RejectRequestCause) Encode(e *jx.Encoder)

Encode encodes RejectRequestCause as json.

func (RejectRequestCause) MarshalJSON

func (s RejectRequestCause) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RejectRequestCause) MarshalText

func (s RejectRequestCause) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RejectRequestCause) UnmarshalJSON

func (s *RejectRequestCause) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RejectRequestCause) UnmarshalText

func (s *RejectRequestCause) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RejectRequestCause) Validate

func (s RejectRequestCause) Validate() error

type ReservedPhoneNumber

type ReservedPhoneNumber struct {
	ID          OptUUID   `json:"id"`
	RecordType  OptString `json:"record_type"`
	PhoneNumber OptString `json:"phone_number"`
	// The status of the phone number's reservation.
	Status OptReservedPhoneNumberStatus `json:"status"`
	// An ISO 8901 datetime string denoting when the individual number reservation was created.
	CreatedAt OptString `json:"created_at"`
	// An ISO 8901 datetime string for when the the individual number reservation was updated.
	UpdatedAt OptString `json:"updated_at"`
	// An ISO 8901 datetime string for when the individual number reservation is going to expire.
	ExpiredAt OptString `json:"expired_at"`
}

Ref: #/components/schemas/ReservedPhoneNumber

func (*ReservedPhoneNumber) Decode

func (s *ReservedPhoneNumber) Decode(d *jx.Decoder) error

Decode decodes ReservedPhoneNumber from json.

func (*ReservedPhoneNumber) Encode

func (s *ReservedPhoneNumber) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ReservedPhoneNumber) GetCreatedAt

func (s *ReservedPhoneNumber) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*ReservedPhoneNumber) GetExpiredAt

func (s *ReservedPhoneNumber) GetExpiredAt() OptString

GetExpiredAt returns the value of ExpiredAt.

func (*ReservedPhoneNumber) GetID

func (s *ReservedPhoneNumber) GetID() OptUUID

GetID returns the value of ID.

func (*ReservedPhoneNumber) GetPhoneNumber

func (s *ReservedPhoneNumber) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*ReservedPhoneNumber) GetRecordType

func (s *ReservedPhoneNumber) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*ReservedPhoneNumber) GetStatus

GetStatus returns the value of Status.

func (*ReservedPhoneNumber) GetUpdatedAt

func (s *ReservedPhoneNumber) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*ReservedPhoneNumber) MarshalJSON

func (s *ReservedPhoneNumber) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReservedPhoneNumber) SetCreatedAt

func (s *ReservedPhoneNumber) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*ReservedPhoneNumber) SetExpiredAt

func (s *ReservedPhoneNumber) SetExpiredAt(val OptString)

SetExpiredAt sets the value of ExpiredAt.

func (*ReservedPhoneNumber) SetID

func (s *ReservedPhoneNumber) SetID(val OptUUID)

SetID sets the value of ID.

func (*ReservedPhoneNumber) SetPhoneNumber

func (s *ReservedPhoneNumber) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*ReservedPhoneNumber) SetRecordType

func (s *ReservedPhoneNumber) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*ReservedPhoneNumber) SetStatus

SetStatus sets the value of Status.

func (*ReservedPhoneNumber) SetUpdatedAt

func (s *ReservedPhoneNumber) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*ReservedPhoneNumber) UnmarshalJSON

func (s *ReservedPhoneNumber) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReservedPhoneNumber) Validate

func (s *ReservedPhoneNumber) Validate() error

type ReservedPhoneNumberStatus

type ReservedPhoneNumberStatus string

The status of the phone number's reservation.

const (
	ReservedPhoneNumberStatusPending ReservedPhoneNumberStatus = "pending"
	ReservedPhoneNumberStatusSuccess ReservedPhoneNumberStatus = "success"
	ReservedPhoneNumberStatusFailure ReservedPhoneNumberStatus = "failure"
)

func (ReservedPhoneNumberStatus) AllValues

AllValues returns all ReservedPhoneNumberStatus values.

func (*ReservedPhoneNumberStatus) Decode

func (s *ReservedPhoneNumberStatus) Decode(d *jx.Decoder) error

Decode decodes ReservedPhoneNumberStatus from json.

func (ReservedPhoneNumberStatus) Encode

func (s ReservedPhoneNumberStatus) Encode(e *jx.Encoder)

Encode encodes ReservedPhoneNumberStatus as json.

func (ReservedPhoneNumberStatus) MarshalJSON

func (s ReservedPhoneNumberStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ReservedPhoneNumberStatus) MarshalText

func (s ReservedPhoneNumberStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ReservedPhoneNumberStatus) UnmarshalJSON

func (s *ReservedPhoneNumberStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReservedPhoneNumberStatus) UnmarshalText

func (s *ReservedPhoneNumberStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ReservedPhoneNumberStatus) Validate

func (s ReservedPhoneNumberStatus) Validate() error

type ResumeCallRecordingParams

type ResumeCallRecordingParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

ResumeCallRecordingParams is parameters of ResumeCallRecording operation.

type ResumeCallRecordingRes

type ResumeCallRecordingRes interface {
	// contains filtered or unexported methods
}

type ResumeRecordingRequest

type ResumeRecordingRequest struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/ResumeRecordingRequest

func (*ResumeRecordingRequest) Decode

func (s *ResumeRecordingRequest) Decode(d *jx.Decoder) error

Decode decodes ResumeRecordingRequest from json.

func (*ResumeRecordingRequest) Encode

func (s *ResumeRecordingRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ResumeRecordingRequest) GetClientState

func (s *ResumeRecordingRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*ResumeRecordingRequest) GetCommandID

func (s *ResumeRecordingRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*ResumeRecordingRequest) MarshalJSON

func (s *ResumeRecordingRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ResumeRecordingRequest) SetClientState

func (s *ResumeRecordingRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*ResumeRecordingRequest) SetCommandID

func (s *ResumeRecordingRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*ResumeRecordingRequest) UnmarshalJSON

func (s *ResumeRecordingRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RetrieveCallControlApplicationNotFound

type RetrieveCallControlApplicationNotFound struct{}

RetrieveCallControlApplicationNotFound is response for RetrieveCallControlApplication operation.

type RetrieveCallControlApplicationParams

type RetrieveCallControlApplicationParams struct {
	// Identifies the resource.
	ID int64
}

RetrieveCallControlApplicationParams is parameters of RetrieveCallControlApplication operation.

type RetrieveCallControlApplicationRes

type RetrieveCallControlApplicationRes interface {
	// contains filtered or unexported methods
}

type RetrieveCallControlApplicationUnprocessableEntity

type RetrieveCallControlApplicationUnprocessableEntity struct{}

RetrieveCallControlApplicationUnprocessableEntity is response for RetrieveCallControlApplication operation.

type RetrieveCallFromQueueParams

type RetrieveCallFromQueueParams struct {
	// Uniquely identifies the queue by name.
	QueueName string
	// Unique identifier and token for controlling the call.
	CallControlID string
}

RetrieveCallFromQueueParams is parameters of RetrieveCallFromQueue operation.

type RetrieveCallFromQueueRes

type RetrieveCallFromQueueRes interface {
	// contains filtered or unexported methods
}

type RetrieveCallStatusParams

type RetrieveCallStatusParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

RetrieveCallStatusParams is parameters of RetrieveCallStatus operation.

type RetrieveCallStatusRes

type RetrieveCallStatusRes interface {
	// contains filtered or unexported methods
}

type RetrieveCallStatusResponse

type RetrieveCallStatusResponse struct {
	Data OptCall `json:"data"`
}

func (*RetrieveCallStatusResponse) Decode

Decode decodes RetrieveCallStatusResponse from json.

func (*RetrieveCallStatusResponse) Encode

func (s *RetrieveCallStatusResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RetrieveCallStatusResponse) GetData

func (s *RetrieveCallStatusResponse) GetData() OptCall

GetData returns the value of Data.

func (*RetrieveCallStatusResponse) MarshalJSON

func (s *RetrieveCallStatusResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RetrieveCallStatusResponse) SetData

func (s *RetrieveCallStatusResponse) SetData(val OptCall)

SetData sets the value of Data.

func (*RetrieveCallStatusResponse) UnmarshalJSON

func (s *RetrieveCallStatusResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RetrieveCallStatusResponse) Validate

func (s *RetrieveCallStatusResponse) Validate() error

type RetrieveCommentParams

type RetrieveCommentParams struct {
	// The comment ID.
	ID string
}

RetrieveCommentParams is parameters of RetrieveComment operation.

type RetrieveCommentRes

type RetrieveCommentRes interface {
	// contains filtered or unexported methods
}

type RetrieveDocumentRequirementsParams

type RetrieveDocumentRequirementsParams struct {
	// Uniquely identifies the requirement_type record.
	ID uuid.UUID
}

RetrieveDocumentRequirementsParams is parameters of RetrieveDocumentRequirements operation.

type RetrieveDocumentRequirementsRes

type RetrieveDocumentRequirementsRes interface {
	// contains filtered or unexported methods
}

type RetrieveNumberOrderDocumentParams

type RetrieveNumberOrderDocumentParams struct {
	// The number order document ID.
	NumberOrderDocumentID string
}

RetrieveNumberOrderDocumentParams is parameters of RetrieveNumberOrderDocument operation.

type RetrieveNumberOrderDocumentRes

type RetrieveNumberOrderDocumentRes interface {
	// contains filtered or unexported methods
}

type RetrieveNumberReservationParams

type RetrieveNumberReservationParams struct {
	// The number reservation ID.
	NumberReservationID string
}

RetrieveNumberReservationParams is parameters of RetrieveNumberReservation operation.

type RetrieveNumberReservationRes

type RetrieveNumberReservationRes interface {
	// contains filtered or unexported methods
}

type RetrieveOrderPhoneNumbersRes

type RetrieveOrderPhoneNumbersRes interface {
	// contains filtered or unexported methods
}

type RetrievePhoneNumberParams

type RetrievePhoneNumberParams struct {
	// Identifies the resource.
	ID int64
}

RetrievePhoneNumberParams is parameters of RetrievePhoneNumber operation.

type RetrievePhoneNumberRes

type RetrievePhoneNumberRes interface {
	// contains filtered or unexported methods
}

type RetrievePhoneNumbersJobOK

type RetrievePhoneNumbersJobOK struct {
	Data OptPhoneNumbersJob `json:"data"`
}

func (*RetrievePhoneNumbersJobOK) Decode

func (s *RetrievePhoneNumbersJobOK) Decode(d *jx.Decoder) error

Decode decodes RetrievePhoneNumbersJobOK from json.

func (*RetrievePhoneNumbersJobOK) Encode

func (s *RetrievePhoneNumbersJobOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RetrievePhoneNumbersJobOK) GetData

GetData returns the value of Data.

func (*RetrievePhoneNumbersJobOK) MarshalJSON

func (s *RetrievePhoneNumbersJobOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RetrievePhoneNumbersJobOK) SetData

SetData sets the value of Data.

func (*RetrievePhoneNumbersJobOK) UnmarshalJSON

func (s *RetrievePhoneNumbersJobOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RetrievePhoneNumbersJobOK) Validate

func (s *RetrievePhoneNumbersJobOK) Validate() error

type RetrievePhoneNumbersJobParams

type RetrievePhoneNumbersJobParams struct {
	// Identifies the Phone Numbers Job.
	ID string
}

RetrievePhoneNumbersJobParams is parameters of RetrievePhoneNumbersJob operation.

type RetrievePhoneNumbersJobRes

type RetrievePhoneNumbersJobRes interface {
	// contains filtered or unexported methods
}

type RetrieveRequirementTypeParams

type RetrieveRequirementTypeParams struct {
	// Uniquely identifies the requirement_type record.
	ID uuid.UUID
}

RetrieveRequirementTypeParams is parameters of RetrieveRequirementType operation.

type RetrieveRequirementTypeRes

type RetrieveRequirementTypeRes interface {
	// contains filtered or unexported methods
}

type RetrieveVerificationParams

type RetrieveVerificationParams struct {
	// The identifier of the verification to retrieve.
	VerificationID uuid.UUID
}

RetrieveVerificationParams is parameters of RetrieveVerification operation.

type RetrieveVerificationRes

type RetrieveVerificationRes interface {
	// contains filtered or unexported methods
}

type RetrieveVerificationResponse

type RetrieveVerificationResponse struct {
	Data Verification `json:"data"`
}

Ref: #/components/schemas/RetrieveVerificationResponse

func (*RetrieveVerificationResponse) Decode

Decode decodes RetrieveVerificationResponse from json.

func (*RetrieveVerificationResponse) Encode

func (s *RetrieveVerificationResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RetrieveVerificationResponse) GetData

GetData returns the value of Data.

func (*RetrieveVerificationResponse) MarshalJSON

func (s *RetrieveVerificationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RetrieveVerificationResponse) SetData

SetData sets the value of Data.

func (*RetrieveVerificationResponse) UnmarshalJSON

func (s *RetrieveVerificationResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RetrieveVerificationResponse) Validate

func (s *RetrieveVerificationResponse) Validate() error

type RoomRecording

type RoomRecording struct {
	// A unique identifier for the room recording.
	ID OptUUID `json:"id"`
	// Identify the room associated with the room recording.
	RoomID OptUUID `json:"room_id"`
	// Identify the room session associated with the room recording.
	SessionID OptUUID `json:"session_id"`
	// Identify the room participant associated with the room recording.
	ParticipantID OptUUID `json:"participant_id"`
	// Shows the room recording status.
	Status OptRoomRecordingStatus `json:"status"`
	// Shows the room recording type.
	Type OptRoomRecordingType `json:"type"`
	// Shows the room recording size in MB.
	SizeMB OptFloat32 `json:"size_mb"`
	// Url to download the recording.
	DownloadURL OptString `json:"download_url"`
	// Shows the codec used for the room recording.
	Codec OptString `json:"codec"`
	// Shows the room recording duration in seconds.
	DurationSecs OptInt `json:"duration_secs"`
	// ISO 8601 timestamp when the room recording was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 timestamp when the room recording was updated.
	UpdatedAt OptString `json:"updated_at"`
	// ISO 8601 timestamp when the room recording has ended.
	EndedAt OptString `json:"ended_at"`
	// ISO 8601 timestamp when the room recording has stated.
	StartedAt OptString `json:"started_at"`
	// ISO 8601 timestamp when the room recording has completed.
	CompletedAt OptString `json:"completed_at"`
	RecordType  OptString `json:"record_type"`
}

Ref: #/components/schemas/RoomRecording

func (*RoomRecording) Decode

func (s *RoomRecording) Decode(d *jx.Decoder) error

Decode decodes RoomRecording from json.

func (*RoomRecording) Encode

func (s *RoomRecording) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RoomRecording) GetCodec

func (s *RoomRecording) GetCodec() OptString

GetCodec returns the value of Codec.

func (*RoomRecording) GetCompletedAt

func (s *RoomRecording) GetCompletedAt() OptString

GetCompletedAt returns the value of CompletedAt.

func (*RoomRecording) GetCreatedAt

func (s *RoomRecording) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*RoomRecording) GetDownloadURL

func (s *RoomRecording) GetDownloadURL() OptString

GetDownloadURL returns the value of DownloadURL.

func (*RoomRecording) GetDurationSecs

func (s *RoomRecording) GetDurationSecs() OptInt

GetDurationSecs returns the value of DurationSecs.

func (*RoomRecording) GetEndedAt

func (s *RoomRecording) GetEndedAt() OptString

GetEndedAt returns the value of EndedAt.

func (*RoomRecording) GetID

func (s *RoomRecording) GetID() OptUUID

GetID returns the value of ID.

func (*RoomRecording) GetParticipantID

func (s *RoomRecording) GetParticipantID() OptUUID

GetParticipantID returns the value of ParticipantID.

func (*RoomRecording) GetRecordType

func (s *RoomRecording) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*RoomRecording) GetRoomID

func (s *RoomRecording) GetRoomID() OptUUID

GetRoomID returns the value of RoomID.

func (*RoomRecording) GetSessionID

func (s *RoomRecording) GetSessionID() OptUUID

GetSessionID returns the value of SessionID.

func (*RoomRecording) GetSizeMB

func (s *RoomRecording) GetSizeMB() OptFloat32

GetSizeMB returns the value of SizeMB.

func (*RoomRecording) GetStartedAt

func (s *RoomRecording) GetStartedAt() OptString

GetStartedAt returns the value of StartedAt.

func (*RoomRecording) GetStatus

func (s *RoomRecording) GetStatus() OptRoomRecordingStatus

GetStatus returns the value of Status.

func (*RoomRecording) GetType

func (s *RoomRecording) GetType() OptRoomRecordingType

GetType returns the value of Type.

func (*RoomRecording) GetUpdatedAt

func (s *RoomRecording) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*RoomRecording) MarshalJSON

func (s *RoomRecording) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RoomRecording) SetCodec

func (s *RoomRecording) SetCodec(val OptString)

SetCodec sets the value of Codec.

func (*RoomRecording) SetCompletedAt

func (s *RoomRecording) SetCompletedAt(val OptString)

SetCompletedAt sets the value of CompletedAt.

func (*RoomRecording) SetCreatedAt

func (s *RoomRecording) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*RoomRecording) SetDownloadURL

func (s *RoomRecording) SetDownloadURL(val OptString)

SetDownloadURL sets the value of DownloadURL.

func (*RoomRecording) SetDurationSecs

func (s *RoomRecording) SetDurationSecs(val OptInt)

SetDurationSecs sets the value of DurationSecs.

func (*RoomRecording) SetEndedAt

func (s *RoomRecording) SetEndedAt(val OptString)

SetEndedAt sets the value of EndedAt.

func (*RoomRecording) SetID

func (s *RoomRecording) SetID(val OptUUID)

SetID sets the value of ID.

func (*RoomRecording) SetParticipantID

func (s *RoomRecording) SetParticipantID(val OptUUID)

SetParticipantID sets the value of ParticipantID.

func (*RoomRecording) SetRecordType

func (s *RoomRecording) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*RoomRecording) SetRoomID

func (s *RoomRecording) SetRoomID(val OptUUID)

SetRoomID sets the value of RoomID.

func (*RoomRecording) SetSessionID

func (s *RoomRecording) SetSessionID(val OptUUID)

SetSessionID sets the value of SessionID.

func (*RoomRecording) SetSizeMB

func (s *RoomRecording) SetSizeMB(val OptFloat32)

SetSizeMB sets the value of SizeMB.

func (*RoomRecording) SetStartedAt

func (s *RoomRecording) SetStartedAt(val OptString)

SetStartedAt sets the value of StartedAt.

func (*RoomRecording) SetStatus

func (s *RoomRecording) SetStatus(val OptRoomRecordingStatus)

SetStatus sets the value of Status.

func (*RoomRecording) SetType

func (s *RoomRecording) SetType(val OptRoomRecordingType)

SetType sets the value of Type.

func (*RoomRecording) SetUpdatedAt

func (s *RoomRecording) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*RoomRecording) UnmarshalJSON

func (s *RoomRecording) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RoomRecording) Validate

func (s *RoomRecording) Validate() error

type RoomRecordingStatus

type RoomRecordingStatus string

Shows the room recording status.

const (
	RoomRecordingStatusCompleted  RoomRecordingStatus = "completed"
	RoomRecordingStatusProcessing RoomRecordingStatus = "processing"
)

func (RoomRecordingStatus) AllValues

AllValues returns all RoomRecordingStatus values.

func (*RoomRecordingStatus) Decode

func (s *RoomRecordingStatus) Decode(d *jx.Decoder) error

Decode decodes RoomRecordingStatus from json.

func (RoomRecordingStatus) Encode

func (s RoomRecordingStatus) Encode(e *jx.Encoder)

Encode encodes RoomRecordingStatus as json.

func (RoomRecordingStatus) MarshalJSON

func (s RoomRecordingStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RoomRecordingStatus) MarshalText

func (s RoomRecordingStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RoomRecordingStatus) UnmarshalJSON

func (s *RoomRecordingStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RoomRecordingStatus) UnmarshalText

func (s *RoomRecordingStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RoomRecordingStatus) Validate

func (s RoomRecordingStatus) Validate() error

type RoomRecordingType

type RoomRecordingType string

Shows the room recording type.

const (
	RoomRecordingTypeAudio RoomRecordingType = "audio"
	RoomRecordingTypeVideo RoomRecordingType = "video"
)

func (RoomRecordingType) AllValues

func (RoomRecordingType) AllValues() []RoomRecordingType

AllValues returns all RoomRecordingType values.

func (*RoomRecordingType) Decode

func (s *RoomRecordingType) Decode(d *jx.Decoder) error

Decode decodes RoomRecordingType from json.

func (RoomRecordingType) Encode

func (s RoomRecordingType) Encode(e *jx.Encoder)

Encode encodes RoomRecordingType as json.

func (RoomRecordingType) MarshalJSON

func (s RoomRecordingType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RoomRecordingType) MarshalText

func (s RoomRecordingType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RoomRecordingType) UnmarshalJSON

func (s *RoomRecordingType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RoomRecordingType) UnmarshalText

func (s *RoomRecordingType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RoomRecordingType) Validate

func (s RoomRecordingType) Validate() error

type S3ConfigurationData

type S3ConfigurationData struct {
	Bucket             OptBucket             `json:"bucket"`
	Region             OptRegion             `json:"region"`
	AWSAccessKeyID     OptAwsAccessKeyId     `json:"aws_access_key_id"`
	AWSSecretAccessKey OptAwsSecretAccessKey `json:"aws_secret_access_key"`
}

Ref: #/components/schemas/S3ConfigurationData

func (*S3ConfigurationData) Decode

func (s *S3ConfigurationData) Decode(d *jx.Decoder) error

Decode decodes S3ConfigurationData from json.

func (*S3ConfigurationData) Encode

func (s *S3ConfigurationData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*S3ConfigurationData) GetAWSAccessKeyID

func (s *S3ConfigurationData) GetAWSAccessKeyID() OptAwsAccessKeyId

GetAWSAccessKeyID returns the value of AWSAccessKeyID.

func (*S3ConfigurationData) GetAWSSecretAccessKey

func (s *S3ConfigurationData) GetAWSSecretAccessKey() OptAwsSecretAccessKey

GetAWSSecretAccessKey returns the value of AWSSecretAccessKey.

func (*S3ConfigurationData) GetBucket

func (s *S3ConfigurationData) GetBucket() OptBucket

GetBucket returns the value of Bucket.

func (*S3ConfigurationData) GetRegion

func (s *S3ConfigurationData) GetRegion() OptRegion

GetRegion returns the value of Region.

func (*S3ConfigurationData) MarshalJSON

func (s *S3ConfigurationData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*S3ConfigurationData) SetAWSAccessKeyID

func (s *S3ConfigurationData) SetAWSAccessKeyID(val OptAwsAccessKeyId)

SetAWSAccessKeyID sets the value of AWSAccessKeyID.

func (*S3ConfigurationData) SetAWSSecretAccessKey

func (s *S3ConfigurationData) SetAWSSecretAccessKey(val OptAwsSecretAccessKey)

SetAWSSecretAccessKey sets the value of AWSSecretAccessKey.

func (*S3ConfigurationData) SetBucket

func (s *S3ConfigurationData) SetBucket(val OptBucket)

SetBucket sets the value of Bucket.

func (*S3ConfigurationData) SetRegion

func (s *S3ConfigurationData) SetRegion(val OptRegion)

SetRegion sets the value of Region.

func (*S3ConfigurationData) UnmarshalJSON

func (s *S3ConfigurationData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SearchMobileNetworkOperatorsResponse

type SearchMobileNetworkOperatorsResponse struct {
	Data []MobileNetworkOperator `json:"data"`
	Meta OptPaginationMeta       `json:"meta"`
}

func (*SearchMobileNetworkOperatorsResponse) Decode

Decode decodes SearchMobileNetworkOperatorsResponse from json.

func (*SearchMobileNetworkOperatorsResponse) Encode

Encode implements json.Marshaler.

func (*SearchMobileNetworkOperatorsResponse) GetData

GetData returns the value of Data.

func (*SearchMobileNetworkOperatorsResponse) GetMeta

GetMeta returns the value of Meta.

func (*SearchMobileNetworkOperatorsResponse) MarshalJSON

func (s *SearchMobileNetworkOperatorsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SearchMobileNetworkOperatorsResponse) SetData

SetData sets the value of Data.

func (*SearchMobileNetworkOperatorsResponse) SetMeta

SetMeta sets the value of Meta.

func (*SearchMobileNetworkOperatorsResponse) UnmarshalJSON

func (s *SearchMobileNetworkOperatorsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SearchOTAUpdateResponse

type SearchOTAUpdateResponse struct {
	Data []SimplifiedOTAUpdate `json:"data"`
	Meta OptPaginationMeta     `json:"meta"`
}

func (*SearchOTAUpdateResponse) Decode

func (s *SearchOTAUpdateResponse) Decode(d *jx.Decoder) error

Decode decodes SearchOTAUpdateResponse from json.

func (*SearchOTAUpdateResponse) Encode

func (s *SearchOTAUpdateResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SearchOTAUpdateResponse) GetData

GetData returns the value of Data.

func (*SearchOTAUpdateResponse) GetMeta

GetMeta returns the value of Meta.

func (*SearchOTAUpdateResponse) MarshalJSON

func (s *SearchOTAUpdateResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SearchOTAUpdateResponse) SetData

func (s *SearchOTAUpdateResponse) SetData(val []SimplifiedOTAUpdate)

SetData sets the value of Data.

func (*SearchOTAUpdateResponse) SetMeta

SetMeta sets the value of Meta.

func (*SearchOTAUpdateResponse) UnmarshalJSON

func (s *SearchOTAUpdateResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SearchOTAUpdateResponse) Validate

func (s *SearchOTAUpdateResponse) Validate() error

type SecuritySource

type SecuritySource interface {
	// BearerAuth provides bearerAuth security value.
	BearerAuth(ctx context.Context, operationName string) (BearerAuth, error)
}

SecuritySource is provider of security values (tokens, passwords, etc.).

type SendDTMFParams

type SendDTMFParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

SendDTMFParams is parameters of SendDTMF operation.

type SendDTMFRequest

type SendDTMFRequest struct {
	// DTMF digits to send. Valid digits are 0-9, A-D, *, and #. Pauses can be added using w (0.5s) and W
	// (1s).
	Digits string `json:"digits"`
	// Specifies for how many milliseconds each digit will be played in the audio stream. Ranges from 100
	// to 500ms.
	DurationMillis OptInt32 `json:"duration_millis"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/SendDTMFRequest

func (*SendDTMFRequest) Decode

func (s *SendDTMFRequest) Decode(d *jx.Decoder) error

Decode decodes SendDTMFRequest from json.

func (*SendDTMFRequest) Encode

func (s *SendDTMFRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendDTMFRequest) GetClientState

func (s *SendDTMFRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*SendDTMFRequest) GetCommandID

func (s *SendDTMFRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*SendDTMFRequest) GetDigits

func (s *SendDTMFRequest) GetDigits() string

GetDigits returns the value of Digits.

func (*SendDTMFRequest) GetDurationMillis

func (s *SendDTMFRequest) GetDurationMillis() OptInt32

GetDurationMillis returns the value of DurationMillis.

func (*SendDTMFRequest) MarshalJSON

func (s *SendDTMFRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendDTMFRequest) SetClientState

func (s *SendDTMFRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*SendDTMFRequest) SetCommandID

func (s *SendDTMFRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*SendDTMFRequest) SetDigits

func (s *SendDTMFRequest) SetDigits(val string)

SetDigits sets the value of Digits.

func (*SendDTMFRequest) SetDurationMillis

func (s *SendDTMFRequest) SetDurationMillis(val OptInt32)

SetDurationMillis sets the value of DurationMillis.

func (*SendDTMFRequest) UnmarshalJSON

func (s *SendDTMFRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SendDTMFRes

type SendDTMFRes interface {
	// contains filtered or unexported methods
}

type SendMessageRes

type SendMessageRes interface {
	// contains filtered or unexported methods
}

type SendPortingVerificationCodesNoContent

type SendPortingVerificationCodesNoContent struct{}

SendPortingVerificationCodesNoContent is response for SendPortingVerificationCodes operation.

type SendPortingVerificationCodesNotFound

type SendPortingVerificationCodesNotFound struct{}

SendPortingVerificationCodesNotFound is response for SendPortingVerificationCodes operation.

type SendPortingVerificationCodesParams

type SendPortingVerificationCodesParams struct {
	// Porting Order id.
	ID uuid.UUID
}

SendPortingVerificationCodesParams is parameters of SendPortingVerificationCodes operation.

type SendPortingVerificationCodesReq

type SendPortingVerificationCodesReq struct {
	PhoneNumbers       []string                                             `json:"phone_numbers"`
	VerificationMethod OptSendPortingVerificationCodesReqVerificationMethod `json:"verification_method"`
}

func (*SendPortingVerificationCodesReq) Decode

Decode decodes SendPortingVerificationCodesReq from json.

func (*SendPortingVerificationCodesReq) Encode

Encode implements json.Marshaler.

func (*SendPortingVerificationCodesReq) GetPhoneNumbers

func (s *SendPortingVerificationCodesReq) GetPhoneNumbers() []string

GetPhoneNumbers returns the value of PhoneNumbers.

func (*SendPortingVerificationCodesReq) GetVerificationMethod

GetVerificationMethod returns the value of VerificationMethod.

func (*SendPortingVerificationCodesReq) MarshalJSON

func (s *SendPortingVerificationCodesReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendPortingVerificationCodesReq) SetPhoneNumbers

func (s *SendPortingVerificationCodesReq) SetPhoneNumbers(val []string)

SetPhoneNumbers sets the value of PhoneNumbers.

func (*SendPortingVerificationCodesReq) SetVerificationMethod

SetVerificationMethod sets the value of VerificationMethod.

func (*SendPortingVerificationCodesReq) UnmarshalJSON

func (s *SendPortingVerificationCodesReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SendPortingVerificationCodesReq) Validate

func (s *SendPortingVerificationCodesReq) Validate() error

type SendPortingVerificationCodesReqVerificationMethod

type SendPortingVerificationCodesReqVerificationMethod string
const (
	SendPortingVerificationCodesReqVerificationMethodSMS  SendPortingVerificationCodesReqVerificationMethod = "sms"
	SendPortingVerificationCodesReqVerificationMethodCall SendPortingVerificationCodesReqVerificationMethod = "call"
)

func (SendPortingVerificationCodesReqVerificationMethod) AllValues

AllValues returns all SendPortingVerificationCodesReqVerificationMethod values.

func (*SendPortingVerificationCodesReqVerificationMethod) Decode

Decode decodes SendPortingVerificationCodesReqVerificationMethod from json.

func (SendPortingVerificationCodesReqVerificationMethod) Encode

Encode encodes SendPortingVerificationCodesReqVerificationMethod as json.

func (SendPortingVerificationCodesReqVerificationMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (SendPortingVerificationCodesReqVerificationMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*SendPortingVerificationCodesReqVerificationMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SendPortingVerificationCodesReqVerificationMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (SendPortingVerificationCodesReqVerificationMethod) Validate

type SendPortingVerificationCodesRes

type SendPortingVerificationCodesRes interface {
	// contains filtered or unexported methods
}

type SendPortingVerificationCodesUnauthorized

type SendPortingVerificationCodesUnauthorized struct{}

SendPortingVerificationCodesUnauthorized is response for SendPortingVerificationCodes operation.

type SendPortingVerificationCodesUnprocessableEntity

type SendPortingVerificationCodesUnprocessableEntity struct{}

SendPortingVerificationCodesUnprocessableEntity is response for SendPortingVerificationCodes operation.

type ServicePlan

type ServicePlan string

Indicates the coverage of the termination regions. Ref: #/components/schemas/ServicePlan

const (
	ServicePlanGlobal ServicePlan = "global"
)

func (ServicePlan) AllValues

func (ServicePlan) AllValues() []ServicePlan

AllValues returns all ServicePlan values.

func (*ServicePlan) Decode

func (s *ServicePlan) Decode(d *jx.Decoder) error

Decode decodes ServicePlan from json.

func (ServicePlan) Encode

func (s ServicePlan) Encode(e *jx.Encoder)

Encode encodes ServicePlan as json.

func (ServicePlan) MarshalJSON

func (s ServicePlan) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ServicePlan) MarshalText

func (s ServicePlan) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ServicePlan) UnmarshalJSON

func (s *ServicePlan) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ServicePlan) UnmarshalText

func (s *ServicePlan) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ServicePlan) Validate

func (s ServicePlan) Validate() error

type SharePortingOrder

type SharePortingOrder struct {
	Data OptPortingOrderSharingToken `json:"data"`
}

func (*SharePortingOrder) Decode

func (s *SharePortingOrder) Decode(d *jx.Decoder) error

Decode decodes SharePortingOrder from json.

func (*SharePortingOrder) Encode

func (s *SharePortingOrder) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SharePortingOrder) GetData

GetData returns the value of Data.

func (*SharePortingOrder) MarshalJSON

func (s *SharePortingOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SharePortingOrder) SetData

SetData sets the value of Data.

func (*SharePortingOrder) UnmarshalJSON

func (s *SharePortingOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SharePortingOrder) Validate

func (s *SharePortingOrder) Validate() error

type SharePortingOrderNotFound

type SharePortingOrderNotFound struct{}

SharePortingOrderNotFound is response for SharePortingOrder operation.

type SharePortingOrderParams

type SharePortingOrderParams struct {
	// Porting Order id.
	ID uuid.UUID
}

SharePortingOrderParams is parameters of SharePortingOrder operation.

type SharePortingOrderReq

type SharePortingOrderReq struct {
	// The number of seconds the token will be valid for.
	ExpiresInSeconds OptInt `json:"expires_in_seconds"`
	// The permissions the token will have.
	Permissions OptSharePortingOrderReqPermissions `json:"permissions"`
}

func (*SharePortingOrderReq) Decode

func (s *SharePortingOrderReq) Decode(d *jx.Decoder) error

Decode decodes SharePortingOrderReq from json.

func (*SharePortingOrderReq) Encode

func (s *SharePortingOrderReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SharePortingOrderReq) GetExpiresInSeconds

func (s *SharePortingOrderReq) GetExpiresInSeconds() OptInt

GetExpiresInSeconds returns the value of ExpiresInSeconds.

func (*SharePortingOrderReq) GetPermissions

GetPermissions returns the value of Permissions.

func (*SharePortingOrderReq) MarshalJSON

func (s *SharePortingOrderReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SharePortingOrderReq) SetExpiresInSeconds

func (s *SharePortingOrderReq) SetExpiresInSeconds(val OptInt)

SetExpiresInSeconds sets the value of ExpiresInSeconds.

func (*SharePortingOrderReq) SetPermissions

SetPermissions sets the value of Permissions.

func (*SharePortingOrderReq) UnmarshalJSON

func (s *SharePortingOrderReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SharePortingOrderReq) Validate

func (s *SharePortingOrderReq) Validate() error

type SharePortingOrderReqPermissions

type SharePortingOrderReqPermissions string

The permissions the token will have.

const (
	SharePortingOrderReqPermissionsPortingOrderDocumentRead   SharePortingOrderReqPermissions = "porting_order.document.read"
	SharePortingOrderReqPermissionsPortingOrderDocumentUpdate SharePortingOrderReqPermissions = "porting_order.document.update"
)

func (SharePortingOrderReqPermissions) AllValues

AllValues returns all SharePortingOrderReqPermissions values.

func (*SharePortingOrderReqPermissions) Decode

Decode decodes SharePortingOrderReqPermissions from json.

func (SharePortingOrderReqPermissions) Encode

Encode encodes SharePortingOrderReqPermissions as json.

func (SharePortingOrderReqPermissions) MarshalJSON

func (s SharePortingOrderReqPermissions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SharePortingOrderReqPermissions) MarshalText

func (s SharePortingOrderReqPermissions) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SharePortingOrderReqPermissions) UnmarshalJSON

func (s *SharePortingOrderReqPermissions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SharePortingOrderReqPermissions) UnmarshalText

func (s *SharePortingOrderReqPermissions) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SharePortingOrderReqPermissions) Validate

type SharePortingOrderRes

type SharePortingOrderRes interface {
	// contains filtered or unexported methods
}

type SharePortingOrderUnauthorized

type SharePortingOrderUnauthorized struct{}

SharePortingOrderUnauthorized is response for SharePortingOrder operation.

type ShowPortingLOAConfiguration

type ShowPortingLOAConfiguration struct {
	Data OptPortingLOAConfiguration `json:"data"`
}

func (*ShowPortingLOAConfiguration) Decode

Decode decodes ShowPortingLOAConfiguration from json.

func (*ShowPortingLOAConfiguration) Encode

func (s *ShowPortingLOAConfiguration) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShowPortingLOAConfiguration) GetData

GetData returns the value of Data.

func (*ShowPortingLOAConfiguration) MarshalJSON

func (s *ShowPortingLOAConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowPortingLOAConfiguration) SetData

SetData sets the value of Data.

func (*ShowPortingLOAConfiguration) UnmarshalJSON

func (s *ShowPortingLOAConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShowPortingLOAConfiguration) Validate

func (s *ShowPortingLOAConfiguration) Validate() error

type ShowPortingOrder

type ShowPortingOrder struct {
	Data OptPortingOrder         `json:"data"`
	Meta OptShowPortingOrderMeta `json:"meta"`
}

func (*ShowPortingOrder) Decode

func (s *ShowPortingOrder) Decode(d *jx.Decoder) error

Decode decodes ShowPortingOrder from json.

func (*ShowPortingOrder) Encode

func (s *ShowPortingOrder) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShowPortingOrder) GetData

func (s *ShowPortingOrder) GetData() OptPortingOrder

GetData returns the value of Data.

func (*ShowPortingOrder) GetMeta

GetMeta returns the value of Meta.

func (*ShowPortingOrder) MarshalJSON

func (s *ShowPortingOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowPortingOrder) SetData

func (s *ShowPortingOrder) SetData(val OptPortingOrder)

SetData sets the value of Data.

func (*ShowPortingOrder) SetMeta

func (s *ShowPortingOrder) SetMeta(val OptShowPortingOrderMeta)

SetMeta sets the value of Meta.

func (*ShowPortingOrder) UnmarshalJSON

func (s *ShowPortingOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShowPortingOrder) Validate

func (s *ShowPortingOrder) Validate() error

type ShowPortingOrderMeta

type ShowPortingOrderMeta struct {
	// Link to list all phone numbers.
	PhoneNumbersURL OptString `json:"phone_numbers_url"`
}

func (*ShowPortingOrderMeta) Decode

func (s *ShowPortingOrderMeta) Decode(d *jx.Decoder) error

Decode decodes ShowPortingOrderMeta from json.

func (*ShowPortingOrderMeta) Encode

func (s *ShowPortingOrderMeta) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShowPortingOrderMeta) GetPhoneNumbersURL

func (s *ShowPortingOrderMeta) GetPhoneNumbersURL() OptString

GetPhoneNumbersURL returns the value of PhoneNumbersURL.

func (*ShowPortingOrderMeta) MarshalJSON

func (s *ShowPortingOrderMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowPortingOrderMeta) SetPhoneNumbersURL

func (s *ShowPortingOrderMeta) SetPhoneNumbersURL(val OptString)

SetPhoneNumbersURL sets the value of PhoneNumbersURL.

func (*ShowPortingOrderMeta) UnmarshalJSON

func (s *ShowPortingOrderMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShowPortingOrdersActivationJob

type ShowPortingOrdersActivationJob struct {
	Data OptPortingOrdersActivationJob `json:"data"`
}

func (*ShowPortingOrdersActivationJob) Decode

Decode decodes ShowPortingOrdersActivationJob from json.

func (*ShowPortingOrdersActivationJob) Encode

Encode implements json.Marshaler.

func (*ShowPortingOrdersActivationJob) GetData

GetData returns the value of Data.

func (*ShowPortingOrdersActivationJob) MarshalJSON

func (s *ShowPortingOrdersActivationJob) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowPortingOrdersActivationJob) SetData

SetData sets the value of Data.

func (*ShowPortingOrdersActivationJob) UnmarshalJSON

func (s *ShowPortingOrdersActivationJob) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShowPortingOrdersActivationJob) Validate

func (s *ShowPortingOrdersActivationJob) Validate() error

type ShowPortingOrdersComment

type ShowPortingOrdersComment struct {
	Data OptPortingOrdersComment `json:"data"`
}

func (*ShowPortingOrdersComment) Decode

func (s *ShowPortingOrdersComment) Decode(d *jx.Decoder) error

Decode decodes ShowPortingOrdersComment from json.

func (*ShowPortingOrdersComment) Encode

func (s *ShowPortingOrdersComment) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShowPortingOrdersComment) GetData

GetData returns the value of Data.

func (*ShowPortingOrdersComment) MarshalJSON

func (s *ShowPortingOrdersComment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowPortingOrdersComment) SetData

SetData sets the value of Data.

func (*ShowPortingOrdersComment) UnmarshalJSON

func (s *ShowPortingOrdersComment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShowPortingOrdersComment) Validate

func (s *ShowPortingOrdersComment) Validate() error

type ShowPortingReport

type ShowPortingReport struct {
	Data OptPortingReport `json:"data"`
}

func (*ShowPortingReport) Decode

func (s *ShowPortingReport) Decode(d *jx.Decoder) error

Decode decodes ShowPortingReport from json.

func (*ShowPortingReport) Encode

func (s *ShowPortingReport) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShowPortingReport) GetData

func (s *ShowPortingReport) GetData() OptPortingReport

GetData returns the value of Data.

func (*ShowPortingReport) MarshalJSON

func (s *ShowPortingReport) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShowPortingReport) SetData

func (s *ShowPortingReport) SetData(val OptPortingReport)

SetData sets the value of Data.

func (*ShowPortingReport) UnmarshalJSON

func (s *ShowPortingReport) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShowPortingReport) Validate

func (s *ShowPortingReport) Validate() error

type SimplifiedOTAUpdate

type SimplifiedOTAUpdate struct {
	// Identifies the resource.
	ID         OptUUID   `json:"id"`
	RecordType OptString `json:"record_type"`
	// The identification UUID of the related SIM card resource.
	SimCardID OptUUID `json:"sim_card_id"`
	// Represents the type of the operation requested. This will relate directly to the source of the
	// request.
	Type   OptSimplifiedOTAUpdateType   `json:"type"`
	Status OptSimplifiedOTAUpdateStatus `json:"status"`
	// ISO 8601 formatted date-time indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO 8601 formatted date-time indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
}

This object represents an Over the Air (OTA) update request. It allows tracking the current status of a operation that apply settings in a particular SIM card. <br/><br/>. Ref: #/components/schemas/SimplifiedOTAUpdate

func (*SimplifiedOTAUpdate) Decode

func (s *SimplifiedOTAUpdate) Decode(d *jx.Decoder) error

Decode decodes SimplifiedOTAUpdate from json.

func (*SimplifiedOTAUpdate) Encode

func (s *SimplifiedOTAUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SimplifiedOTAUpdate) GetCreatedAt

func (s *SimplifiedOTAUpdate) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*SimplifiedOTAUpdate) GetID

func (s *SimplifiedOTAUpdate) GetID() OptUUID

GetID returns the value of ID.

func (*SimplifiedOTAUpdate) GetRecordType

func (s *SimplifiedOTAUpdate) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*SimplifiedOTAUpdate) GetSimCardID

func (s *SimplifiedOTAUpdate) GetSimCardID() OptUUID

GetSimCardID returns the value of SimCardID.

func (*SimplifiedOTAUpdate) GetStatus

GetStatus returns the value of Status.

func (*SimplifiedOTAUpdate) GetType

GetType returns the value of Type.

func (*SimplifiedOTAUpdate) GetUpdatedAt

func (s *SimplifiedOTAUpdate) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*SimplifiedOTAUpdate) MarshalJSON

func (s *SimplifiedOTAUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SimplifiedOTAUpdate) SetCreatedAt

func (s *SimplifiedOTAUpdate) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*SimplifiedOTAUpdate) SetID

func (s *SimplifiedOTAUpdate) SetID(val OptUUID)

SetID sets the value of ID.

func (*SimplifiedOTAUpdate) SetRecordType

func (s *SimplifiedOTAUpdate) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*SimplifiedOTAUpdate) SetSimCardID

func (s *SimplifiedOTAUpdate) SetSimCardID(val OptUUID)

SetSimCardID sets the value of SimCardID.

func (*SimplifiedOTAUpdate) SetStatus

SetStatus sets the value of Status.

func (*SimplifiedOTAUpdate) SetType

SetType sets the value of Type.

func (*SimplifiedOTAUpdate) SetUpdatedAt

func (s *SimplifiedOTAUpdate) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*SimplifiedOTAUpdate) UnmarshalJSON

func (s *SimplifiedOTAUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SimplifiedOTAUpdate) Validate

func (s *SimplifiedOTAUpdate) Validate() error

type SimplifiedOTAUpdateStatus

type SimplifiedOTAUpdateStatus string
const (
	SimplifiedOTAUpdateStatusInProgress SimplifiedOTAUpdateStatus = "in-progress"
	SimplifiedOTAUpdateStatusCompleted  SimplifiedOTAUpdateStatus = "completed"
	SimplifiedOTAUpdateStatusFailed     SimplifiedOTAUpdateStatus = "failed"
)

func (SimplifiedOTAUpdateStatus) AllValues

AllValues returns all SimplifiedOTAUpdateStatus values.

func (*SimplifiedOTAUpdateStatus) Decode

func (s *SimplifiedOTAUpdateStatus) Decode(d *jx.Decoder) error

Decode decodes SimplifiedOTAUpdateStatus from json.

func (SimplifiedOTAUpdateStatus) Encode

func (s SimplifiedOTAUpdateStatus) Encode(e *jx.Encoder)

Encode encodes SimplifiedOTAUpdateStatus as json.

func (SimplifiedOTAUpdateStatus) MarshalJSON

func (s SimplifiedOTAUpdateStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SimplifiedOTAUpdateStatus) MarshalText

func (s SimplifiedOTAUpdateStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SimplifiedOTAUpdateStatus) UnmarshalJSON

func (s *SimplifiedOTAUpdateStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SimplifiedOTAUpdateStatus) UnmarshalText

func (s *SimplifiedOTAUpdateStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SimplifiedOTAUpdateStatus) Validate

func (s SimplifiedOTAUpdateStatus) Validate() error

type SimplifiedOTAUpdateType

type SimplifiedOTAUpdateType string

Represents the type of the operation requested. This will relate directly to the source of the request.

const (
	SimplifiedOTAUpdateTypeSimCardNetworkPreferences SimplifiedOTAUpdateType = "sim_card_network_preferences"
)

func (SimplifiedOTAUpdateType) AllValues

AllValues returns all SimplifiedOTAUpdateType values.

func (*SimplifiedOTAUpdateType) Decode

func (s *SimplifiedOTAUpdateType) Decode(d *jx.Decoder) error

Decode decodes SimplifiedOTAUpdateType from json.

func (SimplifiedOTAUpdateType) Encode

func (s SimplifiedOTAUpdateType) Encode(e *jx.Encoder)

Encode encodes SimplifiedOTAUpdateType as json.

func (SimplifiedOTAUpdateType) MarshalJSON

func (s SimplifiedOTAUpdateType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SimplifiedOTAUpdateType) MarshalText

func (s SimplifiedOTAUpdateType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SimplifiedOTAUpdateType) UnmarshalJSON

func (s *SimplifiedOTAUpdateType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SimplifiedOTAUpdateType) UnmarshalText

func (s *SimplifiedOTAUpdateType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SimplifiedOTAUpdateType) Validate

func (s SimplifiedOTAUpdateType) Validate() error

type SipHeader

type SipHeader struct {
	// The name of the header to add.
	Name SipHeaderName `json:"name"`
	// The value of the header.
	Value string `json:"value"`
}

Ref: #/components/schemas/SipHeader

func (*SipHeader) Decode

func (s *SipHeader) Decode(d *jx.Decoder) error

Decode decodes SipHeader from json.

func (*SipHeader) Encode

func (s *SipHeader) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SipHeader) GetName

func (s *SipHeader) GetName() SipHeaderName

GetName returns the value of Name.

func (*SipHeader) GetValue

func (s *SipHeader) GetValue() string

GetValue returns the value of Value.

func (*SipHeader) MarshalJSON

func (s *SipHeader) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SipHeader) SetName

func (s *SipHeader) SetName(val SipHeaderName)

SetName sets the value of Name.

func (*SipHeader) SetValue

func (s *SipHeader) SetValue(val string)

SetValue sets the value of Value.

func (*SipHeader) UnmarshalJSON

func (s *SipHeader) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SipHeader) Validate

func (s *SipHeader) Validate() error

type SipHeaderName

type SipHeaderName string

The name of the header to add.

const (
	SipHeaderNameUserToUser SipHeaderName = "User-to-User"
)

func (SipHeaderName) AllValues

func (SipHeaderName) AllValues() []SipHeaderName

AllValues returns all SipHeaderName values.

func (*SipHeaderName) Decode

func (s *SipHeaderName) Decode(d *jx.Decoder) error

Decode decodes SipHeaderName from json.

func (SipHeaderName) Encode

func (s SipHeaderName) Encode(e *jx.Encoder)

Encode encodes SipHeaderName as json.

func (SipHeaderName) MarshalJSON

func (s SipHeaderName) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SipHeaderName) MarshalText

func (s SipHeaderName) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SipHeaderName) UnmarshalJSON

func (s *SipHeaderName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SipHeaderName) UnmarshalText

func (s *SipHeaderName) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SipHeaderName) Validate

func (s SipHeaderName) Validate() error

type SlimListPhoneNumbersFilterStatus

type SlimListPhoneNumbersFilterStatus string
const (
	SlimListPhoneNumbersFilterStatusPurchasePending SlimListPhoneNumbersFilterStatus = "purchase_pending"
	SlimListPhoneNumbersFilterStatusPurchaseFailed  SlimListPhoneNumbersFilterStatus = "purchase_failed"
	SlimListPhoneNumbersFilterStatusPortPending     SlimListPhoneNumbersFilterStatus = "port_pending"
	SlimListPhoneNumbersFilterStatusActive          SlimListPhoneNumbersFilterStatus = "active"
	SlimListPhoneNumbersFilterStatusDeleted         SlimListPhoneNumbersFilterStatus = "deleted"
	SlimListPhoneNumbersFilterStatusPortFailed      SlimListPhoneNumbersFilterStatus = "port_failed"
	SlimListPhoneNumbersFilterStatusEmergencyOnly   SlimListPhoneNumbersFilterStatus = "emergency_only"
	SlimListPhoneNumbersFilterStatusPortedOut       SlimListPhoneNumbersFilterStatus = "ported_out"
	SlimListPhoneNumbersFilterStatusPortOutPending  SlimListPhoneNumbersFilterStatus = "port_out_pending"
)

func (SlimListPhoneNumbersFilterStatus) AllValues

AllValues returns all SlimListPhoneNumbersFilterStatus values.

func (SlimListPhoneNumbersFilterStatus) MarshalText

func (s SlimListPhoneNumbersFilterStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SlimListPhoneNumbersFilterStatus) UnmarshalText

func (s *SlimListPhoneNumbersFilterStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SlimListPhoneNumbersFilterStatus) Validate

type SlimListPhoneNumbersFilterVoiceUsagePaymentMethod

type SlimListPhoneNumbersFilterVoiceUsagePaymentMethod string
const (
	SlimListPhoneNumbersFilterVoiceUsagePaymentMethodPayPerMinute SlimListPhoneNumbersFilterVoiceUsagePaymentMethod = "pay-per-minute"
	SlimListPhoneNumbersFilterVoiceUsagePaymentMethodChannel      SlimListPhoneNumbersFilterVoiceUsagePaymentMethod = "channel"
)

func (SlimListPhoneNumbersFilterVoiceUsagePaymentMethod) AllValues

AllValues returns all SlimListPhoneNumbersFilterVoiceUsagePaymentMethod values.

func (SlimListPhoneNumbersFilterVoiceUsagePaymentMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*SlimListPhoneNumbersFilterVoiceUsagePaymentMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (SlimListPhoneNumbersFilterVoiceUsagePaymentMethod) Validate

type SlimListPhoneNumbersParams

type SlimListPhoneNumbersParams struct {
	// The page number to load.
	PageNumber OptInt
	// The size of the page.
	PageSize OptInt
	// Include the connection associated with the phone number.
	IncludeConnection OptBool
	// Include the tags associated with the phone number.
	IncludeTags OptBool
	// Filter by phone number tags. (This requires the include_tags param).
	FilterTag OptString
	// Filter by phone number. Requires at least three digits.
	// Non-numerical characters will result in no values being returned.
	FilterPhoneNumber OptString
	// Filter by phone number status.
	FilterStatus OptSlimListPhoneNumbersFilterStatus
	// Filter by connection_id.
	FilterConnectionID OptStringInt64
	// Filter contains connection name. Requires at least three characters and the include_connection
	// param.
	FilterVoiceConnectionNameContains OptString
	// Filter starts with connection name. Requires at least three characters and the include_connection
	// param.
	FilterVoiceConnectionNameStartsWith OptString
	// Filter ends with connection name. Requires at least three characters and the include_connection
	// param.
	FilterVoiceConnectionNameEndsWith OptString
	// Filter by connection name , requires the include_connection param and the include_connection param.
	FilterVoiceConnectionName OptString
	// Filter by usage_payment_method.
	FilterVoiceUsagePaymentMethod OptSlimListPhoneNumbersFilterVoiceUsagePaymentMethod
	// Filter by the billing_group_id associated with phone numbers. To filter to only phone numbers that
	// have no billing group associated them, set the value of this filter to the string 'null'.
	FilterBillingGroupID OptString
	// Filter by the emergency_address_id associated with phone numbers. To filter only phone numbers
	// that have no emergency address associated with them, set the value of this filter to the string
	// 'null'.
	FilterEmergencyAddressID OptStringInt64
	// Filter numbers via the customer_reference set.
	FilterCustomerReference OptString
	// Specifies the sort order for results. If not given, results are sorted by created_at in descending
	// order.
	Sort OptSlimListPhoneNumbersSort
}

SlimListPhoneNumbersParams is parameters of SlimListPhoneNumbers operation.

type SlimListPhoneNumbersRes

type SlimListPhoneNumbersRes interface {
	// contains filtered or unexported methods
}

type SlimListPhoneNumbersResponse

type SlimListPhoneNumbersResponse struct {
	Data []SlimPhoneNumberDetailed `json:"data"`
	Meta OptPaginationMeta         `json:"meta"`
}

func (*SlimListPhoneNumbersResponse) Decode

Decode decodes SlimListPhoneNumbersResponse from json.

func (*SlimListPhoneNumbersResponse) Encode

func (s *SlimListPhoneNumbersResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SlimListPhoneNumbersResponse) GetData

GetData returns the value of Data.

func (*SlimListPhoneNumbersResponse) GetMeta

GetMeta returns the value of Meta.

func (*SlimListPhoneNumbersResponse) MarshalJSON

func (s *SlimListPhoneNumbersResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SlimListPhoneNumbersResponse) SetData

SetData sets the value of Data.

func (*SlimListPhoneNumbersResponse) SetMeta

SetMeta sets the value of Meta.

func (*SlimListPhoneNumbersResponse) UnmarshalJSON

func (s *SlimListPhoneNumbersResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SlimListPhoneNumbersResponse) Validate

func (s *SlimListPhoneNumbersResponse) Validate() error

type SlimListPhoneNumbersSort

type SlimListPhoneNumbersSort string
const (
	SlimListPhoneNumbersSortPurchasedAt        SlimListPhoneNumbersSort = "purchased_at"
	SlimListPhoneNumbersSortPhoneNumber        SlimListPhoneNumbersSort = "phone_number"
	SlimListPhoneNumbersSortConnectionName     SlimListPhoneNumbersSort = "connection_name"
	SlimListPhoneNumbersSortUsagePaymentMethod SlimListPhoneNumbersSort = "usage_payment_method"
)

func (SlimListPhoneNumbersSort) AllValues

AllValues returns all SlimListPhoneNumbersSort values.

func (SlimListPhoneNumbersSort) MarshalText

func (s SlimListPhoneNumbersSort) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SlimListPhoneNumbersSort) UnmarshalText

func (s *SlimListPhoneNumbersSort) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SlimListPhoneNumbersSort) Validate

func (s SlimListPhoneNumbersSort) Validate() error

type SlimPhoneNumberDetailed

type SlimPhoneNumberDetailed struct {
	ID OptIntId `json:"id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// The +E.164-formatted phone number associated with this record.
	PhoneNumber OptString `json:"phone_number"`
	// The phone number's current status.
	Status OptSlimPhoneNumberDetailedStatus `json:"status"`
	// If someone attempts to port your phone number away from Telnyx and your phone number has an
	// external PIN set, Telnyx will attempt to verify that you provided the correct external PIN to the
	// winning carrier. Note that not all carriers cooperate with this security mechanism.
	ExternalPin OptString `json:"external_pin"`
	// Identifies the connection associated with the phone number.
	ConnectionID OptString `json:"connection_id"`
	// A customer reference string for customer look ups.
	CustomerReference OptString `json:"customer_reference"`
	// Identifies the billing group associated with the phone number.
	BillingGroupID OptString `json:"billing_group_id"`
	// Indicates whether emergency services are enabled for this number.
	EmergencyEnabled OptBool `json:"emergency_enabled"`
	// Identifies the emergency address associated with the phone number.
	EmergencyAddressID OptStringInt64 `json:"emergency_address_id"`
	// Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type
	// are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints.
	CallForwardingEnabled OptBool `json:"call_forwarding_enabled"`
	// Indicates whether a CNAM listing is enabled for this number.
	CnamListingEnabled OptBool `json:"cnam_listing_enabled"`
	// Indicates whether caller ID is enabled for this number.
	CallerIDNameEnabled OptBool `json:"caller_id_name_enabled"`
	// Indicates whether call recording is enabled for this number.
	CallRecordingEnabled OptBool `json:"call_recording_enabled"`
	// Indicates whether T38 Fax Gateway for inbound calls to this number.
	T38FaxGatewayEnabled OptBool `json:"t38_fax_gateway_enabled"`
	// ISO 8601 formatted date indicating when the resource was purchased.
	PurchasedAt OptString `json:"purchased_at"`
	// ISO 8601 formatted date indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// Deprecated field, the only value for this is 'disabled'. All routing for numbers should be
	// configured via connection settings.
	NumberLevelRouting OptSlimPhoneNumberDetailedNumberLevelRouting `json:"number_level_routing"`
	// The phone number's type.
	// Note: For numbers purchased prior to July 2023 or when fetching a number's details immediately
	// after a purchase completes, the legacy values `tollfree`, `shortcode` or `longcode` may be
	// returned instead.
	PhoneNumberType OptSlimPhoneNumberDetailedPhoneNumberType `json:"phone_number_type"`
	// The inbound_call_screening setting is a phone number configuration option variable that allows
	// users to configure their settings to block or flag fraudulent calls. It can be set to disabled,
	// reject_calls, or flag_calls. This feature has an additional per-number monthly cost associated
	// with it.
	InboundCallScreening OptSlimPhoneNumberDetailedInboundCallScreening `json:"inbound_call_screening"`
}

Ref: #/components/schemas/SlimPhoneNumberDetailed

func (*SlimPhoneNumberDetailed) Decode

func (s *SlimPhoneNumberDetailed) Decode(d *jx.Decoder) error

Decode decodes SlimPhoneNumberDetailed from json.

func (*SlimPhoneNumberDetailed) Encode

func (s *SlimPhoneNumberDetailed) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SlimPhoneNumberDetailed) GetBillingGroupID

func (s *SlimPhoneNumberDetailed) GetBillingGroupID() OptString

GetBillingGroupID returns the value of BillingGroupID.

func (*SlimPhoneNumberDetailed) GetCallForwardingEnabled

func (s *SlimPhoneNumberDetailed) GetCallForwardingEnabled() OptBool

GetCallForwardingEnabled returns the value of CallForwardingEnabled.

func (*SlimPhoneNumberDetailed) GetCallRecordingEnabled

func (s *SlimPhoneNumberDetailed) GetCallRecordingEnabled() OptBool

GetCallRecordingEnabled returns the value of CallRecordingEnabled.

func (*SlimPhoneNumberDetailed) GetCallerIDNameEnabled

func (s *SlimPhoneNumberDetailed) GetCallerIDNameEnabled() OptBool

GetCallerIDNameEnabled returns the value of CallerIDNameEnabled.

func (*SlimPhoneNumberDetailed) GetCnamListingEnabled

func (s *SlimPhoneNumberDetailed) GetCnamListingEnabled() OptBool

GetCnamListingEnabled returns the value of CnamListingEnabled.

func (*SlimPhoneNumberDetailed) GetConnectionID

func (s *SlimPhoneNumberDetailed) GetConnectionID() OptString

GetConnectionID returns the value of ConnectionID.

func (*SlimPhoneNumberDetailed) GetCreatedAt

func (s *SlimPhoneNumberDetailed) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*SlimPhoneNumberDetailed) GetCustomerReference

func (s *SlimPhoneNumberDetailed) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*SlimPhoneNumberDetailed) GetEmergencyAddressID

func (s *SlimPhoneNumberDetailed) GetEmergencyAddressID() OptStringInt64

GetEmergencyAddressID returns the value of EmergencyAddressID.

func (*SlimPhoneNumberDetailed) GetEmergencyEnabled

func (s *SlimPhoneNumberDetailed) GetEmergencyEnabled() OptBool

GetEmergencyEnabled returns the value of EmergencyEnabled.

func (*SlimPhoneNumberDetailed) GetExternalPin

func (s *SlimPhoneNumberDetailed) GetExternalPin() OptString

GetExternalPin returns the value of ExternalPin.

func (*SlimPhoneNumberDetailed) GetID

func (s *SlimPhoneNumberDetailed) GetID() OptIntId

GetID returns the value of ID.

func (*SlimPhoneNumberDetailed) GetInboundCallScreening

GetInboundCallScreening returns the value of InboundCallScreening.

func (*SlimPhoneNumberDetailed) GetNumberLevelRouting

GetNumberLevelRouting returns the value of NumberLevelRouting.

func (*SlimPhoneNumberDetailed) GetPhoneNumber

func (s *SlimPhoneNumberDetailed) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*SlimPhoneNumberDetailed) GetPhoneNumberType

GetPhoneNumberType returns the value of PhoneNumberType.

func (*SlimPhoneNumberDetailed) GetPurchasedAt

func (s *SlimPhoneNumberDetailed) GetPurchasedAt() OptString

GetPurchasedAt returns the value of PurchasedAt.

func (*SlimPhoneNumberDetailed) GetRecordType

func (s *SlimPhoneNumberDetailed) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*SlimPhoneNumberDetailed) GetStatus

GetStatus returns the value of Status.

func (*SlimPhoneNumberDetailed) GetT38FaxGatewayEnabled

func (s *SlimPhoneNumberDetailed) GetT38FaxGatewayEnabled() OptBool

GetT38FaxGatewayEnabled returns the value of T38FaxGatewayEnabled.

func (*SlimPhoneNumberDetailed) MarshalJSON

func (s *SlimPhoneNumberDetailed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SlimPhoneNumberDetailed) SetBillingGroupID

func (s *SlimPhoneNumberDetailed) SetBillingGroupID(val OptString)

SetBillingGroupID sets the value of BillingGroupID.

func (*SlimPhoneNumberDetailed) SetCallForwardingEnabled

func (s *SlimPhoneNumberDetailed) SetCallForwardingEnabled(val OptBool)

SetCallForwardingEnabled sets the value of CallForwardingEnabled.

func (*SlimPhoneNumberDetailed) SetCallRecordingEnabled

func (s *SlimPhoneNumberDetailed) SetCallRecordingEnabled(val OptBool)

SetCallRecordingEnabled sets the value of CallRecordingEnabled.

func (*SlimPhoneNumberDetailed) SetCallerIDNameEnabled

func (s *SlimPhoneNumberDetailed) SetCallerIDNameEnabled(val OptBool)

SetCallerIDNameEnabled sets the value of CallerIDNameEnabled.

func (*SlimPhoneNumberDetailed) SetCnamListingEnabled

func (s *SlimPhoneNumberDetailed) SetCnamListingEnabled(val OptBool)

SetCnamListingEnabled sets the value of CnamListingEnabled.

func (*SlimPhoneNumberDetailed) SetConnectionID

func (s *SlimPhoneNumberDetailed) SetConnectionID(val OptString)

SetConnectionID sets the value of ConnectionID.

func (*SlimPhoneNumberDetailed) SetCreatedAt

func (s *SlimPhoneNumberDetailed) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*SlimPhoneNumberDetailed) SetCustomerReference

func (s *SlimPhoneNumberDetailed) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*SlimPhoneNumberDetailed) SetEmergencyAddressID

func (s *SlimPhoneNumberDetailed) SetEmergencyAddressID(val OptStringInt64)

SetEmergencyAddressID sets the value of EmergencyAddressID.

func (*SlimPhoneNumberDetailed) SetEmergencyEnabled

func (s *SlimPhoneNumberDetailed) SetEmergencyEnabled(val OptBool)

SetEmergencyEnabled sets the value of EmergencyEnabled.

func (*SlimPhoneNumberDetailed) SetExternalPin

func (s *SlimPhoneNumberDetailed) SetExternalPin(val OptString)

SetExternalPin sets the value of ExternalPin.

func (*SlimPhoneNumberDetailed) SetID

func (s *SlimPhoneNumberDetailed) SetID(val OptIntId)

SetID sets the value of ID.

func (*SlimPhoneNumberDetailed) SetInboundCallScreening

SetInboundCallScreening sets the value of InboundCallScreening.

func (*SlimPhoneNumberDetailed) SetNumberLevelRouting

SetNumberLevelRouting sets the value of NumberLevelRouting.

func (*SlimPhoneNumberDetailed) SetPhoneNumber

func (s *SlimPhoneNumberDetailed) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*SlimPhoneNumberDetailed) SetPhoneNumberType

SetPhoneNumberType sets the value of PhoneNumberType.

func (*SlimPhoneNumberDetailed) SetPurchasedAt

func (s *SlimPhoneNumberDetailed) SetPurchasedAt(val OptString)

SetPurchasedAt sets the value of PurchasedAt.

func (*SlimPhoneNumberDetailed) SetRecordType

func (s *SlimPhoneNumberDetailed) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*SlimPhoneNumberDetailed) SetStatus

SetStatus sets the value of Status.

func (*SlimPhoneNumberDetailed) SetT38FaxGatewayEnabled

func (s *SlimPhoneNumberDetailed) SetT38FaxGatewayEnabled(val OptBool)

SetT38FaxGatewayEnabled sets the value of T38FaxGatewayEnabled.

func (*SlimPhoneNumberDetailed) UnmarshalJSON

func (s *SlimPhoneNumberDetailed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SlimPhoneNumberDetailed) Validate

func (s *SlimPhoneNumberDetailed) Validate() error

type SlimPhoneNumberDetailedInboundCallScreening

type SlimPhoneNumberDetailedInboundCallScreening string

The inbound_call_screening setting is a phone number configuration option variable that allows users to configure their settings to block or flag fraudulent calls. It can be set to disabled, reject_calls, or flag_calls. This feature has an additional per-number monthly cost associated with it.

const (
	SlimPhoneNumberDetailedInboundCallScreeningDisabled    SlimPhoneNumberDetailedInboundCallScreening = "disabled"
	SlimPhoneNumberDetailedInboundCallScreeningRejectCalls SlimPhoneNumberDetailedInboundCallScreening = "reject_calls"
	SlimPhoneNumberDetailedInboundCallScreeningFlagCalls   SlimPhoneNumberDetailedInboundCallScreening = "flag_calls"
)

func (SlimPhoneNumberDetailedInboundCallScreening) AllValues

AllValues returns all SlimPhoneNumberDetailedInboundCallScreening values.

func (*SlimPhoneNumberDetailedInboundCallScreening) Decode

Decode decodes SlimPhoneNumberDetailedInboundCallScreening from json.

func (SlimPhoneNumberDetailedInboundCallScreening) Encode

Encode encodes SlimPhoneNumberDetailedInboundCallScreening as json.

func (SlimPhoneNumberDetailedInboundCallScreening) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (SlimPhoneNumberDetailedInboundCallScreening) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*SlimPhoneNumberDetailedInboundCallScreening) UnmarshalJSON

func (s *SlimPhoneNumberDetailedInboundCallScreening) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SlimPhoneNumberDetailedInboundCallScreening) UnmarshalText

func (s *SlimPhoneNumberDetailedInboundCallScreening) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SlimPhoneNumberDetailedInboundCallScreening) Validate

type SlimPhoneNumberDetailedNumberLevelRouting

type SlimPhoneNumberDetailedNumberLevelRouting string

Deprecated field, the only value for this is 'disabled'. All routing for numbers should be configured via connection settings.

const (
	SlimPhoneNumberDetailedNumberLevelRoutingDisabled SlimPhoneNumberDetailedNumberLevelRouting = "disabled"
)

func (SlimPhoneNumberDetailedNumberLevelRouting) AllValues

AllValues returns all SlimPhoneNumberDetailedNumberLevelRouting values.

func (*SlimPhoneNumberDetailedNumberLevelRouting) Decode

Decode decodes SlimPhoneNumberDetailedNumberLevelRouting from json.

func (SlimPhoneNumberDetailedNumberLevelRouting) Encode

Encode encodes SlimPhoneNumberDetailedNumberLevelRouting as json.

func (SlimPhoneNumberDetailedNumberLevelRouting) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (SlimPhoneNumberDetailedNumberLevelRouting) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*SlimPhoneNumberDetailedNumberLevelRouting) UnmarshalJSON

func (s *SlimPhoneNumberDetailedNumberLevelRouting) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SlimPhoneNumberDetailedNumberLevelRouting) UnmarshalText

func (s *SlimPhoneNumberDetailedNumberLevelRouting) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SlimPhoneNumberDetailedNumberLevelRouting) Validate

type SlimPhoneNumberDetailedPhoneNumberType

type SlimPhoneNumberDetailedPhoneNumberType string

The phone number's type. Note: For numbers purchased prior to July 2023 or when fetching a number's details immediately after a purchase completes, the legacy values `tollfree`, `shortcode` or `longcode` may be returned instead.

const (
	SlimPhoneNumberDetailedPhoneNumberTypeLocal      SlimPhoneNumberDetailedPhoneNumberType = "local"
	SlimPhoneNumberDetailedPhoneNumberTypeTollFree   SlimPhoneNumberDetailedPhoneNumberType = "toll_free"
	SlimPhoneNumberDetailedPhoneNumberTypeMobile     SlimPhoneNumberDetailedPhoneNumberType = "mobile"
	SlimPhoneNumberDetailedPhoneNumberTypeNational   SlimPhoneNumberDetailedPhoneNumberType = "national"
	SlimPhoneNumberDetailedPhoneNumberTypeSharedCost SlimPhoneNumberDetailedPhoneNumberType = "shared_cost"
	SlimPhoneNumberDetailedPhoneNumberTypeLandline   SlimPhoneNumberDetailedPhoneNumberType = "landline"
	SlimPhoneNumberDetailedPhoneNumberTypeTollfree   SlimPhoneNumberDetailedPhoneNumberType = "tollfree"
	SlimPhoneNumberDetailedPhoneNumberTypeShortcode  SlimPhoneNumberDetailedPhoneNumberType = "shortcode"
	SlimPhoneNumberDetailedPhoneNumberTypeLongcode   SlimPhoneNumberDetailedPhoneNumberType = "longcode"
)

func (SlimPhoneNumberDetailedPhoneNumberType) AllValues

AllValues returns all SlimPhoneNumberDetailedPhoneNumberType values.

func (*SlimPhoneNumberDetailedPhoneNumberType) Decode

Decode decodes SlimPhoneNumberDetailedPhoneNumberType from json.

func (SlimPhoneNumberDetailedPhoneNumberType) Encode

Encode encodes SlimPhoneNumberDetailedPhoneNumberType as json.

func (SlimPhoneNumberDetailedPhoneNumberType) MarshalJSON

func (s SlimPhoneNumberDetailedPhoneNumberType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SlimPhoneNumberDetailedPhoneNumberType) MarshalText

func (s SlimPhoneNumberDetailedPhoneNumberType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SlimPhoneNumberDetailedPhoneNumberType) UnmarshalJSON

func (s *SlimPhoneNumberDetailedPhoneNumberType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SlimPhoneNumberDetailedPhoneNumberType) UnmarshalText

func (s *SlimPhoneNumberDetailedPhoneNumberType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SlimPhoneNumberDetailedPhoneNumberType) Validate

type SlimPhoneNumberDetailedStatus

type SlimPhoneNumberDetailedStatus string

The phone number's current status.

const (
	SlimPhoneNumberDetailedStatusPurchasePending            SlimPhoneNumberDetailedStatus = "purchase-pending"
	SlimPhoneNumberDetailedStatusPurchaseFailed             SlimPhoneNumberDetailedStatus = "purchase-failed"
	SlimPhoneNumberDetailedStatusPortPending                SlimPhoneNumberDetailedStatus = "port-pending"
	SlimPhoneNumberDetailedStatusPortFailed                 SlimPhoneNumberDetailedStatus = "port-failed"
	SlimPhoneNumberDetailedStatusActive                     SlimPhoneNumberDetailedStatus = "active"
	SlimPhoneNumberDetailedStatusDeleted                    SlimPhoneNumberDetailedStatus = "deleted"
	SlimPhoneNumberDetailedStatusEmergencyOnly              SlimPhoneNumberDetailedStatus = "emergency-only"
	SlimPhoneNumberDetailedStatusPortedOut                  SlimPhoneNumberDetailedStatus = "ported-out"
	SlimPhoneNumberDetailedStatusPortOutPending             SlimPhoneNumberDetailedStatus = "port-out-pending"
	SlimPhoneNumberDetailedStatusRequirementInfoPending     SlimPhoneNumberDetailedStatus = "requirement-info-pending"
	SlimPhoneNumberDetailedStatusRequirementInfoUnderReview SlimPhoneNumberDetailedStatus = "requirement-info-under-review"
	SlimPhoneNumberDetailedStatusRequirementInfoException   SlimPhoneNumberDetailedStatus = "requirement-info-exception"
	SlimPhoneNumberDetailedStatusProvisionPending           SlimPhoneNumberDetailedStatus = "provision-pending"
)

func (SlimPhoneNumberDetailedStatus) AllValues

AllValues returns all SlimPhoneNumberDetailedStatus values.

func (*SlimPhoneNumberDetailedStatus) Decode

Decode decodes SlimPhoneNumberDetailedStatus from json.

func (SlimPhoneNumberDetailedStatus) Encode

Encode encodes SlimPhoneNumberDetailedStatus as json.

func (SlimPhoneNumberDetailedStatus) MarshalJSON

func (s SlimPhoneNumberDetailedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SlimPhoneNumberDetailedStatus) MarshalText

func (s SlimPhoneNumberDetailedStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SlimPhoneNumberDetailedStatus) UnmarshalJSON

func (s *SlimPhoneNumberDetailedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SlimPhoneNumberDetailedStatus) UnmarshalText

func (s *SlimPhoneNumberDetailedStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SlimPhoneNumberDetailedStatus) Validate

func (s SlimPhoneNumberDetailedStatus) Validate() error

type SortApplication

type SortApplication string
const (
	SortApplicationCreatedAt    SortApplication = "created_at"
	SortApplicationFriendlyName SortApplication = "friendly_name"
	SortApplicationActive       SortApplication = "active"
)

func (SortApplication) AllValues

func (SortApplication) AllValues() []SortApplication

AllValues returns all SortApplication values.

func (SortApplication) MarshalText

func (s SortApplication) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SortApplication) UnmarshalText

func (s *SortApplication) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SortApplication) Validate

func (s SortApplication) Validate() error

type SortConnection

type SortConnection string
const (
	SortConnectionCreatedAt      SortConnection = "created_at"
	SortConnectionConnectionName SortConnection = "connection_name"
	SortConnectionActive         SortConnection = "active"
)

func (SortConnection) AllValues

func (SortConnection) AllValues() []SortConnection

AllValues returns all SortConnection values.

func (SortConnection) MarshalText

func (s SortConnection) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SortConnection) UnmarshalText

func (s *SortConnection) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SortConnection) Validate

func (s SortConnection) Validate() error

type SortOutboundVoiceProfile

type SortOutboundVoiceProfile string
const (
	SortOutboundVoiceProfileEnabled                 SortOutboundVoiceProfile = "enabled"
	SortOutboundVoiceProfileMinusEnabled            SortOutboundVoiceProfile = "-enabled"
	SortOutboundVoiceProfileCreatedAt               SortOutboundVoiceProfile = "created_at"
	SortOutboundVoiceProfileMinusCreatedAt          SortOutboundVoiceProfile = "-created_at"
	SortOutboundVoiceProfileName                    SortOutboundVoiceProfile = "name"
	SortOutboundVoiceProfileMinusName               SortOutboundVoiceProfile = "-name"
	SortOutboundVoiceProfileServicePlan             SortOutboundVoiceProfile = "service_plan"
	SortOutboundVoiceProfileMinusServicePlan        SortOutboundVoiceProfile = "-service_plan"
	SortOutboundVoiceProfileTrafficType             SortOutboundVoiceProfile = "traffic_type"
	SortOutboundVoiceProfileMinusTrafficType        SortOutboundVoiceProfile = "-traffic_type"
	SortOutboundVoiceProfileUsagePaymentMethod      SortOutboundVoiceProfile = "usage_payment_method"
	SortOutboundVoiceProfileMinusUsagePaymentMethod SortOutboundVoiceProfile = "-usage_payment_method"
)

func (SortOutboundVoiceProfile) AllValues

AllValues returns all SortOutboundVoiceProfile values.

func (SortOutboundVoiceProfile) MarshalText

func (s SortOutboundVoiceProfile) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SortOutboundVoiceProfile) UnmarshalText

func (s *SortOutboundVoiceProfile) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SortOutboundVoiceProfile) Validate

func (s SortOutboundVoiceProfile) Validate() error

type SoundModifications

type SoundModifications struct {
	// Set the pitch directly, value should be > 0, default 1 (lower = lower tone).
	Pitch OptFloat64 `json:"pitch"`
	// Adjust the pitch in semitones, values should be between -14 and 14, default 0.
	Semitone OptFloat64 `json:"semitone"`
	// Adjust the pitch in octaves, values should be between -1 and 1, default 0.
	Octaves OptFloat64 `json:"octaves"`
	// The track to which the sound modifications will be applied. Accepted values are `inbound` or
	// `outbound`.
	Track OptString `json:"track"`
}

Use this field to modify sound effects, for example adjust the pitch. Ref: #/components/schemas/SoundModifications

func (*SoundModifications) Decode

func (s *SoundModifications) Decode(d *jx.Decoder) error

Decode decodes SoundModifications from json.

func (*SoundModifications) Encode

func (s *SoundModifications) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SoundModifications) GetOctaves

func (s *SoundModifications) GetOctaves() OptFloat64

GetOctaves returns the value of Octaves.

func (*SoundModifications) GetPitch

func (s *SoundModifications) GetPitch() OptFloat64

GetPitch returns the value of Pitch.

func (*SoundModifications) GetSemitone

func (s *SoundModifications) GetSemitone() OptFloat64

GetSemitone returns the value of Semitone.

func (*SoundModifications) GetTrack

func (s *SoundModifications) GetTrack() OptString

GetTrack returns the value of Track.

func (*SoundModifications) MarshalJSON

func (s *SoundModifications) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SoundModifications) SetOctaves

func (s *SoundModifications) SetOctaves(val OptFloat64)

SetOctaves sets the value of Octaves.

func (*SoundModifications) SetPitch

func (s *SoundModifications) SetPitch(val OptFloat64)

SetPitch sets the value of Pitch.

func (*SoundModifications) SetSemitone

func (s *SoundModifications) SetSemitone(val OptFloat64)

SetSemitone sets the value of Semitone.

func (*SoundModifications) SetTrack

func (s *SoundModifications) SetTrack(val OptString)

SetTrack sets the value of Track.

func (*SoundModifications) UnmarshalJSON

func (s *SoundModifications) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SoundModifications) Validate

func (s *SoundModifications) Validate() error

type SourceResponse

type SourceResponse struct {
	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	Pointer OptString `json:"pointer"`
	// A string indicating which URI query parameter caused the error.
	Parameter OptString `json:"parameter"`
}

Ref: #/components/schemas/SourceResponse

func (*SourceResponse) Decode

func (s *SourceResponse) Decode(d *jx.Decoder) error

Decode decodes SourceResponse from json.

func (*SourceResponse) Encode

func (s *SourceResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SourceResponse) GetParameter

func (s *SourceResponse) GetParameter() OptString

GetParameter returns the value of Parameter.

func (*SourceResponse) GetPointer

func (s *SourceResponse) GetPointer() OptString

GetPointer returns the value of Pointer.

func (*SourceResponse) MarshalJSON

func (s *SourceResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SourceResponse) SetParameter

func (s *SourceResponse) SetParameter(val OptString)

SetParameter sets the value of Parameter.

func (*SourceResponse) SetPointer

func (s *SourceResponse) SetPointer(val OptString)

SetPointer sets the value of Pointer.

func (*SourceResponse) UnmarshalJSON

func (s *SourceResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SpeakCallParams

type SpeakCallParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

SpeakCallParams is parameters of SpeakCall operation.

type SpeakCallRes

type SpeakCallRes interface {
	// contains filtered or unexported methods
}

type SpeakRequest

type SpeakRequest struct {
	// The text or SSML to be converted into speech. There is a 3,000 character limit.
	Payload string `json:"payload"`
	// The type of the provided payload. The payload can either be plain text, or Speech Synthesis Markup
	// Language (SSML).
	PayloadType OptSpeakRequestPayloadType `json:"payload_type"`
	// This parameter impacts speech quality, language options and payload types. When using `basic`,
	// only the `en-US` language and payload type `text` are allowed.
	ServiceLevel OptSpeakRequestServiceLevel `json:"service_level"`
	// When specified, it stops the current audio being played. Specify `current` to stop the current
	// audio being played, and to play the next file in the queue. Specify `all` to stop the current
	// audio file being played and to also clear all audio files from the queue.
	Stop OptString `json:"stop"`
	// The gender of the voice used to speak back the text or the specific Amazon Polly voice to be used
	// in the form of `Polly.<voice>`, e.g. `Polly.Brian`. All standard Amazon Polly voices are supported.
	Voice SpeakRequestVoice `json:"voice"`
	// The language you want spoken. This parameter is ignored when a `Polly.*` voice is specified.
	Language OptSpeakRequestLanguage `json:"language"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/SpeakRequest

func (*SpeakRequest) Decode

func (s *SpeakRequest) Decode(d *jx.Decoder) error

Decode decodes SpeakRequest from json.

func (*SpeakRequest) Encode

func (s *SpeakRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SpeakRequest) GetClientState

func (s *SpeakRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*SpeakRequest) GetCommandID

func (s *SpeakRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*SpeakRequest) GetLanguage

func (s *SpeakRequest) GetLanguage() OptSpeakRequestLanguage

GetLanguage returns the value of Language.

func (*SpeakRequest) GetPayload

func (s *SpeakRequest) GetPayload() string

GetPayload returns the value of Payload.

func (*SpeakRequest) GetPayloadType

func (s *SpeakRequest) GetPayloadType() OptSpeakRequestPayloadType

GetPayloadType returns the value of PayloadType.

func (*SpeakRequest) GetServiceLevel

func (s *SpeakRequest) GetServiceLevel() OptSpeakRequestServiceLevel

GetServiceLevel returns the value of ServiceLevel.

func (*SpeakRequest) GetStop

func (s *SpeakRequest) GetStop() OptString

GetStop returns the value of Stop.

func (*SpeakRequest) GetVoice

func (s *SpeakRequest) GetVoice() SpeakRequestVoice

GetVoice returns the value of Voice.

func (*SpeakRequest) MarshalJSON

func (s *SpeakRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpeakRequest) SetClientState

func (s *SpeakRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*SpeakRequest) SetCommandID

func (s *SpeakRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*SpeakRequest) SetLanguage

func (s *SpeakRequest) SetLanguage(val OptSpeakRequestLanguage)

SetLanguage sets the value of Language.

func (*SpeakRequest) SetPayload

func (s *SpeakRequest) SetPayload(val string)

SetPayload sets the value of Payload.

func (*SpeakRequest) SetPayloadType

func (s *SpeakRequest) SetPayloadType(val OptSpeakRequestPayloadType)

SetPayloadType sets the value of PayloadType.

func (*SpeakRequest) SetServiceLevel

func (s *SpeakRequest) SetServiceLevel(val OptSpeakRequestServiceLevel)

SetServiceLevel sets the value of ServiceLevel.

func (*SpeakRequest) SetStop

func (s *SpeakRequest) SetStop(val OptString)

SetStop sets the value of Stop.

func (*SpeakRequest) SetVoice

func (s *SpeakRequest) SetVoice(val SpeakRequestVoice)

SetVoice sets the value of Voice.

func (*SpeakRequest) UnmarshalJSON

func (s *SpeakRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpeakRequest) Validate

func (s *SpeakRequest) Validate() error

type SpeakRequestLanguage

type SpeakRequestLanguage string

The language you want spoken. This parameter is ignored when a `Polly.*` voice is specified.

const (
	SpeakRequestLanguageArb     SpeakRequestLanguage = "arb"
	SpeakRequestLanguageCmnCN   SpeakRequestLanguage = "cmn-CN"
	SpeakRequestLanguageCyGB    SpeakRequestLanguage = "cy-GB"
	SpeakRequestLanguageDaDK    SpeakRequestLanguage = "da-DK"
	SpeakRequestLanguageDeDE    SpeakRequestLanguage = "de-DE"
	SpeakRequestLanguageEnAU    SpeakRequestLanguage = "en-AU"
	SpeakRequestLanguageEnGB    SpeakRequestLanguage = "en-GB"
	SpeakRequestLanguageEnGBWLS SpeakRequestLanguage = "en-GB-WLS"
	SpeakRequestLanguageEnIN    SpeakRequestLanguage = "en-IN"
	SpeakRequestLanguageEnUS    SpeakRequestLanguage = "en-US"
	SpeakRequestLanguageEsES    SpeakRequestLanguage = "es-ES"
	SpeakRequestLanguageEsMX    SpeakRequestLanguage = "es-MX"
	SpeakRequestLanguageEsUS    SpeakRequestLanguage = "es-US"
	SpeakRequestLanguageFrCA    SpeakRequestLanguage = "fr-CA"
	SpeakRequestLanguageFrFR    SpeakRequestLanguage = "fr-FR"
	SpeakRequestLanguageHiIN    SpeakRequestLanguage = "hi-IN"
	SpeakRequestLanguageIsIS    SpeakRequestLanguage = "is-IS"
	SpeakRequestLanguageItIT    SpeakRequestLanguage = "it-IT"
	SpeakRequestLanguageJaJP    SpeakRequestLanguage = "ja-JP"
	SpeakRequestLanguageKoKR    SpeakRequestLanguage = "ko-KR"
	SpeakRequestLanguageNbNO    SpeakRequestLanguage = "nb-NO"
	SpeakRequestLanguageNlNL    SpeakRequestLanguage = "nl-NL"
	SpeakRequestLanguagePlPL    SpeakRequestLanguage = "pl-PL"
	SpeakRequestLanguagePtBR    SpeakRequestLanguage = "pt-BR"
	SpeakRequestLanguagePtPT    SpeakRequestLanguage = "pt-PT"
	SpeakRequestLanguageRoRO    SpeakRequestLanguage = "ro-RO"
	SpeakRequestLanguageRuRU    SpeakRequestLanguage = "ru-RU"
	SpeakRequestLanguageSvSE    SpeakRequestLanguage = "sv-SE"
	SpeakRequestLanguageTrTR    SpeakRequestLanguage = "tr-TR"
)

func (SpeakRequestLanguage) AllValues

AllValues returns all SpeakRequestLanguage values.

func (*SpeakRequestLanguage) Decode

func (s *SpeakRequestLanguage) Decode(d *jx.Decoder) error

Decode decodes SpeakRequestLanguage from json.

func (SpeakRequestLanguage) Encode

func (s SpeakRequestLanguage) Encode(e *jx.Encoder)

Encode encodes SpeakRequestLanguage as json.

func (SpeakRequestLanguage) MarshalJSON

func (s SpeakRequestLanguage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SpeakRequestLanguage) MarshalText

func (s SpeakRequestLanguage) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SpeakRequestLanguage) UnmarshalJSON

func (s *SpeakRequestLanguage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpeakRequestLanguage) UnmarshalText

func (s *SpeakRequestLanguage) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SpeakRequestLanguage) Validate

func (s SpeakRequestLanguage) Validate() error

type SpeakRequestPayloadType

type SpeakRequestPayloadType string

The type of the provided payload. The payload can either be plain text, or Speech Synthesis Markup Language (SSML).

const (
	SpeakRequestPayloadTypeText SpeakRequestPayloadType = "text"
	SpeakRequestPayloadTypeSsml SpeakRequestPayloadType = "ssml"
)

func (SpeakRequestPayloadType) AllValues

AllValues returns all SpeakRequestPayloadType values.

func (*SpeakRequestPayloadType) Decode

func (s *SpeakRequestPayloadType) Decode(d *jx.Decoder) error

Decode decodes SpeakRequestPayloadType from json.

func (SpeakRequestPayloadType) Encode

func (s SpeakRequestPayloadType) Encode(e *jx.Encoder)

Encode encodes SpeakRequestPayloadType as json.

func (SpeakRequestPayloadType) MarshalJSON

func (s SpeakRequestPayloadType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SpeakRequestPayloadType) MarshalText

func (s SpeakRequestPayloadType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SpeakRequestPayloadType) UnmarshalJSON

func (s *SpeakRequestPayloadType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpeakRequestPayloadType) UnmarshalText

func (s *SpeakRequestPayloadType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SpeakRequestPayloadType) Validate

func (s SpeakRequestPayloadType) Validate() error

type SpeakRequestServiceLevel

type SpeakRequestServiceLevel string

This parameter impacts speech quality, language options and payload types. When using `basic`, only the `en-US` language and payload type `text` are allowed.

const (
	SpeakRequestServiceLevelBasic   SpeakRequestServiceLevel = "basic"
	SpeakRequestServiceLevelPremium SpeakRequestServiceLevel = "premium"
)

func (SpeakRequestServiceLevel) AllValues

AllValues returns all SpeakRequestServiceLevel values.

func (*SpeakRequestServiceLevel) Decode

func (s *SpeakRequestServiceLevel) Decode(d *jx.Decoder) error

Decode decodes SpeakRequestServiceLevel from json.

func (SpeakRequestServiceLevel) Encode

func (s SpeakRequestServiceLevel) Encode(e *jx.Encoder)

Encode encodes SpeakRequestServiceLevel as json.

func (SpeakRequestServiceLevel) MarshalJSON

func (s SpeakRequestServiceLevel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SpeakRequestServiceLevel) MarshalText

func (s SpeakRequestServiceLevel) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SpeakRequestServiceLevel) UnmarshalJSON

func (s *SpeakRequestServiceLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpeakRequestServiceLevel) UnmarshalText

func (s *SpeakRequestServiceLevel) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SpeakRequestServiceLevel) Validate

func (s SpeakRequestServiceLevel) Validate() error

type SpeakRequestVoice

type SpeakRequestVoice string

The gender of the voice used to speak back the text or the specific Amazon Polly voice to be used in the form of `Polly.<voice>`, e.g. `Polly.Brian`. All standard Amazon Polly voices are supported.

const (
	SpeakRequestVoiceMale   SpeakRequestVoice = "male"
	SpeakRequestVoiceFemale SpeakRequestVoice = "female"
)

func (SpeakRequestVoice) AllValues

func (SpeakRequestVoice) AllValues() []SpeakRequestVoice

AllValues returns all SpeakRequestVoice values.

func (*SpeakRequestVoice) Decode

func (s *SpeakRequestVoice) Decode(d *jx.Decoder) error

Decode decodes SpeakRequestVoice from json.

func (SpeakRequestVoice) Encode

func (s SpeakRequestVoice) Encode(e *jx.Encoder)

Encode encodes SpeakRequestVoice as json.

func (SpeakRequestVoice) MarshalJSON

func (s SpeakRequestVoice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SpeakRequestVoice) MarshalText

func (s SpeakRequestVoice) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SpeakRequestVoice) UnmarshalJSON

func (s *SpeakRequestVoice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SpeakRequestVoice) UnmarshalText

func (s *SpeakRequestVoice) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SpeakRequestVoice) Validate

func (s SpeakRequestVoice) Validate() error

type StartCallForkParams

type StartCallForkParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

StartCallForkParams is parameters of StartCallFork operation.

type StartCallForkRes

type StartCallForkRes interface {
	// contains filtered or unexported methods
}

type StartCallPlaybackParams

type StartCallPlaybackParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

StartCallPlaybackParams is parameters of StartCallPlayback operation.

type StartCallPlaybackRes

type StartCallPlaybackRes interface {
	// contains filtered or unexported methods
}

type StartCallRecordParams

type StartCallRecordParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

StartCallRecordParams is parameters of StartCallRecord operation.

type StartCallRecordRes

type StartCallRecordRes interface {
	// contains filtered or unexported methods
}

type StartCallStreamingParams

type StartCallStreamingParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

StartCallStreamingParams is parameters of StartCallStreaming operation.

type StartCallStreamingRes

type StartCallStreamingRes interface {
	// contains filtered or unexported methods
}

type StartCallTranscriptionParams

type StartCallTranscriptionParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

StartCallTranscriptionParams is parameters of StartCallTranscription operation.

type StartCallTranscriptionRes

type StartCallTranscriptionRes interface {
	// contains filtered or unexported methods
}

type StartForkingRequest

type StartForkingRequest struct {
	// The network target, <udp:ip_address:port>, where the call's RTP media packets should be forwarded.
	// Both incoming and outgoing media packets will be delivered to the specified target, and
	// information about the stream will be included in the encapsulation protocol header, including the
	// direction (0 = inbound; 1 = outbound), leg (0 = A-leg; 1 = B-leg), and call_leg_id.
	Target OptString `json:"target"`
	// The network target, <udp:ip_address:port>, where the call's incoming RTP media packets should be
	// forwarded.
	Rx OptString `json:"rx"`
	// Optionally specify a media type to stream. If `decrypted` selected, Telnyx will decrypt incoming
	// SIP media before forking to the target. `rx` and `tx` are required fields if `decrypted` selected.
	StreamType OptStartForkingRequestStreamType `json:"stream_type"`
	// The network target, <udp:ip_address:port>, where the call's outgoing RTP media packets should be
	// forwarded.
	Tx OptString `json:"tx"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/StartForkingRequest

func (*StartForkingRequest) Decode

func (s *StartForkingRequest) Decode(d *jx.Decoder) error

Decode decodes StartForkingRequest from json.

func (*StartForkingRequest) Encode

func (s *StartForkingRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StartForkingRequest) GetClientState

func (s *StartForkingRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*StartForkingRequest) GetCommandID

func (s *StartForkingRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*StartForkingRequest) GetRx

func (s *StartForkingRequest) GetRx() OptString

GetRx returns the value of Rx.

func (*StartForkingRequest) GetStreamType

GetStreamType returns the value of StreamType.

func (*StartForkingRequest) GetTarget

func (s *StartForkingRequest) GetTarget() OptString

GetTarget returns the value of Target.

func (*StartForkingRequest) GetTx

func (s *StartForkingRequest) GetTx() OptString

GetTx returns the value of Tx.

func (*StartForkingRequest) MarshalJSON

func (s *StartForkingRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StartForkingRequest) SetClientState

func (s *StartForkingRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*StartForkingRequest) SetCommandID

func (s *StartForkingRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*StartForkingRequest) SetRx

func (s *StartForkingRequest) SetRx(val OptString)

SetRx sets the value of Rx.

func (*StartForkingRequest) SetStreamType

SetStreamType sets the value of StreamType.

func (*StartForkingRequest) SetTarget

func (s *StartForkingRequest) SetTarget(val OptString)

SetTarget sets the value of Target.

func (*StartForkingRequest) SetTx

func (s *StartForkingRequest) SetTx(val OptString)

SetTx sets the value of Tx.

func (*StartForkingRequest) UnmarshalJSON

func (s *StartForkingRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StartForkingRequest) Validate

func (s *StartForkingRequest) Validate() error

type StartForkingRequestStreamType

type StartForkingRequestStreamType string

Optionally specify a media type to stream. If `decrypted` selected, Telnyx will decrypt incoming SIP media before forking to the target. `rx` and `tx` are required fields if `decrypted` selected.

const (
	StartForkingRequestStreamTypeRaw       StartForkingRequestStreamType = "raw"
	StartForkingRequestStreamTypeDecrypted StartForkingRequestStreamType = "decrypted"
)

func (StartForkingRequestStreamType) AllValues

AllValues returns all StartForkingRequestStreamType values.

func (*StartForkingRequestStreamType) Decode

Decode decodes StartForkingRequestStreamType from json.

func (StartForkingRequestStreamType) Encode

Encode encodes StartForkingRequestStreamType as json.

func (StartForkingRequestStreamType) MarshalJSON

func (s StartForkingRequestStreamType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (StartForkingRequestStreamType) MarshalText

func (s StartForkingRequestStreamType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*StartForkingRequestStreamType) UnmarshalJSON

func (s *StartForkingRequestStreamType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StartForkingRequestStreamType) UnmarshalText

func (s *StartForkingRequestStreamType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (StartForkingRequestStreamType) Validate

func (s StartForkingRequestStreamType) Validate() error

type StartRecordingRequest

type StartRecordingRequest struct {
	// The audio file format used when storing the call recording. Can be either `mp3` or `wav`.
	Format StartRecordingRequestFormat `json:"format"`
	// When `dual`, final audio file will be stereo recorded with the first leg on channel A, and the
	// rest on channel B.
	Channels StartRecordingRequestChannels `json:"channels"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
	// If enabled, a beep sound will be played at the start of a recording.
	PlayBeep OptBool `json:"play_beep"`
	// Defines the maximum length for the recording in seconds. The minimum value is 0. The maximum value
	// is 14400. The default value is 0 (infinite).
	MaxLength OptInt32 `json:"max_length"`
	// The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected.
	//  The timer only starts when the speech is detected. Please note that call transcription is used to
	// detect silence and the related charge will be applied. The minimum value is 0. The default value
	// is 0 (infinite).
	TimeoutSecs OptInt32 `json:"timeout_secs"`
	// The audio track to be recorded. Can be either `both`, `inbound` or `outbound`. If only single
	// track is specified (`inbound`, `outbound`), `channels` configuration is ignored and it will be
	// recorded as mono (single channel).
	RecordingTrack OptStartRecordingRequestRecordingTrack `json:"recording_track"`
	// When set to `trim-silence`, silence will be removed from the beginning and end of the recording.
	Trim OptStartRecordingRequestTrim `json:"trim"`
	// The custom recording file name to be used instead of the default `call_leg_id`. Telnyx will still
	// add a Unix timestamp suffix.
	CustomFileName OptString `json:"custom_file_name"`
}

Ref: #/components/schemas/StartRecordingRequest

func (*StartRecordingRequest) Decode

func (s *StartRecordingRequest) Decode(d *jx.Decoder) error

Decode decodes StartRecordingRequest from json.

func (*StartRecordingRequest) Encode

func (s *StartRecordingRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StartRecordingRequest) GetChannels

GetChannels returns the value of Channels.

func (*StartRecordingRequest) GetClientState

func (s *StartRecordingRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*StartRecordingRequest) GetCommandID

func (s *StartRecordingRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*StartRecordingRequest) GetCustomFileName

func (s *StartRecordingRequest) GetCustomFileName() OptString

GetCustomFileName returns the value of CustomFileName.

func (*StartRecordingRequest) GetFormat

GetFormat returns the value of Format.

func (*StartRecordingRequest) GetMaxLength

func (s *StartRecordingRequest) GetMaxLength() OptInt32

GetMaxLength returns the value of MaxLength.

func (*StartRecordingRequest) GetPlayBeep

func (s *StartRecordingRequest) GetPlayBeep() OptBool

GetPlayBeep returns the value of PlayBeep.

func (*StartRecordingRequest) GetRecordingTrack

GetRecordingTrack returns the value of RecordingTrack.

func (*StartRecordingRequest) GetTimeoutSecs

func (s *StartRecordingRequest) GetTimeoutSecs() OptInt32

GetTimeoutSecs returns the value of TimeoutSecs.

func (*StartRecordingRequest) GetTrim

GetTrim returns the value of Trim.

func (*StartRecordingRequest) MarshalJSON

func (s *StartRecordingRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StartRecordingRequest) SetChannels

SetChannels sets the value of Channels.

func (*StartRecordingRequest) SetClientState

func (s *StartRecordingRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*StartRecordingRequest) SetCommandID

func (s *StartRecordingRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*StartRecordingRequest) SetCustomFileName

func (s *StartRecordingRequest) SetCustomFileName(val OptString)

SetCustomFileName sets the value of CustomFileName.

func (*StartRecordingRequest) SetFormat

SetFormat sets the value of Format.

func (*StartRecordingRequest) SetMaxLength

func (s *StartRecordingRequest) SetMaxLength(val OptInt32)

SetMaxLength sets the value of MaxLength.

func (*StartRecordingRequest) SetPlayBeep

func (s *StartRecordingRequest) SetPlayBeep(val OptBool)

SetPlayBeep sets the value of PlayBeep.

func (*StartRecordingRequest) SetRecordingTrack

SetRecordingTrack sets the value of RecordingTrack.

func (*StartRecordingRequest) SetTimeoutSecs

func (s *StartRecordingRequest) SetTimeoutSecs(val OptInt32)

SetTimeoutSecs sets the value of TimeoutSecs.

func (*StartRecordingRequest) SetTrim

SetTrim sets the value of Trim.

func (*StartRecordingRequest) UnmarshalJSON

func (s *StartRecordingRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StartRecordingRequest) Validate

func (s *StartRecordingRequest) Validate() error

type StartRecordingRequestChannels

type StartRecordingRequestChannels string

When `dual`, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B.

const (
	StartRecordingRequestChannelsSingle StartRecordingRequestChannels = "single"
	StartRecordingRequestChannelsDual   StartRecordingRequestChannels = "dual"
)

func (StartRecordingRequestChannels) AllValues

AllValues returns all StartRecordingRequestChannels values.

func (*StartRecordingRequestChannels) Decode

Decode decodes StartRecordingRequestChannels from json.

func (StartRecordingRequestChannels) Encode

Encode encodes StartRecordingRequestChannels as json.

func (StartRecordingRequestChannels) MarshalJSON

func (s StartRecordingRequestChannels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (StartRecordingRequestChannels) MarshalText

func (s StartRecordingRequestChannels) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*StartRecordingRequestChannels) UnmarshalJSON

func (s *StartRecordingRequestChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StartRecordingRequestChannels) UnmarshalText

func (s *StartRecordingRequestChannels) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (StartRecordingRequestChannels) Validate

func (s StartRecordingRequestChannels) Validate() error

type StartRecordingRequestFormat

type StartRecordingRequestFormat string

The audio file format used when storing the call recording. Can be either `mp3` or `wav`.

const (
	StartRecordingRequestFormatWav StartRecordingRequestFormat = "wav"
	StartRecordingRequestFormatMp3 StartRecordingRequestFormat = "mp3"
)

func (StartRecordingRequestFormat) AllValues

AllValues returns all StartRecordingRequestFormat values.

func (*StartRecordingRequestFormat) Decode

Decode decodes StartRecordingRequestFormat from json.

func (StartRecordingRequestFormat) Encode

func (s StartRecordingRequestFormat) Encode(e *jx.Encoder)

Encode encodes StartRecordingRequestFormat as json.

func (StartRecordingRequestFormat) MarshalJSON

func (s StartRecordingRequestFormat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (StartRecordingRequestFormat) MarshalText

func (s StartRecordingRequestFormat) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*StartRecordingRequestFormat) UnmarshalJSON

func (s *StartRecordingRequestFormat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StartRecordingRequestFormat) UnmarshalText

func (s *StartRecordingRequestFormat) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (StartRecordingRequestFormat) Validate

func (s StartRecordingRequestFormat) Validate() error

type StartRecordingRequestRecordingTrack

type StartRecordingRequestRecordingTrack string

The audio track to be recorded. Can be either `both`, `inbound` or `outbound`. If only single track is specified (`inbound`, `outbound`), `channels` configuration is ignored and it will be recorded as mono (single channel).

const (
	StartRecordingRequestRecordingTrackBoth     StartRecordingRequestRecordingTrack = "both"
	StartRecordingRequestRecordingTrackInbound  StartRecordingRequestRecordingTrack = "inbound"
	StartRecordingRequestRecordingTrackOutbound StartRecordingRequestRecordingTrack = "outbound"
)

func (StartRecordingRequestRecordingTrack) AllValues

AllValues returns all StartRecordingRequestRecordingTrack values.

func (*StartRecordingRequestRecordingTrack) Decode

Decode decodes StartRecordingRequestRecordingTrack from json.

func (StartRecordingRequestRecordingTrack) Encode

Encode encodes StartRecordingRequestRecordingTrack as json.

func (StartRecordingRequestRecordingTrack) MarshalJSON

func (s StartRecordingRequestRecordingTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (StartRecordingRequestRecordingTrack) MarshalText

func (s StartRecordingRequestRecordingTrack) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*StartRecordingRequestRecordingTrack) UnmarshalJSON

func (s *StartRecordingRequestRecordingTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StartRecordingRequestRecordingTrack) UnmarshalText

func (s *StartRecordingRequestRecordingTrack) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (StartRecordingRequestRecordingTrack) Validate

type StartRecordingRequestTrim

type StartRecordingRequestTrim string

When set to `trim-silence`, silence will be removed from the beginning and end of the recording.

const (
	StartRecordingRequestTrimTrimSilence StartRecordingRequestTrim = "trim-silence"
)

func (StartRecordingRequestTrim) AllValues

AllValues returns all StartRecordingRequestTrim values.

func (*StartRecordingRequestTrim) Decode

func (s *StartRecordingRequestTrim) Decode(d *jx.Decoder) error

Decode decodes StartRecordingRequestTrim from json.

func (StartRecordingRequestTrim) Encode

func (s StartRecordingRequestTrim) Encode(e *jx.Encoder)

Encode encodes StartRecordingRequestTrim as json.

func (StartRecordingRequestTrim) MarshalJSON

func (s StartRecordingRequestTrim) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (StartRecordingRequestTrim) MarshalText

func (s StartRecordingRequestTrim) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*StartRecordingRequestTrim) UnmarshalJSON

func (s *StartRecordingRequestTrim) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StartRecordingRequestTrim) UnmarshalText

func (s *StartRecordingRequestTrim) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (StartRecordingRequestTrim) Validate

func (s StartRecordingRequestTrim) Validate() error

type StartStreamingRequest

type StartStreamingRequest struct {
	// The destination WebSocket address where the stream is going to be delivered.
	StreamURL OptString `json:"stream_url"`
	// Specifies which track should be streamed.
	StreamTrack OptStartStreamingRequestStreamTrack `json:"stream_track"`
	// Enables Dialogflow for the current call. The default value is false.
	EnableDialogflow OptBool             `json:"enable_dialogflow"`
	DialogflowConfig OptDialogflowConfig `json:"dialogflow_config"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/StartStreamingRequest

func (*StartStreamingRequest) Decode

func (s *StartStreamingRequest) Decode(d *jx.Decoder) error

Decode decodes StartStreamingRequest from json.

func (*StartStreamingRequest) Encode

func (s *StartStreamingRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StartStreamingRequest) GetClientState

func (s *StartStreamingRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*StartStreamingRequest) GetCommandID

func (s *StartStreamingRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*StartStreamingRequest) GetDialogflowConfig

func (s *StartStreamingRequest) GetDialogflowConfig() OptDialogflowConfig

GetDialogflowConfig returns the value of DialogflowConfig.

func (*StartStreamingRequest) GetEnableDialogflow

func (s *StartStreamingRequest) GetEnableDialogflow() OptBool

GetEnableDialogflow returns the value of EnableDialogflow.

func (*StartStreamingRequest) GetStreamTrack

GetStreamTrack returns the value of StreamTrack.

func (*StartStreamingRequest) GetStreamURL

func (s *StartStreamingRequest) GetStreamURL() OptString

GetStreamURL returns the value of StreamURL.

func (*StartStreamingRequest) MarshalJSON

func (s *StartStreamingRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StartStreamingRequest) SetClientState

func (s *StartStreamingRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*StartStreamingRequest) SetCommandID

func (s *StartStreamingRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*StartStreamingRequest) SetDialogflowConfig

func (s *StartStreamingRequest) SetDialogflowConfig(val OptDialogflowConfig)

SetDialogflowConfig sets the value of DialogflowConfig.

func (*StartStreamingRequest) SetEnableDialogflow

func (s *StartStreamingRequest) SetEnableDialogflow(val OptBool)

SetEnableDialogflow sets the value of EnableDialogflow.

func (*StartStreamingRequest) SetStreamTrack

SetStreamTrack sets the value of StreamTrack.

func (*StartStreamingRequest) SetStreamURL

func (s *StartStreamingRequest) SetStreamURL(val OptString)

SetStreamURL sets the value of StreamURL.

func (*StartStreamingRequest) UnmarshalJSON

func (s *StartStreamingRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StartStreamingRequest) Validate

func (s *StartStreamingRequest) Validate() error

type StartStreamingRequestStreamTrack

type StartStreamingRequestStreamTrack string

Specifies which track should be streamed.

const (
	StartStreamingRequestStreamTrackInboundTrack  StartStreamingRequestStreamTrack = "inbound_track"
	StartStreamingRequestStreamTrackOutboundTrack StartStreamingRequestStreamTrack = "outbound_track"
	StartStreamingRequestStreamTrackBothTracks    StartStreamingRequestStreamTrack = "both_tracks"
)

func (StartStreamingRequestStreamTrack) AllValues

AllValues returns all StartStreamingRequestStreamTrack values.

func (*StartStreamingRequestStreamTrack) Decode

Decode decodes StartStreamingRequestStreamTrack from json.

func (StartStreamingRequestStreamTrack) Encode

Encode encodes StartStreamingRequestStreamTrack as json.

func (StartStreamingRequestStreamTrack) MarshalJSON

func (s StartStreamingRequestStreamTrack) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (StartStreamingRequestStreamTrack) MarshalText

func (s StartStreamingRequestStreamTrack) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*StartStreamingRequestStreamTrack) UnmarshalJSON

func (s *StartStreamingRequestStreamTrack) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StartStreamingRequestStreamTrack) UnmarshalText

func (s *StartStreamingRequestStreamTrack) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (StartStreamingRequestStreamTrack) Validate

type StartTeXMLCallRecordingParams

type StartTeXMLCallRecordingParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The CallSid that identifies the call to update.
	CallSid string
}

StartTeXMLCallRecordingParams is parameters of StartTeXMLCallRecording operation.

type StartTeXMLCallRecordingRes

type StartTeXMLCallRecordingRes interface {
	// contains filtered or unexported methods
}

type Status

type Status string
const (
	StatusCanceled  Status = "canceled"
	StatusCompleted Status = "completed"
	StatusFailed    Status = "failed"
	StatusBusy      Status = "busy"
	StatusNoAnswer  Status = "no-answer"
)

func (Status) AllValues

func (Status) AllValues() []Status

AllValues returns all Status values.

func (Status) MarshalText

func (s Status) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*Status) UnmarshalText

func (s *Status) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (Status) Validate

func (s Status) Validate() error

type StopCallForkParams

type StopCallForkParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

StopCallForkParams is parameters of StopCallFork operation.

type StopCallForkRes

type StopCallForkRes interface {
	// contains filtered or unexported methods
}

type StopCallGatherParams

type StopCallGatherParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

StopCallGatherParams is parameters of StopCallGather operation.

type StopCallGatherRes

type StopCallGatherRes interface {
	// contains filtered or unexported methods
}

type StopCallPlaybackParams

type StopCallPlaybackParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

StopCallPlaybackParams is parameters of StopCallPlayback operation.

type StopCallPlaybackRes

type StopCallPlaybackRes interface {
	// contains filtered or unexported methods
}

type StopCallRecordingParams

type StopCallRecordingParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

StopCallRecordingParams is parameters of StopCallRecording operation.

type StopCallRecordingRes

type StopCallRecordingRes interface {
	// contains filtered or unexported methods
}

type StopCallStreamingParams

type StopCallStreamingParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

StopCallStreamingParams is parameters of StopCallStreaming operation.

type StopCallStreamingRes

type StopCallStreamingRes interface {
	// contains filtered or unexported methods
}

type StopCallTranscriptionParams

type StopCallTranscriptionParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

StopCallTranscriptionParams is parameters of StopCallTranscription operation.

type StopCallTranscriptionRes

type StopCallTranscriptionRes interface {
	// contains filtered or unexported methods
}

type StopForkingRequest

type StopForkingRequest struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
	// Optionally specify a `stream_type`. This should match the `stream_type` that was used in
	// `fork_start` command to properly stop the fork.
	StreamType OptStopForkingRequestStreamType `json:"stream_type"`
}

Ref: #/components/schemas/StopForkingRequest

func (*StopForkingRequest) Decode

func (s *StopForkingRequest) Decode(d *jx.Decoder) error

Decode decodes StopForkingRequest from json.

func (*StopForkingRequest) Encode

func (s *StopForkingRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StopForkingRequest) GetClientState

func (s *StopForkingRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*StopForkingRequest) GetCommandID

func (s *StopForkingRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*StopForkingRequest) GetStreamType

GetStreamType returns the value of StreamType.

func (*StopForkingRequest) MarshalJSON

func (s *StopForkingRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StopForkingRequest) SetClientState

func (s *StopForkingRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*StopForkingRequest) SetCommandID

func (s *StopForkingRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*StopForkingRequest) SetStreamType

SetStreamType sets the value of StreamType.

func (*StopForkingRequest) UnmarshalJSON

func (s *StopForkingRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StopForkingRequest) Validate

func (s *StopForkingRequest) Validate() error

type StopForkingRequestStreamType

type StopForkingRequestStreamType string

Optionally specify a `stream_type`. This should match the `stream_type` that was used in `fork_start` command to properly stop the fork.

const (
	StopForkingRequestStreamTypeRaw       StopForkingRequestStreamType = "raw"
	StopForkingRequestStreamTypeDecrypted StopForkingRequestStreamType = "decrypted"
)

func (StopForkingRequestStreamType) AllValues

AllValues returns all StopForkingRequestStreamType values.

func (*StopForkingRequestStreamType) Decode

Decode decodes StopForkingRequestStreamType from json.

func (StopForkingRequestStreamType) Encode

Encode encodes StopForkingRequestStreamType as json.

func (StopForkingRequestStreamType) MarshalJSON

func (s StopForkingRequestStreamType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (StopForkingRequestStreamType) MarshalText

func (s StopForkingRequestStreamType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*StopForkingRequestStreamType) UnmarshalJSON

func (s *StopForkingRequestStreamType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StopForkingRequestStreamType) UnmarshalText

func (s *StopForkingRequestStreamType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (StopForkingRequestStreamType) Validate

func (s StopForkingRequestStreamType) Validate() error

type StopGatherRequest

type StopGatherRequest struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/StopGatherRequest

func (*StopGatherRequest) Decode

func (s *StopGatherRequest) Decode(d *jx.Decoder) error

Decode decodes StopGatherRequest from json.

func (*StopGatherRequest) Encode

func (s *StopGatherRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StopGatherRequest) GetClientState

func (s *StopGatherRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*StopGatherRequest) GetCommandID

func (s *StopGatherRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*StopGatherRequest) MarshalJSON

func (s *StopGatherRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StopGatherRequest) SetClientState

func (s *StopGatherRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*StopGatherRequest) SetCommandID

func (s *StopGatherRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*StopGatherRequest) UnmarshalJSON

func (s *StopGatherRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StopRecordingRequest

type StopRecordingRequest struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/StopRecordingRequest

func (*StopRecordingRequest) Decode

func (s *StopRecordingRequest) Decode(d *jx.Decoder) error

Decode decodes StopRecordingRequest from json.

func (*StopRecordingRequest) Encode

func (s *StopRecordingRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StopRecordingRequest) GetClientState

func (s *StopRecordingRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*StopRecordingRequest) GetCommandID

func (s *StopRecordingRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*StopRecordingRequest) MarshalJSON

func (s *StopRecordingRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StopRecordingRequest) SetClientState

func (s *StopRecordingRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*StopRecordingRequest) SetCommandID

func (s *StopRecordingRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*StopRecordingRequest) UnmarshalJSON

func (s *StopRecordingRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StopStreamingRequest

type StopStreamingRequest struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/StopStreamingRequest

func (*StopStreamingRequest) Decode

func (s *StopStreamingRequest) Decode(d *jx.Decoder) error

Decode decodes StopStreamingRequest from json.

func (*StopStreamingRequest) Encode

func (s *StopStreamingRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StopStreamingRequest) GetClientState

func (s *StopStreamingRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*StopStreamingRequest) GetCommandID

func (s *StopStreamingRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*StopStreamingRequest) MarshalJSON

func (s *StopStreamingRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StopStreamingRequest) SetClientState

func (s *StopStreamingRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*StopStreamingRequest) SetCommandID

func (s *StopStreamingRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*StopStreamingRequest) UnmarshalJSON

func (s *StopStreamingRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SubNumberOrderRegulatoryRequirementWithValue

type SubNumberOrderRegulatoryRequirementWithValue struct {
	RecordType OptString `json:"record_type"`
	// Unique id for a requirement.
	RequirementID OptUUID                                                  `json:"requirement_id"`
	FieldType     OptSubNumberOrderRegulatoryRequirementWithValueFieldType `json:"field_type"`
	// The value of the requirement, this could be an id to a resource or a string value.
	FieldValue OptString `json:"field_value"`
}

Ref: #/components/schemas/SubNumberOrderRegulatoryRequirementWithValue

func (*SubNumberOrderRegulatoryRequirementWithValue) Decode

Decode decodes SubNumberOrderRegulatoryRequirementWithValue from json.

func (*SubNumberOrderRegulatoryRequirementWithValue) Encode

Encode implements json.Marshaler.

func (*SubNumberOrderRegulatoryRequirementWithValue) GetFieldType

GetFieldType returns the value of FieldType.

func (*SubNumberOrderRegulatoryRequirementWithValue) GetFieldValue

GetFieldValue returns the value of FieldValue.

func (*SubNumberOrderRegulatoryRequirementWithValue) GetRecordType

GetRecordType returns the value of RecordType.

func (*SubNumberOrderRegulatoryRequirementWithValue) GetRequirementID

GetRequirementID returns the value of RequirementID.

func (*SubNumberOrderRegulatoryRequirementWithValue) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*SubNumberOrderRegulatoryRequirementWithValue) SetFieldType

SetFieldType sets the value of FieldType.

func (*SubNumberOrderRegulatoryRequirementWithValue) SetFieldValue

SetFieldValue sets the value of FieldValue.

func (*SubNumberOrderRegulatoryRequirementWithValue) SetRecordType

SetRecordType sets the value of RecordType.

func (*SubNumberOrderRegulatoryRequirementWithValue) SetRequirementID

func (s *SubNumberOrderRegulatoryRequirementWithValue) SetRequirementID(val OptUUID)

SetRequirementID sets the value of RequirementID.

func (*SubNumberOrderRegulatoryRequirementWithValue) UnmarshalJSON

func (s *SubNumberOrderRegulatoryRequirementWithValue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SubNumberOrderRegulatoryRequirementWithValue) Validate

type SubNumberOrderRegulatoryRequirementWithValueFieldType

type SubNumberOrderRegulatoryRequirementWithValueFieldType string
const (
	SubNumberOrderRegulatoryRequirementWithValueFieldTypeTextual  SubNumberOrderRegulatoryRequirementWithValueFieldType = "textual"
	SubNumberOrderRegulatoryRequirementWithValueFieldTypeDatetime SubNumberOrderRegulatoryRequirementWithValueFieldType = "datetime"
	SubNumberOrderRegulatoryRequirementWithValueFieldTypeAddress  SubNumberOrderRegulatoryRequirementWithValueFieldType = "address"
	SubNumberOrderRegulatoryRequirementWithValueFieldTypeDocument SubNumberOrderRegulatoryRequirementWithValueFieldType = "document"
)

func (SubNumberOrderRegulatoryRequirementWithValueFieldType) AllValues

AllValues returns all SubNumberOrderRegulatoryRequirementWithValueFieldType values.

func (*SubNumberOrderRegulatoryRequirementWithValueFieldType) Decode

Decode decodes SubNumberOrderRegulatoryRequirementWithValueFieldType from json.

func (SubNumberOrderRegulatoryRequirementWithValueFieldType) Encode

Encode encodes SubNumberOrderRegulatoryRequirementWithValueFieldType as json.

func (SubNumberOrderRegulatoryRequirementWithValueFieldType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (SubNumberOrderRegulatoryRequirementWithValueFieldType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*SubNumberOrderRegulatoryRequirementWithValueFieldType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SubNumberOrderRegulatoryRequirementWithValueFieldType) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (SubNumberOrderRegulatoryRequirementWithValueFieldType) Validate

type SubRequestByPortingOrder

type SubRequestByPortingOrder struct {
	Data OptGetSubRequestByPortingOrder `json:"data"`
}

func (*SubRequestByPortingOrder) Decode

func (s *SubRequestByPortingOrder) Decode(d *jx.Decoder) error

Decode decodes SubRequestByPortingOrder from json.

func (*SubRequestByPortingOrder) Encode

func (s *SubRequestByPortingOrder) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SubRequestByPortingOrder) GetData

GetData returns the value of Data.

func (*SubRequestByPortingOrder) MarshalJSON

func (s *SubRequestByPortingOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SubRequestByPortingOrder) SetData

SetData sets the value of Data.

func (*SubRequestByPortingOrder) UnmarshalJSON

func (s *SubRequestByPortingOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TelephonyCredential

type TelephonyCredential struct {
	// Identifies the resource.
	ID OptString `json:"id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	Name       OptString `json:"name"`
	// Identifies the resource this credential is associated with.
	ResourceID OptString `json:"resource_id"`
	// Defaults to false.
	Expired OptBool `json:"expired"`
	// The randomly generated SIP username for the credential.
	SipUsername OptString `json:"sip_username"`
	// The randomly generated SIP password for the credential.
	SipPassword OptString `json:"sip_password"`
	// ISO-8601 formatted date indicating when the resource was created.
	CreatedAt OptString `json:"created_at"`
	// ISO-8601 formatted date indicating when the resource was updated.
	UpdatedAt OptString `json:"updated_at"`
	// ISO-8601 formatted date indicating when the resource will expire.
	ExpiresAt OptString `json:"expires_at"`
}

Ref: #/components/schemas/TelephonyCredential

func (*TelephonyCredential) Decode

func (s *TelephonyCredential) Decode(d *jx.Decoder) error

Decode decodes TelephonyCredential from json.

func (*TelephonyCredential) Encode

func (s *TelephonyCredential) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TelephonyCredential) GetCreatedAt

func (s *TelephonyCredential) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*TelephonyCredential) GetExpired

func (s *TelephonyCredential) GetExpired() OptBool

GetExpired returns the value of Expired.

func (*TelephonyCredential) GetExpiresAt

func (s *TelephonyCredential) GetExpiresAt() OptString

GetExpiresAt returns the value of ExpiresAt.

func (*TelephonyCredential) GetID

func (s *TelephonyCredential) GetID() OptString

GetID returns the value of ID.

func (*TelephonyCredential) GetName

func (s *TelephonyCredential) GetName() OptString

GetName returns the value of Name.

func (*TelephonyCredential) GetRecordType

func (s *TelephonyCredential) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*TelephonyCredential) GetResourceID

func (s *TelephonyCredential) GetResourceID() OptString

GetResourceID returns the value of ResourceID.

func (*TelephonyCredential) GetSipPassword

func (s *TelephonyCredential) GetSipPassword() OptString

GetSipPassword returns the value of SipPassword.

func (*TelephonyCredential) GetSipUsername

func (s *TelephonyCredential) GetSipUsername() OptString

GetSipUsername returns the value of SipUsername.

func (*TelephonyCredential) GetUpdatedAt

func (s *TelephonyCredential) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*TelephonyCredential) MarshalJSON

func (s *TelephonyCredential) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TelephonyCredential) SetCreatedAt

func (s *TelephonyCredential) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*TelephonyCredential) SetExpired

func (s *TelephonyCredential) SetExpired(val OptBool)

SetExpired sets the value of Expired.

func (*TelephonyCredential) SetExpiresAt

func (s *TelephonyCredential) SetExpiresAt(val OptString)

SetExpiresAt sets the value of ExpiresAt.

func (*TelephonyCredential) SetID

func (s *TelephonyCredential) SetID(val OptString)

SetID sets the value of ID.

func (*TelephonyCredential) SetName

func (s *TelephonyCredential) SetName(val OptString)

SetName sets the value of Name.

func (*TelephonyCredential) SetRecordType

func (s *TelephonyCredential) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*TelephonyCredential) SetResourceID

func (s *TelephonyCredential) SetResourceID(val OptString)

SetResourceID sets the value of ResourceID.

func (*TelephonyCredential) SetSipPassword

func (s *TelephonyCredential) SetSipPassword(val OptString)

SetSipPassword sets the value of SipPassword.

func (*TelephonyCredential) SetSipUsername

func (s *TelephonyCredential) SetSipUsername(val OptString)

SetSipUsername sets the value of SipUsername.

func (*TelephonyCredential) SetUpdatedAt

func (s *TelephonyCredential) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*TelephonyCredential) UnmarshalJSON

func (s *TelephonyCredential) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TelephonyCredentialCreateRequest

type TelephonyCredentialCreateRequest struct {
	Name OptString `json:"name"`
	// Tags a credential to filter for bulk operations. A single tag can hold at maximum 1000 credentials.
	Tag OptString `json:"tag"`
	// Identifies the Credential Connection this credential is associated with.
	ConnectionID string `json:"connection_id"`
	// ISO-8601 formatted date indicating when the credential will expire.
	ExpiresAt OptString `json:"expires_at"`
}

Ref: #/components/schemas/TelephonyCredentialCreateRequest

func (*TelephonyCredentialCreateRequest) Decode

Decode decodes TelephonyCredentialCreateRequest from json.

func (*TelephonyCredentialCreateRequest) Encode

Encode implements json.Marshaler.

func (*TelephonyCredentialCreateRequest) GetConnectionID

func (s *TelephonyCredentialCreateRequest) GetConnectionID() string

GetConnectionID returns the value of ConnectionID.

func (*TelephonyCredentialCreateRequest) GetExpiresAt

func (s *TelephonyCredentialCreateRequest) GetExpiresAt() OptString

GetExpiresAt returns the value of ExpiresAt.

func (*TelephonyCredentialCreateRequest) GetName

GetName returns the value of Name.

func (*TelephonyCredentialCreateRequest) GetTag

GetTag returns the value of Tag.

func (*TelephonyCredentialCreateRequest) MarshalJSON

func (s *TelephonyCredentialCreateRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TelephonyCredentialCreateRequest) SetConnectionID

func (s *TelephonyCredentialCreateRequest) SetConnectionID(val string)

SetConnectionID sets the value of ConnectionID.

func (*TelephonyCredentialCreateRequest) SetExpiresAt

func (s *TelephonyCredentialCreateRequest) SetExpiresAt(val OptString)

SetExpiresAt sets the value of ExpiresAt.

func (*TelephonyCredentialCreateRequest) SetName

SetName sets the value of Name.

func (*TelephonyCredentialCreateRequest) SetTag

SetTag sets the value of Tag.

func (*TelephonyCredentialCreateRequest) UnmarshalJSON

func (s *TelephonyCredentialCreateRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TelephonyCredentialResponse

type TelephonyCredentialResponse struct {
	Data OptTelephonyCredential `json:"data"`
}

func (*TelephonyCredentialResponse) Decode

Decode decodes TelephonyCredentialResponse from json.

func (*TelephonyCredentialResponse) Encode

func (s *TelephonyCredentialResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TelephonyCredentialResponse) GetData

GetData returns the value of Data.

func (*TelephonyCredentialResponse) MarshalJSON

func (s *TelephonyCredentialResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TelephonyCredentialResponse) SetData

SetData sets the value of Data.

func (*TelephonyCredentialResponse) UnmarshalJSON

func (s *TelephonyCredentialResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TelephonyCredentialUpdateRequest

type TelephonyCredentialUpdateRequest struct {
	Name OptString `json:"name"`
	// Tags a credential to filter for bulk operations. A single tag can hold at maximum 1000 credentials.
	Tag OptString `json:"tag"`
	// Identifies the Credential Connection this credential is associated with.
	ConnectionID OptString `json:"connection_id"`
	// ISO-8601 formatted date indicating when the credential will expire.
	ExpiresAt OptString `json:"expires_at"`
}

Ref: #/components/schemas/TelephonyCredentialUpdateRequest

func (*TelephonyCredentialUpdateRequest) Decode

Decode decodes TelephonyCredentialUpdateRequest from json.

func (*TelephonyCredentialUpdateRequest) Encode

Encode implements json.Marshaler.

func (*TelephonyCredentialUpdateRequest) GetConnectionID

func (s *TelephonyCredentialUpdateRequest) GetConnectionID() OptString

GetConnectionID returns the value of ConnectionID.

func (*TelephonyCredentialUpdateRequest) GetExpiresAt

func (s *TelephonyCredentialUpdateRequest) GetExpiresAt() OptString

GetExpiresAt returns the value of ExpiresAt.

func (*TelephonyCredentialUpdateRequest) GetName

GetName returns the value of Name.

func (*TelephonyCredentialUpdateRequest) GetTag

GetTag returns the value of Tag.

func (*TelephonyCredentialUpdateRequest) MarshalJSON

func (s *TelephonyCredentialUpdateRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TelephonyCredentialUpdateRequest) SetConnectionID

func (s *TelephonyCredentialUpdateRequest) SetConnectionID(val OptString)

SetConnectionID sets the value of ConnectionID.

func (*TelephonyCredentialUpdateRequest) SetExpiresAt

func (s *TelephonyCredentialUpdateRequest) SetExpiresAt(val OptString)

SetExpiresAt sets the value of ExpiresAt.

func (*TelephonyCredentialUpdateRequest) SetName

SetName sets the value of Name.

func (*TelephonyCredentialUpdateRequest) SetTag

SetTag sets the value of Tag.

func (*TelephonyCredentialUpdateRequest) UnmarshalJSON

func (s *TelephonyCredentialUpdateRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TexmlApplication

type TexmlApplication struct {
	ID OptIntId `json:"id"`
	// Identifies the type of the resource.
	RecordType              OptString                  `json:"record_type"`
	FriendlyName            OptApplicationName         `json:"friendly_name"`
	Active                  OptConnectionActive        `json:"active"`
	AnchorsiteOverride      OptAnchorsiteOverride      `json:"anchorsite_override"`
	DtmfType                OptDtmfType                `json:"dtmf_type"`
	FirstCommandTimeout     OptFirstCommandTimeout     `json:"first_command_timeout"`
	FirstCommandTimeoutSecs OptFirstCommandTimeoutSecs `json:"first_command_timeout_secs"`
	// URL to which Telnyx will deliver your XML Translator webhooks.
	VoiceURL OptString `json:"voice_url"`
	// URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from
	// your voice_url.
	VoiceFallbackURL OptString `json:"voice_fallback_url"`
	// HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or
	// 'post'.
	VoiceMethod OptTexmlApplicationVoiceMethod `json:"voice_method"`
	// URL for Telnyx to send requests to containing information about call progress events.
	StatusCallback OptString `json:"status_callback"`
	// HTTP request method Telnyx should use when requesting the status_callback URL.
	StatusCallbackMethod OptTexmlApplicationStatusCallbackMethod `json:"status_callback_method"`
	Inbound              OptTexmlApplicationInbound              `json:"inbound"`
	Outbound             OptTexmlApplicationOutbound             `json:"outbound"`
	CreatedAt            OptCreatedAt                            `json:"created_at"`
	UpdatedAt            OptUpdatedAt                            `json:"updated_at"`
}

Ref: #/components/schemas/TexmlApplication

func (*TexmlApplication) Decode

func (s *TexmlApplication) Decode(d *jx.Decoder) error

Decode decodes TexmlApplication from json.

func (*TexmlApplication) Encode

func (s *TexmlApplication) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TexmlApplication) GetActive

func (s *TexmlApplication) GetActive() OptConnectionActive

GetActive returns the value of Active.

func (*TexmlApplication) GetAnchorsiteOverride

func (s *TexmlApplication) GetAnchorsiteOverride() OptAnchorsiteOverride

GetAnchorsiteOverride returns the value of AnchorsiteOverride.

func (*TexmlApplication) GetCreatedAt

func (s *TexmlApplication) GetCreatedAt() OptCreatedAt

GetCreatedAt returns the value of CreatedAt.

func (*TexmlApplication) GetDtmfType

func (s *TexmlApplication) GetDtmfType() OptDtmfType

GetDtmfType returns the value of DtmfType.

func (*TexmlApplication) GetFirstCommandTimeout

func (s *TexmlApplication) GetFirstCommandTimeout() OptFirstCommandTimeout

GetFirstCommandTimeout returns the value of FirstCommandTimeout.

func (*TexmlApplication) GetFirstCommandTimeoutSecs

func (s *TexmlApplication) GetFirstCommandTimeoutSecs() OptFirstCommandTimeoutSecs

GetFirstCommandTimeoutSecs returns the value of FirstCommandTimeoutSecs.

func (*TexmlApplication) GetFriendlyName

func (s *TexmlApplication) GetFriendlyName() OptApplicationName

GetFriendlyName returns the value of FriendlyName.

func (*TexmlApplication) GetID

func (s *TexmlApplication) GetID() OptIntId

GetID returns the value of ID.

func (*TexmlApplication) GetInbound

GetInbound returns the value of Inbound.

func (*TexmlApplication) GetOutbound

GetOutbound returns the value of Outbound.

func (*TexmlApplication) GetRecordType

func (s *TexmlApplication) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*TexmlApplication) GetStatusCallback

func (s *TexmlApplication) GetStatusCallback() OptString

GetStatusCallback returns the value of StatusCallback.

func (*TexmlApplication) GetStatusCallbackMethod

func (s *TexmlApplication) GetStatusCallbackMethod() OptTexmlApplicationStatusCallbackMethod

GetStatusCallbackMethod returns the value of StatusCallbackMethod.

func (*TexmlApplication) GetUpdatedAt

func (s *TexmlApplication) GetUpdatedAt() OptUpdatedAt

GetUpdatedAt returns the value of UpdatedAt.

func (*TexmlApplication) GetVoiceFallbackURL

func (s *TexmlApplication) GetVoiceFallbackURL() OptString

GetVoiceFallbackURL returns the value of VoiceFallbackURL.

func (*TexmlApplication) GetVoiceMethod

GetVoiceMethod returns the value of VoiceMethod.

func (*TexmlApplication) GetVoiceURL

func (s *TexmlApplication) GetVoiceURL() OptString

GetVoiceURL returns the value of VoiceURL.

func (*TexmlApplication) MarshalJSON

func (s *TexmlApplication) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlApplication) SetActive

func (s *TexmlApplication) SetActive(val OptConnectionActive)

SetActive sets the value of Active.

func (*TexmlApplication) SetAnchorsiteOverride

func (s *TexmlApplication) SetAnchorsiteOverride(val OptAnchorsiteOverride)

SetAnchorsiteOverride sets the value of AnchorsiteOverride.

func (*TexmlApplication) SetCreatedAt

func (s *TexmlApplication) SetCreatedAt(val OptCreatedAt)

SetCreatedAt sets the value of CreatedAt.

func (*TexmlApplication) SetDtmfType

func (s *TexmlApplication) SetDtmfType(val OptDtmfType)

SetDtmfType sets the value of DtmfType.

func (*TexmlApplication) SetFirstCommandTimeout

func (s *TexmlApplication) SetFirstCommandTimeout(val OptFirstCommandTimeout)

SetFirstCommandTimeout sets the value of FirstCommandTimeout.

func (*TexmlApplication) SetFirstCommandTimeoutSecs

func (s *TexmlApplication) SetFirstCommandTimeoutSecs(val OptFirstCommandTimeoutSecs)

SetFirstCommandTimeoutSecs sets the value of FirstCommandTimeoutSecs.

func (*TexmlApplication) SetFriendlyName

func (s *TexmlApplication) SetFriendlyName(val OptApplicationName)

SetFriendlyName sets the value of FriendlyName.

func (*TexmlApplication) SetID

func (s *TexmlApplication) SetID(val OptIntId)

SetID sets the value of ID.

func (*TexmlApplication) SetInbound

func (s *TexmlApplication) SetInbound(val OptTexmlApplicationInbound)

SetInbound sets the value of Inbound.

func (*TexmlApplication) SetOutbound

func (s *TexmlApplication) SetOutbound(val OptTexmlApplicationOutbound)

SetOutbound sets the value of Outbound.

func (*TexmlApplication) SetRecordType

func (s *TexmlApplication) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*TexmlApplication) SetStatusCallback

func (s *TexmlApplication) SetStatusCallback(val OptString)

SetStatusCallback sets the value of StatusCallback.

func (*TexmlApplication) SetStatusCallbackMethod

func (s *TexmlApplication) SetStatusCallbackMethod(val OptTexmlApplicationStatusCallbackMethod)

SetStatusCallbackMethod sets the value of StatusCallbackMethod.

func (*TexmlApplication) SetUpdatedAt

func (s *TexmlApplication) SetUpdatedAt(val OptUpdatedAt)

SetUpdatedAt sets the value of UpdatedAt.

func (*TexmlApplication) SetVoiceFallbackURL

func (s *TexmlApplication) SetVoiceFallbackURL(val OptString)

SetVoiceFallbackURL sets the value of VoiceFallbackURL.

func (*TexmlApplication) SetVoiceMethod

func (s *TexmlApplication) SetVoiceMethod(val OptTexmlApplicationVoiceMethod)

SetVoiceMethod sets the value of VoiceMethod.

func (*TexmlApplication) SetVoiceURL

func (s *TexmlApplication) SetVoiceURL(val OptString)

SetVoiceURL sets the value of VoiceURL.

func (*TexmlApplication) UnmarshalJSON

func (s *TexmlApplication) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlApplication) Validate

func (s *TexmlApplication) Validate() error

type TexmlApplicationInbound

type TexmlApplicationInbound struct {
	// When set, this will limit the total number of inbound calls to phone numbers associated with this
	// connection.
	ChannelLimit OptInt `json:"channel_limit"`
	// When enabled Telnyx will include Shaken/Stir data in the Webhook for new inbound calls.
	ShakenStirEnabled OptBool `json:"shaken_stir_enabled"`
	// Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a
	// phone number is used, from a SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be
	// called from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" where the user
	// part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain
	// calls.
	SipSubdomain OptString `json:"sip_subdomain"`
	// This option can be enabled to receive calls from: "Anyone" (any SIP endpoint in the public
	// Internet) or "Only my connections" (any connection assigned to the same Telnyx user).
	SipSubdomainReceiveSettings OptTexmlApplicationInboundSipSubdomainReceiveSettings `json:"sip_subdomain_receive_settings"`
}

func (*TexmlApplicationInbound) Decode

func (s *TexmlApplicationInbound) Decode(d *jx.Decoder) error

Decode decodes TexmlApplicationInbound from json.

func (*TexmlApplicationInbound) Encode

func (s *TexmlApplicationInbound) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TexmlApplicationInbound) GetChannelLimit

func (s *TexmlApplicationInbound) GetChannelLimit() OptInt

GetChannelLimit returns the value of ChannelLimit.

func (*TexmlApplicationInbound) GetShakenStirEnabled

func (s *TexmlApplicationInbound) GetShakenStirEnabled() OptBool

GetShakenStirEnabled returns the value of ShakenStirEnabled.

func (*TexmlApplicationInbound) GetSipSubdomain

func (s *TexmlApplicationInbound) GetSipSubdomain() OptString

GetSipSubdomain returns the value of SipSubdomain.

func (*TexmlApplicationInbound) GetSipSubdomainReceiveSettings

GetSipSubdomainReceiveSettings returns the value of SipSubdomainReceiveSettings.

func (*TexmlApplicationInbound) MarshalJSON

func (s *TexmlApplicationInbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlApplicationInbound) SetChannelLimit

func (s *TexmlApplicationInbound) SetChannelLimit(val OptInt)

SetChannelLimit sets the value of ChannelLimit.

func (*TexmlApplicationInbound) SetShakenStirEnabled

func (s *TexmlApplicationInbound) SetShakenStirEnabled(val OptBool)

SetShakenStirEnabled sets the value of ShakenStirEnabled.

func (*TexmlApplicationInbound) SetSipSubdomain

func (s *TexmlApplicationInbound) SetSipSubdomain(val OptString)

SetSipSubdomain sets the value of SipSubdomain.

func (*TexmlApplicationInbound) SetSipSubdomainReceiveSettings

SetSipSubdomainReceiveSettings sets the value of SipSubdomainReceiveSettings.

func (*TexmlApplicationInbound) UnmarshalJSON

func (s *TexmlApplicationInbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlApplicationInbound) Validate

func (s *TexmlApplicationInbound) Validate() error

type TexmlApplicationInboundSipSubdomainReceiveSettings

type TexmlApplicationInboundSipSubdomainReceiveSettings string

This option can be enabled to receive calls from: "Anyone" (any SIP endpoint in the public Internet) or "Only my connections" (any connection assigned to the same Telnyx user).

const (
	TexmlApplicationInboundSipSubdomainReceiveSettingsOnlyMyConnections TexmlApplicationInboundSipSubdomainReceiveSettings = "only_my_connections"
	TexmlApplicationInboundSipSubdomainReceiveSettingsFromAnyone        TexmlApplicationInboundSipSubdomainReceiveSettings = "from_anyone"
)

func (TexmlApplicationInboundSipSubdomainReceiveSettings) AllValues

AllValues returns all TexmlApplicationInboundSipSubdomainReceiveSettings values.

func (*TexmlApplicationInboundSipSubdomainReceiveSettings) Decode

Decode decodes TexmlApplicationInboundSipSubdomainReceiveSettings from json.

func (TexmlApplicationInboundSipSubdomainReceiveSettings) Encode

Encode encodes TexmlApplicationInboundSipSubdomainReceiveSettings as json.

func (TexmlApplicationInboundSipSubdomainReceiveSettings) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (TexmlApplicationInboundSipSubdomainReceiveSettings) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*TexmlApplicationInboundSipSubdomainReceiveSettings) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlApplicationInboundSipSubdomainReceiveSettings) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (TexmlApplicationInboundSipSubdomainReceiveSettings) Validate

type TexmlApplicationOutbound

type TexmlApplicationOutbound struct {
	// When set, this will limit the total number of outbound calls to phone numbers associated with this
	// connection.
	ChannelLimit           OptInt                    `json:"channel_limit"`
	OutboundVoiceProfileID OptOutboundVoiceProfileId `json:"outbound_voice_profile_id"`
}

func (*TexmlApplicationOutbound) Decode

func (s *TexmlApplicationOutbound) Decode(d *jx.Decoder) error

Decode decodes TexmlApplicationOutbound from json.

func (*TexmlApplicationOutbound) Encode

func (s *TexmlApplicationOutbound) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TexmlApplicationOutbound) GetChannelLimit

func (s *TexmlApplicationOutbound) GetChannelLimit() OptInt

GetChannelLimit returns the value of ChannelLimit.

func (*TexmlApplicationOutbound) GetOutboundVoiceProfileID

func (s *TexmlApplicationOutbound) GetOutboundVoiceProfileID() OptOutboundVoiceProfileId

GetOutboundVoiceProfileID returns the value of OutboundVoiceProfileID.

func (*TexmlApplicationOutbound) MarshalJSON

func (s *TexmlApplicationOutbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlApplicationOutbound) SetChannelLimit

func (s *TexmlApplicationOutbound) SetChannelLimit(val OptInt)

SetChannelLimit sets the value of ChannelLimit.

func (*TexmlApplicationOutbound) SetOutboundVoiceProfileID

func (s *TexmlApplicationOutbound) SetOutboundVoiceProfileID(val OptOutboundVoiceProfileId)

SetOutboundVoiceProfileID sets the value of OutboundVoiceProfileID.

func (*TexmlApplicationOutbound) UnmarshalJSON

func (s *TexmlApplicationOutbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TexmlApplicationResponse

type TexmlApplicationResponse struct {
	Data OptTexmlApplication `json:"data"`
}

func (*TexmlApplicationResponse) Decode

func (s *TexmlApplicationResponse) Decode(d *jx.Decoder) error

Decode decodes TexmlApplicationResponse from json.

func (*TexmlApplicationResponse) Encode

func (s *TexmlApplicationResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TexmlApplicationResponse) GetData

GetData returns the value of Data.

func (*TexmlApplicationResponse) MarshalJSON

func (s *TexmlApplicationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlApplicationResponse) SetData

SetData sets the value of Data.

func (*TexmlApplicationResponse) UnmarshalJSON

func (s *TexmlApplicationResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlApplicationResponse) Validate

func (s *TexmlApplicationResponse) Validate() error

type TexmlApplicationStatusCallbackMethod

type TexmlApplicationStatusCallbackMethod string

HTTP request method Telnyx should use when requesting the status_callback URL.

const (
	TexmlApplicationStatusCallbackMethodGet  TexmlApplicationStatusCallbackMethod = "get"
	TexmlApplicationStatusCallbackMethodPost TexmlApplicationStatusCallbackMethod = "post"
)

func (TexmlApplicationStatusCallbackMethod) AllValues

AllValues returns all TexmlApplicationStatusCallbackMethod values.

func (*TexmlApplicationStatusCallbackMethod) Decode

Decode decodes TexmlApplicationStatusCallbackMethod from json.

func (TexmlApplicationStatusCallbackMethod) Encode

Encode encodes TexmlApplicationStatusCallbackMethod as json.

func (TexmlApplicationStatusCallbackMethod) MarshalJSON

func (s TexmlApplicationStatusCallbackMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TexmlApplicationStatusCallbackMethod) MarshalText

func (s TexmlApplicationStatusCallbackMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TexmlApplicationStatusCallbackMethod) UnmarshalJSON

func (s *TexmlApplicationStatusCallbackMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlApplicationStatusCallbackMethod) UnmarshalText

func (s *TexmlApplicationStatusCallbackMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TexmlApplicationStatusCallbackMethod) Validate

type TexmlApplicationVoiceMethod

type TexmlApplicationVoiceMethod string

HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'.

const (
	TexmlApplicationVoiceMethodGet  TexmlApplicationVoiceMethod = "get"
	TexmlApplicationVoiceMethodPost TexmlApplicationVoiceMethod = "post"
)

func (TexmlApplicationVoiceMethod) AllValues

AllValues returns all TexmlApplicationVoiceMethod values.

func (*TexmlApplicationVoiceMethod) Decode

Decode decodes TexmlApplicationVoiceMethod from json.

func (TexmlApplicationVoiceMethod) Encode

func (s TexmlApplicationVoiceMethod) Encode(e *jx.Encoder)

Encode encodes TexmlApplicationVoiceMethod as json.

func (TexmlApplicationVoiceMethod) MarshalJSON

func (s TexmlApplicationVoiceMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TexmlApplicationVoiceMethod) MarshalText

func (s TexmlApplicationVoiceMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TexmlApplicationVoiceMethod) UnmarshalJSON

func (s *TexmlApplicationVoiceMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlApplicationVoiceMethod) UnmarshalText

func (s *TexmlApplicationVoiceMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TexmlApplicationVoiceMethod) Validate

func (s TexmlApplicationVoiceMethod) Validate() error

type TexmlCreateCallRecordingRequestBody

type TexmlCreateCallRecordingRequestBody struct {
	PlayBeep                      OptPlayBeep                     `json:"PlayBeep"`
	RecordingStatusCallbackEvent  OptRecordingStatusCallbackEvent `json:"RecordingStatusCallbackEvent"`
	RecordingStatusCallback       OptTexmlStatusCallback          `json:"RecordingStatusCallback"`
	RecordingStatusCallbackMethod OptTexmlStatusCallbackMethod    `json:"RecordingStatusCallbackMethod"`
	RecordingChannels             OptTexmlRecordingChannels       `json:"RecordingChannels"`
	RecordingTrack                OptRecordingTrack               `json:"RecordingTrack"`
}

Ref: #/components/schemas/TexmlCreateCallRecordingRequestBody

func (*TexmlCreateCallRecordingRequestBody) GetPlayBeep

GetPlayBeep returns the value of PlayBeep.

func (*TexmlCreateCallRecordingRequestBody) GetRecordingChannels

GetRecordingChannels returns the value of RecordingChannels.

func (*TexmlCreateCallRecordingRequestBody) GetRecordingStatusCallback

func (s *TexmlCreateCallRecordingRequestBody) GetRecordingStatusCallback() OptTexmlStatusCallback

GetRecordingStatusCallback returns the value of RecordingStatusCallback.

func (*TexmlCreateCallRecordingRequestBody) GetRecordingStatusCallbackEvent

func (s *TexmlCreateCallRecordingRequestBody) GetRecordingStatusCallbackEvent() OptRecordingStatusCallbackEvent

GetRecordingStatusCallbackEvent returns the value of RecordingStatusCallbackEvent.

func (*TexmlCreateCallRecordingRequestBody) GetRecordingStatusCallbackMethod

func (s *TexmlCreateCallRecordingRequestBody) GetRecordingStatusCallbackMethod() OptTexmlStatusCallbackMethod

GetRecordingStatusCallbackMethod returns the value of RecordingStatusCallbackMethod.

func (*TexmlCreateCallRecordingRequestBody) GetRecordingTrack

GetRecordingTrack returns the value of RecordingTrack.

func (*TexmlCreateCallRecordingRequestBody) SetPlayBeep

SetPlayBeep sets the value of PlayBeep.

func (*TexmlCreateCallRecordingRequestBody) SetRecordingChannels

SetRecordingChannels sets the value of RecordingChannels.

func (*TexmlCreateCallRecordingRequestBody) SetRecordingStatusCallback

func (s *TexmlCreateCallRecordingRequestBody) SetRecordingStatusCallback(val OptTexmlStatusCallback)

SetRecordingStatusCallback sets the value of RecordingStatusCallback.

func (*TexmlCreateCallRecordingRequestBody) SetRecordingStatusCallbackEvent

func (s *TexmlCreateCallRecordingRequestBody) SetRecordingStatusCallbackEvent(val OptRecordingStatusCallbackEvent)

SetRecordingStatusCallbackEvent sets the value of RecordingStatusCallbackEvent.

func (*TexmlCreateCallRecordingRequestBody) SetRecordingStatusCallbackMethod

func (s *TexmlCreateCallRecordingRequestBody) SetRecordingStatusCallbackMethod(val OptTexmlStatusCallbackMethod)

SetRecordingStatusCallbackMethod sets the value of RecordingStatusCallbackMethod.

func (*TexmlCreateCallRecordingRequestBody) SetRecordingTrack

func (s *TexmlCreateCallRecordingRequestBody) SetRecordingTrack(val OptRecordingTrack)

SetRecordingTrack sets the value of RecordingTrack.

func (*TexmlCreateCallRecordingRequestBody) Validate

type TexmlCreateCallRecordingResponseBody

type TexmlCreateCallRecordingResponseBody struct {
	AccountSid    OptAccountSid                `json:"account_sid"`
	CallSid       OptCallControlId             `json:"call_sid"`
	ConferenceSid OptNilConferenceSid          `json:"conference_sid"`
	Channels      OptTwimlRecordingChannels    `json:"channels"`
	DateCreated   OptDateTimeRFC2822           `json:"date_created"`
	DateUpdated   OptDateTimeRFC2822           `json:"date_updated"`
	StartTime     OptDateTimeRFC2822           `json:"start_time"`
	Price         OptNilTexmlRecordingPrice    `json:"price"`
	PriceUnit     OptNilTexmlPriceUnit         `json:"price_unit"`
	Duration      OptNilTexmlRecordingDuration `json:"duration"`
	Sid           OptTexmlSid                  `json:"sid"`
	Source        OptRecordingSource           `json:"source"`
	ErrorCode     OptNilTexmlErrorCode         `json:"error_code"`
	Track         OptRecordingTrack            `json:"track"`
	// The relative URI for this recording resource.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/TexmlCreateCallRecordingResponseBody

func (*TexmlCreateCallRecordingResponseBody) Decode

Decode decodes TexmlCreateCallRecordingResponseBody from json.

func (*TexmlCreateCallRecordingResponseBody) Encode

Encode implements json.Marshaler.

func (*TexmlCreateCallRecordingResponseBody) GetAccountSid

GetAccountSid returns the value of AccountSid.

func (*TexmlCreateCallRecordingResponseBody) GetCallSid

GetCallSid returns the value of CallSid.

func (*TexmlCreateCallRecordingResponseBody) GetChannels

GetChannels returns the value of Channels.

func (*TexmlCreateCallRecordingResponseBody) GetConferenceSid

GetConferenceSid returns the value of ConferenceSid.

func (*TexmlCreateCallRecordingResponseBody) GetDateCreated

GetDateCreated returns the value of DateCreated.

func (*TexmlCreateCallRecordingResponseBody) GetDateUpdated

GetDateUpdated returns the value of DateUpdated.

func (*TexmlCreateCallRecordingResponseBody) GetDuration

GetDuration returns the value of Duration.

func (*TexmlCreateCallRecordingResponseBody) GetErrorCode

GetErrorCode returns the value of ErrorCode.

func (*TexmlCreateCallRecordingResponseBody) GetPrice

GetPrice returns the value of Price.

func (*TexmlCreateCallRecordingResponseBody) GetPriceUnit

GetPriceUnit returns the value of PriceUnit.

func (*TexmlCreateCallRecordingResponseBody) GetSid

GetSid returns the value of Sid.

func (*TexmlCreateCallRecordingResponseBody) GetSource

GetSource returns the value of Source.

func (*TexmlCreateCallRecordingResponseBody) GetStartTime

GetStartTime returns the value of StartTime.

func (*TexmlCreateCallRecordingResponseBody) GetTrack

GetTrack returns the value of Track.

func (*TexmlCreateCallRecordingResponseBody) GetURI

GetURI returns the value of URI.

func (*TexmlCreateCallRecordingResponseBody) MarshalJSON

func (s *TexmlCreateCallRecordingResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlCreateCallRecordingResponseBody) SetAccountSid

SetAccountSid sets the value of AccountSid.

func (*TexmlCreateCallRecordingResponseBody) SetCallSid

SetCallSid sets the value of CallSid.

func (*TexmlCreateCallRecordingResponseBody) SetChannels

SetChannels sets the value of Channels.

func (*TexmlCreateCallRecordingResponseBody) SetConferenceSid

SetConferenceSid sets the value of ConferenceSid.

func (*TexmlCreateCallRecordingResponseBody) SetDateCreated

SetDateCreated sets the value of DateCreated.

func (*TexmlCreateCallRecordingResponseBody) SetDateUpdated

SetDateUpdated sets the value of DateUpdated.

func (*TexmlCreateCallRecordingResponseBody) SetDuration

SetDuration sets the value of Duration.

func (*TexmlCreateCallRecordingResponseBody) SetErrorCode

SetErrorCode sets the value of ErrorCode.

func (*TexmlCreateCallRecordingResponseBody) SetPrice

SetPrice sets the value of Price.

func (*TexmlCreateCallRecordingResponseBody) SetPriceUnit

SetPriceUnit sets the value of PriceUnit.

func (*TexmlCreateCallRecordingResponseBody) SetSid

SetSid sets the value of Sid.

func (*TexmlCreateCallRecordingResponseBody) SetSource

SetSource sets the value of Source.

func (*TexmlCreateCallRecordingResponseBody) SetStartTime

SetStartTime sets the value of StartTime.

func (*TexmlCreateCallRecordingResponseBody) SetTrack

SetTrack sets the value of Track.

func (*TexmlCreateCallRecordingResponseBody) SetURI

SetURI sets the value of URI.

func (*TexmlCreateCallRecordingResponseBody) UnmarshalJSON

func (s *TexmlCreateCallRecordingResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlCreateCallRecordingResponseBody) Validate

type TexmlErrorCode

type TexmlErrorCode string

func (*TexmlErrorCode) Decode

func (s *TexmlErrorCode) Decode(d *jx.Decoder) error

Decode decodes TexmlErrorCode from json.

func (TexmlErrorCode) Encode

func (s TexmlErrorCode) Encode(e *jx.Encoder)

Encode encodes TexmlErrorCode as json.

func (TexmlErrorCode) MarshalJSON

func (s TexmlErrorCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlErrorCode) UnmarshalJSON

func (s *TexmlErrorCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TexmlGetCallRecordingResponseBody

type TexmlGetCallRecordingResponseBody struct {
	AccountSid       OptAccountSid                     `json:"account_sid"`
	CallSid          OptCallControlId                  `json:"call_sid"`
	ConferenceSid    OptNilConferenceSid               `json:"conference_sid"`
	Channels         OptTwimlRecordingChannels         `json:"channels"`
	DateCreated      OptDateTimeRFC2822                `json:"date_created"`
	DateUpdated      OptDateTimeRFC2822                `json:"date_updated"`
	StartTime        OptDateTimeRFC2822                `json:"start_time"`
	Duration         OptNilTexmlRecordingDuration      `json:"duration"`
	Sid              OptTexmlSid                       `json:"sid"`
	Source           OptRecordingSource                `json:"source"`
	Status           OptTexmlRecordingStatus           `json:"status"`
	ErrorCode        OptNilTexmlErrorCode              `json:"error_code"`
	SubresourcesUris OptTexmlRecordingSubresourcesUris `json:"subresources_uris"`
	// The relative URI for this recording resource.
	URI      OptString                 `json:"uri"`
	MediaURL OptTexmlRecordingMediaUrl `json:"media_url"`
}

Ref: #/components/schemas/TexmlGetCallRecordingResponseBody

func (*TexmlGetCallRecordingResponseBody) Decode

Decode decodes TexmlGetCallRecordingResponseBody from json.

func (*TexmlGetCallRecordingResponseBody) Encode

Encode implements json.Marshaler.

func (*TexmlGetCallRecordingResponseBody) GetAccountSid

GetAccountSid returns the value of AccountSid.

func (*TexmlGetCallRecordingResponseBody) GetCallSid

GetCallSid returns the value of CallSid.

func (*TexmlGetCallRecordingResponseBody) GetChannels

GetChannels returns the value of Channels.

func (*TexmlGetCallRecordingResponseBody) GetConferenceSid

GetConferenceSid returns the value of ConferenceSid.

func (*TexmlGetCallRecordingResponseBody) GetDateCreated

GetDateCreated returns the value of DateCreated.

func (*TexmlGetCallRecordingResponseBody) GetDateUpdated

GetDateUpdated returns the value of DateUpdated.

func (*TexmlGetCallRecordingResponseBody) GetDuration

GetDuration returns the value of Duration.

func (*TexmlGetCallRecordingResponseBody) GetErrorCode

GetErrorCode returns the value of ErrorCode.

func (*TexmlGetCallRecordingResponseBody) GetMediaURL

GetMediaURL returns the value of MediaURL.

func (*TexmlGetCallRecordingResponseBody) GetSid

GetSid returns the value of Sid.

func (*TexmlGetCallRecordingResponseBody) GetSource

GetSource returns the value of Source.

func (*TexmlGetCallRecordingResponseBody) GetStartTime

GetStartTime returns the value of StartTime.

func (*TexmlGetCallRecordingResponseBody) GetStatus

GetStatus returns the value of Status.

func (*TexmlGetCallRecordingResponseBody) GetSubresourcesUris

GetSubresourcesUris returns the value of SubresourcesUris.

func (*TexmlGetCallRecordingResponseBody) GetURI

GetURI returns the value of URI.

func (*TexmlGetCallRecordingResponseBody) MarshalJSON

func (s *TexmlGetCallRecordingResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlGetCallRecordingResponseBody) SetAccountSid

func (s *TexmlGetCallRecordingResponseBody) SetAccountSid(val OptAccountSid)

SetAccountSid sets the value of AccountSid.

func (*TexmlGetCallRecordingResponseBody) SetCallSid

SetCallSid sets the value of CallSid.

func (*TexmlGetCallRecordingResponseBody) SetChannels

SetChannels sets the value of Channels.

func (*TexmlGetCallRecordingResponseBody) SetConferenceSid

func (s *TexmlGetCallRecordingResponseBody) SetConferenceSid(val OptNilConferenceSid)

SetConferenceSid sets the value of ConferenceSid.

func (*TexmlGetCallRecordingResponseBody) SetDateCreated

SetDateCreated sets the value of DateCreated.

func (*TexmlGetCallRecordingResponseBody) SetDateUpdated

SetDateUpdated sets the value of DateUpdated.

func (*TexmlGetCallRecordingResponseBody) SetDuration

SetDuration sets the value of Duration.

func (*TexmlGetCallRecordingResponseBody) SetErrorCode

SetErrorCode sets the value of ErrorCode.

func (*TexmlGetCallRecordingResponseBody) SetMediaURL

SetMediaURL sets the value of MediaURL.

func (*TexmlGetCallRecordingResponseBody) SetSid

SetSid sets the value of Sid.

func (*TexmlGetCallRecordingResponseBody) SetSource

SetSource sets the value of Source.

func (*TexmlGetCallRecordingResponseBody) SetStartTime

SetStartTime sets the value of StartTime.

func (*TexmlGetCallRecordingResponseBody) SetStatus

SetStatus sets the value of Status.

func (*TexmlGetCallRecordingResponseBody) SetSubresourcesUris

SetSubresourcesUris sets the value of SubresourcesUris.

func (*TexmlGetCallRecordingResponseBody) SetURI

SetURI sets the value of URI.

func (*TexmlGetCallRecordingResponseBody) UnmarshalJSON

func (s *TexmlGetCallRecordingResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlGetCallRecordingResponseBody) Validate

type TexmlGetCallRecordingsResponseBody

type TexmlGetCallRecordingsResponseBody struct {
	Recordings []TexmlGetCallRecordingResponseBody `json:"recordings"`
	// The number of the last element on the page, zero-indexed.
	End OptInt `json:"end"`
	// Relative uri to the first page of the query results.
	FirstPageURI OptURI `json:"first_page_uri"`
	// Relative uri to the previous page of the query results.
	PreviousPageURI OptURI `json:"previous_page_uri"`
	// Relative uri to the next page of the query results.
	NextPageURI OptString `json:"next_page_uri"`
	// Current page number, zero-indexed.
	Page OptInt `json:"page"`
	// The number of items on the page.
	PageSize OptInt `json:"page_size"`
	// The number of the first element on the page, zero-indexed.
	Start OptInt `json:"start"`
	// The URI of the current page.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/TexmlGetCallRecordingsResponseBody

func (*TexmlGetCallRecordingsResponseBody) Decode

Decode decodes TexmlGetCallRecordingsResponseBody from json.

func (*TexmlGetCallRecordingsResponseBody) Encode

Encode implements json.Marshaler.

func (*TexmlGetCallRecordingsResponseBody) GetEnd

GetEnd returns the value of End.

func (*TexmlGetCallRecordingsResponseBody) GetFirstPageURI

func (s *TexmlGetCallRecordingsResponseBody) GetFirstPageURI() OptURI

GetFirstPageURI returns the value of FirstPageURI.

func (*TexmlGetCallRecordingsResponseBody) GetNextPageURI

func (s *TexmlGetCallRecordingsResponseBody) GetNextPageURI() OptString

GetNextPageURI returns the value of NextPageURI.

func (*TexmlGetCallRecordingsResponseBody) GetPage

GetPage returns the value of Page.

func (*TexmlGetCallRecordingsResponseBody) GetPageSize

func (s *TexmlGetCallRecordingsResponseBody) GetPageSize() OptInt

GetPageSize returns the value of PageSize.

func (*TexmlGetCallRecordingsResponseBody) GetPreviousPageURI

func (s *TexmlGetCallRecordingsResponseBody) GetPreviousPageURI() OptURI

GetPreviousPageURI returns the value of PreviousPageURI.

func (*TexmlGetCallRecordingsResponseBody) GetRecordings

GetRecordings returns the value of Recordings.

func (*TexmlGetCallRecordingsResponseBody) GetStart

GetStart returns the value of Start.

func (*TexmlGetCallRecordingsResponseBody) GetURI

GetURI returns the value of URI.

func (*TexmlGetCallRecordingsResponseBody) MarshalJSON

func (s *TexmlGetCallRecordingsResponseBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlGetCallRecordingsResponseBody) SetEnd

SetEnd sets the value of End.

func (*TexmlGetCallRecordingsResponseBody) SetFirstPageURI

func (s *TexmlGetCallRecordingsResponseBody) SetFirstPageURI(val OptURI)

SetFirstPageURI sets the value of FirstPageURI.

func (*TexmlGetCallRecordingsResponseBody) SetNextPageURI

func (s *TexmlGetCallRecordingsResponseBody) SetNextPageURI(val OptString)

SetNextPageURI sets the value of NextPageURI.

func (*TexmlGetCallRecordingsResponseBody) SetPage

SetPage sets the value of Page.

func (*TexmlGetCallRecordingsResponseBody) SetPageSize

func (s *TexmlGetCallRecordingsResponseBody) SetPageSize(val OptInt)

SetPageSize sets the value of PageSize.

func (*TexmlGetCallRecordingsResponseBody) SetPreviousPageURI

func (s *TexmlGetCallRecordingsResponseBody) SetPreviousPageURI(val OptURI)

SetPreviousPageURI sets the value of PreviousPageURI.

func (*TexmlGetCallRecordingsResponseBody) SetRecordings

SetRecordings sets the value of Recordings.

func (*TexmlGetCallRecordingsResponseBody) SetStart

func (s *TexmlGetCallRecordingsResponseBody) SetStart(val OptInt)

SetStart sets the value of Start.

func (*TexmlGetCallRecordingsResponseBody) SetURI

SetURI sets the value of URI.

func (*TexmlGetCallRecordingsResponseBody) UnmarshalJSON

func (s *TexmlGetCallRecordingsResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlGetCallRecordingsResponseBody) Validate

type TexmlListRecordingTranscriptionResponse

type TexmlListRecordingTranscriptionResponse struct {
	Transcriptions []TexmlRecordingTranscription `json:"transcriptions"`
	// The number of the last element on the page, zero-indexed.
	End OptInt `json:"end"`
	// Relative uri to the first page of the query results.
	FirstPageURI OptURI `json:"first_page_uri"`
	// Relative uri to the previous page of the query results.
	PreviousPageURI OptURI `json:"previous_page_uri"`
	// Relative uri to the next page of the query results.
	NextPageURI OptString `json:"next_page_uri"`
	// Current page number, zero-indexed.
	Page OptInt `json:"page"`
	// The number of items on the page.
	PageSize OptInt `json:"page_size"`
	// The number of the first element on the page, zero-indexed.
	Start OptInt `json:"start"`
	// The URI of the current page.
	URI OptString `json:"uri"`
}

func (*TexmlListRecordingTranscriptionResponse) Decode

Decode decodes TexmlListRecordingTranscriptionResponse from json.

func (*TexmlListRecordingTranscriptionResponse) Encode

Encode implements json.Marshaler.

func (*TexmlListRecordingTranscriptionResponse) GetEnd

GetEnd returns the value of End.

func (*TexmlListRecordingTranscriptionResponse) GetFirstPageURI

func (s *TexmlListRecordingTranscriptionResponse) GetFirstPageURI() OptURI

GetFirstPageURI returns the value of FirstPageURI.

func (*TexmlListRecordingTranscriptionResponse) GetNextPageURI

GetNextPageURI returns the value of NextPageURI.

func (*TexmlListRecordingTranscriptionResponse) GetPage

GetPage returns the value of Page.

func (*TexmlListRecordingTranscriptionResponse) GetPageSize

GetPageSize returns the value of PageSize.

func (*TexmlListRecordingTranscriptionResponse) GetPreviousPageURI

func (s *TexmlListRecordingTranscriptionResponse) GetPreviousPageURI() OptURI

GetPreviousPageURI returns the value of PreviousPageURI.

func (*TexmlListRecordingTranscriptionResponse) GetStart

GetStart returns the value of Start.

func (*TexmlListRecordingTranscriptionResponse) GetTranscriptions

GetTranscriptions returns the value of Transcriptions.

func (*TexmlListRecordingTranscriptionResponse) GetURI

GetURI returns the value of URI.

func (*TexmlListRecordingTranscriptionResponse) MarshalJSON

func (s *TexmlListRecordingTranscriptionResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlListRecordingTranscriptionResponse) SetEnd

SetEnd sets the value of End.

func (*TexmlListRecordingTranscriptionResponse) SetFirstPageURI

func (s *TexmlListRecordingTranscriptionResponse) SetFirstPageURI(val OptURI)

SetFirstPageURI sets the value of FirstPageURI.

func (*TexmlListRecordingTranscriptionResponse) SetNextPageURI

func (s *TexmlListRecordingTranscriptionResponse) SetNextPageURI(val OptString)

SetNextPageURI sets the value of NextPageURI.

func (*TexmlListRecordingTranscriptionResponse) SetPage

SetPage sets the value of Page.

func (*TexmlListRecordingTranscriptionResponse) SetPageSize

func (s *TexmlListRecordingTranscriptionResponse) SetPageSize(val OptInt)

SetPageSize sets the value of PageSize.

func (*TexmlListRecordingTranscriptionResponse) SetPreviousPageURI

func (s *TexmlListRecordingTranscriptionResponse) SetPreviousPageURI(val OptURI)

SetPreviousPageURI sets the value of PreviousPageURI.

func (*TexmlListRecordingTranscriptionResponse) SetStart

SetStart sets the value of Start.

func (*TexmlListRecordingTranscriptionResponse) SetTranscriptions

SetTranscriptions sets the value of Transcriptions.

func (*TexmlListRecordingTranscriptionResponse) SetURI

SetURI sets the value of URI.

func (*TexmlListRecordingTranscriptionResponse) UnmarshalJSON

func (s *TexmlListRecordingTranscriptionResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlListRecordingTranscriptionResponse) Validate

type TexmlPriceUnit

type TexmlPriceUnit string

func (*TexmlPriceUnit) Decode

func (s *TexmlPriceUnit) Decode(d *jx.Decoder) error

Decode decodes TexmlPriceUnit from json.

func (TexmlPriceUnit) Encode

func (s TexmlPriceUnit) Encode(e *jx.Encoder)

Encode encodes TexmlPriceUnit as json.

func (TexmlPriceUnit) MarshalJSON

func (s TexmlPriceUnit) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlPriceUnit) UnmarshalJSON

func (s *TexmlPriceUnit) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TexmlRecordingChannels

type TexmlRecordingChannels string

When `dual`, final audio file has the first leg on channel A, and the rest on channel B. `mono` mixes both tracks into a single channel. Ref: #/components/schemas/TexmlRecordingChannels

const (
	TexmlRecordingChannelsMono TexmlRecordingChannels = "mono"
	TexmlRecordingChannelsDual TexmlRecordingChannels = "dual"
)

func (TexmlRecordingChannels) AllValues

AllValues returns all TexmlRecordingChannels values.

func (TexmlRecordingChannels) MarshalText

func (s TexmlRecordingChannels) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TexmlRecordingChannels) UnmarshalText

func (s *TexmlRecordingChannels) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TexmlRecordingChannels) Validate

func (s TexmlRecordingChannels) Validate() error

type TexmlRecordingDuration

type TexmlRecordingDuration string

func (*TexmlRecordingDuration) Decode

func (s *TexmlRecordingDuration) Decode(d *jx.Decoder) error

Decode decodes TexmlRecordingDuration from json.

func (TexmlRecordingDuration) Encode

func (s TexmlRecordingDuration) Encode(e *jx.Encoder)

Encode encodes TexmlRecordingDuration as json.

func (TexmlRecordingDuration) MarshalJSON

func (s TexmlRecordingDuration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlRecordingDuration) UnmarshalJSON

func (s *TexmlRecordingDuration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TexmlRecordingMediaUrl

type TexmlRecordingMediaUrl url.URL

func (*TexmlRecordingMediaUrl) Decode

func (s *TexmlRecordingMediaUrl) Decode(d *jx.Decoder) error

Decode decodes TexmlRecordingMediaUrl from json.

func (TexmlRecordingMediaUrl) Encode

func (s TexmlRecordingMediaUrl) Encode(e *jx.Encoder)

Encode encodes TexmlRecordingMediaUrl as json.

func (TexmlRecordingMediaUrl) MarshalJSON

func (s TexmlRecordingMediaUrl) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlRecordingMediaUrl) UnmarshalJSON

func (s *TexmlRecordingMediaUrl) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TexmlRecordingPrice

type TexmlRecordingPrice string

func (*TexmlRecordingPrice) Decode

func (s *TexmlRecordingPrice) Decode(d *jx.Decoder) error

Decode decodes TexmlRecordingPrice from json.

func (TexmlRecordingPrice) Encode

func (s TexmlRecordingPrice) Encode(e *jx.Encoder)

Encode encodes TexmlRecordingPrice as json.

func (TexmlRecordingPrice) MarshalJSON

func (s TexmlRecordingPrice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlRecordingPrice) UnmarshalJSON

func (s *TexmlRecordingPrice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TexmlRecordingStatus

type TexmlRecordingStatus string

Ref: #/components/schemas/TexmlRecordingStatus

const (
	TexmlRecordingStatusInProgress TexmlRecordingStatus = "in-progress"
	TexmlRecordingStatusCompleted  TexmlRecordingStatus = "completed"
	TexmlRecordingStatusPaused     TexmlRecordingStatus = "paused"
	TexmlRecordingStatusStopped    TexmlRecordingStatus = "stopped"
)

func (TexmlRecordingStatus) AllValues

AllValues returns all TexmlRecordingStatus values.

func (*TexmlRecordingStatus) Decode

func (s *TexmlRecordingStatus) Decode(d *jx.Decoder) error

Decode decodes TexmlRecordingStatus from json.

func (TexmlRecordingStatus) Encode

func (s TexmlRecordingStatus) Encode(e *jx.Encoder)

Encode encodes TexmlRecordingStatus as json.

func (TexmlRecordingStatus) MarshalJSON

func (s TexmlRecordingStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TexmlRecordingStatus) MarshalText

func (s TexmlRecordingStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TexmlRecordingStatus) UnmarshalJSON

func (s *TexmlRecordingStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlRecordingStatus) UnmarshalText

func (s *TexmlRecordingStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TexmlRecordingStatus) Validate

func (s TexmlRecordingStatus) Validate() error

type TexmlRecordingSubresourcesUris

type TexmlRecordingSubresourcesUris struct {
	Transcriptions OptNilURI `json:"transcriptions"`
}

Subresources details for a recording if available. Ref: #/components/schemas/TexmlRecordingSubresourcesUris

func (*TexmlRecordingSubresourcesUris) Decode

Decode decodes TexmlRecordingSubresourcesUris from json.

func (*TexmlRecordingSubresourcesUris) Encode

Encode implements json.Marshaler.

func (*TexmlRecordingSubresourcesUris) GetTranscriptions

func (s *TexmlRecordingSubresourcesUris) GetTranscriptions() OptNilURI

GetTranscriptions returns the value of Transcriptions.

func (*TexmlRecordingSubresourcesUris) MarshalJSON

func (s *TexmlRecordingSubresourcesUris) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlRecordingSubresourcesUris) SetTranscriptions

func (s *TexmlRecordingSubresourcesUris) SetTranscriptions(val OptNilURI)

SetTranscriptions sets the value of Transcriptions.

func (*TexmlRecordingSubresourcesUris) UnmarshalJSON

func (s *TexmlRecordingSubresourcesUris) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TexmlRecordingTranscription

type TexmlRecordingTranscription struct {
	AccountSid OptAccountSid    `json:"account_sid"`
	CallSid    OptCallControlId `json:"call_sid"`
	// The version of the API that was used to make the request.
	APIVersion   OptString                    `json:"api_version"`
	DateCreated  OptDateTimeRFC2822           `json:"date_created"`
	DateUpdated  OptDateTimeRFC2822           `json:"date_updated"`
	Duration     OptNilTexmlRecordingDuration `json:"duration"`
	Sid          OptTexmlSid                  `json:"sid"`
	RecordingSid OptTexmlSid                  `json:"recording_sid"`
	// The status of the recording transcriptions. The transcription text will be available only when the
	// status is completed.
	Status OptTexmlRecordingTranscriptionStatus `json:"status"`
	// The recording's transcribed text.
	TranscriptionText OptString `json:"transcription_text"`
	// The relative URI for the recording transcription resource.
	URI OptString `json:"uri"`
}

Ref: #/components/schemas/TexmlRecordingTranscription

func (*TexmlRecordingTranscription) Decode

Decode decodes TexmlRecordingTranscription from json.

func (*TexmlRecordingTranscription) Encode

func (s *TexmlRecordingTranscription) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TexmlRecordingTranscription) GetAPIVersion

func (s *TexmlRecordingTranscription) GetAPIVersion() OptString

GetAPIVersion returns the value of APIVersion.

func (*TexmlRecordingTranscription) GetAccountSid

func (s *TexmlRecordingTranscription) GetAccountSid() OptAccountSid

GetAccountSid returns the value of AccountSid.

func (*TexmlRecordingTranscription) GetCallSid

GetCallSid returns the value of CallSid.

func (*TexmlRecordingTranscription) GetDateCreated

func (s *TexmlRecordingTranscription) GetDateCreated() OptDateTimeRFC2822

GetDateCreated returns the value of DateCreated.

func (*TexmlRecordingTranscription) GetDateUpdated

func (s *TexmlRecordingTranscription) GetDateUpdated() OptDateTimeRFC2822

GetDateUpdated returns the value of DateUpdated.

func (*TexmlRecordingTranscription) GetDuration

GetDuration returns the value of Duration.

func (*TexmlRecordingTranscription) GetRecordingSid

func (s *TexmlRecordingTranscription) GetRecordingSid() OptTexmlSid

GetRecordingSid returns the value of RecordingSid.

func (*TexmlRecordingTranscription) GetSid

GetSid returns the value of Sid.

func (*TexmlRecordingTranscription) GetStatus

GetStatus returns the value of Status.

func (*TexmlRecordingTranscription) GetTranscriptionText

func (s *TexmlRecordingTranscription) GetTranscriptionText() OptString

GetTranscriptionText returns the value of TranscriptionText.

func (*TexmlRecordingTranscription) GetURI

GetURI returns the value of URI.

func (*TexmlRecordingTranscription) MarshalJSON

func (s *TexmlRecordingTranscription) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlRecordingTranscription) SetAPIVersion

func (s *TexmlRecordingTranscription) SetAPIVersion(val OptString)

SetAPIVersion sets the value of APIVersion.

func (*TexmlRecordingTranscription) SetAccountSid

func (s *TexmlRecordingTranscription) SetAccountSid(val OptAccountSid)

SetAccountSid sets the value of AccountSid.

func (*TexmlRecordingTranscription) SetCallSid

func (s *TexmlRecordingTranscription) SetCallSid(val OptCallControlId)

SetCallSid sets the value of CallSid.

func (*TexmlRecordingTranscription) SetDateCreated

func (s *TexmlRecordingTranscription) SetDateCreated(val OptDateTimeRFC2822)

SetDateCreated sets the value of DateCreated.

func (*TexmlRecordingTranscription) SetDateUpdated

func (s *TexmlRecordingTranscription) SetDateUpdated(val OptDateTimeRFC2822)

SetDateUpdated sets the value of DateUpdated.

func (*TexmlRecordingTranscription) SetDuration

SetDuration sets the value of Duration.

func (*TexmlRecordingTranscription) SetRecordingSid

func (s *TexmlRecordingTranscription) SetRecordingSid(val OptTexmlSid)

SetRecordingSid sets the value of RecordingSid.

func (*TexmlRecordingTranscription) SetSid

SetSid sets the value of Sid.

func (*TexmlRecordingTranscription) SetStatus

SetStatus sets the value of Status.

func (*TexmlRecordingTranscription) SetTranscriptionText

func (s *TexmlRecordingTranscription) SetTranscriptionText(val OptString)

SetTranscriptionText sets the value of TranscriptionText.

func (*TexmlRecordingTranscription) SetURI

func (s *TexmlRecordingTranscription) SetURI(val OptString)

SetURI sets the value of URI.

func (*TexmlRecordingTranscription) UnmarshalJSON

func (s *TexmlRecordingTranscription) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlRecordingTranscription) Validate

func (s *TexmlRecordingTranscription) Validate() error

type TexmlRecordingTranscriptionStatus

type TexmlRecordingTranscriptionStatus string

The status of the recording transcriptions. The transcription text will be available only when the status is completed.

const (
	TexmlRecordingTranscriptionStatusInProgress TexmlRecordingTranscriptionStatus = "in-progress"
	TexmlRecordingTranscriptionStatusCompleted  TexmlRecordingTranscriptionStatus = "completed"
)

func (TexmlRecordingTranscriptionStatus) AllValues

AllValues returns all TexmlRecordingTranscriptionStatus values.

func (*TexmlRecordingTranscriptionStatus) Decode

Decode decodes TexmlRecordingTranscriptionStatus from json.

func (TexmlRecordingTranscriptionStatus) Encode

Encode encodes TexmlRecordingTranscriptionStatus as json.

func (TexmlRecordingTranscriptionStatus) MarshalJSON

func (s TexmlRecordingTranscriptionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TexmlRecordingTranscriptionStatus) MarshalText

func (s TexmlRecordingTranscriptionStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TexmlRecordingTranscriptionStatus) UnmarshalJSON

func (s *TexmlRecordingTranscriptionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TexmlRecordingTranscriptionStatus) UnmarshalText

func (s *TexmlRecordingTranscriptionStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TexmlRecordingTranscriptionStatus) Validate

type TexmlSid

type TexmlSid string

func (*TexmlSid) Decode

func (s *TexmlSid) Decode(d *jx.Decoder) error

Decode decodes TexmlSid from json.

func (TexmlSid) Encode

func (s TexmlSid) Encode(e *jx.Encoder)

Encode encodes TexmlSid as json.

func (TexmlSid) MarshalJSON

func (s TexmlSid) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TexmlSid) UnmarshalJSON

func (s *TexmlSid) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TexmlStatusCallback

type TexmlStatusCallback url.URL

type TexmlStatusCallbackMethod

type TexmlStatusCallbackMethod string

HTTP method used to send status callbacks. Ref: #/components/schemas/TexmlStatusCallbackMethod

const (
	TexmlStatusCallbackMethodGET  TexmlStatusCallbackMethod = "GET"
	TexmlStatusCallbackMethodPOST TexmlStatusCallbackMethod = "POST"
)

func (TexmlStatusCallbackMethod) AllValues

AllValues returns all TexmlStatusCallbackMethod values.

func (TexmlStatusCallbackMethod) MarshalText

func (s TexmlStatusCallbackMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TexmlStatusCallbackMethod) UnmarshalText

func (s *TexmlStatusCallbackMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TexmlStatusCallbackMethod) Validate

func (s TexmlStatusCallbackMethod) Validate() error

type TexmlUpdateCallRecordingRequestBody

type TexmlUpdateCallRecordingRequestBody struct {
	Status OptTexmlUpdateCallRecordingRequestBodyStatus `json:"Status"`
}

Ref: #/components/schemas/TexmlUpdateCallRecordingRequestBody

func (*TexmlUpdateCallRecordingRequestBody) GetStatus

GetStatus returns the value of Status.

func (*TexmlUpdateCallRecordingRequestBody) SetStatus

SetStatus sets the value of Status.

func (*TexmlUpdateCallRecordingRequestBody) Validate

type TexmlUpdateCallRecordingRequestBodyStatus

type TexmlUpdateCallRecordingRequestBodyStatus string
const (
	TexmlUpdateCallRecordingRequestBodyStatusInProgress TexmlUpdateCallRecordingRequestBodyStatus = "in-progress"
	TexmlUpdateCallRecordingRequestBodyStatusPaused     TexmlUpdateCallRecordingRequestBodyStatus = "paused"
	TexmlUpdateCallRecordingRequestBodyStatusStopped    TexmlUpdateCallRecordingRequestBodyStatus = "stopped"
)

func (TexmlUpdateCallRecordingRequestBodyStatus) AllValues

AllValues returns all TexmlUpdateCallRecordingRequestBodyStatus values.

func (TexmlUpdateCallRecordingRequestBodyStatus) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*TexmlUpdateCallRecordingRequestBodyStatus) UnmarshalText

func (s *TexmlUpdateCallRecordingRequestBodyStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TexmlUpdateCallRecordingRequestBodyStatus) Validate

type ToNumber

type ToNumber string

func (*ToNumber) Decode

func (s *ToNumber) Decode(d *jx.Decoder) error

Decode decodes ToNumber from json.

func (ToNumber) Encode

func (s ToNumber) Encode(e *jx.Encoder)

Encode encodes ToNumber as json.

func (ToNumber) MarshalJSON

func (s ToNumber) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ToNumber) UnmarshalJSON

func (s *ToNumber) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TrafficType

type TrafficType string

Specifies the type of traffic allowed in this profile. Ref: #/components/schemas/TrafficType

const (
	TrafficTypeConversational TrafficType = "conversational"
)

func (TrafficType) AllValues

func (TrafficType) AllValues() []TrafficType

AllValues returns all TrafficType values.

func (*TrafficType) Decode

func (s *TrafficType) Decode(d *jx.Decoder) error

Decode decodes TrafficType from json.

func (TrafficType) Encode

func (s TrafficType) Encode(e *jx.Encoder)

Encode encodes TrafficType as json.

func (TrafficType) MarshalJSON

func (s TrafficType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TrafficType) MarshalText

func (s TrafficType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TrafficType) UnmarshalJSON

func (s *TrafficType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TrafficType) UnmarshalText

func (s *TrafficType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TrafficType) Validate

func (s TrafficType) Validate() error

type TranscriptionStartRequest

type TranscriptionStartRequest struct {
	// Engine to use for speech recognition. `A` - `google`, `B` - `telnyx`.
	TranscriptionEngine OptTranscriptionStartRequestTranscriptionEngine `json:"transcription_engine"`
	// Language to use for speech recognition.
	Language OptTranscriptionStartRequestLanguage `json:"language"`
	// Whether to send also interim results. If set to false, only final results will be sent. Applies to
	// `google` engine only.
	InterimResults OptBool `json:"interim_results"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Indicates which leg of the call will be transcribed. Use `inbound` for the leg that requested the
	// transcription, `outbound` for the other leg, and `both` for both legs of the call. Will default to
	// `inbound`.
	TranscriptionTracks OptString `json:"transcription_tracks"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/TranscriptionStartRequest

func (*TranscriptionStartRequest) Decode

func (s *TranscriptionStartRequest) Decode(d *jx.Decoder) error

Decode decodes TranscriptionStartRequest from json.

func (*TranscriptionStartRequest) Encode

func (s *TranscriptionStartRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TranscriptionStartRequest) GetClientState

func (s *TranscriptionStartRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*TranscriptionStartRequest) GetCommandID

func (s *TranscriptionStartRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*TranscriptionStartRequest) GetInterimResults

func (s *TranscriptionStartRequest) GetInterimResults() OptBool

GetInterimResults returns the value of InterimResults.

func (*TranscriptionStartRequest) GetLanguage

GetLanguage returns the value of Language.

func (*TranscriptionStartRequest) GetTranscriptionEngine

GetTranscriptionEngine returns the value of TranscriptionEngine.

func (*TranscriptionStartRequest) GetTranscriptionTracks

func (s *TranscriptionStartRequest) GetTranscriptionTracks() OptString

GetTranscriptionTracks returns the value of TranscriptionTracks.

func (*TranscriptionStartRequest) MarshalJSON

func (s *TranscriptionStartRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TranscriptionStartRequest) SetClientState

func (s *TranscriptionStartRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*TranscriptionStartRequest) SetCommandID

func (s *TranscriptionStartRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*TranscriptionStartRequest) SetInterimResults

func (s *TranscriptionStartRequest) SetInterimResults(val OptBool)

SetInterimResults sets the value of InterimResults.

func (*TranscriptionStartRequest) SetLanguage

SetLanguage sets the value of Language.

func (*TranscriptionStartRequest) SetTranscriptionEngine

SetTranscriptionEngine sets the value of TranscriptionEngine.

func (*TranscriptionStartRequest) SetTranscriptionTracks

func (s *TranscriptionStartRequest) SetTranscriptionTracks(val OptString)

SetTranscriptionTracks sets the value of TranscriptionTracks.

func (*TranscriptionStartRequest) UnmarshalJSON

func (s *TranscriptionStartRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TranscriptionStartRequest) Validate

func (s *TranscriptionStartRequest) Validate() error

type TranscriptionStartRequestLanguage

type TranscriptionStartRequestLanguage string

Language to use for speech recognition.

const (
	TranscriptionStartRequestLanguageDe TranscriptionStartRequestLanguage = "de"
	TranscriptionStartRequestLanguageEn TranscriptionStartRequestLanguage = "en"
	TranscriptionStartRequestLanguageEs TranscriptionStartRequestLanguage = "es"
	TranscriptionStartRequestLanguageFr TranscriptionStartRequestLanguage = "fr"
	TranscriptionStartRequestLanguageIt TranscriptionStartRequestLanguage = "it"
	TranscriptionStartRequestLanguagePl TranscriptionStartRequestLanguage = "pl"
)

func (TranscriptionStartRequestLanguage) AllValues

AllValues returns all TranscriptionStartRequestLanguage values.

func (*TranscriptionStartRequestLanguage) Decode

Decode decodes TranscriptionStartRequestLanguage from json.

func (TranscriptionStartRequestLanguage) Encode

Encode encodes TranscriptionStartRequestLanguage as json.

func (TranscriptionStartRequestLanguage) MarshalJSON

func (s TranscriptionStartRequestLanguage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TranscriptionStartRequestLanguage) MarshalText

func (s TranscriptionStartRequestLanguage) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TranscriptionStartRequestLanguage) UnmarshalJSON

func (s *TranscriptionStartRequestLanguage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TranscriptionStartRequestLanguage) UnmarshalText

func (s *TranscriptionStartRequestLanguage) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TranscriptionStartRequestLanguage) Validate

type TranscriptionStartRequestTranscriptionEngine

type TranscriptionStartRequestTranscriptionEngine string

Engine to use for speech recognition. `A` - `google`, `B` - `telnyx`.

const (
	TranscriptionStartRequestTranscriptionEngineA TranscriptionStartRequestTranscriptionEngine = "A"
	TranscriptionStartRequestTranscriptionEngineB TranscriptionStartRequestTranscriptionEngine = "B"
)

func (TranscriptionStartRequestTranscriptionEngine) AllValues

AllValues returns all TranscriptionStartRequestTranscriptionEngine values.

func (*TranscriptionStartRequestTranscriptionEngine) Decode

Decode decodes TranscriptionStartRequestTranscriptionEngine from json.

func (TranscriptionStartRequestTranscriptionEngine) Encode

Encode encodes TranscriptionStartRequestTranscriptionEngine as json.

func (TranscriptionStartRequestTranscriptionEngine) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (TranscriptionStartRequestTranscriptionEngine) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*TranscriptionStartRequestTranscriptionEngine) UnmarshalJSON

func (s *TranscriptionStartRequestTranscriptionEngine) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TranscriptionStartRequestTranscriptionEngine) UnmarshalText

func (s *TranscriptionStartRequestTranscriptionEngine) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TranscriptionStartRequestTranscriptionEngine) Validate

type TranscriptionStopRequest

type TranscriptionStopRequest struct {
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
}

Ref: #/components/schemas/TranscriptionStopRequest

func (*TranscriptionStopRequest) Decode

func (s *TranscriptionStopRequest) Decode(d *jx.Decoder) error

Decode decodes TranscriptionStopRequest from json.

func (*TranscriptionStopRequest) Encode

func (s *TranscriptionStopRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TranscriptionStopRequest) GetClientState

func (s *TranscriptionStopRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*TranscriptionStopRequest) GetCommandID

func (s *TranscriptionStopRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*TranscriptionStopRequest) MarshalJSON

func (s *TranscriptionStopRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TranscriptionStopRequest) SetClientState

func (s *TranscriptionStopRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*TranscriptionStopRequest) SetCommandID

func (s *TranscriptionStopRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*TranscriptionStopRequest) UnmarshalJSON

func (s *TranscriptionStopRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TransferCallParams

type TransferCallParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

TransferCallParams is parameters of TransferCall operation.

type TransferCallRequest

type TransferCallRequest struct {
	// The DID or SIP URI to dial out to.
	To string `json:"to"`
	// The `from` number to be used as the caller id presented to the destination (`to` number). The
	// number should be in +E164 format. This attribute will default to the `to` number of the original
	// call if omitted.
	From OptString `json:"from"`
	// The `from_display_name` string to be used as the caller id name (SIP From Display Name) presented
	// to the destination (`to` number). The string should have a maximum of 128 characters, containing
	// only letters, numbers, spaces, and -_~!.+ special characters. If ommited, the display name will be
	// the same as the number in the `from` field.
	FromDisplayName OptString `json:"from_display_name"`
	// The URL of a file to be played back when the transfer destination answers before bridging the call.
	//  The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together
	// in one request.
	AudioURL OptString `json:"audio_url"`
	// The media_name of a file to be played back when the transfer destination answers before bridging
	// the call. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by
	// the same user/organization. The file must either be a WAV or MP3 file.
	MediaName OptString `json:"media_name"`
	// The number of seconds that Telnyx will wait for the call to be answered by the destination to
	// which it is being transferred. If the timeout is reached before an answer is received, the call
	// will hangup and a `call.hangup` webhook with a `hangup_cause` of `timeout` will be sent. Minimum
	// value is 5 seconds. Maximum value is 120 seconds.
	TimeoutSecs OptInt32 `json:"timeout_secs"`
	// Sets the maximum duration of a Call Control Leg in seconds. If the time limit is reached, the call
	// will hangup and a `call.hangup` webhook with a `hangup_cause` of `time_limit` will be sent. For
	// example, by setting a time limit of 120 seconds, a Call Leg will be automatically terminated two
	// minutes after being answered. The default time limit is 14400 seconds or 4 hours and this is also
	// the maximum allowed call length.
	TimeLimitSecs OptInt32 `json:"time_limit_secs"`
	// Enables Answering Machine Detection. When a call is answered, Telnyx runs real-time detection to
	// determine if it was picked up by a human or a machine and sends an `call.machine.detection.ended`
	// webhook with the analysis result. If 'greeting_end' or 'detect_words' is used and a 'machine' is
	// detected, you will receive another 'call.machine.greeting.ended' webhook when the answering
	// machine greeting ends with a beep or silence. If `detect_beep` is used, you will only receive
	// 'call.machine.greeting.ended' if a beep is detected.
	AnsweringMachineDetection OptTransferCallRequestAnsweringMachineDetection `json:"answering_machine_detection"`
	// Optional configuration parameters to modify 'answering_machine_detection' performance.
	AnsweringMachineDetectionConfig OptTransferCallRequestAnsweringMachineDetectionConfig `json:"answering_machine_detection_config"`
	// Custom headers to be added to the SIP INVITE.
	CustomHeaders []CustomSipHeader `json:"custom_headers"`
	// Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
	ClientState OptString `json:"client_state"`
	// Use this field to add state to every subsequent webhook for the new leg. It must be a valid
	// Base-64 encoded string.
	TargetLegClientState OptString `json:"target_leg_client_state"`
	// Use this field to avoid duplicate commands. Telnyx will ignore any command with the same
	// `command_id` for the same `call_control_id`.
	CommandID OptString `json:"command_id"`
	// Defines whether media should be encrypted on the new call leg.
	MediaEncryption OptTransferCallRequestMediaEncryption `json:"media_encryption"`
	// SIP Authentication username used for SIP challenges.
	SipAuthUsername OptString `json:"sip_auth_username"`
	// SIP Authentication password used for SIP challenges.
	SipAuthPassword OptString `json:"sip_auth_password"`
	// SIP headers to be added to the SIP INVITE. Currently only User-to-User header is supported.
	SipHeaders []SipHeader `json:"sip_headers"`
	// Defines SIP transport protocol to be used on the call.
	SipTransportProtocol OptTransferCallRequestSipTransportProtocol `json:"sip_transport_protocol"`
	SoundModifications   OptSoundModifications                      `json:"sound_modifications"`
	// Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call.
	WebhookURL OptString `json:"webhook_url"`
	// HTTP request type used for `webhook_url`.
	WebhookURLMethod OptTransferCallRequestWebhookURLMethod `json:"webhook_url_method"`
}

Ref: #/components/schemas/TransferCallRequest

func (*TransferCallRequest) Decode

func (s *TransferCallRequest) Decode(d *jx.Decoder) error

Decode decodes TransferCallRequest from json.

func (*TransferCallRequest) Encode

func (s *TransferCallRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TransferCallRequest) GetAnsweringMachineDetection

func (s *TransferCallRequest) GetAnsweringMachineDetection() OptTransferCallRequestAnsweringMachineDetection

GetAnsweringMachineDetection returns the value of AnsweringMachineDetection.

func (*TransferCallRequest) GetAnsweringMachineDetectionConfig

func (s *TransferCallRequest) GetAnsweringMachineDetectionConfig() OptTransferCallRequestAnsweringMachineDetectionConfig

GetAnsweringMachineDetectionConfig returns the value of AnsweringMachineDetectionConfig.

func (*TransferCallRequest) GetAudioURL

func (s *TransferCallRequest) GetAudioURL() OptString

GetAudioURL returns the value of AudioURL.

func (*TransferCallRequest) GetClientState

func (s *TransferCallRequest) GetClientState() OptString

GetClientState returns the value of ClientState.

func (*TransferCallRequest) GetCommandID

func (s *TransferCallRequest) GetCommandID() OptString

GetCommandID returns the value of CommandID.

func (*TransferCallRequest) GetCustomHeaders

func (s *TransferCallRequest) GetCustomHeaders() []CustomSipHeader

GetCustomHeaders returns the value of CustomHeaders.

func (*TransferCallRequest) GetFrom

func (s *TransferCallRequest) GetFrom() OptString

GetFrom returns the value of From.

func (*TransferCallRequest) GetFromDisplayName

func (s *TransferCallRequest) GetFromDisplayName() OptString

GetFromDisplayName returns the value of FromDisplayName.

func (*TransferCallRequest) GetMediaEncryption

GetMediaEncryption returns the value of MediaEncryption.

func (*TransferCallRequest) GetMediaName

func (s *TransferCallRequest) GetMediaName() OptString

GetMediaName returns the value of MediaName.

func (*TransferCallRequest) GetSipAuthPassword

func (s *TransferCallRequest) GetSipAuthPassword() OptString

GetSipAuthPassword returns the value of SipAuthPassword.

func (*TransferCallRequest) GetSipAuthUsername

func (s *TransferCallRequest) GetSipAuthUsername() OptString

GetSipAuthUsername returns the value of SipAuthUsername.

func (*TransferCallRequest) GetSipHeaders

func (s *TransferCallRequest) GetSipHeaders() []SipHeader

GetSipHeaders returns the value of SipHeaders.

func (*TransferCallRequest) GetSipTransportProtocol

GetSipTransportProtocol returns the value of SipTransportProtocol.

func (*TransferCallRequest) GetSoundModifications

func (s *TransferCallRequest) GetSoundModifications() OptSoundModifications

GetSoundModifications returns the value of SoundModifications.

func (*TransferCallRequest) GetTargetLegClientState

func (s *TransferCallRequest) GetTargetLegClientState() OptString

GetTargetLegClientState returns the value of TargetLegClientState.

func (*TransferCallRequest) GetTimeLimitSecs

func (s *TransferCallRequest) GetTimeLimitSecs() OptInt32

GetTimeLimitSecs returns the value of TimeLimitSecs.

func (*TransferCallRequest) GetTimeoutSecs

func (s *TransferCallRequest) GetTimeoutSecs() OptInt32

GetTimeoutSecs returns the value of TimeoutSecs.

func (*TransferCallRequest) GetTo

func (s *TransferCallRequest) GetTo() string

GetTo returns the value of To.

func (*TransferCallRequest) GetWebhookURL

func (s *TransferCallRequest) GetWebhookURL() OptString

GetWebhookURL returns the value of WebhookURL.

func (*TransferCallRequest) GetWebhookURLMethod

GetWebhookURLMethod returns the value of WebhookURLMethod.

func (*TransferCallRequest) MarshalJSON

func (s *TransferCallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TransferCallRequest) SetAnsweringMachineDetection

func (s *TransferCallRequest) SetAnsweringMachineDetection(val OptTransferCallRequestAnsweringMachineDetection)

SetAnsweringMachineDetection sets the value of AnsweringMachineDetection.

func (*TransferCallRequest) SetAnsweringMachineDetectionConfig

func (s *TransferCallRequest) SetAnsweringMachineDetectionConfig(val OptTransferCallRequestAnsweringMachineDetectionConfig)

SetAnsweringMachineDetectionConfig sets the value of AnsweringMachineDetectionConfig.

func (*TransferCallRequest) SetAudioURL

func (s *TransferCallRequest) SetAudioURL(val OptString)

SetAudioURL sets the value of AudioURL.

func (*TransferCallRequest) SetClientState

func (s *TransferCallRequest) SetClientState(val OptString)

SetClientState sets the value of ClientState.

func (*TransferCallRequest) SetCommandID

func (s *TransferCallRequest) SetCommandID(val OptString)

SetCommandID sets the value of CommandID.

func (*TransferCallRequest) SetCustomHeaders

func (s *TransferCallRequest) SetCustomHeaders(val []CustomSipHeader)

SetCustomHeaders sets the value of CustomHeaders.

func (*TransferCallRequest) SetFrom

func (s *TransferCallRequest) SetFrom(val OptString)

SetFrom sets the value of From.

func (*TransferCallRequest) SetFromDisplayName

func (s *TransferCallRequest) SetFromDisplayName(val OptString)

SetFromDisplayName sets the value of FromDisplayName.

func (*TransferCallRequest) SetMediaEncryption

SetMediaEncryption sets the value of MediaEncryption.

func (*TransferCallRequest) SetMediaName

func (s *TransferCallRequest) SetMediaName(val OptString)

SetMediaName sets the value of MediaName.

func (*TransferCallRequest) SetSipAuthPassword

func (s *TransferCallRequest) SetSipAuthPassword(val OptString)

SetSipAuthPassword sets the value of SipAuthPassword.

func (*TransferCallRequest) SetSipAuthUsername

func (s *TransferCallRequest) SetSipAuthUsername(val OptString)

SetSipAuthUsername sets the value of SipAuthUsername.

func (*TransferCallRequest) SetSipHeaders

func (s *TransferCallRequest) SetSipHeaders(val []SipHeader)

SetSipHeaders sets the value of SipHeaders.

func (*TransferCallRequest) SetSipTransportProtocol

func (s *TransferCallRequest) SetSipTransportProtocol(val OptTransferCallRequestSipTransportProtocol)

SetSipTransportProtocol sets the value of SipTransportProtocol.

func (*TransferCallRequest) SetSoundModifications

func (s *TransferCallRequest) SetSoundModifications(val OptSoundModifications)

SetSoundModifications sets the value of SoundModifications.

func (*TransferCallRequest) SetTargetLegClientState

func (s *TransferCallRequest) SetTargetLegClientState(val OptString)

SetTargetLegClientState sets the value of TargetLegClientState.

func (*TransferCallRequest) SetTimeLimitSecs

func (s *TransferCallRequest) SetTimeLimitSecs(val OptInt32)

SetTimeLimitSecs sets the value of TimeLimitSecs.

func (*TransferCallRequest) SetTimeoutSecs

func (s *TransferCallRequest) SetTimeoutSecs(val OptInt32)

SetTimeoutSecs sets the value of TimeoutSecs.

func (*TransferCallRequest) SetTo

func (s *TransferCallRequest) SetTo(val string)

SetTo sets the value of To.

func (*TransferCallRequest) SetWebhookURL

func (s *TransferCallRequest) SetWebhookURL(val OptString)

SetWebhookURL sets the value of WebhookURL.

func (*TransferCallRequest) SetWebhookURLMethod

func (s *TransferCallRequest) SetWebhookURLMethod(val OptTransferCallRequestWebhookURLMethod)

SetWebhookURLMethod sets the value of WebhookURLMethod.

func (*TransferCallRequest) UnmarshalJSON

func (s *TransferCallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TransferCallRequest) Validate

func (s *TransferCallRequest) Validate() error

type TransferCallRequestAnsweringMachineDetection

type TransferCallRequestAnsweringMachineDetection string

Enables Answering Machine Detection. When a call is answered, Telnyx runs real-time detection to determine if it was picked up by a human or a machine and sends an `call.machine.detection.ended` webhook with the analysis result. If 'greeting_end' or 'detect_words' is used and a 'machine' is detected, you will receive another 'call.machine.greeting.ended' webhook when the answering machine greeting ends with a beep or silence. If `detect_beep` is used, you will only receive 'call.machine.greeting.ended' if a beep is detected.

const (
	TransferCallRequestAnsweringMachineDetectionPremium     TransferCallRequestAnsweringMachineDetection = "premium"
	TransferCallRequestAnsweringMachineDetectionDetect      TransferCallRequestAnsweringMachineDetection = "detect"
	TransferCallRequestAnsweringMachineDetectionDetectBeep  TransferCallRequestAnsweringMachineDetection = "detect_beep"
	TransferCallRequestAnsweringMachineDetectionDetectWords TransferCallRequestAnsweringMachineDetection = "detect_words"
	TransferCallRequestAnsweringMachineDetectionGreetingEnd TransferCallRequestAnsweringMachineDetection = "greeting_end"
	TransferCallRequestAnsweringMachineDetectionDisabled    TransferCallRequestAnsweringMachineDetection = "disabled"
)

func (TransferCallRequestAnsweringMachineDetection) AllValues

AllValues returns all TransferCallRequestAnsweringMachineDetection values.

func (*TransferCallRequestAnsweringMachineDetection) Decode

Decode decodes TransferCallRequestAnsweringMachineDetection from json.

func (TransferCallRequestAnsweringMachineDetection) Encode

Encode encodes TransferCallRequestAnsweringMachineDetection as json.

func (TransferCallRequestAnsweringMachineDetection) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (TransferCallRequestAnsweringMachineDetection) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*TransferCallRequestAnsweringMachineDetection) UnmarshalJSON

func (s *TransferCallRequestAnsweringMachineDetection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TransferCallRequestAnsweringMachineDetection) UnmarshalText

func (s *TransferCallRequestAnsweringMachineDetection) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TransferCallRequestAnsweringMachineDetection) Validate

type TransferCallRequestAnsweringMachineDetectionConfig

type TransferCallRequestAnsweringMachineDetectionConfig struct {
	// Maximum timeout threshold for overall detection.
	TotalAnalysisTimeMillis OptInt32 `json:"total_analysis_time_millis"`
	// Silence duration threshold after a greeting message or voice for it be considered human.
	AfterGreetingSilenceMillis OptInt32 `json:"after_greeting_silence_millis"`
	// Maximum threshold for silence between words.
	BetweenWordsSilenceMillis OptInt32 `json:"between_words_silence_millis"`
	// Maximum threshold of a human greeting. If greeting longer than this value, considered machine.
	GreetingDurationMillis OptInt32 `json:"greeting_duration_millis"`
	// If initial silence duration is greater than this value, consider it a machine.
	InitialSilenceMillis OptInt32 `json:"initial_silence_millis"`
	// If number of detected words is greater than this value, consder it a machine.
	MaximumNumberOfWords OptInt32 `json:"maximum_number_of_words"`
	// If a single word lasts longer than this threshold, consider it a machine.
	MaximumWordLengthMillis OptInt32 `json:"maximum_word_length_millis"`
	// Minimum noise threshold for any analysis.
	SilenceThreshold OptInt32 `json:"silence_threshold"`
	// If machine already detected, maximum timeout threshold to determine the end of the machine
	// greeting.
	GreetingTotalAnalysisTimeMillis OptInt32 `json:"greeting_total_analysis_time_millis"`
	// If machine already detected, maximum threshold for silence between words. If exceeded, the
	// greeting is considered ended.
	GreetingSilenceDurationMillis OptInt32 `json:"greeting_silence_duration_millis"`
}

Optional configuration parameters to modify 'answering_machine_detection' performance.

func (*TransferCallRequestAnsweringMachineDetectionConfig) Decode

Decode decodes TransferCallRequestAnsweringMachineDetectionConfig from json.

func (*TransferCallRequestAnsweringMachineDetectionConfig) Encode

Encode implements json.Marshaler.

func (*TransferCallRequestAnsweringMachineDetectionConfig) GetAfterGreetingSilenceMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) GetAfterGreetingSilenceMillis() OptInt32

GetAfterGreetingSilenceMillis returns the value of AfterGreetingSilenceMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) GetBetweenWordsSilenceMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) GetBetweenWordsSilenceMillis() OptInt32

GetBetweenWordsSilenceMillis returns the value of BetweenWordsSilenceMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) GetGreetingDurationMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) GetGreetingDurationMillis() OptInt32

GetGreetingDurationMillis returns the value of GreetingDurationMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) GetGreetingSilenceDurationMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) GetGreetingSilenceDurationMillis() OptInt32

GetGreetingSilenceDurationMillis returns the value of GreetingSilenceDurationMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) GetGreetingTotalAnalysisTimeMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) GetGreetingTotalAnalysisTimeMillis() OptInt32

GetGreetingTotalAnalysisTimeMillis returns the value of GreetingTotalAnalysisTimeMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) GetInitialSilenceMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) GetInitialSilenceMillis() OptInt32

GetInitialSilenceMillis returns the value of InitialSilenceMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) GetMaximumNumberOfWords

func (s *TransferCallRequestAnsweringMachineDetectionConfig) GetMaximumNumberOfWords() OptInt32

GetMaximumNumberOfWords returns the value of MaximumNumberOfWords.

func (*TransferCallRequestAnsweringMachineDetectionConfig) GetMaximumWordLengthMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) GetMaximumWordLengthMillis() OptInt32

GetMaximumWordLengthMillis returns the value of MaximumWordLengthMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) GetSilenceThreshold

GetSilenceThreshold returns the value of SilenceThreshold.

func (*TransferCallRequestAnsweringMachineDetectionConfig) GetTotalAnalysisTimeMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) GetTotalAnalysisTimeMillis() OptInt32

GetTotalAnalysisTimeMillis returns the value of TotalAnalysisTimeMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*TransferCallRequestAnsweringMachineDetectionConfig) SetAfterGreetingSilenceMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) SetAfterGreetingSilenceMillis(val OptInt32)

SetAfterGreetingSilenceMillis sets the value of AfterGreetingSilenceMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) SetBetweenWordsSilenceMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) SetBetweenWordsSilenceMillis(val OptInt32)

SetBetweenWordsSilenceMillis sets the value of BetweenWordsSilenceMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) SetGreetingDurationMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) SetGreetingDurationMillis(val OptInt32)

SetGreetingDurationMillis sets the value of GreetingDurationMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) SetGreetingSilenceDurationMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) SetGreetingSilenceDurationMillis(val OptInt32)

SetGreetingSilenceDurationMillis sets the value of GreetingSilenceDurationMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) SetGreetingTotalAnalysisTimeMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) SetGreetingTotalAnalysisTimeMillis(val OptInt32)

SetGreetingTotalAnalysisTimeMillis sets the value of GreetingTotalAnalysisTimeMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) SetInitialSilenceMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) SetInitialSilenceMillis(val OptInt32)

SetInitialSilenceMillis sets the value of InitialSilenceMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) SetMaximumNumberOfWords

func (s *TransferCallRequestAnsweringMachineDetectionConfig) SetMaximumNumberOfWords(val OptInt32)

SetMaximumNumberOfWords sets the value of MaximumNumberOfWords.

func (*TransferCallRequestAnsweringMachineDetectionConfig) SetMaximumWordLengthMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) SetMaximumWordLengthMillis(val OptInt32)

SetMaximumWordLengthMillis sets the value of MaximumWordLengthMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) SetSilenceThreshold

SetSilenceThreshold sets the value of SilenceThreshold.

func (*TransferCallRequestAnsweringMachineDetectionConfig) SetTotalAnalysisTimeMillis

func (s *TransferCallRequestAnsweringMachineDetectionConfig) SetTotalAnalysisTimeMillis(val OptInt32)

SetTotalAnalysisTimeMillis sets the value of TotalAnalysisTimeMillis.

func (*TransferCallRequestAnsweringMachineDetectionConfig) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type TransferCallRequestMediaEncryption

type TransferCallRequestMediaEncryption string

Defines whether media should be encrypted on the new call leg.

const (
	TransferCallRequestMediaEncryptionDisabled TransferCallRequestMediaEncryption = "disabled"
	TransferCallRequestMediaEncryptionSRTP     TransferCallRequestMediaEncryption = "SRTP"
)

func (TransferCallRequestMediaEncryption) AllValues

AllValues returns all TransferCallRequestMediaEncryption values.

func (*TransferCallRequestMediaEncryption) Decode

Decode decodes TransferCallRequestMediaEncryption from json.

func (TransferCallRequestMediaEncryption) Encode

Encode encodes TransferCallRequestMediaEncryption as json.

func (TransferCallRequestMediaEncryption) MarshalJSON

func (s TransferCallRequestMediaEncryption) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TransferCallRequestMediaEncryption) MarshalText

func (s TransferCallRequestMediaEncryption) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TransferCallRequestMediaEncryption) UnmarshalJSON

func (s *TransferCallRequestMediaEncryption) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TransferCallRequestMediaEncryption) UnmarshalText

func (s *TransferCallRequestMediaEncryption) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TransferCallRequestMediaEncryption) Validate

type TransferCallRequestSipTransportProtocol

type TransferCallRequestSipTransportProtocol string

Defines SIP transport protocol to be used on the call.

const (
	TransferCallRequestSipTransportProtocolUDP TransferCallRequestSipTransportProtocol = "UDP"
	TransferCallRequestSipTransportProtocolTCP TransferCallRequestSipTransportProtocol = "TCP"
	TransferCallRequestSipTransportProtocolTLS TransferCallRequestSipTransportProtocol = "TLS"
)

func (TransferCallRequestSipTransportProtocol) AllValues

AllValues returns all TransferCallRequestSipTransportProtocol values.

func (*TransferCallRequestSipTransportProtocol) Decode

Decode decodes TransferCallRequestSipTransportProtocol from json.

func (TransferCallRequestSipTransportProtocol) Encode

Encode encodes TransferCallRequestSipTransportProtocol as json.

func (TransferCallRequestSipTransportProtocol) MarshalJSON

func (s TransferCallRequestSipTransportProtocol) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TransferCallRequestSipTransportProtocol) MarshalText

func (s TransferCallRequestSipTransportProtocol) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TransferCallRequestSipTransportProtocol) UnmarshalJSON

func (s *TransferCallRequestSipTransportProtocol) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TransferCallRequestSipTransportProtocol) UnmarshalText

func (s *TransferCallRequestSipTransportProtocol) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TransferCallRequestSipTransportProtocol) Validate

type TransferCallRequestWebhookURLMethod

type TransferCallRequestWebhookURLMethod string

HTTP request type used for `webhook_url`.

const (
	TransferCallRequestWebhookURLMethodPOST TransferCallRequestWebhookURLMethod = "POST"
	TransferCallRequestWebhookURLMethodGET  TransferCallRequestWebhookURLMethod = "GET"
)

func (TransferCallRequestWebhookURLMethod) AllValues

AllValues returns all TransferCallRequestWebhookURLMethod values.

func (*TransferCallRequestWebhookURLMethod) Decode

Decode decodes TransferCallRequestWebhookURLMethod from json.

func (TransferCallRequestWebhookURLMethod) Encode

Encode encodes TransferCallRequestWebhookURLMethod as json.

func (TransferCallRequestWebhookURLMethod) MarshalJSON

func (s TransferCallRequestWebhookURLMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TransferCallRequestWebhookURLMethod) MarshalText

func (s TransferCallRequestWebhookURLMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TransferCallRequestWebhookURLMethod) UnmarshalJSON

func (s *TransferCallRequestWebhookURLMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TransferCallRequestWebhookURLMethod) UnmarshalText

func (s *TransferCallRequestWebhookURLMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TransferCallRequestWebhookURLMethod) Validate

type TransferCallRes

type TransferCallRes interface {
	// contains filtered or unexported methods
}

type TwimlRecordingChannels

type TwimlRecordingChannels int

Ref: #/components/schemas/TwimlRecordingChannels

const (
	TwimlRecordingChannels1 TwimlRecordingChannels = 1
	TwimlRecordingChannels2 TwimlRecordingChannels = 2
)

func (TwimlRecordingChannels) AllValues

AllValues returns all TwimlRecordingChannels values.

func (*TwimlRecordingChannels) Decode

func (s *TwimlRecordingChannels) Decode(d *jx.Decoder) error

Decode decodes TwimlRecordingChannels from json.

func (TwimlRecordingChannels) Encode

func (s TwimlRecordingChannels) Encode(e *jx.Encoder)

Encode encodes TwimlRecordingChannels as json.

func (TwimlRecordingChannels) MarshalJSON

func (s TwimlRecordingChannels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TwimlRecordingChannels) UnmarshalJSON

func (s *TwimlRecordingChannels) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (TwimlRecordingChannels) Validate

func (s TwimlRecordingChannels) Validate() error

type UUID

type UUID uuid.UUID

func (*UUID) Decode

func (s *UUID) Decode(d *jx.Decoder) error

Decode decodes UUID from json.

func (UUID) Encode

func (s UUID) Encode(e *jx.Encoder)

Encode encodes UUID as json.

func (UUID) MarshalJSON

func (s UUID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UUID) UnmarshalJSON

func (s *UUID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnassignPhoneNumberOK

type UnassignPhoneNumberOK struct{}

UnassignPhoneNumberOK is response for UnassignPhoneNumber operation.

type UnassignPhoneNumberParams

type UnassignPhoneNumberParams struct {
	// Channel zone identifier.
	ChannelZoneID string
	// The phone number to be looked up.
	PhoneNumber string
}

UnassignPhoneNumberParams is parameters of UnassignPhoneNumber operation.

type UnassignPhoneNumberRes

type UnassignPhoneNumberRes interface {
	// contains filtered or unexported methods
}

type UnauthorizedResponse

type UnauthorizedResponse struct{}

Ref: #/components/responses/UnauthorizedResponse

type UnprocessableEntityError

type UnprocessableEntityError struct {
	// Merged property.
	Code OptStringInt `json:"code"`
	// Merged property.
	Title OptString `json:"title"`
	// Merged property.
	Detail OptString `json:"detail"`
	// Merged property.
	Source OptUnprocessableEntityErrorSource `json:"source"`
	// Merged property.
	Meta OptUnprocessableEntityErrorMeta `json:"meta"`
}

Merged schema. Ref: #/components/schemas/UnprocessableEntityError

func (*UnprocessableEntityError) Decode

func (s *UnprocessableEntityError) Decode(d *jx.Decoder) error

Decode decodes UnprocessableEntityError from json.

func (*UnprocessableEntityError) Encode

func (s *UnprocessableEntityError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UnprocessableEntityError) GetCode

GetCode returns the value of Code.

func (*UnprocessableEntityError) GetDetail

func (s *UnprocessableEntityError) GetDetail() OptString

GetDetail returns the value of Detail.

func (*UnprocessableEntityError) GetMeta

GetMeta returns the value of Meta.

func (*UnprocessableEntityError) GetSource

GetSource returns the value of Source.

func (*UnprocessableEntityError) GetTitle

func (s *UnprocessableEntityError) GetTitle() OptString

GetTitle returns the value of Title.

func (*UnprocessableEntityError) MarshalJSON

func (s *UnprocessableEntityError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UnprocessableEntityError) SetCode

func (s *UnprocessableEntityError) SetCode(val OptStringInt)

SetCode sets the value of Code.

func (*UnprocessableEntityError) SetDetail

func (s *UnprocessableEntityError) SetDetail(val OptString)

SetDetail sets the value of Detail.

func (*UnprocessableEntityError) SetMeta

SetMeta sets the value of Meta.

func (*UnprocessableEntityError) SetSource

SetSource sets the value of Source.

func (*UnprocessableEntityError) SetTitle

func (s *UnprocessableEntityError) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*UnprocessableEntityError) UnmarshalJSON

func (s *UnprocessableEntityError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnprocessableEntityErrorMeta

type UnprocessableEntityErrorMeta struct {
	URL OptString `json:"url"`
}

Merged schema.

func (*UnprocessableEntityErrorMeta) Decode

Decode decodes UnprocessableEntityErrorMeta from json.

func (*UnprocessableEntityErrorMeta) Encode

func (s *UnprocessableEntityErrorMeta) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UnprocessableEntityErrorMeta) GetURL

GetURL returns the value of URL.

func (*UnprocessableEntityErrorMeta) MarshalJSON

func (s *UnprocessableEntityErrorMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UnprocessableEntityErrorMeta) SetURL

func (s *UnprocessableEntityErrorMeta) SetURL(val OptString)

SetURL sets the value of URL.

func (*UnprocessableEntityErrorMeta) UnmarshalJSON

func (s *UnprocessableEntityErrorMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnprocessableEntityErrorResponse

type UnprocessableEntityErrorResponse struct {
	Errors []UnprocessableEntityError `json:"errors"`
}

func (*UnprocessableEntityErrorResponse) Decode

Decode decodes UnprocessableEntityErrorResponse from json.

func (*UnprocessableEntityErrorResponse) Encode

Encode implements json.Marshaler.

func (*UnprocessableEntityErrorResponse) GetErrors

GetErrors returns the value of Errors.

func (*UnprocessableEntityErrorResponse) MarshalJSON

func (s *UnprocessableEntityErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UnprocessableEntityErrorResponse) SetErrors

SetErrors sets the value of Errors.

func (*UnprocessableEntityErrorResponse) UnmarshalJSON

func (s *UnprocessableEntityErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnprocessableEntityErrorSource

type UnprocessableEntityErrorSource struct {
	// Merged property.
	Pointer OptString `json:"pointer"`
	// Indicates which query parameter caused the error.
	Parameter OptString `json:"parameter"`
}

Merged schema.

func (*UnprocessableEntityErrorSource) Decode

Decode decodes UnprocessableEntityErrorSource from json.

func (*UnprocessableEntityErrorSource) Encode

Encode implements json.Marshaler.

func (*UnprocessableEntityErrorSource) GetParameter

func (s *UnprocessableEntityErrorSource) GetParameter() OptString

GetParameter returns the value of Parameter.

func (*UnprocessableEntityErrorSource) GetPointer

func (s *UnprocessableEntityErrorSource) GetPointer() OptString

GetPointer returns the value of Pointer.

func (*UnprocessableEntityErrorSource) MarshalJSON

func (s *UnprocessableEntityErrorSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UnprocessableEntityErrorSource) SetParameter

func (s *UnprocessableEntityErrorSource) SetParameter(val OptString)

SetParameter sets the value of Parameter.

func (*UnprocessableEntityErrorSource) SetPointer

func (s *UnprocessableEntityErrorSource) SetPointer(val OptString)

SetPointer sets the value of Pointer.

func (*UnprocessableEntityErrorSource) UnmarshalJSON

func (s *UnprocessableEntityErrorSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateBulkTelephonyCredentialParams

type UpdateBulkTelephonyCredentialParams struct {
	// Filter by tag, required by bulk operations.
	FilterTag string
}

UpdateBulkTelephonyCredentialParams is parameters of UpdateBulkTelephonyCredential operation.

type UpdateBulkTelephonyCredentialRes

type UpdateBulkTelephonyCredentialRes interface {
	// contains filtered or unexported methods
}

type UpdateBulkTelephonyCredentialUnprocessableEntity

type UpdateBulkTelephonyCredentialUnprocessableEntity struct{}

UpdateBulkTelephonyCredentialUnprocessableEntity is response for UpdateBulkTelephonyCredential operation.

type UpdateCallControlApplicationNotFound

type UpdateCallControlApplicationNotFound struct{}

UpdateCallControlApplicationNotFound is response for UpdateCallControlApplication operation.

type UpdateCallControlApplicationParams

type UpdateCallControlApplicationParams struct {
	// Identifies the resource.
	ID int64
}

UpdateCallControlApplicationParams is parameters of UpdateCallControlApplication operation.

type UpdateCallControlApplicationRequest

type UpdateCallControlApplicationRequest struct {
	// A user-assigned name to help manage the application.
	ApplicationName string `json:"application_name"`
	// The URL where webhooks related to this connection will be sent. Must include a scheme, such as
	// 'https'.
	WebhookEventURL string `json:"webhook_event_url"`
	// Specifies whether the connection can be used.
	Active             OptBool               `json:"active"`
	AnchorsiteOverride OptAnchorsiteOverride `json:"anchorsite_override"`
	// Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to
	// Telnyx will be accepted in all formats.
	DtmfType OptUpdateCallControlApplicationRequestDtmfType `json:"dtmf_type"`
	// Specifies whether calls to phone numbers associated with this connection should hangup after
	// timing out.
	FirstCommandTimeout OptBool `json:"first_command_timeout"`
	// Specifies how many seconds to wait before timing out a dial command.
	FirstCommandTimeoutSecs OptInt                            `json:"first_command_timeout_secs"`
	Inbound                 OptCallControlApplicationInbound  `json:"inbound"`
	Outbound                OptCallControlApplicationOutbound `json:"outbound"`
	// Determines which webhook format will be used, Telnyx API v1 or v2.
	WebhookAPIVersion OptUpdateCallControlApplicationRequestWebhookAPIVersion `json:"webhook_api_version"`
	// The failover URL where webhooks related to this connection will be sent if sending to the primary
	// URL fails. Must include a scheme, such as 'https'.
	WebhookEventFailoverURL OptNilString `json:"webhook_event_failover_url"`
	// Specifies how many seconds to wait before timing out a webhook.
	WebhookTimeoutSecs OptNilInt `json:"webhook_timeout_secs"`
}

Ref: #/components/schemas/UpdateCallControlApplicationRequest

func (*UpdateCallControlApplicationRequest) Decode

Decode decodes UpdateCallControlApplicationRequest from json.

func (*UpdateCallControlApplicationRequest) Encode

Encode implements json.Marshaler.

func (*UpdateCallControlApplicationRequest) GetActive

GetActive returns the value of Active.

func (*UpdateCallControlApplicationRequest) GetAnchorsiteOverride

GetAnchorsiteOverride returns the value of AnchorsiteOverride.

func (*UpdateCallControlApplicationRequest) GetApplicationName

func (s *UpdateCallControlApplicationRequest) GetApplicationName() string

GetApplicationName returns the value of ApplicationName.

func (*UpdateCallControlApplicationRequest) GetDtmfType

GetDtmfType returns the value of DtmfType.

func (*UpdateCallControlApplicationRequest) GetFirstCommandTimeout

func (s *UpdateCallControlApplicationRequest) GetFirstCommandTimeout() OptBool

GetFirstCommandTimeout returns the value of FirstCommandTimeout.

func (*UpdateCallControlApplicationRequest) GetFirstCommandTimeoutSecs

func (s *UpdateCallControlApplicationRequest) GetFirstCommandTimeoutSecs() OptInt

GetFirstCommandTimeoutSecs returns the value of FirstCommandTimeoutSecs.

func (*UpdateCallControlApplicationRequest) GetInbound

GetInbound returns the value of Inbound.

func (*UpdateCallControlApplicationRequest) GetOutbound

GetOutbound returns the value of Outbound.

func (*UpdateCallControlApplicationRequest) GetWebhookAPIVersion

GetWebhookAPIVersion returns the value of WebhookAPIVersion.

func (*UpdateCallControlApplicationRequest) GetWebhookEventFailoverURL

func (s *UpdateCallControlApplicationRequest) GetWebhookEventFailoverURL() OptNilString

GetWebhookEventFailoverURL returns the value of WebhookEventFailoverURL.

func (*UpdateCallControlApplicationRequest) GetWebhookEventURL

func (s *UpdateCallControlApplicationRequest) GetWebhookEventURL() string

GetWebhookEventURL returns the value of WebhookEventURL.

func (*UpdateCallControlApplicationRequest) GetWebhookTimeoutSecs

func (s *UpdateCallControlApplicationRequest) GetWebhookTimeoutSecs() OptNilInt

GetWebhookTimeoutSecs returns the value of WebhookTimeoutSecs.

func (*UpdateCallControlApplicationRequest) MarshalJSON

func (s *UpdateCallControlApplicationRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateCallControlApplicationRequest) SetActive

func (s *UpdateCallControlApplicationRequest) SetActive(val OptBool)

SetActive sets the value of Active.

func (*UpdateCallControlApplicationRequest) SetAnchorsiteOverride

func (s *UpdateCallControlApplicationRequest) SetAnchorsiteOverride(val OptAnchorsiteOverride)

SetAnchorsiteOverride sets the value of AnchorsiteOverride.

func (*UpdateCallControlApplicationRequest) SetApplicationName

func (s *UpdateCallControlApplicationRequest) SetApplicationName(val string)

SetApplicationName sets the value of ApplicationName.

func (*UpdateCallControlApplicationRequest) SetDtmfType

SetDtmfType sets the value of DtmfType.

func (*UpdateCallControlApplicationRequest) SetFirstCommandTimeout

func (s *UpdateCallControlApplicationRequest) SetFirstCommandTimeout(val OptBool)

SetFirstCommandTimeout sets the value of FirstCommandTimeout.

func (*UpdateCallControlApplicationRequest) SetFirstCommandTimeoutSecs

func (s *UpdateCallControlApplicationRequest) SetFirstCommandTimeoutSecs(val OptInt)

SetFirstCommandTimeoutSecs sets the value of FirstCommandTimeoutSecs.

func (*UpdateCallControlApplicationRequest) SetInbound

SetInbound sets the value of Inbound.

func (*UpdateCallControlApplicationRequest) SetOutbound

SetOutbound sets the value of Outbound.

func (*UpdateCallControlApplicationRequest) SetWebhookAPIVersion

SetWebhookAPIVersion sets the value of WebhookAPIVersion.

func (*UpdateCallControlApplicationRequest) SetWebhookEventFailoverURL

func (s *UpdateCallControlApplicationRequest) SetWebhookEventFailoverURL(val OptNilString)

SetWebhookEventFailoverURL sets the value of WebhookEventFailoverURL.

func (*UpdateCallControlApplicationRequest) SetWebhookEventURL

func (s *UpdateCallControlApplicationRequest) SetWebhookEventURL(val string)

SetWebhookEventURL sets the value of WebhookEventURL.

func (*UpdateCallControlApplicationRequest) SetWebhookTimeoutSecs

func (s *UpdateCallControlApplicationRequest) SetWebhookTimeoutSecs(val OptNilInt)

SetWebhookTimeoutSecs sets the value of WebhookTimeoutSecs.

func (*UpdateCallControlApplicationRequest) UnmarshalJSON

func (s *UpdateCallControlApplicationRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateCallControlApplicationRequest) Validate

type UpdateCallControlApplicationRequestDtmfType

type UpdateCallControlApplicationRequestDtmfType string

Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats.

const (
	UpdateCallControlApplicationRequestDtmfTypeRFC2833 UpdateCallControlApplicationRequestDtmfType = "RFC 2833"
	UpdateCallControlApplicationRequestDtmfTypeInband  UpdateCallControlApplicationRequestDtmfType = "Inband"
	UpdateCallControlApplicationRequestDtmfTypeSIPINFO UpdateCallControlApplicationRequestDtmfType = "SIP INFO"
)

func (UpdateCallControlApplicationRequestDtmfType) AllValues

AllValues returns all UpdateCallControlApplicationRequestDtmfType values.

func (*UpdateCallControlApplicationRequestDtmfType) Decode

Decode decodes UpdateCallControlApplicationRequestDtmfType from json.

func (UpdateCallControlApplicationRequestDtmfType) Encode

Encode encodes UpdateCallControlApplicationRequestDtmfType as json.

func (UpdateCallControlApplicationRequestDtmfType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (UpdateCallControlApplicationRequestDtmfType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpdateCallControlApplicationRequestDtmfType) UnmarshalJSON

func (s *UpdateCallControlApplicationRequestDtmfType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateCallControlApplicationRequestDtmfType) UnmarshalText

func (s *UpdateCallControlApplicationRequestDtmfType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateCallControlApplicationRequestDtmfType) Validate

type UpdateCallControlApplicationRequestWebhookAPIVersion

type UpdateCallControlApplicationRequestWebhookAPIVersion string

Determines which webhook format will be used, Telnyx API v1 or v2.

const (
	UpdateCallControlApplicationRequestWebhookAPIVersion1 UpdateCallControlApplicationRequestWebhookAPIVersion = "1"
	UpdateCallControlApplicationRequestWebhookAPIVersion2 UpdateCallControlApplicationRequestWebhookAPIVersion = "2"
)

func (UpdateCallControlApplicationRequestWebhookAPIVersion) AllValues

AllValues returns all UpdateCallControlApplicationRequestWebhookAPIVersion values.

func (*UpdateCallControlApplicationRequestWebhookAPIVersion) Decode

Decode decodes UpdateCallControlApplicationRequestWebhookAPIVersion from json.

func (UpdateCallControlApplicationRequestWebhookAPIVersion) Encode

Encode encodes UpdateCallControlApplicationRequestWebhookAPIVersion as json.

func (UpdateCallControlApplicationRequestWebhookAPIVersion) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (UpdateCallControlApplicationRequestWebhookAPIVersion) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpdateCallControlApplicationRequestWebhookAPIVersion) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateCallControlApplicationRequestWebhookAPIVersion) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateCallControlApplicationRequestWebhookAPIVersion) Validate

type UpdateCallControlApplicationRes

type UpdateCallControlApplicationRes interface {
	// contains filtered or unexported methods
}

type UpdateCallControlApplicationUnprocessableEntity

type UpdateCallControlApplicationUnprocessableEntity struct{}

UpdateCallControlApplicationUnprocessableEntity is response for UpdateCallControlApplication operation.

type UpdateCallRequest

type UpdateCallRequest struct {
	// The value to set the call status to. Setting the status to completed ends the call.
	Status OptString `json:"Status"`
	// The URL where TeXML will make a request to retrieve a new set of TeXML instructions to continue
	// the call flow.
	URL OptString `json:"Url"`
	// HTTP request type used for `Url`.
	Method OptUpdateCallRequestMethod `json:"Method"`
	// A failover URL for which Telnyx will retrieve the TeXML call instructions if the Url is not
	// responding.
	FallbackUrl OptString `json:"FallbackUrl"`
	// HTTP request type used for `FallbackUrl`.
	FallbackMethod OptUpdateCallRequestFallbackMethod `json:"FallbackMethod"`
	// URL destination for Telnyx to send status callback events to for the call.
	StatusCallback OptString `json:"StatusCallback"`
	// HTTP request type used for `StatusCallback`.
	StatusCallbackMethod OptUpdateCallRequestStatusCallbackMethod `json:"StatusCallbackMethod"`
	// TeXML to replace the current one with.
	Texml OptString `json:"Texml"`
}

Ref: #/components/schemas/UpdateCallRequest

func (*UpdateCallRequest) Decode

func (s *UpdateCallRequest) Decode(d *jx.Decoder) error

Decode decodes UpdateCallRequest from json.

func (*UpdateCallRequest) Encode

func (s *UpdateCallRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateCallRequest) GetFallbackMethod

GetFallbackMethod returns the value of FallbackMethod.

func (*UpdateCallRequest) GetFallbackUrl

func (s *UpdateCallRequest) GetFallbackUrl() OptString

GetFallbackUrl returns the value of FallbackUrl.

func (*UpdateCallRequest) GetMethod

GetMethod returns the value of Method.

func (*UpdateCallRequest) GetStatus

func (s *UpdateCallRequest) GetStatus() OptString

GetStatus returns the value of Status.

func (*UpdateCallRequest) GetStatusCallback

func (s *UpdateCallRequest) GetStatusCallback() OptString

GetStatusCallback returns the value of StatusCallback.

func (*UpdateCallRequest) GetStatusCallbackMethod

func (s *UpdateCallRequest) GetStatusCallbackMethod() OptUpdateCallRequestStatusCallbackMethod

GetStatusCallbackMethod returns the value of StatusCallbackMethod.

func (*UpdateCallRequest) GetTexml

func (s *UpdateCallRequest) GetTexml() OptString

GetTexml returns the value of Texml.

func (*UpdateCallRequest) GetURL

func (s *UpdateCallRequest) GetURL() OptString

GetURL returns the value of URL.

func (*UpdateCallRequest) MarshalJSON

func (s *UpdateCallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateCallRequest) SetFallbackMethod

func (s *UpdateCallRequest) SetFallbackMethod(val OptUpdateCallRequestFallbackMethod)

SetFallbackMethod sets the value of FallbackMethod.

func (*UpdateCallRequest) SetFallbackUrl

func (s *UpdateCallRequest) SetFallbackUrl(val OptString)

SetFallbackUrl sets the value of FallbackUrl.

func (*UpdateCallRequest) SetMethod

SetMethod sets the value of Method.

func (*UpdateCallRequest) SetStatus

func (s *UpdateCallRequest) SetStatus(val OptString)

SetStatus sets the value of Status.

func (*UpdateCallRequest) SetStatusCallback

func (s *UpdateCallRequest) SetStatusCallback(val OptString)

SetStatusCallback sets the value of StatusCallback.

func (*UpdateCallRequest) SetStatusCallbackMethod

func (s *UpdateCallRequest) SetStatusCallbackMethod(val OptUpdateCallRequestStatusCallbackMethod)

SetStatusCallbackMethod sets the value of StatusCallbackMethod.

func (*UpdateCallRequest) SetTexml

func (s *UpdateCallRequest) SetTexml(val OptString)

SetTexml sets the value of Texml.

func (*UpdateCallRequest) SetURL

func (s *UpdateCallRequest) SetURL(val OptString)

SetURL sets the value of URL.

func (*UpdateCallRequest) UnmarshalJSON

func (s *UpdateCallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateCallRequest) Validate

func (s *UpdateCallRequest) Validate() error

type UpdateCallRequestFallbackMethod

type UpdateCallRequestFallbackMethod string

HTTP request type used for `FallbackUrl`.

const (
	UpdateCallRequestFallbackMethodGET  UpdateCallRequestFallbackMethod = "GET"
	UpdateCallRequestFallbackMethodPOST UpdateCallRequestFallbackMethod = "POST"
)

func (UpdateCallRequestFallbackMethod) AllValues

AllValues returns all UpdateCallRequestFallbackMethod values.

func (*UpdateCallRequestFallbackMethod) Decode

Decode decodes UpdateCallRequestFallbackMethod from json.

func (UpdateCallRequestFallbackMethod) Encode

Encode encodes UpdateCallRequestFallbackMethod as json.

func (UpdateCallRequestFallbackMethod) MarshalJSON

func (s UpdateCallRequestFallbackMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UpdateCallRequestFallbackMethod) MarshalText

func (s UpdateCallRequestFallbackMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UpdateCallRequestFallbackMethod) UnmarshalJSON

func (s *UpdateCallRequestFallbackMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateCallRequestFallbackMethod) UnmarshalText

func (s *UpdateCallRequestFallbackMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateCallRequestFallbackMethod) Validate

type UpdateCallRequestMethod

type UpdateCallRequestMethod string

HTTP request type used for `Url`.

const (
	UpdateCallRequestMethodGET  UpdateCallRequestMethod = "GET"
	UpdateCallRequestMethodPOST UpdateCallRequestMethod = "POST"
)

func (UpdateCallRequestMethod) AllValues

AllValues returns all UpdateCallRequestMethod values.

func (*UpdateCallRequestMethod) Decode

func (s *UpdateCallRequestMethod) Decode(d *jx.Decoder) error

Decode decodes UpdateCallRequestMethod from json.

func (UpdateCallRequestMethod) Encode

func (s UpdateCallRequestMethod) Encode(e *jx.Encoder)

Encode encodes UpdateCallRequestMethod as json.

func (UpdateCallRequestMethod) MarshalJSON

func (s UpdateCallRequestMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UpdateCallRequestMethod) MarshalText

func (s UpdateCallRequestMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UpdateCallRequestMethod) UnmarshalJSON

func (s *UpdateCallRequestMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateCallRequestMethod) UnmarshalText

func (s *UpdateCallRequestMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateCallRequestMethod) Validate

func (s UpdateCallRequestMethod) Validate() error

type UpdateCallRequestStatusCallbackMethod

type UpdateCallRequestStatusCallbackMethod string

HTTP request type used for `StatusCallback`.

const (
	UpdateCallRequestStatusCallbackMethodGET  UpdateCallRequestStatusCallbackMethod = "GET"
	UpdateCallRequestStatusCallbackMethodPOST UpdateCallRequestStatusCallbackMethod = "POST"
)

func (UpdateCallRequestStatusCallbackMethod) AllValues

AllValues returns all UpdateCallRequestStatusCallbackMethod values.

func (*UpdateCallRequestStatusCallbackMethod) Decode

Decode decodes UpdateCallRequestStatusCallbackMethod from json.

func (UpdateCallRequestStatusCallbackMethod) Encode

Encode encodes UpdateCallRequestStatusCallbackMethod as json.

func (UpdateCallRequestStatusCallbackMethod) MarshalJSON

func (s UpdateCallRequestStatusCallbackMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UpdateCallRequestStatusCallbackMethod) MarshalText

func (s UpdateCallRequestStatusCallbackMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UpdateCallRequestStatusCallbackMethod) UnmarshalJSON

func (s *UpdateCallRequestStatusCallbackMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateCallRequestStatusCallbackMethod) UnmarshalText

func (s *UpdateCallRequestStatusCallbackMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateCallRequestStatusCallbackMethod) Validate

type UpdateClientStateParams

type UpdateClientStateParams struct {
	// Unique identifier and token for controlling the call.
	CallControlID string
}

UpdateClientStateParams is parameters of UpdateClientState operation.

type UpdateClientStateRes

type UpdateClientStateRes interface {
	// contains filtered or unexported methods
}

type UpdateCommandResult

type UpdateCommandResult struct {
	Sid    OptString `json:"sid"`
	Status OptString `json:"status"`
}

Ref: #/components/schemas/UpdateCommandResult

func (*UpdateCommandResult) Decode

func (s *UpdateCommandResult) Decode(d *jx.Decoder) error

Decode decodes UpdateCommandResult from json.

func (*UpdateCommandResult) Encode

func (s *UpdateCommandResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateCommandResult) GetSid

func (s *UpdateCommandResult) GetSid() OptString

GetSid returns the value of Sid.

func (*UpdateCommandResult) GetStatus

func (s *UpdateCommandResult) GetStatus() OptString

GetStatus returns the value of Status.

func (*UpdateCommandResult) MarshalJSON

func (s *UpdateCommandResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateCommandResult) SetSid

func (s *UpdateCommandResult) SetSid(val OptString)

SetSid sets the value of Sid.

func (*UpdateCommandResult) SetStatus

func (s *UpdateCommandResult) SetStatus(val OptString)

SetStatus sets the value of Status.

func (*UpdateCommandResult) UnmarshalJSON

func (s *UpdateCommandResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateConferenceParticipantRequest

type UpdateConferenceParticipantRequest struct {
	// Whether the participant should be muted.
	Muted OptBool `json:"Muted"`
	// Whether the participant should be on hold.
	Hold OptBool `json:"Hold"`
	// The URL to be called using the `HoldMethod` for music that plays when the participant is on hold.
	// The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`,
	// `<Pause>`, or `<Redirect>` verbs.
	HoldUrl OptString `json:"HoldUrl"`
	// The HTTP method to use when calling the `HoldUrl`.
	HoldMethod OptUpdateConferenceParticipantRequestHoldMethod `json:"HoldMethod"`
	// The URL to call to announce something to the participant. The URL may return an MP3 fileo a WAV
	// file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
	AnnounceUrl OptString `json:"AnnounceUrl"`
	// The HTTP method used to call the `AnnounceUrl`. Defaults to `POST`.
	AnnounceMethod OptUpdateConferenceParticipantRequestAnnounceMethod `json:"AnnounceMethod"`
	// The URL to call for an audio file to play while the participant is waiting for the conference to
	// start.
	WaitUrl OptString `json:"WaitUrl"`
	// Whether to play a notification beep to the conference when the participant exits.
	BeepOnExit OptBool `json:"BeepOnExit"`
	// Whether to end the conference when the participant leaves.
	EndConferenceOnExit OptBool `json:"EndConferenceOnExit"`
	// Whether the participant is coaching another call. When `true`, `CallSidToCoach` has to be given.
	Coaching OptBool `json:"Coaching"`
	// The SID of the participant who is being coached. The participant being coached is the only
	// participant who can hear the participant who is coaching.
	CallSidToCoach OptString `json:"CallSidToCoach"`
}

Ref: #/components/schemas/UpdateConferenceParticipantRequest

func (*UpdateConferenceParticipantRequest) GetAnnounceMethod

GetAnnounceMethod returns the value of AnnounceMethod.

func (*UpdateConferenceParticipantRequest) GetAnnounceUrl

func (s *UpdateConferenceParticipantRequest) GetAnnounceUrl() OptString

GetAnnounceUrl returns the value of AnnounceUrl.

func (*UpdateConferenceParticipantRequest) GetBeepOnExit

func (s *UpdateConferenceParticipantRequest) GetBeepOnExit() OptBool

GetBeepOnExit returns the value of BeepOnExit.

func (*UpdateConferenceParticipantRequest) GetCallSidToCoach

func (s *UpdateConferenceParticipantRequest) GetCallSidToCoach() OptString

GetCallSidToCoach returns the value of CallSidToCoach.

func (*UpdateConferenceParticipantRequest) GetCoaching

GetCoaching returns the value of Coaching.

func (*UpdateConferenceParticipantRequest) GetEndConferenceOnExit

func (s *UpdateConferenceParticipantRequest) GetEndConferenceOnExit() OptBool

GetEndConferenceOnExit returns the value of EndConferenceOnExit.

func (*UpdateConferenceParticipantRequest) GetHold

GetHold returns the value of Hold.

func (*UpdateConferenceParticipantRequest) GetHoldMethod

GetHoldMethod returns the value of HoldMethod.

func (*UpdateConferenceParticipantRequest) GetHoldUrl

GetHoldUrl returns the value of HoldUrl.

func (*UpdateConferenceParticipantRequest) GetMuted

GetMuted returns the value of Muted.

func (*UpdateConferenceParticipantRequest) GetWaitUrl

GetWaitUrl returns the value of WaitUrl.

func (*UpdateConferenceParticipantRequest) SetAnnounceMethod

SetAnnounceMethod sets the value of AnnounceMethod.

func (*UpdateConferenceParticipantRequest) SetAnnounceUrl

func (s *UpdateConferenceParticipantRequest) SetAnnounceUrl(val OptString)

SetAnnounceUrl sets the value of AnnounceUrl.

func (*UpdateConferenceParticipantRequest) SetBeepOnExit

func (s *UpdateConferenceParticipantRequest) SetBeepOnExit(val OptBool)

SetBeepOnExit sets the value of BeepOnExit.

func (*UpdateConferenceParticipantRequest) SetCallSidToCoach

func (s *UpdateConferenceParticipantRequest) SetCallSidToCoach(val OptString)

SetCallSidToCoach sets the value of CallSidToCoach.

func (*UpdateConferenceParticipantRequest) SetCoaching

func (s *UpdateConferenceParticipantRequest) SetCoaching(val OptBool)

SetCoaching sets the value of Coaching.

func (*UpdateConferenceParticipantRequest) SetEndConferenceOnExit

func (s *UpdateConferenceParticipantRequest) SetEndConferenceOnExit(val OptBool)

SetEndConferenceOnExit sets the value of EndConferenceOnExit.

func (*UpdateConferenceParticipantRequest) SetHold

SetHold sets the value of Hold.

func (*UpdateConferenceParticipantRequest) SetHoldMethod

SetHoldMethod sets the value of HoldMethod.

func (*UpdateConferenceParticipantRequest) SetHoldUrl

func (s *UpdateConferenceParticipantRequest) SetHoldUrl(val OptString)

SetHoldUrl sets the value of HoldUrl.

func (*UpdateConferenceParticipantRequest) SetMuted

SetMuted sets the value of Muted.

func (*UpdateConferenceParticipantRequest) SetWaitUrl

func (s *UpdateConferenceParticipantRequest) SetWaitUrl(val OptString)

SetWaitUrl sets the value of WaitUrl.

func (*UpdateConferenceParticipantRequest) Validate

type UpdateConferenceParticipantRequestAnnounceMethod

type UpdateConferenceParticipantRequestAnnounceMethod string

The HTTP method used to call the `AnnounceUrl`. Defaults to `POST`.

const (
	UpdateConferenceParticipantRequestAnnounceMethodGET  UpdateConferenceParticipantRequestAnnounceMethod = "GET"
	UpdateConferenceParticipantRequestAnnounceMethodPOST UpdateConferenceParticipantRequestAnnounceMethod = "POST"
)

func (UpdateConferenceParticipantRequestAnnounceMethod) AllValues

AllValues returns all UpdateConferenceParticipantRequestAnnounceMethod values.

func (UpdateConferenceParticipantRequestAnnounceMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpdateConferenceParticipantRequestAnnounceMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateConferenceParticipantRequestAnnounceMethod) Validate

type UpdateConferenceParticipantRequestHoldMethod

type UpdateConferenceParticipantRequestHoldMethod string

The HTTP method to use when calling the `HoldUrl`.

const (
	UpdateConferenceParticipantRequestHoldMethodGET  UpdateConferenceParticipantRequestHoldMethod = "GET"
	UpdateConferenceParticipantRequestHoldMethodPOST UpdateConferenceParticipantRequestHoldMethod = "POST"
)

func (UpdateConferenceParticipantRequestHoldMethod) AllValues

AllValues returns all UpdateConferenceParticipantRequestHoldMethod values.

func (UpdateConferenceParticipantRequestHoldMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpdateConferenceParticipantRequestHoldMethod) UnmarshalText

func (s *UpdateConferenceParticipantRequestHoldMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateConferenceParticipantRequestHoldMethod) Validate

type UpdateConferenceRequest

type UpdateConferenceRequest struct {
	// The new status of the resource. Specifying `completed` will end the conference and hang up all
	// participants.
	Status OptString `json:"Status"`
	// The URL we should call to announce something into the conference. The URL may return an MP3 file,
	// a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
	AnnounceUrl OptString `json:"AnnounceUrl"`
	// The HTTP method used to call the `AnnounceUrl`. Defaults to `POST`.
	AnnounceMethod OptUpdateConferenceRequestAnnounceMethod `json:"AnnounceMethod"`
}

Ref: #/components/schemas/UpdateConferenceRequest

func (*UpdateConferenceRequest) GetAnnounceMethod

GetAnnounceMethod returns the value of AnnounceMethod.

func (*UpdateConferenceRequest) GetAnnounceUrl

func (s *UpdateConferenceRequest) GetAnnounceUrl() OptString

GetAnnounceUrl returns the value of AnnounceUrl.

func (*UpdateConferenceRequest) GetStatus

func (s *UpdateConferenceRequest) GetStatus() OptString

GetStatus returns the value of Status.

func (*UpdateConferenceRequest) SetAnnounceMethod

SetAnnounceMethod sets the value of AnnounceMethod.

func (*UpdateConferenceRequest) SetAnnounceUrl

func (s *UpdateConferenceRequest) SetAnnounceUrl(val OptString)

SetAnnounceUrl sets the value of AnnounceUrl.

func (*UpdateConferenceRequest) SetStatus

func (s *UpdateConferenceRequest) SetStatus(val OptString)

SetStatus sets the value of Status.

func (*UpdateConferenceRequest) Validate

func (s *UpdateConferenceRequest) Validate() error

type UpdateConferenceRequestAnnounceMethod

type UpdateConferenceRequestAnnounceMethod string

The HTTP method used to call the `AnnounceUrl`. Defaults to `POST`.

const (
	UpdateConferenceRequestAnnounceMethodGET  UpdateConferenceRequestAnnounceMethod = "GET"
	UpdateConferenceRequestAnnounceMethodPOST UpdateConferenceRequestAnnounceMethod = "POST"
)

func (UpdateConferenceRequestAnnounceMethod) AllValues

AllValues returns all UpdateConferenceRequestAnnounceMethod values.

func (UpdateConferenceRequestAnnounceMethod) MarshalText

func (s UpdateConferenceRequestAnnounceMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UpdateConferenceRequestAnnounceMethod) UnmarshalText

func (s *UpdateConferenceRequestAnnounceMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateConferenceRequestAnnounceMethod) Validate

type UpdateCustomStorageCredentialsParams

type UpdateCustomStorageCredentialsParams struct {
	// Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource.
	ConnectionID string
}

UpdateCustomStorageCredentialsParams is parameters of UpdateCustomStorageCredentials operation.

type UpdateCustomStorageCredentialsRes

type UpdateCustomStorageCredentialsRes interface {
	// contains filtered or unexported methods
}

type UpdateExternalConnectionPhoneNumberNotFound

type UpdateExternalConnectionPhoneNumberNotFound struct{}

UpdateExternalConnectionPhoneNumberNotFound is response for UpdateExternalConnectionPhoneNumber operation.

type UpdateExternalConnectionPhoneNumberParams

type UpdateExternalConnectionPhoneNumberParams struct {
	// Identifies the resource.
	ID int64
	// A phone number's ID via the Telnyx API.
	PhoneNumberID string
}

UpdateExternalConnectionPhoneNumberParams is parameters of UpdateExternalConnectionPhoneNumber operation.

type UpdateExternalConnectionPhoneNumberRequest

type UpdateExternalConnectionPhoneNumberRequest struct {
	// Identifies the location to assign the phone number to.
	LocationID OptUUID `json:"location_id"`
}

Ref: #/components/schemas/UpdateExternalConnectionPhoneNumberRequest

func (*UpdateExternalConnectionPhoneNumberRequest) Decode

Decode decodes UpdateExternalConnectionPhoneNumberRequest from json.

func (*UpdateExternalConnectionPhoneNumberRequest) Encode

Encode implements json.Marshaler.

func (*UpdateExternalConnectionPhoneNumberRequest) GetLocationID

GetLocationID returns the value of LocationID.

func (*UpdateExternalConnectionPhoneNumberRequest) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*UpdateExternalConnectionPhoneNumberRequest) SetLocationID

SetLocationID sets the value of LocationID.

func (*UpdateExternalConnectionPhoneNumberRequest) UnmarshalJSON

func (s *UpdateExternalConnectionPhoneNumberRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateExternalConnectionPhoneNumberRes

type UpdateExternalConnectionPhoneNumberRes interface {
	// contains filtered or unexported methods
}

type UpdateExternalConnectionPhoneNumberUnauthorized

type UpdateExternalConnectionPhoneNumberUnauthorized struct{}

UpdateExternalConnectionPhoneNumberUnauthorized is response for UpdateExternalConnectionPhoneNumber operation.

type UpdateExternalConnectionPhoneNumberUnprocessableEntity

type UpdateExternalConnectionPhoneNumberUnprocessableEntity struct{}

UpdateExternalConnectionPhoneNumberUnprocessableEntity is response for UpdateExternalConnectionPhoneNumber operation.

type UpdateLoaConfigurationInternalServerError

type UpdateLoaConfigurationInternalServerError struct{}

UpdateLoaConfigurationInternalServerError is response for UpdateLoaConfiguration operation.

type UpdateLoaConfigurationNotFound

type UpdateLoaConfigurationNotFound struct{}

UpdateLoaConfigurationNotFound is response for UpdateLoaConfiguration operation.

type UpdateLoaConfigurationParams

type UpdateLoaConfigurationParams struct {
	// Identifies a LOA configuration.
	ID uuid.UUID
}

UpdateLoaConfigurationParams is parameters of UpdateLoaConfiguration operation.

type UpdateLoaConfigurationReq

type UpdateLoaConfigurationReq struct {
	// The name of the LOA configuration.
	Name string `json:"name"`
	Logo UpdateLoaConfigurationReqLogo `json:"logo"`
	// The name of the company.
	CompanyName string `json:"company_name"`
	// The address of the company.
	Address UpdateLoaConfigurationReqAddress `json:"address"`
	// The contact information of the company.
	Contact UpdateLoaConfigurationReqContact `json:"contact"`
}

The parameters for creating a new LOA configuration.

func (*UpdateLoaConfigurationReq) Decode

func (s *UpdateLoaConfigurationReq) Decode(d *jx.Decoder) error

Decode decodes UpdateLoaConfigurationReq from json.

func (*UpdateLoaConfigurationReq) Encode

func (s *UpdateLoaConfigurationReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateLoaConfigurationReq) GetAddress

GetAddress returns the value of Address.

func (*UpdateLoaConfigurationReq) GetCompanyName

func (s *UpdateLoaConfigurationReq) GetCompanyName() string

GetCompanyName returns the value of CompanyName.

func (*UpdateLoaConfigurationReq) GetContact

GetContact returns the value of Contact.

GetLogo returns the value of Logo.

func (*UpdateLoaConfigurationReq) GetName

func (s *UpdateLoaConfigurationReq) GetName() string

GetName returns the value of Name.

func (*UpdateLoaConfigurationReq) MarshalJSON

func (s *UpdateLoaConfigurationReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateLoaConfigurationReq) SetAddress

SetAddress sets the value of Address.

func (*UpdateLoaConfigurationReq) SetCompanyName

func (s *UpdateLoaConfigurationReq) SetCompanyName(val string)

SetCompanyName sets the value of CompanyName.

func (*UpdateLoaConfigurationReq) SetContact

SetContact sets the value of Contact.

SetLogo sets the value of Logo.

func (*UpdateLoaConfigurationReq) SetName

func (s *UpdateLoaConfigurationReq) SetName(val string)

SetName sets the value of Name.

func (*UpdateLoaConfigurationReq) UnmarshalJSON

func (s *UpdateLoaConfigurationReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateLoaConfigurationReq) Validate

func (s *UpdateLoaConfigurationReq) Validate() error

type UpdateLoaConfigurationReqAddress

type UpdateLoaConfigurationReqAddress struct {
	// The street address of the company.
	StreetAddress string `json:"street_address"`
	// The extended address of the company.
	ExtendedAddress OptString `json:"extended_address"`
	// The locality of the company.
	City OptString `json:"city"`
	// The administrative area of the company.
	State OptString `json:"state"`
	// The postal code of the company.
	ZipCode OptString `json:"zip_code"`
	// The country code of the company.
	CountryCode string `json:"country_code"`
}

The address of the company.

func (*UpdateLoaConfigurationReqAddress) Decode

Decode decodes UpdateLoaConfigurationReqAddress from json.

func (*UpdateLoaConfigurationReqAddress) Encode

Encode implements json.Marshaler.

func (*UpdateLoaConfigurationReqAddress) GetCity

GetCity returns the value of City.

func (*UpdateLoaConfigurationReqAddress) GetCountryCode

func (s *UpdateLoaConfigurationReqAddress) GetCountryCode() string

GetCountryCode returns the value of CountryCode.

func (*UpdateLoaConfigurationReqAddress) GetExtendedAddress

func (s *UpdateLoaConfigurationReqAddress) GetExtendedAddress() OptString

GetExtendedAddress returns the value of ExtendedAddress.

func (*UpdateLoaConfigurationReqAddress) GetState

GetState returns the value of State.

func (*UpdateLoaConfigurationReqAddress) GetStreetAddress

func (s *UpdateLoaConfigurationReqAddress) GetStreetAddress() string

GetStreetAddress returns the value of StreetAddress.

func (*UpdateLoaConfigurationReqAddress) GetZipCode

GetZipCode returns the value of ZipCode.

func (*UpdateLoaConfigurationReqAddress) MarshalJSON

func (s *UpdateLoaConfigurationReqAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateLoaConfigurationReqAddress) SetCity

SetCity sets the value of City.

func (*UpdateLoaConfigurationReqAddress) SetCountryCode

func (s *UpdateLoaConfigurationReqAddress) SetCountryCode(val string)

SetCountryCode sets the value of CountryCode.

func (*UpdateLoaConfigurationReqAddress) SetExtendedAddress

func (s *UpdateLoaConfigurationReqAddress) SetExtendedAddress(val OptString)

SetExtendedAddress sets the value of ExtendedAddress.

func (*UpdateLoaConfigurationReqAddress) SetState

SetState sets the value of State.

func (*UpdateLoaConfigurationReqAddress) SetStreetAddress

func (s *UpdateLoaConfigurationReqAddress) SetStreetAddress(val string)

SetStreetAddress sets the value of StreetAddress.

func (*UpdateLoaConfigurationReqAddress) SetZipCode

func (s *UpdateLoaConfigurationReqAddress) SetZipCode(val OptString)

SetZipCode sets the value of ZipCode.

func (*UpdateLoaConfigurationReqAddress) UnmarshalJSON

func (s *UpdateLoaConfigurationReqAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateLoaConfigurationReqAddress) Validate

type UpdateLoaConfigurationReqContact

type UpdateLoaConfigurationReqContact struct {
	// The email address of the contact.
	Email string `json:"email"`
	// The phone number of the contact.
	PhoneNumber string `json:"phone_number"`
}

The contact information of the company.

func (*UpdateLoaConfigurationReqContact) Decode

Decode decodes UpdateLoaConfigurationReqContact from json.

func (*UpdateLoaConfigurationReqContact) Encode

Encode implements json.Marshaler.

func (*UpdateLoaConfigurationReqContact) GetEmail

GetEmail returns the value of Email.

func (*UpdateLoaConfigurationReqContact) GetPhoneNumber

func (s *UpdateLoaConfigurationReqContact) GetPhoneNumber() string

GetPhoneNumber returns the value of PhoneNumber.

func (*UpdateLoaConfigurationReqContact) MarshalJSON

func (s *UpdateLoaConfigurationReqContact) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateLoaConfigurationReqContact) SetEmail

func (s *UpdateLoaConfigurationReqContact) SetEmail(val string)

SetEmail sets the value of Email.

func (*UpdateLoaConfigurationReqContact) SetPhoneNumber

func (s *UpdateLoaConfigurationReqContact) SetPhoneNumber(val string)

SetPhoneNumber sets the value of PhoneNumber.

func (*UpdateLoaConfigurationReqContact) UnmarshalJSON

func (s *UpdateLoaConfigurationReqContact) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateLoaConfigurationReqContact) Validate

type UpdateLoaConfigurationReqLogo struct {
	// The document identification.
	DocumentID uuid.UUID `json:"document_id"`
}

The logo of the LOA configuration.

func (*UpdateLoaConfigurationReqLogo) Decode

Decode decodes UpdateLoaConfigurationReqLogo from json.

func (*UpdateLoaConfigurationReqLogo) Encode

Encode implements json.Marshaler.

func (*UpdateLoaConfigurationReqLogo) GetDocumentID

func (s *UpdateLoaConfigurationReqLogo) GetDocumentID() uuid.UUID

GetDocumentID returns the value of DocumentID.

func (*UpdateLoaConfigurationReqLogo) MarshalJSON

func (s *UpdateLoaConfigurationReqLogo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateLoaConfigurationReqLogo) SetDocumentID

func (s *UpdateLoaConfigurationReqLogo) SetDocumentID(val uuid.UUID)

SetDocumentID sets the value of DocumentID.

func (*UpdateLoaConfigurationReqLogo) UnmarshalJSON

func (s *UpdateLoaConfigurationReqLogo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateLoaConfigurationRes

type UpdateLoaConfigurationRes interface {
	// contains filtered or unexported methods
}

type UpdateLoaConfigurationUnprocessableEntity

type UpdateLoaConfigurationUnprocessableEntity struct{}

UpdateLoaConfigurationUnprocessableEntity is response for UpdateLoaConfiguration operation.

type UpdateNetworkParams

type UpdateNetworkParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

UpdateNetworkParams is parameters of UpdateNetwork operation.

type UpdateNetworkRes

type UpdateNetworkRes interface {
	// contains filtered or unexported methods
}

type UpdateNotificationChannelOK

type UpdateNotificationChannelOK struct {
	Data OptNotificationChannel `json:"data"`
}

func (*UpdateNotificationChannelOK) Decode

Decode decodes UpdateNotificationChannelOK from json.

func (*UpdateNotificationChannelOK) Encode

func (s *UpdateNotificationChannelOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateNotificationChannelOK) GetData

GetData returns the value of Data.

func (*UpdateNotificationChannelOK) MarshalJSON

func (s *UpdateNotificationChannelOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateNotificationChannelOK) SetData

SetData sets the value of Data.

func (*UpdateNotificationChannelOK) UnmarshalJSON

func (s *UpdateNotificationChannelOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateNotificationChannelOK) Validate

func (s *UpdateNotificationChannelOK) Validate() error

type UpdateNotificationChannelParams

type UpdateNotificationChannelParams struct {
	// Identifies the resource.
	ID uuid.UUID
}

UpdateNotificationChannelParams is parameters of UpdateNotificationChannel operation.

type UpdateNotificationChannelRes

type UpdateNotificationChannelRes interface {
	// contains filtered or unexported methods
}

type UpdateNumberOrderDocumentParams

type UpdateNumberOrderDocumentParams struct {
	// The number order document ID.
	NumberOrderDocumentID string
}

UpdateNumberOrderDocumentParams is parameters of UpdateNumberOrderDocument operation.

type UpdateNumberOrderDocumentRequest

type UpdateNumberOrderDocumentRequest struct {
	ID         OptUUID   `json:"id"`
	RecordType OptString `json:"record_type"`
	// The id of the file to associate as a number order document.
	FileID OptString `json:"file_id"`
	// Unique id for a requirement.
	RequirementsID OptString `json:"requirements_id"`
	// A customer reference string for customer look ups.
	CustomerReference OptString                                          `json:"customer_reference"`
	RequirementType   OptUpdateNumberOrderDocumentRequestRequirementType `json:"requirement_type"`
	// An ISO 8901 datetime string denoting when the number order document was uploaded.
	CreatedAt OptString `json:"created_at"`
}

Ref: #/components/schemas/UpdateNumberOrderDocumentRequest

func (*UpdateNumberOrderDocumentRequest) Decode

Decode decodes UpdateNumberOrderDocumentRequest from json.

func (*UpdateNumberOrderDocumentRequest) Encode

Encode implements json.Marshaler.

func (*UpdateNumberOrderDocumentRequest) GetCreatedAt

func (s *UpdateNumberOrderDocumentRequest) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*UpdateNumberOrderDocumentRequest) GetCustomerReference

func (s *UpdateNumberOrderDocumentRequest) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*UpdateNumberOrderDocumentRequest) GetFileID

GetFileID returns the value of FileID.

func (*UpdateNumberOrderDocumentRequest) GetID

GetID returns the value of ID.

func (*UpdateNumberOrderDocumentRequest) GetRecordType

func (s *UpdateNumberOrderDocumentRequest) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*UpdateNumberOrderDocumentRequest) GetRequirementType

GetRequirementType returns the value of RequirementType.

func (*UpdateNumberOrderDocumentRequest) GetRequirementsID

func (s *UpdateNumberOrderDocumentRequest) GetRequirementsID() OptString

GetRequirementsID returns the value of RequirementsID.

func (*UpdateNumberOrderDocumentRequest) MarshalJSON

func (s *UpdateNumberOrderDocumentRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateNumberOrderDocumentRequest) SetCreatedAt

func (s *UpdateNumberOrderDocumentRequest) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*UpdateNumberOrderDocumentRequest) SetCustomerReference

func (s *UpdateNumberOrderDocumentRequest) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*UpdateNumberOrderDocumentRequest) SetFileID

func (s *UpdateNumberOrderDocumentRequest) SetFileID(val OptString)

SetFileID sets the value of FileID.

func (*UpdateNumberOrderDocumentRequest) SetID

SetID sets the value of ID.

func (*UpdateNumberOrderDocumentRequest) SetRecordType

func (s *UpdateNumberOrderDocumentRequest) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*UpdateNumberOrderDocumentRequest) SetRequirementType

SetRequirementType sets the value of RequirementType.

func (*UpdateNumberOrderDocumentRequest) SetRequirementsID

func (s *UpdateNumberOrderDocumentRequest) SetRequirementsID(val OptString)

SetRequirementsID sets the value of RequirementsID.

func (*UpdateNumberOrderDocumentRequest) UnmarshalJSON

func (s *UpdateNumberOrderDocumentRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateNumberOrderDocumentRequest) Validate

type UpdateNumberOrderDocumentRequestRequirementType

type UpdateNumberOrderDocumentRequestRequirementType string
const (
	UpdateNumberOrderDocumentRequestRequirementTypeAddressProof   UpdateNumberOrderDocumentRequestRequirementType = "address_proof"
	UpdateNumberOrderDocumentRequestRequirementTypeIdentification UpdateNumberOrderDocumentRequestRequirementType = "identification"
	UpdateNumberOrderDocumentRequestRequirementTypeRegForm        UpdateNumberOrderDocumentRequestRequirementType = "reg_form"
)

func (UpdateNumberOrderDocumentRequestRequirementType) AllValues

AllValues returns all UpdateNumberOrderDocumentRequestRequirementType values.

func (*UpdateNumberOrderDocumentRequestRequirementType) Decode

Decode decodes UpdateNumberOrderDocumentRequestRequirementType from json.

func (UpdateNumberOrderDocumentRequestRequirementType) Encode

Encode encodes UpdateNumberOrderDocumentRequestRequirementType as json.

func (UpdateNumberOrderDocumentRequestRequirementType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (UpdateNumberOrderDocumentRequestRequirementType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpdateNumberOrderDocumentRequestRequirementType) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateNumberOrderDocumentRequestRequirementType) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateNumberOrderDocumentRequestRequirementType) Validate

type UpdateNumberOrderDocumentRes

type UpdateNumberOrderDocumentRes interface {
	// contains filtered or unexported methods
}

type UpdateNumberOrderPhoneNumberParams

type UpdateNumberOrderPhoneNumberParams struct {
	// The number order phone number ID.
	NumberOrderPhoneNumberID string
}

UpdateNumberOrderPhoneNumberParams is parameters of UpdateNumberOrderPhoneNumber operation.

type UpdateNumberOrderPhoneNumberRequest

type UpdateNumberOrderPhoneNumberRequest struct {
	RegulatoryRequirements []UpdateRegulatoryRequirement `json:"regulatory_requirements"`
}

Ref: #/components/schemas/UpdateNumberOrderPhoneNumberRequest

func (*UpdateNumberOrderPhoneNumberRequest) Decode

Decode decodes UpdateNumberOrderPhoneNumberRequest from json.

func (*UpdateNumberOrderPhoneNumberRequest) Encode

Encode implements json.Marshaler.

func (*UpdateNumberOrderPhoneNumberRequest) GetRegulatoryRequirements

func (s *UpdateNumberOrderPhoneNumberRequest) GetRegulatoryRequirements() []UpdateRegulatoryRequirement

GetRegulatoryRequirements returns the value of RegulatoryRequirements.

func (*UpdateNumberOrderPhoneNumberRequest) MarshalJSON

func (s *UpdateNumberOrderPhoneNumberRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateNumberOrderPhoneNumberRequest) SetRegulatoryRequirements

func (s *UpdateNumberOrderPhoneNumberRequest) SetRegulatoryRequirements(val []UpdateRegulatoryRequirement)

SetRegulatoryRequirements sets the value of RegulatoryRequirements.

func (*UpdateNumberOrderPhoneNumberRequest) UnmarshalJSON

func (s *UpdateNumberOrderPhoneNumberRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateNumberOrderPhoneNumberRes

type UpdateNumberOrderPhoneNumberRes interface {
	// contains filtered or unexported methods
}

type UpdateOutboundChannelsDef

type UpdateOutboundChannelsDef struct {
	Errors []UpdateOutboundChannelsDefErrorsItem `json:"errors"`
}

func (*UpdateOutboundChannelsDef) Decode

func (s *UpdateOutboundChannelsDef) Decode(d *jx.Decoder) error

Decode decodes UpdateOutboundChannelsDef from json.

func (*UpdateOutboundChannelsDef) Encode

func (s *UpdateOutboundChannelsDef) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateOutboundChannelsDef) GetErrors

GetErrors returns the value of Errors.

func (*UpdateOutboundChannelsDef) MarshalJSON

func (s *UpdateOutboundChannelsDef) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOutboundChannelsDef) SetErrors

SetErrors sets the value of Errors.

func (*UpdateOutboundChannelsDef) UnmarshalJSON

func (s *UpdateOutboundChannelsDef) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOutboundChannelsDefErrorsItem

type UpdateOutboundChannelsDefErrorsItem struct {
	Code   int                                          `json:"code"`
	Title  string                                       `json:"title"`
	Detail OptString                                    `json:"detail"`
	Source OptUpdateOutboundChannelsDefErrorsItemSource `json:"source"`
	Meta   OptUpdateOutboundChannelsDefErrorsItemMeta   `json:"meta"`
}

func (*UpdateOutboundChannelsDefErrorsItem) Decode

Decode decodes UpdateOutboundChannelsDefErrorsItem from json.

func (*UpdateOutboundChannelsDefErrorsItem) Encode

Encode implements json.Marshaler.

func (*UpdateOutboundChannelsDefErrorsItem) GetCode

GetCode returns the value of Code.

func (*UpdateOutboundChannelsDefErrorsItem) GetDetail

GetDetail returns the value of Detail.

func (*UpdateOutboundChannelsDefErrorsItem) GetMeta

GetMeta returns the value of Meta.

func (*UpdateOutboundChannelsDefErrorsItem) GetSource

GetSource returns the value of Source.

func (*UpdateOutboundChannelsDefErrorsItem) GetTitle

GetTitle returns the value of Title.

func (*UpdateOutboundChannelsDefErrorsItem) MarshalJSON

func (s *UpdateOutboundChannelsDefErrorsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOutboundChannelsDefErrorsItem) SetCode

func (s *UpdateOutboundChannelsDefErrorsItem) SetCode(val int)

SetCode sets the value of Code.

func (*UpdateOutboundChannelsDefErrorsItem) SetDetail

SetDetail sets the value of Detail.

func (*UpdateOutboundChannelsDefErrorsItem) SetMeta

SetMeta sets the value of Meta.

func (*UpdateOutboundChannelsDefErrorsItem) SetSource

SetSource sets the value of Source.

func (*UpdateOutboundChannelsDefErrorsItem) SetTitle

SetTitle sets the value of Title.

func (*UpdateOutboundChannelsDefErrorsItem) UnmarshalJSON

func (s *UpdateOutboundChannelsDefErrorsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOutboundChannelsDefErrorsItemMeta

type UpdateOutboundChannelsDefErrorsItemMeta map[string]jx.Raw

func (*UpdateOutboundChannelsDefErrorsItemMeta) Decode

Decode decodes UpdateOutboundChannelsDefErrorsItemMeta from json.

func (UpdateOutboundChannelsDefErrorsItemMeta) Encode

Encode implements json.Marshaler.

func (UpdateOutboundChannelsDefErrorsItemMeta) MarshalJSON

func (s UpdateOutboundChannelsDefErrorsItemMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOutboundChannelsDefErrorsItemMeta) UnmarshalJSON

func (s *UpdateOutboundChannelsDefErrorsItemMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOutboundChannelsDefErrorsItemSource

type UpdateOutboundChannelsDefErrorsItemSource struct {
	// JSON pointer (RFC6901) to the offending entity.
	Pointer OptString `json:"pointer"`
	// Indicates which query parameter caused the error.
	Parameter OptString `json:"parameter"`
}

func (*UpdateOutboundChannelsDefErrorsItemSource) Decode

Decode decodes UpdateOutboundChannelsDefErrorsItemSource from json.

func (*UpdateOutboundChannelsDefErrorsItemSource) Encode

Encode implements json.Marshaler.

func (*UpdateOutboundChannelsDefErrorsItemSource) GetParameter

GetParameter returns the value of Parameter.

func (*UpdateOutboundChannelsDefErrorsItemSource) GetPointer

GetPointer returns the value of Pointer.

func (*UpdateOutboundChannelsDefErrorsItemSource) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOutboundChannelsDefErrorsItemSource) SetParameter

SetParameter sets the value of Parameter.

func (*UpdateOutboundChannelsDefErrorsItemSource) SetPointer

SetPointer sets the value of Pointer.

func (*UpdateOutboundChannelsDefErrorsItemSource) UnmarshalJSON

func (s *UpdateOutboundChannelsDefErrorsItemSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOutboundChannelsDefStatusCode

type UpdateOutboundChannelsDefStatusCode struct {
	StatusCode int
	Response   UpdateOutboundChannelsDef
}

UpdateOutboundChannelsDefStatusCode wraps UpdateOutboundChannelsDef with StatusCode.

func (*UpdateOutboundChannelsDefStatusCode) GetResponse

GetResponse returns the value of Response.

func (*UpdateOutboundChannelsDefStatusCode) GetStatusCode

func (s *UpdateOutboundChannelsDefStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*UpdateOutboundChannelsDefStatusCode) SetResponse

SetResponse sets the value of Response.

func (*UpdateOutboundChannelsDefStatusCode) SetStatusCode

func (s *UpdateOutboundChannelsDefStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type UpdateOutboundChannelsOK

type UpdateOutboundChannelsOK struct {
	Data OptUpdateOutboundChannelsOKData `json:"data"`
}

func (*UpdateOutboundChannelsOK) Decode

func (s *UpdateOutboundChannelsOK) Decode(d *jx.Decoder) error

Decode decodes UpdateOutboundChannelsOK from json.

func (*UpdateOutboundChannelsOK) Encode

func (s *UpdateOutboundChannelsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateOutboundChannelsOK) GetData

GetData returns the value of Data.

func (*UpdateOutboundChannelsOK) MarshalJSON

func (s *UpdateOutboundChannelsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOutboundChannelsOK) SetData

SetData sets the value of Data.

func (*UpdateOutboundChannelsOK) UnmarshalJSON

func (s *UpdateOutboundChannelsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOutboundChannelsOKData

type UpdateOutboundChannelsOKData struct {
	// The number of channels set for the account.
	Channels OptInt `json:"channels"`
	// Identifies the type of the response.
	RecordType OptString `json:"record_type"`
}

func (*UpdateOutboundChannelsOKData) Decode

Decode decodes UpdateOutboundChannelsOKData from json.

func (*UpdateOutboundChannelsOKData) Encode

func (s *UpdateOutboundChannelsOKData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateOutboundChannelsOKData) GetChannels

func (s *UpdateOutboundChannelsOKData) GetChannels() OptInt

GetChannels returns the value of Channels.

func (*UpdateOutboundChannelsOKData) GetRecordType

func (s *UpdateOutboundChannelsOKData) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*UpdateOutboundChannelsOKData) MarshalJSON

func (s *UpdateOutboundChannelsOKData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOutboundChannelsOKData) SetChannels

func (s *UpdateOutboundChannelsOKData) SetChannels(val OptInt)

SetChannels sets the value of Channels.

func (*UpdateOutboundChannelsOKData) SetRecordType

func (s *UpdateOutboundChannelsOKData) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*UpdateOutboundChannelsOKData) UnmarshalJSON

func (s *UpdateOutboundChannelsOKData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOutboundChannelsReq

type UpdateOutboundChannelsReq struct {
	// The new number of concurrent channels for the account.
	Channels int `json:"channels"`
}

func (*UpdateOutboundChannelsReq) Decode

func (s *UpdateOutboundChannelsReq) Decode(d *jx.Decoder) error

Decode decodes UpdateOutboundChannelsReq from json.

func (*UpdateOutboundChannelsReq) Encode

func (s *UpdateOutboundChannelsReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateOutboundChannelsReq) GetChannels

func (s *UpdateOutboundChannelsReq) GetChannels() int

GetChannels returns the value of Channels.

func (*UpdateOutboundChannelsReq) MarshalJSON

func (s *UpdateOutboundChannelsReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOutboundChannelsReq) SetChannels

func (s *UpdateOutboundChannelsReq) SetChannels(val int)

SetChannels sets the value of Channels.

func (*UpdateOutboundChannelsReq) UnmarshalJSON

func (s *UpdateOutboundChannelsReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateOutboundChannelsRes

type UpdateOutboundChannelsRes interface {
	// contains filtered or unexported methods
}

type UpdateOutboundVoiceProfileNotFound

type UpdateOutboundVoiceProfileNotFound struct{}

UpdateOutboundVoiceProfileNotFound is response for UpdateOutboundVoiceProfile operation.

type UpdateOutboundVoiceProfileParams

type UpdateOutboundVoiceProfileParams struct {
	// Identifies the resource.
	ID int64
}

UpdateOutboundVoiceProfileParams is parameters of UpdateOutboundVoiceProfile operation.

type UpdateOutboundVoiceProfileRequest

type UpdateOutboundVoiceProfileRequest struct {
	// A user-supplied name to help with organization.
	Name        string         `json:"name"`
	TrafficType OptTrafficType `json:"traffic_type"`
	ServicePlan OptServicePlan `json:"service_plan"`
	// Must be no more than your global concurrent call limit. Null means no limit.
	ConcurrentCallLimit OptNilInt `json:"concurrent_call_limit"`
	// Specifies whether the outbound voice profile can be used. Disabled profiles will result in
	// outbound calls being blocked for the associated Connections.
	Enabled            OptBool               `json:"enabled"`
	Tags               []string              `json:"tags"`
	UsagePaymentMethod OptUsagePaymentMethod `json:"usage_payment_method"`
	// The list of destinations you want to be able to call using this outbound voice profile formatted
	// in alpha2.
	WhitelistedDestinations []string `json:"whitelisted_destinations"`
	// Maximum rate (price per minute) for a Destination to be allowed when making outbound calls.
	MaxDestinationRate OptFloat64 `json:"max_destination_rate"`
	// The maximum amount of usage charges, in USD, you want Telnyx to allow on this outbound voice
	// profile in a day before disallowing new calls.
	DailySpendLimit OptString `json:"daily_spend_limit"`
	// Specifies whether to enforce the daily_spend_limit on this outbound voice profile.
	DailySpendLimitEnabled OptBool                  `json:"daily_spend_limit_enabled"`
	CallRecording          OptOutboundCallRecording `json:"call_recording"`
	// The ID of the billing group associated with the outbound proflile. Defaults to null (for no group
	// assigned).
	BillingGroupID OptNilUUID `json:"billing_group_id"`
}

Ref: #/components/schemas/UpdateOutboundVoiceProfileRequest

func (*UpdateOutboundVoiceProfileRequest) Decode

Decode decodes UpdateOutboundVoiceProfileRequest from json.

func (*UpdateOutboundVoiceProfileRequest) Encode

Encode implements json.Marshaler.

func (*UpdateOutboundVoiceProfileRequest) GetBillingGroupID

func (s *UpdateOutboundVoiceProfileRequest) GetBillingGroupID() OptNilUUID

GetBillingGroupID returns the value of BillingGroupID.

func (*UpdateOutboundVoiceProfileRequest) GetCallRecording

GetCallRecording returns the value of CallRecording.

func (*UpdateOutboundVoiceProfileRequest) GetConcurrentCallLimit

func (s *UpdateOutboundVoiceProfileRequest) GetConcurrentCallLimit() OptNilInt

GetConcurrentCallLimit returns the value of ConcurrentCallLimit.

func (*UpdateOutboundVoiceProfileRequest) GetDailySpendLimit

func (s *UpdateOutboundVoiceProfileRequest) GetDailySpendLimit() OptString

GetDailySpendLimit returns the value of DailySpendLimit.

func (*UpdateOutboundVoiceProfileRequest) GetDailySpendLimitEnabled

func (s *UpdateOutboundVoiceProfileRequest) GetDailySpendLimitEnabled() OptBool

GetDailySpendLimitEnabled returns the value of DailySpendLimitEnabled.

func (*UpdateOutboundVoiceProfileRequest) GetEnabled

GetEnabled returns the value of Enabled.

func (*UpdateOutboundVoiceProfileRequest) GetMaxDestinationRate

func (s *UpdateOutboundVoiceProfileRequest) GetMaxDestinationRate() OptFloat64

GetMaxDestinationRate returns the value of MaxDestinationRate.

func (*UpdateOutboundVoiceProfileRequest) GetName

GetName returns the value of Name.

func (*UpdateOutboundVoiceProfileRequest) GetServicePlan

GetServicePlan returns the value of ServicePlan.

func (*UpdateOutboundVoiceProfileRequest) GetTags

GetTags returns the value of Tags.

func (*UpdateOutboundVoiceProfileRequest) GetTrafficType

GetTrafficType returns the value of TrafficType.

func (*UpdateOutboundVoiceProfileRequest) GetUsagePaymentMethod

func (s *UpdateOutboundVoiceProfileRequest) GetUsagePaymentMethod() OptUsagePaymentMethod

GetUsagePaymentMethod returns the value of UsagePaymentMethod.

func (*UpdateOutboundVoiceProfileRequest) GetWhitelistedDestinations

func (s *UpdateOutboundVoiceProfileRequest) GetWhitelistedDestinations() []string

GetWhitelistedDestinations returns the value of WhitelistedDestinations.

func (*UpdateOutboundVoiceProfileRequest) MarshalJSON

func (s *UpdateOutboundVoiceProfileRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateOutboundVoiceProfileRequest) SetBillingGroupID

func (s *UpdateOutboundVoiceProfileRequest) SetBillingGroupID(val OptNilUUID)

SetBillingGroupID sets the value of BillingGroupID.

func (*UpdateOutboundVoiceProfileRequest) SetCallRecording

SetCallRecording sets the value of CallRecording.

func (*UpdateOutboundVoiceProfileRequest) SetConcurrentCallLimit

func (s *UpdateOutboundVoiceProfileRequest) SetConcurrentCallLimit(val OptNilInt)

SetConcurrentCallLimit sets the value of ConcurrentCallLimit.

func (*UpdateOutboundVoiceProfileRequest) SetDailySpendLimit

func (s *UpdateOutboundVoiceProfileRequest) SetDailySpendLimit(val OptString)

SetDailySpendLimit sets the value of DailySpendLimit.

func (*UpdateOutboundVoiceProfileRequest) SetDailySpendLimitEnabled

func (s *UpdateOutboundVoiceProfileRequest) SetDailySpendLimitEnabled(val OptBool)

SetDailySpendLimitEnabled sets the value of DailySpendLimitEnabled.

func (*UpdateOutboundVoiceProfileRequest) SetEnabled

func (s *UpdateOutboundVoiceProfileRequest) SetEnabled(val OptBool)

SetEnabled sets the value of Enabled.

func (*UpdateOutboundVoiceProfileRequest) SetMaxDestinationRate

func (s *UpdateOutboundVoiceProfileRequest) SetMaxDestinationRate(val OptFloat64)

SetMaxDestinationRate sets the value of MaxDestinationRate.

func (*UpdateOutboundVoiceProfileRequest) SetName

func (s *UpdateOutboundVoiceProfileRequest) SetName(val string)

SetName sets the value of Name.

func (*UpdateOutboundVoiceProfileRequest) SetServicePlan

func (s *UpdateOutboundVoiceProfileRequest) SetServicePlan(val OptServicePlan)

SetServicePlan sets the value of ServicePlan.

func (*UpdateOutboundVoiceProfileRequest) SetTags

func (s *UpdateOutboundVoiceProfileRequest) SetTags(val []string)

SetTags sets the value of Tags.

func (*UpdateOutboundVoiceProfileRequest) SetTrafficType

func (s *UpdateOutboundVoiceProfileRequest) SetTrafficType(val OptTrafficType)

SetTrafficType sets the value of TrafficType.

func (*UpdateOutboundVoiceProfileRequest) SetUsagePaymentMethod

func (s *UpdateOutboundVoiceProfileRequest) SetUsagePaymentMethod(val OptUsagePaymentMethod)

SetUsagePaymentMethod sets the value of UsagePaymentMethod.

func (*UpdateOutboundVoiceProfileRequest) SetWhitelistedDestinations

func (s *UpdateOutboundVoiceProfileRequest) SetWhitelistedDestinations(val []string)

SetWhitelistedDestinations sets the value of WhitelistedDestinations.

func (*UpdateOutboundVoiceProfileRequest) UnmarshalJSON

func (s *UpdateOutboundVoiceProfileRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateOutboundVoiceProfileRequest) Validate

type UpdateOutboundVoiceProfileRes

type UpdateOutboundVoiceProfileRes interface {
	// contains filtered or unexported methods
}

type UpdateOutboundVoiceProfileUnauthorized

type UpdateOutboundVoiceProfileUnauthorized struct{}

UpdateOutboundVoiceProfileUnauthorized is response for UpdateOutboundVoiceProfile operation.

type UpdateOutboundVoiceProfileUnprocessableEntity

type UpdateOutboundVoiceProfileUnprocessableEntity struct{}

UpdateOutboundVoiceProfileUnprocessableEntity is response for UpdateOutboundVoiceProfile operation.

type UpdatePhoneNumberMessagingSettingsParams

type UpdatePhoneNumberMessagingSettingsParams struct {
	// Identifies the type of resource.
	ID string
}

UpdatePhoneNumberMessagingSettingsParams is parameters of UpdatePhoneNumberMessagingSettings operation.

type UpdatePhoneNumberMessagingSettingsRequest

type UpdatePhoneNumberMessagingSettingsRequest struct {
	// Unique identifier for a messaging profile.
	MessagingProfileID OptString `json:"messaging_profile_id"`
	// The requested messaging product the number should be on.
	MessagingProduct OptString `json:"messaging_product"`
}

Ref: #/components/schemas/UpdatePhoneNumberMessagingSettingsRequest

func (*UpdatePhoneNumberMessagingSettingsRequest) Decode

Decode decodes UpdatePhoneNumberMessagingSettingsRequest from json.

func (*UpdatePhoneNumberMessagingSettingsRequest) Encode

Encode implements json.Marshaler.

func (*UpdatePhoneNumberMessagingSettingsRequest) GetMessagingProduct

func (s *UpdatePhoneNumberMessagingSettingsRequest) GetMessagingProduct() OptString

GetMessagingProduct returns the value of MessagingProduct.

func (*UpdatePhoneNumberMessagingSettingsRequest) GetMessagingProfileID

func (s *UpdatePhoneNumberMessagingSettingsRequest) GetMessagingProfileID() OptString

GetMessagingProfileID returns the value of MessagingProfileID.

func (*UpdatePhoneNumberMessagingSettingsRequest) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*UpdatePhoneNumberMessagingSettingsRequest) SetMessagingProduct

func (s *UpdatePhoneNumberMessagingSettingsRequest) SetMessagingProduct(val OptString)

SetMessagingProduct sets the value of MessagingProduct.

func (*UpdatePhoneNumberMessagingSettingsRequest) SetMessagingProfileID

func (s *UpdatePhoneNumberMessagingSettingsRequest) SetMessagingProfileID(val OptString)

SetMessagingProfileID sets the value of MessagingProfileID.

func (*UpdatePhoneNumberMessagingSettingsRequest) UnmarshalJSON

func (s *UpdatePhoneNumberMessagingSettingsRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdatePhoneNumberMessagingSettingsRes

type UpdatePhoneNumberMessagingSettingsRes interface {
	// contains filtered or unexported methods
}

type UpdatePhoneNumberParams

type UpdatePhoneNumberParams struct {
	// Identifies the resource.
	ID int64
}

UpdatePhoneNumberParams is parameters of UpdatePhoneNumber operation.

type UpdatePhoneNumberRequest

type UpdatePhoneNumberRequest struct {
	// Identifies the type of resource.
	ID OptString `json:"id"`
	// A list of user-assigned tags to help organize phone numbers.
	Tags []string `json:"tags"`
	// If someone attempts to port your phone number away from Telnyx and your phone number has an
	// external PIN set, we will attempt to verify that you provided the correct external PIN to the
	// winning carrier. Note that not all carriers cooperate with this security mechanism.
	ExternalPin OptString `json:"external_pin"`
	// Indicates whether HD voice is enabled for this number.
	HdVoiceEnabled OptBool `json:"hd_voice_enabled"`
	// A customer reference string for customer look ups.
	CustomerReference OptString `json:"customer_reference"`
	// Identifies the connection associated with the phone number.
	ConnectionID OptString `json:"connection_id"`
	// Identifies the billing group associated with the phone number.
	BillingGroupID OptString `json:"billing_group_id"`
	// Deprecated field, the only value for this is 'disabled'. All routing for numbers should be
	// configured via connection settings.
	NumberLevelRouting OptUpdatePhoneNumberRequestNumberLevelRouting `json:"number_level_routing"`
}

Ref: #/components/schemas/UpdatePhoneNumberRequest

func (*UpdatePhoneNumberRequest) Decode

func (s *UpdatePhoneNumberRequest) Decode(d *jx.Decoder) error

Decode decodes UpdatePhoneNumberRequest from json.

func (*UpdatePhoneNumberRequest) Encode

func (s *UpdatePhoneNumberRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdatePhoneNumberRequest) GetBillingGroupID

func (s *UpdatePhoneNumberRequest) GetBillingGroupID() OptString

GetBillingGroupID returns the value of BillingGroupID.

func (*UpdatePhoneNumberRequest) GetConnectionID

func (s *UpdatePhoneNumberRequest) GetConnectionID() OptString

GetConnectionID returns the value of ConnectionID.

func (*UpdatePhoneNumberRequest) GetCustomerReference

func (s *UpdatePhoneNumberRequest) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*UpdatePhoneNumberRequest) GetExternalPin

func (s *UpdatePhoneNumberRequest) GetExternalPin() OptString

GetExternalPin returns the value of ExternalPin.

func (*UpdatePhoneNumberRequest) GetHdVoiceEnabled

func (s *UpdatePhoneNumberRequest) GetHdVoiceEnabled() OptBool

GetHdVoiceEnabled returns the value of HdVoiceEnabled.

func (*UpdatePhoneNumberRequest) GetID

GetID returns the value of ID.

func (*UpdatePhoneNumberRequest) GetNumberLevelRouting

GetNumberLevelRouting returns the value of NumberLevelRouting.

func (*UpdatePhoneNumberRequest) GetTags

func (s *UpdatePhoneNumberRequest) GetTags() []string

GetTags returns the value of Tags.

func (*UpdatePhoneNumberRequest) MarshalJSON

func (s *UpdatePhoneNumberRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdatePhoneNumberRequest) SetBillingGroupID

func (s *UpdatePhoneNumberRequest) SetBillingGroupID(val OptString)

SetBillingGroupID sets the value of BillingGroupID.

func (*UpdatePhoneNumberRequest) SetConnectionID

func (s *UpdatePhoneNumberRequest) SetConnectionID(val OptString)

SetConnectionID sets the value of ConnectionID.

func (*UpdatePhoneNumberRequest) SetCustomerReference

func (s *UpdatePhoneNumberRequest) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*UpdatePhoneNumberRequest) SetExternalPin

func (s *UpdatePhoneNumberRequest) SetExternalPin(val OptString)

SetExternalPin sets the value of ExternalPin.

func (*UpdatePhoneNumberRequest) SetHdVoiceEnabled

func (s *UpdatePhoneNumberRequest) SetHdVoiceEnabled(val OptBool)

SetHdVoiceEnabled sets the value of HdVoiceEnabled.

func (*UpdatePhoneNumberRequest) SetID

func (s *UpdatePhoneNumberRequest) SetID(val OptString)

SetID sets the value of ID.

func (*UpdatePhoneNumberRequest) SetNumberLevelRouting

SetNumberLevelRouting sets the value of NumberLevelRouting.

func (*UpdatePhoneNumberRequest) SetTags

func (s *UpdatePhoneNumberRequest) SetTags(val []string)

SetTags sets the value of Tags.

func (*UpdatePhoneNumberRequest) UnmarshalJSON

func (s *UpdatePhoneNumberRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdatePhoneNumberRequest) Validate

func (s *UpdatePhoneNumberRequest) Validate() error

type UpdatePhoneNumberRequestNumberLevelRouting

type UpdatePhoneNumberRequestNumberLevelRouting string

Deprecated field, the only value for this is 'disabled'. All routing for numbers should be configured via connection settings.

const (
	UpdatePhoneNumberRequestNumberLevelRoutingDisabled UpdatePhoneNumberRequestNumberLevelRouting = "disabled"
)

func (UpdatePhoneNumberRequestNumberLevelRouting) AllValues

AllValues returns all UpdatePhoneNumberRequestNumberLevelRouting values.

func (*UpdatePhoneNumberRequestNumberLevelRouting) Decode

Decode decodes UpdatePhoneNumberRequestNumberLevelRouting from json.

func (UpdatePhoneNumberRequestNumberLevelRouting) Encode

Encode encodes UpdatePhoneNumberRequestNumberLevelRouting as json.

func (UpdatePhoneNumberRequestNumberLevelRouting) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (UpdatePhoneNumberRequestNumberLevelRouting) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpdatePhoneNumberRequestNumberLevelRouting) UnmarshalJSON

func (s *UpdatePhoneNumberRequestNumberLevelRouting) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdatePhoneNumberRequestNumberLevelRouting) UnmarshalText

func (s *UpdatePhoneNumberRequestNumberLevelRouting) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdatePhoneNumberRequestNumberLevelRouting) Validate

type UpdatePhoneNumberRes

type UpdatePhoneNumberRes interface {
	// contains filtered or unexported methods
}

type UpdatePhoneNumberVoiceSettingsParams

type UpdatePhoneNumberVoiceSettingsParams struct {
	// Identifies the resource.
	ID int64
}

UpdatePhoneNumberVoiceSettingsParams is parameters of UpdatePhoneNumberVoiceSettings operation.

type UpdatePhoneNumberVoiceSettingsRequest

type UpdatePhoneNumberVoiceSettingsRequest struct {
	// Controls whether a tech prefix is enabled for this phone number.
	TechPrefixEnabled OptBool `json:"tech_prefix_enabled"`
	// This field allows you to rewrite the destination number of an inbound call before the call is
	// routed to you. The value of this field may be any alphanumeric value, and the value will replace
	// the number originally dialed.
	TranslatedNumber OptString `json:"translated_number"`
	// Controls whether the caller ID name is enabled for this phone number.
	CallerIDNameEnabled OptBool           `json:"caller_id_name_enabled"`
	CallForwarding      OptCallForwarding `json:"call_forwarding"`
	CnamListing         OptCnamListing    `json:"cnam_listing"`
	// Controls whether a number is billed per minute or uses your concurrent channels.
	UsagePaymentMethod OptUpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod `json:"usage_payment_method"`
	MediaFeatures      OptMediaFeatures                                           `json:"media_features"`
	CallRecording      OptCallRecording                                           `json:"call_recording"`
	// The inbound_call_screening setting is a phone number configuration option variable that allows
	// users to configure their settings to block or flag fraudulent calls. It can be set to disabled,
	// reject_calls, or flag_calls. This feature has an additional per-number monthly cost associated
	// with it.
	InboundCallScreening OptUpdatePhoneNumberVoiceSettingsRequestInboundCallScreening `json:"inbound_call_screening"`
}

Ref: #/components/schemas/UpdatePhoneNumberVoiceSettingsRequest

func (*UpdatePhoneNumberVoiceSettingsRequest) Decode

Decode decodes UpdatePhoneNumberVoiceSettingsRequest from json.

func (*UpdatePhoneNumberVoiceSettingsRequest) Encode

Encode implements json.Marshaler.

func (*UpdatePhoneNumberVoiceSettingsRequest) GetCallForwarding

GetCallForwarding returns the value of CallForwarding.

func (*UpdatePhoneNumberVoiceSettingsRequest) GetCallRecording

GetCallRecording returns the value of CallRecording.

func (*UpdatePhoneNumberVoiceSettingsRequest) GetCallerIDNameEnabled

func (s *UpdatePhoneNumberVoiceSettingsRequest) GetCallerIDNameEnabled() OptBool

GetCallerIDNameEnabled returns the value of CallerIDNameEnabled.

func (*UpdatePhoneNumberVoiceSettingsRequest) GetCnamListing

GetCnamListing returns the value of CnamListing.

func (*UpdatePhoneNumberVoiceSettingsRequest) GetInboundCallScreening

GetInboundCallScreening returns the value of InboundCallScreening.

func (*UpdatePhoneNumberVoiceSettingsRequest) GetMediaFeatures

GetMediaFeatures returns the value of MediaFeatures.

func (*UpdatePhoneNumberVoiceSettingsRequest) GetTechPrefixEnabled

func (s *UpdatePhoneNumberVoiceSettingsRequest) GetTechPrefixEnabled() OptBool

GetTechPrefixEnabled returns the value of TechPrefixEnabled.

func (*UpdatePhoneNumberVoiceSettingsRequest) GetTranslatedNumber

func (s *UpdatePhoneNumberVoiceSettingsRequest) GetTranslatedNumber() OptString

GetTranslatedNumber returns the value of TranslatedNumber.

func (*UpdatePhoneNumberVoiceSettingsRequest) GetUsagePaymentMethod

GetUsagePaymentMethod returns the value of UsagePaymentMethod.

func (*UpdatePhoneNumberVoiceSettingsRequest) MarshalJSON

func (s *UpdatePhoneNumberVoiceSettingsRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdatePhoneNumberVoiceSettingsRequest) SetCallForwarding

func (s *UpdatePhoneNumberVoiceSettingsRequest) SetCallForwarding(val OptCallForwarding)

SetCallForwarding sets the value of CallForwarding.

func (*UpdatePhoneNumberVoiceSettingsRequest) SetCallRecording

SetCallRecording sets the value of CallRecording.

func (*UpdatePhoneNumberVoiceSettingsRequest) SetCallerIDNameEnabled

func (s *UpdatePhoneNumberVoiceSettingsRequest) SetCallerIDNameEnabled(val OptBool)

SetCallerIDNameEnabled sets the value of CallerIDNameEnabled.

func (*UpdatePhoneNumberVoiceSettingsRequest) SetCnamListing

SetCnamListing sets the value of CnamListing.

func (*UpdatePhoneNumberVoiceSettingsRequest) SetInboundCallScreening

SetInboundCallScreening sets the value of InboundCallScreening.

func (*UpdatePhoneNumberVoiceSettingsRequest) SetMediaFeatures

SetMediaFeatures sets the value of MediaFeatures.

func (*UpdatePhoneNumberVoiceSettingsRequest) SetTechPrefixEnabled

func (s *UpdatePhoneNumberVoiceSettingsRequest) SetTechPrefixEnabled(val OptBool)

SetTechPrefixEnabled sets the value of TechPrefixEnabled.

func (*UpdatePhoneNumberVoiceSettingsRequest) SetTranslatedNumber

func (s *UpdatePhoneNumberVoiceSettingsRequest) SetTranslatedNumber(val OptString)

SetTranslatedNumber sets the value of TranslatedNumber.

func (*UpdatePhoneNumberVoiceSettingsRequest) SetUsagePaymentMethod

SetUsagePaymentMethod sets the value of UsagePaymentMethod.

func (*UpdatePhoneNumberVoiceSettingsRequest) UnmarshalJSON

func (s *UpdatePhoneNumberVoiceSettingsRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdatePhoneNumberVoiceSettingsRequest) Validate

type UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening

type UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening string

The inbound_call_screening setting is a phone number configuration option variable that allows users to configure their settings to block or flag fraudulent calls. It can be set to disabled, reject_calls, or flag_calls. This feature has an additional per-number monthly cost associated with it.

const (
	UpdatePhoneNumberVoiceSettingsRequestInboundCallScreeningDisabled    UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening = "disabled"
	UpdatePhoneNumberVoiceSettingsRequestInboundCallScreeningRejectCalls UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening = "reject_calls"
	UpdatePhoneNumberVoiceSettingsRequestInboundCallScreeningFlagCalls   UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening = "flag_calls"
)

func (UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) AllValues

AllValues returns all UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening values.

func (*UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) Decode

Decode decodes UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening from json.

func (UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) Encode

Encode encodes UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening as json.

func (UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdatePhoneNumberVoiceSettingsRequestInboundCallScreening) Validate

type UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod

type UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod string

Controls whether a number is billed per minute or uses your concurrent channels.

const (
	UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethodPayPerMinute UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod = "pay-per-minute"
	UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethodChannel      UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod = "channel"
)

func (UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) AllValues

AllValues returns all UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod values.

func (*UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) Decode

Decode decodes UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod from json.

func (UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) Encode

Encode encodes UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod as json.

func (UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdatePhoneNumberVoiceSettingsRequestUsagePaymentMethod) Validate

type UpdatePhoneNumberVoiceSettingsRes

type UpdatePhoneNumberVoiceSettingsRes interface {
	// contains filtered or unexported methods
}

type UpdatePortingLOAConfiguration

type UpdatePortingLOAConfiguration struct {
	Data OptPortingLOAConfiguration `json:"data"`
}

func (*UpdatePortingLOAConfiguration) Decode

Decode decodes UpdatePortingLOAConfiguration from json.

func (*UpdatePortingLOAConfiguration) Encode

Encode implements json.Marshaler.

func (*UpdatePortingLOAConfiguration) GetData

GetData returns the value of Data.

func (*UpdatePortingLOAConfiguration) MarshalJSON

func (s *UpdatePortingLOAConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdatePortingLOAConfiguration) SetData

SetData sets the value of Data.

func (*UpdatePortingLOAConfiguration) UnmarshalJSON

func (s *UpdatePortingLOAConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdatePortingLOAConfiguration) Validate

func (s *UpdatePortingLOAConfiguration) Validate() error

type UpdatePortingOrder

type UpdatePortingOrder struct {
	Misc                     OptPortingOrderMisc                     `json:"misc"`
	EndUser                  OptPortingOrderEndUser                  `json:"end_user"`
	Documents                OptPortingOrderDocuments                `json:"documents"`
	ActivationSettings       OptUpdatePortingOrderActivationSettings `json:"activation_settings"`
	PhoneNumberConfiguration OptPortingOrderPhoneNumberConfiguration `json:"phone_number_configuration"`
	// List of requirements for porting numbers.
	Requirements      []UpdatePortingOrderRequirement `json:"requirements"`
	UserFeedback      OptPortingOrderUserFeedback     `json:"user_feedback"`
	WebhookURL        OptURI                          `json:"webhook_url"`
	CustomerReference OptString                       `json:"customer_reference"`
}

Ref: #/components/schemas/UpdatePortingOrder

func (*UpdatePortingOrder) Decode

func (s *UpdatePortingOrder) Decode(d *jx.Decoder) error

Decode decodes UpdatePortingOrder from json.

func (*UpdatePortingOrder) Encode

func (s *UpdatePortingOrder) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdatePortingOrder) GetActivationSettings

GetActivationSettings returns the value of ActivationSettings.

func (*UpdatePortingOrder) GetCustomerReference

func (s *UpdatePortingOrder) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*UpdatePortingOrder) GetDocuments

func (s *UpdatePortingOrder) GetDocuments() OptPortingOrderDocuments

GetDocuments returns the value of Documents.

func (*UpdatePortingOrder) GetEndUser

GetEndUser returns the value of EndUser.

func (*UpdatePortingOrder) GetMisc

GetMisc returns the value of Misc.

func (*UpdatePortingOrder) GetPhoneNumberConfiguration

func (s *UpdatePortingOrder) GetPhoneNumberConfiguration() OptPortingOrderPhoneNumberConfiguration

GetPhoneNumberConfiguration returns the value of PhoneNumberConfiguration.

func (*UpdatePortingOrder) GetRequirements

func (s *UpdatePortingOrder) GetRequirements() []UpdatePortingOrderRequirement

GetRequirements returns the value of Requirements.

func (*UpdatePortingOrder) GetUserFeedback

func (s *UpdatePortingOrder) GetUserFeedback() OptPortingOrderUserFeedback

GetUserFeedback returns the value of UserFeedback.

func (*UpdatePortingOrder) GetWebhookURL

func (s *UpdatePortingOrder) GetWebhookURL() OptURI

GetWebhookURL returns the value of WebhookURL.

func (*UpdatePortingOrder) MarshalJSON

func (s *UpdatePortingOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdatePortingOrder) SetActivationSettings

func (s *UpdatePortingOrder) SetActivationSettings(val OptUpdatePortingOrderActivationSettings)

SetActivationSettings sets the value of ActivationSettings.

func (*UpdatePortingOrder) SetCustomerReference

func (s *UpdatePortingOrder) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*UpdatePortingOrder) SetDocuments

func (s *UpdatePortingOrder) SetDocuments(val OptPortingOrderDocuments)

SetDocuments sets the value of Documents.

func (*UpdatePortingOrder) SetEndUser

func (s *UpdatePortingOrder) SetEndUser(val OptPortingOrderEndUser)

SetEndUser sets the value of EndUser.

func (*UpdatePortingOrder) SetMisc

func (s *UpdatePortingOrder) SetMisc(val OptPortingOrderMisc)

SetMisc sets the value of Misc.

func (*UpdatePortingOrder) SetPhoneNumberConfiguration

func (s *UpdatePortingOrder) SetPhoneNumberConfiguration(val OptPortingOrderPhoneNumberConfiguration)

SetPhoneNumberConfiguration sets the value of PhoneNumberConfiguration.

func (*UpdatePortingOrder) SetRequirements

func (s *UpdatePortingOrder) SetRequirements(val []UpdatePortingOrderRequirement)

SetRequirements sets the value of Requirements.

func (*UpdatePortingOrder) SetUserFeedback

func (s *UpdatePortingOrder) SetUserFeedback(val OptPortingOrderUserFeedback)

SetUserFeedback sets the value of UserFeedback.

func (*UpdatePortingOrder) SetWebhookURL

func (s *UpdatePortingOrder) SetWebhookURL(val OptURI)

SetWebhookURL sets the value of WebhookURL.

func (*UpdatePortingOrder) UnmarshalJSON

func (s *UpdatePortingOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdatePortingOrder) Validate

func (s *UpdatePortingOrder) Validate() error

type UpdatePortingOrderActivationSettings

type UpdatePortingOrderActivationSettings struct {
	// ISO 8601 formatted Date/Time requested for the FOC date.
	FocDatetimeRequested OptDateTime `json:"foc_datetime_requested"`
}

func (*UpdatePortingOrderActivationSettings) Decode

Decode decodes UpdatePortingOrderActivationSettings from json.

func (*UpdatePortingOrderActivationSettings) Encode

Encode implements json.Marshaler.

func (*UpdatePortingOrderActivationSettings) GetFocDatetimeRequested

func (s *UpdatePortingOrderActivationSettings) GetFocDatetimeRequested() OptDateTime

GetFocDatetimeRequested returns the value of FocDatetimeRequested.

func (*UpdatePortingOrderActivationSettings) MarshalJSON

func (s *UpdatePortingOrderActivationSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdatePortingOrderActivationSettings) SetFocDatetimeRequested

func (s *UpdatePortingOrderActivationSettings) SetFocDatetimeRequested(val OptDateTime)

SetFocDatetimeRequested sets the value of FocDatetimeRequested.

func (*UpdatePortingOrderActivationSettings) UnmarshalJSON

func (s *UpdatePortingOrderActivationSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdatePortingOrderParams

type UpdatePortingOrderParams struct {
	// Porting Order id.
	ID uuid.UUID
}

UpdatePortingOrderParams is parameters of UpdatePortingOrder operation.

type UpdatePortingOrderRequirement

type UpdatePortingOrderRequirement struct {
	// Identifies the document that satisfies this requirement.
	FieldValue string `json:"field_value"`
	// Identifies the requirement type that meets this requirement.
	RequirementTypeID string `json:"requirement_type_id"`
}

Ref: #/components/schemas/UpdatePortingOrderRequirement

func (*UpdatePortingOrderRequirement) Decode

Decode decodes UpdatePortingOrderRequirement from json.

func (*UpdatePortingOrderRequirement) Encode

Encode implements json.Marshaler.

func (*UpdatePortingOrderRequirement) GetFieldValue

func (s *UpdatePortingOrderRequirement) GetFieldValue() string

GetFieldValue returns the value of FieldValue.

func (*UpdatePortingOrderRequirement) GetRequirementTypeID

func (s *UpdatePortingOrderRequirement) GetRequirementTypeID() string

GetRequirementTypeID returns the value of RequirementTypeID.

func (*UpdatePortingOrderRequirement) MarshalJSON

func (s *UpdatePortingOrderRequirement) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdatePortingOrderRequirement) SetFieldValue

func (s *UpdatePortingOrderRequirement) SetFieldValue(val string)

SetFieldValue sets the value of FieldValue.

func (*UpdatePortingOrderRequirement) SetRequirementTypeID

func (s *UpdatePortingOrderRequirement) SetRequirementTypeID(val string)

SetRequirementTypeID sets the value of RequirementTypeID.

func (*UpdatePortingOrderRequirement) UnmarshalJSON

func (s *UpdatePortingOrderRequirement) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdatePortingOrderRes

type UpdatePortingOrderRes interface {
	// contains filtered or unexported methods
}

type UpdatePortingOrderResponse

type UpdatePortingOrderResponse struct {
	Data OptPortingOrder                   `json:"data"`
	Meta OptUpdatePortingOrderResponseMeta `json:"meta"`
}

func (*UpdatePortingOrderResponse) Decode

Decode decodes UpdatePortingOrderResponse from json.

func (*UpdatePortingOrderResponse) Encode

func (s *UpdatePortingOrderResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdatePortingOrderResponse) GetData

GetData returns the value of Data.

func (*UpdatePortingOrderResponse) GetMeta

GetMeta returns the value of Meta.

func (*UpdatePortingOrderResponse) MarshalJSON

func (s *UpdatePortingOrderResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdatePortingOrderResponse) SetData

SetData sets the value of Data.

func (*UpdatePortingOrderResponse) SetMeta

SetMeta sets the value of Meta.

func (*UpdatePortingOrderResponse) UnmarshalJSON

func (s *UpdatePortingOrderResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdatePortingOrderResponse) Validate

func (s *UpdatePortingOrderResponse) Validate() error

type UpdatePortingOrderResponseMeta

type UpdatePortingOrderResponseMeta struct {
	// Link to list all phone numbers.
	PhoneNumbersURL OptString `json:"phone_numbers_url"`
}

func (*UpdatePortingOrderResponseMeta) Decode

Decode decodes UpdatePortingOrderResponseMeta from json.

func (*UpdatePortingOrderResponseMeta) Encode

Encode implements json.Marshaler.

func (*UpdatePortingOrderResponseMeta) GetPhoneNumbersURL

func (s *UpdatePortingOrderResponseMeta) GetPhoneNumbersURL() OptString

GetPhoneNumbersURL returns the value of PhoneNumbersURL.

func (*UpdatePortingOrderResponseMeta) MarshalJSON

func (s *UpdatePortingOrderResponseMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdatePortingOrderResponseMeta) SetPhoneNumbersURL

func (s *UpdatePortingOrderResponseMeta) SetPhoneNumbersURL(val OptString)

SetPhoneNumbersURL sets the value of PhoneNumbersURL.

func (*UpdatePortingOrderResponseMeta) UnmarshalJSON

func (s *UpdatePortingOrderResponseMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdatePortingOrderUnauthorized

type UpdatePortingOrderUnauthorized struct{}

UpdatePortingOrderUnauthorized is response for UpdatePortingOrder operation.

type UpdatePortingOrderUnprocessableEntity

type UpdatePortingOrderUnprocessableEntity struct{}

UpdatePortingOrderUnprocessableEntity is response for UpdatePortingOrder operation.

type UpdatePortingOrdersActivationJobNotFound

type UpdatePortingOrdersActivationJobNotFound struct{}

UpdatePortingOrdersActivationJobNotFound is response for UpdatePortingOrdersActivationJob operation.

type UpdatePortingOrdersActivationJobParams

type UpdatePortingOrdersActivationJobParams struct {
	// Porting Order id.
	ID uuid.UUID
	// Activation Job Identifier.
	ActivationJobId uuid.UUID
}

UpdatePortingOrdersActivationJobParams is parameters of UpdatePortingOrdersActivationJob operation.

type UpdatePortingOrdersActivationJobReq

type UpdatePortingOrdersActivationJobReq struct {
	// The desired activation time. The activation time should be between any of the activation windows.
	ActivateAt OptDateTime `json:"activate_at"`
}

func (*UpdatePortingOrdersActivationJobReq) Decode

Decode decodes UpdatePortingOrdersActivationJobReq from json.

func (*UpdatePortingOrdersActivationJobReq) Encode

Encode implements json.Marshaler.

func (*UpdatePortingOrdersActivationJobReq) GetActivateAt

GetActivateAt returns the value of ActivateAt.

func (*UpdatePortingOrdersActivationJobReq) MarshalJSON

func (s *UpdatePortingOrdersActivationJobReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdatePortingOrdersActivationJobReq) SetActivateAt

func (s *UpdatePortingOrdersActivationJobReq) SetActivateAt(val OptDateTime)

SetActivateAt sets the value of ActivateAt.

func (*UpdatePortingOrdersActivationJobReq) UnmarshalJSON

func (s *UpdatePortingOrdersActivationJobReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdatePortingOrdersActivationJobRes

type UpdatePortingOrdersActivationJobRes interface {
	// contains filtered or unexported methods
}

type UpdatePortingOrdersActivationJobUnprocessableEntity

type UpdatePortingOrdersActivationJobUnprocessableEntity struct{}

UpdatePortingOrdersActivationJobUnprocessableEntity is response for UpdatePortingOrdersActivationJob operation.

type UpdatePortoutStatusNotFound

type UpdatePortoutStatusNotFound struct{}

UpdatePortoutStatusNotFound is response for UpdatePortoutStatus operation.

type UpdatePortoutStatusParams

type UpdatePortoutStatusParams struct {
	// Portout id.
	ID uuid.UUID
	// Updated portout status.
	Status UpdatePortoutStatusStatus
}

UpdatePortoutStatusParams is parameters of UpdatePortoutStatus operation.

type UpdatePortoutStatusReq

type UpdatePortoutStatusReq struct {
	// Provide a reason if rejecting the port out request.
	Reason OptString `json:"reason"`
}

func (*UpdatePortoutStatusReq) Decode

func (s *UpdatePortoutStatusReq) Decode(d *jx.Decoder) error

Decode decodes UpdatePortoutStatusReq from json.

func (*UpdatePortoutStatusReq) Encode

func (s *UpdatePortoutStatusReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdatePortoutStatusReq) GetReason

func (s *UpdatePortoutStatusReq) GetReason() OptString

GetReason returns the value of Reason.

func (*UpdatePortoutStatusReq) MarshalJSON

func (s *UpdatePortoutStatusReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdatePortoutStatusReq) SetReason

func (s *UpdatePortoutStatusReq) SetReason(val OptString)

SetReason sets the value of Reason.

func (*UpdatePortoutStatusReq) UnmarshalJSON

func (s *UpdatePortoutStatusReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdatePortoutStatusRes

type UpdatePortoutStatusRes interface {
	// contains filtered or unexported methods
}

type UpdatePortoutStatusStatus

type UpdatePortoutStatusStatus string
const (
	UpdatePortoutStatusStatusAuthorized      UpdatePortoutStatusStatus = "authorized"
	UpdatePortoutStatusStatusRejectedPending UpdatePortoutStatusStatus = "rejected-pending"
)

func (UpdatePortoutStatusStatus) AllValues

AllValues returns all UpdatePortoutStatusStatus values.

func (UpdatePortoutStatusStatus) MarshalText

func (s UpdatePortoutStatusStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UpdatePortoutStatusStatus) UnmarshalText

func (s *UpdatePortoutStatusStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdatePortoutStatusStatus) Validate

func (s UpdatePortoutStatusStatus) Validate() error

type UpdatePortoutStatusUnauthorized

type UpdatePortoutStatusUnauthorized struct{}

UpdatePortoutStatusUnauthorized is response for UpdatePortoutStatus operation.

type UpdatePortoutStatusUnprocessableEntity

type UpdatePortoutStatusUnprocessableEntity struct{}

UpdatePortoutStatusUnprocessableEntity is response for UpdatePortoutStatus operation.

type UpdateProfileOK

type UpdateProfileOK struct{}

UpdateProfileOK is response for UpdateProfile operation.

type UpdateProfileParams

type UpdateProfileParams struct {
	// Identifies the Verified Calls Display Profile.
	ID string
}

UpdateProfileParams is parameters of UpdateProfile operation.

type UpdateProfileRes

type UpdateProfileRes interface {
	// contains filtered or unexported methods
}

type UpdateRegulatoryRequirement

type UpdateRegulatoryRequirement struct {
	// Unique id for a requirement.
	RequirementID OptUUID `json:"requirement_id"`
	// The value of the requirement, this could be an id to a resource or a string value.
	FieldValue OptString `json:"field_value"`
}

Ref: #/components/schemas/UpdateRegulatoryRequirement

func (*UpdateRegulatoryRequirement) Decode

Decode decodes UpdateRegulatoryRequirement from json.

func (*UpdateRegulatoryRequirement) Encode

func (s *UpdateRegulatoryRequirement) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateRegulatoryRequirement) GetFieldValue

func (s *UpdateRegulatoryRequirement) GetFieldValue() OptString

GetFieldValue returns the value of FieldValue.

func (*UpdateRegulatoryRequirement) GetRequirementID

func (s *UpdateRegulatoryRequirement) GetRequirementID() OptUUID

GetRequirementID returns the value of RequirementID.

func (*UpdateRegulatoryRequirement) MarshalJSON

func (s *UpdateRegulatoryRequirement) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateRegulatoryRequirement) SetFieldValue

func (s *UpdateRegulatoryRequirement) SetFieldValue(val OptString)

SetFieldValue sets the value of FieldValue.

func (*UpdateRegulatoryRequirement) SetRequirementID

func (s *UpdateRegulatoryRequirement) SetRequirementID(val OptUUID)

SetRequirementID sets the value of RequirementID.

func (*UpdateRegulatoryRequirement) UnmarshalJSON

func (s *UpdateRegulatoryRequirement) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateTeXMLCallRecordingParams

type UpdateTeXMLCallRecordingParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The CallSid that identifies the call to update.
	CallSid string
	// Uniquely identifies the recording by id.
	RecordingSid uuid.UUID
}

UpdateTeXMLCallRecordingParams is parameters of UpdateTeXMLCallRecording operation.

type UpdateTeXMLCallRecordingRes

type UpdateTeXMLCallRecordingRes interface {
	// contains filtered or unexported methods
}

type UpdateTeXMLCallResponse

type UpdateTeXMLCallResponse struct {
	Data OptUpdateCommandResult `json:"data"`
}

func (*UpdateTeXMLCallResponse) Decode

func (s *UpdateTeXMLCallResponse) Decode(d *jx.Decoder) error

Decode decodes UpdateTeXMLCallResponse from json.

func (*UpdateTeXMLCallResponse) Encode

func (s *UpdateTeXMLCallResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateTeXMLCallResponse) GetData

GetData returns the value of Data.

func (*UpdateTeXMLCallResponse) MarshalJSON

func (s *UpdateTeXMLCallResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTeXMLCallResponse) SetData

SetData sets the value of Data.

func (*UpdateTeXMLCallResponse) UnmarshalJSON

func (s *UpdateTeXMLCallResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateTelephonyCredentialNotFound

type UpdateTelephonyCredentialNotFound struct{}

UpdateTelephonyCredentialNotFound is response for UpdateTelephonyCredential operation.

type UpdateTelephonyCredentialParams

type UpdateTelephonyCredentialParams struct {
	// Identifies the resource.
	ID string
}

UpdateTelephonyCredentialParams is parameters of UpdateTelephonyCredential operation.

type UpdateTelephonyCredentialRes

type UpdateTelephonyCredentialRes interface {
	// contains filtered or unexported methods
}

type UpdateTelephonyCredentialUnauthorized

type UpdateTelephonyCredentialUnauthorized struct{}

UpdateTelephonyCredentialUnauthorized is response for UpdateTelephonyCredential operation.

type UpdateTelephonyCredentialUnprocessableEntity

type UpdateTelephonyCredentialUnprocessableEntity struct{}

UpdateTelephonyCredentialUnprocessableEntity is response for UpdateTelephonyCredential operation.

type UpdateTexmlApplicationBadRequest

type UpdateTexmlApplicationBadRequest ErrorResponse

func (*UpdateTexmlApplicationBadRequest) Decode

Decode decodes UpdateTexmlApplicationBadRequest from json.

func (*UpdateTexmlApplicationBadRequest) Encode

Encode encodes UpdateTexmlApplicationBadRequest as json.

func (*UpdateTexmlApplicationBadRequest) MarshalJSON

func (s *UpdateTexmlApplicationBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTexmlApplicationBadRequest) UnmarshalJSON

func (s *UpdateTexmlApplicationBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateTexmlApplicationNotFound

type UpdateTexmlApplicationNotFound ErrorResponse

func (*UpdateTexmlApplicationNotFound) Decode

Decode decodes UpdateTexmlApplicationNotFound from json.

func (*UpdateTexmlApplicationNotFound) Encode

Encode encodes UpdateTexmlApplicationNotFound as json.

func (*UpdateTexmlApplicationNotFound) MarshalJSON

func (s *UpdateTexmlApplicationNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTexmlApplicationNotFound) UnmarshalJSON

func (s *UpdateTexmlApplicationNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateTexmlApplicationParams

type UpdateTexmlApplicationParams struct {
	// Identifies the resource.
	ID int64
}

UpdateTexmlApplicationParams is parameters of UpdateTexmlApplication operation.

type UpdateTexmlApplicationRequest

type UpdateTexmlApplicationRequest struct {
	FriendlyName            ApplicationName            `json:"friendly_name"`
	Active                  OptConnectionActive        `json:"active"`
	AnchorsiteOverride      OptAnchorsiteOverride      `json:"anchorsite_override"`
	DtmfType                OptDtmfType                `json:"dtmf_type"`
	FirstCommandTimeout     OptFirstCommandTimeout     `json:"first_command_timeout"`
	FirstCommandTimeoutSecs OptFirstCommandTimeoutSecs `json:"first_command_timeout_secs"`
	// URL to which Telnyx will deliver your XML Translator webhooks.
	VoiceURL string `json:"voice_url"`
	// URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from
	// your voice_url.
	VoiceFallbackURL OptString `json:"voice_fallback_url"`
	// HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or
	// 'post'.
	VoiceMethod OptUpdateTexmlApplicationRequestVoiceMethod `json:"voice_method"`
	// URL for Telnyx to send requests to containing information about call progress events.
	StatusCallback OptString `json:"status_callback"`
	// HTTP request method Telnyx should use when requesting the status_callback URL.
	StatusCallbackMethod OptUpdateTexmlApplicationRequestStatusCallbackMethod `json:"status_callback_method"`
	Inbound              OptUpdateTexmlApplicationRequestInbound              `json:"inbound"`
	Outbound             OptUpdateTexmlApplicationRequestOutbound             `json:"outbound"`
}

Ref: #/components/schemas/UpdateTexmlApplicationRequest

func (*UpdateTexmlApplicationRequest) Decode

Decode decodes UpdateTexmlApplicationRequest from json.

func (*UpdateTexmlApplicationRequest) Encode

Encode implements json.Marshaler.

func (*UpdateTexmlApplicationRequest) GetActive

GetActive returns the value of Active.

func (*UpdateTexmlApplicationRequest) GetAnchorsiteOverride

func (s *UpdateTexmlApplicationRequest) GetAnchorsiteOverride() OptAnchorsiteOverride

GetAnchorsiteOverride returns the value of AnchorsiteOverride.

func (*UpdateTexmlApplicationRequest) GetDtmfType

func (s *UpdateTexmlApplicationRequest) GetDtmfType() OptDtmfType

GetDtmfType returns the value of DtmfType.

func (*UpdateTexmlApplicationRequest) GetFirstCommandTimeout

func (s *UpdateTexmlApplicationRequest) GetFirstCommandTimeout() OptFirstCommandTimeout

GetFirstCommandTimeout returns the value of FirstCommandTimeout.

func (*UpdateTexmlApplicationRequest) GetFirstCommandTimeoutSecs

func (s *UpdateTexmlApplicationRequest) GetFirstCommandTimeoutSecs() OptFirstCommandTimeoutSecs

GetFirstCommandTimeoutSecs returns the value of FirstCommandTimeoutSecs.

func (*UpdateTexmlApplicationRequest) GetFriendlyName

func (s *UpdateTexmlApplicationRequest) GetFriendlyName() ApplicationName

GetFriendlyName returns the value of FriendlyName.

func (*UpdateTexmlApplicationRequest) GetInbound

GetInbound returns the value of Inbound.

func (*UpdateTexmlApplicationRequest) GetOutbound

GetOutbound returns the value of Outbound.

func (*UpdateTexmlApplicationRequest) GetStatusCallback

func (s *UpdateTexmlApplicationRequest) GetStatusCallback() OptString

GetStatusCallback returns the value of StatusCallback.

func (*UpdateTexmlApplicationRequest) GetStatusCallbackMethod

GetStatusCallbackMethod returns the value of StatusCallbackMethod.

func (*UpdateTexmlApplicationRequest) GetVoiceFallbackURL

func (s *UpdateTexmlApplicationRequest) GetVoiceFallbackURL() OptString

GetVoiceFallbackURL returns the value of VoiceFallbackURL.

func (*UpdateTexmlApplicationRequest) GetVoiceMethod

GetVoiceMethod returns the value of VoiceMethod.

func (*UpdateTexmlApplicationRequest) GetVoiceURL

func (s *UpdateTexmlApplicationRequest) GetVoiceURL() string

GetVoiceURL returns the value of VoiceURL.

func (*UpdateTexmlApplicationRequest) MarshalJSON

func (s *UpdateTexmlApplicationRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTexmlApplicationRequest) SetActive

SetActive sets the value of Active.

func (*UpdateTexmlApplicationRequest) SetAnchorsiteOverride

func (s *UpdateTexmlApplicationRequest) SetAnchorsiteOverride(val OptAnchorsiteOverride)

SetAnchorsiteOverride sets the value of AnchorsiteOverride.

func (*UpdateTexmlApplicationRequest) SetDtmfType

func (s *UpdateTexmlApplicationRequest) SetDtmfType(val OptDtmfType)

SetDtmfType sets the value of DtmfType.

func (*UpdateTexmlApplicationRequest) SetFirstCommandTimeout

func (s *UpdateTexmlApplicationRequest) SetFirstCommandTimeout(val OptFirstCommandTimeout)

SetFirstCommandTimeout sets the value of FirstCommandTimeout.

func (*UpdateTexmlApplicationRequest) SetFirstCommandTimeoutSecs

func (s *UpdateTexmlApplicationRequest) SetFirstCommandTimeoutSecs(val OptFirstCommandTimeoutSecs)

SetFirstCommandTimeoutSecs sets the value of FirstCommandTimeoutSecs.

func (*UpdateTexmlApplicationRequest) SetFriendlyName

func (s *UpdateTexmlApplicationRequest) SetFriendlyName(val ApplicationName)

SetFriendlyName sets the value of FriendlyName.

func (*UpdateTexmlApplicationRequest) SetInbound

SetInbound sets the value of Inbound.

func (*UpdateTexmlApplicationRequest) SetOutbound

SetOutbound sets the value of Outbound.

func (*UpdateTexmlApplicationRequest) SetStatusCallback

func (s *UpdateTexmlApplicationRequest) SetStatusCallback(val OptString)

SetStatusCallback sets the value of StatusCallback.

func (*UpdateTexmlApplicationRequest) SetStatusCallbackMethod

SetStatusCallbackMethod sets the value of StatusCallbackMethod.

func (*UpdateTexmlApplicationRequest) SetVoiceFallbackURL

func (s *UpdateTexmlApplicationRequest) SetVoiceFallbackURL(val OptString)

SetVoiceFallbackURL sets the value of VoiceFallbackURL.

func (*UpdateTexmlApplicationRequest) SetVoiceMethod

SetVoiceMethod sets the value of VoiceMethod.

func (*UpdateTexmlApplicationRequest) SetVoiceURL

func (s *UpdateTexmlApplicationRequest) SetVoiceURL(val string)

SetVoiceURL sets the value of VoiceURL.

func (*UpdateTexmlApplicationRequest) UnmarshalJSON

func (s *UpdateTexmlApplicationRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateTexmlApplicationRequest) Validate

func (s *UpdateTexmlApplicationRequest) Validate() error

type UpdateTexmlApplicationRequestInbound

type UpdateTexmlApplicationRequestInbound struct {
	// When set, this will limit the total number of inbound calls to phone numbers associated with this
	// connection.
	ChannelLimit OptInt `json:"channel_limit"`
	// When enabled Telnyx will include Shaken/Stir data in the Webhook for new inbound calls.
	ShakenStirEnabled OptBool `json:"shaken_stir_enabled"`
	// Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a
	// phone number is used, from a SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be
	// called from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" where the user
	// part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain
	// calls.
	SipSubdomain OptString `json:"sip_subdomain"`
	// This option can be enabled to receive calls from: "Anyone" (any SIP endpoint in the public
	// Internet) or "Only my connections" (any connection assigned to the same Telnyx user).
	SipSubdomainReceiveSettings OptUpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings `json:"sip_subdomain_receive_settings"`
}

func (*UpdateTexmlApplicationRequestInbound) Decode

Decode decodes UpdateTexmlApplicationRequestInbound from json.

func (*UpdateTexmlApplicationRequestInbound) Encode

Encode implements json.Marshaler.

func (*UpdateTexmlApplicationRequestInbound) GetChannelLimit

func (s *UpdateTexmlApplicationRequestInbound) GetChannelLimit() OptInt

GetChannelLimit returns the value of ChannelLimit.

func (*UpdateTexmlApplicationRequestInbound) GetShakenStirEnabled

func (s *UpdateTexmlApplicationRequestInbound) GetShakenStirEnabled() OptBool

GetShakenStirEnabled returns the value of ShakenStirEnabled.

func (*UpdateTexmlApplicationRequestInbound) GetSipSubdomain

func (s *UpdateTexmlApplicationRequestInbound) GetSipSubdomain() OptString

GetSipSubdomain returns the value of SipSubdomain.

func (*UpdateTexmlApplicationRequestInbound) GetSipSubdomainReceiveSettings

GetSipSubdomainReceiveSettings returns the value of SipSubdomainReceiveSettings.

func (*UpdateTexmlApplicationRequestInbound) MarshalJSON

func (s *UpdateTexmlApplicationRequestInbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTexmlApplicationRequestInbound) SetChannelLimit

func (s *UpdateTexmlApplicationRequestInbound) SetChannelLimit(val OptInt)

SetChannelLimit sets the value of ChannelLimit.

func (*UpdateTexmlApplicationRequestInbound) SetShakenStirEnabled

func (s *UpdateTexmlApplicationRequestInbound) SetShakenStirEnabled(val OptBool)

SetShakenStirEnabled sets the value of ShakenStirEnabled.

func (*UpdateTexmlApplicationRequestInbound) SetSipSubdomain

func (s *UpdateTexmlApplicationRequestInbound) SetSipSubdomain(val OptString)

SetSipSubdomain sets the value of SipSubdomain.

func (*UpdateTexmlApplicationRequestInbound) SetSipSubdomainReceiveSettings

SetSipSubdomainReceiveSettings sets the value of SipSubdomainReceiveSettings.

func (*UpdateTexmlApplicationRequestInbound) UnmarshalJSON

func (s *UpdateTexmlApplicationRequestInbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateTexmlApplicationRequestInbound) Validate

type UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings

type UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings string

This option can be enabled to receive calls from: "Anyone" (any SIP endpoint in the public Internet) or "Only my connections" (any connection assigned to the same Telnyx user).

const (
	UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettingsOnlyMyConnections UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings = "only_my_connections"
	UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettingsFromAnyone        UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings = "from_anyone"
)

func (UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) AllValues

AllValues returns all UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings values.

func (*UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Decode

Decode decodes UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings from json.

func (UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Encode

Encode encodes UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings as json.

func (UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateTexmlApplicationRequestInboundSipSubdomainReceiveSettings) Validate

type UpdateTexmlApplicationRequestOutbound

type UpdateTexmlApplicationRequestOutbound struct {
	// When set, this will limit the total number of outbound calls to phone numbers associated with this
	// connection.
	ChannelLimit           OptInt                    `json:"channel_limit"`
	OutboundVoiceProfileID OptOutboundVoiceProfileId `json:"outbound_voice_profile_id"`
}

func (*UpdateTexmlApplicationRequestOutbound) Decode

Decode decodes UpdateTexmlApplicationRequestOutbound from json.

func (*UpdateTexmlApplicationRequestOutbound) Encode

Encode implements json.Marshaler.

func (*UpdateTexmlApplicationRequestOutbound) GetChannelLimit

func (s *UpdateTexmlApplicationRequestOutbound) GetChannelLimit() OptInt

GetChannelLimit returns the value of ChannelLimit.

func (*UpdateTexmlApplicationRequestOutbound) GetOutboundVoiceProfileID

GetOutboundVoiceProfileID returns the value of OutboundVoiceProfileID.

func (*UpdateTexmlApplicationRequestOutbound) MarshalJSON

func (s *UpdateTexmlApplicationRequestOutbound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTexmlApplicationRequestOutbound) SetChannelLimit

func (s *UpdateTexmlApplicationRequestOutbound) SetChannelLimit(val OptInt)

SetChannelLimit sets the value of ChannelLimit.

func (*UpdateTexmlApplicationRequestOutbound) SetOutboundVoiceProfileID

func (s *UpdateTexmlApplicationRequestOutbound) SetOutboundVoiceProfileID(val OptOutboundVoiceProfileId)

SetOutboundVoiceProfileID sets the value of OutboundVoiceProfileID.

func (*UpdateTexmlApplicationRequestOutbound) UnmarshalJSON

func (s *UpdateTexmlApplicationRequestOutbound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateTexmlApplicationRequestStatusCallbackMethod

type UpdateTexmlApplicationRequestStatusCallbackMethod string

HTTP request method Telnyx should use when requesting the status_callback URL.

const (
	UpdateTexmlApplicationRequestStatusCallbackMethodGet  UpdateTexmlApplicationRequestStatusCallbackMethod = "get"
	UpdateTexmlApplicationRequestStatusCallbackMethodPost UpdateTexmlApplicationRequestStatusCallbackMethod = "post"
)

func (UpdateTexmlApplicationRequestStatusCallbackMethod) AllValues

AllValues returns all UpdateTexmlApplicationRequestStatusCallbackMethod values.

func (*UpdateTexmlApplicationRequestStatusCallbackMethod) Decode

Decode decodes UpdateTexmlApplicationRequestStatusCallbackMethod from json.

func (UpdateTexmlApplicationRequestStatusCallbackMethod) Encode

Encode encodes UpdateTexmlApplicationRequestStatusCallbackMethod as json.

func (UpdateTexmlApplicationRequestStatusCallbackMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (UpdateTexmlApplicationRequestStatusCallbackMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpdateTexmlApplicationRequestStatusCallbackMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateTexmlApplicationRequestStatusCallbackMethod) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateTexmlApplicationRequestStatusCallbackMethod) Validate

type UpdateTexmlApplicationRequestVoiceMethod

type UpdateTexmlApplicationRequestVoiceMethod string

HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'.

const (
	UpdateTexmlApplicationRequestVoiceMethodGet  UpdateTexmlApplicationRequestVoiceMethod = "get"
	UpdateTexmlApplicationRequestVoiceMethodPost UpdateTexmlApplicationRequestVoiceMethod = "post"
)

func (UpdateTexmlApplicationRequestVoiceMethod) AllValues

AllValues returns all UpdateTexmlApplicationRequestVoiceMethod values.

func (*UpdateTexmlApplicationRequestVoiceMethod) Decode

Decode decodes UpdateTexmlApplicationRequestVoiceMethod from json.

func (UpdateTexmlApplicationRequestVoiceMethod) Encode

Encode encodes UpdateTexmlApplicationRequestVoiceMethod as json.

func (UpdateTexmlApplicationRequestVoiceMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (UpdateTexmlApplicationRequestVoiceMethod) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*UpdateTexmlApplicationRequestVoiceMethod) UnmarshalJSON

func (s *UpdateTexmlApplicationRequestVoiceMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateTexmlApplicationRequestVoiceMethod) UnmarshalText

func (s *UpdateTexmlApplicationRequestVoiceMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateTexmlApplicationRequestVoiceMethod) Validate

type UpdateTexmlApplicationRes

type UpdateTexmlApplicationRes interface {
	// contains filtered or unexported methods
}

type UpdateTexmlApplicationUnauthorized

type UpdateTexmlApplicationUnauthorized ErrorResponse

func (*UpdateTexmlApplicationUnauthorized) Decode

Decode decodes UpdateTexmlApplicationUnauthorized from json.

func (*UpdateTexmlApplicationUnauthorized) Encode

Encode encodes UpdateTexmlApplicationUnauthorized as json.

func (*UpdateTexmlApplicationUnauthorized) MarshalJSON

func (s *UpdateTexmlApplicationUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTexmlApplicationUnauthorized) UnmarshalJSON

func (s *UpdateTexmlApplicationUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateTexmlApplicationUnprocessableEntity

type UpdateTexmlApplicationUnprocessableEntity ErrorResponse

func (*UpdateTexmlApplicationUnprocessableEntity) Decode

Decode decodes UpdateTexmlApplicationUnprocessableEntity from json.

func (*UpdateTexmlApplicationUnprocessableEntity) Encode

Encode encodes UpdateTexmlApplicationUnprocessableEntity as json.

func (*UpdateTexmlApplicationUnprocessableEntity) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTexmlApplicationUnprocessableEntity) UnmarshalJSON

func (s *UpdateTexmlApplicationUnprocessableEntity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateTexmlCallByAccountParams

type UpdateTexmlCallByAccountParams struct {
	// The CallSid that identifies the call to update.
	CallSid string
	// The id of the account the resource belongs to.
	AccountSid string
}

UpdateTexmlCallByAccountParams is parameters of UpdateTexmlCallByAccount operation.

type UpdateTexmlCallParams

type UpdateTexmlCallParams struct {
	// The CallSid that identifies the call to update.
	CallSid string
}

UpdateTexmlCallParams is parameters of UpdateTexmlCall operation.

type UpdateTexmlConferenceParams

type UpdateTexmlConferenceParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The ConferenceSid that uniquely identifies a conference.
	ConferenceSid string
}

UpdateTexmlConferenceParams is parameters of UpdateTexmlConference operation.

type UpdateTexmlConferenceParticipantParams

type UpdateTexmlConferenceParticipantParams struct {
	// The id of the account the resource belongs to.
	AccountSid string
	// The ConferenceSid that uniquely identifies a conference.
	ConferenceSid string
	// The CallSid that identifies the call to update.
	CallSid string
}

UpdateTexmlConferenceParticipantParams is parameters of UpdateTexmlConferenceParticipant operation.

type UpdateTexmlConferenceParticipantRes

type UpdateTexmlConferenceParticipantRes interface {
	// contains filtered or unexported methods
}

type UpdateTexmlConferenceRes

type UpdateTexmlConferenceRes interface {
	// contains filtered or unexported methods
}

type UpdateVerifiedCallsDisplayProfileRequest

type UpdateVerifiedCallsDisplayProfileRequest struct {
	CallReasons  CallReasons  `json:"call_reasons"`
	PhoneNumbers PhoneNumbers `json:"phone_numbers"`
}

Ref: #/components/schemas/UpdateVerifiedCallsDisplayProfileRequest

func (*UpdateVerifiedCallsDisplayProfileRequest) Decode

Decode decodes UpdateVerifiedCallsDisplayProfileRequest from json.

func (*UpdateVerifiedCallsDisplayProfileRequest) Encode

Encode implements json.Marshaler.

func (*UpdateVerifiedCallsDisplayProfileRequest) GetCallReasons

GetCallReasons returns the value of CallReasons.

func (*UpdateVerifiedCallsDisplayProfileRequest) GetPhoneNumbers

GetPhoneNumbers returns the value of PhoneNumbers.

func (*UpdateVerifiedCallsDisplayProfileRequest) MarshalJSON

func (s *UpdateVerifiedCallsDisplayProfileRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateVerifiedCallsDisplayProfileRequest) SetCallReasons

SetCallReasons sets the value of CallReasons.

func (*UpdateVerifiedCallsDisplayProfileRequest) SetPhoneNumbers

SetPhoneNumbers sets the value of PhoneNumbers.

func (*UpdateVerifiedCallsDisplayProfileRequest) UnmarshalJSON

func (s *UpdateVerifiedCallsDisplayProfileRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateVerifiedCallsDisplayProfileRequest) Validate

type UpdateVerifyProfileCallRequest

type UpdateVerifyProfileCallRequest struct {
	// The message template identifier selected from /verify_profiles/templates.
	MessagingTemplateID OptUUID `json:"messaging_template_id"`
	// The name that identifies the application requesting 2fa in the verification message.
	AppName OptString `json:"app_name"`
	// Enabled country destinations to send verification codes. The elements in the list must be valid
	// ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all destinations will be allowed.
	WhitelistedDestinations []string `json:"whitelisted_destinations"`
	// For every request that is initiated via this Verify profile, this sets the number of seconds
	// before a verification request code expires. Once the verification request expires, the user cannot
	// use the code to verify their identity.
	DefaultVerificationTimeoutSecs OptInt `json:"default_verification_timeout_secs"`
}

Ref: #/components/schemas/UpdateVerifyProfileCallRequest

func (*UpdateVerifyProfileCallRequest) Decode

Decode decodes UpdateVerifyProfileCallRequest from json.

func (*UpdateVerifyProfileCallRequest) Encode

Encode implements json.Marshaler.

func (*UpdateVerifyProfileCallRequest) GetAppName

func (s *UpdateVerifyProfileCallRequest) GetAppName() OptString

GetAppName returns the value of AppName.

func (*UpdateVerifyProfileCallRequest) GetDefaultVerificationTimeoutSecs

func (s *UpdateVerifyProfileCallRequest) GetDefaultVerificationTimeoutSecs() OptInt

GetDefaultVerificationTimeoutSecs returns the value of DefaultVerificationTimeoutSecs.

func (*UpdateVerifyProfileCallRequest) GetMessagingTemplateID

func (s *UpdateVerifyProfileCallRequest) GetMessagingTemplateID() OptUUID

GetMessagingTemplateID returns the value of MessagingTemplateID.

func (*UpdateVerifyProfileCallRequest) GetWhitelistedDestinations

func (s *UpdateVerifyProfileCallRequest) GetWhitelistedDestinations() []string

GetWhitelistedDestinations returns the value of WhitelistedDestinations.

func (*UpdateVerifyProfileCallRequest) MarshalJSON

func (s *UpdateVerifyProfileCallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateVerifyProfileCallRequest) SetAppName

func (s *UpdateVerifyProfileCallRequest) SetAppName(val OptString)

SetAppName sets the value of AppName.

func (*UpdateVerifyProfileCallRequest) SetDefaultVerificationTimeoutSecs

func (s *UpdateVerifyProfileCallRequest) SetDefaultVerificationTimeoutSecs(val OptInt)

SetDefaultVerificationTimeoutSecs sets the value of DefaultVerificationTimeoutSecs.

func (*UpdateVerifyProfileCallRequest) SetMessagingTemplateID

func (s *UpdateVerifyProfileCallRequest) SetMessagingTemplateID(val OptUUID)

SetMessagingTemplateID sets the value of MessagingTemplateID.

func (*UpdateVerifyProfileCallRequest) SetWhitelistedDestinations

func (s *UpdateVerifyProfileCallRequest) SetWhitelistedDestinations(val []string)

SetWhitelistedDestinations sets the value of WhitelistedDestinations.

func (*UpdateVerifyProfileCallRequest) UnmarshalJSON

func (s *UpdateVerifyProfileCallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateVerifyProfileCallRequest) Validate

func (s *UpdateVerifyProfileCallRequest) Validate() error

type UpdateVerifyProfileFlashcallRequest

type UpdateVerifyProfileFlashcallRequest struct {
	// Enabled country destinations to send verification codes. The elements in the list must be valid
	// ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all destinations will be allowed.
	WhitelistedDestinations []string `json:"whitelisted_destinations"`
	// For every request that is initiated via this Verify profile, this sets the number of seconds
	// before a verification request code expires. Once the verification request expires, the user cannot
	// use the code to verify their identity.
	DefaultVerificationTimeoutSecs OptInt `json:"default_verification_timeout_secs"`
}

Ref: #/components/schemas/UpdateVerifyProfileFlashcallRequest

func (*UpdateVerifyProfileFlashcallRequest) Decode

Decode decodes UpdateVerifyProfileFlashcallRequest from json.

func (*UpdateVerifyProfileFlashcallRequest) Encode

Encode implements json.Marshaler.

func (*UpdateVerifyProfileFlashcallRequest) GetDefaultVerificationTimeoutSecs

func (s *UpdateVerifyProfileFlashcallRequest) GetDefaultVerificationTimeoutSecs() OptInt

GetDefaultVerificationTimeoutSecs returns the value of DefaultVerificationTimeoutSecs.

func (*UpdateVerifyProfileFlashcallRequest) GetWhitelistedDestinations

func (s *UpdateVerifyProfileFlashcallRequest) GetWhitelistedDestinations() []string

GetWhitelistedDestinations returns the value of WhitelistedDestinations.

func (*UpdateVerifyProfileFlashcallRequest) MarshalJSON

func (s *UpdateVerifyProfileFlashcallRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateVerifyProfileFlashcallRequest) SetDefaultVerificationTimeoutSecs

func (s *UpdateVerifyProfileFlashcallRequest) SetDefaultVerificationTimeoutSecs(val OptInt)

SetDefaultVerificationTimeoutSecs sets the value of DefaultVerificationTimeoutSecs.

func (*UpdateVerifyProfileFlashcallRequest) SetWhitelistedDestinations

func (s *UpdateVerifyProfileFlashcallRequest) SetWhitelistedDestinations(val []string)

SetWhitelistedDestinations sets the value of WhitelistedDestinations.

func (*UpdateVerifyProfileFlashcallRequest) UnmarshalJSON

func (s *UpdateVerifyProfileFlashcallRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateVerifyProfileFlashcallRequest) Validate

type UpdateVerifyProfileParams

type UpdateVerifyProfileParams struct {
	// The identifier of the Verify profile to update.
	VerifyProfileID uuid.UUID
}

UpdateVerifyProfileParams is parameters of UpdateVerifyProfile operation.

type UpdateVerifyProfileReq

type UpdateVerifyProfileReq struct {
	Name               OptString                              `json:"name"`
	WebhookURL         OptString                              `json:"webhook_url"`
	WebhookFailoverURL OptString                              `json:"webhook_failover_url"`
	SMS                OptUpdateVerifyProfileSMSRequest       `json:"sms"`
	Call               OptUpdateVerifyProfileCallRequest      `json:"call"`
	Flashcall          OptUpdateVerifyProfileFlashcallRequest `json:"flashcall"`
	Language           OptString                              `json:"language"`
}

func (*UpdateVerifyProfileReq) Decode

func (s *UpdateVerifyProfileReq) Decode(d *jx.Decoder) error

Decode decodes UpdateVerifyProfileReq from json.

func (*UpdateVerifyProfileReq) Encode

func (s *UpdateVerifyProfileReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateVerifyProfileReq) GetCall

GetCall returns the value of Call.

func (*UpdateVerifyProfileReq) GetFlashcall

GetFlashcall returns the value of Flashcall.

func (*UpdateVerifyProfileReq) GetLanguage

func (s *UpdateVerifyProfileReq) GetLanguage() OptString

GetLanguage returns the value of Language.

func (*UpdateVerifyProfileReq) GetName

func (s *UpdateVerifyProfileReq) GetName() OptString

GetName returns the value of Name.

func (*UpdateVerifyProfileReq) GetSMS

GetSMS returns the value of SMS.

func (*UpdateVerifyProfileReq) GetWebhookFailoverURL

func (s *UpdateVerifyProfileReq) GetWebhookFailoverURL() OptString

GetWebhookFailoverURL returns the value of WebhookFailoverURL.

func (*UpdateVerifyProfileReq) GetWebhookURL

func (s *UpdateVerifyProfileReq) GetWebhookURL() OptString

GetWebhookURL returns the value of WebhookURL.

func (*UpdateVerifyProfileReq) MarshalJSON

func (s *UpdateVerifyProfileReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateVerifyProfileReq) SetCall

SetCall sets the value of Call.

func (*UpdateVerifyProfileReq) SetFlashcall

SetFlashcall sets the value of Flashcall.

func (*UpdateVerifyProfileReq) SetLanguage

func (s *UpdateVerifyProfileReq) SetLanguage(val OptString)

SetLanguage sets the value of Language.

func (*UpdateVerifyProfileReq) SetName

func (s *UpdateVerifyProfileReq) SetName(val OptString)

SetName sets the value of Name.

func (*UpdateVerifyProfileReq) SetSMS

SetSMS sets the value of SMS.

func (*UpdateVerifyProfileReq) SetWebhookFailoverURL

func (s *UpdateVerifyProfileReq) SetWebhookFailoverURL(val OptString)

SetWebhookFailoverURL sets the value of WebhookFailoverURL.

func (*UpdateVerifyProfileReq) SetWebhookURL

func (s *UpdateVerifyProfileReq) SetWebhookURL(val OptString)

SetWebhookURL sets the value of WebhookURL.

func (*UpdateVerifyProfileReq) UnmarshalJSON

func (s *UpdateVerifyProfileReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateVerifyProfileReq) Validate

func (s *UpdateVerifyProfileReq) Validate() error

type UpdateVerifyProfileRes

type UpdateVerifyProfileRes interface {
	// contains filtered or unexported methods
}

type UpdateVerifyProfileSMSRequest

type UpdateVerifyProfileSMSRequest struct {
	// The message template identifier selected from /verify_profiles/templates.
	MessagingTemplateID OptUUID `json:"messaging_template_id"`
	// The name that identifies the application requesting 2fa in the verification message.
	AppName OptString `json:"app_name"`
	// The alphanumeric sender ID to use when sending to destinations that require an alphanumeric sender
	// ID.
	AlphaSender OptNilString `json:"alpha_sender"`
	// Enabled country destinations to send verification codes. The elements in the list must be valid
	// ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all destinations will be allowed.
	WhitelistedDestinations []string `json:"whitelisted_destinations"`
	// For every request that is initiated via this Verify profile, this sets the number of seconds
	// before a verification request code expires. Once the verification request expires, the user cannot
	// use the code to verify their identity.
	DefaultVerificationTimeoutSecs OptInt `json:"default_verification_timeout_secs"`
}

Ref: #/components/schemas/UpdateVerifyProfileSMSRequest

func (*UpdateVerifyProfileSMSRequest) Decode

Decode decodes UpdateVerifyProfileSMSRequest from json.

func (*UpdateVerifyProfileSMSRequest) Encode

Encode implements json.Marshaler.

func (*UpdateVerifyProfileSMSRequest) GetAlphaSender

func (s *UpdateVerifyProfileSMSRequest) GetAlphaSender() OptNilString

GetAlphaSender returns the value of AlphaSender.

func (*UpdateVerifyProfileSMSRequest) GetAppName

func (s *UpdateVerifyProfileSMSRequest) GetAppName() OptString

GetAppName returns the value of AppName.

func (*UpdateVerifyProfileSMSRequest) GetDefaultVerificationTimeoutSecs

func (s *UpdateVerifyProfileSMSRequest) GetDefaultVerificationTimeoutSecs() OptInt

GetDefaultVerificationTimeoutSecs returns the value of DefaultVerificationTimeoutSecs.

func (*UpdateVerifyProfileSMSRequest) GetMessagingTemplateID

func (s *UpdateVerifyProfileSMSRequest) GetMessagingTemplateID() OptUUID

GetMessagingTemplateID returns the value of MessagingTemplateID.

func (*UpdateVerifyProfileSMSRequest) GetWhitelistedDestinations

func (s *UpdateVerifyProfileSMSRequest) GetWhitelistedDestinations() []string

GetWhitelistedDestinations returns the value of WhitelistedDestinations.

func (*UpdateVerifyProfileSMSRequest) MarshalJSON

func (s *UpdateVerifyProfileSMSRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateVerifyProfileSMSRequest) SetAlphaSender

func (s *UpdateVerifyProfileSMSRequest) SetAlphaSender(val OptNilString)

SetAlphaSender sets the value of AlphaSender.

func (*UpdateVerifyProfileSMSRequest) SetAppName

func (s *UpdateVerifyProfileSMSRequest) SetAppName(val OptString)

SetAppName sets the value of AppName.

func (*UpdateVerifyProfileSMSRequest) SetDefaultVerificationTimeoutSecs

func (s *UpdateVerifyProfileSMSRequest) SetDefaultVerificationTimeoutSecs(val OptInt)

SetDefaultVerificationTimeoutSecs sets the value of DefaultVerificationTimeoutSecs.

func (*UpdateVerifyProfileSMSRequest) SetMessagingTemplateID

func (s *UpdateVerifyProfileSMSRequest) SetMessagingTemplateID(val OptUUID)

SetMessagingTemplateID sets the value of MessagingTemplateID.

func (*UpdateVerifyProfileSMSRequest) SetWhitelistedDestinations

func (s *UpdateVerifyProfileSMSRequest) SetWhitelistedDestinations(val []string)

SetWhitelistedDestinations sets the value of WhitelistedDestinations.

func (*UpdateVerifyProfileSMSRequest) UnmarshalJSON

func (s *UpdateVerifyProfileSMSRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateVerifyProfileSMSRequest) Validate

func (s *UpdateVerifyProfileSMSRequest) Validate() error

type UpdatedAt

type UpdatedAt string

func (*UpdatedAt) Decode

func (s *UpdatedAt) Decode(d *jx.Decoder) error

Decode decodes UpdatedAt from json.

func (UpdatedAt) Encode

func (s UpdatedAt) Encode(e *jx.Encoder)

Encode encodes UpdatedAt as json.

func (UpdatedAt) MarshalJSON

func (s UpdatedAt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdatedAt) UnmarshalJSON

func (s *UpdatedAt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UsagePaymentMethod

type UsagePaymentMethod string

Setting for how costs for outbound profile are calculated. Ref: #/components/schemas/UsagePaymentMethod

const (
	UsagePaymentMethodRateDeck UsagePaymentMethod = "rate-deck"
)

func (UsagePaymentMethod) AllValues

func (UsagePaymentMethod) AllValues() []UsagePaymentMethod

AllValues returns all UsagePaymentMethod values.

func (*UsagePaymentMethod) Decode

func (s *UsagePaymentMethod) Decode(d *jx.Decoder) error

Decode decodes UsagePaymentMethod from json.

func (UsagePaymentMethod) Encode

func (s UsagePaymentMethod) Encode(e *jx.Encoder)

Encode encodes UsagePaymentMethod as json.

func (UsagePaymentMethod) MarshalJSON

func (s UsagePaymentMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UsagePaymentMethod) MarshalText

func (s UsagePaymentMethod) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UsagePaymentMethod) UnmarshalJSON

func (s *UsagePaymentMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UsagePaymentMethod) UnmarshalText

func (s *UsagePaymentMethod) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UsagePaymentMethod) Validate

func (s UsagePaymentMethod) Validate() error

type UserBalance

type UserBalance struct {
	// Identifies the type of the resource.
	RecordType OptUserBalanceRecordType `json:"record_type"`
	// The account's current balance.
	Balance OptString `json:"balance"`
	// The account's credit limit.
	CreditLimit OptString `json:"credit_limit"`
	// Available amount to spend (balance + credit limit).
	AvailableCredit OptString `json:"available_credit"`
	// The ISO 4217 currency identifier.
	Currency OptString `json:"currency"`
}

Ref: #/components/schemas/UserBalance

func (*UserBalance) Decode

func (s *UserBalance) Decode(d *jx.Decoder) error

Decode decodes UserBalance from json.

func (*UserBalance) Encode

func (s *UserBalance) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserBalance) GetAvailableCredit

func (s *UserBalance) GetAvailableCredit() OptString

GetAvailableCredit returns the value of AvailableCredit.

func (*UserBalance) GetBalance

func (s *UserBalance) GetBalance() OptString

GetBalance returns the value of Balance.

func (*UserBalance) GetCreditLimit

func (s *UserBalance) GetCreditLimit() OptString

GetCreditLimit returns the value of CreditLimit.

func (*UserBalance) GetCurrency

func (s *UserBalance) GetCurrency() OptString

GetCurrency returns the value of Currency.

func (*UserBalance) GetRecordType

func (s *UserBalance) GetRecordType() OptUserBalanceRecordType

GetRecordType returns the value of RecordType.

func (*UserBalance) MarshalJSON

func (s *UserBalance) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserBalance) SetAvailableCredit

func (s *UserBalance) SetAvailableCredit(val OptString)

SetAvailableCredit sets the value of AvailableCredit.

func (*UserBalance) SetBalance

func (s *UserBalance) SetBalance(val OptString)

SetBalance sets the value of Balance.

func (*UserBalance) SetCreditLimit

func (s *UserBalance) SetCreditLimit(val OptString)

SetCreditLimit sets the value of CreditLimit.

func (*UserBalance) SetCurrency

func (s *UserBalance) SetCurrency(val OptString)

SetCurrency sets the value of Currency.

func (*UserBalance) SetRecordType

func (s *UserBalance) SetRecordType(val OptUserBalanceRecordType)

SetRecordType sets the value of RecordType.

func (*UserBalance) UnmarshalJSON

func (s *UserBalance) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserBalance) Validate

func (s *UserBalance) Validate() error

type UserBalanceRecordType

type UserBalanceRecordType string

Identifies the type of the resource.

const (
	UserBalanceRecordTypeBalance UserBalanceRecordType = "balance"
)

func (UserBalanceRecordType) AllValues

AllValues returns all UserBalanceRecordType values.

func (*UserBalanceRecordType) Decode

func (s *UserBalanceRecordType) Decode(d *jx.Decoder) error

Decode decodes UserBalanceRecordType from json.

func (UserBalanceRecordType) Encode

func (s UserBalanceRecordType) Encode(e *jx.Encoder)

Encode encodes UserBalanceRecordType as json.

func (UserBalanceRecordType) MarshalJSON

func (s UserBalanceRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UserBalanceRecordType) MarshalText

func (s UserBalanceRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UserBalanceRecordType) UnmarshalJSON

func (s *UserBalanceRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserBalanceRecordType) UnmarshalText

func (s *UserBalanceRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UserBalanceRecordType) Validate

func (s UserBalanceRecordType) Validate() error

type UserBalanceResponse

type UserBalanceResponse struct {
	Data OptUserBalance `json:"data"`
}

func (*UserBalanceResponse) Decode

func (s *UserBalanceResponse) Decode(d *jx.Decoder) error

Decode decodes UserBalanceResponse from json.

func (*UserBalanceResponse) Encode

func (s *UserBalanceResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserBalanceResponse) GetData

func (s *UserBalanceResponse) GetData() OptUserBalance

GetData returns the value of Data.

func (*UserBalanceResponse) MarshalJSON

func (s *UserBalanceResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserBalanceResponse) SetData

func (s *UserBalanceResponse) SetData(val OptUserBalance)

SetData sets the value of Data.

func (*UserBalanceResponse) UnmarshalJSON

func (s *UserBalanceResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserBalanceResponse) Validate

func (s *UserBalanceResponse) Validate() error

type ValidationError

type ValidationError struct {
	Loc  []ValidationErrorLocItem `json:"loc"`
	Msg  string                   `json:"msg"`
	Type string                   `json:"type"`
}

Ref: #/components/schemas/ValidationError

func (*ValidationError) Decode

func (s *ValidationError) Decode(d *jx.Decoder) error

Decode decodes ValidationError from json.

func (*ValidationError) Encode

func (s *ValidationError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ValidationError) GetLoc

GetLoc returns the value of Loc.

func (*ValidationError) GetMsg

func (s *ValidationError) GetMsg() string

GetMsg returns the value of Msg.

func (*ValidationError) GetType

func (s *ValidationError) GetType() string

GetType returns the value of Type.

func (*ValidationError) MarshalJSON

func (s *ValidationError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ValidationError) SetLoc

func (s *ValidationError) SetLoc(val []ValidationErrorLocItem)

SetLoc sets the value of Loc.

func (*ValidationError) SetMsg

func (s *ValidationError) SetMsg(val string)

SetMsg sets the value of Msg.

func (*ValidationError) SetType

func (s *ValidationError) SetType(val string)

SetType sets the value of Type.

func (*ValidationError) UnmarshalJSON

func (s *ValidationError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ValidationError) Validate

func (s *ValidationError) Validate() error

type ValidationErrorLocItem

type ValidationErrorLocItem struct {
	Type   ValidationErrorLocItemType // switch on this field
	String string
	Int    int
}

ValidationErrorLocItem represents sum type.

func NewIntValidationErrorLocItem

func NewIntValidationErrorLocItem(v int) ValidationErrorLocItem

NewIntValidationErrorLocItem returns new ValidationErrorLocItem from int.

func NewStringValidationErrorLocItem

func NewStringValidationErrorLocItem(v string) ValidationErrorLocItem

NewStringValidationErrorLocItem returns new ValidationErrorLocItem from string.

func (*ValidationErrorLocItem) Decode

func (s *ValidationErrorLocItem) Decode(d *jx.Decoder) error

Decode decodes ValidationErrorLocItem from json.

func (ValidationErrorLocItem) Encode

func (s ValidationErrorLocItem) Encode(e *jx.Encoder)

Encode encodes ValidationErrorLocItem as json.

func (ValidationErrorLocItem) GetInt

func (s ValidationErrorLocItem) GetInt() (v int, ok bool)

GetInt returns int and true boolean if ValidationErrorLocItem is int.

func (ValidationErrorLocItem) GetString

func (s ValidationErrorLocItem) GetString() (v string, ok bool)

GetString returns string and true boolean if ValidationErrorLocItem is string.

func (ValidationErrorLocItem) IsInt

func (s ValidationErrorLocItem) IsInt() bool

IsInt reports whether ValidationErrorLocItem is int.

func (ValidationErrorLocItem) IsString

func (s ValidationErrorLocItem) IsString() bool

IsString reports whether ValidationErrorLocItem is string.

func (ValidationErrorLocItem) MarshalJSON

func (s ValidationErrorLocItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ValidationErrorLocItem) SetInt

func (s *ValidationErrorLocItem) SetInt(v int)

SetInt sets ValidationErrorLocItem to int.

func (*ValidationErrorLocItem) SetString

func (s *ValidationErrorLocItem) SetString(v string)

SetString sets ValidationErrorLocItem to string.

func (*ValidationErrorLocItem) UnmarshalJSON

func (s *ValidationErrorLocItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ValidationErrorLocItemType

type ValidationErrorLocItemType string

ValidationErrorLocItemType is oneOf type of ValidationErrorLocItem.

const (
	StringValidationErrorLocItem ValidationErrorLocItemType = "string"
	IntValidationErrorLocItem    ValidationErrorLocItemType = "int"
)

Possible values for ValidationErrorLocItemType.

type Verification

type Verification struct {
	ID         OptUUID                   `json:"id"`
	Type       OptVerificationType       `json:"type"`
	RecordType OptVerificationRecordType `json:"record_type"`
	// +E164 formatted phone number.
	PhoneNumber OptString `json:"phone_number"`
	// The identifier of the associated Verify profile.
	VerifyProfileID OptUUID `json:"verify_profile_id"`
	// This is the number of seconds before the code of the request is expired. Once this request has
	// expired, the code will no longer verify the user. Note: this will override the
	// `default_verification_timeout_secs` on the Verify profile.
	TimeoutSecs OptInt                `json:"timeout_secs"`
	Status      OptVerificationStatus `json:"status"`
	CreatedAt   OptString             `json:"created_at"`
	UpdatedAt   OptString             `json:"updated_at"`
}

Ref: #/components/schemas/Verification

func (*Verification) Decode

func (s *Verification) Decode(d *jx.Decoder) error

Decode decodes Verification from json.

func (*Verification) Encode

func (s *Verification) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Verification) GetCreatedAt

func (s *Verification) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*Verification) GetID

func (s *Verification) GetID() OptUUID

GetID returns the value of ID.

func (*Verification) GetPhoneNumber

func (s *Verification) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*Verification) GetRecordType

func (s *Verification) GetRecordType() OptVerificationRecordType

GetRecordType returns the value of RecordType.

func (*Verification) GetStatus

func (s *Verification) GetStatus() OptVerificationStatus

GetStatus returns the value of Status.

func (*Verification) GetTimeoutSecs

func (s *Verification) GetTimeoutSecs() OptInt

GetTimeoutSecs returns the value of TimeoutSecs.

func (*Verification) GetType

func (s *Verification) GetType() OptVerificationType

GetType returns the value of Type.

func (*Verification) GetUpdatedAt

func (s *Verification) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*Verification) GetVerifyProfileID

func (s *Verification) GetVerifyProfileID() OptUUID

GetVerifyProfileID returns the value of VerifyProfileID.

func (*Verification) MarshalJSON

func (s *Verification) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Verification) SetCreatedAt

func (s *Verification) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*Verification) SetID

func (s *Verification) SetID(val OptUUID)

SetID sets the value of ID.

func (*Verification) SetPhoneNumber

func (s *Verification) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*Verification) SetRecordType

func (s *Verification) SetRecordType(val OptVerificationRecordType)

SetRecordType sets the value of RecordType.

func (*Verification) SetStatus

func (s *Verification) SetStatus(val OptVerificationStatus)

SetStatus sets the value of Status.

func (*Verification) SetTimeoutSecs

func (s *Verification) SetTimeoutSecs(val OptInt)

SetTimeoutSecs sets the value of TimeoutSecs.

func (*Verification) SetType

func (s *Verification) SetType(val OptVerificationType)

SetType sets the value of Type.

func (*Verification) SetUpdatedAt

func (s *Verification) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*Verification) SetVerifyProfileID

func (s *Verification) SetVerifyProfileID(val OptUUID)

SetVerifyProfileID sets the value of VerifyProfileID.

func (*Verification) UnmarshalJSON

func (s *Verification) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Verification) Validate

func (s *Verification) Validate() error

type VerificationError

type VerificationError struct {
	Message string
	Detail  map[string]string
}

func (*VerificationError) Error

func (e *VerificationError) Error() string

type VerificationProfileRecordType

type VerificationProfileRecordType string

The possible verification profile record types. Ref: #/components/schemas/VerificationProfileRecordType

const (
	VerificationProfileRecordTypeVerificationProfile VerificationProfileRecordType = "verification_profile"
)

func (VerificationProfileRecordType) AllValues

AllValues returns all VerificationProfileRecordType values.

func (*VerificationProfileRecordType) Decode

Decode decodes VerificationProfileRecordType from json.

func (VerificationProfileRecordType) Encode

Encode encodes VerificationProfileRecordType as json.

func (VerificationProfileRecordType) MarshalJSON

func (s VerificationProfileRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (VerificationProfileRecordType) MarshalText

func (s VerificationProfileRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*VerificationProfileRecordType) UnmarshalJSON

func (s *VerificationProfileRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerificationProfileRecordType) UnmarshalText

func (s *VerificationProfileRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (VerificationProfileRecordType) Validate

func (s VerificationProfileRecordType) Validate() error

type VerificationRecordType

type VerificationRecordType string

The possible verification record types. Ref: #/components/schemas/VerificationRecordType

const (
	VerificationRecordTypeVerification VerificationRecordType = "verification"
)

func (VerificationRecordType) AllValues

AllValues returns all VerificationRecordType values.

func (*VerificationRecordType) Decode

func (s *VerificationRecordType) Decode(d *jx.Decoder) error

Decode decodes VerificationRecordType from json.

func (VerificationRecordType) Encode

func (s VerificationRecordType) Encode(e *jx.Encoder)

Encode encodes VerificationRecordType as json.

func (VerificationRecordType) MarshalJSON

func (s VerificationRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (VerificationRecordType) MarshalText

func (s VerificationRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*VerificationRecordType) UnmarshalJSON

func (s *VerificationRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerificationRecordType) UnmarshalText

func (s *VerificationRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (VerificationRecordType) Validate

func (s VerificationRecordType) Validate() error

type VerificationStatus

type VerificationStatus string

The possible statuses of the verification request. Ref: #/components/schemas/VerificationStatus

const (
	VerificationStatusPending  VerificationStatus = "pending"
	VerificationStatusAccepted VerificationStatus = "accepted"
	VerificationStatusInvalid  VerificationStatus = "invalid"
	VerificationStatusExpired  VerificationStatus = "expired"
	VerificationStatusError    VerificationStatus = "error"
)

func (VerificationStatus) AllValues

func (VerificationStatus) AllValues() []VerificationStatus

AllValues returns all VerificationStatus values.

func (*VerificationStatus) Decode

func (s *VerificationStatus) Decode(d *jx.Decoder) error

Decode decodes VerificationStatus from json.

func (VerificationStatus) Encode

func (s VerificationStatus) Encode(e *jx.Encoder)

Encode encodes VerificationStatus as json.

func (VerificationStatus) MarshalJSON

func (s VerificationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (VerificationStatus) MarshalText

func (s VerificationStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*VerificationStatus) UnmarshalJSON

func (s *VerificationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerificationStatus) UnmarshalText

func (s *VerificationStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (VerificationStatus) Validate

func (s VerificationStatus) Validate() error

type VerificationType

type VerificationType string

The possible types of verification. Ref: #/components/schemas/VerificationType

const (
	VerificationTypeSMS       VerificationType = "sms"
	VerificationTypeCall      VerificationType = "call"
	VerificationTypeFlashcall VerificationType = "flashcall"
)

func (VerificationType) AllValues

func (VerificationType) AllValues() []VerificationType

AllValues returns all VerificationType values.

func (*VerificationType) Decode

func (s *VerificationType) Decode(d *jx.Decoder) error

Decode decodes VerificationType from json.

func (VerificationType) Encode

func (s VerificationType) Encode(e *jx.Encoder)

Encode encodes VerificationType as json.

func (VerificationType) MarshalJSON

func (s VerificationType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (VerificationType) MarshalText

func (s VerificationType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*VerificationType) UnmarshalJSON

func (s *VerificationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerificationType) UnmarshalText

func (s *VerificationType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (VerificationType) Validate

func (s VerificationType) Validate() error

type VerifiedCallsDisplayProfile

type VerifiedCallsDisplayProfile struct {
	RecordType OptString `json:"record_type"`
	ID         OptUUID   `json:"id"`
	// The Verified Calls Display Profile's name.
	Name OptString `json:"name"`
	// The display name to be shown as the caller name in phones.
	DisplayName OptString `json:"display_name"`
	// The URL pointing to a public image file that will be displayed during calls in phones.
	LogoURL OptString `json:"logo_url"`
	// The approval status of the Verified Calls Display Profile in Google.
	Status OptVerifiedCallsDisplayProfileStatus `json:"status"`
	// The associated Business Identity.
	BusinessIdentity OptVerifiedCallsDisplayProfileBusinessIdentity `json:"business_identity"`
	PhoneNumbers     []VerifiedCallsDisplayProfilePhoneNumbersItem  `json:"phone_numbers"`
	CallReasons      []VerifiedCallsDisplayProfileCallReasonsItem   `json:"call_reasons"`
	// An ISO 8601 datetime string for when the display profile was added to the Telnyx platform.
	CreatedAt OptString `json:"created_at"`
	// An ISO 8601 datetime string for when the display profile was updated.
	UpdatedAt OptString `json:"updated_at"`
}

Ref: #/components/schemas/VerifiedCallsDisplayProfile

func (*VerifiedCallsDisplayProfile) Decode

Decode decodes VerifiedCallsDisplayProfile from json.

func (*VerifiedCallsDisplayProfile) Encode

func (s *VerifiedCallsDisplayProfile) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VerifiedCallsDisplayProfile) GetBusinessIdentity

GetBusinessIdentity returns the value of BusinessIdentity.

func (*VerifiedCallsDisplayProfile) GetCallReasons

GetCallReasons returns the value of CallReasons.

func (*VerifiedCallsDisplayProfile) GetCreatedAt

func (s *VerifiedCallsDisplayProfile) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*VerifiedCallsDisplayProfile) GetDisplayName

func (s *VerifiedCallsDisplayProfile) GetDisplayName() OptString

GetDisplayName returns the value of DisplayName.

func (*VerifiedCallsDisplayProfile) GetID

GetID returns the value of ID.

func (*VerifiedCallsDisplayProfile) GetLogoURL

func (s *VerifiedCallsDisplayProfile) GetLogoURL() OptString

GetLogoURL returns the value of LogoURL.

func (*VerifiedCallsDisplayProfile) GetName

GetName returns the value of Name.

func (*VerifiedCallsDisplayProfile) GetPhoneNumbers

GetPhoneNumbers returns the value of PhoneNumbers.

func (*VerifiedCallsDisplayProfile) GetRecordType

func (s *VerifiedCallsDisplayProfile) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*VerifiedCallsDisplayProfile) GetStatus

GetStatus returns the value of Status.

func (*VerifiedCallsDisplayProfile) GetUpdatedAt

func (s *VerifiedCallsDisplayProfile) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*VerifiedCallsDisplayProfile) MarshalJSON

func (s *VerifiedCallsDisplayProfile) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifiedCallsDisplayProfile) SetBusinessIdentity

SetBusinessIdentity sets the value of BusinessIdentity.

func (*VerifiedCallsDisplayProfile) SetCallReasons

SetCallReasons sets the value of CallReasons.

func (*VerifiedCallsDisplayProfile) SetCreatedAt

func (s *VerifiedCallsDisplayProfile) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*VerifiedCallsDisplayProfile) SetDisplayName

func (s *VerifiedCallsDisplayProfile) SetDisplayName(val OptString)

SetDisplayName sets the value of DisplayName.

func (*VerifiedCallsDisplayProfile) SetID

func (s *VerifiedCallsDisplayProfile) SetID(val OptUUID)

SetID sets the value of ID.

func (*VerifiedCallsDisplayProfile) SetLogoURL

func (s *VerifiedCallsDisplayProfile) SetLogoURL(val OptString)

SetLogoURL sets the value of LogoURL.

func (*VerifiedCallsDisplayProfile) SetName

func (s *VerifiedCallsDisplayProfile) SetName(val OptString)

SetName sets the value of Name.

func (*VerifiedCallsDisplayProfile) SetPhoneNumbers

SetPhoneNumbers sets the value of PhoneNumbers.

func (*VerifiedCallsDisplayProfile) SetRecordType

func (s *VerifiedCallsDisplayProfile) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*VerifiedCallsDisplayProfile) SetStatus

SetStatus sets the value of Status.

func (*VerifiedCallsDisplayProfile) SetUpdatedAt

func (s *VerifiedCallsDisplayProfile) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*VerifiedCallsDisplayProfile) UnmarshalJSON

func (s *VerifiedCallsDisplayProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifiedCallsDisplayProfile) Validate

func (s *VerifiedCallsDisplayProfile) Validate() error

type VerifiedCallsDisplayProfileBusinessIdentity

type VerifiedCallsDisplayProfileBusinessIdentity struct {
	RecordType OptString `json:"record_type"`
	// The name of the business identity on the telnyx platform.
	Name OptString `json:"name"`
}

The associated Business Identity.

func (*VerifiedCallsDisplayProfileBusinessIdentity) Decode

Decode decodes VerifiedCallsDisplayProfileBusinessIdentity from json.

func (*VerifiedCallsDisplayProfileBusinessIdentity) Encode

Encode implements json.Marshaler.

func (*VerifiedCallsDisplayProfileBusinessIdentity) GetName

GetName returns the value of Name.

func (*VerifiedCallsDisplayProfileBusinessIdentity) GetRecordType

GetRecordType returns the value of RecordType.

func (*VerifiedCallsDisplayProfileBusinessIdentity) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*VerifiedCallsDisplayProfileBusinessIdentity) SetName

SetName sets the value of Name.

func (*VerifiedCallsDisplayProfileBusinessIdentity) SetRecordType

SetRecordType sets the value of RecordType.

func (*VerifiedCallsDisplayProfileBusinessIdentity) UnmarshalJSON

func (s *VerifiedCallsDisplayProfileBusinessIdentity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifiedCallsDisplayProfileCallReasonsItem

type VerifiedCallsDisplayProfileCallReasonsItem struct {
	RecordType OptString `json:"record_type"`
	ID         OptUUID   `json:"id"`
	// The Call Reason text to be displayed to the call recipient.
	Reason OptString `json:"reason"`
	// The approval status of this individual call reason in Google.
	GoogleVerificationStatus OptVerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus `json:"google_verification_status"`
	// Additional information about the decision, if available.
	GoogleApprovalInfo OptString `json:"google_approval_info"`
	DisplayProfileID   OptUUID   `json:"display_profile_id"`
	// Marks the Phone Number to be removed from the Display Profile.
	Delete OptBool `json:"delete"`
}

The Call Reason to be displayed to the call recipient.

func (*VerifiedCallsDisplayProfileCallReasonsItem) Decode

Decode decodes VerifiedCallsDisplayProfileCallReasonsItem from json.

func (*VerifiedCallsDisplayProfileCallReasonsItem) Encode

Encode implements json.Marshaler.

func (*VerifiedCallsDisplayProfileCallReasonsItem) GetDelete

GetDelete returns the value of Delete.

func (*VerifiedCallsDisplayProfileCallReasonsItem) GetDisplayProfileID

func (s *VerifiedCallsDisplayProfileCallReasonsItem) GetDisplayProfileID() OptUUID

GetDisplayProfileID returns the value of DisplayProfileID.

func (*VerifiedCallsDisplayProfileCallReasonsItem) GetGoogleApprovalInfo

func (s *VerifiedCallsDisplayProfileCallReasonsItem) GetGoogleApprovalInfo() OptString

GetGoogleApprovalInfo returns the value of GoogleApprovalInfo.

func (*VerifiedCallsDisplayProfileCallReasonsItem) GetGoogleVerificationStatus

GetGoogleVerificationStatus returns the value of GoogleVerificationStatus.

func (*VerifiedCallsDisplayProfileCallReasonsItem) GetID

GetID returns the value of ID.

func (*VerifiedCallsDisplayProfileCallReasonsItem) GetReason

GetReason returns the value of Reason.

func (*VerifiedCallsDisplayProfileCallReasonsItem) GetRecordType

GetRecordType returns the value of RecordType.

func (*VerifiedCallsDisplayProfileCallReasonsItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*VerifiedCallsDisplayProfileCallReasonsItem) SetDelete

SetDelete sets the value of Delete.

func (*VerifiedCallsDisplayProfileCallReasonsItem) SetDisplayProfileID

func (s *VerifiedCallsDisplayProfileCallReasonsItem) SetDisplayProfileID(val OptUUID)

SetDisplayProfileID sets the value of DisplayProfileID.

func (*VerifiedCallsDisplayProfileCallReasonsItem) SetGoogleApprovalInfo

func (s *VerifiedCallsDisplayProfileCallReasonsItem) SetGoogleApprovalInfo(val OptString)

SetGoogleApprovalInfo sets the value of GoogleApprovalInfo.

func (*VerifiedCallsDisplayProfileCallReasonsItem) SetGoogleVerificationStatus

SetGoogleVerificationStatus sets the value of GoogleVerificationStatus.

func (*VerifiedCallsDisplayProfileCallReasonsItem) SetID

SetID sets the value of ID.

func (*VerifiedCallsDisplayProfileCallReasonsItem) SetReason

SetReason sets the value of Reason.

func (*VerifiedCallsDisplayProfileCallReasonsItem) SetRecordType

SetRecordType sets the value of RecordType.

func (*VerifiedCallsDisplayProfileCallReasonsItem) UnmarshalJSON

func (s *VerifiedCallsDisplayProfileCallReasonsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifiedCallsDisplayProfileCallReasonsItem) Validate

type VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus

type VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus string

The approval status of this individual call reason in Google.

const (
	VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatusSTATEUNSPECIFIED VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus = "STATE_UNSPECIFIED"
	VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatusPENDINGAPPROVAL  VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus = "PENDING_APPROVAL"
	VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatusAPPROVED         VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus = "APPROVED"
	VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatusDENIED           VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus = "DENIED"
	VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatusPENDINGREMOVAL   VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus = "PENDING_REMOVAL"
)

func (VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) AllValues

AllValues returns all VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus values.

func (*VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) Decode

Decode decodes VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus from json.

func (VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) Encode

Encode encodes VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus as json.

func (VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (VerifiedCallsDisplayProfileCallReasonsItemGoogleVerificationStatus) Validate

type VerifiedCallsDisplayProfilePhoneNumbersItem

type VerifiedCallsDisplayProfilePhoneNumbersItem struct {
	RecordType OptString `json:"record_type"`
	ID         OptUUID   `json:"id"`
	// The phone number in e164 format.
	PhoneNumber OptString `json:"phone_number"`
	// The approval status of this individual phone number in Google.
	GoogleVerificationStatus OptVerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus `json:"google_verification_status"`
	// Additional information about the decision, if available.
	GoogleApprovalInfo OptString `json:"google_approval_info"`
	DisplayProfileID   OptUUID   `json:"display_profile_id"`
	// Marks the Phone Number to be removed from the Display Profile.
	Delete OptBool `json:"delete"`
}

A Phone Number that can make phone calls displaying the configured brand information.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) Decode

Decode decodes VerifiedCallsDisplayProfilePhoneNumbersItem from json.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) Encode

Encode implements json.Marshaler.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) GetDelete

GetDelete returns the value of Delete.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) GetDisplayProfileID

func (s *VerifiedCallsDisplayProfilePhoneNumbersItem) GetDisplayProfileID() OptUUID

GetDisplayProfileID returns the value of DisplayProfileID.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) GetGoogleApprovalInfo

func (s *VerifiedCallsDisplayProfilePhoneNumbersItem) GetGoogleApprovalInfo() OptString

GetGoogleApprovalInfo returns the value of GoogleApprovalInfo.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) GetGoogleVerificationStatus

GetGoogleVerificationStatus returns the value of GoogleVerificationStatus.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) GetID

GetID returns the value of ID.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) GetPhoneNumber

GetPhoneNumber returns the value of PhoneNumber.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) GetRecordType

GetRecordType returns the value of RecordType.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) SetDelete

SetDelete sets the value of Delete.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) SetDisplayProfileID

func (s *VerifiedCallsDisplayProfilePhoneNumbersItem) SetDisplayProfileID(val OptUUID)

SetDisplayProfileID sets the value of DisplayProfileID.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) SetGoogleApprovalInfo

func (s *VerifiedCallsDisplayProfilePhoneNumbersItem) SetGoogleApprovalInfo(val OptString)

SetGoogleApprovalInfo sets the value of GoogleApprovalInfo.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) SetGoogleVerificationStatus

SetGoogleVerificationStatus sets the value of GoogleVerificationStatus.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) SetID

SetID sets the value of ID.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) SetPhoneNumber

SetPhoneNumber sets the value of PhoneNumber.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) SetRecordType

SetRecordType sets the value of RecordType.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) UnmarshalJSON

func (s *VerifiedCallsDisplayProfilePhoneNumbersItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifiedCallsDisplayProfilePhoneNumbersItem) Validate

type VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus

type VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus string

The approval status of this individual phone number in Google.

const (
	VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatusSTATEUNSPECIFIED VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus = "STATE_UNSPECIFIED"
	VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatusPENDINGAPPROVAL  VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus = "PENDING_APPROVAL"
	VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatusAPPROVED         VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus = "APPROVED"
	VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatusDENIED           VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus = "DENIED"
	VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatusPENDINGREMOVAL   VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus = "PENDING_REMOVAL"
)

func (VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) AllValues

AllValues returns all VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus values.

func (*VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) Decode

Decode decodes VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus from json.

func (VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) Encode

Encode encodes VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus as json.

func (VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (VerifiedCallsDisplayProfilePhoneNumbersItemGoogleVerificationStatus) Validate

type VerifiedCallsDisplayProfileStatus

type VerifiedCallsDisplayProfileStatus string

The approval status of the Verified Calls Display Profile in Google.

const (
	VerifiedCallsDisplayProfileStatusVERIFICATIONSTATEUNSPECIFIED    VerifiedCallsDisplayProfileStatus = "VERIFICATION_STATE_UNSPECIFIED"
	VerifiedCallsDisplayProfileStatusVERIFICATIONSTATEUNVERIFIED     VerifiedCallsDisplayProfileStatus = "VERIFICATION_STATE_UNVERIFIED"
	VerifiedCallsDisplayProfileStatusVERIFICATIONSTATEPENDING        VerifiedCallsDisplayProfileStatus = "VERIFICATION_STATE_PENDING"
	VerifiedCallsDisplayProfileStatusVERIFICATIONSTATEVERIFIED       VerifiedCallsDisplayProfileStatus = "VERIFICATION_STATE_VERIFIED"
	VerifiedCallsDisplayProfileStatusVERIFICATIONSTATESUSPENDEDINGMB VerifiedCallsDisplayProfileStatus = "VERIFICATION_STATE_SUSPENDED_IN_GMB"
)

func (VerifiedCallsDisplayProfileStatus) AllValues

AllValues returns all VerifiedCallsDisplayProfileStatus values.

func (*VerifiedCallsDisplayProfileStatus) Decode

Decode decodes VerifiedCallsDisplayProfileStatus from json.

func (VerifiedCallsDisplayProfileStatus) Encode

Encode encodes VerifiedCallsDisplayProfileStatus as json.

func (VerifiedCallsDisplayProfileStatus) MarshalJSON

func (s VerifiedCallsDisplayProfileStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (VerifiedCallsDisplayProfileStatus) MarshalText

func (s VerifiedCallsDisplayProfileStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*VerifiedCallsDisplayProfileStatus) UnmarshalJSON

func (s *VerifiedCallsDisplayProfileStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifiedCallsDisplayProfileStatus) UnmarshalText

func (s *VerifiedCallsDisplayProfileStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (VerifiedCallsDisplayProfileStatus) Validate

type VerifiedNumberRecordType

type VerifiedNumberRecordType string

The possible verified numbers record types. Ref: #/components/schemas/VerifiedNumberRecordType

const (
	VerifiedNumberRecordTypeVerifiedNumber VerifiedNumberRecordType = "verified_number"
)

func (VerifiedNumberRecordType) AllValues

AllValues returns all VerifiedNumberRecordType values.

func (*VerifiedNumberRecordType) Decode

func (s *VerifiedNumberRecordType) Decode(d *jx.Decoder) error

Decode decodes VerifiedNumberRecordType from json.

func (VerifiedNumberRecordType) Encode

func (s VerifiedNumberRecordType) Encode(e *jx.Encoder)

Encode encodes VerifiedNumberRecordType as json.

func (VerifiedNumberRecordType) MarshalJSON

func (s VerifiedNumberRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (VerifiedNumberRecordType) MarshalText

func (s VerifiedNumberRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*VerifiedNumberRecordType) UnmarshalJSON

func (s *VerifiedNumberRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifiedNumberRecordType) UnmarshalText

func (s *VerifiedNumberRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (VerifiedNumberRecordType) Validate

func (s VerifiedNumberRecordType) Validate() error

type VerifiedNumberResponse

type VerifiedNumberResponse struct {
	PhoneNumber OptString                   `json:"phone_number"`
	RecordType  OptVerifiedNumberRecordType `json:"record_type"`
	VerifiedAt  OptString                   `json:"verified_at"`
}

Ref: #/components/schemas/VerifiedNumberResponse

func (*VerifiedNumberResponse) Decode

func (s *VerifiedNumberResponse) Decode(d *jx.Decoder) error

Decode decodes VerifiedNumberResponse from json.

func (*VerifiedNumberResponse) Encode

func (s *VerifiedNumberResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VerifiedNumberResponse) GetPhoneNumber

func (s *VerifiedNumberResponse) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*VerifiedNumberResponse) GetRecordType

GetRecordType returns the value of RecordType.

func (*VerifiedNumberResponse) GetVerifiedAt

func (s *VerifiedNumberResponse) GetVerifiedAt() OptString

GetVerifiedAt returns the value of VerifiedAt.

func (*VerifiedNumberResponse) MarshalJSON

func (s *VerifiedNumberResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifiedNumberResponse) SetPhoneNumber

func (s *VerifiedNumberResponse) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*VerifiedNumberResponse) SetRecordType

SetRecordType sets the value of RecordType.

func (*VerifiedNumberResponse) SetVerifiedAt

func (s *VerifiedNumberResponse) SetVerifiedAt(val OptString)

SetVerifiedAt sets the value of VerifiedAt.

func (*VerifiedNumberResponse) UnmarshalJSON

func (s *VerifiedNumberResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifiedNumberResponse) Validate

func (s *VerifiedNumberResponse) Validate() error

type VerifiedNumberResponseDataWrapper

type VerifiedNumberResponseDataWrapper struct {
	Data OptVerifiedNumberResponse `json:"data"`
}

Ref: #/components/schemas/VerifiedNumberResponseDataWrapper

func (*VerifiedNumberResponseDataWrapper) Decode

Decode decodes VerifiedNumberResponseDataWrapper from json.

func (*VerifiedNumberResponseDataWrapper) Encode

Encode implements json.Marshaler.

func (*VerifiedNumberResponseDataWrapper) GetData

GetData returns the value of Data.

func (*VerifiedNumberResponseDataWrapper) MarshalJSON

func (s *VerifiedNumberResponseDataWrapper) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifiedNumberResponseDataWrapper) SetData

SetData sets the value of Data.

func (*VerifiedNumberResponseDataWrapper) UnmarshalJSON

func (s *VerifiedNumberResponseDataWrapper) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifiedNumberResponseDataWrapper) Validate

type VerifyPortingVerificationCodes

type VerifyPortingVerificationCodes struct {
	Data []PortingVerificationCode `json:"data"`
}

func (*VerifyPortingVerificationCodes) Decode

Decode decodes VerifyPortingVerificationCodes from json.

func (*VerifyPortingVerificationCodes) Encode

Encode implements json.Marshaler.

func (*VerifyPortingVerificationCodes) GetData

GetData returns the value of Data.

func (*VerifyPortingVerificationCodes) MarshalJSON

func (s *VerifyPortingVerificationCodes) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyPortingVerificationCodes) SetData

SetData sets the value of Data.

func (*VerifyPortingVerificationCodes) UnmarshalJSON

func (s *VerifyPortingVerificationCodes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifyPortingVerificationCodesNotFound

type VerifyPortingVerificationCodesNotFound struct{}

VerifyPortingVerificationCodesNotFound is response for VerifyPortingVerificationCodes operation.

type VerifyPortingVerificationCodesParams

type VerifyPortingVerificationCodesParams struct {
	// Porting Order id.
	ID uuid.UUID
}

VerifyPortingVerificationCodesParams is parameters of VerifyPortingVerificationCodes operation.

type VerifyPortingVerificationCodesReq

type VerifyPortingVerificationCodesReq struct {
	VerificationCodes []VerifyPortingVerificationCodesReqVerificationCodesItem `json:"verification_codes"`
}

func (*VerifyPortingVerificationCodesReq) Decode

Decode decodes VerifyPortingVerificationCodesReq from json.

func (*VerifyPortingVerificationCodesReq) Encode

Encode implements json.Marshaler.

func (*VerifyPortingVerificationCodesReq) GetVerificationCodes

GetVerificationCodes returns the value of VerificationCodes.

func (*VerifyPortingVerificationCodesReq) MarshalJSON

func (s *VerifyPortingVerificationCodesReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyPortingVerificationCodesReq) SetVerificationCodes

SetVerificationCodes sets the value of VerificationCodes.

func (*VerifyPortingVerificationCodesReq) UnmarshalJSON

func (s *VerifyPortingVerificationCodesReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifyPortingVerificationCodesReq) Validate

type VerifyPortingVerificationCodesReqVerificationCodesItem

type VerifyPortingVerificationCodesReqVerificationCodesItem struct {
	PhoneNumber OptString `json:"phone_number"`
	Code        OptString `json:"code"`
}

func (*VerifyPortingVerificationCodesReqVerificationCodesItem) Decode

Decode decodes VerifyPortingVerificationCodesReqVerificationCodesItem from json.

func (*VerifyPortingVerificationCodesReqVerificationCodesItem) Encode

Encode implements json.Marshaler.

func (*VerifyPortingVerificationCodesReqVerificationCodesItem) GetCode

GetCode returns the value of Code.

func (*VerifyPortingVerificationCodesReqVerificationCodesItem) GetPhoneNumber

GetPhoneNumber returns the value of PhoneNumber.

func (*VerifyPortingVerificationCodesReqVerificationCodesItem) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*VerifyPortingVerificationCodesReqVerificationCodesItem) SetCode

SetCode sets the value of Code.

func (*VerifyPortingVerificationCodesReqVerificationCodesItem) SetPhoneNumber

SetPhoneNumber sets the value of PhoneNumber.

func (*VerifyPortingVerificationCodesReqVerificationCodesItem) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifyPortingVerificationCodesRes

type VerifyPortingVerificationCodesRes interface {
	// contains filtered or unexported methods
}

type VerifyPortingVerificationCodesUnauthorized

type VerifyPortingVerificationCodesUnauthorized struct{}

VerifyPortingVerificationCodesUnauthorized is response for VerifyPortingVerificationCodes operation.

type VerifyPortingVerificationCodesUnprocessableEntity

type VerifyPortingVerificationCodesUnprocessableEntity struct{}

VerifyPortingVerificationCodesUnprocessableEntity is response for VerifyPortingVerificationCodes operation.

type VerifyProfileCallResponse

type VerifyProfileCallResponse struct {
	// The message template identifier selected from /verify_profiles/templates.
	MessagingTemplateID OptUUID `json:"messaging_template_id"`
	// The name that identifies the application requesting 2fa in the verification message.
	AppName OptString `json:"app_name"`
	// Enabled country destinations to send verification codes. The elements in the list must be valid
	// ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all destinations will be allowed.
	WhitelistedDestinations []string `json:"whitelisted_destinations"`
	// For every request that is initiated via this Verify profile, this sets the number of seconds
	// before a verification request code expires. Once the verification request expires, the user cannot
	// use the code to verify their identity.
	DefaultVerificationTimeoutSecs OptInt `json:"default_verification_timeout_secs"`
}

Ref: #/components/schemas/VerifyProfileCallResponse

func (*VerifyProfileCallResponse) Decode

func (s *VerifyProfileCallResponse) Decode(d *jx.Decoder) error

Decode decodes VerifyProfileCallResponse from json.

func (*VerifyProfileCallResponse) Encode

func (s *VerifyProfileCallResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VerifyProfileCallResponse) GetAppName

func (s *VerifyProfileCallResponse) GetAppName() OptString

GetAppName returns the value of AppName.

func (*VerifyProfileCallResponse) GetDefaultVerificationTimeoutSecs

func (s *VerifyProfileCallResponse) GetDefaultVerificationTimeoutSecs() OptInt

GetDefaultVerificationTimeoutSecs returns the value of DefaultVerificationTimeoutSecs.

func (*VerifyProfileCallResponse) GetMessagingTemplateID

func (s *VerifyProfileCallResponse) GetMessagingTemplateID() OptUUID

GetMessagingTemplateID returns the value of MessagingTemplateID.

func (*VerifyProfileCallResponse) GetWhitelistedDestinations

func (s *VerifyProfileCallResponse) GetWhitelistedDestinations() []string

GetWhitelistedDestinations returns the value of WhitelistedDestinations.

func (*VerifyProfileCallResponse) MarshalJSON

func (s *VerifyProfileCallResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyProfileCallResponse) SetAppName

func (s *VerifyProfileCallResponse) SetAppName(val OptString)

SetAppName sets the value of AppName.

func (*VerifyProfileCallResponse) SetDefaultVerificationTimeoutSecs

func (s *VerifyProfileCallResponse) SetDefaultVerificationTimeoutSecs(val OptInt)

SetDefaultVerificationTimeoutSecs sets the value of DefaultVerificationTimeoutSecs.

func (*VerifyProfileCallResponse) SetMessagingTemplateID

func (s *VerifyProfileCallResponse) SetMessagingTemplateID(val OptUUID)

SetMessagingTemplateID sets the value of MessagingTemplateID.

func (*VerifyProfileCallResponse) SetWhitelistedDestinations

func (s *VerifyProfileCallResponse) SetWhitelistedDestinations(val []string)

SetWhitelistedDestinations sets the value of WhitelistedDestinations.

func (*VerifyProfileCallResponse) UnmarshalJSON

func (s *VerifyProfileCallResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifyProfileCallResponse) Validate

func (s *VerifyProfileCallResponse) Validate() error

type VerifyProfileFlashcallResponse

type VerifyProfileFlashcallResponse struct {
	// For every request that is initiated via this Verify profile, this sets the number of seconds
	// before a verification request code expires. Once the verification request expires, the user cannot
	// use the code to verify their identity.
	DefaultVerificationTimeoutSecs OptInt `json:"default_verification_timeout_secs"`
}

Ref: #/components/schemas/VerifyProfileFlashcallResponse

func (*VerifyProfileFlashcallResponse) Decode

Decode decodes VerifyProfileFlashcallResponse from json.

func (*VerifyProfileFlashcallResponse) Encode

Encode implements json.Marshaler.

func (*VerifyProfileFlashcallResponse) GetDefaultVerificationTimeoutSecs

func (s *VerifyProfileFlashcallResponse) GetDefaultVerificationTimeoutSecs() OptInt

GetDefaultVerificationTimeoutSecs returns the value of DefaultVerificationTimeoutSecs.

func (*VerifyProfileFlashcallResponse) MarshalJSON

func (s *VerifyProfileFlashcallResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyProfileFlashcallResponse) SetDefaultVerificationTimeoutSecs

func (s *VerifyProfileFlashcallResponse) SetDefaultVerificationTimeoutSecs(val OptInt)

SetDefaultVerificationTimeoutSecs sets the value of DefaultVerificationTimeoutSecs.

func (*VerifyProfileFlashcallResponse) UnmarshalJSON

func (s *VerifyProfileFlashcallResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifyProfileMessageTemplateResponse

type VerifyProfileMessageTemplateResponse struct {
	ID   OptUUID   `json:"id"`
	Text OptString `json:"text"`
}

Ref: #/components/schemas/VerifyProfileMessageTemplateResponse

func (*VerifyProfileMessageTemplateResponse) Decode

Decode decodes VerifyProfileMessageTemplateResponse from json.

func (*VerifyProfileMessageTemplateResponse) Encode

Encode implements json.Marshaler.

func (*VerifyProfileMessageTemplateResponse) GetID

GetID returns the value of ID.

func (*VerifyProfileMessageTemplateResponse) GetText

GetText returns the value of Text.

func (*VerifyProfileMessageTemplateResponse) MarshalJSON

func (s *VerifyProfileMessageTemplateResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyProfileMessageTemplateResponse) SetID

SetID sets the value of ID.

func (*VerifyProfileMessageTemplateResponse) SetText

SetText sets the value of Text.

func (*VerifyProfileMessageTemplateResponse) UnmarshalJSON

func (s *VerifyProfileMessageTemplateResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifyProfileResponse

type VerifyProfileResponse struct {
	ID                 OptUUID                           `json:"id"`
	Name               OptString                         `json:"name"`
	WebhookURL         OptString                         `json:"webhook_url"`
	WebhookFailoverURL OptString                         `json:"webhook_failover_url"`
	RecordType         OptVerificationProfileRecordType  `json:"record_type"`
	CreatedAt          OptString                         `json:"created_at"`
	UpdatedAt          OptString                         `json:"updated_at"`
	SMS                OptVerifyProfileSMSResponse       `json:"sms"`
	Call               OptVerifyProfileCallResponse      `json:"call"`
	Flashcall          OptVerifyProfileFlashcallResponse `json:"flashcall"`
	Language           OptString                         `json:"language"`
}

Ref: #/components/schemas/VerifyProfileResponse

func (*VerifyProfileResponse) Decode

func (s *VerifyProfileResponse) Decode(d *jx.Decoder) error

Decode decodes VerifyProfileResponse from json.

func (*VerifyProfileResponse) Encode

func (s *VerifyProfileResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VerifyProfileResponse) GetCall

GetCall returns the value of Call.

func (*VerifyProfileResponse) GetCreatedAt

func (s *VerifyProfileResponse) GetCreatedAt() OptString

GetCreatedAt returns the value of CreatedAt.

func (*VerifyProfileResponse) GetFlashcall

GetFlashcall returns the value of Flashcall.

func (*VerifyProfileResponse) GetID

func (s *VerifyProfileResponse) GetID() OptUUID

GetID returns the value of ID.

func (*VerifyProfileResponse) GetLanguage

func (s *VerifyProfileResponse) GetLanguage() OptString

GetLanguage returns the value of Language.

func (*VerifyProfileResponse) GetName

func (s *VerifyProfileResponse) GetName() OptString

GetName returns the value of Name.

func (*VerifyProfileResponse) GetRecordType

GetRecordType returns the value of RecordType.

func (*VerifyProfileResponse) GetSMS

GetSMS returns the value of SMS.

func (*VerifyProfileResponse) GetUpdatedAt

func (s *VerifyProfileResponse) GetUpdatedAt() OptString

GetUpdatedAt returns the value of UpdatedAt.

func (*VerifyProfileResponse) GetWebhookFailoverURL

func (s *VerifyProfileResponse) GetWebhookFailoverURL() OptString

GetWebhookFailoverURL returns the value of WebhookFailoverURL.

func (*VerifyProfileResponse) GetWebhookURL

func (s *VerifyProfileResponse) GetWebhookURL() OptString

GetWebhookURL returns the value of WebhookURL.

func (*VerifyProfileResponse) MarshalJSON

func (s *VerifyProfileResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyProfileResponse) SetCall

SetCall sets the value of Call.

func (*VerifyProfileResponse) SetCreatedAt

func (s *VerifyProfileResponse) SetCreatedAt(val OptString)

SetCreatedAt sets the value of CreatedAt.

func (*VerifyProfileResponse) SetFlashcall

SetFlashcall sets the value of Flashcall.

func (*VerifyProfileResponse) SetID

func (s *VerifyProfileResponse) SetID(val OptUUID)

SetID sets the value of ID.

func (*VerifyProfileResponse) SetLanguage

func (s *VerifyProfileResponse) SetLanguage(val OptString)

SetLanguage sets the value of Language.

func (*VerifyProfileResponse) SetName

func (s *VerifyProfileResponse) SetName(val OptString)

SetName sets the value of Name.

func (*VerifyProfileResponse) SetRecordType

SetRecordType sets the value of RecordType.

func (*VerifyProfileResponse) SetSMS

SetSMS sets the value of SMS.

func (*VerifyProfileResponse) SetUpdatedAt

func (s *VerifyProfileResponse) SetUpdatedAt(val OptString)

SetUpdatedAt sets the value of UpdatedAt.

func (*VerifyProfileResponse) SetWebhookFailoverURL

func (s *VerifyProfileResponse) SetWebhookFailoverURL(val OptString)

SetWebhookFailoverURL sets the value of WebhookFailoverURL.

func (*VerifyProfileResponse) SetWebhookURL

func (s *VerifyProfileResponse) SetWebhookURL(val OptString)

SetWebhookURL sets the value of WebhookURL.

func (*VerifyProfileResponse) UnmarshalJSON

func (s *VerifyProfileResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifyProfileResponse) Validate

func (s *VerifyProfileResponse) Validate() error

type VerifyProfileResponseDataWrapper

type VerifyProfileResponseDataWrapper struct {
	Data OptVerifyProfileResponse `json:"data"`
}

Ref: #/components/schemas/VerifyProfileResponseDataWrapper

func (*VerifyProfileResponseDataWrapper) Decode

Decode decodes VerifyProfileResponseDataWrapper from json.

func (*VerifyProfileResponseDataWrapper) Encode

Encode implements json.Marshaler.

func (*VerifyProfileResponseDataWrapper) GetData

GetData returns the value of Data.

func (*VerifyProfileResponseDataWrapper) MarshalJSON

func (s *VerifyProfileResponseDataWrapper) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyProfileResponseDataWrapper) SetData

SetData sets the value of Data.

func (*VerifyProfileResponseDataWrapper) UnmarshalJSON

func (s *VerifyProfileResponseDataWrapper) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifyProfileResponseDataWrapper) Validate

type VerifyProfileSMSResponse

type VerifyProfileSMSResponse struct {
	// The message template identifier selected from /verify_profiles/templates.
	MessagingTemplateID OptUUID `json:"messaging_template_id"`
	// The name that identifies the application requesting 2fa in the verification message.
	AppName OptString `json:"app_name"`
	// The alphanumeric sender ID to use when sending to destinations that require an alphanumeric sender
	// ID.
	AlphaSender OptNilString `json:"alpha_sender"`
	// Enabled country destinations to send verification codes. The elements in the list must be valid
	// ISO 3166-1 alpha-2 country codes. If set to `["*"]`, all destinations will be allowed.
	WhitelistedDestinations []string `json:"whitelisted_destinations"`
	// For every request that is initiated via this Verify profile, this sets the number of seconds
	// before a verification request code expires. Once the verification request expires, the user cannot
	// use the code to verify their identity.
	DefaultVerificationTimeoutSecs OptInt `json:"default_verification_timeout_secs"`
}

Ref: #/components/schemas/VerifyProfileSMSResponse

func (*VerifyProfileSMSResponse) Decode

func (s *VerifyProfileSMSResponse) Decode(d *jx.Decoder) error

Decode decodes VerifyProfileSMSResponse from json.

func (*VerifyProfileSMSResponse) Encode

func (s *VerifyProfileSMSResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VerifyProfileSMSResponse) GetAlphaSender

func (s *VerifyProfileSMSResponse) GetAlphaSender() OptNilString

GetAlphaSender returns the value of AlphaSender.

func (*VerifyProfileSMSResponse) GetAppName

func (s *VerifyProfileSMSResponse) GetAppName() OptString

GetAppName returns the value of AppName.

func (*VerifyProfileSMSResponse) GetDefaultVerificationTimeoutSecs

func (s *VerifyProfileSMSResponse) GetDefaultVerificationTimeoutSecs() OptInt

GetDefaultVerificationTimeoutSecs returns the value of DefaultVerificationTimeoutSecs.

func (*VerifyProfileSMSResponse) GetMessagingTemplateID

func (s *VerifyProfileSMSResponse) GetMessagingTemplateID() OptUUID

GetMessagingTemplateID returns the value of MessagingTemplateID.

func (*VerifyProfileSMSResponse) GetWhitelistedDestinations

func (s *VerifyProfileSMSResponse) GetWhitelistedDestinations() []string

GetWhitelistedDestinations returns the value of WhitelistedDestinations.

func (*VerifyProfileSMSResponse) MarshalJSON

func (s *VerifyProfileSMSResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyProfileSMSResponse) SetAlphaSender

func (s *VerifyProfileSMSResponse) SetAlphaSender(val OptNilString)

SetAlphaSender sets the value of AlphaSender.

func (*VerifyProfileSMSResponse) SetAppName

func (s *VerifyProfileSMSResponse) SetAppName(val OptString)

SetAppName sets the value of AppName.

func (*VerifyProfileSMSResponse) SetDefaultVerificationTimeoutSecs

func (s *VerifyProfileSMSResponse) SetDefaultVerificationTimeoutSecs(val OptInt)

SetDefaultVerificationTimeoutSecs sets the value of DefaultVerificationTimeoutSecs.

func (*VerifyProfileSMSResponse) SetMessagingTemplateID

func (s *VerifyProfileSMSResponse) SetMessagingTemplateID(val OptUUID)

SetMessagingTemplateID sets the value of MessagingTemplateID.

func (*VerifyProfileSMSResponse) SetWhitelistedDestinations

func (s *VerifyProfileSMSResponse) SetWhitelistedDestinations(val []string)

SetWhitelistedDestinations sets the value of WhitelistedDestinations.

func (*VerifyProfileSMSResponse) UnmarshalJSON

func (s *VerifyProfileSMSResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifyProfileSMSResponse) Validate

func (s *VerifyProfileSMSResponse) Validate() error

type VerifyVerificationCodeByPhoneNumberParams

type VerifyVerificationCodeByPhoneNumberParams struct {
	// The phone number associated with the verification code being verified.
	PhoneNumber string
}

VerifyVerificationCodeByPhoneNumberParams is parameters of VerifyVerificationCodeByPhoneNumber operation.

type VerifyVerificationCodeByPhoneNumberRes

type VerifyVerificationCodeByPhoneNumberRes interface {
	// contains filtered or unexported methods
}

type VerifyVerificationCodeNotFound

type VerifyVerificationCodeNotFound Errors

func (*VerifyVerificationCodeNotFound) Decode

Decode decodes VerifyVerificationCodeNotFound from json.

func (*VerifyVerificationCodeNotFound) Encode

Encode encodes VerifyVerificationCodeNotFound as json.

func (*VerifyVerificationCodeNotFound) MarshalJSON

func (s *VerifyVerificationCodeNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyVerificationCodeNotFound) UnmarshalJSON

func (s *VerifyVerificationCodeNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifyVerificationCodeParams

type VerifyVerificationCodeParams struct {
	// The phone number being verified.
	PhoneNumber string
}

VerifyVerificationCodeParams is parameters of VerifyVerificationCode operation.

type VerifyVerificationCodeReq

type VerifyVerificationCodeReq struct {
	VerificationCode string `json:"verification_code"`
}

func (*VerifyVerificationCodeReq) Decode

func (s *VerifyVerificationCodeReq) Decode(d *jx.Decoder) error

Decode decodes VerifyVerificationCodeReq from json.

func (*VerifyVerificationCodeReq) Encode

func (s *VerifyVerificationCodeReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VerifyVerificationCodeReq) GetVerificationCode

func (s *VerifyVerificationCodeReq) GetVerificationCode() string

GetVerificationCode returns the value of VerificationCode.

func (*VerifyVerificationCodeReq) MarshalJSON

func (s *VerifyVerificationCodeReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyVerificationCodeReq) SetVerificationCode

func (s *VerifyVerificationCodeReq) SetVerificationCode(val string)

SetVerificationCode sets the value of VerificationCode.

func (*VerifyVerificationCodeReq) UnmarshalJSON

func (s *VerifyVerificationCodeReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifyVerificationCodeRequest

type VerifyVerificationCodeRequest struct {
	// This is the code the user submits for verification.
	Code string `json:"code"`
	// The identifier of the associated Verify profile.
	VerifyProfileID uuid.UUID `json:"verify_profile_id"`
}

Ref: #/components/schemas/VerifyVerificationCodeRequest

func (*VerifyVerificationCodeRequest) Decode

Decode decodes VerifyVerificationCodeRequest from json.

func (*VerifyVerificationCodeRequest) Encode

Encode implements json.Marshaler.

func (*VerifyVerificationCodeRequest) GetCode

GetCode returns the value of Code.

func (*VerifyVerificationCodeRequest) GetVerifyProfileID

func (s *VerifyVerificationCodeRequest) GetVerifyProfileID() uuid.UUID

GetVerifyProfileID returns the value of VerifyProfileID.

func (*VerifyVerificationCodeRequest) MarshalJSON

func (s *VerifyVerificationCodeRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyVerificationCodeRequest) SetCode

func (s *VerifyVerificationCodeRequest) SetCode(val string)

SetCode sets the value of Code.

func (*VerifyVerificationCodeRequest) SetVerifyProfileID

func (s *VerifyVerificationCodeRequest) SetVerifyProfileID(val uuid.UUID)

SetVerifyProfileID sets the value of VerifyProfileID.

func (*VerifyVerificationCodeRequest) UnmarshalJSON

func (s *VerifyVerificationCodeRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifyVerificationCodeRes

type VerifyVerificationCodeRes interface {
	// contains filtered or unexported methods
}

type VerifyVerificationCodeResponse

type VerifyVerificationCodeResponse struct {
	Data VerifyVerificationCodeResponseData `json:"data"`
}

Ref: #/components/schemas/VerifyVerificationCodeResponse

func (*VerifyVerificationCodeResponse) Decode

Decode decodes VerifyVerificationCodeResponse from json.

func (*VerifyVerificationCodeResponse) Encode

Encode implements json.Marshaler.

func (*VerifyVerificationCodeResponse) GetData

GetData returns the value of Data.

func (*VerifyVerificationCodeResponse) MarshalJSON

func (s *VerifyVerificationCodeResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyVerificationCodeResponse) SetData

SetData sets the value of Data.

func (*VerifyVerificationCodeResponse) UnmarshalJSON

func (s *VerifyVerificationCodeResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifyVerificationCodeResponse) Validate

func (s *VerifyVerificationCodeResponse) Validate() error

type VerifyVerificationCodeResponseData

type VerifyVerificationCodeResponseData struct {
	// +E164 formatted phone number.
	PhoneNumber string `json:"phone_number"`
	// Identifies if the verification code has been accepted or rejected.
	ResponseCode VerifyVerificationCodeResponseDataResponseCode `json:"response_code"`
}

func (*VerifyVerificationCodeResponseData) Decode

Decode decodes VerifyVerificationCodeResponseData from json.

func (*VerifyVerificationCodeResponseData) Encode

Encode implements json.Marshaler.

func (*VerifyVerificationCodeResponseData) GetPhoneNumber

func (s *VerifyVerificationCodeResponseData) GetPhoneNumber() string

GetPhoneNumber returns the value of PhoneNumber.

func (*VerifyVerificationCodeResponseData) GetResponseCode

GetResponseCode returns the value of ResponseCode.

func (*VerifyVerificationCodeResponseData) MarshalJSON

func (s *VerifyVerificationCodeResponseData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyVerificationCodeResponseData) SetPhoneNumber

func (s *VerifyVerificationCodeResponseData) SetPhoneNumber(val string)

SetPhoneNumber sets the value of PhoneNumber.

func (*VerifyVerificationCodeResponseData) SetResponseCode

SetResponseCode sets the value of ResponseCode.

func (*VerifyVerificationCodeResponseData) UnmarshalJSON

func (s *VerifyVerificationCodeResponseData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifyVerificationCodeResponseData) Validate

type VerifyVerificationCodeResponseDataResponseCode

type VerifyVerificationCodeResponseDataResponseCode string

Identifies if the verification code has been accepted or rejected.

const (
	VerifyVerificationCodeResponseDataResponseCodeAccepted VerifyVerificationCodeResponseDataResponseCode = "accepted"
	VerifyVerificationCodeResponseDataResponseCodeRejected VerifyVerificationCodeResponseDataResponseCode = "rejected"
)

func (VerifyVerificationCodeResponseDataResponseCode) AllValues

AllValues returns all VerifyVerificationCodeResponseDataResponseCode values.

func (*VerifyVerificationCodeResponseDataResponseCode) Decode

Decode decodes VerifyVerificationCodeResponseDataResponseCode from json.

func (VerifyVerificationCodeResponseDataResponseCode) Encode

Encode encodes VerifyVerificationCodeResponseDataResponseCode as json.

func (VerifyVerificationCodeResponseDataResponseCode) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (VerifyVerificationCodeResponseDataResponseCode) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*VerifyVerificationCodeResponseDataResponseCode) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifyVerificationCodeResponseDataResponseCode) UnmarshalText

UnmarshalText implements encoding.TextUnmarshaler.

func (VerifyVerificationCodeResponseDataResponseCode) Validate

type VerifyVerificationCodeUnauthorized

type VerifyVerificationCodeUnauthorized Errors

func (*VerifyVerificationCodeUnauthorized) Decode

Decode decodes VerifyVerificationCodeUnauthorized from json.

func (*VerifyVerificationCodeUnauthorized) Encode

Encode encodes VerifyVerificationCodeUnauthorized as json.

func (*VerifyVerificationCodeUnauthorized) MarshalJSON

func (s *VerifyVerificationCodeUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyVerificationCodeUnauthorized) UnmarshalJSON

func (s *VerifyVerificationCodeUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ViewRoomRecordingParams

type ViewRoomRecordingParams struct {
	// The unique identifier of a room recording.
	RoomRecordingID uuid.UUID
}

ViewRoomRecordingParams is parameters of ViewRoomRecording operation.

type ViewRoomRecordingRes

type ViewRoomRecordingRes interface {
	// contains filtered or unexported methods
}

type WebhookDelivery

type WebhookDelivery struct {
	// Uniquely identifies the webhook_delivery record.
	ID OptUUID `json:"id"`
	// Uniquely identifies the user that owns the webhook_delivery record.
	UserID OptUUID `json:"user_id"`
	// Identifies the type of the resource.
	RecordType OptString `json:"record_type"`
	// Delivery status: 'delivered' when successfuly delivered or 'failed' if all attempts have failed.
	Status OptWebhookDeliveryStatus `json:"status"`
	// Original webhook JSON data. Payload fields vary according to event type.
	Webhook OptWebhookDeliveryWebhook `json:"webhook"`
	// ISO 8601 timestamp indicating when the first request attempt was initiated.
	StartedAt OptDateTime `json:"started_at"`
	// ISO 8601 timestamp indicating when the last webhook response has been received.
	FinishedAt OptDateTime `json:"finished_at"`
	// Detailed delivery attempts, ordered by most recent.
	Attempts []Attempt `json:"attempts"`
}

Record of all attempts to deliver a webhook. Ref: #/components/schemas/webhook_delivery

func (*WebhookDelivery) Decode

func (s *WebhookDelivery) Decode(d *jx.Decoder) error

Decode decodes WebhookDelivery from json.

func (*WebhookDelivery) Encode

func (s *WebhookDelivery) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*WebhookDelivery) GetAttempts

func (s *WebhookDelivery) GetAttempts() []Attempt

GetAttempts returns the value of Attempts.

func (*WebhookDelivery) GetFinishedAt

func (s *WebhookDelivery) GetFinishedAt() OptDateTime

GetFinishedAt returns the value of FinishedAt.

func (*WebhookDelivery) GetID

func (s *WebhookDelivery) GetID() OptUUID

GetID returns the value of ID.

func (*WebhookDelivery) GetRecordType

func (s *WebhookDelivery) GetRecordType() OptString

GetRecordType returns the value of RecordType.

func (*WebhookDelivery) GetStartedAt

func (s *WebhookDelivery) GetStartedAt() OptDateTime

GetStartedAt returns the value of StartedAt.

func (*WebhookDelivery) GetStatus

GetStatus returns the value of Status.

func (*WebhookDelivery) GetUserID

func (s *WebhookDelivery) GetUserID() OptUUID

GetUserID returns the value of UserID.

func (*WebhookDelivery) GetWebhook

GetWebhook returns the value of Webhook.

func (*WebhookDelivery) MarshalJSON

func (s *WebhookDelivery) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*WebhookDelivery) SetAttempts

func (s *WebhookDelivery) SetAttempts(val []Attempt)

SetAttempts sets the value of Attempts.

func (*WebhookDelivery) SetFinishedAt

func (s *WebhookDelivery) SetFinishedAt(val OptDateTime)

SetFinishedAt sets the value of FinishedAt.

func (*WebhookDelivery) SetID

func (s *WebhookDelivery) SetID(val OptUUID)

SetID sets the value of ID.

func (*WebhookDelivery) SetRecordType

func (s *WebhookDelivery) SetRecordType(val OptString)

SetRecordType sets the value of RecordType.

func (*WebhookDelivery) SetStartedAt

func (s *WebhookDelivery) SetStartedAt(val OptDateTime)

SetStartedAt sets the value of StartedAt.

func (*WebhookDelivery) SetStatus

func (s *WebhookDelivery) SetStatus(val OptWebhookDeliveryStatus)

SetStatus sets the value of Status.

func (*WebhookDelivery) SetUserID

func (s *WebhookDelivery) SetUserID(val OptUUID)

SetUserID sets the value of UserID.

func (*WebhookDelivery) SetWebhook

func (s *WebhookDelivery) SetWebhook(val OptWebhookDeliveryWebhook)

SetWebhook sets the value of Webhook.

func (*WebhookDelivery) UnmarshalJSON

func (s *WebhookDelivery) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*WebhookDelivery) Validate

func (s *WebhookDelivery) Validate() error

type WebhookDeliveryStatus

type WebhookDeliveryStatus string

Delivery status: 'delivered' when successfuly delivered or 'failed' if all attempts have failed.

const (
	WebhookDeliveryStatusDelivered WebhookDeliveryStatus = "delivered"
	WebhookDeliveryStatusFailed    WebhookDeliveryStatus = "failed"
)

func (WebhookDeliveryStatus) AllValues

AllValues returns all WebhookDeliveryStatus values.

func (*WebhookDeliveryStatus) Decode

func (s *WebhookDeliveryStatus) Decode(d *jx.Decoder) error

Decode decodes WebhookDeliveryStatus from json.

func (WebhookDeliveryStatus) Encode

func (s WebhookDeliveryStatus) Encode(e *jx.Encoder)

Encode encodes WebhookDeliveryStatus as json.

func (WebhookDeliveryStatus) MarshalJSON

func (s WebhookDeliveryStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (WebhookDeliveryStatus) MarshalText

func (s WebhookDeliveryStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*WebhookDeliveryStatus) UnmarshalJSON

func (s *WebhookDeliveryStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*WebhookDeliveryStatus) UnmarshalText

func (s *WebhookDeliveryStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (WebhookDeliveryStatus) Validate

func (s WebhookDeliveryStatus) Validate() error

type WebhookDeliveryWebhook

type WebhookDeliveryWebhook struct {
	// Identifies the type of the resource.
	RecordType OptWebhookDeliveryWebhookRecordType `json:"record_type"`
	// The type of event being delivered.
	EventType OptString `json:"event_type"`
	// Identifies the type of resource.
	ID OptUUID `json:"id"`
	// ISO 8601 datetime of when the event occurred.
	OccurredAt OptDateTime                      `json:"occurred_at"`
	Payload    OptWebhookDeliveryWebhookPayload `json:"payload"`
}

Original webhook JSON data. Payload fields vary according to event type.

func (*WebhookDeliveryWebhook) Decode

func (s *WebhookDeliveryWebhook) Decode(d *jx.Decoder) error

Decode decodes WebhookDeliveryWebhook from json.

func (*WebhookDeliveryWebhook) Encode

func (s *WebhookDeliveryWebhook) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*WebhookDeliveryWebhook) GetEventType

func (s *WebhookDeliveryWebhook) GetEventType() OptString

GetEventType returns the value of EventType.

func (*WebhookDeliveryWebhook) GetID

func (s *WebhookDeliveryWebhook) GetID() OptUUID

GetID returns the value of ID.

func (*WebhookDeliveryWebhook) GetOccurredAt

func (s *WebhookDeliveryWebhook) GetOccurredAt() OptDateTime

GetOccurredAt returns the value of OccurredAt.

func (*WebhookDeliveryWebhook) GetPayload

GetPayload returns the value of Payload.

func (*WebhookDeliveryWebhook) GetRecordType

GetRecordType returns the value of RecordType.

func (*WebhookDeliveryWebhook) MarshalJSON

func (s *WebhookDeliveryWebhook) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*WebhookDeliveryWebhook) SetEventType

func (s *WebhookDeliveryWebhook) SetEventType(val OptString)

SetEventType sets the value of EventType.

func (*WebhookDeliveryWebhook) SetID

func (s *WebhookDeliveryWebhook) SetID(val OptUUID)

SetID sets the value of ID.

func (*WebhookDeliveryWebhook) SetOccurredAt

func (s *WebhookDeliveryWebhook) SetOccurredAt(val OptDateTime)

SetOccurredAt sets the value of OccurredAt.

func (*WebhookDeliveryWebhook) SetPayload

SetPayload sets the value of Payload.

func (*WebhookDeliveryWebhook) SetRecordType

SetRecordType sets the value of RecordType.

func (*WebhookDeliveryWebhook) UnmarshalJSON

func (s *WebhookDeliveryWebhook) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*WebhookDeliveryWebhook) Validate

func (s *WebhookDeliveryWebhook) Validate() error

type WebhookDeliveryWebhookPayload

type WebhookDeliveryWebhookPayload map[string]jx.Raw

func (*WebhookDeliveryWebhookPayload) Decode

Decode decodes WebhookDeliveryWebhookPayload from json.

func (WebhookDeliveryWebhookPayload) Encode

Encode implements json.Marshaler.

func (WebhookDeliveryWebhookPayload) MarshalJSON

func (s WebhookDeliveryWebhookPayload) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*WebhookDeliveryWebhookPayload) UnmarshalJSON

func (s *WebhookDeliveryWebhookPayload) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type WebhookDeliveryWebhookRecordType

type WebhookDeliveryWebhookRecordType string

Identifies the type of the resource.

const (
	WebhookDeliveryWebhookRecordTypeEvent WebhookDeliveryWebhookRecordType = "event"
)

func (WebhookDeliveryWebhookRecordType) AllValues

AllValues returns all WebhookDeliveryWebhookRecordType values.

func (*WebhookDeliveryWebhookRecordType) Decode

Decode decodes WebhookDeliveryWebhookRecordType from json.

func (WebhookDeliveryWebhookRecordType) Encode

Encode encodes WebhookDeliveryWebhookRecordType as json.

func (WebhookDeliveryWebhookRecordType) MarshalJSON

func (s WebhookDeliveryWebhookRecordType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (WebhookDeliveryWebhookRecordType) MarshalText

func (s WebhookDeliveryWebhookRecordType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*WebhookDeliveryWebhookRecordType) UnmarshalJSON

func (s *WebhookDeliveryWebhookRecordType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*WebhookDeliveryWebhookRecordType) UnmarshalText

func (s *WebhookDeliveryWebhookRecordType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (WebhookDeliveryWebhookRecordType) Validate

Directories

Path Synopsis
cmd
example command
webhooks command

Jump to

Keyboard shortcuts

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