Class: WhopSDK::Models::TransferCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::TransferCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/whop_sdk/models/transfer_create_params.rb,
sig/whop_sdk/models/transfer_create_params.rbs
Overview
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#amount ⇒ Float
The amount to move, in the transfer currency.
-
#currency ⇒ String?
Currency, such as
usd. -
#destination_id ⇒ String?
The recipient.
-
#expires_at ⇒ Time?
claim_link only.
-
#idempotence_key ⇒ String?
Ledger transfers only.
-
#metadata ⇒ Hash{Symbol=>Object}?
Ledger transfers only.
-
#notes ⇒ String?
Ledger transfers only.
-
#origin_id ⇒ String
The account sending the funds.
-
#redeemable_count ⇒ Integer?
claim_link only.
-
#type ⇒ Symbol, ...
The kind of money movement.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(amount:, origin_id:, currency: nil, destination_id: nil, expires_at: nil, idempotence_key: nil, metadata: nil, notes: nil, redeemable_count: nil, type: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see TransferCreateParams for more details.
- #to_hash ⇒ {
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:, origin_id:, currency: nil, destination_id: nil, expires_at: nil, idempotence_key: nil, metadata: nil, notes: nil, redeemable_count: nil, type: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::TransferCreateParams for more details.
|
|
# File 'lib/whop_sdk/models/transfer_create_params.rb', line 74
|
Instance Attribute Details
#amount ⇒ Float
The amount to move, in the transfer currency. For example 25.00.
14 |
# File 'lib/whop_sdk/models/transfer_create_params.rb', line 14 required :amount, Float |
#currency ⇒ String?
Currency, such as usd. Required for ledger transfers.
27 |
# File 'lib/whop_sdk/models/transfer_create_params.rb', line 27 optional :currency, String |
#destination_id ⇒ String?
The recipient. Required for ledger and walletsend (a user/biz*/ldgr* ID, or — for sends — an email). Omit for claim_link.
34 |
# File 'lib/whop_sdk/models/transfer_create_params.rb', line 34 optional :destination_id, String |
#expires_at ⇒ Time?
claim_link only. Link expiry as an ISO 8601 timestamp. Defaults to 24 hours from creation.
41 |
# File 'lib/whop_sdk/models/transfer_create_params.rb', line 41 optional :expires_at, Time, nil?: true |
#idempotence_key ⇒ String?
Ledger transfers only. A unique key to prevent duplicate transfers.
47 |
# File 'lib/whop_sdk/models/transfer_create_params.rb', line 47 optional :idempotence_key, String, nil?: true |
#metadata ⇒ Hash{Symbol=>Object}?
Ledger transfers only. Custom key-value pairs attached to the transfer. Max 50 keys, 100 chars per key, 500 chars per string value.
54 |
# File 'lib/whop_sdk/models/transfer_create_params.rb', line 54 optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true |
#notes ⇒ String?
Ledger transfers only. A short note describing the transfer.
60 |
# File 'lib/whop_sdk/models/transfer_create_params.rb', line 60 optional :notes, String, nil?: true |
#origin_id ⇒ String
The account sending the funds. A user ID (user_xxx), account ID (biz_xxx), or ledger account ID (ldgr_xxx).
21 |
# File 'lib/whop_sdk/models/transfer_create_params.rb', line 21 required :origin_id, String |
#redeemable_count ⇒ Integer?
claim_link only. How many different users can claim the link. Defaults to 1.
66 |
# File 'lib/whop_sdk/models/transfer_create_params.rb', line 66 optional :redeemable_count, Integer |
#type ⇒ Symbol, ...
The kind of money movement. Defaults to ledger.
72 |
# File 'lib/whop_sdk/models/transfer_create_params.rb', line 72 optional :type, enum: -> { WhopSDK::TransferCreateParams::Type } |
Instance Method Details
#to_hash ⇒ {
66 |
# File 'sig/whop_sdk/models/transfer_create_params.rbs', line 66
def to_hash: -> {
|