class Google::Apis::ContentV2_1::OrdersRefundOrderRequest

Attributes

amount[RW]

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]

full_refund[RW]

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]

full_refund?[RW]

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]

operation_id[RW]

The ID of the operation. Unique across all operations for a given order. Corresponds to the JSON property `operationId` @return [String]

reason[RW]

The reason for the refund. Acceptable values are: - “`courtesyAdjustment`” - “` other`” 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 lib/google/apis/content_v2_1/classes.rb, line 8504
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 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