commercestorepricing.PricingResponse

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

Constructors 

global PricingResponse(String currencyIsoCode) 

Constructs PricingResponse by delegating the call to internal java class


Methods 

global isSuccess() 

Checks if there are no errors in fetching the pricing information

Returns 

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

global getCurrencyIsoCode() 

Returns currency ISO code

Returns 

TypeDescription
StringCurrency ISO code

global setCurrencyIsoCode(String currencyIsoCode) 

Set currency ISO code for this Pricing Response

Parameters 

ParamDescription
currencyIsoCodeCurrency ISO Code

global getErrorMessage() 

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

Returns 

TypeDescription
StringError message

global getLocalizedErrorMessage() 

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

Returns 

TypeDescription
StringLocalized error message

global getErrorCode() 

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

Returns 

TypeDescription
StringError code

global setError(String errorMessage, String localizedErrorMessage) 

Set error message and localized error message

Parameters 

ParamDescription
errorMessageError message
localizedErrorMessageLocalized error message

global getPricingResponseItems() 

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

Returns 

TypeDescription
PricingResponseItemCollectionlist of PricingResponseItems in the response

global removePricingResponseItem(PricingResponseItem pricingResponseItem) 

Removes an item from the list of response items by delegating the call to internal java class

Parameters 

ParamDescription
pricingResponseItemcommercestorepricing.PricingResponseItem to remove from the list of response items

global addPricingResponseItem(PricingResponseItem pricingResponseItem) 

Adds an item to list of response items by delegating the call to internal java class

Parameters 

ParamDescription
pricingResponseItemcommercestorepricing.PricingResponseItem to add to the list of response items

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!