Class: Telnyx::Models::CallPaymentCompletedWebhookEvent::Data::Payload

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

Overview

See Also:

  • Telnyx::Models::CallPaymentCompletedWebhookEvent::Data#payload

Defined Under Namespace

Modules: ConnectorError, PaymentCardType, PaymentMethod, Result

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(bank_account_number: nil, bank_account_type: nil, bank_routing_number: nil, call_control_id: nil, call_leg_id: nil, call_session_id: nil, charge_id: nil, client_state: nil, connection_id: nil, connector_error: nil, expiration_date: nil, from: nil, pay_error_code: nil, payment_card_number: nil, payment_card_postal_code: nil, payment_card_type: nil, payment_confirmation_code: nil, payment_connector: nil, payment_error: nil, payment_method: nil, result: nil, security_code: nil, to: nil, token_id: nil) ⇒ Object

Parameters:

  • 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.

  • charge_id (String) (defaults to: nil)

    Charge identifier returned for a successful charge transaction.

  • 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.

  • connector_error (String, Hash{Symbol=>Object}) (defaults to: nil)

    Additional connector error information, when supplied by the processor.

  • expiration_date (String) (defaults to: nil)

    Card expiration date in MMYY format.

  • from (String) (defaults to: nil)

    Number or SIP URI placing the call.

  • pay_error_code (String) (defaults to: nil)

    Error code returned by the payment connector or processor.

  • 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::CallPaymentCompletedWebhookEvent::Data::Payload::PaymentCardType) (defaults to: nil)

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

  • payment_confirmation_code (String) (defaults to: nil)

    Payment confirmation code returned by the processor, when available.

  • payment_connector (String) (defaults to: nil)

    Name of the Pay connector used.

  • payment_error (String) (defaults to: nil)

    Step-level or processor error associated with the final result.

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

    Payment method being collected.

  • result (Symbol, Telnyx::Models::CallPaymentCompletedWebhookEvent::Data::Payload::Result) (defaults to: nil)

    Final Pay session result.

  • security_code (String) (defaults to: nil)

    Fully masked card security code.

  • to (String) (defaults to: nil)

    Destination number or SIP URI of the call.

  • token_id (String) (defaults to: nil)

    Token identifier returned for a successful tokenize transaction.



# File 'lib/telnyx/models/call_payment_completed_webhook_event.rb', line 217

Instance Attribute Details

#bank_account_numberString?

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

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :bank_account_number, String

#bank_account_typeString?

Bank account type, when available.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :bank_account_type, String

#bank_routing_numberString?

Bank routing number collected from the caller.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :bank_routing_number, String

#call_control_idString?

Call ID used to issue commands via Call Control API.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :call_control_id, String

#call_leg_idString?

ID unique to the call leg.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :call_leg_id, String

#call_session_idString?

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

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :call_session_id, String

#charge_idString?

Charge identifier returned for a successful charge transaction.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :charge_id, String

#client_stateString?

Base64-encoded state received from the command.

Parameters:

  • (String)

Returns:

  • (String, nil)


116
# File 'lib/telnyx/models/call_payment_completed_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_completed_webhook_event.rb', line 122

optional :connection_id, String

#connector_errorString, ...

Additional connector error information, when supplied by the processor.

Returns:

  • (String, Hash{Symbol=>Object}, nil)


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

optional :connector_error,
union: -> { Telnyx::CallPaymentCompletedWebhookEvent::Data::Payload::ConnectorError }

#expiration_dateString?

Card expiration date in MMYY format.

Parameters:

  • (String)

Returns:

  • (String, nil)


135
# File 'lib/telnyx/models/call_payment_completed_webhook_event.rb', line 135

optional :expiration_date, String

#fromString?

Number or SIP URI placing the call.

Parameters:

  • (String)

Returns:

  • (String, nil)


141
# File 'lib/telnyx/models/call_payment_completed_webhook_event.rb', line 141

optional :from, String

#pay_error_codeString?

Error code returned by the payment connector or processor.

Parameters:

  • (String)

Returns:

  • (String, nil)


147
# File 'lib/telnyx/models/call_payment_completed_webhook_event.rb', line 147

optional :pay_error_code, String

#payment_card_numberString?

Masked card number with only the last four digits visible.

Parameters:

  • (String)

Returns:

  • (String, nil)


153
# File 'lib/telnyx/models/call_payment_completed_webhook_event.rb', line 153

optional :payment_card_number, String

#payment_card_postal_codeString?

Billing postal code collected from the caller.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :payment_card_postal_code, String

#payment_card_typeSymbol, ...

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



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

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

#payment_confirmation_codeString?

Payment confirmation code returned by the processor, when available.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :payment_confirmation_code, String

#payment_connectorString?

Name of the Pay connector used.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :payment_connector, String

#payment_errorString?

Step-level or processor error associated with the final result.

Parameters:

  • (String)

Returns:

  • (String, nil)


184
# File 'lib/telnyx/models/call_payment_completed_webhook_event.rb', line 184

optional :payment_error, String

#payment_methodSymbol, ...

Payment method being collected.



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

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

#resultSymbol, ...

Final Pay session result.



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

optional :result, enum: -> { Telnyx::CallPaymentCompletedWebhookEvent::Data::Payload::Result }

#security_codeString?

Fully masked card security code.

Parameters:

  • (String)

Returns:

  • (String, nil)


203
# File 'lib/telnyx/models/call_payment_completed_webhook_event.rb', line 203

optional :security_code, String

#toString?

Destination number or SIP URI of the call.

Parameters:

  • (String)

Returns:

  • (String, nil)


209
# File 'lib/telnyx/models/call_payment_completed_webhook_event.rb', line 209

optional :to, String

#token_idString?

Token identifier returned for a successful tokenize transaction.

Parameters:

  • (String)

Returns:

  • (String, nil)


215
# File 'lib/telnyx/models/call_payment_completed_webhook_event.rb', line 215

optional :token_id, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/call_payment_completed_webhook_event.rb', line 296

Instance Method Details

#to_hash{

Returns:

  • ({)


241
# File 'sig/telnyx/models/call_payment_completed_webhook_event.rbs', line 241

def to_hash: -> {