Class: WhopSDK::Models::Payment::FinancingTransaction

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/payment.rb

Defined Under Namespace

Modules: Status, TransactionType

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:, amount:, created_at:, status:, transaction_type:) ⇒ Object

A payment transaction.

Parameters:



# File 'lib/whop_sdk/models/payment.rb', line 634

Instance Attribute Details

#amountFloat

The amount of the payment transaction.

Returns:

  • (Float)


614
# File 'lib/whop_sdk/models/payment.rb', line 614

required :amount, Float

#created_atTime

The date and time the payment transaction was created.

Returns:

  • (Time)


620
# File 'lib/whop_sdk/models/payment.rb', line 620

required :created_at, Time

#idString

The unique identifier for the payment transaction.

Returns:

  • (String)


608
# File 'lib/whop_sdk/models/payment.rb', line 608

required :id, String

#statusSymbol, WhopSDK::Models::Payment::FinancingTransaction::Status

The status of the payment transaction.



626
# File 'lib/whop_sdk/models/payment.rb', line 626

required :status, enum: -> { WhopSDK::Payment::FinancingTransaction::Status }

#transaction_typeSymbol, WhopSDK::Models::Payment::FinancingTransaction::TransactionType

The type of the payment transaction.



632
# File 'lib/whop_sdk/models/payment.rb', line 632

required :transaction_type, enum: -> { WhopSDK::Payment::FinancingTransaction::TransactionType }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/payment.rb', line 665