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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Overview

Return address resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReturnAddress

Returns a new instance of ReturnAddress.



12347
12348
12349
# File 'lib/google/apis/content_v2_1/classes.rb', line 12347

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

Instance Attribute Details

#addressGoogle::Apis::ContentV2_1::ReturnAddressAddress

Required. The address. Corresponds to the JSON property address



12318
12319
12320
# File 'lib/google/apis/content_v2_1/classes.rb', line 12318

def address
  @address
end

#countryString

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

Returns:

  • (String)


12323
12324
12325
# File 'lib/google/apis/content_v2_1/classes.rb', line 12323

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)


12329
12330
12331
# File 'lib/google/apis/content_v2_1/classes.rb', line 12329

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)


12335
12336
12337
# File 'lib/google/apis/content_v2_1/classes.rb', line 12335

def label
  @label
end

#phone_numberString

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

Returns:

  • (String)


12340
12341
12342
# File 'lib/google/apis/content_v2_1/classes.rb', line 12340

def phone_number
  @phone_number
end

#return_address_idString

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

Returns:

  • (String)


12345
12346
12347
# File 'lib/google/apis/content_v2_1/classes.rb', line 12345

def return_address_id
  @return_address_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12352
12353
12354
12355
12356
12357
12358
12359
# File 'lib/google/apis/content_v2_1/classes.rb', line 12352

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