Class: Google::Apis::ContentV2_1::ReturnAddress

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

Overview

Return address resource.

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) ⇒ ReturnAddress

Returns a new instance of ReturnAddress.



9819
9820
9821
# File 'generated/google/apis/content_v2_1/classes.rb', line 9819

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

Instance Attribute Details

#addressGoogle::Apis::ContentV2_1::ReturnAddressAddress

Required. The address. Corresponds to the JSON property address



9790
9791
9792
# File 'generated/google/apis/content_v2_1/classes.rb', line 9790

def address
  @address
end

#countryString

Required. The country of sale where the return address is applicable. Corresponds to the JSON property country

Returns:

  • (String)


9795
9796
9797
# File 'generated/google/apis/content_v2_1/classes.rb', line 9795

def country
  @country
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# returnAddress" Corresponds to the JSON property kind

Returns:

  • (String)


9801
9802
9803
# File 'generated/google/apis/content_v2_1/classes.rb', line 9801

def kind
  @kind
end

#labelString

Required. The user-defined label of the return address. For the default address, use the label "default". Corresponds to the JSON property label

Returns:

  • (String)


9807
9808
9809
# File 'generated/google/apis/content_v2_1/classes.rb', line 9807

def label
  @label
end

#phone_numberString

Required. The merchant's contact phone number regarding the return. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


9812
9813
9814
# File 'generated/google/apis/content_v2_1/classes.rb', line 9812

def phone_number
  @phone_number
end

#return_address_idString

Return address ID generated by Google. Corresponds to the JSON property returnAddressId

Returns:

  • (String)


9817
9818
9819
# File 'generated/google/apis/content_v2_1/classes.rb', line 9817

def return_address_id
  @return_address_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9824
9825
9826
9827
9828
9829
9830
9831
# File 'generated/google/apis/content_v2_1/classes.rb', line 9824

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