#Dotykacka Java API Client Compatible with Dotykacka api version 1.62
Recommended pre-requisities
- Java 11
- Gradle 6.0.2
Artifact
Maven
<dependency>
<groupId>pl.grizzlysoftware</groupId>
<artifactId>dotykacka-java-api-client</artifactId>
<version>0.4.11</version>
</dependency>
Gradle
compile group: 'pl.grizzlysoftware', name: 'dotykacka-java-api-client', version: '0.4.11'
Dotykacka API coverage progress
Scratched elements means - DONE
Dotykacka API service coverage:
Branches ServiceGet BranchGet All Branches for Cloud
Category ServiceCreate CategoryUpdate Category FieldDelete CategoryGet All Categories for CloudGet Category
Customer ServiceGet CustomerDelete CustomerUpdate Customer FieldCreate CustomerGet All Customers for Cloud
Employee ServiceGet EmployeeGet All Employees for CloudDelete EmployeeUpdate Employee FieldCreate Employee
- OAuth2 Login Service
API-token loginGet API-token- Login for other Networks
- POS action service
- Create order
- Add order item
- Update order
- Issue order
- Issue and pay order
Product ServiceGet All Products with stockstatusGet ProductGet Product with stockstatusGet Product stockstatusDelete ProductGet All Products for CloudGet All Ingredients for ProductUpdate Product FieldCreate ProductCreate/Update Ingredient for Product//not tested yetGet All Ingredients for CloudDelete Ingredient for Product//not tested yet
- Reservation Service
- Update Reservation Field
- Delete Reservation
- Create Reservation
- Get All Reservations for Cloud
- Get Reservation
Sales ServiceBase sales reportGet Receipt by IDGet Order by ID for BranchGet Order by IDGet Moneylog by ID for BranchGet All Orders for CloudGet All Orders for BranchGet all open Orders for BranchGet All Receipts for CloudGet All Receipts for BranchGet All Moneylogs for BranchGet All Moneylogs for CloudGet All Shift ranges for Branch
- Stock Service
- Stockup/Correction
- Get Warehouse list
- Product sale
- Upload delivery note
Suppliers ServiceGet SupplierGet All Suppliers for CloudDelete SupplierUpdate Supplier FieldCreate Supplier
Tableseats ServiceGet Tableseat by ID for BranchGet All Tableseats for Branch
Tag ServiceGet TagGet All Tags for CloudCreate Tag
Warehouse ServiceGet WarehouseCreate WarehouseGet All Warehouses for CloudDelete WarehouseUpdate Warehouse Field
Running unit tests
gradlew clean test
Running integration tests
These tests are rather symbolic. Their purpose is to verify whether connectivity works fine, endpoints are satisfied with given parameters and unmarshalling response objects works fine.
DOTYKACKA_API_URL="https://api.dotykacka.cz" \
CLOUD_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
BRANCH_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
WAREHOUSE_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
ORDER_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
RECEIPT_ITEM_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
MONEYLOG_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
TAG_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
TABLESEAT_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
PRODUCT_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
API_TOKEN_USERNAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
API_TOKEN_PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
ACCESS_TOKEN_API_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
ACCESS_TOKEN_USERNAME=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
ACCESS_TOKEN_PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
gradlew clean testIntegration i
XXXXXXXXXXX marks should be removed with proper env variables, for test purposes you could use following, however it does not allow you to modify anything
[email protected]
API_TOKEN_PASSWORD=touchpo_84406
CLOUD_ID=342606595
BRANCH_ID=137478353
ORDER_ID=1558868434627849
RECEIPT_ITEM_ID=0
MONEYLOG_ID=0
TAG_ID=0
TABLESEAT_ID=0
PRODUCT_ID=0
WAREHOUSE_ID=1056670791789808
ACCESS_TOKEN_USERNAME=touchpo
ACCESS_TOKEN_PASSWORD=touchPo!2016api