class Google::Apis::ContentV2_1::OrderreturnsRefundOperation
Attributes
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]
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]
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]
The payment way of issuing refund. Default value is ORIGINAL_FOP if not set. Corresponds to the JSON property `paymentType` @return [String]
The explanation of the reason. Corresponds to the JSON property `reasonText` @return [String]
Code of the refund reason. Corresponds to the JSON property `returnRefundReason` @return [String]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 7624 def initialize(**args) update!(**args) end
Public Instance Methods
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