Class: WhopSDK::Models::SetupIntent::PaymentMethod::MailingAddress

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

Overview

See Also:

  • WhopSDK::Models::SetupIntent::PaymentMethod#mailing_address

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

#initialize(city:, country:, line1:, line2:, name:, postal_code:, state:) ⇒ Object

The mailing address associated with the payment method's user

Parameters:

  • city (String, nil)

    The city of the address.

  • country (String, nil)

    The country of the address.

  • line1 (String, nil)

    The line 1 of the address.

  • line2 (String, nil)

    The line 2 of the address.

  • name (String, nil)

    The name of the customer.

  • postal_code (String, nil)

    The postal code of the address.

  • state (String, nil)

    The state of the address.



# File 'lib/whop_sdk/models/setup_intent.rb', line 327

Instance Attribute Details

#cityString?

The city of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


289
# File 'lib/whop_sdk/models/setup_intent.rb', line 289

required :city, String, nil?: true

#countryString?

The country of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


295
# File 'lib/whop_sdk/models/setup_intent.rb', line 295

required :country, String, nil?: true

#line1String?

The line 1 of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


301
# File 'lib/whop_sdk/models/setup_intent.rb', line 301

required :line1, String, nil?: true

#line2String?

The line 2 of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


307
# File 'lib/whop_sdk/models/setup_intent.rb', line 307

required :line2, String, nil?: true

#nameString?

The name of the customer.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


313
# File 'lib/whop_sdk/models/setup_intent.rb', line 313

required :name, String, nil?: true

#postal_codeString?

The postal code of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


319
# File 'lib/whop_sdk/models/setup_intent.rb', line 319

required :postal_code, String, nil?: true

#stateString?

The state of the address.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


325
# File 'lib/whop_sdk/models/setup_intent.rb', line 325

required :state, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


233
# File 'sig/whop_sdk/models/setup_intent.rbs', line 233

def to_hash: -> {