Class: Google::Apis::ContentV2_1::OrderreturnsRefundOperation
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderreturnsRefundOperation
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#full_refund ⇒ Boolean
(also: #full_refund?)
If true, the item will be fully refunded.
-
#partial_refund ⇒ Google::Apis::ContentV2_1::OrderreturnsPartialRefund
If this is set, the item will be partially refunded.
-
#payment_type ⇒ String
The payment way of issuing refund.
-
#reason_text ⇒ String
The explanation of the reason.
-
#return_refund_reason ⇒ String
Code of the refund reason.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderreturnsRefundOperation
constructor
A new instance of OrderreturnsRefundOperation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderreturnsRefundOperation
Returns a new instance of OrderreturnsRefundOperation.
6761 6762 6763 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6761 def initialize(**args) update!(**args) end |
Instance Attribute Details
#full_refund ⇒ Boolean Also known as: full_refund?
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
6736 6737 6738 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6736 def full_refund @full_refund end |
#partial_refund ⇒ Google::Apis::ContentV2_1::OrderreturnsPartialRefund
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
6744 6745 6746 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6744 def partial_refund @partial_refund end |
#payment_type ⇒ String
The payment way of issuing refund. Default value is ORIGINAL_FOP if not set.
Corresponds to the JSON property paymentType
6749 6750 6751 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6749 def payment_type @payment_type end |
#reason_text ⇒ String
The explanation of the reason.
Corresponds to the JSON property reasonText
6754 6755 6756 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6754 def reason_text @reason_text end |
#return_refund_reason ⇒ String
Code of the refund reason.
Corresponds to the JSON property returnRefundReason
6759 6760 6761 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6759 def return_refund_reason @return_refund_reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6766 6767 6768 6769 6770 6771 6772 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6766 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 |