The product is called a represents SKUs (stock-keeping unit (SKUunits). Products are the ones that are available on the PWR Apps Market to subscribe.
Publisher Publishers can create a product with a published application version. One application can be used in multiple products, for example, an active version of the Timesheet application can be used in products namely Timesheet Admin User, Timesheet Logs, and Timesheet API.
The product record has details of the application it is made up of as well as type, billing type, trial period count, trial period unit, trialLicensesTemplate, license template, and features.
Once any subscriber subscribes to any product its subscription record gets created on the subscriber instance with details of the product and the version he has subscribed to.
Once the product gets installed trails periods get started for the usage of that particular product after the trial period subscriber will be eligible for billing. Product billing type would be quarterly or annually
To maintain product usage we will decide on trial period count and trial period unit. to maintain license usage we will have a trial license template and after the trial, we will refer license template on the product.
Trial license template
The product has trial license template to maintain trial usage
For example Timesheet Admin User
When subscribers purchase/downgrade/upgrade any product, based on the license template available on the product license calculation will be done
The Trial License Template will be used to maintain usage of features from the first day of product subscription after updating the upgraded product’s License Template will be used to maintain usage of the feature
License define which all feature of the product is accessible to the subscriber License
Trial license Template
The Trial License Template will be used to maintain usage of features from the first day of product subscription until an upgrade
For example, the PWR Forms product can have a trial license template as follows
[{name: "
layout_
designer", users
License template
Product has license template to maintain billable usage
- Fro
: 3, usersCalculation: 'fixed'}]
i.e layout_designer license can be assigned to 3 users
License Template
After the trial period License Template will be used to maintain usage of the feature
For example Timesheet Admin User product can have a license template as follows
The product record will also define features to be used after installation
For example Timesheet Admin User product can have the following feature
- [{name: 'orektic__timesheet', type: 'checkbox', scope:'instance'}]
[{name: "orektic__timehseetAdminUser", users: 1, usersCalculation: 'fixed'}, {name: "orektic__timehseetProjects", users: 1, usersCalculation: 'per qty', amount: 5, amountCalculation: 'fixed'}]
Feature on license
i.e orektic__timehseetAdminUser can be assigned to 1 user and user calculation will be fixed for that license, orektic__timehseetProjects can be assigned to 1 user per quantity, the amount will be 5 and amount calculation will be 5
The Trial and License Template can be calculated on the basis of 4 fields:
Amount:
Amount of licenses can be assigned
Amount Calculation:
Amount calculation can be calculated as follows:
Per quantity: Defines the number of licenses that can be assigned per quantity
Fixed: Defines the number of licenses that can be assigned
User:
The license can be assigned to the user
User Calculation:
User calculation can be calculated as follows:
Per quantity: Defines the number of licenses that can be assigned per quantity to the user
Fixed: Defines the number of licenses that can be assigned to the user