Class: Dodopayments::Models::CreditEntitlements::BalanceCreateLedgerEntryParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::CreditEntitlements::BalanceCreateLedgerEntryParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb
Overview
Instance Attribute Summary collapse
-
#amount ⇒ String
Amount to credit or debit.
- #credit_entitlement_id ⇒ String
- #customer_id ⇒ String
-
#entry_type ⇒ Symbol, Dodopayments::Models::CreditEntitlements::LedgerEntryType
Entry type: credit or debit.
-
#expires_at ⇒ Time?
Expiration for credited amount (only for credit type).
-
#idempotency_key ⇒ String?
Idempotency key to prevent duplicate entries.
-
#metadata ⇒ Hash{Symbol=>String}?
Optional metadata (max 50 key-value pairs, key max 40 chars, value max 500 chars).
-
#reason ⇒ String?
Human-readable reason for the entry.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(credit_entitlement_id:, customer_id:, amount:, entry_type:, expires_at: nil, idempotency_key: nil, metadata: nil, reason: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see BalanceCreateLedgerEntryParams for more details.
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(credit_entitlement_id:, customer_id:, amount:, entry_type:, expires_at: nil, idempotency_key: nil, metadata: nil, reason: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::CreditEntitlements::BalanceCreateLedgerEntryParams for more details.
|
|
# File 'lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb', line 58
|
Instance Attribute Details
#amount ⇒ String
Amount to credit or debit
25 |
# File 'lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb', line 25 required :amount, String |
#credit_entitlement_id ⇒ String
14 |
# File 'lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb', line 14 required :credit_entitlement_id, String |
#customer_id ⇒ String
19 |
# File 'lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb', line 19 required :customer_id, String |
#entry_type ⇒ Symbol, Dodopayments::Models::CreditEntitlements::LedgerEntryType
Entry type: credit or debit
31 |
# File 'lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb', line 31 required :entry_type, enum: -> { Dodopayments::CreditEntitlements::LedgerEntryType } |
#expires_at ⇒ Time?
Expiration for credited amount (only for credit type)
37 |
# File 'lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb', line 37 optional :expires_at, Time, nil?: true |
#idempotency_key ⇒ String?
Idempotency key to prevent duplicate entries
43 |
# File 'lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb', line 43 optional :idempotency_key, String, nil?: true |
#metadata ⇒ Hash{Symbol=>String}?
Optional metadata (max 50 key-value pairs, key max 40 chars, value max 500 chars)
50 |
# File 'lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb', line 50 optional :metadata, Dodopayments::Internal::Type::HashOf[String], nil?: true |
#reason ⇒ String?
Human-readable reason for the entry
56 |
# File 'lib/dodopayments/models/credit_entitlements/balance_create_ledger_entry_params.rb', line 56 optional :reason, String, nil?: true |