Class: ModernTreasury::Models::Address
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModernTreasury::Models::Address
- Defined in:
- lib/modern_treasury/models/address.rb
Instance Attribute Summary collapse
-
#country ⇒ String?
Country code conforms to [ISO 3166-1 alpha-2].
- #created_at ⇒ Time
- #id ⇒ String
- #line1 ⇒ String?
- #line2 ⇒ String?
-
#live_mode ⇒ Boolean
This field will be true if this object exists in the live environment or false if it exists in the test environment.
-
#locality ⇒ String?
Locality or City.
- #object ⇒ String
-
#postal_code ⇒ String?
The postal code of the address.
-
#region ⇒ String?
Region or State.
- #updated_at ⇒ Time
Instance Method Summary collapse
-
#initialize(id: , country: , created_at: , line1: , line2: , live_mode: , locality: , object: , postal_code: , region: , updated_at: ) ⇒ 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(id: , country: , created_at: , line1: , line2: , live_mode: , locality: , object: , postal_code: , region: , updated_at: ) ⇒ Object
Some parameter documentations has been truncated, see ModernTreasury::Models::Address for more details.
|
|
# File 'lib/modern_treasury/models/address.rb', line 67
|
Instance Attribute Details
#country ⇒ String?
Country code conforms to [ISO 3166-1 alpha-2]
15 |
# File 'lib/modern_treasury/models/address.rb', line 15 required :country, String, nil?: true |
#created_at ⇒ Time
20 |
# File 'lib/modern_treasury/models/address.rb', line 20 required :created_at, Time |
#id ⇒ String
9 |
# File 'lib/modern_treasury/models/address.rb', line 9 required :id, String |
#line1 ⇒ String?
25 |
# File 'lib/modern_treasury/models/address.rb', line 25 required :line1, String, nil?: true |
#line2 ⇒ String?
30 |
# File 'lib/modern_treasury/models/address.rb', line 30 required :line2, String, nil?: true |
#live_mode ⇒ Boolean
This field will be true if this object exists in the live environment or false if it exists in the test environment.
37 |
# File 'lib/modern_treasury/models/address.rb', line 37 required :live_mode, ModernTreasury::Internal::Type::Boolean |
#locality ⇒ String?
Locality or City.
43 |
# File 'lib/modern_treasury/models/address.rb', line 43 required :locality, String, nil?: true |
#object ⇒ String
48 |
# File 'lib/modern_treasury/models/address.rb', line 48 required :object, String |
#postal_code ⇒ String?
The postal code of the address.
54 |
# File 'lib/modern_treasury/models/address.rb', line 54 required :postal_code, String, nil?: true |
#region ⇒ String?
Region or State.
60 |
# File 'lib/modern_treasury/models/address.rb', line 60 required :region, String, nil?: true |
#updated_at ⇒ Time
65 |
# File 'lib/modern_treasury/models/address.rb', line 65 required :updated_at, Time |