class Google::Apis::ContentV2::OrdersCancelLineItemRequest
Attributes
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]
The ID of the line item to cancel. Corresponds to the JSON property `lineItemId` @return [String]
The ID of the operation. Unique across all operations for a given order. Corresponds to the JSON property `operationId` @return [String]
The quantity to cancel. Corresponds to the JSON property `quantity` @return [Fixnum]
The reason for the cancellation. Corresponds to the JSON property `reason` @return [String]
The explanation of the reason. Corresponds to the JSON property `reasonText` @return [String]
Public Class Methods
# File generated/google/apis/content_v2/classes.rb, line 3575 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/content_v2/classes.rb, line 3580 def update!(**args) @amount = args[:amount] if args.key?(:amount) @line_item_id = args[:line_item_id] if args.key?(:line_item_id) @operation_id = args[:operation_id] if args.key?(:operation_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