Java: Setu Bill Serializer

If you use Java as your programming language and you want to connect your billing system with Setu, this is the module for you. The Setu Bill Serializer provides the following capabilities

  1. Setu bill JSON generation.
  2. JWT token generation and verification.

The java documentation for the project is available here.

Installation

Maven

If you are using Maven for your Java project, add the following to your repositories

<repositories>
    ....
    <repository>
        <id>my-repo-bucket-snapshot</id>
        <url>https://cs-setu-artifacts.s3.ap-south-1.amazonaws.com/snapshot</url>
    </repository>
    <repository>
        <id>my-repo-bucket-release</id>
        <url>https://cs-setu-artifacts.s3.ap-south-1.amazonaws.com/release</url>
    </repository>
</repositories>

And add the following to your dependencies

<dependencies>
    ...
    <!-- Setu serializer -->
    <dependency>
        <groupId>com.setu.serializer.SetuSerializer</groupId>
        <artifactId>SetuSerializer</artifactId>
        <version>0.3.7</version>
        <scope>compile</scope>
    </dependency>
</dependencies>

And run mvn install and your project is ready to use Setu Serializer

Gradle

If you are using Gradle for your Java project, add the following to your repositories


repositories {
    ...
    maven {
        url = 'https://cs-setu-artifacts.s3.ap-south-1.amazonaws.com/snapshot'
    }

    maven {
        url = 'https://cs-setu-artifacts.s3.ap-south-1.amazonaws.com/release'
    }
}

And add the following line to your dependencies

dependencies {
    ...
    compile 'com.setu.serializer.SetuSerializer:SetuSerializer:0.3.7'
}

Usage

Click on the following articles to see the usage of the Setu Bill Serializer.

  1. Generate Setu compatible bill objects.
  2. Generate and Verify JWT Token from Setu.