class Google::Apis::ContentV2_1::OrdersRefundOrderRequest
Attributes
The amount that is refunded. If this is not the first refund for the order, this should be the newly refunded amount. Corresponds to the JSON property `amount` @return [Google::Apis::ContentV2_1::MonetaryAmount]
If true, the full order will be refunded, including shipping. 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 order will be refunded, including shipping. 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 operation. Unique across all operations for a given order. Corresponds to the JSON property `operationId` @return [String]
The reason for the refund. Acceptable values are: - “`courtesyAdjustment`” - “` other`” 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 lib/google/apis/content_v2_1/classes.rb, line 8504 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 8509 def update!(**args) @amount = args[:amount] if args.key?(:amount) @full_refund = args[:full_refund] if args.key?(:full_refund) @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) end