Skip to content

Commit

Permalink
First draft of java sample
Browse files Browse the repository at this point in the history
  • Loading branch information
TSchmiedlechner committed May 8, 2020
1 parent 37dfec1 commit 9510c31
Show file tree
Hide file tree
Showing 78 changed files with 3,272 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Compiled class file
*.class

target/
# Log file
*.log

Expand All @@ -21,3 +21,4 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions middleware-demo-java.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4" />
89 changes: 89 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>eu.fiskaltrust</groupId>
<artifactId>middleware-demo-java</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>1.10</maven.compiler.source>
<maven.compiler.target>1.10</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>1.29.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.29.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.29.0</version>
</dependency>
<dependency> <!-- necessary for Java 9+ -->
<groupId>org.apache.tomcat</groupId>
<artifactId>annotations-api</artifactId>
<version>6.0.53</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.6</version>
</dependency>
</dependencies>

<build>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.6.2</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.11.0:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.29.0:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>10</source>
<target>10</target>
</configuration>
</plugin>
</plugins>
</build>

</project>
43 changes: 43 additions & 0 deletions receipt-examples/de/01-bonieren-1/request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"ftCashBoxID": "c094f242-91d5-4343-9c54-bce85f70d0d6",
"ftPosSystemId": "b3dc6573-96d9-e611-80f7-5065f38adae1",
"cbTerminalID": "1",
"cbReceiptReference": "1",
"cbReceiptMoment": "2019-10-25T13:32:45.133Z",
"cbChargeItems": [
{
"Quantity": 1.0,
"Description": "Bier 0,5 lt",
"Amount": 3.80000000000000000000000000,
"VATRate": 19.0000,
"ftChargeItemCase": 4919338167972134913,
"ftChargeItemCaseData": "",
"VATAmount": 0.6067226890756302521008403361,
"CostCenter": "1",
"ProductGroup": "Bier",
"ProductNumber": "101",
"ProductBarcode": "",
"Unit": "Liter",
"UnitQuantity": 1.0000
},
{
"Quantity": 1.0,
"Description": "Schnitzel",
"Amount": 9.20000000000000000000000000,
"VATRate": 7.0000,
"ftChargeItemCase": 4919338167972134914,
"ftChargeItemCaseData": "",
"VATAmount": 0.601869158878504672897196262,
"CostCenter": "1",
"ProductGroup": "Speisen",
"ProductNumber": "102",
"ProductBarcode": "",
"Unit": "Stk",
"UnitQuantity": 1.0000
}
],
"cbPayItems": [],
"ftReceiptCase": 4919338172267102224,
"cbReceiptAmount": 13.00,
"cbUser": "Chef"
}

0 comments on commit 9510c31

Please sign in to comment.