Class: Google::Apis::ContentV2_1::OrderreturnsRefundOperation
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderreturnsRefundOperation
- 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.
-
#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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrderreturnsRefundOperation
Returns a new instance of OrderreturnsRefundOperation.
6076 6077 6078 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6076 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.
Corresponds to the JSON property fullRefund
6058 6059 6060 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6058 def full_refund @full_refund end |
#partial_refund ⇒ Google::Apis::ContentV2_1::OrderreturnsPartialRefund
If this is set, the item will be partially refunded.
Corresponds to the JSON property partialRefund
6064 6065 6066 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6064 def partial_refund @partial_refund end |
#reason_text ⇒ String
The explanation of the reason.
Corresponds to the JSON property reasonText
6069 6070 6071 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6069 def reason_text @reason_text end |
#return_refund_reason ⇒ String
Code of the refund reason.
Corresponds to the JSON property returnRefundReason
6074 6075 6076 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6074 def return_refund_reason @return_refund_reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6081 6082 6083 6084 6085 6086 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 6081 def update!(**args) @full_refund = args[:full_refund] if args.key?(:full_refund) @partial_refund = args[:partial_refund] if args.key?(:partial_refund) @reason_text = args[:reason_text] if args.key?(:reason_text) @return_refund_reason = args[:return_refund_reason] if args.key?(:return_refund_reason) end |