Class: Google::Apis::ContentV2_1::OrdersRefundItemRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrdersRefundItemRequest

Returns a new instance of OrdersRefundItemRequest.



8586
8587
8588
# File 'lib/google/apis/content_v2_1/classes.rb', line 8586

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#itemsArray<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



8558
8559
8560
# File 'lib/google/apis/content_v2_1/classes.rb', line 8558

def items
  @items
end

#operation_idString

The ID of the operation. Unique across all operations for a given order. Corresponds to the JSON property operationId

Returns:

  • (String)


8563
8564
8565
# File 'lib/google/apis/content_v2_1/classes.rb', line 8563

def operation_id
  @operation_id
end

#reasonString

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 property reason

Returns:

  • (String)


8573
8574
8575
# File 'lib/google/apis/content_v2_1/classes.rb', line 8573

def reason
  @reason
end

#reason_textString

The explanation of the reason. Corresponds to the JSON property reasonText

Returns:

  • (String)


8578
8579
8580
# File 'lib/google/apis/content_v2_1/classes.rb', line 8578

def reason_text
  @reason_text
end

#shippingGoogle::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



8584
8585
8586
# File 'lib/google/apis/content_v2_1/classes.rb', line 8584

def shipping
  @shipping
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8591
8592
8593
8594
8595
8596
8597
# File 'lib/google/apis/content_v2_1/classes.rb', line 8591

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