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

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

Overview

See Also:

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:

  • id (String) (defaults to: nil)

    Unique transaction identifier.

  • amount (String) (defaults to: nil)

    The transaction amount in the specified currency.

  • created_at (Time) (defaults to: nil)

    ISO 8601 timestamp when the transaction was created.

  • currency (String) (defaults to: nil)

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

  • quote_id (String) (defaults to: nil)

    The original quote ID associated with this transaction.

  • record_type (Symbol, Telnyx::Models::X402::CreditAccountSettleResponse::Data::RecordType) (defaults to: nil)
  • status (Symbol, Telnyx::Models::X402::CreditAccountSettleResponse::Data::Status) (defaults to: nil)

    The settlement status of the transaction.

  • tx_hash (String, nil) (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.

Returns:

  • (String, nil)


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.

Returns:

  • (Time, nil)


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

Returns:

  • (String, nil)


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

optional :currency, String

#idString?

Unique transaction identifier.

Returns:

  • (String, nil)


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.

Returns:

  • (String, nil)


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

optional :quote_id, String

#record_typeSymbol, ...



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.



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.

Returns:

  • (String, nil)


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:

  • (Array<Symbol>)


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