class Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemShipping

Attributes

amount[RW]

The amount that is refunded. If this is not the first refund for the shipment, this should be the newly refunded amount. Corresponds to the JSON property `amount` @return [Google::Apis::ContentV2_1::Price]

full_refund[RW]

If set to true, all shipping costs for the order will be refunded. If this is true, amount should not be provided and will be ignored. If set to false, submit the amount of the partial shipping refund, excluding the shipping tax. The shipping tax is calculated and handled on Google's side. Corresponds to the JSON property `fullRefund` @return [Boolean]

full_refund?[RW]

If set to true, all shipping costs for the order will be refunded. If this is true, amount should not be provided and will be ignored. If set to false, submit the amount of the partial shipping refund, excluding the shipping tax. The shipping tax is calculated and handled on Google's side. Corresponds to the JSON property `fullRefund` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 8143
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 8148
def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @full_refund = args[:full_refund] if args.key?(:full_refund)
end