Class: Telnyx::Models::CallPaymentProgressWebhookEvent::Data::Payload

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/call_payment_progress_webhook_event.rb,
sig/telnyx/models/call_payment_progress_webhook_event.rbs

Overview

See Also:

  • Telnyx::Models::CallPaymentProgressWebhookEvent::Data#payload

Defined Under Namespace

Modules: ErrorType, PaymentCardType, PaymentMethod, PaymentStatus, PaymentStep

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(attempt: nil, bank_account_number: nil, bank_account_type: nil, bank_routing_number: nil, call_control_id: nil, call_leg_id: nil, call_session_id: nil, client_state: nil, connection_id: nil, error_type: nil, expiration_date: nil, from: nil, payment_card_number: nil, payment_card_postal_code: nil, payment_card_type: nil, payment_connector: nil, payment_method: nil, payment_status: nil, payment_step: nil, security_code: nil, to: nil) ⇒ Object

Parameters:

  • attempt (Integer) (defaults to: nil)

    Current 1-based attempt number for the step.

  • bank_account_number (String) (defaults to: nil)

    Masked bank account number with only the last two digits visible.

  • bank_account_type (String) (defaults to: nil)

    Bank account type, when available.

  • bank_routing_number (String) (defaults to: nil)

    Bank routing number collected from the caller.

  • call_control_id (String) (defaults to: nil)

    Call ID used to issue commands via Call Control API.

  • call_leg_id (String) (defaults to: nil)

    ID unique to the call leg.

  • call_session_id (String) (defaults to: nil)

    ID shared by related call legs in the same call session.

  • client_state (String) (defaults to: nil)

    Base64-encoded state received from the command.

  • connection_id (String) (defaults to: nil)

    Call Control App ID used in the call.

  • error_type (Symbol, Telnyx::Models::CallPaymentProgressWebhookEvent::Data::Payload::ErrorType) (defaults to: nil)

    Step-level error when payment collection fails.

  • expiration_date (String) (defaults to: nil)

    Card expiration date in MMYY format.

  • from (String) (defaults to: nil)

    Number or SIP URI placing the call.

  • payment_card_number (String) (defaults to: nil)

    Masked card number with only the last four digits visible.

  • payment_card_postal_code (String) (defaults to: nil)

    Billing postal code collected from the caller.

  • payment_card_type (Symbol, Telnyx::Models::CallPaymentProgressWebhookEvent::Data::Payload::PaymentCardType) (defaults to: nil)

    Detected card type. Present only for the recognized card brands listed below.

  • payment_connector (String) (defaults to: nil)

    Name of the Pay connector used.

  • payment_method (Symbol, Telnyx::Models::CallPaymentProgressWebhookEvent::Data::Payload::PaymentMethod) (defaults to: nil)

    Payment method being collected.

  • payment_status (Symbol, Telnyx::Models::CallPaymentProgressWebhookEvent::Data::Payload::PaymentStatus) (defaults to: nil)

    Status of the current payment step.

  • payment_step (Symbol, Telnyx::Models::CallPaymentProgressWebhookEvent::Data::Payload::PaymentStep) (defaults to: nil)

    Current payment collection or processing step.

  • security_code (String) (defaults to: nil)

    Fully masked card security code.

  • to (String) (defaults to: nil)

    Destination number or SIP URI of the call.



# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 199

Instance Attribute Details

#attemptInteger?

Current 1-based attempt number for the step.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


74
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 74

optional :attempt, Integer

#bank_account_numberString?

Masked bank account number with only the last two digits visible.

Parameters:

  • (String)

Returns:

  • (String, nil)


80
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 80

optional :bank_account_number, String

#bank_account_typeString?

Bank account type, when available.

Parameters:

  • (String)

Returns:

  • (String, nil)


86
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 86

optional :bank_account_type, String

#bank_routing_numberString?

Bank routing number collected from the caller.

Parameters:

  • (String)

Returns:

  • (String, nil)


92
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 92

optional :bank_routing_number, String

#call_control_idString?

Call ID used to issue commands via Call Control API.

Parameters:

  • (String)

Returns:

  • (String, nil)


98
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 98

optional :call_control_id, String

#call_leg_idString?

ID unique to the call leg.

Parameters:

  • (String)

Returns:

  • (String, nil)


104
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 104

optional :call_leg_id, String

#call_session_idString?

ID shared by related call legs in the same call session.

Parameters:

  • (String)

Returns:

  • (String, nil)


110
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 110

optional :call_session_id, String

#client_stateString?

Base64-encoded state received from the command.

Parameters:

  • (String)

Returns:

  • (String, nil)


116
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 116

optional :client_state, String

#connection_idString?

Call Control App ID used in the call.

Parameters:

  • (String)

Returns:

  • (String, nil)


122
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 122

optional :connection_id, String

#error_typeSymbol, ...

Step-level error when payment collection fails.



128
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 128

optional :error_type, enum: -> { Telnyx::CallPaymentProgressWebhookEvent::Data::Payload::ErrorType }

#expiration_dateString?

Card expiration date in MMYY format.

Parameters:

  • (String)

Returns:

  • (String, nil)


134
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 134

optional :expiration_date, String

#fromString?

Number or SIP URI placing the call.

Parameters:

  • (String)

Returns:

  • (String, nil)


140
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 140

optional :from, String

#payment_card_numberString?

Masked card number with only the last four digits visible.

Parameters:

  • (String)

Returns:

  • (String, nil)


146
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 146

optional :payment_card_number, String

#payment_card_postal_codeString?

Billing postal code collected from the caller.

Parameters:

  • (String)

Returns:

  • (String, nil)


152
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 152

optional :payment_card_postal_code, String

#payment_card_typeSymbol, ...

Detected card type. Present only for the recognized card brands listed below.



158
159
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 158

optional :payment_card_type,
enum: -> { Telnyx::CallPaymentProgressWebhookEvent::Data::Payload::PaymentCardType }

#payment_connectorString?

Name of the Pay connector used.

Parameters:

  • (String)

Returns:

  • (String, nil)


165
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 165

optional :payment_connector, String

#payment_methodSymbol, ...

Payment method being collected.



171
172
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 171

optional :payment_method,
enum: -> { Telnyx::CallPaymentProgressWebhookEvent::Data::Payload::PaymentMethod }

#payment_statusSymbol, ...

Status of the current payment step.



178
179
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 178

optional :payment_status,
enum: -> { Telnyx::CallPaymentProgressWebhookEvent::Data::Payload::PaymentStatus }

#payment_stepSymbol, ...

Current payment collection or processing step.



185
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 185

optional :payment_step, enum: -> { Telnyx::CallPaymentProgressWebhookEvent::Data::Payload::PaymentStep }

#security_codeString?

Fully masked card security code.

Parameters:

  • (String)

Returns:

  • (String, nil)


191
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 191

optional :security_code, String

#toString?

Destination number or SIP URI of the call.

Parameters:

  • (String)

Returns:

  • (String, nil)


197
# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 197

optional :to, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/call_payment_progress_webhook_event.rb', line 257

Instance Method Details

#to_hash{

Returns:

  • ({)


225
# File 'sig/telnyx/models/call_payment_progress_webhook_event.rbs', line 225

def to_hash: -> {