public class ChangePaymentCurrencyTaskCmdImpl extends AEDPPaymentTaskCmdImpl implements ChangePaymentCurrencyTaskCmd
commandContext | The command context. |
orderId | A Long that specifies current order id.. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM Copyright notice field.
|
Constructor and Description |
---|
ChangePaymentCurrencyTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
CurrencyManager | getCurrencyManager()
This method returns the instance of CurrencyManager, which is a singleton object and used to calculate the amount between different currency.
|
MonetaryAmount | getMonetaryAmount()
This method returns the current monetary amount object, which contains the value and the currency.
|
java.lang.String | getOrderNewCurrency()
This method returns the new currency of the order.
|
java.math.BigDecimal | getOrderTotalAmount()
This method returns the total amount of current order, since here the currency has been changed, the total amount is based on the new currency.
|
protected java.math.BigDecimal | getTotalAmount(java.lang.Long localOrderId)
This method returns the total payment amount of the order based on new currency.
|
boolean | ifAtomicPaymentsExist(java.lang.Long piId)
This method judges if any atomic payments of a payment instruction exists.
|
boolean | isBgJobInWorking()
This method returns the current pending status of the order.
|
void | performExecute()
This method executes the business logic of this command implementation.
|
void | reset()
This method resets the command fields.
|
void | setBgJobStatusInDb(java.lang.Integer bgJobStatus)
This method sets the BG status on the current EDPOrder .
|
void | setMonetaryAmount(MonetaryAmount aMonetaryAmount)
This method sets the current monetary amount object, which contains the value and the currency.
|
void | setOrderNewCurrency(java.lang.String newCurrency)
This method sets the new currency to the Order.
|
void | setOrderTotalAmount(java.math.BigDecimal newAmount)
This method sets the total amount of current order, since here the currency has been changed, the total amount is based on the new currency.
|
void | validateParameters()
This method extracts and validates the input parameters of this command implementation.
|
public static final java.lang.String COPYRIGHT
public void setMonetaryAmount(MonetaryAmount aMonetaryAmount)
public MonetaryAmount getMonetaryAmount()
public CurrencyManager getCurrencyManager() throws ECSystemException
public void setOrderTotalAmount(java.math.BigDecimal newAmount)
public java.math.BigDecimal getOrderTotalAmount()
public java.lang.String getOrderNewCurrency()
public void setOrderNewCurrency(java.lang.String newCurrency)
protected java.math.BigDecimal getTotalAmount(java.lang.Long localOrderId) throws ECException
public void performExecute() throws ECException
public boolean isBgJobInWorking() throws InternalException, J2EEException, InputException
public boolean ifAtomicPaymentsExist(java.lang.Long piId) throws J2EEException, InputException
public void setBgJobStatusInDb(java.lang.Integer bgJobStatus) throws J2EEException, InputException
public void validateParameters() throws ECException
public void reset()