class Google::Apis::ContentV2_1::ReturnAddress

Return address resource.

Attributes

address[RW]

Required. The address. Corresponds to the JSON property `address` @return [Google::Apis::ContentV2_1::ReturnAddressAddress]

country[RW]

Required. The country of sale where the return address is applicable. Corresponds to the JSON property `country` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “`content# returnAddress`” Corresponds to the JSON property `kind` @return [String]

label[RW]

Required. The user-defined label of the return address. For the default address, use the label “default”. Corresponds to the JSON property `label` @return [String]

phone_number[RW]

Required. The merchant's contact phone number regarding the return. Corresponds to the JSON property `phoneNumber` @return [String]

return_address_id[RW]

Return address ID generated by Google. Corresponds to the JSON property `returnAddressId` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 12928
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