Class: Google::Apis::ContentV2_1::TestOrderAddress

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TestOrderAddress

Returns a new instance of TestOrderAddress.



14511
14512
14513
# File 'lib/google/apis/content_v2_1/classes.rb', line 14511

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countryString

CLDR country code (e.g. "US"). Corresponds to the JSON property country

Returns:

  • (String)


14469
14470
14471
# File 'lib/google/apis/content_v2_1/classes.rb', line 14469

def country
  @country
end

#full_addressArray<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

Returns:

  • (Array<String>)


14476
14477
14478
# File 'lib/google/apis/content_v2_1/classes.rb', line 14476

def full_address
  @full_address
end

#is_post_office_boxBoolean Also known as: is_post_office_box?

Whether the address is a post office box. Corresponds to the JSON property isPostOfficeBox

Returns:

  • (Boolean)


14481
14482
14483
# File 'lib/google/apis/content_v2_1/classes.rb', line 14481

def is_post_office_box
  @is_post_office_box
end

#localityString

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

Returns:

  • (String)


14488
14489
14490
# File 'lib/google/apis/content_v2_1/classes.rb', line 14488

def locality
  @locality
end

#postal_codeString

Postal Code or ZIP (e.g. "94043"). Corresponds to the JSON property postalCode

Returns:

  • (String)


14493
14494
14495
# File 'lib/google/apis/content_v2_1/classes.rb', line 14493

def postal_code
  @postal_code
end

#recipient_nameString

Name of the recipient. Corresponds to the JSON property recipientName

Returns:

  • (String)


14498
14499
14500
# File 'lib/google/apis/content_v2_1/classes.rb', line 14498

def recipient_name
  @recipient_name
end

#regionString

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

Returns:

  • (String)


14504
14505
14506
# File 'lib/google/apis/content_v2_1/classes.rb', line 14504

def region
  @region
end

#street_addressArray<String>

Street-level part of the address. Corresponds to the JSON property streetAddress

Returns:

  • (Array<String>)


14509
14510
14511
# File 'lib/google/apis/content_v2_1/classes.rb', line 14509

def street_address
  @street_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
# File 'lib/google/apis/content_v2_1/classes.rb', line 14516

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