dotykacka-java-api-client

Pure Java implementation of Dotykacka Api Client

License

License

MIT
Categories

Categories

Java Languages CLI User Interface Grizzly Net Networking
GroupId

GroupId

pl.grizzlysoftware
ArtifactId

ArtifactId

dotykacka-java-api-client
Last Version

Last Version

0.5.4
Release Date

Release Date

Type

Type

module
Description

Description

dotykacka-java-api-client
Pure Java implementation of Dotykacka Api Client
Project URL

Project URL

https://github.com/grizzlysoftware/dotykacka-java-api-client/
Project Organization

Project Organization

Grizzly Software
Source Code Management

Source Code Management

https://github.com/grizzlysoftware/dotykacka-java-api-client/issues

Download dotykacka-java-api-client

Dependencies

compile (10)

Group / Artifact Type Version
com.squareup.okhttp3 : okhttp jar 4.2.2
com.squareup.retrofit2 : retrofit jar 2.6.2
com.squareup.retrofit2 : converter-jackson jar 2.6.2
com.fasterxml.jackson.core : jackson-core jar 2.10.1
com.fasterxml.jackson.core : jackson-databind jar 2.10.1
com.fasterxml.jackson.datatype : jackson-datatype-jsr310 jar 2.10.1
org.apache.commons : commons-lang3 jar 3.9
commons-codec : commons-codec jar 1.9
org.slf4j : slf4j-api jar 1.7.29
ch.qos.logback : logback-classic jar 1.2.3

Project Modules

There are no modules declared in this project.

#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 Service
    • Get Branch
    • Get All Branches for Cloud
  • Category Service
    • Create Category
    • Update Category Field
    • Delete Category
    • Get All Categories for Cloud
    • Get Category
  • Customer Service
    • Get Customer
    • Delete Customer
    • Update Customer Field
    • Create Customer
    • Get All Customers for Cloud
  • Employee Service
    • Get Employee
    • Get All Employees for Cloud
    • Delete Employee
    • Update Employee Field
    • Create Employee
  • OAuth2 Login Service
    • API-token login
    • Get API-token
    • Login for other Networks
  • POS action service
    • Create order
    • Add order item
    • Update order
    • Issue order
    • Issue and pay order
  • Product Service
    • Get All Products with stockstatus
    • Get Product
    • Get Product with stockstatus
    • Get Product stockstatus
    • Delete Product
    • Get All Products for Cloud
    • Get All Ingredients for Product
    • Update Product Field
    • Create Product
    • Create/Update Ingredient for Product //not tested yet
    • Get All Ingredients for Cloud
    • Delete Ingredient for Product //not tested yet
  • Reservation Service
    • Update Reservation Field
    • Delete Reservation
    • Create Reservation
    • Get All Reservations for Cloud
    • Get Reservation
  • Sales Service
    • Base sales report
    • Get Receipt by ID
    • Get Order by ID for Branch
    • Get Order by ID
    • Get Moneylog by ID for Branch
    • Get All Orders for Cloud
    • Get All Orders for Branch
    • Get all open Orders for Branch
    • Get All Receipts for Cloud
    • Get All Receipts for Branch
    • Get All Moneylogs for Branch
    • Get All Moneylogs for Cloud
    • Get All Shift ranges for Branch
  • Stock Service
    • Stockup/Correction
    • Get Warehouse list
    • Product sale
    • Upload delivery note
  • Suppliers Service
    • Get Supplier
    • Get All Suppliers for Cloud
    • Delete Supplier
    • Update Supplier Field
    • Create Supplier
  • Tableseats Service
    • Get Tableseat by ID for Branch
    • Get All Tableseats for Branch
  • Tag Service
    • Get Tag
    • Get All Tags for Cloud
    • Create Tag
  • Warehouse Service
    • Get Warehouse
    • Create Warehouse
    • Get All Warehouses for Cloud
    • Delete Warehouse
    • Update 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

Versions

Version
0.5.4
0.5.3
0.5.2
0.5.0
0.4.11
0.4.10
0.4.9
0.4.7
0.4.6
0.4.2
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.5
0.1.0