Class: Google::Apis::ContentV2::OrderAddress
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ContentV2::OrderAddress
 
- Defined in:
- generated/google/apis/content_v2/classes.rb,
 generated/google/apis/content_v2/representations.rb,
 generated/google/apis/content_v2/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 (e.g. "CA"). 
- 
  
    
      #street_address  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Street-level part of the address. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ OrderAddress 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of OrderAddress. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrderAddress
Returns a new instance of OrderAddress
| 3291 3292 3293 | # File 'generated/google/apis/content_v2/classes.rb', line 3291 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#country ⇒ String
CLDR country code (e.g. "US").
Corresponds to the JSON property country
| 3247 3248 3249 | # File 'generated/google/apis/content_v2/classes.rb', line 3247 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
| 3257 3258 3259 | # File 'generated/google/apis/content_v2/classes.rb', line 3257 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
| 3262 3263 3264 | # File 'generated/google/apis/content_v2/classes.rb', line 3262 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
| 3269 3270 3271 | # File 'generated/google/apis/content_v2/classes.rb', line 3269 def locality @locality end | 
#postal_code ⇒ String
Postal Code or ZIP (e.g. "94043").
Corresponds to the JSON property postalCode
| 3274 3275 3276 | # File 'generated/google/apis/content_v2/classes.rb', line 3274 def postal_code @postal_code end | 
#recipient_name ⇒ String
Name of the recipient.
Corresponds to the JSON property recipientName
| 3279 3280 3281 | # File 'generated/google/apis/content_v2/classes.rb', line 3279 def recipient_name @recipient_name end | 
#region ⇒ String
Top-level administrative subdivision of the country (e.g. "CA").
Corresponds to the JSON property region
| 3284 3285 3286 | # File 'generated/google/apis/content_v2/classes.rb', line 3284 def region @region end | 
#street_address ⇒ Array<String>
Street-level part of the address.
Corresponds to the JSON property streetAddress
| 3289 3290 3291 | # File 'generated/google/apis/content_v2/classes.rb', line 3289 def street_address @street_address end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 | # File 'generated/google/apis/content_v2/classes.rb', line 3296 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 |