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

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

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 713

Instance Attribute Details

#amountFloat

The amount of the payment transaction.

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :amount, Float

#created_atTime

The date and time the payment transaction was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :created_at, Time

#idString

The unique identifier for the payment transaction.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

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

The status of the payment transaction.

Parameters:

  • value (WhopSDK::Models::Payment::FinancingTransaction::status)

Returns:



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

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

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

The type of the payment transaction.

Parameters:

  • value (WhopSDK::Models::Payment::FinancingTransaction::transaction_type)

Returns:



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

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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

Instance Method Details

#to_hash{

Returns:

  • ({)


462
# File 'sig/whop_sdk/models/payment.rbs', line 462

def to_hash: -> {