class Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem
Attributes
amount[RW]
Amount to refund for the cancelation. Optional. If not set, Google will calculate the default based on the price and tax of the items involved. The amount must not be larger than the net amount left on the order. Corresponds to the JSON property `amount` @return [Google::Apis::ContentV2::Price]
line_item_id[RW]
The ID of the line item to cancel. Corresponds to the JSON property `lineItemId` @return [String]
quantity[RW]
The quantity to cancel. Corresponds to the JSON property `quantity` @return [Fixnum]
reason[RW]
The reason for the cancellation. Corresponds to the JSON property `reason` @return [String]
reason_text[RW]
The explanation of the reason. Corresponds to the JSON property `reasonText` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 3888 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/content_v2/classes.rb, line 3893 def update!(**args) @amount = args[:amount] if args.key?(:amount) @line_item_id = args[:line_item_id] if args.key?(:line_item_id) @quantity = args[:quantity] if args.key?(:quantity) @reason = args[:reason] if args.key?(:reason) @reason_text = args[:reason_text] if args.key?(:reason_text) end