class Google::Apis::ContentV2::OrderAddress

Attributes

country[RW]

CLDR country code (e.g. “US”). Corresponds to the JSON property `country` @return [String]

full_address[RW]

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` @return [Array<String>]

is_post_office_box[RW]

Whether the address is a post office box. Corresponds to the JSON property `isPostOfficeBox` @return [Boolean]

is_post_office_box?[RW]

Whether the address is a post office box. Corresponds to the JSON property `isPostOfficeBox` @return [Boolean]

locality[RW]

City, town or commune. May also include dependent localities or sublocalities ( e.g. neighborhoods or suburbs). Corresponds to the JSON property `locality` @return [String]

postal_code[RW]

Postal Code or ZIP (e.g. “94043”). Corresponds to the JSON property `postalCode` @return [String]

recipient_name[RW]

Name of the recipient. Corresponds to the JSON property `recipientName` @return [String]

region[RW]

Top-level administrative subdivision of the country (e.g. “CA”). Corresponds to the JSON property `region` @return [String]

street_address[RW]

Street-level part of the address. Corresponds to the JSON property `streetAddress` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 2700
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/content_v2/classes.rb, line 2705
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