Describes a product type that can only have positive natural unit multipliers (N={0,1...,inf+}) An example for an AtomicProduct is a sample sequencing service product. You can only offer sequencing for 1,2,.. samples, not 1.4 samples.
Constructor and description |
---|
AtomicProduct
(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