Class: Google::Apis::ContentV2_1::ReturnPricingInfo
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnPricingInfo
- 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
-
#charge_return_shipping_fee ⇒ Boolean
(also: #charge_return_shipping_fee?)
Default option for whether merchant should charge the customer for return shipping costs, based on customer selected return reason and merchant's return policy for the items being returned.
-
#max_return_shipping_fee ⇒ Google::Apis::ContentV2_1::MonetaryAmount
Maximum return shipping costs that may be charged to the customer depending on merchant's assessment of the return reason and the merchant's return policy for the items being returned.
-
#refundable_items_total_amount ⇒ Google::Apis::ContentV2_1::MonetaryAmount
Total amount that can be refunded for the items in this return.
-
#refundable_shipping_amount ⇒ Google::Apis::ContentV2_1::MonetaryAmount
Maximum amount that can be refunded for the original shipping fee.
-
#total_refunded_amount ⇒ Google::Apis::ContentV2_1::MonetaryAmount
Total amount already refunded by the merchant.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReturnPricingInfo
constructor
A new instance of ReturnPricingInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReturnPricingInfo
Returns a new instance of ReturnPricingInfo.
11750 11751 11752 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11750 def initialize(**args) update!(**args) end |
Instance Attribute Details
#charge_return_shipping_fee ⇒ Boolean Also known as: charge_return_shipping_fee?
Default option for whether merchant should charge the customer for return
shipping costs, based on customer selected return reason and merchant's return
policy for the items being returned.
Corresponds to the JSON property chargeReturnShippingFee
11722 11723 11724 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11722 def charge_return_shipping_fee @charge_return_shipping_fee end |
#max_return_shipping_fee ⇒ Google::Apis::ContentV2_1::MonetaryAmount
Maximum return shipping costs that may be charged to the customer depending on
merchant's assessment of the return reason and the merchant's return policy
for the items being returned.
Corresponds to the JSON property maxReturnShippingFee
11730 11731 11732 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11730 def max_return_shipping_fee @max_return_shipping_fee end |
#refundable_items_total_amount ⇒ Google::Apis::ContentV2_1::MonetaryAmount
Total amount that can be refunded for the items in this return. It represents
the total amount received by the merchant for the items, after applying
merchant coupons.
Corresponds to the JSON property refundableItemsTotalAmount
11737 11738 11739 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11737 def refundable_items_total_amount @refundable_items_total_amount end |
#refundable_shipping_amount ⇒ Google::Apis::ContentV2_1::MonetaryAmount
Maximum amount that can be refunded for the original shipping fee.
Corresponds to the JSON property refundableShippingAmount
11742 11743 11744 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11742 def refundable_shipping_amount @refundable_shipping_amount end |
#total_refunded_amount ⇒ Google::Apis::ContentV2_1::MonetaryAmount
Total amount already refunded by the merchant. It includes all types of
refunds (items, shipping, etc.) Not provided if no refund has been applied yet.
Corresponds to the JSON property totalRefundedAmount
11748 11749 11750 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11748 def total_refunded_amount @total_refunded_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11755 11756 11757 11758 11759 11760 11761 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11755 def update!(**args) @charge_return_shipping_fee = args[:charge_return_shipping_fee] if args.key?(:charge_return_shipping_fee) @max_return_shipping_fee = args[:max_return_shipping_fee] if args.key?(:max_return_shipping_fee) @refundable_items_total_amount = args[:refundable_items_total_amount] if args.key?(:refundable_items_total_amount) @refundable_shipping_amount = args[:refundable_shipping_amount] if args.key?(:refundable_shipping_amount) @total_refunded_amount = args[:total_refunded_amount] if args.key?(:total_refunded_amount) end |