Class: Google::Apis::ContentV2::MerchantOrderReturnItem
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::MerchantOrderReturnItem
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#customer_return_reason ⇒ Google::Apis::ContentV2::CustomerReturnReason
The reason that the customer chooses to return an item.
-
#item_id ⇒ String
Product level item ID.
-
#merchant_return_reason ⇒ Google::Apis::ContentV2::RefundReason
The reason that merchant chooses to accept a return item.
-
#product ⇒ Google::Apis::ContentV2::OrderLineItemProduct
Product data from the time of the order placement.
-
#return_shipment_ids ⇒ Array<String>
IDs of the return shipments that this return item belongs to.
-
#state ⇒ String
State of the item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MerchantOrderReturnItem
constructor
A new instance of MerchantOrderReturnItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MerchantOrderReturnItem
Returns a new instance of MerchantOrderReturnItem.
3735 3736 3737 |
# File 'lib/google/apis/content_v2/classes.rb', line 3735 def initialize(**args) update!(**args) end |
Instance Attribute Details
#customer_return_reason ⇒ Google::Apis::ContentV2::CustomerReturnReason
The reason that the customer chooses to return an item.
Corresponds to the JSON property customerReturnReason
3706 3707 3708 |
# File 'lib/google/apis/content_v2/classes.rb', line 3706 def customer_return_reason @customer_return_reason end |
#item_id ⇒ String
Product level item ID. If the returned items are of the same product, they
will have the same ID.
Corresponds to the JSON property itemId
3712 3713 3714 |
# File 'lib/google/apis/content_v2/classes.rb', line 3712 def item_id @item_id end |
#merchant_return_reason ⇒ Google::Apis::ContentV2::RefundReason
The reason that merchant chooses to accept a return item.
Corresponds to the JSON property merchantReturnReason
3717 3718 3719 |
# File 'lib/google/apis/content_v2/classes.rb', line 3717 def merchant_return_reason @merchant_return_reason end |
#product ⇒ Google::Apis::ContentV2::OrderLineItemProduct
Product data from the time of the order placement.
Corresponds to the JSON property product
3722 3723 3724 |
# File 'lib/google/apis/content_v2/classes.rb', line 3722 def product @product end |
#return_shipment_ids ⇒ Array<String>
IDs of the return shipments that this return item belongs to.
Corresponds to the JSON property returnShipmentIds
3727 3728 3729 |
# File 'lib/google/apis/content_v2/classes.rb', line 3727 def return_shipment_ids @return_shipment_ids end |
#state ⇒ String
State of the item. Acceptable values are: - "canceled
" - "new
" - "
received
" - "refunded
" - "rejected
"
Corresponds to the JSON property state
3733 3734 3735 |
# File 'lib/google/apis/content_v2/classes.rb', line 3733 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3740 3741 3742 3743 3744 3745 3746 3747 |
# File 'lib/google/apis/content_v2/classes.rb', line 3740 def update!(**args) @customer_return_reason = args[:customer_return_reason] if args.key?(:customer_return_reason) @item_id = args[:item_id] if args.key?(:item_id) @merchant_return_reason = args[:merchant_return_reason] if args.key?(:merchant_return_reason) @product = args[:product] if args.key?(:product) @return_shipment_ids = args[:return_shipment_ids] if args.key?(:return_shipment_ids) @state = args[:state] if args.key?(:state) end |