class Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemItem
Attributes
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]
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]
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]
The ID of the line item. Either lineItemId or productId is required. Corresponds to the JSON property `lineItemId` @return [String]
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]
The number of products that are refunded. Corresponds to the JSON property `quantity` @return [Fixnum]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 8110 def initialize(**args) update!(**args) end
Public Instance Methods
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