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.



8663
8664
8665
# File 'generated/google/apis/content_v2_1/classes.rb', line 8663

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

Instance Attribute Details

#addressGoogle::Apis::ContentV2_1::ReturnAddressAddress

The address. Corresponds to the JSON property address



8634
8635
8636
# File 'generated/google/apis/content_v2_1/classes.rb', line 8634

def address
  @address
end

#countryString

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

Returns:

  • (String)


8639
8640
8641
# File 'generated/google/apis/content_v2_1/classes.rb', line 8639

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)


8645
8646
8647
# File 'generated/google/apis/content_v2_1/classes.rb', line 8645

def kind
  @kind
end

#labelString

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

Returns:

  • (String)


8651
8652
8653
# File 'generated/google/apis/content_v2_1/classes.rb', line 8651

def label
  @label
end

#phone_numberString

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

Returns:

  • (String)


8656
8657
8658
# File 'generated/google/apis/content_v2_1/classes.rb', line 8656

def phone_number
  @phone_number
end

#return_address_idString

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

Returns:

  • (String)


8661
8662
8663
# File 'generated/google/apis/content_v2_1/classes.rb', line 8661

def return_address_id
  @return_address_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8668
8669
8670
8671
8672
8673
8674
8675
# File 'generated/google/apis/content_v2_1/classes.rb', line 8668

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