class Google::Apis::ContentV2_1::MerchantOrderReturn

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

Attributes

creation_date[RW]

The date of creation of the return, in ISO 8601 format. Corresponds to the JSON property `creationDate` @return [String]

merchant_order_id[RW]

Merchant defined order ID. Corresponds to the JSON property `merchantOrderId` @return [String]

order_id[RW]

Google order ID. Corresponds to the JSON property `orderId` @return [String]

order_return_id[RW]

Order return ID generated by Google. Corresponds to the JSON property `orderReturnId` @return [String]

return_items[RW]

Items of the return. Corresponds to the JSON property `returnItems` @return [Array<Google::Apis::ContentV2_1::MerchantOrderReturnItem>]

return_pricing_info[RW]

Information about shipping costs. Corresponds to the JSON property `returnPricingInfo` @return [Google::Apis::ContentV2_1::ReturnPricingInfo]

return_shipments[RW]

Shipments of the return. Corresponds to the JSON property `returnShipments` @return [Array<Google::Apis::ContentV2_1::ReturnShipment>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 4836
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 4841
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