Class: Lithic::Models::AddressUpdate

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/address_update.rb

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(address1: nil, address2: nil, city: nil, country: nil, postal_code: nil, state: nil) ⇒ Object

Some parameter documentations has been truncated, see Lithic::Models::AddressUpdate for more details.

Parameters:

  • address1 (String) (defaults to: nil)

    Valid deliverable address (no PO boxes).

  • address2 (String) (defaults to: nil)

    Unit or apartment number (if applicable).

  • city (String) (defaults to: nil)

    Name of city.

  • country (String) (defaults to: nil)

    Valid country code. Only USA is currently supported, entered in uppercase ISO 31

  • postal_code (String) (defaults to: nil)

    Valid postal code. Only USA ZIP codes are currently supported, entered as a five

  • state (String) (defaults to: nil)

    Valid state code. Only USA state codes are currently supported, entered in upper



# File 'lib/lithic/models/address_update.rb', line 45


Instance Attribute Details

#address1String?

Valid deliverable address (no PO boxes).

Returns:

  • (String, nil)


10
# File 'lib/lithic/models/address_update.rb', line 10

optional :address1, String

#address2String?

Unit or apartment number (if applicable).

Returns:

  • (String, nil)


16
# File 'lib/lithic/models/address_update.rb', line 16

optional :address2, String

#cityString?

Name of city.

Returns:

  • (String, nil)


22
# File 'lib/lithic/models/address_update.rb', line 22

optional :city, String

#countryString?

Valid country code. Only USA is currently supported, entered in uppercase ISO 3166-1 alpha-3 three-character format.

Returns:

  • (String, nil)


29
# File 'lib/lithic/models/address_update.rb', line 29

optional :country, String

#postal_codeString?

Valid postal code. Only USA ZIP codes are currently supported, entered as a five-digit ZIP or nine-digit ZIP+4.

Returns:

  • (String, nil)


36
# File 'lib/lithic/models/address_update.rb', line 36

optional :postal_code, String

#stateString?

Valid state code. Only USA state codes are currently supported, entered in uppercase ISO 3166-2 two-character format.

Returns:

  • (String, nil)


43
# File 'lib/lithic/models/address_update.rb', line 43

optional :state, String