Class: Google::Apis::ContentV2_1::ReturnAddress
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnAddress
- 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
Overview
Return address resource.
Instance Attribute Summary collapse
-
#address ⇒ Google::Apis::ContentV2_1::ReturnAddressAddress
Required.
-
#country ⇒ String
Required.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#label ⇒ String
Required.
-
#phone_number ⇒ String
Required.
-
#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.
Constructor Details
#initialize(**args) ⇒ ReturnAddress
Returns a new instance of ReturnAddress.
11501 11502 11503 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11501 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ Google::Apis::ContentV2_1::ReturnAddressAddress
Required. The address.
Corresponds to the JSON property address
11472 11473 11474 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11472 def address @address end |
#country ⇒ String
Required. The country of sale where the return address is applicable.
Corresponds to the JSON property country
11477 11478 11479 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11477 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
11483 11484 11485 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11483 def kind @kind end |
#label ⇒ String
Required. The user-defined label of the return address. For the default
address, use the label "default".
Corresponds to the JSON property label
11489 11490 11491 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11489 def label @label end |
#phone_number ⇒ String
Required. The merchant's contact phone number regarding the return.
Corresponds to the JSON property phoneNumber
11494 11495 11496 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11494 def phone_number @phone_number end |
#return_address_id ⇒ String
Return address ID generated by Google.
Corresponds to the JSON property returnAddressId
11499 11500 11501 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11499 def return_address_id @return_address_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11506 11507 11508 11509 11510 11511 11512 11513 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11506 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 |