Class: Google::Apis::ContentV2_1::MerchantOrderReturn

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

Order return. Production access (all methods) requires the order manager role. Sandbox access does not.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MerchantOrderReturn

Returns a new instance of MerchantOrderReturn.



4179
4180
4181
# File 'generated/google/apis/content_v2_1/classes.rb', line 4179

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

Instance Attribute Details

#creation_dateString

The date of creation of the return, in ISO 8601 format. Corresponds to the JSON property creationDate

Returns:

  • (String)


4147
4148
4149
# File 'generated/google/apis/content_v2_1/classes.rb', line 4147

def creation_date
  @creation_date
end

#merchant_order_idString

Merchant defined order ID. Corresponds to the JSON property merchantOrderId

Returns:

  • (String)


4152
4153
4154
# File 'generated/google/apis/content_v2_1/classes.rb', line 4152

def merchant_order_id
  @merchant_order_id
end

#order_idString

Google order ID. Corresponds to the JSON property orderId

Returns:

  • (String)


4157
4158
4159
# File 'generated/google/apis/content_v2_1/classes.rb', line 4157

def order_id
  @order_id
end

#order_return_idString

Order return ID generated by Google. Corresponds to the JSON property orderReturnId

Returns:

  • (String)


4162
4163
4164
# File 'generated/google/apis/content_v2_1/classes.rb', line 4162

def order_return_id
  @order_return_id
end

#return_itemsArray<Google::Apis::ContentV2_1::MerchantOrderReturnItem>

Items of the return. Corresponds to the JSON property returnItems



4167
4168
4169
# File 'generated/google/apis/content_v2_1/classes.rb', line 4167

def return_items
  @return_items
end

#return_pricing_infoGoogle::Apis::ContentV2_1::ReturnPricingInfo

Information about shipping costs. Corresponds to the JSON property returnPricingInfo



4172
4173
4174
# File 'generated/google/apis/content_v2_1/classes.rb', line 4172

def return_pricing_info
  @return_pricing_info
end

#return_shipmentsArray<Google::Apis::ContentV2_1::ReturnShipment>

Shipments of the return. Corresponds to the JSON property returnShipments



4177
4178
4179
# File 'generated/google/apis/content_v2_1/classes.rb', line 4177

def return_shipments
  @return_shipments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4184
4185
4186
4187
4188
4189
4190
4191
4192
# File 'generated/google/apis/content_v2_1/classes.rb', line 4184

def update!(**args)
  @creation_date = args[:creation_date] if args.key?(:creation_date)
  @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
  @order_id = args[:order_id] if args.key?(:order_id)
  @order_return_id = args[:order_return_id] if args.key?(:order_return_id)
  @return_items = args[:return_items] if args.key?(:return_items)
  @return_pricing_info = args[:return_pricing_info] if args.key?(:return_pricing_info)
  @return_shipments = args[:return_shipments] if args.key?(:return_shipments)
end