Class: Google::Apis::ContentV2_1::MerchantOrderReturnItem
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::MerchantOrderReturnItem
- 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
Instance Attribute Summary collapse
-
#customer_return_reason ⇒ Google::Apis::ContentV2_1::CustomerReturnReason
Corresponds to the JSON property
customerReturnReason
. -
#item_id ⇒ String
Corresponds to the JSON property
itemId
. -
#merchant_return_reason ⇒ Google::Apis::ContentV2_1::RefundReason
Corresponds to the JSON property
merchantReturnReason
. -
#product ⇒ Google::Apis::ContentV2_1::OrderLineItemProduct
Corresponds to the JSON property
product
. -
#return_shipment_ids ⇒ Array<String>
Corresponds to the JSON property
returnShipmentIds
. -
#state ⇒ String
Corresponds to the JSON property
state
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MerchantOrderReturnItem
constructor
A new instance of MerchantOrderReturnItem.
-
#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) ⇒ MerchantOrderReturnItem
Returns a new instance of MerchantOrderReturnItem.
3496 3497 3498 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3496 def initialize(**args) update!(**args) end |
Instance Attribute Details
#customer_return_reason ⇒ Google::Apis::ContentV2_1::CustomerReturnReason
Corresponds to the JSON property customerReturnReason
3469 3470 3471 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3469 def customer_return_reason @customer_return_reason end |
#item_id ⇒ String
Corresponds to the JSON property itemId
3474 3475 3476 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3474 def item_id @item_id end |
#merchant_return_reason ⇒ Google::Apis::ContentV2_1::RefundReason
Corresponds to the JSON property merchantReturnReason
3479 3480 3481 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3479 def merchant_return_reason @merchant_return_reason end |
#product ⇒ Google::Apis::ContentV2_1::OrderLineItemProduct
Corresponds to the JSON property product
3484 3485 3486 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3484 def product @product end |
#return_shipment_ids ⇒ Array<String>
Corresponds to the JSON property returnShipmentIds
3489 3490 3491 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3489 def return_shipment_ids @return_shipment_ids end |
#state ⇒ String
Corresponds to the JSON property state
3494 3495 3496 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3494 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3501 3502 3503 3504 3505 3506 3507 3508 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3501 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 |