Class: Google::Apis::ContentV2_1::MerchantOrderReturn
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::MerchantOrderReturn
- 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
-
#creation_date ⇒ String
The date of creation of the return, in ISO 8601 format.
-
#merchant_order_id ⇒ String
Merchant defined order ID.
-
#order_id ⇒ String
Google order ID.
-
#order_return_id ⇒ String
Order return ID generated by Google.
-
#return_items ⇒ Array<Google::Apis::ContentV2_1::MerchantOrderReturnItem>
Items of the return.
-
#return_pricing_info ⇒ Google::Apis::ContentV2_1::ReturnPricingInfo
Information about shipping costs.
-
#return_shipments ⇒ Array<Google::Apis::ContentV2_1::ReturnShipment>
Shipments of the return.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MerchantOrderReturn
constructor
A new instance of MerchantOrderReturn.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ MerchantOrderReturn
Returns a new instance of MerchantOrderReturn.
3798 3799 3800 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3798 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_date ⇒ String
The date of creation of the return, in ISO 8601 format.
Corresponds to the JSON property creationDate
3766 3767 3768 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3766 def creation_date @creation_date end |
#merchant_order_id ⇒ String
Merchant defined order ID.
Corresponds to the JSON property merchantOrderId
3771 3772 3773 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3771 def merchant_order_id @merchant_order_id end |
#order_id ⇒ String
Google order ID.
Corresponds to the JSON property orderId
3776 3777 3778 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3776 def order_id @order_id end |
#order_return_id ⇒ String
Order return ID generated by Google.
Corresponds to the JSON property orderReturnId
3781 3782 3783 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3781 def order_return_id @order_return_id end |
#return_items ⇒ Array<Google::Apis::ContentV2_1::MerchantOrderReturnItem>
Items of the return.
Corresponds to the JSON property returnItems
3786 3787 3788 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3786 def return_items @return_items end |
#return_pricing_info ⇒ Google::Apis::ContentV2_1::ReturnPricingInfo
Information about shipping costs.
Corresponds to the JSON property returnPricingInfo
3791 3792 3793 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3791 def return_pricing_info @return_pricing_info end |
#return_shipments ⇒ Array<Google::Apis::ContentV2_1::ReturnShipment>
Shipments of the return.
Corresponds to the JSON property returnShipments
3796 3797 3798 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3796 def return_shipments @return_shipments end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3803 3804 3805 3806 3807 3808 3809 3810 3811 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3803 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 |