Class: WhopSDK::Models::CardRetrieveResponse::Secrets
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::CardRetrieveResponse::Secrets
- Defined in:
- lib/whop_sdk/models/card_retrieve_response.rb,
sig/whop_sdk/models/card_retrieve_response.rbs
Overview
Instance Attribute Summary collapse
-
#card_number ⇒ String
Full card number.
-
#cvc ⇒ String
Card verification code.
-
#name_on_card ⇒ String?
Cardholder name printed on the card.
Instance Method Summary collapse
-
#initialize(card_number:, cvc:, name_on_card:) ⇒ Object
constructor
Sensitive card details.
- #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(card_number:, cvc:, name_on_card:) ⇒ Object
Sensitive card details. Present only on GET /cards/:card_id for active cards;
null when the card is inactive or details cannot be retrieved.
|
|
# File 'lib/whop_sdk/models/card_retrieve_response.rb', line 265
|
Instance Attribute Details
#card_number ⇒ String
Full card number.
251 |
# File 'lib/whop_sdk/models/card_retrieve_response.rb', line 251 required :card_number, String |
#cvc ⇒ String
Card verification code.
257 |
# File 'lib/whop_sdk/models/card_retrieve_response.rb', line 257 required :cvc, String |
#name_on_card ⇒ String?
Cardholder name printed on the card.
263 |
# File 'lib/whop_sdk/models/card_retrieve_response.rb', line 263 required :name_on_card, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
192 |
# File 'sig/whop_sdk/models/card_retrieve_response.rbs', line 192
def to_hash: -> {
|