commercestorepricing.TransactionalPricingResponse

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

Constructors 

global TransactionalPricingResponse(Decimal totalListPrice, Decimal totalProductAmount, Decimal totalAdjustmentAmount, Decimal totalAmount, String currencyIsoCode) 

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 

TypeDescription
DecimalTotal list price of all the products

global setTotalListPrice(Decimal totalListPrice) 

Sets the header level list price

Parameters 

ParamDescription
totalListPriceheader level list price

global getTotalProductAmount() 

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

Returns 

TypeDescription
Decimalsum of all negotiated prices multiplied by quantity

global setTotalProductAmount(Decimal totalProductAmount) 

Sets the header level product amount

Parameters 

ParamDescription
totalProductAmountheader level product amount

global getTotalAdjustmentAmount() 

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

Returns 

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

global setTotalAdjustmentAmount(Decimal totalAdjustmentAmount) 

Sets the header level adjustment amount

Parameters 

ParamDescription
totalAdjustmentAmountheader level adjustment amount

global getTotalAmount() 

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

Returns 

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

global setTotalAmount(Decimal totalAmount) 

Sets total amount including adjustment amount at header level

Parameters 

ParamDescription
totalAmountTotal amount including adjustment amount

global isSuccess() 

Returns true if there are no errors in fetching the prices

Returns 

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

global getCurrencyIsoCode() 

Returns currency ISO code

Returns 

TypeDescription
StringCurrency ISO code

global setCurrencyIsoCode(String currencyIsoCode) 

Sets currency ISO code for this Pricing Response

Parameters 

ParamDescription
currencyIsoCodeCurrency ISO Code

global getErrorMessage() 

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

Returns 

TypeDescription
StringError message

global getLocalizedErrorMessage() 

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

Returns 

TypeDescription
StringLocalized error message

global getErrorCode() 

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

Returns 

TypeDescription
StringError code

global setError(String errorMessage, String localizedErrorMessage) 

Sets error message and localized error message

Parameters 

ParamDescription
errorMessageError message
localizedErrorMessageLocalized error message

global getTxnPricingResponseItems() 

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

Returns 

TypeDescription
TxnPricingResponseItemCollectionlist of TxnPricingResponseItems in the request

global removeTxnPricingResponseItem(TransactionalPricingResponseItem txnPricingResponseItem) 

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

Parameters 

ParamDescription
txnPricingResponseItemcommercestorepricing.TransactionalPricingResponseItem to remove from the list

global addTxnPricingResponseItem(TransactionalPricingResponseItem txnPricingResponseItem) 

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

Parameters 

ParamDescription
txnPricingResponseItemcommercestorepricing.TransactionalPricingResponseItem to add to the list

Developer Preview

This release is in preview. Features described in this document don't become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can't guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!