Project
A project contains configuration information and backend api urls needed for a retailer.
Properties
Url to load shops that are not currently 'live'. Shops that are already live are already included in the normal metadata json and do'nt need to be loaded afterwards
Url to retrieve app user information
List of payment methods that should be available to the user
Url to start a checkout flow
List of code templates used for parsing vendor specific barcodes.
The number of used currency fractions digits
The locale in which this currency is used
Sets the customer card number for user identification with the backend
Returns the possible accepted cards and if a customer card is required
The code template that should be used, when no code template is specified by a scannable code
Parameters in which codes used for offline processing (for example: Checkout using a QR-Code) should be encoded
The internal storage directly used for various files stored by the snabble SDK that are related to this project.
Indicator if checkout should be available when using this Project
Indicator if prices should be displayed using the net price instead of the gross price
The limit of all checkout methods, in cents (or other base currency values)
The limit of online payments, in cents (or other base currency values)
OkHttpClient which wraps http calls to the snabble backend with valid tokens.
List of payment method descriptors indicating which payment methods and providers are available in the Project
A price formatter for formatting prices using the provided currency information.
List of code templates that are used when supplying an existing Product with a different barcode which contains a reduced price
Url to retrieve products by barcode
Url to retrieve products by sku
The primary product database of this project
If a customer card is strictly required to use the checkout functionality at all.
The roundingMode which should be used when doing offline calculations
List of code templates that are searchable using the barcode search functionality
The users shopping cart
Flow to observe the current users shopping cart
List of supported barcode formats used by this retailer. The scanner should restrict its scanning to include only those formats
Functions
Adds a listener that gets called every time the metadata updates
Get a code template by its name
Get a code transformation template by its name
Causes hidden shops to be loaded asynchronously if config.loadActiveShops is set to true.
Logs a event tagged with error to the snabble Backend
Removes an already added listener