From 31533f52de850e15dfcba0744bd92f6ad5b9ae13 Mon Sep 17 00:00:00 2001 From: Joao Pedro Truchinski Borba Date: Sat, 6 Apr 2024 19:46:22 -0300 Subject: [PATCH] feat: documentation --- docs/invoice.md | 21 +++++++++++++++++++++ docs/pix.md | 9 +++++++++ docs/readme.md | 27 +++++---------------------- 3 files changed, 35 insertions(+), 22 deletions(-) create mode 100644 docs/invoice.md create mode 100644 docs/pix.md diff --git a/docs/invoice.md b/docs/invoice.md new file mode 100644 index 0000000..aaa147f --- /dev/null +++ b/docs/invoice.md @@ -0,0 +1,21 @@ +## Scheduling invoice +```java +Invoice invoice = Invoice.creator() + .setServiceDescription("Nota fiscal da Fatura 101940. Descrição dos Serviços: ANÁLISE E DESENVOLVIMENTO DE SISTEMAS") + .setObservations("Mensal referente aos trabalhos de Junho.") + .setValue(Money.create(300)) + .setDeductions(Money.create(2)) + .setEffectiveDate(new Date()) + .setMunicipalServiceName("Análise e Desenvolvimento de Sistemas") + .setTaxes( + new Taxes() + .setRetainIss(true) + .setIss(Money.create(3)) + .setCofins(Money.create(3)) + .setCsll(Money.create(1)) + .setInss(Money.create(3)) + .setIr(Money.create(1.5)) + .setPis(Money.create(0.65)) + ) + .create(); +``` \ No newline at end of file diff --git a/docs/pix.md b/docs/pix.md new file mode 100644 index 0000000..23cf1b2 --- /dev/null +++ b/docs/pix.md @@ -0,0 +1,9 @@ +## Cancelar uma transação Pix + +Para cancelar uma transação Pix, você deve informar o id da transação Pix que deseja cancelar. + +```java +PixTransaction cancelledPixTransaction = PixTransaction + .canceller("35363f6e-93e2-11ec-b9d9-96f4053b1bd4") + .create(); +``` \ No newline at end of file diff --git a/docs/readme.md b/docs/readme.md index 3823bdc..e74c189 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -11,25 +11,8 @@ The recommended way to use the AWS SDK for Java in your project is to consume it ``` -## Scheduling invoice -```java -Invoice invoice = Invoice.creator() - .setServiceDescription("Nota fiscal da Fatura 101940. Descrição dos Serviços: ANÁLISE E DESENVOLVIMENTO DE SISTEMAS") - .setObservations("Mensal referente aos trabalhos de Junho.") - .setValue(Money.create(300)) - .setDeductions(Money.create(2)) - .setEffectiveDate(new Date()) - .setMunicipalServiceName("Análise e Desenvolvimento de Sistemas") - .setTaxes( - new Taxes() - .setRetainIss(true) - .setIss(Money.create(3)) - .setCofins(Money.create(3)) - .setCsll(Money.create(1)) - .setInss(Money.create(3)) - .setIr(Money.create(1.5)) - .setPis(Money.create(0.65)) - ) - .create(); -``` -== teste \ No newline at end of file +# Documentation + +- [Invoice](invoice.md) +- [Pix](pix.md) +- [How to schedule invoice](setup/readme.md)