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 

TypeDescription
StringProduct Id

global setProductId(String productId) 

Set productId for this pricing response item param productId Product Id

global getProductSellingModelId() 

Returns the ProductSellingModelId

Returns 

TypeDescription
StringProduct Selling Model Id

global setProductSellingModelId(String productSellingModelId) 

Sets ProductSellingModelId for this pricing response item

Parameters 

ParamDescription
productSellingModelIdProduct Selling Model Id

global getNegotiatedPricebookEntryId() 

Returns the PricebookEntryId related to negotiatedPrice of the product

Returns 

TypeDescription
StringPricebookEntryId

global setNegotiatedPricebookEntryId(String negotiatedPricebookEntryId) 

Set the PricebookEntryId for the negotiatedPrice of the product

Parameters 

ParamDescription
negotiatedPricebookEntryIdPricebookEntryId

global getListPrice() 

Returns the standard price the product

Returns 

TypeDescription
DecimalStandard price of the product

global setListPrice(Decimal listPrice) 

Set the listPrice of the product

Parameters 

ParamDescription
listPriceStandard price of the product

global getNegotiatedPrice() 

Returns the Negotiated/Reduced price the product

Returns 

TypeDescription
DecimalNegotiated 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 

TypeDescription
BooleanTrue 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 

TypeDescription
StringError message

global getLocalizedErrorMessage() 

Returns localized error message in case of errors fetching pricing information

Returns 

TypeDescription
StringLocalized error message

global getErrorCode() 

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

Returns 

TypeDescription
StringError code

global setError(String errorMessage, String localizedErrorMessage) 

Set error message and localized error message in case of errors while fetching pricing information

Parameters 

ParamDescription
errorMessageError message
localizedErrorMessageLocalized 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


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!