class Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemItem

Attributes

amount[RW]

The total amount that is refunded. (e.g. refunding $5 each for 2 products should be done by setting quantity to 2 and amount to 10$) In case of multiple refunds, this should be the amount you currently want to refund to the customer. Corresponds to the JSON property `amount` @return [Google::Apis::ContentV2_1::MonetaryAmount]

full_refund[RW]

If true, the full item will be refunded. If this is true, amount should not be provided and will be ignored. Corresponds to the JSON property `fullRefund` @return [Boolean]

full_refund?[RW]

If true, the full item will be refunded. If this is true, amount should not be provided and will be ignored. Corresponds to the JSON property `fullRefund` @return [Boolean]

line_item_id[RW]

The ID of the line item. Either lineItemId or productId is required. Corresponds to the JSON property `lineItemId` @return [String]

product_id[RW]

The ID of the product. This is the REST ID used in the products service. Either lineItemId or productId is required. Corresponds to the JSON property `productId` @return [String]

quantity[RW]

The number of products that are refunded. Corresponds to the JSON property `quantity` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 8110
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 8115
def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @full_refund = args[:full_refund] if args.key?(:full_refund)
  @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
  @product_id = args[:product_id] if args.key?(:product_id)
  @quantity = args[:quantity] if args.key?(:quantity)
end