Class: Google::Apis::ContentV2_1::ReturnPricingInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReturnPricingInfo

Returns a new instance of ReturnPricingInfo.



10072
10073
10074
# File 'generated/google/apis/content_v2_1/classes.rb', line 10072

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#charge_return_shipping_feeBoolean 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

Returns:

  • (Boolean)


10044
10045
10046
# File 'generated/google/apis/content_v2_1/classes.rb', line 10044

def charge_return_shipping_fee
  @charge_return_shipping_fee
end

#max_return_shipping_feeGoogle::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



10052
10053
10054
# File 'generated/google/apis/content_v2_1/classes.rb', line 10052

def max_return_shipping_fee
  @max_return_shipping_fee
end

#refundable_items_total_amountGoogle::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



10059
10060
10061
# File 'generated/google/apis/content_v2_1/classes.rb', line 10059

def refundable_items_total_amount
  @refundable_items_total_amount
end

#refundable_shipping_amountGoogle::Apis::ContentV2_1::MonetaryAmount

Maximum amount that can be refunded for the original shipping fee. Corresponds to the JSON property refundableShippingAmount



10064
10065
10066
# File 'generated/google/apis/content_v2_1/classes.rb', line 10064

def refundable_shipping_amount
  @refundable_shipping_amount
end

#total_refunded_amountGoogle::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



10070
10071
10072
# File 'generated/google/apis/content_v2_1/classes.rb', line 10070

def total_refunded_amount
  @total_refunded_amount
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10077
10078
10079
10080
10081
10082
10083
# File 'generated/google/apis/content_v2_1/classes.rb', line 10077

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