Oracle ATG Pricing performPricingOperation method

Oracle ATG Pricing performPricingOperation method

performPricingOperation(String pPricingOperation, Order pOrder,
PricingModelHolder pPricingModels, Locale pLocale, RepositoryItem pProfile,
Map pExtraParameters) throws PricingException {
..
}

Oracle ATG Pricing performPricingOperation method

Based on the pricing operation constant that is passed to the this method, will determine the type of pricing operation to be performed as part of this call.

Pricing operations that can be passed are:

  1. ORDER_TOTAL,
  2. ORDER_SUBTOTAL,
  3. ORDER_SUBTOTAL_SHIPPING,
  4. ORDER_SUBTOTAL_TAX,
  5. ITEMS,
  6. SHIPPING,
  7. ORDER,
  8. TAX,
  9. NO_REPRICE

All these are defined in the PricingConstants(atg.commerce.pricing) as

  1. PricingConstants.OP_REPRICE_ORDER_TOTAL,
  2. PricingConstants.OP_REPRICE_ORDER_TOTAL,
  3. PricingConstants.OP_REPRICE_ORDER_SUBTOTAL,
  4. PricingConstants.OP_REPRICE_ORDER_SUBTOTAL_SHIPPING,
  5. PricingConstants.OP_REPRICE_ORDER_SUBTOTAL_TAX,
  6. PricingConstants.OP_REPRICE_ITEMS,
  7. PricingConstants.OP_REPRICE_SHIPPING,
  8. PricingConstants.OP_REPRICE_ORDER,
  9. PricingConstants.OP_REPRICE_TAX,
  10. PricingConstants.OP_NO_REPRICE

If the value passed is null, the ORDER_TOTAL is considered to be the default one.

Parameter passed for this performPricingOperation

  • pPricingOperation -
  • pOrder
  • pPricingModels
  • pLocale
  • pProfile
  • pExtraParameters

1,946 total views, 1 views today

Add comment