Class: WhopSDK::Models::CardCreateResponse::Billing

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

Overview

See Also:

  • WhopSDK::Models::CardCreateResponse#billing

Instance Attribute 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

#initializeObject



112
# File 'sig/whop_sdk/models/card_create_response.rbs', line 112

def initialize: (

Instance Attribute Details

#cityString?

Billing city.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


137
# File 'lib/whop_sdk/models/card_create_response.rb', line 137

required :city, String, nil?: true

#country_codeString?

Billing country code.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


143
# File 'lib/whop_sdk/models/card_create_response.rb', line 143

required :country_code, String, nil?: true

#line1String?

Street address line 1.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


149
# File 'lib/whop_sdk/models/card_create_response.rb', line 149

required :line1, String, nil?: true

#line2String?

Street address line 2.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


155
# File 'lib/whop_sdk/models/card_create_response.rb', line 155

required :line2, String, nil?: true

#postal_codeString?

Billing postal code.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


161
# File 'lib/whop_sdk/models/card_create_response.rb', line 161

required :postal_code, String, nil?: true

#regionString?

Billing region or state.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


167
# File 'lib/whop_sdk/models/card_create_response.rb', line 167

required :region, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


121
# File 'sig/whop_sdk/models/card_create_response.rbs', line 121

def to_hash: -> {