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

Newer Version Available

This content describes an older version of this product. View Latest

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