Class: Google::Apis::ContentV2_1::TestOrderAddress
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::TestOrderAddress
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#country ⇒ String
CLDR country code (e.g. "US").
-
#full_address ⇒ Array<String>
Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States Corresponds to the JSON property
fullAddress. -
#is_post_office_box ⇒ Boolean
(also: #is_post_office_box?)
Whether the address is a post office box.
-
#locality ⇒ String
City, town or commune.
-
#postal_code ⇒ String
Postal Code or ZIP (e.g. "94043").
-
#recipient_name ⇒ String
Name of the recipient.
-
#region ⇒ String
Top-level administrative subdivision of the country.
-
#street_address ⇒ Array<String>
Street-level part of the address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestOrderAddress
constructor
A new instance of TestOrderAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TestOrderAddress
Returns a new instance of TestOrderAddress.
14819 14820 14821 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14819 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
CLDR country code (e.g. "US").
Corresponds to the JSON property country
14777 14778 14779 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14777 def country @country end |
#full_address ⇒ Array<String>
Strings representing the lines of the printed label for mailing the order, for
example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United
States
Corresponds to the JSON property fullAddress
14784 14785 14786 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14784 def full_address @full_address end |
#is_post_office_box ⇒ Boolean Also known as: is_post_office_box?
Whether the address is a post office box.
Corresponds to the JSON property isPostOfficeBox
14789 14790 14791 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14789 def is_post_office_box @is_post_office_box end |
#locality ⇒ String
City, town or commune. May also include dependent localities or sublocalities (
e.g. neighborhoods or suburbs).
Corresponds to the JSON property locality
14796 14797 14798 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14796 def locality @locality end |
#postal_code ⇒ String
Postal Code or ZIP (e.g. "94043").
Corresponds to the JSON property postalCode
14801 14802 14803 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14801 def postal_code @postal_code end |
#recipient_name ⇒ String
Name of the recipient.
Corresponds to the JSON property recipientName
14806 14807 14808 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14806 def recipient_name @recipient_name end |
#region ⇒ String
Top-level administrative subdivision of the country. For example, a state like
California ("CA") or a province like Quebec ("QC").
Corresponds to the JSON property region
14812 14813 14814 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14812 def region @region end |
#street_address ⇒ Array<String>
Street-level part of the address.
Corresponds to the JSON property streetAddress
14817 14818 14819 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14817 def street_address @street_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14824 def update!(**args) @country = args[:country] if args.key?(:country) @full_address = args[:full_address] if args.key?(:full_address) @is_post_office_box = args[:is_post_office_box] if args.key?(:is_post_office_box) @locality = args[:locality] if args.key?(:locality) @postal_code = args[:postal_code] if args.key?(:postal_code) @recipient_name = args[:recipient_name] if args.key?(:recipient_name) @region = args[:region] if args.key?(:region) @street_address = args[:street_address] if args.key?(:street_address) end |