public class OfferRec extends Object
Constructor and Description |
---|
OfferRec(String shippingMethod,
Money itemPrice,
Money shippingPrice,
String lastUpdate)
Create a new OfferRec instance
|
Modifier and Type | Method and Description |
---|---|
static OfferRec |
fromJSON(javax.json.JsonObject json)
Create a new OfferRec instance from Jet Json.
|
Money |
getItemPrice()
The item price for one unit of the SKU based on your best retail price
(item and shipping price)
|
String |
getLastUpdate()
The last time these prices were updated.
|
String |
getShippingMethod()
The shipping method specified for your best price.
|
Money |
getShippingPrice()
The shipping price for one unit of the SKU based on your best retail price
(item and shipping price)
|
public OfferRec(String shippingMethod, Money itemPrice, Money shippingPrice, String lastUpdate) throws ParseException
shippingMethod
- nullitemPrice
- item priceshippingPrice
- ship pricelastUpdate
- last updateParseException
- if the date fails to formatpublic static OfferRec fromJSON(javax.json.JsonObject json) throws ParseException
json
- JsonParseException
- if the date cant be turned into a date objectpublic String getShippingMethod()
public Money getItemPrice()
public Money getShippingPrice()
public String getLastUpdate()
Copyright © 2017. All rights reserved.