Constructor and Description |
---|
RefundAmountRec(Money principal,
Money tax,
Money shippingCost,
Money shippingTax)
Create a new refundAmountRec instance.
|
Modifier and Type | Method and Description |
---|---|
static RefundAmountRec |
fromItemPriceRec(ItemPriceRec price) |
static RefundAmountRec |
fromJson(javax.json.JsonObject json)
Turn jet json into an RefundAmountRec instance
|
Money |
getPrincipal()
Amount to be refunded for the given item in USD associated
with the item itself.
|
Money |
getShippingCost()
Amount to be refunded for the given item in USD
associated with the shipping cost that was allocated to this item.
|
Money |
getShippingTax()
Amount to be refunded for the given item in USD
associated with the tax that was charged on shipping
|
Money |
getTax()
Amount to be refunded for the given item in USD associated with
tax that was charged for the item.
|
javax.json.JsonObject |
toJSON()
Turn this into jet json
|
public RefundAmountRec(Money principal, Money tax, Money shippingCost, Money shippingTax)
principal
- Amount to be refunded for the given item in USD associated
with the item itself. This should be the total cost for this item not
the unit costtax
- Amount to be refunded for the given item in USD associated with
tax that was charged for the item.shippingCost
- Amount to be refunded for the given item in USD
associated with the shipping cost that was allocated to this item.shippingTax
- Amount to be refunded for the given item in USD
associated with the tax that was charged on shippingpublic static RefundAmountRec fromJson(javax.json.JsonObject json)
json
- jsonpublic static RefundAmountRec fromItemPriceRec(ItemPriceRec price)
public Money getPrincipal()
public Money getTax()
public Money getShippingCost()
public Money getShippingTax()
Copyright © 2017. All rights reserved.