Class: Lithic::Models::Address
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Lithic::Models::Address
- Defined in:
- lib/lithic/models/address.rb
Instance Attribute Summary collapse
-
#address1 ⇒ String
Valid deliverable address (no PO boxes).
-
#address2 ⇒ String?
Unit or apartment number (if applicable).
-
#city ⇒ String
Name of city.
-
#country ⇒ String
Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character format.
-
#postal_code ⇒ String
Valid postal code.
-
#state ⇒ String
Valid state code.
Instance Method Summary collapse
-
#initialize(address1:, city:, country:, postal_code:, state:, address2: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Address for more details.
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:, city:, country:, postal_code:, state:, address2: nil) ⇒ Object
Some parameter documentations has been truncated, see Lithic::Models::Address for more details.
|
|
# File 'lib/lithic/models/address.rb', line 47
|
Instance Attribute Details
#address1 ⇒ String
Valid deliverable address (no PO boxes).
10 |
# File 'lib/lithic/models/address.rb', line 10 required :address1, String |
#address2 ⇒ String?
Unit or apartment number (if applicable).
45 |
# File 'lib/lithic/models/address.rb', line 45 optional :address2, String |
#city ⇒ String
Name of city.
16 |
# File 'lib/lithic/models/address.rb', line 16 required :city, String |
#country ⇒ String
Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character format. Only USA is currently supported for all workflows. KYC_EXEMPT supports CAN additionally.
24 |
# File 'lib/lithic/models/address.rb', line 24 required :country, String |
#postal_code ⇒ String
Valid postal code. USA postal codes (ZIP codes) are supported, entered as a five-digit postal code or nine-digit postal code (ZIP+4) using the format 12345-1234. KYC_EXEMPT supports Canadian postal codes.
32 |
# File 'lib/lithic/models/address.rb', line 32 required :postal_code, String |
#state ⇒ String
Valid state code. USA state codes are supported, entered in uppercase ISO 3166-2 two-character format. KYC_EXEMPT supports Canadian province codes.
39 |
# File 'lib/lithic/models/address.rb', line 39 required :state, String |