Describes a product type that can only have positive natural unit multipliers (N={0,1...,inf+}) An example for an PartialProduct is a sample data storage service product. You can offer multiple of this product and express the quantities as i.e. 1.5 * 1 Terabyte (100€/Tb) => 1.5 Terabyte with 150€ item cost sum.
Constructor and description |
---|
PartialProduct
(java.lang.String name, java.lang.String description, double unitPrice, ProductUnit unit, ProductId productId) Basic product constructor. |
Basic product constructor. Checks that all passed arguments are not null.
name
- The name of the product.description
- The description of what the product is about.unitPrice
- The price in € per unitunit
- The product unitproductId
- The product identifier