Smartbill API client for Java

A Smartbill API client for Java

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

com.github.andreidore
ArtifactId

ArtifactId

smartbillclient
Last Version

Last Version

0.5.0
Release Date

Release Date

Type

Type

jar
Description

Description

Smartbill API client for Java
A Smartbill API client for Java
Project URL

Project URL

http://github.com/andreidore/smartbill-java-client
Source Code Management

Source Code Management

http://github.com/andreidore/smartbill-java-client/tree/master

Download smartbillclient

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.andreidore/smartbillclient/ -->
<dependency>
    <groupId>com.github.andreidore</groupId>
    <artifactId>smartbillclient</artifactId>
    <version>0.5.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.andreidore/smartbillclient/
implementation 'com.github.andreidore:smartbillclient:0.5.0'
// https://jarcasting.com/artifacts/com.github.andreidore/smartbillclient/
implementation ("com.github.andreidore:smartbillclient:0.5.0")
'com.github.andreidore:smartbillclient:jar:0.5.0'
<dependency org="com.github.andreidore" name="smartbillclient" rev="0.5.0">
  <artifact name="smartbillclient" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.andreidore', module='smartbillclient', version='0.5.0')
)
libraryDependencies += "com.github.andreidore" % "smartbillclient" % "0.5.0"
[com.github.andreidore/smartbillclient "0.5.0"]

Dependencies

compile (4)

Group / Artifact Type Version
commons-io : commons-io jar 2.6
net.dongliu : requests jar 4.17.0
com.fasterxml.jackson.core : jackson-databind jar 2.9.4
com.google.code.findbugs : jsr305 jar 3.0.2

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
com.github.tomakehurst : wiremock jar 2.14.0

Project Modules

There are no modules declared in this project.

SmartBill API client for java

Table of Contents

Maven

SmartBill client is now in maven central repo.

<dependency>
    <groupId>com.github.andreidore</groupId>
    <artifactId>smartbillclient4j</artifactId>
    <version>0.7.0</version>
</dependency>

Usage

Client

Create client

SmartBillClient client = new SmartBillClient("username", "token");
// or
SmartBillClient client = new SmartBillClient("username", "token","url");

You can find more info about authentication data here.

Invoice

Download

byte[] data = client.getInvoicePdf("cif","0","1")

Estimate

Estimate download

byte[] data = client.getEstimatePdf("cif","0","1")

Email

Configuration

Configuration

Stock

List<Stock> stocks = client.getStocks("cif",new Date());
// or
List<Stock> stocks = client.getStocks("cif",new Date(),"warehouse");
// or
List<Stock> stocks = client.getStocks("cif",new Date(),"warehouse","Product 1",null);
// or
List<Stock> stocks = client.getStocks("cif",new Date(),"warehouse",null,"CODE_1");

Todo

  • Invoice

    • CreateInvoice
    • GetInvoicePdf
    • DeleteInvoice
    • CancelInvoice
    • RestoreInvoice
  • Payment

    • CreatePayment
    • GetReceiptText
    • DeletePaymentByReceipt
    • DeletePayment
    • GetPaymentStatus
  • Estimate (Proforma Invoice)

    • CreateEstimate
    • GetEstimatePdf
    • DeleteEstimate
    • CancelEstimate
    • RestoreEstimate
  • Email

    • SendDocument
  • Configuration

    • GetTaxes
    • GetSeries
  • Stock

    • GetStock

Versions

Version
0.5.0
0.4.0
0.3.1
0.3.0
0.2.1
0.2.0
0.1.0