From 01557d8f1025babd3b7d810d6f51a8b287b6d7db Mon Sep 17 00:00:00 2001
From: asaasdev <15790575+DouglasGiovanella@users.noreply.github.com>
Date: Fri, 4 Jul 2025 18:30:14 +0000
Subject: [PATCH] liblab SDK update for version v1.0.3
---
.manifest.json | 16 ++--
README.md | 11 ++-
... GenerateSubscriptionBookletParameters.md} | 2 +-
.../InstallmentPaymentBookResponseDto.md | 10 ---
.../services/AccountDocumentService.md | 80 +++++++++----------
documentation/services/AccountInfoService.md | 4 +-
documentation/services/AnticipationService.md | 6 +-
documentation/services/BillService.md | 6 +-
documentation/services/ChargebackService.md | 2 +-
.../services/CreditBureauReportService.md | 2 +-
documentation/services/FinanceService.md | 2 +-
.../services/FinancialTransactionService.md | 2 +-
documentation/services/FiscalInfoService.md | 10 +--
documentation/services/InstallmentService.md | 5 +-
documentation/services/InvoiceService.md | 6 +-
.../services/MobilePhoneRechargeService.md | 2 +-
.../services/PaymentDunningService.md | 8 +-
documentation/services/PaymentLinkService.md | 12 +--
documentation/services/PixService.md | 4 +-
.../services/PixTransactionService.md | 6 +-
documentation/services/RecurringPixService.md | 4 +-
documentation/services/SubaccountService.md | 2 +-
documentation/services/SubscriptionService.md | 50 ++++++------
documentation/services/WebhookService.md | 2 +-
examples/pom.xml | 2 +-
pom.xml | 2 +-
...enerateSubscriptionBookletParameters.java} | 12 +--
.../InstallmentPaymentBookResponseDto.java | 67 ----------------
.../apisdk/services/InstallmentService.java | 15 ++--
.../apisdk/services/SubscriptionService.java | 30 +++----
30 files changed, 149 insertions(+), 233 deletions(-)
rename documentation/models/{GenerateSignatureBookletParameters.md => GenerateSubscriptionBookletParameters.md} (92%)
delete mode 100644 documentation/models/InstallmentPaymentBookResponseDto.md
rename src/main/java/com/asaas/apisdk/models/{GenerateSignatureBookletParameters.java => GenerateSubscriptionBookletParameters.java} (84%)
delete mode 100644 src/main/java/com/asaas/apisdk/models/InstallmentPaymentBookResponseDto.java
diff --git a/.manifest.json b/.manifest.json
index 6ae7364..8545541 100644
--- a/.manifest.json
+++ b/.manifest.json
@@ -1,11 +1,11 @@
{
"liblabVersion": "2.25.34",
- "date": "2025-07-01T19:48:32.486Z",
+ "date": "2025-07-04T18:29:44.624Z",
"config": {
"apiId": 2190,
"baseUrl": "https://api.asaas.com/",
"sdkName": "asaas-sdk",
- "sdkVersion": "1.0.2",
+ "sdkVersion": "1.0.3",
"languages": ["java"],
"auth": ["apikey"],
"docs": [],
@@ -73,7 +73,7 @@
"artifactId": "api-sdk",
"githubRepoName": "asaas-api-sdk-java",
"targetBranch": "master",
- "sdkVersion": "1.0.2",
+ "sdkVersion": "1.0.3",
"homepage": "https://asaas.com",
"developers": [
{
@@ -101,7 +101,7 @@
"ignoreFiles": [],
"liblabVersion": "2",
"renameIllegalModelProperties": true,
- "sdkVersion": "1.0.2",
+ "sdkVersion": "1.0.3",
"targetBranch": "master",
"groupId": "com.asaas",
"artifactId": "api-sdk",
@@ -177,7 +177,7 @@
},
"multiTenant": true,
"hooksLocation": {
- "bucketKey": "12307/hooks.zip",
+ "bucketKey": "12419/hooks.zip",
"bucketName": "prod-liblab-api-stack-hooks"
},
"includeWatermark": true,
@@ -307,7 +307,6 @@
"documentation/models/InstallmentSaveWithCreditCardRequestDto.md",
"documentation/models/InstallmentDeleteResponseDto.md",
"documentation/models/InstallmentListPaymentsRequestPaymentStatus.md",
- "documentation/models/InstallmentPaymentBookResponseDto.md",
"documentation/models/InstallmentUpdateSplitRequestDto.md",
"documentation/models/InstallmentUpdateSplitResponseDto.md",
"documentation/models/SubscriptionListResponseDto.md",
@@ -678,7 +677,7 @@
"documentation/models/GenerateInstallmentBookletParameters.md",
"documentation/models/ListSubscriptionsParameters.md",
"documentation/models/ListPaymentsOfASubscriptionParameters.md",
- "documentation/models/GenerateSignatureBookletParameters.md",
+ "documentation/models/GenerateSubscriptionBookletParameters.md",
"documentation/models/ListInvoicesForSubscriptionChargesParameters.md",
"documentation/models/ListKeysParameters.md",
"documentation/models/ListTransactionsParameters.md",
@@ -967,7 +966,6 @@
"src/main/java/com/asaas/apisdk/models/CustomerDeleteResponseDto.java",
"src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateRequestDto.java",
"src/main/java/com/asaas/apisdk/models/InstallmentDeleteResponseDto.java",
- "src/main/java/com/asaas/apisdk/models/InstallmentPaymentBookResponseDto.java",
"src/main/java/com/asaas/apisdk/models/SubscriptionDeleteResponseDto.java",
"src/main/java/com/asaas/apisdk/models/SubscriptionDeleteInvoiceConfigResponseDto.java",
"src/main/java/com/asaas/apisdk/models/PixQrCodeDeleteResponseDto.java",
@@ -1072,7 +1070,7 @@
"src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDto.java",
"src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentBankSlipDto.java",
"src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferPixDto.java",
- "src/main/java/com/asaas/apisdk/models/GenerateSignatureBookletParameters.java",
+ "src/main/java/com/asaas/apisdk/models/GenerateSubscriptionBookletParameters.java",
"src/main/java/com/asaas/apisdk/models/ListKeysParameters.java",
"src/main/java/com/asaas/apisdk/models/ListCreditBureauReportsParameters.java",
"documentation/services/PaymentDocumentService.md",
diff --git a/README.md b/README.md
index 8cb0504..a3b1dc1 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# AsaasSdk Java SDK 1.0.2
+# AsaasSdk Java SDK 1.0.3
Welcome to the AsaasSdk SDK documentation. This guide will help you get started with integrating and using the AsaasSdk SDK in your project.
@@ -7,7 +7,7 @@ Welcome to the AsaasSdk SDK documentation. This guide will help you get started
## Versions
- API version: `3.0.0`
-- SDK version: `1.0.2`
+- SDK version: `1.0.3`
## About the API
@@ -42,14 +42,14 @@ If you use Maven, place the following within the _dependency_ tag in your `pom.x
com.asaas
api-sdk
- 1.0.2
+ 1.0.3
```
If you use Gradle, paste the next line inside the _dependencies_ block of your `build.gradle` file:
```Gradle
-implementation group: com.asaas, name: api-sdk, version: 1.0.2
+implementation group: com.asaas, name: api-sdk, version: 1.0.3
```
If you use JAR files, package the SDK by running the following command:
@@ -320,7 +320,6 @@ The SDK includes several models that represent the data structures used in API r
| [InstallmentSaveWithCreditCardRequestDto](documentation/models/InstallmentSaveWithCreditCardRequestDto.md) | |
| [InstallmentDeleteResponseDto](documentation/models/InstallmentDeleteResponseDto.md) | |
| [InstallmentListPaymentsRequestPaymentStatus](documentation/models/InstallmentListPaymentsRequestPaymentStatus.md) | Filter by payment status |
-| [InstallmentPaymentBookResponseDto](documentation/models/InstallmentPaymentBookResponseDto.md) | |
| [InstallmentUpdateSplitRequestDto](documentation/models/InstallmentUpdateSplitRequestDto.md) | |
| [InstallmentUpdateSplitResponseDto](documentation/models/InstallmentUpdateSplitResponseDto.md) | |
| [SubscriptionListResponseDto](documentation/models/SubscriptionListResponseDto.md) | |
@@ -682,7 +681,7 @@ The SDK includes several models that represent the data structures used in API r
| [GenerateInstallmentBookletParameters](documentation/models/GenerateInstallmentBookletParameters.md) | |
| [ListSubscriptionsParameters](documentation/models/ListSubscriptionsParameters.md) | |
| [ListPaymentsOfASubscriptionParameters](documentation/models/ListPaymentsOfASubscriptionParameters.md) | |
-| [GenerateSignatureBookletParameters](documentation/models/GenerateSignatureBookletParameters.md) | |
+| [GenerateSubscriptionBookletParameters](documentation/models/GenerateSubscriptionBookletParameters.md) | |
| [ListInvoicesForSubscriptionChargesParameters](documentation/models/ListInvoicesForSubscriptionChargesParameters.md) | |
| [ListKeysParameters](documentation/models/ListKeysParameters.md) | |
| [ListTransactionsParameters](documentation/models/ListTransactionsParameters.md) | |
diff --git a/documentation/models/GenerateSignatureBookletParameters.md b/documentation/models/GenerateSubscriptionBookletParameters.md
similarity index 92%
rename from documentation/models/GenerateSignatureBookletParameters.md
rename to documentation/models/GenerateSubscriptionBookletParameters.md
index 9236d04..780e835 100644
--- a/documentation/models/GenerateSignatureBookletParameters.md
+++ b/documentation/models/GenerateSubscriptionBookletParameters.md
@@ -1,4 +1,4 @@
-# GenerateSignatureBookletParameters
+# GenerateSubscriptionBookletParameters
**Properties**
diff --git a/documentation/models/InstallmentPaymentBookResponseDto.md b/documentation/models/InstallmentPaymentBookResponseDto.md
deleted file mode 100644
index aae3430..0000000
--- a/documentation/models/InstallmentPaymentBookResponseDto.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# InstallmentPaymentBookResponseDto
-
-**Properties**
-
-| Name | Type | Required | Description |
-| :------- | :----- | :------- | :---------- |
-| file | byte[] | ❌ | File |
-| fileName | String | ❌ | File name |
-
-
diff --git a/documentation/services/AccountDocumentService.md b/documentation/services/AccountDocumentService.md
index e7a7d4a..fa5f7ff 100644
--- a/documentation/services/AccountDocumentService.md
+++ b/documentation/services/AccountDocumentService.md
@@ -72,33 +72,31 @@ import com.asaas.apisdk.models.AccountDocumentSaveRequestAccountDocumentType;
import com.asaas.apisdk.models.AccountDocumentSaveRequestDto;
public class Main {
+ public static void main(String[] args) {
+ AsaasSdkConfig config = AsaasSdkConfig.builder()
+ .apiKeyAuthConfig(
+ ApiKeyAuthConfig.builder()
+ .apiKey("YOUR_API_KEY")
+ .build()
+ )
+ .build();
- public static void main(String[] args) {
- AsaasSdkConfig config = AsaasSdkConfig.builder()
- .apiKeyAuthConfig(ApiKeyAuthConfig.builder().apiKey("YOUR_API_KEY").build())
- .build();
-
- AsaasSdk asaasSdk = new AsaasSdk(config);
+ AsaasSdk asaasSdk = new AsaasSdk(config);
- AccountDocumentSaveRequestDto accountDocumentSaveRequestDto = AccountDocumentSaveRequestDto.builder()
- .documentFile(sintl)
- .type(AccountDocumentSaveRequestAccountDocumentType.IDENTIFICATION)
- .build();
- AccountDocumentSaveRequestDto accountDocumentSaveRequestDto = AccountDocumentSaveRequestDto.builder()
- .documentFile(sintl)
- .type(AccountDocumentSaveRequestAccountDocumentType.IDENTIFICATION)
- .build();
+ AccountDocumentSaveRequestDto accountDocumentSaveRequestDto = AccountDocumentSaveRequestDto.builder()
+ .documentFile(ut Ut )
+ .type(AccountDocumentSaveRequestAccountDocumentType.IDENTIFICATION)
+ .build();
+ AccountDocumentSaveRequestDto accountDocumentSaveRequestDto = AccountDocumentSaveRequestDto.builder()
+ .documentFile(ut Ut )
+ .type(AccountDocumentSaveRequestAccountDocumentType.IDENTIFICATION)
+ .build();
- AccountDocumentGetResponseDto response = asaasSdk.accountDocument.sendDocuments(
- "8d257732-2220-11ec-b695-b6af4a64184d",
- accountDocumentSaveRequestDto,
- accountDocumentSaveRequestDto
- );
+ AccountDocumentGetResponseDto response = asaasSdk.accountDocument.sendDocuments("8d257732-2220-11ec-b695-b6af4a64184d", accountDocumentSaveRequestDto, accountDocumentSaveRequestDto);
- System.out.println(response);
- }
+ System.out.println(response);
+ }
}
-
```
## viewDocumentSent
@@ -170,29 +168,31 @@ import com.asaas.apisdk.models.AccountDocumentGetResponseDto;
import com.asaas.apisdk.models.AccountDocumentUpdateRequestDto;
public class Main {
- public static void main(String[] args) {
- AsaasSdkConfig config = AsaasSdkConfig.builder()
- .apiKeyAuthConfig(
- ApiKeyAuthConfig.builder()
- .apiKey("YOUR_API_KEY")
- .build()
- )
- .build();
- AsaasSdk asaasSdk = new AsaasSdk(config);
+ public static void main(String[] args) {
+ AsaasSdkConfig config = AsaasSdkConfig.builder()
+ .apiKeyAuthConfig(ApiKeyAuthConfig.builder().apiKey("YOUR_API_KEY").build())
+ .build();
- AccountDocumentUpdateRequestDto accountDocumentUpdateRequestDto = AccountDocumentUpdateRequestDto.builder()
- .documentFile(dolor cul)
- .build();
- AccountDocumentUpdateRequestDto accountDocumentUpdateRequestDto = AccountDocumentUpdateRequestDto.builder()
- .documentFile(dolor cul)
- .build();
+ AsaasSdk asaasSdk = new AsaasSdk(config);
- AccountDocumentGetResponseDto response = asaasSdk.accountDocument.updateSentDocument("8d257732-2220-11ec-b695-b6af4a64184d", accountDocumentUpdateRequestDto, accountDocumentUpdateRequestDto);
+ AccountDocumentUpdateRequestDto accountDocumentUpdateRequestDto = AccountDocumentUpdateRequestDto.builder()
+ .documentFile(sintl)
+ .build();
+ AccountDocumentUpdateRequestDto accountDocumentUpdateRequestDto = AccountDocumentUpdateRequestDto.builder()
+ .documentFile(sintl)
+ .build();
- System.out.println(response);
- }
+ AccountDocumentGetResponseDto response = asaasSdk.accountDocument.updateSentDocument(
+ "8d257732-2220-11ec-b695-b6af4a64184d",
+ accountDocumentUpdateRequestDto,
+ accountDocumentUpdateRequestDto
+ );
+
+ System.out.println(response);
+ }
}
+
```
## removeSentDocument
diff --git a/documentation/services/AccountInfoService.md b/documentation/services/AccountInfoService.md
index 3e961be..4b41493 100644
--- a/documentation/services/AccountInfoService.md
+++ b/documentation/services/AccountInfoService.md
@@ -183,7 +183,7 @@ public class Main {
.infoBackgroundColor("#000fff")
.fontColor("#00ff0")
.enabled(true)
- .logoFile(adipisicing)
+ .logoFile(repre)
.build();
PaymentCheckoutConfigSaveRequestDto paymentCheckoutConfigSaveRequestDto =
PaymentCheckoutConfigSaveRequestDto.builder()
@@ -191,7 +191,7 @@ public class Main {
.infoBackgroundColor("#000fff")
.fontColor("#00ff0")
.enabled(true)
- .logoFile(adipisicing)
+ .logoFile(repre)
.build();
PaymentCheckoutConfigGetResponseDto response = asaasSdk.accountInfo.savePaymentCheckoutPersonalization(
diff --git a/documentation/services/AnticipationService.md b/documentation/services/AnticipationService.md
index 8034de6..db5b144 100644
--- a/documentation/services/AnticipationService.md
+++ b/documentation/services/AnticipationService.md
@@ -88,7 +88,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListAnticipationsParameters requestParameters = ListAnticipationsParameters.builder()
- .offset(0L)
+ .offset(1L)
.limit(10L)
.payment("payment")
.installment("installment")
@@ -140,12 +140,12 @@ public class Main {
AnticipationSaveRequestDto anticipationSaveRequestDto = AnticipationSaveRequestDto.builder()
.installment("installment")
.payment("pay_626366773834")
- .documents(offic)
+ .documents(occaec)
.build();
AnticipationSaveRequestDto anticipationSaveRequestDto = AnticipationSaveRequestDto.builder()
.installment("installment")
.payment("pay_626366773834")
- .documents(offic)
+ .documents(occaec)
.build();
AnticipationGetResponseDto response = asaasSdk.anticipation.requestAnticipation(
diff --git a/documentation/services/BillService.md b/documentation/services/BillService.md
index 60644b3..db33c51 100644
--- a/documentation/services/BillService.md
+++ b/documentation/services/BillService.md
@@ -90,9 +90,9 @@ public class Main {
.identificationField("03399.77779 29900.000000 04751.101017 1 81510000002990")
.scheduleDate("2020-03-15")
.description("Celular 03/12")
- .discount(4.52D)
- .interest(3.73D)
- .fine(0.02D)
+ .discount(2.88D)
+ .interest(4.04D)
+ .fine(0.74D)
.dueDate("2020-03-30")
.value(29D)
.externalReference("056984")
diff --git a/documentation/services/ChargebackService.md b/documentation/services/ChargebackService.md
index 4cee083..a3e9ffd 100644
--- a/documentation/services/ChargebackService.md
+++ b/documentation/services/ChargebackService.md
@@ -100,7 +100,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListChargebacksParameters requestParameters = ListChargebacksParameters.builder()
- .offset(9L)
+ .offset(4L)
.limit(10L)
.creditCardBrand(ChargebackListRequestCreditCardBrand.VISA)
.originDisputeDateLe("2024-12-05")
diff --git a/documentation/services/CreditBureauReportService.md b/documentation/services/CreditBureauReportService.md
index f0f21b1..1fbc4ec 100644
--- a/documentation/services/CreditBureauReportService.md
+++ b/documentation/services/CreditBureauReportService.md
@@ -42,7 +42,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListCreditBureauReportsParameters requestParameters = ListCreditBureauReportsParameters.builder()
- .offset(0L)
+ .offset(3L)
.limit(10L)
.startDate("startDate")
.endDate("endDate")
diff --git a/documentation/services/FinanceService.md b/documentation/services/FinanceService.md
index 34af6ab..5af7afe 100644
--- a/documentation/services/FinanceService.md
+++ b/documentation/services/FinanceService.md
@@ -83,7 +83,7 @@ public class Main {
.customer("cus_3EZfkUThUMAt")
.billingType(FinanceGetPaymentStatisticsRequestBillingType.BOLETO)
.status(FinanceGetPaymentStatisticsRequestPaymentStatus.PENDING)
- .anticipated(true)
+ .anticipated(false)
.dateCreatedGe("2023-01-01")
.dateCreatedLe("2023-01-01")
.dueDateGe("2023-01-01")
diff --git a/documentation/services/FinancialTransactionService.md b/documentation/services/FinancialTransactionService.md
index 949ba3d..999e0a4 100644
--- a/documentation/services/FinancialTransactionService.md
+++ b/documentation/services/FinancialTransactionService.md
@@ -40,7 +40,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
RetrieveExtractParameters requestParameters = RetrieveExtractParameters.builder()
- .offset(1L)
+ .offset(10L)
.limit(10L)
.startDate("2023-03-01")
.finishDate("2023-03-31")
diff --git a/documentation/services/FiscalInfoService.md b/documentation/services/FiscalInfoService.md
index 8a868b1..6462b14 100644
--- a/documentation/services/FiscalInfoService.md
+++ b/documentation/services/FiscalInfoService.md
@@ -120,7 +120,7 @@ public class Main {
.email("john.doe@asaas.com.br")
.municipalInscription("21779501")
.simplesNacional(false)
- .culturalProjectsPromoter(true)
+ .culturalProjectsPromoter(false)
.cnae("6209100")
.specialTaxRegime("1")
.serviceListItem("serviceListItem")
@@ -131,7 +131,7 @@ public class Main {
.username("johndoe")
.password("password")
.accessToken("accessToken")
- .certificateFile(enim ut cupid)
+ .certificateFile(nostrud sit in)
.certificatePassword("certificatePassword")
.nationalPortalTaxCalculationRegime("nationalPortalTaxCalculationRegime")
.build();
@@ -139,7 +139,7 @@ public class Main {
.email("john.doe@asaas.com.br")
.municipalInscription("21779501")
.simplesNacional(false)
- .culturalProjectsPromoter(true)
+ .culturalProjectsPromoter(false)
.cnae("6209100")
.specialTaxRegime("1")
.serviceListItem("serviceListItem")
@@ -150,7 +150,7 @@ public class Main {
.username("johndoe")
.password("password")
.accessToken("accessToken")
- .certificateFile(enim ut cupid)
+ .certificateFile(nostrud sit in)
.certificatePassword("certificatePassword")
.nationalPortalTaxCalculationRegime("nationalPortalTaxCalculationRegime")
.build();
@@ -245,7 +245,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListNbsCodesParameters requestParameters = ListNbsCodesParameters.builder()
- .offset(5L)
+ .offset(6L)
.limit(10L)
.codeDescription("1.0101")
.build();
diff --git a/documentation/services/InstallmentService.md b/documentation/services/InstallmentService.md
index cb38fe2..3db56b7 100644
--- a/documentation/services/InstallmentService.md
+++ b/documentation/services/InstallmentService.md
@@ -418,7 +418,7 @@ public class Main {
**Return Type**
-`InstallmentPaymentBookResponseDto`
+`byte[]`
**Example Usage Code Snippet**
@@ -427,7 +427,6 @@ import com.asaas.apisdk.AsaasSdk;
import com.asaas.apisdk.config.ApiKeyAuthConfig;
import com.asaas.apisdk.config.AsaasSdkConfig;
import com.asaas.apisdk.models.GenerateInstallmentBookletParameters;
-import com.asaas.apisdk.models.InstallmentPaymentBookResponseDto;
public class Main {
@@ -443,7 +442,7 @@ public class Main {
.order("asc")
.build();
- InstallmentPaymentBookResponseDto response = asaasSdk.installment.generateInstallmentBooklet(
+ byte[] response = asaasSdk.installment.generateInstallmentBooklet(
"2765d086-c7c5-5cca-898a-4262d212587c",
requestParameters
);
diff --git a/documentation/services/InvoiceService.md b/documentation/services/InvoiceService.md
index 73231a7..1d56fc6 100644
--- a/documentation/services/InvoiceService.md
+++ b/documentation/services/InvoiceService.md
@@ -46,7 +46,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListInvoicesParameters requestParameters = ListInvoicesParameters.builder()
- .offset(7L)
+ .offset(10L)
.limit(10L)
.effectiveDateGe("2024-08-03")
.effectiveDateLe("2024-09-03")
@@ -122,7 +122,7 @@ public class Main {
.municipalServiceId("municipalServiceId")
.municipalServiceCode("1.01")
.municipalServiceName("Systems analysis and development")
- .updatePayment(true)
+ .updatePayment(false)
.taxes(invoiceTaxesDto)
.build();
@@ -226,7 +226,7 @@ public class Main {
.value(300D)
.deductions(10D)
.effectiveDate("2024-08-20")
- .updatePayment(false)
+ .updatePayment(true)
.taxes(invoiceTaxesDto)
.build();
diff --git a/documentation/services/MobilePhoneRechargeService.md b/documentation/services/MobilePhoneRechargeService.md
index 3e8469a..d618bcf 100644
--- a/documentation/services/MobilePhoneRechargeService.md
+++ b/documentation/services/MobilePhoneRechargeService.md
@@ -44,7 +44,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListMobileRechargesParameters requestParameters = ListMobileRechargesParameters.builder()
- .offset(8L)
+ .offset(2L)
.limit(10L)
.build();
diff --git a/documentation/services/PaymentDunningService.md b/documentation/services/PaymentDunningService.md
index 711557e..35d0bf1 100644
--- a/documentation/services/PaymentDunningService.md
+++ b/documentation/services/PaymentDunningService.md
@@ -50,7 +50,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListPaymentDunningsParameters requestParameters = ListPaymentDunningsParameters.builder()
- .offset(4L)
+ .offset(6L)
.limit(10L)
.status(PaymentDunningListRequestPaymentDunningStatus.PENDING)
.type(PaymentDunningListRequestPaymentDunningType.CREDIT_BUREAU)
@@ -268,7 +268,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
- EventHistoryListsParameters requestParameters = EventHistoryListsParameters.builder().offset(2L).limit(10L).build();
+ EventHistoryListsParameters requestParameters = EventHistoryListsParameters.builder().offset(8L).limit(10L).build();
PaymentDunningListHistoryResponseDto response = asaasSdk.paymentDunning.eventHistoryLists(
"ce35702d-0d9f-475a-ba46-e251ad265c91",
@@ -318,7 +318,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListPaymentsReceivedParameters requestParameters = ListPaymentsReceivedParameters.builder()
- .offset(1L)
+ .offset(5L)
.limit(10L)
.build();
@@ -369,7 +369,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListPaymentsAvailableForPaymentDunningParameters requestParameters =
- ListPaymentsAvailableForPaymentDunningParameters.builder().offset(4L).limit(10L).build();
+ ListPaymentsAvailableForPaymentDunningParameters.builder().offset(0L).limit(10L).build();
PaymentDunningPaymentsAvailableForDunningResponseDto response =
asaasSdk.paymentDunning.listPaymentsAvailableForPaymentDunning(requestParameters);
diff --git a/documentation/services/PaymentLinkService.md b/documentation/services/PaymentLinkService.md
index f6b6e58..c7b017c 100644
--- a/documentation/services/PaymentLinkService.md
+++ b/documentation/services/PaymentLinkService.md
@@ -50,10 +50,10 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListPaymentsLinksParameters requestParameters = ListPaymentsLinksParameters.builder()
- .offset(9L)
+ .offset(2L)
.limit(10L)
.active(true)
- .includeDeleted(true)
+ .includeDeleted(false)
.name("name")
.externalReference("externalReference")
.build();
@@ -119,7 +119,7 @@ public class Main {
.subscriptionCycle(PaymentLinkSaveRequestCycle.WEEKLY)
.maxInstallmentCount(1L)
.externalReference("1287")
- .notificationEnabled(true)
+ .notificationEnabled(false)
.callback(paymentCallbackRequestDto)
.isAddressRequired(true)
.build();
@@ -227,7 +227,7 @@ public class Main {
.subscriptionCycle(PaymentLinkUpdateRequestCycle.WEEKLY)
.maxInstallmentCount(1L)
.externalReference("2323")
- .notificationEnabled(true)
+ .notificationEnabled(false)
.callback(paymentCallbackRequestDto)
.build();
@@ -403,11 +403,11 @@ public class Main {
PaymentLinkFileSaveRequestDto paymentLinkFileSaveRequestDto = PaymentLinkFileSaveRequestDto.builder()
.main(true)
- .image(dolor laborum)
+ .image(ipsum nulla m)
.build();
PaymentLinkFileSaveRequestDto paymentLinkFileSaveRequestDto = PaymentLinkFileSaveRequestDto.builder()
.main(true)
- .image(dolor laborum)
+ .image(ipsum nulla m)
.build();
PaymentLinkFileGetResponseDto response = asaasSdk.paymentLink.addAnImageToAPaymentsLink("725104409743", paymentLinkFileSaveRequestDto, paymentLinkFileSaveRequestDto);
diff --git a/documentation/services/PixService.md b/documentation/services/PixService.md
index d19df03..665ba77 100644
--- a/documentation/services/PixService.md
+++ b/documentation/services/PixService.md
@@ -47,7 +47,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListKeysParameters requestParameters = ListKeysParameters.builder()
- .offset(8L)
+ .offset(7L)
.limit(10L)
.status(PixAddressKeyListRequestPixAddressKeyStatus.AWAITING_ACTIVATION)
.statusList("statusList")
@@ -227,7 +227,7 @@ public class Main {
.value(50D)
.format(Format.ALL)
.expirationDate("2023-05-05 14:20:50")
- .expirationSeconds(2L)
+ .expirationSeconds(6L)
.allowsMultiplePayments(true)
.externalReference("externalReference")
.build();
diff --git a/documentation/services/PixTransactionService.md b/documentation/services/PixTransactionService.md
index bd09cd6..d2890f8 100644
--- a/documentation/services/PixTransactionService.md
+++ b/documentation/services/PixTransactionService.md
@@ -46,7 +46,7 @@ public class Main {
PixTransactionQrCodeSaveRequestDto pixTransactionQrCodeSaveRequestDto = PixTransactionQrCodeSaveRequestDto.builder()
.payload("payload")
- .changeValue(4.89D)
+ .changeValue(8.23D)
.build();
PixTransactionSaveRequestDto pixTransactionSaveRequestDto = PixTransactionSaveRequestDto.builder()
@@ -101,7 +101,7 @@ public class Main {
.payload(
"00020101021226730014br.gov.bcb.pix2551pix-h.asaas.com/pixqrcode/cobv/pay_76575613967995145204000053039865802BR5905ASAAS6009Joinville61088922827162070503***63045E7A"
)
- .changeValue(7.29D)
+ .changeValue(7.59D)
.build();
PixQrCodeDecodeResponseDto response = asaasSdk.pixTransaction.decodeAQrcodeForPayment(pixQrCodeDecodeRequestDto);
@@ -190,7 +190,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListTransactionsParameters requestParameters = ListTransactionsParameters.builder()
- .offset(4L)
+ .offset(1L)
.limit(10L)
.status(PixTransactionListRequestPixTransactionStatus.AWAITING_BALANCE_VALIDATION)
.type(PixTransactionListRequestPixTransactionType.DEBIT)
diff --git a/documentation/services/RecurringPixService.md b/documentation/services/RecurringPixService.md
index 8b2a59d..86311f2 100644
--- a/documentation/services/RecurringPixService.md
+++ b/documentation/services/RecurringPixService.md
@@ -45,7 +45,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListRecurrencesParameters requestParameters = ListRecurrencesParameters.builder()
- .offset(6L)
+ .offset(7L)
.limit(10L)
.status(RecurringPixTransactionListRequestPixRecurringTransactionStatus.AWAITING_CRITICAL_ACTION_AUTHORIZATION)
.value(100D)
@@ -181,7 +181,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListRecurrenceItemsParameters requestParameters = ListRecurrenceItemsParameters.builder()
- .offset(3L)
+ .offset(6L)
.limit(10L)
.build();
diff --git a/documentation/services/SubaccountService.md b/documentation/services/SubaccountService.md
index 7b232e7..afcb781 100644
--- a/documentation/services/SubaccountService.md
+++ b/documentation/services/SubaccountService.md
@@ -44,7 +44,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListSubaccountsParameters requestParameters = ListSubaccountsParameters.builder()
- .offset(6L)
+ .offset(0L)
.limit(10L)
.cpfCnpj("cpfCnpj")
.email("email")
diff --git a/documentation/services/SubscriptionService.md b/documentation/services/SubscriptionService.md
index a5bb6f8..9ebcd8a 100644
--- a/documentation/services/SubscriptionService.md
+++ b/documentation/services/SubscriptionService.md
@@ -12,7 +12,7 @@ A list of all methods in the `SubscriptionService` service. Click on the method
| [removeSubscription](#removesubscription) | |
| [updateSubscriptionCreditCard](#updatesubscriptioncreditcard) | This endpoint updates the subscription's credit card without triggering an immediate charge. Additionally, all pending charges linked to the subscription are also updated. |
| [listPaymentsOfASubscription](#listpaymentsofasubscription) | |
-| [generateSignatureBooklet](#generatesignaturebooklet) | |
+| [generateSubscriptionBooklet](#generatesubscriptionbooklet) | |
| [retrieveConfigurationForIssuanceOfInvoices](#retrieveconfigurationforissuanceofinvoices) | |
| [createConfigurationForIssuanceOfInvoices](#createconfigurationforissuanceofinvoices) | |
| [updateConfigurationForIssuanceOfInvoices](#updateconfigurationforissuanceofinvoices) | |
@@ -55,7 +55,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
ListSubscriptionsParameters requestParameters = ListSubscriptionsParameters.builder()
- .offset(10L)
+ .offset(1L)
.limit(10L)
.customer("customer")
.customerGroupName("customerGroupName")
@@ -135,8 +135,8 @@ public class Main {
SubscriptionSplitRequestDto subscriptionSplitRequestDto = SubscriptionSplitRequestDto.builder()
.walletId("walletId")
- .fixedValue(8.29D)
- .percentualValue(7.44D)
+ .fixedValue(3.49D)
+ .percentualValue(7.56D)
.externalReference("externalReference")
.description("description")
.build();
@@ -159,7 +159,7 @@ public class Main {
.cycle(SubscriptionSaveRequestCycle.WEEKLY)
.description("Pro Plan Subscription")
.endDate("endDate")
- .maxPayments(10L)
+ .maxPayments(6L)
.externalReference("externalReference")
.split(splitList)
.callback(paymentCallbackRequestDto)
@@ -234,8 +234,8 @@ public class Main {
SubscriptionSplitRequestDto subscriptionSplitRequestDto = SubscriptionSplitRequestDto.builder()
.walletId("walletId")
- .fixedValue(8.29D)
- .percentualValue(7.44D)
+ .fixedValue(3.49D)
+ .percentualValue(7.56D)
.externalReference("externalReference")
.description("description")
.build();
@@ -278,7 +278,7 @@ public class Main {
.cycle(SubscriptionSaveWithCreditCardRequestCycle.WEEKLY)
.description("Pro Plan Subscription")
.endDate("endDate")
- .maxPayments(0L)
+ .maxPayments(7L)
.externalReference("externalReference")
.split(splitList)
.callback(paymentCallbackRequestDto)
@@ -399,8 +399,8 @@ public class Main {
SubscriptionSplitRequestDto subscriptionSplitRequestDto = SubscriptionSplitRequestDto.builder()
.walletId("walletId")
- .fixedValue(8.29D)
- .percentualValue(7.44D)
+ .fixedValue(3.49D)
+ .percentualValue(7.56D)
.externalReference("externalReference")
.description("description")
.build();
@@ -605,21 +605,21 @@ public class Main {
```
-## generateSignatureBooklet
+## generateSubscriptionBooklet
- HTTP Method: `GET`
- Endpoint: `/v3/subscriptions/{id}/paymentBook`
**Parameters**
-| Name | Type | Required | Description |
-| :---------------- | :------------------------------------------------------------------------------------ | :------- | :-------------------------------------- |
-| id | String | ✅ | Unique subscription identifier in Asaas |
-| requestParameters | [GenerateSignatureBookletParameters](../models/GenerateSignatureBookletParameters.md) | ❌ | Request Parameters Object |
+| Name | Type | Required | Description |
+| :---------------- | :------------------------------------------------------------------------------------------ | :------- | :-------------------------------------- |
+| id | String | ✅ | Unique subscription identifier in Asaas |
+| requestParameters | [GenerateSubscriptionBookletParameters](../models/GenerateSubscriptionBookletParameters.md) | ❌ | Request Parameters Object |
**Return Type**
-`Object`
+`byte[]`
**Example Usage Code Snippet**
@@ -627,7 +627,7 @@ public class Main {
import com.asaas.apisdk.AsaasSdk;
import com.asaas.apisdk.config.ApiKeyAuthConfig;
import com.asaas.apisdk.config.AsaasSdkConfig;
-import com.asaas.apisdk.models.GenerateSignatureBookletParameters;
+import com.asaas.apisdk.models.GenerateSubscriptionBookletParameters;
public class Main {
@@ -638,14 +638,14 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
- GenerateSignatureBookletParameters requestParameters = GenerateSignatureBookletParameters.builder()
- .month(2L)
- .year(5L)
+ GenerateSubscriptionBookletParameters requestParameters = GenerateSubscriptionBookletParameters.builder()
+ .month(10L)
+ .year(10L)
.sort("sort")
.order("asc")
.build();
- Object response = asaasSdk.subscription.generateSignatureBooklet("sub_VXJBYgP2u0eO", requestParameters);
+ byte[] response = asaasSdk.subscription.generateSubscriptionBooklet("sub_VXJBYgP2u0eO", requestParameters);
System.out.println(response);
}
@@ -749,8 +749,8 @@ public class Main {
.updatePayment(true)
.deductions(55D)
.effectiveDatePeriod(SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.ON_PAYMENT_CONFIRMATION)
- .receivedOnly(true)
- .daysBeforeDueDate(9L)
+ .receivedOnly(false)
+ .daysBeforeDueDate(2L)
.observations("Regarding March work")
.taxes(invoiceTaxesDto)
.build();
@@ -817,7 +817,7 @@ public class Main {
.deductions(55D)
.effectiveDatePeriod(SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.ON_PAYMENT_CONFIRMATION)
.receivedOnly(true)
- .daysBeforeDueDate(10L)
+ .daysBeforeDueDate(2L)
.observations("Regarding March work")
.taxes(invoiceTaxesDto)
.build();
@@ -911,7 +911,7 @@ public class Main {
ListInvoicesForSubscriptionChargesParameters requestParameters =
ListInvoicesForSubscriptionChargesParameters.builder()
- .offset(0L)
+ .offset(5L)
.limit(10L)
.effectiveDateGe("2024-08-20")
.effectiveDateLe("2024-08-20")
diff --git a/documentation/services/WebhookService.md b/documentation/services/WebhookService.md
index 5ba5a95..b986061 100644
--- a/documentation/services/WebhookService.md
+++ b/documentation/services/WebhookService.md
@@ -45,7 +45,7 @@ public class Main {
AsaasSdk asaasSdk = new AsaasSdk(config);
- ListWebhooksParameters requestParameters = ListWebhooksParameters.builder().offset(10L).limit(10L).build();
+ ListWebhooksParameters requestParameters = ListWebhooksParameters.builder().offset(5L).limit(10L).build();
WebhookConfigListResponseDto response = asaasSdk.webhook.listWebhooks(requestParameters);
diff --git a/examples/pom.xml b/examples/pom.xml
index 760d198..a34c227 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -22,7 +22,7 @@
com.asaas
api-sdk
- 1.0.2
+ 1.0.3
diff --git a/pom.xml b/pom.xml
index 4033e3c..ee354e4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
com.asaas
api-sdk
- 1.0.2
+ 1.0.3
${project.groupId}:${project.artifactId}
diff --git a/src/main/java/com/asaas/apisdk/models/GenerateSignatureBookletParameters.java b/src/main/java/com/asaas/apisdk/models/GenerateSubscriptionBookletParameters.java
similarity index 84%
rename from src/main/java/com/asaas/apisdk/models/GenerateSignatureBookletParameters.java
rename to src/main/java/com/asaas/apisdk/models/GenerateSubscriptionBookletParameters.java
index 7ed6b02..8033b1a 100644
--- a/src/main/java/com/asaas/apisdk/models/GenerateSignatureBookletParameters.java
+++ b/src/main/java/com/asaas/apisdk/models/GenerateSubscriptionBookletParameters.java
@@ -18,7 +18,7 @@
@ToString
@EqualsAndHashCode
@Jacksonized
-public class GenerateSignatureBookletParameters {
+public class GenerateSubscriptionBookletParameters {
/**
* Final month for generating the booklet
@@ -65,12 +65,12 @@ public String getOrder() {
}
// Overwrite lombok builder methods
- public static class GenerateSignatureBookletParametersBuilder {
+ public static class GenerateSubscriptionBookletParametersBuilder {
private JsonNullable month = JsonNullable.undefined();
@JsonProperty("month")
- public GenerateSignatureBookletParametersBuilder month(Long value) {
+ public GenerateSubscriptionBookletParametersBuilder month(Long value) {
if (value == null) {
throw new IllegalStateException("month cannot be null");
}
@@ -81,7 +81,7 @@ public GenerateSignatureBookletParametersBuilder month(Long value) {
private JsonNullable year = JsonNullable.undefined();
@JsonProperty("year")
- public GenerateSignatureBookletParametersBuilder year(Long value) {
+ public GenerateSubscriptionBookletParametersBuilder year(Long value) {
if (value == null) {
throw new IllegalStateException("year cannot be null");
}
@@ -92,7 +92,7 @@ public GenerateSignatureBookletParametersBuilder year(Long value) {
private JsonNullable sort = JsonNullable.undefined();
@JsonProperty("sort")
- public GenerateSignatureBookletParametersBuilder sort(String value) {
+ public GenerateSubscriptionBookletParametersBuilder sort(String value) {
if (value == null) {
throw new IllegalStateException("sort cannot be null");
}
@@ -103,7 +103,7 @@ public GenerateSignatureBookletParametersBuilder sort(String value) {
private JsonNullable order = JsonNullable.undefined();
@JsonProperty("order")
- public GenerateSignatureBookletParametersBuilder order(String value) {
+ public GenerateSubscriptionBookletParametersBuilder order(String value) {
if (value == null) {
throw new IllegalStateException("order cannot be null");
}
diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentPaymentBookResponseDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentPaymentBookResponseDto.java
deleted file mode 100644
index bba8a34..0000000
--- a/src/main/java/com/asaas/apisdk/models/InstallmentPaymentBookResponseDto.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// This file was generated by liblab | https://liblab.com/
-
-package com.asaas.apisdk.models;
-
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import lombok.Builder;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.ToString;
-import lombok.With;
-import lombok.extern.jackson.Jacksonized;
-import org.openapitools.jackson.nullable.JsonNullable;
-
-@Data
-@Builder
-@With
-@ToString
-@EqualsAndHashCode
-@Jacksonized
-public class InstallmentPaymentBookResponseDto {
-
- /**
- * File
- */
- @JsonProperty("file")
- private JsonNullable file;
-
- /**
- * File name
- */
- @JsonProperty("fileName")
- private JsonNullable fileName;
-
- @JsonIgnore
- public byte[] getFile() {
- return file.orElse(null);
- }
-
- @JsonIgnore
- public String getFileName() {
- return fileName.orElse(null);
- }
-
- // Overwrite lombok builder methods
- public static class InstallmentPaymentBookResponseDtoBuilder {
-
- private JsonNullable file = JsonNullable.undefined();
-
- @JsonProperty("file")
- public InstallmentPaymentBookResponseDtoBuilder file(byte[] value) {
- if (value == null) {
- throw new IllegalStateException("file cannot be null");
- }
- this.file = JsonNullable.of(value);
- return this;
- }
-
- private JsonNullable fileName = JsonNullable.undefined();
-
- @JsonProperty("fileName")
- public InstallmentPaymentBookResponseDtoBuilder fileName(String value) {
- this.fileName = JsonNullable.of(value);
- return this;
- }
- }
-}
diff --git a/src/main/java/com/asaas/apisdk/services/InstallmentService.java b/src/main/java/com/asaas/apisdk/services/InstallmentService.java
index 3852f07..8204b05 100644
--- a/src/main/java/com/asaas/apisdk/services/InstallmentService.java
+++ b/src/main/java/com/asaas/apisdk/services/InstallmentService.java
@@ -14,7 +14,6 @@
import com.asaas.apisdk.models.InstallmentDeleteResponseDto;
import com.asaas.apisdk.models.InstallmentGetResponseDto;
import com.asaas.apisdk.models.InstallmentListResponseDto;
-import com.asaas.apisdk.models.InstallmentPaymentBookResponseDto;
import com.asaas.apisdk.models.InstallmentSaveRequestDto;
import com.asaas.apisdk.models.InstallmentSaveWithCreditCardRequestDto;
import com.asaas.apisdk.models.InstallmentUpdateSplitRequestDto;
@@ -367,16 +366,16 @@ private Request buildListPaymentsOfAInstallmentRequest(
*
* @param id String Unique installment identifier in Asaas
* @param requestParameters {@link GenerateInstallmentBookletParameters} Request Parameters Object
- * @return response of {@code InstallmentPaymentBookResponseDto}
+ * @return response of {@code byte[]}
*/
- public InstallmentPaymentBookResponseDto generateInstallmentBooklet(
+ public byte[] generateInstallmentBooklet(
@NonNull String id,
@NonNull GenerateInstallmentBookletParameters requestParameters
) throws ApiError {
this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class);
Request request = this.buildGenerateInstallmentBookletRequest(id, requestParameters);
Response response = this.execute(request);
- return ModelConverter.convert(response, new TypeReference() {});
+ return ModelConverter.readBytes(response);
}
/**
@@ -384,18 +383,16 @@ public InstallmentPaymentBookResponseDto generateInstallmentBooklet(
*
* @param id String Unique installment identifier in Asaas
* @param requestParameters {@link GenerateInstallmentBookletParameters} Request Parameters Object
- * @return response of {@code CompletableFuture}
+ * @return response of {@code CompletableFuture}
*/
- public CompletableFuture generateInstallmentBookletAsync(
+ public CompletableFuture generateInstallmentBookletAsync(
@NonNull String id,
@NonNull GenerateInstallmentBookletParameters requestParameters
) throws ApiError {
this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class);
Request request = this.buildGenerateInstallmentBookletRequest(id, requestParameters);
CompletableFuture futureResponse = this.executeAsync(request);
- return futureResponse.thenApplyAsync(response ->
- ModelConverter.convert(response, new TypeReference() {})
- );
+ return futureResponse.thenApplyAsync(response -> ModelConverter.readBytes(response));
}
private Request buildGenerateInstallmentBookletRequest(
diff --git a/src/main/java/com/asaas/apisdk/services/SubscriptionService.java b/src/main/java/com/asaas/apisdk/services/SubscriptionService.java
index 6d3cb0d..b90334a 100644
--- a/src/main/java/com/asaas/apisdk/services/SubscriptionService.java
+++ b/src/main/java/com/asaas/apisdk/services/SubscriptionService.java
@@ -10,7 +10,7 @@
import com.asaas.apisdk.http.ModelConverter;
import com.asaas.apisdk.http.util.RequestBuilder;
import com.asaas.apisdk.models.ErrorResponseDto;
-import com.asaas.apisdk.models.GenerateSignatureBookletParameters;
+import com.asaas.apisdk.models.GenerateSubscriptionBookletParameters;
import com.asaas.apisdk.models.InvoiceListResponseDto;
import com.asaas.apisdk.models.ListInvoicesForSubscriptionChargesParameters;
import com.asaas.apisdk.models.ListPaymentsOfASubscriptionParameters;
@@ -490,39 +490,39 @@ private Request buildListPaymentsOfASubscriptionRequest(
* Generate subscription booklet
*
* @param id String Unique subscription identifier in Asaas
- * @param requestParameters {@link GenerateSignatureBookletParameters} Request Parameters Object
- * @return response of {@code Object}
+ * @param requestParameters {@link GenerateSubscriptionBookletParameters} Request Parameters Object
+ * @return response of {@code byte[]}
*/
- public Object generateSignatureBooklet(
+ public byte[] generateSubscriptionBooklet(
@NonNull String id,
- @NonNull GenerateSignatureBookletParameters requestParameters
+ @NonNull GenerateSubscriptionBookletParameters requestParameters
) throws ApiError {
this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class);
- Request request = this.buildGenerateSignatureBookletRequest(id, requestParameters);
+ Request request = this.buildGenerateSubscriptionBookletRequest(id, requestParameters);
Response response = this.execute(request);
- return ModelConverter.convert(response, new TypeReference