Class: Google::Apis::ContentV2_1::OrdersRefundItemRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrdersRefundItemRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#items ⇒ Array<Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemItem>
The items that are refunded.
-
#operation_id ⇒ String
The ID of the operation.
-
#reason ⇒ String
The reason for the refund.
-
#reason_text ⇒ String
The explanation of the reason.
-
#shipping ⇒ Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemShipping
The refund on shipping.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrdersRefundItemRequest
constructor
A new instance of OrdersRefundItemRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrdersRefundItemRequest
Returns a new instance of OrdersRefundItemRequest.
8150 8151 8152 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8150 def initialize(**args) update!(**args) end |
Instance Attribute Details
#items ⇒ Array<Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemItem>
The items that are refunded. Either Item or Shipping must be provided in the
request.
Corresponds to the JSON property items
8122 8123 8124 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8122 def items @items end |
#operation_id ⇒ String
The ID of the operation. Unique across all operations for a given order.
Corresponds to the JSON property operationId
8127 8128 8129 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8127 def operation_id @operation_id end |
#reason ⇒ String
The reason for the refund. Acceptable values are: - "shippingCostAdjustment"
- "
priceAdjustment" - "taxAdjustment" - "feeAdjustment" - "courtesyAdjustment" - "adjustment" - "customerCancelled" - "noInventory" - "
productNotAsDescribed" - "undeliverableShippingAddress" - "wrongProductShipped" - "lateShipmentCredit" - "deliveredLateByCarrier" - "productArrivedDamaged" Corresponds to the JSON propertyreason
8137 8138 8139 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8137 def reason @reason end |
#reason_text ⇒ String
The explanation of the reason.
Corresponds to the JSON property reasonText
8142 8143 8144 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8142 def reason_text @reason_text end |
#shipping ⇒ Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemShipping
The refund on shipping. Optional, but either Item or Shipping must be provided
in the request.
Corresponds to the JSON property shipping
8148 8149 8150 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8148 def shipping @shipping end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8155 8156 8157 8158 8159 8160 8161 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8155 def update!(**args) @items = args[:items] if args.key?(:items) @operation_id = args[:operation_id] if args.key?(:operation_id) @reason = args[:reason] if args.key?(:reason) @reason_text = args[:reason_text] if args.key?(:reason_text) @shipping = args[:shipping] if args.key?(:shipping) end |