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
| Type | Description |
|---|
| Boolean | True if there are no errors in fetching the pricing information, false otherwise |
global getCurrencyIsoCode()
Returns currency ISO code
Returns
| Type | Description |
|---|
| String | Currency ISO code |
global setCurrencyIsoCode(String currencyIsoCode)
Set currency ISO code for this Pricing Response
Parameters
| Param | Description |
|---|
currencyIsoCode | Currency ISO Code |
global getErrorMessage()
Retrieves error message in case of errors in fetching the pricing information
Returns
| Type | Description |
|---|
| String | Error message |
global getLocalizedErrorMessage()
Retrieves localized error message in case of errors in fetching the pricing information
Returns
| Type | Description |
|---|
| String | Localized error message |
global getErrorCode()
Returns error code in case of errors while fetching the pricing information
Returns
| Type | Description |
|---|
| String | Error code |
global setError(String errorMessage, String localizedErrorMessage)
Set error message and localized error message
Parameters
| Param | Description |
|---|
errorMessage | Error message |
localizedErrorMessage | Localized error message |
global getPricingResponseItems()
Retrieves the list of commercestorepricing.PricingResponseItem by delegating the call to internal java class
Returns
| Type | Description |
|---|
| PricingResponseItemCollection | list 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
global addPricingResponseItem(PricingResponseItem pricingResponseItem)
Adds an item to list of response items by delegating the call to internal java class
Parameters