Class: Google::Apis::ContentV2_1::ReturnAddress
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnAddress
- 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
Overview
Return address resource.
Instance Attribute Summary collapse
-
#address ⇒ Google::Apis::ContentV2_1::ReturnAddressAddress
The address.
-
#country ⇒ String
The country of sale where the return address is applicable.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#label ⇒ String
The user-defined label of the return address.
-
#phone_number ⇒ String
The merchant's contact phone number regarding the return.
-
#return_address_id ⇒ String
Return address ID generated by Google.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReturnAddress
constructor
A new instance of ReturnAddress.
-
#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) ⇒ ReturnAddress
Returns a new instance of ReturnAddress
8329 8330 8331 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8329 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ Google::Apis::ContentV2_1::ReturnAddressAddress
The address.
Corresponds to the JSON property address
8300 8301 8302 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8300 def address @address end |
#country ⇒ String
The country of sale where the return address is applicable.
Corresponds to the JSON property country
8305 8306 8307 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8305 def country @country end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
returnAddress".
Corresponds to the JSON property kind
8311 8312 8313 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8311 def kind @kind end |
#label ⇒ String
The user-defined label of the return address. For the default address, use the
label "default".
Corresponds to the JSON property label
8317 8318 8319 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8317 def label @label end |
#phone_number ⇒ String
The merchant's contact phone number regarding the return.
Corresponds to the JSON property phoneNumber
8322 8323 8324 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8322 def phone_number @phone_number end |
#return_address_id ⇒ String
Return address ID generated by Google.
Corresponds to the JSON property returnAddressId
8327 8328 8329 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8327 def return_address_id @return_address_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8334 8335 8336 8337 8338 8339 8340 8341 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8334 def update!(**args) @address = args[:address] if args.key?(:address) @country = args[:country] if args.key?(:country) @kind = args[:kind] if args.key?(:kind) @label = args[:label] if args.key?(:label) @phone_number = args[:phone_number] if args.key?(:phone_number) @return_address_id = args[:return_address_id] if args.key?(:return_address_id) end |