Barcode
The Barcode API provides a mechanism to decode a raw barcode and extract its corresponding inner data. In order to achieve this, we make use of templates, which contain general structural details and rules about how to decode the barcode. A template has the following characteristics:
- Name
- Type, indicating what if it is an article barcode or a voucher for instance
- Minimum and maximum length
- Code identifiers and where to find them within the barcode
- List of rules about how to extract the data tokens
- List of validation rules
In order to decode a barcode, the following flow is applied:
- Try to match the barcode to the templates
- If more templates are available, we choose one of the matching templates
- Once we have chosen a template, we can use its rules to validate the barcode
- Regardless of whether the barcode is valid or not, we proceed to extract the data via the template data extraction rules
Shopping Cart
The purpose of the Shopping Cart service is to allow users to manage items, add them to a shopping cart, manage their shopping cart, and place an order. The scope of the project includes creating a high scalable system with an API interface, adding items to a cart, managing items in the cart, creating an order, and processing orders.
Tax
The purpose of the Tax API is to provide the ability to calculate taxes for a Shopping Cart / Basket by providing information about the line items and the evidence that may impact tax calculation.
Discount
The Discount Service allows do the discount calculation of shopping baskets based on offers existing in Lobyco ecosystem or imported from third-party systems. Discount Types supported are in the range of all types ran on the: Line, Total, Quantity, Combined (Mix & Match).