commercestorepricing.TransactionalPricingResponse

Class that represents the output of the transactional pricing API callout.

Constructs TransactionalPricingResponse using product information by delegating the call to internal java class


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.

TypeDescription
DecimalTotal list price of all the products

Sets the header level list price

ParamDescription
totalListPriceheader level list price

Retrieves the header level product amount which is sum of all negotiated prices multiplied by quantity

TypeDescription
Decimalsum of all negotiated prices multiplied by quantity

Sets the header level product amount

ParamDescription
totalProductAmountheader level product amount

Retrieves the header level adjustment amount which is computed by multiplying product unit price, qty and adjustment value.

TypeDescription
Decimalsum of all negotiated prices multiplied by quantity and adjustment value

Sets the header level adjustment amount

ParamDescription
totalAdjustmentAmountheader level adjustment amount

Retrieves total price of the product with adjustment amount at header level

TypeDescription
DecimalTotal price of the product with adjustment amount at header level

Sets total amount including adjustment amount at header level

ParamDescription
totalAmountTotal amount including adjustment amount

Returns true if there are no errors in fetching the prices

TypeDescription
BooleanTrue if there are no errors in fetching the prices, false otherwise

Returns currency ISO code

TypeDescription
StringCurrency ISO code

Sets currency ISO code for this Pricing Response

ParamDescription
currencyIsoCodeCurrency ISO Code

Retrieves error message in case of errors when fetching the pricing information

TypeDescription
StringError message

Retrieves localized error message in case of errors when fetching the pricing information

TypeDescription
StringLocalized error message

Returns error code in case of errors when fetching the pricing information

TypeDescription
StringError code

Sets error message and localized error message

ParamDescription
errorMessageError message
localizedErrorMessageLocalized error message

Retrieves the list of commercestorepricing.TransactionalPricingResponseItem by delegating the call to internal java class

TypeDescription
TxnPricingResponseItemCollectionlist of TxnPricingResponseItems in the request

Removes a commercestorepricing.TransactionalPricingResponseItem from the list by delegating the call to internal java class

ParamDescription
txnPricingResponseItemcommercestorepricing.TransactionalPricingResponseItem to remove from the list

Adds a commercestorepricing.TransactionalPricingResponseItem from the list by delegating the call to internal java class

ParamDescription
txnPricingResponseItemcommercestorepricing.TransactionalPricingResponseItem to add to the list