Constructs TransactionalPricingResponse using product information by delegating the call to internal java class
Methods
global getTotalListPrice()
Retrieves the header level list price which is the sum of list prices of all products. List price of a product is computed by multiplying list price and quantity.
Returns
Type
Description
Decimal
Total list price of all the products
global setTotalListPrice(Decimal totalListPrice)
Sets the header level list price
Parameters
Param
Description
totalListPrice
header level list price
global getTotalProductAmount()
Retrieves the header level product amount which is sum of all negotiated prices multiplied by quantity
Returns
Type
Description
Decimal
sum of all negotiated prices multiplied by quantity
global setTotalProductAmount(Decimal totalProductAmount)
Sets the header level product amount
Parameters
Param
Description
totalProductAmount
header level product amount
global getTotalAdjustmentAmount()
Retrieves the header level adjustment amount which is computed by multiplying product unit price, qty and adjustment value.
Returns
Type
Description
Decimal
sum of all negotiated prices multiplied by quantity and adjustment value
global setTotalAdjustmentAmount(Decimal totalAdjustmentAmount)
Sets the header level adjustment amount
Parameters
Param
Description
totalAdjustmentAmount
header level adjustment amount
global getTotalAmount()
Retrieves total price of the product with adjustment amount at header level
Returns
Type
Description
Decimal
Total price of the product with adjustment amount at header level
global setTotalAmount(Decimal totalAmount)
Sets total amount including adjustment amount at header level
Parameters
Param
Description
totalAmount
Total amount including adjustment amount
global isSuccess()
Returns true if there are no errors in fetching the prices
Returns
Type
Description
Boolean
True if there are no errors in fetching the prices, false otherwise
global getCurrencyIsoCode()
Returns currency ISO code
Returns
Type
Description
String
Currency ISO code
global setCurrencyIsoCode(String currencyIsoCode)
Sets currency ISO code for this Pricing Response
Parameters
Param
Description
currencyIsoCode
Currency ISO Code
global getErrorMessage()
Retrieves error message in case of errors when fetching the pricing information
Returns
Type
Description
String
Error message
global getLocalizedErrorMessage()
Retrieves localized error message in case of errors when fetching the pricing information
Returns
Type
Description
String
Localized error message
global getErrorCode()
Returns error code in case of errors when fetching the pricing information
Returns
Type
Description
String
Error code
global setError(String errorMessage, String localizedErrorMessage)