Class: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemShipping
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemShipping
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#amount ⇒ Google::Apis::ContentV2_1::Price
The amount that is refunded.
-
#full_refund ⇒ Boolean
(also: #full_refund?)
If set to true, all shipping costs for the order will be refunded.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrdersCustomBatchRequestEntryRefundItemShipping
constructor
A new instance of OrdersCustomBatchRequestEntryRefundItemShipping.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrdersCustomBatchRequestEntryRefundItemShipping
Returns a new instance of OrdersCustomBatchRequestEntryRefundItemShipping.
8299 8300 8301 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8299 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::ContentV2_1::Price
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
8288 8289 8290 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8288 def amount @amount end |
#full_refund ⇒ Boolean Also known as: full_refund?
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
8296 8297 8298 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8296 def full_refund @full_refund end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8304 8305 8306 8307 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 8304 def update!(**args) @amount = args[:amount] if args.key?(:amount) @full_refund = args[:full_refund] if args.key?(:full_refund) end |