Class: Google::Apis::ContentV2_1::ReturnAddressAddress

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReturnAddressAddress

Returns a new instance of ReturnAddressAddress.



9871
9872
9873
# File 'generated/google/apis/content_v2_1/classes.rb', line 9871

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

Instance Attribute Details

#countryString

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

Returns:

  • (String)


9841
9842
9843
# File 'generated/google/apis/content_v2_1/classes.rb', line 9841

def country
  @country
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)


9847
9848
9849
# File 'generated/google/apis/content_v2_1/classes.rb', line 9847

def locality
  @locality
end

#postal_codeString

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

Returns:

  • (String)


9852
9853
9854
# File 'generated/google/apis/content_v2_1/classes.rb', line 9852

def postal_code
  @postal_code
end

#recipient_nameString

Name of the recipient to address returns to. Corresponds to the JSON property recipientName

Returns:

  • (String)


9857
9858
9859
# File 'generated/google/apis/content_v2_1/classes.rb', line 9857

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)


9863
9864
9865
# File 'generated/google/apis/content_v2_1/classes.rb', line 9863

def region
  @region
end

#street_addressArray<String>

Street-level part of the address. May be up to two lines, each line specified as an array element. Corresponds to the JSON property streetAddress

Returns:

  • (Array<String>)


9869
9870
9871
# File 'generated/google/apis/content_v2_1/classes.rb', line 9869

def street_address
  @street_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9876
9877
9878
9879
9880
9881
9882
9883
# File 'generated/google/apis/content_v2_1/classes.rb', line 9876

def update!(**args)
  @country = args[:country] if args.key?(:country)
  @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