From c5b5749a470312705cb22dff33971ba4b3551334 Mon Sep 17 00:00:00 2001 From: asaasdev <15790575+DouglasGiovanella@users.noreply.github.com> Date: Tue, 17 Jun 2025 18:18:44 +0000 Subject: [PATCH] liblab SDK update for version v1.0.1 --- .manifest.json | 28 ++-- README.md | 8 +- .../ApiCustomerUpdateRequestGetResponseDto.md | 47 ++++--- examples/pom.xml | 2 +- pom.xml | 2 +- .../ApiAccountDocumentDeleteResponseDto.java | 6 - .../ApiAccountDocumentGetResponseDto.java | 6 - .../ApiAccountDocumentGroupResponseDto.java | 27 ---- ...ntDocumentGroupResponsibleResponseDto.java | 6 - .../ApiAccountDocumentSaveRequestDto.java | 3 - .../ApiAccountDocumentShowResponseDto.java | 6 - .../ApiBankSlipBillingInfoResponseDto.java | 15 -- .../apisdk/models/ApiBillGetResponseDto.java | 54 ------- .../apisdk/models/ApiBillListResponseDto.java | 18 --- .../apisdk/models/ApiBillSaveRequestDto.java | 24 ---- ...piBillSimulateBankSlipInfoResponseDto.java | 51 ------- .../models/ApiBillSimulateRequestDto.java | 6 - .../models/ApiBillSimulateResponseDto.java | 9 -- .../ApiChargebackCreditCardResponseDto.java | 6 - .../models/ApiChargebackListResponseDto.java | 18 --- .../ApiChargebackSaveDisputeResponseDto.java | 9 -- .../ApiCheckoutSessionCustomerDataDto.java | 30 ---- .../ApiCheckoutSessionInstallmentDto.java | 3 - .../models/ApiCheckoutSessionItemsDto.java | 3 - .../models/ApiCheckoutSessionResponseDto.java | 27 ---- .../ApiCheckoutSessionSaveRequestDto.java | 46 +++--- .../models/ApiCheckoutSessionSplitDto.java | 9 -- .../ApiCheckoutSessionSubscriptionDto.java | 9 -- .../ApiCreditBureauReportGetResponseDto.java | 18 --- .../ApiCreditBureauReportListResponseDto.java | 18 --- .../ApiCreditBureauReportSaveRequestDto.java | 6 - .../ApiCreditCardHolderInfoRequestDto.java | 6 - .../ApiCreditCardTokenizeRequestDto.java | 43 +++++- .../ApiCreditCardTokenizeResponseDto.java | 9 -- .../ApiCustomerAccountDeleteResponseDto.java | 6 - .../ApiCustomerAccountGetResponseDto.java | 72 ---------- .../ApiCustomerAccountListResponseDto.java | 18 --- .../models/ApiCustomerAccountNumberDto.java | 9 -- .../ApiCustomerAccountSaveRequestDto.java | 51 ------- .../ApiCustomerAccountUpdateRequestDto.java | 57 -------- .../ApiCustomerFiscalInfoGetResponseDto.java | 51 ------- ...nfoListInvoiceNbsCodesResponseDataDto.java | 6 - ...calInfoListInvoiceNbsCodesResponseDto.java | 18 --- ...oListMunicipalServicesResponseDataDto.java | 9 -- ...lInfoListMunicipalServicesResponseDto.java | 18 --- ...calInfoMunicipalOptionsGetResponseDto.java | 39 ------ ...NationalPortalTaxCalculationRegimeDto.java | 6 - ...oMunicipalOptionsSpecialTaxRegimesDto.java | 6 - .../ApiCustomerFiscalInfoSaveRequestDto.java | 42 ------ ...nfoUpdateUseNationalPortalResponseDto.java | 3 - .../models/ApiCustomerGetResponseDto.java | 72 ---------- .../ApiCustomerInvoiceCancelRequestDto.java | 3 - .../ApiCustomerInvoiceGetResponseDto.java | 75 ---------- .../ApiCustomerInvoiceListResponseDto.java | 18 --- .../ApiCustomerInvoiceSaveRequestDto.java | 57 +++++--- .../ApiCustomerInvoiceUpdateRequestDto.java | 24 ---- .../models/ApiCustomerListResponseDto.java | 18 --- .../ApiCustomerPaymentCustodyConfigDto.java | 6 - ...rUpdatePaymentCustodyConfigRequestDto.java | 6 - .../models/ApiCustomerSaveRequestDto.java | 21 --- .../models/ApiCustomerSaveResponseDto.java | 75 ---------- .../ApiCustomerUpdateRequestCityDto.java | 21 --- ...stCommercialInfoExpirationResponseDto.java | 6 - ...piCustomerUpdateRequestGetResponseDto.java | 83 +++-------- ...piCustomerUpdateRequestSaveRequestDto.java | 42 ------ .../apisdk/models/ApiErrorResponseDto.java | 3 - .../models/ApiErrorResponseItemDto.java | 6 - .../models/ApiFinanceBalanceResponseDto.java | 3 - ...inanceGetPaymentStatisticsResponseDto.java | 9 -- ...iFinanceGetSplitStatisticsResponseDto.java | 6 - ...ApiFinancialTransactionGetResponseDto.java | 45 ------ ...piFinancialTransactionListResponseDto.java | 18 --- .../ApiInstallmentDeleteResponseDto.java | 6 - .../models/ApiInstallmentGetResponseDto.java | 57 -------- .../models/ApiInstallmentListResponseDto.java | 18 --- .../ApiInstallmentRefundResponseDto.java | 27 ---- .../models/ApiInstallmentSaveRequestDto.java | 27 ---- ...stallmentSaveWithCreditCardRequestDto.java | 92 +++++++----- .../ApiInstallmentSplitGetResponseDto.java | 30 ---- .../models/ApiInstallmentSplitRequestDto.java | 18 --- .../ApiInstallmentUpdateSplitRequestDto.java | 3 - .../ApiInstallmentUpdateSplitResponseDto.java | 3 - ...ePhoneRechargeFindProviderResponseDto.java | 6 - ...RechargeFindProviderResponseValuesDto.java | 15 -- .../ApiMobilePhoneRechargeGetResponseDto.java | 18 --- ...ApiMobilePhoneRechargeListResponseDto.java | 18 --- ...ApiMyAccountDisableAccountResponseDto.java | 3 - ...GetAccountFeesAnticipationBankSlipDto.java | 3 - ...tAccountFeesAnticipationCreditCardDto.java | 6 - ...yAccountGetAccountFeesAnticipationDto.java | 6 - ...ntGetAccountFeesCreditBureauReportDto.java | 6 - .../ApiMyAccountGetAccountFeesInvoiceDto.java | 3 - ...yAccountGetAccountFeesNotificationDto.java | 9 -- ...countGetAccountFeesPaymentBankSlipDto.java | 12 -- ...untGetAccountFeesPaymentCreditCardDto.java | 33 ----- ...ountGetAccountFeesPaymentDebitCardDto.java | 9 -- .../ApiMyAccountGetAccountFeesPaymentDto.java | 12 -- ...iMyAccountGetAccountFeesPaymentPixDto.java | 24 ---- ...ApiMyAccountGetAccountFeesResponseDto.java | 18 --- ...ApiMyAccountGetAccountFeesTransferDto.java | 9 -- ...MyAccountGetAccountFeesTransferPixDto.java | 12 -- ...MyAccountGetAccountFeesTransferTedDto.java | 6 - ...iMyAccountGetAccountNumberResponseDto.java | 9 -- .../ApiMyAccountGetStatusResponseDto.java | 15 -- .../ApiNotificationBatchUpdateRequestDto.java | 3 - ...ApiNotificationBatchUpdateResponseDto.java | 3 - .../models/ApiNotificationGetResponseDto.java | 39 ------ .../ApiNotificationListResponseDto.java | 18 --- .../ApiNotificationUpdateRequestDto.java | 24 ---- .../ApiPaymentBankSlipRefundResponseDto.java | 3 - .../ApiPaymentBillingInfoResponseDto.java | 9 -- .../models/ApiPaymentCallbackRequestDto.java | 3 - .../ApiPaymentCampaignDeleteResponseDto.java | 6 - ...iPaymentCampaignFileDeleteResponseDto.java | 6 - .../ApiPaymentCampaignFileGetResponseDto.java | 9 -- ...piPaymentCampaignFileImageResponseDto.java | 15 -- ...ApiPaymentCampaignFileListResponseDto.java | 18 --- .../ApiPaymentCampaignFileSaveRequestDto.java | 3 - .../ApiPaymentCampaignGetResponseDto.java | 51 ------- .../ApiPaymentCampaignListResponseDto.java | 18 --- .../ApiPaymentCampaignSaveRequestDto.java | 30 ---- .../ApiPaymentCampaignUpdateRequestDto.java | 39 ------ .../ApiPaymentChargebackResponseDto.java | 36 ----- ...piPaymentCheckoutConfigGetResponseDto.java | 24 ---- ...piPaymentCheckoutConfigSaveRequestDto.java | 3 - .../ApiPaymentCustodyGetResponseDto.java | 15 -- .../models/ApiPaymentDeleteResponseDto.java | 6 - .../apisdk/models/ApiPaymentDiscountDto.java | 9 -- .../ApiPaymentDocumentDeleteResponseDto.java | 6 - .../ApiPaymentDocumentFileResponseDto.java | 18 --- .../ApiPaymentDocumentGetResponseDto.java | 21 --- .../ApiPaymentDocumentListResponseDto.java | 18 --- .../ApiPaymentDunningCancelResponseDto.java | 48 ------- ...mentDunningListHistoryResponseDataDto.java | 9 -- ...iPaymentDunningListHistoryResponseDto.java | 18 --- ...ingListPartialPaymentsResponseDataDto.java | 9 -- ...DunningListPartialPaymentsResponseDto.java | 18 --- .../ApiPaymentDunningListResponseDto.java | 18 --- ...ntsAvailableForDunningResponseDataDto.java | 21 --- ...ningResponseDataTypeSimulationItemDto.java | 18 --- ...aymentsAvailableForDunningResponseDto.java | 18 --- ...aymentDunningSaveDocumentsResponseDto.java | 48 ------- .../ApiPaymentDunningSaveRequestDto.java | 12 -- .../ApiPaymentDunningShowResponseDto.java | 48 ------- .../ApiPaymentDunningSimulateResponseDto.java | 9 -- ...SimulateResponseTypeSimulationItemDto.java | 18 --- .../models/ApiPaymentFineRequestDto.java | 6 - .../models/ApiPaymentFineResponseDto.java | 3 - .../models/ApiPaymentGetResponseDto.java | 132 ------------------ ...PaymentIdentificationFieldResponseDto.java | 9 -- .../models/ApiPaymentInterestRequestDto.java | 3 - .../models/ApiPaymentInterestResponseDto.java | 3 - .../models/ApiPaymentLeanGetResponseDto.java | 99 ------------- .../models/ApiPaymentLeanListResponseDto.java | 18 --- ...mentLeanSaveWithCreditCardResponseDto.java | 102 -------------- ...PaymentLimitsResponseCreationDailyDto.java | 9 -- .../ApiPaymentLimitsResponseCreationDto.java | 3 - .../models/ApiPaymentLimitsResponseDto.java | 3 - .../models/ApiPaymentListResponseDto.java | 18 --- ...ApiPaymentPayWithCreditCardRequestDto.java | 43 +++++- .../ApiPaymentPixQrCodeResponseDto.java | 9 -- .../ApiPaymentReceiveInCashRequestDto.java | 9 -- .../ApiPaymentRefundGetResponseDto.java | 24 ---- .../ApiPaymentRefundListResponseDto.java | 18 --- .../models/ApiPaymentRefundRequestDto.java | 6 - .../ApiPaymentRefundedSplitResponseDto.java | 9 -- .../models/ApiPaymentSaveRequestDto.java | 36 ----- ...aymentSaveWithCreditCardCreditCardDto.java | 9 -- ...piPaymentSaveWithCreditCardRequestDto.java | 48 ------- ...ApiPaymentSimulateBankSlipResponseDto.java | 9 -- ...iPaymentSimulateCreditCardResponseDto.java | 12 -- ...PaymentSimulateInstallmentResponseDto.java | 6 - .../ApiPaymentSimulatePixResponseDto.java | 12 -- .../models/ApiPaymentSimulateRequestDto.java | 3 - .../models/ApiPaymentSimulateResponseDto.java | 12 -- .../models/ApiPaymentSplitGetResponseDto.java | 27 ---- .../ApiPaymentSplitListResponseDto.java | 18 --- .../models/ApiPaymentSplitRequestDto.java | 15 -- .../models/ApiPaymentStatusResponseDto.java | 3 - .../models/ApiPaymentUpdateRequestDto.java | 27 ---- .../ApiPaymentViewingInfoResponseDto.java | 6 - .../ApiPixAddressKeyGetResponseDto.java | 24 ---- .../ApiPixAddressKeyListResponseDto.java | 3 - .../ApiPixAddressKeyQrCodeGetResponseDto.java | 6 - .../ApiPixOriginalTransactionResponseDto.java | 12 -- .../models/ApiPixQrCodeDecodeReceiverDto.java | 21 --- .../models/ApiPixQrCodeDecodeRequestDto.java | 3 - .../models/ApiPixQrCodeDecodeResponseDto.java | 63 --------- .../models/ApiPixQrCodeDeleteResponseDto.java | 6 - .../models/ApiPixQrCodeSaveRequestDto.java | 24 ---- .../models/ApiPixQrCodeSaveResponseDto.java | 18 --- ...ixTokenBucketGetAddressKeyResponseDto.java | 6 - ...TransactionExternalAccountResponseDto.java | 18 --- .../ApiPixTransactionGetResponseDto.java | 84 ----------- .../ApiPixTransactionListResponseDto.java | 18 --- ...iPixTransactionQrCodePayerResponseDto.java | 6 - .../ApiPixTransactionQrCodeResponseDto.java | 24 ---- ...ApiPixTransactionQrCodeSaveRequestDto.java | 3 - ...ingCheckoutScheduleExternalAccountDto.java | 12 -- ...ingCheckoutScheduleGetItemResponseDto.java | 27 ---- ...curringCheckoutScheduleGetResponseDto.java | 30 ---- ...gCheckoutScheduleListItemsResponseDto.java | 3 - ...urringCheckoutScheduleListResponseDto.java | 18 --- .../ApiPixTransactionSaveRequestDto.java | 27 +++- ...shNotificationConfigDeleteResponseDto.java | 6 - ...iPushNotificationConfigGetResponseDto.java | 30 ---- ...PushNotificationConfigListResponseDto.java | 18 --- ...iPushNotificationConfigSaveRequestDto.java | 27 ---- ...ushNotificationConfigUpdateRequestDto.java | 21 --- ...ticipationConfigurationGetResponseDto.java | 3 - ...cipationConfigurationUpdateRequestDto.java | 3 - ...iReceivableAnticipationGetResponseDto.java | 42 ------ ...ableAnticipationLimitsInfoResponseDto.java | 6 - ...ceivableAnticipationLimitsResponseDto.java | 6 - ...ReceivableAnticipationListResponseDto.java | 18 --- ...iReceivableAnticipationSaveRequestDto.java | 6 - ...eivableAnticipationSimulateRequestDto.java | 6 - ...ivableAnticipationSimulateResponseDto.java | 30 ---- ...ubscriptionConfigureInvoiceRequestDto.java | 30 ---- ...riptionDeleteInvoiceConfigResponseDto.java | 6 - .../ApiSubscriptionDeleteResponseDto.java | 6 - .../models/ApiSubscriptionGetResponseDto.java | 60 -------- ...bscriptionInvoiceConfigGetResponseDto.java | 27 ---- ...criptionInvoiceConfigUpdateRequestDto.java | 18 --- .../ApiSubscriptionListResponseDto.java | 18 --- .../models/ApiSubscriptionSaveRequestDto.java | 27 ---- ...scriptionSaveWithCreditCardRequestDto.java | 88 +++++++----- ...criptionSaveWithCreditCardResponseDto.java | 63 --------- .../ApiSubscriptionSplitRequestDto.java | 12 -- .../ApiSubscriptionSplitResponseDto.java | 21 --- ...ubscriptionUpdateCreditCardRequestDto.java | 42 +++++- .../ApiSubscriptionUpdateRequestDto.java | 39 ------ .../ApiTransferBankAccountGetResponseDto.java | 27 ---- .../ApiTransferBankAccountSaveRequestDto.java | 15 -- .../models/ApiTransferBankGetResponseDto.java | 9 -- .../models/ApiTransferGetResponseDto.java | 57 -------- .../models/ApiTransferListResponseDto.java | 18 --- .../ApiTransferRecurringSaveRequestDto.java | 6 - ...ransferSaveInternalTransferAccountDto.java | 15 -- ...ransferSaveInternalTransferRequestDto.java | 3 - ...ansferSaveInternalTransferResponseDto.java | 60 -------- .../models/ApiTransferSaveRequestDto.java | 24 ---- .../models/ApiWalletGetResponseDto.java | 6 - .../models/ApiWalletShowResponseDto.java | 18 --- .../SimulateAPaymentDunningParameters.java | 3 - 245 files changed, 377 insertions(+), 4692 deletions(-) diff --git a/.manifest.json b/.manifest.json index 453f2ac..b1f1aa2 100644 --- a/.manifest.json +++ b/.manifest.json @@ -1,11 +1,11 @@ { "liblabVersion": "2.25.26", - "date": "2025-06-13T15:12:47.401Z", + "date": "2025-06-17T18:18:14.226Z", "config": { "apiId": 2190, "baseUrl": "https://api.asaas.com/", "sdkName": "asaas-sdk", - "sdkVersion": "1.0.0", + "sdkVersion": "1.0.1", "languages": ["java"], "auth": ["apikey"], "docs": [], @@ -73,7 +73,7 @@ "artifactId": "api-sdk", "githubRepoName": "asaas-api-sdk-java", "targetBranch": "master", - "sdkVersion": "1.0.0", + "sdkVersion": "1.0.1", "homepage": "https://asaas.com", "developers": [ { @@ -101,7 +101,7 @@ "ignoreFiles": [], "liblabVersion": "2", "renameIllegalModelProperties": true, - "sdkVersion": "1.0.0", + "sdkVersion": "1.0.1", "targetBranch": "master", "groupId": "com.asaas", "artifactId": "api-sdk", @@ -177,7 +177,7 @@ }, "multiTenant": true, "hooksLocation": { - "bucketKey": "11976/hooks.zip", + "bucketKey": "12033/hooks.zip", "bucketName": "prod-liblab-api-stack-hooks" }, "includeWatermark": true, @@ -1002,13 +1002,11 @@ "documentation/services/CreditBureauReportService.md", "documentation/services/FinanceService.md", "documentation/services/ChargebackService.md", - "src/main/java/com/asaas/apisdk/models/ApiPaymentPayWithCreditCardRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentBillingInfoResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentIdentificationFieldResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentPixQrCodeResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentReceiveInCashRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileGetResponseDto.java", @@ -1040,8 +1038,6 @@ "src/main/java/com/asaas/apisdk/services/PaymentRefundService.java", "documentation/services/PaymentSplitService.md", "src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateCreditCardRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiCreditCardRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateCreditCardResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentSimulatePixResponseDto.java", @@ -1063,7 +1059,9 @@ "documentation/services/WebhookService.md", "documentation/services/SubaccountService.md", "documentation/services/AccountDocumentService.md", + "src/main/java/com/asaas/apisdk/models/ApiPaymentPayWithCreditCardRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/ApiPixTransactionSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiBankSlipBillingInfoResponseDto.java", @@ -1083,6 +1081,7 @@ "documentation/services/FiscalInfoService.md", "src/main/java/com/asaas/apisdk/models/ApiPaymentListResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentLeanListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentRefundListResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentListResponseDto.java", @@ -1090,6 +1089,7 @@ "src/main/java/com/asaas/apisdk/models/ApiNotificationListResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiInstallmentListResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiSubscriptionListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateCreditCardRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveResponseDto.java", @@ -1158,7 +1158,6 @@ "src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigGetResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiBillSaveRequestDto.java", @@ -1170,6 +1169,7 @@ "src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCustomerDataDto.java", @@ -1196,8 +1196,8 @@ "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceSaveRequestDto.java", "src/main/java/com/asaas/apisdk/services/RecurringPixService.java", + "src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponseDto.java", @@ -1211,7 +1211,6 @@ "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoGetResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiBillSimulateBankSlipInfoResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiBillGetResponseDto.java", "src/main/java/com/asaas/apisdk/services/PixTransactionService.java", "src/main/java/com/asaas/apisdk/services/TransferService.java", @@ -1219,17 +1218,18 @@ "src/main/java/com/asaas/apisdk/models/ApiCustomerAccountSaveRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiCustomerAccountUpdateRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDto.java", "src/main/java/com/asaas/apisdk/services/InvoiceService.java", "documentation/services/PaymentService.md", "src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestDto.java", + "src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestDto.java", "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseDto.java", "src/main/java/com/asaas/apisdk/services/FiscalInfoService.java", + "src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseDto.java", "src/main/java/com/asaas/apisdk/services/CustomerService.java", "src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponseDto.java", "src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseDto.java", diff --git a/README.md b/README.md index ad9703f..154559d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# AsaasSdk Java SDK 1.0.0 +# AsaasSdk Java SDK 1.0.1 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.0` +- SDK version: `1.0.1` ## 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.0 + 1.0.1 ``` 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.0 +implementation group: com.asaas, name: api-sdk, version: 1.0.1 ``` If you use JAR files, package the SDK by running the following command: diff --git a/documentation/models/ApiCustomerUpdateRequestGetResponseDto.md b/documentation/models/ApiCustomerUpdateRequestGetResponseDto.md index 8c28022..5e8e078 100644 --- a/documentation/models/ApiCustomerUpdateRequestGetResponseDto.md +++ b/documentation/models/ApiCustomerUpdateRequestGetResponseDto.md @@ -2,28 +2,29 @@ **Properties** -| Name | Type | Required | Description | -| :----------------------- | :---------------------------------------------------------- | :------- | :----------------------------------------------------------- | -| status | ApiCustomerUpdateRequestGetResponseStatus | ❌ | Account status | -| personType | ApiCustomerUpdateRequestGetResponsePersonType | ❌ | Person Type | -| cpfCnpj | String | ❌ | CPF or CNPJ of the account owner | -| name | String | ❌ | Account owner name | -| birthDate | String | ❌ | Birthday (Required if the information is from an individual) | -| companyName | String | ❌ | Company Name | -| companyType | ApiCustomerUpdateRequestGetResponseCompanyType | ❌ | Type of company (only when Legal Entity) | -| incomeValue | Double | ❌ | Billing/Monthly income | -| email | String | ❌ | Account's email | -| phone | String | ❌ | Telephone | -| mobilePhone | String | ❌ | Cell phone | -| postalCode | String | ❌ | Address zip code | -| address | String | ❌ | Public place | -| addressNumber | String | ❌ | Address number | -| complement | String | ❌ | Address complement | -| province | String | ❌ | Neighborhood | -| city | ApiCustomerUpdateRequestCityDto | ❌ | | -| denialReason | String | ❌ | Reason why it is necessary to resend the information | -| tradingName | String | ❌ | Display name (auto-populated) | -| site | String | ❌ | Web site | -| commercialInfoExpiration | ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto | ❌ | | +| Name | Type | Required | Description | +| :----------------------- | :---------------------------------------------------------- | :------- | :---------------------------------------------------------------------- | +| status | ApiCustomerUpdateRequestGetResponseStatus | ❌ | Account status | +| personType | ApiCustomerUpdateRequestGetResponsePersonType | ❌ | Person Type | +| cpfCnpj | String | ❌ | CPF or CNPJ of the account owner | +| name | String | ❌ | Account owner name | +| birthDate | String | ❌ | Birthday (Required if the information is from an individual) | +| companyName | String | ❌ | Company Name | +| companyType | ApiCustomerUpdateRequestGetResponseCompanyType | ❌ | Type of company (only when Legal Entity) | +| incomeValue | Double | ❌ | Billing/Monthly income | +| email | String | ❌ | Account's email | +| phone | String | ❌ | Telephone | +| mobilePhone | String | ❌ | Cell phone | +| postalCode | String | ❌ | Address zip code | +| address | String | ❌ | Public place | +| addressNumber | String | ❌ | Address number | +| complement | String | ❌ | Address complement | +| province | String | ❌ | Neighborhood | +| city | ApiCustomerUpdateRequestCityDto | ❌ | | +| denialReason | String | ❌ | Reason why it is necessary to resend the information | +| tradingName | String | ❌ | Display name (auto-populated) | +| site | String | ❌ | Web site | +| availableCompanyNames | List\ | ❌ | Company names available. Only filled in for Legal Entity type accounts. | +| commercialInfoExpiration | ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto | ❌ | | diff --git a/examples/pom.xml b/examples/pom.xml index 2e4c3bb..2446075 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -22,7 +22,7 @@ com.asaas api-sdk - 1.0.0 + 1.0.1 diff --git a/pom.xml b/pom.xml index db8e0a0..3af6f7d 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ com.asaas api-sdk - 1.0.0 + 1.0.1 ${project.groupId}:${project.artifactId} diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentDeleteResponseDto.java index 633549b..d1e02b6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentDeleteResponseDto.java @@ -49,9 +49,6 @@ public static class ApiAccountDocumentDeleteResponseDtoBuilder { @JsonProperty("deleted") public ApiAccountDocumentDeleteResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiAccountDocumentDeleteResponseDtoBuilder deleted(Boolean value) { @JsonProperty("id") public ApiAccountDocumentDeleteResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseDto.java index 4ce0009..d284384 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseDto.java @@ -49,9 +49,6 @@ public static class ApiAccountDocumentGetResponseDtoBuilder { @JsonProperty("id") public ApiAccountDocumentGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiAccountDocumentGetResponseDtoBuilder id(String value) { @JsonProperty("status") public ApiAccountDocumentGetResponseDtoBuilder status(ApiAccountDocumentGetResponseCustomerDocumentStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseDto.java index b779f80..dafd4d9 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseDto.java @@ -124,9 +124,6 @@ public static class ApiAccountDocumentGroupResponseDtoBuilder { @JsonProperty("id") public ApiAccountDocumentGroupResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -137,9 +134,6 @@ public ApiAccountDocumentGroupResponseDtoBuilder id(String value) { public ApiAccountDocumentGroupResponseDtoBuilder status( ApiAccountDocumentGroupResponseCustomerDocumentStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -148,9 +142,6 @@ public ApiAccountDocumentGroupResponseDtoBuilder status( @JsonProperty("type") public ApiAccountDocumentGroupResponseDtoBuilder type(ApiAccountDocumentGroupResponseCustomerDocumentType value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -159,9 +150,6 @@ public ApiAccountDocumentGroupResponseDtoBuilder type(ApiAccountDocumentGroupRes @JsonProperty("title") public ApiAccountDocumentGroupResponseDtoBuilder title(String value) { - if (value == null) { - throw new IllegalStateException("title cannot be null"); - } this.title = JsonNullable.of(value); return this; } @@ -170,9 +158,6 @@ public ApiAccountDocumentGroupResponseDtoBuilder title(String value) { @JsonProperty("description") public ApiAccountDocumentGroupResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -181,9 +166,6 @@ public ApiAccountDocumentGroupResponseDtoBuilder description(String value) { @JsonProperty("responsible") public ApiAccountDocumentGroupResponseDtoBuilder responsible(ApiAccountDocumentGroupResponsibleResponseDto value) { - if (value == null) { - throw new IllegalStateException("responsible cannot be null"); - } this.responsible = JsonNullable.of(value); return this; } @@ -192,9 +174,6 @@ public ApiAccountDocumentGroupResponseDtoBuilder responsible(ApiAccountDocumentG @JsonProperty("onboardingUrl") public ApiAccountDocumentGroupResponseDtoBuilder onboardingUrl(String value) { - if (value == null) { - throw new IllegalStateException("onboardingUrl cannot be null"); - } this.onboardingUrl = JsonNullable.of(value); return this; } @@ -203,9 +182,6 @@ public ApiAccountDocumentGroupResponseDtoBuilder onboardingUrl(String value) { @JsonProperty("onboardingUrlExpirationDate") public ApiAccountDocumentGroupResponseDtoBuilder onboardingUrlExpirationDate(String value) { - if (value == null) { - throw new IllegalStateException("onboardingUrlExpirationDate cannot be null"); - } this.onboardingUrlExpirationDate = JsonNullable.of(value); return this; } @@ -214,9 +190,6 @@ public ApiAccountDocumentGroupResponseDtoBuilder onboardingUrlExpirationDate(Str @JsonProperty("documents") public ApiAccountDocumentGroupResponseDtoBuilder documents(List value) { - if (value == null) { - throw new IllegalStateException("documents cannot be null"); - } this.documents = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponsibleResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponsibleResponseDto.java index 15242bc..4d8bb04 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponsibleResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponsibleResponseDto.java @@ -50,9 +50,6 @@ public static class ApiAccountDocumentGroupResponsibleResponseDtoBuilder { @JsonProperty("name") public ApiAccountDocumentGroupResponsibleResponseDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -61,9 +58,6 @@ public ApiAccountDocumentGroupResponsibleResponseDtoBuilder name(String value) { @JsonProperty("type") public ApiAccountDocumentGroupResponsibleResponseDtoBuilder type(List value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestDto.java index 996b440..534a4f7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestDto.java @@ -60,9 +60,6 @@ public ApiAccountDocumentSaveRequestDtoBuilder documentFile(byte[] value) { @JsonProperty("type") public ApiAccountDocumentSaveRequestDtoBuilder type(ApiAccountDocumentSaveRequestCustomerDocumentType value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentShowResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentShowResponseDto.java index eebb6a3..b3991af 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentShowResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentShowResponseDto.java @@ -50,9 +50,6 @@ public static class ApiAccountDocumentShowResponseDtoBuilder { @JsonProperty("rejectReasons") public ApiAccountDocumentShowResponseDtoBuilder rejectReasons(String value) { - if (value == null) { - throw new IllegalStateException("rejectReasons cannot be null"); - } this.rejectReasons = JsonNullable.of(value); return this; } @@ -61,9 +58,6 @@ public ApiAccountDocumentShowResponseDtoBuilder rejectReasons(String value) { @JsonProperty("data") public ApiAccountDocumentShowResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiBankSlipBillingInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiBankSlipBillingInfoResponseDto.java index 580115d..f21c02f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBankSlipBillingInfoResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiBankSlipBillingInfoResponseDto.java @@ -82,9 +82,6 @@ public static class ApiBankSlipBillingInfoResponseDtoBuilder { @JsonProperty("identificationField") public ApiBankSlipBillingInfoResponseDtoBuilder identificationField(String value) { - if (value == null) { - throw new IllegalStateException("identificationField cannot be null"); - } this.identificationField = JsonNullable.of(value); return this; } @@ -93,9 +90,6 @@ public ApiBankSlipBillingInfoResponseDtoBuilder identificationField(String value @JsonProperty("nossoNumero") public ApiBankSlipBillingInfoResponseDtoBuilder nossoNumero(String value) { - if (value == null) { - throw new IllegalStateException("nossoNumero cannot be null"); - } this.nossoNumero = JsonNullable.of(value); return this; } @@ -104,9 +98,6 @@ public ApiBankSlipBillingInfoResponseDtoBuilder nossoNumero(String value) { @JsonProperty("barCode") public ApiBankSlipBillingInfoResponseDtoBuilder barCode(String value) { - if (value == null) { - throw new IllegalStateException("barCode cannot be null"); - } this.barCode = JsonNullable.of(value); return this; } @@ -115,9 +106,6 @@ public ApiBankSlipBillingInfoResponseDtoBuilder barCode(String value) { @JsonProperty("bankSlipUrl") public ApiBankSlipBillingInfoResponseDtoBuilder bankSlipUrl(String value) { - if (value == null) { - throw new IllegalStateException("bankSlipUrl cannot be null"); - } this.bankSlipUrl = JsonNullable.of(value); return this; } @@ -126,9 +114,6 @@ public ApiBankSlipBillingInfoResponseDtoBuilder bankSlipUrl(String value) { @JsonProperty("daysAfterDueDateToRegistrationCancellation") public ApiBankSlipBillingInfoResponseDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - if (value == null) { - throw new IllegalStateException("daysAfterDueDateToRegistrationCancellation cannot be null"); - } this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseDto.java index 5c7b991..690dc3a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseDto.java @@ -226,9 +226,6 @@ public static class ApiBillGetResponseDtoBuilder { @JsonProperty("object") public ApiBillGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -237,9 +234,6 @@ public ApiBillGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiBillGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -248,9 +242,6 @@ public ApiBillGetResponseDtoBuilder id(String value) { @JsonProperty("status") public ApiBillGetResponseDtoBuilder status(ApiBillGetResponseBillStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -259,9 +250,6 @@ public ApiBillGetResponseDtoBuilder status(ApiBillGetResponseBillStatus value) { @JsonProperty("value") public ApiBillGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -270,9 +258,6 @@ public ApiBillGetResponseDtoBuilder value(Double value) { @JsonProperty("discount") public ApiBillGetResponseDtoBuilder discount(Double value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -281,9 +266,6 @@ public ApiBillGetResponseDtoBuilder discount(Double value) { @JsonProperty("interest") public ApiBillGetResponseDtoBuilder interest(Double value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -292,9 +274,6 @@ public ApiBillGetResponseDtoBuilder interest(Double value) { @JsonProperty("fine") public ApiBillGetResponseDtoBuilder fine(Double value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -303,9 +282,6 @@ public ApiBillGetResponseDtoBuilder fine(Double value) { @JsonProperty("identificationField") public ApiBillGetResponseDtoBuilder identificationField(String value) { - if (value == null) { - throw new IllegalStateException("identificationField cannot be null"); - } this.identificationField = JsonNullable.of(value); return this; } @@ -314,9 +290,6 @@ public ApiBillGetResponseDtoBuilder identificationField(String value) { @JsonProperty("dueDate") public ApiBillGetResponseDtoBuilder dueDate(String value) { - if (value == null) { - throw new IllegalStateException("dueDate cannot be null"); - } this.dueDate = JsonNullable.of(value); return this; } @@ -325,9 +298,6 @@ public ApiBillGetResponseDtoBuilder dueDate(String value) { @JsonProperty("scheduleDate") public ApiBillGetResponseDtoBuilder scheduleDate(String value) { - if (value == null) { - throw new IllegalStateException("scheduleDate cannot be null"); - } this.scheduleDate = JsonNullable.of(value); return this; } @@ -336,9 +306,6 @@ public ApiBillGetResponseDtoBuilder scheduleDate(String value) { @JsonProperty("paymentDate") public ApiBillGetResponseDtoBuilder paymentDate(String value) { - if (value == null) { - throw new IllegalStateException("paymentDate cannot be null"); - } this.paymentDate = JsonNullable.of(value); return this; } @@ -347,9 +314,6 @@ public ApiBillGetResponseDtoBuilder paymentDate(String value) { @JsonProperty("fee") public ApiBillGetResponseDtoBuilder fee(Double value) { - if (value == null) { - throw new IllegalStateException("fee cannot be null"); - } this.fee = JsonNullable.of(value); return this; } @@ -358,9 +322,6 @@ public ApiBillGetResponseDtoBuilder fee(Double value) { @JsonProperty("description") public ApiBillGetResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -369,9 +330,6 @@ public ApiBillGetResponseDtoBuilder description(String value) { @JsonProperty("companyName") public ApiBillGetResponseDtoBuilder companyName(String value) { - if (value == null) { - throw new IllegalStateException("companyName cannot be null"); - } this.companyName = JsonNullable.of(value); return this; } @@ -380,9 +338,6 @@ public ApiBillGetResponseDtoBuilder companyName(String value) { @JsonProperty("transactionReceiptUrl") public ApiBillGetResponseDtoBuilder transactionReceiptUrl(String value) { - if (value == null) { - throw new IllegalStateException("transactionReceiptUrl cannot be null"); - } this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -391,9 +346,6 @@ public ApiBillGetResponseDtoBuilder transactionReceiptUrl(String value) { @JsonProperty("canBeCancelled") public ApiBillGetResponseDtoBuilder canBeCancelled(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBeCancelled cannot be null"); - } this.canBeCancelled = JsonNullable.of(value); return this; } @@ -402,9 +354,6 @@ public ApiBillGetResponseDtoBuilder canBeCancelled(Boolean value) { @JsonProperty("externalReference") public ApiBillGetResponseDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -413,9 +362,6 @@ public ApiBillGetResponseDtoBuilder externalReference(String value) { @JsonProperty("failReasons") public ApiBillGetResponseDtoBuilder failReasons(List value) { - if (value == null) { - throw new IllegalStateException("failReasons cannot be null"); - } this.failReasons = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiBillListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiBillListResponseDto.java index 0aa47e8..6b3b8a4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiBillListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiBillListResponseDtoBuilder { @JsonProperty("object") public ApiBillListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiBillListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiBillListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiBillListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiBillListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiBillListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiBillListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiBillListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiBillListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiBillListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiBillListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiBillSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiBillSaveRequestDto.java index 55ec581..c61458d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiBillSaveRequestDto.java @@ -122,9 +122,6 @@ public static class ApiBillSaveRequestDtoBuilder { @JsonProperty("scheduleDate") public ApiBillSaveRequestDtoBuilder scheduleDate(String value) { - if (value == null) { - throw new IllegalStateException("scheduleDate cannot be null"); - } this.scheduleDate = JsonNullable.of(value); return this; } @@ -133,9 +130,6 @@ public ApiBillSaveRequestDtoBuilder scheduleDate(String value) { @JsonProperty("description") public ApiBillSaveRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -144,9 +138,6 @@ public ApiBillSaveRequestDtoBuilder description(String value) { @JsonProperty("discount") public ApiBillSaveRequestDtoBuilder discount(Double value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -155,9 +146,6 @@ public ApiBillSaveRequestDtoBuilder discount(Double value) { @JsonProperty("interest") public ApiBillSaveRequestDtoBuilder interest(Double value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -166,9 +154,6 @@ public ApiBillSaveRequestDtoBuilder interest(Double value) { @JsonProperty("fine") public ApiBillSaveRequestDtoBuilder fine(Double value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -177,9 +162,6 @@ public ApiBillSaveRequestDtoBuilder fine(Double value) { @JsonProperty("dueDate") public ApiBillSaveRequestDtoBuilder dueDate(String value) { - if (value == null) { - throw new IllegalStateException("dueDate cannot be null"); - } this.dueDate = JsonNullable.of(value); return this; } @@ -188,9 +170,6 @@ public ApiBillSaveRequestDtoBuilder dueDate(String value) { @JsonProperty("value") public ApiBillSaveRequestDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -199,9 +178,6 @@ public ApiBillSaveRequestDtoBuilder value(Double value) { @JsonProperty("externalReference") public ApiBillSaveRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateBankSlipInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiBillSimulateBankSlipInfoResponseDto.java index f2f200b..a627672 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateBankSlipInfoResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiBillSimulateBankSlipInfoResponseDto.java @@ -214,9 +214,6 @@ public static class ApiBillSimulateBankSlipInfoResponseDtoBuilder { @JsonProperty("identificationField") public ApiBillSimulateBankSlipInfoResponseDtoBuilder identificationField(String value) { - if (value == null) { - throw new IllegalStateException("identificationField cannot be null"); - } this.identificationField = JsonNullable.of(value); return this; } @@ -225,9 +222,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder identificationField(String @JsonProperty("value") public ApiBillSimulateBankSlipInfoResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -236,9 +230,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder value(Double value) { @JsonProperty("dueDate") public ApiBillSimulateBankSlipInfoResponseDtoBuilder dueDate(String value) { - if (value == null) { - throw new IllegalStateException("dueDate cannot be null"); - } this.dueDate = JsonNullable.of(value); return this; } @@ -247,9 +238,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder dueDate(String value) { @JsonProperty("companyName") public ApiBillSimulateBankSlipInfoResponseDtoBuilder companyName(String value) { - if (value == null) { - throw new IllegalStateException("companyName cannot be null"); - } this.companyName = JsonNullable.of(value); return this; } @@ -258,9 +246,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder companyName(String value) { @JsonProperty("bank") public ApiBillSimulateBankSlipInfoResponseDtoBuilder bank(String value) { - if (value == null) { - throw new IllegalStateException("bank cannot be null"); - } this.bank = JsonNullable.of(value); return this; } @@ -269,9 +254,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder bank(String value) { @JsonProperty("beneficiaryCpfCnpj") public ApiBillSimulateBankSlipInfoResponseDtoBuilder beneficiaryCpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("beneficiaryCpfCnpj cannot be null"); - } this.beneficiaryCpfCnpj = JsonNullable.of(value); return this; } @@ -280,9 +262,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder beneficiaryCpfCnpj(String v @JsonProperty("beneficiaryName") public ApiBillSimulateBankSlipInfoResponseDtoBuilder beneficiaryName(String value) { - if (value == null) { - throw new IllegalStateException("beneficiaryName cannot be null"); - } this.beneficiaryName = JsonNullable.of(value); return this; } @@ -291,9 +270,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder beneficiaryName(String valu @JsonProperty("allowChangeValue") public ApiBillSimulateBankSlipInfoResponseDtoBuilder allowChangeValue(Boolean value) { - if (value == null) { - throw new IllegalStateException("allowChangeValue cannot be null"); - } this.allowChangeValue = JsonNullable.of(value); return this; } @@ -302,9 +278,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder allowChangeValue(Boolean va @JsonProperty("minValue") public ApiBillSimulateBankSlipInfoResponseDtoBuilder minValue(Double value) { - if (value == null) { - throw new IllegalStateException("minValue cannot be null"); - } this.minValue = JsonNullable.of(value); return this; } @@ -313,9 +286,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder minValue(Double value) { @JsonProperty("maxValue") public ApiBillSimulateBankSlipInfoResponseDtoBuilder maxValue(Double value) { - if (value == null) { - throw new IllegalStateException("maxValue cannot be null"); - } this.maxValue = JsonNullable.of(value); return this; } @@ -324,9 +294,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder maxValue(Double value) { @JsonProperty("discountValue") public ApiBillSimulateBankSlipInfoResponseDtoBuilder discountValue(Double value) { - if (value == null) { - throw new IllegalStateException("discountValue cannot be null"); - } this.discountValue = JsonNullable.of(value); return this; } @@ -335,9 +302,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder discountValue(Double value) @JsonProperty("interestValue") public ApiBillSimulateBankSlipInfoResponseDtoBuilder interestValue(Double value) { - if (value == null) { - throw new IllegalStateException("interestValue cannot be null"); - } this.interestValue = JsonNullable.of(value); return this; } @@ -346,9 +310,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder interestValue(Double value) @JsonProperty("fineValue") public ApiBillSimulateBankSlipInfoResponseDtoBuilder fineValue(Double value) { - if (value == null) { - throw new IllegalStateException("fineValue cannot be null"); - } this.fineValue = JsonNullable.of(value); return this; } @@ -357,9 +318,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder fineValue(Double value) { @JsonProperty("originalValue") public ApiBillSimulateBankSlipInfoResponseDtoBuilder originalValue(Double value) { - if (value == null) { - throw new IllegalStateException("originalValue cannot be null"); - } this.originalValue = JsonNullable.of(value); return this; } @@ -368,9 +326,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder originalValue(Double value) @JsonProperty("totalDiscountValue") public ApiBillSimulateBankSlipInfoResponseDtoBuilder totalDiscountValue(Double value) { - if (value == null) { - throw new IllegalStateException("totalDiscountValue cannot be null"); - } this.totalDiscountValue = JsonNullable.of(value); return this; } @@ -379,9 +334,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder totalDiscountValue(Double v @JsonProperty("totalAdditionalValue") public ApiBillSimulateBankSlipInfoResponseDtoBuilder totalAdditionalValue(Double value) { - if (value == null) { - throw new IllegalStateException("totalAdditionalValue cannot be null"); - } this.totalAdditionalValue = JsonNullable.of(value); return this; } @@ -390,9 +342,6 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder totalAdditionalValue(Double @JsonProperty("isOverdue") public ApiBillSimulateBankSlipInfoResponseDtoBuilder isOverdue(Boolean value) { - if (value == null) { - throw new IllegalStateException("isOverdue cannot be null"); - } this.isOverdue = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiBillSimulateRequestDto.java index 614844d..f2d3065 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiBillSimulateRequestDto.java @@ -49,9 +49,6 @@ public static class ApiBillSimulateRequestDtoBuilder { @JsonProperty("identificationField") public ApiBillSimulateRequestDtoBuilder identificationField(String value) { - if (value == null) { - throw new IllegalStateException("identificationField cannot be null"); - } this.identificationField = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiBillSimulateRequestDtoBuilder identificationField(String value) { @JsonProperty("barCode") public ApiBillSimulateRequestDtoBuilder barCode(String value) { - if (value == null) { - throw new IllegalStateException("barCode cannot be null"); - } this.barCode = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiBillSimulateResponseDto.java index 4142568..8107a32 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiBillSimulateResponseDto.java @@ -57,9 +57,6 @@ public static class ApiBillSimulateResponseDtoBuilder { @JsonProperty("minimumScheduleDate") public ApiBillSimulateResponseDtoBuilder minimumScheduleDate(String value) { - if (value == null) { - throw new IllegalStateException("minimumScheduleDate cannot be null"); - } this.minimumScheduleDate = JsonNullable.of(value); return this; } @@ -68,9 +65,6 @@ public ApiBillSimulateResponseDtoBuilder minimumScheduleDate(String value) { @JsonProperty("fee") public ApiBillSimulateResponseDtoBuilder fee(Double value) { - if (value == null) { - throw new IllegalStateException("fee cannot be null"); - } this.fee = JsonNullable.of(value); return this; } @@ -79,9 +73,6 @@ public ApiBillSimulateResponseDtoBuilder fee(Double value) { @JsonProperty("bankSlipInfo") public ApiBillSimulateResponseDtoBuilder bankSlipInfo(ApiBillSimulateBankSlipInfoResponseDto value) { - if (value == null) { - throw new IllegalStateException("bankSlipInfo cannot be null"); - } this.bankSlipInfo = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseDto.java index 9569326..6f80e29 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseDto.java @@ -49,9 +49,6 @@ public static class ApiChargebackCreditCardResponseDtoBuilder { @JsonProperty("number") public ApiChargebackCreditCardResponseDtoBuilder number(String value) { - if (value == null) { - throw new IllegalStateException("number cannot be null"); - } this.number = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiChargebackCreditCardResponseDtoBuilder number(String value) { @JsonProperty("brand") public ApiChargebackCreditCardResponseDtoBuilder brand(ApiChargebackCreditCardResponseCreditCardBrand value) { - if (value == null) { - throw new IllegalStateException("brand cannot be null"); - } this.brand = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiChargebackListResponseDto.java index eea451b..1ceb97c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiChargebackListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiChargebackListResponseDtoBuilder { @JsonProperty("object") public ApiChargebackListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiChargebackListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiChargebackListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiChargebackListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiChargebackListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiChargebackListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiChargebackListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiChargebackListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiChargebackListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiChargebackListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiChargebackListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseDto.java index f214306..d8efae9 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseDto.java @@ -61,9 +61,6 @@ public static class ApiChargebackSaveDisputeResponseDtoBuilder { @JsonProperty("chargebackId") public ApiChargebackSaveDisputeResponseDtoBuilder chargebackId(String value) { - if (value == null) { - throw new IllegalStateException("chargebackId cannot be null"); - } this.chargebackId = JsonNullable.of(value); return this; } @@ -74,9 +71,6 @@ public ApiChargebackSaveDisputeResponseDtoBuilder chargebackId(String value) { public ApiChargebackSaveDisputeResponseDtoBuilder status( ApiChargebackSaveDisputeResponseChargebackDisputeStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -85,9 +79,6 @@ public ApiChargebackSaveDisputeResponseDtoBuilder status( @JsonProperty("files") public ApiChargebackSaveDisputeResponseDtoBuilder files(List value) { - if (value == null) { - throw new IllegalStateException("files cannot be null"); - } this.files = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCustomerDataDto.java b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCustomerDataDto.java index 632c754..c37ecc6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCustomerDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCustomerDataDto.java @@ -137,9 +137,6 @@ public static class ApiCheckoutSessionCustomerDataDtoBuilder { @JsonProperty("name") public ApiCheckoutSessionCustomerDataDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -148,9 +145,6 @@ public ApiCheckoutSessionCustomerDataDtoBuilder name(String value) { @JsonProperty("cpfCnpj") public ApiCheckoutSessionCustomerDataDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -159,9 +153,6 @@ public ApiCheckoutSessionCustomerDataDtoBuilder cpfCnpj(String value) { @JsonProperty("email") public ApiCheckoutSessionCustomerDataDtoBuilder email(String value) { - if (value == null) { - throw new IllegalStateException("email cannot be null"); - } this.email = JsonNullable.of(value); return this; } @@ -170,9 +161,6 @@ public ApiCheckoutSessionCustomerDataDtoBuilder email(String value) { @JsonProperty("phone") public ApiCheckoutSessionCustomerDataDtoBuilder phone(String value) { - if (value == null) { - throw new IllegalStateException("phone cannot be null"); - } this.phone = JsonNullable.of(value); return this; } @@ -181,9 +169,6 @@ public ApiCheckoutSessionCustomerDataDtoBuilder phone(String value) { @JsonProperty("address") public ApiCheckoutSessionCustomerDataDtoBuilder address(String value) { - if (value == null) { - throw new IllegalStateException("address cannot be null"); - } this.address = JsonNullable.of(value); return this; } @@ -192,9 +177,6 @@ public ApiCheckoutSessionCustomerDataDtoBuilder address(String value) { @JsonProperty("addressNumber") public ApiCheckoutSessionCustomerDataDtoBuilder addressNumber(Long value) { - if (value == null) { - throw new IllegalStateException("addressNumber cannot be null"); - } this.addressNumber = JsonNullable.of(value); return this; } @@ -203,9 +185,6 @@ public ApiCheckoutSessionCustomerDataDtoBuilder addressNumber(Long value) { @JsonProperty("complement") public ApiCheckoutSessionCustomerDataDtoBuilder complement(String value) { - if (value == null) { - throw new IllegalStateException("complement cannot be null"); - } this.complement = JsonNullable.of(value); return this; } @@ -214,9 +193,6 @@ public ApiCheckoutSessionCustomerDataDtoBuilder complement(String value) { @JsonProperty("province") public ApiCheckoutSessionCustomerDataDtoBuilder province(String value) { - if (value == null) { - throw new IllegalStateException("province cannot be null"); - } this.province = JsonNullable.of(value); return this; } @@ -225,9 +201,6 @@ public ApiCheckoutSessionCustomerDataDtoBuilder province(String value) { @JsonProperty("postalCode") public ApiCheckoutSessionCustomerDataDtoBuilder postalCode(String value) { - if (value == null) { - throw new IllegalStateException("postalCode cannot be null"); - } this.postalCode = JsonNullable.of(value); return this; } @@ -236,9 +209,6 @@ public ApiCheckoutSessionCustomerDataDtoBuilder postalCode(String value) { @JsonProperty("city") public ApiCheckoutSessionCustomerDataDtoBuilder city(Long value) { - if (value == null) { - throw new IllegalStateException("city cannot be null"); - } this.city = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionInstallmentDto.java b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionInstallmentDto.java index a98d3bc..1aa3e57 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionInstallmentDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionInstallmentDto.java @@ -38,9 +38,6 @@ public static class ApiCheckoutSessionInstallmentDtoBuilder { @JsonProperty("maxInstallmentCount") public ApiCheckoutSessionInstallmentDtoBuilder maxInstallmentCount(Long value) { - if (value == null) { - throw new IllegalStateException("maxInstallmentCount cannot be null"); - } this.maxInstallmentCount = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionItemsDto.java b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionItemsDto.java index 028ab4f..44108b1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionItemsDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionItemsDto.java @@ -63,9 +63,6 @@ public static class ApiCheckoutSessionItemsDtoBuilder { @JsonProperty("description") public ApiCheckoutSessionItemsDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionResponseDto.java index 462d3f2..3d5c22c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionResponseDto.java @@ -115,9 +115,6 @@ public static class ApiCheckoutSessionResponseDtoBuilder { @JsonProperty("billingTypes") public ApiCheckoutSessionResponseDtoBuilder billingTypes(List value) { - if (value == null) { - throw new IllegalStateException("billingTypes cannot be null"); - } this.billingTypes = JsonNullable.of(value); return this; } @@ -126,9 +123,6 @@ public ApiCheckoutSessionResponseDtoBuilder billingTypes(List value) { @JsonProperty("chargeTypes") public ApiCheckoutSessionResponseDtoBuilder chargeTypes(List value) { - if (value == null) { - throw new IllegalStateException("chargeTypes cannot be null"); - } this.chargeTypes = JsonNullable.of(value); return this; } @@ -137,9 +131,6 @@ public ApiCheckoutSessionResponseDtoBuilder chargeTypes(List value) { @JsonProperty("minutesToExpire") public ApiCheckoutSessionResponseDtoBuilder minutesToExpire(Long value) { - if (value == null) { - throw new IllegalStateException("minutesToExpire cannot be null"); - } this.minutesToExpire = JsonNullable.of(value); return this; } @@ -148,9 +139,6 @@ public ApiCheckoutSessionResponseDtoBuilder minutesToExpire(Long value) { @JsonProperty("callback") public ApiCheckoutSessionResponseDtoBuilder callback(ApiCheckoutSessionCallbackDto value) { - if (value == null) { - throw new IllegalStateException("callback cannot be null"); - } this.callback = JsonNullable.of(value); return this; } @@ -159,9 +147,6 @@ public ApiCheckoutSessionResponseDtoBuilder callback(ApiCheckoutSessionCallbackD @JsonProperty("items") public ApiCheckoutSessionResponseDtoBuilder items(List value) { - if (value == null) { - throw new IllegalStateException("items cannot be null"); - } this.items = JsonNullable.of(value); return this; } @@ -170,9 +155,6 @@ public ApiCheckoutSessionResponseDtoBuilder items(List value) { - if (value == null) { - throw new IllegalStateException("split cannot be null"); - } this.split = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSaveRequestDto.java index ea7ef3e..1c10ff5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSaveRequestDto.java @@ -3,6 +3,7 @@ package com.asaas.apisdk.models; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Builder; @@ -34,7 +35,7 @@ public class ApiCheckoutSessionSaveRequestDto { @NonNull private List chargeTypes; - @NonNull + @JsonInclude(JsonInclude.Include.ALWAYS) private ApiCheckoutSessionCallbackDto callback; /** @@ -92,13 +93,21 @@ public List getSplits() { // Overwrite lombok builder methods public static class ApiCheckoutSessionSaveRequestDtoBuilder { + /** + * Flag to track if the callback property has been set. + */ + private boolean callback$set = false; + + public ApiCheckoutSessionSaveRequestDtoBuilder callback(ApiCheckoutSessionCallbackDto callback) { + this.callback$set = true; + this.callback = callback; + return this; + } + private JsonNullable minutesToExpire = JsonNullable.undefined(); @JsonProperty("minutesToExpire") public ApiCheckoutSessionSaveRequestDtoBuilder minutesToExpire(Long value) { - if (value == null) { - throw new IllegalStateException("minutesToExpire cannot be null"); - } this.minutesToExpire = JsonNullable.of(value); return this; } @@ -107,9 +116,6 @@ public ApiCheckoutSessionSaveRequestDtoBuilder minutesToExpire(Long value) { @JsonProperty("customerData") public ApiCheckoutSessionSaveRequestDtoBuilder customerData(ApiCheckoutSessionCustomerDataDto value) { - if (value == null) { - throw new IllegalStateException("customerData cannot be null"); - } this.customerData = JsonNullable.of(value); return this; } @@ -118,9 +124,6 @@ public ApiCheckoutSessionSaveRequestDtoBuilder customerData(ApiCheckoutSessionCu @JsonProperty("subscription") public ApiCheckoutSessionSaveRequestDtoBuilder subscription(ApiCheckoutSessionSubscriptionDto value) { - if (value == null) { - throw new IllegalStateException("subscription cannot be null"); - } this.subscription = JsonNullable.of(value); return this; } @@ -129,9 +132,6 @@ public ApiCheckoutSessionSaveRequestDtoBuilder subscription(ApiCheckoutSessionSu @JsonProperty("installment") public ApiCheckoutSessionSaveRequestDtoBuilder installment(ApiCheckoutSessionInstallmentDto value) { - if (value == null) { - throw new IllegalStateException("installment cannot be null"); - } this.installment = JsonNullable.of(value); return this; } @@ -140,11 +140,25 @@ public ApiCheckoutSessionSaveRequestDtoBuilder installment(ApiCheckoutSessionIns @JsonProperty("splits") public ApiCheckoutSessionSaveRequestDtoBuilder splits(List value) { - if (value == null) { - throw new IllegalStateException("splits cannot be null"); - } this.splits = JsonNullable.of(value); return this; } + + public ApiCheckoutSessionSaveRequestDto build() { + if (!callback$set) { + throw new IllegalStateException("callback is required"); + } + return new ApiCheckoutSessionSaveRequestDto( + billingTypes, + chargeTypes, + callback, + items, + minutesToExpire, + customerData, + subscription, + installment, + splits + ); + } } } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSplitDto.java b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSplitDto.java index b568ded..465c790 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSplitDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSplitDto.java @@ -67,9 +67,6 @@ public static class ApiCheckoutSessionSplitDtoBuilder { @JsonProperty("fixedValue") public ApiCheckoutSessionSplitDtoBuilder fixedValue(Double value) { - if (value == null) { - throw new IllegalStateException("fixedValue cannot be null"); - } this.fixedValue = JsonNullable.of(value); return this; } @@ -78,9 +75,6 @@ public ApiCheckoutSessionSplitDtoBuilder fixedValue(Double value) { @JsonProperty("percentageValue") public ApiCheckoutSessionSplitDtoBuilder percentageValue(Double value) { - if (value == null) { - throw new IllegalStateException("percentageValue cannot be null"); - } this.percentageValue = JsonNullable.of(value); return this; } @@ -89,9 +83,6 @@ public ApiCheckoutSessionSplitDtoBuilder percentageValue(Double value) { @JsonProperty("totalFixedValue") public ApiCheckoutSessionSplitDtoBuilder totalFixedValue(Double value) { - if (value == null) { - throw new IllegalStateException("totalFixedValue cannot be null"); - } this.totalFixedValue = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionDto.java b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionDto.java index d115e32..bc7bd2e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionDto.java @@ -60,9 +60,6 @@ public static class ApiCheckoutSessionSubscriptionDtoBuilder { @JsonProperty("cycle") public ApiCheckoutSessionSubscriptionDtoBuilder cycle(ApiCheckoutSessionSubscriptionCycle value) { - if (value == null) { - throw new IllegalStateException("cycle cannot be null"); - } this.cycle = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiCheckoutSessionSubscriptionDtoBuilder cycle(ApiCheckoutSessionSubscrip @JsonProperty("endDate") public ApiCheckoutSessionSubscriptionDtoBuilder endDate(String value) { - if (value == null) { - throw new IllegalStateException("endDate cannot be null"); - } this.endDate = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiCheckoutSessionSubscriptionDtoBuilder endDate(String value) { @JsonProperty("nextDueDate") public ApiCheckoutSessionSubscriptionDtoBuilder nextDueDate(String value) { - if (value == null) { - throw new IllegalStateException("nextDueDate cannot be null"); - } this.nextDueDate = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportGetResponseDto.java index fc10711..e2962ae 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportGetResponseDto.java @@ -93,9 +93,6 @@ public static class ApiCreditBureauReportGetResponseDtoBuilder { @JsonProperty("id") public ApiCreditBureauReportGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -104,9 +101,6 @@ public ApiCreditBureauReportGetResponseDtoBuilder id(String value) { @JsonProperty("dateCreated") public ApiCreditBureauReportGetResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -115,9 +109,6 @@ public ApiCreditBureauReportGetResponseDtoBuilder dateCreated(String value) { @JsonProperty("cpfCnpj") public ApiCreditBureauReportGetResponseDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -126,9 +117,6 @@ public ApiCreditBureauReportGetResponseDtoBuilder cpfCnpj(String value) { @JsonProperty("customer") public ApiCreditBureauReportGetResponseDtoBuilder customer(String value) { - if (value == null) { - throw new IllegalStateException("customer cannot be null"); - } this.customer = JsonNullable.of(value); return this; } @@ -137,9 +125,6 @@ public ApiCreditBureauReportGetResponseDtoBuilder customer(String value) { @JsonProperty("downloadUrl") public ApiCreditBureauReportGetResponseDtoBuilder downloadUrl(String value) { - if (value == null) { - throw new IllegalStateException("downloadUrl cannot be null"); - } this.downloadUrl = JsonNullable.of(value); return this; } @@ -148,9 +133,6 @@ public ApiCreditBureauReportGetResponseDtoBuilder downloadUrl(String value) { @JsonProperty("reportFile") public ApiCreditBureauReportGetResponseDtoBuilder reportFile(String value) { - if (value == null) { - throw new IllegalStateException("reportFile cannot be null"); - } this.reportFile = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportListResponseDto.java index 45d5078..25cc68e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiCreditBureauReportListResponseDtoBuilder { @JsonProperty("object") public ApiCreditBureauReportListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiCreditBureauReportListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiCreditBureauReportListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiCreditBureauReportListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiCreditBureauReportListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiCreditBureauReportListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiCreditBureauReportListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiCreditBureauReportListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiCreditBureauReportListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiCreditBureauReportListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiCreditBureauReportListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportSaveRequestDto.java index 3278093..4f6645f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportSaveRequestDto.java @@ -49,9 +49,6 @@ public static class ApiCreditBureauReportSaveRequestDtoBuilder { @JsonProperty("customer") public ApiCreditBureauReportSaveRequestDtoBuilder customer(String value) { - if (value == null) { - throw new IllegalStateException("customer cannot be null"); - } this.customer = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiCreditBureauReportSaveRequestDtoBuilder customer(String value) { @JsonProperty("cpfCnpj") public ApiCreditBureauReportSaveRequestDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCreditCardHolderInfoRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCreditCardHolderInfoRequestDto.java index 7977c96..ec82151 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardHolderInfoRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCreditCardHolderInfoRequestDto.java @@ -86,9 +86,6 @@ public static class ApiCreditCardHolderInfoRequestDtoBuilder { @JsonProperty("addressComplement") public ApiCreditCardHolderInfoRequestDtoBuilder addressComplement(String value) { - if (value == null) { - throw new IllegalStateException("addressComplement cannot be null"); - } this.addressComplement = JsonNullable.of(value); return this; } @@ -97,9 +94,6 @@ public ApiCreditCardHolderInfoRequestDtoBuilder addressComplement(String value) @JsonProperty("mobilePhone") public ApiCreditCardHolderInfoRequestDtoBuilder mobilePhone(String value) { - if (value == null) { - throw new IllegalStateException("mobilePhone cannot be null"); - } this.mobilePhone = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeRequestDto.java index e42104c..cc2e6dd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeRequestDto.java @@ -2,6 +2,7 @@ package com.asaas.apisdk.models; +import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.Data; import lombok.EqualsAndHashCode; @@ -24,10 +25,10 @@ public class ApiCreditCardTokenizeRequestDto { @NonNull private String customer; - @NonNull + @JsonInclude(JsonInclude.Include.ALWAYS) private ApiCreditCardRequestDto creditCard; - @NonNull + @JsonInclude(JsonInclude.Include.ALWAYS) private ApiCreditCardHolderInfoRequestDto creditCardHolderInfo; /** @@ -35,4 +36,42 @@ public class ApiCreditCardTokenizeRequestDto { */ @NonNull private String remoteIp; + + // Overwrite lombok builder methods + public static class ApiCreditCardTokenizeRequestDtoBuilder { + + /** + * Flag to track if the creditCard property has been set. + */ + private boolean creditCard$set = false; + + /** + * Flag to track if the creditCardHolderInfo property has been set. + */ + private boolean creditCardHolderInfo$set = false; + + public ApiCreditCardTokenizeRequestDtoBuilder creditCard(ApiCreditCardRequestDto creditCard) { + this.creditCard$set = true; + this.creditCard = creditCard; + return this; + } + + public ApiCreditCardTokenizeRequestDtoBuilder creditCardHolderInfo( + ApiCreditCardHolderInfoRequestDto creditCardHolderInfo + ) { + this.creditCardHolderInfo$set = true; + this.creditCardHolderInfo = creditCardHolderInfo; + return this; + } + + public ApiCreditCardTokenizeRequestDto build() { + if (!creditCard$set) { + throw new IllegalStateException("creditCard is required"); + } + if (!creditCardHolderInfo$set) { + throw new IllegalStateException("creditCardHolderInfo is required"); + } + return new ApiCreditCardTokenizeRequestDto(customer, creditCard, creditCardHolderInfo, remoteIp); + } + } } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseDto.java index fc1c87c..7987b1e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseDto.java @@ -60,9 +60,6 @@ public static class ApiCreditCardTokenizeResponseDtoBuilder { @JsonProperty("creditCardNumber") public ApiCreditCardTokenizeResponseDtoBuilder creditCardNumber(String value) { - if (value == null) { - throw new IllegalStateException("creditCardNumber cannot be null"); - } this.creditCardNumber = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiCreditCardTokenizeResponseDtoBuilder creditCardNumber(String value) { @JsonProperty("creditCardBrand") public ApiCreditCardTokenizeResponseDtoBuilder creditCardBrand(ApiCreditCardTokenizeResponseCreditCardBrand value) { - if (value == null) { - throw new IllegalStateException("creditCardBrand cannot be null"); - } this.creditCardBrand = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiCreditCardTokenizeResponseDtoBuilder creditCardBrand(ApiCreditCardToke @JsonProperty("creditCardToken") public ApiCreditCardTokenizeResponseDtoBuilder creditCardToken(String value) { - if (value == null) { - throw new IllegalStateException("creditCardToken cannot be null"); - } this.creditCardToken = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountDeleteResponseDto.java index 0865e95..62a2627 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountDeleteResponseDto.java @@ -49,9 +49,6 @@ public static class ApiCustomerAccountDeleteResponseDtoBuilder { @JsonProperty("deleted") public ApiCustomerAccountDeleteResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiCustomerAccountDeleteResponseDtoBuilder deleted(Boolean value) { @JsonProperty("id") public ApiCustomerAccountDeleteResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponseDto.java index f4eb199..d517142 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponseDto.java @@ -291,9 +291,6 @@ public static class ApiCustomerAccountGetResponseDtoBuilder { @JsonProperty("object") public ApiCustomerAccountGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -302,9 +299,6 @@ public ApiCustomerAccountGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiCustomerAccountGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -313,9 +307,6 @@ public ApiCustomerAccountGetResponseDtoBuilder id(String value) { @JsonProperty("dateCreated") public ApiCustomerAccountGetResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -324,9 +315,6 @@ public ApiCustomerAccountGetResponseDtoBuilder dateCreated(String value) { @JsonProperty("name") public ApiCustomerAccountGetResponseDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -335,9 +323,6 @@ public ApiCustomerAccountGetResponseDtoBuilder name(String value) { @JsonProperty("email") public ApiCustomerAccountGetResponseDtoBuilder email(String value) { - if (value == null) { - throw new IllegalStateException("email cannot be null"); - } this.email = JsonNullable.of(value); return this; } @@ -346,9 +331,6 @@ public ApiCustomerAccountGetResponseDtoBuilder email(String value) { @JsonProperty("phone") public ApiCustomerAccountGetResponseDtoBuilder phone(String value) { - if (value == null) { - throw new IllegalStateException("phone cannot be null"); - } this.phone = JsonNullable.of(value); return this; } @@ -357,9 +339,6 @@ public ApiCustomerAccountGetResponseDtoBuilder phone(String value) { @JsonProperty("mobilePhone") public ApiCustomerAccountGetResponseDtoBuilder mobilePhone(String value) { - if (value == null) { - throw new IllegalStateException("mobilePhone cannot be null"); - } this.mobilePhone = JsonNullable.of(value); return this; } @@ -368,9 +347,6 @@ public ApiCustomerAccountGetResponseDtoBuilder mobilePhone(String value) { @JsonProperty("address") public ApiCustomerAccountGetResponseDtoBuilder address(String value) { - if (value == null) { - throw new IllegalStateException("address cannot be null"); - } this.address = JsonNullable.of(value); return this; } @@ -379,9 +355,6 @@ public ApiCustomerAccountGetResponseDtoBuilder address(String value) { @JsonProperty("addressNumber") public ApiCustomerAccountGetResponseDtoBuilder addressNumber(String value) { - if (value == null) { - throw new IllegalStateException("addressNumber cannot be null"); - } this.addressNumber = JsonNullable.of(value); return this; } @@ -390,9 +363,6 @@ public ApiCustomerAccountGetResponseDtoBuilder addressNumber(String value) { @JsonProperty("complement") public ApiCustomerAccountGetResponseDtoBuilder complement(String value) { - if (value == null) { - throw new IllegalStateException("complement cannot be null"); - } this.complement = JsonNullable.of(value); return this; } @@ -401,9 +371,6 @@ public ApiCustomerAccountGetResponseDtoBuilder complement(String value) { @JsonProperty("province") public ApiCustomerAccountGetResponseDtoBuilder province(String value) { - if (value == null) { - throw new IllegalStateException("province cannot be null"); - } this.province = JsonNullable.of(value); return this; } @@ -412,9 +379,6 @@ public ApiCustomerAccountGetResponseDtoBuilder province(String value) { @JsonProperty("city") public ApiCustomerAccountGetResponseDtoBuilder city(String value) { - if (value == null) { - throw new IllegalStateException("city cannot be null"); - } this.city = JsonNullable.of(value); return this; } @@ -423,9 +387,6 @@ public ApiCustomerAccountGetResponseDtoBuilder city(String value) { @JsonProperty("cityName") public ApiCustomerAccountGetResponseDtoBuilder cityName(String value) { - if (value == null) { - throw new IllegalStateException("cityName cannot be null"); - } this.cityName = JsonNullable.of(value); return this; } @@ -434,9 +395,6 @@ public ApiCustomerAccountGetResponseDtoBuilder cityName(String value) { @JsonProperty("state") public ApiCustomerAccountGetResponseDtoBuilder state(String value) { - if (value == null) { - throw new IllegalStateException("state cannot be null"); - } this.state = JsonNullable.of(value); return this; } @@ -445,9 +403,6 @@ public ApiCustomerAccountGetResponseDtoBuilder state(String value) { @JsonProperty("country") public ApiCustomerAccountGetResponseDtoBuilder country(String value) { - if (value == null) { - throw new IllegalStateException("country cannot be null"); - } this.country = JsonNullable.of(value); return this; } @@ -456,9 +411,6 @@ public ApiCustomerAccountGetResponseDtoBuilder country(String value) { @JsonProperty("postalCode") public ApiCustomerAccountGetResponseDtoBuilder postalCode(String value) { - if (value == null) { - throw new IllegalStateException("postalCode cannot be null"); - } this.postalCode = JsonNullable.of(value); return this; } @@ -467,9 +419,6 @@ public ApiCustomerAccountGetResponseDtoBuilder postalCode(String value) { @JsonProperty("cpfCnpj") public ApiCustomerAccountGetResponseDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -478,9 +427,6 @@ public ApiCustomerAccountGetResponseDtoBuilder cpfCnpj(String value) { @JsonProperty("personType") public ApiCustomerAccountGetResponseDtoBuilder personType(ApiCustomerAccountGetResponsePersonType value) { - if (value == null) { - throw new IllegalStateException("personType cannot be null"); - } this.personType = JsonNullable.of(value); return this; } @@ -489,9 +435,6 @@ public ApiCustomerAccountGetResponseDtoBuilder personType(ApiCustomerAccountGetR @JsonProperty("deleted") public ApiCustomerAccountGetResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -500,9 +443,6 @@ public ApiCustomerAccountGetResponseDtoBuilder deleted(Boolean value) { @JsonProperty("additionalEmails") public ApiCustomerAccountGetResponseDtoBuilder additionalEmails(String value) { - if (value == null) { - throw new IllegalStateException("additionalEmails cannot be null"); - } this.additionalEmails = JsonNullable.of(value); return this; } @@ -511,9 +451,6 @@ public ApiCustomerAccountGetResponseDtoBuilder additionalEmails(String value) { @JsonProperty("externalReference") public ApiCustomerAccountGetResponseDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -522,9 +459,6 @@ public ApiCustomerAccountGetResponseDtoBuilder externalReference(String value) { @JsonProperty("notificationDisabled") public ApiCustomerAccountGetResponseDtoBuilder notificationDisabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("notificationDisabled cannot be null"); - } this.notificationDisabled = JsonNullable.of(value); return this; } @@ -533,9 +467,6 @@ public ApiCustomerAccountGetResponseDtoBuilder notificationDisabled(Boolean valu @JsonProperty("observations") public ApiCustomerAccountGetResponseDtoBuilder observations(String value) { - if (value == null) { - throw new IllegalStateException("observations cannot be null"); - } this.observations = JsonNullable.of(value); return this; } @@ -544,9 +475,6 @@ public ApiCustomerAccountGetResponseDtoBuilder observations(String value) { @JsonProperty("foreignCustomer") public ApiCustomerAccountGetResponseDtoBuilder foreignCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("foreignCustomer cannot be null"); - } this.foreignCustomer = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountListResponseDto.java index 5a33a9c..8c22c72 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiCustomerAccountListResponseDtoBuilder { @JsonProperty("object") public ApiCustomerAccountListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiCustomerAccountListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiCustomerAccountListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiCustomerAccountListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiCustomerAccountListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiCustomerAccountListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiCustomerAccountListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiCustomerAccountListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiCustomerAccountListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiCustomerAccountListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiCustomerAccountListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountNumberDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountNumberDto.java index 48aec25..63aa6a5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountNumberDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountNumberDto.java @@ -60,9 +60,6 @@ public static class ApiCustomerAccountNumberDtoBuilder { @JsonProperty("agency") public ApiCustomerAccountNumberDtoBuilder agency(String value) { - if (value == null) { - throw new IllegalStateException("agency cannot be null"); - } this.agency = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiCustomerAccountNumberDtoBuilder agency(String value) { @JsonProperty("account") public ApiCustomerAccountNumberDtoBuilder account(String value) { - if (value == null) { - throw new IllegalStateException("account cannot be null"); - } this.account = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiCustomerAccountNumberDtoBuilder account(String value) { @JsonProperty("accountDigit") public ApiCustomerAccountNumberDtoBuilder accountDigit(String value) { - if (value == null) { - throw new IllegalStateException("accountDigit cannot be null"); - } this.accountDigit = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountSaveRequestDto.java index 15cb413..2addbdb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountSaveRequestDto.java @@ -227,9 +227,6 @@ public static class ApiCustomerAccountSaveRequestDtoBuilder { @JsonProperty("email") public ApiCustomerAccountSaveRequestDtoBuilder email(String value) { - if (value == null) { - throw new IllegalStateException("email cannot be null"); - } this.email = JsonNullable.of(value); return this; } @@ -238,9 +235,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder email(String value) { @JsonProperty("phone") public ApiCustomerAccountSaveRequestDtoBuilder phone(String value) { - if (value == null) { - throw new IllegalStateException("phone cannot be null"); - } this.phone = JsonNullable.of(value); return this; } @@ -249,9 +243,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder phone(String value) { @JsonProperty("mobilePhone") public ApiCustomerAccountSaveRequestDtoBuilder mobilePhone(String value) { - if (value == null) { - throw new IllegalStateException("mobilePhone cannot be null"); - } this.mobilePhone = JsonNullable.of(value); return this; } @@ -260,9 +251,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder mobilePhone(String value) { @JsonProperty("address") public ApiCustomerAccountSaveRequestDtoBuilder address(String value) { - if (value == null) { - throw new IllegalStateException("address cannot be null"); - } this.address = JsonNullable.of(value); return this; } @@ -271,9 +259,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder address(String value) { @JsonProperty("addressNumber") public ApiCustomerAccountSaveRequestDtoBuilder addressNumber(String value) { - if (value == null) { - throw new IllegalStateException("addressNumber cannot be null"); - } this.addressNumber = JsonNullable.of(value); return this; } @@ -282,9 +267,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder addressNumber(String value) { @JsonProperty("complement") public ApiCustomerAccountSaveRequestDtoBuilder complement(String value) { - if (value == null) { - throw new IllegalStateException("complement cannot be null"); - } this.complement = JsonNullable.of(value); return this; } @@ -293,9 +275,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder complement(String value) { @JsonProperty("province") public ApiCustomerAccountSaveRequestDtoBuilder province(String value) { - if (value == null) { - throw new IllegalStateException("province cannot be null"); - } this.province = JsonNullable.of(value); return this; } @@ -304,9 +283,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder province(String value) { @JsonProperty("postalCode") public ApiCustomerAccountSaveRequestDtoBuilder postalCode(String value) { - if (value == null) { - throw new IllegalStateException("postalCode cannot be null"); - } this.postalCode = JsonNullable.of(value); return this; } @@ -315,9 +291,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder postalCode(String value) { @JsonProperty("externalReference") public ApiCustomerAccountSaveRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -326,9 +299,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder externalReference(String value) { @JsonProperty("notificationDisabled") public ApiCustomerAccountSaveRequestDtoBuilder notificationDisabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("notificationDisabled cannot be null"); - } this.notificationDisabled = JsonNullable.of(value); return this; } @@ -337,9 +307,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder notificationDisabled(Boolean valu @JsonProperty("additionalEmails") public ApiCustomerAccountSaveRequestDtoBuilder additionalEmails(String value) { - if (value == null) { - throw new IllegalStateException("additionalEmails cannot be null"); - } this.additionalEmails = JsonNullable.of(value); return this; } @@ -348,9 +315,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder additionalEmails(String value) { @JsonProperty("municipalInscription") public ApiCustomerAccountSaveRequestDtoBuilder municipalInscription(String value) { - if (value == null) { - throw new IllegalStateException("municipalInscription cannot be null"); - } this.municipalInscription = JsonNullable.of(value); return this; } @@ -359,9 +323,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder municipalInscription(String value @JsonProperty("stateInscription") public ApiCustomerAccountSaveRequestDtoBuilder stateInscription(String value) { - if (value == null) { - throw new IllegalStateException("stateInscription cannot be null"); - } this.stateInscription = JsonNullable.of(value); return this; } @@ -370,9 +331,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder stateInscription(String value) { @JsonProperty("observations") public ApiCustomerAccountSaveRequestDtoBuilder observations(String value) { - if (value == null) { - throw new IllegalStateException("observations cannot be null"); - } this.observations = JsonNullable.of(value); return this; } @@ -381,9 +339,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder observations(String value) { @JsonProperty("groupName") public ApiCustomerAccountSaveRequestDtoBuilder groupName(String value) { - if (value == null) { - throw new IllegalStateException("groupName cannot be null"); - } this.groupName = JsonNullable.of(value); return this; } @@ -392,9 +347,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder groupName(String value) { @JsonProperty("company") public ApiCustomerAccountSaveRequestDtoBuilder company(String value) { - if (value == null) { - throw new IllegalStateException("company cannot be null"); - } this.company = JsonNullable.of(value); return this; } @@ -403,9 +355,6 @@ public ApiCustomerAccountSaveRequestDtoBuilder company(String value) { @JsonProperty("foreignCustomer") public ApiCustomerAccountSaveRequestDtoBuilder foreignCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("foreignCustomer cannot be null"); - } this.foreignCustomer = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountUpdateRequestDto.java index f99048a..e737a70 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountUpdateRequestDto.java @@ -236,9 +236,6 @@ public static class ApiCustomerAccountUpdateRequestDtoBuilder { @JsonProperty("name") public ApiCustomerAccountUpdateRequestDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -247,9 +244,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder name(String value) { @JsonProperty("cpfCnpj") public ApiCustomerAccountUpdateRequestDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -258,9 +252,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder cpfCnpj(String value) { @JsonProperty("email") public ApiCustomerAccountUpdateRequestDtoBuilder email(String value) { - if (value == null) { - throw new IllegalStateException("email cannot be null"); - } this.email = JsonNullable.of(value); return this; } @@ -269,9 +260,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder email(String value) { @JsonProperty("phone") public ApiCustomerAccountUpdateRequestDtoBuilder phone(String value) { - if (value == null) { - throw new IllegalStateException("phone cannot be null"); - } this.phone = JsonNullable.of(value); return this; } @@ -280,9 +268,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder phone(String value) { @JsonProperty("mobilePhone") public ApiCustomerAccountUpdateRequestDtoBuilder mobilePhone(String value) { - if (value == null) { - throw new IllegalStateException("mobilePhone cannot be null"); - } this.mobilePhone = JsonNullable.of(value); return this; } @@ -291,9 +276,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder mobilePhone(String value) { @JsonProperty("address") public ApiCustomerAccountUpdateRequestDtoBuilder address(String value) { - if (value == null) { - throw new IllegalStateException("address cannot be null"); - } this.address = JsonNullable.of(value); return this; } @@ -302,9 +284,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder address(String value) { @JsonProperty("addressNumber") public ApiCustomerAccountUpdateRequestDtoBuilder addressNumber(String value) { - if (value == null) { - throw new IllegalStateException("addressNumber cannot be null"); - } this.addressNumber = JsonNullable.of(value); return this; } @@ -313,9 +292,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder addressNumber(String value) { @JsonProperty("complement") public ApiCustomerAccountUpdateRequestDtoBuilder complement(String value) { - if (value == null) { - throw new IllegalStateException("complement cannot be null"); - } this.complement = JsonNullable.of(value); return this; } @@ -324,9 +300,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder complement(String value) { @JsonProperty("province") public ApiCustomerAccountUpdateRequestDtoBuilder province(String value) { - if (value == null) { - throw new IllegalStateException("province cannot be null"); - } this.province = JsonNullable.of(value); return this; } @@ -335,9 +308,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder province(String value) { @JsonProperty("postalCode") public ApiCustomerAccountUpdateRequestDtoBuilder postalCode(String value) { - if (value == null) { - throw new IllegalStateException("postalCode cannot be null"); - } this.postalCode = JsonNullable.of(value); return this; } @@ -346,9 +316,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder postalCode(String value) { @JsonProperty("externalReference") public ApiCustomerAccountUpdateRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -357,9 +324,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder externalReference(String value) @JsonProperty("notificationDisabled") public ApiCustomerAccountUpdateRequestDtoBuilder notificationDisabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("notificationDisabled cannot be null"); - } this.notificationDisabled = JsonNullable.of(value); return this; } @@ -368,9 +332,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder notificationDisabled(Boolean va @JsonProperty("additionalEmails") public ApiCustomerAccountUpdateRequestDtoBuilder additionalEmails(String value) { - if (value == null) { - throw new IllegalStateException("additionalEmails cannot be null"); - } this.additionalEmails = JsonNullable.of(value); return this; } @@ -379,9 +340,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder additionalEmails(String value) @JsonProperty("municipalInscription") public ApiCustomerAccountUpdateRequestDtoBuilder municipalInscription(String value) { - if (value == null) { - throw new IllegalStateException("municipalInscription cannot be null"); - } this.municipalInscription = JsonNullable.of(value); return this; } @@ -390,9 +348,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder municipalInscription(String val @JsonProperty("stateInscription") public ApiCustomerAccountUpdateRequestDtoBuilder stateInscription(String value) { - if (value == null) { - throw new IllegalStateException("stateInscription cannot be null"); - } this.stateInscription = JsonNullable.of(value); return this; } @@ -401,9 +356,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder stateInscription(String value) @JsonProperty("observations") public ApiCustomerAccountUpdateRequestDtoBuilder observations(String value) { - if (value == null) { - throw new IllegalStateException("observations cannot be null"); - } this.observations = JsonNullable.of(value); return this; } @@ -412,9 +364,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder observations(String value) { @JsonProperty("groupName") public ApiCustomerAccountUpdateRequestDtoBuilder groupName(String value) { - if (value == null) { - throw new IllegalStateException("groupName cannot be null"); - } this.groupName = JsonNullable.of(value); return this; } @@ -423,9 +372,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder groupName(String value) { @JsonProperty("company") public ApiCustomerAccountUpdateRequestDtoBuilder company(String value) { - if (value == null) { - throw new IllegalStateException("company cannot be null"); - } this.company = JsonNullable.of(value); return this; } @@ -434,9 +380,6 @@ public ApiCustomerAccountUpdateRequestDtoBuilder company(String value) { @JsonProperty("foreignCustomer") public ApiCustomerAccountUpdateRequestDtoBuilder foreignCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("foreignCustomer cannot be null"); - } this.foreignCustomer = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoGetResponseDto.java index 3db29af..859604f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoGetResponseDto.java @@ -214,9 +214,6 @@ public static class ApiCustomerFiscalInfoGetResponseDtoBuilder { @JsonProperty("object") public ApiCustomerFiscalInfoGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -225,9 +222,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder object(String value) { @JsonProperty("email") public ApiCustomerFiscalInfoGetResponseDtoBuilder email(String value) { - if (value == null) { - throw new IllegalStateException("email cannot be null"); - } this.email = JsonNullable.of(value); return this; } @@ -236,9 +230,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder email(String value) { @JsonProperty("municipalInscription") public ApiCustomerFiscalInfoGetResponseDtoBuilder municipalInscription(String value) { - if (value == null) { - throw new IllegalStateException("municipalInscription cannot be null"); - } this.municipalInscription = JsonNullable.of(value); return this; } @@ -247,9 +238,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder municipalInscription(String va @JsonProperty("simplesNacional") public ApiCustomerFiscalInfoGetResponseDtoBuilder simplesNacional(Boolean value) { - if (value == null) { - throw new IllegalStateException("simplesNacional cannot be null"); - } this.simplesNacional = JsonNullable.of(value); return this; } @@ -258,9 +246,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder simplesNacional(Boolean value) @JsonProperty("culturalProjectsPromoter") public ApiCustomerFiscalInfoGetResponseDtoBuilder culturalProjectsPromoter(Boolean value) { - if (value == null) { - throw new IllegalStateException("culturalProjectsPromoter cannot be null"); - } this.culturalProjectsPromoter = JsonNullable.of(value); return this; } @@ -269,9 +254,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder culturalProjectsPromoter(Boole @JsonProperty("cnae") public ApiCustomerFiscalInfoGetResponseDtoBuilder cnae(String value) { - if (value == null) { - throw new IllegalStateException("cnae cannot be null"); - } this.cnae = JsonNullable.of(value); return this; } @@ -280,9 +262,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder cnae(String value) { @JsonProperty("specialTaxRegime") public ApiCustomerFiscalInfoGetResponseDtoBuilder specialTaxRegime(String value) { - if (value == null) { - throw new IllegalStateException("specialTaxRegime cannot be null"); - } this.specialTaxRegime = JsonNullable.of(value); return this; } @@ -291,9 +270,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder specialTaxRegime(String value) @JsonProperty("serviceListItem") public ApiCustomerFiscalInfoGetResponseDtoBuilder serviceListItem(String value) { - if (value == null) { - throw new IllegalStateException("serviceListItem cannot be null"); - } this.serviceListItem = JsonNullable.of(value); return this; } @@ -302,9 +278,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder serviceListItem(String value) @JsonProperty("nbsCode") public ApiCustomerFiscalInfoGetResponseDtoBuilder nbsCode(String value) { - if (value == null) { - throw new IllegalStateException("nbsCode cannot be null"); - } this.nbsCode = JsonNullable.of(value); return this; } @@ -313,9 +286,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder nbsCode(String value) { @JsonProperty("rpsSerie") public ApiCustomerFiscalInfoGetResponseDtoBuilder rpsSerie(String value) { - if (value == null) { - throw new IllegalStateException("rpsSerie cannot be null"); - } this.rpsSerie = JsonNullable.of(value); return this; } @@ -324,9 +294,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder rpsSerie(String value) { @JsonProperty("rpsNumber") public ApiCustomerFiscalInfoGetResponseDtoBuilder rpsNumber(Long value) { - if (value == null) { - throw new IllegalStateException("rpsNumber cannot be null"); - } this.rpsNumber = JsonNullable.of(value); return this; } @@ -335,9 +302,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder rpsNumber(Long value) { @JsonProperty("loteNumber") public ApiCustomerFiscalInfoGetResponseDtoBuilder loteNumber(Long value) { - if (value == null) { - throw new IllegalStateException("loteNumber cannot be null"); - } this.loteNumber = JsonNullable.of(value); return this; } @@ -346,9 +310,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder loteNumber(Long value) { @JsonProperty("username") public ApiCustomerFiscalInfoGetResponseDtoBuilder username(String value) { - if (value == null) { - throw new IllegalStateException("username cannot be null"); - } this.username = JsonNullable.of(value); return this; } @@ -357,9 +318,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder username(String value) { @JsonProperty("passwordSent") public ApiCustomerFiscalInfoGetResponseDtoBuilder passwordSent(Boolean value) { - if (value == null) { - throw new IllegalStateException("passwordSent cannot be null"); - } this.passwordSent = JsonNullable.of(value); return this; } @@ -368,9 +326,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder passwordSent(Boolean value) { @JsonProperty("accessTokenSent") public ApiCustomerFiscalInfoGetResponseDtoBuilder accessTokenSent(Boolean value) { - if (value == null) { - throw new IllegalStateException("accessTokenSent cannot be null"); - } this.accessTokenSent = JsonNullable.of(value); return this; } @@ -379,9 +334,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder accessTokenSent(Boolean value) @JsonProperty("certificateSent") public ApiCustomerFiscalInfoGetResponseDtoBuilder certificateSent(Boolean value) { - if (value == null) { - throw new IllegalStateException("certificateSent cannot be null"); - } this.certificateSent = JsonNullable.of(value); return this; } @@ -390,9 +342,6 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder certificateSent(Boolean value) @JsonProperty("nationalPortalTaxCalculationRegime") public ApiCustomerFiscalInfoGetResponseDtoBuilder nationalPortalTaxCalculationRegime(String value) { - if (value == null) { - throw new IllegalStateException("nationalPortalTaxCalculationRegime cannot be null"); - } this.nationalPortalTaxCalculationRegime = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.java index 69a3b7a..8c88fdc 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.java @@ -49,9 +49,6 @@ public static class ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDtoBuild @JsonProperty("nbsCode") public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder nbsCode(String value) { - if (value == null) { - throw new IllegalStateException("nbsCode cannot be null"); - } this.nbsCode = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder nbsCode(St @JsonProperty("codeDescription") public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder codeDescription(String value) { - if (value == null) { - throw new IllegalStateException("codeDescription cannot be null"); - } this.codeDescription = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.java index 40607d7..6c74637 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.java @@ -94,9 +94,6 @@ public static class ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder { @JsonProperty("object") public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder object(String @JsonProperty("hasMore") public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder hasMore(Boolea @JsonProperty("totalCount") public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder totalCount(Lon @JsonProperty("limit") public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder limit(Long val @JsonProperty("offset") public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -151,9 +136,6 @@ public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder offset(Long va public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder data( List value ) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.java index f7801fd..f3459c1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.java @@ -60,9 +60,6 @@ public static class ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBui @JsonProperty("id") public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder id(Strin @JsonProperty("description") public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder descript @JsonProperty("issTax") public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder issTax(Double value) { - if (value == null) { - throw new IllegalStateException("issTax cannot be null"); - } this.issTax = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.java index 0b2a690..cec6f2a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.java @@ -94,9 +94,6 @@ public static class ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder @JsonProperty("object") public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder object(Strin @JsonProperty("hasMore") public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder hasMore(Bool @JsonProperty("totalCount") public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder totalCount(L @JsonProperty("limit") public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder limit(Long v @JsonProperty("offset") public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -152,9 +137,6 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder offset(Long public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder data( List value ) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.java index 0071cb0..02028b7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.java @@ -178,9 +178,6 @@ public static class ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder { public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder authenticationType( ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao value ) { - if (value == null) { - throw new IllegalStateException("authenticationType cannot be null"); - } this.authenticationType = JsonNullable.of(value); return this; } @@ -189,9 +186,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder authentication @JsonProperty("supportsCancellation") public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder supportsCancellation(Boolean value) { - if (value == null) { - throw new IllegalStateException("supportsCancellation cannot be null"); - } this.supportsCancellation = JsonNullable.of(value); return this; } @@ -200,9 +194,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder supportsCancel @JsonProperty("usesSpecialTaxRegimes") public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder usesSpecialTaxRegimes(Boolean value) { - if (value == null) { - throw new IllegalStateException("usesSpecialTaxRegimes cannot be null"); - } this.usesSpecialTaxRegimes = JsonNullable.of(value); return this; } @@ -211,9 +202,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder usesSpecialTax @JsonProperty("usesServiceListItem") public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder usesServiceListItem(Boolean value) { - if (value == null) { - throw new IllegalStateException("usesServiceListItem cannot be null"); - } this.usesServiceListItem = JsonNullable.of(value); return this; } @@ -225,9 +213,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder usesServiceLis public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegimesList( List value ) { - if (value == null) { - throw new IllegalStateException("specialTaxRegimesList cannot be null"); - } this.specialTaxRegimesList = JsonNullable.of(value); return this; } @@ -240,9 +225,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegi public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortalTaxCalculationRegimeList( List value ) { - if (value == null) { - throw new IllegalStateException("nationalPortalTaxCalculationRegimeList cannot be null"); - } this.nationalPortalTaxCalculationRegimeList = JsonNullable.of(value); return this; } @@ -253,9 +235,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortal public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortalTaxCalculationRegimeHelp( String value ) { - if (value == null) { - throw new IllegalStateException("nationalPortalTaxCalculationRegimeHelp cannot be null"); - } this.nationalPortalTaxCalculationRegimeHelp = JsonNullable.of(value); return this; } @@ -264,9 +243,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortal @JsonProperty("municipalInscriptionHelp") public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder municipalInscriptionHelp(String value) { - if (value == null) { - throw new IllegalStateException("municipalInscriptionHelp cannot be null"); - } this.municipalInscriptionHelp = JsonNullable.of(value); return this; } @@ -275,9 +251,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder municipalInscr @JsonProperty("specialTaxRegimeHelp") public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegimeHelp(String value) { - if (value == null) { - throw new IllegalStateException("specialTaxRegimeHelp cannot be null"); - } this.specialTaxRegimeHelp = JsonNullable.of(value); return this; } @@ -286,9 +259,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegi @JsonProperty("serviceListItemHelp") public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder serviceListItemHelp(String value) { - if (value == null) { - throw new IllegalStateException("serviceListItemHelp cannot be null"); - } this.serviceListItemHelp = JsonNullable.of(value); return this; } @@ -297,9 +267,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder serviceListIte @JsonProperty("digitalCertificatedHelp") public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder digitalCertificatedHelp(String value) { - if (value == null) { - throw new IllegalStateException("digitalCertificatedHelp cannot be null"); - } this.digitalCertificatedHelp = JsonNullable.of(value); return this; } @@ -308,9 +275,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder digitalCertifi @JsonProperty("accessTokenHelp") public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder accessTokenHelp(String value) { - if (value == null) { - throw new IllegalStateException("accessTokenHelp cannot be null"); - } this.accessTokenHelp = JsonNullable.of(value); return this; } @@ -319,9 +283,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder accessTokenHel @JsonProperty("municipalServiceCodeHelp") public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder municipalServiceCodeHelp(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceCodeHelp cannot be null"); - } this.municipalServiceCodeHelp = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java index 0173931..9414705 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java @@ -49,9 +49,6 @@ public static class ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalcul @JsonProperty("label") public ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder label(String value) { - if (value == null) { - throw new IllegalStateException("label cannot be null"); - } this.label = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDt @JsonProperty("value") public ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder value(String value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java index 68342fc..cb320fc 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java @@ -49,9 +49,6 @@ public static class ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBui @JsonProperty("label") public ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder label(String value) { - if (value == null) { - throw new IllegalStateException("label cannot be null"); - } this.label = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder label(St @JsonProperty("value") public ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder value(String value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoSaveRequestDto.java index aa0b256..ba517e0 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoSaveRequestDto.java @@ -206,9 +206,6 @@ public static class ApiCustomerFiscalInfoSaveRequestDtoBuilder { @JsonProperty("municipalInscription") public ApiCustomerFiscalInfoSaveRequestDtoBuilder municipalInscription(String value) { - if (value == null) { - throw new IllegalStateException("municipalInscription cannot be null"); - } this.municipalInscription = JsonNullable.of(value); return this; } @@ -217,9 +214,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder municipalInscription(String va @JsonProperty("culturalProjectsPromoter") public ApiCustomerFiscalInfoSaveRequestDtoBuilder culturalProjectsPromoter(Boolean value) { - if (value == null) { - throw new IllegalStateException("culturalProjectsPromoter cannot be null"); - } this.culturalProjectsPromoter = JsonNullable.of(value); return this; } @@ -228,9 +222,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder culturalProjectsPromoter(Boole @JsonProperty("cnae") public ApiCustomerFiscalInfoSaveRequestDtoBuilder cnae(String value) { - if (value == null) { - throw new IllegalStateException("cnae cannot be null"); - } this.cnae = JsonNullable.of(value); return this; } @@ -239,9 +230,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder cnae(String value) { @JsonProperty("specialTaxRegime") public ApiCustomerFiscalInfoSaveRequestDtoBuilder specialTaxRegime(String value) { - if (value == null) { - throw new IllegalStateException("specialTaxRegime cannot be null"); - } this.specialTaxRegime = JsonNullable.of(value); return this; } @@ -250,9 +238,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder specialTaxRegime(String value) @JsonProperty("serviceListItem") public ApiCustomerFiscalInfoSaveRequestDtoBuilder serviceListItem(String value) { - if (value == null) { - throw new IllegalStateException("serviceListItem cannot be null"); - } this.serviceListItem = JsonNullable.of(value); return this; } @@ -261,9 +246,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder serviceListItem(String value) @JsonProperty("nbsCode") public ApiCustomerFiscalInfoSaveRequestDtoBuilder nbsCode(String value) { - if (value == null) { - throw new IllegalStateException("nbsCode cannot be null"); - } this.nbsCode = JsonNullable.of(value); return this; } @@ -272,9 +254,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder nbsCode(String value) { @JsonProperty("rpsSerie") public ApiCustomerFiscalInfoSaveRequestDtoBuilder rpsSerie(String value) { - if (value == null) { - throw new IllegalStateException("rpsSerie cannot be null"); - } this.rpsSerie = JsonNullable.of(value); return this; } @@ -283,9 +262,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder rpsSerie(String value) { @JsonProperty("rpsNumber") public ApiCustomerFiscalInfoSaveRequestDtoBuilder rpsNumber(Long value) { - if (value == null) { - throw new IllegalStateException("rpsNumber cannot be null"); - } this.rpsNumber = JsonNullable.of(value); return this; } @@ -294,9 +270,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder rpsNumber(Long value) { @JsonProperty("loteNumber") public ApiCustomerFiscalInfoSaveRequestDtoBuilder loteNumber(Long value) { - if (value == null) { - throw new IllegalStateException("loteNumber cannot be null"); - } this.loteNumber = JsonNullable.of(value); return this; } @@ -305,9 +278,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder loteNumber(Long value) { @JsonProperty("username") public ApiCustomerFiscalInfoSaveRequestDtoBuilder username(String value) { - if (value == null) { - throw new IllegalStateException("username cannot be null"); - } this.username = JsonNullable.of(value); return this; } @@ -316,9 +286,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder username(String value) { @JsonProperty("password") public ApiCustomerFiscalInfoSaveRequestDtoBuilder password(String value) { - if (value == null) { - throw new IllegalStateException("password cannot be null"); - } this.password = JsonNullable.of(value); return this; } @@ -327,9 +294,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder password(String value) { @JsonProperty("accessToken") public ApiCustomerFiscalInfoSaveRequestDtoBuilder accessToken(String value) { - if (value == null) { - throw new IllegalStateException("accessToken cannot be null"); - } this.accessToken = JsonNullable.of(value); return this; } @@ -349,9 +313,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder certificateFile(byte[] value) @JsonProperty("certificatePassword") public ApiCustomerFiscalInfoSaveRequestDtoBuilder certificatePassword(String value) { - if (value == null) { - throw new IllegalStateException("certificatePassword cannot be null"); - } this.certificatePassword = JsonNullable.of(value); return this; } @@ -360,9 +321,6 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder certificatePassword(String val @JsonProperty("nationalPortalTaxCalculationRegime") public ApiCustomerFiscalInfoSaveRequestDtoBuilder nationalPortalTaxCalculationRegime(String value) { - if (value == null) { - throw new IllegalStateException("nationalPortalTaxCalculationRegime cannot be null"); - } this.nationalPortalTaxCalculationRegime = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java index f370014..2a67510 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java @@ -38,9 +38,6 @@ public static class ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDtoBuild @JsonProperty("success") public ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDtoBuilder success(Boolean value) { - if (value == null) { - throw new IllegalStateException("success cannot be null"); - } this.success = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseDto.java index ed96ad5..da1c63d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseDto.java @@ -285,9 +285,6 @@ public static class ApiCustomerGetResponseDtoBuilder { @JsonProperty("object") public ApiCustomerGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -296,9 +293,6 @@ public ApiCustomerGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiCustomerGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -307,9 +301,6 @@ public ApiCustomerGetResponseDtoBuilder id(String value) { @JsonProperty("name") public ApiCustomerGetResponseDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -318,9 +309,6 @@ public ApiCustomerGetResponseDtoBuilder name(String value) { @JsonProperty("email") public ApiCustomerGetResponseDtoBuilder email(String value) { - if (value == null) { - throw new IllegalStateException("email cannot be null"); - } this.email = JsonNullable.of(value); return this; } @@ -329,9 +317,6 @@ public ApiCustomerGetResponseDtoBuilder email(String value) { @JsonProperty("loginEmail") public ApiCustomerGetResponseDtoBuilder loginEmail(String value) { - if (value == null) { - throw new IllegalStateException("loginEmail cannot be null"); - } this.loginEmail = JsonNullable.of(value); return this; } @@ -340,9 +325,6 @@ public ApiCustomerGetResponseDtoBuilder loginEmail(String value) { @JsonProperty("phone") public ApiCustomerGetResponseDtoBuilder phone(String value) { - if (value == null) { - throw new IllegalStateException("phone cannot be null"); - } this.phone = JsonNullable.of(value); return this; } @@ -351,9 +333,6 @@ public ApiCustomerGetResponseDtoBuilder phone(String value) { @JsonProperty("mobilePhone") public ApiCustomerGetResponseDtoBuilder mobilePhone(String value) { - if (value == null) { - throw new IllegalStateException("mobilePhone cannot be null"); - } this.mobilePhone = JsonNullable.of(value); return this; } @@ -362,9 +341,6 @@ public ApiCustomerGetResponseDtoBuilder mobilePhone(String value) { @JsonProperty("address") public ApiCustomerGetResponseDtoBuilder address(String value) { - if (value == null) { - throw new IllegalStateException("address cannot be null"); - } this.address = JsonNullable.of(value); return this; } @@ -373,9 +349,6 @@ public ApiCustomerGetResponseDtoBuilder address(String value) { @JsonProperty("addressNumber") public ApiCustomerGetResponseDtoBuilder addressNumber(String value) { - if (value == null) { - throw new IllegalStateException("addressNumber cannot be null"); - } this.addressNumber = JsonNullable.of(value); return this; } @@ -384,9 +357,6 @@ public ApiCustomerGetResponseDtoBuilder addressNumber(String value) { @JsonProperty("complement") public ApiCustomerGetResponseDtoBuilder complement(String value) { - if (value == null) { - throw new IllegalStateException("complement cannot be null"); - } this.complement = JsonNullable.of(value); return this; } @@ -395,9 +365,6 @@ public ApiCustomerGetResponseDtoBuilder complement(String value) { @JsonProperty("province") public ApiCustomerGetResponseDtoBuilder province(String value) { - if (value == null) { - throw new IllegalStateException("province cannot be null"); - } this.province = JsonNullable.of(value); return this; } @@ -406,9 +373,6 @@ public ApiCustomerGetResponseDtoBuilder province(String value) { @JsonProperty("postalCode") public ApiCustomerGetResponseDtoBuilder postalCode(String value) { - if (value == null) { - throw new IllegalStateException("postalCode cannot be null"); - } this.postalCode = JsonNullable.of(value); return this; } @@ -417,9 +381,6 @@ public ApiCustomerGetResponseDtoBuilder postalCode(String value) { @JsonProperty("cpfCnpj") public ApiCustomerGetResponseDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -428,9 +389,6 @@ public ApiCustomerGetResponseDtoBuilder cpfCnpj(String value) { @JsonProperty("birthDate") public ApiCustomerGetResponseDtoBuilder birthDate(String value) { - if (value == null) { - throw new IllegalStateException("birthDate cannot be null"); - } this.birthDate = JsonNullable.of(value); return this; } @@ -439,9 +397,6 @@ public ApiCustomerGetResponseDtoBuilder birthDate(String value) { @JsonProperty("personType") public ApiCustomerGetResponseDtoBuilder personType(ApiCustomerGetResponsePersonType value) { - if (value == null) { - throw new IllegalStateException("personType cannot be null"); - } this.personType = JsonNullable.of(value); return this; } @@ -450,9 +405,6 @@ public ApiCustomerGetResponseDtoBuilder personType(ApiCustomerGetResponsePersonT @JsonProperty("companyType") public ApiCustomerGetResponseDtoBuilder companyType(ApiCustomerGetResponseCompanyType value) { - if (value == null) { - throw new IllegalStateException("companyType cannot be null"); - } this.companyType = JsonNullable.of(value); return this; } @@ -461,9 +413,6 @@ public ApiCustomerGetResponseDtoBuilder companyType(ApiCustomerGetResponseCompan @JsonProperty("city") public ApiCustomerGetResponseDtoBuilder city(Long value) { - if (value == null) { - throw new IllegalStateException("city cannot be null"); - } this.city = JsonNullable.of(value); return this; } @@ -472,9 +421,6 @@ public ApiCustomerGetResponseDtoBuilder city(Long value) { @JsonProperty("state") public ApiCustomerGetResponseDtoBuilder state(String value) { - if (value == null) { - throw new IllegalStateException("state cannot be null"); - } this.state = JsonNullable.of(value); return this; } @@ -483,9 +429,6 @@ public ApiCustomerGetResponseDtoBuilder state(String value) { @JsonProperty("country") public ApiCustomerGetResponseDtoBuilder country(String value) { - if (value == null) { - throw new IllegalStateException("country cannot be null"); - } this.country = JsonNullable.of(value); return this; } @@ -494,9 +437,6 @@ public ApiCustomerGetResponseDtoBuilder country(String value) { @JsonProperty("tradingName") public ApiCustomerGetResponseDtoBuilder tradingName(String value) { - if (value == null) { - throw new IllegalStateException("tradingName cannot be null"); - } this.tradingName = JsonNullable.of(value); return this; } @@ -505,9 +445,6 @@ public ApiCustomerGetResponseDtoBuilder tradingName(String value) { @JsonProperty("site") public ApiCustomerGetResponseDtoBuilder site(String value) { - if (value == null) { - throw new IllegalStateException("site cannot be null"); - } this.site = JsonNullable.of(value); return this; } @@ -516,9 +453,6 @@ public ApiCustomerGetResponseDtoBuilder site(String value) { @JsonProperty("walletId") public ApiCustomerGetResponseDtoBuilder walletId(String value) { - if (value == null) { - throw new IllegalStateException("walletId cannot be null"); - } this.walletId = JsonNullable.of(value); return this; } @@ -527,9 +461,6 @@ public ApiCustomerGetResponseDtoBuilder walletId(String value) { @JsonProperty("accountNumber") public ApiCustomerGetResponseDtoBuilder accountNumber(ApiCustomerAccountNumberDto value) { - if (value == null) { - throw new IllegalStateException("accountNumber cannot be null"); - } this.accountNumber = JsonNullable.of(value); return this; } @@ -541,9 +472,6 @@ public ApiCustomerGetResponseDtoBuilder accountNumber(ApiCustomerAccountNumberDt public ApiCustomerGetResponseDtoBuilder commercialInfoExpiration( ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto value ) { - if (value == null) { - throw new IllegalStateException("commercialInfoExpiration cannot be null"); - } this.commercialInfoExpiration = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceCancelRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceCancelRequestDto.java index 649e368..1afdce5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceCancelRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceCancelRequestDto.java @@ -38,9 +38,6 @@ public static class ApiCustomerInvoiceCancelRequestDtoBuilder { @JsonProperty("cancelOnlyOnAsaas") public ApiCustomerInvoiceCancelRequestDtoBuilder cancelOnlyOnAsaas(Boolean value) { - if (value == null) { - throw new IllegalStateException("cancelOnlyOnAsaas cannot be null"); - } this.cancelOnlyOnAsaas = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDto.java index 1b8bf8f..0b90b73 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDto.java @@ -299,9 +299,6 @@ public static class ApiCustomerInvoiceGetResponseDtoBuilder { @JsonProperty("object") public ApiCustomerInvoiceGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -310,9 +307,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiCustomerInvoiceGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -321,9 +315,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder id(String value) { @JsonProperty("status") public ApiCustomerInvoiceGetResponseDtoBuilder status(ApiCustomerInvoiceGetResponseInvoiceStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -332,9 +323,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder status(ApiCustomerInvoiceGetRespo @JsonProperty("customer") public ApiCustomerInvoiceGetResponseDtoBuilder customer(String value) { - if (value == null) { - throw new IllegalStateException("customer cannot be null"); - } this.customer = JsonNullable.of(value); return this; } @@ -343,9 +331,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder customer(String value) { @JsonProperty("payment") public ApiCustomerInvoiceGetResponseDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } @@ -354,9 +339,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder payment(String value) { @JsonProperty("installment") public ApiCustomerInvoiceGetResponseDtoBuilder installment(String value) { - if (value == null) { - throw new IllegalStateException("installment cannot be null"); - } this.installment = JsonNullable.of(value); return this; } @@ -365,9 +347,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder installment(String value) { @JsonProperty("type") public ApiCustomerInvoiceGetResponseDtoBuilder type(ApiCustomerInvoiceGetResponseDtoType value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -376,9 +355,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder type(ApiCustomerInvoiceGetRespons @JsonProperty("statusDescription") public ApiCustomerInvoiceGetResponseDtoBuilder statusDescription(String value) { - if (value == null) { - throw new IllegalStateException("statusDescription cannot be null"); - } this.statusDescription = JsonNullable.of(value); return this; } @@ -387,9 +363,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder statusDescription(String value) { @JsonProperty("serviceDescription") public ApiCustomerInvoiceGetResponseDtoBuilder serviceDescription(String value) { - if (value == null) { - throw new IllegalStateException("serviceDescription cannot be null"); - } this.serviceDescription = JsonNullable.of(value); return this; } @@ -398,9 +371,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder serviceDescription(String value) @JsonProperty("pdfUrl") public ApiCustomerInvoiceGetResponseDtoBuilder pdfUrl(String value) { - if (value == null) { - throw new IllegalStateException("pdfUrl cannot be null"); - } this.pdfUrl = JsonNullable.of(value); return this; } @@ -409,9 +379,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder pdfUrl(String value) { @JsonProperty("xmlUrl") public ApiCustomerInvoiceGetResponseDtoBuilder xmlUrl(String value) { - if (value == null) { - throw new IllegalStateException("xmlUrl cannot be null"); - } this.xmlUrl = JsonNullable.of(value); return this; } @@ -420,9 +387,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder xmlUrl(String value) { @JsonProperty("rpsSerie") public ApiCustomerInvoiceGetResponseDtoBuilder rpsSerie(String value) { - if (value == null) { - throw new IllegalStateException("rpsSerie cannot be null"); - } this.rpsSerie = JsonNullable.of(value); return this; } @@ -431,9 +395,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder rpsSerie(String value) { @JsonProperty("rpsNumber") public ApiCustomerInvoiceGetResponseDtoBuilder rpsNumber(String value) { - if (value == null) { - throw new IllegalStateException("rpsNumber cannot be null"); - } this.rpsNumber = JsonNullable.of(value); return this; } @@ -442,9 +403,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder rpsNumber(String value) { @JsonProperty("number") public ApiCustomerInvoiceGetResponseDtoBuilder number(String value) { - if (value == null) { - throw new IllegalStateException("number cannot be null"); - } this.number = JsonNullable.of(value); return this; } @@ -453,9 +411,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder number(String value) { @JsonProperty("validationCode") public ApiCustomerInvoiceGetResponseDtoBuilder validationCode(String value) { - if (value == null) { - throw new IllegalStateException("validationCode cannot be null"); - } this.validationCode = JsonNullable.of(value); return this; } @@ -464,9 +419,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder validationCode(String value) { @JsonProperty("value") public ApiCustomerInvoiceGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -475,9 +427,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder value(Double value) { @JsonProperty("deductions") public ApiCustomerInvoiceGetResponseDtoBuilder deductions(Double value) { - if (value == null) { - throw new IllegalStateException("deductions cannot be null"); - } this.deductions = JsonNullable.of(value); return this; } @@ -486,9 +435,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder deductions(Double value) { @JsonProperty("effectiveDate") public ApiCustomerInvoiceGetResponseDtoBuilder effectiveDate(String value) { - if (value == null) { - throw new IllegalStateException("effectiveDate cannot be null"); - } this.effectiveDate = JsonNullable.of(value); return this; } @@ -497,9 +443,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder effectiveDate(String value) { @JsonProperty("observations") public ApiCustomerInvoiceGetResponseDtoBuilder observations(String value) { - if (value == null) { - throw new IllegalStateException("observations cannot be null"); - } this.observations = JsonNullable.of(value); return this; } @@ -508,9 +451,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder observations(String value) { @JsonProperty("estimatedTaxesDescription") public ApiCustomerInvoiceGetResponseDtoBuilder estimatedTaxesDescription(String value) { - if (value == null) { - throw new IllegalStateException("estimatedTaxesDescription cannot be null"); - } this.estimatedTaxesDescription = JsonNullable.of(value); return this; } @@ -519,9 +459,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder estimatedTaxesDescription(String @JsonProperty("externalReference") public ApiCustomerInvoiceGetResponseDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -530,9 +467,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder externalReference(String value) { @JsonProperty("taxes") public ApiCustomerInvoiceGetResponseDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { - if (value == null) { - throw new IllegalStateException("taxes cannot be null"); - } this.taxes = JsonNullable.of(value); return this; } @@ -541,9 +475,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder taxes(ApiCustomerInvoiceTaxesDto @JsonProperty("municipalServiceId") public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceId(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceId cannot be null"); - } this.municipalServiceId = JsonNullable.of(value); return this; } @@ -552,9 +483,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceId(String value) @JsonProperty("municipalServiceCode") public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceCode(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceCode cannot be null"); - } this.municipalServiceCode = JsonNullable.of(value); return this; } @@ -563,9 +491,6 @@ public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceCode(String value @JsonProperty("municipalServiceName") public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceName(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceName cannot be null"); - } this.municipalServiceName = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListResponseDto.java index 506d0e3..798eac3 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiCustomerInvoiceListResponseDtoBuilder { @JsonProperty("object") public ApiCustomerInvoiceListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiCustomerInvoiceListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiCustomerInvoiceListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiCustomerInvoiceListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiCustomerInvoiceListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiCustomerInvoiceListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiCustomerInvoiceListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiCustomerInvoiceListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiCustomerInvoiceListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiCustomerInvoiceListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiCustomerInvoiceListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceSaveRequestDto.java index 8e260f4..e603529 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceSaveRequestDto.java @@ -3,6 +3,7 @@ package com.asaas.apisdk.models; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Builder; import lombok.Data; @@ -57,7 +58,7 @@ public class ApiCustomerInvoiceSaveRequestDto { @NonNull private String municipalServiceName; - @NonNull + @JsonInclude(JsonInclude.Include.ALWAYS) private ApiCustomerInvoiceTaxesDto taxes; /** @@ -140,13 +141,21 @@ public Boolean getUpdatePayment() { // Overwrite lombok builder methods public static class ApiCustomerInvoiceSaveRequestDtoBuilder { + /** + * Flag to track if the taxes property has been set. + */ + private boolean taxes$set = false; + + public ApiCustomerInvoiceSaveRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto taxes) { + this.taxes$set = true; + this.taxes = taxes; + return this; + } + private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") public ApiCustomerInvoiceSaveRequestDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } @@ -155,9 +164,6 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder payment(String value) { @JsonProperty("installment") public ApiCustomerInvoiceSaveRequestDtoBuilder installment(String value) { - if (value == null) { - throw new IllegalStateException("installment cannot be null"); - } this.installment = JsonNullable.of(value); return this; } @@ -166,9 +172,6 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder installment(String value) { @JsonProperty("customer") public ApiCustomerInvoiceSaveRequestDtoBuilder customer(String value) { - if (value == null) { - throw new IllegalStateException("customer cannot be null"); - } this.customer = JsonNullable.of(value); return this; } @@ -177,9 +180,6 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder customer(String value) { @JsonProperty("externalReference") public ApiCustomerInvoiceSaveRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -188,9 +188,6 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder externalReference(String value) { @JsonProperty("municipalServiceId") public ApiCustomerInvoiceSaveRequestDtoBuilder municipalServiceId(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceId cannot be null"); - } this.municipalServiceId = JsonNullable.of(value); return this; } @@ -199,9 +196,6 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder municipalServiceId(String value) @JsonProperty("municipalServiceCode") public ApiCustomerInvoiceSaveRequestDtoBuilder municipalServiceCode(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceCode cannot be null"); - } this.municipalServiceCode = JsonNullable.of(value); return this; } @@ -210,11 +204,30 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder municipalServiceCode(String value @JsonProperty("updatePayment") public ApiCustomerInvoiceSaveRequestDtoBuilder updatePayment(Boolean value) { - if (value == null) { - throw new IllegalStateException("updatePayment cannot be null"); - } this.updatePayment = JsonNullable.of(value); return this; } + + public ApiCustomerInvoiceSaveRequestDto build() { + if (!taxes$set) { + throw new IllegalStateException("taxes is required"); + } + return new ApiCustomerInvoiceSaveRequestDto( + serviceDescription, + observations, + value, + deductions, + effectiveDate, + municipalServiceName, + taxes, + payment, + installment, + customer, + externalReference, + municipalServiceId, + municipalServiceCode, + updatePayment + ); + } } } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceUpdateRequestDto.java index 6231933..95f1958 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceUpdateRequestDto.java @@ -112,9 +112,6 @@ public static class ApiCustomerInvoiceUpdateRequestDtoBuilder { @JsonProperty("serviceDescription") public ApiCustomerInvoiceUpdateRequestDtoBuilder serviceDescription(String value) { - if (value == null) { - throw new IllegalStateException("serviceDescription cannot be null"); - } this.serviceDescription = JsonNullable.of(value); return this; } @@ -123,9 +120,6 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder serviceDescription(String value @JsonProperty("observations") public ApiCustomerInvoiceUpdateRequestDtoBuilder observations(String value) { - if (value == null) { - throw new IllegalStateException("observations cannot be null"); - } this.observations = JsonNullable.of(value); return this; } @@ -134,9 +128,6 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder observations(String value) { @JsonProperty("externalReference") public ApiCustomerInvoiceUpdateRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -145,9 +136,6 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder externalReference(String value) @JsonProperty("value") public ApiCustomerInvoiceUpdateRequestDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -156,9 +144,6 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder value(Double value) { @JsonProperty("deductions") public ApiCustomerInvoiceUpdateRequestDtoBuilder deductions(Double value) { - if (value == null) { - throw new IllegalStateException("deductions cannot be null"); - } this.deductions = JsonNullable.of(value); return this; } @@ -167,9 +152,6 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder deductions(Double value) { @JsonProperty("effectiveDate") public ApiCustomerInvoiceUpdateRequestDtoBuilder effectiveDate(String value) { - if (value == null) { - throw new IllegalStateException("effectiveDate cannot be null"); - } this.effectiveDate = JsonNullable.of(value); return this; } @@ -178,9 +160,6 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder effectiveDate(String value) { @JsonProperty("updatePayment") public ApiCustomerInvoiceUpdateRequestDtoBuilder updatePayment(Boolean value) { - if (value == null) { - throw new IllegalStateException("updatePayment cannot be null"); - } this.updatePayment = JsonNullable.of(value); return this; } @@ -189,9 +168,6 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder updatePayment(Boolean value) { @JsonProperty("taxes") public ApiCustomerInvoiceUpdateRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { - if (value == null) { - throw new IllegalStateException("taxes cannot be null"); - } this.taxes = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerListResponseDto.java index dc83944..c379f0c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiCustomerListResponseDtoBuilder { @JsonProperty("object") public ApiCustomerListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiCustomerListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiCustomerListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiCustomerListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiCustomerListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiCustomerListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiCustomerListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiCustomerListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiCustomerListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiCustomerListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiCustomerListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerPaymentCustodyConfigDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerPaymentCustodyConfigDto.java index 929b3e4..c4136ea 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerPaymentCustodyConfigDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerPaymentCustodyConfigDto.java @@ -56,9 +56,6 @@ public static class ApiCustomerPaymentCustodyConfigDtoBuilder { @JsonProperty("enabled") public ApiCustomerPaymentCustodyConfigDtoBuilder enabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("enabled cannot be null"); - } this.enabled = JsonNullable.of(value); return this; } @@ -67,9 +64,6 @@ public ApiCustomerPaymentCustodyConfigDtoBuilder enabled(Boolean value) { @JsonProperty("isFeePayer") public ApiCustomerPaymentCustodyConfigDtoBuilder isFeePayer(Boolean value) { - if (value == null) { - throw new IllegalStateException("isFeePayer cannot be null"); - } this.isFeePayer = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.java index f19baaa..6c5be82 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.java @@ -56,9 +56,6 @@ public static class ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDtoBuilder @JsonProperty("enabled") public ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDtoBuilder enabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("enabled cannot be null"); - } this.enabled = JsonNullable.of(value); return this; } @@ -67,9 +64,6 @@ public ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDtoBuilder enabled(Bool @JsonProperty("isFeePayer") public ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDtoBuilder isFeePayer(Boolean value) { - if (value == null) { - throw new IllegalStateException("isFeePayer cannot be null"); - } this.isFeePayer = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestDto.java index a029af2..1a06533 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestDto.java @@ -160,9 +160,6 @@ public static class ApiCustomerSaveRequestDtoBuilder { @JsonProperty("loginEmail") public ApiCustomerSaveRequestDtoBuilder loginEmail(String value) { - if (value == null) { - throw new IllegalStateException("loginEmail cannot be null"); - } this.loginEmail = JsonNullable.of(value); return this; } @@ -171,9 +168,6 @@ public ApiCustomerSaveRequestDtoBuilder loginEmail(String value) { @JsonProperty("birthDate") public ApiCustomerSaveRequestDtoBuilder birthDate(String value) { - if (value == null) { - throw new IllegalStateException("birthDate cannot be null"); - } this.birthDate = JsonNullable.of(value); return this; } @@ -182,9 +176,6 @@ public ApiCustomerSaveRequestDtoBuilder birthDate(String value) { @JsonProperty("companyType") public ApiCustomerSaveRequestDtoBuilder companyType(ApiCustomerSaveRequestCompanyType value) { - if (value == null) { - throw new IllegalStateException("companyType cannot be null"); - } this.companyType = JsonNullable.of(value); return this; } @@ -193,9 +184,6 @@ public ApiCustomerSaveRequestDtoBuilder companyType(ApiCustomerSaveRequestCompan @JsonProperty("phone") public ApiCustomerSaveRequestDtoBuilder phone(String value) { - if (value == null) { - throw new IllegalStateException("phone cannot be null"); - } this.phone = JsonNullable.of(value); return this; } @@ -204,9 +192,6 @@ public ApiCustomerSaveRequestDtoBuilder phone(String value) { @JsonProperty("site") public ApiCustomerSaveRequestDtoBuilder site(String value) { - if (value == null) { - throw new IllegalStateException("site cannot be null"); - } this.site = JsonNullable.of(value); return this; } @@ -215,9 +200,6 @@ public ApiCustomerSaveRequestDtoBuilder site(String value) { @JsonProperty("complement") public ApiCustomerSaveRequestDtoBuilder complement(String value) { - if (value == null) { - throw new IllegalStateException("complement cannot be null"); - } this.complement = JsonNullable.of(value); return this; } @@ -226,9 +208,6 @@ public ApiCustomerSaveRequestDtoBuilder complement(String value) { @JsonProperty("webhooks") public ApiCustomerSaveRequestDtoBuilder webhooks(List value) { - if (value == null) { - throw new IllegalStateException("webhooks cannot be null"); - } this.webhooks = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseDto.java index e35db78..92040cb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseDto.java @@ -296,9 +296,6 @@ public static class ApiCustomerSaveResponseDtoBuilder { @JsonProperty("object") public ApiCustomerSaveResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -307,9 +304,6 @@ public ApiCustomerSaveResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiCustomerSaveResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -318,9 +312,6 @@ public ApiCustomerSaveResponseDtoBuilder id(String value) { @JsonProperty("name") public ApiCustomerSaveResponseDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -329,9 +320,6 @@ public ApiCustomerSaveResponseDtoBuilder name(String value) { @JsonProperty("email") public ApiCustomerSaveResponseDtoBuilder email(String value) { - if (value == null) { - throw new IllegalStateException("email cannot be null"); - } this.email = JsonNullable.of(value); return this; } @@ -340,9 +328,6 @@ public ApiCustomerSaveResponseDtoBuilder email(String value) { @JsonProperty("loginEmail") public ApiCustomerSaveResponseDtoBuilder loginEmail(String value) { - if (value == null) { - throw new IllegalStateException("loginEmail cannot be null"); - } this.loginEmail = JsonNullable.of(value); return this; } @@ -351,9 +336,6 @@ public ApiCustomerSaveResponseDtoBuilder loginEmail(String value) { @JsonProperty("phone") public ApiCustomerSaveResponseDtoBuilder phone(String value) { - if (value == null) { - throw new IllegalStateException("phone cannot be null"); - } this.phone = JsonNullable.of(value); return this; } @@ -362,9 +344,6 @@ public ApiCustomerSaveResponseDtoBuilder phone(String value) { @JsonProperty("mobilePhone") public ApiCustomerSaveResponseDtoBuilder mobilePhone(String value) { - if (value == null) { - throw new IllegalStateException("mobilePhone cannot be null"); - } this.mobilePhone = JsonNullable.of(value); return this; } @@ -373,9 +352,6 @@ public ApiCustomerSaveResponseDtoBuilder mobilePhone(String value) { @JsonProperty("address") public ApiCustomerSaveResponseDtoBuilder address(String value) { - if (value == null) { - throw new IllegalStateException("address cannot be null"); - } this.address = JsonNullable.of(value); return this; } @@ -384,9 +360,6 @@ public ApiCustomerSaveResponseDtoBuilder address(String value) { @JsonProperty("addressNumber") public ApiCustomerSaveResponseDtoBuilder addressNumber(String value) { - if (value == null) { - throw new IllegalStateException("addressNumber cannot be null"); - } this.addressNumber = JsonNullable.of(value); return this; } @@ -395,9 +368,6 @@ public ApiCustomerSaveResponseDtoBuilder addressNumber(String value) { @JsonProperty("complement") public ApiCustomerSaveResponseDtoBuilder complement(String value) { - if (value == null) { - throw new IllegalStateException("complement cannot be null"); - } this.complement = JsonNullable.of(value); return this; } @@ -406,9 +376,6 @@ public ApiCustomerSaveResponseDtoBuilder complement(String value) { @JsonProperty("province") public ApiCustomerSaveResponseDtoBuilder province(String value) { - if (value == null) { - throw new IllegalStateException("province cannot be null"); - } this.province = JsonNullable.of(value); return this; } @@ -417,9 +384,6 @@ public ApiCustomerSaveResponseDtoBuilder province(String value) { @JsonProperty("postalCode") public ApiCustomerSaveResponseDtoBuilder postalCode(String value) { - if (value == null) { - throw new IllegalStateException("postalCode cannot be null"); - } this.postalCode = JsonNullable.of(value); return this; } @@ -428,9 +392,6 @@ public ApiCustomerSaveResponseDtoBuilder postalCode(String value) { @JsonProperty("cpfCnpj") public ApiCustomerSaveResponseDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -439,9 +400,6 @@ public ApiCustomerSaveResponseDtoBuilder cpfCnpj(String value) { @JsonProperty("birthDate") public ApiCustomerSaveResponseDtoBuilder birthDate(String value) { - if (value == null) { - throw new IllegalStateException("birthDate cannot be null"); - } this.birthDate = JsonNullable.of(value); return this; } @@ -450,9 +408,6 @@ public ApiCustomerSaveResponseDtoBuilder birthDate(String value) { @JsonProperty("personType") public ApiCustomerSaveResponseDtoBuilder personType(ApiCustomerSaveResponsePersonType value) { - if (value == null) { - throw new IllegalStateException("personType cannot be null"); - } this.personType = JsonNullable.of(value); return this; } @@ -461,9 +416,6 @@ public ApiCustomerSaveResponseDtoBuilder personType(ApiCustomerSaveResponsePerso @JsonProperty("companyType") public ApiCustomerSaveResponseDtoBuilder companyType(ApiCustomerSaveResponseCompanyType value) { - if (value == null) { - throw new IllegalStateException("companyType cannot be null"); - } this.companyType = JsonNullable.of(value); return this; } @@ -472,9 +424,6 @@ public ApiCustomerSaveResponseDtoBuilder companyType(ApiCustomerSaveResponseComp @JsonProperty("city") public ApiCustomerSaveResponseDtoBuilder city(Long value) { - if (value == null) { - throw new IllegalStateException("city cannot be null"); - } this.city = JsonNullable.of(value); return this; } @@ -483,9 +432,6 @@ public ApiCustomerSaveResponseDtoBuilder city(Long value) { @JsonProperty("state") public ApiCustomerSaveResponseDtoBuilder state(String value) { - if (value == null) { - throw new IllegalStateException("state cannot be null"); - } this.state = JsonNullable.of(value); return this; } @@ -494,9 +440,6 @@ public ApiCustomerSaveResponseDtoBuilder state(String value) { @JsonProperty("country") public ApiCustomerSaveResponseDtoBuilder country(String value) { - if (value == null) { - throw new IllegalStateException("country cannot be null"); - } this.country = JsonNullable.of(value); return this; } @@ -505,9 +448,6 @@ public ApiCustomerSaveResponseDtoBuilder country(String value) { @JsonProperty("tradingName") public ApiCustomerSaveResponseDtoBuilder tradingName(String value) { - if (value == null) { - throw new IllegalStateException("tradingName cannot be null"); - } this.tradingName = JsonNullable.of(value); return this; } @@ -516,9 +456,6 @@ public ApiCustomerSaveResponseDtoBuilder tradingName(String value) { @JsonProperty("site") public ApiCustomerSaveResponseDtoBuilder site(String value) { - if (value == null) { - throw new IllegalStateException("site cannot be null"); - } this.site = JsonNullable.of(value); return this; } @@ -527,9 +464,6 @@ public ApiCustomerSaveResponseDtoBuilder site(String value) { @JsonProperty("walletId") public ApiCustomerSaveResponseDtoBuilder walletId(String value) { - if (value == null) { - throw new IllegalStateException("walletId cannot be null"); - } this.walletId = JsonNullable.of(value); return this; } @@ -538,9 +472,6 @@ public ApiCustomerSaveResponseDtoBuilder walletId(String value) { @JsonProperty("accountNumber") public ApiCustomerSaveResponseDtoBuilder accountNumber(ApiCustomerAccountNumberDto value) { - if (value == null) { - throw new IllegalStateException("accountNumber cannot be null"); - } this.accountNumber = JsonNullable.of(value); return this; } @@ -552,9 +483,6 @@ public ApiCustomerSaveResponseDtoBuilder accountNumber(ApiCustomerAccountNumberD public ApiCustomerSaveResponseDtoBuilder commercialInfoExpiration( ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto value ) { - if (value == null) { - throw new IllegalStateException("commercialInfoExpiration cannot be null"); - } this.commercialInfoExpiration = JsonNullable.of(value); return this; } @@ -563,9 +491,6 @@ public ApiCustomerSaveResponseDtoBuilder commercialInfoExpiration( @JsonProperty("apiKey") public ApiCustomerSaveResponseDtoBuilder apiKey(String value) { - if (value == null) { - throw new IllegalStateException("apiKey cannot be null"); - } this.apiKey = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityDto.java index 3158a19..82fe902 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityDto.java @@ -104,9 +104,6 @@ public static class ApiCustomerUpdateRequestCityDtoBuilder { @JsonProperty("object") public ApiCustomerUpdateRequestCityDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -115,9 +112,6 @@ public ApiCustomerUpdateRequestCityDtoBuilder object(String value) { @JsonProperty("id") public ApiCustomerUpdateRequestCityDtoBuilder id(Long value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -126,9 +120,6 @@ public ApiCustomerUpdateRequestCityDtoBuilder id(Long value) { @JsonProperty("ibgeCode") public ApiCustomerUpdateRequestCityDtoBuilder ibgeCode(String value) { - if (value == null) { - throw new IllegalStateException("ibgeCode cannot be null"); - } this.ibgeCode = JsonNullable.of(value); return this; } @@ -137,9 +128,6 @@ public ApiCustomerUpdateRequestCityDtoBuilder ibgeCode(String value) { @JsonProperty("name") public ApiCustomerUpdateRequestCityDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -148,9 +136,6 @@ public ApiCustomerUpdateRequestCityDtoBuilder name(String value) { @JsonProperty("districtCode") public ApiCustomerUpdateRequestCityDtoBuilder districtCode(String value) { - if (value == null) { - throw new IllegalStateException("districtCode cannot be null"); - } this.districtCode = JsonNullable.of(value); return this; } @@ -159,9 +144,6 @@ public ApiCustomerUpdateRequestCityDtoBuilder districtCode(String value) { @JsonProperty("district") public ApiCustomerUpdateRequestCityDtoBuilder district(String value) { - if (value == null) { - throw new IllegalStateException("district cannot be null"); - } this.district = JsonNullable.of(value); return this; } @@ -170,9 +152,6 @@ public ApiCustomerUpdateRequestCityDtoBuilder district(String value) { @JsonProperty("state") public ApiCustomerUpdateRequestCityDtoBuilder state(ApiCustomerUpdateRequestCityState value) { - if (value == null) { - throw new IllegalStateException("state cannot be null"); - } this.state = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java index deb7d4a..0307965 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java @@ -49,9 +49,6 @@ public static class ApiCustomerUpdateRequestCommercialInfoExpirationResponseDtoB @JsonProperty("isExpired") public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDtoBuilder isExpired(Boolean value) { - if (value == null) { - throw new IllegalStateException("isExpired cannot be null"); - } this.isExpired = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDtoBuilder isExpi @JsonProperty("scheduledDate") public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDtoBuilder scheduledDate(String value) { - if (value == null) { - throw new IllegalStateException("scheduledDate cannot be null"); - } this.scheduledDate = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseDto.java index 2afaf39..8f59eca 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseDto.java @@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; import lombok.Builder; import lombok.Data; import lombok.EqualsAndHashCode; @@ -137,6 +138,12 @@ public class ApiCustomerUpdateRequestGetResponseDto { @JsonProperty("site") private JsonNullable site; + /** + * Company names available. Only filled in for Legal Entity type accounts. + */ + @JsonProperty("availableCompanyNames") + private JsonNullable> availableCompanyNames; + @JsonProperty("commercialInfoExpiration") private JsonNullable commercialInfoExpiration; @@ -240,6 +247,11 @@ public String getSite() { return site.orElse(null); } + @JsonIgnore + public List getAvailableCompanyNames() { + return availableCompanyNames.orElse(null); + } + @JsonIgnore public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { return commercialInfoExpiration.orElse(null); @@ -252,9 +264,6 @@ public static class ApiCustomerUpdateRequestGetResponseDtoBuilder { @JsonProperty("status") public ApiCustomerUpdateRequestGetResponseDtoBuilder status(ApiCustomerUpdateRequestGetResponseStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -265,9 +274,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder status(ApiCustomerUpdateReq public ApiCustomerUpdateRequestGetResponseDtoBuilder personType( ApiCustomerUpdateRequestGetResponsePersonType value ) { - if (value == null) { - throw new IllegalStateException("personType cannot be null"); - } this.personType = JsonNullable.of(value); return this; } @@ -276,9 +282,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder personType( @JsonProperty("cpfCnpj") public ApiCustomerUpdateRequestGetResponseDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -287,9 +290,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder cpfCnpj(String value) { @JsonProperty("name") public ApiCustomerUpdateRequestGetResponseDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -298,9 +298,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder name(String value) { @JsonProperty("birthDate") public ApiCustomerUpdateRequestGetResponseDtoBuilder birthDate(String value) { - if (value == null) { - throw new IllegalStateException("birthDate cannot be null"); - } this.birthDate = JsonNullable.of(value); return this; } @@ -309,9 +306,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder birthDate(String value) { @JsonProperty("companyName") public ApiCustomerUpdateRequestGetResponseDtoBuilder companyName(String value) { - if (value == null) { - throw new IllegalStateException("companyName cannot be null"); - } this.companyName = JsonNullable.of(value); return this; } @@ -322,9 +316,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder companyName(String value) { public ApiCustomerUpdateRequestGetResponseDtoBuilder companyType( ApiCustomerUpdateRequestGetResponseCompanyType value ) { - if (value == null) { - throw new IllegalStateException("companyType cannot be null"); - } this.companyType = JsonNullable.of(value); return this; } @@ -333,9 +324,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder companyType( @JsonProperty("incomeValue") public ApiCustomerUpdateRequestGetResponseDtoBuilder incomeValue(Double value) { - if (value == null) { - throw new IllegalStateException("incomeValue cannot be null"); - } this.incomeValue = JsonNullable.of(value); return this; } @@ -344,9 +332,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder incomeValue(Double value) { @JsonProperty("email") public ApiCustomerUpdateRequestGetResponseDtoBuilder email(String value) { - if (value == null) { - throw new IllegalStateException("email cannot be null"); - } this.email = JsonNullable.of(value); return this; } @@ -355,9 +340,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder email(String value) { @JsonProperty("phone") public ApiCustomerUpdateRequestGetResponseDtoBuilder phone(String value) { - if (value == null) { - throw new IllegalStateException("phone cannot be null"); - } this.phone = JsonNullable.of(value); return this; } @@ -366,9 +348,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder phone(String value) { @JsonProperty("mobilePhone") public ApiCustomerUpdateRequestGetResponseDtoBuilder mobilePhone(String value) { - if (value == null) { - throw new IllegalStateException("mobilePhone cannot be null"); - } this.mobilePhone = JsonNullable.of(value); return this; } @@ -377,9 +356,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder mobilePhone(String value) { @JsonProperty("postalCode") public ApiCustomerUpdateRequestGetResponseDtoBuilder postalCode(String value) { - if (value == null) { - throw new IllegalStateException("postalCode cannot be null"); - } this.postalCode = JsonNullable.of(value); return this; } @@ -388,9 +364,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder postalCode(String value) { @JsonProperty("address") public ApiCustomerUpdateRequestGetResponseDtoBuilder address(String value) { - if (value == null) { - throw new IllegalStateException("address cannot be null"); - } this.address = JsonNullable.of(value); return this; } @@ -399,9 +372,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder address(String value) { @JsonProperty("addressNumber") public ApiCustomerUpdateRequestGetResponseDtoBuilder addressNumber(String value) { - if (value == null) { - throw new IllegalStateException("addressNumber cannot be null"); - } this.addressNumber = JsonNullable.of(value); return this; } @@ -410,9 +380,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder addressNumber(String value) @JsonProperty("complement") public ApiCustomerUpdateRequestGetResponseDtoBuilder complement(String value) { - if (value == null) { - throw new IllegalStateException("complement cannot be null"); - } this.complement = JsonNullable.of(value); return this; } @@ -421,9 +388,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder complement(String value) { @JsonProperty("province") public ApiCustomerUpdateRequestGetResponseDtoBuilder province(String value) { - if (value == null) { - throw new IllegalStateException("province cannot be null"); - } this.province = JsonNullable.of(value); return this; } @@ -432,9 +396,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder province(String value) { @JsonProperty("city") public ApiCustomerUpdateRequestGetResponseDtoBuilder city(ApiCustomerUpdateRequestCityDto value) { - if (value == null) { - throw new IllegalStateException("city cannot be null"); - } this.city = JsonNullable.of(value); return this; } @@ -443,9 +404,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder city(ApiCustomerUpdateReque @JsonProperty("denialReason") public ApiCustomerUpdateRequestGetResponseDtoBuilder denialReason(String value) { - if (value == null) { - throw new IllegalStateException("denialReason cannot be null"); - } this.denialReason = JsonNullable.of(value); return this; } @@ -454,9 +412,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder denialReason(String value) @JsonProperty("tradingName") public ApiCustomerUpdateRequestGetResponseDtoBuilder tradingName(String value) { - if (value == null) { - throw new IllegalStateException("tradingName cannot be null"); - } this.tradingName = JsonNullable.of(value); return this; } @@ -465,13 +420,18 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder tradingName(String value) { @JsonProperty("site") public ApiCustomerUpdateRequestGetResponseDtoBuilder site(String value) { - if (value == null) { - throw new IllegalStateException("site cannot be null"); - } this.site = JsonNullable.of(value); return this; } + private JsonNullable> availableCompanyNames = JsonNullable.undefined(); + + @JsonProperty("availableCompanyNames") + public ApiCustomerUpdateRequestGetResponseDtoBuilder availableCompanyNames(List value) { + this.availableCompanyNames = JsonNullable.of(value); + return this; + } + private JsonNullable commercialInfoExpiration = JsonNullable.undefined(); @@ -479,9 +439,6 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder site(String value) { public ApiCustomerUpdateRequestGetResponseDtoBuilder commercialInfoExpiration( ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto value ) { - if (value == null) { - throw new IllegalStateException("commercialInfoExpiration cannot be null"); - } this.commercialInfoExpiration = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestDto.java index af37cf4..c697aa1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestDto.java @@ -183,9 +183,6 @@ public static class ApiCustomerUpdateRequestSaveRequestDtoBuilder { public ApiCustomerUpdateRequestSaveRequestDtoBuilder personType( ApiCustomerUpdateRequestSaveRequestPersonType value ) { - if (value == null) { - throw new IllegalStateException("personType cannot be null"); - } this.personType = JsonNullable.of(value); return this; } @@ -194,9 +191,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder personType( @JsonProperty("cpfCnpj") public ApiCustomerUpdateRequestSaveRequestDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -205,9 +199,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder cpfCnpj(String value) { @JsonProperty("birthDate") public ApiCustomerUpdateRequestSaveRequestDtoBuilder birthDate(String value) { - if (value == null) { - throw new IllegalStateException("birthDate cannot be null"); - } this.birthDate = JsonNullable.of(value); return this; } @@ -218,9 +209,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder birthDate(String value) { public ApiCustomerUpdateRequestSaveRequestDtoBuilder companyType( ApiCustomerUpdateRequestSaveRequestCompanyType value ) { - if (value == null) { - throw new IllegalStateException("companyType cannot be null"); - } this.companyType = JsonNullable.of(value); return this; } @@ -229,9 +217,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder companyType( @JsonProperty("incomeValue") public ApiCustomerUpdateRequestSaveRequestDtoBuilder incomeValue(Double value) { - if (value == null) { - throw new IllegalStateException("incomeValue cannot be null"); - } this.incomeValue = JsonNullable.of(value); return this; } @@ -240,9 +225,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder incomeValue(Double value) { @JsonProperty("email") public ApiCustomerUpdateRequestSaveRequestDtoBuilder email(String value) { - if (value == null) { - throw new IllegalStateException("email cannot be null"); - } this.email = JsonNullable.of(value); return this; } @@ -251,9 +233,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder email(String value) { @JsonProperty("phone") public ApiCustomerUpdateRequestSaveRequestDtoBuilder phone(String value) { - if (value == null) { - throw new IllegalStateException("phone cannot be null"); - } this.phone = JsonNullable.of(value); return this; } @@ -262,9 +241,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder phone(String value) { @JsonProperty("mobilePhone") public ApiCustomerUpdateRequestSaveRequestDtoBuilder mobilePhone(String value) { - if (value == null) { - throw new IllegalStateException("mobilePhone cannot be null"); - } this.mobilePhone = JsonNullable.of(value); return this; } @@ -273,9 +249,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder mobilePhone(String value) { @JsonProperty("site") public ApiCustomerUpdateRequestSaveRequestDtoBuilder site(String value) { - if (value == null) { - throw new IllegalStateException("site cannot be null"); - } this.site = JsonNullable.of(value); return this; } @@ -284,9 +257,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder site(String value) { @JsonProperty("postalCode") public ApiCustomerUpdateRequestSaveRequestDtoBuilder postalCode(String value) { - if (value == null) { - throw new IllegalStateException("postalCode cannot be null"); - } this.postalCode = JsonNullable.of(value); return this; } @@ -295,9 +265,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder postalCode(String value) { @JsonProperty("address") public ApiCustomerUpdateRequestSaveRequestDtoBuilder address(String value) { - if (value == null) { - throw new IllegalStateException("address cannot be null"); - } this.address = JsonNullable.of(value); return this; } @@ -306,9 +273,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder address(String value) { @JsonProperty("addressNumber") public ApiCustomerUpdateRequestSaveRequestDtoBuilder addressNumber(String value) { - if (value == null) { - throw new IllegalStateException("addressNumber cannot be null"); - } this.addressNumber = JsonNullable.of(value); return this; } @@ -317,9 +281,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder addressNumber(String value) @JsonProperty("complement") public ApiCustomerUpdateRequestSaveRequestDtoBuilder complement(String value) { - if (value == null) { - throw new IllegalStateException("complement cannot be null"); - } this.complement = JsonNullable.of(value); return this; } @@ -328,9 +289,6 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder complement(String value) { @JsonProperty("province") public ApiCustomerUpdateRequestSaveRequestDtoBuilder province(String value) { - if (value == null) { - throw new IllegalStateException("province cannot be null"); - } this.province = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiErrorResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiErrorResponseDto.java index e4dffe2..fe108e7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiErrorResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiErrorResponseDto.java @@ -43,9 +43,6 @@ public static class ApiErrorResponseDtoBuilder { @JsonProperty("errors") public ApiErrorResponseDtoBuilder errors(List value) { - if (value == null) { - throw new IllegalStateException("errors cannot be null"); - } this.errors = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiErrorResponseItemDto.java b/src/main/java/com/asaas/apisdk/models/ApiErrorResponseItemDto.java index 14a2fc8..0e53564 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiErrorResponseItemDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiErrorResponseItemDto.java @@ -49,9 +49,6 @@ public static class ApiErrorResponseItemDtoBuilder { @JsonProperty("code") public ApiErrorResponseItemDtoBuilder code(String value) { - if (value == null) { - throw new IllegalStateException("code cannot be null"); - } this.code = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiErrorResponseItemDtoBuilder code(String value) { @JsonProperty("description") public ApiErrorResponseItemDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiFinanceBalanceResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiFinanceBalanceResponseDto.java index 9762638..b26ca37 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceBalanceResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiFinanceBalanceResponseDto.java @@ -38,9 +38,6 @@ public static class ApiFinanceBalanceResponseDtoBuilder { @JsonProperty("balance") public ApiFinanceBalanceResponseDtoBuilder balance(Double value) { - if (value == null) { - throw new IllegalStateException("balance cannot be null"); - } this.balance = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsResponseDto.java index 46aea2f..79f4000 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsResponseDto.java @@ -60,9 +60,6 @@ public static class ApiFinanceGetPaymentStatisticsResponseDtoBuilder { @JsonProperty("quantity") public ApiFinanceGetPaymentStatisticsResponseDtoBuilder quantity(Long value) { - if (value == null) { - throw new IllegalStateException("quantity cannot be null"); - } this.quantity = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiFinanceGetPaymentStatisticsResponseDtoBuilder quantity(Long value) { @JsonProperty("value") public ApiFinanceGetPaymentStatisticsResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiFinanceGetPaymentStatisticsResponseDtoBuilder value(Double value) { @JsonProperty("netValue") public ApiFinanceGetPaymentStatisticsResponseDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetSplitStatisticsResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiFinanceGetSplitStatisticsResponseDto.java index fa1837e..1fcfecc 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetSplitStatisticsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiFinanceGetSplitStatisticsResponseDto.java @@ -49,9 +49,6 @@ public static class ApiFinanceGetSplitStatisticsResponseDtoBuilder { @JsonProperty("income") public ApiFinanceGetSplitStatisticsResponseDtoBuilder income(Double value) { - if (value == null) { - throw new IllegalStateException("income cannot be null"); - } this.income = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiFinanceGetSplitStatisticsResponseDtoBuilder income(Double value) { @JsonProperty("value") public ApiFinanceGetSplitStatisticsResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseDto.java index 1f4e61f..7e6888d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseDto.java @@ -192,9 +192,6 @@ public static class ApiFinancialTransactionGetResponseDtoBuilder { @JsonProperty("object") public ApiFinancialTransactionGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -203,9 +200,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiFinancialTransactionGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -214,9 +208,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder id(String value) { @JsonProperty("value") public ApiFinancialTransactionGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -225,9 +216,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder value(Double value) { @JsonProperty("balance") public ApiFinancialTransactionGetResponseDtoBuilder balance(Double value) { - if (value == null) { - throw new IllegalStateException("balance cannot be null"); - } this.balance = JsonNullable.of(value); return this; } @@ -238,9 +226,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder balance(Double value) { public ApiFinancialTransactionGetResponseDtoBuilder type( ApiFinancialTransactionGetResponseFinancialTransactionType value ) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -249,9 +234,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder type( @JsonProperty("date") public ApiFinancialTransactionGetResponseDtoBuilder date(String value) { - if (value == null) { - throw new IllegalStateException("date cannot be null"); - } this.date = JsonNullable.of(value); return this; } @@ -260,9 +242,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder date(String value) { @JsonProperty("description") public ApiFinancialTransactionGetResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -271,9 +250,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder description(String value) { @JsonProperty("paymentId") public ApiFinancialTransactionGetResponseDtoBuilder paymentId(String value) { - if (value == null) { - throw new IllegalStateException("paymentId cannot be null"); - } this.paymentId = JsonNullable.of(value); return this; } @@ -282,9 +258,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder paymentId(String value) { @JsonProperty("splitId") public ApiFinancialTransactionGetResponseDtoBuilder splitId(String value) { - if (value == null) { - throw new IllegalStateException("splitId cannot be null"); - } this.splitId = JsonNullable.of(value); return this; } @@ -293,9 +266,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder splitId(String value) { @JsonProperty("transferId") public ApiFinancialTransactionGetResponseDtoBuilder transferId(String value) { - if (value == null) { - throw new IllegalStateException("transferId cannot be null"); - } this.transferId = JsonNullable.of(value); return this; } @@ -304,9 +274,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder transferId(String value) { @JsonProperty("anticipationId") public ApiFinancialTransactionGetResponseDtoBuilder anticipationId(String value) { - if (value == null) { - throw new IllegalStateException("anticipationId cannot be null"); - } this.anticipationId = JsonNullable.of(value); return this; } @@ -315,9 +282,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder anticipationId(String value) @JsonProperty("billId") public ApiFinancialTransactionGetResponseDtoBuilder billId(String value) { - if (value == null) { - throw new IllegalStateException("billId cannot be null"); - } this.billId = JsonNullable.of(value); return this; } @@ -326,9 +290,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder billId(String value) { @JsonProperty("invoiceId") public ApiFinancialTransactionGetResponseDtoBuilder invoiceId(String value) { - if (value == null) { - throw new IllegalStateException("invoiceId cannot be null"); - } this.invoiceId = JsonNullable.of(value); return this; } @@ -337,9 +298,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder invoiceId(String value) { @JsonProperty("paymentDunningId") public ApiFinancialTransactionGetResponseDtoBuilder paymentDunningId(String value) { - if (value == null) { - throw new IllegalStateException("paymentDunningId cannot be null"); - } this.paymentDunningId = JsonNullable.of(value); return this; } @@ -348,9 +306,6 @@ public ApiFinancialTransactionGetResponseDtoBuilder paymentDunningId(String valu @JsonProperty("creditBureauReportId") public ApiFinancialTransactionGetResponseDtoBuilder creditBureauReportId(String value) { - if (value == null) { - throw new IllegalStateException("creditBureauReportId cannot be null"); - } this.creditBureauReportId = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionListResponseDto.java index 7e6226e..6e05504 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiFinancialTransactionListResponseDtoBuilder { @JsonProperty("object") public ApiFinancialTransactionListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiFinancialTransactionListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiFinancialTransactionListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiFinancialTransactionListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiFinancialTransactionListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiFinancialTransactionListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiFinancialTransactionListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiFinancialTransactionListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiFinancialTransactionListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiFinancialTransactionListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiFinancialTransactionListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentDeleteResponseDto.java index 2085c8f..ce8e316 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiInstallmentDeleteResponseDto.java @@ -49,9 +49,6 @@ public static class ApiInstallmentDeleteResponseDtoBuilder { @JsonProperty("deleted") public ApiInstallmentDeleteResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiInstallmentDeleteResponseDtoBuilder deleted(Boolean value) { @JsonProperty("id") public ApiInstallmentDeleteResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseDto.java index b806a89..b5c236e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseDto.java @@ -231,9 +231,6 @@ public static class ApiInstallmentGetResponseDtoBuilder { @JsonProperty("object") public ApiInstallmentGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -242,9 +239,6 @@ public ApiInstallmentGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiInstallmentGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -253,9 +247,6 @@ public ApiInstallmentGetResponseDtoBuilder id(String value) { @JsonProperty("value") public ApiInstallmentGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -264,9 +255,6 @@ public ApiInstallmentGetResponseDtoBuilder value(Double value) { @JsonProperty("netValue") public ApiInstallmentGetResponseDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -275,9 +263,6 @@ public ApiInstallmentGetResponseDtoBuilder netValue(Double value) { @JsonProperty("paymentValue") public ApiInstallmentGetResponseDtoBuilder paymentValue(Double value) { - if (value == null) { - throw new IllegalStateException("paymentValue cannot be null"); - } this.paymentValue = JsonNullable.of(value); return this; } @@ -286,9 +271,6 @@ public ApiInstallmentGetResponseDtoBuilder paymentValue(Double value) { @JsonProperty("installmentCount") public ApiInstallmentGetResponseDtoBuilder installmentCount(Long value) { - if (value == null) { - throw new IllegalStateException("installmentCount cannot be null"); - } this.installmentCount = JsonNullable.of(value); return this; } @@ -297,9 +279,6 @@ public ApiInstallmentGetResponseDtoBuilder installmentCount(Long value) { @JsonProperty("billingType") public ApiInstallmentGetResponseDtoBuilder billingType(ApiInstallmentGetResponseBillingType value) { - if (value == null) { - throw new IllegalStateException("billingType cannot be null"); - } this.billingType = JsonNullable.of(value); return this; } @@ -308,9 +287,6 @@ public ApiInstallmentGetResponseDtoBuilder billingType(ApiInstallmentGetResponse @JsonProperty("paymentDate") public ApiInstallmentGetResponseDtoBuilder paymentDate(String value) { - if (value == null) { - throw new IllegalStateException("paymentDate cannot be null"); - } this.paymentDate = JsonNullable.of(value); return this; } @@ -319,9 +295,6 @@ public ApiInstallmentGetResponseDtoBuilder paymentDate(String value) { @JsonProperty("description") public ApiInstallmentGetResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -330,9 +303,6 @@ public ApiInstallmentGetResponseDtoBuilder description(String value) { @JsonProperty("expirationDay") public ApiInstallmentGetResponseDtoBuilder expirationDay(Long value) { - if (value == null) { - throw new IllegalStateException("expirationDay cannot be null"); - } this.expirationDay = JsonNullable.of(value); return this; } @@ -341,9 +311,6 @@ public ApiInstallmentGetResponseDtoBuilder expirationDay(Long value) { @JsonProperty("dateCreated") public ApiInstallmentGetResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -352,9 +319,6 @@ public ApiInstallmentGetResponseDtoBuilder dateCreated(String value) { @JsonProperty("customer") public ApiInstallmentGetResponseDtoBuilder customer(String value) { - if (value == null) { - throw new IllegalStateException("customer cannot be null"); - } this.customer = JsonNullable.of(value); return this; } @@ -363,9 +327,6 @@ public ApiInstallmentGetResponseDtoBuilder customer(String value) { @JsonProperty("paymentLink") public ApiInstallmentGetResponseDtoBuilder paymentLink(String value) { - if (value == null) { - throw new IllegalStateException("paymentLink cannot be null"); - } this.paymentLink = JsonNullable.of(value); return this; } @@ -374,9 +335,6 @@ public ApiInstallmentGetResponseDtoBuilder paymentLink(String value) { @JsonProperty("checkoutSession") public ApiInstallmentGetResponseDtoBuilder checkoutSession(String value) { - if (value == null) { - throw new IllegalStateException("checkoutSession cannot be null"); - } this.checkoutSession = JsonNullable.of(value); return this; } @@ -385,9 +343,6 @@ public ApiInstallmentGetResponseDtoBuilder checkoutSession(String value) { @JsonProperty("transactionReceiptUrl") public ApiInstallmentGetResponseDtoBuilder transactionReceiptUrl(String value) { - if (value == null) { - throw new IllegalStateException("transactionReceiptUrl cannot be null"); - } this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -396,9 +351,6 @@ public ApiInstallmentGetResponseDtoBuilder transactionReceiptUrl(String value) { @JsonProperty("chargeback") public ApiInstallmentGetResponseDtoBuilder chargeback(ApiPaymentChargebackResponseDto value) { - if (value == null) { - throw new IllegalStateException("chargeback cannot be null"); - } this.chargeback = JsonNullable.of(value); return this; } @@ -407,9 +359,6 @@ public ApiInstallmentGetResponseDtoBuilder chargeback(ApiPaymentChargebackRespon @JsonProperty("creditCard") public ApiInstallmentGetResponseDtoBuilder creditCard(ApiPaymentSaveWithCreditCardCreditCardDto value) { - if (value == null) { - throw new IllegalStateException("creditCard cannot be null"); - } this.creditCard = JsonNullable.of(value); return this; } @@ -418,9 +367,6 @@ public ApiInstallmentGetResponseDtoBuilder creditCard(ApiPaymentSaveWithCreditCa @JsonProperty("deleted") public ApiInstallmentGetResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -429,9 +375,6 @@ public ApiInstallmentGetResponseDtoBuilder deleted(Boolean value) { @JsonProperty("refunds") public ApiInstallmentGetResponseDtoBuilder refunds(List value) { - if (value == null) { - throw new IllegalStateException("refunds cannot be null"); - } this.refunds = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentListResponseDto.java index 52ad2b2..44b1fe5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiInstallmentListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiInstallmentListResponseDtoBuilder { @JsonProperty("object") public ApiInstallmentListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiInstallmentListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiInstallmentListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiInstallmentListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiInstallmentListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiInstallmentListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiInstallmentListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiInstallmentListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiInstallmentListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiInstallmentListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiInstallmentListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponseDto.java index 85492f0..2fb7f2d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponseDto.java @@ -127,9 +127,6 @@ public static class ApiInstallmentRefundResponseDtoBuilder { @JsonProperty("dateCreated") public ApiInstallmentRefundResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -138,9 +135,6 @@ public ApiInstallmentRefundResponseDtoBuilder dateCreated(String value) { @JsonProperty("status") public ApiInstallmentRefundResponseDtoBuilder status(ApiInstallmentRefundResponsePaymentRefundStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -149,9 +143,6 @@ public ApiInstallmentRefundResponseDtoBuilder status(ApiInstallmentRefundRespons @JsonProperty("value") public ApiInstallmentRefundResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -160,9 +151,6 @@ public ApiInstallmentRefundResponseDtoBuilder value(Double value) { @JsonProperty("endToEndIdentifier") public ApiInstallmentRefundResponseDtoBuilder endToEndIdentifier(String value) { - if (value == null) { - throw new IllegalStateException("endToEndIdentifier cannot be null"); - } this.endToEndIdentifier = JsonNullable.of(value); return this; } @@ -171,9 +159,6 @@ public ApiInstallmentRefundResponseDtoBuilder endToEndIdentifier(String value) { @JsonProperty("description") public ApiInstallmentRefundResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -182,9 +167,6 @@ public ApiInstallmentRefundResponseDtoBuilder description(String value) { @JsonProperty("effectiveDate") public ApiInstallmentRefundResponseDtoBuilder effectiveDate(String value) { - if (value == null) { - throw new IllegalStateException("effectiveDate cannot be null"); - } this.effectiveDate = JsonNullable.of(value); return this; } @@ -193,9 +175,6 @@ public ApiInstallmentRefundResponseDtoBuilder effectiveDate(String value) { @JsonProperty("transactionReceiptUrl") public ApiInstallmentRefundResponseDtoBuilder transactionReceiptUrl(String value) { - if (value == null) { - throw new IllegalStateException("transactionReceiptUrl cannot be null"); - } this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -204,9 +183,6 @@ public ApiInstallmentRefundResponseDtoBuilder transactionReceiptUrl(String value @JsonProperty("refundedSplits") public ApiInstallmentRefundResponseDtoBuilder refundedSplits(List value) { - if (value == null) { - throw new IllegalStateException("refundedSplits cannot be null"); - } this.refundedSplits = JsonNullable.of(value); return this; } @@ -215,9 +191,6 @@ public ApiInstallmentRefundResponseDtoBuilder refundedSplits(List value) { - if (value == null) { - throw new IllegalStateException("splits cannot be null"); - } this.splits = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestDto.java index 3bc9777..9b5bffe 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestDto.java @@ -3,6 +3,7 @@ package com.asaas.apisdk.models; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.Builder; @@ -52,10 +53,10 @@ public class ApiInstallmentSaveWithCreditCardRequestDto { @NonNull private String dueDate; - @NonNull + @JsonInclude(JsonInclude.Include.ALWAYS) private ApiCreditCardRequestDto creditCard; - @NonNull + @JsonInclude(JsonInclude.Include.ALWAYS) private ApiCreditCardHolderInfoRequestDto creditCardHolderInfo; /** @@ -179,13 +180,34 @@ public Boolean getAuthorizeOnly() { // Overwrite lombok builder methods public static class ApiInstallmentSaveWithCreditCardRequestDtoBuilder { + /** + * Flag to track if the creditCard property has been set. + */ + private boolean creditCard$set = false; + + /** + * Flag to track if the creditCardHolderInfo property has been set. + */ + private boolean creditCardHolderInfo$set = false; + + public ApiInstallmentSaveWithCreditCardRequestDtoBuilder creditCard(ApiCreditCardRequestDto creditCard) { + this.creditCard$set = true; + this.creditCard = creditCard; + return this; + } + + public ApiInstallmentSaveWithCreditCardRequestDtoBuilder creditCardHolderInfo( + ApiCreditCardHolderInfoRequestDto creditCardHolderInfo + ) { + this.creditCardHolderInfo$set = true; + this.creditCardHolderInfo = creditCardHolderInfo; + return this; + } + private JsonNullable totalValue = JsonNullable.undefined(); @JsonProperty("totalValue") public ApiInstallmentSaveWithCreditCardRequestDtoBuilder totalValue(Double value) { - if (value == null) { - throw new IllegalStateException("totalValue cannot be null"); - } this.totalValue = JsonNullable.of(value); return this; } @@ -194,9 +216,6 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder totalValue(Double value @JsonProperty("description") public ApiInstallmentSaveWithCreditCardRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -205,9 +224,6 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder description(String valu @JsonProperty("postalService") public ApiInstallmentSaveWithCreditCardRequestDtoBuilder postalService(Boolean value) { - if (value == null) { - throw new IllegalStateException("postalService cannot be null"); - } this.postalService = JsonNullable.of(value); return this; } @@ -216,9 +232,6 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder postalService(Boolean v @JsonProperty("daysAfterDueDateToRegistrationCancellation") public ApiInstallmentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - if (value == null) { - throw new IllegalStateException("daysAfterDueDateToRegistrationCancellation cannot be null"); - } this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } @@ -227,9 +240,6 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegis @JsonProperty("paymentExternalReference") public ApiInstallmentSaveWithCreditCardRequestDtoBuilder paymentExternalReference(String value) { - if (value == null) { - throw new IllegalStateException("paymentExternalReference cannot be null"); - } this.paymentExternalReference = JsonNullable.of(value); return this; } @@ -238,9 +248,6 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder paymentExternalReferenc @JsonProperty("discount") public ApiInstallmentSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -249,9 +256,6 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDisc @JsonProperty("interest") public ApiInstallmentSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -260,9 +264,6 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInte @JsonProperty("fine") public ApiInstallmentSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -271,9 +272,6 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequ @JsonProperty("splits") public ApiInstallmentSaveWithCreditCardRequestDtoBuilder splits(List value) { - if (value == null) { - throw new IllegalStateException("splits cannot be null"); - } this.splits = JsonNullable.of(value); return this; } @@ -282,9 +280,6 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder splits(List value) { - if (value == null) { - throw new IllegalStateException("splits cannot be null"); - } this.splits = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitResponseDto.java index d8946b6..3e3d63e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitResponseDto.java @@ -39,9 +39,6 @@ public static class ApiInstallmentUpdateSplitResponseDtoBuilder { @JsonProperty("splits") public ApiInstallmentUpdateSplitResponseDtoBuilder splits(List value) { - if (value == null) { - throw new IllegalStateException("splits cannot be null"); - } this.splits = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseDto.java index ea15cab..3111898 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseDto.java @@ -50,9 +50,6 @@ public static class ApiMobilePhoneRechargeFindProviderResponseDtoBuilder { @JsonProperty("name") public ApiMobilePhoneRechargeFindProviderResponseDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -63,9 +60,6 @@ public ApiMobilePhoneRechargeFindProviderResponseDtoBuilder name(String value) { public ApiMobilePhoneRechargeFindProviderResponseDtoBuilder values( List value ) { - if (value == null) { - throw new IllegalStateException("values cannot be null"); - } this.values = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.java b/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.java index e1753b2..cef79bd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.java @@ -82,9 +82,6 @@ public static class ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder { @JsonProperty("name") public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -93,9 +90,6 @@ public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder name(String va @JsonProperty("description") public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -104,9 +98,6 @@ public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder description(St @JsonProperty("bonus") public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder bonus(String value) { - if (value == null) { - throw new IllegalStateException("bonus cannot be null"); - } this.bonus = JsonNullable.of(value); return this; } @@ -115,9 +106,6 @@ public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder bonus(String v @JsonProperty("minValue") public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder minValue(Double value) { - if (value == null) { - throw new IllegalStateException("minValue cannot be null"); - } this.minValue = JsonNullable.of(value); return this; } @@ -126,9 +114,6 @@ public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder minValue(Doubl @JsonProperty("maxValue") public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder maxValue(Double value) { - if (value == null) { - throw new IllegalStateException("maxValue cannot be null"); - } this.maxValue = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseDto.java index 53c14bc..1e6b303 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseDto.java @@ -93,9 +93,6 @@ public static class ApiMobilePhoneRechargeGetResponseDtoBuilder { @JsonProperty("id") public ApiMobilePhoneRechargeGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -104,9 +101,6 @@ public ApiMobilePhoneRechargeGetResponseDtoBuilder id(String value) { @JsonProperty("value") public ApiMobilePhoneRechargeGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -115,9 +109,6 @@ public ApiMobilePhoneRechargeGetResponseDtoBuilder value(Double value) { @JsonProperty("phoneNumber") public ApiMobilePhoneRechargeGetResponseDtoBuilder phoneNumber(String value) { - if (value == null) { - throw new IllegalStateException("phoneNumber cannot be null"); - } this.phoneNumber = JsonNullable.of(value); return this; } @@ -128,9 +119,6 @@ public ApiMobilePhoneRechargeGetResponseDtoBuilder phoneNumber(String value) { public ApiMobilePhoneRechargeGetResponseDtoBuilder status( ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -139,9 +127,6 @@ public ApiMobilePhoneRechargeGetResponseDtoBuilder status( @JsonProperty("canBeCancelled") public ApiMobilePhoneRechargeGetResponseDtoBuilder canBeCancelled(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBeCancelled cannot be null"); - } this.canBeCancelled = JsonNullable.of(value); return this; } @@ -150,9 +135,6 @@ public ApiMobilePhoneRechargeGetResponseDtoBuilder canBeCancelled(Boolean value) @JsonProperty("operatorName") public ApiMobilePhoneRechargeGetResponseDtoBuilder operatorName(String value) { - if (value == null) { - throw new IllegalStateException("operatorName cannot be null"); - } this.operatorName = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeListResponseDto.java index c3dd1d4..a96abd7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiMobilePhoneRechargeListResponseDtoBuilder { @JsonProperty("object") public ApiMobilePhoneRechargeListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiMobilePhoneRechargeListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiMobilePhoneRechargeListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiMobilePhoneRechargeListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiMobilePhoneRechargeListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiMobilePhoneRechargeListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiMobilePhoneRechargeListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiMobilePhoneRechargeListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiMobilePhoneRechargeListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiMobilePhoneRechargeListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiMobilePhoneRechargeListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountDisableAccountResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountDisableAccountResponseDto.java index e56486b..7a5d7ad 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountDisableAccountResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountDisableAccountResponseDto.java @@ -38,9 +38,6 @@ public static class ApiMyAccountDisableAccountResponseDtoBuilder { @JsonProperty("observations") public ApiMyAccountDisableAccountResponseDtoBuilder observations(String value) { - if (value == null) { - throw new IllegalStateException("observations cannot be null"); - } this.observations = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.java index 500cdb5..0659c6a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.java @@ -38,9 +38,6 @@ public static class ApiMyAccountGetAccountFeesAnticipationBankSlipDtoBuilder { @JsonProperty("monthlyFeePercentage") public ApiMyAccountGetAccountFeesAnticipationBankSlipDtoBuilder monthlyFeePercentage(Double value) { - if (value == null) { - throw new IllegalStateException("monthlyFeePercentage cannot be null"); - } this.monthlyFeePercentage = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.java index 8b03baa..2e01803 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.java @@ -49,9 +49,6 @@ public static class ApiMyAccountGetAccountFeesAnticipationCreditCardDtoBuilder { @JsonProperty("detachedMonthlyFeeValue") public ApiMyAccountGetAccountFeesAnticipationCreditCardDtoBuilder detachedMonthlyFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("detachedMonthlyFeeValue cannot be null"); - } this.detachedMonthlyFeeValue = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiMyAccountGetAccountFeesAnticipationCreditCardDtoBuilder detachedMonthl @JsonProperty("installmentMonthlyFeeValue") public ApiMyAccountGetAccountFeesAnticipationCreditCardDtoBuilder installmentMonthlyFeeValue(Long value) { - if (value == null) { - throw new IllegalStateException("installmentMonthlyFeeValue cannot be null"); - } this.installmentMonthlyFeeValue = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationDto.java index f77797c..6e31469 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationDto.java @@ -45,9 +45,6 @@ public static class ApiMyAccountGetAccountFeesAnticipationDtoBuilder { public ApiMyAccountGetAccountFeesAnticipationDtoBuilder creditCard( ApiMyAccountGetAccountFeesAnticipationCreditCardDto value ) { - if (value == null) { - throw new IllegalStateException("creditCard cannot be null"); - } this.creditCard = JsonNullable.of(value); return this; } @@ -58,9 +55,6 @@ public ApiMyAccountGetAccountFeesAnticipationDtoBuilder creditCard( public ApiMyAccountGetAccountFeesAnticipationDtoBuilder bankSlip( ApiMyAccountGetAccountFeesAnticipationBankSlipDto value ) { - if (value == null) { - throw new IllegalStateException("bankSlip cannot be null"); - } this.bankSlip = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.java index ebbc8b4..af30ed5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.java @@ -49,9 +49,6 @@ public static class ApiMyAccountGetAccountFeesCreditBureauReportDtoBuilder { @JsonProperty("naturalPersonFeeValue") public ApiMyAccountGetAccountFeesCreditBureauReportDtoBuilder naturalPersonFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("naturalPersonFeeValue cannot be null"); - } this.naturalPersonFeeValue = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiMyAccountGetAccountFeesCreditBureauReportDtoBuilder naturalPersonFeeVa @JsonProperty("legalPersonFeeValue") public ApiMyAccountGetAccountFeesCreditBureauReportDtoBuilder legalPersonFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("legalPersonFeeValue cannot be null"); - } this.legalPersonFeeValue = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesInvoiceDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesInvoiceDto.java index 59f6443..78113dd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesInvoiceDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesInvoiceDto.java @@ -38,9 +38,6 @@ public static class ApiMyAccountGetAccountFeesInvoiceDtoBuilder { @JsonProperty("feeValue") public ApiMyAccountGetAccountFeesInvoiceDtoBuilder feeValue(Double value) { - if (value == null) { - throw new IllegalStateException("feeValue cannot be null"); - } this.feeValue = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesNotificationDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesNotificationDto.java index 01f8801..d79aaaf 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesNotificationDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesNotificationDto.java @@ -60,9 +60,6 @@ public static class ApiMyAccountGetAccountFeesNotificationDtoBuilder { @JsonProperty("phoneCallFeeValue") public ApiMyAccountGetAccountFeesNotificationDtoBuilder phoneCallFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("phoneCallFeeValue cannot be null"); - } this.phoneCallFeeValue = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiMyAccountGetAccountFeesNotificationDtoBuilder phoneCallFeeValue(Double @JsonProperty("whatsAppFeeValue") public ApiMyAccountGetAccountFeesNotificationDtoBuilder whatsAppFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("whatsAppFeeValue cannot be null"); - } this.whatsAppFeeValue = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiMyAccountGetAccountFeesNotificationDtoBuilder whatsAppFeeValue(Double @JsonProperty("messagingFeeValue") public ApiMyAccountGetAccountFeesNotificationDtoBuilder messagingFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("messagingFeeValue cannot be null"); - } this.messagingFeeValue = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.java index 178f5f3..94278c2 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.java @@ -71,9 +71,6 @@ public static class ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder { @JsonProperty("defaultValue") public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder defaultValue(Double value) { - if (value == null) { - throw new IllegalStateException("defaultValue cannot be null"); - } this.defaultValue = JsonNullable.of(value); return this; } @@ -82,9 +79,6 @@ public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder defaultValue(Double v @JsonProperty("discountValue") public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder discountValue(Double value) { - if (value == null) { - throw new IllegalStateException("discountValue cannot be null"); - } this.discountValue = JsonNullable.of(value); return this; } @@ -93,9 +87,6 @@ public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder discountValue(Double @JsonProperty("expirationDate") public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder expirationDate(String value) { - if (value == null) { - throw new IllegalStateException("expirationDate cannot be null"); - } this.expirationDate = JsonNullable.of(value); return this; } @@ -104,9 +95,6 @@ public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder expirationDate(String @JsonProperty("daysToReceive") public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder daysToReceive(Long value) { - if (value == null) { - throw new IllegalStateException("daysToReceive cannot be null"); - } this.daysToReceive = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.java index 12ac405..0b4b5d6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.java @@ -148,9 +148,6 @@ public static class ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder { @JsonProperty("operationValue") public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder operationValue(Double value) { - if (value == null) { - throw new IllegalStateException("operationValue cannot be null"); - } this.operationValue = JsonNullable.of(value); return this; } @@ -159,9 +156,6 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder operationValue(Doub @JsonProperty("oneInstallmentPercentage") public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder oneInstallmentPercentage(Double value) { - if (value == null) { - throw new IllegalStateException("oneInstallmentPercentage cannot be null"); - } this.oneInstallmentPercentage = JsonNullable.of(value); return this; } @@ -170,9 +164,6 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder oneInstallmentPerce @JsonProperty("upToSixInstallmentsPercentage") public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToSixInstallmentsPercentage(Double value) { - if (value == null) { - throw new IllegalStateException("upToSixInstallmentsPercentage cannot be null"); - } this.upToSixInstallmentsPercentage = JsonNullable.of(value); return this; } @@ -181,9 +172,6 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToSixInstallments @JsonProperty("upToTwelveInstallmentsPercentage") public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwelveInstallmentsPercentage(Double value) { - if (value == null) { - throw new IllegalStateException("upToTwelveInstallmentsPercentage cannot be null"); - } this.upToTwelveInstallmentsPercentage = JsonNullable.of(value); return this; } @@ -192,9 +180,6 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwelveInstallme @JsonProperty("upToTwentyOneInstallmentsPercentage") public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwentyOneInstallmentsPercentage(Double value) { - if (value == null) { - throw new IllegalStateException("upToTwentyOneInstallmentsPercentage cannot be null"); - } this.upToTwentyOneInstallmentsPercentage = JsonNullable.of(value); return this; } @@ -203,9 +188,6 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwentyOneInstal @JsonProperty("discountOneInstallmentPercentage") public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountOneInstallmentPercentage(Double value) { - if (value == null) { - throw new IllegalStateException("discountOneInstallmentPercentage cannot be null"); - } this.discountOneInstallmentPercentage = JsonNullable.of(value); return this; } @@ -214,9 +196,6 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountOneInstallm @JsonProperty("discountUpToSixInstallmentsPercentage") public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToSixInstallmentsPercentage(Double value) { - if (value == null) { - throw new IllegalStateException("discountUpToSixInstallmentsPercentage cannot be null"); - } this.discountUpToSixInstallmentsPercentage = JsonNullable.of(value); return this; } @@ -227,9 +206,6 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToSixInst public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwelveInstallmentsPercentage( Double value ) { - if (value == null) { - throw new IllegalStateException("discountUpToTwelveInstallmentsPercentage cannot be null"); - } this.discountUpToTwelveInstallmentsPercentage = JsonNullable.of(value); return this; } @@ -240,9 +216,6 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwelveI public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwentyOneInstallmentsPercentage( Double value ) { - if (value == null) { - throw new IllegalStateException("discountUpToTwentyOneInstallmentsPercentage cannot be null"); - } this.discountUpToTwentyOneInstallmentsPercentage = JsonNullable.of(value); return this; } @@ -251,9 +224,6 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwentyO @JsonProperty("discountExpiration") public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountExpiration(String value) { - if (value == null) { - throw new IllegalStateException("discountExpiration cannot be null"); - } this.discountExpiration = JsonNullable.of(value); return this; } @@ -262,9 +232,6 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountExpiration( @JsonProperty("daysToReceive") public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder daysToReceive(Long value) { - if (value == null) { - throw new IllegalStateException("daysToReceive cannot be null"); - } this.daysToReceive = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.java index 21cbbd5..3b255dd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.java @@ -60,9 +60,6 @@ public static class ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder { @JsonProperty("operationValue") public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder operationValue(Double value) { - if (value == null) { - throw new IllegalStateException("operationValue cannot be null"); - } this.operationValue = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder operationValue(Doubl @JsonProperty("defaultPercentage") public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder defaultPercentage(Double value) { - if (value == null) { - throw new IllegalStateException("defaultPercentage cannot be null"); - } this.defaultPercentage = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder defaultPercentage(Do @JsonProperty("daysToReceive") public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder daysToReceive(Long value) { - if (value == null) { - throw new IllegalStateException("daysToReceive cannot be null"); - } this.daysToReceive = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDto.java index 6ab0cd2..099953a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDto.java @@ -59,9 +59,6 @@ public static class ApiMyAccountGetAccountFeesPaymentDtoBuilder { @JsonProperty("bankSlip") public ApiMyAccountGetAccountFeesPaymentDtoBuilder bankSlip(ApiMyAccountGetAccountFeesPaymentBankSlipDto value) { - if (value == null) { - throw new IllegalStateException("bankSlip cannot be null"); - } this.bankSlip = JsonNullable.of(value); return this; } @@ -72,9 +69,6 @@ public ApiMyAccountGetAccountFeesPaymentDtoBuilder bankSlip(ApiMyAccountGetAccou public ApiMyAccountGetAccountFeesPaymentDtoBuilder creditCard( ApiMyAccountGetAccountFeesPaymentCreditCardDto value ) { - if (value == null) { - throw new IllegalStateException("creditCard cannot be null"); - } this.creditCard = JsonNullable.of(value); return this; } @@ -83,9 +77,6 @@ public ApiMyAccountGetAccountFeesPaymentDtoBuilder creditCard( @JsonProperty("debitCard") public ApiMyAccountGetAccountFeesPaymentDtoBuilder debitCard(ApiMyAccountGetAccountFeesPaymentDebitCardDto value) { - if (value == null) { - throw new IllegalStateException("debitCard cannot be null"); - } this.debitCard = JsonNullable.of(value); return this; } @@ -94,9 +85,6 @@ public ApiMyAccountGetAccountFeesPaymentDtoBuilder debitCard(ApiMyAccountGetAcco @JsonProperty("pix") public ApiMyAccountGetAccountFeesPaymentDtoBuilder pix(ApiMyAccountGetAccountFeesPaymentPixDto value) { - if (value == null) { - throw new IllegalStateException("pix cannot be null"); - } this.pix = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentPixDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentPixDto.java index fdcb94e..9f9edee 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentPixDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentPixDto.java @@ -115,9 +115,6 @@ public static class ApiMyAccountGetAccountFeesPaymentPixDtoBuilder { @JsonProperty("fixedFeeValue") public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("fixedFeeValue cannot be null"); - } this.fixedFeeValue = JsonNullable.of(value); return this; } @@ -126,9 +123,6 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValue(Double value @JsonProperty("fixedFeeValueWithDiscount") public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValueWithDiscount(Double value) { - if (value == null) { - throw new IllegalStateException("fixedFeeValueWithDiscount cannot be null"); - } this.fixedFeeValueWithDiscount = JsonNullable.of(value); return this; } @@ -137,9 +131,6 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValueWithDiscount( @JsonProperty("percentageFee") public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder percentageFee(Double value) { - if (value == null) { - throw new IllegalStateException("percentageFee cannot be null"); - } this.percentageFee = JsonNullable.of(value); return this; } @@ -148,9 +139,6 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder percentageFee(Double value @JsonProperty("minimumFeeValue") public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder minimumFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("minimumFeeValue cannot be null"); - } this.minimumFeeValue = JsonNullable.of(value); return this; } @@ -159,9 +147,6 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder minimumFeeValue(Double val @JsonProperty("maximumFeeValue") public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder maximumFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("maximumFeeValue cannot be null"); - } this.maximumFeeValue = JsonNullable.of(value); return this; } @@ -170,9 +155,6 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder maximumFeeValue(Double val @JsonProperty("discountExpiration") public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder discountExpiration(String value) { - if (value == null) { - throw new IllegalStateException("discountExpiration cannot be null"); - } this.discountExpiration = JsonNullable.of(value); return this; } @@ -181,9 +163,6 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder discountExpiration(String @JsonProperty("monthlyCreditsWithoutFee") public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder monthlyCreditsWithoutFee(Long value) { - if (value == null) { - throw new IllegalStateException("monthlyCreditsWithoutFee cannot be null"); - } this.monthlyCreditsWithoutFee = JsonNullable.of(value); return this; } @@ -192,9 +171,6 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder monthlyCreditsWithoutFee(L @JsonProperty("creditsReceivedOfCurrentMonth") public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder creditsReceivedOfCurrentMonth(Long value) { - if (value == null) { - throw new IllegalStateException("creditsReceivedOfCurrentMonth cannot be null"); - } this.creditsReceivedOfCurrentMonth = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesResponseDto.java index d9e8f94..45e631c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesResponseDto.java @@ -75,9 +75,6 @@ public static class ApiMyAccountGetAccountFeesResponseDtoBuilder { @JsonProperty("payment") public ApiMyAccountGetAccountFeesResponseDtoBuilder payment(ApiMyAccountGetAccountFeesPaymentDto value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } @@ -86,9 +83,6 @@ public ApiMyAccountGetAccountFeesResponseDtoBuilder payment(ApiMyAccountGetAccou @JsonProperty("transfer") public ApiMyAccountGetAccountFeesResponseDtoBuilder transfer(ApiMyAccountGetAccountFeesTransferDto value) { - if (value == null) { - throw new IllegalStateException("transfer cannot be null"); - } this.transfer = JsonNullable.of(value); return this; } @@ -97,9 +91,6 @@ public ApiMyAccountGetAccountFeesResponseDtoBuilder transfer(ApiMyAccountGetAcco @JsonProperty("notification") public ApiMyAccountGetAccountFeesResponseDtoBuilder notification(ApiMyAccountGetAccountFeesNotificationDto value) { - if (value == null) { - throw new IllegalStateException("notification cannot be null"); - } this.notification = JsonNullable.of(value); return this; } @@ -110,9 +101,6 @@ public ApiMyAccountGetAccountFeesResponseDtoBuilder notification(ApiMyAccountGet public ApiMyAccountGetAccountFeesResponseDtoBuilder creditBureauReport( ApiMyAccountGetAccountFeesCreditBureauReportDto value ) { - if (value == null) { - throw new IllegalStateException("creditBureauReport cannot be null"); - } this.creditBureauReport = JsonNullable.of(value); return this; } @@ -121,9 +109,6 @@ public ApiMyAccountGetAccountFeesResponseDtoBuilder creditBureauReport( @JsonProperty("invoice") public ApiMyAccountGetAccountFeesResponseDtoBuilder invoice(ApiMyAccountGetAccountFeesInvoiceDto value) { - if (value == null) { - throw new IllegalStateException("invoice cannot be null"); - } this.invoice = JsonNullable.of(value); return this; } @@ -132,9 +117,6 @@ public ApiMyAccountGetAccountFeesResponseDtoBuilder invoice(ApiMyAccountGetAccou @JsonProperty("anticipation") public ApiMyAccountGetAccountFeesResponseDtoBuilder anticipation(ApiMyAccountGetAccountFeesAnticipationDto value) { - if (value == null) { - throw new IllegalStateException("anticipation cannot be null"); - } this.anticipation = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferDto.java index 0ec657a..efe7049 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferDto.java @@ -54,9 +54,6 @@ public static class ApiMyAccountGetAccountFeesTransferDtoBuilder { @JsonProperty("monthlyTransfersWithoutFee") public ApiMyAccountGetAccountFeesTransferDtoBuilder monthlyTransfersWithoutFee(Long value) { - if (value == null) { - throw new IllegalStateException("monthlyTransfersWithoutFee cannot be null"); - } this.monthlyTransfersWithoutFee = JsonNullable.of(value); return this; } @@ -65,9 +62,6 @@ public ApiMyAccountGetAccountFeesTransferDtoBuilder monthlyTransfersWithoutFee(L @JsonProperty("ted") public ApiMyAccountGetAccountFeesTransferDtoBuilder ted(ApiMyAccountGetAccountFeesTransferTedDto value) { - if (value == null) { - throw new IllegalStateException("ted cannot be null"); - } this.ted = JsonNullable.of(value); return this; } @@ -76,9 +70,6 @@ public ApiMyAccountGetAccountFeesTransferDtoBuilder ted(ApiMyAccountGetAccountFe @JsonProperty("pix") public ApiMyAccountGetAccountFeesTransferDtoBuilder pix(ApiMyAccountGetAccountFeesTransferPixDto value) { - if (value == null) { - throw new IllegalStateException("pix cannot be null"); - } this.pix = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferPixDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferPixDto.java index 9a50ffa..56bff46 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferPixDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferPixDto.java @@ -71,9 +71,6 @@ public static class ApiMyAccountGetAccountFeesTransferPixDtoBuilder { @JsonProperty("feeValue") public ApiMyAccountGetAccountFeesTransferPixDtoBuilder feeValue(Double value) { - if (value == null) { - throw new IllegalStateException("feeValue cannot be null"); - } this.feeValue = JsonNullable.of(value); return this; } @@ -82,9 +79,6 @@ public ApiMyAccountGetAccountFeesTransferPixDtoBuilder feeValue(Double value) { @JsonProperty("discountValue") public ApiMyAccountGetAccountFeesTransferPixDtoBuilder discountValue(Double value) { - if (value == null) { - throw new IllegalStateException("discountValue cannot be null"); - } this.discountValue = JsonNullable.of(value); return this; } @@ -93,9 +87,6 @@ public ApiMyAccountGetAccountFeesTransferPixDtoBuilder discountValue(Double valu @JsonProperty("expirationDate") public ApiMyAccountGetAccountFeesTransferPixDtoBuilder expirationDate(String value) { - if (value == null) { - throw new IllegalStateException("expirationDate cannot be null"); - } this.expirationDate = JsonNullable.of(value); return this; } @@ -104,9 +95,6 @@ public ApiMyAccountGetAccountFeesTransferPixDtoBuilder expirationDate(String val @JsonProperty("consideredInMonthlyTransfersWithoutFee") public ApiMyAccountGetAccountFeesTransferPixDtoBuilder consideredInMonthlyTransfersWithoutFee(Boolean value) { - if (value == null) { - throw new IllegalStateException("consideredInMonthlyTransfersWithoutFee cannot be null"); - } this.consideredInMonthlyTransfersWithoutFee = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferTedDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferTedDto.java index 35ba4d6..bd556b8 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferTedDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferTedDto.java @@ -49,9 +49,6 @@ public static class ApiMyAccountGetAccountFeesTransferTedDtoBuilder { @JsonProperty("feeValue") public ApiMyAccountGetAccountFeesTransferTedDtoBuilder feeValue(Double value) { - if (value == null) { - throw new IllegalStateException("feeValue cannot be null"); - } this.feeValue = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiMyAccountGetAccountFeesTransferTedDtoBuilder feeValue(Double value) { @JsonProperty("consideredInMonthlyTransfersWithoutFee") public ApiMyAccountGetAccountFeesTransferTedDtoBuilder consideredInMonthlyTransfersWithoutFee(Boolean value) { - if (value == null) { - throw new IllegalStateException("consideredInMonthlyTransfersWithoutFee cannot be null"); - } this.consideredInMonthlyTransfersWithoutFee = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountNumberResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountNumberResponseDto.java index 1604f79..3a51e53 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountNumberResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountNumberResponseDto.java @@ -60,9 +60,6 @@ public static class ApiMyAccountGetAccountNumberResponseDtoBuilder { @JsonProperty("agency") public ApiMyAccountGetAccountNumberResponseDtoBuilder agency(String value) { - if (value == null) { - throw new IllegalStateException("agency cannot be null"); - } this.agency = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiMyAccountGetAccountNumberResponseDtoBuilder agency(String value) { @JsonProperty("account") public ApiMyAccountGetAccountNumberResponseDtoBuilder account(String value) { - if (value == null) { - throw new IllegalStateException("account cannot be null"); - } this.account = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiMyAccountGetAccountNumberResponseDtoBuilder account(String value) { @JsonProperty("accountDigit") public ApiMyAccountGetAccountNumberResponseDtoBuilder accountDigit(String value) { - if (value == null) { - throw new IllegalStateException("accountDigit cannot be null"); - } this.accountDigit = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseDto.java index 62d3a79..5b75374 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseDto.java @@ -82,9 +82,6 @@ public static class ApiMyAccountGetStatusResponseDtoBuilder { @JsonProperty("id") public ApiMyAccountGetStatusResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -93,9 +90,6 @@ public ApiMyAccountGetStatusResponseDtoBuilder id(String value) { @JsonProperty("commercialInfo") public ApiMyAccountGetStatusResponseDtoBuilder commercialInfo(ApiMyAccountGetStatusResponseStatus value) { - if (value == null) { - throw new IllegalStateException("commercialInfo cannot be null"); - } this.commercialInfo = JsonNullable.of(value); return this; } @@ -104,9 +98,6 @@ public ApiMyAccountGetStatusResponseDtoBuilder commercialInfo(ApiMyAccountGetSta @JsonProperty("bankAccountInfo") public ApiMyAccountGetStatusResponseDtoBuilder bankAccountInfo(ApiMyAccountGetStatusResponseStatus value) { - if (value == null) { - throw new IllegalStateException("bankAccountInfo cannot be null"); - } this.bankAccountInfo = JsonNullable.of(value); return this; } @@ -115,9 +106,6 @@ public ApiMyAccountGetStatusResponseDtoBuilder bankAccountInfo(ApiMyAccountGetSt @JsonProperty("documentation") public ApiMyAccountGetStatusResponseDtoBuilder documentation(ApiMyAccountGetStatusResponseStatus value) { - if (value == null) { - throw new IllegalStateException("documentation cannot be null"); - } this.documentation = JsonNullable.of(value); return this; } @@ -126,9 +114,6 @@ public ApiMyAccountGetStatusResponseDtoBuilder documentation(ApiMyAccountGetStat @JsonProperty("general") public ApiMyAccountGetStatusResponseDtoBuilder general(ApiMyAccountGetStatusResponseStatus value) { - if (value == null) { - throw new IllegalStateException("general cannot be null"); - } this.general = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateRequestDto.java index 07d0bb7..6ac22fa 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateRequestDto.java @@ -46,9 +46,6 @@ public static class ApiNotificationBatchUpdateRequestDtoBuilder { @JsonProperty("notifications") public ApiNotificationBatchUpdateRequestDtoBuilder notifications(List value) { - if (value == null) { - throw new IllegalStateException("notifications cannot be null"); - } this.notifications = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateResponseDto.java index ddd831d..39fe116 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateResponseDto.java @@ -39,9 +39,6 @@ public static class ApiNotificationBatchUpdateResponseDtoBuilder { @JsonProperty("notifications") public ApiNotificationBatchUpdateResponseDtoBuilder notifications(List value) { - if (value == null) { - throw new IllegalStateException("notifications cannot be null"); - } this.notifications = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDto.java index 17849d7..315deab 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDto.java @@ -170,9 +170,6 @@ public static class ApiNotificationGetResponseDtoBuilder { @JsonProperty("object") public ApiNotificationGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -181,9 +178,6 @@ public ApiNotificationGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiNotificationGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -192,9 +186,6 @@ public ApiNotificationGetResponseDtoBuilder id(String value) { @JsonProperty("customer") public ApiNotificationGetResponseDtoBuilder customer(String value) { - if (value == null) { - throw new IllegalStateException("customer cannot be null"); - } this.customer = JsonNullable.of(value); return this; } @@ -203,9 +194,6 @@ public ApiNotificationGetResponseDtoBuilder customer(String value) { @JsonProperty("enabled") public ApiNotificationGetResponseDtoBuilder enabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("enabled cannot be null"); - } this.enabled = JsonNullable.of(value); return this; } @@ -214,9 +202,6 @@ public ApiNotificationGetResponseDtoBuilder enabled(Boolean value) { @JsonProperty("emailEnabledForProvider") public ApiNotificationGetResponseDtoBuilder emailEnabledForProvider(Boolean value) { - if (value == null) { - throw new IllegalStateException("emailEnabledForProvider cannot be null"); - } this.emailEnabledForProvider = JsonNullable.of(value); return this; } @@ -225,9 +210,6 @@ public ApiNotificationGetResponseDtoBuilder emailEnabledForProvider(Boolean valu @JsonProperty("smsEnabledForProvider") public ApiNotificationGetResponseDtoBuilder smsEnabledForProvider(Boolean value) { - if (value == null) { - throw new IllegalStateException("smsEnabledForProvider cannot be null"); - } this.smsEnabledForProvider = JsonNullable.of(value); return this; } @@ -236,9 +218,6 @@ public ApiNotificationGetResponseDtoBuilder smsEnabledForProvider(Boolean value) @JsonProperty("emailEnabledForCustomer") public ApiNotificationGetResponseDtoBuilder emailEnabledForCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("emailEnabledForCustomer cannot be null"); - } this.emailEnabledForCustomer = JsonNullable.of(value); return this; } @@ -247,9 +226,6 @@ public ApiNotificationGetResponseDtoBuilder emailEnabledForCustomer(Boolean valu @JsonProperty("smsEnabledForCustomer") public ApiNotificationGetResponseDtoBuilder smsEnabledForCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("smsEnabledForCustomer cannot be null"); - } this.smsEnabledForCustomer = JsonNullable.of(value); return this; } @@ -258,9 +234,6 @@ public ApiNotificationGetResponseDtoBuilder smsEnabledForCustomer(Boolean value) @JsonProperty("phoneCallEnabledForCustomer") public ApiNotificationGetResponseDtoBuilder phoneCallEnabledForCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("phoneCallEnabledForCustomer cannot be null"); - } this.phoneCallEnabledForCustomer = JsonNullable.of(value); return this; } @@ -269,9 +242,6 @@ public ApiNotificationGetResponseDtoBuilder phoneCallEnabledForCustomer(Boolean @JsonProperty("whatsappEnabledForCustomer") public ApiNotificationGetResponseDtoBuilder whatsappEnabledForCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("whatsappEnabledForCustomer cannot be null"); - } this.whatsappEnabledForCustomer = JsonNullable.of(value); return this; } @@ -280,9 +250,6 @@ public ApiNotificationGetResponseDtoBuilder whatsappEnabledForCustomer(Boolean v @JsonProperty("event") public ApiNotificationGetResponseDtoBuilder event(ApiNotificationGetResponseNotificationEvent value) { - if (value == null) { - throw new IllegalStateException("event cannot be null"); - } this.event = JsonNullable.of(value); return this; } @@ -291,9 +258,6 @@ public ApiNotificationGetResponseDtoBuilder event(ApiNotificationGetResponseNoti @JsonProperty("scheduleOffset") public ApiNotificationGetResponseDtoBuilder scheduleOffset(ApiNotificationGetResponseDtoScheduleOffset value) { - if (value == null) { - throw new IllegalStateException("scheduleOffset cannot be null"); - } this.scheduleOffset = JsonNullable.of(value); return this; } @@ -302,9 +266,6 @@ public ApiNotificationGetResponseDtoBuilder scheduleOffset(ApiNotificationGetRes @JsonProperty("deleted") public ApiNotificationGetResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiNotificationListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiNotificationListResponseDto.java index 1850080..08d01d4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiNotificationListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiNotificationListResponseDtoBuilder { @JsonProperty("object") public ApiNotificationListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiNotificationListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiNotificationListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiNotificationListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiNotificationListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiNotificationListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiNotificationListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiNotificationListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiNotificationListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiNotificationListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiNotificationListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDto.java index 636a1c5..a1a3834 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDto.java @@ -117,9 +117,6 @@ public static class ApiNotificationUpdateRequestDtoBuilder { @JsonProperty("enabled") public ApiNotificationUpdateRequestDtoBuilder enabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("enabled cannot be null"); - } this.enabled = JsonNullable.of(value); return this; } @@ -128,9 +125,6 @@ public ApiNotificationUpdateRequestDtoBuilder enabled(Boolean value) { @JsonProperty("emailEnabledForProvider") public ApiNotificationUpdateRequestDtoBuilder emailEnabledForProvider(Boolean value) { - if (value == null) { - throw new IllegalStateException("emailEnabledForProvider cannot be null"); - } this.emailEnabledForProvider = JsonNullable.of(value); return this; } @@ -139,9 +133,6 @@ public ApiNotificationUpdateRequestDtoBuilder emailEnabledForProvider(Boolean va @JsonProperty("smsEnabledForProvider") public ApiNotificationUpdateRequestDtoBuilder smsEnabledForProvider(Boolean value) { - if (value == null) { - throw new IllegalStateException("smsEnabledForProvider cannot be null"); - } this.smsEnabledForProvider = JsonNullable.of(value); return this; } @@ -150,9 +141,6 @@ public ApiNotificationUpdateRequestDtoBuilder smsEnabledForProvider(Boolean valu @JsonProperty("emailEnabledForCustomer") public ApiNotificationUpdateRequestDtoBuilder emailEnabledForCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("emailEnabledForCustomer cannot be null"); - } this.emailEnabledForCustomer = JsonNullable.of(value); return this; } @@ -161,9 +149,6 @@ public ApiNotificationUpdateRequestDtoBuilder emailEnabledForCustomer(Boolean va @JsonProperty("smsEnabledForCustomer") public ApiNotificationUpdateRequestDtoBuilder smsEnabledForCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("smsEnabledForCustomer cannot be null"); - } this.smsEnabledForCustomer = JsonNullable.of(value); return this; } @@ -172,9 +157,6 @@ public ApiNotificationUpdateRequestDtoBuilder smsEnabledForCustomer(Boolean valu @JsonProperty("phoneCallEnabledForCustomer") public ApiNotificationUpdateRequestDtoBuilder phoneCallEnabledForCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("phoneCallEnabledForCustomer cannot be null"); - } this.phoneCallEnabledForCustomer = JsonNullable.of(value); return this; } @@ -183,9 +165,6 @@ public ApiNotificationUpdateRequestDtoBuilder phoneCallEnabledForCustomer(Boolea @JsonProperty("whatsappEnabledForCustomer") public ApiNotificationUpdateRequestDtoBuilder whatsappEnabledForCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("whatsappEnabledForCustomer cannot be null"); - } this.whatsappEnabledForCustomer = JsonNullable.of(value); return this; } @@ -194,9 +173,6 @@ public ApiNotificationUpdateRequestDtoBuilder whatsappEnabledForCustomer(Boolean @JsonProperty("scheduleOffset") public ApiNotificationUpdateRequestDtoBuilder scheduleOffset(ApiNotificationUpdateRequestDtoScheduleOffset value) { - if (value == null) { - throw new IllegalStateException("scheduleOffset cannot be null"); - } this.scheduleOffset = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentBankSlipRefundResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentBankSlipRefundResponseDto.java index fa57591..d605857 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentBankSlipRefundResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentBankSlipRefundResponseDto.java @@ -38,9 +38,6 @@ public static class ApiPaymentBankSlipRefundResponseDtoBuilder { @JsonProperty("requestUrl") public ApiPaymentBankSlipRefundResponseDtoBuilder requestUrl(String value) { - if (value == null) { - throw new IllegalStateException("requestUrl cannot be null"); - } this.requestUrl = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentBillingInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentBillingInfoResponseDto.java index 1e4152c..ad3d8e6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentBillingInfoResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentBillingInfoResponseDto.java @@ -51,9 +51,6 @@ public static class ApiPaymentBillingInfoResponseDtoBuilder { @JsonProperty("pix") public ApiPaymentBillingInfoResponseDtoBuilder pix(ApiPaymentPixQrCodeResponseDto value) { - if (value == null) { - throw new IllegalStateException("pix cannot be null"); - } this.pix = JsonNullable.of(value); return this; } @@ -62,9 +59,6 @@ public ApiPaymentBillingInfoResponseDtoBuilder pix(ApiPaymentPixQrCodeResponseDt @JsonProperty("creditCard") public ApiPaymentBillingInfoResponseDtoBuilder creditCard(ApiCreditCardTokenizeResponseDto value) { - if (value == null) { - throw new IllegalStateException("creditCard cannot be null"); - } this.creditCard = JsonNullable.of(value); return this; } @@ -73,9 +67,6 @@ public ApiPaymentBillingInfoResponseDtoBuilder creditCard(ApiCreditCardTokenizeR @JsonProperty("bankSlip") public ApiPaymentBillingInfoResponseDtoBuilder bankSlip(ApiBankSlipBillingInfoResponseDto value) { - if (value == null) { - throw new IllegalStateException("bankSlip cannot be null"); - } this.bankSlip = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCallbackRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCallbackRequestDto.java index 3986e3a..b5adb2f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCallbackRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCallbackRequestDto.java @@ -45,9 +45,6 @@ public static class ApiPaymentCallbackRequestDtoBuilder { @JsonProperty("autoRedirect") public ApiPaymentCallbackRequestDtoBuilder autoRedirect(Boolean value) { - if (value == null) { - throw new IllegalStateException("autoRedirect cannot be null"); - } this.autoRedirect = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignDeleteResponseDto.java index 704fcba..9962537 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignDeleteResponseDto.java @@ -49,9 +49,6 @@ public static class ApiPaymentCampaignDeleteResponseDtoBuilder { @JsonProperty("deleted") public ApiPaymentCampaignDeleteResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPaymentCampaignDeleteResponseDtoBuilder deleted(Boolean value) { @JsonProperty("id") public ApiPaymentCampaignDeleteResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileDeleteResponseDto.java index e1a456e..9e98862 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileDeleteResponseDto.java @@ -49,9 +49,6 @@ public static class ApiPaymentCampaignFileDeleteResponseDtoBuilder { @JsonProperty("deleted") public ApiPaymentCampaignFileDeleteResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPaymentCampaignFileDeleteResponseDtoBuilder deleted(Boolean value) { @JsonProperty("id") public ApiPaymentCampaignFileDeleteResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileGetResponseDto.java index 12dd26b..3c47312 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileGetResponseDto.java @@ -57,9 +57,6 @@ public static class ApiPaymentCampaignFileGetResponseDtoBuilder { @JsonProperty("id") public ApiPaymentCampaignFileGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -68,9 +65,6 @@ public ApiPaymentCampaignFileGetResponseDtoBuilder id(String value) { @JsonProperty("main") public ApiPaymentCampaignFileGetResponseDtoBuilder main(Boolean value) { - if (value == null) { - throw new IllegalStateException("main cannot be null"); - } this.main = JsonNullable.of(value); return this; } @@ -79,9 +73,6 @@ public ApiPaymentCampaignFileGetResponseDtoBuilder main(Boolean value) { @JsonProperty("image") public ApiPaymentCampaignFileGetResponseDtoBuilder image(ApiPaymentCampaignFileImageResponseDto value) { - if (value == null) { - throw new IllegalStateException("image cannot be null"); - } this.image = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileImageResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileImageResponseDto.java index 91232ce..d3d29d1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileImageResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileImageResponseDto.java @@ -82,9 +82,6 @@ public static class ApiPaymentCampaignFileImageResponseDtoBuilder { @JsonProperty("originalName") public ApiPaymentCampaignFileImageResponseDtoBuilder originalName(String value) { - if (value == null) { - throw new IllegalStateException("originalName cannot be null"); - } this.originalName = JsonNullable.of(value); return this; } @@ -93,9 +90,6 @@ public ApiPaymentCampaignFileImageResponseDtoBuilder originalName(String value) @JsonProperty("size") public ApiPaymentCampaignFileImageResponseDtoBuilder size(Long value) { - if (value == null) { - throw new IllegalStateException("size cannot be null"); - } this.size = JsonNullable.of(value); return this; } @@ -104,9 +98,6 @@ public ApiPaymentCampaignFileImageResponseDtoBuilder size(Long value) { @JsonProperty("extension") public ApiPaymentCampaignFileImageResponseDtoBuilder extension(String value) { - if (value == null) { - throw new IllegalStateException("extension cannot be null"); - } this.extension = JsonNullable.of(value); return this; } @@ -115,9 +106,6 @@ public ApiPaymentCampaignFileImageResponseDtoBuilder extension(String value) { @JsonProperty("previewUrl") public ApiPaymentCampaignFileImageResponseDtoBuilder previewUrl(String value) { - if (value == null) { - throw new IllegalStateException("previewUrl cannot be null"); - } this.previewUrl = JsonNullable.of(value); return this; } @@ -126,9 +114,6 @@ public ApiPaymentCampaignFileImageResponseDtoBuilder previewUrl(String value) { @JsonProperty("downloadUrl") public ApiPaymentCampaignFileImageResponseDtoBuilder downloadUrl(String value) { - if (value == null) { - throw new IllegalStateException("downloadUrl cannot be null"); - } this.downloadUrl = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileListResponseDto.java index a755c27..20c3461 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPaymentCampaignFileListResponseDtoBuilder { @JsonProperty("object") public ApiPaymentCampaignFileListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPaymentCampaignFileListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiPaymentCampaignFileListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPaymentCampaignFileListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiPaymentCampaignFileListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPaymentCampaignFileListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiPaymentCampaignFileListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPaymentCampaignFileListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiPaymentCampaignFileListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiPaymentCampaignFileListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiPaymentCampaignFileListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileSaveRequestDto.java index 2c6bb44..baa24d7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileSaveRequestDto.java @@ -49,9 +49,6 @@ public static class ApiPaymentCampaignFileSaveRequestDtoBuilder { @JsonProperty("main") public ApiPaymentCampaignFileSaveRequestDtoBuilder main(Boolean value) { - if (value == null) { - throw new IllegalStateException("main cannot be null"); - } this.main = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseDto.java index 81444c9..485b3a8 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseDto.java @@ -214,9 +214,6 @@ public static class ApiPaymentCampaignGetResponseDtoBuilder { @JsonProperty("id") public ApiPaymentCampaignGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -225,9 +222,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder id(String value) { @JsonProperty("name") public ApiPaymentCampaignGetResponseDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -236,9 +230,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder name(String value) { @JsonProperty("value") public ApiPaymentCampaignGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -247,9 +238,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder value(Double value) { @JsonProperty("active") public ApiPaymentCampaignGetResponseDtoBuilder active(Boolean value) { - if (value == null) { - throw new IllegalStateException("active cannot be null"); - } this.active = JsonNullable.of(value); return this; } @@ -258,9 +246,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder active(Boolean value) { @JsonProperty("chargeType") public ApiPaymentCampaignGetResponseDtoBuilder chargeType(ApiPaymentCampaignGetResponseChargeType value) { - if (value == null) { - throw new IllegalStateException("chargeType cannot be null"); - } this.chargeType = JsonNullable.of(value); return this; } @@ -269,9 +254,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder chargeType(ApiPaymentCampaignGetR @JsonProperty("url") public ApiPaymentCampaignGetResponseDtoBuilder url(String value) { - if (value == null) { - throw new IllegalStateException("url cannot be null"); - } this.url = JsonNullable.of(value); return this; } @@ -280,9 +262,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder url(String value) { @JsonProperty("billingType") public ApiPaymentCampaignGetResponseDtoBuilder billingType(ApiPaymentCampaignGetResponseBillingType value) { - if (value == null) { - throw new IllegalStateException("billingType cannot be null"); - } this.billingType = JsonNullable.of(value); return this; } @@ -291,9 +270,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder billingType(ApiPaymentCampaignGet @JsonProperty("subscriptionCycle") public ApiPaymentCampaignGetResponseDtoBuilder subscriptionCycle(ApiPaymentCampaignGetResponseCycle value) { - if (value == null) { - throw new IllegalStateException("subscriptionCycle cannot be null"); - } this.subscriptionCycle = JsonNullable.of(value); return this; } @@ -302,9 +278,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder subscriptionCycle(ApiPaymentCampa @JsonProperty("description") public ApiPaymentCampaignGetResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -313,9 +286,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder description(String value) { @JsonProperty("endDate") public ApiPaymentCampaignGetResponseDtoBuilder endDate(String value) { - if (value == null) { - throw new IllegalStateException("endDate cannot be null"); - } this.endDate = JsonNullable.of(value); return this; } @@ -324,9 +294,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder endDate(String value) { @JsonProperty("deleted") public ApiPaymentCampaignGetResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -335,9 +302,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder deleted(Boolean value) { @JsonProperty("viewCount") public ApiPaymentCampaignGetResponseDtoBuilder viewCount(Long value) { - if (value == null) { - throw new IllegalStateException("viewCount cannot be null"); - } this.viewCount = JsonNullable.of(value); return this; } @@ -346,9 +310,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder viewCount(Long value) { @JsonProperty("maxInstallmentCount") public ApiPaymentCampaignGetResponseDtoBuilder maxInstallmentCount(Long value) { - if (value == null) { - throw new IllegalStateException("maxInstallmentCount cannot be null"); - } this.maxInstallmentCount = JsonNullable.of(value); return this; } @@ -357,9 +318,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder maxInstallmentCount(Long value) { @JsonProperty("dueDateLimitDays") public ApiPaymentCampaignGetResponseDtoBuilder dueDateLimitDays(Long value) { - if (value == null) { - throw new IllegalStateException("dueDateLimitDays cannot be null"); - } this.dueDateLimitDays = JsonNullable.of(value); return this; } @@ -368,9 +326,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder dueDateLimitDays(Long value) { @JsonProperty("notificationEnabled") public ApiPaymentCampaignGetResponseDtoBuilder notificationEnabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("notificationEnabled cannot be null"); - } this.notificationEnabled = JsonNullable.of(value); return this; } @@ -379,9 +334,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder notificationEnabled(Boolean value @JsonProperty("isAddressRequired") public ApiPaymentCampaignGetResponseDtoBuilder isAddressRequired(Boolean value) { - if (value == null) { - throw new IllegalStateException("isAddressRequired cannot be null"); - } this.isAddressRequired = JsonNullable.of(value); return this; } @@ -390,9 +342,6 @@ public ApiPaymentCampaignGetResponseDtoBuilder isAddressRequired(Boolean value) @JsonProperty("externalReference") public ApiPaymentCampaignGetResponseDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignListResponseDto.java index df73eb5..5b975a5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPaymentCampaignListResponseDtoBuilder { @JsonProperty("object") public ApiPaymentCampaignListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPaymentCampaignListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiPaymentCampaignListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPaymentCampaignListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiPaymentCampaignListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPaymentCampaignListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiPaymentCampaignListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPaymentCampaignListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiPaymentCampaignListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiPaymentCampaignListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiPaymentCampaignListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestDto.java index ea98bab..3d88a56 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestDto.java @@ -153,9 +153,6 @@ public static class ApiPaymentCampaignSaveRequestDtoBuilder { @JsonProperty("description") public ApiPaymentCampaignSaveRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -164,9 +161,6 @@ public ApiPaymentCampaignSaveRequestDtoBuilder description(String value) { @JsonProperty("endDate") public ApiPaymentCampaignSaveRequestDtoBuilder endDate(String value) { - if (value == null) { - throw new IllegalStateException("endDate cannot be null"); - } this.endDate = JsonNullable.of(value); return this; } @@ -175,9 +169,6 @@ public ApiPaymentCampaignSaveRequestDtoBuilder endDate(String value) { @JsonProperty("value") public ApiPaymentCampaignSaveRequestDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -186,9 +177,6 @@ public ApiPaymentCampaignSaveRequestDtoBuilder value(Double value) { @JsonProperty("dueDateLimitDays") public ApiPaymentCampaignSaveRequestDtoBuilder dueDateLimitDays(Long value) { - if (value == null) { - throw new IllegalStateException("dueDateLimitDays cannot be null"); - } this.dueDateLimitDays = JsonNullable.of(value); return this; } @@ -197,9 +185,6 @@ public ApiPaymentCampaignSaveRequestDtoBuilder dueDateLimitDays(Long value) { @JsonProperty("subscriptionCycle") public ApiPaymentCampaignSaveRequestDtoBuilder subscriptionCycle(ApiPaymentCampaignSaveRequestCycle value) { - if (value == null) { - throw new IllegalStateException("subscriptionCycle cannot be null"); - } this.subscriptionCycle = JsonNullable.of(value); return this; } @@ -208,9 +193,6 @@ public ApiPaymentCampaignSaveRequestDtoBuilder subscriptionCycle(ApiPaymentCampa @JsonProperty("maxInstallmentCount") public ApiPaymentCampaignSaveRequestDtoBuilder maxInstallmentCount(Long value) { - if (value == null) { - throw new IllegalStateException("maxInstallmentCount cannot be null"); - } this.maxInstallmentCount = JsonNullable.of(value); return this; } @@ -219,9 +201,6 @@ public ApiPaymentCampaignSaveRequestDtoBuilder maxInstallmentCount(Long value) { @JsonProperty("externalReference") public ApiPaymentCampaignSaveRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -230,9 +209,6 @@ public ApiPaymentCampaignSaveRequestDtoBuilder externalReference(String value) { @JsonProperty("notificationEnabled") public ApiPaymentCampaignSaveRequestDtoBuilder notificationEnabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("notificationEnabled cannot be null"); - } this.notificationEnabled = JsonNullable.of(value); return this; } @@ -241,9 +217,6 @@ public ApiPaymentCampaignSaveRequestDtoBuilder notificationEnabled(Boolean value @JsonProperty("callback") public ApiPaymentCampaignSaveRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - if (value == null) { - throw new IllegalStateException("callback cannot be null"); - } this.callback = JsonNullable.of(value); return this; } @@ -252,9 +225,6 @@ public ApiPaymentCampaignSaveRequestDtoBuilder callback(ApiPaymentCallbackReques @JsonProperty("isAddressRequired") public ApiPaymentCampaignSaveRequestDtoBuilder isAddressRequired(Boolean value) { - if (value == null) { - throw new IllegalStateException("isAddressRequired cannot be null"); - } this.isAddressRequired = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestDto.java index 23c76fb..aaf6031 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestDto.java @@ -167,9 +167,6 @@ public static class ApiPaymentCampaignUpdateRequestDtoBuilder { @JsonProperty("name") public ApiPaymentCampaignUpdateRequestDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -178,9 +175,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder name(String value) { @JsonProperty("description") public ApiPaymentCampaignUpdateRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -189,9 +183,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder description(String value) { @JsonProperty("endDate") public ApiPaymentCampaignUpdateRequestDtoBuilder endDate(String value) { - if (value == null) { - throw new IllegalStateException("endDate cannot be null"); - } this.endDate = JsonNullable.of(value); return this; } @@ -200,9 +191,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder endDate(String value) { @JsonProperty("value") public ApiPaymentCampaignUpdateRequestDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -211,9 +199,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder value(Double value) { @JsonProperty("active") public ApiPaymentCampaignUpdateRequestDtoBuilder active(Boolean value) { - if (value == null) { - throw new IllegalStateException("active cannot be null"); - } this.active = JsonNullable.of(value); return this; } @@ -222,9 +207,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder active(Boolean value) { @JsonProperty("billingType") public ApiPaymentCampaignUpdateRequestDtoBuilder billingType(ApiPaymentCampaignUpdateRequestBillingType value) { - if (value == null) { - throw new IllegalStateException("billingType cannot be null"); - } this.billingType = JsonNullable.of(value); return this; } @@ -233,9 +215,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder billingType(ApiPaymentCampaignU @JsonProperty("chargeType") public ApiPaymentCampaignUpdateRequestDtoBuilder chargeType(ApiPaymentCampaignUpdateRequestChargeType value) { - if (value == null) { - throw new IllegalStateException("chargeType cannot be null"); - } this.chargeType = JsonNullable.of(value); return this; } @@ -244,9 +223,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder chargeType(ApiPaymentCampaignUp @JsonProperty("dueDateLimitDays") public ApiPaymentCampaignUpdateRequestDtoBuilder dueDateLimitDays(Long value) { - if (value == null) { - throw new IllegalStateException("dueDateLimitDays cannot be null"); - } this.dueDateLimitDays = JsonNullable.of(value); return this; } @@ -255,9 +231,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder dueDateLimitDays(Long value) { @JsonProperty("subscriptionCycle") public ApiPaymentCampaignUpdateRequestDtoBuilder subscriptionCycle(ApiPaymentCampaignUpdateRequestCycle value) { - if (value == null) { - throw new IllegalStateException("subscriptionCycle cannot be null"); - } this.subscriptionCycle = JsonNullable.of(value); return this; } @@ -266,9 +239,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder subscriptionCycle(ApiPaymentCam @JsonProperty("maxInstallmentCount") public ApiPaymentCampaignUpdateRequestDtoBuilder maxInstallmentCount(Long value) { - if (value == null) { - throw new IllegalStateException("maxInstallmentCount cannot be null"); - } this.maxInstallmentCount = JsonNullable.of(value); return this; } @@ -277,9 +247,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder maxInstallmentCount(Long value) @JsonProperty("externalReference") public ApiPaymentCampaignUpdateRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -288,9 +255,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder externalReference(String value) @JsonProperty("notificationEnabled") public ApiPaymentCampaignUpdateRequestDtoBuilder notificationEnabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("notificationEnabled cannot be null"); - } this.notificationEnabled = JsonNullable.of(value); return this; } @@ -299,9 +263,6 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder notificationEnabled(Boolean val @JsonProperty("callback") public ApiPaymentCampaignUpdateRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - if (value == null) { - throw new IllegalStateException("callback cannot be null"); - } this.callback = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseDto.java index 99dd916..6711da4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseDto.java @@ -156,9 +156,6 @@ public static class ApiPaymentChargebackResponseDtoBuilder { @JsonProperty("id") public ApiPaymentChargebackResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -167,9 +164,6 @@ public ApiPaymentChargebackResponseDtoBuilder id(String value) { @JsonProperty("payment") public ApiPaymentChargebackResponseDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } @@ -178,9 +172,6 @@ public ApiPaymentChargebackResponseDtoBuilder payment(String value) { @JsonProperty("installment") public ApiPaymentChargebackResponseDtoBuilder installment(String value) { - if (value == null) { - throw new IllegalStateException("installment cannot be null"); - } this.installment = JsonNullable.of(value); return this; } @@ -189,9 +180,6 @@ public ApiPaymentChargebackResponseDtoBuilder installment(String value) { @JsonProperty("customerAccount") public ApiPaymentChargebackResponseDtoBuilder customerAccount(String value) { - if (value == null) { - throw new IllegalStateException("customerAccount cannot be null"); - } this.customerAccount = JsonNullable.of(value); return this; } @@ -200,9 +188,6 @@ public ApiPaymentChargebackResponseDtoBuilder customerAccount(String value) { @JsonProperty("status") public ApiPaymentChargebackResponseDtoBuilder status(ApiPaymentChargebackResponseChargebackStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -211,9 +196,6 @@ public ApiPaymentChargebackResponseDtoBuilder status(ApiPaymentChargebackRespons @JsonProperty("reason") public ApiPaymentChargebackResponseDtoBuilder reason(ApiPaymentChargebackResponseChargebackReason value) { - if (value == null) { - throw new IllegalStateException("reason cannot be null"); - } this.reason = JsonNullable.of(value); return this; } @@ -222,9 +204,6 @@ public ApiPaymentChargebackResponseDtoBuilder reason(ApiPaymentChargebackRespons @JsonProperty("disputeStartDate") public ApiPaymentChargebackResponseDtoBuilder disputeStartDate(String value) { - if (value == null) { - throw new IllegalStateException("disputeStartDate cannot be null"); - } this.disputeStartDate = JsonNullable.of(value); return this; } @@ -233,9 +212,6 @@ public ApiPaymentChargebackResponseDtoBuilder disputeStartDate(String value) { @JsonProperty("value") public ApiPaymentChargebackResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -244,9 +220,6 @@ public ApiPaymentChargebackResponseDtoBuilder value(Double value) { @JsonProperty("paymentDate") public ApiPaymentChargebackResponseDtoBuilder paymentDate(String value) { - if (value == null) { - throw new IllegalStateException("paymentDate cannot be null"); - } this.paymentDate = JsonNullable.of(value); return this; } @@ -255,9 +228,6 @@ public ApiPaymentChargebackResponseDtoBuilder paymentDate(String value) { @JsonProperty("creditCard") public ApiPaymentChargebackResponseDtoBuilder creditCard(ApiChargebackCreditCardResponseDto value) { - if (value == null) { - throw new IllegalStateException("creditCard cannot be null"); - } this.creditCard = JsonNullable.of(value); return this; } @@ -268,9 +238,6 @@ public ApiPaymentChargebackResponseDtoBuilder creditCard(ApiChargebackCreditCard public ApiPaymentChargebackResponseDtoBuilder disputeStatus( ApiPaymentChargebackResponseChargebackDisputeStatus value ) { - if (value == null) { - throw new IllegalStateException("disputeStatus cannot be null"); - } this.disputeStatus = JsonNullable.of(value); return this; } @@ -279,9 +246,6 @@ public ApiPaymentChargebackResponseDtoBuilder disputeStatus( @JsonProperty("deadlineToSendDisputeDocuments") public ApiPaymentChargebackResponseDtoBuilder deadlineToSendDisputeDocuments(String value) { - if (value == null) { - throw new IllegalStateException("deadlineToSendDisputeDocuments cannot be null"); - } this.deadlineToSendDisputeDocuments = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseDto.java index 9f58b35..93b61bf 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseDto.java @@ -115,9 +115,6 @@ public static class ApiPaymentCheckoutConfigGetResponseDtoBuilder { @JsonProperty("object") public ApiPaymentCheckoutConfigGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -126,9 +123,6 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder object(String value) { @JsonProperty("logoBackgroundColor") public ApiPaymentCheckoutConfigGetResponseDtoBuilder logoBackgroundColor(String value) { - if (value == null) { - throw new IllegalStateException("logoBackgroundColor cannot be null"); - } this.logoBackgroundColor = JsonNullable.of(value); return this; } @@ -137,9 +131,6 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder logoBackgroundColor(String @JsonProperty("infoBackgroundColor") public ApiPaymentCheckoutConfigGetResponseDtoBuilder infoBackgroundColor(String value) { - if (value == null) { - throw new IllegalStateException("infoBackgroundColor cannot be null"); - } this.infoBackgroundColor = JsonNullable.of(value); return this; } @@ -148,9 +139,6 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder infoBackgroundColor(String @JsonProperty("fontColor") public ApiPaymentCheckoutConfigGetResponseDtoBuilder fontColor(String value) { - if (value == null) { - throw new IllegalStateException("fontColor cannot be null"); - } this.fontColor = JsonNullable.of(value); return this; } @@ -159,9 +147,6 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder fontColor(String value) { @JsonProperty("enabled") public ApiPaymentCheckoutConfigGetResponseDtoBuilder enabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("enabled cannot be null"); - } this.enabled = JsonNullable.of(value); return this; } @@ -170,9 +155,6 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder enabled(Boolean value) { @JsonProperty("logoUrl") public ApiPaymentCheckoutConfigGetResponseDtoBuilder logoUrl(String value) { - if (value == null) { - throw new IllegalStateException("logoUrl cannot be null"); - } this.logoUrl = JsonNullable.of(value); return this; } @@ -181,9 +163,6 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder logoUrl(String value) { @JsonProperty("observations") public ApiPaymentCheckoutConfigGetResponseDtoBuilder observations(String value) { - if (value == null) { - throw new IllegalStateException("observations cannot be null"); - } this.observations = JsonNullable.of(value); return this; } @@ -195,9 +174,6 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder observations(String value) public ApiPaymentCheckoutConfigGetResponseDtoBuilder status( ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigSaveRequestDto.java index 12c6239..bc37016 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigSaveRequestDto.java @@ -68,9 +68,6 @@ public static class ApiPaymentCheckoutConfigSaveRequestDtoBuilder { @JsonProperty("enabled") public ApiPaymentCheckoutConfigSaveRequestDtoBuilder enabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("enabled cannot be null"); - } this.enabled = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponseDto.java index 2a35992..6e47a53 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponseDto.java @@ -82,9 +82,6 @@ public static class ApiPaymentCustodyGetResponseDtoBuilder { @JsonProperty("id") public ApiPaymentCustodyGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -93,9 +90,6 @@ public ApiPaymentCustodyGetResponseDtoBuilder id(String value) { @JsonProperty("status") public ApiPaymentCustodyGetResponseDtoBuilder status(ApiPaymentCustodyGetResponsePaymentCustodyStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -104,9 +98,6 @@ public ApiPaymentCustodyGetResponseDtoBuilder status(ApiPaymentCustodyGetRespons @JsonProperty("expirationDate") public ApiPaymentCustodyGetResponseDtoBuilder expirationDate(String value) { - if (value == null) { - throw new IllegalStateException("expirationDate cannot be null"); - } this.expirationDate = JsonNullable.of(value); return this; } @@ -115,9 +106,6 @@ public ApiPaymentCustodyGetResponseDtoBuilder expirationDate(String value) { @JsonProperty("finishDate") public ApiPaymentCustodyGetResponseDtoBuilder finishDate(String value) { - if (value == null) { - throw new IllegalStateException("finishDate cannot be null"); - } this.finishDate = JsonNullable.of(value); return this; } @@ -129,9 +117,6 @@ public ApiPaymentCustodyGetResponseDtoBuilder finishDate(String value) { public ApiPaymentCustodyGetResponseDtoBuilder finishReason( ApiPaymentCustodyGetResponsePaymentCustodyFinishReason value ) { - if (value == null) { - throw new IllegalStateException("finishReason cannot be null"); - } this.finishReason = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDeleteResponseDto.java index e416420..61a2f86 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDeleteResponseDto.java @@ -49,9 +49,6 @@ public static class ApiPaymentDeleteResponseDtoBuilder { @JsonProperty("deleted") public ApiPaymentDeleteResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPaymentDeleteResponseDtoBuilder deleted(Boolean value) { @JsonProperty("id") public ApiPaymentDeleteResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDto.java index b7ba0d4..0ef3d22 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDto.java @@ -60,9 +60,6 @@ public static class ApiPaymentDiscountDtoBuilder { @JsonProperty("value") public ApiPaymentDiscountDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiPaymentDiscountDtoBuilder value(Double value) { @JsonProperty("dueDateLimitDays") public ApiPaymentDiscountDtoBuilder dueDateLimitDays(Long value) { - if (value == null) { - throw new IllegalStateException("dueDateLimitDays cannot be null"); - } this.dueDateLimitDays = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiPaymentDiscountDtoBuilder dueDateLimitDays(Long value) { @JsonProperty("type") public ApiPaymentDiscountDtoBuilder type(ApiPaymentDiscountDiscountType value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentDeleteResponseDto.java index d0c8ac0..90c6bda 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentDeleteResponseDto.java @@ -49,9 +49,6 @@ public static class ApiPaymentDocumentDeleteResponseDtoBuilder { @JsonProperty("deleted") public ApiPaymentDocumentDeleteResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPaymentDocumentDeleteResponseDtoBuilder deleted(Boolean value) { @JsonProperty("id") public ApiPaymentDocumentDeleteResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentFileResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentFileResponseDto.java index 5a1eb02..717599f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentFileResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentFileResponseDto.java @@ -93,9 +93,6 @@ public static class ApiPaymentDocumentFileResponseDtoBuilder { @JsonProperty("publicId") public ApiPaymentDocumentFileResponseDtoBuilder publicId(String value) { - if (value == null) { - throw new IllegalStateException("publicId cannot be null"); - } this.publicId = JsonNullable.of(value); return this; } @@ -104,9 +101,6 @@ public ApiPaymentDocumentFileResponseDtoBuilder publicId(String value) { @JsonProperty("originalName") public ApiPaymentDocumentFileResponseDtoBuilder originalName(String value) { - if (value == null) { - throw new IllegalStateException("originalName cannot be null"); - } this.originalName = JsonNullable.of(value); return this; } @@ -115,9 +109,6 @@ public ApiPaymentDocumentFileResponseDtoBuilder originalName(String value) { @JsonProperty("size") public ApiPaymentDocumentFileResponseDtoBuilder size(Long value) { - if (value == null) { - throw new IllegalStateException("size cannot be null"); - } this.size = JsonNullable.of(value); return this; } @@ -126,9 +117,6 @@ public ApiPaymentDocumentFileResponseDtoBuilder size(Long value) { @JsonProperty("extension") public ApiPaymentDocumentFileResponseDtoBuilder extension(String value) { - if (value == null) { - throw new IllegalStateException("extension cannot be null"); - } this.extension = JsonNullable.of(value); return this; } @@ -137,9 +125,6 @@ public ApiPaymentDocumentFileResponseDtoBuilder extension(String value) { @JsonProperty("previewUrl") public ApiPaymentDocumentFileResponseDtoBuilder previewUrl(String value) { - if (value == null) { - throw new IllegalStateException("previewUrl cannot be null"); - } this.previewUrl = JsonNullable.of(value); return this; } @@ -148,9 +133,6 @@ public ApiPaymentDocumentFileResponseDtoBuilder previewUrl(String value) { @JsonProperty("downloadUrl") public ApiPaymentDocumentFileResponseDtoBuilder downloadUrl(String value) { - if (value == null) { - throw new IllegalStateException("downloadUrl cannot be null"); - } this.downloadUrl = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponseDto.java index e9b7d36..eff47ae 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponseDto.java @@ -101,9 +101,6 @@ public static class ApiPaymentDocumentGetResponseDtoBuilder { @JsonProperty("object") public ApiPaymentDocumentGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -112,9 +109,6 @@ public ApiPaymentDocumentGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiPaymentDocumentGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -123,9 +117,6 @@ public ApiPaymentDocumentGetResponseDtoBuilder id(String value) { @JsonProperty("name") public ApiPaymentDocumentGetResponseDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -134,9 +125,6 @@ public ApiPaymentDocumentGetResponseDtoBuilder name(String value) { @JsonProperty("type") public ApiPaymentDocumentGetResponseDtoBuilder type(ApiPaymentDocumentGetResponsePaymentDocumentType value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -145,9 +133,6 @@ public ApiPaymentDocumentGetResponseDtoBuilder type(ApiPaymentDocumentGetRespons @JsonProperty("availableAfterPayment") public ApiPaymentDocumentGetResponseDtoBuilder availableAfterPayment(Boolean value) { - if (value == null) { - throw new IllegalStateException("availableAfterPayment cannot be null"); - } this.availableAfterPayment = JsonNullable.of(value); return this; } @@ -156,9 +141,6 @@ public ApiPaymentDocumentGetResponseDtoBuilder availableAfterPayment(Boolean val @JsonProperty("file") public ApiPaymentDocumentGetResponseDtoBuilder file(ApiPaymentDocumentFileResponseDto value) { - if (value == null) { - throw new IllegalStateException("file cannot be null"); - } this.file = JsonNullable.of(value); return this; } @@ -167,9 +149,6 @@ public ApiPaymentDocumentGetResponseDtoBuilder file(ApiPaymentDocumentFileRespon @JsonProperty("deleted") public ApiPaymentDocumentGetResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentListResponseDto.java index 0d4e673..6bb25dc 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPaymentDocumentListResponseDtoBuilder { @JsonProperty("object") public ApiPaymentDocumentListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPaymentDocumentListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiPaymentDocumentListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPaymentDocumentListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiPaymentDocumentListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPaymentDocumentListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiPaymentDocumentListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPaymentDocumentListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiPaymentDocumentListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiPaymentDocumentListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiPaymentDocumentListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponseDto.java index 1996a58..25afc72 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponseDto.java @@ -203,9 +203,6 @@ public static class ApiPaymentDunningCancelResponseDtoBuilder { @JsonProperty("id") public ApiPaymentDunningCancelResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -214,9 +211,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder id(String value) { @JsonProperty("dunningNumber") public ApiPaymentDunningCancelResponseDtoBuilder dunningNumber(Long value) { - if (value == null) { - throw new IllegalStateException("dunningNumber cannot be null"); - } this.dunningNumber = JsonNullable.of(value); return this; } @@ -225,9 +219,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder dunningNumber(Long value) { @JsonProperty("status") public ApiPaymentDunningCancelResponseDtoBuilder status(ApiPaymentDunningCancelResponsePaymentDunningStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -236,9 +227,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder status(ApiPaymentDunningCancelR @JsonProperty("type") public ApiPaymentDunningCancelResponseDtoBuilder type(ApiPaymentDunningCancelResponsePaymentDunningType value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -247,9 +235,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder type(ApiPaymentDunningCancelRes @JsonProperty("payment") public ApiPaymentDunningCancelResponseDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } @@ -258,9 +243,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder payment(String value) { @JsonProperty("requestDate") public ApiPaymentDunningCancelResponseDtoBuilder requestDate(String value) { - if (value == null) { - throw new IllegalStateException("requestDate cannot be null"); - } this.requestDate = JsonNullable.of(value); return this; } @@ -269,9 +251,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder requestDate(String value) { @JsonProperty("description") public ApiPaymentDunningCancelResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -280,9 +259,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder description(String value) { @JsonProperty("value") public ApiPaymentDunningCancelResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -291,9 +267,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder value(Double value) { @JsonProperty("feeValue") public ApiPaymentDunningCancelResponseDtoBuilder feeValue(Double value) { - if (value == null) { - throw new IllegalStateException("feeValue cannot be null"); - } this.feeValue = JsonNullable.of(value); return this; } @@ -302,9 +275,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder feeValue(Double value) { @JsonProperty("netValue") public ApiPaymentDunningCancelResponseDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -313,9 +283,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder netValue(Double value) { @JsonProperty("receivedInCashFeeValue") public ApiPaymentDunningCancelResponseDtoBuilder receivedInCashFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("receivedInCashFeeValue cannot be null"); - } this.receivedInCashFeeValue = JsonNullable.of(value); return this; } @@ -324,9 +291,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder receivedInCashFeeValue(Double v @JsonProperty("denialReason") public ApiPaymentDunningCancelResponseDtoBuilder denialReason(String value) { - if (value == null) { - throw new IllegalStateException("denialReason cannot be null"); - } this.denialReason = JsonNullable.of(value); return this; } @@ -335,9 +299,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder denialReason(String value) { @JsonProperty("cancellationFeeValue") public ApiPaymentDunningCancelResponseDtoBuilder cancellationFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("cancellationFeeValue cannot be null"); - } this.cancellationFeeValue = JsonNullable.of(value); return this; } @@ -346,9 +307,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder cancellationFeeValue(Double val @JsonProperty("canBeCancelled") public ApiPaymentDunningCancelResponseDtoBuilder canBeCancelled(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBeCancelled cannot be null"); - } this.canBeCancelled = JsonNullable.of(value); return this; } @@ -357,9 +315,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder canBeCancelled(Boolean value) { @JsonProperty("cannotBeCancelledReason") public ApiPaymentDunningCancelResponseDtoBuilder cannotBeCancelledReason(String value) { - if (value == null) { - throw new IllegalStateException("cannotBeCancelledReason cannot be null"); - } this.cannotBeCancelledReason = JsonNullable.of(value); return this; } @@ -368,9 +323,6 @@ public ApiPaymentDunningCancelResponseDtoBuilder cannotBeCancelledReason(String @JsonProperty("isNecessaryResendDocumentation") public ApiPaymentDunningCancelResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { - if (value == null) { - throw new IllegalStateException("isNecessaryResendDocumentation cannot be null"); - } this.isNecessaryResendDocumentation = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataDto.java index 1e2c783..4200057 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataDto.java @@ -63,9 +63,6 @@ public static class ApiPaymentDunningListHistoryResponseDataDtoBuilder { public ApiPaymentDunningListHistoryResponseDataDtoBuilder status( ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -74,9 +71,6 @@ public ApiPaymentDunningListHistoryResponseDataDtoBuilder status( @JsonProperty("description") public ApiPaymentDunningListHistoryResponseDataDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -85,9 +79,6 @@ public ApiPaymentDunningListHistoryResponseDataDtoBuilder description(String val @JsonProperty("eventDate") public ApiPaymentDunningListHistoryResponseDataDtoBuilder eventDate(String value) { - if (value == null) { - throw new IllegalStateException("eventDate cannot be null"); - } this.eventDate = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDto.java index 3bab440..9827bb4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPaymentDunningListHistoryResponseDtoBuilder { @JsonProperty("object") public ApiPaymentDunningListHistoryResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPaymentDunningListHistoryResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiPaymentDunningListHistoryResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPaymentDunningListHistoryResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiPaymentDunningListHistoryResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPaymentDunningListHistoryResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiPaymentDunningListHistoryResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPaymentDunningListHistoryResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiPaymentDunningListHistoryResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -151,9 +136,6 @@ public ApiPaymentDunningListHistoryResponseDtoBuilder offset(Long value) { public ApiPaymentDunningListHistoryResponseDtoBuilder data( List value ) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.java index b6e6908..1fe31b8 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.java @@ -60,9 +60,6 @@ public static class ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder { @JsonProperty("value") public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder value(Double v @JsonProperty("description") public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder description(St @JsonProperty("paymentDate") public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder paymentDate(String value) { - if (value == null) { - throw new IllegalStateException("paymentDate cannot be null"); - } this.paymentDate = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDto.java index 96c70d8..2231b17 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPaymentDunningListPartialPaymentsResponseDtoBuilder { @JsonProperty("object") public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder object(String valu @JsonProperty("hasMore") public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder hasMore(Boolean va @JsonProperty("totalCount") public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder totalCount(Long va @JsonProperty("limit") public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder limit(Long value) @JsonProperty("offset") public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -151,9 +136,6 @@ public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder offset(Long value) public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder data( List value ) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListResponseDto.java index a294015..6cc81e6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPaymentDunningListResponseDtoBuilder { @JsonProperty("object") public ApiPaymentDunningListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPaymentDunningListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiPaymentDunningListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPaymentDunningListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiPaymentDunningListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPaymentDunningListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiPaymentDunningListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPaymentDunningListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiPaymentDunningListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiPaymentDunningListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiPaymentDunningListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java index 4d2d228..16db902 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java @@ -107,9 +107,6 @@ public static class ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoB @JsonProperty("payment") public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } @@ -118,9 +115,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder paymen @JsonProperty("customer") public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder customer(String value) { - if (value == null) { - throw new IllegalStateException("customer cannot be null"); - } this.customer = JsonNullable.of(value); return this; } @@ -129,9 +123,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder custom @JsonProperty("value") public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -143,9 +134,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder value( public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder status( ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -157,9 +145,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder status public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder billingType( ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType value ) { - if (value == null) { - throw new IllegalStateException("billingType cannot be null"); - } this.billingType = JsonNullable.of(value); return this; } @@ -168,9 +153,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder billin @JsonProperty("dueDate") public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder dueDate(String value) { - if (value == null) { - throw new IllegalStateException("dueDate cannot be null"); - } this.dueDate = JsonNullable.of(value); return this; } @@ -183,9 +165,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder dueDat public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder typeSimulations( List value ) { - if (value == null) { - throw new IllegalStateException("typeSimulations cannot be null"); - } this.typeSimulations = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java index f4afb1e..ad5015c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java @@ -99,9 +99,6 @@ public static class ApiPaymentDunningPaymentsAvailableForDunningResponseDataType public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder type( ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType value ) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -112,9 +109,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationIte public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder isAllowed( Boolean value ) { - if (value == null) { - throw new IllegalStateException("isAllowed cannot be null"); - } this.isAllowed = JsonNullable.of(value); return this; } @@ -125,9 +119,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationIte public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder notAllowedReason( String value ) { - if (value == null) { - throw new IllegalStateException("notAllowedReason cannot be null"); - } this.notAllowedReason = JsonNullable.of(value); return this; } @@ -136,9 +127,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationIte @JsonProperty("feeValue") public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder feeValue(Double value) { - if (value == null) { - throw new IllegalStateException("feeValue cannot be null"); - } this.feeValue = JsonNullable.of(value); return this; } @@ -147,9 +135,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationIte @JsonProperty("netValue") public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -160,9 +145,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationIte public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder startDate( String value ) { - if (value == null) { - throw new IllegalStateException("startDate cannot be null"); - } this.startDate = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.java index 452e95a..0665d8e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuild @JsonProperty("object") public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder object(Str @JsonProperty("hasMore") public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder hasMore(Bo @JsonProperty("totalCount") public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder totalCount @JsonProperty("limit") public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder limit(Long @JsonProperty("offset") public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -152,9 +137,6 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder offset(Lon public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder data( List value ) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponseDto.java index 5c671f7..c357950 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponseDto.java @@ -203,9 +203,6 @@ public static class ApiPaymentDunningSaveDocumentsResponseDtoBuilder { @JsonProperty("id") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -214,9 +211,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder id(String value) { @JsonProperty("dunningNumber") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder dunningNumber(Long value) { - if (value == null) { - throw new IllegalStateException("dunningNumber cannot be null"); - } this.dunningNumber = JsonNullable.of(value); return this; } @@ -227,9 +221,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder dunningNumber(Long value public ApiPaymentDunningSaveDocumentsResponseDtoBuilder status( ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -240,9 +231,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder status( public ApiPaymentDunningSaveDocumentsResponseDtoBuilder type( ApiPaymentDunningSaveDocumentsResponsePaymentDunningType value ) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -251,9 +239,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder type( @JsonProperty("payment") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } @@ -262,9 +247,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder payment(String value) { @JsonProperty("requestDate") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder requestDate(String value) { - if (value == null) { - throw new IllegalStateException("requestDate cannot be null"); - } this.requestDate = JsonNullable.of(value); return this; } @@ -273,9 +255,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder requestDate(String value @JsonProperty("description") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -284,9 +263,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder description(String value @JsonProperty("value") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -295,9 +271,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder value(Double value) { @JsonProperty("feeValue") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder feeValue(Double value) { - if (value == null) { - throw new IllegalStateException("feeValue cannot be null"); - } this.feeValue = JsonNullable.of(value); return this; } @@ -306,9 +279,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder feeValue(Double value) { @JsonProperty("netValue") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -317,9 +287,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder netValue(Double value) { @JsonProperty("receivedInCashFeeValue") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder receivedInCashFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("receivedInCashFeeValue cannot be null"); - } this.receivedInCashFeeValue = JsonNullable.of(value); return this; } @@ -328,9 +295,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder receivedInCashFeeValue(D @JsonProperty("denialReason") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder denialReason(String value) { - if (value == null) { - throw new IllegalStateException("denialReason cannot be null"); - } this.denialReason = JsonNullable.of(value); return this; } @@ -339,9 +303,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder denialReason(String valu @JsonProperty("cancellationFeeValue") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder cancellationFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("cancellationFeeValue cannot be null"); - } this.cancellationFeeValue = JsonNullable.of(value); return this; } @@ -350,9 +311,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder cancellationFeeValue(Dou @JsonProperty("canBeCancelled") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder canBeCancelled(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBeCancelled cannot be null"); - } this.canBeCancelled = JsonNullable.of(value); return this; } @@ -361,9 +319,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder canBeCancelled(Boolean v @JsonProperty("cannotBeCancelledReason") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder cannotBeCancelledReason(String value) { - if (value == null) { - throw new IllegalStateException("cannotBeCancelledReason cannot be null"); - } this.cannotBeCancelledReason = JsonNullable.of(value); return this; } @@ -372,9 +327,6 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder cannotBeCancelledReason( @JsonProperty("isNecessaryResendDocumentation") public ApiPaymentDunningSaveDocumentsResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { - if (value == null) { - throw new IllegalStateException("isNecessaryResendDocumentation cannot be null"); - } this.isNecessaryResendDocumentation = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestDto.java index 54f35dc..cf47ad8 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestDto.java @@ -126,9 +126,6 @@ public static class ApiPaymentDunningSaveRequestDtoBuilder { @JsonProperty("description") public ApiPaymentDunningSaveRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -137,9 +134,6 @@ public ApiPaymentDunningSaveRequestDtoBuilder description(String value) { @JsonProperty("customerSecondaryPhone") public ApiPaymentDunningSaveRequestDtoBuilder customerSecondaryPhone(String value) { - if (value == null) { - throw new IllegalStateException("customerSecondaryPhone cannot be null"); - } this.customerSecondaryPhone = JsonNullable.of(value); return this; } @@ -148,9 +142,6 @@ public ApiPaymentDunningSaveRequestDtoBuilder customerSecondaryPhone(String valu @JsonProperty("customerComplement") public ApiPaymentDunningSaveRequestDtoBuilder customerComplement(String value) { - if (value == null) { - throw new IllegalStateException("customerComplement cannot be null"); - } this.customerComplement = JsonNullable.of(value); return this; } @@ -159,9 +150,6 @@ public ApiPaymentDunningSaveRequestDtoBuilder customerComplement(String value) { @JsonProperty("documents") public ApiPaymentDunningSaveRequestDtoBuilder documents(byte[] value) { - if (value == null) { - throw new IllegalStateException("documents cannot be null"); - } this.documents = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponseDto.java index a870fd3..b9af8ae 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponseDto.java @@ -203,9 +203,6 @@ public static class ApiPaymentDunningShowResponseDtoBuilder { @JsonProperty("id") public ApiPaymentDunningShowResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -214,9 +211,6 @@ public ApiPaymentDunningShowResponseDtoBuilder id(String value) { @JsonProperty("dunningNumber") public ApiPaymentDunningShowResponseDtoBuilder dunningNumber(Long value) { - if (value == null) { - throw new IllegalStateException("dunningNumber cannot be null"); - } this.dunningNumber = JsonNullable.of(value); return this; } @@ -225,9 +219,6 @@ public ApiPaymentDunningShowResponseDtoBuilder dunningNumber(Long value) { @JsonProperty("status") public ApiPaymentDunningShowResponseDtoBuilder status(ApiPaymentDunningShowResponsePaymentDunningStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -236,9 +227,6 @@ public ApiPaymentDunningShowResponseDtoBuilder status(ApiPaymentDunningShowRespo @JsonProperty("type") public ApiPaymentDunningShowResponseDtoBuilder type(ApiPaymentDunningShowResponsePaymentDunningType value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -247,9 +235,6 @@ public ApiPaymentDunningShowResponseDtoBuilder type(ApiPaymentDunningShowRespons @JsonProperty("requestDate") public ApiPaymentDunningShowResponseDtoBuilder requestDate(String value) { - if (value == null) { - throw new IllegalStateException("requestDate cannot be null"); - } this.requestDate = JsonNullable.of(value); return this; } @@ -258,9 +243,6 @@ public ApiPaymentDunningShowResponseDtoBuilder requestDate(String value) { @JsonProperty("description") public ApiPaymentDunningShowResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -269,9 +251,6 @@ public ApiPaymentDunningShowResponseDtoBuilder description(String value) { @JsonProperty("value") public ApiPaymentDunningShowResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -280,9 +259,6 @@ public ApiPaymentDunningShowResponseDtoBuilder value(Double value) { @JsonProperty("feeValue") public ApiPaymentDunningShowResponseDtoBuilder feeValue(Double value) { - if (value == null) { - throw new IllegalStateException("feeValue cannot be null"); - } this.feeValue = JsonNullable.of(value); return this; } @@ -291,9 +267,6 @@ public ApiPaymentDunningShowResponseDtoBuilder feeValue(Double value) { @JsonProperty("netValue") public ApiPaymentDunningShowResponseDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -302,9 +275,6 @@ public ApiPaymentDunningShowResponseDtoBuilder netValue(Double value) { @JsonProperty("receivedInCashFeeValue") public ApiPaymentDunningShowResponseDtoBuilder receivedInCashFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("receivedInCashFeeValue cannot be null"); - } this.receivedInCashFeeValue = JsonNullable.of(value); return this; } @@ -313,9 +283,6 @@ public ApiPaymentDunningShowResponseDtoBuilder receivedInCashFeeValue(Double val @JsonProperty("denialReason") public ApiPaymentDunningShowResponseDtoBuilder denialReason(String value) { - if (value == null) { - throw new IllegalStateException("denialReason cannot be null"); - } this.denialReason = JsonNullable.of(value); return this; } @@ -324,9 +291,6 @@ public ApiPaymentDunningShowResponseDtoBuilder denialReason(String value) { @JsonProperty("cancellationFeeValue") public ApiPaymentDunningShowResponseDtoBuilder cancellationFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("cancellationFeeValue cannot be null"); - } this.cancellationFeeValue = JsonNullable.of(value); return this; } @@ -335,9 +299,6 @@ public ApiPaymentDunningShowResponseDtoBuilder cancellationFeeValue(Double value @JsonProperty("canBeCancelled") public ApiPaymentDunningShowResponseDtoBuilder canBeCancelled(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBeCancelled cannot be null"); - } this.canBeCancelled = JsonNullable.of(value); return this; } @@ -346,9 +307,6 @@ public ApiPaymentDunningShowResponseDtoBuilder canBeCancelled(Boolean value) { @JsonProperty("cannotBeCancelledReason") public ApiPaymentDunningShowResponseDtoBuilder cannotBeCancelledReason(String value) { - if (value == null) { - throw new IllegalStateException("cannotBeCancelledReason cannot be null"); - } this.cannotBeCancelledReason = JsonNullable.of(value); return this; } @@ -357,9 +315,6 @@ public ApiPaymentDunningShowResponseDtoBuilder cannotBeCancelledReason(String va @JsonProperty("isNecessaryResendDocumentation") public ApiPaymentDunningShowResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { - if (value == null) { - throw new IllegalStateException("isNecessaryResendDocumentation cannot be null"); - } this.isNecessaryResendDocumentation = JsonNullable.of(value); return this; } @@ -368,9 +323,6 @@ public ApiPaymentDunningShowResponseDtoBuilder isNecessaryResendDocumentation(Bo @JsonProperty("payment") public ApiPaymentDunningShowResponseDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseDto.java index c9082b6..bfdfcf1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseDto.java @@ -61,9 +61,6 @@ public static class ApiPaymentDunningSimulateResponseDtoBuilder { @JsonProperty("payment") public ApiPaymentDunningSimulateResponseDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } @@ -72,9 +69,6 @@ public ApiPaymentDunningSimulateResponseDtoBuilder payment(String value) { @JsonProperty("value") public ApiPaymentDunningSimulateResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -86,9 +80,6 @@ public ApiPaymentDunningSimulateResponseDtoBuilder value(Double value) { public ApiPaymentDunningSimulateResponseDtoBuilder typeSimulations( List value ) { - if (value == null) { - throw new IllegalStateException("typeSimulations cannot be null"); - } this.typeSimulations = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.java index b5a8d3a..99e155c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.java @@ -96,9 +96,6 @@ public static class ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilde public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder type( ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType value ) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -107,9 +104,6 @@ public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder type( @JsonProperty("isAllowed") public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder isAllowed(Boolean value) { - if (value == null) { - throw new IllegalStateException("isAllowed cannot be null"); - } this.isAllowed = JsonNullable.of(value); return this; } @@ -118,9 +112,6 @@ public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder isAllowed(B @JsonProperty("notAllowedReason") public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder notAllowedReason(String value) { - if (value == null) { - throw new IllegalStateException("notAllowedReason cannot be null"); - } this.notAllowedReason = JsonNullable.of(value); return this; } @@ -129,9 +120,6 @@ public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder notAllowedR @JsonProperty("feeValue") public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder feeValue(Double value) { - if (value == null) { - throw new IllegalStateException("feeValue cannot be null"); - } this.feeValue = JsonNullable.of(value); return this; } @@ -140,9 +128,6 @@ public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder feeValue(Do @JsonProperty("netValue") public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -151,9 +136,6 @@ public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder netValue(Do @JsonProperty("startDate") public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder startDate(String value) { - if (value == null) { - throw new IllegalStateException("startDate cannot be null"); - } this.startDate = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestDto.java index 7b85c66..9d009fd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestDto.java @@ -49,9 +49,6 @@ public static class ApiPaymentFineRequestDtoBuilder { @JsonProperty("value") public ApiPaymentFineRequestDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPaymentFineRequestDtoBuilder value(Double value) { @JsonProperty("type") public ApiPaymentFineRequestDtoBuilder type(ApiPaymentFineRequestFineType value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentFineResponseDto.java index d95c3ca..f3d77c7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentFineResponseDto.java @@ -38,9 +38,6 @@ public static class ApiPaymentFineResponseDtoBuilder { @JsonProperty("value") public ApiPaymentFineResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseDto.java index 72c4279..5c8b8fe 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseDto.java @@ -494,9 +494,6 @@ public static class ApiPaymentGetResponseDtoBuilder { @JsonProperty("object") public ApiPaymentGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -505,9 +502,6 @@ public ApiPaymentGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiPaymentGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -516,9 +510,6 @@ public ApiPaymentGetResponseDtoBuilder id(String value) { @JsonProperty("dateCreated") public ApiPaymentGetResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -527,9 +518,6 @@ public ApiPaymentGetResponseDtoBuilder dateCreated(String value) { @JsonProperty("customer") public ApiPaymentGetResponseDtoBuilder customer(String value) { - if (value == null) { - throw new IllegalStateException("customer cannot be null"); - } this.customer = JsonNullable.of(value); return this; } @@ -538,9 +526,6 @@ public ApiPaymentGetResponseDtoBuilder customer(String value) { @JsonProperty("subscription") public ApiPaymentGetResponseDtoBuilder subscription(String value) { - if (value == null) { - throw new IllegalStateException("subscription cannot be null"); - } this.subscription = JsonNullable.of(value); return this; } @@ -549,9 +534,6 @@ public ApiPaymentGetResponseDtoBuilder subscription(String value) { @JsonProperty("installment") public ApiPaymentGetResponseDtoBuilder installment(String value) { - if (value == null) { - throw new IllegalStateException("installment cannot be null"); - } this.installment = JsonNullable.of(value); return this; } @@ -560,9 +542,6 @@ public ApiPaymentGetResponseDtoBuilder installment(String value) { @JsonProperty("checkoutSession") public ApiPaymentGetResponseDtoBuilder checkoutSession(String value) { - if (value == null) { - throw new IllegalStateException("checkoutSession cannot be null"); - } this.checkoutSession = JsonNullable.of(value); return this; } @@ -571,9 +550,6 @@ public ApiPaymentGetResponseDtoBuilder checkoutSession(String value) { @JsonProperty("paymentLink") public ApiPaymentGetResponseDtoBuilder paymentLink(String value) { - if (value == null) { - throw new IllegalStateException("paymentLink cannot be null"); - } this.paymentLink = JsonNullable.of(value); return this; } @@ -582,9 +558,6 @@ public ApiPaymentGetResponseDtoBuilder paymentLink(String value) { @JsonProperty("value") public ApiPaymentGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -593,9 +566,6 @@ public ApiPaymentGetResponseDtoBuilder value(Double value) { @JsonProperty("netValue") public ApiPaymentGetResponseDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -604,9 +574,6 @@ public ApiPaymentGetResponseDtoBuilder netValue(Double value) { @JsonProperty("originalValue") public ApiPaymentGetResponseDtoBuilder originalValue(Double value) { - if (value == null) { - throw new IllegalStateException("originalValue cannot be null"); - } this.originalValue = JsonNullable.of(value); return this; } @@ -615,9 +582,6 @@ public ApiPaymentGetResponseDtoBuilder originalValue(Double value) { @JsonProperty("interestValue") public ApiPaymentGetResponseDtoBuilder interestValue(Double value) { - if (value == null) { - throw new IllegalStateException("interestValue cannot be null"); - } this.interestValue = JsonNullable.of(value); return this; } @@ -626,9 +590,6 @@ public ApiPaymentGetResponseDtoBuilder interestValue(Double value) { @JsonProperty("description") public ApiPaymentGetResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -637,9 +598,6 @@ public ApiPaymentGetResponseDtoBuilder description(String value) { @JsonProperty("billingType") public ApiPaymentGetResponseDtoBuilder billingType(ApiPaymentGetResponseBillingType value) { - if (value == null) { - throw new IllegalStateException("billingType cannot be null"); - } this.billingType = JsonNullable.of(value); return this; } @@ -648,9 +606,6 @@ public ApiPaymentGetResponseDtoBuilder billingType(ApiPaymentGetResponseBillingT @JsonProperty("creditCard") public ApiPaymentGetResponseDtoBuilder creditCard(ApiPaymentSaveWithCreditCardCreditCardDto value) { - if (value == null) { - throw new IllegalStateException("creditCard cannot be null"); - } this.creditCard = JsonNullable.of(value); return this; } @@ -659,9 +614,6 @@ public ApiPaymentGetResponseDtoBuilder creditCard(ApiPaymentSaveWithCreditCardCr @JsonProperty("canBePaidAfterDueDate") public ApiPaymentGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBePaidAfterDueDate cannot be null"); - } this.canBePaidAfterDueDate = JsonNullable.of(value); return this; } @@ -670,9 +622,6 @@ public ApiPaymentGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { @JsonProperty("pixTransaction") public ApiPaymentGetResponseDtoBuilder pixTransaction(String value) { - if (value == null) { - throw new IllegalStateException("pixTransaction cannot be null"); - } this.pixTransaction = JsonNullable.of(value); return this; } @@ -681,9 +630,6 @@ public ApiPaymentGetResponseDtoBuilder pixTransaction(String value) { @JsonProperty("pixQrCodeId") public ApiPaymentGetResponseDtoBuilder pixQrCodeId(String value) { - if (value == null) { - throw new IllegalStateException("pixQrCodeId cannot be null"); - } this.pixQrCodeId = JsonNullable.of(value); return this; } @@ -692,9 +638,6 @@ public ApiPaymentGetResponseDtoBuilder pixQrCodeId(String value) { @JsonProperty("status") public ApiPaymentGetResponseDtoBuilder status(ApiPaymentGetResponsePaymentStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -703,9 +646,6 @@ public ApiPaymentGetResponseDtoBuilder status(ApiPaymentGetResponsePaymentStatus @JsonProperty("dueDate") public ApiPaymentGetResponseDtoBuilder dueDate(String value) { - if (value == null) { - throw new IllegalStateException("dueDate cannot be null"); - } this.dueDate = JsonNullable.of(value); return this; } @@ -714,9 +654,6 @@ public ApiPaymentGetResponseDtoBuilder dueDate(String value) { @JsonProperty("originalDueDate") public ApiPaymentGetResponseDtoBuilder originalDueDate(String value) { - if (value == null) { - throw new IllegalStateException("originalDueDate cannot be null"); - } this.originalDueDate = JsonNullable.of(value); return this; } @@ -725,9 +662,6 @@ public ApiPaymentGetResponseDtoBuilder originalDueDate(String value) { @JsonProperty("paymentDate") public ApiPaymentGetResponseDtoBuilder paymentDate(String value) { - if (value == null) { - throw new IllegalStateException("paymentDate cannot be null"); - } this.paymentDate = JsonNullable.of(value); return this; } @@ -736,9 +670,6 @@ public ApiPaymentGetResponseDtoBuilder paymentDate(String value) { @JsonProperty("clientPaymentDate") public ApiPaymentGetResponseDtoBuilder clientPaymentDate(String value) { - if (value == null) { - throw new IllegalStateException("clientPaymentDate cannot be null"); - } this.clientPaymentDate = JsonNullable.of(value); return this; } @@ -747,9 +678,6 @@ public ApiPaymentGetResponseDtoBuilder clientPaymentDate(String value) { @JsonProperty("installmentNumber") public ApiPaymentGetResponseDtoBuilder installmentNumber(Long value) { - if (value == null) { - throw new IllegalStateException("installmentNumber cannot be null"); - } this.installmentNumber = JsonNullable.of(value); return this; } @@ -758,9 +686,6 @@ public ApiPaymentGetResponseDtoBuilder installmentNumber(Long value) { @JsonProperty("invoiceUrl") public ApiPaymentGetResponseDtoBuilder invoiceUrl(String value) { - if (value == null) { - throw new IllegalStateException("invoiceUrl cannot be null"); - } this.invoiceUrl = JsonNullable.of(value); return this; } @@ -769,9 +694,6 @@ public ApiPaymentGetResponseDtoBuilder invoiceUrl(String value) { @JsonProperty("invoiceNumber") public ApiPaymentGetResponseDtoBuilder invoiceNumber(String value) { - if (value == null) { - throw new IllegalStateException("invoiceNumber cannot be null"); - } this.invoiceNumber = JsonNullable.of(value); return this; } @@ -780,9 +702,6 @@ public ApiPaymentGetResponseDtoBuilder invoiceNumber(String value) { @JsonProperty("externalReference") public ApiPaymentGetResponseDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -791,9 +710,6 @@ public ApiPaymentGetResponseDtoBuilder externalReference(String value) { @JsonProperty("deleted") public ApiPaymentGetResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -802,9 +718,6 @@ public ApiPaymentGetResponseDtoBuilder deleted(Boolean value) { @JsonProperty("anticipated") public ApiPaymentGetResponseDtoBuilder anticipated(Boolean value) { - if (value == null) { - throw new IllegalStateException("anticipated cannot be null"); - } this.anticipated = JsonNullable.of(value); return this; } @@ -813,9 +726,6 @@ public ApiPaymentGetResponseDtoBuilder anticipated(Boolean value) { @JsonProperty("anticipable") public ApiPaymentGetResponseDtoBuilder anticipable(Boolean value) { - if (value == null) { - throw new IllegalStateException("anticipable cannot be null"); - } this.anticipable = JsonNullable.of(value); return this; } @@ -824,9 +734,6 @@ public ApiPaymentGetResponseDtoBuilder anticipable(Boolean value) { @JsonProperty("creditDate") public ApiPaymentGetResponseDtoBuilder creditDate(String value) { - if (value == null) { - throw new IllegalStateException("creditDate cannot be null"); - } this.creditDate = JsonNullable.of(value); return this; } @@ -835,9 +742,6 @@ public ApiPaymentGetResponseDtoBuilder creditDate(String value) { @JsonProperty("estimatedCreditDate") public ApiPaymentGetResponseDtoBuilder estimatedCreditDate(String value) { - if (value == null) { - throw new IllegalStateException("estimatedCreditDate cannot be null"); - } this.estimatedCreditDate = JsonNullable.of(value); return this; } @@ -846,9 +750,6 @@ public ApiPaymentGetResponseDtoBuilder estimatedCreditDate(String value) { @JsonProperty("transactionReceiptUrl") public ApiPaymentGetResponseDtoBuilder transactionReceiptUrl(String value) { - if (value == null) { - throw new IllegalStateException("transactionReceiptUrl cannot be null"); - } this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -857,9 +758,6 @@ public ApiPaymentGetResponseDtoBuilder transactionReceiptUrl(String value) { @JsonProperty("nossoNumero") public ApiPaymentGetResponseDtoBuilder nossoNumero(String value) { - if (value == null) { - throw new IllegalStateException("nossoNumero cannot be null"); - } this.nossoNumero = JsonNullable.of(value); return this; } @@ -868,9 +766,6 @@ public ApiPaymentGetResponseDtoBuilder nossoNumero(String value) { @JsonProperty("bankSlipUrl") public ApiPaymentGetResponseDtoBuilder bankSlipUrl(String value) { - if (value == null) { - throw new IllegalStateException("bankSlipUrl cannot be null"); - } this.bankSlipUrl = JsonNullable.of(value); return this; } @@ -879,9 +774,6 @@ public ApiPaymentGetResponseDtoBuilder bankSlipUrl(String value) { @JsonProperty("discount") public ApiPaymentGetResponseDtoBuilder discount(ApiPaymentDiscountDto value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -890,9 +782,6 @@ public ApiPaymentGetResponseDtoBuilder discount(ApiPaymentDiscountDto value) { @JsonProperty("fine") public ApiPaymentGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -901,9 +790,6 @@ public ApiPaymentGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { @JsonProperty("interest") public ApiPaymentGetResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -912,9 +798,6 @@ public ApiPaymentGetResponseDtoBuilder interest(ApiPaymentInterestResponseDto va @JsonProperty("split") public ApiPaymentGetResponseDtoBuilder split(List value) { - if (value == null) { - throw new IllegalStateException("split cannot be null"); - } this.split = JsonNullable.of(value); return this; } @@ -923,9 +806,6 @@ public ApiPaymentGetResponseDtoBuilder split(List @JsonProperty("postalService") public ApiPaymentGetResponseDtoBuilder postalService(Boolean value) { - if (value == null) { - throw new IllegalStateException("postalService cannot be null"); - } this.postalService = JsonNullable.of(value); return this; } @@ -934,9 +814,6 @@ public ApiPaymentGetResponseDtoBuilder postalService(Boolean value) { @JsonProperty("daysAfterDueDateToRegistrationCancellation") public ApiPaymentGetResponseDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - if (value == null) { - throw new IllegalStateException("daysAfterDueDateToRegistrationCancellation cannot be null"); - } this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } @@ -945,9 +822,6 @@ public ApiPaymentGetResponseDtoBuilder daysAfterDueDateToRegistrationCancellatio @JsonProperty("chargeback") public ApiPaymentGetResponseDtoBuilder chargeback(ApiPaymentChargebackResponseDto value) { - if (value == null) { - throw new IllegalStateException("chargeback cannot be null"); - } this.chargeback = JsonNullable.of(value); return this; } @@ -956,9 +830,6 @@ public ApiPaymentGetResponseDtoBuilder chargeback(ApiPaymentChargebackResponseDt @JsonProperty("escrow") public ApiPaymentGetResponseDtoBuilder escrow(ApiPaymentCustodyGetResponseDto value) { - if (value == null) { - throw new IllegalStateException("escrow cannot be null"); - } this.escrow = JsonNullable.of(value); return this; } @@ -967,9 +838,6 @@ public ApiPaymentGetResponseDtoBuilder escrow(ApiPaymentCustodyGetResponseDto va @JsonProperty("refunds") public ApiPaymentGetResponseDtoBuilder refunds(List value) { - if (value == null) { - throw new IllegalStateException("refunds cannot be null"); - } this.refunds = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentIdentificationFieldResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentIdentificationFieldResponseDto.java index a66168f..d227d6c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentIdentificationFieldResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentIdentificationFieldResponseDto.java @@ -60,9 +60,6 @@ public static class ApiPaymentIdentificationFieldResponseDtoBuilder { @JsonProperty("identificationField") public ApiPaymentIdentificationFieldResponseDtoBuilder identificationField(String value) { - if (value == null) { - throw new IllegalStateException("identificationField cannot be null"); - } this.identificationField = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiPaymentIdentificationFieldResponseDtoBuilder identificationField(Strin @JsonProperty("nossoNumero") public ApiPaymentIdentificationFieldResponseDtoBuilder nossoNumero(String value) { - if (value == null) { - throw new IllegalStateException("nossoNumero cannot be null"); - } this.nossoNumero = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiPaymentIdentificationFieldResponseDtoBuilder nossoNumero(String value) @JsonProperty("barCode") public ApiPaymentIdentificationFieldResponseDtoBuilder barCode(String value) { - if (value == null) { - throw new IllegalStateException("barCode cannot be null"); - } this.barCode = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestRequestDto.java index a7019a6..f92b20c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestRequestDto.java @@ -38,9 +38,6 @@ public static class ApiPaymentInterestRequestDtoBuilder { @JsonProperty("value") public ApiPaymentInterestRequestDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestResponseDto.java index 08558b7..1c2c377 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestResponseDto.java @@ -38,9 +38,6 @@ public static class ApiPaymentInterestResponseDtoBuilder { @JsonProperty("value") public ApiPaymentInterestResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseDto.java index 3b15820..8595547 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseDto.java @@ -381,9 +381,6 @@ public static class ApiPaymentLeanGetResponseDtoBuilder { @JsonProperty("object") public ApiPaymentLeanGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -392,9 +389,6 @@ public ApiPaymentLeanGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiPaymentLeanGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -403,9 +397,6 @@ public ApiPaymentLeanGetResponseDtoBuilder id(String value) { @JsonProperty("dateCreated") public ApiPaymentLeanGetResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -414,9 +405,6 @@ public ApiPaymentLeanGetResponseDtoBuilder dateCreated(String value) { @JsonProperty("customerId") public ApiPaymentLeanGetResponseDtoBuilder customerId(String value) { - if (value == null) { - throw new IllegalStateException("customerId cannot be null"); - } this.customerId = JsonNullable.of(value); return this; } @@ -425,9 +413,6 @@ public ApiPaymentLeanGetResponseDtoBuilder customerId(String value) { @JsonProperty("subscriptionId") public ApiPaymentLeanGetResponseDtoBuilder subscriptionId(String value) { - if (value == null) { - throw new IllegalStateException("subscriptionId cannot be null"); - } this.subscriptionId = JsonNullable.of(value); return this; } @@ -436,9 +421,6 @@ public ApiPaymentLeanGetResponseDtoBuilder subscriptionId(String value) { @JsonProperty("installmentId") public ApiPaymentLeanGetResponseDtoBuilder installmentId(String value) { - if (value == null) { - throw new IllegalStateException("installmentId cannot be null"); - } this.installmentId = JsonNullable.of(value); return this; } @@ -447,9 +429,6 @@ public ApiPaymentLeanGetResponseDtoBuilder installmentId(String value) { @JsonProperty("paymentLinkId") public ApiPaymentLeanGetResponseDtoBuilder paymentLinkId(String value) { - if (value == null) { - throw new IllegalStateException("paymentLinkId cannot be null"); - } this.paymentLinkId = JsonNullable.of(value); return this; } @@ -458,9 +437,6 @@ public ApiPaymentLeanGetResponseDtoBuilder paymentLinkId(String value) { @JsonProperty("value") public ApiPaymentLeanGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -469,9 +445,6 @@ public ApiPaymentLeanGetResponseDtoBuilder value(Double value) { @JsonProperty("netValue") public ApiPaymentLeanGetResponseDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -480,9 +453,6 @@ public ApiPaymentLeanGetResponseDtoBuilder netValue(Double value) { @JsonProperty("originalValue") public ApiPaymentLeanGetResponseDtoBuilder originalValue(Double value) { - if (value == null) { - throw new IllegalStateException("originalValue cannot be null"); - } this.originalValue = JsonNullable.of(value); return this; } @@ -491,9 +461,6 @@ public ApiPaymentLeanGetResponseDtoBuilder originalValue(Double value) { @JsonProperty("interestValue") public ApiPaymentLeanGetResponseDtoBuilder interestValue(Double value) { - if (value == null) { - throw new IllegalStateException("interestValue cannot be null"); - } this.interestValue = JsonNullable.of(value); return this; } @@ -502,9 +469,6 @@ public ApiPaymentLeanGetResponseDtoBuilder interestValue(Double value) { @JsonProperty("description") public ApiPaymentLeanGetResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -513,9 +477,6 @@ public ApiPaymentLeanGetResponseDtoBuilder description(String value) { @JsonProperty("billingType") public ApiPaymentLeanGetResponseDtoBuilder billingType(ApiPaymentLeanGetResponseBillingType value) { - if (value == null) { - throw new IllegalStateException("billingType cannot be null"); - } this.billingType = JsonNullable.of(value); return this; } @@ -524,9 +485,6 @@ public ApiPaymentLeanGetResponseDtoBuilder billingType(ApiPaymentLeanGetResponse @JsonProperty("canBePaidAfterDueDate") public ApiPaymentLeanGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBePaidAfterDueDate cannot be null"); - } this.canBePaidAfterDueDate = JsonNullable.of(value); return this; } @@ -535,9 +493,6 @@ public ApiPaymentLeanGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) @JsonProperty("confirmedDate") public ApiPaymentLeanGetResponseDtoBuilder confirmedDate(String value) { - if (value == null) { - throw new IllegalStateException("confirmedDate cannot be null"); - } this.confirmedDate = JsonNullable.of(value); return this; } @@ -546,9 +501,6 @@ public ApiPaymentLeanGetResponseDtoBuilder confirmedDate(String value) { @JsonProperty("pixTransactionId") public ApiPaymentLeanGetResponseDtoBuilder pixTransactionId(String value) { - if (value == null) { - throw new IllegalStateException("pixTransactionId cannot be null"); - } this.pixTransactionId = JsonNullable.of(value); return this; } @@ -557,9 +509,6 @@ public ApiPaymentLeanGetResponseDtoBuilder pixTransactionId(String value) { @JsonProperty("status") public ApiPaymentLeanGetResponseDtoBuilder status(ApiPaymentLeanGetResponsePaymentStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -568,9 +517,6 @@ public ApiPaymentLeanGetResponseDtoBuilder status(ApiPaymentLeanGetResponsePayme @JsonProperty("dueDate") public ApiPaymentLeanGetResponseDtoBuilder dueDate(String value) { - if (value == null) { - throw new IllegalStateException("dueDate cannot be null"); - } this.dueDate = JsonNullable.of(value); return this; } @@ -579,9 +525,6 @@ public ApiPaymentLeanGetResponseDtoBuilder dueDate(String value) { @JsonProperty("originalDueDate") public ApiPaymentLeanGetResponseDtoBuilder originalDueDate(String value) { - if (value == null) { - throw new IllegalStateException("originalDueDate cannot be null"); - } this.originalDueDate = JsonNullable.of(value); return this; } @@ -590,9 +533,6 @@ public ApiPaymentLeanGetResponseDtoBuilder originalDueDate(String value) { @JsonProperty("paymentDate") public ApiPaymentLeanGetResponseDtoBuilder paymentDate(String value) { - if (value == null) { - throw new IllegalStateException("paymentDate cannot be null"); - } this.paymentDate = JsonNullable.of(value); return this; } @@ -601,9 +541,6 @@ public ApiPaymentLeanGetResponseDtoBuilder paymentDate(String value) { @JsonProperty("customerPaymentDate") public ApiPaymentLeanGetResponseDtoBuilder customerPaymentDate(String value) { - if (value == null) { - throw new IllegalStateException("customerPaymentDate cannot be null"); - } this.customerPaymentDate = JsonNullable.of(value); return this; } @@ -612,9 +549,6 @@ public ApiPaymentLeanGetResponseDtoBuilder customerPaymentDate(String value) { @JsonProperty("installmentNumber") public ApiPaymentLeanGetResponseDtoBuilder installmentNumber(Long value) { - if (value == null) { - throw new IllegalStateException("installmentNumber cannot be null"); - } this.installmentNumber = JsonNullable.of(value); return this; } @@ -623,9 +557,6 @@ public ApiPaymentLeanGetResponseDtoBuilder installmentNumber(Long value) { @JsonProperty("externalReference") public ApiPaymentLeanGetResponseDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -634,9 +565,6 @@ public ApiPaymentLeanGetResponseDtoBuilder externalReference(String value) { @JsonProperty("deleted") public ApiPaymentLeanGetResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -645,9 +573,6 @@ public ApiPaymentLeanGetResponseDtoBuilder deleted(Boolean value) { @JsonProperty("anticipated") public ApiPaymentLeanGetResponseDtoBuilder anticipated(Boolean value) { - if (value == null) { - throw new IllegalStateException("anticipated cannot be null"); - } this.anticipated = JsonNullable.of(value); return this; } @@ -656,9 +581,6 @@ public ApiPaymentLeanGetResponseDtoBuilder anticipated(Boolean value) { @JsonProperty("anticipable") public ApiPaymentLeanGetResponseDtoBuilder anticipable(Boolean value) { - if (value == null) { - throw new IllegalStateException("anticipable cannot be null"); - } this.anticipable = JsonNullable.of(value); return this; } @@ -667,9 +589,6 @@ public ApiPaymentLeanGetResponseDtoBuilder anticipable(Boolean value) { @JsonProperty("creditDate") public ApiPaymentLeanGetResponseDtoBuilder creditDate(String value) { - if (value == null) { - throw new IllegalStateException("creditDate cannot be null"); - } this.creditDate = JsonNullable.of(value); return this; } @@ -678,9 +597,6 @@ public ApiPaymentLeanGetResponseDtoBuilder creditDate(String value) { @JsonProperty("transactionReceiptUrl") public ApiPaymentLeanGetResponseDtoBuilder transactionReceiptUrl(String value) { - if (value == null) { - throw new IllegalStateException("transactionReceiptUrl cannot be null"); - } this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -689,9 +605,6 @@ public ApiPaymentLeanGetResponseDtoBuilder transactionReceiptUrl(String value) { @JsonProperty("duplicatedPaymentId") public ApiPaymentLeanGetResponseDtoBuilder duplicatedPaymentId(String value) { - if (value == null) { - throw new IllegalStateException("duplicatedPaymentId cannot be null"); - } this.duplicatedPaymentId = JsonNullable.of(value); return this; } @@ -700,9 +613,6 @@ public ApiPaymentLeanGetResponseDtoBuilder duplicatedPaymentId(String value) { @JsonProperty("discount") public ApiPaymentLeanGetResponseDtoBuilder discount(ApiPaymentDiscountDto value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -711,9 +621,6 @@ public ApiPaymentLeanGetResponseDtoBuilder discount(ApiPaymentDiscountDto value) @JsonProperty("fine") public ApiPaymentLeanGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -722,9 +629,6 @@ public ApiPaymentLeanGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value) @JsonProperty("interest") public ApiPaymentLeanGetResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -733,9 +637,6 @@ public ApiPaymentLeanGetResponseDtoBuilder interest(ApiPaymentInterestResponseDt @JsonProperty("postalService") public ApiPaymentLeanGetResponseDtoBuilder postalService(Boolean value) { - if (value == null) { - throw new IllegalStateException("postalService cannot be null"); - } this.postalService = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanListResponseDto.java index dede6ac..dd54607 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPaymentLeanListResponseDtoBuilder { @JsonProperty("object") public ApiPaymentLeanListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPaymentLeanListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiPaymentLeanListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPaymentLeanListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiPaymentLeanListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPaymentLeanListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiPaymentLeanListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPaymentLeanListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiPaymentLeanListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiPaymentLeanListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiPaymentLeanListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseDto.java index 4b33a26..feb1209 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseDto.java @@ -389,9 +389,6 @@ public static class ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder { @JsonProperty("object") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -400,9 +397,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -411,9 +405,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder id(String value) { @JsonProperty("dateCreated") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -422,9 +413,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder dateCreated(String val @JsonProperty("customerId") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder customerId(String value) { - if (value == null) { - throw new IllegalStateException("customerId cannot be null"); - } this.customerId = JsonNullable.of(value); return this; } @@ -433,9 +421,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder customerId(String valu @JsonProperty("subscriptionId") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder subscriptionId(String value) { - if (value == null) { - throw new IllegalStateException("subscriptionId cannot be null"); - } this.subscriptionId = JsonNullable.of(value); return this; } @@ -444,9 +429,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder subscriptionId(String @JsonProperty("installmentId") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder installmentId(String value) { - if (value == null) { - throw new IllegalStateException("installmentId cannot be null"); - } this.installmentId = JsonNullable.of(value); return this; } @@ -455,9 +437,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder installmentId(String v @JsonProperty("paymentLinkId") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder paymentLinkId(String value) { - if (value == null) { - throw new IllegalStateException("paymentLinkId cannot be null"); - } this.paymentLinkId = JsonNullable.of(value); return this; } @@ -466,9 +445,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder paymentLinkId(String v @JsonProperty("value") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -477,9 +453,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder value(Double value) { @JsonProperty("netValue") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -488,9 +461,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder netValue(Double value) @JsonProperty("originalValue") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder originalValue(Double value) { - if (value == null) { - throw new IllegalStateException("originalValue cannot be null"); - } this.originalValue = JsonNullable.of(value); return this; } @@ -499,9 +469,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder originalValue(Double v @JsonProperty("interestValue") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder interestValue(Double value) { - if (value == null) { - throw new IllegalStateException("interestValue cannot be null"); - } this.interestValue = JsonNullable.of(value); return this; } @@ -510,9 +477,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder interestValue(Double v @JsonProperty("description") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -523,9 +487,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder description(String val public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder billingType( ApiPaymentLeanSaveWithCreditCardResponseBillingType value ) { - if (value == null) { - throw new IllegalStateException("billingType cannot be null"); - } this.billingType = JsonNullable.of(value); return this; } @@ -534,9 +495,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder billingType( @JsonProperty("canBePaidAfterDueDate") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBePaidAfterDueDate cannot be null"); - } this.canBePaidAfterDueDate = JsonNullable.of(value); return this; } @@ -545,9 +503,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder canBePaidAfterDueDate( @JsonProperty("confirmedDate") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder confirmedDate(String value) { - if (value == null) { - throw new IllegalStateException("confirmedDate cannot be null"); - } this.confirmedDate = JsonNullable.of(value); return this; } @@ -556,9 +511,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder confirmedDate(String v @JsonProperty("pixTransactionId") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder pixTransactionId(String value) { - if (value == null) { - throw new IllegalStateException("pixTransactionId cannot be null"); - } this.pixTransactionId = JsonNullable.of(value); return this; } @@ -569,9 +521,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder pixTransactionId(Strin public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder status( ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -580,9 +529,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder status( @JsonProperty("dueDate") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder dueDate(String value) { - if (value == null) { - throw new IllegalStateException("dueDate cannot be null"); - } this.dueDate = JsonNullable.of(value); return this; } @@ -591,9 +537,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder dueDate(String value) @JsonProperty("originalDueDate") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder originalDueDate(String value) { - if (value == null) { - throw new IllegalStateException("originalDueDate cannot be null"); - } this.originalDueDate = JsonNullable.of(value); return this; } @@ -602,9 +545,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder originalDueDate(String @JsonProperty("paymentDate") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder paymentDate(String value) { - if (value == null) { - throw new IllegalStateException("paymentDate cannot be null"); - } this.paymentDate = JsonNullable.of(value); return this; } @@ -613,9 +553,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder paymentDate(String val @JsonProperty("customerPaymentDate") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder customerPaymentDate(String value) { - if (value == null) { - throw new IllegalStateException("customerPaymentDate cannot be null"); - } this.customerPaymentDate = JsonNullable.of(value); return this; } @@ -624,9 +561,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder customerPaymentDate(St @JsonProperty("installmentNumber") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder installmentNumber(Long value) { - if (value == null) { - throw new IllegalStateException("installmentNumber cannot be null"); - } this.installmentNumber = JsonNullable.of(value); return this; } @@ -635,9 +569,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder installmentNumber(Long @JsonProperty("externalReference") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -646,9 +577,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder externalReference(Stri @JsonProperty("deleted") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -657,9 +585,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder deleted(Boolean value) @JsonProperty("anticipated") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder anticipated(Boolean value) { - if (value == null) { - throw new IllegalStateException("anticipated cannot be null"); - } this.anticipated = JsonNullable.of(value); return this; } @@ -668,9 +593,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder anticipated(Boolean va @JsonProperty("anticipable") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder anticipable(Boolean value) { - if (value == null) { - throw new IllegalStateException("anticipable cannot be null"); - } this.anticipable = JsonNullable.of(value); return this; } @@ -679,9 +601,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder anticipable(Boolean va @JsonProperty("creditDate") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder creditDate(String value) { - if (value == null) { - throw new IllegalStateException("creditDate cannot be null"); - } this.creditDate = JsonNullable.of(value); return this; } @@ -690,9 +609,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder creditDate(String valu @JsonProperty("transactionReceiptUrl") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder transactionReceiptUrl(String value) { - if (value == null) { - throw new IllegalStateException("transactionReceiptUrl cannot be null"); - } this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -701,9 +617,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder transactionReceiptUrl( @JsonProperty("duplicatedPaymentId") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder duplicatedPaymentId(String value) { - if (value == null) { - throw new IllegalStateException("duplicatedPaymentId cannot be null"); - } this.duplicatedPaymentId = JsonNullable.of(value); return this; } @@ -712,9 +625,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder duplicatedPaymentId(St @JsonProperty("discount") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder discount(ApiPaymentDiscountDto value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -723,9 +633,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder discount(ApiPaymentDis @JsonProperty("fine") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -734,9 +641,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder fine(ApiPaymentFineRes @JsonProperty("interest") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -745,9 +649,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder interest(ApiPaymentInt @JsonProperty("postalService") public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder postalService(Boolean value) { - if (value == null) { - throw new IllegalStateException("postalService cannot be null"); - } this.postalService = JsonNullable.of(value); return this; } @@ -758,9 +659,6 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder postalService(Boolean public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder creditCard( ApiPaymentSaveWithCreditCardCreditCardDto value ) { - if (value == null) { - throw new IllegalStateException("creditCard cannot be null"); - } this.creditCard = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDailyDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDailyDto.java index 65610ff..1904099 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDailyDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDailyDto.java @@ -60,9 +60,6 @@ public static class ApiPaymentLimitsResponseCreationDailyDtoBuilder { @JsonProperty("limit") public ApiPaymentLimitsResponseCreationDailyDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiPaymentLimitsResponseCreationDailyDtoBuilder limit(Long value) { @JsonProperty("used") public ApiPaymentLimitsResponseCreationDailyDtoBuilder used(Long value) { - if (value == null) { - throw new IllegalStateException("used cannot be null"); - } this.used = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiPaymentLimitsResponseCreationDailyDtoBuilder used(Long value) { @JsonProperty("wasReached") public ApiPaymentLimitsResponseCreationDailyDtoBuilder wasReached(Boolean value) { - if (value == null) { - throw new IllegalStateException("wasReached cannot be null"); - } this.wasReached = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDto.java index 4039ebf..8597f0a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDto.java @@ -35,9 +35,6 @@ public static class ApiPaymentLimitsResponseCreationDtoBuilder { @JsonProperty("daily") public ApiPaymentLimitsResponseCreationDtoBuilder daily(ApiPaymentLimitsResponseCreationDailyDto value) { - if (value == null) { - throw new IllegalStateException("daily cannot be null"); - } this.daily = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseDto.java index a2eb3c3..5a5a063 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseDto.java @@ -35,9 +35,6 @@ public static class ApiPaymentLimitsResponseDtoBuilder { @JsonProperty("creation") public ApiPaymentLimitsResponseDtoBuilder creation(ApiPaymentLimitsResponseCreationDto value) { - if (value == null) { - throw new IllegalStateException("creation cannot be null"); - } this.creation = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentListResponseDto.java index 1657adf..859628d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPaymentListResponseDtoBuilder { @JsonProperty("object") public ApiPaymentListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPaymentListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiPaymentListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPaymentListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiPaymentListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPaymentListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiPaymentListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPaymentListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiPaymentListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiPaymentListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiPaymentListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentPayWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentPayWithCreditCardRequestDto.java index 8f32352..e3de2cd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentPayWithCreditCardRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentPayWithCreditCardRequestDto.java @@ -3,11 +3,11 @@ package com.asaas.apisdk.models; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Builder; import lombok.Data; import lombok.EqualsAndHashCode; -import lombok.NonNull; import lombok.ToString; import lombok.With; import lombok.extern.jackson.Jacksonized; @@ -21,10 +21,10 @@ @Jacksonized public class ApiPaymentPayWithCreditCardRequestDto { - @NonNull + @JsonInclude(JsonInclude.Include.ALWAYS) private ApiCreditCardRequestDto creditCard; - @NonNull + @JsonInclude(JsonInclude.Include.ALWAYS) private ApiCreditCardHolderInfoRequestDto creditCardHolderInfo; /** @@ -41,15 +41,46 @@ public String getCreditCardToken() { // Overwrite lombok builder methods public static class ApiPaymentPayWithCreditCardRequestDtoBuilder { + /** + * Flag to track if the creditCard property has been set. + */ + private boolean creditCard$set = false; + + /** + * Flag to track if the creditCardHolderInfo property has been set. + */ + private boolean creditCardHolderInfo$set = false; + + public ApiPaymentPayWithCreditCardRequestDtoBuilder creditCard(ApiCreditCardRequestDto creditCard) { + this.creditCard$set = true; + this.creditCard = creditCard; + return this; + } + + public ApiPaymentPayWithCreditCardRequestDtoBuilder creditCardHolderInfo( + ApiCreditCardHolderInfoRequestDto creditCardHolderInfo + ) { + this.creditCardHolderInfo$set = true; + this.creditCardHolderInfo = creditCardHolderInfo; + return this; + } + private JsonNullable creditCardToken = JsonNullable.undefined(); @JsonProperty("creditCardToken") public ApiPaymentPayWithCreditCardRequestDtoBuilder creditCardToken(String value) { - if (value == null) { - throw new IllegalStateException("creditCardToken cannot be null"); - } this.creditCardToken = JsonNullable.of(value); return this; } + + public ApiPaymentPayWithCreditCardRequestDto build() { + if (!creditCard$set) { + throw new IllegalStateException("creditCard is required"); + } + if (!creditCardHolderInfo$set) { + throw new IllegalStateException("creditCardHolderInfo is required"); + } + return new ApiPaymentPayWithCreditCardRequestDto(creditCard, creditCardHolderInfo, creditCardToken); + } } } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentPixQrCodeResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentPixQrCodeResponseDto.java index e73b02d..3971fd5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentPixQrCodeResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentPixQrCodeResponseDto.java @@ -60,9 +60,6 @@ public static class ApiPaymentPixQrCodeResponseDtoBuilder { @JsonProperty("encodedImage") public ApiPaymentPixQrCodeResponseDtoBuilder encodedImage(String value) { - if (value == null) { - throw new IllegalStateException("encodedImage cannot be null"); - } this.encodedImage = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiPaymentPixQrCodeResponseDtoBuilder encodedImage(String value) { @JsonProperty("payload") public ApiPaymentPixQrCodeResponseDtoBuilder payload(String value) { - if (value == null) { - throw new IllegalStateException("payload cannot be null"); - } this.payload = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiPaymentPixQrCodeResponseDtoBuilder payload(String value) { @JsonProperty("expirationDate") public ApiPaymentPixQrCodeResponseDtoBuilder expirationDate(String value) { - if (value == null) { - throw new IllegalStateException("expirationDate cannot be null"); - } this.expirationDate = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentReceiveInCashRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentReceiveInCashRequestDto.java index c47e7a1..5db5d3b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentReceiveInCashRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentReceiveInCashRequestDto.java @@ -60,9 +60,6 @@ public static class ApiPaymentReceiveInCashRequestDtoBuilder { @JsonProperty("paymentDate") public ApiPaymentReceiveInCashRequestDtoBuilder paymentDate(String value) { - if (value == null) { - throw new IllegalStateException("paymentDate cannot be null"); - } this.paymentDate = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiPaymentReceiveInCashRequestDtoBuilder paymentDate(String value) { @JsonProperty("value") public ApiPaymentReceiveInCashRequestDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiPaymentReceiveInCashRequestDtoBuilder value(Double value) { @JsonProperty("notifyCustomer") public ApiPaymentReceiveInCashRequestDtoBuilder notifyCustomer(Boolean value) { - if (value == null) { - throw new IllegalStateException("notifyCustomer cannot be null"); - } this.notifyCustomer = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponseDto.java index 951e106..532e9f2 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponseDto.java @@ -116,9 +116,6 @@ public static class ApiPaymentRefundGetResponseDtoBuilder { @JsonProperty("dateCreated") public ApiPaymentRefundGetResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -127,9 +124,6 @@ public ApiPaymentRefundGetResponseDtoBuilder dateCreated(String value) { @JsonProperty("status") public ApiPaymentRefundGetResponseDtoBuilder status(ApiPaymentRefundGetResponsePaymentRefundStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -138,9 +132,6 @@ public ApiPaymentRefundGetResponseDtoBuilder status(ApiPaymentRefundGetResponseP @JsonProperty("value") public ApiPaymentRefundGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -149,9 +140,6 @@ public ApiPaymentRefundGetResponseDtoBuilder value(Double value) { @JsonProperty("endToEndIdentifier") public ApiPaymentRefundGetResponseDtoBuilder endToEndIdentifier(String value) { - if (value == null) { - throw new IllegalStateException("endToEndIdentifier cannot be null"); - } this.endToEndIdentifier = JsonNullable.of(value); return this; } @@ -160,9 +148,6 @@ public ApiPaymentRefundGetResponseDtoBuilder endToEndIdentifier(String value) { @JsonProperty("description") public ApiPaymentRefundGetResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -171,9 +156,6 @@ public ApiPaymentRefundGetResponseDtoBuilder description(String value) { @JsonProperty("effectiveDate") public ApiPaymentRefundGetResponseDtoBuilder effectiveDate(String value) { - if (value == null) { - throw new IllegalStateException("effectiveDate cannot be null"); - } this.effectiveDate = JsonNullable.of(value); return this; } @@ -182,9 +164,6 @@ public ApiPaymentRefundGetResponseDtoBuilder effectiveDate(String value) { @JsonProperty("transactionReceiptUrl") public ApiPaymentRefundGetResponseDtoBuilder transactionReceiptUrl(String value) { - if (value == null) { - throw new IllegalStateException("transactionReceiptUrl cannot be null"); - } this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -193,9 +172,6 @@ public ApiPaymentRefundGetResponseDtoBuilder transactionReceiptUrl(String value) @JsonProperty("refundedSplits") public ApiPaymentRefundGetResponseDtoBuilder refundedSplits(List value) { - if (value == null) { - throw new IllegalStateException("refundedSplits cannot be null"); - } this.refundedSplits = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundListResponseDto.java index d74754d..3bd52bc 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPaymentRefundListResponseDtoBuilder { @JsonProperty("object") public ApiPaymentRefundListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPaymentRefundListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiPaymentRefundListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPaymentRefundListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiPaymentRefundListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPaymentRefundListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiPaymentRefundListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPaymentRefundListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiPaymentRefundListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiPaymentRefundListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiPaymentRefundListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundRequestDto.java index c763a3f..41fe09f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundRequestDto.java @@ -49,9 +49,6 @@ public static class ApiPaymentRefundRequestDtoBuilder { @JsonProperty("value") public ApiPaymentRefundRequestDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPaymentRefundRequestDtoBuilder value(Double value) { @JsonProperty("description") public ApiPaymentRefundRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundedSplitResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundedSplitResponseDto.java index f8a1cf7..dc9523e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundedSplitResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundedSplitResponseDto.java @@ -60,9 +60,6 @@ public static class ApiPaymentRefundedSplitResponseDtoBuilder { @JsonProperty("id") public ApiPaymentRefundedSplitResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiPaymentRefundedSplitResponseDtoBuilder id(String value) { @JsonProperty("value") public ApiPaymentRefundedSplitResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -82,9 +76,6 @@ public ApiPaymentRefundedSplitResponseDtoBuilder value(Double value) { @JsonProperty("done") public ApiPaymentRefundedSplitResponseDtoBuilder done(Boolean value) { - if (value == null) { - throw new IllegalStateException("done cannot be null"); - } this.done = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestDto.java index 979a72b..3cde201 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestDto.java @@ -173,9 +173,6 @@ public static class ApiPaymentSaveRequestDtoBuilder { @JsonProperty("description") public ApiPaymentSaveRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -184,9 +181,6 @@ public ApiPaymentSaveRequestDtoBuilder description(String value) { @JsonProperty("daysAfterDueDateToRegistrationCancellation") public ApiPaymentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - if (value == null) { - throw new IllegalStateException("daysAfterDueDateToRegistrationCancellation cannot be null"); - } this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } @@ -195,9 +189,6 @@ public ApiPaymentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancellatio @JsonProperty("externalReference") public ApiPaymentSaveRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -206,9 +197,6 @@ public ApiPaymentSaveRequestDtoBuilder externalReference(String value) { @JsonProperty("installmentCount") public ApiPaymentSaveRequestDtoBuilder installmentCount(Long value) { - if (value == null) { - throw new IllegalStateException("installmentCount cannot be null"); - } this.installmentCount = JsonNullable.of(value); return this; } @@ -217,9 +205,6 @@ public ApiPaymentSaveRequestDtoBuilder installmentCount(Long value) { @JsonProperty("totalValue") public ApiPaymentSaveRequestDtoBuilder totalValue(Double value) { - if (value == null) { - throw new IllegalStateException("totalValue cannot be null"); - } this.totalValue = JsonNullable.of(value); return this; } @@ -228,9 +213,6 @@ public ApiPaymentSaveRequestDtoBuilder totalValue(Double value) { @JsonProperty("installmentValue") public ApiPaymentSaveRequestDtoBuilder installmentValue(Double value) { - if (value == null) { - throw new IllegalStateException("installmentValue cannot be null"); - } this.installmentValue = JsonNullable.of(value); return this; } @@ -239,9 +221,6 @@ public ApiPaymentSaveRequestDtoBuilder installmentValue(Double value) { @JsonProperty("discount") public ApiPaymentSaveRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -250,9 +229,6 @@ public ApiPaymentSaveRequestDtoBuilder discount(ApiPaymentDiscountDto value) { @JsonProperty("interest") public ApiPaymentSaveRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -261,9 +237,6 @@ public ApiPaymentSaveRequestDtoBuilder interest(ApiPaymentInterestRequestDto val @JsonProperty("fine") public ApiPaymentSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -272,9 +245,6 @@ public ApiPaymentSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { @JsonProperty("postalService") public ApiPaymentSaveRequestDtoBuilder postalService(Boolean value) { - if (value == null) { - throw new IllegalStateException("postalService cannot be null"); - } this.postalService = JsonNullable.of(value); return this; } @@ -283,9 +253,6 @@ public ApiPaymentSaveRequestDtoBuilder postalService(Boolean value) { @JsonProperty("split") public ApiPaymentSaveRequestDtoBuilder split(List value) { - if (value == null) { - throw new IllegalStateException("split cannot be null"); - } this.split = JsonNullable.of(value); return this; } @@ -294,9 +261,6 @@ public ApiPaymentSaveRequestDtoBuilder split(List val @JsonProperty("callback") public ApiPaymentSaveRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - if (value == null) { - throw new IllegalStateException("callback cannot be null"); - } this.callback = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardDto.java index c6e297f..33a535a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardDto.java @@ -60,9 +60,6 @@ public static class ApiPaymentSaveWithCreditCardCreditCardDtoBuilder { @JsonProperty("creditCardNumber") public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardNumber(String value) { - if (value == null) { - throw new IllegalStateException("creditCardNumber cannot be null"); - } this.creditCardNumber = JsonNullable.of(value); return this; } @@ -74,9 +71,6 @@ public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardNumber(String public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardBrand( ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand value ) { - if (value == null) { - throw new IllegalStateException("creditCardBrand cannot be null"); - } this.creditCardBrand = JsonNullable.of(value); return this; } @@ -85,9 +79,6 @@ public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardBrand( @JsonProperty("creditCardToken") public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardToken(String value) { - if (value == null) { - throw new IllegalStateException("creditCardToken cannot be null"); - } this.creditCardToken = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestDto.java index 9904861..6813e8c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestDto.java @@ -217,9 +217,6 @@ public static class ApiPaymentSaveWithCreditCardRequestDtoBuilder { @JsonProperty("description") public ApiPaymentSaveWithCreditCardRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -228,9 +225,6 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder description(String value) { @JsonProperty("daysAfterDueDateToRegistrationCancellation") public ApiPaymentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - if (value == null) { - throw new IllegalStateException("daysAfterDueDateToRegistrationCancellation cannot be null"); - } this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } @@ -239,9 +233,6 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrat @JsonProperty("externalReference") public ApiPaymentSaveWithCreditCardRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -250,9 +241,6 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder externalReference(String va @JsonProperty("installmentCount") public ApiPaymentSaveWithCreditCardRequestDtoBuilder installmentCount(Long value) { - if (value == null) { - throw new IllegalStateException("installmentCount cannot be null"); - } this.installmentCount = JsonNullable.of(value); return this; } @@ -261,9 +249,6 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder installmentCount(Long value @JsonProperty("totalValue") public ApiPaymentSaveWithCreditCardRequestDtoBuilder totalValue(Double value) { - if (value == null) { - throw new IllegalStateException("totalValue cannot be null"); - } this.totalValue = JsonNullable.of(value); return this; } @@ -272,9 +257,6 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder totalValue(Double value) { @JsonProperty("installmentValue") public ApiPaymentSaveWithCreditCardRequestDtoBuilder installmentValue(Double value) { - if (value == null) { - throw new IllegalStateException("installmentValue cannot be null"); - } this.installmentValue = JsonNullable.of(value); return this; } @@ -283,9 +265,6 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder installmentValue(Double val @JsonProperty("discount") public ApiPaymentSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -294,9 +273,6 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDiscount @JsonProperty("interest") public ApiPaymentSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -305,9 +281,6 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInterest @JsonProperty("fine") public ApiPaymentSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -316,9 +289,6 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequestD @JsonProperty("postalService") public ApiPaymentSaveWithCreditCardRequestDtoBuilder postalService(Boolean value) { - if (value == null) { - throw new IllegalStateException("postalService cannot be null"); - } this.postalService = JsonNullable.of(value); return this; } @@ -327,9 +297,6 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder postalService(Boolean value @JsonProperty("split") public ApiPaymentSaveWithCreditCardRequestDtoBuilder split(List value) { - if (value == null) { - throw new IllegalStateException("split cannot be null"); - } this.split = JsonNullable.of(value); return this; } @@ -338,9 +305,6 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder split(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitRequestDto.java index d447e48..4fb3c70 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitRequestDto.java @@ -89,9 +89,6 @@ public static class ApiPaymentSplitRequestDtoBuilder { @JsonProperty("fixedValue") public ApiPaymentSplitRequestDtoBuilder fixedValue(Double value) { - if (value == null) { - throw new IllegalStateException("fixedValue cannot be null"); - } this.fixedValue = JsonNullable.of(value); return this; } @@ -100,9 +97,6 @@ public ApiPaymentSplitRequestDtoBuilder fixedValue(Double value) { @JsonProperty("percentualValue") public ApiPaymentSplitRequestDtoBuilder percentualValue(Double value) { - if (value == null) { - throw new IllegalStateException("percentualValue cannot be null"); - } this.percentualValue = JsonNullable.of(value); return this; } @@ -111,9 +105,6 @@ public ApiPaymentSplitRequestDtoBuilder percentualValue(Double value) { @JsonProperty("totalFixedValue") public ApiPaymentSplitRequestDtoBuilder totalFixedValue(Double value) { - if (value == null) { - throw new IllegalStateException("totalFixedValue cannot be null"); - } this.totalFixedValue = JsonNullable.of(value); return this; } @@ -122,9 +113,6 @@ public ApiPaymentSplitRequestDtoBuilder totalFixedValue(Double value) { @JsonProperty("externalReference") public ApiPaymentSplitRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -133,9 +121,6 @@ public ApiPaymentSplitRequestDtoBuilder externalReference(String value) { @JsonProperty("description") public ApiPaymentSplitRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponseDto.java index 95a1279..9e21e8e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponseDto.java @@ -38,9 +38,6 @@ public static class ApiPaymentStatusResponseDtoBuilder { @JsonProperty("status") public ApiPaymentStatusResponseDtoBuilder status(ApiPaymentStatusResponsePaymentStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestDto.java index c974825..ac7e69a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestDto.java @@ -134,9 +134,6 @@ public static class ApiPaymentUpdateRequestDtoBuilder { @JsonProperty("description") public ApiPaymentUpdateRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -145,9 +142,6 @@ public ApiPaymentUpdateRequestDtoBuilder description(String value) { @JsonProperty("daysAfterDueDateToRegistrationCancellation") public ApiPaymentUpdateRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - if (value == null) { - throw new IllegalStateException("daysAfterDueDateToRegistrationCancellation cannot be null"); - } this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } @@ -156,9 +150,6 @@ public ApiPaymentUpdateRequestDtoBuilder daysAfterDueDateToRegistrationCancellat @JsonProperty("externalReference") public ApiPaymentUpdateRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -167,9 +158,6 @@ public ApiPaymentUpdateRequestDtoBuilder externalReference(String value) { @JsonProperty("discount") public ApiPaymentUpdateRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -178,9 +166,6 @@ public ApiPaymentUpdateRequestDtoBuilder discount(ApiPaymentDiscountDto value) { @JsonProperty("interest") public ApiPaymentUpdateRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -189,9 +174,6 @@ public ApiPaymentUpdateRequestDtoBuilder interest(ApiPaymentInterestRequestDto v @JsonProperty("fine") public ApiPaymentUpdateRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -200,9 +182,6 @@ public ApiPaymentUpdateRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { @JsonProperty("postalService") public ApiPaymentUpdateRequestDtoBuilder postalService(Boolean value) { - if (value == null) { - throw new IllegalStateException("postalService cannot be null"); - } this.postalService = JsonNullable.of(value); return this; } @@ -211,9 +190,6 @@ public ApiPaymentUpdateRequestDtoBuilder postalService(Boolean value) { @JsonProperty("split") public ApiPaymentUpdateRequestDtoBuilder split(List value) { - if (value == null) { - throw new IllegalStateException("split cannot be null"); - } this.split = JsonNullable.of(value); return this; } @@ -222,9 +198,6 @@ public ApiPaymentUpdateRequestDtoBuilder split(List v @JsonProperty("callback") public ApiPaymentUpdateRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - if (value == null) { - throw new IllegalStateException("callback cannot be null"); - } this.callback = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentViewingInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentViewingInfoResponseDto.java index f456f7e..218ffec 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentViewingInfoResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPaymentViewingInfoResponseDto.java @@ -49,9 +49,6 @@ public static class ApiPaymentViewingInfoResponseDtoBuilder { @JsonProperty("invoiceViewedDate") public ApiPaymentViewingInfoResponseDtoBuilder invoiceViewedDate(String value) { - if (value == null) { - throw new IllegalStateException("invoiceViewedDate cannot be null"); - } this.invoiceViewedDate = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPaymentViewingInfoResponseDtoBuilder invoiceViewedDate(String value) { @JsonProperty("boletoViewedDate") public ApiPaymentViewingInfoResponseDtoBuilder boletoViewedDate(String value) { - if (value == null) { - throw new IllegalStateException("boletoViewedDate cannot be null"); - } this.boletoViewedDate = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponseDto.java index 0097a7d..d99d504 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponseDto.java @@ -112,9 +112,6 @@ public static class ApiPixAddressKeyGetResponseDtoBuilder { @JsonProperty("id") public ApiPixAddressKeyGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -123,9 +120,6 @@ public ApiPixAddressKeyGetResponseDtoBuilder id(String value) { @JsonProperty("key") public ApiPixAddressKeyGetResponseDtoBuilder key(String value) { - if (value == null) { - throw new IllegalStateException("key cannot be null"); - } this.key = JsonNullable.of(value); return this; } @@ -134,9 +128,6 @@ public ApiPixAddressKeyGetResponseDtoBuilder key(String value) { @JsonProperty("type") public ApiPixAddressKeyGetResponseDtoBuilder type(ApiPixAddressKeyGetResponsePixAddressKeyType value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -145,9 +136,6 @@ public ApiPixAddressKeyGetResponseDtoBuilder type(ApiPixAddressKeyGetResponsePix @JsonProperty("status") public ApiPixAddressKeyGetResponseDtoBuilder status(ApiPixAddressKeyGetResponsePixAddressKeyStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -156,9 +144,6 @@ public ApiPixAddressKeyGetResponseDtoBuilder status(ApiPixAddressKeyGetResponseP @JsonProperty("dateCreated") public ApiPixAddressKeyGetResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -167,9 +152,6 @@ public ApiPixAddressKeyGetResponseDtoBuilder dateCreated(String value) { @JsonProperty("canBeDeleted") public ApiPixAddressKeyGetResponseDtoBuilder canBeDeleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBeDeleted cannot be null"); - } this.canBeDeleted = JsonNullable.of(value); return this; } @@ -178,9 +160,6 @@ public ApiPixAddressKeyGetResponseDtoBuilder canBeDeleted(Boolean value) { @JsonProperty("cannotBeDeletedReason") public ApiPixAddressKeyGetResponseDtoBuilder cannotBeDeletedReason(String value) { - if (value == null) { - throw new IllegalStateException("cannotBeDeletedReason cannot be null"); - } this.cannotBeDeletedReason = JsonNullable.of(value); return this; } @@ -189,9 +168,6 @@ public ApiPixAddressKeyGetResponseDtoBuilder cannotBeDeletedReason(String value) @JsonProperty("qrCode") public ApiPixAddressKeyGetResponseDtoBuilder qrCode(ApiPixAddressKeyQrCodeGetResponseDto value) { - if (value == null) { - throw new IllegalStateException("qrCode cannot be null"); - } this.qrCode = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListResponseDto.java index ffe18e6..f6483fb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListResponseDto.java @@ -39,9 +39,6 @@ public static class ApiPixAddressKeyListResponseDtoBuilder { @JsonProperty("data") public ApiPixAddressKeyListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyQrCodeGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyQrCodeGetResponseDto.java index 9aa355c..ee9e5fc 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyQrCodeGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyQrCodeGetResponseDto.java @@ -49,9 +49,6 @@ public static class ApiPixAddressKeyQrCodeGetResponseDtoBuilder { @JsonProperty("encodedImage") public ApiPixAddressKeyQrCodeGetResponseDtoBuilder encodedImage(String value) { - if (value == null) { - throw new IllegalStateException("encodedImage cannot be null"); - } this.encodedImage = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPixAddressKeyQrCodeGetResponseDtoBuilder encodedImage(String value) { @JsonProperty("payload") public ApiPixAddressKeyQrCodeGetResponseDtoBuilder payload(String value) { - if (value == null) { - throw new IllegalStateException("payload cannot be null"); - } this.payload = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixOriginalTransactionResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixOriginalTransactionResponseDto.java index 5a8a91f..333624e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixOriginalTransactionResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixOriginalTransactionResponseDto.java @@ -71,9 +71,6 @@ public static class ApiPixOriginalTransactionResponseDtoBuilder { @JsonProperty("id") public ApiPixOriginalTransactionResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -82,9 +79,6 @@ public ApiPixOriginalTransactionResponseDtoBuilder id(String value) { @JsonProperty("endToEndIdentifier") public ApiPixOriginalTransactionResponseDtoBuilder endToEndIdentifier(String value) { - if (value == null) { - throw new IllegalStateException("endToEndIdentifier cannot be null"); - } this.endToEndIdentifier = JsonNullable.of(value); return this; } @@ -93,9 +87,6 @@ public ApiPixOriginalTransactionResponseDtoBuilder endToEndIdentifier(String val @JsonProperty("value") public ApiPixOriginalTransactionResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -104,9 +95,6 @@ public ApiPixOriginalTransactionResponseDtoBuilder value(Double value) { @JsonProperty("effectiveDate") public ApiPixOriginalTransactionResponseDtoBuilder effectiveDate(String value) { - if (value == null) { - throw new IllegalStateException("effectiveDate cannot be null"); - } this.effectiveDate = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverDto.java index c14ad94..9592682 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverDto.java @@ -104,9 +104,6 @@ public static class ApiPixQrCodeDecodeReceiverDtoBuilder { @JsonProperty("ispb") public ApiPixQrCodeDecodeReceiverDtoBuilder ispb(String value) { - if (value == null) { - throw new IllegalStateException("ispb cannot be null"); - } this.ispb = JsonNullable.of(value); return this; } @@ -115,9 +112,6 @@ public ApiPixQrCodeDecodeReceiverDtoBuilder ispb(String value) { @JsonProperty("ispbName") public ApiPixQrCodeDecodeReceiverDtoBuilder ispbName(String value) { - if (value == null) { - throw new IllegalStateException("ispbName cannot be null"); - } this.ispbName = JsonNullable.of(value); return this; } @@ -126,9 +120,6 @@ public ApiPixQrCodeDecodeReceiverDtoBuilder ispbName(String value) { @JsonProperty("name") public ApiPixQrCodeDecodeReceiverDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -137,9 +128,6 @@ public ApiPixQrCodeDecodeReceiverDtoBuilder name(String value) { @JsonProperty("tradingName") public ApiPixQrCodeDecodeReceiverDtoBuilder tradingName(String value) { - if (value == null) { - throw new IllegalStateException("tradingName cannot be null"); - } this.tradingName = JsonNullable.of(value); return this; } @@ -148,9 +136,6 @@ public ApiPixQrCodeDecodeReceiverDtoBuilder tradingName(String value) { @JsonProperty("cpfCnpj") public ApiPixQrCodeDecodeReceiverDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -159,9 +144,6 @@ public ApiPixQrCodeDecodeReceiverDtoBuilder cpfCnpj(String value) { @JsonProperty("personType") public ApiPixQrCodeDecodeReceiverDtoBuilder personType(ApiPixQrCodeDecodeReceiverPersonType value) { - if (value == null) { - throw new IllegalStateException("personType cannot be null"); - } this.personType = JsonNullable.of(value); return this; } @@ -170,9 +152,6 @@ public ApiPixQrCodeDecodeReceiverDtoBuilder personType(ApiPixQrCodeDecodeReceive @JsonProperty("accountType") public ApiPixQrCodeDecodeReceiverDtoBuilder accountType(ApiPixQrCodeDecodeReceiverPixAccountType value) { - if (value == null) { - throw new IllegalStateException("accountType cannot be null"); - } this.accountType = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeRequestDto.java index 7141927..bc2a4c6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeRequestDto.java @@ -45,9 +45,6 @@ public static class ApiPixQrCodeDecodeRequestDtoBuilder { @JsonProperty("changeValue") public ApiPixQrCodeDecodeRequestDtoBuilder changeValue(Double value) { - if (value == null) { - throw new IllegalStateException("changeValue cannot be null"); - } this.changeValue = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponseDto.java index 6c17103..ce2def6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponseDto.java @@ -252,9 +252,6 @@ public static class ApiPixQrCodeDecodeResponseDtoBuilder { @JsonProperty("payload") public ApiPixQrCodeDecodeResponseDtoBuilder payload(String value) { - if (value == null) { - throw new IllegalStateException("payload cannot be null"); - } this.payload = JsonNullable.of(value); return this; } @@ -263,9 +260,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder payload(String value) { @JsonProperty("type") public ApiPixQrCodeDecodeResponseDtoBuilder type(ApiPixQrCodeDecodeResponsePixQrCodeType value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -277,9 +271,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder type(ApiPixQrCodeDecodeResponsePixQr public ApiPixQrCodeDecodeResponseDtoBuilder transactionOriginType( ApiPixQrCodeDecodeResponsePixTransactionOriginType value ) { - if (value == null) { - throw new IllegalStateException("transactionOriginType cannot be null"); - } this.transactionOriginType = JsonNullable.of(value); return this; } @@ -288,9 +279,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder transactionOriginType( @JsonProperty("pixKey") public ApiPixQrCodeDecodeResponseDtoBuilder pixKey(String value) { - if (value == null) { - throw new IllegalStateException("pixKey cannot be null"); - } this.pixKey = JsonNullable.of(value); return this; } @@ -299,9 +287,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder pixKey(String value) { @JsonProperty("conciliationIdentifier") public ApiPixQrCodeDecodeResponseDtoBuilder conciliationIdentifier(String value) { - if (value == null) { - throw new IllegalStateException("conciliationIdentifier cannot be null"); - } this.conciliationIdentifier = JsonNullable.of(value); return this; } @@ -310,9 +295,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder conciliationIdentifier(String value) @JsonProperty("dueDate") public ApiPixQrCodeDecodeResponseDtoBuilder dueDate(String value) { - if (value == null) { - throw new IllegalStateException("dueDate cannot be null"); - } this.dueDate = JsonNullable.of(value); return this; } @@ -321,9 +303,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder dueDate(String value) { @JsonProperty("expirationDate") public ApiPixQrCodeDecodeResponseDtoBuilder expirationDate(String value) { - if (value == null) { - throw new IllegalStateException("expirationDate cannot be null"); - } this.expirationDate = JsonNullable.of(value); return this; } @@ -334,9 +313,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder expirationDate(String value) { public ApiPixQrCodeDecodeResponseDtoBuilder finality( ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality value ) { - if (value == null) { - throw new IllegalStateException("finality cannot be null"); - } this.finality = JsonNullable.of(value); return this; } @@ -345,9 +321,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder finality( @JsonProperty("value") public ApiPixQrCodeDecodeResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -356,9 +329,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder value(Double value) { @JsonProperty("changeValue") public ApiPixQrCodeDecodeResponseDtoBuilder changeValue(Double value) { - if (value == null) { - throw new IllegalStateException("changeValue cannot be null"); - } this.changeValue = JsonNullable.of(value); return this; } @@ -367,9 +337,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder changeValue(Double value) { @JsonProperty("interest") public ApiPixQrCodeDecodeResponseDtoBuilder interest(Double value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -378,9 +345,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder interest(Double value) { @JsonProperty("fine") public ApiPixQrCodeDecodeResponseDtoBuilder fine(Double value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -389,9 +353,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder fine(Double value) { @JsonProperty("discount") public ApiPixQrCodeDecodeResponseDtoBuilder discount(Double value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -400,9 +361,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder discount(Double value) { @JsonProperty("totalValue") public ApiPixQrCodeDecodeResponseDtoBuilder totalValue(Double value) { - if (value == null) { - throw new IllegalStateException("totalValue cannot be null"); - } this.totalValue = JsonNullable.of(value); return this; } @@ -411,9 +369,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder totalValue(Double value) { @JsonProperty("canBePaidWithDifferentValue") public ApiPixQrCodeDecodeResponseDtoBuilder canBePaidWithDifferentValue(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBePaidWithDifferentValue cannot be null"); - } this.canBePaidWithDifferentValue = JsonNullable.of(value); return this; } @@ -422,9 +377,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder canBePaidWithDifferentValue(Boolean @JsonProperty("canBeModifyChangeValue") public ApiPixQrCodeDecodeResponseDtoBuilder canBeModifyChangeValue(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBeModifyChangeValue cannot be null"); - } this.canBeModifyChangeValue = JsonNullable.of(value); return this; } @@ -433,9 +385,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder canBeModifyChangeValue(Boolean value @JsonProperty("receiver") public ApiPixQrCodeDecodeResponseDtoBuilder receiver(ApiPixQrCodeDecodeReceiverDto value) { - if (value == null) { - throw new IllegalStateException("receiver cannot be null"); - } this.receiver = JsonNullable.of(value); return this; } @@ -444,9 +393,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder receiver(ApiPixQrCodeDecodeReceiverD @JsonProperty("payer") public ApiPixQrCodeDecodeResponseDtoBuilder payer(ApiPixTransactionQrCodePayerResponseDto value) { - if (value == null) { - throw new IllegalStateException("payer cannot be null"); - } this.payer = JsonNullable.of(value); return this; } @@ -455,9 +401,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder payer(ApiPixTransactionQrCodePayerRe @JsonProperty("description") public ApiPixQrCodeDecodeResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -466,9 +409,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder description(String value) { @JsonProperty("canBePaid") public ApiPixQrCodeDecodeResponseDtoBuilder canBePaid(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBePaid cannot be null"); - } this.canBePaid = JsonNullable.of(value); return this; } @@ -477,9 +417,6 @@ public ApiPixQrCodeDecodeResponseDtoBuilder canBePaid(Boolean value) { @JsonProperty("cannotBePaidReason") public ApiPixQrCodeDecodeResponseDtoBuilder cannotBePaidReason(String value) { - if (value == null) { - throw new IllegalStateException("cannotBePaidReason cannot be null"); - } this.cannotBePaidReason = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDeleteResponseDto.java index 16fc638..67d9b13 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDeleteResponseDto.java @@ -49,9 +49,6 @@ public static class ApiPixQrCodeDeleteResponseDtoBuilder { @JsonProperty("id") public ApiPixQrCodeDeleteResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPixQrCodeDeleteResponseDtoBuilder id(String value) { @JsonProperty("deleted") public ApiPixQrCodeDeleteResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveRequestDto.java index 8a7905d..deec28a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveRequestDto.java @@ -115,9 +115,6 @@ public static class ApiPixQrCodeSaveRequestDtoBuilder { @JsonProperty("addressKey") public ApiPixQrCodeSaveRequestDtoBuilder addressKey(String value) { - if (value == null) { - throw new IllegalStateException("addressKey cannot be null"); - } this.addressKey = JsonNullable.of(value); return this; } @@ -126,9 +123,6 @@ public ApiPixQrCodeSaveRequestDtoBuilder addressKey(String value) { @JsonProperty("description") public ApiPixQrCodeSaveRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -137,9 +131,6 @@ public ApiPixQrCodeSaveRequestDtoBuilder description(String value) { @JsonProperty("value") public ApiPixQrCodeSaveRequestDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -148,9 +139,6 @@ public ApiPixQrCodeSaveRequestDtoBuilder value(Double value) { @JsonProperty("format") public ApiPixQrCodeSaveRequestDtoBuilder format(Format value) { - if (value == null) { - throw new IllegalStateException("format cannot be null"); - } this.format = JsonNullable.of(value); return this; } @@ -159,9 +147,6 @@ public ApiPixQrCodeSaveRequestDtoBuilder format(Format value) { @JsonProperty("expirationDate") public ApiPixQrCodeSaveRequestDtoBuilder expirationDate(String value) { - if (value == null) { - throw new IllegalStateException("expirationDate cannot be null"); - } this.expirationDate = JsonNullable.of(value); return this; } @@ -170,9 +155,6 @@ public ApiPixQrCodeSaveRequestDtoBuilder expirationDate(String value) { @JsonProperty("expirationSeconds") public ApiPixQrCodeSaveRequestDtoBuilder expirationSeconds(Long value) { - if (value == null) { - throw new IllegalStateException("expirationSeconds cannot be null"); - } this.expirationSeconds = JsonNullable.of(value); return this; } @@ -181,9 +163,6 @@ public ApiPixQrCodeSaveRequestDtoBuilder expirationSeconds(Long value) { @JsonProperty("allowsMultiplePayments") public ApiPixQrCodeSaveRequestDtoBuilder allowsMultiplePayments(Boolean value) { - if (value == null) { - throw new IllegalStateException("allowsMultiplePayments cannot be null"); - } this.allowsMultiplePayments = JsonNullable.of(value); return this; } @@ -192,9 +171,6 @@ public ApiPixQrCodeSaveRequestDtoBuilder allowsMultiplePayments(Boolean value) { @JsonProperty("externalReference") public ApiPixQrCodeSaveRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveResponseDto.java index 4b523df..8859f38 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveResponseDto.java @@ -93,9 +93,6 @@ public static class ApiPixQrCodeSaveResponseDtoBuilder { @JsonProperty("id") public ApiPixQrCodeSaveResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -104,9 +101,6 @@ public ApiPixQrCodeSaveResponseDtoBuilder id(String value) { @JsonProperty("encodedImage") public ApiPixQrCodeSaveResponseDtoBuilder encodedImage(String value) { - if (value == null) { - throw new IllegalStateException("encodedImage cannot be null"); - } this.encodedImage = JsonNullable.of(value); return this; } @@ -115,9 +109,6 @@ public ApiPixQrCodeSaveResponseDtoBuilder encodedImage(String value) { @JsonProperty("payload") public ApiPixQrCodeSaveResponseDtoBuilder payload(String value) { - if (value == null) { - throw new IllegalStateException("payload cannot be null"); - } this.payload = JsonNullable.of(value); return this; } @@ -126,9 +117,6 @@ public ApiPixQrCodeSaveResponseDtoBuilder payload(String value) { @JsonProperty("allowsMultiplePayments") public ApiPixQrCodeSaveResponseDtoBuilder allowsMultiplePayments(Boolean value) { - if (value == null) { - throw new IllegalStateException("allowsMultiplePayments cannot be null"); - } this.allowsMultiplePayments = JsonNullable.of(value); return this; } @@ -137,9 +125,6 @@ public ApiPixQrCodeSaveResponseDtoBuilder allowsMultiplePayments(Boolean value) @JsonProperty("expirationDate") public ApiPixQrCodeSaveResponseDtoBuilder expirationDate(String value) { - if (value == null) { - throw new IllegalStateException("expirationDate cannot be null"); - } this.expirationDate = JsonNullable.of(value); return this; } @@ -148,9 +133,6 @@ public ApiPixQrCodeSaveResponseDtoBuilder expirationDate(String value) { @JsonProperty("externalReference") public ApiPixQrCodeSaveResponseDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTokenBucketGetAddressKeyResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTokenBucketGetAddressKeyResponseDto.java index 7ae1ecf..3390e85 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTokenBucketGetAddressKeyResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTokenBucketGetAddressKeyResponseDto.java @@ -49,9 +49,6 @@ public static class ApiPixTokenBucketGetAddressKeyResponseDtoBuilder { @JsonProperty("capacity") public ApiPixTokenBucketGetAddressKeyResponseDtoBuilder capacity(Long value) { - if (value == null) { - throw new IllegalStateException("capacity cannot be null"); - } this.capacity = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPixTokenBucketGetAddressKeyResponseDtoBuilder capacity(Long value) { @JsonProperty("remaining") public ApiPixTokenBucketGetAddressKeyResponseDtoBuilder remaining(Long value) { - if (value == null) { - throw new IllegalStateException("remaining cannot be null"); - } this.remaining = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponseDto.java index 62b0260..cbc245d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponseDto.java @@ -93,9 +93,6 @@ public static class ApiPixTransactionExternalAccountResponseDtoBuilder { @JsonProperty("ispb") public ApiPixTransactionExternalAccountResponseDtoBuilder ispb(String value) { - if (value == null) { - throw new IllegalStateException("ispb cannot be null"); - } this.ispb = JsonNullable.of(value); return this; } @@ -104,9 +101,6 @@ public ApiPixTransactionExternalAccountResponseDtoBuilder ispb(String value) { @JsonProperty("ispbName") public ApiPixTransactionExternalAccountResponseDtoBuilder ispbName(String value) { - if (value == null) { - throw new IllegalStateException("ispbName cannot be null"); - } this.ispbName = JsonNullable.of(value); return this; } @@ -115,9 +109,6 @@ public ApiPixTransactionExternalAccountResponseDtoBuilder ispbName(String value) @JsonProperty("name") public ApiPixTransactionExternalAccountResponseDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -126,9 +117,6 @@ public ApiPixTransactionExternalAccountResponseDtoBuilder name(String value) { @JsonProperty("cpfCnpj") public ApiPixTransactionExternalAccountResponseDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -137,9 +125,6 @@ public ApiPixTransactionExternalAccountResponseDtoBuilder cpfCnpj(String value) @JsonProperty("addressKey") public ApiPixTransactionExternalAccountResponseDtoBuilder addressKey(String value) { - if (value == null) { - throw new IllegalStateException("addressKey cannot be null"); - } this.addressKey = JsonNullable.of(value); return this; } @@ -151,9 +136,6 @@ public ApiPixTransactionExternalAccountResponseDtoBuilder addressKey(String valu public ApiPixTransactionExternalAccountResponseDtoBuilder addressKeyType( ApiPixTransactionExternalAccountResponsePixAddressKeyType value ) { - if (value == null) { - throw new IllegalStateException("addressKeyType cannot be null"); - } this.addressKeyType = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponseDto.java index b2664ee..79fceb4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponseDto.java @@ -326,9 +326,6 @@ public static class ApiPixTransactionGetResponseDtoBuilder { @JsonProperty("id") public ApiPixTransactionGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -337,9 +334,6 @@ public ApiPixTransactionGetResponseDtoBuilder id(String value) { @JsonProperty("endToEndIdentifier") public ApiPixTransactionGetResponseDtoBuilder endToEndIdentifier(String value) { - if (value == null) { - throw new IllegalStateException("endToEndIdentifier cannot be null"); - } this.endToEndIdentifier = JsonNullable.of(value); return this; } @@ -351,9 +345,6 @@ public ApiPixTransactionGetResponseDtoBuilder endToEndIdentifier(String value) { public ApiPixTransactionGetResponseDtoBuilder finality( ApiPixTransactionGetResponsePixTransactionCashValueFinality value ) { - if (value == null) { - throw new IllegalStateException("finality cannot be null"); - } this.finality = JsonNullable.of(value); return this; } @@ -362,9 +353,6 @@ public ApiPixTransactionGetResponseDtoBuilder finality( @JsonProperty("value") public ApiPixTransactionGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -373,9 +361,6 @@ public ApiPixTransactionGetResponseDtoBuilder value(Double value) { @JsonProperty("changeValue") public ApiPixTransactionGetResponseDtoBuilder changeValue(Double value) { - if (value == null) { - throw new IllegalStateException("changeValue cannot be null"); - } this.changeValue = JsonNullable.of(value); return this; } @@ -384,9 +369,6 @@ public ApiPixTransactionGetResponseDtoBuilder changeValue(Double value) { @JsonProperty("refundedValue") public ApiPixTransactionGetResponseDtoBuilder refundedValue(Double value) { - if (value == null) { - throw new IllegalStateException("refundedValue cannot be null"); - } this.refundedValue = JsonNullable.of(value); return this; } @@ -395,9 +377,6 @@ public ApiPixTransactionGetResponseDtoBuilder refundedValue(Double value) { @JsonProperty("effectiveDate") public ApiPixTransactionGetResponseDtoBuilder effectiveDate(String value) { - if (value == null) { - throw new IllegalStateException("effectiveDate cannot be null"); - } this.effectiveDate = JsonNullable.of(value); return this; } @@ -406,9 +385,6 @@ public ApiPixTransactionGetResponseDtoBuilder effectiveDate(String value) { @JsonProperty("scheduledDate") public ApiPixTransactionGetResponseDtoBuilder scheduledDate(String value) { - if (value == null) { - throw new IllegalStateException("scheduledDate cannot be null"); - } this.scheduledDate = JsonNullable.of(value); return this; } @@ -417,9 +393,6 @@ public ApiPixTransactionGetResponseDtoBuilder scheduledDate(String value) { @JsonProperty("status") public ApiPixTransactionGetResponseDtoBuilder status(ApiPixTransactionGetResponsePixTransactionStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -428,9 +401,6 @@ public ApiPixTransactionGetResponseDtoBuilder status(ApiPixTransactionGetRespons @JsonProperty("type") public ApiPixTransactionGetResponseDtoBuilder type(ApiPixTransactionGetResponsePixTransactionType value) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -441,9 +411,6 @@ public ApiPixTransactionGetResponseDtoBuilder type(ApiPixTransactionGetResponseP public ApiPixTransactionGetResponseDtoBuilder originType( ApiPixTransactionGetResponsePixTransactionOriginType value ) { - if (value == null) { - throw new IllegalStateException("originType cannot be null"); - } this.originType = JsonNullable.of(value); return this; } @@ -452,9 +419,6 @@ public ApiPixTransactionGetResponseDtoBuilder originType( @JsonProperty("conciliationIdentifier") public ApiPixTransactionGetResponseDtoBuilder conciliationIdentifier(String value) { - if (value == null) { - throw new IllegalStateException("conciliationIdentifier cannot be null"); - } this.conciliationIdentifier = JsonNullable.of(value); return this; } @@ -463,9 +427,6 @@ public ApiPixTransactionGetResponseDtoBuilder conciliationIdentifier(String valu @JsonProperty("description") public ApiPixTransactionGetResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -474,9 +435,6 @@ public ApiPixTransactionGetResponseDtoBuilder description(String value) { @JsonProperty("transactionReceiptUrl") public ApiPixTransactionGetResponseDtoBuilder transactionReceiptUrl(String value) { - if (value == null) { - throw new IllegalStateException("transactionReceiptUrl cannot be null"); - } this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -485,9 +443,6 @@ public ApiPixTransactionGetResponseDtoBuilder transactionReceiptUrl(String value @JsonProperty("refusalReason") public ApiPixTransactionGetResponseDtoBuilder refusalReason(String value) { - if (value == null) { - throw new IllegalStateException("refusalReason cannot be null"); - } this.refusalReason = JsonNullable.of(value); return this; } @@ -496,9 +451,6 @@ public ApiPixTransactionGetResponseDtoBuilder refusalReason(String value) { @JsonProperty("canBeCanceled") public ApiPixTransactionGetResponseDtoBuilder canBeCanceled(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBeCanceled cannot be null"); - } this.canBeCanceled = JsonNullable.of(value); return this; } @@ -507,9 +459,6 @@ public ApiPixTransactionGetResponseDtoBuilder canBeCanceled(Boolean value) { @JsonProperty("originalTransaction") public ApiPixTransactionGetResponseDtoBuilder originalTransaction(ApiPixOriginalTransactionResponseDto value) { - if (value == null) { - throw new IllegalStateException("originalTransaction cannot be null"); - } this.originalTransaction = JsonNullable.of(value); return this; } @@ -518,9 +467,6 @@ public ApiPixTransactionGetResponseDtoBuilder originalTransaction(ApiPixOriginal @JsonProperty("externalAccount") public ApiPixTransactionGetResponseDtoBuilder externalAccount(ApiPixTransactionExternalAccountResponseDto value) { - if (value == null) { - throw new IllegalStateException("externalAccount cannot be null"); - } this.externalAccount = JsonNullable.of(value); return this; } @@ -529,9 +475,6 @@ public ApiPixTransactionGetResponseDtoBuilder externalAccount(ApiPixTransactionE @JsonProperty("qrCode") public ApiPixTransactionGetResponseDtoBuilder qrCode(ApiPixTransactionQrCodeResponseDto value) { - if (value == null) { - throw new IllegalStateException("qrCode cannot be null"); - } this.qrCode = JsonNullable.of(value); return this; } @@ -540,9 +483,6 @@ public ApiPixTransactionGetResponseDtoBuilder qrCode(ApiPixTransactionQrCodeResp @JsonProperty("payment") public ApiPixTransactionGetResponseDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } @@ -551,9 +491,6 @@ public ApiPixTransactionGetResponseDtoBuilder payment(String value) { @JsonProperty("canBeRefunded") public ApiPixTransactionGetResponseDtoBuilder canBeRefunded(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBeRefunded cannot be null"); - } this.canBeRefunded = JsonNullable.of(value); return this; } @@ -562,9 +499,6 @@ public ApiPixTransactionGetResponseDtoBuilder canBeRefunded(Boolean value) { @JsonProperty("refundDisabledReason") public ApiPixTransactionGetResponseDtoBuilder refundDisabledReason(String value) { - if (value == null) { - throw new IllegalStateException("refundDisabledReason cannot be null"); - } this.refundDisabledReason = JsonNullable.of(value); return this; } @@ -573,9 +507,6 @@ public ApiPixTransactionGetResponseDtoBuilder refundDisabledReason(String value) @JsonProperty("chargedFeeValue") public ApiPixTransactionGetResponseDtoBuilder chargedFeeValue(Double value) { - if (value == null) { - throw new IllegalStateException("chargedFeeValue cannot be null"); - } this.chargedFeeValue = JsonNullable.of(value); return this; } @@ -584,9 +515,6 @@ public ApiPixTransactionGetResponseDtoBuilder chargedFeeValue(Double value) { @JsonProperty("dateCreated") public ApiPixTransactionGetResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -595,9 +523,6 @@ public ApiPixTransactionGetResponseDtoBuilder dateCreated(String value) { @JsonProperty("addressKey") public ApiPixTransactionGetResponseDtoBuilder addressKey(String value) { - if (value == null) { - throw new IllegalStateException("addressKey cannot be null"); - } this.addressKey = JsonNullable.of(value); return this; } @@ -606,9 +531,6 @@ public ApiPixTransactionGetResponseDtoBuilder addressKey(String value) { @JsonProperty("addressKeyType") public ApiPixTransactionGetResponseDtoBuilder addressKeyType(ApiPixTransactionGetResponsePixAddressKeyType value) { - if (value == null) { - throw new IllegalStateException("addressKeyType cannot be null"); - } this.addressKeyType = JsonNullable.of(value); return this; } @@ -617,9 +539,6 @@ public ApiPixTransactionGetResponseDtoBuilder addressKeyType(ApiPixTransactionGe @JsonProperty("transferId") public ApiPixTransactionGetResponseDtoBuilder transferId(String value) { - if (value == null) { - throw new IllegalStateException("transferId cannot be null"); - } this.transferId = JsonNullable.of(value); return this; } @@ -628,9 +547,6 @@ public ApiPixTransactionGetResponseDtoBuilder transferId(String value) { @JsonProperty("externalReference") public ApiPixTransactionGetResponseDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListResponseDto.java index cc514b0..36dad5d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPixTransactionListResponseDtoBuilder { @JsonProperty("object") public ApiPixTransactionListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPixTransactionListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiPixTransactionListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPixTransactionListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiPixTransactionListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPixTransactionListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiPixTransactionListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPixTransactionListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiPixTransactionListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiPixTransactionListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiPixTransactionListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodePayerResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodePayerResponseDto.java index 1db3928..5451e11 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodePayerResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodePayerResponseDto.java @@ -49,9 +49,6 @@ public static class ApiPixTransactionQrCodePayerResponseDtoBuilder { @JsonProperty("name") public ApiPixTransactionQrCodePayerResponseDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPixTransactionQrCodePayerResponseDtoBuilder name(String value) { @JsonProperty("cpfCnpj") public ApiPixTransactionQrCodePayerResponseDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeResponseDto.java index 89363b3..9e567d4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeResponseDto.java @@ -112,9 +112,6 @@ public static class ApiPixTransactionQrCodeResponseDtoBuilder { @JsonProperty("payer") public ApiPixTransactionQrCodeResponseDtoBuilder payer(ApiPixTransactionQrCodePayerResponseDto value) { - if (value == null) { - throw new IllegalStateException("payer cannot be null"); - } this.payer = JsonNullable.of(value); return this; } @@ -123,9 +120,6 @@ public ApiPixTransactionQrCodeResponseDtoBuilder payer(ApiPixTransactionQrCodePa @JsonProperty("conciliationIdentifier") public ApiPixTransactionQrCodeResponseDtoBuilder conciliationIdentifier(String value) { - if (value == null) { - throw new IllegalStateException("conciliationIdentifier cannot be null"); - } this.conciliationIdentifier = JsonNullable.of(value); return this; } @@ -134,9 +128,6 @@ public ApiPixTransactionQrCodeResponseDtoBuilder conciliationIdentifier(String v @JsonProperty("originalValue") public ApiPixTransactionQrCodeResponseDtoBuilder originalValue(Double value) { - if (value == null) { - throw new IllegalStateException("originalValue cannot be null"); - } this.originalValue = JsonNullable.of(value); return this; } @@ -145,9 +136,6 @@ public ApiPixTransactionQrCodeResponseDtoBuilder originalValue(Double value) { @JsonProperty("dueDate") public ApiPixTransactionQrCodeResponseDtoBuilder dueDate(String value) { - if (value == null) { - throw new IllegalStateException("dueDate cannot be null"); - } this.dueDate = JsonNullable.of(value); return this; } @@ -156,9 +144,6 @@ public ApiPixTransactionQrCodeResponseDtoBuilder dueDate(String value) { @JsonProperty("interest") public ApiPixTransactionQrCodeResponseDtoBuilder interest(Double value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -167,9 +152,6 @@ public ApiPixTransactionQrCodeResponseDtoBuilder interest(Double value) { @JsonProperty("fine") public ApiPixTransactionQrCodeResponseDtoBuilder fine(Double value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -178,9 +160,6 @@ public ApiPixTransactionQrCodeResponseDtoBuilder fine(Double value) { @JsonProperty("discount") public ApiPixTransactionQrCodeResponseDtoBuilder discount(Double value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -189,9 +168,6 @@ public ApiPixTransactionQrCodeResponseDtoBuilder discount(Double value) { @JsonProperty("expirationDate") public ApiPixTransactionQrCodeResponseDtoBuilder expirationDate(String value) { - if (value == null) { - throw new IllegalStateException("expirationDate cannot be null"); - } this.expirationDate = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeSaveRequestDto.java index 7e8c51a..a1c51da 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeSaveRequestDto.java @@ -45,9 +45,6 @@ public static class ApiPixTransactionQrCodeSaveRequestDtoBuilder { @JsonProperty("changeValue") public ApiPixTransactionQrCodeSaveRequestDtoBuilder changeValue(Double value) { - if (value == null) { - throw new IllegalStateException("changeValue cannot be null"); - } this.changeValue = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.java index 4dc8307..7b80d71 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.java @@ -71,9 +71,6 @@ public static class ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto @JsonProperty("name") public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -82,9 +79,6 @@ public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder name( @JsonProperty("financialInstitutionName") public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder financialInstitutionName(String value) { - if (value == null) { - throw new IllegalStateException("financialInstitutionName cannot be null"); - } this.financialInstitutionName = JsonNullable.of(value); return this; } @@ -93,9 +87,6 @@ public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder finan @JsonProperty("cpfCnpj") public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -104,9 +95,6 @@ public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder cpfCn @JsonProperty("pixKey") public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder pixKey(String value) { - if (value == null) { - throw new IllegalStateException("pixKey cannot be null"); - } this.pixKey = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.java index 526aa83..d80e8dc 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.java @@ -125,9 +125,6 @@ public static class ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto @JsonProperty("id") public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -140,9 +137,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder id(St public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder status( ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -151,9 +145,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder statu @JsonProperty("scheduledDate") public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder scheduledDate(String value) { - if (value == null) { - throw new IllegalStateException("scheduledDate cannot be null"); - } this.scheduledDate = JsonNullable.of(value); return this; } @@ -162,9 +153,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder sched @JsonProperty("canBeCancelled") public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder canBeCancelled(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBeCancelled cannot be null"); - } this.canBeCancelled = JsonNullable.of(value); return this; } @@ -173,9 +161,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder canBe @JsonProperty("recurrenceNumber") public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder recurrenceNumber(Long value) { - if (value == null) { - throw new IllegalStateException("recurrenceNumber cannot be null"); - } this.recurrenceNumber = JsonNullable.of(value); return this; } @@ -184,9 +169,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder recur @JsonProperty("quantity") public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder quantity(Long value) { - if (value == null) { - throw new IllegalStateException("quantity cannot be null"); - } this.quantity = JsonNullable.of(value); return this; } @@ -195,9 +177,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder quant @JsonProperty("value") public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -206,9 +185,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder value @JsonProperty("refusalReasonDescription") public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder refusalReasonDescription(String value) { - if (value == null) { - throw new IllegalStateException("refusalReasonDescription cannot be null"); - } this.refusalReasonDescription = JsonNullable.of(value); return this; } @@ -220,9 +196,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder refus public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder externalAccount( ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto value ) { - if (value == null) { - throw new IllegalStateException("externalAccount cannot be null"); - } this.externalAccount = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java index e2695b6..77803fb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java @@ -136,9 +136,6 @@ public static class ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuil @JsonProperty("id") public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -150,9 +147,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder id(String public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder status( ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -164,9 +158,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder status( public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder origin( ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin value ) { - if (value == null) { - throw new IllegalStateException("origin cannot be null"); - } this.origin = JsonNullable.of(value); return this; } @@ -175,9 +166,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder origin( @JsonProperty("value") public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -190,9 +178,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder value(Dou public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder frequency( ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency value ) { - if (value == null) { - throw new IllegalStateException("frequency cannot be null"); - } this.frequency = JsonNullable.of(value); return this; } @@ -201,9 +186,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder frequency @JsonProperty("quantity") public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder quantity(Long value) { - if (value == null) { - throw new IllegalStateException("quantity cannot be null"); - } this.quantity = JsonNullable.of(value); return this; } @@ -212,9 +194,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder quantity( @JsonProperty("startDate") public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder startDate(String value) { - if (value == null) { - throw new IllegalStateException("startDate cannot be null"); - } this.startDate = JsonNullable.of(value); return this; } @@ -223,9 +202,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder startDate @JsonProperty("finishDate") public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder finishDate(String value) { - if (value == null) { - throw new IllegalStateException("finishDate cannot be null"); - } this.finishDate = JsonNullable.of(value); return this; } @@ -234,9 +210,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder finishDat @JsonProperty("canBeCancelled") public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder canBeCancelled(Boolean value) { - if (value == null) { - throw new IllegalStateException("canBeCancelled cannot be null"); - } this.canBeCancelled = JsonNullable.of(value); return this; } @@ -248,9 +221,6 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder canBeCanc public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder externalAccount( ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto value ) { - if (value == null) { - throw new IllegalStateException("externalAccount cannot be null"); - } this.externalAccount = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java index 2e0940c..e02bca9 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java @@ -42,9 +42,6 @@ public static class ApiPixTransactionRecurringCheckoutScheduleListItemsResponseD public ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDtoBuilder data( List value ) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.java index 8716c2b..c4f3310 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBui @JsonProperty("object") public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder object(S @JsonProperty("hasMore") public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder hasMore( @JsonProperty("totalCount") public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder totalCou @JsonProperty("limit") public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder limit(Lo @JsonProperty("offset") public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -152,9 +137,6 @@ public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder offset(L public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder data( List value ) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionSaveRequestDto.java index fbb7e73..825919a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionSaveRequestDto.java @@ -3,6 +3,7 @@ package com.asaas.apisdk.models; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Builder; import lombok.Data; @@ -21,7 +22,7 @@ @Jacksonized public class ApiPixTransactionSaveRequestDto { - @NonNull + @JsonInclude(JsonInclude.Include.ALWAYS) private ApiPixTransactionQrCodeSaveRequestDto qrCode; /** @@ -55,13 +56,21 @@ public String getScheduleDate() { // Overwrite lombok builder methods public static class ApiPixTransactionSaveRequestDtoBuilder { + /** + * Flag to track if the qrCode property has been set. + */ + private boolean qrCode$set = false; + + public ApiPixTransactionSaveRequestDtoBuilder qrCode(ApiPixTransactionQrCodeSaveRequestDto qrCode) { + this.qrCode$set = true; + this.qrCode = qrCode; + return this; + } + private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") public ApiPixTransactionSaveRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -70,11 +79,15 @@ public ApiPixTransactionSaveRequestDtoBuilder description(String value) { @JsonProperty("scheduleDate") public ApiPixTransactionSaveRequestDtoBuilder scheduleDate(String value) { - if (value == null) { - throw new IllegalStateException("scheduleDate cannot be null"); - } this.scheduleDate = JsonNullable.of(value); return this; } + + public ApiPixTransactionSaveRequestDto build() { + if (!qrCode$set) { + throw new IllegalStateException("qrCode is required"); + } + return new ApiPixTransactionSaveRequestDto(qrCode, value, description, scheduleDate); + } } } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigDeleteResponseDto.java index 1343220..0ed2360 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigDeleteResponseDto.java @@ -49,9 +49,6 @@ public static class ApiPushNotificationConfigDeleteResponseDtoBuilder { @JsonProperty("deleted") public ApiPushNotificationConfigDeleteResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiPushNotificationConfigDeleteResponseDtoBuilder deleted(Boolean value) @JsonProperty("id") public ApiPushNotificationConfigDeleteResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponseDto.java index a7006e9..2bcf4af 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponseDto.java @@ -138,9 +138,6 @@ public static class ApiPushNotificationConfigGetResponseDtoBuilder { @JsonProperty("id") public ApiPushNotificationConfigGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -149,9 +146,6 @@ public ApiPushNotificationConfigGetResponseDtoBuilder id(String value) { @JsonProperty("name") public ApiPushNotificationConfigGetResponseDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -160,9 +154,6 @@ public ApiPushNotificationConfigGetResponseDtoBuilder name(String value) { @JsonProperty("url") public ApiPushNotificationConfigGetResponseDtoBuilder url(String value) { - if (value == null) { - throw new IllegalStateException("url cannot be null"); - } this.url = JsonNullable.of(value); return this; } @@ -171,9 +162,6 @@ public ApiPushNotificationConfigGetResponseDtoBuilder url(String value) { @JsonProperty("email") public ApiPushNotificationConfigGetResponseDtoBuilder email(String value) { - if (value == null) { - throw new IllegalStateException("email cannot be null"); - } this.email = JsonNullable.of(value); return this; } @@ -182,9 +170,6 @@ public ApiPushNotificationConfigGetResponseDtoBuilder email(String value) { @JsonProperty("enabled") public ApiPushNotificationConfigGetResponseDtoBuilder enabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("enabled cannot be null"); - } this.enabled = JsonNullable.of(value); return this; } @@ -193,9 +178,6 @@ public ApiPushNotificationConfigGetResponseDtoBuilder enabled(Boolean value) { @JsonProperty("interrupted") public ApiPushNotificationConfigGetResponseDtoBuilder interrupted(Boolean value) { - if (value == null) { - throw new IllegalStateException("interrupted cannot be null"); - } this.interrupted = JsonNullable.of(value); return this; } @@ -204,9 +186,6 @@ public ApiPushNotificationConfigGetResponseDtoBuilder interrupted(Boolean value) @JsonProperty("apiVersion") public ApiPushNotificationConfigGetResponseDtoBuilder apiVersion(Long value) { - if (value == null) { - throw new IllegalStateException("apiVersion cannot be null"); - } this.apiVersion = JsonNullable.of(value); return this; } @@ -215,9 +194,6 @@ public ApiPushNotificationConfigGetResponseDtoBuilder apiVersion(Long value) { @JsonProperty("hasAuthToken") public ApiPushNotificationConfigGetResponseDtoBuilder hasAuthToken(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasAuthToken cannot be null"); - } this.hasAuthToken = JsonNullable.of(value); return this; } @@ -229,9 +205,6 @@ public ApiPushNotificationConfigGetResponseDtoBuilder hasAuthToken(Boolean value public ApiPushNotificationConfigGetResponseDtoBuilder sendType( ApiPushNotificationConfigGetResponsePushNotificationSendType value ) { - if (value == null) { - throw new IllegalStateException("sendType cannot be null"); - } this.sendType = JsonNullable.of(value); return this; } @@ -240,9 +213,6 @@ public ApiPushNotificationConfigGetResponseDtoBuilder sendType( @JsonProperty("events") public ApiPushNotificationConfigGetResponseDtoBuilder events(List value) { - if (value == null) { - throw new IllegalStateException("events cannot be null"); - } this.events = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigListResponseDto.java index c0dc530..6b9113c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiPushNotificationConfigListResponseDtoBuilder { @JsonProperty("object") public ApiPushNotificationConfigListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiPushNotificationConfigListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiPushNotificationConfigListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiPushNotificationConfigListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiPushNotificationConfigListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiPushNotificationConfigListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiPushNotificationConfigListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiPushNotificationConfigListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiPushNotificationConfigListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiPushNotificationConfigListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiPushNotificationConfigListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestDto.java index 1ff037e..f356d46 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestDto.java @@ -127,9 +127,6 @@ public static class ApiPushNotificationConfigSaveRequestDtoBuilder { @JsonProperty("name") public ApiPushNotificationConfigSaveRequestDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -138,9 +135,6 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder name(String value) { @JsonProperty("url") public ApiPushNotificationConfigSaveRequestDtoBuilder url(String value) { - if (value == null) { - throw new IllegalStateException("url cannot be null"); - } this.url = JsonNullable.of(value); return this; } @@ -149,9 +143,6 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder url(String value) { @JsonProperty("email") public ApiPushNotificationConfigSaveRequestDtoBuilder email(String value) { - if (value == null) { - throw new IllegalStateException("email cannot be null"); - } this.email = JsonNullable.of(value); return this; } @@ -160,9 +151,6 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder email(String value) { @JsonProperty("enabled") public ApiPushNotificationConfigSaveRequestDtoBuilder enabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("enabled cannot be null"); - } this.enabled = JsonNullable.of(value); return this; } @@ -171,9 +159,6 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder enabled(Boolean value) { @JsonProperty("interrupted") public ApiPushNotificationConfigSaveRequestDtoBuilder interrupted(Boolean value) { - if (value == null) { - throw new IllegalStateException("interrupted cannot be null"); - } this.interrupted = JsonNullable.of(value); return this; } @@ -182,9 +167,6 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder interrupted(Boolean value) @JsonProperty("apiVersion") public ApiPushNotificationConfigSaveRequestDtoBuilder apiVersion(Long value) { - if (value == null) { - throw new IllegalStateException("apiVersion cannot be null"); - } this.apiVersion = JsonNullable.of(value); return this; } @@ -193,9 +175,6 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder apiVersion(Long value) { @JsonProperty("authToken") public ApiPushNotificationConfigSaveRequestDtoBuilder authToken(String value) { - if (value == null) { - throw new IllegalStateException("authToken cannot be null"); - } this.authToken = JsonNullable.of(value); return this; } @@ -207,9 +186,6 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder authToken(String value) { public ApiPushNotificationConfigSaveRequestDtoBuilder sendType( ApiPushNotificationConfigSaveRequestPushNotificationSendType value ) { - if (value == null) { - throw new IllegalStateException("sendType cannot be null"); - } this.sendType = JsonNullable.of(value); return this; } @@ -218,9 +194,6 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder sendType( @JsonProperty("events") public ApiPushNotificationConfigSaveRequestDtoBuilder events(List value) { - if (value == null) { - throw new IllegalStateException("events cannot be null"); - } this.events = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestDto.java index 45ef130..c2e1740 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestDto.java @@ -105,9 +105,6 @@ public static class ApiPushNotificationConfigUpdateRequestDtoBuilder { @JsonProperty("name") public ApiPushNotificationConfigUpdateRequestDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -116,9 +113,6 @@ public ApiPushNotificationConfigUpdateRequestDtoBuilder name(String value) { @JsonProperty("url") public ApiPushNotificationConfigUpdateRequestDtoBuilder url(String value) { - if (value == null) { - throw new IllegalStateException("url cannot be null"); - } this.url = JsonNullable.of(value); return this; } @@ -130,9 +124,6 @@ public ApiPushNotificationConfigUpdateRequestDtoBuilder url(String value) { public ApiPushNotificationConfigUpdateRequestDtoBuilder sendType( ApiPushNotificationConfigUpdateRequestPushNotificationSendType value ) { - if (value == null) { - throw new IllegalStateException("sendType cannot be null"); - } this.sendType = JsonNullable.of(value); return this; } @@ -141,9 +132,6 @@ public ApiPushNotificationConfigUpdateRequestDtoBuilder sendType( @JsonProperty("enabled") public ApiPushNotificationConfigUpdateRequestDtoBuilder enabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("enabled cannot be null"); - } this.enabled = JsonNullable.of(value); return this; } @@ -152,9 +140,6 @@ public ApiPushNotificationConfigUpdateRequestDtoBuilder enabled(Boolean value) { @JsonProperty("interrupted") public ApiPushNotificationConfigUpdateRequestDtoBuilder interrupted(Boolean value) { - if (value == null) { - throw new IllegalStateException("interrupted cannot be null"); - } this.interrupted = JsonNullable.of(value); return this; } @@ -163,9 +148,6 @@ public ApiPushNotificationConfigUpdateRequestDtoBuilder interrupted(Boolean valu @JsonProperty("authToken") public ApiPushNotificationConfigUpdateRequestDtoBuilder authToken(String value) { - if (value == null) { - throw new IllegalStateException("authToken cannot be null"); - } this.authToken = JsonNullable.of(value); return this; } @@ -174,9 +156,6 @@ public ApiPushNotificationConfigUpdateRequestDtoBuilder authToken(String value) @JsonProperty("events") public ApiPushNotificationConfigUpdateRequestDtoBuilder events(List value) { - if (value == null) { - throw new IllegalStateException("events cannot be null"); - } this.events = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationGetResponseDto.java index b8f45a6..daf0a1f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationGetResponseDto.java @@ -38,9 +38,6 @@ public static class ApiReceivableAnticipationConfigurationGetResponseDtoBuilder @JsonProperty("creditCardAutomaticEnabled") public ApiReceivableAnticipationConfigurationGetResponseDtoBuilder creditCardAutomaticEnabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("creditCardAutomaticEnabled cannot be null"); - } this.creditCardAutomaticEnabled = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.java index 5aca4af..9faa8c7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.java @@ -38,9 +38,6 @@ public static class ApiReceivableAnticipationConfigurationUpdateRequestDtoBuilde @JsonProperty("creditCardAutomaticEnabled") public ApiReceivableAnticipationConfigurationUpdateRequestDtoBuilder creditCardAutomaticEnabled(Boolean value) { - if (value == null) { - throw new IllegalStateException("creditCardAutomaticEnabled cannot be null"); - } this.creditCardAutomaticEnabled = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseDto.java index 4d47f4f..c21414e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseDto.java @@ -181,9 +181,6 @@ public static class ApiReceivableAnticipationGetResponseDtoBuilder { @JsonProperty("object") public ApiReceivableAnticipationGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -192,9 +189,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiReceivableAnticipationGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -203,9 +197,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder id(String value) { @JsonProperty("installment") public ApiReceivableAnticipationGetResponseDtoBuilder installment(String value) { - if (value == null) { - throw new IllegalStateException("installment cannot be null"); - } this.installment = JsonNullable.of(value); return this; } @@ -214,9 +205,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder installment(String value) @JsonProperty("payment") public ApiReceivableAnticipationGetResponseDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } @@ -228,9 +216,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder payment(String value) { public ApiReceivableAnticipationGetResponseDtoBuilder status( ApiReceivableAnticipationGetResponseReceivableAnticipationStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -239,9 +224,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder status( @JsonProperty("anticipationDate") public ApiReceivableAnticipationGetResponseDtoBuilder anticipationDate(String value) { - if (value == null) { - throw new IllegalStateException("anticipationDate cannot be null"); - } this.anticipationDate = JsonNullable.of(value); return this; } @@ -250,9 +232,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder anticipationDate(String va @JsonProperty("dueDate") public ApiReceivableAnticipationGetResponseDtoBuilder dueDate(String value) { - if (value == null) { - throw new IllegalStateException("dueDate cannot be null"); - } this.dueDate = JsonNullable.of(value); return this; } @@ -261,9 +240,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder dueDate(String value) { @JsonProperty("requestDate") public ApiReceivableAnticipationGetResponseDtoBuilder requestDate(String value) { - if (value == null) { - throw new IllegalStateException("requestDate cannot be null"); - } this.requestDate = JsonNullable.of(value); return this; } @@ -272,9 +248,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder requestDate(String value) @JsonProperty("fee") public ApiReceivableAnticipationGetResponseDtoBuilder fee(Double value) { - if (value == null) { - throw new IllegalStateException("fee cannot be null"); - } this.fee = JsonNullable.of(value); return this; } @@ -283,9 +256,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder fee(Double value) { @JsonProperty("anticipationDays") public ApiReceivableAnticipationGetResponseDtoBuilder anticipationDays(Long value) { - if (value == null) { - throw new IllegalStateException("anticipationDays cannot be null"); - } this.anticipationDays = JsonNullable.of(value); return this; } @@ -294,9 +264,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder anticipationDays(Long valu @JsonProperty("netValue") public ApiReceivableAnticipationGetResponseDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -305,9 +272,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder netValue(Double value) { @JsonProperty("totalValue") public ApiReceivableAnticipationGetResponseDtoBuilder totalValue(Double value) { - if (value == null) { - throw new IllegalStateException("totalValue cannot be null"); - } this.totalValue = JsonNullable.of(value); return this; } @@ -316,9 +280,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder totalValue(Double value) { @JsonProperty("value") public ApiReceivableAnticipationGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -327,9 +288,6 @@ public ApiReceivableAnticipationGetResponseDtoBuilder value(Double value) { @JsonProperty("denialObservation") public ApiReceivableAnticipationGetResponseDtoBuilder denialObservation(String value) { - if (value == null) { - throw new IllegalStateException("denialObservation cannot be null"); - } this.denialObservation = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsInfoResponseDto.java index 3461529..af0dcbe 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsInfoResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsInfoResponseDto.java @@ -49,9 +49,6 @@ public static class ApiReceivableAnticipationLimitsInfoResponseDtoBuilder { @JsonProperty("total") public ApiReceivableAnticipationLimitsInfoResponseDtoBuilder total(Double value) { - if (value == null) { - throw new IllegalStateException("total cannot be null"); - } this.total = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiReceivableAnticipationLimitsInfoResponseDtoBuilder total(Double value) @JsonProperty("available") public ApiReceivableAnticipationLimitsInfoResponseDtoBuilder available(Double value) { - if (value == null) { - throw new IllegalStateException("available cannot be null"); - } this.available = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsResponseDto.java index c559841..78fd0c1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsResponseDto.java @@ -45,9 +45,6 @@ public static class ApiReceivableAnticipationLimitsResponseDtoBuilder { public ApiReceivableAnticipationLimitsResponseDtoBuilder creditCard( ApiReceivableAnticipationLimitsInfoResponseDto value ) { - if (value == null) { - throw new IllegalStateException("creditCard cannot be null"); - } this.creditCard = JsonNullable.of(value); return this; } @@ -58,9 +55,6 @@ public ApiReceivableAnticipationLimitsResponseDtoBuilder creditCard( public ApiReceivableAnticipationLimitsResponseDtoBuilder bankSlip( ApiReceivableAnticipationLimitsInfoResponseDto value ) { - if (value == null) { - throw new IllegalStateException("bankSlip cannot be null"); - } this.bankSlip = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListResponseDto.java index b338aac..b7afb9f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiReceivableAnticipationListResponseDtoBuilder { @JsonProperty("object") public ApiReceivableAnticipationListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiReceivableAnticipationListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiReceivableAnticipationListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiReceivableAnticipationListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiReceivableAnticipationListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiReceivableAnticipationListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiReceivableAnticipationListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiReceivableAnticipationListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiReceivableAnticipationListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiReceivableAnticipationListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiReceivableAnticipationListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSaveRequestDto.java index 9c0150f..94e5da4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSaveRequestDto.java @@ -60,9 +60,6 @@ public static class ApiReceivableAnticipationSaveRequestDtoBuilder { @JsonProperty("installment") public ApiReceivableAnticipationSaveRequestDtoBuilder installment(String value) { - if (value == null) { - throw new IllegalStateException("installment cannot be null"); - } this.installment = JsonNullable.of(value); return this; } @@ -71,9 +68,6 @@ public ApiReceivableAnticipationSaveRequestDtoBuilder installment(String value) @JsonProperty("payment") public ApiReceivableAnticipationSaveRequestDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateRequestDto.java index f4ca253..9eb0442 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateRequestDto.java @@ -49,9 +49,6 @@ public static class ApiReceivableAnticipationSimulateRequestDtoBuilder { @JsonProperty("installment") public ApiReceivableAnticipationSimulateRequestDtoBuilder installment(String value) { - if (value == null) { - throw new IllegalStateException("installment cannot be null"); - } this.installment = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiReceivableAnticipationSimulateRequestDtoBuilder installment(String val @JsonProperty("payment") public ApiReceivableAnticipationSimulateRequestDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateResponseDto.java index 24764db..5fc98a4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateResponseDto.java @@ -137,9 +137,6 @@ public static class ApiReceivableAnticipationSimulateResponseDtoBuilder { @JsonProperty("installment") public ApiReceivableAnticipationSimulateResponseDtoBuilder installment(String value) { - if (value == null) { - throw new IllegalStateException("installment cannot be null"); - } this.installment = JsonNullable.of(value); return this; } @@ -148,9 +145,6 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder installment(String va @JsonProperty("payment") public ApiReceivableAnticipationSimulateResponseDtoBuilder payment(String value) { - if (value == null) { - throw new IllegalStateException("payment cannot be null"); - } this.payment = JsonNullable.of(value); return this; } @@ -159,9 +153,6 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder payment(String value) @JsonProperty("anticipationDate") public ApiReceivableAnticipationSimulateResponseDtoBuilder anticipationDate(String value) { - if (value == null) { - throw new IllegalStateException("anticipationDate cannot be null"); - } this.anticipationDate = JsonNullable.of(value); return this; } @@ -170,9 +161,6 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder anticipationDate(Stri @JsonProperty("dueDate") public ApiReceivableAnticipationSimulateResponseDtoBuilder dueDate(String value) { - if (value == null) { - throw new IllegalStateException("dueDate cannot be null"); - } this.dueDate = JsonNullable.of(value); return this; } @@ -181,9 +169,6 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder dueDate(String value) @JsonProperty("fee") public ApiReceivableAnticipationSimulateResponseDtoBuilder fee(Double value) { - if (value == null) { - throw new IllegalStateException("fee cannot be null"); - } this.fee = JsonNullable.of(value); return this; } @@ -192,9 +177,6 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder fee(Double value) { @JsonProperty("anticipationDays") public ApiReceivableAnticipationSimulateResponseDtoBuilder anticipationDays(Long value) { - if (value == null) { - throw new IllegalStateException("anticipationDays cannot be null"); - } this.anticipationDays = JsonNullable.of(value); return this; } @@ -203,9 +185,6 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder anticipationDays(Long @JsonProperty("netValue") public ApiReceivableAnticipationSimulateResponseDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -214,9 +193,6 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder netValue(Double value @JsonProperty("totalValue") public ApiReceivableAnticipationSimulateResponseDtoBuilder totalValue(Double value) { - if (value == null) { - throw new IllegalStateException("totalValue cannot be null"); - } this.totalValue = JsonNullable.of(value); return this; } @@ -225,9 +201,6 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder totalValue(Double val @JsonProperty("value") public ApiReceivableAnticipationSimulateResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -236,9 +209,6 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder value(Double value) { @JsonProperty("isDocumentationRequired") public ApiReceivableAnticipationSimulateResponseDtoBuilder isDocumentationRequired(Boolean value) { - if (value == null) { - throw new IllegalStateException("isDocumentationRequired cannot be null"); - } this.isDocumentationRequired = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDto.java index 2a4d819..5d036a2 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDto.java @@ -134,9 +134,6 @@ public static class ApiSubscriptionConfigureInvoiceRequestDtoBuilder { @JsonProperty("municipalServiceId") public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceId(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceId cannot be null"); - } this.municipalServiceId = JsonNullable.of(value); return this; } @@ -145,9 +142,6 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceId(Strin @JsonProperty("municipalServiceCode") public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceCode(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceCode cannot be null"); - } this.municipalServiceCode = JsonNullable.of(value); return this; } @@ -156,9 +150,6 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceCode(Str @JsonProperty("municipalServiceName") public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceName(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceName cannot be null"); - } this.municipalServiceName = JsonNullable.of(value); return this; } @@ -167,9 +158,6 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceName(Str @JsonProperty("updatePayment") public ApiSubscriptionConfigureInvoiceRequestDtoBuilder updatePayment(Boolean value) { - if (value == null) { - throw new IllegalStateException("updatePayment cannot be null"); - } this.updatePayment = JsonNullable.of(value); return this; } @@ -178,9 +166,6 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder updatePayment(Boolean va @JsonProperty("deductions") public ApiSubscriptionConfigureInvoiceRequestDtoBuilder deductions(Double value) { - if (value == null) { - throw new IllegalStateException("deductions cannot be null"); - } this.deductions = JsonNullable.of(value); return this; } @@ -192,9 +177,6 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder deductions(Double value) public ApiSubscriptionConfigureInvoiceRequestDtoBuilder effectiveDatePeriod( ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod value ) { - if (value == null) { - throw new IllegalStateException("effectiveDatePeriod cannot be null"); - } this.effectiveDatePeriod = JsonNullable.of(value); return this; } @@ -203,9 +185,6 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder effectiveDatePeriod( @JsonProperty("receivedOnly") public ApiSubscriptionConfigureInvoiceRequestDtoBuilder receivedOnly(Boolean value) { - if (value == null) { - throw new IllegalStateException("receivedOnly cannot be null"); - } this.receivedOnly = JsonNullable.of(value); return this; } @@ -214,9 +193,6 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder receivedOnly(Boolean val @JsonProperty("daysBeforeDueDate") public ApiSubscriptionConfigureInvoiceRequestDtoBuilder daysBeforeDueDate(Long value) { - if (value == null) { - throw new IllegalStateException("daysBeforeDueDate cannot be null"); - } this.daysBeforeDueDate = JsonNullable.of(value); return this; } @@ -225,9 +201,6 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder daysBeforeDueDate(Long v @JsonProperty("observations") public ApiSubscriptionConfigureInvoiceRequestDtoBuilder observations(String value) { - if (value == null) { - throw new IllegalStateException("observations cannot be null"); - } this.observations = JsonNullable.of(value); return this; } @@ -236,9 +209,6 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder observations(String valu @JsonProperty("taxes") public ApiSubscriptionConfigureInvoiceRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { - if (value == null) { - throw new IllegalStateException("taxes cannot be null"); - } this.taxes = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.java index 803719c..c686df0 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.java @@ -49,9 +49,6 @@ public static class ApiSubscriptionDeleteInvoiceConfigResponseDtoBuilder { @JsonProperty("deleted") public ApiSubscriptionDeleteInvoiceConfigResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiSubscriptionDeleteInvoiceConfigResponseDtoBuilder deleted(Boolean valu @JsonProperty("id") public ApiSubscriptionDeleteInvoiceConfigResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteResponseDto.java index 1e711ad..5d5c03d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteResponseDto.java @@ -49,9 +49,6 @@ public static class ApiSubscriptionDeleteResponseDtoBuilder { @JsonProperty("deleted") public ApiSubscriptionDeleteResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiSubscriptionDeleteResponseDtoBuilder deleted(Boolean value) { @JsonProperty("id") public ApiSubscriptionDeleteResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseDto.java index 2600a77..23226ef 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseDto.java @@ -239,9 +239,6 @@ public static class ApiSubscriptionGetResponseDtoBuilder { @JsonProperty("object") public ApiSubscriptionGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -250,9 +247,6 @@ public ApiSubscriptionGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiSubscriptionGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -261,9 +255,6 @@ public ApiSubscriptionGetResponseDtoBuilder id(String value) { @JsonProperty("dateCreated") public ApiSubscriptionGetResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -272,9 +263,6 @@ public ApiSubscriptionGetResponseDtoBuilder dateCreated(String value) { @JsonProperty("customer") public ApiSubscriptionGetResponseDtoBuilder customer(String value) { - if (value == null) { - throw new IllegalStateException("customer cannot be null"); - } this.customer = JsonNullable.of(value); return this; } @@ -283,9 +271,6 @@ public ApiSubscriptionGetResponseDtoBuilder customer(String value) { @JsonProperty("paymentLink") public ApiSubscriptionGetResponseDtoBuilder paymentLink(String value) { - if (value == null) { - throw new IllegalStateException("paymentLink cannot be null"); - } this.paymentLink = JsonNullable.of(value); return this; } @@ -294,9 +279,6 @@ public ApiSubscriptionGetResponseDtoBuilder paymentLink(String value) { @JsonProperty("billingType") public ApiSubscriptionGetResponseDtoBuilder billingType(ApiSubscriptionGetResponseBillingType value) { - if (value == null) { - throw new IllegalStateException("billingType cannot be null"); - } this.billingType = JsonNullable.of(value); return this; } @@ -305,9 +287,6 @@ public ApiSubscriptionGetResponseDtoBuilder billingType(ApiSubscriptionGetRespon @JsonProperty("cycle") public ApiSubscriptionGetResponseDtoBuilder cycle(ApiSubscriptionGetResponseCycle value) { - if (value == null) { - throw new IllegalStateException("cycle cannot be null"); - } this.cycle = JsonNullable.of(value); return this; } @@ -316,9 +295,6 @@ public ApiSubscriptionGetResponseDtoBuilder cycle(ApiSubscriptionGetResponseCycl @JsonProperty("value") public ApiSubscriptionGetResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -327,9 +303,6 @@ public ApiSubscriptionGetResponseDtoBuilder value(Double value) { @JsonProperty("nextDueDate") public ApiSubscriptionGetResponseDtoBuilder nextDueDate(String value) { - if (value == null) { - throw new IllegalStateException("nextDueDate cannot be null"); - } this.nextDueDate = JsonNullable.of(value); return this; } @@ -338,9 +311,6 @@ public ApiSubscriptionGetResponseDtoBuilder nextDueDate(String value) { @JsonProperty("endDate") public ApiSubscriptionGetResponseDtoBuilder endDate(String value) { - if (value == null) { - throw new IllegalStateException("endDate cannot be null"); - } this.endDate = JsonNullable.of(value); return this; } @@ -349,9 +319,6 @@ public ApiSubscriptionGetResponseDtoBuilder endDate(String value) { @JsonProperty("description") public ApiSubscriptionGetResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -360,9 +327,6 @@ public ApiSubscriptionGetResponseDtoBuilder description(String value) { @JsonProperty("status") public ApiSubscriptionGetResponseDtoBuilder status(ApiSubscriptionGetResponseSubscriptionStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -371,9 +335,6 @@ public ApiSubscriptionGetResponseDtoBuilder status(ApiSubscriptionGetResponseSub @JsonProperty("discount") public ApiSubscriptionGetResponseDtoBuilder discount(ApiPaymentDiscountDto value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -382,9 +343,6 @@ public ApiSubscriptionGetResponseDtoBuilder discount(ApiPaymentDiscountDto value @JsonProperty("fine") public ApiSubscriptionGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -393,9 +351,6 @@ public ApiSubscriptionGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value @JsonProperty("interest") public ApiSubscriptionGetResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -404,9 +359,6 @@ public ApiSubscriptionGetResponseDtoBuilder interest(ApiPaymentInterestResponseD @JsonProperty("deleted") public ApiSubscriptionGetResponseDtoBuilder deleted(Boolean value) { - if (value == null) { - throw new IllegalStateException("deleted cannot be null"); - } this.deleted = JsonNullable.of(value); return this; } @@ -415,9 +367,6 @@ public ApiSubscriptionGetResponseDtoBuilder deleted(Boolean value) { @JsonProperty("maxPayments") public ApiSubscriptionGetResponseDtoBuilder maxPayments(Long value) { - if (value == null) { - throw new IllegalStateException("maxPayments cannot be null"); - } this.maxPayments = JsonNullable.of(value); return this; } @@ -426,9 +375,6 @@ public ApiSubscriptionGetResponseDtoBuilder maxPayments(Long value) { @JsonProperty("externalReference") public ApiSubscriptionGetResponseDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -437,9 +383,6 @@ public ApiSubscriptionGetResponseDtoBuilder externalReference(String value) { @JsonProperty("checkoutSession") public ApiSubscriptionGetResponseDtoBuilder checkoutSession(String value) { - if (value == null) { - throw new IllegalStateException("checkoutSession cannot be null"); - } this.checkoutSession = JsonNullable.of(value); return this; } @@ -448,9 +391,6 @@ public ApiSubscriptionGetResponseDtoBuilder checkoutSession(String value) { @JsonProperty("split") public ApiSubscriptionGetResponseDtoBuilder split(List value) { - if (value == null) { - throw new IllegalStateException("split cannot be null"); - } this.split = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigGetResponseDto.java index 4046099..d3deec3 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigGetResponseDto.java @@ -123,9 +123,6 @@ public static class ApiSubscriptionInvoiceConfigGetResponseDtoBuilder { @JsonProperty("municipalServiceId") public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceId(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceId cannot be null"); - } this.municipalServiceId = JsonNullable.of(value); return this; } @@ -134,9 +131,6 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceId(Stri @JsonProperty("municipalServiceCode") public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceCode(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceCode cannot be null"); - } this.municipalServiceCode = JsonNullable.of(value); return this; } @@ -145,9 +139,6 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceCode(St @JsonProperty("municipalServiceName") public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceName(String value) { - if (value == null) { - throw new IllegalStateException("municipalServiceName cannot be null"); - } this.municipalServiceName = JsonNullable.of(value); return this; } @@ -156,9 +147,6 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceName(St @JsonProperty("deductions") public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder deductions(Double value) { - if (value == null) { - throw new IllegalStateException("deductions cannot be null"); - } this.deductions = JsonNullable.of(value); return this; } @@ -167,9 +155,6 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder deductions(Double value @JsonProperty("invoiceCreationPeriod") public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder invoiceCreationPeriod(InvoiceCreationPeriod value) { - if (value == null) { - throw new IllegalStateException("invoiceCreationPeriod cannot be null"); - } this.invoiceCreationPeriod = JsonNullable.of(value); return this; } @@ -178,9 +163,6 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder invoiceCreationPeriod(I @JsonProperty("daysBeforeDueDate") public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder daysBeforeDueDate(Long value) { - if (value == null) { - throw new IllegalStateException("daysBeforeDueDate cannot be null"); - } this.daysBeforeDueDate = JsonNullable.of(value); return this; } @@ -189,9 +171,6 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder daysBeforeDueDate(Long @JsonProperty("receivedOnly") public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder receivedOnly(Boolean value) { - if (value == null) { - throw new IllegalStateException("receivedOnly cannot be null"); - } this.receivedOnly = JsonNullable.of(value); return this; } @@ -200,9 +179,6 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder receivedOnly(Boolean va @JsonProperty("observations") public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder observations(String value) { - if (value == null) { - throw new IllegalStateException("observations cannot be null"); - } this.observations = JsonNullable.of(value); return this; } @@ -211,9 +187,6 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder observations(String val @JsonProperty("taxes") public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { - if (value == null) { - throw new IllegalStateException("taxes cannot be null"); - } this.taxes = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.java index e596ba8..d29b87a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.java @@ -90,9 +90,6 @@ public static class ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder { @JsonProperty("deductions") public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder deductions(Double value) { - if (value == null) { - throw new IllegalStateException("deductions cannot be null"); - } this.deductions = JsonNullable.of(value); return this; } @@ -104,9 +101,6 @@ public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder deductions(Double val public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder effectiveDatePeriod( ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod value ) { - if (value == null) { - throw new IllegalStateException("effectiveDatePeriod cannot be null"); - } this.effectiveDatePeriod = JsonNullable.of(value); return this; } @@ -115,9 +109,6 @@ public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder effectiveDatePeriod( @JsonProperty("receivedOnly") public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder receivedOnly(Boolean value) { - if (value == null) { - throw new IllegalStateException("receivedOnly cannot be null"); - } this.receivedOnly = JsonNullable.of(value); return this; } @@ -126,9 +117,6 @@ public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder receivedOnly(Boolean @JsonProperty("daysBeforeDueDate") public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder daysBeforeDueDate(Long value) { - if (value == null) { - throw new IllegalStateException("daysBeforeDueDate cannot be null"); - } this.daysBeforeDueDate = JsonNullable.of(value); return this; } @@ -137,9 +125,6 @@ public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder daysBeforeDueDate(Lon @JsonProperty("observations") public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder observations(String value) { - if (value == null) { - throw new IllegalStateException("observations cannot be null"); - } this.observations = JsonNullable.of(value); return this; } @@ -148,9 +133,6 @@ public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder observations(String v @JsonProperty("taxes") public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { - if (value == null) { - throw new IllegalStateException("taxes cannot be null"); - } this.taxes = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListResponseDto.java index fa99aa7..0ad0e3b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListResponseDto.java @@ -94,9 +94,6 @@ public static class ApiSubscriptionListResponseDtoBuilder { @JsonProperty("object") public ApiSubscriptionListResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiSubscriptionListResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiSubscriptionListResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiSubscriptionListResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiSubscriptionListResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiSubscriptionListResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiSubscriptionListResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiSubscriptionListResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiSubscriptionListResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiSubscriptionListResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiSubscriptionListResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestDto.java index bf852bd..e5dc4d1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestDto.java @@ -146,9 +146,6 @@ public static class ApiSubscriptionSaveRequestDtoBuilder { @JsonProperty("discount") public ApiSubscriptionSaveRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -157,9 +154,6 @@ public ApiSubscriptionSaveRequestDtoBuilder discount(ApiPaymentDiscountDto value @JsonProperty("interest") public ApiSubscriptionSaveRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -168,9 +162,6 @@ public ApiSubscriptionSaveRequestDtoBuilder interest(ApiPaymentInterestRequestDt @JsonProperty("fine") public ApiSubscriptionSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -179,9 +170,6 @@ public ApiSubscriptionSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) @JsonProperty("description") public ApiSubscriptionSaveRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -190,9 +178,6 @@ public ApiSubscriptionSaveRequestDtoBuilder description(String value) { @JsonProperty("endDate") public ApiSubscriptionSaveRequestDtoBuilder endDate(String value) { - if (value == null) { - throw new IllegalStateException("endDate cannot be null"); - } this.endDate = JsonNullable.of(value); return this; } @@ -201,9 +186,6 @@ public ApiSubscriptionSaveRequestDtoBuilder endDate(String value) { @JsonProperty("maxPayments") public ApiSubscriptionSaveRequestDtoBuilder maxPayments(Long value) { - if (value == null) { - throw new IllegalStateException("maxPayments cannot be null"); - } this.maxPayments = JsonNullable.of(value); return this; } @@ -212,9 +194,6 @@ public ApiSubscriptionSaveRequestDtoBuilder maxPayments(Long value) { @JsonProperty("externalReference") public ApiSubscriptionSaveRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -223,9 +202,6 @@ public ApiSubscriptionSaveRequestDtoBuilder externalReference(String value) { @JsonProperty("split") public ApiSubscriptionSaveRequestDtoBuilder split(List value) { - if (value == null) { - throw new IllegalStateException("split cannot be null"); - } this.split = JsonNullable.of(value); return this; } @@ -234,9 +210,6 @@ public ApiSubscriptionSaveRequestDtoBuilder split(List discount = JsonNullable.undefined(); @JsonProperty("discount") public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -180,9 +202,6 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDis @JsonProperty("interest") public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -191,9 +210,6 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInt @JsonProperty("fine") public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -202,9 +218,6 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineReq @JsonProperty("description") public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -213,9 +226,6 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder description(String val @JsonProperty("endDate") public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder endDate(String value) { - if (value == null) { - throw new IllegalStateException("endDate cannot be null"); - } this.endDate = JsonNullable.of(value); return this; } @@ -224,9 +234,6 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder endDate(String value) @JsonProperty("maxPayments") public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder maxPayments(Long value) { - if (value == null) { - throw new IllegalStateException("maxPayments cannot be null"); - } this.maxPayments = JsonNullable.of(value); return this; } @@ -235,9 +242,6 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder maxPayments(Long value @JsonProperty("externalReference") public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -246,9 +250,6 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder externalReference(Stri @JsonProperty("split") public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder split(List value) { - if (value == null) { - throw new IllegalStateException("split cannot be null"); - } this.split = JsonNullable.of(value); return this; } @@ -257,9 +258,6 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder split(List value) { - if (value == null) { - throw new IllegalStateException("split cannot be null"); - } this.split = JsonNullable.of(value); return this; } @@ -475,9 +415,6 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder split(List creditCardToken = JsonNullable.undefined(); @JsonProperty("creditCardToken") public ApiSubscriptionUpdateCreditCardRequestDtoBuilder creditCardToken(String value) { - if (value == null) { - throw new IllegalStateException("creditCardToken cannot be null"); - } this.creditCardToken = JsonNullable.of(value); return this; } + + public ApiSubscriptionUpdateCreditCardRequestDto build() { + if (!creditCard$set) { + throw new IllegalStateException("creditCard is required"); + } + if (!creditCardHolderInfo$set) { + throw new IllegalStateException("creditCardHolderInfo is required"); + } + return new ApiSubscriptionUpdateCreditCardRequestDto(creditCard, creditCardHolderInfo, remoteIp, creditCardToken); + } } } diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestDto.java index f3246a8..b54e5da 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestDto.java @@ -159,9 +159,6 @@ public static class ApiSubscriptionUpdateRequestDtoBuilder { @JsonProperty("billingType") public ApiSubscriptionUpdateRequestDtoBuilder billingType(ApiSubscriptionUpdateRequestBillingType value) { - if (value == null) { - throw new IllegalStateException("billingType cannot be null"); - } this.billingType = JsonNullable.of(value); return this; } @@ -170,9 +167,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder billingType(ApiSubscriptionUpdateR @JsonProperty("status") public ApiSubscriptionUpdateRequestDtoBuilder status(ApiSubscriptionUpdateRequestSubscriptionStatus value) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -181,9 +175,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder status(ApiSubscriptionUpdateReques @JsonProperty("nextDueDate") public ApiSubscriptionUpdateRequestDtoBuilder nextDueDate(String value) { - if (value == null) { - throw new IllegalStateException("nextDueDate cannot be null"); - } this.nextDueDate = JsonNullable.of(value); return this; } @@ -192,9 +183,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder nextDueDate(String value) { @JsonProperty("discount") public ApiSubscriptionUpdateRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - if (value == null) { - throw new IllegalStateException("discount cannot be null"); - } this.discount = JsonNullable.of(value); return this; } @@ -203,9 +191,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder discount(ApiPaymentDiscountDto val @JsonProperty("interest") public ApiSubscriptionUpdateRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - if (value == null) { - throw new IllegalStateException("interest cannot be null"); - } this.interest = JsonNullable.of(value); return this; } @@ -214,9 +199,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder interest(ApiPaymentInterestRequest @JsonProperty("fine") public ApiSubscriptionUpdateRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - if (value == null) { - throw new IllegalStateException("fine cannot be null"); - } this.fine = JsonNullable.of(value); return this; } @@ -225,9 +207,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder fine(ApiPaymentFineRequestDto valu @JsonProperty("cycle") public ApiSubscriptionUpdateRequestDtoBuilder cycle(ApiSubscriptionUpdateRequestCycle value) { - if (value == null) { - throw new IllegalStateException("cycle cannot be null"); - } this.cycle = JsonNullable.of(value); return this; } @@ -236,9 +215,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder cycle(ApiSubscriptionUpdateRequest @JsonProperty("description") public ApiSubscriptionUpdateRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -247,9 +223,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder description(String value) { @JsonProperty("endDate") public ApiSubscriptionUpdateRequestDtoBuilder endDate(String value) { - if (value == null) { - throw new IllegalStateException("endDate cannot be null"); - } this.endDate = JsonNullable.of(value); return this; } @@ -258,9 +231,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder endDate(String value) { @JsonProperty("updatePendingPayments") public ApiSubscriptionUpdateRequestDtoBuilder updatePendingPayments(Boolean value) { - if (value == null) { - throw new IllegalStateException("updatePendingPayments cannot be null"); - } this.updatePendingPayments = JsonNullable.of(value); return this; } @@ -269,9 +239,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder updatePendingPayments(Boolean valu @JsonProperty("externalReference") public ApiSubscriptionUpdateRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -280,9 +247,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder externalReference(String value) { @JsonProperty("split") public ApiSubscriptionUpdateRequestDtoBuilder split(List value) { - if (value == null) { - throw new IllegalStateException("split cannot be null"); - } this.split = JsonNullable.of(value); return this; } @@ -291,9 +255,6 @@ public ApiSubscriptionUpdateRequestDtoBuilder split(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestDto.java index f294a74..50e895d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestDto.java @@ -54,9 +54,6 @@ public static class ApiTransferRecurringSaveRequestDtoBuilder { public ApiTransferRecurringSaveRequestDtoBuilder frequency( ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency value ) { - if (value == null) { - throw new IllegalStateException("frequency cannot be null"); - } this.frequency = JsonNullable.of(value); return this; } @@ -65,9 +62,6 @@ public ApiTransferRecurringSaveRequestDtoBuilder frequency( @JsonProperty("quantity") public ApiTransferRecurringSaveRequestDtoBuilder quantity(Long value) { - if (value == null) { - throw new IllegalStateException("quantity cannot be null"); - } this.quantity = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferAccountDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferAccountDto.java index 2a695e7..e2cf7eb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferAccountDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferAccountDto.java @@ -82,9 +82,6 @@ public static class ApiTransferSaveInternalTransferAccountDtoBuilder { @JsonProperty("name") public ApiTransferSaveInternalTransferAccountDtoBuilder name(String value) { - if (value == null) { - throw new IllegalStateException("name cannot be null"); - } this.name = JsonNullable.of(value); return this; } @@ -93,9 +90,6 @@ public ApiTransferSaveInternalTransferAccountDtoBuilder name(String value) { @JsonProperty("cpfCnpj") public ApiTransferSaveInternalTransferAccountDtoBuilder cpfCnpj(String value) { - if (value == null) { - throw new IllegalStateException("cpfCnpj cannot be null"); - } this.cpfCnpj = JsonNullable.of(value); return this; } @@ -104,9 +98,6 @@ public ApiTransferSaveInternalTransferAccountDtoBuilder cpfCnpj(String value) { @JsonProperty("agency") public ApiTransferSaveInternalTransferAccountDtoBuilder agency(String value) { - if (value == null) { - throw new IllegalStateException("agency cannot be null"); - } this.agency = JsonNullable.of(value); return this; } @@ -115,9 +106,6 @@ public ApiTransferSaveInternalTransferAccountDtoBuilder agency(String value) { @JsonProperty("account") public ApiTransferSaveInternalTransferAccountDtoBuilder account(String value) { - if (value == null) { - throw new IllegalStateException("account cannot be null"); - } this.account = JsonNullable.of(value); return this; } @@ -126,9 +114,6 @@ public ApiTransferSaveInternalTransferAccountDtoBuilder account(String value) { @JsonProperty("accountDigit") public ApiTransferSaveInternalTransferAccountDtoBuilder accountDigit(String value) { - if (value == null) { - throw new IllegalStateException("accountDigit cannot be null"); - } this.accountDigit = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferRequestDto.java index 85c4bc4..c2990b4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferRequestDto.java @@ -51,9 +51,6 @@ public static class ApiTransferSaveInternalTransferRequestDtoBuilder { @JsonProperty("externalReference") public ApiTransferSaveInternalTransferRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDto.java index 7e60c51..b7905a5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDto.java @@ -244,9 +244,6 @@ public static class ApiTransferSaveInternalTransferResponseDtoBuilder { @JsonProperty("object") public ApiTransferSaveInternalTransferResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -255,9 +252,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiTransferSaveInternalTransferResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } @@ -268,9 +262,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder id(String value) { public ApiTransferSaveInternalTransferResponseDtoBuilder type( ApiTransferSaveInternalTransferResponseDtoType value ) { - if (value == null) { - throw new IllegalStateException("type cannot be null"); - } this.type = JsonNullable.of(value); return this; } @@ -279,9 +270,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder type( @JsonProperty("dateCreated") public ApiTransferSaveInternalTransferResponseDtoBuilder dateCreated(String value) { - if (value == null) { - throw new IllegalStateException("dateCreated cannot be null"); - } this.dateCreated = JsonNullable.of(value); return this; } @@ -290,9 +278,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder dateCreated(String valu @JsonProperty("value") public ApiTransferSaveInternalTransferResponseDtoBuilder value(Double value) { - if (value == null) { - throw new IllegalStateException("value cannot be null"); - } this.value = JsonNullable.of(value); return this; } @@ -301,9 +286,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder value(Double value) { @JsonProperty("netValue") public ApiTransferSaveInternalTransferResponseDtoBuilder netValue(Double value) { - if (value == null) { - throw new IllegalStateException("netValue cannot be null"); - } this.netValue = JsonNullable.of(value); return this; } @@ -314,9 +296,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder netValue(Double value) public ApiTransferSaveInternalTransferResponseDtoBuilder status( ApiTransferSaveInternalTransferResponseTransferStatus value ) { - if (value == null) { - throw new IllegalStateException("status cannot be null"); - } this.status = JsonNullable.of(value); return this; } @@ -325,9 +304,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder status( @JsonProperty("transferFee") public ApiTransferSaveInternalTransferResponseDtoBuilder transferFee(Double value) { - if (value == null) { - throw new IllegalStateException("transferFee cannot be null"); - } this.transferFee = JsonNullable.of(value); return this; } @@ -336,9 +312,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder transferFee(Double valu @JsonProperty("effectiveDate") public ApiTransferSaveInternalTransferResponseDtoBuilder effectiveDate(String value) { - if (value == null) { - throw new IllegalStateException("effectiveDate cannot be null"); - } this.effectiveDate = JsonNullable.of(value); return this; } @@ -347,9 +320,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder effectiveDate(String va @JsonProperty("scheduleDate") public ApiTransferSaveInternalTransferResponseDtoBuilder scheduleDate(String value) { - if (value == null) { - throw new IllegalStateException("scheduleDate cannot be null"); - } this.scheduleDate = JsonNullable.of(value); return this; } @@ -358,9 +328,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder scheduleDate(String val @JsonProperty("endToEndIdentifier") public ApiTransferSaveInternalTransferResponseDtoBuilder endToEndIdentifier(String value) { - if (value == null) { - throw new IllegalStateException("endToEndIdentifier cannot be null"); - } this.endToEndIdentifier = JsonNullable.of(value); return this; } @@ -369,9 +336,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder endToEndIdentifier(Stri @JsonProperty("authorized") public ApiTransferSaveInternalTransferResponseDtoBuilder authorized(Boolean value) { - if (value == null) { - throw new IllegalStateException("authorized cannot be null"); - } this.authorized = JsonNullable.of(value); return this; } @@ -380,9 +344,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder authorized(Boolean valu @JsonProperty("failReason") public ApiTransferSaveInternalTransferResponseDtoBuilder failReason(String value) { - if (value == null) { - throw new IllegalStateException("failReason cannot be null"); - } this.failReason = JsonNullable.of(value); return this; } @@ -391,9 +352,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder failReason(String value @JsonProperty("externalReference") public ApiTransferSaveInternalTransferResponseDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -402,9 +360,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder externalReference(Strin @JsonProperty("transactionReceiptUrl") public ApiTransferSaveInternalTransferResponseDtoBuilder transactionReceiptUrl(String value) { - if (value == null) { - throw new IllegalStateException("transactionReceiptUrl cannot be null"); - } this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -415,9 +370,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder transactionReceiptUrl(S public ApiTransferSaveInternalTransferResponseDtoBuilder operationType( ApiTransferSaveInternalTransferResponseTransferType value ) { - if (value == null) { - throw new IllegalStateException("operationType cannot be null"); - } this.operationType = JsonNullable.of(value); return this; } @@ -426,9 +378,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder operationType( @JsonProperty("description") public ApiTransferSaveInternalTransferResponseDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -437,9 +386,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder description(String valu @JsonProperty("recurring") public ApiTransferSaveInternalTransferResponseDtoBuilder recurring(String value) { - if (value == null) { - throw new IllegalStateException("recurring cannot be null"); - } this.recurring = JsonNullable.of(value); return this; } @@ -448,9 +394,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder recurring(String value) @JsonProperty("walletId") public ApiTransferSaveInternalTransferResponseDtoBuilder walletId(String value) { - if (value == null) { - throw new IllegalStateException("walletId cannot be null"); - } this.walletId = JsonNullable.of(value); return this; } @@ -459,9 +402,6 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder walletId(String value) @JsonProperty("account") public ApiTransferSaveInternalTransferResponseDtoBuilder account(ApiTransferSaveInternalTransferAccountDto value) { - if (value == null) { - throw new IllegalStateException("account cannot be null"); - } this.account = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestDto.java index fb17d64..8b3cec6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestDto.java @@ -116,9 +116,6 @@ public static class ApiTransferSaveRequestDtoBuilder { @JsonProperty("bankAccount") public ApiTransferSaveRequestDtoBuilder bankAccount(ApiTransferBankAccountSaveRequestDto value) { - if (value == null) { - throw new IllegalStateException("bankAccount cannot be null"); - } this.bankAccount = JsonNullable.of(value); return this; } @@ -127,9 +124,6 @@ public ApiTransferSaveRequestDtoBuilder bankAccount(ApiTransferBankAccountSaveRe @JsonProperty("operationType") public ApiTransferSaveRequestDtoBuilder operationType(ApiTransferSaveRequestTransferType value) { - if (value == null) { - throw new IllegalStateException("operationType cannot be null"); - } this.operationType = JsonNullable.of(value); return this; } @@ -138,9 +132,6 @@ public ApiTransferSaveRequestDtoBuilder operationType(ApiTransferSaveRequestTran @JsonProperty("pixAddressKey") public ApiTransferSaveRequestDtoBuilder pixAddressKey(String value) { - if (value == null) { - throw new IllegalStateException("pixAddressKey cannot be null"); - } this.pixAddressKey = JsonNullable.of(value); return this; } @@ -149,9 +140,6 @@ public ApiTransferSaveRequestDtoBuilder pixAddressKey(String value) { @JsonProperty("pixAddressKeyType") public ApiTransferSaveRequestDtoBuilder pixAddressKeyType(ApiTransferSaveRequestPixAddressKeyType value) { - if (value == null) { - throw new IllegalStateException("pixAddressKeyType cannot be null"); - } this.pixAddressKeyType = JsonNullable.of(value); return this; } @@ -160,9 +148,6 @@ public ApiTransferSaveRequestDtoBuilder pixAddressKeyType(ApiTransferSaveRequest @JsonProperty("description") public ApiTransferSaveRequestDtoBuilder description(String value) { - if (value == null) { - throw new IllegalStateException("description cannot be null"); - } this.description = JsonNullable.of(value); return this; } @@ -171,9 +156,6 @@ public ApiTransferSaveRequestDtoBuilder description(String value) { @JsonProperty("scheduleDate") public ApiTransferSaveRequestDtoBuilder scheduleDate(String value) { - if (value == null) { - throw new IllegalStateException("scheduleDate cannot be null"); - } this.scheduleDate = JsonNullable.of(value); return this; } @@ -182,9 +164,6 @@ public ApiTransferSaveRequestDtoBuilder scheduleDate(String value) { @JsonProperty("externalReference") public ApiTransferSaveRequestDtoBuilder externalReference(String value) { - if (value == null) { - throw new IllegalStateException("externalReference cannot be null"); - } this.externalReference = JsonNullable.of(value); return this; } @@ -193,9 +172,6 @@ public ApiTransferSaveRequestDtoBuilder externalReference(String value) { @JsonProperty("recurring") public ApiTransferSaveRequestDtoBuilder recurring(ApiTransferRecurringSaveRequestDto value) { - if (value == null) { - throw new IllegalStateException("recurring cannot be null"); - } this.recurring = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiWalletGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiWalletGetResponseDto.java index 7a489f1..493e3c6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiWalletGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiWalletGetResponseDto.java @@ -49,9 +49,6 @@ public static class ApiWalletGetResponseDtoBuilder { @JsonProperty("object") public ApiWalletGetResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -60,9 +57,6 @@ public ApiWalletGetResponseDtoBuilder object(String value) { @JsonProperty("id") public ApiWalletGetResponseDtoBuilder id(String value) { - if (value == null) { - throw new IllegalStateException("id cannot be null"); - } this.id = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiWalletShowResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiWalletShowResponseDto.java index a0206ec..38e3f78 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiWalletShowResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ApiWalletShowResponseDto.java @@ -94,9 +94,6 @@ public static class ApiWalletShowResponseDtoBuilder { @JsonProperty("object") public ApiWalletShowResponseDtoBuilder object(String value) { - if (value == null) { - throw new IllegalStateException("object cannot be null"); - } this.object = JsonNullable.of(value); return this; } @@ -105,9 +102,6 @@ public ApiWalletShowResponseDtoBuilder object(String value) { @JsonProperty("hasMore") public ApiWalletShowResponseDtoBuilder hasMore(Boolean value) { - if (value == null) { - throw new IllegalStateException("hasMore cannot be null"); - } this.hasMore = JsonNullable.of(value); return this; } @@ -116,9 +110,6 @@ public ApiWalletShowResponseDtoBuilder hasMore(Boolean value) { @JsonProperty("totalCount") public ApiWalletShowResponseDtoBuilder totalCount(Long value) { - if (value == null) { - throw new IllegalStateException("totalCount cannot be null"); - } this.totalCount = JsonNullable.of(value); return this; } @@ -127,9 +118,6 @@ public ApiWalletShowResponseDtoBuilder totalCount(Long value) { @JsonProperty("limit") public ApiWalletShowResponseDtoBuilder limit(Long value) { - if (value == null) { - throw new IllegalStateException("limit cannot be null"); - } this.limit = JsonNullable.of(value); return this; } @@ -138,9 +126,6 @@ public ApiWalletShowResponseDtoBuilder limit(Long value) { @JsonProperty("offset") public ApiWalletShowResponseDtoBuilder offset(Long value) { - if (value == null) { - throw new IllegalStateException("offset cannot be null"); - } this.offset = JsonNullable.of(value); return this; } @@ -149,9 +134,6 @@ public ApiWalletShowResponseDtoBuilder offset(Long value) { @JsonProperty("data") public ApiWalletShowResponseDtoBuilder data(List value) { - if (value == null) { - throw new IllegalStateException("data cannot be null"); - } this.data = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/SimulateAPaymentDunningParameters.java b/src/main/java/com/asaas/apisdk/models/SimulateAPaymentDunningParameters.java index c85834e..69fc302 100644 --- a/src/main/java/com/asaas/apisdk/models/SimulateAPaymentDunningParameters.java +++ b/src/main/java/com/asaas/apisdk/models/SimulateAPaymentDunningParameters.java @@ -57,9 +57,6 @@ public SimulateAPaymentDunningParametersBuilder payment(String value) { @JsonProperty("requestBody") public SimulateAPaymentDunningParametersBuilder requestBody(Object value) { - if (value == null) { - throw new IllegalStateException("requestBody cannot be null"); - } this.requestBody = JsonNullable.of(value); return this; }