Class: WhopSDK::Models::CardCreateResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::CardCreateResponse
- Defined in:
- lib/whop_sdk/models/card_create_response.rb,
sig/whop_sdk/models/card_create_response.rbs
Overview
Defined Under Namespace
Modules: Object, Status, Type Classes: Billing, Limit, Secrets
Instance Attribute Summary collapse
-
#billing ⇒ WhopSDK::Models::CardCreateResponse::Billing?
The billing address.
-
#canceled_at ⇒ Time?
When the card was canceled.
-
#created_at ⇒ Time?
When the card was created.
-
#expiration_month ⇒ String?
Card expiration month.
-
#expiration_year ⇒ String?
Card expiration year.
-
#id ⇒ String
Card ID, prefixed
icrd_. -
#last4 ⇒ String?
Last four digits of the card number.
-
#limit ⇒ WhopSDK::Models::CardCreateResponse::Limit?
The spending limit configuration.
-
#name ⇒ String?
Card display name.
- #object ⇒ Symbol, WhopSDK::Models::CardCreateResponse::Object
-
#secrets ⇒ WhopSDK::Models::CardCreateResponse::Secrets?
Sensitive card details.
-
#spent_last_month ⇒ Integer?
Total spend in the last 30 days, in cents.
-
#status ⇒ Symbol, ...
The card status.
-
#type ⇒ Symbol, ...
The card type.
-
#user_id ⇒ String?
Cardholder user ID, prefixed
user_, when assigned.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(amount:, frequency:) ⇒ Object
constructor
The spending limit configuration.
- #to_hash ⇒ {
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:, frequency:) ⇒ Object
The spending limit configuration.
|
|
# File 'lib/whop_sdk/models/card_create_response.rb', line 97
|
Instance Attribute Details
#billing ⇒ WhopSDK::Models::CardCreateResponse::Billing?
The billing address.
17 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 17 required :billing, -> { WhopSDK::Models::CardCreateResponse::Billing }, nil?: true |
#canceled_at ⇒ Time?
When the card was canceled.
23 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 23 required :canceled_at, Time, nil?: true |
#created_at ⇒ Time?
When the card was created.
29 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 29 required :created_at, Time, nil?: true |
#expiration_month ⇒ String?
Card expiration month.
35 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 35 required :expiration_month, String, nil?: true |
#expiration_year ⇒ String?
Card expiration year.
41 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 41 required :expiration_year, String, nil?: true |
#id ⇒ String
Card ID, prefixed icrd_.
11 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 11 required :id, String |
#last4 ⇒ String?
Last four digits of the card number. null for pending invitation cards.
47 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 47 required :last4, String, nil?: true |
#limit ⇒ WhopSDK::Models::CardCreateResponse::Limit?
The spending limit configuration.
53 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 53 required :limit, -> { WhopSDK::Models::CardCreateResponse::Limit }, nil?: true |
#name ⇒ String?
Card display name.
59 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 59 required :name, String, nil?: true |
#object ⇒ Symbol, WhopSDK::Models::CardCreateResponse::Object
64 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 64 required :object, enum: -> { WhopSDK::Models::CardCreateResponse::Object } |
#secrets ⇒ WhopSDK::Models::CardCreateResponse::Secrets?
Sensitive card details. Present only on GET /cards/:card_id for active cards;
null when the card is inactive or details cannot be retrieved.
95 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 95 optional :secrets, -> { WhopSDK::Models::CardCreateResponse::Secrets }, nil?: true |
#spent_last_month ⇒ Integer?
Total spend in the last 30 days, in cents.
70 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 70 required :spent_last_month, Integer, nil?: true |
#status ⇒ Symbol, ...
The card status.
76 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 76 required :status, enum: -> { WhopSDK::Models::CardCreateResponse::Status }, nil?: true |
#type ⇒ Symbol, ...
The card type.
82 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 82 required :type, enum: -> { WhopSDK::Models::CardCreateResponse::Type }, nil?: true |
#user_id ⇒ String?
Cardholder user ID, prefixed user_, when assigned.
88 |
# File 'lib/whop_sdk/models/card_create_response.rb', line 88 required :user_id, String, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/whop_sdk/models/card_create_response.rb', line 213
|
Instance Method Details
#to_hash ⇒ {
71 |
# File 'sig/whop_sdk/models/card_create_response.rbs', line 71
def to_hash: -> {
|