andreidore / smartbill-java-client

A SmartBill API client for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A SmartBill API client for Java

License:MIT License


Languages

Language:Java 100.0%