Class: Dodopayments::Models::Customers::Wallets::LedgerEntryCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::Customers::Wallets::LedgerEntryCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/dodopayments/models/customers/wallets/ledger_entry_create_params.rb
Overview
Defined Under Namespace
Modules: EntryType
Instance Attribute Summary collapse
- #amount ⇒ Integer
-
#currency ⇒ Symbol, Dodopayments::Models::Currency
Currency of the wallet to adjust.
-
#entry_type ⇒ Symbol, Dodopayments::Models::Customers::Wallets::LedgerEntryCreateParams::EntryType
Type of ledger entry - credit or debit.
-
#idempotency_key ⇒ String?
Optional idempotency key to prevent duplicate entries.
- #reason ⇒ String?
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(amount: , currency: , entry_type: , idempotency_key: nil, reason: nil, request_options: {}) ⇒ Object
|
|
# File 'lib/dodopayments/models/customers/wallets/ledger_entry_create_params.rb', line 40
|
Instance Attribute Details
#amount ⇒ Integer
15 |
# File 'lib/dodopayments/models/customers/wallets/ledger_entry_create_params.rb', line 15 required :amount, Integer |
#currency ⇒ Symbol, Dodopayments::Models::Currency
Currency of the wallet to adjust
21 |
# File 'lib/dodopayments/models/customers/wallets/ledger_entry_create_params.rb', line 21 required :currency, enum: -> { Dodopayments::Currency } |
#entry_type ⇒ Symbol, Dodopayments::Models::Customers::Wallets::LedgerEntryCreateParams::EntryType
Type of ledger entry - credit or debit
27 |
# File 'lib/dodopayments/models/customers/wallets/ledger_entry_create_params.rb', line 27 required :entry_type, enum: -> { Dodopayments::Customers::Wallets::LedgerEntryCreateParams::EntryType } |
#idempotency_key ⇒ String?
Optional idempotency key to prevent duplicate entries
33 |
# File 'lib/dodopayments/models/customers/wallets/ledger_entry_create_params.rb', line 33 optional :idempotency_key, String, nil?: true |
#reason ⇒ String?
38 |
# File 'lib/dodopayments/models/customers/wallets/ledger_entry_create_params.rb', line 38 optional :reason, String, nil?: true |