Class: WhopSDK::Models::CardUpdateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/card_update_response.rb,
sig/whop_sdk/models/card_update_response.rbs

Overview

See Also:

  • WhopSDK::Resources::Cards#update

Defined Under Namespace

Modules: Object, Status, Type Classes: Billing, Limit, Secrets

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • amount (Float)

    The limit amount in dollars.

  • frequency (String)

    Limit window, for example per24HourPeriod or perAuthorization.



# File 'lib/whop_sdk/models/card_update_response.rb', line 97

Instance Attribute Details

#billingWhopSDK::Models::CardUpdateResponse::Billing?

The billing address.



17
# File 'lib/whop_sdk/models/card_update_response.rb', line 17

required :billing, -> { WhopSDK::Models::CardUpdateResponse::Billing }, nil?: true

#canceled_atTime?

When the card was canceled.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


23
# File 'lib/whop_sdk/models/card_update_response.rb', line 23

required :canceled_at, Time, nil?: true

#created_atTime?

When the card was created.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


29
# File 'lib/whop_sdk/models/card_update_response.rb', line 29

required :created_at, Time, nil?: true

#expiration_monthString?

Card expiration month.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


35
# File 'lib/whop_sdk/models/card_update_response.rb', line 35

required :expiration_month, String, nil?: true

#expiration_yearString?

Card expiration year.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


41
# File 'lib/whop_sdk/models/card_update_response.rb', line 41

required :expiration_year, String, nil?: true

#idString

Card ID, prefixed icrd_.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/whop_sdk/models/card_update_response.rb', line 11

required :id, String

#last4String?

Last four digits of the card number. null for pending invitation cards.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


47
# File 'lib/whop_sdk/models/card_update_response.rb', line 47

required :last4, String, nil?: true

#limitWhopSDK::Models::CardUpdateResponse::Limit?

The spending limit configuration.



53
# File 'lib/whop_sdk/models/card_update_response.rb', line 53

required :limit, -> { WhopSDK::Models::CardUpdateResponse::Limit }, nil?: true

#nameString?

Card display name.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


59
# File 'lib/whop_sdk/models/card_update_response.rb', line 59

required :name, String, nil?: true

#objectSymbol, WhopSDK::Models::CardUpdateResponse::Object

Parameters:

  • value (WhopSDK::Models::CardUpdateResponse::object)

Returns:



64
# File 'lib/whop_sdk/models/card_update_response.rb', line 64

required :object, enum: -> { WhopSDK::Models::CardUpdateResponse::Object }

#secretsWhopSDK::Models::CardUpdateResponse::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_update_response.rb', line 95

optional :secrets, -> { WhopSDK::Models::CardUpdateResponse::Secrets }, nil?: true

#spent_last_monthInteger?

Total spend in the last 30 days, in cents.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


70
# File 'lib/whop_sdk/models/card_update_response.rb', line 70

required :spent_last_month, Integer, nil?: true

#statusSymbol, ...

The card status.

Parameters:

  • value (WhopSDK::Models::CardUpdateResponse::status, nil)

Returns:



76
# File 'lib/whop_sdk/models/card_update_response.rb', line 76

required :status, enum: -> { WhopSDK::Models::CardUpdateResponse::Status }, nil?: true

#typeSymbol, ...

The card type.

Parameters:

  • value (WhopSDK::Models::CardUpdateResponse::type_, nil)

Returns:



82
# File 'lib/whop_sdk/models/card_update_response.rb', line 82

required :type, enum: -> { WhopSDK::Models::CardUpdateResponse::Type }, nil?: true

#user_idString?

Cardholder user ID, prefixed user_, when assigned.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


88
# File 'lib/whop_sdk/models/card_update_response.rb', line 88

required :user_id, String, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/card_update_response.rb', line 213

Instance Method Details

#to_hash{

Returns:

  • ({)


71
# File 'sig/whop_sdk/models/card_update_response.rbs', line 71

def to_hash: -> {