commercestorepricing.TransactionalPricingResponseItem

Represents an item with in the TransactionalPricingResponse containing product pricing information

Constructors 

global TransactionalPricingResponseItem(String lineId, String productId, String unitPricePriceBookEntryId, Decimal listPrice, Decimal unitPrice, Decimal totalListPrice, Decimal totalLineAmount, Decimal totalAdjustmentAmount, Decimal unitAdjustmentAmount, Decimal totalPrice, Decimal quantity, String currencyIsoCode) 

Constructs a PricingResponseItem with product pricing information by delegating call to internal java class

global TransactionalPricingResponseItem(String lineId, String productId, String productSellingModelId, String prorationPolicyId, Integer subscriptionTerm, Datetime startDate, Datetime endDate, String unitPricePriceBookEntryId, Decimal listPrice, Decimal unitPrice, Decimal totalListPrice, Decimal totalLineAmount, Decimal totalAdjustmentAmount, Decimal unitAdjustmentAmount, Decimal totalPrice, Decimal quantity, String billingFrequency, String currencyIsoCode) 

Constructs TransactionalPricingResponse using product information by delegating the call to internal java class

Throws 

ExceptionDescription
NoAccessExceptionIf org does not have commerce subscription plus enabled

Methods 

global getLineId() 

Returns the product line id

Returns 

TypeDescription
StringProduct Line Id

global setLineId(String lineId) 

Sets the product line id for the response item

Parameters 

ParamDescription
lineIdProduct Line Id

global getProductId() 

Returns the productId

Returns 

TypeDescription
StringProduct Id

global setProductId(String productId) 

Set productId for the response item param productId Product Id

global getProductSellingModelId() 

Returns the ProductSellingModelId

Returns 

TypeDescription
StringProduct Selling Model Id

Throws 

ExceptionDescription
NoAccessExceptionIf the organization does not have Commerce Subscription Plus enabled.

global setProductSellingModelId(String productSellingModelId) 

Sets ProductSellingModelId for this pricing response item

Parameters 

ParamDescription
productSellingModelIdProduct Selling Model Id

global getProrationPolicyId() 

Retrieves the ProrationPolicyId

Returns 

TypeDescription
StringProrationPolicyId

Throws 

ExceptionDescription
NoAccessExceptionIf the organization does not have Commerce Subscription Plus enabled.

global setProrationPolicyId(String prorationPolicyId) 

Sets ProrationPolicyId for this pricing response item

Parameters 

ParamDescription
prorationPolicyIdProrationPolicyId

Throws 

ExceptionDescription
NoAccessExceptionIf the organization does not have Commerce Subscription Plus enabled.

global getSubscriptionTerm() 

Retrieves subscription term of the product

Returns 

TypeDescription
IntegerSubscription term

global setSubscriptionTerm(Integer subscriptionTerm) 

Sets Subscription term

Parameters 

ParamDescription
subscriptionTermSubscription term of the product

Throws 

ExceptionDescription
NoAccessExceptionIf the organization does not have Commerce Subscription Plus enabled.

global getStartDate() 

Retrieves the start date of the subscription.

Returns 

TypeDescription
DatetimeThe start date of the subscription.

Throws 

ExceptionDescription
NoAccessExceptionIf the commerce subscription plus feature is not enabled for the organization.

global setStartDate(Datetime startDate) 

Sets the start date of the subscription.

Parameters 

ParamDescription
startDateThe start date of the subscription.

Throws 

ExceptionDescription
NoAccessExceptionIf the commerce subscription plus feature is not enabled for the organization.

global getEndDate() 

Retrieves the end date of the subscription.

Returns 

TypeDescription
DatetimeThe end date of the subscription.

Throws 

ExceptionDescription
NoAccessExceptionIf the commerce subscription plus feature is not enabled for the organization.

global setEndDate(Datetime endDate) 

Sets the end date of the subscription.

Parameters 

ParamDescription
endDateThe end date of the subscription.

Throws 

ExceptionDescription
NoAccessExceptionIf the commerce subscription plus feature is not enabled for the organization.

global getUnitPricePriceBookEntryId() 

Retrieves the Id of PricebookEntry associated to unit price of the product

Returns 

TypeDescription
StringPricebookEntry Id

global setUnitPricePriceBookEntryId(String unitPricePriceBookEntryId) 

Sets the Id of PricebookEntry associated to unit price of the product

Parameters 

ParamDescription
unitPricePriceBookEntryIdPricebookEntry Id

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 getUnitPrice() 

Returns the Unit price the product

Returns 

TypeDescription
DecimalUnit Price of the product

global setUnitPrice(Decimal unitPrice) 

Sets the Unit price the product

Parameters 

ParamDescription
unitPriceUnit Price of the product

global getTotalListPrice() 

Returns the list price of the item

Returns 

TypeDescription
DecimalList price

global setTotalListPrice(Decimal totalListPrice) 

Sets the list price of the item

Parameters 

ParamDescription
totalListPriceList price

global getTotalLineAmount() 

Returns total amount including adjustment amount

Returns 

TypeDescription
DecimalTotal amount including adjustment amount

global setTotalLineAmount(Decimal totalLineAmount) 

Sets total line amount

Parameters 

ParamDescription
totalLineAmountTotal amount including adjustment amount

global getTotalAdjustmentAmount() 

Returns total adjustment amount for the line item

Returns 

TypeDescription
DecimalTotal adjustment amount

global setTotalAdjustmentAmount(Decimal totalAdjustmentAmount) 

Sets total adjustment amount for the line item

Parameters 

ParamDescription
totalAdjustmentAmountTotal adjustment amount

global getUnitAdjustmentAmount() 

Returns Per unit adjustment amount which is the adjustment amount divided by qty rounded by currency

Returns 

TypeDescription
DecimalPer unit adjustment amount

global setUnitAdjustmentAmount(Decimal unitAdjustmentAmount) 

Sets Per unit adjustment amount which is the adjustment amount divided by qty rounded by currency

Parameters 

ParamDescription
unitAdjustmentAmountPer unit adjustment amount

global getTotalPrice() 

Returns price of the line item multiplied with qty rounded by currency

Returns 

TypeDescription
DecimalTotal Price of the line item

global setTotalPrice(Decimal totalPrice) 

Sets price of the line item multiplied with qty rounded by currency

Parameters 

ParamDescription
totalPriceTotal Price of the line item

global getQuantity() 

Returns quantity of the line item

Returns 

TypeDescription
DecimalQuantity of the line item

global setQuantity(Decimal quantity) 

Sets quantity of the line item

Parameters 

ParamDescription
quantityQuantity of the line item

global getBillingFrequency() 

Returns Billing frequency

Returns 

TypeDescription
StringBilling frequency

global setBillingFrequency(String billingFrequency) 

Sets Billing frequency

Parameters 

ParamDescription
billingFrequencyBilling frequency

global getCurrencyIsoCode() 

Returns Currency ISO Code of the line item

Returns 

TypeDescription
StringCurrency ISO Code

global setCurrencyIsoCode(String currencyIsoCode) 

Sets Currency ISO Code

Parameters 

ParamDescription
currencyIsoCodeCurrency ISO Code

global isSuccess() 

Returns true if there are no errors in fetching the prices

Returns 

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

global getErrorMessage() 

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

Returns 

TypeDescription
StringError message

global getLocalizedErrorMessage() 

Retrieves localized error message in case of errors when fetching the 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

Parameters 

ParamDescription
errorMessageError message
localizedErrorMessageLocalized error message

global equals(Object obj) 

Compares the argument with the underlying TransactionalPricingResponseItem object and returns true if they are equal

global hashCode() 

Returns hash code for TransactionalPricingResponseItem 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!