public class FetchOrderInstallmentPriceCmdImpl extends AbstractFetchNounCmdImpl implements FetchOrderInstallmentPriceCmd
Constructor and Description |
---|
FetchOrderInstallmentPriceCmdImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected com.ibm.commerce.installment.facade.datatypes.OrderInstallmentPriceType | buildNoun(java.lang.Long anOrderId, java.lang.String astrPaymentMethodName, java.math.BigDecimal abdNonInstallmentPrice)
This method builds the logical noun.
|
protected int | compare(MonetaryAmountType aMonetaryAmount1, MonetaryAmountType aMonetaryAmount2)
This method is used to compare the two MonetaryAmountType values.
|
protected com.ibm.commerce.installment.facade.datatypes.CatalogEntryInstallmentPriceType | findCatalogEntryInstallmentPrice(java.lang.Long anCatalogEntryId, java.lang.String astrPaymentMethodName)
This method is used to fetch the CatalogEntryInstallmentPrice logical noun.
|
protected com.ibm.commerce.installment.facade.datatypes.InstallmentOptionType[] | findInstallmentOptions(java.lang.Long anOrderId, java.lang.String astrPaymentMethodName)
This method is used to fetch the InstallmentOption logical noun part of the root OrderInstallmentPrice logical noun.When there is more than one order item in that order, the method uses the following rules to adjust the InstallmentOption.
|
protected CommerceFoundationFactory | getCommerceFoundationFactory()
Returns a CommerceFoundationFactory instance.
|
protected java.lang.String | getCurrency() |
protected java.math.BigDecimal | getDominantCatalogEntryMinimumProductTotalRatio() |
protected com.ibm.commerce.installment.facade.datatypes.InstallmentFactory | getInstallmentFactory()
Returns an InstallmentFactory instance.
|
protected MonetaryAmountType | getMinimumInstallmentAmount() |
protected java.math.BigDecimal[] | getNonInstallmentPrices() |
java.util.List | getNouns()
This method returns the list of nouns retrieved by the fetch implementation.
|
protected java.lang.Long[] | getOrderIds() |
protected java.lang.String[] | getPaymentMethodNames() |
protected StoreAccessBean | getStore() |
protected java.lang.Integer | getStoreId() |
protected java.lang.String | getXPathParameterValue(SearchExpression aSearchExpression, java.lang.String astrName)
This method is used to extract the XPath parameter from the SearchExpression.
|
void | performExecute() |
void | reset()
This method resets the instance variables so the command can be reused.
|
protected void | resolveParameters()
This method is used to resolve the parameters which are required for building the OrderInstallmentPrice logical noun.
|
protected void | setCurrency(java.lang.String astrCurrency) |
protected void | setDominantCatalogEntryMinimumProductTotalRatio(java.math.BigDecimal adDominantCatalogEntryMinimumProductTotalRatio) |
protected void | setMinimumInstallmentAmount(MonetaryAmountType aMinimumInstallmentAmount) |
protected void | setNonInstallmentPrices(java.math.BigDecimal[] abdNonInstallmentPrices) |
void | setNouns(java.util.List alistNouns) |
protected void | setOrderIds(java.lang.Long[] anOrderIds) |
protected void | setPaymentMethodNames(java.lang.String[] astrPaymentMethodNames) |
protected void | setStore(StoreAccessBean aabStore) |
protected void | setStoreId(java.lang.Integer anStoreId) |
public FetchOrderInstallmentPriceCmdImpl()
protected java.lang.Integer getStoreId()
protected void setStoreId(java.lang.Integer anStoreId)
protected java.lang.String getCurrency()
protected void setCurrency(java.lang.String astrCurrency)
protected StoreAccessBean getStore()
protected void setStore(StoreAccessBean aabStore)
protected java.lang.Long[] getOrderIds()
protected void setOrderIds(java.lang.Long[] anOrderIds)
protected java.lang.String[] getPaymentMethodNames()
protected void setPaymentMethodNames(java.lang.String[] astrPaymentMethodNames)
protected java.math.BigDecimal[] getNonInstallmentPrices()
protected void setNonInstallmentPrices(java.math.BigDecimal[] abdNonInstallmentPrices)
protected java.math.BigDecimal getDominantCatalogEntryMinimumProductTotalRatio()
protected void setDominantCatalogEntryMinimumProductTotalRatio(java.math.BigDecimal adDominantCatalogEntryMinimumProductTotalRatio)
protected MonetaryAmountType getMinimumInstallmentAmount()
protected void setMinimumInstallmentAmount(MonetaryAmountType aMinimumInstallmentAmount)
public java.util.List getNouns()
public void setNouns(java.util.List alistNouns)
public void reset()
public void performExecute() throws java.lang.Exception
protected void resolveParameters() throws java.lang.Exception
protected java.lang.String getXPathParameterValue(SearchExpression aSearchExpression, java.lang.String astrName) throws java.lang.Exception
protected com.ibm.commerce.installment.facade.datatypes.OrderInstallmentPriceType buildNoun(java.lang.Long anOrderId, java.lang.String astrPaymentMethodName, java.math.BigDecimal abdNonInstallmentPrice) throws java.lang.Exception
protected CommerceFoundationFactory getCommerceFoundationFactory()
protected com.ibm.commerce.installment.facade.datatypes.InstallmentFactory getInstallmentFactory()
protected com.ibm.commerce.installment.facade.datatypes.InstallmentOptionType[] findInstallmentOptions(java.lang.Long anOrderId, java.lang.String astrPaymentMethodName) throws java.lang.Exception
If one CatalogEntry in the order is a dominant item based on price, the InstallmentOptions of the dominant CatalogEntry are used as the InstallmentOptions for the entire order.
If there is no dominant item, the InstallmentOptions are compared among all OrderItems. For each installment number, such as 3 installments, it will choose the installment option with the highest interest rate and the highest minimum installment amount among all the OrderItems in the order.
protected com.ibm.commerce.installment.facade.datatypes.CatalogEntryInstallmentPriceType findCatalogEntryInstallmentPrice(java.lang.Long anCatalogEntryId, java.lang.String astrPaymentMethodName) throws java.lang.Exception
protected int compare(MonetaryAmountType aMonetaryAmount1, MonetaryAmountType aMonetaryAmount2) throws java.lang.Exception