Skip to content

Commit

Permalink
feat: documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdev01 committed Apr 6, 2024
1 parent a7dd5f8 commit fe15e8c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/installment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Deletar parcelamento
```java
DeletedResource installmentDeleted = Installment.deleter("5a2c890b-dd63-4b5a-9169-96c8d7828f4c").delete();
```
8 changes: 8 additions & 0 deletions docs/payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@ Payment payment = Payment.creator()
.setInstallmentValue(Money.create(50))
.setDescription("Teste")
.create();
```

## Estornar uma cobrança recebida

```java
Payment.refunder(paymentId)
.setValue(new BigDecimal("valor"))
.create();
```

0 comments on commit fe15e8c

Please sign in to comment.