commercestorepricing.TransactionalPricingResponseItem
Represents an item with in the TransactionalPricingResponse containing product pricing information
Constructs a PricingResponseItem with product pricing information by delegating call to internal java class
Constructs TransactionalPricingResponse using product information by delegating the call to internal java class
Exception | Description |
---|
NoAccessException | If org does not have commerce subscription plus enabled |
Returns the product line id
Type | Description |
---|
String | Product Line Id |
Sets the product line id for the response item
Param | Description |
---|
lineId | Product Line Id |
Returns the productId
Type | Description |
---|
String | Product Id |
Set productId for the response item param productId Product Id
Returns the ProductSellingModelId
Type | Description |
---|
String | Product Selling Model Id |
Exception | Description |
---|
NoAccessException | If the organization does not have Commerce Subscription Plus enabled. |
Sets ProductSellingModelId for this pricing response item
Param | Description |
---|
productSellingModelId | Product Selling Model Id |
Retrieves the ProrationPolicyId
Type | Description |
---|
String | ProrationPolicyId |
Exception | Description |
---|
NoAccessException | If the organization does not have Commerce Subscription Plus enabled. |
Sets ProrationPolicyId for this pricing response item
Param | Description |
---|
prorationPolicyId | ProrationPolicyId |
Exception | Description |
---|
NoAccessException | If the organization does not have Commerce Subscription Plus enabled. |
Retrieves subscription term of the product
Type | Description |
---|
Integer | Subscription term |
Sets Subscription term
Param | Description |
---|
subscriptionTerm | Subscription term of the product |
Exception | Description |
---|
NoAccessException | If the organization does not have Commerce Subscription Plus enabled. |
Retrieves the start date of the subscription.
Type | Description |
---|
Datetime | The start date of the subscription. |
Exception | Description |
---|
NoAccessException | If the commerce subscription plus feature is not enabled for the organization. |
Sets the start date of the subscription.
Param | Description |
---|
startDate | The start date of the subscription. |
Exception | Description |
---|
NoAccessException | If the commerce subscription plus feature is not enabled for the organization. |
Retrieves the end date of the subscription.
Type | Description |
---|
Datetime | The end date of the subscription. |
Exception | Description |
---|
NoAccessException | If the commerce subscription plus feature is not enabled for the organization. |
Sets the end date of the subscription.
Param | Description |
---|
endDate | The end date of the subscription. |
Exception | Description |
---|
NoAccessException | If the commerce subscription plus feature is not enabled for the organization. |
Retrieves the Id of PricebookEntry associated to unit price of the product
Type | Description |
---|
String | PricebookEntry Id |
Sets the Id of PricebookEntry associated to unit price of the product
Param | Description |
---|
unitPricePriceBookEntryId | PricebookEntry Id |
Returns the standard price the product
Type | Description |
---|
Decimal | Standard price of the product |
Set the listPrice of the product
Param | Description |
---|
listPrice | Standard price of the product |
Returns the Unit price the product
Type | Description |
---|
Decimal | Unit Price of the product |
Sets the Unit price the product
Param | Description |
---|
unitPrice | Unit Price of the product |
Returns the list price of the item
Type | Description |
---|
Decimal | List price |
Sets the list price of the item
Param | Description |
---|
totalListPrice | List price |
Returns total amount including adjustment amount
Type | Description |
---|
Decimal | Total amount including adjustment amount |
Sets total line amount
Param | Description |
---|
totalLineAmount | Total amount including adjustment amount |
Returns total adjustment amount for the line item
Type | Description |
---|
Decimal | Total adjustment amount |
Sets total adjustment amount for the line item
Param | Description |
---|
totalAdjustmentAmount | Total adjustment amount |
Returns Per unit adjustment amount which is the adjustment amount divided by qty rounded by currency
Type | Description |
---|
Decimal | Per unit adjustment amount |
Sets Per unit adjustment amount which is the adjustment amount divided by qty rounded by currency
Param | Description |
---|
unitAdjustmentAmount | Per unit adjustment amount |
Returns price of the line item multiplied with qty rounded by currency
Type | Description |
---|
Decimal | Total Price of the line item |
Sets price of the line item multiplied with qty rounded by currency
Param | Description |
---|
totalPrice | Total Price of the line item |
Returns quantity of the line item
Type | Description |
---|
Decimal | Quantity of the line item |
Sets quantity of the line item
Param | Description |
---|
quantity | Quantity of the line item |
Returns Billing frequency
Type | Description |
---|
String | Billing frequency |
Sets Billing frequency
Param | Description |
---|
billingFrequency | Billing frequency |
Returns Currency ISO Code of the line item
Type | Description |
---|
String | Currency ISO Code |
Sets Currency ISO Code
Param | Description |
---|
currencyIsoCode | Currency ISO Code |
Returns true if there are no errors in fetching the prices
Type | Description |
---|
Boolean | True if there are no errors in fetching the prices, false otherwise |
Retrieves error message in case of errors when fetching the pricing information
Type | Description |
---|
String | Error message |
Retrieves localized error message in case of errors when fetching the pricing information
Type | Description |
---|
String | Localized error message |
Returns error code in case of errors in fetching the pricing information
Type | Description |
---|
String | Error code |
Set error message and localized error message
Param | Description |
---|
errorMessage | Error message |
localizedErrorMessage | Localized error message |
Compares the argument with the underlying TransactionalPricingResponseItem object and returns true if they are equal
Returns hash code for TransactionalPricingResponseItem object