commercestorepricing.TransactionalPricingRequestItem
Represents an item with in the TransactionalPricingRequest containing product information
Constructors
global TransactionalPricingRequestItem(String lineId, String productId, Decimal quantity)
Constructs a TransactionalPricingRequestItem by delegating call to internal POJO class
global TransactionalPricingRequestItem(String lineId, String productId, String productSellingModelId, Integer subscriptionTerm, Decimal quantity)
Constructs a TransactionalPricingRequestItem with product related information
Throws
| Exception | Description |
|---|
NoAccessException | If the organization does not have Commerce Subscription Plus enabled. |
Methods
global getProductId()
Returns the product Id
Returns
| Type | Description |
|---|
| String | Product Id |
global getLineId()
Returns product line Id
Returns
| Type | Description |
|---|
| String | Product line Id |
global getProductSellingModelId()
Retrieves the ID of the product selling model
Returns
| Type | Description |
|---|
| String | Product selling model ID. |
Throws
| Exception | Description |
|---|
NoAccessException | If the org does not have Commerce Subscription Plus enabled. |
global getSubscriptionTerm()
Returns the subscription term of the product
Returns
| Type | Description |
|---|
| Integer | Subscription term |
Throws
| Exception | Description |
|---|
NoAccessException | If the org does not have Commerce Subscription Plus enabled. |
global getQuantity()
Returns the quantity of the product associated to the request
Returns
| Type | Description |
|---|
| Decimal | Quantity of the product |
global setProductId(String productId)
Sets product id for the request item
Parameters
| Param | Description |
|---|
productId | Product ID |
global setLineId(String lineId)
Sets product line id for the request item
Parameters
| Param | Description |
|---|
lineId | Product line ID |
global setProductSellingModelId(String productSellingModelId)
Sets product selling model id for the request item
Parameters
| Param | Description |
|---|
productSellingModelId | Product selling model id |
global setSubscriptionTerm(Integer subscriptionTerm)
Sets the subscription term of the product
Parameters
| Param | Description |
|---|
subscriptionTerm | subscription term of the product |
global setQuantity(Decimal quantity)
Sets the product quantity for the request item
Parameters
| Param | Description |
|---|
quantity | Quantity of the product |
global equals(Object obj)
Compares the argument with this TransactionalPricingRequestItem object and returns true if they are equal
global hashCode()
Returns hashCode for this TransactionalPricingRequestItem object