Class: Dodopayments::Models::Customers::Wallets::CustomerWalletTransaction

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb

Overview

Defined Under Namespace

Modules: EventType

Instance Attribute 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: , after_balance: , amount: , before_balance: , business_id: , created_at: , currency: , customer_id: , event_type: , is_credit: , reason: nil, reference_object_id: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: )
  • after_balance (Integer) (defaults to: )
  • amount (Integer) (defaults to: )
  • before_balance (Integer) (defaults to: )
  • business_id (String) (defaults to: )
  • created_at (Time) (defaults to: )
  • currency (Symbol, Dodopayments::Models::Currency) (defaults to: )
  • customer_id (String) (defaults to: )
  • event_type (Symbol, Dodopayments::Models::Customers::Wallets::CustomerWalletTransaction::EventType) (defaults to: )
  • is_credit (Boolean) (defaults to: )
  • reason (String, nil) (defaults to: nil)
  • reference_object_id (String, nil) (defaults to: nil)


# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 69


Instance Attribute Details

#after_balanceInteger

Returns:

  • (Integer)


17
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 17

required :after_balance, Integer

#amountInteger

Returns:

  • (Integer)


22
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 22

required :amount, Integer

#before_balanceInteger

Returns:

  • (Integer)


27
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 27

required :before_balance, Integer

#business_idString

Returns:

  • (String)


32
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 32

required :business_id, String

#created_atTime

Returns:

  • (Time)


37
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 37

required :created_at, Time

#currencySymbol, Dodopayments::Models::Currency

Returns:



42
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 42

required :currency, enum: -> { Dodopayments::Currency }

#customer_idString

Returns:

  • (String)


47
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 47

required :customer_id, String

#event_typeSymbol, Dodopayments::Models::Customers::Wallets::CustomerWalletTransaction::EventType



52
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 52

required :event_type, enum: -> { Dodopayments::Customers::Wallets::CustomerWalletTransaction::EventType }

#idString

Returns:

  • (String)


12
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 12

required :id, String

#is_creditBoolean

Returns:

  • (Boolean)


57
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 57

required :is_credit, Dodopayments::Internal::Type::Boolean

#reasonString?

Returns:

  • (String, nil)


62
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 62

optional :reason, String, nil?: true

#reference_object_idString?

Returns:

  • (String, nil)


67
# File 'lib/dodopayments/models/customers/wallets/customer_wallet_transaction.rb', line 67

optional :reference_object_id, String, nil?: true