Class: Increase::Models::PhysicalCardCreateParams::Shipment::Address

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

Overview

See Also:

  • Increase::Models::PhysicalCardCreateParams::Shipment#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

#initializeObject



124
# File 'sig/increase/models/physical_card_create_params.rbs', line 124

def initialize: (

Instance Attribute Details

#cityString

The city of the shipping address.

Parameters:

  • value (String)

Returns:

  • (String)


123
# File 'lib/increase/models/physical_card_create_params.rb', line 123

required :city, String

#countryString?

The two-character ISO 3166-1 code of the country where the card should be shipped (e.g., US). Please reach out to support@increase.com to ship cards internationally.

Parameters:

  • (String)

Returns:

  • (String, nil)


156
# File 'lib/increase/models/physical_card_create_params.rb', line 156

optional :country, String

#line1String

The first line of the shipping address.

Parameters:

  • value (String)

Returns:

  • (String)


129
# File 'lib/increase/models/physical_card_create_params.rb', line 129

required :line1, String

#line2String?

The second line of the shipping address.

Parameters:

  • (String)

Returns:

  • (String, nil)


162
# File 'lib/increase/models/physical_card_create_params.rb', line 162

optional :line2, String

#line3String?

The third line of the shipping address.

Parameters:

  • (String)

Returns:

  • (String, nil)


168
# File 'lib/increase/models/physical_card_create_params.rb', line 168

optional :line3, String

#nameString

The name of the recipient.

Parameters:

  • value (String)

Returns:

  • (String)


135
# File 'lib/increase/models/physical_card_create_params.rb', line 135

required :name, String

#phone_numberString?

The phone number of the recipient.

Parameters:

  • (String)

Returns:

  • (String, nil)


174
# File 'lib/increase/models/physical_card_create_params.rb', line 174

optional :phone_number, String

#postal_codeString

The postal code of the shipping address.

Parameters:

  • value (String)

Returns:

  • (String)


141
# File 'lib/increase/models/physical_card_create_params.rb', line 141

required :postal_code, String

#stateString

The state of the shipping address.

Parameters:

  • value (String)

Returns:

  • (String)


147
# File 'lib/increase/models/physical_card_create_params.rb', line 147

required :state, String

Instance Method Details

#to_hash{

Returns:

  • ({)


136
# File 'sig/increase/models/physical_card_create_params.rbs', line 136

def to_hash: -> {