commercestorepricing.PricingResponseItem
Represents an item with in the PricingResponse containing product pricing information
Constructors
global PricingResponseItem(String productId, String productSellingModelId, String negotiatedPricebookEntryId, Decimal listPrice, Decimal negotiatedPrice)
Constructs a PricingResponseItem with product pricing information by delegating call to internal java class
Methods
global getProductId()
Returns the productId
Returns
| Type | Description |
|---|
| String | Product Id |
global setProductId(String productId)
Set productId for this pricing response item param productId Product Id
global getProductSellingModelId()
Returns the ProductSellingModelId
Returns
| Type | Description |
|---|
| String | Product Selling Model Id |
global setProductSellingModelId(String productSellingModelId)
Sets ProductSellingModelId for this pricing response item
Parameters
| Param | Description |
|---|
productSellingModelId | Product Selling Model Id |
global getNegotiatedPricebookEntryId()
Returns the PricebookEntryId related to negotiatedPrice of the product
Returns
| Type | Description |
|---|
| String | PricebookEntryId |
global setNegotiatedPricebookEntryId(String negotiatedPricebookEntryId)
Set the PricebookEntryId for the negotiatedPrice of the product
Parameters
| Param | Description |
|---|
negotiatedPricebookEntryId | PricebookEntryId |
global getListPrice()
Returns the standard price the product
Returns
| Type | Description |
|---|
| Decimal | Standard price of the product |
global setListPrice(Decimal listPrice)
Set the listPrice of the product
Parameters
| Param | Description |
|---|
listPrice | Standard price of the product |
global getNegotiatedPrice()
Returns the Negotiated/Reduced price the product
Returns
| Type | Description |
|---|
| Decimal | Negotiated Price of the product |
global setNegotiatedPrice(Decimal negotiatedPrice)
Set the Negotiated/Reduced price the product
Para negotiatedPrice Negotiated Price of the product
global isSuccess()
Returns true if there are no errors in fetching pricing information
Returns
| Type | Description |
|---|
| Boolean | True if there are no errors in fetching pricing information, false otherwise |
global getErrorMessage()
Returns error message in case of errors while fetching pricing information
Returns
| Type | Description |
|---|
| String | Error message |
global getLocalizedErrorMessage()
Returns localized error message in case of errors fetching pricing information
Returns
| Type | Description |
|---|
| String | Localized error message |
global getErrorCode()
Returns error code in case of errors in fetching the pricing information
Returns
| Type | Description |
|---|
| String | Error code |
global setError(String errorMessage, String localizedErrorMessage)
Set error message and localized error message in case of errors while fetching pricing information
Parameters
| Param | Description |
|---|
errorMessage | Error message |
localizedErrorMessage | Localized error message |
global equals(Object obj)
Compares the argument with the underlying PricingRequestItem object and returns true if they are equal
Parm obj PricingResponseItem object
global hashCode()
Returns hashCode for this PricingResponseItem object