Class: WhopSDK::Models::CardCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::CardCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/whop_sdk/models/card_create_params.rb,
sig/whop_sdk/models/card_create_params.rbs
Overview
Defined Under Namespace
Modules: SpendLimitFrequency
Instance Attribute Summary collapse
-
#account_id ⇒ String?
The owning account ID (a biz_ identifier).
-
#assigned_user_id ⇒ String?
The company member (a user_ identifier) to assign the card to.
-
#name ⇒ String?
A display name for the card.
-
#spend_limit ⇒ Float?
Spending limit amount, in dollars.
-
#spend_limit_frequency ⇒ Symbol, ...
The spending limit window.
-
#transaction_limit ⇒ Float?
Per-transaction limit amount, in dollars.
-
#user_id ⇒ String?
The owning user ID (a user_ identifier).
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(account_id: nil, assigned_user_id: nil, name: nil, spend_limit: nil, spend_limit_frequency: nil, transaction_limit: nil, user_id: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see CardCreateParams 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(account_id: nil, assigned_user_id: nil, name: nil, spend_limit: nil, spend_limit_frequency: nil, transaction_limit: nil, user_id: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::CardCreateParams for more details.
comp
|
|
# File 'lib/whop_sdk/models/card_create_params.rb', line 53
|
Instance Attribute Details
#account_id ⇒ String?
The owning account ID (a biz_ identifier). Provide this or user_id.
14 |
# File 'lib/whop_sdk/models/card_create_params.rb', line 14 optional :account_id, String |
#assigned_user_id ⇒ String?
The company member (a user_ identifier) to assign the card to. Required for company (business) card issuing accounts.
21 |
# File 'lib/whop_sdk/models/card_create_params.rb', line 21 optional :assigned_user_id, String |
#name ⇒ String?
A display name for the card.
27 |
# File 'lib/whop_sdk/models/card_create_params.rb', line 27 optional :name, String |
#spend_limit ⇒ Float?
Spending limit amount, in dollars.
33 |
# File 'lib/whop_sdk/models/card_create_params.rb', line 33 optional :spend_limit, Float |
#spend_limit_frequency ⇒ Symbol, ...
The spending limit window.
39 |
# File 'lib/whop_sdk/models/card_create_params.rb', line 39 optional :spend_limit_frequency, enum: -> { WhopSDK::CardCreateParams::SpendLimitFrequency } |
#transaction_limit ⇒ Float?
Per-transaction limit amount, in dollars.
45 |
# File 'lib/whop_sdk/models/card_create_params.rb', line 45 optional :transaction_limit, Float |
#user_id ⇒ String?
The owning user ID (a user_ identifier). Provide this or account_id.
51 |
# File 'lib/whop_sdk/models/card_create_params.rb', line 51 optional :user_id, String |
Instance Method Details
#to_hash ⇒ {
60 |
# File 'sig/whop_sdk/models/card_create_params.rbs', line 60
def to_hash: -> {
|