Class: Telnyx::Models::X402::CreditAccountSettleResponse::Data

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

Overview

See Also:

  • Telnyx::Models::X402::CreditAccountSettleResponse#data

Defined Under Namespace

Modules: RecordType, Status

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(id: nil, amount: nil, created_at: nil, currency: nil, quote_id: nil, record_type: nil, status: nil, tx_hash: nil) ⇒ Object

Parameters:

  • (defaults to: nil)

    Unique transaction identifier.

  • (defaults to: nil)

    The transaction amount in the specified currency.

  • (defaults to: nil)

    ISO 8601 timestamp when the transaction was created.

  • (defaults to: nil)

    The currency of the transaction amount (e.g. USD).

  • (defaults to: nil)

    The original quote ID associated with this transaction.

  • (defaults to: nil)
  • (defaults to: nil)

    The settlement status of the transaction.

  • (defaults to: nil)

    The on-chain transaction hash, if available.



# File 'lib/telnyx/models/x402/credit_account_settle_response.rb', line 65

Instance Attribute Details

#amountString?

The transaction amount in the specified currency.

Parameters:

Returns:



28
# File 'lib/telnyx/models/x402/credit_account_settle_response.rb', line 28

optional :amount, String

#created_atTime?

ISO 8601 timestamp when the transaction was created.

Parameters:

Returns:



34
# File 'lib/telnyx/models/x402/credit_account_settle_response.rb', line 34

optional :created_at, Time

#currencyString?

The currency of the transaction amount (e.g. USD).

Parameters:

Returns:



40
# File 'lib/telnyx/models/x402/credit_account_settle_response.rb', line 40

optional :currency, String

#idString?

Unique transaction identifier.

Parameters:

Returns:



22
# File 'lib/telnyx/models/x402/credit_account_settle_response.rb', line 22

optional :id, String

#quote_idString?

The original quote ID associated with this transaction.

Parameters:

Returns:



46
# File 'lib/telnyx/models/x402/credit_account_settle_response.rb', line 46

optional :quote_id, String

#record_typeSymbol, ...

Returns:



51
# File 'lib/telnyx/models/x402/credit_account_settle_response.rb', line 51

optional :record_type, enum: -> { Telnyx::Models::X402::CreditAccountSettleResponse::Data::RecordType }

#statusSymbol, ...

The settlement status of the transaction.

Returns:



57
# File 'lib/telnyx/models/x402/credit_account_settle_response.rb', line 57

optional :status, enum: -> { Telnyx::Models::X402::CreditAccountSettleResponse::Data::Status }

#tx_hashString?

The on-chain transaction hash, if available.

Parameters:

Returns:



63
# File 'lib/telnyx/models/x402/credit_account_settle_response.rb', line 63

optional :tx_hash, String, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:



# File 'lib/telnyx/models/x402/credit_account_settle_response.rb', line 88

Instance Method Details

#to_hash{

Returns:



80
# File 'sig/telnyx/models/x402/credit_account_settle_response.rbs', line 80

def to_hash: -> {