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 

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

Methods 

global getProductId() 

Returns the product Id

Returns 

TypeDescription
StringProduct Id

global getLineId() 

Returns product line Id

Returns 

TypeDescription
StringProduct line Id

global getProductSellingModelId() 

Retrieves the ID of the product selling model

Returns 

TypeDescription
StringProduct selling model ID.

Throws 

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

global getSubscriptionTerm() 

Returns the subscription term of the product

Returns 

TypeDescription
IntegerSubscription term

Throws 

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

global getQuantity() 

Returns the quantity of the product associated to the request

Returns 

TypeDescription
DecimalQuantity of the product

global setProductId(String productId) 

Sets product id for the request item

Parameters 

ParamDescription
productIdProduct ID

global setLineId(String lineId) 

Sets product line id for the request item

Parameters 

ParamDescription
lineIdProduct line ID

global setProductSellingModelId(String productSellingModelId) 

Sets product selling model id for the request item

Parameters 

ParamDescription
productSellingModelIdProduct selling model id

global setSubscriptionTerm(Integer subscriptionTerm) 

Sets the subscription term of the product

Parameters 

ParamDescription
subscriptionTermsubscription term of the product

global setQuantity(Decimal quantity) 

Sets the product quantity for the request item

Parameters 

ParamDescription
quantityQuantity 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


Newer Version Available

This content describes an older version of this product. View Latest

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!