class Google::Apis::ContentV2_1::OrderreturnsRefundOperation

Attributes

full_refund[RW]

If true, the item will be fully refunded. Allowed only when payment_type is FOP. Merchant can choose this refund option to indicate the full remaining amount of corresponding object to be refunded to the customer via FOP. Corresponds to the JSON property `fullRefund` @return [Boolean]

full_refund?[RW]

If true, the item will be fully refunded. Allowed only when payment_type is FOP. Merchant can choose this refund option to indicate the full remaining amount of corresponding object to be refunded to the customer via FOP. Corresponds to the JSON property `fullRefund` @return [Boolean]

partial_refund[RW]

If this is set, the item will be partially refunded. Merchant can choose this refund option to specify the customized amount that to be refunded to the customer. Corresponds to the JSON property `partialRefund` @return [Google::Apis::ContentV2_1::OrderreturnsPartialRefund]

payment_type[RW]

The payment way of issuing refund. Default value is ORIGINAL_FOP if not set. Corresponds to the JSON property `paymentType` @return [String]

reason_text[RW]

The explanation of the reason. Corresponds to the JSON property `reasonText` @return [String]

return_refund_reason[RW]

Code of the refund reason. Corresponds to the JSON property `returnRefundReason` @return [String]

Public Class Methods

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