I
- as OrderItem
type@Entity public class ConvertedCurrencyOrder<I extends OrderItem> extends Order<I>
Order
that supports calculated Amount
s in another currency to support that the currency being used to show to the customer
may not be the final billed currency.
BaseOrderItem.getAmount()
is the base currency or the final one.Modifier and Type | Field and Description |
---|---|
protected String |
fromAmountDetailsJSON
The From amount details recorded in JSON format.
|
protected String |
fromCurrency
The currency from which the currency amount was derived.
|
protected Double |
rate
Rate of conversion applied to the
fromCurrency to derive the BaseOrderItem.getAmount() .currency. |
created, id, paymentMethod, purchaseDate, realized, statusDate, type, user
amount, finalWeight, lastStatusReason, packagingAmount, paymentContext, promotionNames, quantity, shippingAmount, status, updated
Constructor and Description |
---|
ConvertedCurrencyOrder() |
Modifier and Type | Method and Description |
---|---|
String |
getFromAmountDetailsJSON()
The From amount details recorded in JSON format.
|
String |
getFromCurrency()
The currency from which the currency amount was derived.
|
Double |
getRate()
Rate of conversion applied to the
fromCurrency to derive the BaseOrderItem.getAmount() .currency. |
void |
setFromAmountDetailsJSON(String fromAmountDetailsJSON)
The From amount details recorded in JSON format.
|
void |
setFromCurrency(String fromCurrency)
The currency from which the currency amount was derived.
|
void |
setRate(Double rate)
Rate of conversion applied to the
fromCurrency to derive the BaseOrderItem.getAmount() .currency. |
String |
toString() |
addItem, addTransaction, equals, getActors, getBitmask, getCreated, getDeliveryDetails, getFlowStatus, getId, getInvoiceId, getItems, getLastInvoiceDate, getParams, getPaymentMethod, getPurchaseDate, getRealized, getStatusDate, getSteps, getStrategiesVersion, getTransaction, getTransactionIds, getType, getUser, getUserContactDetails, hashCode, setActors, setBitmask, setCreated, setDeliveryDetails, setId, setInvoiceId, setItems, setLastInvoiceDate, setParams, setPaymentMethod, setPurchaseDate, setRealized, setStatus, setStatusDate, setSteps, setStrategiesVersion, setTransaction, setTransactionIds, setType, setUser, setUserContactDetails, synchStatusWithItems
getAmount, getComments, getFinalWeight, getLastStatusReason, getPackagingAmount, getPaymentContext, getPromotionNames, getQuantity, getShippingAmount, getStatus, getUpdated, setAmount, setComments, setFinalWeight, setLastStatusReason, setPackagingAmount, setPaymentContext, setPromotionNames, setQuantity, setShippingAmount, setUpdated
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUpdated
protected Double rate
fromCurrency
to derive the BaseOrderItem.getAmount()
.currency.
protected String fromCurrency
protected String fromAmountDetailsJSON
public Double getRate()
fromCurrency
to derive the BaseOrderItem.getAmount()
.currency.
public void setRate(Double rate)
fromCurrency
to derive the BaseOrderItem.getAmount()
.currency.
public String getFromCurrency()
public void setFromCurrency(String fromCurrency)
public String getFromAmountDetailsJSON()
public void setFromAmountDetailsJSON(String fromAmountDetailsJSON)
Copyright © 2018. All rights reserved.