Smartbill API client for Java

A Smartbill API client for Java

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

com.github.andreidore
Идентификатор

Идентификатор

smartbillclient4j
Последняя версия

Последняя версия

0.7.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Smartbill API client for Java
A Smartbill API client for Java
Ссылка на сайт

Ссылка на сайт

http://github.com/andreidore/smartbill-java-client
Система контроля версий

Система контроля версий

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

Скачать smartbillclient4j

Как подключить последнюю версию

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

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
commons-io : commons-io jar 2.6
net.dongliu : requests jar 5.0.8
com.fasterxml.jackson.core : jackson-databind jar 2.10.3
com.google.code.findbugs : jsr305 jar 3.0.2

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
com.github.tomakehurst : wiremock jar 2.14.0

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
0.7.0