diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..e759c21 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +# API Key for authentication +API_KEY= diff --git a/.manifest.json b/.manifest.json index b1f1aa2..6ae7364 100644 --- a/.manifest.json +++ b/.manifest.json @@ -1,11 +1,11 @@ { - "liblabVersion": "2.25.26", - "date": "2025-06-17T18:18:14.226Z", + "liblabVersion": "2.25.34", + "date": "2025-07-01T19:48:32.486Z", "config": { "apiId": 2190, "baseUrl": "https://api.asaas.com/", "sdkName": "asaas-sdk", - "sdkVersion": "1.0.1", + "sdkVersion": "1.0.2", "languages": ["java"], "auth": ["apikey"], "docs": [], @@ -73,7 +73,7 @@ "artifactId": "api-sdk", "githubRepoName": "asaas-api-sdk-java", "targetBranch": "master", - "sdkVersion": "1.0.1", + "sdkVersion": "1.0.2", "homepage": "https://asaas.com", "developers": [ { @@ -101,7 +101,7 @@ "ignoreFiles": [], "liblabVersion": "2", "renameIllegalModelProperties": true, - "sdkVersion": "1.0.1", + "sdkVersion": "1.0.2", "targetBranch": "master", "groupId": "com.asaas", "artifactId": "api-sdk", @@ -177,7 +177,7 @@ }, "multiTenant": true, "hooksLocation": { - "bucketKey": "12033/hooks.zip", + "bucketKey": "12307/hooks.zip", "bucketName": "prod-liblab-api-stack-hooks" }, "includeWatermark": true, @@ -246,7 +246,7 @@ "src/main/java/com/asaas/apisdk/http/interceptors/DefaultHeadersInterceptor.java", "src/main/java/com/asaas/apisdk/hook/Hook.java", "src/main/java/com/asaas/apisdk/exceptions/ApiError.java", - "src/main/java/com/asaas/apisdk/exceptions/ApiErrorResponseDtoException.java", + "src/main/java/com/asaas/apisdk/exceptions/ErrorResponseDtoException.java", "src/main/java/com/asaas/apisdk/http/Environment.java", "src/main/java/com/asaas/apisdk/AsaasSdk.java", "LICENSE", @@ -254,410 +254,420 @@ "src/main/java/com/asaas/apisdk/config/RetryConfig.java", "src/main/java/com/asaas/apisdk/config/AsaasSdkConfig.java", "src/main/java/com/asaas/apisdk/config/ApiKeyAuthConfig.java", - "documentation/models/ApiPaymentListResponseDto.md", - "documentation/models/ApiPaymentListRequestBillingType.md", - "documentation/models/ApiPaymentListRequestPaymentStatus.md", - "documentation/models/ApiPaymentListRequestInvoiceStatus.md", - "documentation/models/ApiPaymentSaveRequestDto.md", - "documentation/models/ApiPaymentGetResponseDto.md", - "documentation/models/ApiPaymentSaveWithCreditCardRequestDto.md", - "documentation/models/ApiPaymentPayWithCreditCardRequestDto.md", - "documentation/models/ApiPaymentBillingInfoResponseDto.md", - "documentation/models/ApiPaymentViewingInfoResponseDto.md", - "documentation/models/ApiPaymentUpdateRequestDto.md", - "documentation/models/ApiPaymentDeleteResponseDto.md", - "documentation/models/ApiPaymentStatusResponseDto.md", - "documentation/models/ApiPaymentRefundRequestDto.md", - "documentation/models/ApiPaymentIdentificationFieldResponseDto.md", - "documentation/models/ApiPaymentPixQrCodeResponseDto.md", - "documentation/models/ApiPaymentReceiveInCashRequestDto.md", - "documentation/models/ApiPaymentSimulateRequestDto.md", - "documentation/models/ApiPaymentSimulateResponseDto.md", - "documentation/models/ApiPaymentCustodyGetResponseDto.md", - "documentation/models/ApiPaymentLimitsResponseDto.md", - "documentation/models/ApiPaymentLeanListResponseDto.md", - "documentation/models/ApiPaymentLeanGetResponseDto.md", - "documentation/models/ApiPaymentLeanSaveWithCreditCardResponseDto.md", - "documentation/models/ApiCreditCardTokenizeRequestDto.md", - "documentation/models/ApiCreditCardTokenizeResponseDto.md", - "documentation/models/ApiPaymentRefundListResponseDto.md", - "documentation/models/ApiPaymentBankSlipRefundResponseDto.md", - "documentation/models/ApiPaymentSplitGetResponseDto.md", - "documentation/models/ApiPaymentSplitListResponseDto.md", - "documentation/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.md", - "documentation/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.md", - "documentation/models/ApiPaymentDocumentListResponseDto.md", - "documentation/models/ApiPaymentDocumentSaveRequestDto.md", - "documentation/models/ApiPaymentDocumentGetResponseDto.md", - "documentation/models/ApiPaymentDocumentUpdateRequestDto.md", - "documentation/models/ApiPaymentDocumentDeleteResponseDto.md", - "documentation/models/ApiCustomerAccountListResponseDto.md", - "documentation/models/ApiCustomerAccountSaveRequestDto.md", - "documentation/models/ApiCustomerAccountGetResponseDto.md", - "documentation/models/ApiCustomerAccountUpdateRequestDto.md", - "documentation/models/ApiCustomerAccountDeleteResponseDto.md", - "documentation/models/ApiNotificationListResponseDto.md", - "documentation/models/ApiNotificationUpdateRequestDto.md", - "documentation/models/ApiNotificationGetResponseDto.md", - "documentation/models/ApiNotificationBatchUpdateRequestDto.md", - "documentation/models/ApiNotificationBatchUpdateResponseDto.md", - "documentation/models/ApiInstallmentListResponseDto.md", - "documentation/models/ApiInstallmentSaveRequestDto.md", - "documentation/models/ApiInstallmentGetResponseDto.md", - "documentation/models/ApiInstallmentSaveWithCreditCardRequestDto.md", - "documentation/models/ApiInstallmentDeleteResponseDto.md", - "documentation/models/ApiInstallmentListPaymentsRequestPaymentStatus.md", - "documentation/models/ApiInstallmentUpdateSplitRequestDto.md", - "documentation/models/ApiInstallmentUpdateSplitResponseDto.md", - "documentation/models/ApiSubscriptionListResponseDto.md", - "documentation/models/ApiSubscriptionListRequestBillingType.md", - "documentation/models/ApiSubscriptionListRequestSubscriptionStatus.md", - "documentation/models/ApiSubscriptionSaveRequestDto.md", - "documentation/models/ApiSubscriptionGetResponseDto.md", - "documentation/models/ApiSubscriptionSaveWithCreditCardRequestDto.md", - "documentation/models/ApiSubscriptionSaveWithCreditCardResponseDto.md", - "documentation/models/ApiSubscriptionUpdateRequestDto.md", - "documentation/models/ApiSubscriptionDeleteResponseDto.md", - "documentation/models/ApiSubscriptionUpdateCreditCardRequestDto.md", - "documentation/models/ApiSubscriptionListPaymentsRequestPaymentStatus.md", - "documentation/models/ApiSubscriptionInvoiceConfigGetResponseDto.md", - "documentation/models/ApiSubscriptionConfigureInvoiceRequestDto.md", - "documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.md", - "documentation/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.md", - "documentation/models/ApiCustomerInvoiceListResponseDto.md", - "documentation/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.md", - "documentation/models/ApiPixAddressKeyListResponseDto.md", - "documentation/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.md", - "documentation/models/ApiPixAddressKeySaveRequestDto.md", - "documentation/models/ApiPixAddressKeyGetResponseDto.md", - "documentation/models/ApiPixQrCodeSaveRequestDto.md", - "documentation/models/ApiPixQrCodeSaveResponseDto.md", - "documentation/models/ApiPixQrCodeDeleteResponseDto.md", - "documentation/models/ApiPixTokenBucketGetAddressKeyResponseDto.md", - "documentation/models/ApiPixTransactionSaveRequestDto.md", - "documentation/models/ApiPixTransactionGetResponseDto.md", - "documentation/models/ApiPixQrCodeDecodeRequestDto.md", - "documentation/models/ApiPixQrCodeDecodeResponseDto.md", - "documentation/models/ApiPixTransactionListResponseDto.md", - "documentation/models/ApiPixTransactionListRequestPixTransactionStatus.md", - "documentation/models/ApiPixTransactionListRequestPixTransactionType.md", - "documentation/models/ApiReceivableAnticipationGetResponseDto.md", - "documentation/models/ApiReceivableAnticipationListResponseDto.md", - "documentation/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.md", - "documentation/models/ApiReceivableAnticipationSaveRequestDto.md", - "documentation/models/ApiReceivableAnticipationSimulateRequestDto.md", - "documentation/models/ApiReceivableAnticipationSimulateResponseDto.md", - "documentation/models/ApiReceivableAnticipationConfigurationGetResponseDto.md", - "documentation/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.md", - "documentation/models/ApiReceivableAnticipationLimitsResponseDto.md", - "documentation/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.md", - "documentation/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.md", - "documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.md", - "documentation/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.md", - "documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.md", - "documentation/models/ApiPaymentCampaignListResponseDto.md", - "documentation/models/ApiPaymentCampaignSaveRequestDto.md", - "documentation/models/ApiPaymentCampaignGetResponseDto.md", - "documentation/models/ApiPaymentCampaignUpdateRequestDto.md", - "documentation/models/ApiPaymentCampaignDeleteResponseDto.md", - "documentation/models/ApiPaymentCampaignFileListResponseDto.md", - "documentation/models/ApiPaymentCampaignFileSaveRequestDto.md", - "documentation/models/ApiPaymentCampaignFileGetResponseDto.md", - "documentation/models/ApiPaymentCampaignFileDeleteResponseDto.md", - "documentation/models/ApiCheckoutSessionSaveRequestDto.md", - "documentation/models/ApiCheckoutSessionResponseDto.md", - "documentation/models/ApiTransferListResponseDto.md", - "documentation/models/ApiTransferSaveRequestDto.md", - "documentation/models/ApiTransferGetResponseDto.md", - "documentation/models/ApiTransferSaveInternalTransferRequestDto.md", - "documentation/models/ApiTransferSaveInternalTransferResponseDto.md", - "documentation/models/ApiPaymentDunningListResponseDto.md", - "documentation/models/ApiPaymentDunningListRequestPaymentDunningStatus.md", - "documentation/models/ApiPaymentDunningListRequestPaymentDunningType.md", - "documentation/models/ApiPaymentDunningSaveRequestDto.md", - "documentation/models/ApiPaymentDunningShowResponseDto.md", - "documentation/models/ApiPaymentDunningSimulateResponseDto.md", - "documentation/models/ApiPaymentDunningListHistoryResponseDto.md", - "documentation/models/ApiPaymentDunningListPartialPaymentsResponseDto.md", - "documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.md", - "documentation/models/ApiPaymentDunningSaveDocumentsRequestDto.md", - "documentation/models/ApiPaymentDunningSaveDocumentsResponseDto.md", - "documentation/models/ApiPaymentDunningCancelResponseDto.md", - "documentation/models/ApiBillListResponseDto.md", - "documentation/models/ApiBillSaveRequestDto.md", - "documentation/models/ApiBillGetResponseDto.md", - "documentation/models/ApiBillSimulateRequestDto.md", - "documentation/models/ApiBillSimulateResponseDto.md", - "documentation/models/ApiMobilePhoneRechargeListResponseDto.md", - "documentation/models/ApiMobilePhoneRechargeSaveRequestDto.md", - "documentation/models/ApiMobilePhoneRechargeGetResponseDto.md", - "documentation/models/ApiMobilePhoneRechargeFindProviderResponseDto.md", - "documentation/models/ApiCreditBureauReportListResponseDto.md", - "documentation/models/ApiCreditBureauReportSaveRequestDto.md", - "documentation/models/ApiCreditBureauReportGetResponseDto.md", - "documentation/models/ApiFinancialTransactionListResponseDto.md", - "documentation/models/ApiFinanceBalanceResponseDto.md", - "documentation/models/ApiFinanceGetPaymentStatisticsResponseDto.md", - "documentation/models/ApiFinanceGetPaymentStatisticsRequestBillingType.md", - "documentation/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.md", - "documentation/models/ApiFinanceGetSplitStatisticsResponseDto.md", - "documentation/models/ApiCustomerUpdateRequestGetResponseDto.md", - "documentation/models/ApiCustomerUpdateRequestSaveRequestDto.md", - "documentation/models/ApiPaymentCheckoutConfigGetResponseDto.md", - "documentation/models/ApiPaymentCheckoutConfigSaveRequestDto.md", - "documentation/models/ApiMyAccountGetAccountNumberResponseDto.md", - "documentation/models/ApiMyAccountGetAccountFeesResponseDto.md", - "documentation/models/ApiMyAccountGetStatusResponseDto.md", - "documentation/models/ApiWalletShowResponseDto.md", - "documentation/models/ApiMyAccountDisableAccountResponseDto.md", - "documentation/models/ApiCustomerInvoiceListRequestInvoiceStatus.md", - "documentation/models/ApiCustomerInvoiceSaveRequestDto.md", - "documentation/models/ApiCustomerInvoiceGetResponseDto.md", - "documentation/models/ApiCustomerInvoiceUpdateRequestDto.md", - "documentation/models/ApiCustomerInvoiceCancelRequestDto.md", - "documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.md", - "documentation/models/ApiCustomerFiscalInfoGetResponseDto.md", - "documentation/models/ApiCustomerFiscalInfoSaveRequestDto.md", - "documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.md", - "documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.md", - "documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.md", - "documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.md", - "documentation/models/ApiPushNotificationConfigListResponseDto.md", - "documentation/models/ApiPushNotificationConfigSaveRequestDto.md", - "documentation/models/ApiPushNotificationConfigGetResponseDto.md", - "documentation/models/ApiPushNotificationConfigUpdateRequestDto.md", - "documentation/models/ApiPushNotificationConfigDeleteResponseDto.md", - "documentation/models/ApiCustomerListResponseDto.md", - "documentation/models/ApiCustomerSaveRequestDto.md", - "documentation/models/ApiCustomerSaveResponseDto.md", - "documentation/models/ApiCustomerGetResponseDto.md", - "documentation/models/ApiCustomerPaymentCustodyConfigDto.md", - "documentation/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.md", - "documentation/models/ApiAccountDocumentShowResponseDto.md", - "documentation/models/ApiAccountDocumentSaveRequestDto.md", - "documentation/models/ApiAccountDocumentGetResponseDto.md", - "documentation/models/ApiAccountDocumentUpdateRequestDto.md", - "documentation/models/ApiAccountDocumentDeleteResponseDto.md", - "documentation/models/ApiChargebackSaveDisputeRequestDto.md", - "documentation/models/ApiChargebackSaveDisputeResponseDto.md", - "documentation/models/ApiChargebackListResponseDto.md", - "documentation/models/ApiChargebackListRequestCreditCardBrand.md", - "documentation/models/ApiChargebackListRequestChargebackStatus.md", - "documentation/models/ApiPaymentChargebackResponseDto.md", - "documentation/models/ApiPaymentGetResponseBillingType.md", - "documentation/models/ApiPaymentSaveWithCreditCardCreditCardDto.md", - "documentation/models/ApiPaymentGetResponsePaymentStatus.md", - "documentation/models/ApiPaymentDiscountDto.md", - "documentation/models/ApiPaymentFineResponseDto.md", - "documentation/models/ApiPaymentInterestResponseDto.md", - "documentation/models/ApiPaymentRefundGetResponseDto.md", - "documentation/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.md", - "documentation/models/ApiPaymentDiscountDiscountType.md", - "documentation/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.md", - "documentation/models/ApiPaymentSplitGetResponsePaymentSplitStatus.md", - "documentation/models/ApiPaymentChargebackResponseChargebackStatus.md", - "documentation/models/ApiPaymentChargebackResponseChargebackReason.md", - "documentation/models/ApiChargebackCreditCardResponseDto.md", - "documentation/models/ApiPaymentChargebackResponseChargebackDisputeStatus.md", - "documentation/models/ApiChargebackCreditCardResponseCreditCardBrand.md", - "documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.md", - "documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.md", - "documentation/models/ApiPaymentRefundGetResponsePaymentRefundStatus.md", - "documentation/models/ApiPaymentRefundedSplitResponseDto.md", - "documentation/models/ApiPaymentSaveRequestBillingType.md", - "documentation/models/ApiPaymentInterestRequestDto.md", - "documentation/models/ApiPaymentFineRequestDto.md", - "documentation/models/ApiPaymentSplitRequestDto.md", - "documentation/models/ApiPaymentCallbackRequestDto.md", - "documentation/models/ApiPaymentFineRequestFineType.md", - "documentation/models/ApiPaymentSaveWithCreditCardRequestBillingType.md", - "documentation/models/ApiCreditCardRequestDto.md", - "documentation/models/ApiCreditCardHolderInfoRequestDto.md", - "documentation/models/ApiBankSlipBillingInfoResponseDto.md", - "documentation/models/ApiCreditCardTokenizeResponseCreditCardBrand.md", - "documentation/models/ApiPaymentUpdateRequestBillingType.md", - "documentation/models/ApiPaymentStatusResponsePaymentStatus.md", - "documentation/models/ApiPaymentSimulateCreditCardResponseDto.md", - "documentation/models/ApiPaymentSimulateBankSlipResponseDto.md", - "documentation/models/ApiPaymentSimulatePixResponseDto.md", - "documentation/models/ApiPaymentSimulateInstallmentResponseDto.md", - "documentation/models/ApiPaymentLimitsResponseCreationDto.md", - "documentation/models/ApiPaymentLimitsResponseCreationDailyDto.md", - "documentation/models/ApiPaymentLeanGetResponseBillingType.md", - "documentation/models/ApiPaymentLeanGetResponsePaymentStatus.md", - "documentation/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.md", - "documentation/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.md", - "documentation/models/ApiPaymentDocumentGetResponsePaymentDocumentType.md", - "documentation/models/ApiPaymentDocumentFileResponseDto.md", - "documentation/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.md", - "documentation/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.md", - "documentation/models/ApiCustomerAccountGetResponsePersonType.md", - "documentation/models/ApiNotificationGetResponseNotificationEvent.md", - "documentation/models/ApiNotificationGetResponseDtoScheduleOffset.md", - "documentation/models/ApiNotificationUpdateRequestDtoScheduleOffset.md", - "documentation/models/ApiInstallmentGetResponseBillingType.md", - "documentation/models/ApiInstallmentRefundResponseDto.md", - "documentation/models/ApiInstallmentRefundResponsePaymentRefundStatus.md", - "documentation/models/ApiInstallmentSaveRequestBillingType.md", - "documentation/models/ApiInstallmentSplitRequestDto.md", - "documentation/models/ApiInstallmentSaveWithCreditCardRequestBillingType.md", - "documentation/models/ApiInstallmentSplitGetResponseDto.md", - "documentation/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.md", - "documentation/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.md", - "documentation/models/ApiSubscriptionGetResponseBillingType.md", - "documentation/models/ApiSubscriptionGetResponseCycle.md", - "documentation/models/ApiSubscriptionGetResponseSubscriptionStatus.md", - "documentation/models/ApiSubscriptionSplitResponseDto.md", - "documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.md", - "documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.md", - "documentation/models/ApiSubscriptionSaveRequestBillingType.md", - "documentation/models/ApiSubscriptionSaveRequestCycle.md", - "documentation/models/ApiSubscriptionSplitRequestDto.md", - "documentation/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.md", - "documentation/models/ApiSubscriptionSaveWithCreditCardRequestCycle.md", - "documentation/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.md", - "documentation/models/ApiSubscriptionSaveWithCreditCardResponseCycle.md", - "documentation/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.md", - "documentation/models/ApiSubscriptionUpdateRequestBillingType.md", - "documentation/models/ApiSubscriptionUpdateRequestSubscriptionStatus.md", - "documentation/models/ApiSubscriptionUpdateRequestCycle.md", + "documentation/models/PaymentListResponseDto.md", + "documentation/models/PaymentListRequestBillingType.md", + "documentation/models/PaymentListRequestPaymentStatus.md", + "documentation/models/PaymentListRequestInvoiceStatus.md", + "documentation/models/PaymentSaveRequestDto.md", + "documentation/models/PaymentGetResponseDto.md", + "documentation/models/PaymentSaveWithCreditCardRequestDto.md", + "documentation/models/PaymentPayWithCreditCardRequestDto.md", + "documentation/models/PaymentBillingInfoResponseDto.md", + "documentation/models/PaymentViewingInfoResponseDto.md", + "documentation/models/PaymentUpdateRequestDto.md", + "documentation/models/PaymentDeleteResponseDto.md", + "documentation/models/PaymentStatusResponseDto.md", + "documentation/models/PaymentRefundRequestDto.md", + "documentation/models/PaymentIdentificationFieldResponseDto.md", + "documentation/models/PaymentPixQrCodeResponseDto.md", + "documentation/models/PaymentReceiveInCashRequestDto.md", + "documentation/models/PaymentSimulateRequestDto.md", + "documentation/models/PaymentSimulateResponseDto.md", + "documentation/models/PaymentEscrowGetResponseDto.md", + "documentation/models/PaymentLimitsResponseDto.md", + "documentation/models/PaymentLeanListResponseDto.md", + "documentation/models/PaymentLeanGetResponseDto.md", + "documentation/models/PaymentLeanSaveWithCreditCardResponseDto.md", + "documentation/models/CreditCardTokenizeRequestDto.md", + "documentation/models/CreditCardTokenizeResponseDto.md", + "documentation/models/PaymentRefundListResponseDto.md", + "documentation/models/PaymentBankSlipRefundResponseDto.md", + "documentation/models/PaymentSplitGetResponseDto.md", + "documentation/models/PaymentSplitListResponseDto.md", + "documentation/models/PaymentSplitListPaidRequestPaymentSplitStatus.md", + "documentation/models/PaymentSplitListReceivedRequestPaymentSplitStatus.md", + "documentation/models/PaymentDocumentListResponseDto.md", + "documentation/models/PaymentDocumentSaveRequestDto.md", + "documentation/models/PaymentDocumentGetResponseDto.md", + "documentation/models/PaymentDocumentUpdateRequestDto.md", + "documentation/models/PaymentDocumentDeleteResponseDto.md", + "documentation/models/CustomerListResponseDto.md", + "documentation/models/CustomerSaveRequestDto.md", + "documentation/models/CustomerGetResponseDto.md", + "documentation/models/CustomerUpdateRequestDto.md", + "documentation/models/CustomerDeleteResponseDto.md", + "documentation/models/NotificationListResponseDto.md", + "documentation/models/NotificationUpdateRequestDto.md", + "documentation/models/NotificationGetResponseDto.md", + "documentation/models/NotificationBatchUpdateRequestDto.md", + "documentation/models/NotificationBatchUpdateResponseDto.md", + "documentation/models/InstallmentListResponseDto.md", + "documentation/models/InstallmentSaveRequestDto.md", + "documentation/models/InstallmentGetResponseDto.md", + "documentation/models/InstallmentSaveWithCreditCardRequestDto.md", + "documentation/models/InstallmentDeleteResponseDto.md", + "documentation/models/InstallmentListPaymentsRequestPaymentStatus.md", + "documentation/models/InstallmentPaymentBookResponseDto.md", + "documentation/models/InstallmentUpdateSplitRequestDto.md", + "documentation/models/InstallmentUpdateSplitResponseDto.md", + "documentation/models/SubscriptionListResponseDto.md", + "documentation/models/SubscriptionListRequestBillingType.md", + "documentation/models/SubscriptionListRequestSubscriptionStatus.md", + "documentation/models/SubscriptionSaveRequestDto.md", + "documentation/models/SubscriptionGetResponseDto.md", + "documentation/models/SubscriptionSaveWithCreditCardRequestDto.md", + "documentation/models/SubscriptionSaveWithCreditCardResponseDto.md", + "documentation/models/SubscriptionUpdateRequestDto.md", + "documentation/models/SubscriptionDeleteResponseDto.md", + "documentation/models/SubscriptionUpdateCreditCardRequestDto.md", + "documentation/models/SubscriptionListPaymentsRequestPaymentStatus.md", + "documentation/models/SubscriptionInvoiceConfigGetResponseDto.md", + "documentation/models/SubscriptionConfigureInvoiceRequestDto.md", + "documentation/models/SubscriptionInvoiceConfigUpdateRequestDto.md", + "documentation/models/SubscriptionDeleteInvoiceConfigResponseDto.md", + "documentation/models/InvoiceListResponseDto.md", + "documentation/models/SubscriptionGetInvoicesRequestInvoiceStatus.md", + "documentation/models/PixAddressKeyListResponseDto.md", + "documentation/models/PixAddressKeyListRequestPixAddressKeyStatus.md", + "documentation/models/PixAddressKeySaveRequestDto.md", + "documentation/models/PixAddressKeyGetResponseDto.md", + "documentation/models/PixQrCodeSaveRequestDto.md", + "documentation/models/PixQrCodeSaveResponseDto.md", + "documentation/models/PixQrCodeDeleteResponseDto.md", + "documentation/models/PixTokenBucketGetAddressKeyResponseDto.md", + "documentation/models/PixTransactionSaveRequestDto.md", + "documentation/models/PixTransactionGetResponseDto.md", + "documentation/models/PixQrCodeDecodeRequestDto.md", + "documentation/models/PixQrCodeDecodeResponseDto.md", + "documentation/models/PixTransactionListResponseDto.md", + "documentation/models/PixTransactionListRequestPixTransactionStatus.md", + "documentation/models/PixTransactionListRequestPixTransactionType.md", + "documentation/models/AnticipationGetResponseDto.md", + "documentation/models/AnticipationListResponseDto.md", + "documentation/models/AnticipationListRequestAnticipationStatus.md", + "documentation/models/AnticipationSaveRequestDto.md", + "documentation/models/AnticipationSimulateRequestDto.md", + "documentation/models/AnticipationSimulateResponseDto.md", + "documentation/models/AnticipationConfigurationGetResponseDto.md", + "documentation/models/AnticipationConfigurationUpdateRequestDto.md", + "documentation/models/AnticipationLimitsResponseDto.md", + "documentation/models/PixRecurringTransactionListResponseDto.md", + "documentation/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.md", + "documentation/models/PixRecurringTransactionGetResponseDto.md", + "documentation/models/RecurringPixTransactionListItemsResponseDto.md", + "documentation/models/PixRecurringTransactionGetItemResponseDto.md", + "documentation/models/PaymentLinkListResponseDto.md", + "documentation/models/PaymentLinkSaveRequestDto.md", + "documentation/models/PaymentLinkGetResponseDto.md", + "documentation/models/PaymentLinkUpdateRequestDto.md", + "documentation/models/PaymentLinkDeleteResponseDto.md", + "documentation/models/PaymentLinkFileListResponseDto.md", + "documentation/models/PaymentLinkFileSaveRequestDto.md", + "documentation/models/PaymentLinkFileGetResponseDto.md", + "documentation/models/PaymentLinkFileDeleteResponseDto.md", + "documentation/models/CheckoutSessionSaveRequestDto.md", + "documentation/models/CheckoutSessionResponseDto.md", + "documentation/models/TransferListResponseDto.md", + "documentation/models/TransferSaveRequestDto.md", + "documentation/models/TransferGetResponseDto.md", + "documentation/models/TransferSaveInternalTransferRequestDto.md", + "documentation/models/TransferSaveInternalTransferResponseDto.md", + "documentation/models/PaymentDunningListResponseDto.md", + "documentation/models/PaymentDunningListRequestPaymentDunningStatus.md", + "documentation/models/PaymentDunningListRequestPaymentDunningType.md", + "documentation/models/PaymentDunningSaveRequestDto.md", + "documentation/models/PaymentDunningShowResponseDto.md", + "documentation/models/PaymentDunningSimulateResponseDto.md", + "documentation/models/PaymentDunningListHistoryResponseDto.md", + "documentation/models/PaymentDunningListPartialPaymentsResponseDto.md", + "documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDto.md", + "documentation/models/PaymentDunningSaveDocumentsRequestDto.md", + "documentation/models/PaymentDunningSaveDocumentsResponseDto.md", + "documentation/models/PaymentDunningCancelResponseDto.md", + "documentation/models/BillListResponseDto.md", + "documentation/models/BillSaveRequestDto.md", + "documentation/models/BillGetResponseDto.md", + "documentation/models/BillSimulateRequestDto.md", + "documentation/models/BillSimulateResponseDto.md", + "documentation/models/MobilePhoneRechargeListResponseDto.md", + "documentation/models/MobilePhoneRechargeSaveRequestDto.md", + "documentation/models/MobilePhoneRechargeGetResponseDto.md", + "documentation/models/MobilePhoneRechargeFindProviderResponseDto.md", + "documentation/models/CreditBureauReportListResponseDto.md", + "documentation/models/CreditBureauReportSaveRequestDto.md", + "documentation/models/CreditBureauReportGetResponseDto.md", + "documentation/models/FinancialTransactionListResponseDto.md", + "documentation/models/FinanceBalanceResponseDto.md", + "documentation/models/FinanceGetPaymentStatisticsResponseDto.md", + "documentation/models/FinanceGetPaymentStatisticsRequestBillingType.md", + "documentation/models/FinanceGetPaymentStatisticsRequestPaymentStatus.md", + "documentation/models/FinanceGetSplitStatisticsResponseDto.md", + "documentation/models/AccountInfoGetResponseDto.md", + "documentation/models/AccountInfoSaveRequestDto.md", + "documentation/models/PaymentCheckoutConfigGetResponseDto.md", + "documentation/models/PaymentCheckoutConfigSaveRequestDto.md", + "documentation/models/MyAccountGetAccountNumberResponseDto.md", + "documentation/models/MyAccountGetAccountFeesResponseDto.md", + "documentation/models/MyAccountGetStatusResponseDto.md", + "documentation/models/WalletShowResponseDto.md", + "documentation/models/MyAccountDisableAccountResponseDto.md", + "documentation/models/InvoiceListRequestInvoiceStatus.md", + "documentation/models/InvoiceSaveRequestDto.md", + "documentation/models/InvoiceGetResponseDto.md", + "documentation/models/InvoiceUpdateRequestDto.md", + "documentation/models/InvoiceCancelRequestDto.md", + "documentation/models/FiscalInfoMunicipalOptionsGetResponseDto.md", + "documentation/models/FiscalInfoGetResponseDto.md", + "documentation/models/FiscalInfoSaveRequestDto.md", + "documentation/models/FiscalInfoListMunicipalServicesResponseDto.md", + "documentation/models/FiscalInfoListInvoiceNbsCodesResponseDto.md", + "documentation/models/FiscalInfoUpdateUseNationalPortalRequestDto.md", + "documentation/models/FiscalInfoUpdateUseNationalPortalResponseDto.md", + "documentation/models/WebhookConfigListResponseDto.md", + "documentation/models/WebhookConfigSaveRequestDto.md", + "documentation/models/WebhookConfigGetResponseDto.md", + "documentation/models/WebhookConfigUpdateRequestDto.md", + "documentation/models/WebhookConfigDeleteResponseDto.md", + "documentation/models/AccountListResponseDto.md", + "documentation/models/AccountSaveRequestDto.md", + "documentation/models/AccountSaveResponseDto.md", + "documentation/models/AccountGetResponseDto.md", + "documentation/models/AccountPaymentEscrowConfigDto.md", + "documentation/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.md", + "documentation/models/AccountDocumentShowResponseDto.md", + "documentation/models/AccountDocumentSaveRequestDto.md", + "documentation/models/AccountDocumentGetResponseDto.md", + "documentation/models/AccountDocumentUpdateRequestDto.md", + "documentation/models/AccountDocumentDeleteResponseDto.md", + "documentation/models/ChargebackSaveDisputeRequestDto.md", + "documentation/models/ChargebackSaveDisputeResponseDto.md", + "documentation/models/ChargebackListResponseDto.md", + "documentation/models/ChargebackListRequestCreditCardBrand.md", + "documentation/models/ChargebackListRequestChargebackStatus.md", + "documentation/models/PaymentChargebackResponseDto.md", + "documentation/models/PaymentGetResponseBillingType.md", + "documentation/models/PaymentSaveWithCreditCardCreditCardDto.md", + "documentation/models/PaymentGetResponsePaymentStatus.md", + "documentation/models/PaymentDiscountDto.md", + "documentation/models/PaymentFineResponseDto.md", + "documentation/models/PaymentInterestResponseDto.md", + "documentation/models/PaymentRefundGetResponseDto.md", + "documentation/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.md", + "documentation/models/PaymentDiscountDiscountType.md", + "documentation/models/PaymentSplitGetResponsePaymentSplitCancellationReason.md", + "documentation/models/PaymentSplitGetResponsePaymentSplitStatus.md", + "documentation/models/PaymentChargebackResponseChargebackStatus.md", + "documentation/models/PaymentChargebackResponseChargebackReason.md", + "documentation/models/ChargebackCreditCardResponseDto.md", + "documentation/models/PaymentChargebackResponseChargebackDisputeStatus.md", + "documentation/models/ChargebackCreditCardResponseCreditCardBrand.md", + "documentation/models/PaymentEscrowGetResponsePaymentEscrowStatus.md", + "documentation/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.md", + "documentation/models/PaymentRefundGetResponsePaymentRefundStatus.md", + "documentation/models/PaymentRefundedSplitResponseDto.md", + "documentation/models/PaymentSaveRequestBillingType.md", + "documentation/models/PaymentInterestRequestDto.md", + "documentation/models/PaymentFineRequestDto.md", + "documentation/models/PaymentSplitRequestDto.md", + "documentation/models/PaymentCallbackRequestDto.md", + "documentation/models/PaymentFineRequestFineType.md", + "documentation/models/PaymentSaveWithCreditCardRequestBillingType.md", + "documentation/models/CreditCardRequestDto.md", + "documentation/models/CreditCardHolderInfoRequestDto.md", + "documentation/models/BankSlipBillingInfoResponseDto.md", + "documentation/models/CreditCardTokenizeResponseCreditCardBrand.md", + "documentation/models/PaymentUpdateRequestBillingType.md", + "documentation/models/PaymentStatusResponsePaymentStatus.md", + "documentation/models/PaymentSimulateRequestBillingType.md", + "documentation/models/PaymentSimulateCreditCardResponseDto.md", + "documentation/models/PaymentSimulateBankSlipResponseDto.md", + "documentation/models/PaymentSimulatePixResponseDto.md", + "documentation/models/PaymentSimulateInstallmentResponseDto.md", + "documentation/models/PaymentLimitsResponseCreationDto.md", + "documentation/models/PaymentLimitsResponseCreationDailyDto.md", + "documentation/models/PaymentLeanGetResponseBillingType.md", + "documentation/models/PaymentLeanGetResponsePaymentStatus.md", + "documentation/models/PaymentLeanSaveWithCreditCardResponseBillingType.md", + "documentation/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.md", + "documentation/models/PaymentDocumentGetResponsePaymentDocumentType.md", + "documentation/models/PaymentDocumentFileResponseDto.md", + "documentation/models/PaymentDocumentSaveRequestPaymentDocumentType.md", + "documentation/models/PaymentDocumentUpdateRequestPaymentDocumentType.md", + "documentation/models/CustomerGetResponsePersonType.md", + "documentation/models/NotificationGetResponseNotificationEvent.md", + "documentation/models/NotificationGetResponseDtoScheduleOffset.md", + "documentation/models/NotificationUpdateRequestDtoScheduleOffset.md", + "documentation/models/InstallmentGetResponseBillingType.md", + "documentation/models/InstallmentRefundResponseDto.md", + "documentation/models/InstallmentRefundResponsePaymentRefundStatus.md", + "documentation/models/InstallmentSaveRequestBillingType.md", + "documentation/models/InstallmentSplitRequestDto.md", + "documentation/models/InstallmentSaveWithCreditCardRequestBillingType.md", + "documentation/models/InstallmentSplitGetResponseDto.md", + "documentation/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.md", + "documentation/models/InstallmentSplitGetResponsePaymentSplitStatus.md", + "documentation/models/SubscriptionGetResponseBillingType.md", + "documentation/models/SubscriptionGetResponseCycle.md", + "documentation/models/SubscriptionGetResponseSubscriptionStatus.md", + "documentation/models/SubscriptionSplitResponseDto.md", + "documentation/models/SubscriptionSplitResponseSubscriptionSplitStatus.md", + "documentation/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.md", + "documentation/models/SubscriptionSaveRequestBillingType.md", + "documentation/models/SubscriptionSaveRequestCycle.md", + "documentation/models/SubscriptionSplitRequestDto.md", + "documentation/models/SubscriptionSaveWithCreditCardRequestBillingType.md", + "documentation/models/SubscriptionSaveWithCreditCardRequestCycle.md", + "documentation/models/SubscriptionSaveWithCreditCardResponseBillingType.md", + "documentation/models/SubscriptionSaveWithCreditCardResponseCycle.md", + "documentation/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.md", + "documentation/models/SubscriptionUpdateRequestBillingType.md", + "documentation/models/SubscriptionUpdateRequestSubscriptionStatus.md", + "documentation/models/SubscriptionUpdateRequestCycle.md", "documentation/models/InvoiceCreationPeriod.md", - "documentation/models/ApiCustomerInvoiceTaxesDto.md", - "documentation/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md", - "documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md", - "documentation/models/ApiCustomerInvoiceGetResponseInvoiceStatus.md", - "documentation/models/ApiCustomerInvoiceGetResponseDtoType.md", - "documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyType.md", - "documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.md", - "documentation/models/ApiPixAddressKeyQrCodeGetResponseDto.md", - "documentation/models/ApiPixAddressKeySaveRequestPixAddressKeyType.md", + "documentation/models/InvoiceTaxesDto.md", + "documentation/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md", + "documentation/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md", + "documentation/models/InvoiceGetResponseInvoiceStatus.md", + "documentation/models/InvoiceGetResponseDtoType.md", + "documentation/models/PixAddressKeyGetResponsePixAddressKeyType.md", + "documentation/models/PixAddressKeyGetResponsePixAddressKeyStatus.md", + "documentation/models/PixAddressKeyQrCodeGetResponseDto.md", + "documentation/models/PixAddressKeySaveRequestPixAddressKeyType.md", "documentation/models/Format.md", - "documentation/models/ApiPixTransactionQrCodeSaveRequestDto.md", - "documentation/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.md", - "documentation/models/ApiPixTransactionGetResponsePixTransactionStatus.md", - "documentation/models/ApiPixTransactionGetResponsePixTransactionType.md", - "documentation/models/ApiPixTransactionGetResponsePixTransactionOriginType.md", - "documentation/models/ApiPixOriginalTransactionResponseDto.md", - "documentation/models/ApiPixTransactionExternalAccountResponseDto.md", - "documentation/models/ApiPixTransactionQrCodeResponseDto.md", - "documentation/models/ApiPixTransactionGetResponsePixAddressKeyType.md", - "documentation/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.md", - "documentation/models/ApiPixTransactionQrCodePayerResponseDto.md", - "documentation/models/ApiPixQrCodeDecodeResponsePixQrCodeType.md", - "documentation/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.md", - "documentation/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.md", - "documentation/models/ApiPixQrCodeDecodeReceiverDto.md", - "documentation/models/ApiPixQrCodeDecodeReceiverPersonType.md", - "documentation/models/ApiPixQrCodeDecodeReceiverPixAccountType.md", - "documentation/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.md", - "documentation/models/ApiReceivableAnticipationLimitsInfoResponseDto.md", - "documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.md", - "documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.md", - "documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.md", - "documentation/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.md", - "documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.md", - "documentation/models/ApiPaymentCampaignGetResponseChargeType.md", - "documentation/models/ApiPaymentCampaignGetResponseBillingType.md", - "documentation/models/ApiPaymentCampaignGetResponseCycle.md", - "documentation/models/ApiPaymentCampaignSaveRequestBillingType.md", - "documentation/models/ApiPaymentCampaignSaveRequestChargeType.md", - "documentation/models/ApiPaymentCampaignSaveRequestCycle.md", - "documentation/models/ApiPaymentCampaignUpdateRequestBillingType.md", - "documentation/models/ApiPaymentCampaignUpdateRequestChargeType.md", - "documentation/models/ApiPaymentCampaignUpdateRequestCycle.md", - "documentation/models/ApiPaymentCampaignFileImageResponseDto.md", - "documentation/models/ApiCheckoutSessionCallbackDto.md", - "documentation/models/ApiCheckoutSessionItemsDto.md", - "documentation/models/ApiCheckoutSessionCustomerDataDto.md", - "documentation/models/ApiCheckoutSessionSubscriptionDto.md", - "documentation/models/ApiCheckoutSessionInstallmentDto.md", - "documentation/models/ApiCheckoutSessionSplitDto.md", - "documentation/models/ApiCheckoutSessionSubscriptionCycle.md", - "documentation/models/ApiTransferGetResponseDtoType.md", - "documentation/models/ApiTransferGetResponseTransferStatus.md", - "documentation/models/ApiTransferGetResponseTransferType.md", - "documentation/models/ApiTransferBankAccountGetResponseDto.md", - "documentation/models/ApiTransferBankGetResponseDto.md", - "documentation/models/ApiTransferBankAccountSaveRequestDto.md", - "documentation/models/ApiTransferSaveRequestTransferType.md", - "documentation/models/ApiTransferSaveRequestPixAddressKeyType.md", - "documentation/models/ApiTransferRecurringSaveRequestDto.md", - "documentation/models/ApiTransferBankSaveRequestDto.md", - "documentation/models/ApiTransferBankAccountSaveRequestBankAccountType.md", - "documentation/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md", - "documentation/models/ApiTransferSaveInternalTransferResponseDtoType.md", - "documentation/models/ApiTransferSaveInternalTransferResponseTransferStatus.md", - "documentation/models/ApiTransferSaveInternalTransferResponseTransferType.md", - "documentation/models/ApiTransferSaveInternalTransferAccountDto.md", - "documentation/models/ApiPaymentDunningShowResponsePaymentDunningStatus.md", - "documentation/models/ApiPaymentDunningShowResponsePaymentDunningType.md", - "documentation/models/ApiPaymentDunningSaveRequestPaymentDunningType.md", - "documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.md", - "documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md", - "documentation/models/ApiPaymentDunningListHistoryResponseDataDto.md", - "documentation/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md", - "documentation/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.md", - "documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.md", - "documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md", - "documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md", - "documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md", - "documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md", - "documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.md", - "documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.md", - "documentation/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.md", - "documentation/models/ApiPaymentDunningCancelResponsePaymentDunningType.md", - "documentation/models/ApiBillGetResponseBillStatus.md", - "documentation/models/ApiBillSimulateBankSlipInfoResponseDto.md", - "documentation/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md", - "documentation/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.md", - "documentation/models/ApiFinancialTransactionGetResponseDto.md", - "documentation/models/ApiFinancialTransactionGetResponseFinancialTransactionType.md", - "documentation/models/ApiCustomerUpdateRequestGetResponseStatus.md", - "documentation/models/ApiCustomerUpdateRequestGetResponsePersonType.md", - "documentation/models/ApiCustomerUpdateRequestGetResponseCompanyType.md", - "documentation/models/ApiCustomerUpdateRequestCityDto.md", - "documentation/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.md", - "documentation/models/ApiCustomerUpdateRequestCityState.md", - "documentation/models/ApiCustomerUpdateRequestSaveRequestPersonType.md", - "documentation/models/ApiCustomerUpdateRequestSaveRequestCompanyType.md", - "documentation/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.md", - "documentation/models/ApiMyAccountGetAccountFeesPaymentDto.md", - "documentation/models/ApiMyAccountGetAccountFeesTransferDto.md", - "documentation/models/ApiMyAccountGetAccountFeesNotificationDto.md", - "documentation/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.md", - "documentation/models/ApiMyAccountGetAccountFeesInvoiceDto.md", - "documentation/models/ApiMyAccountGetAccountFeesAnticipationDto.md", - "documentation/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.md", - "documentation/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.md", - "documentation/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.md", - "documentation/models/ApiMyAccountGetAccountFeesPaymentPixDto.md", - "documentation/models/ApiMyAccountGetAccountFeesTransferTedDto.md", - "documentation/models/ApiMyAccountGetAccountFeesTransferPixDto.md", - "documentation/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.md", - "documentation/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.md", - "documentation/models/ApiMyAccountGetStatusResponseStatus.md", - "documentation/models/ApiWalletGetResponseDto.md", - "documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md", - "documentation/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md", - "documentation/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md", - "documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.md", - "documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.md", - "documentation/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.md", - "documentation/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.md", - "documentation/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.md", - "documentation/models/ApiCustomerGetResponsePersonType.md", - "documentation/models/ApiCustomerGetResponseCompanyType.md", - "documentation/models/ApiCustomerAccountNumberDto.md", - "documentation/models/ApiCustomerSaveRequestCompanyType.md", - "documentation/models/ApiCustomerSaveResponsePersonType.md", - "documentation/models/ApiCustomerSaveResponseCompanyType.md", - "documentation/models/ApiAccountDocumentGroupResponseDto.md", - "documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.md", - "documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentType.md", - "documentation/models/ApiAccountDocumentGroupResponsibleResponseDto.md", - "documentation/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.md", - "documentation/models/ApiAccountDocumentSaveRequestCustomerDocumentType.md", - "documentation/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.md", + "documentation/models/PixTransactionQrCodeSaveRequestDto.md", + "documentation/models/PixTransactionGetResponsePixTransactionCashValueFinality.md", + "documentation/models/PixTransactionGetResponsePixTransactionStatus.md", + "documentation/models/PixTransactionGetResponsePixTransactionType.md", + "documentation/models/PixTransactionGetResponsePixTransactionOriginType.md", + "documentation/models/PixOriginalTransactionResponseDto.md", + "documentation/models/PixTransactionExternalAccountResponseDto.md", + "documentation/models/PixTransactionQrCodeResponseDto.md", + "documentation/models/PixTransactionGetResponsePixAddressKeyType.md", + "documentation/models/PixTransactionExternalAccountResponsePixAddressKeyType.md", + "documentation/models/PixTransactionQrCodePayerResponseDto.md", + "documentation/models/PixQrCodeDecodeResponsePixQrCodeType.md", + "documentation/models/PixQrCodeDecodeResponsePixTransactionOriginType.md", + "documentation/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.md", + "documentation/models/PixQrCodeDecodeReceiverDto.md", + "documentation/models/PixQrCodeDecodeReceiverPersonType.md", + "documentation/models/PixQrCodeDecodeReceiverPixAccountType.md", + "documentation/models/AnticipationGetResponseAnticipationStatus.md", + "documentation/models/AnticipationLimitsInfoResponseDto.md", + "documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.md", + "documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.md", + "documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.md", + "documentation/models/PixRecurringTransactionExternalAccountDto.md", + "documentation/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.md", + "documentation/models/PaymentLinkGetResponseChargeType.md", + "documentation/models/PaymentLinkGetResponseBillingType.md", + "documentation/models/PaymentLinkGetResponseCycle.md", + "documentation/models/PaymentLinkSaveRequestBillingType.md", + "documentation/models/PaymentLinkSaveRequestChargeType.md", + "documentation/models/PaymentLinkSaveRequestCycle.md", + "documentation/models/PaymentLinkUpdateRequestBillingType.md", + "documentation/models/PaymentLinkUpdateRequestChargeType.md", + "documentation/models/PaymentLinkUpdateRequestCycle.md", + "documentation/models/PaymentLinkFileImageResponseDto.md", + "documentation/models/CheckoutSessionSaveRequestBillingType.md", + "documentation/models/CheckoutSessionSaveRequestChargeType.md", + "documentation/models/CheckoutSessionCallbackDto.md", + "documentation/models/CheckoutSessionItemsDto.md", + "documentation/models/CheckoutSessionCustomerDataDto.md", + "documentation/models/CheckoutSessionSubscriptionDto.md", + "documentation/models/CheckoutSessionInstallmentDto.md", + "documentation/models/CheckoutSessionSplitDto.md", + "documentation/models/CheckoutSessionSubscriptionCycle.md", + "documentation/models/CheckoutSessionResponseBillingType.md", + "documentation/models/CheckoutSessionResponseChargeType.md", + "documentation/models/TransferGetResponseDtoType.md", + "documentation/models/TransferGetResponseTransferStatus.md", + "documentation/models/TransferGetResponseTransferType.md", + "documentation/models/TransferBankAccountGetResponseDto.md", + "documentation/models/TransferBankGetResponseDto.md", + "documentation/models/TransferBankAccountSaveRequestDto.md", + "documentation/models/TransferSaveRequestTransferType.md", + "documentation/models/TransferSaveRequestPixAddressKeyType.md", + "documentation/models/TransferRecurringSaveRequestDto.md", + "documentation/models/TransferBankSaveRequestDto.md", + "documentation/models/TransferBankAccountSaveRequestBankAccountType.md", + "documentation/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md", + "documentation/models/TransferSaveInternalTransferResponseDtoType.md", + "documentation/models/TransferSaveInternalTransferResponseTransferStatus.md", + "documentation/models/TransferSaveInternalTransferResponseTransferType.md", + "documentation/models/TransferSaveInternalTransferAccountDto.md", + "documentation/models/PaymentDunningShowResponsePaymentDunningStatus.md", + "documentation/models/PaymentDunningShowResponsePaymentDunningType.md", + "documentation/models/PaymentDunningSaveRequestPaymentDunningType.md", + "documentation/models/PaymentDunningSimulateResponseTypeSimulationItemDto.md", + "documentation/models/PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md", + "documentation/models/PaymentDunningListHistoryResponseDataDto.md", + "documentation/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md", + "documentation/models/PaymentDunningListPartialPaymentsResponseDataDto.md", + "documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.md", + "documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md", + "documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md", + "documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md", + "documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md", + "documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.md", + "documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.md", + "documentation/models/PaymentDunningCancelResponsePaymentDunningStatus.md", + "documentation/models/PaymentDunningCancelResponsePaymentDunningType.md", + "documentation/models/BillGetResponseBillStatus.md", + "documentation/models/BillSimulateBankSlipInfoResponseDto.md", + "documentation/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md", + "documentation/models/MobilePhoneRechargeFindProviderResponseValuesDto.md", + "documentation/models/FinancialTransactionGetResponseDto.md", + "documentation/models/FinancialTransactionGetResponseFinancialTransactionType.md", + "documentation/models/AccountInfoGetResponseStatus.md", + "documentation/models/AccountInfoGetResponsePersonType.md", + "documentation/models/AccountInfoGetResponseCompanyType.md", + "documentation/models/AccountInfoCityDto.md", + "documentation/models/AccountInfoCommercialInfoExpirationResponseDto.md", + "documentation/models/AccountInfoCityState.md", + "documentation/models/AccountInfoSaveRequestPersonType.md", + "documentation/models/AccountInfoSaveRequestCompanyType.md", + "documentation/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.md", + "documentation/models/MyAccountGetAccountFeesPaymentDto.md", + "documentation/models/MyAccountGetAccountFeesTransferDto.md", + "documentation/models/MyAccountGetAccountFeesNotificationDto.md", + "documentation/models/MyAccountGetAccountFeesCreditBureauReportDto.md", + "documentation/models/MyAccountGetAccountFeesInvoiceDto.md", + "documentation/models/MyAccountGetAccountFeesAnticipationDto.md", + "documentation/models/MyAccountGetAccountFeesPaymentBankSlipDto.md", + "documentation/models/MyAccountGetAccountFeesPaymentCreditCardDto.md", + "documentation/models/MyAccountGetAccountFeesPaymentDebitCardDto.md", + "documentation/models/MyAccountGetAccountFeesPaymentPixDto.md", + "documentation/models/MyAccountGetAccountFeesTransferTedDto.md", + "documentation/models/MyAccountGetAccountFeesTransferPixDto.md", + "documentation/models/MyAccountGetAccountFeesAnticipationCreditCardDto.md", + "documentation/models/MyAccountGetAccountFeesAnticipationBankSlipDto.md", + "documentation/models/MyAccountGetStatusResponseStatus.md", + "documentation/models/WalletGetResponseDto.md", + "documentation/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md", + "documentation/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md", + "documentation/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md", + "documentation/models/FiscalInfoListMunicipalServicesResponseDataDto.md", + "documentation/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.md", + "documentation/models/WebhookConfigGetResponseWebhookSendType.md", + "documentation/models/WebhookConfigGetResponseWebhookEvent.md", + "documentation/models/WebhookConfigSaveRequestWebhookSendType.md", + "documentation/models/WebhookConfigSaveRequestWebhookEvent.md", + "documentation/models/WebhookConfigUpdateRequestWebhookSendType.md", + "documentation/models/WebhookConfigUpdateRequestWebhookEvent.md", + "documentation/models/AccountGetResponsePersonType.md", + "documentation/models/AccountGetResponseCompanyType.md", + "documentation/models/AccountNumberDto.md", + "documentation/models/AccountSaveRequestCompanyType.md", + "documentation/models/AccountSaveResponsePersonType.md", + "documentation/models/AccountSaveResponseCompanyType.md", + "documentation/models/AccountDocumentGroupResponseDto.md", + "documentation/models/AccountDocumentGroupResponseAccountDocumentStatus.md", + "documentation/models/AccountDocumentGroupResponseAccountDocumentType.md", + "documentation/models/AccountDocumentResponsibleResponseDto.md", + "documentation/models/AccountDocumentResponsibleResponseAccountDocumentResponsibleType.md", + "documentation/models/AccountDocumentGetResponseAccountDocumentStatus.md", + "documentation/models/AccountDocumentSaveRequestAccountDocumentType.md", + "documentation/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.md", "documentation/models/ListPaymentsParameters.md", "documentation/models/ListPaymentsWithSummaryDataParameters.md", "documentation/models/ListPaidSplitsParameters.md", @@ -694,20 +704,20 @@ "documentation/models/ListWebhooksParameters.md", "documentation/models/ListSubaccountsParameters.md", "documentation/models/ListChargebacksParameters.md", - "documentation/models/ApiErrorResponseDto.md", - "documentation/models/ApiErrorResponseItemDto.md", + "documentation/models/ErrorResponseDto.md", + "documentation/models/ErrorResponseItemDto.md", "src/main/java/com/asaas/apisdk/json/TypeUtils.java", "examples/pom.xml", "examples/run.sh", "examples/src/main/java/com/example/Main.java", "examples/.gitignore", - "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiPixQrCodeSaveRequestDtoValidator.java", - "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionSaveRequestDtoValidator.java", - "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionResponseDtoValidator.java", - "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiTransferSaveRequestDtoValidator.java", - "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionItemsDtoValidator.java", - "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionInstallmentDtoValidator.java", - "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiTransferRecurringSaveRequestDtoValidator.java", + "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/PixQrCodeSaveRequestDtoValidator.java", + "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionSaveRequestDtoValidator.java", + "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionResponseDtoValidator.java", + "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/TransferSaveRequestDtoValidator.java", + "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionItemsDtoValidator.java", + "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionInstallmentDtoValidator.java", + "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/TransferRecurringSaveRequestDtoValidator.java", "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ListPaymentsParametersValidator.java", "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ListPaymentsWithSummaryDataParametersValidator.java", "src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ListPaidSplitsParametersValidator.java", @@ -743,249 +753,260 @@ ".idea/jarRepositories.xml", "src/main/java/com/asaas/apisdk/http/util/RequestBuilder.java", "examples/README.md", - "src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestPaymentStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestInvoiceStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentListPaymentsRequestPaymentStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestSubscriptionStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionListPaymentsRequestPaymentStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionType.java", - "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningType.java", - "src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListRequestInvoiceStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestCreditCardBrand.java", - "src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestChargebackStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponsePaymentStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDiscountType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackReason.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackDisputeStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseCreditCardBrand.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponsePaymentRefundStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestFineType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseCreditCardBrand.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponsePaymentStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponsePaymentStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponsePaymentDocumentType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponsePersonType.java", - "src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseNotificationEvent.java", - "src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDtoScheduleOffset.java", - "src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDtoScheduleOffset.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponsePaymentRefundStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseCycle.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseSubscriptionStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestCycle.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestCycle.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseCycle.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestSubscriptionStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestCycle.java", + ".env.example", + "src/main/java/com/asaas/apisdk/models/PaymentListRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/PaymentListRequestPaymentStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentListRequestInvoiceStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentSplitListPaidRequestPaymentSplitStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentSplitListReceivedRequestPaymentSplitStatus.java", + "src/main/java/com/asaas/apisdk/models/InstallmentListPaymentsRequestPaymentStatus.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionListRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionListRequestSubscriptionStatus.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionListPaymentsRequestPaymentStatus.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionGetInvoicesRequestInvoiceStatus.java", + "src/main/java/com/asaas/apisdk/models/PixAddressKeyListRequestPixAddressKeyStatus.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionStatus.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionType.java", + "src/main/java/com/asaas/apisdk/models/AnticipationListRequestAnticipationStatus.java", + "src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningType.java", + "src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestPaymentStatus.java", + "src/main/java/com/asaas/apisdk/models/InvoiceListRequestInvoiceStatus.java", + "src/main/java/com/asaas/apisdk/models/ChargebackListRequestCreditCardBrand.java", + "src/main/java/com/asaas/apisdk/models/ChargebackListRequestChargebackStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentGetResponseBillingType.java", + "src/main/java/com/asaas/apisdk/models/PaymentGetResponsePaymentStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.java", + "src/main/java/com/asaas/apisdk/models/PaymentDiscountDiscountType.java", + "src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitCancellationReason.java", + "src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackReason.java", + "src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackDisputeStatus.java", + "src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseCreditCardBrand.java", + "src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.java", + "src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponsePaymentRefundStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentSaveRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/PaymentFineRequestFineType.java", + "src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseCreditCardBrand.java", + "src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/PaymentStatusResponsePaymentStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseBillingType.java", + "src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponsePaymentStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseBillingType.java", + "src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponsePaymentDocumentType.java", + "src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestPaymentDocumentType.java", + "src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestPaymentDocumentType.java", + "src/main/java/com/asaas/apisdk/models/CustomerGetResponsePersonType.java", + "src/main/java/com/asaas/apisdk/models/NotificationGetResponseNotificationEvent.java", + "src/main/java/com/asaas/apisdk/models/NotificationGetResponseDtoScheduleOffset.java", + "src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDtoScheduleOffset.java", + "src/main/java/com/asaas/apisdk/models/InstallmentGetResponseBillingType.java", + "src/main/java/com/asaas/apisdk/models/InstallmentRefundResponsePaymentRefundStatus.java", + "src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.java", + "src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitStatus.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseBillingType.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseCycle.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseSubscriptionStatus.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitStatus.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestCycle.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestCycle.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseBillingType.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseCycle.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestSubscriptionStatus.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestCycle.java", "src/main/java/com/asaas/apisdk/models/InvoiceCreationPeriod.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseInvoiceStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDtoType.java", - "src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyType.java", - "src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestPixAddressKeyType.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java", + "src/main/java/com/asaas/apisdk/models/InvoiceGetResponseInvoiceStatus.java", + "src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDtoType.java", + "src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyType.java", + "src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyStatus.java", + "src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestPixAddressKeyType.java", "src/main/java/com/asaas/apisdk/models/Format.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionType.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionOriginType.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixAddressKeyType.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.java", - "src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixQrCodeType.java", - "src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.java", - "src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.java", - "src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPersonType.java", - "src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPixAccountType.java", - "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseChargeType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseCycle.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestChargeType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestCycle.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestChargeType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestCycle.java", - "src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionCycle.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDtoType.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferType.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestTransferType.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestPixAddressKeyType.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestBankAccountType.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDtoType.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestPaymentDunningType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningType.java", - "src/main/java/com/asaas/apisdk/models/ApiBillGetResponseBillStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseFinancialTransactionType.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponsePersonType.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseCompanyType.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityState.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestPersonType.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestCompanyType.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java", - "src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.java", - "src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.java", - "src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponsePersonType.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseCompanyType.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestCompanyType.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponsePersonType.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseCompanyType.java", - "src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentType.java", - "src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestCustomerDocumentType.java", - "src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.java", - "src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiAccountDocumentUpdateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferBankSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionCashValueFinality.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionStatus.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionType.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionOriginType.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixAddressKeyType.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponsePixAddressKeyType.java", + "src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixQrCodeType.java", + "src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionOriginType.java", + "src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.java", + "src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPersonType.java", + "src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPixAccountType.java", + "src/main/java/com/asaas/apisdk/models/AnticipationGetResponseAnticipationStatus.java", + "src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.java", + "src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.java", + "src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.java", + "src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseChargeType.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseBillingType.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseCycle.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestChargeType.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestCycle.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestChargeType.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestCycle.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestBillingType.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestChargeType.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionCycle.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseBillingType.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseChargeType.java", + "src/main/java/com/asaas/apisdk/models/TransferGetResponseDtoType.java", + "src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferStatus.java", + "src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferType.java", + "src/main/java/com/asaas/apisdk/models/TransferSaveRequestTransferType.java", + "src/main/java/com/asaas/apisdk/models/TransferSaveRequestPixAddressKeyType.java", + "src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestBankAccountType.java", + "src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java", + "src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDtoType.java", + "src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferStatus.java", + "src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferType.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningType.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestPaymentDunningType.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningStatus.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningType.java", + "src/main/java/com/asaas/apisdk/models/BillGetResponseBillStatus.java", + "src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java", + "src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseFinancialTransactionType.java", + "src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseStatus.java", + "src/main/java/com/asaas/apisdk/models/AccountInfoGetResponsePersonType.java", + "src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseCompanyType.java", + "src/main/java/com/asaas/apisdk/models/AccountInfoCityState.java", + "src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestPersonType.java", + "src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestCompanyType.java", + "src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseStatus.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java", + "src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookSendType.java", + "src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookEvent.java", + "src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookSendType.java", + "src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookEvent.java", + "src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookSendType.java", + "src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookEvent.java", + "src/main/java/com/asaas/apisdk/models/AccountGetResponsePersonType.java", + "src/main/java/com/asaas/apisdk/models/AccountGetResponseCompanyType.java", + "src/main/java/com/asaas/apisdk/models/AccountSaveRequestCompanyType.java", + "src/main/java/com/asaas/apisdk/models/AccountSaveResponsePersonType.java", + "src/main/java/com/asaas/apisdk/models/AccountSaveResponseCompanyType.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentStatus.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentType.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseAccountDocumentResponsibleType.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseAccountDocumentStatus.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestAccountDocumentType.java", + "src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.java", + "src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsRequestDto.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalRequestDto.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeRequestDto.java", + "src/main/java/com/asaas/apisdk/models/TransferBankSaveRequestDto.java", "src/main/java/com/asaas/apisdk/services/EscrowAccountService.java", "documentation/services/CreditCardService.md", "documentation/services/EscrowAccountService.md", "documentation/services/FinancialTransactionService.md", - "src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentBankSlipRefundResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiFinanceBalanceResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountDisableAccountResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceCancelRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentFineResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentInterestResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentInterestRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionInstallmentDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesInvoiceDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentStatusResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentBankSlipRefundResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateResponseDto.java", + "src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitRequestDto.java", + "src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixAddressKeyListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AnticipationConfigurationGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AnticipationConfigurationUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListItemsResponseDto.java", + "src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/FinanceBalanceResponseDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountDisableAccountResponseDto.java", + "src/main/java/com/asaas/apisdk/models/InvoiceCancelRequestDto.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentFineResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentInterestResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentInterestRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDto.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionInstallmentDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesInvoiceDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationBankSlipDto.java", "src/main/java/com/asaas/apisdk/models/ListPaymentsOfAInstallmentParameters.java", "src/main/java/com/asaas/apisdk/models/ListPaymentsOfASubscriptionParameters.java", "src/main/java/com/asaas/apisdk/models/DeleteWhiteLabelSubaccountParameters.java", - "src/main/java/com/asaas/apisdk/models/ApiErrorResponseDto.java", + "src/main/java/com/asaas/apisdk/models/ErrorResponseDto.java", "documentation/services/SandboxActionsService.md", "documentation/services/PaymentRefundService.md", "documentation/services/NotificationService.md", "documentation/services/CheckoutService.md", - "src/main/java/com/asaas/apisdk/models/ApiPaymentViewingInfoResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDeleteResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentRefundRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentDeleteResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerAccountDeleteResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentDeleteResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDeleteResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTokenBucketGetAddressKeyResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignDeleteResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileDeleteResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiBillSimulateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiFinanceGetSplitStatisticsResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigDeleteResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiAccountDocumentShowResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiAccountDocumentDeleteResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCallbackRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateInstallmentResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyQrCodeGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodePayerResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsInfoResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCallbackDto.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferTedDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.java", - "src/main/java/com/asaas/apisdk/models/ApiWalletGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.java", - "src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponsibleResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentViewingInfoResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDeleteResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentRefundRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDocumentDeleteResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CustomerDeleteResponseDto.java", + "src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/InstallmentDeleteResponseDto.java", + "src/main/java/com/asaas/apisdk/models/InstallmentPaymentBookResponseDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionDeleteResponseDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionDeleteInvoiceConfigResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixQrCodeDeleteResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixTokenBucketGetAddressKeyResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeRequestDto.java", + "src/main/java/com/asaas/apisdk/models/AnticipationSimulateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/AnticipationLimitsResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkDeleteResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkFileSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkFileDeleteResponseDto.java", + "src/main/java/com/asaas/apisdk/models/BillSimulateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CreditBureauReportSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/FinanceGetSplitStatisticsResponseDto.java", + "src/main/java/com/asaas/apisdk/models/WebhookConfigDeleteResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentShowResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentDeleteResponseDto.java", + "src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentFineRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentCallbackRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSimulateInstallmentResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixAddressKeyQrCodeGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionQrCodePayerResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AnticipationLimitsInfoResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionCallbackDto.java", + "src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/AccountInfoCommercialInfoExpirationResponseDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesCreditBureauReportDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferTedDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationCreditCardDto.java", + "src/main/java/com/asaas/apisdk/models/WalletGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseDto.java", "src/main/java/com/asaas/apisdk/models/ListInstallmentsParameters.java", "src/main/java/com/asaas/apisdk/models/GenerateInstallmentBookletParameters.java", "src/main/java/com/asaas/apisdk/models/ListRecurrenceItemsParameters.java", @@ -996,57 +1017,61 @@ "src/main/java/com/asaas/apisdk/models/ListBillPaymentsParameters.java", "src/main/java/com/asaas/apisdk/models/ListMobileRechargesParameters.java", "src/main/java/com/asaas/apisdk/models/ListWebhooksParameters.java", - "src/main/java/com/asaas/apisdk/models/ApiErrorResponseItemDto.java", + "src/main/java/com/asaas/apisdk/models/ErrorResponseItemDto.java", "src/main/java/com/asaas/apisdk/services/CreditCardService.java", "src/main/java/com/asaas/apisdk/services/FinancialTransactionService.java", "documentation/services/CreditBureauReportService.md", "documentation/services/FinanceService.md", "documentation/services/ChargebackService.md", - "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/ApiCreditCardTokenizeResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiBillSimulateResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountNumberResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerPaymentCustodyConfigDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentRefundedSplitResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateBankSlipResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDailyDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionDto.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferBankGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesNotificationDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerAccountNumberDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentPayWithCreditCardRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentBillingInfoResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentIdentificationFieldResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentPixQrCodeResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentReceiveInCashRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/CreditCardTokenizeRequestDto.java", + "src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AnticipationSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkFileGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseDto.java", + "src/main/java/com/asaas/apisdk/models/BillSimulateResponseDto.java", + "src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsResponseDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountNumberResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AccountPaymentEscrowConfigDto.java", + "src/main/java/com/asaas/apisdk/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.java", + "src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDiscountDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentRefundedSplitResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSimulateBankSlipResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDailyDto.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionDto.java", + "src/main/java/com/asaas/apisdk/models/TransferBankGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningListPartialPaymentsResponseDataDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesNotificationDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDebitCardDto.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDataDto.java", + "src/main/java/com/asaas/apisdk/models/AccountNumberDto.java", "src/main/java/com/asaas/apisdk/models/ListMunicipalServicesParameters.java", "src/main/java/com/asaas/apisdk/models/ListNbsCodesParameters.java", "src/main/java/com/asaas/apisdk/services/SandboxActionsService.java", "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/ApiCreditCardRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateCreditCardResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSimulatePixResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixOriginalTransactionResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSplitDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferPixDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSimulateResponseDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionUpdateCreditCardRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/CreditCardRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSimulateCreditCardResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSimulatePixResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixOriginalTransactionResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixRecurringTransactionExternalAccountDto.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionSplitDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentBankSlipDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferPixDto.java", "src/main/java/com/asaas/apisdk/models/GenerateSignatureBookletParameters.java", "src/main/java/com/asaas/apisdk/models/ListKeysParameters.java", "src/main/java/com/asaas/apisdk/models/ListCreditBureauReportsParameters.java", @@ -1059,17 +1084,15 @@ "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", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileImageResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionItemsDto.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferAccountDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseDto.java", + "src/main/java/com/asaas/apisdk/models/BankSlipBillingInfoResponseDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSplitRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkFileImageResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionItemsDto.java", + "src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferAccountDto.java", + "src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseValuesDto.java", "src/main/java/com/asaas/apisdk/models/ListTransactionsParameters.java", "src/main/java/com/asaas/apisdk/models/ListAnticipationsParameters.java", "src/main/java/com/asaas/apisdk/models/ListRecurrencesParameters.java", @@ -1079,74 +1102,72 @@ "src/main/java/com/asaas/apisdk/services/CheckoutService.java", "documentation/services/InvoiceService.md", "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", - "src/main/java/com/asaas/apisdk/models/ApiCustomerAccountListResponseDto.java", - "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", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiBillListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiWalletShowResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiChargebackListResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentSplitRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentFileResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceTaxesDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLeanListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentRefundListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSplitListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDocumentListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CustomerListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/NotificationListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/InstallmentListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/InvoiceListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixQrCodeSaveResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AnticipationListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixRecurringTransactionListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkFileListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/TransferListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningListPartialPaymentsResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDto.java", + "src/main/java/com/asaas/apisdk/models/BillListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CreditBureauReportListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CreditBureauReportGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/FinancialTransactionListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesResponseDto.java", + "src/main/java/com/asaas/apisdk/models/WalletShowResponseDto.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDto.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDto.java", + "src/main/java/com/asaas/apisdk/models/WebhookConfigListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AccountListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/ChargebackListResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSplitRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDocumentFileResponseDto.java", + "src/main/java/com/asaas/apisdk/models/InvoiceTaxesDto.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseTypeSimulationItemDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java", "src/main/java/com/asaas/apisdk/models/ListPaymentsLinksParameters.java", "src/main/java/com/asaas/apisdk/models/ListSubaccountsParameters.java", "documentation/services/CustomerService.md", "documentation/services/PixService.md", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/InstallmentSplitRequestDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.java", + "src/main/java/com/asaas/apisdk/models/AccountInfoCityDto.java", "src/main/java/com/asaas/apisdk/models/ListCustomersParameters.java", "src/main/java/com/asaas/apisdk/models/ListInvoicesForSubscriptionChargesParameters.java", "src/main/java/com/asaas/apisdk/models/ListPaymentDunningsParameters.java", "documentation/services/AnticipationService.md", "README.md", - "src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceUpdateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCreditCardHolderInfoRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentPixDto.java", + "src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixQrCodeSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/InvoiceUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CreditCardHolderInfoRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeResponseDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentPixDto.java", "src/main/java/com/asaas/apisdk/models/ListPaidSplitsParameters.java", "src/main/java/com/asaas/apisdk/models/ListReceivedSplitsParameters.java", "src/main/java/com/asaas/apisdk/models/ListChargebacksParameters.java", @@ -1155,99 +1176,99 @@ "documentation/services/InstallmentService.md", "documentation/services/PaymentDunningService.md", "documentation/services/AccountInfoService.md", - "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/ApiCheckoutSessionResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiBillSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseDto.java", + "src/main/java/com/asaas/apisdk/models/TransferSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/BillSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/InstallmentRefundResponseDto.java", + "src/main/java/com/asaas/apisdk/models/TransferBankAccountGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseDto.java", "src/main/java/com/asaas/apisdk/models/ListInvoicesParameters.java", - "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", - "src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDto.java", + "src/main/java/com/asaas/apisdk/models/AnticipationSimulateResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CheckoutSessionCustomerDataDto.java", + "src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestDto.java", "src/main/java/com/asaas/apisdk/services/CreditBureauReportService.java", "documentation/services/PaymentWithSummaryDataService.md", "documentation/services/PaymentLinkService.md", - "src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.java", + "src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentCreditCardDto.java", "src/main/java/com/asaas/apisdk/models/ListSubscriptionsParameters.java", "src/main/java/com/asaas/apisdk/models/BillingStatisticsParameters.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseDto.java", "src/main/java/com/asaas/apisdk/services/PaymentDocumentService.java", "src/main/java/com/asaas/apisdk/services/AccountDocumentService.java", - "src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/NotificationGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseDto.java", "src/main/java/com/asaas/apisdk/services/PaymentSplitService.java", "documentation/services/SubscriptionService.md", - "src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestDto.java", - "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/InstallmentSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/AnticipationGetResponseDto.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", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/InvoiceSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AccountSaveRequestDto.java", "src/main/java/com/asaas/apisdk/services/MobilePhoneRechargeService.java", "src/main/java/com/asaas/apisdk/services/WebhookService.java", "src/main/java/com/asaas/apisdk/services/SubaccountService.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseDto.java", - "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/ApiBillGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/FiscalInfoSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/BillSimulateBankSlipInfoResponseDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestDto.java", + "src/main/java/com/asaas/apisdk/models/BillGetResponseDto.java", "src/main/java/com/asaas/apisdk/services/PixTransactionService.java", "src/main/java/com/asaas/apisdk/services/TransferService.java", "src/main/java/com/asaas/apisdk/services/BillService.java", - "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/ApiTransferGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/CustomerSaveRequestDto.java", + "src/main/java/com/asaas/apisdk/models/CustomerUpdateRequestDto.java", + "src/main/java/com/asaas/apisdk/models/InstallmentGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestDto.java", + "src/main/java/com/asaas/apisdk/models/TransferGetResponseDto.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/SubscriptionGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestDto.java", + "src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponseDto.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/models/AccountInfoGetResponseDto.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", + "src/main/java/com/asaas/apisdk/models/CustomerGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AccountGetResponseDto.java", "src/main/java/com/asaas/apisdk/models/ListPaymentsParameters.java", "src/main/java/com/asaas/apisdk/models/ListPaymentsWithSummaryDataParameters.java", "src/main/java/com/asaas/apisdk/services/PixService.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseDto.java", + "src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/AccountSaveResponseDto.java", "src/main/java/com/asaas/apisdk/services/AnticipationService.java", - "src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PixTransactionGetResponseDto.java", "src/main/java/com/asaas/apisdk/services/AccountInfoService.java", "src/main/java/com/asaas/apisdk/services/InstallmentService.java", "src/main/java/com/asaas/apisdk/services/PaymentDunningService.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseDto.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseDto.java", "src/main/java/com/asaas/apisdk/services/PaymentLinkService.java", "src/main/java/com/asaas/apisdk/services/PaymentWithSummaryDataService.java", - "src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseDto.java", + "src/main/java/com/asaas/apisdk/models/PaymentGetResponseDto.java", "src/main/java/com/asaas/apisdk/services/SubscriptionService.java", "src/main/java/com/asaas/apisdk/services/PaymentService.java" ] diff --git a/README.md b/README.md index 154559d..8cb0504 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# AsaasSdk Java SDK 1.0.1 +# AsaasSdk Java SDK 1.0.2 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.1` +- SDK version: `1.0.2` ## 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.1 + 1.0.2 ``` 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.1 +implementation group: com.asaas, name: api-sdk, version: 1.0.2 ``` If you use JAR files, package the SDK by running the following command: @@ -158,11 +158,11 @@ import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.models.ApiPaymentListRequestBillingType; -import com.asaas.apisdk.models.ApiPaymentListRequestInvoiceStatus; -import com.asaas.apisdk.models.ApiPaymentListRequestPaymentStatus; -import com.asaas.apisdk.models.ApiPaymentListResponseDto; import com.asaas.apisdk.models.ListPaymentsParameters; +import com.asaas.apisdk.models.PaymentListRequestBillingType; +import com.asaas.apisdk.models.PaymentListRequestInvoiceStatus; +import com.asaas.apisdk.models.PaymentListRequestPaymentStatus; +import com.asaas.apisdk.models.PaymentListResponseDto; public class Main { @@ -179,12 +179,12 @@ public class Main { .limit(10L) .customer("customer") .customerGroupName("customerGroupName") - .billingType(ApiPaymentListRequestBillingType.UNDEFINED) - .status(ApiPaymentListRequestPaymentStatus.PENDING) + .billingType(PaymentListRequestBillingType.UNDEFINED) + .status(PaymentListRequestPaymentStatus.PENDING) .subscription("subscription") .externalReference("externalReference") .paymentDate("paymentDate") - .invoiceStatus(ApiPaymentListRequestInvoiceStatus.SCHEDULED) + .invoiceStatus(PaymentListRequestInvoiceStatus.SCHEDULED) .estimatedCreditDate("estimatedCreditDate") .pixQrCodeId("pixQrCodeId") .anticipated(false) @@ -201,7 +201,7 @@ public class Main { .build(); try { - ApiPaymentListResponseDto response = asaasSdk.payment.listPayments(requestParameters); + PaymentListResponseDto response = asaasSdk.payment.listPayments(requestParameters); System.out.println(response); } catch (ApiError e) { @@ -265,441 +265,451 @@ The SDK includes several models that represent the data structures used in API r
Below is a list of all available models with links to their detailed documentation: -| Name | Description | -| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------- | -| [ApiPaymentListResponseDto](documentation/models/ApiPaymentListResponseDto.md) | | -| [ApiPaymentListRequestBillingType](documentation/models/ApiPaymentListRequestBillingType.md) | Filter by billing type | -| [ApiPaymentListRequestPaymentStatus](documentation/models/ApiPaymentListRequestPaymentStatus.md) | Filter by status | -| [ApiPaymentListRequestInvoiceStatus](documentation/models/ApiPaymentListRequestInvoiceStatus.md) | Filter to return charges that have or do not have an invoice | -| [ApiPaymentSaveRequestDto](documentation/models/ApiPaymentSaveRequestDto.md) | | -| [ApiPaymentGetResponseDto](documentation/models/ApiPaymentGetResponseDto.md) | | -| [ApiPaymentSaveWithCreditCardRequestDto](documentation/models/ApiPaymentSaveWithCreditCardRequestDto.md) | | -| [ApiPaymentPayWithCreditCardRequestDto](documentation/models/ApiPaymentPayWithCreditCardRequestDto.md) | | -| [ApiPaymentBillingInfoResponseDto](documentation/models/ApiPaymentBillingInfoResponseDto.md) | | -| [ApiPaymentViewingInfoResponseDto](documentation/models/ApiPaymentViewingInfoResponseDto.md) | | -| [ApiPaymentUpdateRequestDto](documentation/models/ApiPaymentUpdateRequestDto.md) | | -| [ApiPaymentDeleteResponseDto](documentation/models/ApiPaymentDeleteResponseDto.md) | | -| [ApiPaymentStatusResponseDto](documentation/models/ApiPaymentStatusResponseDto.md) | | -| [ApiPaymentRefundRequestDto](documentation/models/ApiPaymentRefundRequestDto.md) | | -| [ApiPaymentIdentificationFieldResponseDto](documentation/models/ApiPaymentIdentificationFieldResponseDto.md) | | -| [ApiPaymentPixQrCodeResponseDto](documentation/models/ApiPaymentPixQrCodeResponseDto.md) | | -| [ApiPaymentReceiveInCashRequestDto](documentation/models/ApiPaymentReceiveInCashRequestDto.md) | | -| [ApiPaymentSimulateRequestDto](documentation/models/ApiPaymentSimulateRequestDto.md) | | -| [ApiPaymentSimulateResponseDto](documentation/models/ApiPaymentSimulateResponseDto.md) | | -| [ApiPaymentCustodyGetResponseDto](documentation/models/ApiPaymentCustodyGetResponseDto.md) | | -| [ApiPaymentLimitsResponseDto](documentation/models/ApiPaymentLimitsResponseDto.md) | | -| [ApiPaymentLeanListResponseDto](documentation/models/ApiPaymentLeanListResponseDto.md) | | -| [ApiPaymentLeanGetResponseDto](documentation/models/ApiPaymentLeanGetResponseDto.md) | | -| [ApiPaymentLeanSaveWithCreditCardResponseDto](documentation/models/ApiPaymentLeanSaveWithCreditCardResponseDto.md) | | -| [ApiCreditCardTokenizeRequestDto](documentation/models/ApiCreditCardTokenizeRequestDto.md) | | -| [ApiCreditCardTokenizeResponseDto](documentation/models/ApiCreditCardTokenizeResponseDto.md) | | -| [ApiPaymentRefundListResponseDto](documentation/models/ApiPaymentRefundListResponseDto.md) | | -| [ApiPaymentBankSlipRefundResponseDto](documentation/models/ApiPaymentBankSlipRefundResponseDto.md) | | -| [ApiPaymentSplitGetResponseDto](documentation/models/ApiPaymentSplitGetResponseDto.md) | | -| [ApiPaymentSplitListResponseDto](documentation/models/ApiPaymentSplitListResponseDto.md) | | -| [ApiPaymentSplitListPaidRequestPaymentSplitStatus](documentation/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.md) | Filter by status | -| [ApiPaymentSplitListReceivedRequestPaymentSplitStatus](documentation/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.md) | Filter by status | -| [ApiPaymentDocumentListResponseDto](documentation/models/ApiPaymentDocumentListResponseDto.md) | | -| [ApiPaymentDocumentSaveRequestDto](documentation/models/ApiPaymentDocumentSaveRequestDto.md) | | -| [ApiPaymentDocumentGetResponseDto](documentation/models/ApiPaymentDocumentGetResponseDto.md) | | -| [ApiPaymentDocumentUpdateRequestDto](documentation/models/ApiPaymentDocumentUpdateRequestDto.md) | | -| [ApiPaymentDocumentDeleteResponseDto](documentation/models/ApiPaymentDocumentDeleteResponseDto.md) | | -| [ApiCustomerAccountListResponseDto](documentation/models/ApiCustomerAccountListResponseDto.md) | | -| [ApiCustomerAccountSaveRequestDto](documentation/models/ApiCustomerAccountSaveRequestDto.md) | | -| [ApiCustomerAccountGetResponseDto](documentation/models/ApiCustomerAccountGetResponseDto.md) | | -| [ApiCustomerAccountUpdateRequestDto](documentation/models/ApiCustomerAccountUpdateRequestDto.md) | | -| [ApiCustomerAccountDeleteResponseDto](documentation/models/ApiCustomerAccountDeleteResponseDto.md) | | -| [ApiNotificationListResponseDto](documentation/models/ApiNotificationListResponseDto.md) | | -| [ApiNotificationUpdateRequestDto](documentation/models/ApiNotificationUpdateRequestDto.md) | | -| [ApiNotificationGetResponseDto](documentation/models/ApiNotificationGetResponseDto.md) | | -| [ApiNotificationBatchUpdateRequestDto](documentation/models/ApiNotificationBatchUpdateRequestDto.md) | | -| [ApiNotificationBatchUpdateResponseDto](documentation/models/ApiNotificationBatchUpdateResponseDto.md) | | -| [ApiInstallmentListResponseDto](documentation/models/ApiInstallmentListResponseDto.md) | | -| [ApiInstallmentSaveRequestDto](documentation/models/ApiInstallmentSaveRequestDto.md) | | -| [ApiInstallmentGetResponseDto](documentation/models/ApiInstallmentGetResponseDto.md) | | -| [ApiInstallmentSaveWithCreditCardRequestDto](documentation/models/ApiInstallmentSaveWithCreditCardRequestDto.md) | | -| [ApiInstallmentDeleteResponseDto](documentation/models/ApiInstallmentDeleteResponseDto.md) | | -| [ApiInstallmentListPaymentsRequestPaymentStatus](documentation/models/ApiInstallmentListPaymentsRequestPaymentStatus.md) | Filter by payment status | -| [ApiInstallmentUpdateSplitRequestDto](documentation/models/ApiInstallmentUpdateSplitRequestDto.md) | | -| [ApiInstallmentUpdateSplitResponseDto](documentation/models/ApiInstallmentUpdateSplitResponseDto.md) | | -| [ApiSubscriptionListResponseDto](documentation/models/ApiSubscriptionListResponseDto.md) | | -| [ApiSubscriptionListRequestBillingType](documentation/models/ApiSubscriptionListRequestBillingType.md) | Filter by billing type | -| [ApiSubscriptionListRequestSubscriptionStatus](documentation/models/ApiSubscriptionListRequestSubscriptionStatus.md) | Filter by status | -| [ApiSubscriptionSaveRequestDto](documentation/models/ApiSubscriptionSaveRequestDto.md) | | -| [ApiSubscriptionGetResponseDto](documentation/models/ApiSubscriptionGetResponseDto.md) | | -| [ApiSubscriptionSaveWithCreditCardRequestDto](documentation/models/ApiSubscriptionSaveWithCreditCardRequestDto.md) | | -| [ApiSubscriptionSaveWithCreditCardResponseDto](documentation/models/ApiSubscriptionSaveWithCreditCardResponseDto.md) | | -| [ApiSubscriptionUpdateRequestDto](documentation/models/ApiSubscriptionUpdateRequestDto.md) | | -| [ApiSubscriptionDeleteResponseDto](documentation/models/ApiSubscriptionDeleteResponseDto.md) | | -| [ApiSubscriptionUpdateCreditCardRequestDto](documentation/models/ApiSubscriptionUpdateCreditCardRequestDto.md) | | -| [ApiSubscriptionListPaymentsRequestPaymentStatus](documentation/models/ApiSubscriptionListPaymentsRequestPaymentStatus.md) | Filter by payment status | -| [ApiSubscriptionInvoiceConfigGetResponseDto](documentation/models/ApiSubscriptionInvoiceConfigGetResponseDto.md) | | -| [ApiSubscriptionConfigureInvoiceRequestDto](documentation/models/ApiSubscriptionConfigureInvoiceRequestDto.md) | | -| [ApiSubscriptionInvoiceConfigUpdateRequestDto](documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.md) | | -| [ApiSubscriptionDeleteInvoiceConfigResponseDto](documentation/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.md) | | -| [ApiCustomerInvoiceListResponseDto](documentation/models/ApiCustomerInvoiceListResponseDto.md) | | -| [ApiSubscriptionGetInvoicesRequestInvoiceStatus](documentation/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.md) | Filter by invoice status | -| [ApiPixAddressKeyListResponseDto](documentation/models/ApiPixAddressKeyListResponseDto.md) | | -| [ApiPixAddressKeyListRequestPixAddressKeyStatus](documentation/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.md) | Filter by current key status | -| [ApiPixAddressKeySaveRequestDto](documentation/models/ApiPixAddressKeySaveRequestDto.md) | | -| [ApiPixAddressKeyGetResponseDto](documentation/models/ApiPixAddressKeyGetResponseDto.md) | | -| [ApiPixQrCodeSaveRequestDto](documentation/models/ApiPixQrCodeSaveRequestDto.md) | | -| [ApiPixQrCodeSaveResponseDto](documentation/models/ApiPixQrCodeSaveResponseDto.md) | | -| [ApiPixQrCodeDeleteResponseDto](documentation/models/ApiPixQrCodeDeleteResponseDto.md) | | -| [ApiPixTokenBucketGetAddressKeyResponseDto](documentation/models/ApiPixTokenBucketGetAddressKeyResponseDto.md) | | -| [ApiPixTransactionSaveRequestDto](documentation/models/ApiPixTransactionSaveRequestDto.md) | | -| [ApiPixTransactionGetResponseDto](documentation/models/ApiPixTransactionGetResponseDto.md) | | -| [ApiPixQrCodeDecodeRequestDto](documentation/models/ApiPixQrCodeDecodeRequestDto.md) | | -| [ApiPixQrCodeDecodeResponseDto](documentation/models/ApiPixQrCodeDecodeResponseDto.md) | | -| [ApiPixTransactionListResponseDto](documentation/models/ApiPixTransactionListResponseDto.md) | | -| [ApiPixTransactionListRequestPixTransactionStatus](documentation/models/ApiPixTransactionListRequestPixTransactionStatus.md) | Filter by transaction status | -| [ApiPixTransactionListRequestPixTransactionType](documentation/models/ApiPixTransactionListRequestPixTransactionType.md) | Filter by transaction type | -| [ApiReceivableAnticipationGetResponseDto](documentation/models/ApiReceivableAnticipationGetResponseDto.md) | | -| [ApiReceivableAnticipationListResponseDto](documentation/models/ApiReceivableAnticipationListResponseDto.md) | | -| [ApiReceivableAnticipationListRequestReceivableAnticipationStatus](documentation/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.md) | Filter by status | -| [ApiReceivableAnticipationSaveRequestDto](documentation/models/ApiReceivableAnticipationSaveRequestDto.md) | | -| [ApiReceivableAnticipationSimulateRequestDto](documentation/models/ApiReceivableAnticipationSimulateRequestDto.md) | | -| [ApiReceivableAnticipationSimulateResponseDto](documentation/models/ApiReceivableAnticipationSimulateResponseDto.md) | | -| [ApiReceivableAnticipationConfigurationGetResponseDto](documentation/models/ApiReceivableAnticipationConfigurationGetResponseDto.md) | | -| [ApiReceivableAnticipationConfigurationUpdateRequestDto](documentation/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.md) | | -| [ApiReceivableAnticipationLimitsResponseDto](documentation/models/ApiReceivableAnticipationLimitsResponseDto.md) | | -| [ApiPixTransactionRecurringCheckoutScheduleListResponseDto](documentation/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.md) | | -| [ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus](documentation/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.md) | Filter by recurrence status | -| [ApiPixTransactionRecurringCheckoutScheduleGetResponseDto](documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.md) | | -| [ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto](documentation/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.md) | | -| [ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto](documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.md) | | -| [ApiPaymentCampaignListResponseDto](documentation/models/ApiPaymentCampaignListResponseDto.md) | | -| [ApiPaymentCampaignSaveRequestDto](documentation/models/ApiPaymentCampaignSaveRequestDto.md) | | -| [ApiPaymentCampaignGetResponseDto](documentation/models/ApiPaymentCampaignGetResponseDto.md) | | -| [ApiPaymentCampaignUpdateRequestDto](documentation/models/ApiPaymentCampaignUpdateRequestDto.md) | | -| [ApiPaymentCampaignDeleteResponseDto](documentation/models/ApiPaymentCampaignDeleteResponseDto.md) | | -| [ApiPaymentCampaignFileListResponseDto](documentation/models/ApiPaymentCampaignFileListResponseDto.md) | | -| [ApiPaymentCampaignFileSaveRequestDto](documentation/models/ApiPaymentCampaignFileSaveRequestDto.md) | | -| [ApiPaymentCampaignFileGetResponseDto](documentation/models/ApiPaymentCampaignFileGetResponseDto.md) | | -| [ApiPaymentCampaignFileDeleteResponseDto](documentation/models/ApiPaymentCampaignFileDeleteResponseDto.md) | | -| [ApiCheckoutSessionSaveRequestDto](documentation/models/ApiCheckoutSessionSaveRequestDto.md) | | -| [ApiCheckoutSessionResponseDto](documentation/models/ApiCheckoutSessionResponseDto.md) | | -| [ApiTransferListResponseDto](documentation/models/ApiTransferListResponseDto.md) | | -| [ApiTransferSaveRequestDto](documentation/models/ApiTransferSaveRequestDto.md) | | -| [ApiTransferGetResponseDto](documentation/models/ApiTransferGetResponseDto.md) | | -| [ApiTransferSaveInternalTransferRequestDto](documentation/models/ApiTransferSaveInternalTransferRequestDto.md) | | -| [ApiTransferSaveInternalTransferResponseDto](documentation/models/ApiTransferSaveInternalTransferResponseDto.md) | | -| [ApiPaymentDunningListResponseDto](documentation/models/ApiPaymentDunningListResponseDto.md) | | -| [ApiPaymentDunningListRequestPaymentDunningStatus](documentation/models/ApiPaymentDunningListRequestPaymentDunningStatus.md) | Filter by payment dunning status | -| [ApiPaymentDunningListRequestPaymentDunningType](documentation/models/ApiPaymentDunningListRequestPaymentDunningType.md) | Filter by type of payment dunning | -| [ApiPaymentDunningSaveRequestDto](documentation/models/ApiPaymentDunningSaveRequestDto.md) | | -| [ApiPaymentDunningShowResponseDto](documentation/models/ApiPaymentDunningShowResponseDto.md) | | -| [ApiPaymentDunningSimulateResponseDto](documentation/models/ApiPaymentDunningSimulateResponseDto.md) | | -| [ApiPaymentDunningListHistoryResponseDto](documentation/models/ApiPaymentDunningListHistoryResponseDto.md) | | -| [ApiPaymentDunningListPartialPaymentsResponseDto](documentation/models/ApiPaymentDunningListPartialPaymentsResponseDto.md) | | -| [ApiPaymentDunningPaymentsAvailableForDunningResponseDto](documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.md) | | -| [ApiPaymentDunningSaveDocumentsRequestDto](documentation/models/ApiPaymentDunningSaveDocumentsRequestDto.md) | | -| [ApiPaymentDunningSaveDocumentsResponseDto](documentation/models/ApiPaymentDunningSaveDocumentsResponseDto.md) | | -| [ApiPaymentDunningCancelResponseDto](documentation/models/ApiPaymentDunningCancelResponseDto.md) | | -| [ApiBillListResponseDto](documentation/models/ApiBillListResponseDto.md) | | -| [ApiBillSaveRequestDto](documentation/models/ApiBillSaveRequestDto.md) | | -| [ApiBillGetResponseDto](documentation/models/ApiBillGetResponseDto.md) | | -| [ApiBillSimulateRequestDto](documentation/models/ApiBillSimulateRequestDto.md) | | -| [ApiBillSimulateResponseDto](documentation/models/ApiBillSimulateResponseDto.md) | | -| [ApiMobilePhoneRechargeListResponseDto](documentation/models/ApiMobilePhoneRechargeListResponseDto.md) | | -| [ApiMobilePhoneRechargeSaveRequestDto](documentation/models/ApiMobilePhoneRechargeSaveRequestDto.md) | | -| [ApiMobilePhoneRechargeGetResponseDto](documentation/models/ApiMobilePhoneRechargeGetResponseDto.md) | | -| [ApiMobilePhoneRechargeFindProviderResponseDto](documentation/models/ApiMobilePhoneRechargeFindProviderResponseDto.md) | | -| [ApiCreditBureauReportListResponseDto](documentation/models/ApiCreditBureauReportListResponseDto.md) | | -| [ApiCreditBureauReportSaveRequestDto](documentation/models/ApiCreditBureauReportSaveRequestDto.md) | | -| [ApiCreditBureauReportGetResponseDto](documentation/models/ApiCreditBureauReportGetResponseDto.md) | | -| [ApiFinancialTransactionListResponseDto](documentation/models/ApiFinancialTransactionListResponseDto.md) | | -| [ApiFinanceBalanceResponseDto](documentation/models/ApiFinanceBalanceResponseDto.md) | | -| [ApiFinanceGetPaymentStatisticsResponseDto](documentation/models/ApiFinanceGetPaymentStatisticsResponseDto.md) | | -| [ApiFinanceGetPaymentStatisticsRequestBillingType](documentation/models/ApiFinanceGetPaymentStatisticsRequestBillingType.md) | Filter by payment method | -| [ApiFinanceGetPaymentStatisticsRequestPaymentStatus](documentation/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.md) | Filter by status | -| [ApiFinanceGetSplitStatisticsResponseDto](documentation/models/ApiFinanceGetSplitStatisticsResponseDto.md) | | -| [ApiCustomerUpdateRequestGetResponseDto](documentation/models/ApiCustomerUpdateRequestGetResponseDto.md) | | -| [ApiCustomerUpdateRequestSaveRequestDto](documentation/models/ApiCustomerUpdateRequestSaveRequestDto.md) | | -| [ApiPaymentCheckoutConfigGetResponseDto](documentation/models/ApiPaymentCheckoutConfigGetResponseDto.md) | | -| [ApiPaymentCheckoutConfigSaveRequestDto](documentation/models/ApiPaymentCheckoutConfigSaveRequestDto.md) | | -| [ApiMyAccountGetAccountNumberResponseDto](documentation/models/ApiMyAccountGetAccountNumberResponseDto.md) | | -| [ApiMyAccountGetAccountFeesResponseDto](documentation/models/ApiMyAccountGetAccountFeesResponseDto.md) | | -| [ApiMyAccountGetStatusResponseDto](documentation/models/ApiMyAccountGetStatusResponseDto.md) | | -| [ApiWalletShowResponseDto](documentation/models/ApiWalletShowResponseDto.md) | | -| [ApiMyAccountDisableAccountResponseDto](documentation/models/ApiMyAccountDisableAccountResponseDto.md) | | -| [ApiCustomerInvoiceListRequestInvoiceStatus](documentation/models/ApiCustomerInvoiceListRequestInvoiceStatus.md) | Filter by situation | -| [ApiCustomerInvoiceSaveRequestDto](documentation/models/ApiCustomerInvoiceSaveRequestDto.md) | | -| [ApiCustomerInvoiceGetResponseDto](documentation/models/ApiCustomerInvoiceGetResponseDto.md) | | -| [ApiCustomerInvoiceUpdateRequestDto](documentation/models/ApiCustomerInvoiceUpdateRequestDto.md) | | -| [ApiCustomerInvoiceCancelRequestDto](documentation/models/ApiCustomerInvoiceCancelRequestDto.md) | | -| [ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto](documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.md) | | -| [ApiCustomerFiscalInfoGetResponseDto](documentation/models/ApiCustomerFiscalInfoGetResponseDto.md) | | -| [ApiCustomerFiscalInfoSaveRequestDto](documentation/models/ApiCustomerFiscalInfoSaveRequestDto.md) | | -| [ApiCustomerFiscalInfoListMunicipalServicesResponseDto](documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.md) | | -| [ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto](documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.md) | | -| [ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto](documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.md) | | -| [ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto](documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.md) | | -| [ApiPushNotificationConfigListResponseDto](documentation/models/ApiPushNotificationConfigListResponseDto.md) | | -| [ApiPushNotificationConfigSaveRequestDto](documentation/models/ApiPushNotificationConfigSaveRequestDto.md) | | -| [ApiPushNotificationConfigGetResponseDto](documentation/models/ApiPushNotificationConfigGetResponseDto.md) | | -| [ApiPushNotificationConfigUpdateRequestDto](documentation/models/ApiPushNotificationConfigUpdateRequestDto.md) | | -| [ApiPushNotificationConfigDeleteResponseDto](documentation/models/ApiPushNotificationConfigDeleteResponseDto.md) | | -| [ApiCustomerListResponseDto](documentation/models/ApiCustomerListResponseDto.md) | | -| [ApiCustomerSaveRequestDto](documentation/models/ApiCustomerSaveRequestDto.md) | | -| [ApiCustomerSaveResponseDto](documentation/models/ApiCustomerSaveResponseDto.md) | | -| [ApiCustomerGetResponseDto](documentation/models/ApiCustomerGetResponseDto.md) | | -| [ApiCustomerPaymentCustodyConfigDto](documentation/models/ApiCustomerPaymentCustodyConfigDto.md) | | -| [ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto](documentation/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.md) | | -| [ApiAccountDocumentShowResponseDto](documentation/models/ApiAccountDocumentShowResponseDto.md) | | -| [ApiAccountDocumentSaveRequestDto](documentation/models/ApiAccountDocumentSaveRequestDto.md) | | -| [ApiAccountDocumentGetResponseDto](documentation/models/ApiAccountDocumentGetResponseDto.md) | | -| [ApiAccountDocumentUpdateRequestDto](documentation/models/ApiAccountDocumentUpdateRequestDto.md) | | -| [ApiAccountDocumentDeleteResponseDto](documentation/models/ApiAccountDocumentDeleteResponseDto.md) | | -| [ApiChargebackSaveDisputeRequestDto](documentation/models/ApiChargebackSaveDisputeRequestDto.md) | | -| [ApiChargebackSaveDisputeResponseDto](documentation/models/ApiChargebackSaveDisputeResponseDto.md) | | -| [ApiChargebackListResponseDto](documentation/models/ApiChargebackListResponseDto.md) | | -| [ApiChargebackListRequestCreditCardBrand](documentation/models/ApiChargebackListRequestCreditCardBrand.md) | Filter by used card brand. | -| [ApiChargebackListRequestChargebackStatus](documentation/models/ApiChargebackListRequestChargebackStatus.md) | Filter by chargeback status. | -| [ApiPaymentChargebackResponseDto](documentation/models/ApiPaymentChargebackResponseDto.md) | | -| [ApiPaymentGetResponseBillingType](documentation/models/ApiPaymentGetResponseBillingType.md) | Payment billing type | -| [ApiPaymentSaveWithCreditCardCreditCardDto](documentation/models/ApiPaymentSaveWithCreditCardCreditCardDto.md) | | -| [ApiPaymentGetResponsePaymentStatus](documentation/models/ApiPaymentGetResponsePaymentStatus.md) | Payment status | -| [ApiPaymentDiscountDto](documentation/models/ApiPaymentDiscountDto.md) | | -| [ApiPaymentFineResponseDto](documentation/models/ApiPaymentFineResponseDto.md) | | -| [ApiPaymentInterestResponseDto](documentation/models/ApiPaymentInterestResponseDto.md) | | -| [ApiPaymentRefundGetResponseDto](documentation/models/ApiPaymentRefundGetResponseDto.md) | | -| [ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand](documentation/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.md) | Flag of the card used | -| [ApiPaymentDiscountDiscountType](documentation/models/ApiPaymentDiscountDiscountType.md) | Discount type | -| [ApiPaymentSplitGetResponsePaymentSplitCancellationReason](documentation/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.md) | Reason for canceling the split | -| [ApiPaymentSplitGetResponsePaymentSplitStatus](documentation/models/ApiPaymentSplitGetResponsePaymentSplitStatus.md) | Split status | -| [ApiPaymentChargebackResponseChargebackStatus](documentation/models/ApiPaymentChargebackResponseChargebackStatus.md) | Chargeback status | -| [ApiPaymentChargebackResponseChargebackReason](documentation/models/ApiPaymentChargebackResponseChargebackReason.md) | Chargeback reason | -| [ApiChargebackCreditCardResponseDto](documentation/models/ApiChargebackCreditCardResponseDto.md) | | -| [ApiPaymentChargebackResponseChargebackDisputeStatus](documentation/models/ApiPaymentChargebackResponseChargebackDisputeStatus.md) | Chargeback dispute status. | -| [ApiChargebackCreditCardResponseCreditCardBrand](documentation/models/ApiChargebackCreditCardResponseCreditCardBrand.md) | Flag of the card used | -| [ApiPaymentCustodyGetResponsePaymentCustodyStatus](documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.md) | Payment escrow status | -| [ApiPaymentCustodyGetResponsePaymentCustodyFinishReason](documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.md) | Payment escrow finish reason | -| [ApiPaymentRefundGetResponsePaymentRefundStatus](documentation/models/ApiPaymentRefundGetResponsePaymentRefundStatus.md) | Refund status | -| [ApiPaymentRefundedSplitResponseDto](documentation/models/ApiPaymentRefundedSplitResponseDto.md) | | -| [ApiPaymentSaveRequestBillingType](documentation/models/ApiPaymentSaveRequestBillingType.md) | Payment billing type | -| [ApiPaymentInterestRequestDto](documentation/models/ApiPaymentInterestRequestDto.md) | | -| [ApiPaymentFineRequestDto](documentation/models/ApiPaymentFineRequestDto.md) | | -| [ApiPaymentSplitRequestDto](documentation/models/ApiPaymentSplitRequestDto.md) | | -| [ApiPaymentCallbackRequestDto](documentation/models/ApiPaymentCallbackRequestDto.md) | | -| [ApiPaymentFineRequestFineType](documentation/models/ApiPaymentFineRequestFineType.md) | Fine type | -| [ApiPaymentSaveWithCreditCardRequestBillingType](documentation/models/ApiPaymentSaveWithCreditCardRequestBillingType.md) | Payment billing type | -| [ApiCreditCardRequestDto](documentation/models/ApiCreditCardRequestDto.md) | | -| [ApiCreditCardHolderInfoRequestDto](documentation/models/ApiCreditCardHolderInfoRequestDto.md) | | -| [ApiBankSlipBillingInfoResponseDto](documentation/models/ApiBankSlipBillingInfoResponseDto.md) | | -| [ApiCreditCardTokenizeResponseCreditCardBrand](documentation/models/ApiCreditCardTokenizeResponseCreditCardBrand.md) | Brand of the card used | -| [ApiPaymentUpdateRequestBillingType](documentation/models/ApiPaymentUpdateRequestBillingType.md) | Payment billing type | -| [ApiPaymentStatusResponsePaymentStatus](documentation/models/ApiPaymentStatusResponsePaymentStatus.md) | Payment status | -| [ApiPaymentSimulateCreditCardResponseDto](documentation/models/ApiPaymentSimulateCreditCardResponseDto.md) | | -| [ApiPaymentSimulateBankSlipResponseDto](documentation/models/ApiPaymentSimulateBankSlipResponseDto.md) | | -| [ApiPaymentSimulatePixResponseDto](documentation/models/ApiPaymentSimulatePixResponseDto.md) | | -| [ApiPaymentSimulateInstallmentResponseDto](documentation/models/ApiPaymentSimulateInstallmentResponseDto.md) | | -| [ApiPaymentLimitsResponseCreationDto](documentation/models/ApiPaymentLimitsResponseCreationDto.md) | | -| [ApiPaymentLimitsResponseCreationDailyDto](documentation/models/ApiPaymentLimitsResponseCreationDailyDto.md) | | -| [ApiPaymentLeanGetResponseBillingType](documentation/models/ApiPaymentLeanGetResponseBillingType.md) | Payment billing type | -| [ApiPaymentLeanGetResponsePaymentStatus](documentation/models/ApiPaymentLeanGetResponsePaymentStatus.md) | Payment status | -| [ApiPaymentLeanSaveWithCreditCardResponseBillingType](documentation/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.md) | Payment billing type | -| [ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus](documentation/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.md) | Payment status | -| [ApiPaymentDocumentGetResponsePaymentDocumentType](documentation/models/ApiPaymentDocumentGetResponsePaymentDocumentType.md) | Document type | -| [ApiPaymentDocumentFileResponseDto](documentation/models/ApiPaymentDocumentFileResponseDto.md) | | -| [ApiPaymentDocumentSaveRequestPaymentDocumentType](documentation/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.md) | Document type | -| [ApiPaymentDocumentUpdateRequestPaymentDocumentType](documentation/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.md) | Document type | -| [ApiCustomerAccountGetResponsePersonType](documentation/models/ApiCustomerAccountGetResponsePersonType.md) | Kind of person | -| [ApiNotificationGetResponseNotificationEvent](documentation/models/ApiNotificationGetResponseNotificationEvent.md) | Kind of event | -| [ApiInstallmentGetResponseBillingType](documentation/models/ApiInstallmentGetResponseBillingType.md) | Form of payment | -| [ApiInstallmentRefundResponseDto](documentation/models/ApiInstallmentRefundResponseDto.md) | | -| [ApiInstallmentRefundResponsePaymentRefundStatus](documentation/models/ApiInstallmentRefundResponsePaymentRefundStatus.md) | Refund status | -| [ApiInstallmentSaveRequestBillingType](documentation/models/ApiInstallmentSaveRequestBillingType.md) | Payment billing type | -| [ApiInstallmentSplitRequestDto](documentation/models/ApiInstallmentSplitRequestDto.md) | | -| [ApiInstallmentSaveWithCreditCardRequestBillingType](documentation/models/ApiInstallmentSaveWithCreditCardRequestBillingType.md) | Payment billing type | -| [ApiInstallmentSplitGetResponseDto](documentation/models/ApiInstallmentSplitGetResponseDto.md) | | -| [ApiInstallmentSplitGetResponsePaymentSplitCancellationReason](documentation/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.md) | Reason for canceling the split | -| [ApiInstallmentSplitGetResponsePaymentSplitStatus](documentation/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.md) | Split status | -| [ApiSubscriptionGetResponseBillingType](documentation/models/ApiSubscriptionGetResponseBillingType.md) | Billing type | -| [ApiSubscriptionGetResponseCycle](documentation/models/ApiSubscriptionGetResponseCycle.md) | Billing frequency | -| [ApiSubscriptionGetResponseSubscriptionStatus](documentation/models/ApiSubscriptionGetResponseSubscriptionStatus.md) | Subscription status | -| [ApiSubscriptionSplitResponseDto](documentation/models/ApiSubscriptionSplitResponseDto.md) | | -| [ApiSubscriptionSplitResponseSubscriptionSplitStatus](documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.md) | Subscription split status | -| [ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason](documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.md) | Reason why subscription split was disabled | -| [ApiSubscriptionSaveRequestBillingType](documentation/models/ApiSubscriptionSaveRequestBillingType.md) | Billing type | -| [ApiSubscriptionSaveRequestCycle](documentation/models/ApiSubscriptionSaveRequestCycle.md) | Billing frequency | -| [ApiSubscriptionSplitRequestDto](documentation/models/ApiSubscriptionSplitRequestDto.md) | | -| [ApiSubscriptionSaveWithCreditCardRequestBillingType](documentation/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.md) | Billing type | -| [ApiSubscriptionSaveWithCreditCardRequestCycle](documentation/models/ApiSubscriptionSaveWithCreditCardRequestCycle.md) | Billing frequency | -| [ApiSubscriptionSaveWithCreditCardResponseBillingType](documentation/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.md) | Billing type | -| [ApiSubscriptionSaveWithCreditCardResponseCycle](documentation/models/ApiSubscriptionSaveWithCreditCardResponseCycle.md) | Billing frequency | -| [ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus](documentation/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.md) | Subscription status | -| [ApiSubscriptionUpdateRequestBillingType](documentation/models/ApiSubscriptionUpdateRequestBillingType.md) | Billing type | -| [ApiSubscriptionUpdateRequestSubscriptionStatus](documentation/models/ApiSubscriptionUpdateRequestSubscriptionStatus.md) | Subscription status | -| [ApiSubscriptionUpdateRequestCycle](documentation/models/ApiSubscriptionUpdateRequestCycle.md) | Billing frequency | -| [ApiCustomerInvoiceTaxesDto](documentation/models/ApiCustomerInvoiceTaxesDto.md) | | -| [ApiCustomerInvoiceGetResponseInvoiceStatus](documentation/models/ApiCustomerInvoiceGetResponseInvoiceStatus.md) | Invoice status | -| [ApiPixAddressKeyGetResponsePixAddressKeyType](documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyType.md) | Pix key type | -| [ApiPixAddressKeyGetResponsePixAddressKeyStatus](documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.md) | Key status | -| [ApiPixAddressKeyQrCodeGetResponseDto](documentation/models/ApiPixAddressKeyQrCodeGetResponseDto.md) | | -| [ApiPixAddressKeySaveRequestPixAddressKeyType](documentation/models/ApiPixAddressKeySaveRequestPixAddressKeyType.md) | Pix key type | -| [ApiPixTransactionQrCodeSaveRequestDto](documentation/models/ApiPixTransactionQrCodeSaveRequestDto.md) | | -| [ApiPixTransactionGetResponsePixTransactionCashValueFinality](documentation/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.md) | Used to indicate whether it is a Withdrawal or Change | -| [ApiPixTransactionGetResponsePixTransactionStatus](documentation/models/ApiPixTransactionGetResponsePixTransactionStatus.md) | Transaction status | -| [ApiPixTransactionGetResponsePixTransactionType](documentation/models/ApiPixTransactionGetResponsePixTransactionType.md) | Transaction type | -| [ApiPixTransactionGetResponsePixTransactionOriginType](documentation/models/ApiPixTransactionGetResponsePixTransactionOriginType.md) | Indicates the origin of the transaction | -| [ApiPixOriginalTransactionResponseDto](documentation/models/ApiPixOriginalTransactionResponseDto.md) | | -| [ApiPixTransactionExternalAccountResponseDto](documentation/models/ApiPixTransactionExternalAccountResponseDto.md) | | -| [ApiPixTransactionQrCodeResponseDto](documentation/models/ApiPixTransactionQrCodeResponseDto.md) | | -| [ApiPixTransactionGetResponsePixAddressKeyType](documentation/models/ApiPixTransactionGetResponsePixAddressKeyType.md) | Pix key type | -| [ApiPixTransactionExternalAccountResponsePixAddressKeyType](documentation/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.md) | Pix key type | -| [ApiPixTransactionQrCodePayerResponseDto](documentation/models/ApiPixTransactionQrCodePayerResponseDto.md) | | -| [ApiPixQrCodeDecodeResponsePixQrCodeType](documentation/models/ApiPixQrCodeDecodeResponsePixQrCodeType.md) | QRCode Type | -| [ApiPixQrCodeDecodeResponsePixTransactionOriginType](documentation/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.md) | Transaction origin | -| [ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality](documentation/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.md) | Used to indicate whether it is a Withdrawal or Change | -| [ApiPixQrCodeDecodeReceiverDto](documentation/models/ApiPixQrCodeDecodeReceiverDto.md) | | -| [ApiPixQrCodeDecodeReceiverPersonType](documentation/models/ApiPixQrCodeDecodeReceiverPersonType.md) | Person type | -| [ApiPixQrCodeDecodeReceiverPixAccountType](documentation/models/ApiPixQrCodeDecodeReceiverPixAccountType.md) | Receiver account type | -| [ApiReceivableAnticipationGetResponseReceivableAnticipationStatus](documentation/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.md) | Anticipation status | -| [ApiReceivableAnticipationLimitsInfoResponseDto](documentation/models/ApiReceivableAnticipationLimitsInfoResponseDto.md) | | -| [ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus](documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.md) | Recurrence status | -| [ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin](documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.md) | Indicates the origin of the recurrence | -| [ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency](documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.md) | Recurrence frequency | -| [ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto](documentation/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.md) | | -| [ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus](documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.md) | Recurrence item status | -| [ApiPaymentCampaignGetResponseChargeType](documentation/models/ApiPaymentCampaignGetResponseChargeType.md) | Charge type | -| [ApiPaymentCampaignGetResponseBillingType](documentation/models/ApiPaymentCampaignGetResponseBillingType.md) | Allowed payment method | -| [ApiPaymentCampaignGetResponseCycle](documentation/models/ApiPaymentCampaignGetResponseCycle.md) | Billing frequency, if the chargeType is RECURRENT | -| [ApiPaymentCampaignSaveRequestBillingType](documentation/models/ApiPaymentCampaignSaveRequestBillingType.md) | Allowed payment method | -| [ApiPaymentCampaignSaveRequestChargeType](documentation/models/ApiPaymentCampaignSaveRequestChargeType.md) | Charge type | -| [ApiPaymentCampaignSaveRequestCycle](documentation/models/ApiPaymentCampaignSaveRequestCycle.md) | Billing frequency, if the chargeType is RECURRENT | -| [ApiPaymentCampaignUpdateRequestBillingType](documentation/models/ApiPaymentCampaignUpdateRequestBillingType.md) | Allowed payment method | -| [ApiPaymentCampaignUpdateRequestChargeType](documentation/models/ApiPaymentCampaignUpdateRequestChargeType.md) | Charge type | -| [ApiPaymentCampaignUpdateRequestCycle](documentation/models/ApiPaymentCampaignUpdateRequestCycle.md) | Billing frequency, if the chargeType is RECURRENT | -| [ApiPaymentCampaignFileImageResponseDto](documentation/models/ApiPaymentCampaignFileImageResponseDto.md) | | -| [ApiCheckoutSessionCallbackDto](documentation/models/ApiCheckoutSessionCallbackDto.md) | | -| [ApiCheckoutSessionItemsDto](documentation/models/ApiCheckoutSessionItemsDto.md) | | -| [ApiCheckoutSessionCustomerDataDto](documentation/models/ApiCheckoutSessionCustomerDataDto.md) | | -| [ApiCheckoutSessionSubscriptionDto](documentation/models/ApiCheckoutSessionSubscriptionDto.md) | | -| [ApiCheckoutSessionInstallmentDto](documentation/models/ApiCheckoutSessionInstallmentDto.md) | | -| [ApiCheckoutSessionSplitDto](documentation/models/ApiCheckoutSessionSplitDto.md) | | -| [ApiCheckoutSessionSubscriptionCycle](documentation/models/ApiCheckoutSessionSubscriptionCycle.md) | Billing frequency | -| [ApiTransferGetResponseTransferStatus](documentation/models/ApiTransferGetResponseTransferStatus.md) | Transfer status | -| [ApiTransferGetResponseTransferType](documentation/models/ApiTransferGetResponseTransferType.md) | Transfer method | -| [ApiTransferBankAccountGetResponseDto](documentation/models/ApiTransferBankAccountGetResponseDto.md) | | -| [ApiTransferBankGetResponseDto](documentation/models/ApiTransferBankGetResponseDto.md) | | -| [ApiTransferBankAccountSaveRequestDto](documentation/models/ApiTransferBankAccountSaveRequestDto.md) | | -| [ApiTransferSaveRequestTransferType](documentation/models/ApiTransferSaveRequestTransferType.md) | Transfer modality. If not informed and the receiving institution is a Pix participant, the transfer is via Pix. Otherwise via TED. | -| [ApiTransferSaveRequestPixAddressKeyType](documentation/models/ApiTransferSaveRequestPixAddressKeyType.md) | Enter the type of key if it is a transfer to a Pix key | -| [ApiTransferRecurringSaveRequestDto](documentation/models/ApiTransferRecurringSaveRequestDto.md) | | -| [ApiTransferBankSaveRequestDto](documentation/models/ApiTransferBankSaveRequestDto.md) | | -| [ApiTransferBankAccountSaveRequestBankAccountType](documentation/models/ApiTransferBankAccountSaveRequestBankAccountType.md) | Account type | -| [ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency](documentation/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md) | Frequency | -| [ApiTransferSaveInternalTransferResponseTransferStatus](documentation/models/ApiTransferSaveInternalTransferResponseTransferStatus.md) | Transfer status | -| [ApiTransferSaveInternalTransferResponseTransferType](documentation/models/ApiTransferSaveInternalTransferResponseTransferType.md) | Transfer method | -| [ApiTransferSaveInternalTransferAccountDto](documentation/models/ApiTransferSaveInternalTransferAccountDto.md) | | -| [ApiPaymentDunningShowResponsePaymentDunningStatus](documentation/models/ApiPaymentDunningShowResponsePaymentDunningStatus.md) | Payment dunning status | -| [ApiPaymentDunningShowResponsePaymentDunningType](documentation/models/ApiPaymentDunningShowResponsePaymentDunningType.md) | Type of payment dunning | -| [ApiPaymentDunningSaveRequestPaymentDunningType](documentation/models/ApiPaymentDunningSaveRequestPaymentDunningType.md) | Type of payment dunning | -| [ApiPaymentDunningSimulateResponseTypeSimulationItemDto](documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.md) | | -| [ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType](documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md) | Type of payment dunning | -| [ApiPaymentDunningListHistoryResponseDataDto](documentation/models/ApiPaymentDunningListHistoryResponseDataDto.md) | | -| [ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus](documentation/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md) | Negotiation status | -| [ApiPaymentDunningListPartialPaymentsResponseDataDto](documentation/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.md) | | -| [ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto](documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.md) | | -| [ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus](documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md) | Billing status | -| [ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType](documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md) | Form of payment | -| [ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto](documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md) | | -| [ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType](documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md) | Type of payment dunning | -| [ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus](documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.md) | Payment dunning status | -| [ApiPaymentDunningSaveDocumentsResponsePaymentDunningType](documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.md) | Type of payment dunning | -| [ApiPaymentDunningCancelResponsePaymentDunningStatus](documentation/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.md) | Payment dunning status | -| [ApiPaymentDunningCancelResponsePaymentDunningType](documentation/models/ApiPaymentDunningCancelResponsePaymentDunningType.md) | Type of payment dunning | -| [ApiBillGetResponseBillStatus](documentation/models/ApiBillGetResponseBillStatus.md) | Bill payment status | -| [ApiBillSimulateBankSlipInfoResponseDto](documentation/models/ApiBillSimulateBankSlipInfoResponseDto.md) | | -| [ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus](documentation/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md) | Recharge status | -| [ApiMobilePhoneRechargeFindProviderResponseValuesDto](documentation/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.md) | | -| [ApiFinancialTransactionGetResponseDto](documentation/models/ApiFinancialTransactionGetResponseDto.md) | | -| [ApiFinancialTransactionGetResponseFinancialTransactionType](documentation/models/ApiFinancialTransactionGetResponseFinancialTransactionType.md) | Transaction type | -| [ApiCustomerUpdateRequestGetResponseStatus](documentation/models/ApiCustomerUpdateRequestGetResponseStatus.md) | Account status | -| [ApiCustomerUpdateRequestGetResponsePersonType](documentation/models/ApiCustomerUpdateRequestGetResponsePersonType.md) | Person Type | -| [ApiCustomerUpdateRequestGetResponseCompanyType](documentation/models/ApiCustomerUpdateRequestGetResponseCompanyType.md) | Type of company (only when Legal Entity) | -| [ApiCustomerUpdateRequestCityDto](documentation/models/ApiCustomerUpdateRequestCityDto.md) | | -| [ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto](documentation/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.md) | | -| [ApiCustomerUpdateRequestCityState](documentation/models/ApiCustomerUpdateRequestCityState.md) | State abbreviation (SP, RJ, SC, ...) | -| [ApiCustomerUpdateRequestSaveRequestPersonType](documentation/models/ApiCustomerUpdateRequestSaveRequestPersonType.md) | Person Type | -| [ApiCustomerUpdateRequestSaveRequestCompanyType](documentation/models/ApiCustomerUpdateRequestSaveRequestCompanyType.md) | Type of company (only when Legal Entity) | -| [ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus](documentation/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.md) | Invoice personalization status | -| [ApiMyAccountGetAccountFeesPaymentDto](documentation/models/ApiMyAccountGetAccountFeesPaymentDto.md) | | -| [ApiMyAccountGetAccountFeesTransferDto](documentation/models/ApiMyAccountGetAccountFeesTransferDto.md) | | -| [ApiMyAccountGetAccountFeesNotificationDto](documentation/models/ApiMyAccountGetAccountFeesNotificationDto.md) | | -| [ApiMyAccountGetAccountFeesCreditBureauReportDto](documentation/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.md) | | -| [ApiMyAccountGetAccountFeesInvoiceDto](documentation/models/ApiMyAccountGetAccountFeesInvoiceDto.md) | | -| [ApiMyAccountGetAccountFeesAnticipationDto](documentation/models/ApiMyAccountGetAccountFeesAnticipationDto.md) | | -| [ApiMyAccountGetAccountFeesPaymentBankSlipDto](documentation/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.md) | | -| [ApiMyAccountGetAccountFeesPaymentCreditCardDto](documentation/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.md) | | -| [ApiMyAccountGetAccountFeesPaymentDebitCardDto](documentation/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.md) | | -| [ApiMyAccountGetAccountFeesPaymentPixDto](documentation/models/ApiMyAccountGetAccountFeesPaymentPixDto.md) | | -| [ApiMyAccountGetAccountFeesTransferTedDto](documentation/models/ApiMyAccountGetAccountFeesTransferTedDto.md) | | -| [ApiMyAccountGetAccountFeesTransferPixDto](documentation/models/ApiMyAccountGetAccountFeesTransferPixDto.md) | | -| [ApiMyAccountGetAccountFeesAnticipationCreditCardDto](documentation/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.md) | | -| [ApiMyAccountGetAccountFeesAnticipationBankSlipDto](documentation/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.md) | | -| [ApiMyAccountGetStatusResponseStatus](documentation/models/ApiMyAccountGetStatusResponseStatus.md) | Status of sent business data | -| [ApiWalletGetResponseDto](documentation/models/ApiWalletGetResponseDto.md) | | -| [ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao](documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md) | Type of authentication required at city hall | -| [ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto](documentation/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md) | | -| [ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto](documentation/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md) | | -| [ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto](documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.md) | | -| [ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto](documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.md) | | -| [ApiPushNotificationConfigGetResponsePushNotificationSendType](documentation/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.md) | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | -| [ApiPushNotificationConfigSaveRequestPushNotificationSendType](documentation/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.md) | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | -| [ApiPushNotificationConfigUpdateRequestPushNotificationSendType](documentation/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.md) | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | -| [ApiCustomerGetResponsePersonType](documentation/models/ApiCustomerGetResponsePersonType.md) | Kind of person | -| [ApiCustomerGetResponseCompanyType](documentation/models/ApiCustomerGetResponseCompanyType.md) | Type of company (only when Legal Entity) | -| [ApiCustomerAccountNumberDto](documentation/models/ApiCustomerAccountNumberDto.md) | | -| [ApiCustomerSaveRequestCompanyType](documentation/models/ApiCustomerSaveRequestCompanyType.md) | Type of company (only when Legal Entity) | -| [ApiCustomerSaveResponsePersonType](documentation/models/ApiCustomerSaveResponsePersonType.md) | Kind of person | -| [ApiCustomerSaveResponseCompanyType](documentation/models/ApiCustomerSaveResponseCompanyType.md) | Type of company (only when Legal Entity) | -| [ApiAccountDocumentGroupResponseDto](documentation/models/ApiAccountDocumentGroupResponseDto.md) | | -| [ApiAccountDocumentGroupResponseCustomerDocumentStatus](documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.md) | Document group status | -| [ApiAccountDocumentGroupResponseCustomerDocumentType](documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentType.md) | Type of documents | -| [ApiAccountDocumentGroupResponsibleResponseDto](documentation/models/ApiAccountDocumentGroupResponsibleResponseDto.md) | | -| [ApiAccountDocumentGetResponseCustomerDocumentStatus](documentation/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.md) | Document approval status | -| [ApiAccountDocumentSaveRequestCustomerDocumentType](documentation/models/ApiAccountDocumentSaveRequestCustomerDocumentType.md) | Document Type | -| [ApiChargebackSaveDisputeResponseChargebackDisputeStatus](documentation/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.md) | Dispute status. | -| [ListPaymentsParameters](documentation/models/ListPaymentsParameters.md) | | -| [ListPaymentsWithSummaryDataParameters](documentation/models/ListPaymentsWithSummaryDataParameters.md) | | -| [ListPaidSplitsParameters](documentation/models/ListPaidSplitsParameters.md) | | -| [ListReceivedSplitsParameters](documentation/models/ListReceivedSplitsParameters.md) | | -| [ListCustomersParameters](documentation/models/ListCustomersParameters.md) | | -| [ListInstallmentsParameters](documentation/models/ListInstallmentsParameters.md) | | -| [ListPaymentsOfAInstallmentParameters](documentation/models/ListPaymentsOfAInstallmentParameters.md) | | -| [GenerateInstallmentBookletParameters](documentation/models/GenerateInstallmentBookletParameters.md) | | -| [ListSubscriptionsParameters](documentation/models/ListSubscriptionsParameters.md) | | -| [ListPaymentsOfASubscriptionParameters](documentation/models/ListPaymentsOfASubscriptionParameters.md) | | -| [GenerateSignatureBookletParameters](documentation/models/GenerateSignatureBookletParameters.md) | | -| [ListInvoicesForSubscriptionChargesParameters](documentation/models/ListInvoicesForSubscriptionChargesParameters.md) | | -| [ListKeysParameters](documentation/models/ListKeysParameters.md) | | -| [ListTransactionsParameters](documentation/models/ListTransactionsParameters.md) | | -| [ListAnticipationsParameters](documentation/models/ListAnticipationsParameters.md) | | -| [ListRecurrencesParameters](documentation/models/ListRecurrencesParameters.md) | | -| [ListRecurrenceItemsParameters](documentation/models/ListRecurrenceItemsParameters.md) | | -| [ListPaymentsLinksParameters](documentation/models/ListPaymentsLinksParameters.md) | | -| [ListTransfersParameters](documentation/models/ListTransfersParameters.md) | | -| [ListPaymentDunningsParameters](documentation/models/ListPaymentDunningsParameters.md) | | -| [SimulateAPaymentDunningParameters](documentation/models/SimulateAPaymentDunningParameters.md) | | -| [EventHistoryListsParameters](documentation/models/EventHistoryListsParameters.md) | | -| [ListPaymentsReceivedParameters](documentation/models/ListPaymentsReceivedParameters.md) | | -| [ListPaymentsAvailableForPaymentDunningParameters](documentation/models/ListPaymentsAvailableForPaymentDunningParameters.md) | | -| [ListBillPaymentsParameters](documentation/models/ListBillPaymentsParameters.md) | | -| [ListMobileRechargesParameters](documentation/models/ListMobileRechargesParameters.md) | | -| [ListCreditBureauReportsParameters](documentation/models/ListCreditBureauReportsParameters.md) | | -| [RetrieveExtractParameters](documentation/models/RetrieveExtractParameters.md) | | -| [BillingStatisticsParameters](documentation/models/BillingStatisticsParameters.md) | | -| [DeleteWhiteLabelSubaccountParameters](documentation/models/DeleteWhiteLabelSubaccountParameters.md) | | -| [ListInvoicesParameters](documentation/models/ListInvoicesParameters.md) | | -| [ListMunicipalServicesParameters](documentation/models/ListMunicipalServicesParameters.md) | | -| [ListNbsCodesParameters](documentation/models/ListNbsCodesParameters.md) | | -| [ListWebhooksParameters](documentation/models/ListWebhooksParameters.md) | | -| [ListSubaccountsParameters](documentation/models/ListSubaccountsParameters.md) | | -| [ListChargebacksParameters](documentation/models/ListChargebacksParameters.md) | | -| [ApiErrorResponseDto](documentation/models/ApiErrorResponseDto.md) | | -| [ApiErrorResponseItemDto](documentation/models/ApiErrorResponseItemDto.md) | | +| Name | Description | +| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------- | +| [PaymentListResponseDto](documentation/models/PaymentListResponseDto.md) | | +| [PaymentListRequestBillingType](documentation/models/PaymentListRequestBillingType.md) | Filter by billing type | +| [PaymentListRequestPaymentStatus](documentation/models/PaymentListRequestPaymentStatus.md) | Filter by status | +| [PaymentListRequestInvoiceStatus](documentation/models/PaymentListRequestInvoiceStatus.md) | Filter to return charges that have or do not have an invoice | +| [PaymentSaveRequestDto](documentation/models/PaymentSaveRequestDto.md) | | +| [PaymentGetResponseDto](documentation/models/PaymentGetResponseDto.md) | | +| [PaymentSaveWithCreditCardRequestDto](documentation/models/PaymentSaveWithCreditCardRequestDto.md) | | +| [PaymentPayWithCreditCardRequestDto](documentation/models/PaymentPayWithCreditCardRequestDto.md) | | +| [PaymentBillingInfoResponseDto](documentation/models/PaymentBillingInfoResponseDto.md) | | +| [PaymentViewingInfoResponseDto](documentation/models/PaymentViewingInfoResponseDto.md) | | +| [PaymentUpdateRequestDto](documentation/models/PaymentUpdateRequestDto.md) | | +| [PaymentDeleteResponseDto](documentation/models/PaymentDeleteResponseDto.md) | | +| [PaymentStatusResponseDto](documentation/models/PaymentStatusResponseDto.md) | | +| [PaymentRefundRequestDto](documentation/models/PaymentRefundRequestDto.md) | | +| [PaymentIdentificationFieldResponseDto](documentation/models/PaymentIdentificationFieldResponseDto.md) | | +| [PaymentPixQrCodeResponseDto](documentation/models/PaymentPixQrCodeResponseDto.md) | Payment data related to pix | +| [PaymentReceiveInCashRequestDto](documentation/models/PaymentReceiveInCashRequestDto.md) | | +| [PaymentSimulateRequestDto](documentation/models/PaymentSimulateRequestDto.md) | | +| [PaymentSimulateResponseDto](documentation/models/PaymentSimulateResponseDto.md) | | +| [PaymentEscrowGetResponseDto](documentation/models/PaymentEscrowGetResponseDto.md) | Payment escrow in the Escrow Account information | +| [PaymentLimitsResponseDto](documentation/models/PaymentLimitsResponseDto.md) | | +| [PaymentLeanListResponseDto](documentation/models/PaymentLeanListResponseDto.md) | | +| [PaymentLeanGetResponseDto](documentation/models/PaymentLeanGetResponseDto.md) | | +| [PaymentLeanSaveWithCreditCardResponseDto](documentation/models/PaymentLeanSaveWithCreditCardResponseDto.md) | | +| [CreditCardTokenizeRequestDto](documentation/models/CreditCardTokenizeRequestDto.md) | | +| [CreditCardTokenizeResponseDto](documentation/models/CreditCardTokenizeResponseDto.md) | | +| [PaymentRefundListResponseDto](documentation/models/PaymentRefundListResponseDto.md) | | +| [PaymentBankSlipRefundResponseDto](documentation/models/PaymentBankSlipRefundResponseDto.md) | | +| [PaymentSplitGetResponseDto](documentation/models/PaymentSplitGetResponseDto.md) | Split Settings | +| [PaymentSplitListResponseDto](documentation/models/PaymentSplitListResponseDto.md) | | +| [PaymentSplitListPaidRequestPaymentSplitStatus](documentation/models/PaymentSplitListPaidRequestPaymentSplitStatus.md) | Filter by status | +| [PaymentSplitListReceivedRequestPaymentSplitStatus](documentation/models/PaymentSplitListReceivedRequestPaymentSplitStatus.md) | Filter by status | +| [PaymentDocumentListResponseDto](documentation/models/PaymentDocumentListResponseDto.md) | | +| [PaymentDocumentSaveRequestDto](documentation/models/PaymentDocumentSaveRequestDto.md) | | +| [PaymentDocumentGetResponseDto](documentation/models/PaymentDocumentGetResponseDto.md) | | +| [PaymentDocumentUpdateRequestDto](documentation/models/PaymentDocumentUpdateRequestDto.md) | | +| [PaymentDocumentDeleteResponseDto](documentation/models/PaymentDocumentDeleteResponseDto.md) | | +| [CustomerListResponseDto](documentation/models/CustomerListResponseDto.md) | | +| [CustomerSaveRequestDto](documentation/models/CustomerSaveRequestDto.md) | | +| [CustomerGetResponseDto](documentation/models/CustomerGetResponseDto.md) | | +| [CustomerUpdateRequestDto](documentation/models/CustomerUpdateRequestDto.md) | | +| [CustomerDeleteResponseDto](documentation/models/CustomerDeleteResponseDto.md) | | +| [NotificationListResponseDto](documentation/models/NotificationListResponseDto.md) | | +| [NotificationUpdateRequestDto](documentation/models/NotificationUpdateRequestDto.md) | List of notification information | +| [NotificationGetResponseDto](documentation/models/NotificationGetResponseDto.md) | List of notification information | +| [NotificationBatchUpdateRequestDto](documentation/models/NotificationBatchUpdateRequestDto.md) | | +| [NotificationBatchUpdateResponseDto](documentation/models/NotificationBatchUpdateResponseDto.md) | | +| [InstallmentListResponseDto](documentation/models/InstallmentListResponseDto.md) | | +| [InstallmentSaveRequestDto](documentation/models/InstallmentSaveRequestDto.md) | | +| [InstallmentGetResponseDto](documentation/models/InstallmentGetResponseDto.md) | | +| [InstallmentSaveWithCreditCardRequestDto](documentation/models/InstallmentSaveWithCreditCardRequestDto.md) | | +| [InstallmentDeleteResponseDto](documentation/models/InstallmentDeleteResponseDto.md) | | +| [InstallmentListPaymentsRequestPaymentStatus](documentation/models/InstallmentListPaymentsRequestPaymentStatus.md) | Filter by payment status | +| [InstallmentPaymentBookResponseDto](documentation/models/InstallmentPaymentBookResponseDto.md) | | +| [InstallmentUpdateSplitRequestDto](documentation/models/InstallmentUpdateSplitRequestDto.md) | | +| [InstallmentUpdateSplitResponseDto](documentation/models/InstallmentUpdateSplitResponseDto.md) | | +| [SubscriptionListResponseDto](documentation/models/SubscriptionListResponseDto.md) | | +| [SubscriptionListRequestBillingType](documentation/models/SubscriptionListRequestBillingType.md) | Filter by billing type | +| [SubscriptionListRequestSubscriptionStatus](documentation/models/SubscriptionListRequestSubscriptionStatus.md) | Filter by status | +| [SubscriptionSaveRequestDto](documentation/models/SubscriptionSaveRequestDto.md) | | +| [SubscriptionGetResponseDto](documentation/models/SubscriptionGetResponseDto.md) | | +| [SubscriptionSaveWithCreditCardRequestDto](documentation/models/SubscriptionSaveWithCreditCardRequestDto.md) | | +| [SubscriptionSaveWithCreditCardResponseDto](documentation/models/SubscriptionSaveWithCreditCardResponseDto.md) | | +| [SubscriptionUpdateRequestDto](documentation/models/SubscriptionUpdateRequestDto.md) | | +| [SubscriptionDeleteResponseDto](documentation/models/SubscriptionDeleteResponseDto.md) | | +| [SubscriptionUpdateCreditCardRequestDto](documentation/models/SubscriptionUpdateCreditCardRequestDto.md) | | +| [SubscriptionListPaymentsRequestPaymentStatus](documentation/models/SubscriptionListPaymentsRequestPaymentStatus.md) | Filter by payment status | +| [SubscriptionInvoiceConfigGetResponseDto](documentation/models/SubscriptionInvoiceConfigGetResponseDto.md) | | +| [SubscriptionConfigureInvoiceRequestDto](documentation/models/SubscriptionConfigureInvoiceRequestDto.md) | | +| [SubscriptionInvoiceConfigUpdateRequestDto](documentation/models/SubscriptionInvoiceConfigUpdateRequestDto.md) | | +| [SubscriptionDeleteInvoiceConfigResponseDto](documentation/models/SubscriptionDeleteInvoiceConfigResponseDto.md) | | +| [InvoiceListResponseDto](documentation/models/InvoiceListResponseDto.md) | | +| [SubscriptionGetInvoicesRequestInvoiceStatus](documentation/models/SubscriptionGetInvoicesRequestInvoiceStatus.md) | Filter by invoice status | +| [PixAddressKeyListResponseDto](documentation/models/PixAddressKeyListResponseDto.md) | | +| [PixAddressKeyListRequestPixAddressKeyStatus](documentation/models/PixAddressKeyListRequestPixAddressKeyStatus.md) | Filter by current key status | +| [PixAddressKeySaveRequestDto](documentation/models/PixAddressKeySaveRequestDto.md) | | +| [PixAddressKeyGetResponseDto](documentation/models/PixAddressKeyGetResponseDto.md) | | +| [PixQrCodeSaveRequestDto](documentation/models/PixQrCodeSaveRequestDto.md) | | +| [PixQrCodeSaveResponseDto](documentation/models/PixQrCodeSaveResponseDto.md) | | +| [PixQrCodeDeleteResponseDto](documentation/models/PixQrCodeDeleteResponseDto.md) | | +| [PixTokenBucketGetAddressKeyResponseDto](documentation/models/PixTokenBucketGetAddressKeyResponseDto.md) | | +| [PixTransactionSaveRequestDto](documentation/models/PixTransactionSaveRequestDto.md) | | +| [PixTransactionGetResponseDto](documentation/models/PixTransactionGetResponseDto.md) | | +| [PixQrCodeDecodeRequestDto](documentation/models/PixQrCodeDecodeRequestDto.md) | | +| [PixQrCodeDecodeResponseDto](documentation/models/PixQrCodeDecodeResponseDto.md) | | +| [PixTransactionListResponseDto](documentation/models/PixTransactionListResponseDto.md) | | +| [PixTransactionListRequestPixTransactionStatus](documentation/models/PixTransactionListRequestPixTransactionStatus.md) | Filter by transaction status | +| [PixTransactionListRequestPixTransactionType](documentation/models/PixTransactionListRequestPixTransactionType.md) | Filter by transaction type | +| [AnticipationGetResponseDto](documentation/models/AnticipationGetResponseDto.md) | | +| [AnticipationListResponseDto](documentation/models/AnticipationListResponseDto.md) | | +| [AnticipationListRequestAnticipationStatus](documentation/models/AnticipationListRequestAnticipationStatus.md) | Filter by status | +| [AnticipationSaveRequestDto](documentation/models/AnticipationSaveRequestDto.md) | | +| [AnticipationSimulateRequestDto](documentation/models/AnticipationSimulateRequestDto.md) | | +| [AnticipationSimulateResponseDto](documentation/models/AnticipationSimulateResponseDto.md) | | +| [AnticipationConfigurationGetResponseDto](documentation/models/AnticipationConfigurationGetResponseDto.md) | | +| [AnticipationConfigurationUpdateRequestDto](documentation/models/AnticipationConfigurationUpdateRequestDto.md) | | +| [AnticipationLimitsResponseDto](documentation/models/AnticipationLimitsResponseDto.md) | | +| [PixRecurringTransactionListResponseDto](documentation/models/PixRecurringTransactionListResponseDto.md) | | +| [RecurringPixTransactionListRequestPixRecurringTransactionStatus](documentation/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.md) | Filter by recurrence status | +| [PixRecurringTransactionGetResponseDto](documentation/models/PixRecurringTransactionGetResponseDto.md) | | +| [RecurringPixTransactionListItemsResponseDto](documentation/models/RecurringPixTransactionListItemsResponseDto.md) | | +| [PixRecurringTransactionGetItemResponseDto](documentation/models/PixRecurringTransactionGetItemResponseDto.md) | | +| [PaymentLinkListResponseDto](documentation/models/PaymentLinkListResponseDto.md) | | +| [PaymentLinkSaveRequestDto](documentation/models/PaymentLinkSaveRequestDto.md) | | +| [PaymentLinkGetResponseDto](documentation/models/PaymentLinkGetResponseDto.md) | | +| [PaymentLinkUpdateRequestDto](documentation/models/PaymentLinkUpdateRequestDto.md) | | +| [PaymentLinkDeleteResponseDto](documentation/models/PaymentLinkDeleteResponseDto.md) | | +| [PaymentLinkFileListResponseDto](documentation/models/PaymentLinkFileListResponseDto.md) | | +| [PaymentLinkFileSaveRequestDto](documentation/models/PaymentLinkFileSaveRequestDto.md) | | +| [PaymentLinkFileGetResponseDto](documentation/models/PaymentLinkFileGetResponseDto.md) | | +| [PaymentLinkFileDeleteResponseDto](documentation/models/PaymentLinkFileDeleteResponseDto.md) | | +| [CheckoutSessionSaveRequestDto](documentation/models/CheckoutSessionSaveRequestDto.md) | | +| [CheckoutSessionResponseDto](documentation/models/CheckoutSessionResponseDto.md) | | +| [TransferListResponseDto](documentation/models/TransferListResponseDto.md) | | +| [TransferSaveRequestDto](documentation/models/TransferSaveRequestDto.md) | | +| [TransferGetResponseDto](documentation/models/TransferGetResponseDto.md) | | +| [TransferSaveInternalTransferRequestDto](documentation/models/TransferSaveInternalTransferRequestDto.md) | | +| [TransferSaveInternalTransferResponseDto](documentation/models/TransferSaveInternalTransferResponseDto.md) | | +| [PaymentDunningListResponseDto](documentation/models/PaymentDunningListResponseDto.md) | | +| [PaymentDunningListRequestPaymentDunningStatus](documentation/models/PaymentDunningListRequestPaymentDunningStatus.md) | Filter by payment dunning status | +| [PaymentDunningListRequestPaymentDunningType](documentation/models/PaymentDunningListRequestPaymentDunningType.md) | Filter by type of payment dunning | +| [PaymentDunningSaveRequestDto](documentation/models/PaymentDunningSaveRequestDto.md) | | +| [PaymentDunningShowResponseDto](documentation/models/PaymentDunningShowResponseDto.md) | | +| [PaymentDunningSimulateResponseDto](documentation/models/PaymentDunningSimulateResponseDto.md) | | +| [PaymentDunningListHistoryResponseDto](documentation/models/PaymentDunningListHistoryResponseDto.md) | | +| [PaymentDunningListPartialPaymentsResponseDto](documentation/models/PaymentDunningListPartialPaymentsResponseDto.md) | | +| [PaymentDunningPaymentsAvailableForDunningResponseDto](documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDto.md) | | +| [PaymentDunningSaveDocumentsRequestDto](documentation/models/PaymentDunningSaveDocumentsRequestDto.md) | | +| [PaymentDunningSaveDocumentsResponseDto](documentation/models/PaymentDunningSaveDocumentsResponseDto.md) | | +| [PaymentDunningCancelResponseDto](documentation/models/PaymentDunningCancelResponseDto.md) | | +| [BillListResponseDto](documentation/models/BillListResponseDto.md) | | +| [BillSaveRequestDto](documentation/models/BillSaveRequestDto.md) | | +| [BillGetResponseDto](documentation/models/BillGetResponseDto.md) | | +| [BillSimulateRequestDto](documentation/models/BillSimulateRequestDto.md) | | +| [BillSimulateResponseDto](documentation/models/BillSimulateResponseDto.md) | | +| [MobilePhoneRechargeListResponseDto](documentation/models/MobilePhoneRechargeListResponseDto.md) | | +| [MobilePhoneRechargeSaveRequestDto](documentation/models/MobilePhoneRechargeSaveRequestDto.md) | | +| [MobilePhoneRechargeGetResponseDto](documentation/models/MobilePhoneRechargeGetResponseDto.md) | | +| [MobilePhoneRechargeFindProviderResponseDto](documentation/models/MobilePhoneRechargeFindProviderResponseDto.md) | | +| [CreditBureauReportListResponseDto](documentation/models/CreditBureauReportListResponseDto.md) | | +| [CreditBureauReportSaveRequestDto](documentation/models/CreditBureauReportSaveRequestDto.md) | | +| [CreditBureauReportGetResponseDto](documentation/models/CreditBureauReportGetResponseDto.md) | | +| [FinancialTransactionListResponseDto](documentation/models/FinancialTransactionListResponseDto.md) | | +| [FinanceBalanceResponseDto](documentation/models/FinanceBalanceResponseDto.md) | | +| [FinanceGetPaymentStatisticsResponseDto](documentation/models/FinanceGetPaymentStatisticsResponseDto.md) | | +| [FinanceGetPaymentStatisticsRequestBillingType](documentation/models/FinanceGetPaymentStatisticsRequestBillingType.md) | Filter by payment method | +| [FinanceGetPaymentStatisticsRequestPaymentStatus](documentation/models/FinanceGetPaymentStatisticsRequestPaymentStatus.md) | Filter by status | +| [FinanceGetSplitStatisticsResponseDto](documentation/models/FinanceGetSplitStatisticsResponseDto.md) | | +| [AccountInfoGetResponseDto](documentation/models/AccountInfoGetResponseDto.md) | | +| [AccountInfoSaveRequestDto](documentation/models/AccountInfoSaveRequestDto.md) | | +| [PaymentCheckoutConfigGetResponseDto](documentation/models/PaymentCheckoutConfigGetResponseDto.md) | | +| [PaymentCheckoutConfigSaveRequestDto](documentation/models/PaymentCheckoutConfigSaveRequestDto.md) | | +| [MyAccountGetAccountNumberResponseDto](documentation/models/MyAccountGetAccountNumberResponseDto.md) | | +| [MyAccountGetAccountFeesResponseDto](documentation/models/MyAccountGetAccountFeesResponseDto.md) | | +| [MyAccountGetStatusResponseDto](documentation/models/MyAccountGetStatusResponseDto.md) | | +| [WalletShowResponseDto](documentation/models/WalletShowResponseDto.md) | | +| [MyAccountDisableAccountResponseDto](documentation/models/MyAccountDisableAccountResponseDto.md) | | +| [InvoiceListRequestInvoiceStatus](documentation/models/InvoiceListRequestInvoiceStatus.md) | Filter by situation | +| [InvoiceSaveRequestDto](documentation/models/InvoiceSaveRequestDto.md) | | +| [InvoiceGetResponseDto](documentation/models/InvoiceGetResponseDto.md) | | +| [InvoiceUpdateRequestDto](documentation/models/InvoiceUpdateRequestDto.md) | | +| [InvoiceCancelRequestDto](documentation/models/InvoiceCancelRequestDto.md) | | +| [FiscalInfoMunicipalOptionsGetResponseDto](documentation/models/FiscalInfoMunicipalOptionsGetResponseDto.md) | | +| [FiscalInfoGetResponseDto](documentation/models/FiscalInfoGetResponseDto.md) | | +| [FiscalInfoSaveRequestDto](documentation/models/FiscalInfoSaveRequestDto.md) | | +| [FiscalInfoListMunicipalServicesResponseDto](documentation/models/FiscalInfoListMunicipalServicesResponseDto.md) | | +| [FiscalInfoListInvoiceNbsCodesResponseDto](documentation/models/FiscalInfoListInvoiceNbsCodesResponseDto.md) | | +| [FiscalInfoUpdateUseNationalPortalRequestDto](documentation/models/FiscalInfoUpdateUseNationalPortalRequestDto.md) | | +| [FiscalInfoUpdateUseNationalPortalResponseDto](documentation/models/FiscalInfoUpdateUseNationalPortalResponseDto.md) | | +| [WebhookConfigListResponseDto](documentation/models/WebhookConfigListResponseDto.md) | | +| [WebhookConfigSaveRequestDto](documentation/models/WebhookConfigSaveRequestDto.md) | Array with desired Webhooks settings | +| [WebhookConfigGetResponseDto](documentation/models/WebhookConfigGetResponseDto.md) | | +| [WebhookConfigUpdateRequestDto](documentation/models/WebhookConfigUpdateRequestDto.md) | | +| [WebhookConfigDeleteResponseDto](documentation/models/WebhookConfigDeleteResponseDto.md) | | +| [AccountListResponseDto](documentation/models/AccountListResponseDto.md) | | +| [AccountSaveRequestDto](documentation/models/AccountSaveRequestDto.md) | | +| [AccountSaveResponseDto](documentation/models/AccountSaveResponseDto.md) | | +| [AccountGetResponseDto](documentation/models/AccountGetResponseDto.md) | | +| [AccountPaymentEscrowConfigDto](documentation/models/AccountPaymentEscrowConfigDto.md) | | +| [AccountSaveOrUpdatePaymentEscrowConfigRequestDto](documentation/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.md) | | +| [AccountDocumentShowResponseDto](documentation/models/AccountDocumentShowResponseDto.md) | | +| [AccountDocumentSaveRequestDto](documentation/models/AccountDocumentSaveRequestDto.md) | | +| [AccountDocumentGetResponseDto](documentation/models/AccountDocumentGetResponseDto.md) | | +| [AccountDocumentUpdateRequestDto](documentation/models/AccountDocumentUpdateRequestDto.md) | | +| [AccountDocumentDeleteResponseDto](documentation/models/AccountDocumentDeleteResponseDto.md) | | +| [ChargebackSaveDisputeRequestDto](documentation/models/ChargebackSaveDisputeRequestDto.md) | | +| [ChargebackSaveDisputeResponseDto](documentation/models/ChargebackSaveDisputeResponseDto.md) | | +| [ChargebackListResponseDto](documentation/models/ChargebackListResponseDto.md) | | +| [ChargebackListRequestCreditCardBrand](documentation/models/ChargebackListRequestCreditCardBrand.md) | Filter by used card brand. | +| [ChargebackListRequestChargebackStatus](documentation/models/ChargebackListRequestChargebackStatus.md) | Filter by chargeback status. | +| [PaymentChargebackResponseDto](documentation/models/PaymentChargebackResponseDto.md) | | +| [PaymentGetResponseBillingType](documentation/models/PaymentGetResponseBillingType.md) | Payment billing type | +| [PaymentSaveWithCreditCardCreditCardDto](documentation/models/PaymentSaveWithCreditCardCreditCardDto.md) | Credit card information | +| [PaymentGetResponsePaymentStatus](documentation/models/PaymentGetResponsePaymentStatus.md) | Payment status | +| [PaymentDiscountDto](documentation/models/PaymentDiscountDto.md) | Discount information | +| [PaymentFineResponseDto](documentation/models/PaymentFineResponseDto.md) | Fine information for payment after due date | +| [PaymentInterestResponseDto](documentation/models/PaymentInterestResponseDto.md) | Interest information for payment after due date | +| [PaymentRefundGetResponseDto](documentation/models/PaymentRefundGetResponseDto.md) | Refunds information | +| [PaymentSaveWithCreditCardCreditCardCreditCardBrand](documentation/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.md) | Flag of the card used | +| [PaymentDiscountDiscountType](documentation/models/PaymentDiscountDiscountType.md) | Discount type | +| [PaymentSplitGetResponsePaymentSplitCancellationReason](documentation/models/PaymentSplitGetResponsePaymentSplitCancellationReason.md) | Reason for canceling the split | +| [PaymentSplitGetResponsePaymentSplitStatus](documentation/models/PaymentSplitGetResponsePaymentSplitStatus.md) | Split status | +| [PaymentChargebackResponseChargebackStatus](documentation/models/PaymentChargebackResponseChargebackStatus.md) | Chargeback status | +| [PaymentChargebackResponseChargebackReason](documentation/models/PaymentChargebackResponseChargebackReason.md) | Chargeback reason | +| [ChargebackCreditCardResponseDto](documentation/models/ChargebackCreditCardResponseDto.md) | Credit card information | +| [PaymentChargebackResponseChargebackDisputeStatus](documentation/models/PaymentChargebackResponseChargebackDisputeStatus.md) | Chargeback dispute status. | +| [ChargebackCreditCardResponseCreditCardBrand](documentation/models/ChargebackCreditCardResponseCreditCardBrand.md) | Flag of the card used | +| [PaymentEscrowGetResponsePaymentEscrowStatus](documentation/models/PaymentEscrowGetResponsePaymentEscrowStatus.md) | Payment escrow status | +| [PaymentEscrowGetResponsePaymentEscrowFinishReason](documentation/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.md) | Payment escrow finish reason | +| [PaymentRefundGetResponsePaymentRefundStatus](documentation/models/PaymentRefundGetResponsePaymentRefundStatus.md) | Refund status | +| [PaymentRefundedSplitResponseDto](documentation/models/PaymentRefundedSplitResponseDto.md) | Refunded Splits, if any | +| [PaymentSaveRequestBillingType](documentation/models/PaymentSaveRequestBillingType.md) | Payment billing type | +| [PaymentInterestRequestDto](documentation/models/PaymentInterestRequestDto.md) | Interest information for payment after due date | +| [PaymentFineRequestDto](documentation/models/PaymentFineRequestDto.md) | Fine information for payment after due date | +| [PaymentSplitRequestDto](documentation/models/PaymentSplitRequestDto.md) | Split Settings | +| [PaymentCallbackRequestDto](documentation/models/PaymentCallbackRequestDto.md) | Automatic redirection information after the payment of the link payment | +| [PaymentFineRequestFineType](documentation/models/PaymentFineRequestFineType.md) | Fine type | +| [PaymentSaveWithCreditCardRequestBillingType](documentation/models/PaymentSaveWithCreditCardRequestBillingType.md) | Payment billing type | +| [CreditCardRequestDto](documentation/models/CreditCardRequestDto.md) | Credit card information | +| [CreditCardHolderInfoRequestDto](documentation/models/CreditCardHolderInfoRequestDto.md) | Credit card holder information | +| [BankSlipBillingInfoResponseDto](documentation/models/BankSlipBillingInfoResponseDto.md) | Payment data related to bank slip | +| [CreditCardTokenizeResponseCreditCardBrand](documentation/models/CreditCardTokenizeResponseCreditCardBrand.md) | Brand of the card used | +| [PaymentUpdateRequestBillingType](documentation/models/PaymentUpdateRequestBillingType.md) | Payment billing type | +| [PaymentStatusResponsePaymentStatus](documentation/models/PaymentStatusResponsePaymentStatus.md) | Payment status | +| [PaymentSimulateRequestBillingType](documentation/models/PaymentSimulateRequestBillingType.md) | Form of payment | +| [PaymentSimulateCreditCardResponseDto](documentation/models/PaymentSimulateCreditCardResponseDto.md) | Card fees | +| [PaymentSimulateBankSlipResponseDto](documentation/models/PaymentSimulateBankSlipResponseDto.md) | Boleto fees | +| [PaymentSimulatePixResponseDto](documentation/models/PaymentSimulatePixResponseDto.md) | PIX fees | +| [PaymentSimulateInstallmentResponseDto](documentation/models/PaymentSimulateInstallmentResponseDto.md) | Installment information | +| [PaymentLimitsResponseCreationDto](documentation/models/PaymentLimitsResponseCreationDto.md) | Breeding limits | +| [PaymentLimitsResponseCreationDailyDto](documentation/models/PaymentLimitsResponseCreationDailyDto.md) | Daily limits | +| [PaymentLeanGetResponseBillingType](documentation/models/PaymentLeanGetResponseBillingType.md) | Payment billing type | +| [PaymentLeanGetResponsePaymentStatus](documentation/models/PaymentLeanGetResponsePaymentStatus.md) | Payment status | +| [PaymentLeanSaveWithCreditCardResponseBillingType](documentation/models/PaymentLeanSaveWithCreditCardResponseBillingType.md) | Payment billing type | +| [PaymentLeanSaveWithCreditCardResponsePaymentStatus](documentation/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.md) | Payment status | +| [PaymentDocumentGetResponsePaymentDocumentType](documentation/models/PaymentDocumentGetResponsePaymentDocumentType.md) | Document type | +| [PaymentDocumentFileResponseDto](documentation/models/PaymentDocumentFileResponseDto.md) | File object | +| [PaymentDocumentSaveRequestPaymentDocumentType](documentation/models/PaymentDocumentSaveRequestPaymentDocumentType.md) | Document type | +| [PaymentDocumentUpdateRequestPaymentDocumentType](documentation/models/PaymentDocumentUpdateRequestPaymentDocumentType.md) | Document type | +| [CustomerGetResponsePersonType](documentation/models/CustomerGetResponsePersonType.md) | Kind of person | +| [NotificationGetResponseNotificationEvent](documentation/models/NotificationGetResponseNotificationEvent.md) | Kind of event | +| [InstallmentGetResponseBillingType](documentation/models/InstallmentGetResponseBillingType.md) | Form of payment | +| [InstallmentRefundResponseDto](documentation/models/InstallmentRefundResponseDto.md) | Refunds information | +| [InstallmentRefundResponsePaymentRefundStatus](documentation/models/InstallmentRefundResponsePaymentRefundStatus.md) | Refund status | +| [InstallmentSaveRequestBillingType](documentation/models/InstallmentSaveRequestBillingType.md) | Payment billing type | +| [InstallmentSplitRequestDto](documentation/models/InstallmentSplitRequestDto.md) | Split Settings | +| [InstallmentSaveWithCreditCardRequestBillingType](documentation/models/InstallmentSaveWithCreditCardRequestBillingType.md) | Payment billing type | +| [InstallmentSplitGetResponseDto](documentation/models/InstallmentSplitGetResponseDto.md) | Split array | +| [InstallmentSplitGetResponsePaymentSplitCancellationReason](documentation/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.md) | Reason for canceling the split | +| [InstallmentSplitGetResponsePaymentSplitStatus](documentation/models/InstallmentSplitGetResponsePaymentSplitStatus.md) | Split status | +| [SubscriptionGetResponseBillingType](documentation/models/SubscriptionGetResponseBillingType.md) | Billing type | +| [SubscriptionGetResponseCycle](documentation/models/SubscriptionGetResponseCycle.md) | Billing frequency | +| [SubscriptionGetResponseSubscriptionStatus](documentation/models/SubscriptionGetResponseSubscriptionStatus.md) | Subscription status | +| [SubscriptionSplitResponseDto](documentation/models/SubscriptionSplitResponseDto.md) | Split information | +| [SubscriptionSplitResponseSubscriptionSplitStatus](documentation/models/SubscriptionSplitResponseSubscriptionSplitStatus.md) | Subscription split status | +| [SubscriptionSplitResponseSubscriptionSplitDisabledReason](documentation/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.md) | Reason why subscription split was disabled | +| [SubscriptionSaveRequestBillingType](documentation/models/SubscriptionSaveRequestBillingType.md) | Billing type | +| [SubscriptionSaveRequestCycle](documentation/models/SubscriptionSaveRequestCycle.md) | Billing frequency | +| [SubscriptionSplitRequestDto](documentation/models/SubscriptionSplitRequestDto.md) | Split information | +| [SubscriptionSaveWithCreditCardRequestBillingType](documentation/models/SubscriptionSaveWithCreditCardRequestBillingType.md) | Billing type | +| [SubscriptionSaveWithCreditCardRequestCycle](documentation/models/SubscriptionSaveWithCreditCardRequestCycle.md) | Billing frequency | +| [SubscriptionSaveWithCreditCardResponseBillingType](documentation/models/SubscriptionSaveWithCreditCardResponseBillingType.md) | Billing type | +| [SubscriptionSaveWithCreditCardResponseCycle](documentation/models/SubscriptionSaveWithCreditCardResponseCycle.md) | Billing frequency | +| [SubscriptionSaveWithCreditCardResponseSubscriptionStatus](documentation/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.md) | Subscription status | +| [SubscriptionUpdateRequestBillingType](documentation/models/SubscriptionUpdateRequestBillingType.md) | Billing type | +| [SubscriptionUpdateRequestSubscriptionStatus](documentation/models/SubscriptionUpdateRequestSubscriptionStatus.md) | Subscription status | +| [SubscriptionUpdateRequestCycle](documentation/models/SubscriptionUpdateRequestCycle.md) | Billing frequency | +| [InvoiceTaxesDto](documentation/models/InvoiceTaxesDto.md) | Invoice taxes | +| [InvoiceGetResponseInvoiceStatus](documentation/models/InvoiceGetResponseInvoiceStatus.md) | Invoice status | +| [PixAddressKeyGetResponsePixAddressKeyType](documentation/models/PixAddressKeyGetResponsePixAddressKeyType.md) | Pix key type | +| [PixAddressKeyGetResponsePixAddressKeyStatus](documentation/models/PixAddressKeyGetResponsePixAddressKeyStatus.md) | Key status | +| [PixAddressKeyQrCodeGetResponseDto](documentation/models/PixAddressKeyQrCodeGetResponseDto.md) | Pix key QRCode | +| [PixAddressKeySaveRequestPixAddressKeyType](documentation/models/PixAddressKeySaveRequestPixAddressKeyType.md) | Pix key type | +| [PixTransactionQrCodeSaveRequestDto](documentation/models/PixTransactionQrCodeSaveRequestDto.md) | QRCode payload for payment | +| [PixTransactionGetResponsePixTransactionCashValueFinality](documentation/models/PixTransactionGetResponsePixTransactionCashValueFinality.md) | Used to indicate whether it is a Withdrawal or Change | +| [PixTransactionGetResponsePixTransactionStatus](documentation/models/PixTransactionGetResponsePixTransactionStatus.md) | Transaction status | +| [PixTransactionGetResponsePixTransactionType](documentation/models/PixTransactionGetResponsePixTransactionType.md) | Transaction type | +| [PixTransactionGetResponsePixTransactionOriginType](documentation/models/PixTransactionGetResponsePixTransactionOriginType.md) | Indicates the origin of the transaction | +| [PixOriginalTransactionResponseDto](documentation/models/PixOriginalTransactionResponseDto.md) | Original transaction information if a chargeback has occurred | +| [PixTransactionExternalAccountResponseDto](documentation/models/PixTransactionExternalAccountResponseDto.md) | Information about the recipient | +| [PixTransactionQrCodeResponseDto](documentation/models/PixTransactionQrCodeResponseDto.md) | Information about QrCode | +| [PixTransactionGetResponsePixAddressKeyType](documentation/models/PixTransactionGetResponsePixAddressKeyType.md) | Pix key type | +| [PixTransactionExternalAccountResponsePixAddressKeyType](documentation/models/PixTransactionExternalAccountResponsePixAddressKeyType.md) | Pix key type | +| [PixTransactionQrCodePayerResponseDto](documentation/models/PixTransactionQrCodePayerResponseDto.md) | Information about the payer | +| [PixQrCodeDecodeResponsePixQrCodeType](documentation/models/PixQrCodeDecodeResponsePixQrCodeType.md) | QRCode Type | +| [PixQrCodeDecodeResponsePixTransactionOriginType](documentation/models/PixQrCodeDecodeResponsePixTransactionOriginType.md) | Transaction origin | +| [PixQrCodeDecodeResponsePixTransactionCashValueFinality](documentation/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.md) | Used to indicate whether it is a Withdrawal or Change | +| [PixQrCodeDecodeReceiverDto](documentation/models/PixQrCodeDecodeReceiverDto.md) | Information about the receiver | +| [PixQrCodeDecodeReceiverPersonType](documentation/models/PixQrCodeDecodeReceiverPersonType.md) | Person type | +| [PixQrCodeDecodeReceiverPixAccountType](documentation/models/PixQrCodeDecodeReceiverPixAccountType.md) | Receiver account type | +| [AnticipationGetResponseAnticipationStatus](documentation/models/AnticipationGetResponseAnticipationStatus.md) | Anticipation status | +| [AnticipationLimitsInfoResponseDto](documentation/models/AnticipationLimitsInfoResponseDto.md) | Credit card anticipation limits | +| [PixRecurringTransactionGetResponsePixRecurringTransactionStatus](documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.md) | Recurrence status | +| [PixRecurringTransactionGetResponsePixRecurringTransactionOrigin](documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.md) | Indicates the origin of the recurrence | +| [PixRecurringTransactionGetResponsePixRecurringTransactionFrequency](documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.md) | Recurrence frequency | +| [PixRecurringTransactionExternalAccountDto](documentation/models/PixRecurringTransactionExternalAccountDto.md) | Receiver information | +| [PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus](documentation/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.md) | Recurrence item status | +| [PaymentLinkGetResponseChargeType](documentation/models/PaymentLinkGetResponseChargeType.md) | Charge type | +| [PaymentLinkGetResponseBillingType](documentation/models/PaymentLinkGetResponseBillingType.md) | Allowed payment method | +| [PaymentLinkGetResponseCycle](documentation/models/PaymentLinkGetResponseCycle.md) | Billing frequency, if the chargeType is RECURRENT | +| [PaymentLinkSaveRequestBillingType](documentation/models/PaymentLinkSaveRequestBillingType.md) | Allowed payment method | +| [PaymentLinkSaveRequestChargeType](documentation/models/PaymentLinkSaveRequestChargeType.md) | Charge type | +| [PaymentLinkSaveRequestCycle](documentation/models/PaymentLinkSaveRequestCycle.md) | Billing frequency, if the chargeType is RECURRENT | +| [PaymentLinkUpdateRequestBillingType](documentation/models/PaymentLinkUpdateRequestBillingType.md) | Allowed payment method | +| [PaymentLinkUpdateRequestChargeType](documentation/models/PaymentLinkUpdateRequestChargeType.md) | Charge type | +| [PaymentLinkUpdateRequestCycle](documentation/models/PaymentLinkUpdateRequestCycle.md) | Billing frequency, if the chargeType is RECURRENT | +| [PaymentLinkFileImageResponseDto](documentation/models/PaymentLinkFileImageResponseDto.md) | Payments link image information | +| [CheckoutSessionSaveRequestBillingType](documentation/models/CheckoutSessionSaveRequestBillingType.md) | Payment methods | +| [CheckoutSessionSaveRequestChargeType](documentation/models/CheckoutSessionSaveRequestChargeType.md) | Charge types | +| [CheckoutSessionCallbackDto](documentation/models/CheckoutSessionCallbackDto.md) | Automatic redirection information after payment on the checkout screen | +| [CheckoutSessionItemsDto](documentation/models/CheckoutSessionItemsDto.md) | List of items at checkout | +| [CheckoutSessionCustomerDataDto](documentation/models/CheckoutSessionCustomerDataDto.md) | Customer data | +| [CheckoutSessionSubscriptionDto](documentation/models/CheckoutSessionSubscriptionDto.md) | Subscription details, required if chargeTypes includes `RECURRENT` | +| [CheckoutSessionInstallmentDto](documentation/models/CheckoutSessionInstallmentDto.md) | Installment details. If informed, it will be mandatory to include the `INSTALLMENT` chargeType | +| [CheckoutSessionSplitDto](documentation/models/CheckoutSessionSplitDto.md) | Split Settings | +| [CheckoutSessionSubscriptionCycle](documentation/models/CheckoutSessionSubscriptionCycle.md) | Billing frequency | +| [CheckoutSessionResponseBillingType](documentation/models/CheckoutSessionResponseBillingType.md) | Payment methods | +| [CheckoutSessionResponseChargeType](documentation/models/CheckoutSessionResponseChargeType.md) | Charge types | +| [TransferGetResponseTransferStatus](documentation/models/TransferGetResponseTransferStatus.md) | Transfer status | +| [TransferGetResponseTransferType](documentation/models/TransferGetResponseTransferType.md) | Transfer method | +| [TransferBankAccountGetResponseDto](documentation/models/TransferBankAccountGetResponseDto.md) | Bank account details | +| [TransferBankGetResponseDto](documentation/models/TransferBankGetResponseDto.md) | Bank account name | +| [TransferBankAccountSaveRequestDto](documentation/models/TransferBankAccountSaveRequestDto.md) | Enter your account details if it is a transfer to a bank account | +| [TransferSaveRequestTransferType](documentation/models/TransferSaveRequestTransferType.md) | Transfer modality. If not informed and the receiving institution is a Pix participant, the transfer is via Pix. Otherwise via TED. | +| [TransferSaveRequestPixAddressKeyType](documentation/models/TransferSaveRequestPixAddressKeyType.md) | Enter the type of key if it is a transfer to a Pix key | +| [TransferRecurringSaveRequestDto](documentation/models/TransferRecurringSaveRequestDto.md) | Recurrence information. Only for Pix transfers | +| [TransferBankSaveRequestDto](documentation/models/TransferBankSaveRequestDto.md) | Details of the bank account to which the transfer will be made | +| [TransferBankAccountSaveRequestBankAccountType](documentation/models/TransferBankAccountSaveRequestBankAccountType.md) | Account type | +| [TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency](documentation/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md) | Frequency | +| [TransferSaveInternalTransferResponseTransferStatus](documentation/models/TransferSaveInternalTransferResponseTransferStatus.md) | Transfer status | +| [TransferSaveInternalTransferResponseTransferType](documentation/models/TransferSaveInternalTransferResponseTransferType.md) | Transfer method | +| [TransferSaveInternalTransferAccountDto](documentation/models/TransferSaveInternalTransferAccountDto.md) | Target account basic information | +| [PaymentDunningShowResponsePaymentDunningStatus](documentation/models/PaymentDunningShowResponsePaymentDunningStatus.md) | Payment dunning status | +| [PaymentDunningShowResponsePaymentDunningType](documentation/models/PaymentDunningShowResponsePaymentDunningType.md) | Type of payment dunning | +| [PaymentDunningSaveRequestPaymentDunningType](documentation/models/PaymentDunningSaveRequestPaymentDunningType.md) | Type of payment dunning | +| [PaymentDunningSimulateResponseTypeSimulationItemDto](documentation/models/PaymentDunningSimulateResponseTypeSimulationItemDto.md) | Simulation of denial request for each type of denial available | +| [PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType](documentation/models/PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md) | Type of payment dunning | +| [PaymentDunningListHistoryResponseDataDto](documentation/models/PaymentDunningListHistoryResponseDataDto.md) | List of objects | +| [PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus](documentation/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md) | Negotiation status | +| [PaymentDunningListPartialPaymentsResponseDataDto](documentation/models/PaymentDunningListPartialPaymentsResponseDataDto.md) | List of objects | +| [PaymentDunningPaymentsAvailableForDunningResponseDataDto](documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.md) | List of objects | +| [PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus](documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md) | Billing status | +| [PaymentDunningPaymentsAvailableForDunningResponseDataBillingType](documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md) | Form of payment | +| [PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto](documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md) | Simulation of denial request for each type of payment dunning available | +| [PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType](documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md) | Type of payment dunning | +| [PaymentDunningSaveDocumentsResponsePaymentDunningStatus](documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.md) | Payment dunning status | +| [PaymentDunningSaveDocumentsResponsePaymentDunningType](documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.md) | Type of payment dunning | +| [PaymentDunningCancelResponsePaymentDunningStatus](documentation/models/PaymentDunningCancelResponsePaymentDunningStatus.md) | Payment dunning status | +| [PaymentDunningCancelResponsePaymentDunningType](documentation/models/PaymentDunningCancelResponsePaymentDunningType.md) | Type of payment dunning | +| [BillGetResponseBillStatus](documentation/models/BillGetResponseBillStatus.md) | Bill payment status | +| [BillSimulateBankSlipInfoResponseDto](documentation/models/BillSimulateBankSlipInfoResponseDto.md) | Information about the bill to be paid | +| [MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus](documentation/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md) | Recharge status | +| [MobilePhoneRechargeFindProviderResponseValuesDto](documentation/models/MobilePhoneRechargeFindProviderResponseValuesDto.md) | Amounts available for recharge | +| [FinancialTransactionGetResponseDto](documentation/models/FinancialTransactionGetResponseDto.md) | List of objects | +| [FinancialTransactionGetResponseFinancialTransactionType](documentation/models/FinancialTransactionGetResponseFinancialTransactionType.md) | Transaction type | +| [AccountInfoGetResponseStatus](documentation/models/AccountInfoGetResponseStatus.md) | Account status | +| [AccountInfoGetResponsePersonType](documentation/models/AccountInfoGetResponsePersonType.md) | Person Type | +| [AccountInfoGetResponseCompanyType](documentation/models/AccountInfoGetResponseCompanyType.md) | Type of company (only when Legal Entity) | +| [AccountInfoCityDto](documentation/models/AccountInfoCityDto.md) | City information registered in your account | +| [AccountInfoCommercialInfoExpirationResponseDto](documentation/models/AccountInfoCommercialInfoExpirationResponseDto.md) | Information about the expiration of commercial data | +| [AccountInfoCityState](documentation/models/AccountInfoCityState.md) | State abbreviation (SP, RJ, SC, ...) | +| [AccountInfoSaveRequestPersonType](documentation/models/AccountInfoSaveRequestPersonType.md) | Person Type | +| [AccountInfoSaveRequestCompanyType](documentation/models/AccountInfoSaveRequestCompanyType.md) | Type of company (only when Legal Entity) | +| [PaymentCheckoutConfigGetResponseInvoiceConfigStatus](documentation/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.md) | Invoice personalization status | +| [MyAccountGetAccountFeesPaymentDto](documentation/models/MyAccountGetAccountFeesPaymentDto.md) | Billing fees | +| [MyAccountGetAccountFeesTransferDto](documentation/models/MyAccountGetAccountFeesTransferDto.md) | Transfer fees | +| [MyAccountGetAccountFeesNotificationDto](documentation/models/MyAccountGetAccountFeesNotificationDto.md) | Notification fees | +| [MyAccountGetAccountFeesCreditBureauReportDto](documentation/models/MyAccountGetAccountFeesCreditBureauReportDto.md) | Serasa consultation fees | +| [MyAccountGetAccountFeesInvoiceDto](documentation/models/MyAccountGetAccountFeesInvoiceDto.md) | Invoice fees | +| [MyAccountGetAccountFeesAnticipationDto](documentation/models/MyAccountGetAccountFeesAnticipationDto.md) | Anticipation fees | +| [MyAccountGetAccountFeesPaymentBankSlipDto](documentation/models/MyAccountGetAccountFeesPaymentBankSlipDto.md) | Boleto fees | +| [MyAccountGetAccountFeesPaymentCreditCardDto](documentation/models/MyAccountGetAccountFeesPaymentCreditCardDto.md) | Credit card fees | +| [MyAccountGetAccountFeesPaymentDebitCardDto](documentation/models/MyAccountGetAccountFeesPaymentDebitCardDto.md) | Debit card fees | +| [MyAccountGetAccountFeesPaymentPixDto](documentation/models/MyAccountGetAccountFeesPaymentPixDto.md) | Pix Fees | +| [MyAccountGetAccountFeesTransferTedDto](documentation/models/MyAccountGetAccountFeesTransferTedDto.md) | Fees for TED transfers | +| [MyAccountGetAccountFeesTransferPixDto](documentation/models/MyAccountGetAccountFeesTransferPixDto.md) | Fees for Pix transfers | +| [MyAccountGetAccountFeesAnticipationCreditCardDto](documentation/models/MyAccountGetAccountFeesAnticipationCreditCardDto.md) | Credit card anticipation fee | +| [MyAccountGetAccountFeesAnticipationBankSlipDto](documentation/models/MyAccountGetAccountFeesAnticipationBankSlipDto.md) | Anticipation fee on boletos | +| [MyAccountGetStatusResponseStatus](documentation/models/MyAccountGetStatusResponseStatus.md) | Status of sent business data | +| [WalletGetResponseDto](documentation/models/WalletGetResponseDto.md) | List of objects | +| [FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao](documentation/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md) | Type of authentication required at city hall | +| [FiscalInfoMunicipalOptionsSpecialTaxRegimesDto](documentation/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md) | Tax calculation regime options | +| [FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto](documentation/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md) | Special taxation regime options | +| [FiscalInfoListMunicipalServicesResponseDataDto](documentation/models/FiscalInfoListMunicipalServicesResponseDataDto.md) | List of objects | +| [FiscalInfoListInvoiceNbsCodesResponseDataDto](documentation/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.md) | List of objects | +| [WebhookConfigGetResponseWebhookSendType](documentation/models/WebhookConfigGetResponseWebhookSendType.md) | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | +| [WebhookConfigGetResponseWebhookEvent](documentation/models/WebhookConfigGetResponseWebhookEvent.md) | List of events this Webhook will observe | +| [WebhookConfigSaveRequestWebhookSendType](documentation/models/WebhookConfigSaveRequestWebhookSendType.md) | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | +| [WebhookConfigSaveRequestWebhookEvent](documentation/models/WebhookConfigSaveRequestWebhookEvent.md) | List of events this Webhook will observe | +| [WebhookConfigUpdateRequestWebhookSendType](documentation/models/WebhookConfigUpdateRequestWebhookSendType.md) | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | +| [WebhookConfigUpdateRequestWebhookEvent](documentation/models/WebhookConfigUpdateRequestWebhookEvent.md) | List of events this Webhook will observe | +| [AccountGetResponsePersonType](documentation/models/AccountGetResponsePersonType.md) | Kind of person | +| [AccountGetResponseCompanyType](documentation/models/AccountGetResponseCompanyType.md) | Type of company (only when Legal Entity) | +| [AccountNumberDto](documentation/models/AccountNumberDto.md) | Subaccount number in Asaas | +| [AccountSaveRequestCompanyType](documentation/models/AccountSaveRequestCompanyType.md) | Type of company (only when Legal Entity) | +| [AccountSaveResponsePersonType](documentation/models/AccountSaveResponsePersonType.md) | Kind of person | +| [AccountSaveResponseCompanyType](documentation/models/AccountSaveResponseCompanyType.md) | Type of company (only when Legal Entity) | +| [AccountDocumentGroupResponseDto](documentation/models/AccountDocumentGroupResponseDto.md) | List of objects | +| [AccountDocumentGroupResponseAccountDocumentStatus](documentation/models/AccountDocumentGroupResponseAccountDocumentStatus.md) | Document group status | +| [AccountDocumentGroupResponseAccountDocumentType](documentation/models/AccountDocumentGroupResponseAccountDocumentType.md) | Type of documents | +| [AccountDocumentResponsibleResponseDto](documentation/models/AccountDocumentResponsibleResponseDto.md) | Who is responsible for sending these documents | +| [AccountDocumentResponsibleResponseAccountDocumentResponsibleType](documentation/models/AccountDocumentResponsibleResponseAccountDocumentResponsibleType.md) | Responsible type | +| [AccountDocumentGetResponseAccountDocumentStatus](documentation/models/AccountDocumentGetResponseAccountDocumentStatus.md) | Document approval status | +| [AccountDocumentSaveRequestAccountDocumentType](documentation/models/AccountDocumentSaveRequestAccountDocumentType.md) | Document Type | +| [ChargebackSaveDisputeResponseChargebackDisputeStatus](documentation/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.md) | Dispute status. | +| [ListPaymentsParameters](documentation/models/ListPaymentsParameters.md) | | +| [ListPaymentsWithSummaryDataParameters](documentation/models/ListPaymentsWithSummaryDataParameters.md) | | +| [ListPaidSplitsParameters](documentation/models/ListPaidSplitsParameters.md) | | +| [ListReceivedSplitsParameters](documentation/models/ListReceivedSplitsParameters.md) | | +| [ListCustomersParameters](documentation/models/ListCustomersParameters.md) | | +| [ListInstallmentsParameters](documentation/models/ListInstallmentsParameters.md) | | +| [ListPaymentsOfAInstallmentParameters](documentation/models/ListPaymentsOfAInstallmentParameters.md) | | +| [GenerateInstallmentBookletParameters](documentation/models/GenerateInstallmentBookletParameters.md) | | +| [ListSubscriptionsParameters](documentation/models/ListSubscriptionsParameters.md) | | +| [ListPaymentsOfASubscriptionParameters](documentation/models/ListPaymentsOfASubscriptionParameters.md) | | +| [GenerateSignatureBookletParameters](documentation/models/GenerateSignatureBookletParameters.md) | | +| [ListInvoicesForSubscriptionChargesParameters](documentation/models/ListInvoicesForSubscriptionChargesParameters.md) | | +| [ListKeysParameters](documentation/models/ListKeysParameters.md) | | +| [ListTransactionsParameters](documentation/models/ListTransactionsParameters.md) | | +| [ListAnticipationsParameters](documentation/models/ListAnticipationsParameters.md) | | +| [ListRecurrencesParameters](documentation/models/ListRecurrencesParameters.md) | | +| [ListRecurrenceItemsParameters](documentation/models/ListRecurrenceItemsParameters.md) | | +| [ListPaymentsLinksParameters](documentation/models/ListPaymentsLinksParameters.md) | | +| [ListTransfersParameters](documentation/models/ListTransfersParameters.md) | | +| [ListPaymentDunningsParameters](documentation/models/ListPaymentDunningsParameters.md) | | +| [SimulateAPaymentDunningParameters](documentation/models/SimulateAPaymentDunningParameters.md) | | +| [EventHistoryListsParameters](documentation/models/EventHistoryListsParameters.md) | | +| [ListPaymentsReceivedParameters](documentation/models/ListPaymentsReceivedParameters.md) | | +| [ListPaymentsAvailableForPaymentDunningParameters](documentation/models/ListPaymentsAvailableForPaymentDunningParameters.md) | | +| [ListBillPaymentsParameters](documentation/models/ListBillPaymentsParameters.md) | | +| [ListMobileRechargesParameters](documentation/models/ListMobileRechargesParameters.md) | | +| [ListCreditBureauReportsParameters](documentation/models/ListCreditBureauReportsParameters.md) | | +| [RetrieveExtractParameters](documentation/models/RetrieveExtractParameters.md) | | +| [BillingStatisticsParameters](documentation/models/BillingStatisticsParameters.md) | | +| [DeleteWhiteLabelSubaccountParameters](documentation/models/DeleteWhiteLabelSubaccountParameters.md) | | +| [ListInvoicesParameters](documentation/models/ListInvoicesParameters.md) | | +| [ListMunicipalServicesParameters](documentation/models/ListMunicipalServicesParameters.md) | | +| [ListNbsCodesParameters](documentation/models/ListNbsCodesParameters.md) | | +| [ListWebhooksParameters](documentation/models/ListWebhooksParameters.md) | | +| [ListSubaccountsParameters](documentation/models/ListSubaccountsParameters.md) | | +| [ListChargebacksParameters](documentation/models/ListChargebacksParameters.md) | | +| [ErrorResponseDto](documentation/models/ErrorResponseDto.md) | | +| [ErrorResponseItemDto](documentation/models/ErrorResponseItemDto.md) | List of objects |
diff --git a/documentation/models/AccountDocumentDeleteResponseDto.md b/documentation/models/AccountDocumentDeleteResponseDto.md new file mode 100644 index 0000000..834ab81 --- /dev/null +++ b/documentation/models/AccountDocumentDeleteResponseDto.md @@ -0,0 +1,10 @@ +# AccountDocumentDeleteResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :----------------------------------------- | +| deleted | Boolean | ❌ | Indicates whether the document was removed | +| id | String | ❌ | Unique document identifier in Asaas | + + diff --git a/documentation/models/AccountDocumentGetResponseAccountDocumentStatus.md b/documentation/models/AccountDocumentGetResponseAccountDocumentStatus.md new file mode 100644 index 0000000..a158c93 --- /dev/null +++ b/documentation/models/AccountDocumentGetResponseAccountDocumentStatus.md @@ -0,0 +1,14 @@ +# AccountDocumentGetResponseAccountDocumentStatus + +Document approval status + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| NOT_SENT | String | ✅ | "NOT_SENT" | +| PENDING | String | ✅ | "PENDING" | +| APPROVED | String | ✅ | "APPROVED" | +| REJECTED | String | ✅ | "REJECTED" | + + diff --git a/documentation/models/AccountDocumentGetResponseDto.md b/documentation/models/AccountDocumentGetResponseDto.md new file mode 100644 index 0000000..d0da5dc --- /dev/null +++ b/documentation/models/AccountDocumentGetResponseDto.md @@ -0,0 +1,10 @@ +# AccountDocumentGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----- | :---------------------------------------------- | :------- | :---------------------------------- | +| id | String | ❌ | Unique document identifier in Asaas | +| status | AccountDocumentGetResponseAccountDocumentStatus | ❌ | Document approval status | + + diff --git a/documentation/models/AccountDocumentGroupResponseAccountDocumentStatus.md b/documentation/models/AccountDocumentGroupResponseAccountDocumentStatus.md new file mode 100644 index 0000000..05854e3 --- /dev/null +++ b/documentation/models/AccountDocumentGroupResponseAccountDocumentStatus.md @@ -0,0 +1,15 @@ +# AccountDocumentGroupResponseAccountDocumentStatus + +Document group status + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| NOT_SENT | String | ✅ | "NOT_SENT" | +| PENDING | String | ✅ | "PENDING" | +| APPROVED | String | ✅ | "APPROVED" | +| REJECTED | String | ✅ | "REJECTED" | +| IGNORED | String | ✅ | "IGNORED" | + + diff --git a/documentation/models/AccountDocumentGroupResponseAccountDocumentType.md b/documentation/models/AccountDocumentGroupResponseAccountDocumentType.md new file mode 100644 index 0000000..20ed8c5 --- /dev/null +++ b/documentation/models/AccountDocumentGroupResponseAccountDocumentType.md @@ -0,0 +1,15 @@ +# AccountDocumentGroupResponseAccountDocumentType + +Type of documents + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :----- | :------- | :------------------------- | +| IDENTIFICATION | String | ✅ | "IDENTIFICATION" | +| SOCIAL_CONTRACT | String | ✅ | "SOCIAL_CONTRACT" | +| ENTREPRENEUR_REQUIREMENT | String | ✅ | "ENTREPRENEUR_REQUIREMENT" | +| MINUTES_OF_ELECTION | String | ✅ | "MINUTES_OF_ELECTION" | +| CUSTOM | String | ✅ | "CUSTOM" | + + diff --git a/documentation/models/AccountDocumentGroupResponseDto.md b/documentation/models/AccountDocumentGroupResponseDto.md new file mode 100644 index 0000000..12aff7a --- /dev/null +++ b/documentation/models/AccountDocumentGroupResponseDto.md @@ -0,0 +1,19 @@ +# AccountDocumentGroupResponseDto + +List of objects + +**Properties** + +| Name | Type | Required | Description | +| :-------------------------- | :------------------------------------------------ | :------- | :---------------------------------------------------------------------- | +| id | String | ❌ | Unique document group identifier in Asaas | +| status | AccountDocumentGroupResponseAccountDocumentStatus | ❌ | Document group status | +| type | AccountDocumentGroupResponseAccountDocumentType | ❌ | Type of documents | +| title | String | ❌ | Document group title | +| description | String | ❌ | Description | +| responsible | AccountDocumentResponsibleResponseDto | ❌ | Who is responsible for sending these documents | +| onboardingUrl | String | ❌ | URL for sending documents | +| onboardingUrlExpirationDate | String | ❌ | Expiration date of the URL for sending documents | +| documents | List\ | ❌ | Documents that have already been sent with their respective identifiers | + + diff --git a/documentation/models/AccountDocumentResponsibleResponseAccountDocumentResponsibleType.md b/documentation/models/AccountDocumentResponsibleResponseAccountDocumentResponsibleType.md new file mode 100644 index 0000000..684fdb0 --- /dev/null +++ b/documentation/models/AccountDocumentResponsibleResponseAccountDocumentResponsibleType.md @@ -0,0 +1,22 @@ +# AccountDocumentResponsibleResponseAccountDocumentResponsibleType + +Responsible type + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------------- | :----- | :------- | :------------------------------------- | +| ALLOW_BANK_ACCOUNT_DEPOSIT_STATEMENT | String | ✅ | "ALLOW_BANK_ACCOUNT_DEPOSIT_STATEMENT" | +| ASAAS_ACCOUNT_OWNER_EMANCIPATION_AGE | String | ✅ | "ASAAS_ACCOUNT_OWNER_EMANCIPATION_AGE" | +| ASAAS_ACCOUNT_OWNER | String | ✅ | "ASAAS_ACCOUNT_OWNER" | +| ASSOCIATION | String | ✅ | "ASSOCIATION" | +| BANK_ACCOUNT_OWNER_EMANCIPATION_AGE | String | ✅ | "BANK_ACCOUNT_OWNER_EMANCIPATION_AGE" | +| BANK_ACCOUNT_OWNER | String | ✅ | "BANK_ACCOUNT_OWNER" | +| CUSTOM | String | ✅ | "CUSTOM" | +| DIRECTOR | String | ✅ | "DIRECTOR" | +| INDIVIDUAL_COMPANY | String | ✅ | "INDIVIDUAL_COMPANY" | +| LIMITED_COMPANY | String | ✅ | "LIMITED_COMPANY" | +| MEI | String | ✅ | "MEI" | +| PARTNER | String | ✅ | "PARTNER" | + + diff --git a/documentation/models/AccountDocumentResponsibleResponseDto.md b/documentation/models/AccountDocumentResponsibleResponseDto.md new file mode 100644 index 0000000..70c356f --- /dev/null +++ b/documentation/models/AccountDocumentResponsibleResponseDto.md @@ -0,0 +1,12 @@ +# AccountDocumentResponsibleResponseDto + +Who is responsible for sending these documents + +**Properties** + +| Name | Type | Required | Description | +| :--- | :----------------------------------------------------------------------- | :------- | :--------------- | +| name | String | ❌ | Responsible name | +| type | List\ | ❌ | Responsible type | + + diff --git a/documentation/models/AccountDocumentSaveRequestAccountDocumentType.md b/documentation/models/AccountDocumentSaveRequestAccountDocumentType.md new file mode 100644 index 0000000..925ca73 --- /dev/null +++ b/documentation/models/AccountDocumentSaveRequestAccountDocumentType.md @@ -0,0 +1,15 @@ +# AccountDocumentSaveRequestAccountDocumentType + +Document Type + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :----- | :------- | :------------------------- | +| IDENTIFICATION | String | ✅ | "IDENTIFICATION" | +| SOCIAL_CONTRACT | String | ✅ | "SOCIAL_CONTRACT" | +| ENTREPRENEUR_REQUIREMENT | String | ✅ | "ENTREPRENEUR_REQUIREMENT" | +| MINUTES_OF_ELECTION | String | ✅ | "MINUTES_OF_ELECTION" | +| CUSTOM | String | ✅ | "CUSTOM" | + + diff --git a/documentation/models/AccountDocumentSaveRequestDto.md b/documentation/models/AccountDocumentSaveRequestDto.md new file mode 100644 index 0000000..17bdabc --- /dev/null +++ b/documentation/models/AccountDocumentSaveRequestDto.md @@ -0,0 +1,10 @@ +# AccountDocumentSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :-------------------------------------------- | :------- | :------------ | +| documentFile | byte[] | ❌ | File | +| type | AccountDocumentSaveRequestAccountDocumentType | ❌ | Document Type | + + diff --git a/documentation/models/AccountDocumentShowResponseDto.md b/documentation/models/AccountDocumentShowResponseDto.md new file mode 100644 index 0000000..62c7337 --- /dev/null +++ b/documentation/models/AccountDocumentShowResponseDto.md @@ -0,0 +1,10 @@ +# AccountDocumentShowResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :-------------------------------------- | :------- | :--------------------------------------- | +| rejectReasons | String | ❌ | Reason why account approval was rejected | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/AccountDocumentUpdateRequestDto.md b/documentation/models/AccountDocumentUpdateRequestDto.md new file mode 100644 index 0000000..13d3dac --- /dev/null +++ b/documentation/models/AccountDocumentUpdateRequestDto.md @@ -0,0 +1,9 @@ +# AccountDocumentUpdateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :---------- | +| documentFile | byte[] | ✅ | File | + + diff --git a/documentation/models/AccountGetResponseCompanyType.md b/documentation/models/AccountGetResponseCompanyType.md new file mode 100644 index 0000000..dc60c47 --- /dev/null +++ b/documentation/models/AccountGetResponseCompanyType.md @@ -0,0 +1,14 @@ +# AccountGetResponseCompanyType + +Type of company (only when Legal Entity) + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| MEI | String | ✅ | "MEI" | +| LIMITED | String | ✅ | "LIMITED" | +| INDIVIDUAL | String | ✅ | "INDIVIDUAL" | +| ASSOCIATION | String | ✅ | "ASSOCIATION" | + + diff --git a/documentation/models/AccountGetResponseDto.md b/documentation/models/AccountGetResponseDto.md new file mode 100644 index 0000000..c8d2ff5 --- /dev/null +++ b/documentation/models/AccountGetResponseDto.md @@ -0,0 +1,32 @@ +# AccountGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :--------------------------------------------- | :------- | :----------------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique subaccount identifier in Asaas | +| name | String | ❌ | Subaccount name | +| email | String | ❌ | Subaccount email | +| loginEmail | String | ❌ | Email for subaccount login, if not provided, the subaccount email will be used | +| phone | String | ❌ | Telephone | +| mobilePhone | String | ❌ | Cellphone | +| address | String | ❌ | Public place | +| addressNumber | String | ❌ | Address number | +| complement | String | ❌ | Address complement | +| province | String | ❌ | Neighborhood | +| postalCode | String | ❌ | Address zip code | +| cpfCnpj | String | ❌ | CPF or CNPJ of the subaccount owner | +| birthDate | String | ❌ | Date of birth (only for Individuals) | +| personType | AccountGetResponsePersonType | ❌ | Kind of person | +| companyType | AccountGetResponseCompanyType | ❌ | Type of company (only when Legal Entity) | +| city | Long | ❌ | Unique city identifier in Asaas | +| state | String | ❌ | State abbreviation (SP, RJ, SC, ...) | +| country | String | ❌ | Country (Fixed Brazil) | +| tradingName | String | ❌ | Display name (auto-populated) | +| site | String | ❌ | Url reffered to the subaccount | +| walletId | String | ❌ | Unique wallet identifier to split charges or transfer between Asaas accounts | +| accountNumber | AccountNumberDto | ❌ | Subaccount number in Asaas | +| commercialInfoExpiration | AccountInfoCommercialInfoExpirationResponseDto | ❌ | Information about the expiration of commercial data | + + diff --git a/documentation/models/AccountGetResponsePersonType.md b/documentation/models/AccountGetResponsePersonType.md new file mode 100644 index 0000000..3c08f37 --- /dev/null +++ b/documentation/models/AccountGetResponsePersonType.md @@ -0,0 +1,12 @@ +# AccountGetResponsePersonType + +Kind of person + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| JURIDICA | String | ✅ | "JURIDICA" | +| FISICA | String | ✅ | "FISICA" | + + diff --git a/documentation/models/AccountInfoCityDto.md b/documentation/models/AccountInfoCityDto.md new file mode 100644 index 0000000..cc22cee --- /dev/null +++ b/documentation/models/AccountInfoCityDto.md @@ -0,0 +1,17 @@ +# AccountInfoCityDto + +City information registered in your account + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :------------------- | :------- | :----------------------------------- | +| object | String | ❌ | Object type | +| id | Long | ❌ | Unique city identifier in Asaas | +| ibgeCode | String | ❌ | IBGE Code | +| name | String | ❌ | City's name | +| districtCode | String | ❌ | District code | +| district | String | ❌ | District name | +| state | AccountInfoCityState | ❌ | State abbreviation (SP, RJ, SC, ...) | + + diff --git a/documentation/models/AccountInfoCityState.md b/documentation/models/AccountInfoCityState.md new file mode 100644 index 0000000..419a94f --- /dev/null +++ b/documentation/models/AccountInfoCityState.md @@ -0,0 +1,37 @@ +# AccountInfoCityState + +State abbreviation (SP, RJ, SC, ...) + +**Properties** + +| Name | Type | Required | Description | +| :--- | :----- | :------- | :---------- | +| AC | String | ✅ | "AC" | +| AL | String | ✅ | "AL" | +| AP | String | ✅ | "AP" | +| AM | String | ✅ | "AM" | +| BA | String | ✅ | "BA" | +| CE | String | ✅ | "CE" | +| DF | String | ✅ | "DF" | +| ES | String | ✅ | "ES" | +| GO | String | ✅ | "GO" | +| MA | String | ✅ | "MA" | +| MT | String | ✅ | "MT" | +| MS | String | ✅ | "MS" | +| MG | String | ✅ | "MG" | +| PA | String | ✅ | "PA" | +| PB | String | ✅ | "PB" | +| PR | String | ✅ | "PR" | +| PE | String | ✅ | "PE" | +| PI | String | ✅ | "PI" | +| RR | String | ✅ | "RR" | +| RO | String | ✅ | "RO" | +| RJ | String | ✅ | "RJ" | +| RN | String | ✅ | "RN" | +| RS | String | ✅ | "RS" | +| SC | String | ✅ | "SC" | +| SP | String | ✅ | "SP" | +| SE | String | ✅ | "SE" | +| TO | String | ✅ | "TO" | + + diff --git a/documentation/models/AccountInfoCommercialInfoExpirationResponseDto.md b/documentation/models/AccountInfoCommercialInfoExpirationResponseDto.md new file mode 100644 index 0000000..3490f8f --- /dev/null +++ b/documentation/models/AccountInfoCommercialInfoExpirationResponseDto.md @@ -0,0 +1,12 @@ +# AccountInfoCommercialInfoExpirationResponseDto + +Information about the expiration of commercial data + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :------ | :------- | :--------------------------------------------- | +| isExpired | Boolean | ❌ | Informs if commercial data is expired | +| scheduledDate | String | ❌ | Informs the expiration date of commercial data | + + diff --git a/documentation/models/AccountInfoGetResponseCompanyType.md b/documentation/models/AccountInfoGetResponseCompanyType.md new file mode 100644 index 0000000..60b4bac --- /dev/null +++ b/documentation/models/AccountInfoGetResponseCompanyType.md @@ -0,0 +1,14 @@ +# AccountInfoGetResponseCompanyType + +Type of company (only when Legal Entity) + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| MEI | String | ✅ | "MEI" | +| LIMITED | String | ✅ | "LIMITED" | +| INDIVIDUAL | String | ✅ | "INDIVIDUAL" | +| ASSOCIATION | String | ✅ | "ASSOCIATION" | + + diff --git a/documentation/models/AccountInfoGetResponseDto.md b/documentation/models/AccountInfoGetResponseDto.md new file mode 100644 index 0000000..d33db34 --- /dev/null +++ b/documentation/models/AccountInfoGetResponseDto.md @@ -0,0 +1,30 @@ +# AccountInfoGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :--------------------------------------------- | :------- | :---------------------------------------------------------------------- | +| status | AccountInfoGetResponseStatus | ❌ | Account status | +| personType | AccountInfoGetResponsePersonType | ❌ | 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 | AccountInfoGetResponseCompanyType | ❌ | 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 | AccountInfoCityDto | ❌ | City information registered in your account | +| 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 | AccountInfoCommercialInfoExpirationResponseDto | ❌ | Information about the expiration of commercial data | + + diff --git a/documentation/models/AccountInfoGetResponsePersonType.md b/documentation/models/AccountInfoGetResponsePersonType.md new file mode 100644 index 0000000..5c1cebb --- /dev/null +++ b/documentation/models/AccountInfoGetResponsePersonType.md @@ -0,0 +1,12 @@ +# AccountInfoGetResponsePersonType + +Person Type + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| JURIDICA | String | ✅ | "JURIDICA" | +| FISICA | String | ✅ | "FISICA" | + + diff --git a/documentation/models/AccountInfoGetResponseStatus.md b/documentation/models/AccountInfoGetResponseStatus.md new file mode 100644 index 0000000..18e0ca2 --- /dev/null +++ b/documentation/models/AccountInfoGetResponseStatus.md @@ -0,0 +1,14 @@ +# AccountInfoGetResponseStatus + +Account status + +**Properties** + +| Name | Type | Required | Description | +| :---------------------------- | :----- | :------- | :------------------------------ | +| APPROVED | String | ✅ | "APPROVED" | +| AWAITING_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_ACTION_AUTHORIZATION" | +| DENIED | String | ✅ | "DENIED" | +| PENDING | String | ✅ | "PENDING" | + + diff --git a/documentation/models/AccountInfoSaveRequestCompanyType.md b/documentation/models/AccountInfoSaveRequestCompanyType.md new file mode 100644 index 0000000..fd7f5bd --- /dev/null +++ b/documentation/models/AccountInfoSaveRequestCompanyType.md @@ -0,0 +1,14 @@ +# AccountInfoSaveRequestCompanyType + +Type of company (only when Legal Entity) + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| MEI | String | ✅ | "MEI" | +| LIMITED | String | ✅ | "LIMITED" | +| INDIVIDUAL | String | ✅ | "INDIVIDUAL" | +| ASSOCIATION | String | ✅ | "ASSOCIATION" | + + diff --git a/documentation/models/AccountInfoSaveRequestDto.md b/documentation/models/AccountInfoSaveRequestDto.md new file mode 100644 index 0000000..c198bfc --- /dev/null +++ b/documentation/models/AccountInfoSaveRequestDto.md @@ -0,0 +1,23 @@ +# AccountInfoSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :-------------------------------- | :------- | :----------------------------------------------------------- | +| personType | AccountInfoSaveRequestPersonType | ❌ | Person Type | +| cpfCnpj | String | ❌ | CPF or CNPJ of the account owner | +| birthDate | String | ❌ | Birthday (Required if the information is from an individual) | +| companyType | AccountInfoSaveRequestCompanyType | ❌ | Type of company (only when Legal Entity) | +| companyName | String | ❌ | Company Name | +| incomeValue | Double | ❌ | Billing/Monthly income | +| email | String | ❌ | Account's email | +| phone | String | ❌ | Telephone | +| mobilePhone | String | ❌ | Cell phone | +| site | String | ❌ | Web site | +| postalCode | String | ❌ | Address zip code | +| address | String | ❌ | Public place | +| addressNumber | String | ❌ | Address number | +| complement | String | ❌ | Address complement | +| province | String | ❌ | Neighborhood | + + diff --git a/documentation/models/AccountInfoSaveRequestPersonType.md b/documentation/models/AccountInfoSaveRequestPersonType.md new file mode 100644 index 0000000..beaefa3 --- /dev/null +++ b/documentation/models/AccountInfoSaveRequestPersonType.md @@ -0,0 +1,12 @@ +# AccountInfoSaveRequestPersonType + +Person Type + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| JURIDICA | String | ✅ | "JURIDICA" | +| FISICA | String | ✅ | "FISICA" | + + diff --git a/documentation/models/AccountListResponseDto.md b/documentation/models/AccountListResponseDto.md new file mode 100644 index 0000000..2709d62 --- /dev/null +++ b/documentation/models/AccountListResponseDto.md @@ -0,0 +1,14 @@ +# AccountListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :---------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/AccountNumberDto.md b/documentation/models/AccountNumberDto.md new file mode 100644 index 0000000..d7e3c34 --- /dev/null +++ b/documentation/models/AccountNumberDto.md @@ -0,0 +1,13 @@ +# AccountNumberDto + +Subaccount number in Asaas + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| agency | String | ❌ | Account agency | +| account | String | ❌ | Account number | +| accountDigit | String | ❌ | Account digit | + + diff --git a/documentation/models/AccountPaymentEscrowConfigDto.md b/documentation/models/AccountPaymentEscrowConfigDto.md new file mode 100644 index 0000000..0863ea4 --- /dev/null +++ b/documentation/models/AccountPaymentEscrowConfigDto.md @@ -0,0 +1,11 @@ +# AccountPaymentEscrowConfigDto + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | +| daysToExpire | Long | ✅ | Number of days to expire the payment escrow | +| enabled | Boolean | ❌ | Indicates whether the Escrow Account is enabled | +| isFeePayer | Boolean | ❌ | Indicates whether the subaccount is responsible for paying the Escrow Account fee. If not informed, the main account will be responsible for the fee | + + diff --git a/documentation/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.md b/documentation/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.md new file mode 100644 index 0000000..3e4db2d --- /dev/null +++ b/documentation/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.md @@ -0,0 +1,11 @@ +# AccountSaveOrUpdatePaymentEscrowConfigRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | +| daysToExpire | Long | ✅ | Number of days to expire the payment escrow | +| enabled | Boolean | ❌ | Indicates whether the Escrow Account is enabled | +| isFeePayer | Boolean | ❌ | Indicates whether the subaccount is responsible for paying the Escrow Account fee. If not informed, the main account will be responsible for the fee | + + diff --git a/documentation/models/AccountSaveRequestCompanyType.md b/documentation/models/AccountSaveRequestCompanyType.md new file mode 100644 index 0000000..8c9df9a --- /dev/null +++ b/documentation/models/AccountSaveRequestCompanyType.md @@ -0,0 +1,14 @@ +# AccountSaveRequestCompanyType + +Type of company (only when Legal Entity) + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| MEI | String | ✅ | "MEI" | +| LIMITED | String | ✅ | "LIMITED" | +| INDIVIDUAL | String | ✅ | "INDIVIDUAL" | +| ASSOCIATION | String | ✅ | "ASSOCIATION" | + + diff --git a/documentation/models/AccountSaveRequestDto.md b/documentation/models/AccountSaveRequestDto.md new file mode 100644 index 0000000..dbbab23 --- /dev/null +++ b/documentation/models/AccountSaveRequestDto.md @@ -0,0 +1,24 @@ +# AccountSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :---------------------------------- | :------- | :----------------------------------------------------------------------------- | +| name | String | ✅ | Subaccount name | +| email | String | ✅ | Subaccount email | +| cpfCnpj | String | ✅ | CPF or CNPJ of the subaccount owner | +| mobilePhone | String | ✅ | Cellphone | +| incomeValue | Double | ✅ | Billing/Monthly income | +| address | String | ✅ | Public place | +| addressNumber | String | ✅ | Address number | +| province | String | ✅ | Neighborhood | +| postalCode | String | ✅ | Address zip code | +| loginEmail | String | ❌ | Email for subaccount login, if not provided, the subaccount email will be used | +| birthDate | String | ❌ | Date of birth (only for Individuals) | +| companyType | AccountSaveRequestCompanyType | ❌ | Type of company (only when Legal Entity) | +| phone | String | ❌ | Telephone | +| site | String | ❌ | Url reffered to the subaccount | +| complement | String | ❌ | Address complement | +| webhooks | List\ | ❌ | Array with desired Webhooks settings | + + diff --git a/documentation/models/AccountSaveResponseCompanyType.md b/documentation/models/AccountSaveResponseCompanyType.md new file mode 100644 index 0000000..a514af0 --- /dev/null +++ b/documentation/models/AccountSaveResponseCompanyType.md @@ -0,0 +1,14 @@ +# AccountSaveResponseCompanyType + +Type of company (only when Legal Entity) + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| MEI | String | ✅ | "MEI" | +| LIMITED | String | ✅ | "LIMITED" | +| INDIVIDUAL | String | ✅ | "INDIVIDUAL" | +| ASSOCIATION | String | ✅ | "ASSOCIATION" | + + diff --git a/documentation/models/AccountSaveResponseDto.md b/documentation/models/AccountSaveResponseDto.md new file mode 100644 index 0000000..85e32c2 --- /dev/null +++ b/documentation/models/AccountSaveResponseDto.md @@ -0,0 +1,33 @@ +# AccountSaveResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :--------------------------------------------- | :------- | :----------------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique subaccount identifier in Asaas | +| name | String | ❌ | Subaccount name | +| email | String | ❌ | Subaccount email | +| loginEmail | String | ❌ | Email for subaccount login, if not provided, the subaccount email will be used | +| phone | String | ❌ | Telephone | +| mobilePhone | String | ❌ | Cellphone | +| address | String | ❌ | Public place | +| addressNumber | String | ❌ | Address number | +| complement | String | ❌ | Address complement | +| province | String | ❌ | Neighborhood | +| postalCode | String | ❌ | Address zip code | +| cpfCnpj | String | ❌ | CPF or CNPJ of the subaccount owner | +| birthDate | String | ❌ | Date of birth (only for Individuals) | +| personType | AccountSaveResponsePersonType | ❌ | Kind of person | +| companyType | AccountSaveResponseCompanyType | ❌ | Type of company (only when Legal Entity) | +| city | Long | ❌ | Unique city identifier in Asaas | +| state | String | ❌ | State abbreviation (SP, RJ, SC, ...) | +| country | String | ❌ | Country (Fixed Brazil) | +| tradingName | String | ❌ | Display name (auto-populated) | +| site | String | ❌ | Url reffered to the subaccount | +| walletId | String | ❌ | Unique wallet identifier to split charges or transfer between Asaas accounts | +| accountNumber | AccountNumberDto | ❌ | Subaccount number in Asaas | +| commercialInfoExpiration | AccountInfoCommercialInfoExpirationResponseDto | ❌ | Information about the expiration of commercial data | +| apiKey | String | ❌ | API key | + + diff --git a/documentation/models/AccountSaveResponsePersonType.md b/documentation/models/AccountSaveResponsePersonType.md new file mode 100644 index 0000000..67687be --- /dev/null +++ b/documentation/models/AccountSaveResponsePersonType.md @@ -0,0 +1,12 @@ +# AccountSaveResponsePersonType + +Kind of person + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| JURIDICA | String | ✅ | "JURIDICA" | +| FISICA | String | ✅ | "FISICA" | + + diff --git a/documentation/models/AnticipationConfigurationGetResponseDto.md b/documentation/models/AnticipationConfigurationGetResponseDto.md new file mode 100644 index 0000000..6570a02 --- /dev/null +++ b/documentation/models/AnticipationConfigurationGetResponseDto.md @@ -0,0 +1,9 @@ +# AnticipationConfigurationGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------------- | :------ | :------- | :--------------------------------------------------------------------------- | +| creditCardAutomaticEnabled | Boolean | ❌ | Indicates whether automatic anticipation is enabled for credit card payments | + + diff --git a/documentation/models/AnticipationConfigurationUpdateRequestDto.md b/documentation/models/AnticipationConfigurationUpdateRequestDto.md new file mode 100644 index 0000000..eb9471e --- /dev/null +++ b/documentation/models/AnticipationConfigurationUpdateRequestDto.md @@ -0,0 +1,9 @@ +# AnticipationConfigurationUpdateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------------- | :------ | :------- | :------------------------------------------------------------------------ | +| creditCardAutomaticEnabled | Boolean | ❌ | Define whether automatic anticipation is enabled for credit card payments | + + diff --git a/documentation/models/AnticipationGetResponseAnticipationStatus.md b/documentation/models/AnticipationGetResponseAnticipationStatus.md new file mode 100644 index 0000000..3858860 --- /dev/null +++ b/documentation/models/AnticipationGetResponseAnticipationStatus.md @@ -0,0 +1,17 @@ +# AnticipationGetResponseAnticipationStatus + +Anticipation status + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :----- | :------- | :---------- | +| PENDING | String | ✅ | "PENDING" | +| DENIED | String | ✅ | "DENIED" | +| CREDITED | String | ✅ | "CREDITED" | +| DEBITED | String | ✅ | "DEBITED" | +| CANCELLED | String | ✅ | "CANCELLED" | +| OVERDUE | String | ✅ | "OVERDUE" | +| SCHEDULED | String | ✅ | "SCHEDULED" | + + diff --git a/documentation/models/AnticipationGetResponseDto.md b/documentation/models/AnticipationGetResponseDto.md new file mode 100644 index 0000000..071967c --- /dev/null +++ b/documentation/models/AnticipationGetResponseDto.md @@ -0,0 +1,22 @@ +# AnticipationGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :---------------------------------------- | :------- | :----------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique identifier of anticipation in Asaas | +| installment | String | ❌ | Unique identifier of the installment to be anticipated | +| payment | String | ❌ | Unique identifier of the payment to be anticipated. | +| status | AnticipationGetResponseAnticipationStatus | ❌ | Anticipation status | +| anticipationDate | String | ❌ | Anticipation request date | +| dueDate | String | ❌ | Request due date | +| requestDate | String | ❌ | Anticipation request date | +| fee | Double | ❌ | Anticipation fee | +| anticipationDays | Long | ❌ | Number of days that were anticipated | +| netValue | Double | ❌ | Net value discounted the anticipation fee | +| totalValue | Double | ❌ | Total amount of the payment to be anticipated | +| value | Double | ❌ | Anticipation value | +| denialObservation | String | ❌ | Reason for rejecting the anticipation payment | + + diff --git a/documentation/models/AnticipationLimitsInfoResponseDto.md b/documentation/models/AnticipationLimitsInfoResponseDto.md new file mode 100644 index 0000000..728b076 --- /dev/null +++ b/documentation/models/AnticipationLimitsInfoResponseDto.md @@ -0,0 +1,12 @@ +# AnticipationLimitsInfoResponseDto + +Credit card anticipation limits + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :----- | :------- | :----------------------------------------- | +| total | Double | ❌ | Anticipation limit released on the account | +| available | Double | ❌ | Limit available to anticipate | + + diff --git a/documentation/models/AnticipationLimitsResponseDto.md b/documentation/models/AnticipationLimitsResponseDto.md new file mode 100644 index 0000000..f366e7c --- /dev/null +++ b/documentation/models/AnticipationLimitsResponseDto.md @@ -0,0 +1,10 @@ +# AnticipationLimitsResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :-------------------------------- | :------- | :------------------------------ | +| creditCard | AnticipationLimitsInfoResponseDto | ❌ | Credit card anticipation limits | +| bankSlip | AnticipationLimitsInfoResponseDto | ❌ | Credit card anticipation limits | + + diff --git a/documentation/models/AnticipationListRequestAnticipationStatus.md b/documentation/models/AnticipationListRequestAnticipationStatus.md new file mode 100644 index 0000000..83e6c0d --- /dev/null +++ b/documentation/models/AnticipationListRequestAnticipationStatus.md @@ -0,0 +1,17 @@ +# AnticipationListRequestAnticipationStatus + +Filter by status + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :----- | :------- | :---------- | +| PENDING | String | ✅ | "PENDING" | +| DENIED | String | ✅ | "DENIED" | +| CREDITED | String | ✅ | "CREDITED" | +| DEBITED | String | ✅ | "DEBITED" | +| CANCELLED | String | ✅ | "CANCELLED" | +| OVERDUE | String | ✅ | "OVERDUE" | +| SCHEDULED | String | ✅ | "SCHEDULED" | + + diff --git a/documentation/models/AnticipationListResponseDto.md b/documentation/models/AnticipationListResponseDto.md new file mode 100644 index 0000000..e4aac2b --- /dev/null +++ b/documentation/models/AnticipationListResponseDto.md @@ -0,0 +1,14 @@ +# AnticipationListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :--------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/AnticipationSaveRequestDto.md b/documentation/models/AnticipationSaveRequestDto.md new file mode 100644 index 0000000..368a2ac --- /dev/null +++ b/documentation/models/AnticipationSaveRequestDto.md @@ -0,0 +1,11 @@ +# AnticipationSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :-------------------------------------- | +| installment | String | ❌ | ID of the installment to be anticipated | +| payment | String | ❌ | ID of the payment to be anticipated | +| documents | byte[] | ❌ | File | + + diff --git a/documentation/models/AnticipationSimulateRequestDto.md b/documentation/models/AnticipationSimulateRequestDto.md new file mode 100644 index 0000000..d070b0b --- /dev/null +++ b/documentation/models/AnticipationSimulateRequestDto.md @@ -0,0 +1,10 @@ +# AnticipationSimulateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :-------------------------------------- | +| installment | String | ❌ | ID of the installment to be anticipated | +| payment | String | ❌ | ID of the payment to be anticipated | + + diff --git a/documentation/models/AnticipationSimulateResponseDto.md b/documentation/models/AnticipationSimulateResponseDto.md new file mode 100644 index 0000000..6a3f7f5 --- /dev/null +++ b/documentation/models/AnticipationSimulateResponseDto.md @@ -0,0 +1,18 @@ +# AnticipationSimulateResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :---------------------- | :------ | :------- | :------------------------------------------------------------------------------------------------------------------------ | +| installment | String | ❌ | Unique identifier of the installment to be anticipated | +| payment | String | ❌ | Unique identifier of the payment to be anticipated | +| anticipationDate | String | ❌ | Anticipation request date | +| dueDate | String | ❌ | Request due date | +| fee | Double | ❌ | Anticipation fee | +| anticipationDays | Long | ❌ | Number of days that were anticipated | +| netValue | Double | ❌ | Net value discounted the anticipation fee | +| totalValue | Double | ❌ | Total amount of the payment to be anticipated | +| value | Double | ❌ | Anticipation value | +| isDocumentationRequired | Boolean | ❌ | Determines the obligation to send electronic invoices or service provision contracts when requesting anticipation payment | + + diff --git a/documentation/models/ApiAccountDocumentDeleteResponseDto.md b/documentation/models/ApiAccountDocumentDeleteResponseDto.md deleted file mode 100644 index 446f5d7..0000000 --- a/documentation/models/ApiAccountDocumentDeleteResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiAccountDocumentDeleteResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :----------------------------------------- | -| deleted | Boolean | ❌ | Indicates whether the document was removed | -| id | String | ❌ | Unique document identifier in Asaas | - - diff --git a/documentation/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.md b/documentation/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.md deleted file mode 100644 index 0ac60df..0000000 --- a/documentation/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiAccountDocumentGetResponseCustomerDocumentStatus - -Document approval status - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| NOT_SENT | String | ✅ | "NOT_SENT" | -| PENDING | String | ✅ | "PENDING" | -| APPROVED | String | ✅ | "APPROVED" | -| REJECTED | String | ✅ | "REJECTED" | - - diff --git a/documentation/models/ApiAccountDocumentGetResponseDto.md b/documentation/models/ApiAccountDocumentGetResponseDto.md deleted file mode 100644 index 9ef3ebf..0000000 --- a/documentation/models/ApiAccountDocumentGetResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiAccountDocumentGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----- | :-------------------------------------------------- | :------- | :---------------------------------- | -| id | String | ❌ | Unique document identifier in Asaas | -| status | ApiAccountDocumentGetResponseCustomerDocumentStatus | ❌ | Document approval status | - - diff --git a/documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.md b/documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.md deleted file mode 100644 index 60c55fc..0000000 --- a/documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiAccountDocumentGroupResponseCustomerDocumentStatus - -Document group status - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| NOT_SENT | String | ✅ | "NOT_SENT" | -| PENDING | String | ✅ | "PENDING" | -| APPROVED | String | ✅ | "APPROVED" | -| REJECTED | String | ✅ | "REJECTED" | -| IGNORED | String | ✅ | "IGNORED" | - - diff --git a/documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentType.md b/documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentType.md deleted file mode 100644 index d0bc721..0000000 --- a/documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentType.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiAccountDocumentGroupResponseCustomerDocumentType - -Type of documents - -**Properties** - -| Name | Type | Required | Description | -| :----------------------- | :----- | :------- | :------------------------- | -| IDENTIFICATION | String | ✅ | "IDENTIFICATION" | -| SOCIAL_CONTRACT | String | ✅ | "SOCIAL_CONTRACT" | -| ENTREPRENEUR_REQUIREMENT | String | ✅ | "ENTREPRENEUR_REQUIREMENT" | -| MINUTES_OF_ELECTION | String | ✅ | "MINUTES_OF_ELECTION" | -| CUSTOM | String | ✅ | "CUSTOM" | - - diff --git a/documentation/models/ApiAccountDocumentGroupResponseDto.md b/documentation/models/ApiAccountDocumentGroupResponseDto.md deleted file mode 100644 index 98c3d08..0000000 --- a/documentation/models/ApiAccountDocumentGroupResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiAccountDocumentGroupResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------------- | :---------------------------------------------------- | :------- | :---------------------------------------------------------------------- | -| id | String | ❌ | Unique document group identifier in Asaas | -| status | ApiAccountDocumentGroupResponseCustomerDocumentStatus | ❌ | Document group status | -| type | ApiAccountDocumentGroupResponseCustomerDocumentType | ❌ | Type of documents | -| title | String | ❌ | Document group title | -| description | String | ❌ | Description | -| responsible | ApiAccountDocumentGroupResponsibleResponseDto | ❌ | | -| onboardingUrl | String | ❌ | URL for sending documents | -| onboardingUrlExpirationDate | String | ❌ | Expiration date of the URL for sending documents | -| documents | List\ | ❌ | Documents that have already been sent with their respective identifiers | - - diff --git a/documentation/models/ApiAccountDocumentGroupResponsibleResponseDto.md b/documentation/models/ApiAccountDocumentGroupResponsibleResponseDto.md deleted file mode 100644 index 1e5f7be..0000000 --- a/documentation/models/ApiAccountDocumentGroupResponsibleResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiAccountDocumentGroupResponsibleResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--- | :------------- | :------- | :--------------- | -| name | String | ❌ | Responsible name | -| type | List\ | ❌ | Responsible tyoe | - - diff --git a/documentation/models/ApiAccountDocumentSaveRequestCustomerDocumentType.md b/documentation/models/ApiAccountDocumentSaveRequestCustomerDocumentType.md deleted file mode 100644 index 7d6d049..0000000 --- a/documentation/models/ApiAccountDocumentSaveRequestCustomerDocumentType.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiAccountDocumentSaveRequestCustomerDocumentType - -Document Type - -**Properties** - -| Name | Type | Required | Description | -| :----------------------- | :----- | :------- | :------------------------- | -| IDENTIFICATION | String | ✅ | "IDENTIFICATION" | -| SOCIAL_CONTRACT | String | ✅ | "SOCIAL_CONTRACT" | -| ENTREPRENEUR_REQUIREMENT | String | ✅ | "ENTREPRENEUR_REQUIREMENT" | -| MINUTES_OF_ELECTION | String | ✅ | "MINUTES_OF_ELECTION" | -| CUSTOM | String | ✅ | "CUSTOM" | - - diff --git a/documentation/models/ApiAccountDocumentSaveRequestDto.md b/documentation/models/ApiAccountDocumentSaveRequestDto.md deleted file mode 100644 index 964fed9..0000000 --- a/documentation/models/ApiAccountDocumentSaveRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiAccountDocumentSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :------------------------------------------------ | :------- | :------------ | -| documentFile | byte[] | ❌ | File | -| type | ApiAccountDocumentSaveRequestCustomerDocumentType | ❌ | Document Type | - - diff --git a/documentation/models/ApiAccountDocumentShowResponseDto.md b/documentation/models/ApiAccountDocumentShowResponseDto.md deleted file mode 100644 index 3036904..0000000 --- a/documentation/models/ApiAccountDocumentShowResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiAccountDocumentShowResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :----------------------------------------- | :------- | :--------------------------------------- | -| rejectReasons | String | ❌ | Reason why account approval was rejected | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiAccountDocumentUpdateRequestDto.md b/documentation/models/ApiAccountDocumentUpdateRequestDto.md deleted file mode 100644 index 6fbbdbc..0000000 --- a/documentation/models/ApiAccountDocumentUpdateRequestDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiAccountDocumentUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :---------- | -| documentFile | byte[] | ✅ | File | - - diff --git a/documentation/models/ApiBankSlipBillingInfoResponseDto.md b/documentation/models/ApiBankSlipBillingInfoResponseDto.md deleted file mode 100644 index 85d8bd2..0000000 --- a/documentation/models/ApiBankSlipBillingInfoResponseDto.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiBankSlipBillingInfoResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------------------- | :----- | :------- | :----------------------------------------------------------------- | -| identificationField | String | ❌ | Digitable bill line | -| nossoNumero | String | ❌ | Unique identification of the bank slip | -| barCode | String | ❌ | Bank slip bar code | -| bankSlipUrl | String | ❌ | URL to download the bank slip | -| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | - - diff --git a/documentation/models/ApiBillGetResponseBillStatus.md b/documentation/models/ApiBillGetResponseBillStatus.md deleted file mode 100644 index b789586..0000000 --- a/documentation/models/ApiBillGetResponseBillStatus.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiBillGetResponseBillStatus - -Bill payment status - -**Properties** - -| Name | Type | Required | Description | -| :-------------------------------------- | :----- | :------- | :---------------------------------------- | -| PENDING | String | ✅ | "PENDING" | -| BANK_PROCESSING | String | ✅ | "BANK_PROCESSING" | -| PAID | String | ✅ | "PAID" | -| FAILED | String | ✅ | "FAILED" | -| CANCELLED | String | ✅ | "CANCELLED" | -| REFUNDED | String | ✅ | "REFUNDED" | -| AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST | String | ✅ | "AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST" | - - diff --git a/documentation/models/ApiBillGetResponseDto.md b/documentation/models/ApiBillGetResponseDto.md deleted file mode 100644 index 8fa5bbd..0000000 --- a/documentation/models/ApiBillGetResponseDto.md +++ /dev/null @@ -1,26 +0,0 @@ -# ApiBillGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :--------------------------- | :------- | :------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique bill payment identifier in Asaas | -| status | ApiBillGetResponseBillStatus | ❌ | Bill payment status | -| value | Double | ❌ | Amount to be paid | -| discount | Double | ❌ | Discount attributed to payment | -| interest | Double | ❌ | Interest attributed to payment | -| fine | Double | ❌ | Fine assigned to payment | -| identificationField | String | ❌ | Typeable line of the bill to be paid | -| dueDate | String | ❌ | Billing due date | -| scheduleDate | String | ❌ | Payment scheduling date | -| paymentDate | String | ❌ | Date on which payment was made | -| fee | Double | ❌ | Asaas fee for bill payment | -| description | String | ❌ | Bill Payment Description | -| companyName | String | ❌ | Company/Body issuing the payment | -| transactionReceiptUrl | String | ❌ | Proof of bill payment | -| canBeCancelled | Boolean | ❌ | Whether payment can be canceled | -| externalReference | String | ❌ | Unique identifier of the bill in your system | -| failReasons | List\ | ❌ | List of reasons for payment failure | - - diff --git a/documentation/models/ApiBillListResponseDto.md b/documentation/models/ApiBillListResponseDto.md deleted file mode 100644 index 638f46b..0000000 --- a/documentation/models/ApiBillListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiBillListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :---------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiBillSaveRequestDto.md b/documentation/models/ApiBillSaveRequestDto.md deleted file mode 100644 index ce28bf9..0000000 --- a/documentation/models/ApiBillSaveRequestDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiBillSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :----- | :------- | :--------------------------------------------------------------------------------------------- | -| identificationField | String | ✅ | Digitizable bill line | -| scheduleDate | String | ❌ | Payment scheduling date | -| description | String | ❌ | Bill Payment Description | -| discount | Double | ❌ | Discount attributed to payment | -| interest | Double | ❌ | Interest attributed to payment | -| fine | Double | ❌ | Fine assigned to payment | -| dueDate | String | ❌ | Expiration date of the account if it is the type that does not have this information | -| value | Double | ❌ | Account value if it is the type that does not have this information (Ex: credit card invoices) | -| externalReference | String | ❌ | Unique identifier of the bill in your system | - - diff --git a/documentation/models/ApiBillSimulateBankSlipInfoResponseDto.md b/documentation/models/ApiBillSimulateBankSlipInfoResponseDto.md deleted file mode 100644 index f50a145..0000000 --- a/documentation/models/ApiBillSimulateBankSlipInfoResponseDto.md +++ /dev/null @@ -1,25 +0,0 @@ -# ApiBillSimulateBankSlipInfoResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :------ | :------- | :------------------------------------------------------ | -| identificationField | String | ❌ | Digitable line | -| value | Double | ❌ | Ticket value | -| dueDate | String | ❌ | Due date | -| companyName | String | ❌ | Company/Body issuing the bill | -| bank | String | ❌ | Code of the bank issuing the bill in the banking system | -| beneficiaryCpfCnpj | String | ❌ | CPF or CNPJ of the beneficiary | -| beneficiaryName | String | ❌ | Beneficiary's name | -| allowChangeValue | Boolean | ❌ | Whether the value can be changed or not | -| minValue | Double | ❌ | Minimum value that can be changed | -| maxValue | Double | ❌ | Maximum value that can be changed | -| discountValue | Double | ❌ | Value of discounts | -| interestValue | Double | ❌ | Interest amount | -| fineValue | Double | ❌ | Fine value | -| originalValue | Double | ❌ | Original bill value | -| totalDiscountValue | Double | ❌ | Total value of discounts and rebates | -| totalAdditionalValue | Double | ❌ | Total amount of interest and fine | -| isOverdue | Boolean | ❌ | Informs if the ticket is expired | - - diff --git a/documentation/models/ApiBillSimulateRequestDto.md b/documentation/models/ApiBillSimulateRequestDto.md deleted file mode 100644 index 54cacf8..0000000 --- a/documentation/models/ApiBillSimulateRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiBillSimulateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :----- | :------- | :-------------------- | -| identificationField | String | ❌ | Digitizable bill line | -| barCode | String | ❌ | Ticket barcode | - - diff --git a/documentation/models/ApiBillSimulateResponseDto.md b/documentation/models/ApiBillSimulateResponseDto.md deleted file mode 100644 index 695518d..0000000 --- a/documentation/models/ApiBillSimulateResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiBillSimulateResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :------------------------------------- | :------- | :---------------------------------- | -| minimumScheduleDate | String | ❌ | Minimum date allowed for scheduling | -| fee | Double | ❌ | Fee charged when paying the bill | -| bankSlipInfo | ApiBillSimulateBankSlipInfoResponseDto | ❌ | | - - diff --git a/documentation/models/ApiChargebackCreditCardResponseCreditCardBrand.md b/documentation/models/ApiChargebackCreditCardResponseCreditCardBrand.md deleted file mode 100644 index e9b726e..0000000 --- a/documentation/models/ApiChargebackCreditCardResponseCreditCardBrand.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiChargebackCreditCardResponseCreditCardBrand - -Flag of the card used - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----- | :------- | :----------- | -| VISA | String | ✅ | "VISA" | -| MASTERCARD | String | ✅ | "MASTERCARD" | -| ELO | String | ✅ | "ELO" | -| DINERS | String | ✅ | "DINERS" | -| DISCOVER | String | ✅ | "DISCOVER" | -| AMEX | String | ✅ | "AMEX" | -| HIPERCARD | String | ✅ | "HIPERCARD" | -| CABAL | String | ✅ | "CABAL" | -| BANESCARD | String | ✅ | "BANESCARD" | -| CREDZ | String | ✅ | "CREDZ" | -| SOROCRED | String | ✅ | "SOROCRED" | -| CREDSYSTEM | String | ✅ | "CREDSYSTEM" | -| JCB | String | ✅ | "JCB" | -| UNKNOWN | String | ✅ | "UNKNOWN" | - - diff --git a/documentation/models/ApiChargebackCreditCardResponseDto.md b/documentation/models/ApiChargebackCreditCardResponseDto.md deleted file mode 100644 index 9277af8..0000000 --- a/documentation/models/ApiChargebackCreditCardResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiChargebackCreditCardResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----- | :--------------------------------------------- | :------- | :----------------------------- | -| number | String | ❌ | Last 4 digits of the card used | -| brand | ApiChargebackCreditCardResponseCreditCardBrand | ❌ | Flag of the card used | - - diff --git a/documentation/models/ApiChargebackListRequestChargebackStatus.md b/documentation/models/ApiChargebackListRequestChargebackStatus.md deleted file mode 100644 index b0a9426..0000000 --- a/documentation/models/ApiChargebackListRequestChargebackStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiChargebackListRequestChargebackStatus - -Filter by chargeback status. - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| REQUESTED | String | ✅ | "REQUESTED" | -| IN_DISPUTE | String | ✅ | "IN_DISPUTE" | -| DISPUTE_LOST | String | ✅ | "DISPUTE_LOST" | -| REVERSED | String | ✅ | "REVERSED" | -| DONE | String | ✅ | "DONE" | - - diff --git a/documentation/models/ApiChargebackListRequestCreditCardBrand.md b/documentation/models/ApiChargebackListRequestCreditCardBrand.md deleted file mode 100644 index 2290b84..0000000 --- a/documentation/models/ApiChargebackListRequestCreditCardBrand.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiChargebackListRequestCreditCardBrand - -Filter by used card brand. - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----- | :------- | :----------- | -| VISA | String | ✅ | "VISA" | -| MASTERCARD | String | ✅ | "MASTERCARD" | -| ELO | String | ✅ | "ELO" | -| DINERS | String | ✅ | "DINERS" | -| DISCOVER | String | ✅ | "DISCOVER" | -| AMEX | String | ✅ | "AMEX" | -| HIPERCARD | String | ✅ | "HIPERCARD" | -| CABAL | String | ✅ | "CABAL" | -| BANESCARD | String | ✅ | "BANESCARD" | -| CREDZ | String | ✅ | "CREDZ" | -| SOROCRED | String | ✅ | "SOROCRED" | -| CREDSYSTEM | String | ✅ | "CREDSYSTEM" | -| JCB | String | ✅ | "JCB" | -| UNKNOWN | String | ✅ | "UNKNOWN" | - - diff --git a/documentation/models/ApiChargebackListResponseDto.md b/documentation/models/ApiChargebackListResponseDto.md deleted file mode 100644 index c3ccfc1..0000000 --- a/documentation/models/ApiChargebackListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiChargebackListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :-------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiChargebackSaveDisputeRequestDto.md b/documentation/models/ApiChargebackSaveDisputeRequestDto.md deleted file mode 100644 index a709964..0000000 --- a/documentation/models/ApiChargebackSaveDisputeRequestDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiChargebackSaveDisputeRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---- | :----- | :------- | :----------------------------------------- | -| files | byte[] | ✅ | Files to create the dispute (Maximum: 11). | - - diff --git a/documentation/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.md b/documentation/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.md deleted file mode 100644 index d90343b..0000000 --- a/documentation/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiChargebackSaveDisputeResponseChargebackDisputeStatus - -Dispute status. - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :----- | :------- | :---------- | -| REQUESTED | String | ✅ | "REQUESTED" | -| ACCEPTED | String | ✅ | "ACCEPTED" | -| REJECTED | String | ✅ | "REJECTED" | - - diff --git a/documentation/models/ApiChargebackSaveDisputeResponseDto.md b/documentation/models/ApiChargebackSaveDisputeResponseDto.md deleted file mode 100644 index a5cc967..0000000 --- a/documentation/models/ApiChargebackSaveDisputeResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiChargebackSaveDisputeResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :------------------------------------------------------ | :------- | :--------------------------------------------------------------------- | -| chargebackId | String | ❌ | Unique identifier of chargeback for which the dispute will be created. | -| status | ApiChargebackSaveDisputeResponseChargebackDisputeStatus | ❌ | Dispute status. | -| files | List\ | ❌ | Names of the dispute files. | - - diff --git a/documentation/models/ApiCheckoutSessionCallbackDto.md b/documentation/models/ApiCheckoutSessionCallbackDto.md deleted file mode 100644 index 2ffab93..0000000 --- a/documentation/models/ApiCheckoutSessionCallbackDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiCheckoutSessionCallbackDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----- | :------- | :----------------------------------- | -| successUrl | String | ✅ | Redirect URL for successful checkout | -| cancelUrl | String | ✅ | Redirect URL for canceled checkout | -| expiredUrl | String | ✅ | Redirect URL for expired checkout | - - diff --git a/documentation/models/ApiCheckoutSessionCustomerDataDto.md b/documentation/models/ApiCheckoutSessionCustomerDataDto.md deleted file mode 100644 index 388113b..0000000 --- a/documentation/models/ApiCheckoutSessionCustomerDataDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApiCheckoutSessionCustomerDataDto - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :----- | :------- | :--------------------------------------- | -| name | String | ❌ | Customer name | -| cpfCnpj | String | ❌ | Customer CPF or CNPJ | -| email | String | ❌ | Customer email | -| phone | String | ❌ | Customer phone | -| address | String | ❌ | Customer address | -| addressNumber | Long | ❌ | Address number | -| complement | String | ❌ | Address complement (max. 255 characters) | -| province | String | ❌ | Province of address | -| postalCode | String | ❌ | Address zip code | -| city | Long | ❌ | City code | - - diff --git a/documentation/models/ApiCheckoutSessionInstallmentDto.md b/documentation/models/ApiCheckoutSessionInstallmentDto.md deleted file mode 100644 index dda8689..0000000 --- a/documentation/models/ApiCheckoutSessionInstallmentDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiCheckoutSessionInstallmentDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :--- | :------- | :----------------------------- | -| maxInstallmentCount | Long | ❌ | Maximum number of installments | - - diff --git a/documentation/models/ApiCheckoutSessionItemsDto.md b/documentation/models/ApiCheckoutSessionItemsDto.md deleted file mode 100644 index 9df3be4..0000000 --- a/documentation/models/ApiCheckoutSessionItemsDto.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiCheckoutSessionItemsDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------------- | -| imageBase64 | String | ✅ | Item image in Base64 | -| name | String | ✅ | Item name | -| quantity | Long | ✅ | Item Quantity | -| value | Double | ✅ | Item value | -| description | String | ❌ | Item Description | - - diff --git a/documentation/models/ApiCheckoutSessionResponseDto.md b/documentation/models/ApiCheckoutSessionResponseDto.md deleted file mode 100644 index 2320c10..0000000 --- a/documentation/models/ApiCheckoutSessionResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiCheckoutSessionResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :--------------------------------- | :------- | :-------------------------------------- | -| billingTypes | List\ | ❌ | Payment methods | -| chargeTypes | List\ | ❌ | Charge types | -| minutesToExpire | Long | ❌ | Time in minutes for checkout expiration | -| callback | ApiCheckoutSessionCallbackDto | ❌ | | -| items | List\ | ❌ | List of items at checkout | -| customerData | ApiCheckoutSessionCustomerDataDto | ❌ | | -| subscription | ApiCheckoutSessionSubscriptionDto | ❌ | | -| installment | ApiCheckoutSessionInstallmentDto | ❌ | | -| split | List\ | ❌ | Split Settings | - - diff --git a/documentation/models/ApiCheckoutSessionSaveRequestDto.md b/documentation/models/ApiCheckoutSessionSaveRequestDto.md deleted file mode 100644 index fb7d712..0000000 --- a/documentation/models/ApiCheckoutSessionSaveRequestDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiCheckoutSessionSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :--------------------------------- | :------- | :-------------------------------------- | -| billingTypes | List\ | ✅ | Payment methods | -| chargeTypes | List\ | ✅ | Charge types | -| callback | ApiCheckoutSessionCallbackDto | ✅ | | -| items | List\ | ✅ | List of items at checkout | -| minutesToExpire | Long | ❌ | Time in minutes for checkout expiration | -| customerData | ApiCheckoutSessionCustomerDataDto | ❌ | | -| subscription | ApiCheckoutSessionSubscriptionDto | ❌ | | -| installment | ApiCheckoutSessionInstallmentDto | ❌ | | -| splits | List\ | ❌ | Split Settings | - - diff --git a/documentation/models/ApiCheckoutSessionSplitDto.md b/documentation/models/ApiCheckoutSessionSplitDto.md deleted file mode 100644 index 97d5864..0000000 --- a/documentation/models/ApiCheckoutSessionSplitDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiCheckoutSessionSplitDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :----- | :------- | :------------------------------------------------------------------------------------------------------------ | -| walletId | String | ✅ | Asaas wallet identifier that will receive the transfer | -| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the payment is received | -| percentageValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | -| totalFixedValue | Double | ❌ | (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. | - - diff --git a/documentation/models/ApiCheckoutSessionSubscriptionCycle.md b/documentation/models/ApiCheckoutSessionSubscriptionCycle.md deleted file mode 100644 index 42008b5..0000000 --- a/documentation/models/ApiCheckoutSessionSubscriptionCycle.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiCheckoutSessionSubscriptionCycle - -Billing frequency - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| WEEKLY | String | ✅ | "WEEKLY" | -| BIWEEKLY | String | ✅ | "BIWEEKLY" | -| MONTHLY | String | ✅ | "MONTHLY" | -| BIMONTHLY | String | ✅ | "BIMONTHLY" | -| QUARTERLY | String | ✅ | "QUARTERLY" | -| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | -| YEARLY | String | ✅ | "YEARLY" | - - diff --git a/documentation/models/ApiCheckoutSessionSubscriptionDto.md b/documentation/models/ApiCheckoutSessionSubscriptionDto.md deleted file mode 100644 index 915a5ac..0000000 --- a/documentation/models/ApiCheckoutSessionSubscriptionDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiCheckoutSessionSubscriptionDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :---------------------------------- | :------- | :------------------------------------------- | -| cycle | ApiCheckoutSessionSubscriptionCycle | ❌ | Billing frequency | -| endDate | String | ❌ | Deadline for payments to be due | -| nextDueDate | String | ❌ | Due date of the next payment to be generated | - - diff --git a/documentation/models/ApiCreditBureauReportGetResponseDto.md b/documentation/models/ApiCreditBureauReportGetResponseDto.md deleted file mode 100644 index bcdd27b..0000000 --- a/documentation/models/ApiCreditBureauReportGetResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCreditBureauReportGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :----------------------------------------------------------------------------------------- | -| id | String | ❌ | Unique report identifier in Asaas | -| dateCreated | String | ❌ | Date of consultation | -| cpfCnpj | String | ❌ | CPF or CNPJ consulted manually | -| customer | String | ❌ | Unique customer identifier in Asaas | -| downloadUrl | String | ❌ | Url to download the report. Available until 11:59 pm on the day of the appointment. | -| reportFile | String | ❌ | PDF of the query report in Base64 (this field is only returned when the report is created) | - - diff --git a/documentation/models/ApiCreditBureauReportListResponseDto.md b/documentation/models/ApiCreditBureauReportListResponseDto.md deleted file mode 100644 index 3a5a60a..0000000 --- a/documentation/models/ApiCreditBureauReportListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCreditBureauReportListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :------------------------------------------ | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiCreditBureauReportSaveRequestDto.md b/documentation/models/ApiCreditBureauReportSaveRequestDto.md deleted file mode 100644 index 54cc4af..0000000 --- a/documentation/models/ApiCreditBureauReportSaveRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiCreditBureauReportSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------------------------------------------------------------------------------------- | -| customer | String | ❌ | Unique customer identifier in Asaas | -| cpfCnpj | String | ❌ | CPF or CNPJ of the customer. Enter this field if your client is not registered with Asaas | - - diff --git a/documentation/models/ApiCreditCardHolderInfoRequestDto.md b/documentation/models/ApiCreditCardHolderInfoRequestDto.md deleted file mode 100644 index 9a3def9..0000000 --- a/documentation/models/ApiCreditCardHolderInfoRequestDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiCreditCardHolderInfoRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :----- | :------- | :------------------------------------- | -| name | String | ✅ | Name of card holder | -| email | String | ✅ | Cardholder email | -| cpfCnpj | String | ✅ | CPF or CNPJ of the cardholder | -| postalCode | String | ✅ | Cardholder zip code | -| addressNumber | String | ✅ | Cardholder address number | -| phone | String | ✅ | Phone with cardholder's area code | -| addressComplement | String | ❌ | Supplementing the cardholder's address | -| mobilePhone | String | ❌ | Cardholder's cell phone | - - diff --git a/documentation/models/ApiCreditCardRequestDto.md b/documentation/models/ApiCreditCardRequestDto.md deleted file mode 100644 index 2f51ede..0000000 --- a/documentation/models/ApiCreditCardRequestDto.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiCreditCardRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :----------------------------- | -| holderName | String | ✅ | Name printed on card | -| number | String | ✅ | Card number | -| expiryMonth | String | ✅ | Expiration month with 2 digits | -| expiryYear | String | ✅ | Expiration year with 4 digits | -| ccv | String | ✅ | Security code | - - diff --git a/documentation/models/ApiCreditCardTokenizeRequestDto.md b/documentation/models/ApiCreditCardTokenizeRequestDto.md deleted file mode 100644 index f18ea9b..0000000 --- a/documentation/models/ApiCreditCardTokenizeRequestDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiCreditCardTokenizeRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :-------------------------------- | :------- | :--------------------------------------------------------------------------------------- | -| customer | String | ✅ | Unique customer identifier in Asaas | -| creditCard | ApiCreditCardRequestDto | ✅ | | -| creditCardHolderInfo | ApiCreditCardHolderInfoRequestDto | ✅ | | -| remoteIp | String | ✅ | IP from where the customer is making the purchase. Your server's IP must not be entered. | - - diff --git a/documentation/models/ApiCreditCardTokenizeResponseCreditCardBrand.md b/documentation/models/ApiCreditCardTokenizeResponseCreditCardBrand.md deleted file mode 100644 index 4fd7b88..0000000 --- a/documentation/models/ApiCreditCardTokenizeResponseCreditCardBrand.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiCreditCardTokenizeResponseCreditCardBrand - -Brand of the card used - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----- | :------- | :----------- | -| VISA | String | ✅ | "VISA" | -| MASTERCARD | String | ✅ | "MASTERCARD" | -| ELO | String | ✅ | "ELO" | -| DINERS | String | ✅ | "DINERS" | -| DISCOVER | String | ✅ | "DISCOVER" | -| AMEX | String | ✅ | "AMEX" | -| HIPERCARD | String | ✅ | "HIPERCARD" | -| CABAL | String | ✅ | "CABAL" | -| BANESCARD | String | ✅ | "BANESCARD" | -| CREDZ | String | ✅ | "CREDZ" | -| SOROCRED | String | ✅ | "SOROCRED" | -| CREDSYSTEM | String | ✅ | "CREDSYSTEM" | -| JCB | String | ✅ | "JCB" | -| UNKNOWN | String | ✅ | "UNKNOWN" | - - diff --git a/documentation/models/ApiCreditCardTokenizeResponseDto.md b/documentation/models/ApiCreditCardTokenizeResponseDto.md deleted file mode 100644 index de6b126..0000000 --- a/documentation/models/ApiCreditCardTokenizeResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiCreditCardTokenizeResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------- | :------------------------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------ | -| creditCardNumber | String | ❌ | Last 4 digits of the card used | -| creditCardBrand | ApiCreditCardTokenizeResponseCreditCardBrand | ❌ | Brand of the card used | -| creditCardToken | String | ❌ | Credit card token that can be sent in future transactions without the need to re-enter card and cardholder details. | - - diff --git a/documentation/models/ApiCustomerAccountDeleteResponseDto.md b/documentation/models/ApiCustomerAccountDeleteResponseDto.md deleted file mode 100644 index dce2326..0000000 --- a/documentation/models/ApiCustomerAccountDeleteResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiCustomerAccountDeleteResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :-------------------------------------------- | -| deleted | Boolean | ❌ | Indicates whether the client has been removed | -| id | String | ❌ | Unique customer identifier | - - diff --git a/documentation/models/ApiCustomerAccountGetResponseDto.md b/documentation/models/ApiCustomerAccountGetResponseDto.md deleted file mode 100644 index d9f050e..0000000 --- a/documentation/models/ApiCustomerAccountGetResponseDto.md +++ /dev/null @@ -1,32 +0,0 @@ -# ApiCustomerAccountGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :-------------------------------------- | :------- | :------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique customer identifier | -| dateCreated | String | ❌ | Customer creation date | -| name | String | ❌ | Client name | -| email | String | ❌ | Customer email | -| phone | String | ❌ | Customer phone | -| mobilePhone | String | ❌ | Customer cell phone | -| address | String | ❌ | Customer address | -| addressNumber | String | ❌ | Customer address number | -| complement | String | ❌ | Customer address complement | -| province | String | ❌ | Customer address neighborhood | -| city | String | ❌ | Unique city identifier in Asaas | -| cityName | String | ❌ | City of customer address | -| state | String | ❌ | Customer address status | -| country | String | ❌ | Customer country | -| postalCode | String | ❌ | Customer address zip code | -| cpfCnpj | String | ❌ | Customer CPF or CNPJ | -| personType | ApiCustomerAccountGetResponsePersonType | ❌ | Kind of person | -| deleted | Boolean | ❌ | Indicates whether it is a deleted client | -| additionalEmails | String | ❌ | Additional customer emails | -| externalReference | String | ❌ | External customer reference | -| notificationDisabled | Boolean | ❌ | Indicates whether notifications are disabled | -| observations | String | ❌ | Customer Observations | -| foreignCustomer | Boolean | ❌ | Indicates if it's non-brazilian customer | - - diff --git a/documentation/models/ApiCustomerAccountGetResponsePersonType.md b/documentation/models/ApiCustomerAccountGetResponsePersonType.md deleted file mode 100644 index f082e47..0000000 --- a/documentation/models/ApiCustomerAccountGetResponsePersonType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiCustomerAccountGetResponsePersonType - -Kind of person - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| JURIDICA | String | ✅ | "JURIDICA" | -| FISICA | String | ✅ | "FISICA" | - - diff --git a/documentation/models/ApiCustomerAccountListResponseDto.md b/documentation/models/ApiCustomerAccountListResponseDto.md deleted file mode 100644 index 11bedb7..0000000 --- a/documentation/models/ApiCustomerAccountListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCustomerAccountListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :--------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiCustomerAccountNumberDto.md b/documentation/models/ApiCustomerAccountNumberDto.md deleted file mode 100644 index 2fc1b6d..0000000 --- a/documentation/models/ApiCustomerAccountNumberDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiCustomerAccountNumberDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| agency | String | ❌ | Account agency | -| account | String | ❌ | Account number | -| accountDigit | String | ❌ | Account digit | - - diff --git a/documentation/models/ApiCustomerAccountSaveRequestDto.md b/documentation/models/ApiCustomerAccountSaveRequestDto.md deleted file mode 100644 index 9032650..0000000 --- a/documentation/models/ApiCustomerAccountSaveRequestDto.md +++ /dev/null @@ -1,27 +0,0 @@ -# ApiCustomerAccountSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :------ | :------- | :------------------------------------------------------------------- | -| name | String | ✅ | Client name | -| cpfCnpj | String | ✅ | Customer CPF or CNPJ | -| email | String | ❌ | Customer email | -| phone | String | ❌ | Landline | -| mobilePhone | String | ❌ | Cell phone | -| address | String | ❌ | Public place | -| addressNumber | String | ❌ | Address number | -| complement | String | ❌ | Address complement (max. 255 characters) | -| province | String | ❌ | Neighborhood | -| postalCode | String | ❌ | Address zip code | -| externalReference | String | ❌ | Customer identifier in your system | -| notificationDisabled | Boolean | ❌ | true to disable sending billing notifications | -| additionalEmails | String | ❌ | Additional emails for sending billing notifications separated by "," | -| municipalInscription | String | ❌ | Customer municipal registration | -| stateInscription | String | ❌ | Customer state registration | -| observations | String | ❌ | Additional observations | -| groupName | String | ❌ | Name of the group the customer belongs to | -| company | String | ❌ | Company | -| foreignCustomer | Boolean | ❌ | inform true if it's a non-brazilian customer | - - diff --git a/documentation/models/ApiCustomerAccountUpdateRequestDto.md b/documentation/models/ApiCustomerAccountUpdateRequestDto.md deleted file mode 100644 index 929dee9..0000000 --- a/documentation/models/ApiCustomerAccountUpdateRequestDto.md +++ /dev/null @@ -1,27 +0,0 @@ -# ApiCustomerAccountUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :------ | :------- | :------------------------------------------------------------------- | -| name | String | ❌ | Client name | -| cpfCnpj | String | ❌ | Customer CPF or CNPJ | -| email | String | ❌ | Customer email | -| phone | String | ❌ | Landline | -| mobilePhone | String | ❌ | Cell phone | -| address | String | ❌ | Public place | -| addressNumber | String | ❌ | Address number | -| complement | String | ❌ | Address complement | -| province | String | ❌ | Neighborhood | -| postalCode | String | ❌ | Address zip code | -| externalReference | String | ❌ | Customer identifier in your system | -| notificationDisabled | Boolean | ❌ | true to disable sending billing notifications | -| additionalEmails | String | ❌ | Additional emails for sending billing notifications separated by "," | -| municipalInscription | String | ❌ | Customer municipal registration | -| stateInscription | String | ❌ | Customer state registration | -| observations | String | ❌ | Additional observations | -| groupName | String | ❌ | Name of the group the customer belongs to | -| company | String | ❌ | Company | -| foreignCustomer | Boolean | ❌ | inform true if it's a non-brazilian customer | - - diff --git a/documentation/models/ApiCustomerFiscalInfoGetResponseDto.md b/documentation/models/ApiCustomerFiscalInfoGetResponseDto.md deleted file mode 100644 index 7301c12..0000000 --- a/documentation/models/ApiCustomerFiscalInfoGetResponseDto.md +++ /dev/null @@ -1,25 +0,0 @@ -# ApiCustomerFiscalInfoGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------------- | :------ | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| email | String | ❌ | Email used by Asaas to send invoice notifications and alerts | -| municipalInscription | String | ❌ | Company municipal registration | -| simplesNacional | Boolean | ❌ | Indicates whether the company opts for the simple national system | -| culturalProjectsPromoter | Boolean | ❌ | Identifies whether the company is classified as a cultural promoter | -| cnae | String | ❌ | CNAE code | -| specialTaxRegime | String | ❌ | Special taxation regime identifier | -| serviceListItem | String | ❌ | Service list item, as http://www.planalto.gov.br/ccivil_03/leis/LCP/Lcp116.htm | -| nbsCode | String | ❌ | NBS Code (Brazilian Nomenclature of Services). It must be included on the NFS-e (Electronic Service Invoice) when required by the municipal government and/or for import or export services. Check with your local government or your accounting department to determine whether this information is necessary. | -| rpsSerie | String | ❌ | Serial Number registered for the company | -| rpsNumber | Long | ❌ | RPS number used in the last invoice issued to your company | -| loteNumber | Long | ❌ | Batch number used on the last invoice issued by your company | -| username | String | ❌ | User to access your city's city hall website | -| passwordSent | Boolean | ❌ | Indicates whether the password to access the city hall website has been entered | -| accessTokenSent | Boolean | ❌ | Indicates whether the token for accessing the city hall website was provided | -| certificateSent | Boolean | ❌ | Indicates whether the digital certificate for access to the city hall website has been provided | -| nationalPortalTaxCalculationRegime | String | ❌ | Identifier of the tax calculation regime | - - diff --git a/documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.md b/documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.md deleted file mode 100644 index f78bc1b..0000000 --- a/documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :----- | :------- | :------------------- | -| nbsCode | String | ❌ | NBS code | -| codeDescription | String | ❌ | NBS code description | - - diff --git a/documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.md b/documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.md deleted file mode 100644 index e61fed4..0000000 --- a/documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :-------------------------------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.md b/documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.md deleted file mode 100644 index a379373..0000000 --- a/documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------------------ | -| id | String | ❌ | Unique service identifier | -| description | String | ❌ | Service description | -| issTax | Double | ❌ | ISS percentage rate | - - diff --git a/documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.md b/documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.md deleted file mode 100644 index 6ef654a..0000000 --- a/documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCustomerFiscalInfoListMunicipalServicesResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :---------------------------------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.md b/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.md deleted file mode 100644 index f892e8c..0000000 --- a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.md +++ /dev/null @@ -1,21 +0,0 @@ -# ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------------------------- | :--------------------------------------------------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| authenticationType | ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao | ❌ | Type of authentication required at city hall | -| supportsCancellation | Boolean | ❌ | Whether or not it supports the cancellation of invoices automatically at your city hall | -| usesSpecialTaxRegimes | Boolean | ❌ | It is necessary to inform or not the special taxation regime. If used, enter it in the `specialTaxRegime` field of **Create or update tax information** according to the options returned in the `specialTaxRegimesList` list. | -| usesServiceListItem | Boolean | ❌ | Whether or not to inform the item on the service list | -| specialTaxRegimesList | List\ | ❌ | Tax calculation regime options | -| nationalPortalTaxCalculationRegimeList | List\ | ❌ | Special taxation regime options | -| nationalPortalTaxCalculationRegimeHelp | String | ❌ | Explanation of the tax calculation regime | -| municipalInscriptionHelp | String | ❌ | Explanation of the municipal registration format | -| specialTaxRegimeHelp | String | ❌ | Explanation of the special taxation regime | -| serviceListItemHelp | String | ❌ | Explanation of service list item format | -| digitalCertificatedHelp | String | ❌ | Explanation of digital certificate | -| accessTokenHelp | String | ❌ | Token Explanation | -| municipalServiceCodeHelp | String | ❌ | Explanation of municipal service code format | - - diff --git a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md b/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md deleted file mode 100644 index 8790517..0000000 --- a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao - -Type of authentication required at city hall - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :----- | :------- | :------------------ | -| CERTIFICATE | String | ✅ | "CERTIFICATE" | -| TOKEN | String | ✅ | "TOKEN" | -| USER_AND_PASSWORD | String | ✅ | "USER_AND_PASSWORD" | - - diff --git a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md b/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md deleted file mode 100644 index 33fedd5..0000000 --- a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto - -**Properties** - -| Name | Type | Required | Description | -| :---- | :----- | :------- | :--------------------------------------- | -| label | String | ❌ | Name of the tax calculation regime | -| value | String | ❌ | Identifier of the tax calculation regime | - - diff --git a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md b/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md deleted file mode 100644 index 66245d5..0000000 --- a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto - -**Properties** - -| Name | Type | Required | Description | -| :---- | :----- | :------- | :---------------------------------- | -| label | String | ❌ | Name of the special taxation regime | -| value | String | ❌ | Special taxation regime identifier | - - diff --git a/documentation/models/ApiCustomerFiscalInfoSaveRequestDto.md b/documentation/models/ApiCustomerFiscalInfoSaveRequestDto.md deleted file mode 100644 index 77f90d2..0000000 --- a/documentation/models/ApiCustomerFiscalInfoSaveRequestDto.md +++ /dev/null @@ -1,25 +0,0 @@ -# ApiCustomerFiscalInfoSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------------- | :------ | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| email | String | ✅ | Email used by Asaas to send invoice notifications and alerts | -| simplesNacional | Boolean | ✅ | Indicates whether the company opts for the simple national system | -| municipalInscription | String | ❌ | Company municipal registration | -| culturalProjectsPromoter | Boolean | ❌ | Identifies whether the company is classified as a cultural promoter | -| cnae | String | ❌ | CNAE code | -| specialTaxRegime | String | ❌ | Special taxation regime identifier | -| serviceListItem | String | ❌ | Service list item, as http://www.planalto.gov.br/ccivil_03/leis/LCP/Lcp116.htm | -| nbsCode | String | ❌ | NBS Code (Brazilian Nomenclature of Services). It must be included on the NFS-e (Electronic Service Invoice) when required by the municipal government and/or for import or export services. Check with your local government or your accounting department to determine whether this information is necessary. | -| rpsSerie | String | ❌ | Serial Number used by your company to issue invoices. In most cities the serial number used is '1' or 'E' | -| rpsNumber | Long | ❌ | RPS number used on the last invoice issued by your company. If your last NF issued has an RPS equal to '100', this field must be filled in with '101'. If you have never issued invoices through your city hall's website, enter '1' in this field | -| loteNumber | Long | ❌ | Batch number used on the last invoice issued by your company. If the last lot used in your city hall is '25', this field must be filled in with '26'. Only enter this field if your city hall requires the use of lots | -| username | String | ❌ | User to access your city's city hall website | -| password | String | ❌ | Password to access the city hall website | -| accessToken | String | ❌ | Token for access to the city hall website (If access to your city hall website is via Token) | -| certificateFile | byte[] | ❌ | File | -| certificatePassword | String | ❌ | Password for the digital certificate sent (If access to your city hall website through a digital certificate) | -| nationalPortalTaxCalculationRegime | String | ❌ | Identifier of the tax calculation regime. It must only be completed by companies classified as ME or EPP opting for Simples Nacional. Consult the need for this information with your city hall or accounting department. | - - diff --git a/documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.md b/documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.md deleted file mode 100644 index 4dfa18c..0000000 --- a/documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :---------------------------------------------------------------------------------------------- | -| enabled | Boolean | ✅ | Indicates whether the issuing of invoices through the national portal should be enabled or not. | - - diff --git a/documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.md b/documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.md deleted file mode 100644 index 9e1ee60..0000000 --- a/documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :-------------------------------------------------------------------------------------- | -| success | Boolean | ❌ | Status of the request to change the use status of national portal for issuing invoices. | - - diff --git a/documentation/models/ApiCustomerGetResponseCompanyType.md b/documentation/models/ApiCustomerGetResponseCompanyType.md deleted file mode 100644 index 7f07373..0000000 --- a/documentation/models/ApiCustomerGetResponseCompanyType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCustomerGetResponseCompanyType - -Type of company (only when Legal Entity) - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| MEI | String | ✅ | "MEI" | -| LIMITED | String | ✅ | "LIMITED" | -| INDIVIDUAL | String | ✅ | "INDIVIDUAL" | -| ASSOCIATION | String | ✅ | "ASSOCIATION" | - - diff --git a/documentation/models/ApiCustomerGetResponseDto.md b/documentation/models/ApiCustomerGetResponseDto.md deleted file mode 100644 index b52074f..0000000 --- a/documentation/models/ApiCustomerGetResponseDto.md +++ /dev/null @@ -1,32 +0,0 @@ -# ApiCustomerGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------- | :---------------------------------------------------------- | :------- | :----------------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique subaccount identifier in Asaas | -| name | String | ❌ | Subaccount name | -| email | String | ❌ | Subaccount email | -| loginEmail | String | ❌ | Email for subaccount login, if not provided, the subaccount email will be used | -| phone | String | ❌ | Telephone | -| mobilePhone | String | ❌ | Cellphone | -| address | String | ❌ | Public place | -| addressNumber | String | ❌ | Address number | -| complement | String | ❌ | Address complement | -| province | String | ❌ | Neighborhood | -| postalCode | String | ❌ | Address zip code | -| cpfCnpj | String | ❌ | CPF or CNPJ of the subaccount owner | -| birthDate | String | ❌ | Date of birth (only for Individuals) | -| personType | ApiCustomerGetResponsePersonType | ❌ | Kind of person | -| companyType | ApiCustomerGetResponseCompanyType | ❌ | Type of company (only when Legal Entity) | -| city | Long | ❌ | Unique city identifier in Asaas | -| state | String | ❌ | State abbreviation (SP, RJ, SC, ...) | -| country | String | ❌ | Country (Fixed Brazil) | -| tradingName | String | ❌ | Display name (auto-populated) | -| site | String | ❌ | Url reffered to the subaccount | -| walletId | String | ❌ | Unique wallet identifier to split charges or transfer between Asaas accounts | -| accountNumber | ApiCustomerAccountNumberDto | ❌ | | -| commercialInfoExpiration | ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto | ❌ | | - - diff --git a/documentation/models/ApiCustomerGetResponsePersonType.md b/documentation/models/ApiCustomerGetResponsePersonType.md deleted file mode 100644 index d132aa9..0000000 --- a/documentation/models/ApiCustomerGetResponsePersonType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiCustomerGetResponsePersonType - -Kind of person - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| JURIDICA | String | ✅ | "JURIDICA" | -| FISICA | String | ✅ | "FISICA" | - - diff --git a/documentation/models/ApiCustomerInvoiceCancelRequestDto.md b/documentation/models/ApiCustomerInvoiceCancelRequestDto.md deleted file mode 100644 index 3e3d75e..0000000 --- a/documentation/models/ApiCustomerInvoiceCancelRequestDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiCustomerInvoiceCancelRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :------ | :------- | :--------------------------- | -| cancelOnlyOnAsaas | Boolean | ❌ | Cancel invoice only on Asaas | - - diff --git a/documentation/models/ApiCustomerInvoiceGetResponseDto.md b/documentation/models/ApiCustomerInvoiceGetResponseDto.md deleted file mode 100644 index 5f1e489..0000000 --- a/documentation/models/ApiCustomerInvoiceGetResponseDto.md +++ /dev/null @@ -1,33 +0,0 @@ -# ApiCustomerInvoiceGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------------ | :----------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique invoice identifier in Asaas | -| status | ApiCustomerInvoiceGetResponseInvoiceStatus | ❌ | Invoice status | -| customer | String | ❌ | Unique customer identifier | -| payment | String | ❌ | Unique payment identifier in Asaas | -| installment | String | ❌ | Unique installment identifier in Asaas | -| type | ApiCustomerInvoiceGetResponseDtoType | ❌ | Invoice type | -| statusDescription | String | ❌ | Description of the current status of the invoice | -| serviceDescription | String | ❌ | Description of invoice services | -| pdfUrl | String | ❌ | Link to pdf file of the invoice issued | -| xmlUrl | String | ❌ | Link to xml file of the issued invoice | -| rpsSerie | String | ❌ | Invoice series | -| rpsNumber | String | ❌ | RPS converted to invoice | -| number | String | ❌ | Invoice number | -| validationCode | String | ❌ | Verification code | -| value | Double | ❌ | Total value | -| deductions | Double | ❌ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | -| effectiveDate | String | ❌ | Invoice issuance date | -| observations | String | ❌ | Additional observations | -| estimatedTaxesDescription | String | ❌ | Estimated tax invoice | -| externalReference | String | ❌ | Invoice identifier in your system | -| taxes | ApiCustomerInvoiceTaxesDto | ❌ | | -| municipalServiceId | String | ❌ | Unique municipal service identifier | -| municipalServiceCode | String | ❌ | Municipal Service Code | -| municipalServiceName | String | ❌ | Name of municipal service | - - diff --git a/documentation/models/ApiCustomerInvoiceGetResponseDtoType.md b/documentation/models/ApiCustomerInvoiceGetResponseDtoType.md deleted file mode 100644 index 506d045..0000000 --- a/documentation/models/ApiCustomerInvoiceGetResponseDtoType.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiCustomerInvoiceGetResponseDtoType - -Invoice type - -**Properties** - -| Name | Type | Required | Description | -| :---- | :----- | :------- | :---------- | -| NFS_E | String | ✅ | "NFS-e" | - - diff --git a/documentation/models/ApiCustomerInvoiceGetResponseInvoiceStatus.md b/documentation/models/ApiCustomerInvoiceGetResponseInvoiceStatus.md deleted file mode 100644 index ed772f4..0000000 --- a/documentation/models/ApiCustomerInvoiceGetResponseInvoiceStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiCustomerInvoiceGetResponseInvoiceStatus - -Invoice status - -**Properties** - -| Name | Type | Required | Description | -| :---------------------- | :----- | :------- | :------------------------ | -| SCHEDULED | String | ✅ | "SCHEDULED" | -| AUTHORIZED | String | ✅ | "AUTHORIZED" | -| PROCESSING_CANCELLATION | String | ✅ | "PROCESSING_CANCELLATION" | -| CANCELED | String | ✅ | "CANCELED" | -| CANCELLATION_DENIED | String | ✅ | "CANCELLATION_DENIED" | -| ERROR | String | ✅ | "ERROR" | - - diff --git a/documentation/models/ApiCustomerInvoiceListRequestInvoiceStatus.md b/documentation/models/ApiCustomerInvoiceListRequestInvoiceStatus.md deleted file mode 100644 index 1f0320e..0000000 --- a/documentation/models/ApiCustomerInvoiceListRequestInvoiceStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiCustomerInvoiceListRequestInvoiceStatus - -Filter by situation - -**Properties** - -| Name | Type | Required | Description | -| :---------------------- | :----- | :------- | :------------------------ | -| SCHEDULED | String | ✅ | "SCHEDULED" | -| AUTHORIZED | String | ✅ | "AUTHORIZED" | -| PROCESSING_CANCELLATION | String | ✅ | "PROCESSING_CANCELLATION" | -| CANCELED | String | ✅ | "CANCELED" | -| CANCELLATION_DENIED | String | ✅ | "CANCELLATION_DENIED" | -| ERROR | String | ✅ | "ERROR" | - - diff --git a/documentation/models/ApiCustomerInvoiceListResponseDto.md b/documentation/models/ApiCustomerInvoiceListResponseDto.md deleted file mode 100644 index de7c283..0000000 --- a/documentation/models/ApiCustomerInvoiceListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCustomerInvoiceListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :--------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiCustomerInvoiceSaveRequestDto.md b/documentation/models/ApiCustomerInvoiceSaveRequestDto.md deleted file mode 100644 index 79cca7a..0000000 --- a/documentation/models/ApiCustomerInvoiceSaveRequestDto.md +++ /dev/null @@ -1,22 +0,0 @@ -# ApiCustomerInvoiceSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------ | -| serviceDescription | String | ✅ | Description of invoice services | -| observations | String | ✅ | Additional observations | -| value | Double | ✅ | Total value | -| deductions | Double | ✅ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | -| effectiveDate | String | ✅ | Invoice issuance date | -| municipalServiceName | String | ✅ | Name of the municipal service. If not provided, the municipalServiceCode attribute will be used as the name for identification. | -| taxes | ApiCustomerInvoiceTaxesDto | ✅ | | -| payment | String | ❌ | Unique payment identifier in Asaas | -| installment | String | ❌ | Unique installment identifier in Asaas | -| customer | String | ❌ | Unique customer identifier | -| externalReference | String | ❌ | Invoice identifier in your system | -| municipalServiceId | String | ❌ | Unique municipal service identifier | -| municipalServiceCode | String | ❌ | Municipal Service Code | -| updatePayment | Boolean | ❌ | Update the Payment amount with the invoice taxes already deducted. | - - diff --git a/documentation/models/ApiCustomerInvoiceTaxesDto.md b/documentation/models/ApiCustomerInvoiceTaxesDto.md deleted file mode 100644 index 43de883..0000000 --- a/documentation/models/ApiCustomerInvoiceTaxesDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiCustomerInvoiceTaxesDto - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :------ | :------- | :------------------------------------------ | -| retainIss | Boolean | ✅ | The invoice holder must withhold ISS or not | -| cofins | Double | ✅ | COFINS rate | -| csll | Double | ✅ | CSLL rate | -| inss | Double | ✅ | INSS rate | -| ir | Double | ✅ | IR rate | -| pis | Double | ✅ | PIS rate | -| iss | Double | ✅ | ISS rate | - - diff --git a/documentation/models/ApiCustomerInvoiceUpdateRequestDto.md b/documentation/models/ApiCustomerInvoiceUpdateRequestDto.md deleted file mode 100644 index 811d1a9..0000000 --- a/documentation/models/ApiCustomerInvoiceUpdateRequestDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiCustomerInvoiceUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------- | :------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------- | -| serviceDescription | String | ❌ | Description of invoice services | -| observations | String | ❌ | Additional observations | -| externalReference | String | ❌ | Invoice identifier in your system | -| value | Double | ❌ | Total value | -| deductions | Double | ❌ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | -| effectiveDate | String | ❌ | Invoice issuance date | -| updatePayment | Boolean | ❌ | Update the Payment amount with the invoice taxes already deducted. | -| taxes | ApiCustomerInvoiceTaxesDto | ❌ | | - - diff --git a/documentation/models/ApiCustomerListResponseDto.md b/documentation/models/ApiCustomerListResponseDto.md deleted file mode 100644 index 3eaab23..0000000 --- a/documentation/models/ApiCustomerListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCustomerListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :-------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiCustomerPaymentCustodyConfigDto.md b/documentation/models/ApiCustomerPaymentCustodyConfigDto.md deleted file mode 100644 index 346d5f1..0000000 --- a/documentation/models/ApiCustomerPaymentCustodyConfigDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiCustomerPaymentCustodyConfigDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | -| daysToExpire | Long | ✅ | Number of days to expire the payment escrow | -| enabled | Boolean | ❌ | Indicates whether the Escrow Account is enabled | -| isFeePayer | Boolean | ❌ | Indicates whether the subaccount is responsible for paying the Escrow Account fee. If not informed, the main account will be responsible for the fee | - - diff --git a/documentation/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.md b/documentation/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.md deleted file mode 100644 index 157adda..0000000 --- a/documentation/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | -| daysToExpire | Long | ✅ | Number of days to expire the payment escrow | -| enabled | Boolean | ❌ | Indicates whether the Escrow Account is enabled | -| isFeePayer | Boolean | ❌ | Indicates whether the subaccount is responsible for paying the Escrow Account fee. If not informed, the main account will be responsible for the fee | - - diff --git a/documentation/models/ApiCustomerSaveRequestCompanyType.md b/documentation/models/ApiCustomerSaveRequestCompanyType.md deleted file mode 100644 index c6bea48..0000000 --- a/documentation/models/ApiCustomerSaveRequestCompanyType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCustomerSaveRequestCompanyType - -Type of company (only when Legal Entity) - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| MEI | String | ✅ | "MEI" | -| LIMITED | String | ✅ | "LIMITED" | -| INDIVIDUAL | String | ✅ | "INDIVIDUAL" | -| ASSOCIATION | String | ✅ | "ASSOCIATION" | - - diff --git a/documentation/models/ApiCustomerSaveRequestDto.md b/documentation/models/ApiCustomerSaveRequestDto.md deleted file mode 100644 index f35767a..0000000 --- a/documentation/models/ApiCustomerSaveRequestDto.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiCustomerSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :---------------------------------------------- | :------- | :----------------------------------------------------------------------------- | -| name | String | ✅ | Subaccount name | -| email | String | ✅ | Subaccount email | -| cpfCnpj | String | ✅ | CPF or CNPJ of the subaccount owner | -| mobilePhone | String | ✅ | Cellphone | -| incomeValue | Double | ✅ | Billing/Monthly income | -| address | String | ✅ | Public place | -| addressNumber | String | ✅ | Address number | -| province | String | ✅ | Neighborhood | -| postalCode | String | ✅ | Address zip code | -| loginEmail | String | ❌ | Email for subaccount login, if not provided, the subaccount email will be used | -| birthDate | String | ❌ | Date of birth (only for Individuals) | -| companyType | ApiCustomerSaveRequestCompanyType | ❌ | Type of company (only when Legal Entity) | -| phone | String | ❌ | Telephone | -| site | String | ❌ | Url reffered to the subaccount | -| complement | String | ❌ | Address complement | -| webhooks | List\ | ❌ | Array with desired Webhooks settings | - - diff --git a/documentation/models/ApiCustomerSaveResponseCompanyType.md b/documentation/models/ApiCustomerSaveResponseCompanyType.md deleted file mode 100644 index 5d2fa65..0000000 --- a/documentation/models/ApiCustomerSaveResponseCompanyType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCustomerSaveResponseCompanyType - -Type of company (only when Legal Entity) - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| MEI | String | ✅ | "MEI" | -| LIMITED | String | ✅ | "LIMITED" | -| INDIVIDUAL | String | ✅ | "INDIVIDUAL" | -| ASSOCIATION | String | ✅ | "ASSOCIATION" | - - diff --git a/documentation/models/ApiCustomerSaveResponseDto.md b/documentation/models/ApiCustomerSaveResponseDto.md deleted file mode 100644 index a525d62..0000000 --- a/documentation/models/ApiCustomerSaveResponseDto.md +++ /dev/null @@ -1,33 +0,0 @@ -# ApiCustomerSaveResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------- | :---------------------------------------------------------- | :------- | :----------------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique subaccount identifier in Asaas | -| name | String | ❌ | Subaccount name | -| email | String | ❌ | Subaccount email | -| loginEmail | String | ❌ | Email for subaccount login, if not provided, the subaccount email will be used | -| phone | String | ❌ | Telephone | -| mobilePhone | String | ❌ | Cellphone | -| address | String | ❌ | Public place | -| addressNumber | String | ❌ | Address number | -| complement | String | ❌ | Address complement | -| province | String | ❌ | Neighborhood | -| postalCode | String | ❌ | Address zip code | -| cpfCnpj | String | ❌ | CPF or CNPJ of the subaccount owner | -| birthDate | String | ❌ | Date of birth (only for Individuals) | -| personType | ApiCustomerSaveResponsePersonType | ❌ | Kind of person | -| companyType | ApiCustomerSaveResponseCompanyType | ❌ | Type of company (only when Legal Entity) | -| city | Long | ❌ | Unique city identifier in Asaas | -| state | String | ❌ | State abbreviation (SP, RJ, SC, ...) | -| country | String | ❌ | Country (Fixed Brazil) | -| tradingName | String | ❌ | Display name (auto-populated) | -| site | String | ❌ | Url reffered to the subaccount | -| walletId | String | ❌ | Unique wallet identifier to split charges or transfer between Asaas accounts | -| accountNumber | ApiCustomerAccountNumberDto | ❌ | | -| commercialInfoExpiration | ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto | ❌ | | -| apiKey | String | ❌ | API key | - - diff --git a/documentation/models/ApiCustomerSaveResponsePersonType.md b/documentation/models/ApiCustomerSaveResponsePersonType.md deleted file mode 100644 index 3a3ed5b..0000000 --- a/documentation/models/ApiCustomerSaveResponsePersonType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiCustomerSaveResponsePersonType - -Kind of person - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| JURIDICA | String | ✅ | "JURIDICA" | -| FISICA | String | ✅ | "FISICA" | - - diff --git a/documentation/models/ApiCustomerUpdateRequestCityDto.md b/documentation/models/ApiCustomerUpdateRequestCityDto.md deleted file mode 100644 index 0698900..0000000 --- a/documentation/models/ApiCustomerUpdateRequestCityDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiCustomerUpdateRequestCityDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :-------------------------------- | :------- | :----------------------------------- | -| object | String | ❌ | Object type | -| id | Long | ❌ | Unique city identifier in Asaas | -| ibgeCode | String | ❌ | IBGE Code | -| name | String | ❌ | City's name | -| districtCode | String | ❌ | District code | -| district | String | ❌ | District name | -| state | ApiCustomerUpdateRequestCityState | ❌ | State abbreviation (SP, RJ, SC, ...) | - - diff --git a/documentation/models/ApiCustomerUpdateRequestCityState.md b/documentation/models/ApiCustomerUpdateRequestCityState.md deleted file mode 100644 index 53e1b49..0000000 --- a/documentation/models/ApiCustomerUpdateRequestCityState.md +++ /dev/null @@ -1,37 +0,0 @@ -# ApiCustomerUpdateRequestCityState - -State abbreviation (SP, RJ, SC, ...) - -**Properties** - -| Name | Type | Required | Description | -| :--- | :----- | :------- | :---------- | -| AC | String | ✅ | "AC" | -| AL | String | ✅ | "AL" | -| AP | String | ✅ | "AP" | -| AM | String | ✅ | "AM" | -| BA | String | ✅ | "BA" | -| CE | String | ✅ | "CE" | -| DF | String | ✅ | "DF" | -| ES | String | ✅ | "ES" | -| GO | String | ✅ | "GO" | -| MA | String | ✅ | "MA" | -| MT | String | ✅ | "MT" | -| MS | String | ✅ | "MS" | -| MG | String | ✅ | "MG" | -| PA | String | ✅ | "PA" | -| PB | String | ✅ | "PB" | -| PR | String | ✅ | "PR" | -| PE | String | ✅ | "PE" | -| PI | String | ✅ | "PI" | -| RR | String | ✅ | "RR" | -| RO | String | ✅ | "RO" | -| RJ | String | ✅ | "RJ" | -| RN | String | ✅ | "RN" | -| RS | String | ✅ | "RS" | -| SC | String | ✅ | "SC" | -| SP | String | ✅ | "SP" | -| SE | String | ✅ | "SE" | -| TO | String | ✅ | "TO" | - - diff --git a/documentation/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.md b/documentation/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.md deleted file mode 100644 index 3b9aac9..0000000 --- a/documentation/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :------ | :------- | :--------------------------------------------- | -| isExpired | Boolean | ❌ | Informs if commercial data is expired | -| scheduledDate | String | ❌ | Informs the expiration date of commercial data | - - diff --git a/documentation/models/ApiCustomerUpdateRequestGetResponseCompanyType.md b/documentation/models/ApiCustomerUpdateRequestGetResponseCompanyType.md deleted file mode 100644 index 02e036f..0000000 --- a/documentation/models/ApiCustomerUpdateRequestGetResponseCompanyType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCustomerUpdateRequestGetResponseCompanyType - -Type of company (only when Legal Entity) - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| MEI | String | ✅ | "MEI" | -| LIMITED | String | ✅ | "LIMITED" | -| INDIVIDUAL | String | ✅ | "INDIVIDUAL" | -| ASSOCIATION | String | ✅ | "ASSOCIATION" | - - diff --git a/documentation/models/ApiCustomerUpdateRequestGetResponseDto.md b/documentation/models/ApiCustomerUpdateRequestGetResponseDto.md deleted file mode 100644 index 5e8e078..0000000 --- a/documentation/models/ApiCustomerUpdateRequestGetResponseDto.md +++ /dev/null @@ -1,30 +0,0 @@ -# ApiCustomerUpdateRequestGetResponseDto - -**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 | -| availableCompanyNames | List\ | ❌ | Company names available. Only filled in for Legal Entity type accounts. | -| commercialInfoExpiration | ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto | ❌ | | - - diff --git a/documentation/models/ApiCustomerUpdateRequestGetResponsePersonType.md b/documentation/models/ApiCustomerUpdateRequestGetResponsePersonType.md deleted file mode 100644 index 7904191..0000000 --- a/documentation/models/ApiCustomerUpdateRequestGetResponsePersonType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiCustomerUpdateRequestGetResponsePersonType - -Person Type - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| JURIDICA | String | ✅ | "JURIDICA" | -| FISICA | String | ✅ | "FISICA" | - - diff --git a/documentation/models/ApiCustomerUpdateRequestGetResponseStatus.md b/documentation/models/ApiCustomerUpdateRequestGetResponseStatus.md deleted file mode 100644 index d2fd3bf..0000000 --- a/documentation/models/ApiCustomerUpdateRequestGetResponseStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCustomerUpdateRequestGetResponseStatus - -Account status - -**Properties** - -| Name | Type | Required | Description | -| :---------------------------- | :----- | :------- | :------------------------------ | -| APPROVED | String | ✅ | "APPROVED" | -| AWAITING_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_ACTION_AUTHORIZATION" | -| DENIED | String | ✅ | "DENIED" | -| PENDING | String | ✅ | "PENDING" | - - diff --git a/documentation/models/ApiCustomerUpdateRequestSaveRequestCompanyType.md b/documentation/models/ApiCustomerUpdateRequestSaveRequestCompanyType.md deleted file mode 100644 index bbe75e1..0000000 --- a/documentation/models/ApiCustomerUpdateRequestSaveRequestCompanyType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiCustomerUpdateRequestSaveRequestCompanyType - -Type of company (only when Legal Entity) - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| MEI | String | ✅ | "MEI" | -| LIMITED | String | ✅ | "LIMITED" | -| INDIVIDUAL | String | ✅ | "INDIVIDUAL" | -| ASSOCIATION | String | ✅ | "ASSOCIATION" | - - diff --git a/documentation/models/ApiCustomerUpdateRequestSaveRequestDto.md b/documentation/models/ApiCustomerUpdateRequestSaveRequestDto.md deleted file mode 100644 index c9d45a4..0000000 --- a/documentation/models/ApiCustomerUpdateRequestSaveRequestDto.md +++ /dev/null @@ -1,22 +0,0 @@ -# ApiCustomerUpdateRequestSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :--------------------------------------------- | :------- | :----------------------------------------------------------- | -| personType | ApiCustomerUpdateRequestSaveRequestPersonType | ❌ | Person Type | -| cpfCnpj | String | ❌ | CPF or CNPJ of the account owner | -| birthDate | String | ❌ | Birthday (Required if the information is from an individual) | -| companyType | ApiCustomerUpdateRequestSaveRequestCompanyType | ❌ | Type of company (only when Legal Entity) | -| incomeValue | Double | ❌ | Billing/Monthly income | -| email | String | ❌ | Account's email | -| phone | String | ❌ | Telephone | -| mobilePhone | String | ❌ | Cell phone | -| site | String | ❌ | Web site | -| postalCode | String | ❌ | Address zip code | -| address | String | ❌ | Public place | -| addressNumber | String | ❌ | Address number | -| complement | String | ❌ | Address complement | -| province | String | ❌ | Neighborhood | - - diff --git a/documentation/models/ApiCustomerUpdateRequestSaveRequestPersonType.md b/documentation/models/ApiCustomerUpdateRequestSaveRequestPersonType.md deleted file mode 100644 index a6c240f..0000000 --- a/documentation/models/ApiCustomerUpdateRequestSaveRequestPersonType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiCustomerUpdateRequestSaveRequestPersonType - -Person Type - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| JURIDICA | String | ✅ | "JURIDICA" | -| FISICA | String | ✅ | "FISICA" | - - diff --git a/documentation/models/ApiErrorResponseDto.md b/documentation/models/ApiErrorResponseDto.md deleted file mode 100644 index 313d452..0000000 --- a/documentation/models/ApiErrorResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiErrorResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----- | :------------------------------ | :------- | :-------------- | -| errors | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiErrorResponseItemDto.md b/documentation/models/ApiErrorResponseItemDto.md deleted file mode 100644 index 9db9423..0000000 --- a/documentation/models/ApiErrorResponseItemDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiErrorResponseItemDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :---------------- | -| code | String | ❌ | Error code | -| description | String | ❌ | Error description | - - diff --git a/documentation/models/ApiFinanceBalanceResponseDto.md b/documentation/models/ApiFinanceBalanceResponseDto.md deleted file mode 100644 index 541dffa..0000000 --- a/documentation/models/ApiFinanceBalanceResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiFinanceBalanceResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :----- | :------- | :-------------- | -| balance | Double | ❌ | Account balance | - - diff --git a/documentation/models/ApiFinanceGetPaymentStatisticsRequestBillingType.md b/documentation/models/ApiFinanceGetPaymentStatisticsRequestBillingType.md deleted file mode 100644 index 4e52707..0000000 --- a/documentation/models/ApiFinanceGetPaymentStatisticsRequestBillingType.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiFinanceGetPaymentStatisticsRequestBillingType - -Filter by payment method - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| TRANSFER | String | ✅ | "TRANSFER" | -| DEPOSIT | String | ✅ | "DEPOSIT" | -| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.md b/documentation/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.md deleted file mode 100644 index 86a0bb0..0000000 --- a/documentation/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiFinanceGetPaymentStatisticsRequestPaymentStatus - -Filter by status - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :----- | :------- | :---------- | -| PENDING | String | ✅ | "PENDING" | -| RECEIVED | String | ✅ | "RECEIVED" | -| CONFIRMED | String | ✅ | "CONFIRMED" | -| OVERDUE | String | ✅ | "OVERDUE" | - - diff --git a/documentation/models/ApiFinanceGetPaymentStatisticsResponseDto.md b/documentation/models/ApiFinanceGetPaymentStatisticsResponseDto.md deleted file mode 100644 index bee586f..0000000 --- a/documentation/models/ApiFinanceGetPaymentStatisticsResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiFinanceGetPaymentStatisticsResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------------- | -| quantity | Long | ❌ | Number of charges | -| value | Double | ❌ | Amount | -| netValue | Double | ❌ | Total net worth | - - diff --git a/documentation/models/ApiFinanceGetSplitStatisticsResponseDto.md b/documentation/models/ApiFinanceGetSplitStatisticsResponseDto.md deleted file mode 100644 index b47a3cb..0000000 --- a/documentation/models/ApiFinanceGetSplitStatisticsResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiFinanceGetSplitStatisticsResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----- | :----- | :------- | :----------------- | -| income | Double | ❌ | Amounts receivable | -| value | Double | ❌ | Values to be sent | - - diff --git a/documentation/models/ApiFinancialTransactionGetResponseDto.md b/documentation/models/ApiFinancialTransactionGetResponseDto.md deleted file mode 100644 index 45c552a..0000000 --- a/documentation/models/ApiFinancialTransactionGetResponseDto.md +++ /dev/null @@ -1,23 +0,0 @@ -# ApiFinancialTransactionGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :--------------------------------------------------------- | :------- | :---------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique transaction identifier in Asaas | -| value | Double | ❌ | Transaction value | -| balance | Double | ❌ | Value in account at the time of the transaction | -| type | ApiFinancialTransactionGetResponseFinancialTransactionType | ❌ | Transaction type | -| date | String | ❌ | Transaction date | -| description | String | ❌ | Transaction description | -| paymentId | String | ❌ | Payment identifier (If any) | -| splitId | String | ❌ | Split identifier (If any) | -| transferId | String | ❌ | Transfer identifier (If any) | -| anticipationId | String | ❌ | Anticipation identifier (If any) | -| billId | String | ❌ | Bill payment identifier (If any) | -| invoiceId | String | ❌ | Invoice identifier (If any) | -| paymentDunningId | String | ❌ | Payment dunning identifier (If any) | -| creditBureauReportId | String | ❌ | Serasa consultation identifier (If any) | - - diff --git a/documentation/models/ApiFinancialTransactionGetResponseFinancialTransactionType.md b/documentation/models/ApiFinancialTransactionGetResponseFinancialTransactionType.md deleted file mode 100644 index 74aa993..0000000 --- a/documentation/models/ApiFinancialTransactionGetResponseFinancialTransactionType.md +++ /dev/null @@ -1,134 +0,0 @@ -# ApiFinancialTransactionGetResponseFinancialTransactionType - -Transaction type - -**Properties** - -| Name | Type | Required | Description | -| :---------------------------------------------------- | :----- | :------- | :------------------------------------------------------ | -| PAYMENT_RECEIVED | String | ✅ | "PAYMENT_RECEIVED" | -| TRANSFER | String | ✅ | "TRANSFER" | -| TRANSFER_FEE | String | ✅ | "TRANSFER_FEE" | -| TRANSFER_REVERSAL | String | ✅ | "TRANSFER_REVERSAL" | -| REVERSAL | String | ✅ | "REVERSAL" | -| PAYMENT_REVERSAL | String | ✅ | "PAYMENT_REVERSAL" | -| PAYMENT_REFUND_CANCELLED | String | ✅ | "PAYMENT_REFUND_CANCELLED" | -| PAYMENT_FEE | String | ✅ | "PAYMENT_FEE" | -| PAYMENT_FEE_REVERSAL | String | ✅ | "PAYMENT_FEE_REVERSAL" | -| PAYMENT_CUSTODY_BLOCK | String | ✅ | "PAYMENT_CUSTODY_BLOCK" | -| PAYMENT_CUSTODY_BLOCK_REVERSAL | String | ✅ | "PAYMENT_CUSTODY_BLOCK_REVERSAL" | -| PHONE_CALL_NOTIFICATION_FEE | String | ✅ | "PHONE_CALL_NOTIFICATION_FEE" | -| PROMOTIONAL_CODE_CREDIT | String | ✅ | "PROMOTIONAL_CODE_CREDIT" | -| DEBIT | String | ✅ | "DEBIT" | -| DEBIT_REVERSAL | String | ✅ | "DEBIT_REVERSAL" | -| DEBT_RECOVERY_NEGOTIATION_FINANCIAL_CHARGES | String | ✅ | "DEBT_RECOVERY_NEGOTIATION_FINANCIAL_CHARGES" | -| RECEIVABLE_ANTICIPATION_GROSS_CREDIT | String | ✅ | "RECEIVABLE_ANTICIPATION_GROSS_CREDIT" | -| RECEIVABLE_ANTICIPATION_FEE | String | ✅ | "RECEIVABLE_ANTICIPATION_FEE" | -| RECEIVABLE_ANTICIPATION_DEBIT | String | ✅ | "RECEIVABLE_ANTICIPATION_DEBIT" | -| RECEIVABLE_ANTICIPATION_PARTNER_SETTLEMENT | String | ✅ | "RECEIVABLE_ANTICIPATION_PARTNER_SETTLEMENT" | -| BILL_PAYMENT | String | ✅ | "BILL_PAYMENT" | -| BILL_PAYMENT_FEE | String | ✅ | "BILL_PAYMENT_FEE" | -| BILL_PAYMENT_CANCELLED | String | ✅ | "BILL_PAYMENT_CANCELLED" | -| BILL_PAYMENT_FEE_CANCELLED | String | ✅ | "BILL_PAYMENT_FEE_CANCELLED" | -| BILL_PAYMENT_REFUNDED | String | ✅ | "BILL_PAYMENT_REFUNDED" | -| POSTAL_SERVICE_FEE | String | ✅ | "POSTAL_SERVICE_FEE" | -| INTERNAL_TRANSFER_DEBIT | String | ✅ | "INTERNAL_TRANSFER_DEBIT" | -| INTERNAL_TRANSFER_CREDIT | String | ✅ | "INTERNAL_TRANSFER_CREDIT" | -| INTERNAL_TRANSFER_REVERSAL | String | ✅ | "INTERNAL_TRANSFER_REVERSAL" | -| CREDIT | String | ✅ | "CREDIT" | -| PARTIAL_PAYMENT | String | ✅ | "PARTIAL_PAYMENT" | -| PAYMENT_MESSAGING_NOTIFICATION_FEE | String | ✅ | "PAYMENT_MESSAGING_NOTIFICATION_FEE" | -| PAYMENT_SMS_NOTIFICATION_FEE | String | ✅ | "PAYMENT_SMS_NOTIFICATION_FEE" | -| PAYMENT_DUNNING_REQUEST_FEE | String | ✅ | "PAYMENT_DUNNING_REQUEST_FEE" | -| PAYMENT_DUNNING_RECEIVED_FEE | String | ✅ | "PAYMENT_DUNNING_RECEIVED_FEE" | -| PAYMENT_DUNNING_RECEIVED_IN_CASH_FEE | String | ✅ | "PAYMENT_DUNNING_RECEIVED_IN_CASH_FEE" | -| PAYMENT_DUNNING_CANCELLATION_FEE | String | ✅ | "PAYMENT_DUNNING_CANCELLATION_FEE" | -| CUSTOMER_COMMISSION_SETTLEMENT_CREDIT | String | ✅ | "CUSTOMER_COMMISSION_SETTLEMENT_CREDIT" | -| CUSTOMER_COMMISSION_SETTLEMENT_DEBIT | String | ✅ | "CUSTOMER_COMMISSION_SETTLEMENT_DEBIT" | -| PROMOTIONAL_CODE_DEBIT | String | ✅ | "PROMOTIONAL_CODE_DEBIT" | -| REFUND_REQUEST_FEE | String | ✅ | "REFUND_REQUEST_FEE" | -| REFUND_REQUEST_CANCELLED | String | ✅ | "REFUND_REQUEST_CANCELLED" | -| REFUND_REQUEST_FEE_REVERSAL | String | ✅ | "REFUND_REQUEST_FEE_REVERSAL" | -| INVOICE_FEE | String | ✅ | "INVOICE_FEE" | -| PRODUCT_INVOICE_FEE | String | ✅ | "PRODUCT_INVOICE_FEE" | -| CONSUMER_INVOICE_FEE | String | ✅ | "CONSUMER_INVOICE_FEE" | -| ASAAS_CARD_RECHARGE | String | ✅ | "ASAAS_CARD_RECHARGE" | -| ASAAS_CARD_RECHARGE_REVERSAL | String | ✅ | "ASAAS_CARD_RECHARGE_REVERSAL" | -| ASAAS_CARD_BALANCE_REFUND | String | ✅ | "ASAAS_CARD_BALANCE_REFUND" | -| CHARGEBACK | String | ✅ | "CHARGEBACK" | -| CHARGEBACK_REVERSAL | String | ✅ | "CHARGEBACK_REVERSAL" | -| ASAAS_CARD_BILL_PAYMENT | String | ✅ | "ASAAS_CARD_BILL_PAYMENT" | -| ASAAS_CARD_BILL_PAYMENT_REFUND | String | ✅ | "ASAAS_CARD_BILL_PAYMENT_REFUND" | -| ASAAS_CARD_TRANSACTION | String | ✅ | "ASAAS_CARD_TRANSACTION" | -| ASAAS_CARD_CASHBACK | String | ✅ | "ASAAS_CARD_CASHBACK" | -| ASAAS_CARD_CREDIT_TRANSFER | String | ✅ | "ASAAS_CARD_CREDIT_TRANSFER" | -| ASAAS_CARD_CREDIT_TRANSFER_CANCELLATION | String | ✅ | "ASAAS_CARD_CREDIT_TRANSFER_CANCELLATION" | -| ASAAS_CARD_CREDIT_TRANSFER_PARTIAL_CANCELLATION | String | ✅ | "ASAAS_CARD_CREDIT_TRANSFER_PARTIAL_CANCELLATION" | -| ASAAS_CARD_CREDIT_VOUCHER | String | ✅ | "ASAAS_CARD_CREDIT_VOUCHER" | -| ASAAS_CARD_CREDIT_VOUCHER_REFUND | String | ✅ | "ASAAS_CARD_CREDIT_VOUCHER_REFUND" | -| ASAAS_CARD_DEBIT_TRANSFER | String | ✅ | "ASAAS_CARD_DEBIT_TRANSFER" | -| ASAAS_CARD_DEBIT_TRANSFER_CANCELLATION | String | ✅ | "ASAAS_CARD_DEBIT_TRANSFER_CANCELLATION" | -| ASAAS_CARD_DEBIT_TRANSFER_PARTIAL_CANCELLATION | String | ✅ | "ASAAS_CARD_DEBIT_TRANSFER_PARTIAL_CANCELLATION" | -| ASAAS_CARD_TRANSACTION_FEE | String | ✅ | "ASAAS_CARD_TRANSACTION_FEE" | -| ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE | String | ✅ | "ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE" | -| ASAAS_CARD_TRANSACTION_IOF_FEE | String | ✅ | "ASAAS_CARD_TRANSACTION_IOF_FEE" | -| ASAAS_CARD_TRANSACTION_REFUND | String | ✅ | "ASAAS_CARD_TRANSACTION_REFUND" | -| ASAAS_CARD_TRANSACTION_FEE_REFUND | String | ✅ | "ASAAS_CARD_TRANSACTION_FEE_REFUND" | -| ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE_REFUND | String | ✅ | "ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE_REFUND" | -| ASAAS_CARD_TRANSACTION_PARTIAL_REFUND | String | ✅ | "ASAAS_CARD_TRANSACTION_PARTIAL_REFUND" | -| ASAAS_CARD_TRANSACTION_REFUND_CANCELLATION | String | ✅ | "ASAAS_CARD_TRANSACTION_REFUND_CANCELLATION" | -| ASAAS_CARD_TRANSACTION_PARTIAL_REFUND_CANCELLATION | String | ✅ | "ASAAS_CARD_TRANSACTION_PARTIAL_REFUND_CANCELLATION" | -| ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE | String | ✅ | "ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE" | -| ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE_REFUND | String | ✅ | "ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE_REFUND" | -| ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE | String | ✅ | "ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE" | -| ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE_REFUND | String | ✅ | "ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE_REFUND" | -| ASAAS_MONEY_PAYMENT_FINANCING_FEE | String | ✅ | "ASAAS_MONEY_PAYMENT_FINANCING_FEE" | -| ASAAS_MONEY_PAYMENT_FINANCING_FEE_REFUND | String | ✅ | "ASAAS_MONEY_PAYMENT_FINANCING_FEE_REFUND" | -| ASAAS_MONEY_TRANSACTION_CASHBACK | String | ✅ | "ASAAS_MONEY_TRANSACTION_CASHBACK" | -| ASAAS_MONEY_TRANSACTION_CASHBACK_REFUND | String | ✅ | "ASAAS_MONEY_TRANSACTION_CASHBACK_REFUND" | -| ASAAS_MONEY_TRANSACTION_CHARGEBACK | String | ✅ | "ASAAS_MONEY_TRANSACTION_CHARGEBACK" | -| ASAAS_MONEY_TRANSACTION_CHARGEBACK_REVERSAL | String | ✅ | "ASAAS_MONEY_TRANSACTION_CHARGEBACK_REVERSAL" | -| CHARGED_FEE_REFUND | String | ✅ | "CHARGED_FEE_REFUND" | -| PIX_TRANSACTION_DEBIT | String | ✅ | "PIX_TRANSACTION_DEBIT" | -| PIX_TRANSACTION_DEBIT_REFUND | String | ✅ | "PIX_TRANSACTION_DEBIT_REFUND" | -| PIX_TRANSACTION_CREDIT | String | ✅ | "PIX_TRANSACTION_CREDIT" | -| PIX_TRANSACTION_CREDIT_FEE | String | ✅ | "PIX_TRANSACTION_CREDIT_FEE" | -| PIX_TRANSACTION_CREDIT_REFUND | String | ✅ | "PIX_TRANSACTION_CREDIT_REFUND" | -| PIX_TRANSACTION_CREDIT_REFUND_CANCELLATION | String | ✅ | "PIX_TRANSACTION_CREDIT_REFUND_CANCELLATION" | -| PIX_TRANSACTION_DEBIT_FEE | String | ✅ | "PIX_TRANSACTION_DEBIT_FEE" | -| CREDIT_BUREAU_REPORT | String | ✅ | "CREDIT_BUREAU_REPORT" | -| CONTRACTUAL_EFFECT_SETTLEMENT | String | ✅ | "CONTRACTUAL_EFFECT_SETTLEMENT" | -| CONTRACTUAL_EFFECT_SETTLEMENT_REVERSAL | String | ✅ | "CONTRACTUAL_EFFECT_SETTLEMENT_REVERSAL" | -| FREE_PAYMENT_USE | String | ✅ | "FREE_PAYMENT_USE" | -| MOBILE_PHONE_RECHARGE | String | ✅ | "MOBILE_PHONE_RECHARGE" | -| REFUND_MOBILE_PHONE_RECHARGE | String | ✅ | "REFUND_MOBILE_PHONE_RECHARGE" | -| CANCEL_MOBILE_PHONE_RECHARGE | String | ✅ | "CANCEL_MOBILE_PHONE_RECHARGE" | -| BACEN_JUDICIAL_LOCK | String | ✅ | "BACEN_JUDICIAL_LOCK" | -| BACEN_JUDICIAL_UNLOCK | String | ✅ | "BACEN_JUDICIAL_UNLOCK" | -| BACEN_JUDICIAL_TRANSFER | String | ✅ | "BACEN_JUDICIAL_TRANSFER" | -| INSTANT_TEXT_MESSAGE_FEE | String | ✅ | "INSTANT_TEXT_MESSAGE_FEE" | -| ASAAS_DEBIT_CARD_REQUEST_FEE | String | ✅ | "ASAAS_DEBIT_CARD_REQUEST_FEE" | -| ASAAS_PREPAID_CARD_REQUEST_FEE | String | ✅ | "ASAAS_PREPAID_CARD_REQUEST_FEE" | -| EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_CREDIT | String | ✅ | "EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_CREDIT" | -| EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_REVERSAL | String | ✅ | "EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_REVERSAL" | -| CHILD_ACCOUNT_KNOWN_YOUR_CUSTOMER_BATCH_FEE | String | ✅ | "CHILD_ACCOUNT_KNOWN_YOUR_CUSTOMER_BATCH_FEE" | -| CONTRACTED_CUSTOMER_PLAN_FEE | String | ✅ | "CONTRACTED_CUSTOMER_PLAN_FEE" | -| ACCOUNT_INACTIVITY_FEE | String | ✅ | "ACCOUNT_INACTIVITY_FEE" | -| PAYMENT_ORIGIN_CHANNEL_FEE | String | ✅ | "PAYMENT_ORIGIN_CHANNEL_FEE" | -| PAYMENT_SPLIT_DIVERGENCE_BLOCK | String | ✅ | "PAYMENT_SPLIT_DIVERGENCE_BLOCK" | -| PAYMENT_SPLIT_DIVERGENCE_BLOCK_REVERSAL | String | ✅ | "PAYMENT_SPLIT_DIVERGENCE_BLOCK_REVERSAL" | -| CUSTOMER_ACCOUNT_PAYMENT_BONUS_FEE | String | ✅ | "CUSTOMER_ACCOUNT_PAYMENT_BONUS_FEE" | -| CUSTOMER_PAYMENT_CUSTODY_CONFIG_FEE | String | ✅ | "CUSTOMER_PAYMENT_CUSTODY_CONFIG_FEE" | -| CARD_SALE_ITEM_FEE | String | ✅ | "CARD_SALE_ITEM_FEE" | -| CARD_SALE_ITEM_FEE_REVERSAL | String | ✅ | "CARD_SALE_ITEM_FEE_REVERSAL" | -| CARD_SALE_RECEIVED | String | ✅ | "CARD_SALE_RECEIVED" | -| CARD_SALE_REVERSAL | String | ✅ | "CARD_SALE_REVERSAL" | -| RECEIVABLE_ANTICIPATION_PAYMENT_FEE | String | ✅ | "RECEIVABLE_ANTICIPATION_PAYMENT_FEE" | -| ASAAS_MONEY_DONATION_DEBIT | String | ✅ | "ASAAS_MONEY_DONATION_DEBIT" | -| ASAAS_MONEY_DONATION_DEBIT_REFUND | String | ✅ | "ASAAS_MONEY_DONATION_DEBIT_REFUND" | -| ASAAS_MONEY_PAYMENT_DEBIT | String | ✅ | "ASAAS_MONEY_PAYMENT_DEBIT" | -| ASAAS_MONEY_PAYMENT_DEBIT_REFUND | String | ✅ | "ASAAS_MONEY_PAYMENT_DEBIT_REFUND" | -| CUSTOMER_COMMISSION_CHECKOUT | String | ✅ | "CUSTOMER_COMMISSION_CHECKOUT" | -| RECEIVABLE_ANTICIPATION_CREDIT | String | ✅ | "RECEIVABLE_ANTICIPATION_CREDIT" | - - diff --git a/documentation/models/ApiFinancialTransactionListResponseDto.md b/documentation/models/ApiFinancialTransactionListResponseDto.md deleted file mode 100644 index daf810e..0000000 --- a/documentation/models/ApiFinancialTransactionListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiFinancialTransactionListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :-------------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiInstallmentDeleteResponseDto.md b/documentation/models/ApiInstallmentDeleteResponseDto.md deleted file mode 100644 index 15ce4d5..0000000 --- a/documentation/models/ApiInstallmentDeleteResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiInstallmentDeleteResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :------------------------------------------------ | -| deleted | Boolean | ❌ | Indicates whether the installment plan is removed | -| id | String | ❌ | Unique installment identifier in Asaas | - - diff --git a/documentation/models/ApiInstallmentGetResponseBillingType.md b/documentation/models/ApiInstallmentGetResponseBillingType.md deleted file mode 100644 index 518b59f..0000000 --- a/documentation/models/ApiInstallmentGetResponseBillingType.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiInstallmentGetResponseBillingType - -Form of payment - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | -| TRANSFER | String | ✅ | "TRANSFER" | -| DEPOSIT | String | ✅ | "DEPOSIT" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiInstallmentGetResponseDto.md b/documentation/models/ApiInstallmentGetResponseDto.md deleted file mode 100644 index c38c875..0000000 --- a/documentation/models/ApiInstallmentGetResponseDto.md +++ /dev/null @@ -1,27 +0,0 @@ -# ApiInstallmentGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :---------------------------------------- | :------- | :--------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique installment identifier in Asaas | -| value | Double | ❌ | Installment amount | -| netValue | Double | ❌ | Net installment amount | -| paymentValue | Double | ❌ | Value of each installment | -| installmentCount | Long | ❌ | Number of installments | -| billingType | ApiInstallmentGetResponseBillingType | ❌ | Form of payment | -| paymentDate | String | ❌ | Bill settlement date on Asaas | -| description | String | ❌ | Description of the installment | -| expirationDay | Long | ❌ | Due date of each installment | -| dateCreated | String | ❌ | Installment creation date | -| customer | String | ❌ | Unique identifier of the customer to whom the installment belongs | -| paymentLink | String | ❌ | Unique identifier of the payment link to which the installment belongs | -| checkoutSession | String | ❌ | Unique checkout identifier | -| transactionReceiptUrl | String | ❌ | URL of proof of confirmation, receipt, reversal or removal. | -| chargeback | ApiPaymentChargebackResponseDto | ❌ | | -| creditCard | ApiPaymentSaveWithCreditCardCreditCardDto | ❌ | | -| deleted | Boolean | ❌ | Indicates whether the installment has been removed | -| refunds | List\ | ❌ | Refunds information | - - diff --git a/documentation/models/ApiInstallmentListPaymentsRequestPaymentStatus.md b/documentation/models/ApiInstallmentListPaymentsRequestPaymentStatus.md deleted file mode 100644 index d8fc3a3..0000000 --- a/documentation/models/ApiInstallmentListPaymentsRequestPaymentStatus.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiInstallmentListPaymentsRequestPaymentStatus - -Filter by payment status - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------- | :----- | :------- | :----------------------------- | -| PENDING | String | ✅ | "PENDING" | -| RECEIVED | String | ✅ | "RECEIVED" | -| CONFIRMED | String | ✅ | "CONFIRMED" | -| OVERDUE | String | ✅ | "OVERDUE" | -| REFUNDED | String | ✅ | "REFUNDED" | -| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | -| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | -| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | -| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | -| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | -| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | -| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | -| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | -| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | - - diff --git a/documentation/models/ApiInstallmentListResponseDto.md b/documentation/models/ApiInstallmentListResponseDto.md deleted file mode 100644 index 84e6665..0000000 --- a/documentation/models/ApiInstallmentListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiInstallmentListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiInstallmentRefundResponseDto.md b/documentation/models/ApiInstallmentRefundResponseDto.md deleted file mode 100644 index 7744173..0000000 --- a/documentation/models/ApiInstallmentRefundResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiInstallmentRefundResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :---------------------------------------------- | :------- | :---------------------------------------------------------------------- | -| dateCreated | String | ❌ | Refund creation date | -| status | ApiInstallmentRefundResponsePaymentRefundStatus | ❌ | Refund status | -| value | Double | ❌ | Refund value | -| endToEndIdentifier | String | ❌ | (Pix only) Unique identifier of the Pix transaction at the Central Bank | -| description | String | ❌ | Description of the refund | -| effectiveDate | String | ❌ | (Pix only) Refund effective date | -| transactionReceiptUrl | String | ❌ | Transaction receipt link | -| refundedSplits | List\ | ❌ | Refunded Splits, if any | -| paymentId | String | ❌ | Unique payment identifier in Asaas | - - diff --git a/documentation/models/ApiInstallmentRefundResponsePaymentRefundStatus.md b/documentation/models/ApiInstallmentRefundResponsePaymentRefundStatus.md deleted file mode 100644 index 953fe22..0000000 --- a/documentation/models/ApiInstallmentRefundResponsePaymentRefundStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiInstallmentRefundResponsePaymentRefundStatus - -Refund status - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------------------- | :----- | :------- | :----------------------------------------- | -| PENDING | String | ✅ | "PENDING" | -| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | -| AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION | String | ✅ | "AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION" | -| CANCELLED | String | ✅ | "CANCELLED" | -| DONE | String | ✅ | "DONE" | - - diff --git a/documentation/models/ApiInstallmentSaveRequestBillingType.md b/documentation/models/ApiInstallmentSaveRequestBillingType.md deleted file mode 100644 index c638a87..0000000 --- a/documentation/models/ApiInstallmentSaveRequestBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiInstallmentSaveRequestBillingType - -Payment billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiInstallmentSaveRequestDto.md b/documentation/models/ApiInstallmentSaveRequestDto.md deleted file mode 100644 index 1547e11..0000000 --- a/documentation/models/ApiInstallmentSaveRequestDto.md +++ /dev/null @@ -1,22 +0,0 @@ -# ApiInstallmentSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------------------- | :------------------------------------ | :------- | :----------------------------------------------------------------- | -| installmentCount | Long | ✅ | Number of installments | -| customer | String | ✅ | Unique customer identifier in Asaas | -| value | Double | ✅ | Value of each installment | -| billingType | ApiInstallmentSaveRequestBillingType | ✅ | Payment billing type | -| dueDate | String | ✅ | Due date of the first installment | -| totalValue | Double | ❌ | Total installment amount | -| description | String | ❌ | Installment description (max. 500 characters) | -| postalService | Boolean | ❌ | Define whether the payment will be sent via post | -| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | -| paymentExternalReference | String | ❌ | Free search field | -| discount | ApiPaymentDiscountDto | ❌ | | -| interest | ApiPaymentInterestRequestDto | ❌ | | -| fine | ApiPaymentFineRequestDto | ❌ | | -| splits | List\ | ❌ | Split Settings | - - diff --git a/documentation/models/ApiInstallmentSaveWithCreditCardRequestBillingType.md b/documentation/models/ApiInstallmentSaveWithCreditCardRequestBillingType.md deleted file mode 100644 index 70449ce..0000000 --- a/documentation/models/ApiInstallmentSaveWithCreditCardRequestBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiInstallmentSaveWithCreditCardRequestBillingType - -Payment billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiInstallmentSaveWithCreditCardRequestDto.md b/documentation/models/ApiInstallmentSaveWithCreditCardRequestDto.md deleted file mode 100644 index 19c55e9..0000000 --- a/documentation/models/ApiInstallmentSaveWithCreditCardRequestDto.md +++ /dev/null @@ -1,27 +0,0 @@ -# ApiInstallmentSaveWithCreditCardRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------------------- | :------------------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- | -| installmentCount | Long | ✅ | Number of installments | -| customer | String | ✅ | Unique customer identifier in Asaas | -| value | Double | ✅ | Value of each installment | -| billingType | ApiInstallmentSaveWithCreditCardRequestBillingType | ✅ | Payment billing type | -| dueDate | String | ✅ | Due date of the first installment | -| creditCard | ApiCreditCardRequestDto | ✅ | | -| creditCardHolderInfo | ApiCreditCardHolderInfoRequestDto | ✅ | | -| remoteIp | String | ✅ | IP from where the customer is making the purchase. Your server's IP must not be entered. | -| totalValue | Double | ❌ | Total installment amount | -| description | String | ❌ | Installment description (max. 500 characters) | -| postalService | Boolean | ❌ | Define whether the payment will be sent via post | -| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | -| paymentExternalReference | String | ❌ | Free search field | -| discount | ApiPaymentDiscountDto | ❌ | | -| interest | ApiPaymentInterestRequestDto | ❌ | | -| fine | ApiPaymentFineRequestDto | ❌ | | -| splits | List\ | ❌ | Split Settings | -| creditCardToken | String | ❌ | Credit card token for using the credit card tokenization functionality. If informed, the fields creditCard and creditCardHolderInfo are not mandatory. | -| authorizeOnly | Boolean | ❌ | Carry out only the Pre-Authorization of the installment | - - diff --git a/documentation/models/ApiInstallmentSplitGetResponseDto.md b/documentation/models/ApiInstallmentSplitGetResponseDto.md deleted file mode 100644 index 8135163..0000000 --- a/documentation/models/ApiInstallmentSplitGetResponseDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApiInstallmentSplitGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------- | :----------------------------------------------------------- | :------- | :------------------------------------------------------------------------ | -| id | String | ❌ | Unique split identifier in Asaas | -| walletId | String | ❌ | Asaas wallet identifier that will be transferred | -| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the charge is received | -| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | -| totalValue | Double | ❌ | Amount that will be split relative to the total amount that will be paid | -| cancellationReason | ApiInstallmentSplitGetResponsePaymentSplitCancellationReason | ❌ | Reason for canceling the split | -| status | ApiInstallmentSplitGetResponsePaymentSplitStatus | ❌ | Split status | -| externalReference | String | ❌ | Unique identifier of split in your system | -| description | String | ❌ | Split description | -| installmentNumber | Long | ❌ | Installment to which the split is linked | - - diff --git a/documentation/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.md b/documentation/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.md deleted file mode 100644 index f2b5876..0000000 --- a/documentation/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiInstallmentSplitGetResponsePaymentSplitCancellationReason - -Reason for canceling the split - -**Properties** - -| Name | Type | Required | Description | -| :----------------------- | :----- | :------- | :------------------------- | -| PAYMENT_DELETED | String | ✅ | "PAYMENT_DELETED" | -| PAYMENT_OVERDUE | String | ✅ | "PAYMENT_OVERDUE" | -| PAYMENT_RECEIVED_IN_CASH | String | ✅ | "PAYMENT_RECEIVED_IN_CASH" | -| PAYMENT_REFUNDED | String | ✅ | "PAYMENT_REFUNDED" | -| VALUE_DIVERGENCE_BLOCK | String | ✅ | "VALUE_DIVERGENCE_BLOCK" | -| WALLET_UNABLE_TO_RECEIVE | String | ✅ | "WALLET_UNABLE_TO_RECEIVE" | - - diff --git a/documentation/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.md b/documentation/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.md deleted file mode 100644 index 86e3f1f..0000000 --- a/documentation/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiInstallmentSplitGetResponsePaymentSplitStatus - -Split status - -**Properties** - -| Name | Type | Required | Description | -| :-------------------------- | :----- | :------- | :---------------------------- | -| PENDING | String | ✅ | "PENDING" | -| AWAITING_CREDIT | String | ✅ | "AWAITING_CREDIT" | -| CANCELLED | String | ✅ | "CANCELLED" | -| DONE | String | ✅ | "DONE" | -| REFUNDED | String | ✅ | "REFUNDED" | -| BLOCKED_BY_VALUE_DIVERGENCE | String | ✅ | "BLOCKED_BY_VALUE_DIVERGENCE" | - - diff --git a/documentation/models/ApiInstallmentSplitRequestDto.md b/documentation/models/ApiInstallmentSplitRequestDto.md deleted file mode 100644 index 6eee1bf..0000000 --- a/documentation/models/ApiInstallmentSplitRequestDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiInstallmentSplitRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :----- | :------- | :-------------------------------------------------------------------------------------------------------------- | -| walletId | String | ✅ | Asaas wallet identifier that will be transferred | -| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the payment is received | -| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | -| totalFixedValue | Double | ❌ | (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. | -| externalReference | String | ❌ | Split identifier in your system | -| description | String | ❌ | Split description | -| installmentNumber | Long | ❌ | Installment number to which the split will be linked. Cannot be provided along with the 'totalFixedValue' field | - - diff --git a/documentation/models/ApiInstallmentUpdateSplitRequestDto.md b/documentation/models/ApiInstallmentUpdateSplitRequestDto.md deleted file mode 100644 index b087b83..0000000 --- a/documentation/models/ApiInstallmentUpdateSplitRequestDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiInstallmentUpdateSplitRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----- | :------------------------------------ | :------- | :------------------- | -| splits | List\ | ❌ | Split data to update | - - diff --git a/documentation/models/ApiInstallmentUpdateSplitResponseDto.md b/documentation/models/ApiInstallmentUpdateSplitResponseDto.md deleted file mode 100644 index 8a6b211..0000000 --- a/documentation/models/ApiInstallmentUpdateSplitResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiInstallmentUpdateSplitResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----- | :---------------------------------------- | :------- | :---------- | -| splits | List\ | ❌ | Split array | - - diff --git a/documentation/models/ApiMobilePhoneRechargeFindProviderResponseDto.md b/documentation/models/ApiMobilePhoneRechargeFindProviderResponseDto.md deleted file mode 100644 index ebfbc87..0000000 --- a/documentation/models/ApiMobilePhoneRechargeFindProviderResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiMobilePhoneRechargeFindProviderResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----- | :---------------------------------------------------------- | :------- | :----------------------------- | -| name | String | ❌ | Name of cell phone operator | -| values | List\ | ❌ | Amounts available for recharge | - - diff --git a/documentation/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.md b/documentation/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.md deleted file mode 100644 index 66e7f42..0000000 --- a/documentation/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiMobilePhoneRechargeFindProviderResponseValuesDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :--------------------- | -| name | String | ❌ | Package name | -| description | String | ❌ | Package Description | -| bonus | String | ❌ | Package Bonuses | -| minValue | Double | ❌ | Minimum top-up amount | -| maxValue | Double | ❌ | Maximum recharge value | - - diff --git a/documentation/models/ApiMobilePhoneRechargeGetResponseDto.md b/documentation/models/ApiMobilePhoneRechargeGetResponseDto.md deleted file mode 100644 index 0c31f12..0000000 --- a/documentation/models/ApiMobilePhoneRechargeGetResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiMobilePhoneRechargeGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------- | :--------------------------------------------------------- | :------- | :--------------------------------------------------- | -| id | String | ❌ | Unique identifier for cell phone recharge on Asaas | -| value | Double | ❌ | Recharge value | -| phoneNumber | String | ❌ | Cell phone number that was requested to be recharged | -| status | ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus | ❌ | Recharge status | -| canBeCancelled | Boolean | ❌ | Whether the top-up can be canceled | -| operatorName | String | ❌ | Name of cell phone operator | - - diff --git a/documentation/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md b/documentation/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md deleted file mode 100644 index ca78f96..0000000 --- a/documentation/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus - -Recharge status - -**Properties** - -| Name | Type | Required | Description | -| :---------------------- | :----- | :------- | :------------------------ | -| PENDING | String | ✅ | "PENDING" | -| CONFIRMED | String | ✅ | "CONFIRMED" | -| CANCELLED | String | ✅ | "CANCELLED" | -| REFUNDED | String | ✅ | "REFUNDED" | -| WAITING_CRITICAL_ACTION | String | ✅ | "WAITING_CRITICAL_ACTION" | - - diff --git a/documentation/models/ApiMobilePhoneRechargeListResponseDto.md b/documentation/models/ApiMobilePhoneRechargeListResponseDto.md deleted file mode 100644 index daabc9e..0000000 --- a/documentation/models/ApiMobilePhoneRechargeListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiMobilePhoneRechargeListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :------------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiMobilePhoneRechargeSaveRequestDto.md b/documentation/models/ApiMobilePhoneRechargeSaveRequestDto.md deleted file mode 100644 index 6ddb4c3..0000000 --- a/documentation/models/ApiMobilePhoneRechargeSaveRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiMobilePhoneRechargeSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :--------------- | -| value | Double | ✅ | Recharge value | -| phoneNumber | String | ✅ | Cellphone number | - - diff --git a/documentation/models/ApiMyAccountDisableAccountResponseDto.md b/documentation/models/ApiMyAccountDisableAccountResponseDto.md deleted file mode 100644 index 8817182..0000000 --- a/documentation/models/ApiMyAccountDisableAccountResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiMyAccountDisableAccountResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------------- | -| observations | String | ❌ | Deletion information | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.md b/documentation/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.md deleted file mode 100644 index 7b95bbb..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiMyAccountGetAccountFeesAnticipationBankSlipDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :----- | :------- | :------------------------------ | -| monthlyFeePercentage | Double | ❌ | Monthly fee for invoice charges | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.md b/documentation/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.md deleted file mode 100644 index cd150ac..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiMyAccountGetAccountFeesAnticipationCreditCardDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------------- | :----- | :------- | :----------------------------------- | -| detachedMonthlyFeeValue | Double | ❌ | Monthly fee for upfront charges | -| installmentMonthlyFeeValue | Long | ❌ | Monthly fee for installment payments | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesAnticipationDto.md b/documentation/models/ApiMyAccountGetAccountFeesAnticipationDto.md deleted file mode 100644 index 7da2966..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesAnticipationDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiMyAccountGetAccountFeesAnticipationDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :-------------------------------------------------- | :------- | :---------- | -| creditCard | ApiMyAccountGetAccountFeesAnticipationCreditCardDto | ❌ | | -| bankSlip | ApiMyAccountGetAccountFeesAnticipationBankSlipDto | ❌ | | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.md b/documentation/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.md deleted file mode 100644 index 43e0588..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiMyAccountGetAccountFeesCreditBureauReportDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :----- | :------- | :--------------------------------------------- | -| naturalPersonFeeValue | Double | ❌ | Fee for Serasa consultation for natural person | -| legalPersonFeeValue | Double | ❌ | Fee for Serasa consultation for legal person | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesInvoiceDto.md b/documentation/models/ApiMyAccountGetAccountFeesInvoiceDto.md deleted file mode 100644 index 7ec3910..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesInvoiceDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiMyAccountGetAccountFeesInvoiceDto - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :-------------------------- | -| feeValue | Double | ❌ | Fee per service note issued | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesNotificationDto.md b/documentation/models/ApiMyAccountGetAccountFeesNotificationDto.md deleted file mode 100644 index a6d9f9e..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesNotificationDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiMyAccountGetAccountFeesNotificationDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :----- | :------- | :---------------------------------- | -| phoneCallFeeValue | Double | ❌ | Fees per voice robot call | -| whatsAppFeeValue | Double | ❌ | Fees for notifications via WhatsApp | -| messagingFeeValue | Double | ❌ | Fees for sending emails and SMS | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.md b/documentation/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.md deleted file mode 100644 index ca6d50d..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiMyAccountGetAccountFeesPaymentBankSlipDto - -**Properties** - -| Name | Type | Required | Description | -| :------------- | :----- | :------- | :--------------------------------------- | -| defaultValue | Double | ❌ | Fee per charge | -| discountValue | Double | ❌ | Promotional fee (If any) | -| expirationDate | String | ❌ | Promotional fee expiration date (If any) | -| daysToReceive | Long | ❌ | Days to receive billing | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.md b/documentation/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.md deleted file mode 100644 index 5c66ccc..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.md +++ /dev/null @@ -1,19 +0,0 @@ -# ApiMyAccountGetAccountFeesPaymentCreditCardDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------------------------------ | :----- | :------- | :------------------------------------------------------------- | -| operationValue | Double | ❌ | Operating fee per charge | -| oneInstallmentPercentage | Double | ❌ | Spot percentage rate | -| upToSixInstallmentsPercentage | Double | ❌ | Percentage rate for 2 to 6 installments | -| upToTwelveInstallmentsPercentage | Double | ❌ | Percentage rate for 7 to 12 installments | -| upToTwentyOneInstallmentsPercentage | Double | ❌ | Percentage rate for 13 to 21 installments | -| discountOneInstallmentPercentage | Double | ❌ | Promotional cash percentage rate (If any) | -| discountUpToSixInstallmentsPercentage | Double | ❌ | Percentage rate for 2 to 6 promotional installments (If any) | -| discountUpToTwelveInstallmentsPercentage | Double | ❌ | Percentage rate for 7 to 12 promotional installments (If any) | -| discountUpToTwentyOneInstallmentsPercentage | Double | ❌ | Percentage rate for 13 to 21 promotional installments (if any) | -| discountExpiration | String | ❌ | Promotional fee expiration date (If any) | -| daysToReceive | Long | ❌ | Days to receive billing | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.md b/documentation/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.md deleted file mode 100644 index 0264e57..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiMyAccountGetAccountFeesPaymentDebitCardDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :----- | :------- | :------------------------- | -| operationValue | Double | ❌ | Operating fee per charge | -| defaultPercentage | Double | ❌ | Percentage rate per charge | -| daysToReceive | Long | ❌ | Days to receive billing | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesPaymentDto.md b/documentation/models/ApiMyAccountGetAccountFeesPaymentDto.md deleted file mode 100644 index b190941..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesPaymentDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiMyAccountGetAccountFeesPaymentDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :--------------------------------------------- | :------- | :---------- | -| bankSlip | ApiMyAccountGetAccountFeesPaymentBankSlipDto | ❌ | | -| creditCard | ApiMyAccountGetAccountFeesPaymentCreditCardDto | ❌ | | -| debitCard | ApiMyAccountGetAccountFeesPaymentDebitCardDto | ❌ | | -| pix | ApiMyAccountGetAccountFeesPaymentPixDto | ❌ | | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesPaymentPixDto.md b/documentation/models/ApiMyAccountGetAccountFeesPaymentPixDto.md deleted file mode 100644 index a7fcebb..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesPaymentPixDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiMyAccountGetAccountFeesPaymentPixDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------------------- | :----- | :------- | :-------------------------------------------------- | -| fixedFeeValue | Double | ❌ | Fixed fee (If any) | -| fixedFeeValueWithDiscount | Double | ❌ | Promotional fixed rate (If any) | -| percentageFee | Double | ❌ | Percentage rate (If any) | -| minimumFeeValue | Double | ❌ | Minimum fixed rate in case of percentage rate | -| maximumFeeValue | Double | ❌ | Maximum fixed rate in case of percentage rate | -| discountExpiration | String | ❌ | Promotional fee expiration date (If any) | -| monthlyCreditsWithoutFee | Long | ❌ | Number of free transactions per month | -| creditsReceivedOfCurrentMonth | Long | ❌ | How many transactions have you received this month? | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesResponseDto.md b/documentation/models/ApiMyAccountGetAccountFeesResponseDto.md deleted file mode 100644 index d96037f..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiMyAccountGetAccountFeesResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------- | :---------------------------------------------- | :------- | :---------- | -| payment | ApiMyAccountGetAccountFeesPaymentDto | ❌ | | -| transfer | ApiMyAccountGetAccountFeesTransferDto | ❌ | | -| notification | ApiMyAccountGetAccountFeesNotificationDto | ❌ | | -| creditBureauReport | ApiMyAccountGetAccountFeesCreditBureauReportDto | ❌ | | -| invoice | ApiMyAccountGetAccountFeesInvoiceDto | ❌ | | -| anticipation | ApiMyAccountGetAccountFeesAnticipationDto | ❌ | | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesTransferDto.md b/documentation/models/ApiMyAccountGetAccountFeesTransferDto.md deleted file mode 100644 index cb0674f..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesTransferDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiMyAccountGetAccountFeesTransferDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------------- | :--------------------------------------- | :------- | :---------------------------------- | -| monthlyTransfersWithoutFee | Long | ❌ | Number of monthly free transactions | -| ted | ApiMyAccountGetAccountFeesTransferTedDto | ❌ | | -| pix | ApiMyAccountGetAccountFeesTransferPixDto | ❌ | | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesTransferPixDto.md b/documentation/models/ApiMyAccountGetAccountFeesTransferPixDto.md deleted file mode 100644 index 24bfa04..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesTransferPixDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiMyAccountGetAccountFeesTransferPixDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------------------------- | :------ | :------- | :---------------------------------------------------------------------- | -| feeValue | Double | ❌ | Fee for sending transfers via Pix | -| discountValue | Double | ❌ | Promotional fee (If any) | -| expirationDate | String | ❌ | Promotional fee expiration date (If any) | -| consideredInMonthlyTransfersWithoutFee | Boolean | ❌ | Indicates whether the number of free monthly transactions considers Pix | - - diff --git a/documentation/models/ApiMyAccountGetAccountFeesTransferTedDto.md b/documentation/models/ApiMyAccountGetAccountFeesTransferTedDto.md deleted file mode 100644 index bb94ad3..0000000 --- a/documentation/models/ApiMyAccountGetAccountFeesTransferTedDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiMyAccountGetAccountFeesTransferTedDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------------------------- | :------ | :------- | :---------------------------------------------------------------------- | -| feeValue | Double | ❌ | Transfer fee via TED | -| consideredInMonthlyTransfersWithoutFee | Boolean | ❌ | Indicates whether the number of monthly free transactions considers TED | - - diff --git a/documentation/models/ApiMyAccountGetAccountNumberResponseDto.md b/documentation/models/ApiMyAccountGetAccountNumberResponseDto.md deleted file mode 100644 index 4f6ad7c..0000000 --- a/documentation/models/ApiMyAccountGetAccountNumberResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiMyAccountGetAccountNumberResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| agency | String | ❌ | Account agency | -| account | String | ❌ | Account number | -| accountDigit | String | ❌ | Account digit | - - diff --git a/documentation/models/ApiMyAccountGetStatusResponseDto.md b/documentation/models/ApiMyAccountGetStatusResponseDto.md deleted file mode 100644 index 8b4f13a..0000000 --- a/documentation/models/ApiMyAccountGetStatusResponseDto.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiMyAccountGetStatusResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :---------------------------------- | :------- | :--------------------------------- | -| id | String | ❌ | Unique account identifier in Asaas | -| commercialInfo | ApiMyAccountGetStatusResponseStatus | ❌ | Status of sent business data | -| bankAccountInfo | ApiMyAccountGetStatusResponseStatus | ❌ | Status of sent business data | -| documentation | ApiMyAccountGetStatusResponseStatus | ❌ | Status of sent business data | -| general | ApiMyAccountGetStatusResponseStatus | ❌ | Status of sent business data | - - diff --git a/documentation/models/ApiMyAccountGetStatusResponseStatus.md b/documentation/models/ApiMyAccountGetStatusResponseStatus.md deleted file mode 100644 index 6cc3888..0000000 --- a/documentation/models/ApiMyAccountGetStatusResponseStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiMyAccountGetStatusResponseStatus - -Status of sent business data - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :----- | :------- | :------------------ | -| PENDING | String | ✅ | "PENDING" | -| APPROVED | String | ✅ | "APPROVED" | -| REJECTED | String | ✅ | "REJECTED" | -| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | - - diff --git a/documentation/models/ApiNotificationBatchUpdateRequestDto.md b/documentation/models/ApiNotificationBatchUpdateRequestDto.md deleted file mode 100644 index b03f108..0000000 --- a/documentation/models/ApiNotificationBatchUpdateRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiNotificationBatchUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :-------------------------------------- | :------- | :---------------------------------- | -| customer | String | ✅ | Unique customer identifier in Asaas | -| notifications | List\ | ❌ | List of notification information | - - diff --git a/documentation/models/ApiNotificationBatchUpdateResponseDto.md b/documentation/models/ApiNotificationBatchUpdateResponseDto.md deleted file mode 100644 index 8bc4d55..0000000 --- a/documentation/models/ApiNotificationBatchUpdateResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiNotificationBatchUpdateResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :------------------------------------ | :------- | :------------------------------- | -| notifications | List\ | ❌ | List of notification information | - - diff --git a/documentation/models/ApiNotificationGetResponseDto.md b/documentation/models/ApiNotificationGetResponseDto.md deleted file mode 100644 index 773853b..0000000 --- a/documentation/models/ApiNotificationGetResponseDto.md +++ /dev/null @@ -1,21 +0,0 @@ -# ApiNotificationGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------------- | :------------------------------------------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique notification identifier | -| customer | String | ❌ | Unique customer identifier | -| enabled | Boolean | ❌ | Indicates whether notification is enabled | -| emailEnabledForProvider | Boolean | ❌ | Indicates whether the email sent to you is enabled or disabled | -| smsEnabledForProvider | Boolean | ❌ | Indicates whether the SMS sent to you is enabled or disabled | -| emailEnabledForCustomer | Boolean | ❌ | Indicates whether the email sent to the customer is enabled or disabled | -| smsEnabledForCustomer | Boolean | ❌ | Indicates whether the SMS sent to the customer is enabled or disabled | -| phoneCallEnabledForCustomer | Boolean | ❌ | Indicates whether voice notification to the customer is enabled or disabled | -| whatsappEnabledForCustomer | Boolean | ❌ | Indicates whether the WhatsApp notification sent to the customer is enabled or disabled | -| event | ApiNotificationGetResponseNotificationEvent | ❌ | Kind of event | -| scheduleOffset | ApiNotificationGetResponseDtoScheduleOffset | ❌ | Specifies how many days before the due date the notification must be sent. Valid only for the `PAYMENT_DUEDATE_WARNING` and `PAYMENT_OVERDUE` events | -| deleted | Boolean | ❌ | Indicates whether the notification was deleted | - - diff --git a/documentation/models/ApiNotificationGetResponseDtoScheduleOffset.md b/documentation/models/ApiNotificationGetResponseDtoScheduleOffset.md deleted file mode 100644 index eaa3ce8..0000000 --- a/documentation/models/ApiNotificationGetResponseDtoScheduleOffset.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiNotificationGetResponseDtoScheduleOffset - -Specifies how many days before the due date the notification must be sent. Valid only for the `PAYMENT_DUEDATE_WARNING` and `PAYMENT_OVERDUE` events - -**Properties** - -| Name | Type | Required | Description | -| :--- | :--- | :------- | :---------- | -| \_0 | long | ✅ | 0 | -| \_1 | long | ✅ | 1 | -| \_5 | long | ✅ | 5 | -| \_7 | long | ✅ | 7 | -| \_10 | long | ✅ | 10 | -| \_15 | long | ✅ | 15 | -| \_30 | long | ✅ | 30 | - - diff --git a/documentation/models/ApiNotificationGetResponseNotificationEvent.md b/documentation/models/ApiNotificationGetResponseNotificationEvent.md deleted file mode 100644 index 075910f..0000000 --- a/documentation/models/ApiNotificationGetResponseNotificationEvent.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiNotificationGetResponseNotificationEvent - -Kind of event - -**Properties** - -| Name | Type | Required | Description | -| :---------------------- | :----- | :------- | :------------------------ | -| PAYMENT_CREATED | String | ✅ | "PAYMENT_CREATED" | -| PAYMENT_UPDATED | String | ✅ | "PAYMENT_UPDATED" | -| PAYMENT_RECEIVED | String | ✅ | "PAYMENT_RECEIVED" | -| PAYMENT_OVERDUE | String | ✅ | "PAYMENT_OVERDUE" | -| PAYMENT_DUEDATE_WARNING | String | ✅ | "PAYMENT_DUEDATE_WARNING" | -| SEND_LINHA_DIGITAVEL | String | ✅ | "SEND_LINHA_DIGITAVEL" | - - diff --git a/documentation/models/ApiNotificationListResponseDto.md b/documentation/models/ApiNotificationListResponseDto.md deleted file mode 100644 index c6f24a4..0000000 --- a/documentation/models/ApiNotificationListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiNotificationListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :------------------------------------ | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiNotificationUpdateRequestDto.md b/documentation/models/ApiNotificationUpdateRequestDto.md deleted file mode 100644 index d3dd85b..0000000 --- a/documentation/models/ApiNotificationUpdateRequestDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiNotificationUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------------- | :-------------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| enabled | Boolean | ❌ | Enable/disable notification | -| emailEnabledForProvider | Boolean | ❌ | enable/disable the email sent to you | -| smsEnabledForProvider | Boolean | ❌ | enable/disable the SMS sent to you | -| emailEnabledForCustomer | Boolean | ❌ | enable/disable the email sent to your customer | -| smsEnabledForCustomer | Boolean | ❌ | enable/disable the SMS sent to your customer | -| phoneCallEnabledForCustomer | Boolean | ❌ | enable/disable voice notification sent to your customer | -| whatsappEnabledForCustomer | Boolean | ❌ | enable/disable WhatsApp messages for your customer | -| scheduleOffset | ApiNotificationUpdateRequestDtoScheduleOffset | ❌ | Specifies how many days before the due date the notification must be sent. For the `PAYMENT_DUEDATE_WARNING` event, the accepted values are: `0`, `5`, `10`, `15` and `30` For the `PAYMENT_OVERDUE` event, the accepted values are: `1`, `7`, `15` and `30` | - - diff --git a/documentation/models/ApiNotificationUpdateRequestDtoScheduleOffset.md b/documentation/models/ApiNotificationUpdateRequestDtoScheduleOffset.md deleted file mode 100644 index 75c3062..0000000 --- a/documentation/models/ApiNotificationUpdateRequestDtoScheduleOffset.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiNotificationUpdateRequestDtoScheduleOffset - -Specifies how many days before the due date the notification must be sent. For the `PAYMENT_DUEDATE_WARNING` event, the accepted values are: `0`, `5`, `10`, `15` and `30` For the `PAYMENT_OVERDUE` event, the accepted values are: `1`, `7`, `15` and `30` - -**Properties** - -| Name | Type | Required | Description | -| :--- | :--- | :------- | :---------- | -| \_0 | long | ✅ | 0 | -| \_1 | long | ✅ | 1 | -| \_5 | long | ✅ | 5 | -| \_7 | long | ✅ | 7 | -| \_10 | long | ✅ | 10 | -| \_15 | long | ✅ | 15 | -| \_30 | long | ✅ | 30 | - - diff --git a/documentation/models/ApiPaymentBankSlipRefundResponseDto.md b/documentation/models/ApiPaymentBankSlipRefundResponseDto.md deleted file mode 100644 index 550c67f..0000000 --- a/documentation/models/ApiPaymentBankSlipRefundResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiPaymentBankSlipRefundResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----- | :------- | :---------------------------- | -| requestUrl | String | ❌ | Link to report refund details | - - diff --git a/documentation/models/ApiPaymentBillingInfoResponseDto.md b/documentation/models/ApiPaymentBillingInfoResponseDto.md deleted file mode 100644 index a796aa4..0000000 --- a/documentation/models/ApiPaymentBillingInfoResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentBillingInfoResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :-------------------------------- | :------- | :---------- | -| pix | ApiPaymentPixQrCodeResponseDto | ❌ | | -| creditCard | ApiCreditCardTokenizeResponseDto | ❌ | | -| bankSlip | ApiBankSlipBillingInfoResponseDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentCallbackRequestDto.md b/documentation/models/ApiPaymentCallbackRequestDto.md deleted file mode 100644 index 47daa2d..0000000 --- a/documentation/models/ApiPaymentCallbackRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPaymentCallbackRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :------ | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| successUrl | String | ✅ | URL that the customer will be redirected to after successful payment of the invoice or payment link | -| autoRedirect | Boolean | ❌ | Define whether the customer will be automatically redirected or will just be informed with a button to return to the website. The default is true, if you want to disable it, enter false | - - diff --git a/documentation/models/ApiPaymentCampaignDeleteResponseDto.md b/documentation/models/ApiPaymentCampaignDeleteResponseDto.md deleted file mode 100644 index e941c02..0000000 --- a/documentation/models/ApiPaymentCampaignDeleteResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPaymentCampaignDeleteResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :-------------------------------------------------- | -| deleted | Boolean | ❌ | Indicates whether the payment link has been removed | -| id | String | ❌ | Unique identifier for your payments link in Asaas | - - diff --git a/documentation/models/ApiPaymentCampaignFileDeleteResponseDto.md b/documentation/models/ApiPaymentCampaignFileDeleteResponseDto.md deleted file mode 100644 index 61a3385..0000000 --- a/documentation/models/ApiPaymentCampaignFileDeleteResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPaymentCampaignFileDeleteResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :-------------------------------------------- | -| deleted | Boolean | ❌ | Indicates whether the image was removed | -| id | String | ❌ | Unique payment link image identifier in Asaas | - - diff --git a/documentation/models/ApiPaymentCampaignFileGetResponseDto.md b/documentation/models/ApiPaymentCampaignFileGetResponseDto.md deleted file mode 100644 index f5dc545..0000000 --- a/documentation/models/ApiPaymentCampaignFileGetResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentCampaignFileGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---- | :------------------------------------- | :------- | :-------------------------------------------- | -| id | String | ❌ | Unique payment link image identifier in Asaas | -| main | Boolean | ❌ | Determines if this is the main image | -| image | ApiPaymentCampaignFileImageResponseDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentCampaignFileImageResponseDto.md b/documentation/models/ApiPaymentCampaignFileImageResponseDto.md deleted file mode 100644 index d7aff6a..0000000 --- a/documentation/models/ApiPaymentCampaignFileImageResponseDto.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiPaymentCampaignFileImageResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :--------------------------------- | -| originalName | String | ❌ | Original image name | -| size | Long | ❌ | Image size | -| extension | String | ❌ | Image extension | -| previewUrl | String | ❌ | Link to download the image preview | -| downloadUrl | String | ❌ | Link to download the image | - - diff --git a/documentation/models/ApiPaymentCampaignFileListResponseDto.md b/documentation/models/ApiPaymentCampaignFileListResponseDto.md deleted file mode 100644 index a3413b7..0000000 --- a/documentation/models/ApiPaymentCampaignFileListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentCampaignFileListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :------------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPaymentCampaignFileSaveRequestDto.md b/documentation/models/ApiPaymentCampaignFileSaveRequestDto.md deleted file mode 100644 index 8fd9904..0000000 --- a/documentation/models/ApiPaymentCampaignFileSaveRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPaymentCampaignFileSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---- | :------ | :------- | :---------------------------- | -| main | Boolean | ❌ | true to set as the main image | -| image | byte[] | ❌ | File | - - diff --git a/documentation/models/ApiPaymentCampaignGetResponseBillingType.md b/documentation/models/ApiPaymentCampaignGetResponseBillingType.md deleted file mode 100644 index e4abf26..0000000 --- a/documentation/models/ApiPaymentCampaignGetResponseBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentCampaignGetResponseBillingType - -Allowed payment method - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPaymentCampaignGetResponseChargeType.md b/documentation/models/ApiPaymentCampaignGetResponseChargeType.md deleted file mode 100644 index 85b6e64..0000000 --- a/documentation/models/ApiPaymentCampaignGetResponseChargeType.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiPaymentCampaignGetResponseChargeType - -Charge type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| DETACHED | String | ✅ | "DETACHED" | -| RECURRENT | String | ✅ | "RECURRENT" | -| INSTALLMENT | String | ✅ | "INSTALLMENT" | - - diff --git a/documentation/models/ApiPaymentCampaignGetResponseCycle.md b/documentation/models/ApiPaymentCampaignGetResponseCycle.md deleted file mode 100644 index c14b58e..0000000 --- a/documentation/models/ApiPaymentCampaignGetResponseCycle.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPaymentCampaignGetResponseCycle - -Billing frequency, if the chargeType is RECURRENT - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| WEEKLY | String | ✅ | "WEEKLY" | -| BIWEEKLY | String | ✅ | "BIWEEKLY" | -| MONTHLY | String | ✅ | "MONTHLY" | -| BIMONTHLY | String | ✅ | "BIMONTHLY" | -| QUARTERLY | String | ✅ | "QUARTERLY" | -| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | -| YEARLY | String | ✅ | "YEARLY" | - - diff --git a/documentation/models/ApiPaymentCampaignGetResponseDto.md b/documentation/models/ApiPaymentCampaignGetResponseDto.md deleted file mode 100644 index e3b1156..0000000 --- a/documentation/models/ApiPaymentCampaignGetResponseDto.md +++ /dev/null @@ -1,25 +0,0 @@ -# ApiPaymentCampaignGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :--------------------------------------- | :------- | :-------------------------------------------------------------------------------------------------------------------- | -| id | String | ❌ | Unique identifier for your payments link in Asaas | -| name | String | ❌ | Payment link name | -| value | Double | ❌ | Value of the payment link, if not informed, the payer can inform how much they want to pay | -| active | Boolean | ❌ | If the payments link is active | -| chargeType | ApiPaymentCampaignGetResponseChargeType | ❌ | Charge type | -| url | String | ❌ | Payments link access link | -| billingType | ApiPaymentCampaignGetResponseBillingType | ❌ | Allowed payment method | -| subscriptionCycle | ApiPaymentCampaignGetResponseCycle | ❌ | Billing frequency, if the chargeType is RECURRENT | -| description | String | ❌ | Payments link description | -| endDate | String | ❌ | End date | -| deleted | Boolean | ❌ | Indicates whether the payment link has been removed | -| viewCount | Long | ❌ | The number of views of your payments link | -| maxInstallmentCount | Long | ❌ | Maximum number of installments that your customer can pay in installments for the payment link, if it is Installment. | -| dueDateLimitDays | Long | ❌ | Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) | -| notificationEnabled | Boolean | ❌ | Defines whether customers registered via the payments link will have notifications enabled | -| isAddressRequired | Boolean | ❌ | Defines whether filling in the address will be obligatory in the charges. | -| externalReference | String | ❌ | Free search field. | - - diff --git a/documentation/models/ApiPaymentCampaignListResponseDto.md b/documentation/models/ApiPaymentCampaignListResponseDto.md deleted file mode 100644 index d03c76a..0000000 --- a/documentation/models/ApiPaymentCampaignListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentCampaignListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :--------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPaymentCampaignSaveRequestBillingType.md b/documentation/models/ApiPaymentCampaignSaveRequestBillingType.md deleted file mode 100644 index d34e6dc..0000000 --- a/documentation/models/ApiPaymentCampaignSaveRequestBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentCampaignSaveRequestBillingType - -Allowed payment method - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPaymentCampaignSaveRequestChargeType.md b/documentation/models/ApiPaymentCampaignSaveRequestChargeType.md deleted file mode 100644 index 8b7fccb..0000000 --- a/documentation/models/ApiPaymentCampaignSaveRequestChargeType.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiPaymentCampaignSaveRequestChargeType - -Charge type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| DETACHED | String | ✅ | "DETACHED" | -| RECURRENT | String | ✅ | "RECURRENT" | -| INSTALLMENT | String | ✅ | "INSTALLMENT" | - - diff --git a/documentation/models/ApiPaymentCampaignSaveRequestCycle.md b/documentation/models/ApiPaymentCampaignSaveRequestCycle.md deleted file mode 100644 index 6576d81..0000000 --- a/documentation/models/ApiPaymentCampaignSaveRequestCycle.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPaymentCampaignSaveRequestCycle - -Billing frequency, if the chargeType is RECURRENT - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| WEEKLY | String | ✅ | "WEEKLY" | -| BIWEEKLY | String | ✅ | "BIWEEKLY" | -| MONTHLY | String | ✅ | "MONTHLY" | -| BIMONTHLY | String | ✅ | "BIMONTHLY" | -| QUARTERLY | String | ✅ | "QUARTERLY" | -| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | -| YEARLY | String | ✅ | "YEARLY" | - - diff --git a/documentation/models/ApiPaymentCampaignSaveRequestDto.md b/documentation/models/ApiPaymentCampaignSaveRequestDto.md deleted file mode 100644 index 9458646..0000000 --- a/documentation/models/ApiPaymentCampaignSaveRequestDto.md +++ /dev/null @@ -1,21 +0,0 @@ -# ApiPaymentCampaignSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :--------------------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| name | String | ✅ | Payment link name | -| billingType | ApiPaymentCampaignSaveRequestBillingType | ✅ | Allowed payment method | -| chargeType | ApiPaymentCampaignSaveRequestChargeType | ✅ | Charge type | -| description | String | ❌ | Payments link description | -| endDate | String | ❌ | End date | -| value | Double | ❌ | Value of the payment link, if not informed, the payer can inform how much they want to pay | -| dueDateLimitDays | Long | ❌ | Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) | -| subscriptionCycle | ApiPaymentCampaignSaveRequestCycle | ❌ | Billing frequency, if the chargeType is RECURRENT | -| maxInstallmentCount | Long | ❌ | Maximum number of installments that your customer can pay in installments for the payment link if the billing method selected is Installments. If not informed, the default value will be 1 installment | -| externalReference | String | ❌ | Free search field. | -| notificationEnabled | Boolean | ❌ | Defines whether customers registered via the payments link will have notifications enabled. If not informed, the default value will be true | -| callback | ApiPaymentCallbackRequestDto | ❌ | | -| isAddressRequired | Boolean | ❌ | True to make it mandatory to fill in address data at checkout. | - - diff --git a/documentation/models/ApiPaymentCampaignUpdateRequestBillingType.md b/documentation/models/ApiPaymentCampaignUpdateRequestBillingType.md deleted file mode 100644 index cc8ba72..0000000 --- a/documentation/models/ApiPaymentCampaignUpdateRequestBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentCampaignUpdateRequestBillingType - -Allowed payment method - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPaymentCampaignUpdateRequestChargeType.md b/documentation/models/ApiPaymentCampaignUpdateRequestChargeType.md deleted file mode 100644 index 7cf457e..0000000 --- a/documentation/models/ApiPaymentCampaignUpdateRequestChargeType.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiPaymentCampaignUpdateRequestChargeType - -Charge type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| DETACHED | String | ✅ | "DETACHED" | -| RECURRENT | String | ✅ | "RECURRENT" | -| INSTALLMENT | String | ✅ | "INSTALLMENT" | - - diff --git a/documentation/models/ApiPaymentCampaignUpdateRequestCycle.md b/documentation/models/ApiPaymentCampaignUpdateRequestCycle.md deleted file mode 100644 index f989694..0000000 --- a/documentation/models/ApiPaymentCampaignUpdateRequestCycle.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPaymentCampaignUpdateRequestCycle - -Billing frequency, if the chargeType is RECURRENT - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| WEEKLY | String | ✅ | "WEEKLY" | -| BIWEEKLY | String | ✅ | "BIWEEKLY" | -| MONTHLY | String | ✅ | "MONTHLY" | -| BIMONTHLY | String | ✅ | "BIMONTHLY" | -| QUARTERLY | String | ✅ | "QUARTERLY" | -| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | -| YEARLY | String | ✅ | "YEARLY" | - - diff --git a/documentation/models/ApiPaymentCampaignUpdateRequestDto.md b/documentation/models/ApiPaymentCampaignUpdateRequestDto.md deleted file mode 100644 index f370e56..0000000 --- a/documentation/models/ApiPaymentCampaignUpdateRequestDto.md +++ /dev/null @@ -1,21 +0,0 @@ -# ApiPaymentCampaignUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :----------------------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| name | String | ❌ | Payment link name | -| description | String | ❌ | Payments link description | -| endDate | String | ❌ | End date | -| value | Double | ❌ | Value of the payment link, if not informed, the payer can inform how much they want to pay | -| active | Boolean | ❌ | Determines whether the payments link is active | -| billingType | ApiPaymentCampaignUpdateRequestBillingType | ❌ | Allowed payment method | -| chargeType | ApiPaymentCampaignUpdateRequestChargeType | ❌ | Charge type | -| dueDateLimitDays | Long | ❌ | Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) | -| subscriptionCycle | ApiPaymentCampaignUpdateRequestCycle | ❌ | Billing frequency, if the chargeType is RECURRENT | -| maxInstallmentCount | Long | ❌ | Maximum number of installments that your customer can pay in installments for the payment link if the billing method selected is Installments. If not informed, the default value will be 1 installment | -| externalReference | String | ❌ | Free search field. | -| notificationEnabled | Boolean | ❌ | Defines whether customers registered via the payments link will have notifications enabled. If not informed, the default value will be true | -| callback | ApiPaymentCallbackRequestDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentChargebackResponseChargebackDisputeStatus.md b/documentation/models/ApiPaymentChargebackResponseChargebackDisputeStatus.md deleted file mode 100644 index f60067c..0000000 --- a/documentation/models/ApiPaymentChargebackResponseChargebackDisputeStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiPaymentChargebackResponseChargebackDisputeStatus - -Chargeback dispute status. - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :----- | :------- | :---------- | -| REQUESTED | String | ✅ | "REQUESTED" | -| ACCEPTED | String | ✅ | "ACCEPTED" | -| REJECTED | String | ✅ | "REJECTED" | - - diff --git a/documentation/models/ApiPaymentChargebackResponseChargebackReason.md b/documentation/models/ApiPaymentChargebackResponseChargebackReason.md deleted file mode 100644 index f6b5d77..0000000 --- a/documentation/models/ApiPaymentChargebackResponseChargebackReason.md +++ /dev/null @@ -1,42 +0,0 @@ -# ApiPaymentChargebackResponseChargebackReason - -Chargeback reason - -**Properties** - -| Name | Type | Required | Description | -| :---------------------------------------- | :----- | :------- | :------------------------------------------ | -| ABSENCE_OF_PRINT | String | ✅ | "ABSENCE_OF_PRINT" | -| ABSENT_CARD_FRAUD | String | ✅ | "ABSENT_CARD_FRAUD" | -| CARD_ACTIVATED_PHONE_TRANSACTION | String | ✅ | "CARD_ACTIVATED_PHONE_TRANSACTION" | -| CARD_FRAUD | String | ✅ | "CARD_FRAUD" | -| CARD_RECOVERY_BULLETIN | String | ✅ | "CARD_RECOVERY_BULLETIN" | -| COMMERCIAL_DISAGREEMENT | String | ✅ | "COMMERCIAL_DISAGREEMENT" | -| COPY_NOT_RECEIVED | String | ✅ | "COPY_NOT_RECEIVED" | -| CREDIT_OR_DEBIT_PRESENTATION_ERROR | String | ✅ | "CREDIT_OR_DEBIT_PRESENTATION_ERROR" | -| DIFFERENT_PAY_METHOD | String | ✅ | "DIFFERENT_PAY_METHOD" | -| FRAUD | String | ✅ | "FRAUD" | -| INCORRECT_TRANSACTION_VALUE | String | ✅ | "INCORRECT_TRANSACTION_VALUE" | -| INVALID_CURRENCY | String | ✅ | "INVALID_CURRENCY" | -| INVALID_DATA | String | ✅ | "INVALID_DATA" | -| LATE_PRESENTATION | String | ✅ | "LATE_PRESENTATION" | -| LOCAL_REGULATORY_OR_LEGAL_DISPUTE | String | ✅ | "LOCAL_REGULATORY_OR_LEGAL_DISPUTE" | -| MULTIPLE_ROCS | String | ✅ | "MULTIPLE_ROCS" | -| ORIGINAL_CREDIT_TRANSACTION_NOT_ACCEPTED | String | ✅ | "ORIGINAL_CREDIT_TRANSACTION_NOT_ACCEPTED" | -| OTHER_ABSENT_CARD_FRAUD | String | ✅ | "OTHER_ABSENT_CARD_FRAUD" | -| PROCESS_ERROR | String | ✅ | "PROCESS_ERROR" | -| RECEIVED_COPY_ILLEGIBLE_OR_INCOMPLETE | String | ✅ | "RECEIVED_COPY_ILLEGIBLE_OR_INCOMPLETE" | -| RECURRENCE_CANCELED | String | ✅ | "RECURRENCE_CANCELED" | -| REQUIRED_AUTHORIZATION_NOT_GRANTED | String | ✅ | "REQUIRED_AUTHORIZATION_NOT_GRANTED" | -| RIGHT_OF_FULL_RECOURSE_FOR_FRAUD | String | ✅ | "RIGHT_OF_FULL_RECOURSE_FOR_FRAUD" | -| SALE_CANCELED | String | ✅ | "SALE_CANCELED" | -| SERVICE_DISAGREEMENT_OR_DEFECTIVE_PRODUCT | String | ✅ | "SERVICE_DISAGREEMENT_OR_DEFECTIVE_PRODUCT" | -| SERVICE_NOT_RECEIVED | String | ✅ | "SERVICE_NOT_RECEIVED" | -| SPLIT_SALE | String | ✅ | "SPLIT_SALE" | -| TRANSFERS_OF_DIVERSE_RESPONSIBILITIES | String | ✅ | "TRANSFERS_OF_DIVERSE_RESPONSIBILITIES" | -| UNQUALIFIED_CAR_RENTAL_DEBIT | String | ✅ | "UNQUALIFIED_CAR_RENTAL_DEBIT" | -| USA_CARDHOLDER_DISPUTE | String | ✅ | "USA_CARDHOLDER_DISPUTE" | -| VISA_FRAUD_MONITORING_PROGRAM | String | ✅ | "VISA_FRAUD_MONITORING_PROGRAM" | -| WARNING_BULLETIN_FILE | String | ✅ | "WARNING_BULLETIN_FILE" | - - diff --git a/documentation/models/ApiPaymentChargebackResponseChargebackStatus.md b/documentation/models/ApiPaymentChargebackResponseChargebackStatus.md deleted file mode 100644 index 710f78b..0000000 --- a/documentation/models/ApiPaymentChargebackResponseChargebackStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPaymentChargebackResponseChargebackStatus - -Chargeback status - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| REQUESTED | String | ✅ | "REQUESTED" | -| IN_DISPUTE | String | ✅ | "IN_DISPUTE" | -| DISPUTE_LOST | String | ✅ | "DISPUTE_LOST" | -| REVERSED | String | ✅ | "REVERSED" | -| DONE | String | ✅ | "DONE" | - - diff --git a/documentation/models/ApiPaymentChargebackResponseDto.md b/documentation/models/ApiPaymentChargebackResponseDto.md deleted file mode 100644 index d2c872c..0000000 --- a/documentation/models/ApiPaymentChargebackResponseDto.md +++ /dev/null @@ -1,20 +0,0 @@ -# ApiPaymentChargebackResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------- | :-------------------------------------------------- | :------- | :--------------------------------------------------------------- | -| id | String | ❌ | Unique chargeback identifier. | -| payment | String | ❌ | Unique payment identifier in Asaas | -| installment | String | ❌ | Unique installment identifier in Asaas | -| customerAccount | String | ❌ | Unique identifier of customer to which the chargeback is linked. | -| status | ApiPaymentChargebackResponseChargebackStatus | ❌ | Chargeback status | -| reason | ApiPaymentChargebackResponseChargebackReason | ❌ | Chargeback reason | -| disputeStartDate | String | ❌ | Chargeback opening date. | -| value | Double | ❌ | Chargeback value. | -| paymentDate | String | ❌ | Payment date on Asaas | -| creditCard | ApiChargebackCreditCardResponseDto | ❌ | | -| disputeStatus | ApiPaymentChargebackResponseChargebackDisputeStatus | ❌ | Chargeback dispute status. | -| deadlineToSendDisputeDocuments | String | ❌ | Deadline to send dispute documents. | - - diff --git a/documentation/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.md b/documentation/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.md deleted file mode 100644 index 8d35741..0000000 --- a/documentation/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus - -Invoice personalization status - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :----- | :------- | :------------------ | -| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | -| APPROVED | String | ✅ | "APPROVED" | -| REJECTED | String | ✅ | "REJECTED" | - - diff --git a/documentation/models/ApiPaymentCheckoutConfigGetResponseDto.md b/documentation/models/ApiPaymentCheckoutConfigGetResponseDto.md deleted file mode 100644 index 3887e24..0000000 --- a/documentation/models/ApiPaymentCheckoutConfigGetResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPaymentCheckoutConfigGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :------------------------------------------------------------- | :------- | :------------------------------------------- | -| object | String | ❌ | Object type | -| logoBackgroundColor | String | ❌ | Logo background color | -| infoBackgroundColor | String | ❌ | Background color of your information | -| fontColor | String | ❌ | Font color of your information | -| enabled | Boolean | ❌ | Indicates whether personalization is enabled | -| logoUrl | String | ❌ | Logo download link | -| observations | String | ❌ | Invoice personalization analysis notes | -| status | ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus | ❌ | Invoice personalization status | - - diff --git a/documentation/models/ApiPaymentCheckoutConfigSaveRequestDto.md b/documentation/models/ApiPaymentCheckoutConfigSaveRequestDto.md deleted file mode 100644 index 91d691e..0000000 --- a/documentation/models/ApiPaymentCheckoutConfigSaveRequestDto.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiPaymentCheckoutConfigSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :------ | :------- | :------------------------------------------- | -| logoBackgroundColor | String | ✅ | Logo background color | -| infoBackgroundColor | String | ✅ | Background color of your information | -| fontColor | String | ✅ | Font color of your information | -| enabled | Boolean | ❌ | Indicates whether personalization is enabled | -| logoFile | byte[] | ❌ | File | - - diff --git a/documentation/models/ApiPaymentCustodyGetResponseDto.md b/documentation/models/ApiPaymentCustodyGetResponseDto.md deleted file mode 100644 index d80d3d8..0000000 --- a/documentation/models/ApiPaymentCustodyGetResponseDto.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiPaymentCustodyGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------- | :----------------------------------------------------- | :------- | :---------------------------------------- | -| id | String | ❌ | Unique payment escrow identifier in Asaas | -| status | ApiPaymentCustodyGetResponsePaymentCustodyStatus | ❌ | Payment escrow status | -| expirationDate | String | ❌ | Payment escrow expiration date | -| finishDate | String | ❌ | Payment escrow finish date | -| finishReason | ApiPaymentCustodyGetResponsePaymentCustodyFinishReason | ❌ | Payment escrow finish reason | - - diff --git a/documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.md b/documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.md deleted file mode 100644 index c8da12f..0000000 --- a/documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPaymentCustodyGetResponsePaymentCustodyFinishReason - -Payment escrow finish reason - -**Properties** - -| Name | Type | Required | Description | -| :----------------------- | :----- | :------- | :------------------------- | -| CHARGEBACK | String | ✅ | "CHARGEBACK" | -| EXPIRED | String | ✅ | "EXPIRED" | -| INSUFFICIENT_BALANCE | String | ✅ | "INSUFFICIENT_BALANCE" | -| PAYMENT_REFUNDED | String | ✅ | "PAYMENT_REFUNDED" | -| REQUESTED_BY_CUSTOMER | String | ✅ | "REQUESTED_BY_CUSTOMER" | -| CUSTOMER_CONFIG_DISABLED | String | ✅ | "CUSTOMER_CONFIG_DISABLED" | - - diff --git a/documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.md b/documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.md deleted file mode 100644 index 069d619..0000000 --- a/documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPaymentCustodyGetResponsePaymentCustodyStatus - -Payment escrow status - -**Properties** - -| Name | Type | Required | Description | -| :----- | :----- | :------- | :---------- | -| ACTIVE | String | ✅ | "ACTIVE" | -| DONE | String | ✅ | "DONE" | - - diff --git a/documentation/models/ApiPaymentDeleteResponseDto.md b/documentation/models/ApiPaymentDeleteResponseDto.md deleted file mode 100644 index 099a2cc..0000000 --- a/documentation/models/ApiPaymentDeleteResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPaymentDeleteResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :-------------------------------------------- | -| deleted | Boolean | ❌ | Indicates whether the charge has been removed | -| id | String | ❌ | Unique payment identifier in Asaas | - - diff --git a/documentation/models/ApiPaymentDiscountDiscountType.md b/documentation/models/ApiPaymentDiscountDiscountType.md deleted file mode 100644 index 64c4fb2..0000000 --- a/documentation/models/ApiPaymentDiscountDiscountType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPaymentDiscountDiscountType - -Discount type - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----- | :------- | :----------- | -| FIXED | String | ✅ | "FIXED" | -| PERCENTAGE | String | ✅ | "PERCENTAGE" | - - diff --git a/documentation/models/ApiPaymentDiscountDto.md b/documentation/models/ApiPaymentDiscountDto.md deleted file mode 100644 index d688744..0000000 --- a/documentation/models/ApiPaymentDiscountDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentDiscountDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------- | :----------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------- | -| value | Double | ❌ | Percentage or fixed amount of discount to be applied to the Payment amount | -| dueDateLimitDays | Long | ❌ | Days before expiration to apply discount. Ex: 0 = until expiration, 1 = up to one day before, 2 = up to 2 days before, and so on | -| type | ApiPaymentDiscountDiscountType | ❌ | Discount type | - - diff --git a/documentation/models/ApiPaymentDocumentDeleteResponseDto.md b/documentation/models/ApiPaymentDocumentDeleteResponseDto.md deleted file mode 100644 index 62cc3c2..0000000 --- a/documentation/models/ApiPaymentDocumentDeleteResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPaymentDocumentDeleteResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :------------------------------------- | -| deleted | Boolean | ❌ | Indicates whether the file was removed | -| id | String | ❌ | Unique document identifier | - - diff --git a/documentation/models/ApiPaymentDocumentFileResponseDto.md b/documentation/models/ApiPaymentDocumentFileResponseDto.md deleted file mode 100644 index 99eea75..0000000 --- a/documentation/models/ApiPaymentDocumentFileResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentDocumentFileResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :-------------------------------- | -| publicId | String | ❌ | Unique document identifier | -| originalName | String | ❌ | Original document name | -| size | Long | ❌ | File size | -| extension | String | ❌ | File extension | -| previewUrl | String | ❌ | Link to download the file preview | -| downloadUrl | String | ❌ | Link to download the file | - - diff --git a/documentation/models/ApiPaymentDocumentGetResponseDto.md b/documentation/models/ApiPaymentDocumentGetResponseDto.md deleted file mode 100644 index 71d10a8..0000000 --- a/documentation/models/ApiPaymentDocumentGetResponseDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPaymentDocumentGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :----------------------------------------------- | :------- | :------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique document identifier | -| name | String | ❌ | Document name | -| type | ApiPaymentDocumentGetResponsePaymentDocumentType | ❌ | Document type | -| availableAfterPayment | Boolean | ❌ | Available only after payment | -| file | ApiPaymentDocumentFileResponseDto | ❌ | | -| deleted | Boolean | ❌ | Indicates whether the file was removed | - - diff --git a/documentation/models/ApiPaymentDocumentGetResponsePaymentDocumentType.md b/documentation/models/ApiPaymentDocumentGetResponsePaymentDocumentType.md deleted file mode 100644 index 50866ca..0000000 --- a/documentation/models/ApiPaymentDocumentGetResponsePaymentDocumentType.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPaymentDocumentGetResponsePaymentDocumentType - -Document type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| INVOICE | String | ✅ | "INVOICE" | -| CONTRACT | String | ✅ | "CONTRACT" | -| MEDIA | String | ✅ | "MEDIA" | -| DOCUMENT | String | ✅ | "DOCUMENT" | -| SPREADSHEET | String | ✅ | "SPREADSHEET" | -| PROGRAM | String | ✅ | "PROGRAM" | -| OTHER | String | ✅ | "OTHER" | - - diff --git a/documentation/models/ApiPaymentDocumentListResponseDto.md b/documentation/models/ApiPaymentDocumentListResponseDto.md deleted file mode 100644 index 8be5dc1..0000000 --- a/documentation/models/ApiPaymentDocumentListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentDocumentListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :--------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPaymentDocumentSaveRequestDto.md b/documentation/models/ApiPaymentDocumentSaveRequestDto.md deleted file mode 100644 index 974c7e8..0000000 --- a/documentation/models/ApiPaymentDocumentSaveRequestDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentDocumentSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :----------------------------------------------- | :------- | :---------------------------------------------------------------- | -| availableAfterPayment | Boolean | ✅ | true to make the file available only after receipt of the payment | -| type | ApiPaymentDocumentSaveRequestPaymentDocumentType | ✅ | Document type | -| file | byte[] | ✅ | File | - - diff --git a/documentation/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.md b/documentation/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.md deleted file mode 100644 index 797e9bc..0000000 --- a/documentation/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPaymentDocumentSaveRequestPaymentDocumentType - -Document type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| INVOICE | String | ✅ | "INVOICE" | -| CONTRACT | String | ✅ | "CONTRACT" | -| MEDIA | String | ✅ | "MEDIA" | -| DOCUMENT | String | ✅ | "DOCUMENT" | -| SPREADSHEET | String | ✅ | "SPREADSHEET" | -| PROGRAM | String | ✅ | "PROGRAM" | -| OTHER | String | ✅ | "OTHER" | - - diff --git a/documentation/models/ApiPaymentDocumentUpdateRequestDto.md b/documentation/models/ApiPaymentDocumentUpdateRequestDto.md deleted file mode 100644 index 4703fd0..0000000 --- a/documentation/models/ApiPaymentDocumentUpdateRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPaymentDocumentUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :------------------------------------------------- | :------- | :---------------------------------------------------------------- | -| availableAfterPayment | Boolean | ✅ | true to make the file available only after receipt of the payment | -| type | ApiPaymentDocumentUpdateRequestPaymentDocumentType | ✅ | Document type | - - diff --git a/documentation/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.md b/documentation/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.md deleted file mode 100644 index 0e08c85..0000000 --- a/documentation/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPaymentDocumentUpdateRequestPaymentDocumentType - -Document type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| INVOICE | String | ✅ | "INVOICE" | -| CONTRACT | String | ✅ | "CONTRACT" | -| MEDIA | String | ✅ | "MEDIA" | -| DOCUMENT | String | ✅ | "DOCUMENT" | -| SPREADSHEET | String | ✅ | "SPREADSHEET" | -| PROGRAM | String | ✅ | "PROGRAM" | -| OTHER | String | ✅ | "OTHER" | - - diff --git a/documentation/models/ApiPaymentDunningCancelResponseDto.md b/documentation/models/ApiPaymentDunningCancelResponseDto.md deleted file mode 100644 index bc706f0..0000000 --- a/documentation/models/ApiPaymentDunningCancelResponseDto.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiPaymentDunningCancelResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------- | :-------------------------------------------------- | :------- | :-------------------------------------------------------- | -| id | String | ❌ | Unique identifier of the payment dunning in Asaas | -| dunningNumber | Long | ❌ | Payment dunning number | -| status | ApiPaymentDunningCancelResponsePaymentDunningStatus | ❌ | Payment dunning status | -| type | ApiPaymentDunningCancelResponsePaymentDunningType | ❌ | Type of payment dunning | -| payment | String | ❌ | Unique identifier of the payment to be recovered in Asaas | -| requestDate | String | ❌ | Request date | -| description | String | ❌ | Description of the payment dunning | -| value | Double | ❌ | Payment amount | -| feeValue | Double | ❌ | Cost and/or payment dunning fee | -| netValue | Double | ❌ | Net amount to be recovered | -| receivedInCashFeeValue | Double | ❌ | Cash receipt fee | -| denialReason | String | ❌ | Reason for denial of payment dunning | -| cancellationFeeValue | Double | ❌ | Fee charged in case of cancellation | -| canBeCancelled | Boolean | ❌ | Whether the payment dunning can be canceled | -| cannotBeCancelledReason | String | ❌ | Reason for not being able to request cancellation | -| isNecessaryResendDocumentation | Boolean | ❌ | Determine whether documentation needs to be resubmitted | - - diff --git a/documentation/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.md b/documentation/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.md deleted file mode 100644 index 10aa2a0..0000000 --- a/documentation/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApiPaymentDunningCancelResponsePaymentDunningStatus - -Payment dunning status - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :----- | :------- | :---------------------- | -| PENDING | String | ✅ | "PENDING" | -| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | -| AWAITING_CANCELLATION | String | ✅ | "AWAITING_CANCELLATION" | -| PROCESSED | String | ✅ | "PROCESSED" | -| PAID | String | ✅ | "PAID" | -| PARTIALLY_PAID | String | ✅ | "PARTIALLY_PAID" | -| DENIED | String | ✅ | "DENIED" | -| CANCELLED | String | ✅ | "CANCELLED" | - - diff --git a/documentation/models/ApiPaymentDunningCancelResponsePaymentDunningType.md b/documentation/models/ApiPaymentDunningCancelResponsePaymentDunningType.md deleted file mode 100644 index 57fea90..0000000 --- a/documentation/models/ApiPaymentDunningCancelResponsePaymentDunningType.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentDunningCancelResponsePaymentDunningType - -Type of payment dunning - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :----- | :------- | :-------------- | -| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | - - diff --git a/documentation/models/ApiPaymentDunningListHistoryResponseDataDto.md b/documentation/models/ApiPaymentDunningListHistoryResponseDataDto.md deleted file mode 100644 index 8ff4cf7..0000000 --- a/documentation/models/ApiPaymentDunningListHistoryResponseDataDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentDunningListHistoryResponseDataDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :------------------------------------------------------------------ | :------- | :----------------------- | -| status | ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus | ❌ | Negotiation status | -| description | String | ❌ | Description of the event | -| eventDate | String | ❌ | Date the event occurred | - - diff --git a/documentation/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md b/documentation/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md deleted file mode 100644 index f3722e6..0000000 --- a/documentation/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus - -Negotiation status - -**Properties** - -| Name | Type | Required | Description | -| :--------------- | :----- | :------- | :----------------- | -| IN_NEGOTIATION | String | ✅ | "IN_NEGOTIATION" | -| NEGOTIATION_FAIL | String | ✅ | "NEGOTIATION_FAIL" | -| NEGOTIATED | String | ✅ | "NEGOTIATED" | -| PAID | String | ✅ | "PAID" | - - diff --git a/documentation/models/ApiPaymentDunningListHistoryResponseDto.md b/documentation/models/ApiPaymentDunningListHistoryResponseDto.md deleted file mode 100644 index c7bd3a9..0000000 --- a/documentation/models/ApiPaymentDunningListHistoryResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentDunningListHistoryResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :-------------------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.md b/documentation/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.md deleted file mode 100644 index 2c9e85d..0000000 --- a/documentation/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentDunningListPartialPaymentsResponseDataDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------------ | -| value | Double | ❌ | Amount paid | -| description | String | ❌ | Payment Description | -| paymentDate | String | ❌ | Pay day | - - diff --git a/documentation/models/ApiPaymentDunningListPartialPaymentsResponseDto.md b/documentation/models/ApiPaymentDunningListPartialPaymentsResponseDto.md deleted file mode 100644 index b24850b..0000000 --- a/documentation/models/ApiPaymentDunningListPartialPaymentsResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentDunningListPartialPaymentsResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :---------------------------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPaymentDunningListRequestPaymentDunningStatus.md b/documentation/models/ApiPaymentDunningListRequestPaymentDunningStatus.md deleted file mode 100644 index 539fc22..0000000 --- a/documentation/models/ApiPaymentDunningListRequestPaymentDunningStatus.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApiPaymentDunningListRequestPaymentDunningStatus - -Filter by payment dunning status - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :----- | :------- | :---------------------- | -| PENDING | String | ✅ | "PENDING" | -| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | -| AWAITING_CANCELLATION | String | ✅ | "AWAITING_CANCELLATION" | -| PROCESSED | String | ✅ | "PROCESSED" | -| PAID | String | ✅ | "PAID" | -| PARTIALLY_PAID | String | ✅ | "PARTIALLY_PAID" | -| DENIED | String | ✅ | "DENIED" | -| CANCELLED | String | ✅ | "CANCELLED" | - - diff --git a/documentation/models/ApiPaymentDunningListRequestPaymentDunningType.md b/documentation/models/ApiPaymentDunningListRequestPaymentDunningType.md deleted file mode 100644 index ca302ee..0000000 --- a/documentation/models/ApiPaymentDunningListRequestPaymentDunningType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPaymentDunningListRequestPaymentDunningType - -Filter by type of payment dunning - -**Properties** - -| Name | Type | Required | Description | -| :----------------------- | :----- | :------- | :------------------------- | -| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | -| DEBT_RECOVERY_ASSISTANCE | String | ✅ | "DEBT_RECOVERY_ASSISTANCE" | - - diff --git a/documentation/models/ApiPaymentDunningListResponseDto.md b/documentation/models/ApiPaymentDunningListResponseDto.md deleted file mode 100644 index 70869f1..0000000 --- a/documentation/models/ApiPaymentDunningListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentDunningListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :--------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md b/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md deleted file mode 100644 index c4c1e00..0000000 --- a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType - -Form of payment - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| TRANSFER | String | ✅ | "TRANSFER" | -| DEPOSIT | String | ✅ | "DEPOSIT" | -| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.md b/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.md deleted file mode 100644 index 5966659..0000000 --- a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :------------------------------------------------------------------------------------ | :------- | :---------------------------------------------------------------------- | -| payment | String | ❌ | Unique identifier of the payment to be recovered in Asaas | -| customer | String | ❌ | Unique customer identifier | -| value | Double | ❌ | Payment amount | -| status | ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus | ❌ | Billing status | -| billingType | ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType | ❌ | Form of payment | -| dueDate | String | ❌ | Due date | -| typeSimulations | List\ | ❌ | Simulation of denial request for each type of payment dunning available | - - diff --git a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md b/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md deleted file mode 100644 index 568c094..0000000 --- a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus - -Billing status - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :----- | :------- | :---------- | -| PENDING | String | ✅ | "PENDING" | -| RECEIVED | String | ✅ | "RECEIVED" | -| CONFIRMED | String | ✅ | "CONFIRMED" | -| OVERDUE | String | ✅ | "OVERDUE" | - - diff --git a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md b/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md deleted file mode 100644 index f2f3568..0000000 --- a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------- | :------------------------------------------------------------------------------------------- | :------- | :----------------------------------------------------------------------- | -| type | ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType | ❌ | Type of payment dunning | -| isAllowed | Boolean | ❌ | Whether it is possible to request a payment dunning of this type | -| notAllowedReason | String | ❌ | Reason why it is not possible to request a payment dunning for this type | -| feeValue | Double | ❌ | Cost and/or payment dunning fee | -| netValue | Double | ❌ | Net amount to be recovered | -| startDate | String | ❌ | Expected start date of the payment dunning | - - diff --git a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md b/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md deleted file mode 100644 index 36ef57c..0000000 --- a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType - -Type of payment dunning - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :----- | :------- | :-------------- | -| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | - - diff --git a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.md b/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.md deleted file mode 100644 index ca347d1..0000000 --- a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentDunningPaymentsAvailableForDunningResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :------------------------------------------------------------------ | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPaymentDunningSaveDocumentsRequestDto.md b/documentation/models/ApiPaymentDunningSaveDocumentsRequestDto.md deleted file mode 100644 index 323a678..0000000 --- a/documentation/models/ApiPaymentDunningSaveDocumentsRequestDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiPaymentDunningSaveDocumentsRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :----- | :------- | :-------------------------------- | -| documents | byte[] | ✅ | Invoice and/or contract notarized | - - diff --git a/documentation/models/ApiPaymentDunningSaveDocumentsResponseDto.md b/documentation/models/ApiPaymentDunningSaveDocumentsResponseDto.md deleted file mode 100644 index 61c4648..0000000 --- a/documentation/models/ApiPaymentDunningSaveDocumentsResponseDto.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiPaymentDunningSaveDocumentsResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------- | :--------------------------------------------------------- | :------- | :-------------------------------------------------------- | -| id | String | ❌ | Unique identifier of the payment dunning in Asaas | -| dunningNumber | Long | ❌ | Payment dunning number | -| status | ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus | ❌ | Payment dunning status | -| type | ApiPaymentDunningSaveDocumentsResponsePaymentDunningType | ❌ | Type of payment dunning | -| payment | String | ❌ | Unique identifier of the payment to be recovered in Asaas | -| requestDate | String | ❌ | Request date | -| description | String | ❌ | Description of the payment dunning | -| value | Double | ❌ | Payment amount | -| feeValue | Double | ❌ | Cost and/or payment dunning fee | -| netValue | Double | ❌ | Net amount to be recovered | -| receivedInCashFeeValue | Double | ❌ | Cash receipt fee | -| denialReason | String | ❌ | Reason for denial of payment dunning | -| cancellationFeeValue | Double | ❌ | Fee charged in case of cancellation | -| canBeCancelled | Boolean | ❌ | Whether the payment dunning can be canceled | -| cannotBeCancelledReason | String | ❌ | Reason for not being able to request cancellation | -| isNecessaryResendDocumentation | Boolean | ❌ | Determine whether documentation needs to be resubmitted | - - diff --git a/documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.md b/documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.md deleted file mode 100644 index 7424728..0000000 --- a/documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus - -Payment dunning status - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :----- | :------- | :---------------------- | -| PENDING | String | ✅ | "PENDING" | -| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | -| AWAITING_CANCELLATION | String | ✅ | "AWAITING_CANCELLATION" | -| PROCESSED | String | ✅ | "PROCESSED" | -| PAID | String | ✅ | "PAID" | -| PARTIALLY_PAID | String | ✅ | "PARTIALLY_PAID" | -| DENIED | String | ✅ | "DENIED" | -| CANCELLED | String | ✅ | "CANCELLED" | - - diff --git a/documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.md b/documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.md deleted file mode 100644 index e26df42..0000000 --- a/documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentDunningSaveDocumentsResponsePaymentDunningType - -Type of payment dunning - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :----- | :------- | :-------------- | -| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | - - diff --git a/documentation/models/ApiPaymentDunningSaveRequestDto.md b/documentation/models/ApiPaymentDunningSaveRequestDto.md deleted file mode 100644 index 895ebbe..0000000 --- a/documentation/models/ApiPaymentDunningSaveRequestDto.md +++ /dev/null @@ -1,21 +0,0 @@ -# ApiPaymentDunningSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------------- | :--------------------------------------------- | :------- | :-------------------------------------------------------- | -| payment | String | ✅ | Unique identifier of the payment to be recovered in Asaas | -| type | ApiPaymentDunningSaveRequestPaymentDunningType | ✅ | Type of payment dunning | -| customerName | String | ✅ | Client name | -| customerCpfCnpj | String | ✅ | Customer CPF or CNPJ | -| customerPrimaryPhone | String | ✅ | Customer main telephone number | -| customerPostalCode | String | ✅ | Customer address zip code | -| customerAddress | String | ✅ | Customer public address | -| customerAddressNumber | String | ✅ | Customer address number | -| customerProvince | String | ✅ | Customer neighborhood | -| description | String | ❌ | Description of the product or service provided | -| customerSecondaryPhone | String | ❌ | Secondary customer phone number | -| customerComplement | String | ❌ | Customer address complement | -| documents | byte[] | ❌ | Invoice and/or contract notarized | - - diff --git a/documentation/models/ApiPaymentDunningSaveRequestPaymentDunningType.md b/documentation/models/ApiPaymentDunningSaveRequestPaymentDunningType.md deleted file mode 100644 index 794ec85..0000000 --- a/documentation/models/ApiPaymentDunningSaveRequestPaymentDunningType.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentDunningSaveRequestPaymentDunningType - -Type of payment dunning - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :----- | :------- | :-------------- | -| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | - - diff --git a/documentation/models/ApiPaymentDunningShowResponseDto.md b/documentation/models/ApiPaymentDunningShowResponseDto.md deleted file mode 100644 index 12a4329..0000000 --- a/documentation/models/ApiPaymentDunningShowResponseDto.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiPaymentDunningShowResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------- | :------------------------------------------------ | :------- | :-------------------------------------------------------- | -| id | String | ❌ | Unique identifier of the payment dunning in Asaas | -| dunningNumber | Long | ❌ | Payment dunning number | -| status | ApiPaymentDunningShowResponsePaymentDunningStatus | ❌ | Payment dunning status | -| type | ApiPaymentDunningShowResponsePaymentDunningType | ❌ | Type of payment dunning | -| requestDate | String | ❌ | Request date | -| description | String | ❌ | Description of the payment dunning | -| value | Double | ❌ | Payment amount | -| feeValue | Double | ❌ | Cost and/or payment dunning fee | -| netValue | Double | ❌ | Net amount to be recovered | -| receivedInCashFeeValue | Double | ❌ | Cash receipt fee | -| denialReason | String | ❌ | Reason for denial of payment dunning | -| cancellationFeeValue | Double | ❌ | Fee charged in case of cancellation | -| canBeCancelled | Boolean | ❌ | Whether the payment dunning can be canceled | -| cannotBeCancelledReason | String | ❌ | Reason for not being able to request cancellation | -| isNecessaryResendDocumentation | Boolean | ❌ | Determine whether documentation needs to be resubmitted | -| payment | String | ❌ | Unique identifier of the payment to be recovered in Asaas | - - diff --git a/documentation/models/ApiPaymentDunningShowResponsePaymentDunningStatus.md b/documentation/models/ApiPaymentDunningShowResponsePaymentDunningStatus.md deleted file mode 100644 index eb252fd..0000000 --- a/documentation/models/ApiPaymentDunningShowResponsePaymentDunningStatus.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApiPaymentDunningShowResponsePaymentDunningStatus - -Payment dunning status - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :----- | :------- | :---------------------- | -| PENDING | String | ✅ | "PENDING" | -| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | -| AWAITING_CANCELLATION | String | ✅ | "AWAITING_CANCELLATION" | -| PROCESSED | String | ✅ | "PROCESSED" | -| PAID | String | ✅ | "PAID" | -| PARTIALLY_PAID | String | ✅ | "PARTIALLY_PAID" | -| DENIED | String | ✅ | "DENIED" | -| CANCELLED | String | ✅ | "CANCELLED" | - - diff --git a/documentation/models/ApiPaymentDunningShowResponsePaymentDunningType.md b/documentation/models/ApiPaymentDunningShowResponsePaymentDunningType.md deleted file mode 100644 index 5b44ef9..0000000 --- a/documentation/models/ApiPaymentDunningShowResponsePaymentDunningType.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentDunningShowResponsePaymentDunningType - -Type of payment dunning - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :----- | :------- | :-------------- | -| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | - - diff --git a/documentation/models/ApiPaymentDunningSimulateResponseDto.md b/documentation/models/ApiPaymentDunningSimulateResponseDto.md deleted file mode 100644 index cffef94..0000000 --- a/documentation/models/ApiPaymentDunningSimulateResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentDunningSimulateResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :------------------------------------------------------------- | :------- | :------------------------------------------------------------- | -| payment | String | ❌ | Unique identifier of the payment to be recovered in Asaas | -| value | Double | ❌ | Payment amount | -| typeSimulations | List\ | ❌ | Simulation of denial request for each type of denial available | - - diff --git a/documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.md b/documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.md deleted file mode 100644 index 6d0444d..0000000 --- a/documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentDunningSimulateResponseTypeSimulationItemDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------- | :-------------------------------------------------------------------- | :------- | :----------------------------------------------------------------------- | -| type | ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType | ❌ | Type of payment dunning | -| isAllowed | Boolean | ❌ | Whether it is possible to request a payment dunning of this type | -| notAllowedReason | String | ❌ | Reason why it is not possible to request a payment dunning for this type | -| feeValue | Double | ❌ | Cost and/or payment dunning fee | -| netValue | Double | ❌ | Net amount to be recovered | -| startDate | String | ❌ | Expected start date of the payment dunning | - - diff --git a/documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md b/documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md deleted file mode 100644 index ebecd09..0000000 --- a/documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType - -Type of payment dunning - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :----- | :------- | :-------------- | -| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | - - diff --git a/documentation/models/ApiPaymentFineRequestDto.md b/documentation/models/ApiPaymentFineRequestDto.md deleted file mode 100644 index 7ec4bf7..0000000 --- a/documentation/models/ApiPaymentFineRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPaymentFineRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---- | :---------------------------- | :------- | :---------------------------------------------------------------------------- | -| value | Double | ❌ | Percentage of fine on the amount of the charge for payment after the due date | -| type | ApiPaymentFineRequestFineType | ❌ | Fine type | - - diff --git a/documentation/models/ApiPaymentFineRequestFineType.md b/documentation/models/ApiPaymentFineRequestFineType.md deleted file mode 100644 index c0cd076..0000000 --- a/documentation/models/ApiPaymentFineRequestFineType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPaymentFineRequestFineType - -Fine type - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----- | :------- | :----------- | -| FIXED | String | ✅ | "FIXED" | -| PERCENTAGE | String | ✅ | "PERCENTAGE" | - - diff --git a/documentation/models/ApiPaymentFineResponseDto.md b/documentation/models/ApiPaymentFineResponseDto.md deleted file mode 100644 index 467c791..0000000 --- a/documentation/models/ApiPaymentFineResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiPaymentFineResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---- | :----- | :------- | :------------------------ | -| value | Double | ❌ | Fine amount in percentage | - - diff --git a/documentation/models/ApiPaymentGetResponseBillingType.md b/documentation/models/ApiPaymentGetResponseBillingType.md deleted file mode 100644 index d2b3353..0000000 --- a/documentation/models/ApiPaymentGetResponseBillingType.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPaymentGetResponseBillingType - -Payment billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | -| TRANSFER | String | ✅ | "TRANSFER" | -| DEPOSIT | String | ✅ | "DEPOSIT" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPaymentGetResponseDto.md b/documentation/models/ApiPaymentGetResponseDto.md deleted file mode 100644 index 126618a..0000000 --- a/documentation/models/ApiPaymentGetResponseDto.md +++ /dev/null @@ -1,52 +0,0 @@ -# ApiPaymentGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------------------- | :---------------------------------------- | :------- | :----------------------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique payment identifier in Asaas | -| dateCreated | String | ❌ | Payment creation date | -| customer | String | ❌ | Unique identifier of the customer to whom the payment belongs | -| subscription | String | ❌ | Unique subscription identifier (when recurring billing) | -| installment | String | ❌ | Unique installment identifier (when billing in installments) | -| checkoutSession | String | ❌ | Unique checkout identifier | -| paymentLink | String | ❌ | Unique identifier of the payments link to which the payment belongs | -| value | Double | ❌ | Payment amount | -| netValue | Double | ❌ | Net value of the charge after discounting the Asaas fee | -| originalValue | Double | ❌ | Original amount of charge (filled when paid with interest and fine) | -| interestValue | Double | ❌ | Calculated amount of interest and fine that must be paid after the charge is due | -| description | String | ❌ | Description of the payment | -| billingType | ApiPaymentGetResponseBillingType | ❌ | Payment billing type | -| creditCard | ApiPaymentSaveWithCreditCardCreditCardDto | ❌ | | -| canBePaidAfterDueDate | Boolean | ❌ | Informs whether the charge can be paid after the due date (Only for bank slip) | -| pixTransaction | String | ❌ | Unique identifier of the Pix transaction to which the payment belongs | -| pixQrCodeId | String | ❌ | Unique identifier of the static QrCode generated for a given Pix key | -| status | ApiPaymentGetResponsePaymentStatus | ❌ | Payment status | -| dueDate | String | ❌ | Payment due date | -| originalDueDate | String | ❌ | Original due date upon creation of the payment | -| paymentDate | String | ❌ | Payment date on Asaas | -| clientPaymentDate | String | ❌ | Date on which the customer paid the bank slip | -| installmentNumber | Long | ❌ | Parcel number | -| invoiceUrl | String | ❌ | Invoice URL | -| invoiceNumber | String | ❌ | Bill number | -| externalReference | String | ❌ | Free search field | -| deleted | Boolean | ❌ | Determines if the payment has been removed | -| anticipated | Boolean | ❌ | Defines whether the charge was anticipated or is in the process of being anticipated | -| anticipable | Boolean | ❌ | Determines whether the charge is anticipated | -| creditDate | String | ❌ | Date when the credit became available | -| estimatedCreditDate | String | ❌ | Estimated date when the credit will be available | -| transactionReceiptUrl | String | ❌ | URL of proof of confirmation, receipt, reversal or removal | -| nossoNumero | String | ❌ | Unique identification of the bank slip | -| bankSlipUrl | String | ❌ | URL to download the bank slip | -| discount | ApiPaymentDiscountDto | ❌ | | -| fine | ApiPaymentFineResponseDto | ❌ | | -| interest | ApiPaymentInterestResponseDto | ❌ | | -| split | List\ | ❌ | Split Settings | -| postalService | Boolean | ❌ | Define whether the payment will be sent via post | -| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | -| chargeback | ApiPaymentChargebackResponseDto | ❌ | | -| escrow | ApiPaymentCustodyGetResponseDto | ❌ | | -| refunds | List\ | ❌ | Refunds information | - - diff --git a/documentation/models/ApiPaymentGetResponsePaymentStatus.md b/documentation/models/ApiPaymentGetResponsePaymentStatus.md deleted file mode 100644 index 64985d3..0000000 --- a/documentation/models/ApiPaymentGetResponsePaymentStatus.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiPaymentGetResponsePaymentStatus - -Payment status - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------- | :----- | :------- | :----------------------------- | -| PENDING | String | ✅ | "PENDING" | -| RECEIVED | String | ✅ | "RECEIVED" | -| CONFIRMED | String | ✅ | "CONFIRMED" | -| OVERDUE | String | ✅ | "OVERDUE" | -| REFUNDED | String | ✅ | "REFUNDED" | -| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | -| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | -| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | -| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | -| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | -| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | -| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | -| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | -| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | - - diff --git a/documentation/models/ApiPaymentIdentificationFieldResponseDto.md b/documentation/models/ApiPaymentIdentificationFieldResponseDto.md deleted file mode 100644 index bf3be0f..0000000 --- a/documentation/models/ApiPaymentIdentificationFieldResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentIdentificationFieldResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :----- | :------- | :------------------------------------- | -| identificationField | String | ❌ | Digitable bill line | -| nossoNumero | String | ❌ | Unique identification of the bank slip | -| barCode | String | ❌ | Bank slip bar code | - - diff --git a/documentation/models/ApiPaymentInterestRequestDto.md b/documentation/models/ApiPaymentInterestRequestDto.md deleted file mode 100644 index 54c838c..0000000 --- a/documentation/models/ApiPaymentInterestRequestDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiPaymentInterestRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---- | :----- | :------- | :-------------------------------------------------------------------------------- | -| value | Double | ❌ | Percentage of interest per month on the amount charged for payment after maturity | - - diff --git a/documentation/models/ApiPaymentInterestResponseDto.md b/documentation/models/ApiPaymentInterestResponseDto.md deleted file mode 100644 index c5dfa52..0000000 --- a/documentation/models/ApiPaymentInterestResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiPaymentInterestResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---- | :----- | :------- | :--------------------------- | -| value | Double | ❌ | Interest value in percentage | - - diff --git a/documentation/models/ApiPaymentLeanGetResponseBillingType.md b/documentation/models/ApiPaymentLeanGetResponseBillingType.md deleted file mode 100644 index 7a23935..0000000 --- a/documentation/models/ApiPaymentLeanGetResponseBillingType.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPaymentLeanGetResponseBillingType - -Payment billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | -| TRANSFER | String | ✅ | "TRANSFER" | -| DEPOSIT | String | ✅ | "DEPOSIT" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPaymentLeanGetResponseDto.md b/documentation/models/ApiPaymentLeanGetResponseDto.md deleted file mode 100644 index 9e10626..0000000 --- a/documentation/models/ApiPaymentLeanGetResponseDto.md +++ /dev/null @@ -1,41 +0,0 @@ -# ApiPaymentLeanGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :------------------------------------- | :------- | :----------------------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique payment identifier in Asaas | -| dateCreated | String | ❌ | Payment creation date | -| customerId | String | ❌ | Unique identifier of the customer to whom the payment belongs | -| subscriptionId | String | ❌ | Unique subscription identifier (when recurring billing) | -| installmentId | String | ❌ | Unique installment identifier (when billing in installments) | -| paymentLinkId | String | ❌ | Unique identifier of the payments link to which the payment belongs | -| value | Double | ❌ | Payment amount | -| netValue | Double | ❌ | Net value of the charge after discounting the Asaas fee | -| originalValue | Double | ❌ | Original amount of charge (filled when paid with interest and fine) | -| interestValue | Double | ❌ | Calculated amount of interest and fine that must be paid after the charge is due | -| description | String | ❌ | Description of the payment | -| billingType | ApiPaymentLeanGetResponseBillingType | ❌ | Payment billing type | -| canBePaidAfterDueDate | Boolean | ❌ | Informs whether the charge can be paid after the due date (Only for bank slip) | -| confirmedDate | String | ❌ | Billing confirmation date | -| pixTransactionId | String | ❌ | Unique identifier of the Pix transaction to which the payment belongs | -| status | ApiPaymentLeanGetResponsePaymentStatus | ❌ | Payment status | -| dueDate | String | ❌ | Payment due date | -| originalDueDate | String | ❌ | Original due date upon creation of the payment | -| paymentDate | String | ❌ | Payment date on Asaas | -| customerPaymentDate | String | ❌ | Date on which the customer paid the bank slip | -| installmentNumber | Long | ❌ | Parcel number | -| externalReference | String | ❌ | Free search field | -| deleted | Boolean | ❌ | Determines if the payment has been removed | -| anticipated | Boolean | ❌ | Defines whether the charge was anticipated or is in the process of being anticipated | -| anticipable | Boolean | ❌ | Determines whether the charge is anticipated | -| creditDate | String | ❌ | Billing Credit date | -| transactionReceiptUrl | String | ❌ | URL of proof of confirmation, receipt, reversal or removal | -| duplicatedPaymentId | String | ❌ | Duplicate billing identifier (if true) | -| discount | ApiPaymentDiscountDto | ❌ | | -| fine | ApiPaymentFineResponseDto | ❌ | | -| interest | ApiPaymentInterestResponseDto | ❌ | | -| postalService | Boolean | ❌ | Define whether the payment will be sent via post | - - diff --git a/documentation/models/ApiPaymentLeanGetResponsePaymentStatus.md b/documentation/models/ApiPaymentLeanGetResponsePaymentStatus.md deleted file mode 100644 index bce7608..0000000 --- a/documentation/models/ApiPaymentLeanGetResponsePaymentStatus.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiPaymentLeanGetResponsePaymentStatus - -Payment status - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------- | :----- | :------- | :----------------------------- | -| PENDING | String | ✅ | "PENDING" | -| RECEIVED | String | ✅ | "RECEIVED" | -| CONFIRMED | String | ✅ | "CONFIRMED" | -| OVERDUE | String | ✅ | "OVERDUE" | -| REFUNDED | String | ✅ | "REFUNDED" | -| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | -| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | -| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | -| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | -| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | -| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | -| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | -| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | -| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | - - diff --git a/documentation/models/ApiPaymentLeanListResponseDto.md b/documentation/models/ApiPaymentLeanListResponseDto.md deleted file mode 100644 index 42d6069..0000000 --- a/documentation/models/ApiPaymentLeanListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentLeanListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.md b/documentation/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.md deleted file mode 100644 index f4349cd..0000000 --- a/documentation/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPaymentLeanSaveWithCreditCardResponseBillingType - -Payment billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | -| TRANSFER | String | ✅ | "TRANSFER" | -| DEPOSIT | String | ✅ | "DEPOSIT" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPaymentLeanSaveWithCreditCardResponseDto.md b/documentation/models/ApiPaymentLeanSaveWithCreditCardResponseDto.md deleted file mode 100644 index fba4edd..0000000 --- a/documentation/models/ApiPaymentLeanSaveWithCreditCardResponseDto.md +++ /dev/null @@ -1,42 +0,0 @@ -# ApiPaymentLeanSaveWithCreditCardResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :---------------------------------------------------- | :------- | :----------------------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique payment identifier in Asaas | -| dateCreated | String | ❌ | Payment creation date | -| customerId | String | ❌ | Unique identifier of the customer to whom the payment belongs | -| subscriptionId | String | ❌ | Unique subscription identifier (when recurring billing) | -| installmentId | String | ❌ | Unique installment identifier (when billing in installments) | -| paymentLinkId | String | ❌ | Unique identifier of the payments link to which the payment belongs | -| value | Double | ❌ | Payment amount | -| netValue | Double | ❌ | Net value of the charge after discounting the Asaas fee | -| originalValue | Double | ❌ | Original amount of charge (filled when paid with interest and fine) | -| interestValue | Double | ❌ | Calculated amount of interest and fine that must be paid after the charge is due | -| description | String | ❌ | Description of the payment | -| billingType | ApiPaymentLeanSaveWithCreditCardResponseBillingType | ❌ | Payment billing type | -| canBePaidAfterDueDate | Boolean | ❌ | Informs whether the charge can be paid after the due date (Only for bank slip) | -| confirmedDate | String | ❌ | Billing confirmation date | -| pixTransactionId | String | ❌ | Unique identifier of the Pix transaction to which the payment belongs | -| status | ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus | ❌ | Payment status | -| dueDate | String | ❌ | Payment due date | -| originalDueDate | String | ❌ | Original due date upon creation of the payment | -| paymentDate | String | ❌ | Payment date on Asaas | -| customerPaymentDate | String | ❌ | Date on which the customer paid the bank slip | -| installmentNumber | Long | ❌ | Parcel number | -| externalReference | String | ❌ | Free search field | -| deleted | Boolean | ❌ | Determines if the payment has been removed | -| anticipated | Boolean | ❌ | Defines whether the charge was anticipated or is in the process of being anticipated | -| anticipable | Boolean | ❌ | Determines whether the charge is anticipated | -| creditDate | String | ❌ | Billing Credit date | -| transactionReceiptUrl | String | ❌ | URL of proof of confirmation, receipt, reversal or removal | -| duplicatedPaymentId | String | ❌ | Duplicate billing identifier (if true) | -| discount | ApiPaymentDiscountDto | ❌ | | -| fine | ApiPaymentFineResponseDto | ❌ | | -| interest | ApiPaymentInterestResponseDto | ❌ | | -| postalService | Boolean | ❌ | Define whether the payment will be sent via post | -| creditCard | ApiPaymentSaveWithCreditCardCreditCardDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.md b/documentation/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.md deleted file mode 100644 index 986fcca..0000000 --- a/documentation/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus - -Payment status - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------- | :----- | :------- | :----------------------------- | -| PENDING | String | ✅ | "PENDING" | -| RECEIVED | String | ✅ | "RECEIVED" | -| CONFIRMED | String | ✅ | "CONFIRMED" | -| OVERDUE | String | ✅ | "OVERDUE" | -| REFUNDED | String | ✅ | "REFUNDED" | -| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | -| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | -| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | -| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | -| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | -| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | -| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | -| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | -| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | - - diff --git a/documentation/models/ApiPaymentLimitsResponseCreationDailyDto.md b/documentation/models/ApiPaymentLimitsResponseCreationDailyDto.md deleted file mode 100644 index 74ba58b..0000000 --- a/documentation/models/ApiPaymentLimitsResponseCreationDailyDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentLimitsResponseCreationDailyDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :------ | :------- | :------------------------------------------- | -| limit | Long | ❌ | Total limit | -| used | Long | ❌ | Limit used | -| wasReached | Boolean | ❌ | Indicates whether the limit has been reached | - - diff --git a/documentation/models/ApiPaymentLimitsResponseCreationDto.md b/documentation/models/ApiPaymentLimitsResponseCreationDto.md deleted file mode 100644 index 486f05b..0000000 --- a/documentation/models/ApiPaymentLimitsResponseCreationDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiPaymentLimitsResponseCreationDto - -**Properties** - -| Name | Type | Required | Description | -| :---- | :--------------------------------------- | :------- | :---------- | -| daily | ApiPaymentLimitsResponseCreationDailyDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentLimitsResponseDto.md b/documentation/models/ApiPaymentLimitsResponseDto.md deleted file mode 100644 index 46a8e2d..0000000 --- a/documentation/models/ApiPaymentLimitsResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiPaymentLimitsResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------- | :---------------------------------- | :------- | :---------- | -| creation | ApiPaymentLimitsResponseCreationDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentListRequestBillingType.md b/documentation/models/ApiPaymentListRequestBillingType.md deleted file mode 100644 index 8b50ddb..0000000 --- a/documentation/models/ApiPaymentListRequestBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentListRequestBillingType - -Filter by billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPaymentListRequestInvoiceStatus.md b/documentation/models/ApiPaymentListRequestInvoiceStatus.md deleted file mode 100644 index 39a3e85..0000000 --- a/documentation/models/ApiPaymentListRequestInvoiceStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPaymentListRequestInvoiceStatus - -Filter to return charges that have or do not have an invoice - -**Properties** - -| Name | Type | Required | Description | -| :---------------------- | :----- | :------- | :------------------------ | -| SCHEDULED | String | ✅ | "SCHEDULED" | -| AUTHORIZED | String | ✅ | "AUTHORIZED" | -| PROCESSING_CANCELLATION | String | ✅ | "PROCESSING_CANCELLATION" | -| CANCELED | String | ✅ | "CANCELED" | -| CANCELLATION_DENIED | String | ✅ | "CANCELLATION_DENIED" | -| ERROR | String | ✅ | "ERROR" | - - diff --git a/documentation/models/ApiPaymentListRequestPaymentStatus.md b/documentation/models/ApiPaymentListRequestPaymentStatus.md deleted file mode 100644 index b2e40bc..0000000 --- a/documentation/models/ApiPaymentListRequestPaymentStatus.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiPaymentListRequestPaymentStatus - -Filter by status - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------- | :----- | :------- | :----------------------------- | -| PENDING | String | ✅ | "PENDING" | -| RECEIVED | String | ✅ | "RECEIVED" | -| CONFIRMED | String | ✅ | "CONFIRMED" | -| OVERDUE | String | ✅ | "OVERDUE" | -| REFUNDED | String | ✅ | "REFUNDED" | -| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | -| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | -| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | -| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | -| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | -| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | -| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | -| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | -| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | - - diff --git a/documentation/models/ApiPaymentListResponseDto.md b/documentation/models/ApiPaymentListResponseDto.md deleted file mode 100644 index 55dddcf..0000000 --- a/documentation/models/ApiPaymentListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPaymentPayWithCreditCardRequestDto.md b/documentation/models/ApiPaymentPayWithCreditCardRequestDto.md deleted file mode 100644 index 5deff0c..0000000 --- a/documentation/models/ApiPaymentPayWithCreditCardRequestDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentPayWithCreditCardRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :-------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------- | -| creditCard | ApiCreditCardRequestDto | ✅ | | -| creditCardHolderInfo | ApiCreditCardHolderInfoRequestDto | ✅ | | -| creditCardToken | String | ❌ | Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. | - - diff --git a/documentation/models/ApiPaymentPixQrCodeResponseDto.md b/documentation/models/ApiPaymentPixQrCodeResponseDto.md deleted file mode 100644 index c660a99..0000000 --- a/documentation/models/ApiPaymentPixQrCodeResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentPixQrCodeResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------- | :----- | :------- | :------------------------------- | -| encodedImage | String | ❌ | QrCode image in base64 | -| payload | String | ❌ | Copy and Paste of the Pix QrCode | -| expirationDate | String | ❌ | QrCode expiration date | - - diff --git a/documentation/models/ApiPaymentReceiveInCashRequestDto.md b/documentation/models/ApiPaymentReceiveInCashRequestDto.md deleted file mode 100644 index 72d119f..0000000 --- a/documentation/models/ApiPaymentReceiveInCashRequestDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentReceiveInCashRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------- | :------ | :------- | :----------------------------------------------------------------- | -| paymentDate | String | ❌ | Date the customer made the payment | -| value | Double | ❌ | Amount paid by the customer | -| notifyCustomer | Boolean | ❌ | Send or not send notification of confirmed payment to the customer | - - diff --git a/documentation/models/ApiPaymentRefundGetResponseDto.md b/documentation/models/ApiPaymentRefundGetResponseDto.md deleted file mode 100644 index 53e01f7..0000000 --- a/documentation/models/ApiPaymentRefundGetResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPaymentRefundGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :--------------------------------------------- | :------- | :---------------------------------------------------------------------- | -| dateCreated | String | ❌ | Refund creation date | -| status | ApiPaymentRefundGetResponsePaymentRefundStatus | ❌ | Refund status | -| value | Double | ❌ | Refund value | -| endToEndIdentifier | String | ❌ | (Pix only) Unique identifier of the Pix transaction at the Central Bank | -| description | String | ❌ | Description of the refund | -| effectiveDate | String | ❌ | (Pix only) Refund effective date | -| transactionReceiptUrl | String | ❌ | Transaction receipt link | -| refundedSplits | List\ | ❌ | Refunded Splits, if any | - - diff --git a/documentation/models/ApiPaymentRefundGetResponsePaymentRefundStatus.md b/documentation/models/ApiPaymentRefundGetResponsePaymentRefundStatus.md deleted file mode 100644 index df10737..0000000 --- a/documentation/models/ApiPaymentRefundGetResponsePaymentRefundStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPaymentRefundGetResponsePaymentRefundStatus - -Refund status - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------------------- | :----- | :------- | :----------------------------------------- | -| PENDING | String | ✅ | "PENDING" | -| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | -| AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION | String | ✅ | "AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION" | -| CANCELLED | String | ✅ | "CANCELLED" | -| DONE | String | ✅ | "DONE" | - - diff --git a/documentation/models/ApiPaymentRefundListResponseDto.md b/documentation/models/ApiPaymentRefundListResponseDto.md deleted file mode 100644 index 3d492d2..0000000 --- a/documentation/models/ApiPaymentRefundListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentRefundListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPaymentRefundRequestDto.md b/documentation/models/ApiPaymentRefundRequestDto.md deleted file mode 100644 index 9c08e50..0000000 --- a/documentation/models/ApiPaymentRefundRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPaymentRefundRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :-------------------- | -| value | Double | ❌ | Amount to be refunded | -| description | String | ❌ | Reason for the refund | - - diff --git a/documentation/models/ApiPaymentRefundedSplitResponseDto.md b/documentation/models/ApiPaymentRefundedSplitResponseDto.md deleted file mode 100644 index a53d885..0000000 --- a/documentation/models/ApiPaymentRefundedSplitResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentRefundedSplitResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---- | :------ | :------- | :--------------------------------------- | -| id | String | ❌ | Unique split identifier | -| value | Double | ❌ | Refunded value | -| done | Boolean | ❌ | Indicates whether the split was refunded | - - diff --git a/documentation/models/ApiPaymentSaveRequestBillingType.md b/documentation/models/ApiPaymentSaveRequestBillingType.md deleted file mode 100644 index 2581a1a..0000000 --- a/documentation/models/ApiPaymentSaveRequestBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentSaveRequestBillingType - -Payment billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPaymentSaveRequestDto.md b/documentation/models/ApiPaymentSaveRequestDto.md deleted file mode 100644 index b47990a..0000000 --- a/documentation/models/ApiPaymentSaveRequestDto.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiPaymentSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------------------- | :-------------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| customer | String | ✅ | Unique customer identifier in Asaas | -| billingType | ApiPaymentSaveRequestBillingType | ✅ | Payment billing type | -| value | Double | ✅ | Payment amount | -| dueDate | String | ✅ | Payment due date | -| description | String | ❌ | Payment description (max. 500 characters) | -| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | -| externalReference | String | ❌ | Free search field | -| installmentCount | Long | ❌ | Number of installments (only in the case of installment payment) | -| totalValue | Double | ❌ | Enter the total amount of a charge that will be paid in installments (only in the case of an installment charge). If this field is sent, the installmentValue is not necessary, the calculation per installment will be automatic. | -| installmentValue | Double | ❌ | Value of each installment (only in the case of installment payment). Send this field if you want to define the value of each installment. | -| discount | ApiPaymentDiscountDto | ❌ | | -| interest | ApiPaymentInterestRequestDto | ❌ | | -| fine | ApiPaymentFineRequestDto | ❌ | | -| postalService | Boolean | ❌ | Define whether the payment will be sent via post | -| split | List\ | ❌ | Split Settings | -| callback | ApiPaymentCallbackRequestDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.md b/documentation/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.md deleted file mode 100644 index 85efc90..0000000 --- a/documentation/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand - -Flag of the card used - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----- | :------- | :----------- | -| VISA | String | ✅ | "VISA" | -| MASTERCARD | String | ✅ | "MASTERCARD" | -| ELO | String | ✅ | "ELO" | -| DINERS | String | ✅ | "DINERS" | -| DISCOVER | String | ✅ | "DISCOVER" | -| AMEX | String | ✅ | "AMEX" | -| HIPERCARD | String | ✅ | "HIPERCARD" | -| CABAL | String | ✅ | "CABAL" | -| BANESCARD | String | ✅ | "BANESCARD" | -| CREDZ | String | ✅ | "CREDZ" | -| SOROCRED | String | ✅ | "SOROCRED" | -| CREDSYSTEM | String | ✅ | "CREDSYSTEM" | -| JCB | String | ✅ | "JCB" | -| UNKNOWN | String | ✅ | "UNKNOWN" | - - diff --git a/documentation/models/ApiPaymentSaveWithCreditCardCreditCardDto.md b/documentation/models/ApiPaymentSaveWithCreditCardCreditCardDto.md deleted file mode 100644 index ef6ae6d..0000000 --- a/documentation/models/ApiPaymentSaveWithCreditCardCreditCardDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentSaveWithCreditCardCreditCardDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------- | :---------------------------------------------------- | :------- | :------------------------------------------- | -| creditCardNumber | String | ❌ | Last 4 digits of the card used | -| creditCardBrand | ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand | ❌ | Flag of the card used | -| creditCardToken | String | ❌ | Credit card token if tokenization is active. | - - diff --git a/documentation/models/ApiPaymentSaveWithCreditCardRequestBillingType.md b/documentation/models/ApiPaymentSaveWithCreditCardRequestBillingType.md deleted file mode 100644 index 5175518..0000000 --- a/documentation/models/ApiPaymentSaveWithCreditCardRequestBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentSaveWithCreditCardRequestBillingType - -Payment billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPaymentSaveWithCreditCardRequestDto.md b/documentation/models/ApiPaymentSaveWithCreditCardRequestDto.md deleted file mode 100644 index 57c340e..0000000 --- a/documentation/models/ApiPaymentSaveWithCreditCardRequestDto.md +++ /dev/null @@ -1,29 +0,0 @@ -# ApiPaymentSaveWithCreditCardRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------------------- | :--------------------------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| customer | String | ✅ | Unique customer identifier in Asaas | -| billingType | ApiPaymentSaveWithCreditCardRequestBillingType | ✅ | Payment billing type | -| value | Double | ✅ | Payment amount | -| dueDate | String | ✅ | Payment due date | -| remoteIp | String | ✅ | IP from where the customer is making the purchase. Your server's IP must not be entered. | -| description | String | ❌ | Payment description (max. 500 characters) | -| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | -| externalReference | String | ❌ | Free search field | -| installmentCount | Long | ❌ | Number of installments (only in the case of installment payment) | -| totalValue | Double | ❌ | Enter the total amount of a charge that will be paid in installments (only in the case of an installment charge). If this field is sent, the installmentValue is not necessary, the calculation per installment will be automatic. | -| installmentValue | Double | ❌ | Value of each installment (only in the case of installment payment). Send this field if you want to define the value of each installment. | -| discount | ApiPaymentDiscountDto | ❌ | | -| interest | ApiPaymentInterestRequestDto | ❌ | | -| fine | ApiPaymentFineRequestDto | ❌ | | -| postalService | Boolean | ❌ | Define whether the payment will be sent via post | -| split | List\ | ❌ | Split Settings | -| callback | ApiPaymentCallbackRequestDto | ❌ | | -| creditCard | ApiCreditCardRequestDto | ❌ | | -| creditCardHolderInfo | ApiCreditCardHolderInfoRequestDto | ❌ | | -| creditCardToken | String | ❌ | Credit card token for using the credit card tokenization functionality | -| authorizeOnly | Boolean | ❌ | Carry out only the Pre-Authorization of the payment | - - diff --git a/documentation/models/ApiPaymentSimulateBankSlipResponseDto.md b/documentation/models/ApiPaymentSimulateBankSlipResponseDto.md deleted file mode 100644 index 6fb0334..0000000 --- a/documentation/models/ApiPaymentSimulateBankSlipResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentSimulateBankSlipResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :--------------------------------------- | :------- | :---------- | -| netValue | Double | ❌ | Net value | -| feeValue | Double | ❌ | Fee value | -| installment | ApiPaymentSimulateInstallmentResponseDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentSimulateCreditCardResponseDto.md b/documentation/models/ApiPaymentSimulateCreditCardResponseDto.md deleted file mode 100644 index 130bdd1..0000000 --- a/documentation/models/ApiPaymentSimulateCreditCardResponseDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPaymentSimulateCreditCardResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :--------------------------------------- | :------- | :----------------- | -| netValue | Double | ❌ | Net value | -| feePercentage | Double | ❌ | Rate in percentage | -| operationFee | Double | ❌ | Operation fee | -| installment | ApiPaymentSimulateInstallmentResponseDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentSimulateInstallmentResponseDto.md b/documentation/models/ApiPaymentSimulateInstallmentResponseDto.md deleted file mode 100644 index f7ccff3..0000000 --- a/documentation/models/ApiPaymentSimulateInstallmentResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPaymentSimulateInstallmentResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :----- | :------- | :---------- | -| paymentNetValue | Double | ❌ | Net value | -| paymentValue | Double | ❌ | Total value | - - diff --git a/documentation/models/ApiPaymentSimulatePixResponseDto.md b/documentation/models/ApiPaymentSimulatePixResponseDto.md deleted file mode 100644 index 80f3f15..0000000 --- a/documentation/models/ApiPaymentSimulatePixResponseDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPaymentSimulatePixResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :--------------------------------------- | :------- | :----------------- | -| netValue | Double | ❌ | Net value | -| feePercentage | Double | ❌ | Rate in percentage | -| feeValue | Double | ❌ | Fee value | -| installment | ApiPaymentSimulateInstallmentResponseDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentSimulateRequestDto.md b/documentation/models/ApiPaymentSimulateRequestDto.md deleted file mode 100644 index 51e2b08..0000000 --- a/documentation/models/ApiPaymentSimulateRequestDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPaymentSimulateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------- | :------------- | :------- | :---------------------------------- | -| value | Double | ✅ | Total installment or billing amount | -| billingTypes | List\ | ✅ | Form of payment | -| installmentCount | Long | ❌ | Number of installments | - - diff --git a/documentation/models/ApiPaymentSimulateResponseDto.md b/documentation/models/ApiPaymentSimulateResponseDto.md deleted file mode 100644 index b2a14cb..0000000 --- a/documentation/models/ApiPaymentSimulateResponseDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPaymentSimulateResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :-------------------------------------- | :------- | :---------------------------------- | -| value | Double | ❌ | Total installment or billing amount | -| creditCard | ApiPaymentSimulateCreditCardResponseDto | ❌ | | -| bankSlip | ApiPaymentSimulateBankSlipResponseDto | ❌ | | -| pix | ApiPaymentSimulatePixResponseDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentSplitGetResponseDto.md b/documentation/models/ApiPaymentSplitGetResponseDto.md deleted file mode 100644 index cae722b..0000000 --- a/documentation/models/ApiPaymentSplitGetResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPaymentSplitGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------- | :------------------------------------------------------- | :------- | :------------------------------------------------------------------------ | -| id | String | ❌ | Unique split identifier in Asaas | -| walletId | String | ❌ | Asaas wallet identifier that will be transferred | -| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the charge is received | -| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | -| totalValue | Double | ❌ | Amount that will be split relative to the total amount that will be paid | -| cancellationReason | ApiPaymentSplitGetResponsePaymentSplitCancellationReason | ❌ | Reason for canceling the split | -| status | ApiPaymentSplitGetResponsePaymentSplitStatus | ❌ | Split status | -| externalReference | String | ❌ | Unique identifier of split in your system | -| description | String | ❌ | Split description | - - diff --git a/documentation/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.md b/documentation/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.md deleted file mode 100644 index 662e6cc..0000000 --- a/documentation/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPaymentSplitGetResponsePaymentSplitCancellationReason - -Reason for canceling the split - -**Properties** - -| Name | Type | Required | Description | -| :----------------------- | :----- | :------- | :------------------------- | -| PAYMENT_DELETED | String | ✅ | "PAYMENT_DELETED" | -| PAYMENT_OVERDUE | String | ✅ | "PAYMENT_OVERDUE" | -| PAYMENT_RECEIVED_IN_CASH | String | ✅ | "PAYMENT_RECEIVED_IN_CASH" | -| PAYMENT_REFUNDED | String | ✅ | "PAYMENT_REFUNDED" | -| VALUE_DIVERGENCE_BLOCK | String | ✅ | "VALUE_DIVERGENCE_BLOCK" | -| WALLET_UNABLE_TO_RECEIVE | String | ✅ | "WALLET_UNABLE_TO_RECEIVE" | - - diff --git a/documentation/models/ApiPaymentSplitGetResponsePaymentSplitStatus.md b/documentation/models/ApiPaymentSplitGetResponsePaymentSplitStatus.md deleted file mode 100644 index 7700ebf..0000000 --- a/documentation/models/ApiPaymentSplitGetResponsePaymentSplitStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPaymentSplitGetResponsePaymentSplitStatus - -Split status - -**Properties** - -| Name | Type | Required | Description | -| :-------------------------- | :----- | :------- | :---------------------------- | -| PENDING | String | ✅ | "PENDING" | -| AWAITING_CREDIT | String | ✅ | "AWAITING_CREDIT" | -| CANCELLED | String | ✅ | "CANCELLED" | -| DONE | String | ✅ | "DONE" | -| REFUNDED | String | ✅ | "REFUNDED" | -| BLOCKED_BY_VALUE_DIVERGENCE | String | ✅ | "BLOCKED_BY_VALUE_DIVERGENCE" | - - diff --git a/documentation/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.md b/documentation/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.md deleted file mode 100644 index 4924fd9..0000000 --- a/documentation/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPaymentSplitListPaidRequestPaymentSplitStatus - -Filter by status - -**Properties** - -| Name | Type | Required | Description | -| :-------------------------- | :----- | :------- | :---------------------------- | -| PENDING | String | ✅ | "PENDING" | -| AWAITING_CREDIT | String | ✅ | "AWAITING_CREDIT" | -| CANCELLED | String | ✅ | "CANCELLED" | -| DONE | String | ✅ | "DONE" | -| REFUNDED | String | ✅ | "REFUNDED" | -| BLOCKED_BY_VALUE_DIVERGENCE | String | ✅ | "BLOCKED_BY_VALUE_DIVERGENCE" | - - diff --git a/documentation/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.md b/documentation/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.md deleted file mode 100644 index c4fd908..0000000 --- a/documentation/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPaymentSplitListReceivedRequestPaymentSplitStatus - -Filter by status - -**Properties** - -| Name | Type | Required | Description | -| :-------------------------- | :----- | :------- | :---------------------------- | -| PENDING | String | ✅ | "PENDING" | -| AWAITING_CREDIT | String | ✅ | "AWAITING_CREDIT" | -| CANCELLED | String | ✅ | "CANCELLED" | -| DONE | String | ✅ | "DONE" | -| REFUNDED | String | ✅ | "REFUNDED" | -| BLOCKED_BY_VALUE_DIVERGENCE | String | ✅ | "BLOCKED_BY_VALUE_DIVERGENCE" | - - diff --git a/documentation/models/ApiPaymentSplitListResponseDto.md b/documentation/models/ApiPaymentSplitListResponseDto.md deleted file mode 100644 index 613a483..0000000 --- a/documentation/models/ApiPaymentSplitListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentSplitListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :------------------------------------ | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPaymentSplitRequestDto.md b/documentation/models/ApiPaymentSplitRequestDto.md deleted file mode 100644 index 912793d..0000000 --- a/documentation/models/ApiPaymentSplitRequestDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentSplitRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :----- | :------- | :------------------------------------------------------------------------------------------------------------ | -| walletId | String | ✅ | Asaas wallet identifier that will be transferred | -| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the payment is received | -| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | -| totalFixedValue | Double | ❌ | (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. | -| externalReference | String | ❌ | Split identifier in your system | -| description | String | ❌ | Split description | - - diff --git a/documentation/models/ApiPaymentStatusResponseDto.md b/documentation/models/ApiPaymentStatusResponseDto.md deleted file mode 100644 index b424990..0000000 --- a/documentation/models/ApiPaymentStatusResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiPaymentStatusResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----- | :------------------------------------ | :------- | :------------- | -| status | ApiPaymentStatusResponsePaymentStatus | ❌ | Payment status | - - diff --git a/documentation/models/ApiPaymentStatusResponsePaymentStatus.md b/documentation/models/ApiPaymentStatusResponsePaymentStatus.md deleted file mode 100644 index 4de8ebe..0000000 --- a/documentation/models/ApiPaymentStatusResponsePaymentStatus.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiPaymentStatusResponsePaymentStatus - -Payment status - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------- | :----- | :------- | :----------------------------- | -| PENDING | String | ✅ | "PENDING" | -| RECEIVED | String | ✅ | "RECEIVED" | -| CONFIRMED | String | ✅ | "CONFIRMED" | -| OVERDUE | String | ✅ | "OVERDUE" | -| REFUNDED | String | ✅ | "REFUNDED" | -| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | -| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | -| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | -| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | -| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | -| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | -| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | -| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | -| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | - - diff --git a/documentation/models/ApiPaymentUpdateRequestBillingType.md b/documentation/models/ApiPaymentUpdateRequestBillingType.md deleted file mode 100644 index 4c2b116..0000000 --- a/documentation/models/ApiPaymentUpdateRequestBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPaymentUpdateRequestBillingType - -Payment billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPaymentUpdateRequestDto.md b/documentation/models/ApiPaymentUpdateRequestDto.md deleted file mode 100644 index 552a34a..0000000 --- a/documentation/models/ApiPaymentUpdateRequestDto.md +++ /dev/null @@ -1,20 +0,0 @@ -# ApiPaymentUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------------------- | :--------------------------------- | :------- | :----------------------------------------------------------------- | -| billingType | ApiPaymentUpdateRequestBillingType | ✅ | Payment billing type | -| value | Double | ✅ | Payment amount | -| dueDate | String | ✅ | Payment due date | -| description | String | ❌ | Payment description (max. 500 characters) | -| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | -| externalReference | String | ❌ | Free search field | -| discount | ApiPaymentDiscountDto | ❌ | | -| interest | ApiPaymentInterestRequestDto | ❌ | | -| fine | ApiPaymentFineRequestDto | ❌ | | -| postalService | Boolean | ❌ | Define whether the payment will be sent via post | -| split | List\ | ❌ | Split Settings | -| callback | ApiPaymentCallbackRequestDto | ❌ | | - - diff --git a/documentation/models/ApiPaymentViewingInfoResponseDto.md b/documentation/models/ApiPaymentViewingInfoResponseDto.md deleted file mode 100644 index bb8cff4..0000000 --- a/documentation/models/ApiPaymentViewingInfoResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPaymentViewingInfoResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :----- | :------- | :---------------------------- | -| invoiceViewedDate | String | ❌ | Invoice viewing date and time | -| boletoViewedDate | String | ❌ | Bill viewing date and time | - - diff --git a/documentation/models/ApiPixAddressKeyGetResponseDto.md b/documentation/models/ApiPixAddressKeyGetResponseDto.md deleted file mode 100644 index e10156f..0000000 --- a/documentation/models/ApiPixAddressKeyGetResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPixAddressKeyGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :--------------------------------------------- | :------- | :---------------------------------------- | -| id | String | ❌ | Unique Pix key identifier in Asaas | -| key | String | ❌ | Key value | -| type | ApiPixAddressKeyGetResponsePixAddressKeyType | ❌ | Pix key type | -| status | ApiPixAddressKeyGetResponsePixAddressKeyStatus | ❌ | Key status | -| dateCreated | String | ❌ | Key creation date | -| canBeDeleted | Boolean | ❌ | Determines whether the key can be deleted | -| cannotBeDeletedReason | String | ❌ | Reason it cannot be removed | -| qrCode | ApiPixAddressKeyQrCodeGetResponseDto | ❌ | | - - diff --git a/documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.md b/documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.md deleted file mode 100644 index bd3d5ab..0000000 --- a/documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPixAddressKeyGetResponsePixAddressKeyStatus - -Key status - -**Properties** - -| Name | Type | Required | Description | -| :------------------------ | :----- | :------- | :-------------------------- | -| AWAITING_ACTIVATION | String | ✅ | "AWAITING_ACTIVATION" | -| ACTIVE | String | ✅ | "ACTIVE" | -| AWAITING_DELETION | String | ✅ | "AWAITING_DELETION" | -| AWAITING_ACCOUNT_DELETION | String | ✅ | "AWAITING_ACCOUNT_DELETION" | -| DELETED | String | ✅ | "DELETED" | -| ERROR | String | ✅ | "ERROR" | - - diff --git a/documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyType.md b/documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyType.md deleted file mode 100644 index 93e22f7..0000000 --- a/documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyType.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPixAddressKeyGetResponsePixAddressKeyType - -Pix key type - -**Properties** - -| Name | Type | Required | Description | -| :--- | :----- | :------- | :---------- | -| EVP | String | ✅ | "EVP" | - - diff --git a/documentation/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.md b/documentation/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.md deleted file mode 100644 index 4e5d8c8..0000000 --- a/documentation/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPixAddressKeyListRequestPixAddressKeyStatus - -Filter by current key status - -**Properties** - -| Name | Type | Required | Description | -| :------------------------ | :----- | :------- | :-------------------------- | -| AWAITING_ACTIVATION | String | ✅ | "AWAITING_ACTIVATION" | -| ACTIVE | String | ✅ | "ACTIVE" | -| AWAITING_DELETION | String | ✅ | "AWAITING_DELETION" | -| AWAITING_ACCOUNT_DELETION | String | ✅ | "AWAITING_ACCOUNT_DELETION" | -| DELETED | String | ✅ | "DELETED" | -| ERROR | String | ✅ | "ERROR" | - - diff --git a/documentation/models/ApiPixAddressKeyListResponseDto.md b/documentation/models/ApiPixAddressKeyListResponseDto.md deleted file mode 100644 index 5923a87..0000000 --- a/documentation/models/ApiPixAddressKeyListResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiPixAddressKeyListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--- | :------------------------------------- | :------- | :-------------- | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPixAddressKeyQrCodeGetResponseDto.md b/documentation/models/ApiPixAddressKeyQrCodeGetResponseDto.md deleted file mode 100644 index 2a39584..0000000 --- a/documentation/models/ApiPixAddressKeyQrCodeGetResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPixAddressKeyQrCodeGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------------------ | -| encodedImage | String | ❌ | QrCode image in base64 | -| payload | String | ❌ | Copy and Paste the QrCode | - - diff --git a/documentation/models/ApiPixAddressKeySaveRequestDto.md b/documentation/models/ApiPixAddressKeySaveRequestDto.md deleted file mode 100644 index 869e6e6..0000000 --- a/documentation/models/ApiPixAddressKeySaveRequestDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiPixAddressKeySaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :--- | :------------------------------------------- | :------- | :----------- | -| type | ApiPixAddressKeySaveRequestPixAddressKeyType | ✅ | Pix key type | - - diff --git a/documentation/models/ApiPixAddressKeySaveRequestPixAddressKeyType.md b/documentation/models/ApiPixAddressKeySaveRequestPixAddressKeyType.md deleted file mode 100644 index 5a36c55..0000000 --- a/documentation/models/ApiPixAddressKeySaveRequestPixAddressKeyType.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPixAddressKeySaveRequestPixAddressKeyType - -Pix key type - -**Properties** - -| Name | Type | Required | Description | -| :--- | :----- | :------- | :---------- | -| EVP | String | ✅ | "EVP" | - - diff --git a/documentation/models/ApiPixOriginalTransactionResponseDto.md b/documentation/models/ApiPixOriginalTransactionResponseDto.md deleted file mode 100644 index 609bdaa..0000000 --- a/documentation/models/ApiPixOriginalTransactionResponseDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPixOriginalTransactionResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------- | :----- | :------- | :----------------------------------------------------------- | -| id | String | ❌ | Unique transaction identifier | -| endToEndIdentifier | String | ❌ | Unique identifier of the Pix transaction at the Central Bank | -| value | Double | ❌ | Original transaction value | -| effectiveDate | String | ❌ | Transaction date | - - diff --git a/documentation/models/ApiPixQrCodeDecodeReceiverDto.md b/documentation/models/ApiPixQrCodeDecodeReceiverDto.md deleted file mode 100644 index 5afc315..0000000 --- a/documentation/models/ApiPixQrCodeDecodeReceiverDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPixQrCodeDecodeReceiverDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :--------------------------------------- | :------- | :-------------------------------- | -| ispb | String | ❌ | Financial institution code | -| ispbName | String | ❌ | Name of the financial institution | -| name | String | ❌ | Receiver name | -| tradingName | String | ❌ | Receiver's trade name | -| cpfCnpj | String | ❌ | CPF or CNPJ of the receiver | -| personType | ApiPixQrCodeDecodeReceiverPersonType | ❌ | Person type | -| accountType | ApiPixQrCodeDecodeReceiverPixAccountType | ❌ | Receiver account type | - - diff --git a/documentation/models/ApiPixQrCodeDecodeReceiverPersonType.md b/documentation/models/ApiPixQrCodeDecodeReceiverPersonType.md deleted file mode 100644 index 4466a5e..0000000 --- a/documentation/models/ApiPixQrCodeDecodeReceiverPersonType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPixQrCodeDecodeReceiverPersonType - -Person type - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| JURIDICA | String | ✅ | "JURIDICA" | -| FISICA | String | ✅ | "FISICA" | - - diff --git a/documentation/models/ApiPixQrCodeDecodeReceiverPixAccountType.md b/documentation/models/ApiPixQrCodeDecodeReceiverPixAccountType.md deleted file mode 100644 index 686abcc..0000000 --- a/documentation/models/ApiPixQrCodeDecodeReceiverPixAccountType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPixQrCodeDecodeReceiverPixAccountType - -Receiver account type - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :----- | :------- | :-------------------- | -| CHECKING_ACCOUNT | String | ✅ | "CHECKING_ACCOUNT" | -| SALARY_ACCOUNT | String | ✅ | "SALARY_ACCOUNT" | -| INVESTIMENT_ACCOUNT | String | ✅ | "INVESTIMENT_ACCOUNT" | -| PAYMENT_ACCOUNT | String | ✅ | "PAYMENT_ACCOUNT" | - - diff --git a/documentation/models/ApiPixQrCodeDecodeRequestDto.md b/documentation/models/ApiPixQrCodeDecodeRequestDto.md deleted file mode 100644 index 012a61f..0000000 --- a/documentation/models/ApiPixQrCodeDecodeRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPixQrCodeDecodeRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :-------------------------------- | -| payload | String | ✅ | QRCode payload | -| changeValue | Double | ❌ | Change amount (for QRCode Change) | - - diff --git a/documentation/models/ApiPixQrCodeDecodeResponseDto.md b/documentation/models/ApiPixQrCodeDecodeResponseDto.md deleted file mode 100644 index 380026e..0000000 --- a/documentation/models/ApiPixQrCodeDecodeResponseDto.md +++ /dev/null @@ -1,29 +0,0 @@ -# ApiPixQrCodeDecodeResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------------- | :-------------------------------------------------------- | :------- | :--------------------------------------------------------- | -| payload | String | ❌ | Copy and Paste of the QRCode | -| type | ApiPixQrCodeDecodeResponsePixQrCodeType | ❌ | QRCode Type | -| transactionOriginType | ApiPixQrCodeDecodeResponsePixTransactionOriginType | ❌ | Transaction origin | -| pixKey | String | ❌ | Pix key used | -| conciliationIdentifier | String | ❌ | Unique Pix reconciliation identifier with Asaas | -| dueDate | String | ❌ | Due date | -| expirationDate | String | ❌ | Expiration date | -| finality | ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality | ❌ | Used to indicate whether it is a Withdrawal or Change | -| value | Double | ❌ | QRCode Value | -| changeValue | Double | ❌ | Change value | -| interest | Double | ❌ | Interest value | -| fine | Double | ❌ | Fine value | -| discount | Double | ❌ | Discount value | -| totalValue | Double | ❌ | Total amount with fine, interest and discount applied | -| canBePaidWithDifferentValue | Boolean | ❌ | Informs if the QRCode can be paid with another amount | -| canBeModifyChangeValue | Boolean | ❌ | Informs whether the change can be paid with another amount | -| receiver | ApiPixQrCodeDecodeReceiverDto | ❌ | | -| payer | ApiPixTransactionQrCodePayerResponseDto | ❌ | | -| description | String | ❌ | Description provided during the creation of the QRCode | -| canBePaid | Boolean | ❌ | Informs if the QRCode can be paid | -| cannotBePaidReason | String | ❌ | Informs why QRCode cannot be paid | - - diff --git a/documentation/models/ApiPixQrCodeDecodeResponsePixQrCodeType.md b/documentation/models/ApiPixQrCodeDecodeResponsePixQrCodeType.md deleted file mode 100644 index 0a4068c..0000000 --- a/documentation/models/ApiPixQrCodeDecodeResponsePixQrCodeType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPixQrCodeDecodeResponsePixQrCodeType - -QRCode Type - -**Properties** - -| Name | Type | Required | Description | -| :----------------------------- | :----- | :------- | :------------------------------- | -| STATIC\_ | String | ✅ | "STATIC" | -| DYNAMIC | String | ✅ | "DYNAMIC" | -| DYNAMIC_WITH_ASAAS_ADDRESS_KEY | String | ✅ | "DYNAMIC_WITH_ASAAS_ADDRESS_KEY" | -| COMPOSITE | String | ✅ | "COMPOSITE" | - - diff --git a/documentation/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.md b/documentation/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.md deleted file mode 100644 index cf07467..0000000 --- a/documentation/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality - -Used to indicate whether it is a Withdrawal or Change - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----- | :------- | :----------- | -| WITHDRAWAL | String | ✅ | "WITHDRAWAL" | -| CHANGE | String | ✅ | "CHANGE" | - - diff --git a/documentation/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.md b/documentation/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.md deleted file mode 100644 index c9aacae..0000000 --- a/documentation/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPixQrCodeDecodeResponsePixTransactionOriginType - -Transaction origin - -**Properties** - -| Name | Type | Required | Description | -| :------------------------- | :----- | :------- | :--------------------------- | -| MANUAL | String | ✅ | "MANUAL" | -| ADDRESS_KEY | String | ✅ | "ADDRESS_KEY" | -| STATIC_QRCODE | String | ✅ | "STATIC_QRCODE" | -| DYNAMIC_QRCODE | String | ✅ | "DYNAMIC_QRCODE" | -| PAYMENT_INITIATION_SERVICE | String | ✅ | "PAYMENT_INITIATION_SERVICE" | -| AUTOMATIC_RECURRING | String | ✅ | "AUTOMATIC_RECURRING" | - - diff --git a/documentation/models/ApiPixQrCodeDeleteResponseDto.md b/documentation/models/ApiPixQrCodeDeleteResponseDto.md deleted file mode 100644 index 8787066..0000000 --- a/documentation/models/ApiPixQrCodeDeleteResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPixQrCodeDeleteResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :--------------------------------------------- | -| id | String | ❌ | QR Code identifier | -| deleted | Boolean | ❌ | Indicates whether the QR Code has been removed | - - diff --git a/documentation/models/ApiPixQrCodeSaveRequestDto.md b/documentation/models/ApiPixQrCodeSaveRequestDto.md deleted file mode 100644 index 4589e0f..0000000 --- a/documentation/models/ApiPixQrCodeSaveRequestDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPixQrCodeSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------------- | :------ | :------- | :----------------------------------------------------------------------------------------------- | -| addressKey | String | ❌ | Key that will receive QrCode payments | -| description | String | ❌ | QrCode Description | -| value | Double | ❌ | Value of the QrCode, if not informed, the payer can choose the value | -| format | Format | ❌ | QrCode Format | -| expirationDate | String | ❌ | QrCode expiration date/time, after this date all payments will be refused. | -| expirationSeconds | Long | ❌ | Determines the expiration date in seconds. | -| allowsMultiplePayments | Boolean | ❌ | Defines whether the QrCode can be paid multiple times, if not entered the default value is true. | -| externalReference | String | ❌ | Free search field | - - diff --git a/documentation/models/ApiPixQrCodeSaveResponseDto.md b/documentation/models/ApiPixQrCodeSaveResponseDto.md deleted file mode 100644 index c61407d..0000000 --- a/documentation/models/ApiPixQrCodeSaveResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPixQrCodeSaveResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------------- | :------ | :------- | :------------------------------------------------------------------------ | -| id | String | ❌ | qrCode image in base64 | -| encodedImage | String | ❌ | QrCode identifier | -| payload | String | ❌ | Copy and Paste the QrCode | -| allowsMultiplePayments | Boolean | ❌ | Indicates whether multiple payments are allowed | -| expirationDate | String | ❌ | QrCode expiration date/time, after this date all payments will be refused | -| externalReference | String | ❌ | Free search field | - - diff --git a/documentation/models/ApiPixTokenBucketGetAddressKeyResponseDto.md b/documentation/models/ApiPixTokenBucketGetAddressKeyResponseDto.md deleted file mode 100644 index b9fcc59..0000000 --- a/documentation/models/ApiPixTokenBucketGetAddressKeyResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPixTokenBucketGetAddressKeyResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :--- | :------- | :--------------------- | -| capacity | Long | ❌ | Maximum token capacity | -| remaining | Long | ❌ | Available tokens | - - diff --git a/documentation/models/ApiPixTransactionExternalAccountResponseDto.md b/documentation/models/ApiPixTransactionExternalAccountResponseDto.md deleted file mode 100644 index c32a98e..0000000 --- a/documentation/models/ApiPixTransactionExternalAccountResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPixTransactionExternalAccountResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------- | :-------------------------------------------------------- | :------- | :----------------------------- | -| ispb | String | ❌ | Payment Institution Identifier | -| ispbName | String | ❌ | Name of Payment Institution | -| name | String | ❌ | Receiver name | -| cpfCnpj | String | ❌ | CPF or CNPJ of the recipient | -| addressKey | String | ❌ | Pix Key | -| addressKeyType | ApiPixTransactionExternalAccountResponsePixAddressKeyType | ❌ | Pix key type | - - diff --git a/documentation/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.md b/documentation/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.md deleted file mode 100644 index 414a5c8..0000000 --- a/documentation/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPixTransactionExternalAccountResponsePixAddressKeyType - -Pix key type - -**Properties** - -| Name | Type | Required | Description | -| :---- | :----- | :------- | :---------- | -| CPF | String | ✅ | "CPF" | -| CNPJ | String | ✅ | "CNPJ" | -| EMAIL | String | ✅ | "EMAIL" | -| PHONE | String | ✅ | "PHONE" | -| EVP | String | ✅ | "EVP" | - - diff --git a/documentation/models/ApiPixTransactionGetResponseDto.md b/documentation/models/ApiPixTransactionGetResponseDto.md deleted file mode 100644 index c6e99bc..0000000 --- a/documentation/models/ApiPixTransactionGetResponseDto.md +++ /dev/null @@ -1,36 +0,0 @@ -# ApiPixTransactionGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------------- | :---------------------------------------------------------- | :------- | :------------------------------------------------------------------------- | -| id | String | ❌ | Unique identifier of the Pix transaction in Asaas | -| endToEndIdentifier | String | ❌ | Pix transaction identifier at the Central Bank | -| finality | ApiPixTransactionGetResponsePixTransactionCashValueFinality | ❌ | Used to indicate whether it is a Withdrawal or Change | -| value | Double | ❌ | Transaction or Withdrawal Value | -| changeValue | Double | ❌ | Change value | -| refundedValue | Double | ❌ | Value reversed | -| effectiveDate | String | ❌ | Transaction date | -| scheduledDate | String | ❌ | Schedule date | -| status | ApiPixTransactionGetResponsePixTransactionStatus | ❌ | Transaction status | -| type | ApiPixTransactionGetResponsePixTransactionType | ❌ | Transaction type | -| originType | ApiPixTransactionGetResponsePixTransactionOriginType | ❌ | Indicates the origin of the transaction | -| conciliationIdentifier | String | ❌ | QrCode identifier linked to the transaction | -| description | String | ❌ | Description about the transaction | -| transactionReceiptUrl | String | ❌ | Proof of transaction will be available after the transaction is confirmed. | -| refusalReason | String | ❌ | Reason why the transaction was declined | -| canBeCanceled | Boolean | ❌ | Indicates whether the transaction can be canceled | -| originalTransaction | ApiPixOriginalTransactionResponseDto | ❌ | | -| externalAccount | ApiPixTransactionExternalAccountResponseDto | ❌ | | -| qrCode | ApiPixTransactionQrCodeResponseDto | ❌ | | -| payment | String | ❌ | Unique billing identifier | -| canBeRefunded | Boolean | ❌ | Indicates whether the transaction can be refunded | -| refundDisabledReason | String | ❌ | Reason why the chargeback was disabled | -| chargedFeeValue | Double | ❌ | Debit or credit fee for the transaction | -| dateCreated | String | ❌ | Transaction creation date | -| addressKey | String | ❌ | Pix key when the transaction is a credit | -| addressKeyType | ApiPixTransactionGetResponsePixAddressKeyType | ❌ | Pix key type | -| transferId | String | ❌ | Transfer identifier | -| externalReference | String | ❌ | Free search field | - - diff --git a/documentation/models/ApiPixTransactionGetResponsePixAddressKeyType.md b/documentation/models/ApiPixTransactionGetResponsePixAddressKeyType.md deleted file mode 100644 index f5988b9..0000000 --- a/documentation/models/ApiPixTransactionGetResponsePixAddressKeyType.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPixTransactionGetResponsePixAddressKeyType - -Pix key type - -**Properties** - -| Name | Type | Required | Description | -| :---- | :----- | :------- | :---------- | -| CPF | String | ✅ | "CPF" | -| CNPJ | String | ✅ | "CNPJ" | -| EMAIL | String | ✅ | "EMAIL" | -| PHONE | String | ✅ | "PHONE" | -| EVP | String | ✅ | "EVP" | - - diff --git a/documentation/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.md b/documentation/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.md deleted file mode 100644 index 7198610..0000000 --- a/documentation/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPixTransactionGetResponsePixTransactionCashValueFinality - -Used to indicate whether it is a Withdrawal or Change - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :----- | :------- | :----------- | -| WITHDRAWAL | String | ✅ | "WITHDRAWAL" | -| CHANGE | String | ✅ | "CHANGE" | - - diff --git a/documentation/models/ApiPixTransactionGetResponsePixTransactionOriginType.md b/documentation/models/ApiPixTransactionGetResponsePixTransactionOriginType.md deleted file mode 100644 index 30de9cb..0000000 --- a/documentation/models/ApiPixTransactionGetResponsePixTransactionOriginType.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPixTransactionGetResponsePixTransactionOriginType - -Indicates the origin of the transaction - -**Properties** - -| Name | Type | Required | Description | -| :------------------------- | :----- | :------- | :--------------------------- | -| MANUAL | String | ✅ | "MANUAL" | -| ADDRESS_KEY | String | ✅ | "ADDRESS_KEY" | -| STATIC_QRCODE | String | ✅ | "STATIC_QRCODE" | -| DYNAMIC_QRCODE | String | ✅ | "DYNAMIC_QRCODE" | -| PAYMENT_INITIATION_SERVICE | String | ✅ | "PAYMENT_INITIATION_SERVICE" | -| AUTOMATIC_RECURRING | String | ✅ | "AUTOMATIC_RECURRING" | - - diff --git a/documentation/models/ApiPixTransactionGetResponsePixTransactionStatus.md b/documentation/models/ApiPixTransactionGetResponsePixTransactionStatus.md deleted file mode 100644 index 5d9625f..0000000 --- a/documentation/models/ApiPixTransactionGetResponsePixTransactionStatus.md +++ /dev/null @@ -1,21 +0,0 @@ -# ApiPixTransactionGetResponsePixTransactionStatus - -Transaction status - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------------------- | :----- | :------- | :----------------------------------------- | -| AWAITING_BALANCE_VALIDATION | String | ✅ | "AWAITING_BALANCE_VALIDATION" | -| AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE | String | ✅ | "AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE" | -| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | -| AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST | String | ✅ | "AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST" | -| AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST | String | ✅ | "AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST" | -| SCHEDULED | String | ✅ | "SCHEDULED" | -| AWAITING_REQUEST | String | ✅ | "AWAITING_REQUEST" | -| REQUESTED | String | ✅ | "REQUESTED" | -| DONE | String | ✅ | "DONE" | -| REFUSED | String | ✅ | "REFUSED" | -| CANCELLED | String | ✅ | "CANCELLED" | - - diff --git a/documentation/models/ApiPixTransactionGetResponsePixTransactionType.md b/documentation/models/ApiPixTransactionGetResponsePixTransactionType.md deleted file mode 100644 index 6632175..0000000 --- a/documentation/models/ApiPixTransactionGetResponsePixTransactionType.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPixTransactionGetResponsePixTransactionType - -Transaction type - -**Properties** - -| Name | Type | Required | Description | -| :------------------------ | :----- | :------- | :-------------------------- | -| DEBIT | String | ✅ | "DEBIT" | -| CREDIT | String | ✅ | "CREDIT" | -| CREDIT_REFUND | String | ✅ | "CREDIT_REFUND" | -| DEBIT_REFUND | String | ✅ | "DEBIT_REFUND" | -| DEBIT_REFUND_CANCELLATION | String | ✅ | "DEBIT_REFUND_CANCELLATION" | - - diff --git a/documentation/models/ApiPixTransactionListRequestPixTransactionStatus.md b/documentation/models/ApiPixTransactionListRequestPixTransactionStatus.md deleted file mode 100644 index 28806df..0000000 --- a/documentation/models/ApiPixTransactionListRequestPixTransactionStatus.md +++ /dev/null @@ -1,21 +0,0 @@ -# ApiPixTransactionListRequestPixTransactionStatus - -Filter by transaction status - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------------------- | :----- | :------- | :----------------------------------------- | -| AWAITING_BALANCE_VALIDATION | String | ✅ | "AWAITING_BALANCE_VALIDATION" | -| AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE | String | ✅ | "AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE" | -| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | -| AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST | String | ✅ | "AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST" | -| AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST | String | ✅ | "AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST" | -| SCHEDULED | String | ✅ | "SCHEDULED" | -| AWAITING_REQUEST | String | ✅ | "AWAITING_REQUEST" | -| REQUESTED | String | ✅ | "REQUESTED" | -| DONE | String | ✅ | "DONE" | -| REFUSED | String | ✅ | "REFUSED" | -| CANCELLED | String | ✅ | "CANCELLED" | - - diff --git a/documentation/models/ApiPixTransactionListRequestPixTransactionType.md b/documentation/models/ApiPixTransactionListRequestPixTransactionType.md deleted file mode 100644 index 646b63d..0000000 --- a/documentation/models/ApiPixTransactionListRequestPixTransactionType.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPixTransactionListRequestPixTransactionType - -Filter by transaction type - -**Properties** - -| Name | Type | Required | Description | -| :------------------------ | :----- | :------- | :-------------------------- | -| DEBIT | String | ✅ | "DEBIT" | -| CREDIT | String | ✅ | "CREDIT" | -| CREDIT_REFUND | String | ✅ | "CREDIT_REFUND" | -| DEBIT_REFUND | String | ✅ | "DEBIT_REFUND" | -| DEBIT_REFUND_CANCELLATION | String | ✅ | "DEBIT_REFUND_CANCELLATION" | - - diff --git a/documentation/models/ApiPixTransactionListResponseDto.md b/documentation/models/ApiPixTransactionListResponseDto.md deleted file mode 100644 index 792fd1f..0000000 --- a/documentation/models/ApiPixTransactionListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPixTransactionListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :-------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPixTransactionQrCodePayerResponseDto.md b/documentation/models/ApiPixTransactionQrCodePayerResponseDto.md deleted file mode 100644 index 0feeeb3..0000000 --- a/documentation/models/ApiPixTransactionQrCodePayerResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPixTransactionQrCodePayerResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :----- | :------- | :----------------------- | -| name | String | ❌ | Payer's name | -| cpfCnpj | String | ❌ | CPF or CNPJ of the payer | - - diff --git a/documentation/models/ApiPixTransactionQrCodeResponseDto.md b/documentation/models/ApiPixTransactionQrCodeResponseDto.md deleted file mode 100644 index 75605a4..0000000 --- a/documentation/models/ApiPixTransactionQrCodeResponseDto.md +++ /dev/null @@ -1,16 +0,0 @@ -# ApiPixTransactionQrCodeResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------------------- | :-------------------------------------- | :------- | :---------------------------------------------- | -| payer | ApiPixTransactionQrCodePayerResponseDto | ❌ | | -| conciliationIdentifier | String | ❌ | Unique Pix reconciliation identifier with Asaas | -| originalValue | Double | ❌ | Original transaction value | -| dueDate | String | ❌ | Due date | -| interest | Double | ❌ | Interest value | -| fine | Double | ❌ | Fine value | -| discount | Double | ❌ | Discount amount | -| expirationDate | String | ❌ | Expiration date | - - diff --git a/documentation/models/ApiPixTransactionQrCodeSaveRequestDto.md b/documentation/models/ApiPixTransactionQrCodeSaveRequestDto.md deleted file mode 100644 index 802028d..0000000 --- a/documentation/models/ApiPixTransactionQrCodeSaveRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPixTransactionQrCodeSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :-------------------------------- | -| payload | String | ✅ | QRCode payload | -| changeValue | Double | ❌ | Change amount (for QRCode Change) | - - diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.md b/documentation/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.md deleted file mode 100644 index a5cefb4..0000000 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------- | :----- | :------- | :----------------------- | -| name | String | ❌ | Receiver name | -| financialInstitutionName | String | ❌ | Payment institution name | -| cpfCnpj | String | ❌ | Receiver CPF or CNPJ | -| pixKey | String | ❌ | Receiver Pix key | - - diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.md b/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.md deleted file mode 100644 index a1fee80..0000000 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------------------- | :---------------------------------------------------------------------------------------------- | :------- | :------------------------------------------- | -| id | String | ❌ | Unique recurrence item identifier in Asaas | -| status | ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus | ❌ | Recurrence item status | -| scheduledDate | String | ❌ | Recurrence item scheduled date | -| canBeCancelled | Boolean | ❌ | Whether the recurrence item can be cancelled | -| recurrenceNumber | Long | ❌ | Recurrence number | -| quantity | Long | ❌ | Number of repetitions | -| value | Double | ❌ | Recurrence value | -| refusalReasonDescription | String | ❌ | Recurrence item refusal reason | -| externalAccount | ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto | ❌ | | - - diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.md b/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.md deleted file mode 100644 index 6acde34..0000000 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus - -Recurrence item status - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :----- | :------- | :---------- | -| PENDING | String | ✅ | "PENDING" | -| CANCELLED | String | ✅ | "CANCELLED" | -| REFUSED | String | ✅ | "REFUSED" | -| DONE | String | ✅ | "DONE" | - - diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.md b/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.md deleted file mode 100644 index 610fab4..0000000 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApiPixTransactionRecurringCheckoutScheduleGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :-------------------------------------------------------------------------------------- | :------- | :-------------------------------------- | -| id | String | ❌ | Unique recurrence identifier in Asaas | -| status | ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus | ❌ | Recurrence status | -| origin | ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin | ❌ | Indicates the origin of the recurrence | -| value | Double | ❌ | Recurrence value | -| frequency | ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency | ❌ | Recurrence frequency | -| quantity | Long | ❌ | Number of repetitions | -| startDate | String | ❌ | Recurrence start date | -| finishDate | String | ❌ | Recurrence finish date | -| canBeCancelled | Boolean | ❌ | Whether the recurrence can be cancelled | -| externalAccount | ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto | ❌ | | - - diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.md b/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.md deleted file mode 100644 index a903401..0000000 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency - -Recurrence frequency - -**Properties** - -| Name | Type | Required | Description | -| :------ | :----- | :------- | :---------- | -| WEEKLY | String | ✅ | "WEEKLY" | -| MONTHLY | String | ✅ | "MONTHLY" | - - diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.md b/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.md deleted file mode 100644 index 8a75d01..0000000 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin - -Indicates the origin of the recurrence - -**Properties** - -| Name | Type | Required | Description | -| :--- | :----- | :------- | :---------- | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.md b/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.md deleted file mode 100644 index d1c23ca..0000000 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus - -Recurrence status - -**Properties** - -| Name | Type | Required | Description | -| :------------------------------------- | :----- | :------- | :--------------------------------------- | -| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | -| PENDING | String | ✅ | "PENDING" | -| SCHEDULED | String | ✅ | "SCHEDULED" | -| CANCELLED | String | ✅ | "CANCELLED" | -| DONE | String | ✅ | "DONE" | - - diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.md b/documentation/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.md deleted file mode 100644 index 1d766bd..0000000 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--- | :------------------------------------------------------------------- | :------- | :-------------- | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.md b/documentation/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.md deleted file mode 100644 index c3f0c5e..0000000 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus - -Filter by recurrence status - -**Properties** - -| Name | Type | Required | Description | -| :------------------------------------- | :----- | :------- | :--------------------------------------- | -| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | -| PENDING | String | ✅ | "PENDING" | -| SCHEDULED | String | ✅ | "SCHEDULED" | -| CANCELLED | String | ✅ | "CANCELLED" | -| DONE | String | ✅ | "DONE" | - - diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.md b/documentation/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.md deleted file mode 100644 index 123ef47..0000000 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPixTransactionRecurringCheckoutScheduleListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :--------------------------------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPixTransactionSaveRequestDto.md b/documentation/models/ApiPixTransactionSaveRequestDto.md deleted file mode 100644 index bd2331e..0000000 --- a/documentation/models/ApiPixTransactionSaveRequestDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPixTransactionSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :------------------------------------ | :------- | :----------------------- | -| qrCode | ApiPixTransactionQrCodeSaveRequestDto | ✅ | | -| value | Double | ✅ | Value to be paid | -| description | String | ❌ | Payment Description | -| scheduleDate | String | ❌ | Used to schedule payment | - - diff --git a/documentation/models/ApiPushNotificationConfigDeleteResponseDto.md b/documentation/models/ApiPushNotificationConfigDeleteResponseDto.md deleted file mode 100644 index 53f2000..0000000 --- a/documentation/models/ApiPushNotificationConfigDeleteResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiPushNotificationConfigDeleteResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :---------------------------------------- | -| deleted | Boolean | ❌ | Indicates whether the Webhook was removed | -| id | String | ❌ | Unique Webhook Identifier | - - diff --git a/documentation/models/ApiPushNotificationConfigGetResponseDto.md b/documentation/models/ApiPushNotificationConfigGetResponseDto.md deleted file mode 100644 index 41ac6df..0000000 --- a/documentation/models/ApiPushNotificationConfigGetResponseDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApiPushNotificationConfigGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----------------------------------------------------------- | :------- | :---------------------------------------------------------------------- | -| id | String | ❌ | Unique Webhook Identifier | -| name | String | ❌ | Webhook name | -| url | String | ❌ | Webhook URL | -| email | String | ❌ | Email that will receive notifications about the Webhook | -| enabled | Boolean | ❌ | Set whether the Webhook is active | -| interrupted | Boolean | ❌ | Set whether the sync queue is stopped | -| apiVersion | Long | ❌ | API Version | -| hasAuthToken | Boolean | ❌ | Indicates whether an authentication token is registered for the webhook | -| sendType | ApiPushNotificationConfigGetResponsePushNotificationSendType | ❌ | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | -| events | List\ | ❌ | List of events this Webhook will observe | - - diff --git a/documentation/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.md b/documentation/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.md deleted file mode 100644 index e350243..0000000 --- a/documentation/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPushNotificationConfigGetResponsePushNotificationSendType - -Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) - -**Properties** - -| Name | Type | Required | Description | -| :--------------- | :----- | :------- | :----------------- | -| NON_SEQUENTIALLY | String | ✅ | "NON_SEQUENTIALLY" | -| SEQUENTIALLY | String | ✅ | "SEQUENTIALLY" | - - diff --git a/documentation/models/ApiPushNotificationConfigListResponseDto.md b/documentation/models/ApiPushNotificationConfigListResponseDto.md deleted file mode 100644 index 3e1d7a5..0000000 --- a/documentation/models/ApiPushNotificationConfigListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiPushNotificationConfigListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :---------------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiPushNotificationConfigSaveRequestDto.md b/documentation/models/ApiPushNotificationConfigSaveRequestDto.md deleted file mode 100644 index c064cb9..0000000 --- a/documentation/models/ApiPushNotificationConfigSaveRequestDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiPushNotificationConfigSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----------------------------------------------------------- | :------- | :------------------------------------------------------------- | -| name | String | ❌ | Webhook name | -| url | String | ❌ | Webhook URL | -| email | String | ❌ | Email that will receive notifications about the Webhook | -| enabled | Boolean | ❌ | Set whether the Webhook is active | -| interrupted | Boolean | ❌ | Set whether the sync queue is stopped | -| apiVersion | Long | ❌ | API Version | -| authToken | String | ❌ | Webhook authentication token | -| sendType | ApiPushNotificationConfigSaveRequestPushNotificationSendType | ❌ | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | -| events | List\ | ❌ | List of events this Webhook will observe | - - diff --git a/documentation/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.md b/documentation/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.md deleted file mode 100644 index e96781b..0000000 --- a/documentation/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPushNotificationConfigSaveRequestPushNotificationSendType - -Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) - -**Properties** - -| Name | Type | Required | Description | -| :--------------- | :----- | :------- | :----------------- | -| NON_SEQUENTIALLY | String | ✅ | "NON_SEQUENTIALLY" | -| SEQUENTIALLY | String | ✅ | "SEQUENTIALLY" | - - diff --git a/documentation/models/ApiPushNotificationConfigUpdateRequestDto.md b/documentation/models/ApiPushNotificationConfigUpdateRequestDto.md deleted file mode 100644 index 534378e..0000000 --- a/documentation/models/ApiPushNotificationConfigUpdateRequestDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiPushNotificationConfigUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :------------------------------------------------------------- | :------- | :------------------------------------------------------------- | -| name | String | ❌ | Webhook name | -| url | String | ❌ | Event destination URL | -| sendType | ApiPushNotificationConfigUpdateRequestPushNotificationSendType | ❌ | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | -| enabled | Boolean | ❌ | Set whether the Webhook is active | -| interrupted | Boolean | ❌ | Set whether the sync queue is stopped | -| authToken | String | ❌ | Webhook authentication token | -| events | List\ | ❌ | List of events this Webhook will observe | - - diff --git a/documentation/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.md b/documentation/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.md deleted file mode 100644 index 5387973..0000000 --- a/documentation/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiPushNotificationConfigUpdateRequestPushNotificationSendType - -Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) - -**Properties** - -| Name | Type | Required | Description | -| :--------------- | :----- | :------- | :----------------- | -| NON_SEQUENTIALLY | String | ✅ | "NON_SEQUENTIALLY" | -| SEQUENTIALLY | String | ✅ | "SEQUENTIALLY" | - - diff --git a/documentation/models/ApiReceivableAnticipationConfigurationGetResponseDto.md b/documentation/models/ApiReceivableAnticipationConfigurationGetResponseDto.md deleted file mode 100644 index 1d3d28d..0000000 --- a/documentation/models/ApiReceivableAnticipationConfigurationGetResponseDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiReceivableAnticipationConfigurationGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------------- | :------ | :------- | :--------------------------------------------------------------------------- | -| creditCardAutomaticEnabled | Boolean | ❌ | Indicates whether automatic anticipation is enabled for credit card payments | - - diff --git a/documentation/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.md b/documentation/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.md deleted file mode 100644 index c257ac1..0000000 --- a/documentation/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiReceivableAnticipationConfigurationUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------------- | :------ | :------- | :------------------------------------------------------------------------ | -| creditCardAutomaticEnabled | Boolean | ❌ | Define whether automatic anticipation is enabled for credit card payments | - - diff --git a/documentation/models/ApiReceivableAnticipationGetResponseDto.md b/documentation/models/ApiReceivableAnticipationGetResponseDto.md deleted file mode 100644 index 95b123a..0000000 --- a/documentation/models/ApiReceivableAnticipationGetResponseDto.md +++ /dev/null @@ -1,22 +0,0 @@ -# ApiReceivableAnticipationGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :--------------------------------------------------------------- | :------- | :----------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique identifier of anticipation in Asaas | -| installment | String | ❌ | Unique identifier of the installment to be anticipated | -| payment | String | ❌ | Unique identifier of the payment to be anticipated. | -| status | ApiReceivableAnticipationGetResponseReceivableAnticipationStatus | ❌ | Anticipation status | -| anticipationDate | String | ❌ | Anticipation request date | -| dueDate | String | ❌ | Request due date | -| requestDate | String | ❌ | Anticipation request date | -| fee | Double | ❌ | Anticipation fee | -| anticipationDays | Long | ❌ | Number of days that were anticipated | -| netValue | Double | ❌ | Net value discounted the anticipation fee | -| totalValue | Double | ❌ | Total amount of the payment to be anticipated | -| value | Double | ❌ | Anticipation value | -| denialObservation | String | ❌ | Reason for rejecting the anticipation payment | - - diff --git a/documentation/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.md b/documentation/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.md deleted file mode 100644 index da9ca8d..0000000 --- a/documentation/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiReceivableAnticipationGetResponseReceivableAnticipationStatus - -Anticipation status - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :----- | :------- | :---------- | -| PENDING | String | ✅ | "PENDING" | -| DENIED | String | ✅ | "DENIED" | -| CREDITED | String | ✅ | "CREDITED" | -| DEBITED | String | ✅ | "DEBITED" | -| CANCELLED | String | ✅ | "CANCELLED" | -| OVERDUE | String | ✅ | "OVERDUE" | -| SCHEDULED | String | ✅ | "SCHEDULED" | - - diff --git a/documentation/models/ApiReceivableAnticipationLimitsInfoResponseDto.md b/documentation/models/ApiReceivableAnticipationLimitsInfoResponseDto.md deleted file mode 100644 index eec0a19..0000000 --- a/documentation/models/ApiReceivableAnticipationLimitsInfoResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiReceivableAnticipationLimitsInfoResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :----- | :------- | :----------------------------------------- | -| total | Double | ❌ | Anticipation limit released on the account | -| available | Double | ❌ | Limit available to anticipate | - - diff --git a/documentation/models/ApiReceivableAnticipationLimitsResponseDto.md b/documentation/models/ApiReceivableAnticipationLimitsResponseDto.md deleted file mode 100644 index 7f210fe..0000000 --- a/documentation/models/ApiReceivableAnticipationLimitsResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiReceivableAnticipationLimitsResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :--------------------------------------------- | :------- | :---------- | -| creditCard | ApiReceivableAnticipationLimitsInfoResponseDto | ❌ | | -| bankSlip | ApiReceivableAnticipationLimitsInfoResponseDto | ❌ | | - - diff --git a/documentation/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.md b/documentation/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.md deleted file mode 100644 index 254c6bf..0000000 --- a/documentation/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiReceivableAnticipationListRequestReceivableAnticipationStatus - -Filter by status - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :----- | :------- | :---------- | -| PENDING | String | ✅ | "PENDING" | -| DENIED | String | ✅ | "DENIED" | -| CREDITED | String | ✅ | "CREDITED" | -| DEBITED | String | ✅ | "DEBITED" | -| CANCELLED | String | ✅ | "CANCELLED" | -| OVERDUE | String | ✅ | "OVERDUE" | -| SCHEDULED | String | ✅ | "SCHEDULED" | - - diff --git a/documentation/models/ApiReceivableAnticipationListResponseDto.md b/documentation/models/ApiReceivableAnticipationListResponseDto.md deleted file mode 100644 index cf4b6af..0000000 --- a/documentation/models/ApiReceivableAnticipationListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiReceivableAnticipationListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :---------------------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiReceivableAnticipationSaveRequestDto.md b/documentation/models/ApiReceivableAnticipationSaveRequestDto.md deleted file mode 100644 index b0f23de..0000000 --- a/documentation/models/ApiReceivableAnticipationSaveRequestDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiReceivableAnticipationSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :-------------------------------------- | -| installment | String | ❌ | ID of the installment to be anticipated | -| payment | String | ❌ | ID of the payment to be anticipated | -| documents | byte[] | ❌ | File | - - diff --git a/documentation/models/ApiReceivableAnticipationSimulateRequestDto.md b/documentation/models/ApiReceivableAnticipationSimulateRequestDto.md deleted file mode 100644 index 0918514..0000000 --- a/documentation/models/ApiReceivableAnticipationSimulateRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiReceivableAnticipationSimulateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :-------------------------------------- | -| installment | String | ❌ | ID of the installment to be anticipated | -| payment | String | ❌ | ID of the payment to be anticipated | - - diff --git a/documentation/models/ApiReceivableAnticipationSimulateResponseDto.md b/documentation/models/ApiReceivableAnticipationSimulateResponseDto.md deleted file mode 100644 index e9d612e..0000000 --- a/documentation/models/ApiReceivableAnticipationSimulateResponseDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApiReceivableAnticipationSimulateResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------------- | :------ | :------- | :------------------------------------------------------------------------------------------------------------------------ | -| installment | String | ❌ | Unique identifier of the installment to be anticipated | -| payment | String | ❌ | Unique identifier of the payment to be anticipated | -| anticipationDate | String | ❌ | Anticipation request date | -| dueDate | String | ❌ | Request due date | -| fee | Double | ❌ | Anticipation fee | -| anticipationDays | Long | ❌ | Number of days that were anticipated | -| netValue | Double | ❌ | Net value discounted the anticipation fee | -| totalValue | Double | ❌ | Total amount of the payment to be anticipated | -| value | Double | ❌ | Anticipation value | -| isDocumentationRequired | Boolean | ❌ | Determines the obligation to send electronic invoices or service provision contracts when requesting anticipation payment | - - diff --git a/documentation/models/ApiSubscriptionConfigureInvoiceRequestDto.md b/documentation/models/ApiSubscriptionConfigureInvoiceRequestDto.md deleted file mode 100644 index 59ec993..0000000 --- a/documentation/models/ApiSubscriptionConfigureInvoiceRequestDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApiSubscriptionConfigureInvoiceRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :----------------------------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------- | -| municipalServiceId | String | ❌ | Unique municipal service identifier | -| municipalServiceCode | String | ❌ | Municipal Service Code | -| municipalServiceName | String | ❌ | Name of municipal service | -| updatePayment | Boolean | ❌ | Update the Payment amount with the invoice taxes already deducted. | -| deductions | Double | ❌ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | -| effectiveDatePeriod | ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod | ❌ | When the invoice will be issued | -| receivedOnly | Boolean | ❌ | Issue only for paid charges | -| daysBeforeDueDate | Long | ❌ | Number of days before billing due date | -| observations | String | ❌ | Additional notes on the invoice | -| taxes | ApiCustomerInvoiceTaxesDto | ❌ | | - - diff --git a/documentation/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md b/documentation/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md deleted file mode 100644 index 13825c5..0000000 --- a/documentation/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod - -When the invoice will be issued - -**Properties** - -| Name | Type | Required | Description | -| :---------------------- | :----- | :------- | :------------------------ | -| ON_PAYMENT_CONFIRMATION | String | ✅ | "ON_PAYMENT_CONFIRMATION" | -| ON_PAYMENT_DUE_DATE | String | ✅ | "ON_PAYMENT_DUE_DATE" | -| BEFORE_PAYMENT_DUE_DATE | String | ✅ | "BEFORE_PAYMENT_DUE_DATE" | -| ON_DUE_DATE_MONTH | String | ✅ | "ON_DUE_DATE_MONTH" | -| ON_NEXT_MONTH | String | ✅ | "ON_NEXT_MONTH" | - - diff --git a/documentation/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.md b/documentation/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.md deleted file mode 100644 index 7a437bf..0000000 --- a/documentation/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiSubscriptionDeleteInvoiceConfigResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :------------------------------------------ | -| deleted | Boolean | ❌ | Informs if configurations have been removed | -| id | String | ❌ | Unique subscription identifier in Asaas | - - diff --git a/documentation/models/ApiSubscriptionDeleteResponseDto.md b/documentation/models/ApiSubscriptionDeleteResponseDto.md deleted file mode 100644 index e68e646..0000000 --- a/documentation/models/ApiSubscriptionDeleteResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiSubscriptionDeleteResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------ | :------ | :------- | :------------------------------------------- | -| deleted | Boolean | ❌ | Informs if the subscription has been removed | -| id | String | ❌ | Unique subscription identifier in Asaas | - - diff --git a/documentation/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.md b/documentation/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.md deleted file mode 100644 index 6cc5ef9..0000000 --- a/documentation/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.md +++ /dev/null @@ -1,21 +0,0 @@ -# ApiSubscriptionGetInvoicesRequestInvoiceStatus - -Filter by invoice status - -**Properties** - -| Name | Type | Required | Description | -| :---------------------- | :----- | :------- | :------------------------ | -| SCHEDULED | String | ✅ | "SCHEDULED" | -| WAITING_OVERDUE_PAYMENT | String | ✅ | "WAITING_OVERDUE_PAYMENT" | -| PENDING | String | ✅ | "PENDING" | -| SYNCHRONIZED\_ | String | ✅ | "SYNCHRONIZED" | -| AUTHORIZED | String | ✅ | "AUTHORIZED" | -| PROCESSING_CANCELLATION | String | ✅ | "PROCESSING_CANCELLATION" | -| CANCELLED | String | ✅ | "CANCELLED" | -| CANCELLATION_DENIED | String | ✅ | "CANCELLATION_DENIED" | -| ERROR | String | ✅ | "ERROR" | -| NONE | String | ✅ | "NONE" | -| CANCELED | String | ✅ | "CANCELED" | - - diff --git a/documentation/models/ApiSubscriptionGetResponseBillingType.md b/documentation/models/ApiSubscriptionGetResponseBillingType.md deleted file mode 100644 index 4200c38..0000000 --- a/documentation/models/ApiSubscriptionGetResponseBillingType.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiSubscriptionGetResponseBillingType - -Billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | -| TRANSFER | String | ✅ | "TRANSFER" | -| DEPOSIT | String | ✅ | "DEPOSIT" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiSubscriptionGetResponseCycle.md b/documentation/models/ApiSubscriptionGetResponseCycle.md deleted file mode 100644 index d8851d4..0000000 --- a/documentation/models/ApiSubscriptionGetResponseCycle.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiSubscriptionGetResponseCycle - -Billing frequency - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| WEEKLY | String | ✅ | "WEEKLY" | -| BIWEEKLY | String | ✅ | "BIWEEKLY" | -| MONTHLY | String | ✅ | "MONTHLY" | -| BIMONTHLY | String | ✅ | "BIMONTHLY" | -| QUARTERLY | String | ✅ | "QUARTERLY" | -| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | -| YEARLY | String | ✅ | "YEARLY" | - - diff --git a/documentation/models/ApiSubscriptionGetResponseDto.md b/documentation/models/ApiSubscriptionGetResponseDto.md deleted file mode 100644 index 63b5d4d..0000000 --- a/documentation/models/ApiSubscriptionGetResponseDto.md +++ /dev/null @@ -1,28 +0,0 @@ -# ApiSubscriptionGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :------------------------------------------- | :------- | :----------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique subscription identifier in Asaas | -| dateCreated | String | ❌ | Subscription creation date | -| customer | String | ❌ | Unique customer identifier | -| paymentLink | String | ❌ | Unique identifier of the payments link to which the subscription belongs | -| billingType | ApiSubscriptionGetResponseBillingType | ❌ | Billing type | -| cycle | ApiSubscriptionGetResponseCycle | ❌ | Billing frequency | -| value | Double | ❌ | Subscription value | -| nextDueDate | String | ❌ | Due date of the next payment to be generated | -| endDate | String | ❌ | Deadline for payments to be due | -| description | String | ❌ | Subscription description | -| status | ApiSubscriptionGetResponseSubscriptionStatus | ❌ | Subscription status | -| discount | ApiPaymentDiscountDto | ❌ | | -| fine | ApiPaymentFineResponseDto | ❌ | | -| interest | ApiPaymentInterestResponseDto | ❌ | | -| deleted | Boolean | ❌ | Informs if the subscription has been removed | -| maxPayments | Long | ❌ | Maximum number of payments to be generated for this subscription | -| externalReference | String | ❌ | Subscription identifier on your system | -| checkoutSession | String | ❌ | Unique checkout identifier | -| split | List\ | ❌ | Split information | - - diff --git a/documentation/models/ApiSubscriptionGetResponseSubscriptionStatus.md b/documentation/models/ApiSubscriptionGetResponseSubscriptionStatus.md deleted file mode 100644 index 2091a9a..0000000 --- a/documentation/models/ApiSubscriptionGetResponseSubscriptionStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiSubscriptionGetResponseSubscriptionStatus - -Subscription status - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| ACTIVE | String | ✅ | "ACTIVE" | -| EXPIRED | String | ✅ | "EXPIRED" | -| INACTIVE | String | ✅ | "INACTIVE" | - - diff --git a/documentation/models/ApiSubscriptionInvoiceConfigGetResponseDto.md b/documentation/models/ApiSubscriptionInvoiceConfigGetResponseDto.md deleted file mode 100644 index 99be919..0000000 --- a/documentation/models/ApiSubscriptionInvoiceConfigGetResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiSubscriptionInvoiceConfigGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------- | -| municipalServiceId | String | ❌ | Unique municipal service identifier | -| municipalServiceCode | String | ❌ | Municipal Service Code | -| municipalServiceName | String | ❌ | Name of municipal service | -| deductions | Double | ❌ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | -| invoiceCreationPeriod | InvoiceCreationPeriod | ❌ | When the invoice will be issued | -| daysBeforeDueDate | Long | ❌ | Number of days before billing due date | -| receivedOnly | Boolean | ❌ | Issue only for paid charges | -| observations | String | ❌ | Additional notes on the invoice | -| taxes | ApiCustomerInvoiceTaxesDto | ❌ | | - - diff --git a/documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.md b/documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.md deleted file mode 100644 index ddff4c1..0000000 --- a/documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiSubscriptionInvoiceConfigUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------ | :-------------------------------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------- | -| deductions | Double | ❌ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | -| effectiveDatePeriod | ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod | ❌ | When the invoice will be issued | -| receivedOnly | Boolean | ❌ | Issue only for paid charges | -| daysBeforeDueDate | Long | ❌ | Number of days before billing due date | -| observations | String | ❌ | Additional notes on the invoice | -| taxes | ApiCustomerInvoiceTaxesDto | ❌ | | - - diff --git a/documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md b/documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md deleted file mode 100644 index a1685e7..0000000 --- a/documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod - -When the invoice will be issued - -**Properties** - -| Name | Type | Required | Description | -| :---------------------- | :----- | :------- | :------------------------ | -| ON_PAYMENT_CONFIRMATION | String | ✅ | "ON_PAYMENT_CONFIRMATION" | -| ON_PAYMENT_DUE_DATE | String | ✅ | "ON_PAYMENT_DUE_DATE" | -| BEFORE_PAYMENT_DUE_DATE | String | ✅ | "BEFORE_PAYMENT_DUE_DATE" | -| ON_DUE_DATE_MONTH | String | ✅ | "ON_DUE_DATE_MONTH" | -| ON_NEXT_MONTH | String | ✅ | "ON_NEXT_MONTH" | - - diff --git a/documentation/models/ApiSubscriptionListPaymentsRequestPaymentStatus.md b/documentation/models/ApiSubscriptionListPaymentsRequestPaymentStatus.md deleted file mode 100644 index e8951d5..0000000 --- a/documentation/models/ApiSubscriptionListPaymentsRequestPaymentStatus.md +++ /dev/null @@ -1,24 +0,0 @@ -# ApiSubscriptionListPaymentsRequestPaymentStatus - -Filter by payment status - -**Properties** - -| Name | Type | Required | Description | -| :--------------------------- | :----- | :------- | :----------------------------- | -| PENDING | String | ✅ | "PENDING" | -| RECEIVED | String | ✅ | "RECEIVED" | -| CONFIRMED | String | ✅ | "CONFIRMED" | -| OVERDUE | String | ✅ | "OVERDUE" | -| REFUNDED | String | ✅ | "REFUNDED" | -| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | -| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | -| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | -| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | -| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | -| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | -| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | -| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | -| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | - - diff --git a/documentation/models/ApiSubscriptionListRequestBillingType.md b/documentation/models/ApiSubscriptionListRequestBillingType.md deleted file mode 100644 index 08e48b2..0000000 --- a/documentation/models/ApiSubscriptionListRequestBillingType.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiSubscriptionListRequestBillingType - -Filter by billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | -| TRANSFER | String | ✅ | "TRANSFER" | -| DEPOSIT | String | ✅ | "DEPOSIT" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiSubscriptionListRequestSubscriptionStatus.md b/documentation/models/ApiSubscriptionListRequestSubscriptionStatus.md deleted file mode 100644 index d49a2d7..0000000 --- a/documentation/models/ApiSubscriptionListRequestSubscriptionStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiSubscriptionListRequestSubscriptionStatus - -Filter by status - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| ACTIVE | String | ✅ | "ACTIVE" | -| EXPIRED | String | ✅ | "EXPIRED" | -| INACTIVE | String | ✅ | "INACTIVE" | - - diff --git a/documentation/models/ApiSubscriptionListResponseDto.md b/documentation/models/ApiSubscriptionListResponseDto.md deleted file mode 100644 index adbb65e..0000000 --- a/documentation/models/ApiSubscriptionListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiSubscriptionListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :------------------------------------ | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiSubscriptionSaveRequestBillingType.md b/documentation/models/ApiSubscriptionSaveRequestBillingType.md deleted file mode 100644 index 981aa86..0000000 --- a/documentation/models/ApiSubscriptionSaveRequestBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiSubscriptionSaveRequestBillingType - -Billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiSubscriptionSaveRequestCycle.md b/documentation/models/ApiSubscriptionSaveRequestCycle.md deleted file mode 100644 index 7c6313b..0000000 --- a/documentation/models/ApiSubscriptionSaveRequestCycle.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiSubscriptionSaveRequestCycle - -Billing frequency - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| WEEKLY | String | ✅ | "WEEKLY" | -| BIWEEKLY | String | ✅ | "BIWEEKLY" | -| MONTHLY | String | ✅ | "MONTHLY" | -| BIMONTHLY | String | ✅ | "BIMONTHLY" | -| QUARTERLY | String | ✅ | "QUARTERLY" | -| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | -| YEARLY | String | ✅ | "YEARLY" | - - diff --git a/documentation/models/ApiSubscriptionSaveRequestDto.md b/documentation/models/ApiSubscriptionSaveRequestDto.md deleted file mode 100644 index 3a6ad56..0000000 --- a/documentation/models/ApiSubscriptionSaveRequestDto.md +++ /dev/null @@ -1,22 +0,0 @@ -# ApiSubscriptionSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :------------------------------------- | :------- | :--------------------------------------------------------------- | -| customer | String | ✅ | Unique customer identifier in Asaas | -| billingType | ApiSubscriptionSaveRequestBillingType | ✅ | Billing type | -| value | Double | ✅ | Subscription value | -| nextDueDate | String | ✅ | First payment due | -| cycle | ApiSubscriptionSaveRequestCycle | ✅ | Billing frequency | -| discount | ApiPaymentDiscountDto | ❌ | | -| interest | ApiPaymentInterestRequestDto | ❌ | | -| fine | ApiPaymentFineRequestDto | ❌ | | -| description | String | ❌ | Subscription description (max. 500 characters) | -| endDate | String | ❌ | Deadline for payments to be due | -| maxPayments | Long | ❌ | Maximum number of payments to be generated for this subscription | -| externalReference | String | ❌ | Subscription identifier on your system | -| split | List\ | ❌ | Split information | -| callback | ApiPaymentCallbackRequestDto | ❌ | | - - diff --git a/documentation/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.md b/documentation/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.md deleted file mode 100644 index 09bf073..0000000 --- a/documentation/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiSubscriptionSaveWithCreditCardRequestBillingType - -Billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiSubscriptionSaveWithCreditCardRequestCycle.md b/documentation/models/ApiSubscriptionSaveWithCreditCardRequestCycle.md deleted file mode 100644 index 36a2a77..0000000 --- a/documentation/models/ApiSubscriptionSaveWithCreditCardRequestCycle.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiSubscriptionSaveWithCreditCardRequestCycle - -Billing frequency - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| WEEKLY | String | ✅ | "WEEKLY" | -| BIWEEKLY | String | ✅ | "BIWEEKLY" | -| MONTHLY | String | ✅ | "MONTHLY" | -| BIMONTHLY | String | ✅ | "BIMONTHLY" | -| QUARTERLY | String | ✅ | "QUARTERLY" | -| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | -| YEARLY | String | ✅ | "YEARLY" | - - diff --git a/documentation/models/ApiSubscriptionSaveWithCreditCardRequestDto.md b/documentation/models/ApiSubscriptionSaveWithCreditCardRequestDto.md deleted file mode 100644 index 49a424f..0000000 --- a/documentation/models/ApiSubscriptionSaveWithCreditCardRequestDto.md +++ /dev/null @@ -1,26 +0,0 @@ -# ApiSubscriptionSaveWithCreditCardRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :-------------------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------- | -| customer | String | ✅ | Unique customer identifier in Asaas | -| billingType | ApiSubscriptionSaveWithCreditCardRequestBillingType | ✅ | Billing type | -| value | Double | ✅ | Subscription value | -| nextDueDate | String | ✅ | First payment due | -| cycle | ApiSubscriptionSaveWithCreditCardRequestCycle | ✅ | Billing frequency | -| creditCard | ApiCreditCardRequestDto | ✅ | | -| creditCardHolderInfo | ApiCreditCardHolderInfoRequestDto | ✅ | | -| remoteIp | String | ✅ | IP from where the customer is making the purchase. Your server's IP must not be entered. | -| discount | ApiPaymentDiscountDto | ❌ | | -| interest | ApiPaymentInterestRequestDto | ❌ | | -| fine | ApiPaymentFineRequestDto | ❌ | | -| description | String | ❌ | Subscription description (max. 500 characters) | -| endDate | String | ❌ | Deadline for payments to be due | -| maxPayments | Long | ❌ | Maximum number of payments to be generated for this subscription | -| externalReference | String | ❌ | Subscription identifier on your system | -| split | List\ | ❌ | Split information | -| callback | ApiPaymentCallbackRequestDto | ❌ | | -| creditCardToken | String | ❌ | Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. | - - diff --git a/documentation/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.md b/documentation/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.md deleted file mode 100644 index 025e50c..0000000 --- a/documentation/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiSubscriptionSaveWithCreditCardResponseBillingType - -Billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | -| TRANSFER | String | ✅ | "TRANSFER" | -| DEPOSIT | String | ✅ | "DEPOSIT" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiSubscriptionSaveWithCreditCardResponseCycle.md b/documentation/models/ApiSubscriptionSaveWithCreditCardResponseCycle.md deleted file mode 100644 index fb73ea2..0000000 --- a/documentation/models/ApiSubscriptionSaveWithCreditCardResponseCycle.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiSubscriptionSaveWithCreditCardResponseCycle - -Billing frequency - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| WEEKLY | String | ✅ | "WEEKLY" | -| BIWEEKLY | String | ✅ | "BIWEEKLY" | -| MONTHLY | String | ✅ | "MONTHLY" | -| BIMONTHLY | String | ✅ | "BIMONTHLY" | -| QUARTERLY | String | ✅ | "QUARTERLY" | -| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | -| YEARLY | String | ✅ | "YEARLY" | - - diff --git a/documentation/models/ApiSubscriptionSaveWithCreditCardResponseDto.md b/documentation/models/ApiSubscriptionSaveWithCreditCardResponseDto.md deleted file mode 100644 index e715922..0000000 --- a/documentation/models/ApiSubscriptionSaveWithCreditCardResponseDto.md +++ /dev/null @@ -1,29 +0,0 @@ -# ApiSubscriptionSaveWithCreditCardResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :---------------------------------------------------------- | :------- | :----------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique subscription identifier in Asaas | -| dateCreated | String | ❌ | Subscription creation date | -| customer | String | ❌ | Unique customer identifier | -| paymentLink | String | ❌ | Unique identifier of the payments link to which the subscription belongs | -| billingType | ApiSubscriptionSaveWithCreditCardResponseBillingType | ❌ | Billing type | -| cycle | ApiSubscriptionSaveWithCreditCardResponseCycle | ❌ | Billing frequency | -| value | Double | ❌ | Subscription value | -| nextDueDate | String | ❌ | Due date of the next payment to be generated | -| endDate | String | ❌ | Deadline for payments to be due | -| description | String | ❌ | Subscription description | -| status | ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus | ❌ | Subscription status | -| discount | ApiPaymentDiscountDto | ❌ | | -| fine | ApiPaymentFineResponseDto | ❌ | | -| interest | ApiPaymentInterestResponseDto | ❌ | | -| deleted | Boolean | ❌ | Informs if the subscription has been removed | -| maxPayments | Long | ❌ | Maximum number of payments to be generated for this subscription | -| externalReference | String | ❌ | Subscription identifier on your system | -| checkoutSession | String | ❌ | Unique checkout identifier | -| split | List\ | ❌ | Split information | -| creditCard | ApiPaymentSaveWithCreditCardCreditCardDto | ❌ | | - - diff --git a/documentation/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.md b/documentation/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.md deleted file mode 100644 index 6c3a2e1..0000000 --- a/documentation/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus - -Subscription status - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| ACTIVE | String | ✅ | "ACTIVE" | -| EXPIRED | String | ✅ | "EXPIRED" | -| INACTIVE | String | ✅ | "INACTIVE" | - - diff --git a/documentation/models/ApiSubscriptionSplitRequestDto.md b/documentation/models/ApiSubscriptionSplitRequestDto.md deleted file mode 100644 index f9eb24d..0000000 --- a/documentation/models/ApiSubscriptionSplitRequestDto.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiSubscriptionSplitRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :----- | :------- | :------------------------------------------------------------------------- | -| walletId | String | ✅ | Asaas wallet identifier that will be transferred | -| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the payment is received | -| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | -| externalReference | String | ❌ | Split identifier in your system | -| description | String | ❌ | Split description | - - diff --git a/documentation/models/ApiSubscriptionSplitResponseDto.md b/documentation/models/ApiSubscriptionSplitResponseDto.md deleted file mode 100644 index 898c540..0000000 --- a/documentation/models/ApiSubscriptionSplitResponseDto.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiSubscriptionSplitResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :---------------------------------------------------------- | :------- | :------------------------------------------------------------------------- | -| walletId | String | ❌ | Asaas wallet identifier that will be transferred | -| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the payment is received | -| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | -| externalReference | String | ❌ | Split identifier in your system | -| description | String | ❌ | Split description | -| status | ApiSubscriptionSplitResponseSubscriptionSplitStatus | ❌ | Subscription split status | -| disabledReason | ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason | ❌ | Reason why subscription split was disabled | - - diff --git a/documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.md b/documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.md deleted file mode 100644 index c22f5c6..0000000 --- a/documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason - -Reason why subscription split was disabled - -**Properties** - -| Name | Type | Required | Description | -| :----------------------- | :----- | :------- | :------------------------- | -| WALLET_UNABLE_TO_RECEIVE | String | ✅ | "WALLET_UNABLE_TO_RECEIVE" | -| VALUE_DIVERGENCE | String | ✅ | "VALUE_DIVERGENCE" | - - diff --git a/documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.md b/documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.md deleted file mode 100644 index 2cc6d9b..0000000 --- a/documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiSubscriptionSplitResponseSubscriptionSplitStatus - -Subscription split status - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| ACTIVE | String | ✅ | "ACTIVE" | -| DISABLED | String | ✅ | "DISABLED" | - - diff --git a/documentation/models/ApiSubscriptionUpdateCreditCardRequestDto.md b/documentation/models/ApiSubscriptionUpdateCreditCardRequestDto.md deleted file mode 100644 index 3e44367..0000000 --- a/documentation/models/ApiSubscriptionUpdateCreditCardRequestDto.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiSubscriptionUpdateCreditCardRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :------------------- | :-------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------- | -| creditCard | ApiCreditCardRequestDto | ✅ | | -| creditCardHolderInfo | ApiCreditCardHolderInfoRequestDto | ✅ | | -| remoteIp | String | ✅ | IP from where the customer is making the purchase. Your server's IP must not be entered. | -| creditCardToken | String | ❌ | Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. | - - diff --git a/documentation/models/ApiSubscriptionUpdateRequestBillingType.md b/documentation/models/ApiSubscriptionUpdateRequestBillingType.md deleted file mode 100644 index f92af3a..0000000 --- a/documentation/models/ApiSubscriptionUpdateRequestBillingType.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiSubscriptionUpdateRequestBillingType - -Billing type - -**Properties** - -| Name | Type | Required | Description | -| :---------- | :----- | :------- | :------------ | -| UNDEFINED | String | ✅ | "UNDEFINED" | -| BOLETO | String | ✅ | "BOLETO" | -| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | -| PIX | String | ✅ | "PIX" | - - diff --git a/documentation/models/ApiSubscriptionUpdateRequestCycle.md b/documentation/models/ApiSubscriptionUpdateRequestCycle.md deleted file mode 100644 index 51e6d94..0000000 --- a/documentation/models/ApiSubscriptionUpdateRequestCycle.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiSubscriptionUpdateRequestCycle - -Billing frequency - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------- | -| WEEKLY | String | ✅ | "WEEKLY" | -| BIWEEKLY | String | ✅ | "BIWEEKLY" | -| MONTHLY | String | ✅ | "MONTHLY" | -| BIMONTHLY | String | ✅ | "BIMONTHLY" | -| QUARTERLY | String | ✅ | "QUARTERLY" | -| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | -| YEARLY | String | ✅ | "YEARLY" | - - diff --git a/documentation/models/ApiSubscriptionUpdateRequestDto.md b/documentation/models/ApiSubscriptionUpdateRequestDto.md deleted file mode 100644 index f2f6d15..0000000 --- a/documentation/models/ApiSubscriptionUpdateRequestDto.md +++ /dev/null @@ -1,21 +0,0 @@ -# ApiSubscriptionUpdateRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :--------------------------------------------- | :------- | :-------------------------------------------------------------------------- | -| billingType | ApiSubscriptionUpdateRequestBillingType | ❌ | Billing type | -| status | ApiSubscriptionUpdateRequestSubscriptionStatus | ❌ | Subscription status | -| nextDueDate | String | ❌ | First payment due | -| discount | ApiPaymentDiscountDto | ❌ | | -| interest | ApiPaymentInterestRequestDto | ❌ | | -| fine | ApiPaymentFineRequestDto | ❌ | | -| cycle | ApiSubscriptionUpdateRequestCycle | ❌ | Billing frequency | -| description | String | ❌ | Subscription description (max. 500 characters) | -| endDate | String | ❌ | Deadline for payments to be due | -| updatePendingPayments | Boolean | ❌ | true to update the possible properties of already existing pending payments | -| externalReference | String | ❌ | Subscription identifier on your system | -| split | List\ | ❌ | Split information | -| callback | ApiPaymentCallbackRequestDto | ❌ | | - - diff --git a/documentation/models/ApiSubscriptionUpdateRequestSubscriptionStatus.md b/documentation/models/ApiSubscriptionUpdateRequestSubscriptionStatus.md deleted file mode 100644 index a280842..0000000 --- a/documentation/models/ApiSubscriptionUpdateRequestSubscriptionStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiSubscriptionUpdateRequestSubscriptionStatus - -Subscription status - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| ACTIVE | String | ✅ | "ACTIVE" | -| INACTIVE | String | ✅ | "INACTIVE" | - - diff --git a/documentation/models/ApiTransferBankAccountGetResponseDto.md b/documentation/models/ApiTransferBankAccountGetResponseDto.md deleted file mode 100644 index bcf1331..0000000 --- a/documentation/models/ApiTransferBankAccountGetResponseDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiTransferBankAccountGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :------------ | :---------------------------- | :------- | :------------------------------------ | -| bank | ApiTransferBankGetResponseDto | ❌ | | -| accountName | String | ❌ | Name of bank account owner | -| ownerName | String | ❌ | Name of bank account owner | -| cpfCnpj | String | ❌ | CPF or CNPJ of the bank account owner | -| agency | String | ❌ | Non-digit agency number | -| agencyDigit | String | ❌ | Agency digit | -| account | String | ❌ | Non-digit bank account number | -| accountDigit | String | ❌ | Bank account digit | -| pixAddressKey | String | ❌ | Pix key address | - - diff --git a/documentation/models/ApiTransferBankAccountSaveRequestBankAccountType.md b/documentation/models/ApiTransferBankAccountSaveRequestBankAccountType.md deleted file mode 100644 index d572bdc..0000000 --- a/documentation/models/ApiTransferBankAccountSaveRequestBankAccountType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiTransferBankAccountSaveRequestBankAccountType - -Account type - -**Properties** - -| Name | Type | Required | Description | -| :------------- | :----- | :------- | :--------------- | -| CONTA_CORRENTE | String | ✅ | "CONTA_CORRENTE" | -| CONTA_POUPANCA | String | ✅ | "CONTA_POUPANCA" | - - diff --git a/documentation/models/ApiTransferBankAccountSaveRequestDto.md b/documentation/models/ApiTransferBankAccountSaveRequestDto.md deleted file mode 100644 index 67e4ca7..0000000 --- a/documentation/models/ApiTransferBankAccountSaveRequestDto.md +++ /dev/null @@ -1,18 +0,0 @@ -# ApiTransferBankAccountSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :----------------------------------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------- | -| ownerName | String | ✅ | Name of bank account owner | -| cpfCnpj | String | ✅ | CPF or CNPJ of the bank account owner | -| agency | String | ✅ | Non-digit agency number | -| account | String | ✅ | Non-digit bank account number | -| accountDigit | String | ✅ | Bank account digit | -| bank | ApiTransferBankSaveRequestDto | ❌ | | -| accountName | String | ❌ | Bank account name | -| ownerBirthDate | String | ❌ | Account owner's date of birth. Only when the bank account does not belong to the same CPF or CNPJ as the Asaas account. | -| bankAccountType | ApiTransferBankAccountSaveRequestBankAccountType | ❌ | Account type | -| ispb | String | ❌ | Identifier in the Brazilian Payment System | - - diff --git a/documentation/models/ApiTransferBankGetResponseDto.md b/documentation/models/ApiTransferBankGetResponseDto.md deleted file mode 100644 index dc22c39..0000000 --- a/documentation/models/ApiTransferBankGetResponseDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiTransferBankGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--- | :----- | :------- | :----------------------------------------- | -| ispb | String | ❌ | Identifier in the Brazilian Payment System | -| code | String | ❌ | Bank clearing code in the banking system | -| name | String | ❌ | Bank name | - - diff --git a/documentation/models/ApiTransferBankSaveRequestDto.md b/documentation/models/ApiTransferBankSaveRequestDto.md deleted file mode 100644 index 9f22983..0000000 --- a/documentation/models/ApiTransferBankSaveRequestDto.md +++ /dev/null @@ -1,9 +0,0 @@ -# ApiTransferBankSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :--- | :----- | :------- | :--------------------------------------- | -| code | String | ✅ | Bank clearing code in the banking system | - - diff --git a/documentation/models/ApiTransferGetResponseDto.md b/documentation/models/ApiTransferGetResponseDto.md deleted file mode 100644 index 3a80a83..0000000 --- a/documentation/models/ApiTransferGetResponseDto.md +++ /dev/null @@ -1,27 +0,0 @@ -# ApiTransferGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :----------------------------------- | :------- | :------------------------------------------------------------------ | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique transfer identifier in Asaas | -| type | ApiTransferGetResponseDtoType | ❌ | Type of transfer | -| dateCreated | String | ❌ | Transfer request date | -| value | Double | ❌ | Transfer amount | -| netValue | Double | ❌ | Net value minus transfer fee | -| status | ApiTransferGetResponseTransferStatus | ❌ | Transfer status | -| transferFee | Double | ❌ | Transfer rate | -| effectiveDate | String | ❌ | Effective date | -| scheduleDate | String | ❌ | Schedule date | -| endToEndIdentifier | String | ❌ | Unique identifier of the Pix transaction at the Central Bank | -| authorized | Boolean | ❌ | `false` when awaiting authorization via SMS Token | -| failReason | String | ❌ | Reason for transfer failure | -| externalReference | String | ❌ | Transfer identifier in your system | -| transactionReceiptUrl | String | ❌ | Proof of transfer will be available after the transfer is confirmed | -| operationType | ApiTransferGetResponseTransferType | ❌ | Transfer method | -| description | String | ❌ | Transfer description | -| recurring | String | ❌ | Unique recurrence identifier in Asaas | -| bankAccount | ApiTransferBankAccountGetResponseDto | ❌ | | - - diff --git a/documentation/models/ApiTransferGetResponseDtoType.md b/documentation/models/ApiTransferGetResponseDtoType.md deleted file mode 100644 index 32c7134..0000000 --- a/documentation/models/ApiTransferGetResponseDtoType.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiTransferGetResponseDtoType - -Type of transfer - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| PIX | String | ✅ | "PIX" | -| TED | String | ✅ | "TED" | -| INTERNAL | String | ✅ | "INTERNAL" | - - diff --git a/documentation/models/ApiTransferGetResponseTransferStatus.md b/documentation/models/ApiTransferGetResponseTransferStatus.md deleted file mode 100644 index 685f7d8..0000000 --- a/documentation/models/ApiTransferGetResponseTransferStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiTransferGetResponseTransferStatus - -Transfer status - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :----- | :------- | :---------------- | -| PENDING | String | ✅ | "PENDING" | -| BANK_PROCESSING | String | ✅ | "BANK_PROCESSING" | -| DONE | String | ✅ | "DONE" | -| CANCELLED | String | ✅ | "CANCELLED" | -| FAILED | String | ✅ | "FAILED" | - - diff --git a/documentation/models/ApiTransferGetResponseTransferType.md b/documentation/models/ApiTransferGetResponseTransferType.md deleted file mode 100644 index ec24d4e..0000000 --- a/documentation/models/ApiTransferGetResponseTransferType.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiTransferGetResponseTransferType - -Transfer method - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| PIX | String | ✅ | "PIX" | -| TED | String | ✅ | "TED" | -| INTERNAL | String | ✅ | "INTERNAL" | - - diff --git a/documentation/models/ApiTransferListResponseDto.md b/documentation/models/ApiTransferListResponseDto.md deleted file mode 100644 index be2459e..0000000 --- a/documentation/models/ApiTransferListResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiTransferListResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :-------------------------------- | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/ApiTransferRecurringSaveRequestDto.md b/documentation/models/ApiTransferRecurringSaveRequestDto.md deleted file mode 100644 index 59c2e4e..0000000 --- a/documentation/models/ApiTransferRecurringSaveRequestDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiTransferRecurringSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :-------- | :---------------------------------------------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| frequency | ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency | ❌ | Frequency | -| quantity | Long | ❌ | Number of repetitions. This transfer will be included as the first transaction of the recurrence. For the `WEEKLY` frequency, the maximum accepted is: `51` For the `MONTHLY` frequency, the maximum accepted is: `11` | - - diff --git a/documentation/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md b/documentation/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md deleted file mode 100644 index 8f15c7a..0000000 --- a/documentation/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency - -Frequency - -**Properties** - -| Name | Type | Required | Description | -| :------ | :----- | :------- | :---------- | -| WEEKLY | String | ✅ | "WEEKLY" | -| MONTHLY | String | ✅ | "MONTHLY" | - - diff --git a/documentation/models/ApiTransferSaveInternalTransferAccountDto.md b/documentation/models/ApiTransferSaveInternalTransferAccountDto.md deleted file mode 100644 index acb72ee..0000000 --- a/documentation/models/ApiTransferSaveInternalTransferAccountDto.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiTransferSaveInternalTransferAccountDto - -**Properties** - -| Name | Type | Required | Description | -| :----------- | :----- | :------- | :------------------------------------- | -| name | String | ❌ | Target account name | -| cpfCnpj | String | ❌ | CPF or CNPJ of the destination account | -| agency | String | ❌ | Target account branch code | -| account | String | ❌ | Target account number | -| accountDigit | String | ❌ | Target account digit | - - diff --git a/documentation/models/ApiTransferSaveInternalTransferRequestDto.md b/documentation/models/ApiTransferSaveInternalTransferRequestDto.md deleted file mode 100644 index 31e57cf..0000000 --- a/documentation/models/ApiTransferSaveInternalTransferRequestDto.md +++ /dev/null @@ -1,11 +0,0 @@ -# ApiTransferSaveInternalTransferRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :----- | :------- | :--------------------------------- | -| value | Double | ✅ | Amount to be transferred | -| walletId | String | ✅ | WalletId of the target account | -| externalReference | String | ❌ | Transfer identifier in your system | - - diff --git a/documentation/models/ApiTransferSaveInternalTransferResponseDto.md b/documentation/models/ApiTransferSaveInternalTransferResponseDto.md deleted file mode 100644 index 2f54709..0000000 --- a/documentation/models/ApiTransferSaveInternalTransferResponseDto.md +++ /dev/null @@ -1,28 +0,0 @@ -# ApiTransferSaveInternalTransferResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :-------------------- | :---------------------------------------------------- | :------- | :--------------------------------------------------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique transfer identifier in Asaas | -| type | ApiTransferSaveInternalTransferResponseDtoType | ❌ | Type of transfer | -| dateCreated | String | ❌ | Transfer request date | -| value | Double | ❌ | Transfer amount | -| netValue | Double | ❌ | Net value minus transfer fee | -| status | ApiTransferSaveInternalTransferResponseTransferStatus | ❌ | Transfer status | -| transferFee | Double | ❌ | Transfer rate | -| effectiveDate | String | ❌ | Effective date | -| scheduleDate | String | ❌ | Schedule date | -| endToEndIdentifier | String | ❌ | Unique identifier of the Pix transaction at the Central Bank | -| authorized | Boolean | ❌ | `false` when awaiting authorization via SMS Token | -| failReason | String | ❌ | Reason for transfer failure | -| externalReference | String | ❌ | Transfer identifier in your system | -| transactionReceiptUrl | String | ❌ | Proof of transfer will be available after the transfer is confirmed | -| operationType | ApiTransferSaveInternalTransferResponseTransferType | ❌ | Transfer method | -| description | String | ❌ | Transfer description | -| recurring | String | ❌ | Unique recurrence identifier in Asaas | -| walletId | String | ❌ | Unique wallet identifier to split charges or transfer between Asaas accounts | -| account | ApiTransferSaveInternalTransferAccountDto | ❌ | | - - diff --git a/documentation/models/ApiTransferSaveInternalTransferResponseDtoType.md b/documentation/models/ApiTransferSaveInternalTransferResponseDtoType.md deleted file mode 100644 index f47f34a..0000000 --- a/documentation/models/ApiTransferSaveInternalTransferResponseDtoType.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiTransferSaveInternalTransferResponseDtoType - -Type of transfer - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| PIX | String | ✅ | "PIX" | -| TED | String | ✅ | "TED" | -| INTERNAL | String | ✅ | "INTERNAL" | - - diff --git a/documentation/models/ApiTransferSaveInternalTransferResponseTransferStatus.md b/documentation/models/ApiTransferSaveInternalTransferResponseTransferStatus.md deleted file mode 100644 index 79994fb..0000000 --- a/documentation/models/ApiTransferSaveInternalTransferResponseTransferStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiTransferSaveInternalTransferResponseTransferStatus - -Transfer status - -**Properties** - -| Name | Type | Required | Description | -| :-------------- | :----- | :------- | :---------------- | -| PENDING | String | ✅ | "PENDING" | -| BANK_PROCESSING | String | ✅ | "BANK_PROCESSING" | -| DONE | String | ✅ | "DONE" | -| CANCELLED | String | ✅ | "CANCELLED" | -| FAILED | String | ✅ | "FAILED" | - - diff --git a/documentation/models/ApiTransferSaveInternalTransferResponseTransferType.md b/documentation/models/ApiTransferSaveInternalTransferResponseTransferType.md deleted file mode 100644 index e97fb9a..0000000 --- a/documentation/models/ApiTransferSaveInternalTransferResponseTransferType.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiTransferSaveInternalTransferResponseTransferType - -Transfer method - -**Properties** - -| Name | Type | Required | Description | -| :------- | :----- | :------- | :---------- | -| PIX | String | ✅ | "PIX" | -| TED | String | ✅ | "TED" | -| INTERNAL | String | ✅ | "INTERNAL" | - - diff --git a/documentation/models/ApiTransferSaveRequestDto.md b/documentation/models/ApiTransferSaveRequestDto.md deleted file mode 100644 index 658eeea..0000000 --- a/documentation/models/ApiTransferSaveRequestDto.md +++ /dev/null @@ -1,17 +0,0 @@ -# ApiTransferSaveRequestDto - -**Properties** - -| Name | Type | Required | Description | -| :---------------- | :-------------------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------- | -| value | Double | ✅ | Amount to be transferred | -| bankAccount | ApiTransferBankAccountSaveRequestDto | ❌ | | -| operationType | ApiTransferSaveRequestTransferType | ❌ | Transfer modality. If not informed and the receiving institution is a Pix participant, the transfer is via Pix. Otherwise via TED. | -| pixAddressKey | String | ❌ | Enter the Pix key if it is a transfer to a Pix key | -| pixAddressKeyType | ApiTransferSaveRequestPixAddressKeyType | ❌ | Enter the type of key if it is a transfer to a Pix key | -| description | String | ❌ | Transfers via Pix allow description | -| scheduleDate | String | ❌ | For scheduled transfers, if not informed, payment is instantaneous | -| externalReference | String | ❌ | Transfer identifier in your system | -| recurring | ApiTransferRecurringSaveRequestDto | ❌ | | - - diff --git a/documentation/models/ApiTransferSaveRequestPixAddressKeyType.md b/documentation/models/ApiTransferSaveRequestPixAddressKeyType.md deleted file mode 100644 index 27336b9..0000000 --- a/documentation/models/ApiTransferSaveRequestPixAddressKeyType.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiTransferSaveRequestPixAddressKeyType - -Enter the type of key if it is a transfer to a Pix key - -**Properties** - -| Name | Type | Required | Description | -| :---- | :----- | :------- | :---------- | -| CPF | String | ✅ | "CPF" | -| CNPJ | String | ✅ | "CNPJ" | -| EMAIL | String | ✅ | "EMAIL" | -| PHONE | String | ✅ | "PHONE" | -| EVP | String | ✅ | "EVP" | - - diff --git a/documentation/models/ApiTransferSaveRequestTransferType.md b/documentation/models/ApiTransferSaveRequestTransferType.md deleted file mode 100644 index a013318..0000000 --- a/documentation/models/ApiTransferSaveRequestTransferType.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiTransferSaveRequestTransferType - -Transfer modality. If not informed and the receiving institution is a Pix participant, the transfer is via Pix. Otherwise via TED. - -**Properties** - -| Name | Type | Required | Description | -| :--- | :----- | :------- | :---------- | -| PIX | String | ✅ | "PIX" | -| TED | String | ✅ | "TED" | - - diff --git a/documentation/models/ApiWalletGetResponseDto.md b/documentation/models/ApiWalletGetResponseDto.md deleted file mode 100644 index bb7bceb..0000000 --- a/documentation/models/ApiWalletGetResponseDto.md +++ /dev/null @@ -1,10 +0,0 @@ -# ApiWalletGetResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :----- | :----- | :------- | :-------------------------------- | -| object | String | ❌ | Object type | -| id | String | ❌ | Unique wallet identifier in Asaas | - - diff --git a/documentation/models/ApiWalletShowResponseDto.md b/documentation/models/ApiWalletShowResponseDto.md deleted file mode 100644 index 01dd596..0000000 --- a/documentation/models/ApiWalletShowResponseDto.md +++ /dev/null @@ -1,14 +0,0 @@ -# ApiWalletShowResponseDto - -**Properties** - -| Name | Type | Required | Description | -| :--------- | :------------------------------ | :------- | :---------------------------------------------------------- | -| object | String | ❌ | Object type | -| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | -| totalCount | Long | ❌ | Total number of items for the filters entered | -| limit | Long | ❌ | Number of objects per page | -| offset | Long | ❌ | Position of the object from which the page should be loaded | -| data | List\ | ❌ | List of objects | - - diff --git a/documentation/models/BankSlipBillingInfoResponseDto.md b/documentation/models/BankSlipBillingInfoResponseDto.md new file mode 100644 index 0000000..a245924 --- /dev/null +++ b/documentation/models/BankSlipBillingInfoResponseDto.md @@ -0,0 +1,15 @@ +# BankSlipBillingInfoResponseDto + +Payment data related to bank slip + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------------------- | :----- | :------- | :----------------------------------------------------------------- | +| identificationField | String | ❌ | Digitable bill line | +| nossoNumero | String | ❌ | Unique identification of the bank slip | +| barCode | String | ❌ | Bank slip bar code | +| bankSlipUrl | String | ❌ | URL to download the bank slip | +| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | + + diff --git a/documentation/models/BillGetResponseBillStatus.md b/documentation/models/BillGetResponseBillStatus.md new file mode 100644 index 0000000..2525d67 --- /dev/null +++ b/documentation/models/BillGetResponseBillStatus.md @@ -0,0 +1,17 @@ +# BillGetResponseBillStatus + +Bill payment status + +**Properties** + +| Name | Type | Required | Description | +| :-------------------------------------- | :----- | :------- | :---------------------------------------- | +| PENDING | String | ✅ | "PENDING" | +| BANK_PROCESSING | String | ✅ | "BANK_PROCESSING" | +| PAID | String | ✅ | "PAID" | +| FAILED | String | ✅ | "FAILED" | +| CANCELLED | String | ✅ | "CANCELLED" | +| REFUNDED | String | ✅ | "REFUNDED" | +| AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST | String | ✅ | "AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST" | + + diff --git a/documentation/models/BillGetResponseDto.md b/documentation/models/BillGetResponseDto.md new file mode 100644 index 0000000..ed3f23c --- /dev/null +++ b/documentation/models/BillGetResponseDto.md @@ -0,0 +1,26 @@ +# BillGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :------------------------ | :------- | :------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique bill payment identifier in Asaas | +| status | BillGetResponseBillStatus | ❌ | Bill payment status | +| value | Double | ❌ | Amount to be paid | +| discount | Double | ❌ | Discount attributed to payment | +| interest | Double | ❌ | Interest attributed to payment | +| fine | Double | ❌ | Fine assigned to payment | +| identificationField | String | ❌ | Typeable line of the bill to be paid | +| dueDate | String | ❌ | Billing due date | +| scheduleDate | String | ❌ | Payment scheduling date | +| paymentDate | String | ❌ | Date on which payment was made | +| fee | Double | ❌ | Asaas fee for bill payment | +| description | String | ❌ | Bill Payment Description | +| companyName | String | ❌ | Company/Body issuing the payment | +| transactionReceiptUrl | String | ❌ | Proof of bill payment | +| canBeCancelled | Boolean | ❌ | Whether payment can be canceled | +| externalReference | String | ❌ | Unique identifier of the bill in your system | +| failReasons | List\ | ❌ | List of reasons for payment failure | + + diff --git a/documentation/models/BillListResponseDto.md b/documentation/models/BillListResponseDto.md new file mode 100644 index 0000000..78a89a3 --- /dev/null +++ b/documentation/models/BillListResponseDto.md @@ -0,0 +1,14 @@ +# BillListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/BillSaveRequestDto.md b/documentation/models/BillSaveRequestDto.md new file mode 100644 index 0000000..3a46dd0 --- /dev/null +++ b/documentation/models/BillSaveRequestDto.md @@ -0,0 +1,17 @@ +# BillSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :----- | :------- | :--------------------------------------------------------------------------------------------- | +| identificationField | String | ✅ | Digitizable bill line | +| scheduleDate | String | ❌ | Payment scheduling date | +| description | String | ❌ | Bill Payment Description | +| discount | Double | ❌ | Discount attributed to payment | +| interest | Double | ❌ | Interest attributed to payment | +| fine | Double | ❌ | Fine assigned to payment | +| dueDate | String | ❌ | Expiration date of the account if it is the type that does not have this information | +| value | Double | ❌ | Account value if it is the type that does not have this information (Ex: credit card invoices) | +| externalReference | String | ❌ | Unique identifier of the bill in your system | + + diff --git a/documentation/models/BillSimulateBankSlipInfoResponseDto.md b/documentation/models/BillSimulateBankSlipInfoResponseDto.md new file mode 100644 index 0000000..2571269 --- /dev/null +++ b/documentation/models/BillSimulateBankSlipInfoResponseDto.md @@ -0,0 +1,27 @@ +# BillSimulateBankSlipInfoResponseDto + +Information about the bill to be paid + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :------ | :------- | :------------------------------------------------------ | +| identificationField | String | ❌ | Digitable line | +| value | Double | ❌ | Ticket value | +| dueDate | String | ❌ | Due date | +| companyName | String | ❌ | Company/Body issuing the bill | +| bank | String | ❌ | Code of the bank issuing the bill in the banking system | +| beneficiaryCpfCnpj | String | ❌ | CPF or CNPJ of the beneficiary | +| beneficiaryName | String | ❌ | Beneficiary's name | +| allowChangeValue | Boolean | ❌ | Whether the value can be changed or not | +| minValue | Double | ❌ | Minimum value that can be changed | +| maxValue | Double | ❌ | Maximum value that can be changed | +| discountValue | Double | ❌ | Value of discounts | +| interestValue | Double | ❌ | Interest amount | +| fineValue | Double | ❌ | Fine value | +| originalValue | Double | ❌ | Original bill value | +| totalDiscountValue | Double | ❌ | Total value of discounts and rebates | +| totalAdditionalValue | Double | ❌ | Total amount of interest and fine | +| isOverdue | Boolean | ❌ | Informs if the ticket is expired | + + diff --git a/documentation/models/BillSimulateRequestDto.md b/documentation/models/BillSimulateRequestDto.md new file mode 100644 index 0000000..449c512 --- /dev/null +++ b/documentation/models/BillSimulateRequestDto.md @@ -0,0 +1,10 @@ +# BillSimulateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :----- | :------- | :-------------------- | +| identificationField | String | ❌ | Digitizable bill line | +| barCode | String | ❌ | Ticket barcode | + + diff --git a/documentation/models/BillSimulateResponseDto.md b/documentation/models/BillSimulateResponseDto.md new file mode 100644 index 0000000..9ca1c9c --- /dev/null +++ b/documentation/models/BillSimulateResponseDto.md @@ -0,0 +1,11 @@ +# BillSimulateResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :---------------------------------- | :------- | :------------------------------------ | +| minimumScheduleDate | String | ❌ | Minimum date allowed for scheduling | +| fee | Double | ❌ | Fee charged when paying the bill | +| bankSlipInfo | BillSimulateBankSlipInfoResponseDto | ❌ | Information about the bill to be paid | + + diff --git a/documentation/models/BillingStatisticsParameters.md b/documentation/models/BillingStatisticsParameters.md index 3a2279a..0c48b8e 100644 --- a/documentation/models/BillingStatisticsParameters.md +++ b/documentation/models/BillingStatisticsParameters.md @@ -2,18 +2,18 @@ **Properties** -| Name | Type | Required | Description | -| :-------------------- | :------------------------------------------------- | :------- | :---------------------------------------- | -| customer | String | ❌ | Filter by unique customer identifier | -| billingType | ApiFinanceGetPaymentStatisticsRequestBillingType | ❌ | Filter by payment method | -| status | ApiFinanceGetPaymentStatisticsRequestPaymentStatus | ❌ | Filter by status | -| anticipated | Boolean | ❌ | Filter early registrations or not | -| dateCreatedGe | String | ❌ | Filter from initial creation date | -| dateCreatedLe | String | ❌ | Filter from final creation date | -| dueDateGe | String | ❌ | Filter from initial due date | -| dueDateLe | String | ❌ | Filter by final due date | -| estimatedCreditDateGe | String | ❌ | Filter from estimated initial credit date | -| estimatedCreditDateLe | String | ❌ | Filter from estimated end credit date | -| externalReference | String | ❌ | Filter by your system identifier | +| Name | Type | Required | Description | +| :-------------------- | :---------------------------------------------- | :------- | :---------------------------------------- | +| customer | String | ❌ | Filter by unique customer identifier | +| billingType | FinanceGetPaymentStatisticsRequestBillingType | ❌ | Filter by payment method | +| status | FinanceGetPaymentStatisticsRequestPaymentStatus | ❌ | Filter by status | +| anticipated | Boolean | ❌ | Filter early registrations or not | +| dateCreatedGe | String | ❌ | Filter from initial creation date | +| dateCreatedLe | String | ❌ | Filter from final creation date | +| dueDateGe | String | ❌ | Filter from initial due date | +| dueDateLe | String | ❌ | Filter by final due date | +| estimatedCreditDateGe | String | ❌ | Filter from estimated initial credit date | +| estimatedCreditDateLe | String | ❌ | Filter from estimated end credit date | +| externalReference | String | ❌ | Filter by your system identifier | diff --git a/documentation/models/ChargebackCreditCardResponseCreditCardBrand.md b/documentation/models/ChargebackCreditCardResponseCreditCardBrand.md new file mode 100644 index 0000000..9a60445 --- /dev/null +++ b/documentation/models/ChargebackCreditCardResponseCreditCardBrand.md @@ -0,0 +1,23 @@ +# ChargebackCreditCardResponseCreditCardBrand + +Flag of the card used + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----- | :------- | :----------- | +| VISA | String | ✅ | "VISA" | +| MASTERCARD | String | ✅ | "MASTERCARD" | +| ELO | String | ✅ | "ELO" | +| DINERS | String | ✅ | "DINERS" | +| DISCOVER | String | ✅ | "DISCOVER" | +| AMEX | String | ✅ | "AMEX" | +| CABAL | String | ✅ | "CABAL" | +| BANESCARD | String | ✅ | "BANESCARD" | +| CREDZ | String | ✅ | "CREDZ" | +| SOROCRED | String | ✅ | "SOROCRED" | +| CREDSYSTEM | String | ✅ | "CREDSYSTEM" | +| JCB | String | ✅ | "JCB" | +| UNKNOWN | String | ✅ | "UNKNOWN" | + + diff --git a/documentation/models/ChargebackCreditCardResponseDto.md b/documentation/models/ChargebackCreditCardResponseDto.md new file mode 100644 index 0000000..dc8f010 --- /dev/null +++ b/documentation/models/ChargebackCreditCardResponseDto.md @@ -0,0 +1,12 @@ +# ChargebackCreditCardResponseDto + +Credit card information + +**Properties** + +| Name | Type | Required | Description | +| :----- | :------------------------------------------ | :------- | :----------------------------- | +| number | String | ❌ | Last 4 digits of the card used | +| brand | ChargebackCreditCardResponseCreditCardBrand | ❌ | Flag of the card used | + + diff --git a/documentation/models/ChargebackListRequestChargebackStatus.md b/documentation/models/ChargebackListRequestChargebackStatus.md new file mode 100644 index 0000000..24aac18 --- /dev/null +++ b/documentation/models/ChargebackListRequestChargebackStatus.md @@ -0,0 +1,15 @@ +# ChargebackListRequestChargebackStatus + +Filter by chargeback status. + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| REQUESTED | String | ✅ | "REQUESTED" | +| IN_DISPUTE | String | ✅ | "IN_DISPUTE" | +| DISPUTE_LOST | String | ✅ | "DISPUTE_LOST" | +| REVERSED | String | ✅ | "REVERSED" | +| DONE | String | ✅ | "DONE" | + + diff --git a/documentation/models/ChargebackListRequestCreditCardBrand.md b/documentation/models/ChargebackListRequestCreditCardBrand.md new file mode 100644 index 0000000..3aff2d5 --- /dev/null +++ b/documentation/models/ChargebackListRequestCreditCardBrand.md @@ -0,0 +1,23 @@ +# ChargebackListRequestCreditCardBrand + +Filter by used card brand. + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----- | :------- | :----------- | +| VISA | String | ✅ | "VISA" | +| MASTERCARD | String | ✅ | "MASTERCARD" | +| ELO | String | ✅ | "ELO" | +| DINERS | String | ✅ | "DINERS" | +| DISCOVER | String | ✅ | "DISCOVER" | +| AMEX | String | ✅ | "AMEX" | +| CABAL | String | ✅ | "CABAL" | +| BANESCARD | String | ✅ | "BANESCARD" | +| CREDZ | String | ✅ | "CREDZ" | +| SOROCRED | String | ✅ | "SOROCRED" | +| CREDSYSTEM | String | ✅ | "CREDSYSTEM" | +| JCB | String | ✅ | "JCB" | +| UNKNOWN | String | ✅ | "UNKNOWN" | + + diff --git a/documentation/models/ChargebackListResponseDto.md b/documentation/models/ChargebackListResponseDto.md new file mode 100644 index 0000000..06c4d3f --- /dev/null +++ b/documentation/models/ChargebackListResponseDto.md @@ -0,0 +1,14 @@ +# ChargebackListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/ChargebackSaveDisputeRequestDto.md b/documentation/models/ChargebackSaveDisputeRequestDto.md new file mode 100644 index 0000000..9f93676 --- /dev/null +++ b/documentation/models/ChargebackSaveDisputeRequestDto.md @@ -0,0 +1,9 @@ +# ChargebackSaveDisputeRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---- | :----- | :------- | :----------------------------------------- | +| files | byte[] | ✅ | Files to create the dispute (Maximum: 11). | + + diff --git a/documentation/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.md b/documentation/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.md new file mode 100644 index 0000000..b3d40f8 --- /dev/null +++ b/documentation/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.md @@ -0,0 +1,13 @@ +# ChargebackSaveDisputeResponseChargebackDisputeStatus + +Dispute status. + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :----- | :------- | :---------- | +| REQUESTED | String | ✅ | "REQUESTED" | +| ACCEPTED | String | ✅ | "ACCEPTED" | +| REJECTED | String | ✅ | "REJECTED" | + + diff --git a/documentation/models/ChargebackSaveDisputeResponseDto.md b/documentation/models/ChargebackSaveDisputeResponseDto.md new file mode 100644 index 0000000..8c7d54e --- /dev/null +++ b/documentation/models/ChargebackSaveDisputeResponseDto.md @@ -0,0 +1,11 @@ +# ChargebackSaveDisputeResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :--------------------------------------------------- | :------- | :--------------------------------------------------------------------- | +| chargebackId | String | ❌ | Unique identifier of chargeback for which the dispute will be created. | +| status | ChargebackSaveDisputeResponseChargebackDisputeStatus | ❌ | Dispute status. | +| files | List\ | ❌ | Names of the dispute files. | + + diff --git a/documentation/models/CheckoutSessionCallbackDto.md b/documentation/models/CheckoutSessionCallbackDto.md new file mode 100644 index 0000000..df711f6 --- /dev/null +++ b/documentation/models/CheckoutSessionCallbackDto.md @@ -0,0 +1,13 @@ +# CheckoutSessionCallbackDto + +Automatic redirection information after payment on the checkout screen + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----- | :------- | :----------------------------------- | +| successUrl | String | ✅ | Redirect URL for successful checkout | +| cancelUrl | String | ✅ | Redirect URL for canceled checkout | +| expiredUrl | String | ✅ | Redirect URL for expired checkout | + + diff --git a/documentation/models/CheckoutSessionCustomerDataDto.md b/documentation/models/CheckoutSessionCustomerDataDto.md new file mode 100644 index 0000000..1d61f6b --- /dev/null +++ b/documentation/models/CheckoutSessionCustomerDataDto.md @@ -0,0 +1,20 @@ +# CheckoutSessionCustomerDataDto + +Customer data + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :----- | :------- | :--------------------------------------- | +| name | String | ❌ | Customer name | +| cpfCnpj | String | ❌ | Customer CPF or CNPJ | +| email | String | ❌ | Customer email | +| phone | String | ❌ | Customer phone | +| address | String | ❌ | Customer address | +| addressNumber | Long | ❌ | Address number | +| complement | String | ❌ | Address complement (max. 255 characters) | +| province | String | ❌ | Province of address | +| postalCode | String | ❌ | Address zip code | +| city | Long | ❌ | City code | + + diff --git a/documentation/models/CheckoutSessionInstallmentDto.md b/documentation/models/CheckoutSessionInstallmentDto.md new file mode 100644 index 0000000..a9f2a60 --- /dev/null +++ b/documentation/models/CheckoutSessionInstallmentDto.md @@ -0,0 +1,11 @@ +# CheckoutSessionInstallmentDto + +Installment details. If informed, it will be mandatory to include the `INSTALLMENT` chargeType + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :--- | :------- | :----------------------------- | +| maxInstallmentCount | Long | ❌ | Maximum number of installments | + + diff --git a/documentation/models/CheckoutSessionItemsDto.md b/documentation/models/CheckoutSessionItemsDto.md new file mode 100644 index 0000000..0c1f0c0 --- /dev/null +++ b/documentation/models/CheckoutSessionItemsDto.md @@ -0,0 +1,15 @@ +# CheckoutSessionItemsDto + +List of items at checkout + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------------- | +| imageBase64 | String | ✅ | Item image in Base64 | +| name | String | ✅ | Item name | +| quantity | Long | ✅ | Item Quantity | +| value | Double | ✅ | Item value | +| description | String | ❌ | Item Description | + + diff --git a/documentation/models/CheckoutSessionResponseBillingType.md b/documentation/models/CheckoutSessionResponseBillingType.md new file mode 100644 index 0000000..979dc77 --- /dev/null +++ b/documentation/models/CheckoutSessionResponseBillingType.md @@ -0,0 +1,12 @@ +# CheckoutSessionResponseBillingType + +Payment methods + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/CheckoutSessionResponseChargeType.md b/documentation/models/CheckoutSessionResponseChargeType.md new file mode 100644 index 0000000..c08d282 --- /dev/null +++ b/documentation/models/CheckoutSessionResponseChargeType.md @@ -0,0 +1,13 @@ +# CheckoutSessionResponseChargeType + +Charge types + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| DETACHED | String | ✅ | "DETACHED" | +| RECURRENT | String | ✅ | "RECURRENT" | +| INSTALLMENT | String | ✅ | "INSTALLMENT" | + + diff --git a/documentation/models/CheckoutSessionResponseDto.md b/documentation/models/CheckoutSessionResponseDto.md new file mode 100644 index 0000000..f97b9b8 --- /dev/null +++ b/documentation/models/CheckoutSessionResponseDto.md @@ -0,0 +1,17 @@ +# CheckoutSessionResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :----------------------------------------- | :------- | :--------------------------------------------------------------------------------------------- | +| billingTypes | List\ | ❌ | Payment methods | +| chargeTypes | List\ | ❌ | Charge types | +| minutesToExpire | Long | ❌ | Time in minutes for checkout expiration | +| callback | CheckoutSessionCallbackDto | ❌ | Automatic redirection information after payment on the checkout screen | +| items | List\ | ❌ | List of items at checkout | +| customerData | CheckoutSessionCustomerDataDto | ❌ | Customer data | +| subscription | CheckoutSessionSubscriptionDto | ❌ | Subscription details, required if chargeTypes includes `RECURRENT` | +| installment | CheckoutSessionInstallmentDto | ❌ | Installment details. If informed, it will be mandatory to include the `INSTALLMENT` chargeType | +| split | List\ | ❌ | Split Settings | + + diff --git a/documentation/models/CheckoutSessionSaveRequestBillingType.md b/documentation/models/CheckoutSessionSaveRequestBillingType.md new file mode 100644 index 0000000..c6fba4a --- /dev/null +++ b/documentation/models/CheckoutSessionSaveRequestBillingType.md @@ -0,0 +1,12 @@ +# CheckoutSessionSaveRequestBillingType + +Payment methods + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/CheckoutSessionSaveRequestChargeType.md b/documentation/models/CheckoutSessionSaveRequestChargeType.md new file mode 100644 index 0000000..1ea9d77 --- /dev/null +++ b/documentation/models/CheckoutSessionSaveRequestChargeType.md @@ -0,0 +1,13 @@ +# CheckoutSessionSaveRequestChargeType + +Charge types + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| DETACHED | String | ✅ | "DETACHED" | +| RECURRENT | String | ✅ | "RECURRENT" | +| INSTALLMENT | String | ✅ | "INSTALLMENT" | + + diff --git a/documentation/models/CheckoutSessionSaveRequestDto.md b/documentation/models/CheckoutSessionSaveRequestDto.md new file mode 100644 index 0000000..732d2ea --- /dev/null +++ b/documentation/models/CheckoutSessionSaveRequestDto.md @@ -0,0 +1,17 @@ +# CheckoutSessionSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :-------------------------------------------- | :------- | :--------------------------------------------------------------------------------------------- | +| billingTypes | List\ | ✅ | Payment methods | +| chargeTypes | List\ | ✅ | Charge types | +| callback | CheckoutSessionCallbackDto | ✅ | Automatic redirection information after payment on the checkout screen | +| items | List\ | ✅ | List of items at checkout | +| minutesToExpire | Long | ❌ | Time in minutes for checkout expiration | +| customerData | CheckoutSessionCustomerDataDto | ❌ | Customer data | +| subscription | CheckoutSessionSubscriptionDto | ❌ | Subscription details, required if chargeTypes includes `RECURRENT` | +| installment | CheckoutSessionInstallmentDto | ❌ | Installment details. If informed, it will be mandatory to include the `INSTALLMENT` chargeType | +| splits | List\ | ❌ | Split Settings | + + diff --git a/documentation/models/CheckoutSessionSplitDto.md b/documentation/models/CheckoutSessionSplitDto.md new file mode 100644 index 0000000..371052c --- /dev/null +++ b/documentation/models/CheckoutSessionSplitDto.md @@ -0,0 +1,14 @@ +# CheckoutSessionSplitDto + +Split Settings + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :----- | :------- | :------------------------------------------------------------------------------------------------------------ | +| walletId | String | ✅ | Asaas wallet identifier that will receive the transfer | +| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the payment is received | +| percentageValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | +| totalFixedValue | Double | ❌ | (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. | + + diff --git a/documentation/models/CheckoutSessionSubscriptionCycle.md b/documentation/models/CheckoutSessionSubscriptionCycle.md new file mode 100644 index 0000000..d62d06b --- /dev/null +++ b/documentation/models/CheckoutSessionSubscriptionCycle.md @@ -0,0 +1,17 @@ +# CheckoutSessionSubscriptionCycle + +Billing frequency + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| WEEKLY | String | ✅ | "WEEKLY" | +| BIWEEKLY | String | ✅ | "BIWEEKLY" | +| MONTHLY | String | ✅ | "MONTHLY" | +| BIMONTHLY | String | ✅ | "BIMONTHLY" | +| QUARTERLY | String | ✅ | "QUARTERLY" | +| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | +| YEARLY | String | ✅ | "YEARLY" | + + diff --git a/documentation/models/CheckoutSessionSubscriptionDto.md b/documentation/models/CheckoutSessionSubscriptionDto.md new file mode 100644 index 0000000..92cd810 --- /dev/null +++ b/documentation/models/CheckoutSessionSubscriptionDto.md @@ -0,0 +1,13 @@ +# CheckoutSessionSubscriptionDto + +Subscription details, required if chargeTypes includes `RECURRENT` + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :------------------------------- | :------- | :------------------------------------------- | +| cycle | CheckoutSessionSubscriptionCycle | ❌ | Billing frequency | +| endDate | String | ❌ | Deadline for payments to be due | +| nextDueDate | String | ❌ | Due date of the next payment to be generated | + + diff --git a/documentation/models/CreditBureauReportGetResponseDto.md b/documentation/models/CreditBureauReportGetResponseDto.md new file mode 100644 index 0000000..292611d --- /dev/null +++ b/documentation/models/CreditBureauReportGetResponseDto.md @@ -0,0 +1,14 @@ +# CreditBureauReportGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :----------------------------------------------------------------------------------------- | +| id | String | ❌ | Unique report identifier in Asaas | +| dateCreated | String | ❌ | Date of consultation | +| cpfCnpj | String | ❌ | CPF or CNPJ consulted manually | +| customer | String | ❌ | Unique customer identifier in Asaas | +| downloadUrl | String | ❌ | Url to download the report. Available until 11:59 pm on the day of the appointment. | +| reportFile | String | ❌ | PDF of the query report in Base64 (this field is only returned when the report is created) | + + diff --git a/documentation/models/CreditBureauReportListResponseDto.md b/documentation/models/CreditBureauReportListResponseDto.md new file mode 100644 index 0000000..1f0a201 --- /dev/null +++ b/documentation/models/CreditBureauReportListResponseDto.md @@ -0,0 +1,14 @@ +# CreditBureauReportListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :--------------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/CreditBureauReportSaveRequestDto.md b/documentation/models/CreditBureauReportSaveRequestDto.md new file mode 100644 index 0000000..62a13bf --- /dev/null +++ b/documentation/models/CreditBureauReportSaveRequestDto.md @@ -0,0 +1,10 @@ +# CreditBureauReportSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------------------------------------------------------------------------------------- | +| customer | String | ❌ | Unique customer identifier in Asaas | +| cpfCnpj | String | ❌ | CPF or CNPJ of the customer. Enter this field if your client is not registered with Asaas | + + diff --git a/documentation/models/CreditCardHolderInfoRequestDto.md b/documentation/models/CreditCardHolderInfoRequestDto.md new file mode 100644 index 0000000..535a44b --- /dev/null +++ b/documentation/models/CreditCardHolderInfoRequestDto.md @@ -0,0 +1,18 @@ +# CreditCardHolderInfoRequestDto + +Credit card holder information + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----- | :------- | :------------------------------------- | +| name | String | ✅ | Name of card holder | +| email | String | ✅ | Cardholder email | +| cpfCnpj | String | ✅ | CPF or CNPJ of the cardholder | +| postalCode | String | ✅ | Cardholder zip code | +| addressNumber | String | ✅ | Cardholder address number | +| phone | String | ✅ | Phone with cardholder's area code | +| addressComplement | String | ❌ | Supplementing the cardholder's address | +| mobilePhone | String | ❌ | Cardholder's cell phone | + + diff --git a/documentation/models/CreditCardRequestDto.md b/documentation/models/CreditCardRequestDto.md new file mode 100644 index 0000000..8266c51 --- /dev/null +++ b/documentation/models/CreditCardRequestDto.md @@ -0,0 +1,15 @@ +# CreditCardRequestDto + +Credit card information + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :----------------------------- | +| holderName | String | ✅ | Name printed on card | +| number | String | ✅ | Card number | +| expiryMonth | String | ✅ | Expiration month with 2 digits | +| expiryYear | String | ✅ | Expiration year with 4 digits | +| ccv | String | ✅ | Security code | + + diff --git a/documentation/models/CreditCardTokenizeRequestDto.md b/documentation/models/CreditCardTokenizeRequestDto.md new file mode 100644 index 0000000..03f321a --- /dev/null +++ b/documentation/models/CreditCardTokenizeRequestDto.md @@ -0,0 +1,12 @@ +# CreditCardTokenizeRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :----------------------------- | :------- | :--------------------------------------------------------------------------------------- | +| customer | String | ✅ | Unique customer identifier in Asaas | +| creditCard | CreditCardRequestDto | ✅ | Credit card information | +| creditCardHolderInfo | CreditCardHolderInfoRequestDto | ✅ | Credit card holder information | +| remoteIp | String | ✅ | IP from where the customer is making the purchase. Your server's IP must not be entered. | + + diff --git a/documentation/models/CreditCardTokenizeResponseCreditCardBrand.md b/documentation/models/CreditCardTokenizeResponseCreditCardBrand.md new file mode 100644 index 0000000..6ba675d --- /dev/null +++ b/documentation/models/CreditCardTokenizeResponseCreditCardBrand.md @@ -0,0 +1,23 @@ +# CreditCardTokenizeResponseCreditCardBrand + +Brand of the card used + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----- | :------- | :----------- | +| VISA | String | ✅ | "VISA" | +| MASTERCARD | String | ✅ | "MASTERCARD" | +| ELO | String | ✅ | "ELO" | +| DINERS | String | ✅ | "DINERS" | +| DISCOVER | String | ✅ | "DISCOVER" | +| AMEX | String | ✅ | "AMEX" | +| CABAL | String | ✅ | "CABAL" | +| BANESCARD | String | ✅ | "BANESCARD" | +| CREDZ | String | ✅ | "CREDZ" | +| SOROCRED | String | ✅ | "SOROCRED" | +| CREDSYSTEM | String | ✅ | "CREDSYSTEM" | +| JCB | String | ✅ | "JCB" | +| UNKNOWN | String | ✅ | "UNKNOWN" | + + diff --git a/documentation/models/CreditCardTokenizeResponseDto.md b/documentation/models/CreditCardTokenizeResponseDto.md new file mode 100644 index 0000000..f07ee24 --- /dev/null +++ b/documentation/models/CreditCardTokenizeResponseDto.md @@ -0,0 +1,11 @@ +# CreditCardTokenizeResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------------- | :---------------------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------ | +| creditCardNumber | String | ❌ | Last 4 digits of the card used | +| creditCardBrand | CreditCardTokenizeResponseCreditCardBrand | ❌ | Brand of the card used | +| creditCardToken | String | ❌ | Credit card token that can be sent in future transactions without the need to re-enter card and cardholder details. | + + diff --git a/documentation/models/CustomerDeleteResponseDto.md b/documentation/models/CustomerDeleteResponseDto.md new file mode 100644 index 0000000..4e0cfc8 --- /dev/null +++ b/documentation/models/CustomerDeleteResponseDto.md @@ -0,0 +1,10 @@ +# CustomerDeleteResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :-------------------------------------------- | +| deleted | Boolean | ❌ | Indicates whether the client has been removed | +| id | String | ❌ | Unique customer identifier | + + diff --git a/documentation/models/CustomerGetResponseDto.md b/documentation/models/CustomerGetResponseDto.md new file mode 100644 index 0000000..5cd1e63 --- /dev/null +++ b/documentation/models/CustomerGetResponseDto.md @@ -0,0 +1,32 @@ +# CustomerGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :---------------------------- | :------- | :------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique customer identifier | +| dateCreated | String | ❌ | Customer creation date | +| name | String | ❌ | Client name | +| email | String | ❌ | Customer email | +| phone | String | ❌ | Customer phone | +| mobilePhone | String | ❌ | Customer cell phone | +| address | String | ❌ | Customer address | +| addressNumber | String | ❌ | Customer address number | +| complement | String | ❌ | Customer address complement | +| province | String | ❌ | Customer address neighborhood | +| city | Long | ❌ | Unique city identifier in Asaas | +| cityName | String | ❌ | City of customer address | +| state | String | ❌ | Customer address status | +| country | String | ❌ | Customer country | +| postalCode | String | ❌ | Customer address zip code | +| cpfCnpj | String | ❌ | Customer CPF or CNPJ | +| personType | CustomerGetResponsePersonType | ❌ | Kind of person | +| deleted | Boolean | ❌ | Indicates whether it is a deleted client | +| additionalEmails | String | ❌ | Additional customer emails | +| externalReference | String | ❌ | External customer reference | +| notificationDisabled | Boolean | ❌ | Indicates whether notifications are disabled | +| observations | String | ❌ | Customer Observations | +| foreignCustomer | Boolean | ❌ | Indicates if it's non-brazilian customer | + + diff --git a/documentation/models/CustomerGetResponsePersonType.md b/documentation/models/CustomerGetResponsePersonType.md new file mode 100644 index 0000000..7ef9aa6 --- /dev/null +++ b/documentation/models/CustomerGetResponsePersonType.md @@ -0,0 +1,12 @@ +# CustomerGetResponsePersonType + +Kind of person + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| JURIDICA | String | ✅ | "JURIDICA" | +| FISICA | String | ✅ | "FISICA" | + + diff --git a/documentation/models/CustomerListResponseDto.md b/documentation/models/CustomerListResponseDto.md new file mode 100644 index 0000000..2077bc1 --- /dev/null +++ b/documentation/models/CustomerListResponseDto.md @@ -0,0 +1,14 @@ +# CustomerListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/CustomerSaveRequestDto.md b/documentation/models/CustomerSaveRequestDto.md new file mode 100644 index 0000000..53cd9eb --- /dev/null +++ b/documentation/models/CustomerSaveRequestDto.md @@ -0,0 +1,27 @@ +# CustomerSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :------ | :------- | :------------------------------------------------------------------- | +| name | String | ✅ | Client name | +| cpfCnpj | String | ✅ | Customer CPF or CNPJ | +| email | String | ❌ | Customer email | +| phone | String | ❌ | Landline | +| mobilePhone | String | ❌ | Cell phone | +| address | String | ❌ | Public place | +| addressNumber | String | ❌ | Address number | +| complement | String | ❌ | Address complement (max. 255 characters) | +| province | String | ❌ | Neighborhood | +| postalCode | String | ❌ | Address zip code | +| externalReference | String | ❌ | Customer identifier in your system | +| notificationDisabled | Boolean | ❌ | true to disable sending billing notifications | +| additionalEmails | String | ❌ | Additional emails for sending billing notifications separated by "," | +| municipalInscription | String | ❌ | Customer municipal registration | +| stateInscription | String | ❌ | Customer state registration | +| observations | String | ❌ | Additional observations | +| groupName | String | ❌ | Name of the group the customer belongs to | +| company | String | ❌ | Company | +| foreignCustomer | Boolean | ❌ | inform true if it's a non-brazilian customer | + + diff --git a/documentation/models/CustomerUpdateRequestDto.md b/documentation/models/CustomerUpdateRequestDto.md new file mode 100644 index 0000000..a4032db --- /dev/null +++ b/documentation/models/CustomerUpdateRequestDto.md @@ -0,0 +1,27 @@ +# CustomerUpdateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :------ | :------- | :------------------------------------------------------------------- | +| name | String | ❌ | Client name | +| cpfCnpj | String | ❌ | Customer CPF or CNPJ | +| email | String | ❌ | Customer email | +| phone | String | ❌ | Landline | +| mobilePhone | String | ❌ | Cell phone | +| address | String | ❌ | Public place | +| addressNumber | String | ❌ | Address number | +| complement | String | ❌ | Address complement | +| province | String | ❌ | Neighborhood | +| postalCode | String | ❌ | Address zip code | +| externalReference | String | ❌ | Customer identifier in your system | +| notificationDisabled | Boolean | ❌ | true to disable sending billing notifications | +| additionalEmails | String | ❌ | Additional emails for sending billing notifications separated by "," | +| municipalInscription | String | ❌ | Customer municipal registration | +| stateInscription | String | ❌ | Customer state registration | +| observations | String | ❌ | Additional observations | +| groupName | String | ❌ | Name of the group the customer belongs to | +| company | String | ❌ | Company | +| foreignCustomer | Boolean | ❌ | inform true if it's a non-brazilian customer | + + diff --git a/documentation/models/ErrorResponseDto.md b/documentation/models/ErrorResponseDto.md new file mode 100644 index 0000000..2d120d1 --- /dev/null +++ b/documentation/models/ErrorResponseDto.md @@ -0,0 +1,9 @@ +# ErrorResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----- | :--------------------------- | :------- | :-------------- | +| errors | List\ | ❌ | List of objects | + + diff --git a/documentation/models/ErrorResponseItemDto.md b/documentation/models/ErrorResponseItemDto.md new file mode 100644 index 0000000..73f677e --- /dev/null +++ b/documentation/models/ErrorResponseItemDto.md @@ -0,0 +1,12 @@ +# ErrorResponseItemDto + +List of objects + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :---------------- | +| code | String | ❌ | Error code | +| description | String | ❌ | Error description | + + diff --git a/documentation/models/FinanceBalanceResponseDto.md b/documentation/models/FinanceBalanceResponseDto.md new file mode 100644 index 0000000..50cc8d8 --- /dev/null +++ b/documentation/models/FinanceBalanceResponseDto.md @@ -0,0 +1,9 @@ +# FinanceBalanceResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :----- | :------- | :-------------- | +| balance | Double | ❌ | Account balance | + + diff --git a/documentation/models/FinanceGetPaymentStatisticsRequestBillingType.md b/documentation/models/FinanceGetPaymentStatisticsRequestBillingType.md new file mode 100644 index 0000000..2c84b19 --- /dev/null +++ b/documentation/models/FinanceGetPaymentStatisticsRequestBillingType.md @@ -0,0 +1,16 @@ +# FinanceGetPaymentStatisticsRequestBillingType + +Filter by payment method + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| TRANSFER | String | ✅ | "TRANSFER" | +| DEPOSIT | String | ✅ | "DEPOSIT" | +| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/FinanceGetPaymentStatisticsRequestPaymentStatus.md b/documentation/models/FinanceGetPaymentStatisticsRequestPaymentStatus.md new file mode 100644 index 0000000..e20ceb6 --- /dev/null +++ b/documentation/models/FinanceGetPaymentStatisticsRequestPaymentStatus.md @@ -0,0 +1,14 @@ +# FinanceGetPaymentStatisticsRequestPaymentStatus + +Filter by status + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :----- | :------- | :---------- | +| PENDING | String | ✅ | "PENDING" | +| RECEIVED | String | ✅ | "RECEIVED" | +| CONFIRMED | String | ✅ | "CONFIRMED" | +| OVERDUE | String | ✅ | "OVERDUE" | + + diff --git a/documentation/models/FinanceGetPaymentStatisticsResponseDto.md b/documentation/models/FinanceGetPaymentStatisticsResponseDto.md new file mode 100644 index 0000000..05d8cd4 --- /dev/null +++ b/documentation/models/FinanceGetPaymentStatisticsResponseDto.md @@ -0,0 +1,11 @@ +# FinanceGetPaymentStatisticsResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------------- | +| quantity | Long | ❌ | Number of charges | +| value | Double | ❌ | Amount | +| netValue | Double | ❌ | Total net worth | + + diff --git a/documentation/models/FinanceGetSplitStatisticsResponseDto.md b/documentation/models/FinanceGetSplitStatisticsResponseDto.md new file mode 100644 index 0000000..3d8a8eb --- /dev/null +++ b/documentation/models/FinanceGetSplitStatisticsResponseDto.md @@ -0,0 +1,10 @@ +# FinanceGetSplitStatisticsResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----- | :----- | :------- | :----------------- | +| income | Double | ❌ | Amounts receivable | +| value | Double | ❌ | Values to be sent | + + diff --git a/documentation/models/FinancialTransactionGetResponseDto.md b/documentation/models/FinancialTransactionGetResponseDto.md new file mode 100644 index 0000000..ec86d7a --- /dev/null +++ b/documentation/models/FinancialTransactionGetResponseDto.md @@ -0,0 +1,25 @@ +# FinancialTransactionGetResponseDto + +List of objects + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :------------------------------------------------------ | :------- | :---------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique transaction identifier in Asaas | +| value | Double | ❌ | Transaction value | +| balance | Double | ❌ | Value in account at the time of the transaction | +| type | FinancialTransactionGetResponseFinancialTransactionType | ❌ | Transaction type | +| date | String | ❌ | Transaction date | +| description | String | ❌ | Transaction description | +| paymentId | String | ❌ | Payment identifier (If any) | +| splitId | String | ❌ | Split identifier (If any) | +| transferId | String | ❌ | Transfer identifier (If any) | +| anticipationId | String | ❌ | Anticipation identifier (If any) | +| billId | String | ❌ | Bill payment identifier (If any) | +| invoiceId | String | ❌ | Invoice identifier (If any) | +| paymentDunningId | String | ❌ | Payment dunning identifier (If any) | +| creditBureauReportId | String | ❌ | Serasa consultation identifier (If any) | + + diff --git a/documentation/models/FinancialTransactionGetResponseFinancialTransactionType.md b/documentation/models/FinancialTransactionGetResponseFinancialTransactionType.md new file mode 100644 index 0000000..5c02f3e --- /dev/null +++ b/documentation/models/FinancialTransactionGetResponseFinancialTransactionType.md @@ -0,0 +1,135 @@ +# FinancialTransactionGetResponseFinancialTransactionType + +Transaction type + +**Properties** + +| Name | Type | Required | Description | +| :---------------------------------------------------- | :----- | :------- | :------------------------------------------------------ | +| PAYMENT_RECEIVED | String | ✅ | "PAYMENT_RECEIVED" | +| TRANSFER | String | ✅ | "TRANSFER" | +| TRANSFER_FEE | String | ✅ | "TRANSFER_FEE" | +| TRANSFER_REVERSAL | String | ✅ | "TRANSFER_REVERSAL" | +| REVERSAL | String | ✅ | "REVERSAL" | +| PAYMENT_REVERSAL | String | ✅ | "PAYMENT_REVERSAL" | +| PAYMENT_REFUND_CANCELLED | String | ✅ | "PAYMENT_REFUND_CANCELLED" | +| PAYMENT_FEE | String | ✅ | "PAYMENT_FEE" | +| PAYMENT_FEE_REVERSAL | String | ✅ | "PAYMENT_FEE_REVERSAL" | +| PAYMENT_CUSTODY_BLOCK | String | ✅ | "PAYMENT_CUSTODY_BLOCK" | +| PAYMENT_CUSTODY_BLOCK_REVERSAL | String | ✅ | "PAYMENT_CUSTODY_BLOCK_REVERSAL" | +| PHONE_CALL_NOTIFICATION_FEE | String | ✅ | "PHONE_CALL_NOTIFICATION_FEE" | +| PROMOTIONAL_CODE_CREDIT | String | ✅ | "PROMOTIONAL_CODE_CREDIT" | +| DEBIT | String | ✅ | "DEBIT" | +| DEBIT_REVERSAL | String | ✅ | "DEBIT_REVERSAL" | +| DEBT_RECOVERY_NEGOTIATION_FINANCIAL_CHARGES | String | ✅ | "DEBT_RECOVERY_NEGOTIATION_FINANCIAL_CHARGES" | +| RECEIVABLE_ANTICIPATION_GROSS_CREDIT | String | ✅ | "RECEIVABLE_ANTICIPATION_GROSS_CREDIT" | +| RECEIVABLE_ANTICIPATION_FEE | String | ✅ | "RECEIVABLE_ANTICIPATION_FEE" | +| RECEIVABLE_ANTICIPATION_DEBIT | String | ✅ | "RECEIVABLE_ANTICIPATION_DEBIT" | +| RECEIVABLE_ANTICIPATION_PARTNER_SETTLEMENT | String | ✅ | "RECEIVABLE_ANTICIPATION_PARTNER_SETTLEMENT" | +| BILL_PAYMENT | String | ✅ | "BILL_PAYMENT" | +| BILL_PAYMENT_FEE | String | ✅ | "BILL_PAYMENT_FEE" | +| BILL_PAYMENT_CANCELLED | String | ✅ | "BILL_PAYMENT_CANCELLED" | +| BILL_PAYMENT_FEE_CANCELLED | String | ✅ | "BILL_PAYMENT_FEE_CANCELLED" | +| BILL_PAYMENT_REFUNDED | String | ✅ | "BILL_PAYMENT_REFUNDED" | +| POSTAL_SERVICE_FEE | String | ✅ | "POSTAL_SERVICE_FEE" | +| INTERNAL_TRANSFER_DEBIT | String | ✅ | "INTERNAL_TRANSFER_DEBIT" | +| INTERNAL_TRANSFER_CREDIT | String | ✅ | "INTERNAL_TRANSFER_CREDIT" | +| INTERNAL_TRANSFER_REVERSAL | String | ✅ | "INTERNAL_TRANSFER_REVERSAL" | +| CREDIT | String | ✅ | "CREDIT" | +| PARTIAL_PAYMENT | String | ✅ | "PARTIAL_PAYMENT" | +| PAYMENT_MESSAGING_NOTIFICATION_FEE | String | ✅ | "PAYMENT_MESSAGING_NOTIFICATION_FEE" | +| PAYMENT_SMS_NOTIFICATION_FEE | String | ✅ | "PAYMENT_SMS_NOTIFICATION_FEE" | +| PAYMENT_DUNNING_REQUEST_FEE | String | ✅ | "PAYMENT_DUNNING_REQUEST_FEE" | +| PAYMENT_DUNNING_RECEIVED_FEE | String | ✅ | "PAYMENT_DUNNING_RECEIVED_FEE" | +| PAYMENT_DUNNING_RECEIVED_IN_CASH_FEE | String | ✅ | "PAYMENT_DUNNING_RECEIVED_IN_CASH_FEE" | +| PAYMENT_DUNNING_CANCELLATION_FEE | String | ✅ | "PAYMENT_DUNNING_CANCELLATION_FEE" | +| CUSTOMER_COMMISSION_SETTLEMENT_CREDIT | String | ✅ | "CUSTOMER_COMMISSION_SETTLEMENT_CREDIT" | +| CUSTOMER_COMMISSION_SETTLEMENT_DEBIT | String | ✅ | "CUSTOMER_COMMISSION_SETTLEMENT_DEBIT" | +| PROMOTIONAL_CODE_DEBIT | String | ✅ | "PROMOTIONAL_CODE_DEBIT" | +| REFUND_REQUEST_FEE | String | ✅ | "REFUND_REQUEST_FEE" | +| REFUND_REQUEST_CANCELLED | String | ✅ | "REFUND_REQUEST_CANCELLED" | +| REFUND_REQUEST_FEE_REVERSAL | String | ✅ | "REFUND_REQUEST_FEE_REVERSAL" | +| INVOICE_FEE | String | ✅ | "INVOICE_FEE" | +| PRODUCT_INVOICE_FEE | String | ✅ | "PRODUCT_INVOICE_FEE" | +| CONSUMER_INVOICE_FEE | String | ✅ | "CONSUMER_INVOICE_FEE" | +| ASAAS_CARD_RECHARGE | String | ✅ | "ASAAS_CARD_RECHARGE" | +| ASAAS_CARD_RECHARGE_REVERSAL | String | ✅ | "ASAAS_CARD_RECHARGE_REVERSAL" | +| ASAAS_CARD_BALANCE_REFUND | String | ✅ | "ASAAS_CARD_BALANCE_REFUND" | +| CHARGEBACK | String | ✅ | "CHARGEBACK" | +| CHARGEBACK_REVERSAL | String | ✅ | "CHARGEBACK_REVERSAL" | +| ASAAS_CARD_BILL_PAYMENT | String | ✅ | "ASAAS_CARD_BILL_PAYMENT" | +| ASAAS_CARD_BILL_PAYMENT_REFUND | String | ✅ | "ASAAS_CARD_BILL_PAYMENT_REFUND" | +| ASAAS_CARD_TRANSACTION | String | ✅ | "ASAAS_CARD_TRANSACTION" | +| ASAAS_CARD_CASHBACK | String | ✅ | "ASAAS_CARD_CASHBACK" | +| ASAAS_CARD_CREDIT_TRANSFER | String | ✅ | "ASAAS_CARD_CREDIT_TRANSFER" | +| ASAAS_CARD_CREDIT_TRANSFER_CANCELLATION | String | ✅ | "ASAAS_CARD_CREDIT_TRANSFER_CANCELLATION" | +| ASAAS_CARD_CREDIT_TRANSFER_PARTIAL_CANCELLATION | String | ✅ | "ASAAS_CARD_CREDIT_TRANSFER_PARTIAL_CANCELLATION" | +| ASAAS_CARD_CREDIT_VOUCHER | String | ✅ | "ASAAS_CARD_CREDIT_VOUCHER" | +| ASAAS_CARD_CREDIT_VOUCHER_REFUND | String | ✅ | "ASAAS_CARD_CREDIT_VOUCHER_REFUND" | +| ASAAS_CARD_DEBIT_TRANSFER | String | ✅ | "ASAAS_CARD_DEBIT_TRANSFER" | +| ASAAS_CARD_DEBIT_TRANSFER_CANCELLATION | String | ✅ | "ASAAS_CARD_DEBIT_TRANSFER_CANCELLATION" | +| ASAAS_CARD_DEBIT_TRANSFER_PARTIAL_CANCELLATION | String | ✅ | "ASAAS_CARD_DEBIT_TRANSFER_PARTIAL_CANCELLATION" | +| ASAAS_CARD_TRANSACTION_FEE | String | ✅ | "ASAAS_CARD_TRANSACTION_FEE" | +| ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE | String | ✅ | "ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE" | +| ASAAS_CARD_TRANSACTION_IOF_FEE | String | ✅ | "ASAAS_CARD_TRANSACTION_IOF_FEE" | +| ASAAS_CARD_TRANSACTION_REFUND | String | ✅ | "ASAAS_CARD_TRANSACTION_REFUND" | +| ASAAS_CARD_TRANSACTION_FEE_REFUND | String | ✅ | "ASAAS_CARD_TRANSACTION_FEE_REFUND" | +| ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE_REFUND | String | ✅ | "ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE_REFUND" | +| ASAAS_CARD_TRANSACTION_PARTIAL_REFUND | String | ✅ | "ASAAS_CARD_TRANSACTION_PARTIAL_REFUND" | +| ASAAS_CARD_TRANSACTION_REFUND_CANCELLATION | String | ✅ | "ASAAS_CARD_TRANSACTION_REFUND_CANCELLATION" | +| ASAAS_CARD_TRANSACTION_PARTIAL_REFUND_CANCELLATION | String | ✅ | "ASAAS_CARD_TRANSACTION_PARTIAL_REFUND_CANCELLATION" | +| ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE | String | ✅ | "ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE" | +| ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE_REFUND | String | ✅ | "ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE_REFUND" | +| ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE | String | ✅ | "ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE" | +| ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE_REFUND | String | ✅ | "ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE_REFUND" | +| ASAAS_MONEY_PAYMENT_FINANCING_FEE | String | ✅ | "ASAAS_MONEY_PAYMENT_FINANCING_FEE" | +| ASAAS_MONEY_PAYMENT_FINANCING_FEE_REFUND | String | ✅ | "ASAAS_MONEY_PAYMENT_FINANCING_FEE_REFUND" | +| ASAAS_MONEY_TRANSACTION_CASHBACK | String | ✅ | "ASAAS_MONEY_TRANSACTION_CASHBACK" | +| ASAAS_MONEY_TRANSACTION_CASHBACK_REFUND | String | ✅ | "ASAAS_MONEY_TRANSACTION_CASHBACK_REFUND" | +| ASAAS_MONEY_TRANSACTION_CHARGEBACK | String | ✅ | "ASAAS_MONEY_TRANSACTION_CHARGEBACK" | +| ASAAS_MONEY_TRANSACTION_CHARGEBACK_REVERSAL | String | ✅ | "ASAAS_MONEY_TRANSACTION_CHARGEBACK_REVERSAL" | +| CHARGED_FEE_REFUND | String | ✅ | "CHARGED_FEE_REFUND" | +| PIX_TRANSACTION_DEBIT | String | ✅ | "PIX_TRANSACTION_DEBIT" | +| PIX_TRANSACTION_DEBIT_REFUND | String | ✅ | "PIX_TRANSACTION_DEBIT_REFUND" | +| PIX_TRANSACTION_CREDIT | String | ✅ | "PIX_TRANSACTION_CREDIT" | +| PIX_TRANSACTION_CREDIT_FEE | String | ✅ | "PIX_TRANSACTION_CREDIT_FEE" | +| PIX_TRANSACTION_CREDIT_REFUND | String | ✅ | "PIX_TRANSACTION_CREDIT_REFUND" | +| PIX_TRANSACTION_CREDIT_REFUND_CANCELLATION | String | ✅ | "PIX_TRANSACTION_CREDIT_REFUND_CANCELLATION" | +| PIX_TRANSACTION_DEBIT_FEE | String | ✅ | "PIX_TRANSACTION_DEBIT_FEE" | +| CREDIT_BUREAU_REPORT | String | ✅ | "CREDIT_BUREAU_REPORT" | +| CONTRACTUAL_EFFECT_SETTLEMENT | String | ✅ | "CONTRACTUAL_EFFECT_SETTLEMENT" | +| CONTRACTUAL_EFFECT_SETTLEMENT_REVERSAL | String | ✅ | "CONTRACTUAL_EFFECT_SETTLEMENT_REVERSAL" | +| FREE_PAYMENT_USE | String | ✅ | "FREE_PAYMENT_USE" | +| MOBILE_PHONE_RECHARGE | String | ✅ | "MOBILE_PHONE_RECHARGE" | +| REFUND_MOBILE_PHONE_RECHARGE | String | ✅ | "REFUND_MOBILE_PHONE_RECHARGE" | +| CANCEL_MOBILE_PHONE_RECHARGE | String | ✅ | "CANCEL_MOBILE_PHONE_RECHARGE" | +| BACEN_JUDICIAL_LOCK | String | ✅ | "BACEN_JUDICIAL_LOCK" | +| BACEN_JUDICIAL_UNLOCK | String | ✅ | "BACEN_JUDICIAL_UNLOCK" | +| BACEN_JUDICIAL_TRANSFER | String | ✅ | "BACEN_JUDICIAL_TRANSFER" | +| INSTANT_TEXT_MESSAGE_FEE | String | ✅ | "INSTANT_TEXT_MESSAGE_FEE" | +| ASAAS_DEBIT_CARD_REQUEST_FEE | String | ✅ | "ASAAS_DEBIT_CARD_REQUEST_FEE" | +| ASAAS_PREPAID_CARD_REQUEST_FEE | String | ✅ | "ASAAS_PREPAID_CARD_REQUEST_FEE" | +| EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_CREDIT | String | ✅ | "EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_CREDIT" | +| EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_REVERSAL | String | ✅ | "EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_REVERSAL" | +| CHILD_ACCOUNT_KNOWN_YOUR_CUSTOMER_BATCH_FEE | String | ✅ | "CHILD_ACCOUNT_KNOWN_YOUR_CUSTOMER_BATCH_FEE" | +| CONTRACTED_CUSTOMER_PLAN_FEE | String | ✅ | "CONTRACTED_CUSTOMER_PLAN_FEE" | +| ACCOUNT_INACTIVITY_FEE | String | ✅ | "ACCOUNT_INACTIVITY_FEE" | +| PAYMENT_ORIGIN_CHANNEL_FEE | String | ✅ | "PAYMENT_ORIGIN_CHANNEL_FEE" | +| PAYMENT_SPLIT_DIVERGENCE_BLOCK | String | ✅ | "PAYMENT_SPLIT_DIVERGENCE_BLOCK" | +| PAYMENT_SPLIT_DIVERGENCE_BLOCK_REVERSAL | String | ✅ | "PAYMENT_SPLIT_DIVERGENCE_BLOCK_REVERSAL" | +| CUSTOMER_ACCOUNT_PAYMENT_BONUS_FEE | String | ✅ | "CUSTOMER_ACCOUNT_PAYMENT_BONUS_FEE" | +| CUSTOMER_PAYMENT_CUSTODY_CONFIG_FEE | String | ✅ | "CUSTOMER_PAYMENT_CUSTODY_CONFIG_FEE" | +| CARD_SALE_ITEM_FEE | String | ✅ | "CARD_SALE_ITEM_FEE" | +| CARD_SALE_ITEM_FEE_REVERSAL | String | ✅ | "CARD_SALE_ITEM_FEE_REVERSAL" | +| CARD_SALE_RECEIVED | String | ✅ | "CARD_SALE_RECEIVED" | +| CARD_SALE_REVERSAL | String | ✅ | "CARD_SALE_REVERSAL" | +| FLAPP_STORE_PLAN_CHARGE_FEE | String | ✅ | "FLAPP_STORE_PLAN_CHARGE_FEE" | +| RECEIVABLE_ANTICIPATION_PAYMENT_FEE | String | ✅ | "RECEIVABLE_ANTICIPATION_PAYMENT_FEE" | +| ASAAS_MONEY_DONATION_DEBIT | String | ✅ | "ASAAS_MONEY_DONATION_DEBIT" | +| ASAAS_MONEY_DONATION_DEBIT_REFUND | String | ✅ | "ASAAS_MONEY_DONATION_DEBIT_REFUND" | +| ASAAS_MONEY_PAYMENT_DEBIT | String | ✅ | "ASAAS_MONEY_PAYMENT_DEBIT" | +| ASAAS_MONEY_PAYMENT_DEBIT_REFUND | String | ✅ | "ASAAS_MONEY_PAYMENT_DEBIT_REFUND" | +| CUSTOMER_COMMISSION_CHECKOUT | String | ✅ | "CUSTOMER_COMMISSION_CHECKOUT" | +| RECEIVABLE_ANTICIPATION_CREDIT | String | ✅ | "RECEIVABLE_ANTICIPATION_CREDIT" | + + diff --git a/documentation/models/FinancialTransactionListResponseDto.md b/documentation/models/FinancialTransactionListResponseDto.md new file mode 100644 index 0000000..9de02ff --- /dev/null +++ b/documentation/models/FinancialTransactionListResponseDto.md @@ -0,0 +1,14 @@ +# FinancialTransactionListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----------------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/FiscalInfoGetResponseDto.md b/documentation/models/FiscalInfoGetResponseDto.md new file mode 100644 index 0000000..170c88e --- /dev/null +++ b/documentation/models/FiscalInfoGetResponseDto.md @@ -0,0 +1,25 @@ +# FiscalInfoGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------------- | :------ | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| email | String | ❌ | Email used by Asaas to send invoice notifications and alerts | +| municipalInscription | String | ❌ | Company municipal registration | +| simplesNacional | Boolean | ❌ | Indicates whether the company opts for the simple national system | +| culturalProjectsPromoter | Boolean | ❌ | Identifies whether the company is classified as a cultural promoter | +| cnae | String | ❌ | CNAE code | +| specialTaxRegime | String | ❌ | Special taxation regime identifier | +| serviceListItem | String | ❌ | Service list item, as http://www.planalto.gov.br/ccivil_03/leis/LCP/Lcp116.htm | +| nbsCode | String | ❌ | NBS Code (Brazilian Nomenclature of Services). It must be included on the NFS-e (Electronic Service Invoice) when required by the municipal government and/or for import or export services. Check with your local government or your accounting department to determine whether this information is necessary. | +| rpsSerie | String | ❌ | Serial Number registered for the company | +| rpsNumber | Long | ❌ | RPS number used in the last invoice issued to your company | +| loteNumber | Long | ❌ | Batch number used on the last invoice issued by your company | +| username | String | ❌ | User to access your city's city hall website | +| passwordSent | Boolean | ❌ | Indicates whether the password to access the city hall website has been entered | +| accessTokenSent | Boolean | ❌ | Indicates whether the token for accessing the city hall website was provided | +| certificateSent | Boolean | ❌ | Indicates whether the digital certificate for access to the city hall website has been provided | +| nationalPortalTaxCalculationRegime | String | ❌ | Identifier of the tax calculation regime | + + diff --git a/documentation/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.md b/documentation/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.md new file mode 100644 index 0000000..5c63838 --- /dev/null +++ b/documentation/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.md @@ -0,0 +1,12 @@ +# FiscalInfoListInvoiceNbsCodesResponseDataDto + +List of objects + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :----- | :------- | :------------------- | +| nbsCode | String | ❌ | NBS code | +| codeDescription | String | ❌ | NBS code description | + + diff --git a/documentation/models/FiscalInfoListInvoiceNbsCodesResponseDto.md b/documentation/models/FiscalInfoListInvoiceNbsCodesResponseDto.md new file mode 100644 index 0000000..977de21 --- /dev/null +++ b/documentation/models/FiscalInfoListInvoiceNbsCodesResponseDto.md @@ -0,0 +1,14 @@ +# FiscalInfoListInvoiceNbsCodesResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :--------------------------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/FiscalInfoListMunicipalServicesResponseDataDto.md b/documentation/models/FiscalInfoListMunicipalServicesResponseDataDto.md new file mode 100644 index 0000000..7f96f49 --- /dev/null +++ b/documentation/models/FiscalInfoListMunicipalServicesResponseDataDto.md @@ -0,0 +1,13 @@ +# FiscalInfoListMunicipalServicesResponseDataDto + +List of objects + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------------------ | +| id | String | ❌ | Unique service identifier | +| description | String | ❌ | Service description | +| issTax | Double | ❌ | ISS percentage rate | + + diff --git a/documentation/models/FiscalInfoListMunicipalServicesResponseDto.md b/documentation/models/FiscalInfoListMunicipalServicesResponseDto.md new file mode 100644 index 0000000..2b8a061 --- /dev/null +++ b/documentation/models/FiscalInfoListMunicipalServicesResponseDto.md @@ -0,0 +1,14 @@ +# FiscalInfoListMunicipalServicesResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----------------------------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/FiscalInfoMunicipalOptionsGetResponseDto.md b/documentation/models/FiscalInfoMunicipalOptionsGetResponseDto.md new file mode 100644 index 0000000..bfaf9fe --- /dev/null +++ b/documentation/models/FiscalInfoMunicipalOptionsGetResponseDto.md @@ -0,0 +1,21 @@ +# FiscalInfoMunicipalOptionsGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------------------------- | :---------------------------------------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| authenticationType | FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao | ❌ | Type of authentication required at city hall | +| supportsCancellation | Boolean | ❌ | Whether or not it supports the cancellation of invoices automatically at your city hall | +| usesSpecialTaxRegimes | Boolean | ❌ | It is necessary to inform or not the special taxation regime. If used, enter it in the `specialTaxRegime` field of **Create or update tax information** according to the options returned in the `specialTaxRegimesList` list. | +| usesServiceListItem | Boolean | ❌ | Whether or not to inform the item on the service list | +| specialTaxRegimesList | List\ | ❌ | Tax calculation regime options | +| nationalPortalTaxCalculationRegimeList | List\ | ❌ | Special taxation regime options | +| nationalPortalTaxCalculationRegimeHelp | String | ❌ | Explanation of the tax calculation regime | +| municipalInscriptionHelp | String | ❌ | Explanation of the municipal registration format | +| specialTaxRegimeHelp | String | ❌ | Explanation of the special taxation regime | +| serviceListItemHelp | String | ❌ | Explanation of service list item format | +| digitalCertificatedHelp | String | ❌ | Explanation of digital certificate | +| accessTokenHelp | String | ❌ | Token Explanation | +| municipalServiceCodeHelp | String | ❌ | Explanation of municipal service code format | + + diff --git a/documentation/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md b/documentation/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md new file mode 100644 index 0000000..e31f7a9 --- /dev/null +++ b/documentation/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md @@ -0,0 +1,13 @@ +# FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao + +Type of authentication required at city hall + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----- | :------- | :------------------ | +| CERTIFICATE | String | ✅ | "CERTIFICATE" | +| TOKEN | String | ✅ | "TOKEN" | +| USER_AND_PASSWORD | String | ✅ | "USER_AND_PASSWORD" | + + diff --git a/documentation/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md b/documentation/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md new file mode 100644 index 0000000..f12bd5c --- /dev/null +++ b/documentation/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md @@ -0,0 +1,12 @@ +# FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto + +Special taxation regime options + +**Properties** + +| Name | Type | Required | Description | +| :---- | :----- | :------- | :--------------------------------------- | +| label | String | ❌ | Name of the tax calculation regime | +| value | String | ❌ | Identifier of the tax calculation regime | + + diff --git a/documentation/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md b/documentation/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md new file mode 100644 index 0000000..527e3db --- /dev/null +++ b/documentation/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md @@ -0,0 +1,12 @@ +# FiscalInfoMunicipalOptionsSpecialTaxRegimesDto + +Tax calculation regime options + +**Properties** + +| Name | Type | Required | Description | +| :---- | :----- | :------- | :---------------------------------- | +| label | String | ❌ | Name of the special taxation regime | +| value | String | ❌ | Special taxation regime identifier | + + diff --git a/documentation/models/FiscalInfoSaveRequestDto.md b/documentation/models/FiscalInfoSaveRequestDto.md new file mode 100644 index 0000000..157c1cc --- /dev/null +++ b/documentation/models/FiscalInfoSaveRequestDto.md @@ -0,0 +1,25 @@ +# FiscalInfoSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------------- | :------ | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| email | String | ✅ | Email used by Asaas to send invoice notifications and alerts | +| simplesNacional | Boolean | ✅ | Indicates whether the company opts for the simple national system | +| municipalInscription | String | ❌ | Company municipal registration | +| culturalProjectsPromoter | Boolean | ❌ | Identifies whether the company is classified as a cultural promoter | +| cnae | String | ❌ | CNAE code | +| specialTaxRegime | String | ❌ | Special taxation regime identifier | +| serviceListItem | String | ❌ | Service list item, as http://www.planalto.gov.br/ccivil_03/leis/LCP/Lcp116.htm | +| nbsCode | String | ❌ | NBS Code (Brazilian Nomenclature of Services). It must be included on the NFS-e (Electronic Service Invoice) when required by the municipal government and/or for import or export services. Check with your local government or your accounting department to determine whether this information is necessary. | +| rpsSerie | String | ❌ | Serial Number used by your company to issue invoices. In most cities the serial number used is '1' or 'E' | +| rpsNumber | Long | ❌ | RPS number used on the last invoice issued by your company. If your last NF issued has an RPS equal to '100', this field must be filled in with '101'. If you have never issued invoices through your city hall's website, enter '1' in this field | +| loteNumber | Long | ❌ | Batch number used on the last invoice issued by your company. If the last lot used in your city hall is '25', this field must be filled in with '26'. Only enter this field if your city hall requires the use of lots | +| username | String | ❌ | User to access your city's city hall website | +| password | String | ❌ | Password to access the city hall website | +| accessToken | String | ❌ | Token for access to the city hall website (If access to your city hall website is via Token) | +| certificateFile | byte[] | ❌ | File | +| certificatePassword | String | ❌ | Password for the digital certificate sent (If access to your city hall website through a digital certificate) | +| nationalPortalTaxCalculationRegime | String | ❌ | Identifier of the tax calculation regime. It must only be completed by companies classified as ME or EPP opting for Simples Nacional. Consult the need for this information with your city hall or accounting department. | + + diff --git a/documentation/models/FiscalInfoUpdateUseNationalPortalRequestDto.md b/documentation/models/FiscalInfoUpdateUseNationalPortalRequestDto.md new file mode 100644 index 0000000..edf8774 --- /dev/null +++ b/documentation/models/FiscalInfoUpdateUseNationalPortalRequestDto.md @@ -0,0 +1,9 @@ +# FiscalInfoUpdateUseNationalPortalRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :---------------------------------------------------------------------------------------------- | +| enabled | Boolean | ✅ | Indicates whether the issuing of invoices through the national portal should be enabled or not. | + + diff --git a/documentation/models/FiscalInfoUpdateUseNationalPortalResponseDto.md b/documentation/models/FiscalInfoUpdateUseNationalPortalResponseDto.md new file mode 100644 index 0000000..da7f8b1 --- /dev/null +++ b/documentation/models/FiscalInfoUpdateUseNationalPortalResponseDto.md @@ -0,0 +1,9 @@ +# FiscalInfoUpdateUseNationalPortalResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :-------------------------------------------------------------------------------------- | +| success | Boolean | ❌ | Status of the request to change the use status of national portal for issuing invoices. | + + diff --git a/documentation/models/InstallmentDeleteResponseDto.md b/documentation/models/InstallmentDeleteResponseDto.md new file mode 100644 index 0000000..39b78dc --- /dev/null +++ b/documentation/models/InstallmentDeleteResponseDto.md @@ -0,0 +1,10 @@ +# InstallmentDeleteResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :------------------------------------------------ | +| deleted | Boolean | ❌ | Indicates whether the installment plan is removed | +| id | String | ❌ | Unique installment identifier in Asaas | + + diff --git a/documentation/models/InstallmentGetResponseBillingType.md b/documentation/models/InstallmentGetResponseBillingType.md new file mode 100644 index 0000000..26d491b --- /dev/null +++ b/documentation/models/InstallmentGetResponseBillingType.md @@ -0,0 +1,17 @@ +# InstallmentGetResponseBillingType + +Form of payment + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | +| TRANSFER | String | ✅ | "TRANSFER" | +| DEPOSIT | String | ✅ | "DEPOSIT" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/InstallmentGetResponseDto.md b/documentation/models/InstallmentGetResponseDto.md new file mode 100644 index 0000000..2fbd477 --- /dev/null +++ b/documentation/models/InstallmentGetResponseDto.md @@ -0,0 +1,27 @@ +# InstallmentGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :------------------------------------- | :------- | :--------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique installment identifier in Asaas | +| value | Double | ❌ | Installment amount | +| netValue | Double | ❌ | Net installment amount | +| paymentValue | Double | ❌ | Value of each installment | +| installmentCount | Long | ❌ | Number of installments | +| billingType | InstallmentGetResponseBillingType | ❌ | Form of payment | +| paymentDate | String | ❌ | Bill settlement date on Asaas | +| description | String | ❌ | Description of the installment | +| expirationDay | Long | ❌ | Due date of each installment | +| dateCreated | String | ❌ | Installment creation date | +| customer | String | ❌ | Unique identifier of the customer to whom the installment belongs | +| paymentLink | String | ❌ | Unique identifier of the payment link to which the installment belongs | +| checkoutSession | String | ❌ | Unique checkout identifier | +| transactionReceiptUrl | String | ❌ | URL of proof of confirmation, receipt, reversal or removal. | +| chargeback | PaymentChargebackResponseDto | ❌ | | +| creditCard | PaymentSaveWithCreditCardCreditCardDto | ❌ | Credit card information | +| deleted | Boolean | ❌ | Indicates whether the installment has been removed | +| refunds | List\ | ❌ | Refunds information | + + diff --git a/documentation/models/InstallmentListPaymentsRequestPaymentStatus.md b/documentation/models/InstallmentListPaymentsRequestPaymentStatus.md new file mode 100644 index 0000000..2e36c43 --- /dev/null +++ b/documentation/models/InstallmentListPaymentsRequestPaymentStatus.md @@ -0,0 +1,24 @@ +# InstallmentListPaymentsRequestPaymentStatus + +Filter by payment status + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------- | :----- | :------- | :----------------------------- | +| PENDING | String | ✅ | "PENDING" | +| RECEIVED | String | ✅ | "RECEIVED" | +| CONFIRMED | String | ✅ | "CONFIRMED" | +| OVERDUE | String | ✅ | "OVERDUE" | +| REFUNDED | String | ✅ | "REFUNDED" | +| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | +| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | +| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | +| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | +| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | +| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | +| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | +| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | +| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | + + diff --git a/documentation/models/InstallmentListResponseDto.md b/documentation/models/InstallmentListResponseDto.md new file mode 100644 index 0000000..57228a9 --- /dev/null +++ b/documentation/models/InstallmentListResponseDto.md @@ -0,0 +1,14 @@ +# InstallmentListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :-------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/InstallmentPaymentBookResponseDto.md b/documentation/models/InstallmentPaymentBookResponseDto.md new file mode 100644 index 0000000..aae3430 --- /dev/null +++ b/documentation/models/InstallmentPaymentBookResponseDto.md @@ -0,0 +1,10 @@ +# InstallmentPaymentBookResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| file | byte[] | ❌ | File | +| fileName | String | ❌ | File name | + + diff --git a/documentation/models/InstallmentRefundResponseDto.md b/documentation/models/InstallmentRefundResponseDto.md new file mode 100644 index 0000000..f90cc22 --- /dev/null +++ b/documentation/models/InstallmentRefundResponseDto.md @@ -0,0 +1,19 @@ +# InstallmentRefundResponseDto + +Refunds information + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :------------------------------------------- | :------- | :---------------------------------------------------------------------- | +| dateCreated | String | ❌ | Refund creation date | +| status | InstallmentRefundResponsePaymentRefundStatus | ❌ | Refund status | +| value | Double | ❌ | Refund value | +| endToEndIdentifier | String | ❌ | (Pix only) Unique identifier of the Pix transaction at the Central Bank | +| description | String | ❌ | Description of the refund | +| effectiveDate | String | ❌ | (Pix only) Refund effective date | +| transactionReceiptUrl | String | ❌ | Transaction receipt link | +| refundedSplits | List\ | ❌ | Refunded Splits, if any | +| paymentId | String | ❌ | Unique payment identifier in Asaas | + + diff --git a/documentation/models/InstallmentRefundResponsePaymentRefundStatus.md b/documentation/models/InstallmentRefundResponsePaymentRefundStatus.md new file mode 100644 index 0000000..43bc679 --- /dev/null +++ b/documentation/models/InstallmentRefundResponsePaymentRefundStatus.md @@ -0,0 +1,15 @@ +# InstallmentRefundResponsePaymentRefundStatus + +Refund status + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------------------- | :----- | :------- | :----------------------------------------- | +| PENDING | String | ✅ | "PENDING" | +| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | +| AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION | String | ✅ | "AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION" | +| CANCELLED | String | ✅ | "CANCELLED" | +| DONE | String | ✅ | "DONE" | + + diff --git a/documentation/models/InstallmentSaveRequestBillingType.md b/documentation/models/InstallmentSaveRequestBillingType.md new file mode 100644 index 0000000..ac14e90 --- /dev/null +++ b/documentation/models/InstallmentSaveRequestBillingType.md @@ -0,0 +1,14 @@ +# InstallmentSaveRequestBillingType + +Payment billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/InstallmentSaveRequestDto.md b/documentation/models/InstallmentSaveRequestDto.md new file mode 100644 index 0000000..4732729 --- /dev/null +++ b/documentation/models/InstallmentSaveRequestDto.md @@ -0,0 +1,22 @@ +# InstallmentSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------------------- | :--------------------------------- | :------- | :----------------------------------------------------------------- | +| installmentCount | Long | ✅ | Number of installments | +| customer | String | ✅ | Unique customer identifier in Asaas | +| value | Double | ✅ | Value of each installment | +| billingType | InstallmentSaveRequestBillingType | ✅ | Payment billing type | +| dueDate | String | ✅ | Due date of the first installment | +| totalValue | Double | ❌ | Total installment amount | +| description | String | ❌ | Installment description (max. 500 characters) | +| postalService | Boolean | ❌ | Define whether the payment will be sent via post | +| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | +| paymentExternalReference | String | ❌ | Free search field | +| discount | PaymentDiscountDto | ❌ | Discount information | +| interest | PaymentInterestRequestDto | ❌ | Interest information for payment after due date | +| fine | PaymentFineRequestDto | ❌ | Fine information for payment after due date | +| splits | List\ | ❌ | Split Settings | + + diff --git a/documentation/models/InstallmentSaveWithCreditCardRequestBillingType.md b/documentation/models/InstallmentSaveWithCreditCardRequestBillingType.md new file mode 100644 index 0000000..0beb6c3 --- /dev/null +++ b/documentation/models/InstallmentSaveWithCreditCardRequestBillingType.md @@ -0,0 +1,14 @@ +# InstallmentSaveWithCreditCardRequestBillingType + +Payment billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/InstallmentSaveWithCreditCardRequestDto.md b/documentation/models/InstallmentSaveWithCreditCardRequestDto.md new file mode 100644 index 0000000..5c1ce2a --- /dev/null +++ b/documentation/models/InstallmentSaveWithCreditCardRequestDto.md @@ -0,0 +1,27 @@ +# InstallmentSaveWithCreditCardRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------------------- | :---------------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- | +| installmentCount | Long | ✅ | Number of installments | +| customer | String | ✅ | Unique customer identifier in Asaas | +| value | Double | ✅ | Value of each installment | +| billingType | InstallmentSaveWithCreditCardRequestBillingType | ✅ | Payment billing type | +| dueDate | String | ✅ | Due date of the first installment | +| creditCard | CreditCardRequestDto | ✅ | Credit card information | +| creditCardHolderInfo | CreditCardHolderInfoRequestDto | ✅ | Credit card holder information | +| remoteIp | String | ✅ | IP from where the customer is making the purchase. Your server's IP must not be entered. | +| totalValue | Double | ❌ | Total installment amount | +| description | String | ❌ | Installment description (max. 500 characters) | +| postalService | Boolean | ❌ | Define whether the payment will be sent via post | +| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | +| paymentExternalReference | String | ❌ | Free search field | +| discount | PaymentDiscountDto | ❌ | Discount information | +| interest | PaymentInterestRequestDto | ❌ | Interest information for payment after due date | +| fine | PaymentFineRequestDto | ❌ | Fine information for payment after due date | +| splits | List\ | ❌ | Split Settings | +| creditCardToken | String | ❌ | Credit card token for using the credit card tokenization functionality. If informed, the fields creditCard and creditCardHolderInfo are not mandatory. | +| authorizeOnly | Boolean | ❌ | Carry out only the Pre-Authorization of the installment | + + diff --git a/documentation/models/InstallmentSplitGetResponseDto.md b/documentation/models/InstallmentSplitGetResponseDto.md new file mode 100644 index 0000000..9c9d41d --- /dev/null +++ b/documentation/models/InstallmentSplitGetResponseDto.md @@ -0,0 +1,20 @@ +# InstallmentSplitGetResponseDto + +Split array + +**Properties** + +| Name | Type | Required | Description | +| :----------------- | :-------------------------------------------------------- | :------- | :------------------------------------------------------------------------ | +| id | String | ❌ | Unique split identifier in Asaas | +| walletId | String | ❌ | Asaas wallet identifier that will be transferred | +| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the charge is received | +| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | +| totalValue | Double | ❌ | Amount that will be split relative to the total amount that will be paid | +| cancellationReason | InstallmentSplitGetResponsePaymentSplitCancellationReason | ❌ | Reason for canceling the split | +| status | InstallmentSplitGetResponsePaymentSplitStatus | ❌ | Split status | +| externalReference | String | ❌ | Unique identifier of split in your system | +| description | String | ❌ | Split description | +| installmentNumber | Long | ❌ | Installment to which the split is linked | + + diff --git a/documentation/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.md b/documentation/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.md new file mode 100644 index 0000000..aaf214a --- /dev/null +++ b/documentation/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.md @@ -0,0 +1,16 @@ +# InstallmentSplitGetResponsePaymentSplitCancellationReason + +Reason for canceling the split + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :----- | :------- | :------------------------- | +| PAYMENT_DELETED | String | ✅ | "PAYMENT_DELETED" | +| PAYMENT_OVERDUE | String | ✅ | "PAYMENT_OVERDUE" | +| PAYMENT_RECEIVED_IN_CASH | String | ✅ | "PAYMENT_RECEIVED_IN_CASH" | +| PAYMENT_REFUNDED | String | ✅ | "PAYMENT_REFUNDED" | +| VALUE_DIVERGENCE_BLOCK | String | ✅ | "VALUE_DIVERGENCE_BLOCK" | +| WALLET_UNABLE_TO_RECEIVE | String | ✅ | "WALLET_UNABLE_TO_RECEIVE" | + + diff --git a/documentation/models/InstallmentSplitGetResponsePaymentSplitStatus.md b/documentation/models/InstallmentSplitGetResponsePaymentSplitStatus.md new file mode 100644 index 0000000..b2198cb --- /dev/null +++ b/documentation/models/InstallmentSplitGetResponsePaymentSplitStatus.md @@ -0,0 +1,16 @@ +# InstallmentSplitGetResponsePaymentSplitStatus + +Split status + +**Properties** + +| Name | Type | Required | Description | +| :-------------------------- | :----- | :------- | :---------------------------- | +| PENDING | String | ✅ | "PENDING" | +| AWAITING_CREDIT | String | ✅ | "AWAITING_CREDIT" | +| CANCELLED | String | ✅ | "CANCELLED" | +| DONE | String | ✅ | "DONE" | +| REFUNDED | String | ✅ | "REFUNDED" | +| BLOCKED_BY_VALUE_DIVERGENCE | String | ✅ | "BLOCKED_BY_VALUE_DIVERGENCE" | + + diff --git a/documentation/models/InstallmentSplitRequestDto.md b/documentation/models/InstallmentSplitRequestDto.md new file mode 100644 index 0000000..43acc4b --- /dev/null +++ b/documentation/models/InstallmentSplitRequestDto.md @@ -0,0 +1,17 @@ +# InstallmentSplitRequestDto + +Split Settings + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----- | :------- | :-------------------------------------------------------------------------------------------------------------- | +| walletId | String | ✅ | Asaas wallet identifier that will be transferred | +| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the payment is received | +| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | +| totalFixedValue | Double | ❌ | (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. | +| externalReference | String | ❌ | Split identifier in your system | +| description | String | ❌ | Split description | +| installmentNumber | Long | ❌ | Installment number to which the split will be linked. Cannot be provided along with the 'totalFixedValue' field | + + diff --git a/documentation/models/InstallmentUpdateSplitRequestDto.md b/documentation/models/InstallmentUpdateSplitRequestDto.md new file mode 100644 index 0000000..5ff0528 --- /dev/null +++ b/documentation/models/InstallmentUpdateSplitRequestDto.md @@ -0,0 +1,9 @@ +# InstallmentUpdateSplitRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :----- | :--------------------------------- | :------- | :------------------- | +| splits | List\ | ❌ | Split data to update | + + diff --git a/documentation/models/InstallmentUpdateSplitResponseDto.md b/documentation/models/InstallmentUpdateSplitResponseDto.md new file mode 100644 index 0000000..571e24b --- /dev/null +++ b/documentation/models/InstallmentUpdateSplitResponseDto.md @@ -0,0 +1,9 @@ +# InstallmentUpdateSplitResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----- | :------------------------------------- | :------- | :---------- | +| splits | List\ | ❌ | Split array | + + diff --git a/documentation/models/InvoiceCancelRequestDto.md b/documentation/models/InvoiceCancelRequestDto.md new file mode 100644 index 0000000..ccf59ad --- /dev/null +++ b/documentation/models/InvoiceCancelRequestDto.md @@ -0,0 +1,9 @@ +# InvoiceCancelRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :------ | :------- | :--------------------------- | +| cancelOnlyOnAsaas | Boolean | ❌ | Cancel invoice only on Asaas | + + diff --git a/documentation/models/InvoiceGetResponseDto.md b/documentation/models/InvoiceGetResponseDto.md new file mode 100644 index 0000000..017b556 --- /dev/null +++ b/documentation/models/InvoiceGetResponseDto.md @@ -0,0 +1,33 @@ +# InvoiceGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------------ | :------------------------------ | :------- | :----------------------------------------------------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique invoice identifier in Asaas | +| status | InvoiceGetResponseInvoiceStatus | ❌ | Invoice status | +| customer | String | ❌ | Unique customer identifier | +| payment | String | ❌ | Unique payment identifier in Asaas | +| installment | String | ❌ | Unique installment identifier in Asaas | +| type | InvoiceGetResponseDtoType | ❌ | Invoice type | +| statusDescription | String | ❌ | Description of the current status of the invoice | +| serviceDescription | String | ❌ | Description of invoice services | +| pdfUrl | String | ❌ | Link to pdf file of the invoice issued | +| xmlUrl | String | ❌ | Link to xml file of the issued invoice | +| rpsSerie | String | ❌ | Invoice series | +| rpsNumber | String | ❌ | RPS converted to invoice | +| number | String | ❌ | Invoice number | +| validationCode | String | ❌ | Verification code | +| value | Double | ❌ | Total value | +| deductions | Double | ❌ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | +| effectiveDate | String | ❌ | Invoice issuance date | +| observations | String | ❌ | Additional observations | +| estimatedTaxesDescription | String | ❌ | Estimated tax invoice | +| externalReference | String | ❌ | Invoice identifier in your system | +| taxes | InvoiceTaxesDto | ❌ | Invoice taxes | +| municipalServiceId | String | ❌ | Unique municipal service identifier | +| municipalServiceCode | String | ❌ | Municipal Service Code | +| municipalServiceName | String | ❌ | Name of municipal service | + + diff --git a/documentation/models/InvoiceGetResponseDtoType.md b/documentation/models/InvoiceGetResponseDtoType.md new file mode 100644 index 0000000..4885b78 --- /dev/null +++ b/documentation/models/InvoiceGetResponseDtoType.md @@ -0,0 +1,11 @@ +# InvoiceGetResponseDtoType + +Invoice type + +**Properties** + +| Name | Type | Required | Description | +| :---- | :----- | :------- | :---------- | +| NFS_E | String | ✅ | "NFS-e" | + + diff --git a/documentation/models/InvoiceGetResponseInvoiceStatus.md b/documentation/models/InvoiceGetResponseInvoiceStatus.md new file mode 100644 index 0000000..0ecfd83 --- /dev/null +++ b/documentation/models/InvoiceGetResponseInvoiceStatus.md @@ -0,0 +1,16 @@ +# InvoiceGetResponseInvoiceStatus + +Invoice status + +**Properties** + +| Name | Type | Required | Description | +| :---------------------- | :----- | :------- | :------------------------ | +| SCHEDULED | String | ✅ | "SCHEDULED" | +| AUTHORIZED | String | ✅ | "AUTHORIZED" | +| PROCESSING_CANCELLATION | String | ✅ | "PROCESSING_CANCELLATION" | +| CANCELED | String | ✅ | "CANCELED" | +| CANCELLATION_DENIED | String | ✅ | "CANCELLATION_DENIED" | +| ERROR | String | ✅ | "ERROR" | + + diff --git a/documentation/models/InvoiceListRequestInvoiceStatus.md b/documentation/models/InvoiceListRequestInvoiceStatus.md new file mode 100644 index 0000000..6db3ef0 --- /dev/null +++ b/documentation/models/InvoiceListRequestInvoiceStatus.md @@ -0,0 +1,16 @@ +# InvoiceListRequestInvoiceStatus + +Filter by situation + +**Properties** + +| Name | Type | Required | Description | +| :---------------------- | :----- | :------- | :------------------------ | +| SCHEDULED | String | ✅ | "SCHEDULED" | +| AUTHORIZED | String | ✅ | "AUTHORIZED" | +| PROCESSING_CANCELLATION | String | ✅ | "PROCESSING_CANCELLATION" | +| CANCELED | String | ✅ | "CANCELED" | +| CANCELLATION_DENIED | String | ✅ | "CANCELLATION_DENIED" | +| ERROR | String | ✅ | "ERROR" | + + diff --git a/documentation/models/InvoiceListResponseDto.md b/documentation/models/InvoiceListResponseDto.md new file mode 100644 index 0000000..01798c7 --- /dev/null +++ b/documentation/models/InvoiceListResponseDto.md @@ -0,0 +1,14 @@ +# InvoiceListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :---------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/InvoiceSaveRequestDto.md b/documentation/models/InvoiceSaveRequestDto.md new file mode 100644 index 0000000..bd39245 --- /dev/null +++ b/documentation/models/InvoiceSaveRequestDto.md @@ -0,0 +1,22 @@ +# InvoiceSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :-------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------ | +| serviceDescription | String | ✅ | Description of invoice services | +| observations | String | ✅ | Additional observations | +| value | Double | ✅ | Total value | +| deductions | Double | ✅ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | +| effectiveDate | String | ✅ | Invoice issuance date | +| municipalServiceName | String | ✅ | Name of the municipal service. If not provided, the municipalServiceCode attribute will be used as the name for identification. | +| taxes | InvoiceTaxesDto | ✅ | Invoice taxes | +| payment | String | ❌ | Unique payment identifier in Asaas | +| installment | String | ❌ | Unique installment identifier in Asaas | +| customer | String | ❌ | Unique customer identifier | +| externalReference | String | ❌ | Invoice identifier in your system | +| municipalServiceId | String | ❌ | Unique municipal service identifier | +| municipalServiceCode | String | ❌ | Municipal Service Code | +| updatePayment | Boolean | ❌ | Update the Payment amount with the invoice taxes already deducted. | + + diff --git a/documentation/models/InvoiceTaxesDto.md b/documentation/models/InvoiceTaxesDto.md new file mode 100644 index 0000000..43f257a --- /dev/null +++ b/documentation/models/InvoiceTaxesDto.md @@ -0,0 +1,17 @@ +# InvoiceTaxesDto + +Invoice taxes + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :------ | :------- | :------------------------------------------ | +| retainIss | Boolean | ✅ | The invoice holder must withhold ISS or not | +| cofins | Double | ✅ | COFINS rate | +| csll | Double | ✅ | CSLL rate | +| inss | Double | ✅ | INSS rate | +| ir | Double | ✅ | IR rate | +| pis | Double | ✅ | PIS rate | +| iss | Double | ✅ | ISS rate | + + diff --git a/documentation/models/InvoiceUpdateRequestDto.md b/documentation/models/InvoiceUpdateRequestDto.md new file mode 100644 index 0000000..ef539bc --- /dev/null +++ b/documentation/models/InvoiceUpdateRequestDto.md @@ -0,0 +1,16 @@ +# InvoiceUpdateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------- | :-------------- | :------- | :----------------------------------------------------------------------------------------------------------------- | +| serviceDescription | String | ❌ | Description of invoice services | +| observations | String | ❌ | Additional observations | +| externalReference | String | ❌ | Invoice identifier in your system | +| value | Double | ❌ | Total value | +| deductions | Double | ❌ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | +| effectiveDate | String | ❌ | Invoice issuance date | +| updatePayment | Boolean | ❌ | Update the Payment amount with the invoice taxes already deducted. | +| taxes | InvoiceTaxesDto | ❌ | Invoice taxes | + + diff --git a/documentation/models/ListAnticipationsParameters.md b/documentation/models/ListAnticipationsParameters.md index 76b32c0..58573d5 100644 --- a/documentation/models/ListAnticipationsParameters.md +++ b/documentation/models/ListAnticipationsParameters.md @@ -2,12 +2,12 @@ **Properties** -| Name | Type | Required | Description | -| :---------- | :--------------------------------------------------------------- | :------- | :----------------------------------------- | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| payment | String | ❌ | Filter anticipations of a payment | -| installment | String | ❌ | Filter advances for an installment payment | -| status | ApiReceivableAnticipationListRequestReceivableAnticipationStatus | ❌ | Filter by status | +| Name | Type | Required | Description | +| :---------- | :---------------------------------------- | :------- | :----------------------------------------- | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| payment | String | ❌ | Filter anticipations of a payment | +| installment | String | ❌ | Filter advances for an installment payment | +| status | AnticipationListRequestAnticipationStatus | ❌ | Filter by status | diff --git a/documentation/models/ListChargebacksParameters.md b/documentation/models/ListChargebacksParameters.md index 2a41853..d051a86 100644 --- a/documentation/models/ListChargebacksParameters.md +++ b/documentation/models/ListChargebacksParameters.md @@ -2,15 +2,15 @@ **Properties** -| Name | Type | Required | Description | -| :---------------------- | :--------------------------------------- | :------- | :---------------------------------------- | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| creditCardBrand | ApiChargebackListRequestCreditCardBrand | ❌ | Filter by used card brand. | -| originDisputeDateLe | String | ❌ | Filter up to the chargeback opening date. | -| originDisputeDateGe | String | ❌ | Filter from a chargeback opening date. | -| originTransactionDateLe | String | ❌ | Filter up to the transaction date. | -| originTransactionDateGe | String | ❌ | Filter from a transaction date. | -| status | ApiChargebackListRequestChargebackStatus | ❌ | Filter by chargeback status. | +| Name | Type | Required | Description | +| :---------------------- | :------------------------------------ | :------- | :---------------------------------------- | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| creditCardBrand | ChargebackListRequestCreditCardBrand | ❌ | Filter by used card brand. | +| originDisputeDateLe | String | ❌ | Filter up to the chargeback opening date. | +| originDisputeDateGe | String | ❌ | Filter from a chargeback opening date. | +| originTransactionDateLe | String | ❌ | Filter up to the transaction date. | +| originTransactionDateGe | String | ❌ | Filter from a transaction date. | +| status | ChargebackListRequestChargebackStatus | ❌ | Filter by chargeback status. | diff --git a/documentation/models/ListInvoicesForSubscriptionChargesParameters.md b/documentation/models/ListInvoicesForSubscriptionChargesParameters.md index 0101daf..2e78232 100644 --- a/documentation/models/ListInvoicesForSubscriptionChargesParameters.md +++ b/documentation/models/ListInvoicesForSubscriptionChargesParameters.md @@ -2,14 +2,14 @@ **Properties** -| Name | Type | Required | Description | -| :---------------- | :--------------------------------------------- | :------- | :------------------------------------------ | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| effectiveDateGe | String | ❌ | Filter from an issue date | -| effectiveDateLe | String | ❌ | Filter until an issue date | -| externalReference | String | ❌ | Filter by invoice identifier in your system | -| status | ApiSubscriptionGetInvoicesRequestInvoiceStatus | ❌ | Filter by invoice status | -| customer | String | ❌ | Filter by unique customer identifier | +| Name | Type | Required | Description | +| :---------------- | :------------------------------------------ | :------- | :------------------------------------------ | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| effectiveDateGe | String | ❌ | Filter from an issue date | +| effectiveDateLe | String | ❌ | Filter until an issue date | +| externalReference | String | ❌ | Filter by invoice identifier in your system | +| status | SubscriptionGetInvoicesRequestInvoiceStatus | ❌ | Filter by invoice status | +| customer | String | ❌ | Filter by unique customer identifier | diff --git a/documentation/models/ListInvoicesParameters.md b/documentation/models/ListInvoicesParameters.md index a7419d6..9cb11ec 100644 --- a/documentation/models/ListInvoicesParameters.md +++ b/documentation/models/ListInvoicesParameters.md @@ -2,16 +2,16 @@ **Properties** -| Name | Type | Required | Description | -| :---------------- | :----------------------------------------- | :------- | :------------------------------------------ | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| effectiveDateGe | String | ❌ | Filter by an issue date | -| effectiveDateLe | String | ❌ | Filter by an issue date | -| payment | String | ❌ | Filter by unique payment identifier | -| installment | String | ❌ | Filter by the unique installment identifier | -| externalReference | String | ❌ | Filter by invoice identifier in your system | -| status | ApiCustomerInvoiceListRequestInvoiceStatus | ❌ | Filter by situation | -| customer | String | ❌ | Filter by unique customer identifier | +| Name | Type | Required | Description | +| :---------------- | :------------------------------ | :------- | :------------------------------------------ | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| effectiveDateGe | String | ❌ | Filter by an issue date | +| effectiveDateLe | String | ❌ | Filter by an issue date | +| payment | String | ❌ | Filter by unique payment identifier | +| installment | String | ❌ | Filter by the unique installment identifier | +| externalReference | String | ❌ | Filter by invoice identifier in your system | +| status | InvoiceListRequestInvoiceStatus | ❌ | Filter by situation | +| customer | String | ❌ | Filter by unique customer identifier | diff --git a/documentation/models/ListKeysParameters.md b/documentation/models/ListKeysParameters.md index 1f7cef8..5290290 100644 --- a/documentation/models/ListKeysParameters.md +++ b/documentation/models/ListKeysParameters.md @@ -2,11 +2,11 @@ **Properties** -| Name | Type | Required | Description | -| :--------- | :--------------------------------------------- | :------- | :--------------------------------- | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| status | ApiPixAddressKeyListRequestPixAddressKeyStatus | ❌ | Filter by current key status | -| statusList | String | ❌ | Filter by one or more key statuses | +| Name | Type | Required | Description | +| :--------- | :------------------------------------------ | :------- | :--------------------------------- | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| status | PixAddressKeyListRequestPixAddressKeyStatus | ❌ | Filter by current key status | +| statusList | String | ❌ | Filter by one or more key statuses | diff --git a/documentation/models/ListPaidSplitsParameters.md b/documentation/models/ListPaidSplitsParameters.md index 109a3a3..9892041 100644 --- a/documentation/models/ListPaidSplitsParameters.md +++ b/documentation/models/ListPaidSplitsParameters.md @@ -2,15 +2,15 @@ **Properties** -| Name | Type | Required | Description | -| :--------------------- | :----------------------------------------------- | :------- | :------------------------------------------------ | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| paymentId | String | ❌ | Filter by payment ID | -| status | ApiPaymentSplitListPaidRequestPaymentSplitStatus | ❌ | Filter by status | -| paymentConfirmedDateGe | String | ❌ | Filter from the initial payment confirmation date | -| paymentConfirmedDateLe | String | ❌ | Filter from final payment confirmation date | -| creditDateGe | String | ❌ | Filter from the initial split sending date | -| creditDateLe | String | ❌ | Filter from the final split sending date | +| Name | Type | Required | Description | +| :--------------------- | :-------------------------------------------- | :------- | :------------------------------------------------ | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| paymentId | String | ❌ | Filter by payment ID | +| status | PaymentSplitListPaidRequestPaymentSplitStatus | ❌ | Filter by status | +| paymentConfirmedDateGe | String | ❌ | Filter from the initial payment confirmation date | +| paymentConfirmedDateLe | String | ❌ | Filter from final payment confirmation date | +| creditDateGe | String | ❌ | Filter from the initial split sending date | +| creditDateLe | String | ❌ | Filter from the final split sending date | diff --git a/documentation/models/ListPaymentDunningsParameters.md b/documentation/models/ListPaymentDunningsParameters.md index 1082fd2..2a1e068 100644 --- a/documentation/models/ListPaymentDunningsParameters.md +++ b/documentation/models/ListPaymentDunningsParameters.md @@ -2,14 +2,14 @@ **Properties** -| Name | Type | Required | Description | -| :--------------- | :----------------------------------------------- | :------- | :---------------------------------------- | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| status | ApiPaymentDunningListRequestPaymentDunningStatus | ❌ | Filter by payment dunning status | -| type | ApiPaymentDunningListRequestPaymentDunningType | ❌ | Filter by type of payment dunning | -| payment | String | ❌ | Filter by dunnings for a specific payment | -| requestStartDate | String | ❌ | Filter from initial request date | -| requestEndDate | String | ❌ | Filter from end request date | +| Name | Type | Required | Description | +| :--------------- | :-------------------------------------------- | :------- | :---------------------------------------- | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| status | PaymentDunningListRequestPaymentDunningStatus | ❌ | Filter by payment dunning status | +| type | PaymentDunningListRequestPaymentDunningType | ❌ | Filter by type of payment dunning | +| payment | String | ❌ | Filter by dunnings for a specific payment | +| requestStartDate | String | ❌ | Filter from initial request date | +| requestEndDate | String | ❌ | Filter from end request date | diff --git a/documentation/models/ListPaymentsOfAInstallmentParameters.md b/documentation/models/ListPaymentsOfAInstallmentParameters.md index e14d5d2..76ce6b5 100644 --- a/documentation/models/ListPaymentsOfAInstallmentParameters.md +++ b/documentation/models/ListPaymentsOfAInstallmentParameters.md @@ -2,8 +2,8 @@ **Properties** -| Name | Type | Required | Description | -| :----- | :--------------------------------------------- | :------- | :----------------------- | -| status | ApiInstallmentListPaymentsRequestPaymentStatus | ❌ | Filter by payment status | +| Name | Type | Required | Description | +| :----- | :------------------------------------------ | :------- | :----------------------- | +| status | InstallmentListPaymentsRequestPaymentStatus | ❌ | Filter by payment status | diff --git a/documentation/models/ListPaymentsOfASubscriptionParameters.md b/documentation/models/ListPaymentsOfASubscriptionParameters.md index 615d5d1..a1fe927 100644 --- a/documentation/models/ListPaymentsOfASubscriptionParameters.md +++ b/documentation/models/ListPaymentsOfASubscriptionParameters.md @@ -2,8 +2,8 @@ **Properties** -| Name | Type | Required | Description | -| :----- | :---------------------------------------------- | :------- | :----------------------- | -| status | ApiSubscriptionListPaymentsRequestPaymentStatus | ❌ | Filter by payment status | +| Name | Type | Required | Description | +| :----- | :------------------------------------------- | :------- | :----------------------- | +| status | SubscriptionListPaymentsRequestPaymentStatus | ❌ | Filter by payment status | diff --git a/documentation/models/ListPaymentsParameters.md b/documentation/models/ListPaymentsParameters.md index e0c6efe..92720af 100644 --- a/documentation/models/ListPaymentsParameters.md +++ b/documentation/models/ListPaymentsParameters.md @@ -2,31 +2,31 @@ **Properties** -| Name | Type | Required | Description | -| :-------------------- | :--------------------------------- | :------- | :-------------------------------------------------------------------------------------------------- | -| installment | String | ❌ | Filter by unique installment identifier | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| customer | String | ❌ | Filter by unique customer identifier | -| customerGroupName | String | ❌ | Filter by customer group name | -| billingType | ApiPaymentListRequestBillingType | ❌ | Filter by billing type | -| status | ApiPaymentListRequestPaymentStatus | ❌ | Filter by status | -| subscription | String | ❌ | Filter by unique subscription identifier | -| externalReference | String | ❌ | Filter by your system identifier | -| paymentDate | String | ❌ | Filter by payment date | -| invoiceStatus | ApiPaymentListRequestInvoiceStatus | ❌ | Filter to return charges that have or do not have an invoice | -| estimatedCreditDate | String | ❌ | Filter by estimated credit date | -| pixQrCodeId | String | ❌ | Filter receipts originating from a static QrCode using the id generated when the QrCode was created | -| anticipated | Boolean | ❌ | Filter anticipated charges or not | -| anticipable | Boolean | ❌ | Filter anticipable charges or not | -| dateCreatedGe | String | ❌ | Filter from initial creation date | -| dateCreatedLe | String | ❌ | Filter to final creation date | -| paymentDateGe | String | ❌ | Filter from initial payment date | -| paymentDateLe | String | ❌ | Filter to final payment date | -| estimatedCreditDateGe | String | ❌ | Filter from estimated initial credit date | -| estimatedCreditDateLe | String | ❌ | Filter to estimated end credit date | -| dueDateGe | String | ❌ | Filter from initial due date | -| dueDateLe | String | ❌ | Filter by final due date | -| user | String | ❌ | Filter by the email address of the user who created the payment. | +| Name | Type | Required | Description | +| :-------------------- | :------------------------------ | :------- | :-------------------------------------------------------------------------------------------------- | +| installment | String | ❌ | Filter by unique installment identifier | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| customer | String | ❌ | Filter by unique customer identifier | +| customerGroupName | String | ❌ | Filter by customer group name | +| billingType | PaymentListRequestBillingType | ❌ | Filter by billing type | +| status | PaymentListRequestPaymentStatus | ❌ | Filter by status | +| subscription | String | ❌ | Filter by unique subscription identifier | +| externalReference | String | ❌ | Filter by your system identifier | +| paymentDate | String | ❌ | Filter by payment date | +| invoiceStatus | PaymentListRequestInvoiceStatus | ❌ | Filter to return charges that have or do not have an invoice | +| estimatedCreditDate | String | ❌ | Filter by estimated credit date | +| pixQrCodeId | String | ❌ | Filter receipts originating from a static QrCode using the id generated when the QrCode was created | +| anticipated | Boolean | ❌ | Filter anticipated charges or not | +| anticipable | Boolean | ❌ | Filter anticipable charges or not | +| dateCreatedGe | String | ❌ | Filter from initial creation date | +| dateCreatedLe | String | ❌ | Filter to final creation date | +| paymentDateGe | String | ❌ | Filter from initial payment date | +| paymentDateLe | String | ❌ | Filter to final payment date | +| estimatedCreditDateGe | String | ❌ | Filter from estimated initial credit date | +| estimatedCreditDateLe | String | ❌ | Filter to estimated end credit date | +| dueDateGe | String | ❌ | Filter from initial due date | +| dueDateLe | String | ❌ | Filter by final due date | +| user | String | ❌ | Filter by the email address of the user who created the payment. | diff --git a/documentation/models/ListPaymentsWithSummaryDataParameters.md b/documentation/models/ListPaymentsWithSummaryDataParameters.md index a21effe..76d87e0 100644 --- a/documentation/models/ListPaymentsWithSummaryDataParameters.md +++ b/documentation/models/ListPaymentsWithSummaryDataParameters.md @@ -2,31 +2,31 @@ **Properties** -| Name | Type | Required | Description | -| :-------------------- | :--------------------------------- | :------- | :-------------------------------------------------------------------------------------------------- | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| customer | String | ❌ | Filter by unique customer identifier | -| customerGroupName | String | ❌ | Filter by customer group name | -| billingType | ApiPaymentListRequestBillingType | ❌ | Filter by billing type | -| status | ApiPaymentListRequestPaymentStatus | ❌ | Filter by status | -| subscription | String | ❌ | Filter by unique subscription identifier | -| installment | String | ❌ | Filter by unique installment identifier | -| externalReference | String | ❌ | Filter by your system identifier | -| paymentDate | String | ❌ | Filter by payment date | -| invoiceStatus | ApiPaymentListRequestInvoiceStatus | ❌ | Filter to return charges that have or do not have an invoice | -| estimatedCreditDate | String | ❌ | Filter by estimated credit date | -| pixQrCodeId | String | ❌ | Filter receipts originating from a static QrCode using the id generated when the QrCode was created | -| anticipated | Boolean | ❌ | Filter anticipated charges or not | -| anticipable | Boolean | ❌ | Filter anticipable charges or not | -| dateCreatedGe | String | ❌ | Filter from initial creation date | -| dateCreatedLe | String | ❌ | Filter to final creation date | -| paymentDateGe | String | ❌ | Filter from initial payment date | -| paymentDateLe | String | ❌ | Filter to final payment date | -| estimatedCreditDateGe | String | ❌ | Filter from estimated initial credit date | -| estimatedCreditDateLe | String | ❌ | Filter to estimated end credit date | -| dueDateGe | String | ❌ | Filter from initial due date | -| dueDateLe | String | ❌ | Filter by final due date | -| user | String | ❌ | Filter by the email address of the user who created the payment. | +| Name | Type | Required | Description | +| :-------------------- | :------------------------------ | :------- | :-------------------------------------------------------------------------------------------------- | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| customer | String | ❌ | Filter by unique customer identifier | +| customerGroupName | String | ❌ | Filter by customer group name | +| billingType | PaymentListRequestBillingType | ❌ | Filter by billing type | +| status | PaymentListRequestPaymentStatus | ❌ | Filter by status | +| subscription | String | ❌ | Filter by unique subscription identifier | +| installment | String | ❌ | Filter by unique installment identifier | +| externalReference | String | ❌ | Filter by your system identifier | +| paymentDate | String | ❌ | Filter by payment date | +| invoiceStatus | PaymentListRequestInvoiceStatus | ❌ | Filter to return charges that have or do not have an invoice | +| estimatedCreditDate | String | ❌ | Filter by estimated credit date | +| pixQrCodeId | String | ❌ | Filter receipts originating from a static QrCode using the id generated when the QrCode was created | +| anticipated | Boolean | ❌ | Filter anticipated charges or not | +| anticipable | Boolean | ❌ | Filter anticipable charges or not | +| dateCreatedGe | String | ❌ | Filter from initial creation date | +| dateCreatedLe | String | ❌ | Filter to final creation date | +| paymentDateGe | String | ❌ | Filter from initial payment date | +| paymentDateLe | String | ❌ | Filter to final payment date | +| estimatedCreditDateGe | String | ❌ | Filter from estimated initial credit date | +| estimatedCreditDateLe | String | ❌ | Filter to estimated end credit date | +| dueDateGe | String | ❌ | Filter from initial due date | +| dueDateLe | String | ❌ | Filter by final due date | +| user | String | ❌ | Filter by the email address of the user who created the payment. | diff --git a/documentation/models/ListReceivedSplitsParameters.md b/documentation/models/ListReceivedSplitsParameters.md index a452b3d..8b3c88d 100644 --- a/documentation/models/ListReceivedSplitsParameters.md +++ b/documentation/models/ListReceivedSplitsParameters.md @@ -2,15 +2,15 @@ **Properties** -| Name | Type | Required | Description | -| :--------------------- | :--------------------------------------------------- | :------- | :------------------------------------------------ | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| paymentId | String | ❌ | Filter by payment ID | -| status | ApiPaymentSplitListReceivedRequestPaymentSplitStatus | ❌ | Filter by status | -| paymentConfirmedDateGe | String | ❌ | Filter from the initial payment confirmation date | -| paymentConfirmedDateLe | String | ❌ | Filter from final payment confirmation date | -| creditDateGe | String | ❌ | Filter by date of receipt of initial split | -| creditDateLe | String | ❌ | Filter by date of receipt of final split | +| Name | Type | Required | Description | +| :--------------------- | :------------------------------------------------ | :------- | :------------------------------------------------ | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| paymentId | String | ❌ | Filter by payment ID | +| status | PaymentSplitListReceivedRequestPaymentSplitStatus | ❌ | Filter by status | +| paymentConfirmedDateGe | String | ❌ | Filter from the initial payment confirmation date | +| paymentConfirmedDateLe | String | ❌ | Filter from final payment confirmation date | +| creditDateGe | String | ❌ | Filter by date of receipt of initial split | +| creditDateLe | String | ❌ | Filter by date of receipt of final split | diff --git a/documentation/models/ListRecurrencesParameters.md b/documentation/models/ListRecurrencesParameters.md index 4d7a89c..99389e3 100644 --- a/documentation/models/ListRecurrencesParameters.md +++ b/documentation/models/ListRecurrencesParameters.md @@ -2,12 +2,12 @@ **Properties** -| Name | Type | Required | Description | -| :--------- | :----------------------------------------------------------------------------------- | :------- | :--------------------------------- | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| status | ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus | ❌ | Filter by recurrence status | -| value | Double | ❌ | Filter by recurrence value | -| searchText | String | ❌ | Filter by receiver name | +| Name | Type | Required | Description | +| :--------- | :-------------------------------------------------------------- | :------- | :--------------------------------- | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| status | RecurringPixTransactionListRequestPixRecurringTransactionStatus | ❌ | Filter by recurrence status | +| value | Double | ❌ | Filter by recurrence value | +| searchText | String | ❌ | Filter by receiver name | diff --git a/documentation/models/ListSubscriptionsParameters.md b/documentation/models/ListSubscriptionsParameters.md index 6307717..b1ea8e1 100644 --- a/documentation/models/ListSubscriptionsParameters.md +++ b/documentation/models/ListSubscriptionsParameters.md @@ -2,18 +2,18 @@ **Properties** -| Name | Type | Required | Description | -| :---------------- | :------------------------------------------- | :------- | :---------------------------------------------- | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| customer | String | ❌ | Filter by Unique Customer Identifier | -| customerGroupName | String | ❌ | Filter by customer group name | -| billingType | ApiSubscriptionListRequestBillingType | ❌ | Filter by billing type | -| status | ApiSubscriptionListRequestSubscriptionStatus | ❌ | Filter by status | -| deletedOnly | String | ❌ | Send true to return only removed subscriptions | -| includeDeleted | String | ❌ | Send true to also recover removed subscriptions | -| externalReference | String | ❌ | Filter by your system identifier | -| order | String | ❌ | Ascending or descending order | -| sort | String | ❌ | Which field will it be sorted by | +| Name | Type | Required | Description | +| :---------------- | :---------------------------------------- | :------- | :---------------------------------------------- | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| customer | String | ❌ | Filter by Unique Customer Identifier | +| customerGroupName | String | ❌ | Filter by customer group name | +| billingType | SubscriptionListRequestBillingType | ❌ | Filter by billing type | +| status | SubscriptionListRequestSubscriptionStatus | ❌ | Filter by status | +| deletedOnly | String | ❌ | Send true to return only removed subscriptions | +| includeDeleted | String | ❌ | Send true to also recover removed subscriptions | +| externalReference | String | ❌ | Filter by your system identifier | +| order | String | ❌ | Ascending or descending order | +| sort | String | ❌ | Which field will it be sorted by | diff --git a/documentation/models/ListTransactionsParameters.md b/documentation/models/ListTransactionsParameters.md index 4a0ef3d..1da405f 100644 --- a/documentation/models/ListTransactionsParameters.md +++ b/documentation/models/ListTransactionsParameters.md @@ -2,12 +2,12 @@ **Properties** -| Name | Type | Required | Description | -| :----------------- | :----------------------------------------------- | :------- | :------------------------------------------------------- | -| offset | Long | ❌ | List starting element | -| limit | Long | ❌ | Number of list elements (max: 100) | -| status | ApiPixTransactionListRequestPixTransactionStatus | ❌ | Filter by transaction status | -| type | ApiPixTransactionListRequestPixTransactionType | ❌ | Filter by transaction type | -| endToEndIdentifier | String | ❌ | Filter by Pix transaction identifier at the Central Bank | +| Name | Type | Required | Description | +| :----------------- | :-------------------------------------------- | :------- | :------------------------------------------------------- | +| offset | Long | ❌ | List starting element | +| limit | Long | ❌ | Number of list elements (max: 100) | +| status | PixTransactionListRequestPixTransactionStatus | ❌ | Filter by transaction status | +| type | PixTransactionListRequestPixTransactionType | ❌ | Filter by transaction type | +| endToEndIdentifier | String | ❌ | Filter by Pix transaction identifier at the Central Bank | diff --git a/documentation/models/MobilePhoneRechargeFindProviderResponseDto.md b/documentation/models/MobilePhoneRechargeFindProviderResponseDto.md new file mode 100644 index 0000000..1cd68c4 --- /dev/null +++ b/documentation/models/MobilePhoneRechargeFindProviderResponseDto.md @@ -0,0 +1,10 @@ +# MobilePhoneRechargeFindProviderResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----- | :------------------------------------------------------- | :------- | :----------------------------- | +| name | String | ❌ | Name of cell phone operator | +| values | List\ | ❌ | Amounts available for recharge | + + diff --git a/documentation/models/MobilePhoneRechargeFindProviderResponseValuesDto.md b/documentation/models/MobilePhoneRechargeFindProviderResponseValuesDto.md new file mode 100644 index 0000000..d763a2c --- /dev/null +++ b/documentation/models/MobilePhoneRechargeFindProviderResponseValuesDto.md @@ -0,0 +1,15 @@ +# MobilePhoneRechargeFindProviderResponseValuesDto + +Amounts available for recharge + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :--------------------- | +| name | String | ❌ | Package name | +| description | String | ❌ | Package Description | +| bonus | String | ❌ | Package Bonuses | +| minValue | Double | ❌ | Minimum top-up amount | +| maxValue | Double | ❌ | Maximum recharge value | + + diff --git a/documentation/models/MobilePhoneRechargeGetResponseDto.md b/documentation/models/MobilePhoneRechargeGetResponseDto.md new file mode 100644 index 0000000..bb16bcd --- /dev/null +++ b/documentation/models/MobilePhoneRechargeGetResponseDto.md @@ -0,0 +1,14 @@ +# MobilePhoneRechargeGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------------- | :------------------------------------------------------ | :------- | :--------------------------------------------------- | +| id | String | ❌ | Unique identifier for cell phone recharge on Asaas | +| value | Double | ❌ | Recharge value | +| phoneNumber | String | ❌ | Cell phone number that was requested to be recharged | +| status | MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus | ❌ | Recharge status | +| canBeCancelled | Boolean | ❌ | Whether the top-up can be canceled | +| operatorName | String | ❌ | Name of cell phone operator | + + diff --git a/documentation/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md b/documentation/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md new file mode 100644 index 0000000..9a973c5 --- /dev/null +++ b/documentation/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md @@ -0,0 +1,15 @@ +# MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus + +Recharge status + +**Properties** + +| Name | Type | Required | Description | +| :---------------------- | :----- | :------- | :------------------------ | +| PENDING | String | ✅ | "PENDING" | +| CONFIRMED | String | ✅ | "CONFIRMED" | +| CANCELLED | String | ✅ | "CANCELLED" | +| REFUNDED | String | ✅ | "REFUNDED" | +| WAITING_CRITICAL_ACTION | String | ✅ | "WAITING_CRITICAL_ACTION" | + + diff --git a/documentation/models/MobilePhoneRechargeListResponseDto.md b/documentation/models/MobilePhoneRechargeListResponseDto.md new file mode 100644 index 0000000..4f4333e --- /dev/null +++ b/documentation/models/MobilePhoneRechargeListResponseDto.md @@ -0,0 +1,14 @@ +# MobilePhoneRechargeListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :---------------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/MobilePhoneRechargeSaveRequestDto.md b/documentation/models/MobilePhoneRechargeSaveRequestDto.md new file mode 100644 index 0000000..74898fa --- /dev/null +++ b/documentation/models/MobilePhoneRechargeSaveRequestDto.md @@ -0,0 +1,10 @@ +# MobilePhoneRechargeSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :--------------- | +| value | Double | ✅ | Recharge value | +| phoneNumber | String | ✅ | Cellphone number | + + diff --git a/documentation/models/MyAccountDisableAccountResponseDto.md b/documentation/models/MyAccountDisableAccountResponseDto.md new file mode 100644 index 0000000..029e4a5 --- /dev/null +++ b/documentation/models/MyAccountDisableAccountResponseDto.md @@ -0,0 +1,9 @@ +# MyAccountDisableAccountResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------------- | +| observations | String | ❌ | Deletion information | + + diff --git a/documentation/models/MyAccountGetAccountFeesAnticipationBankSlipDto.md b/documentation/models/MyAccountGetAccountFeesAnticipationBankSlipDto.md new file mode 100644 index 0000000..4abcefc --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesAnticipationBankSlipDto.md @@ -0,0 +1,11 @@ +# MyAccountGetAccountFeesAnticipationBankSlipDto + +Anticipation fee on boletos + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :----- | :------- | :------------------------------ | +| monthlyFeePercentage | Double | ❌ | Monthly fee for invoice charges | + + diff --git a/documentation/models/MyAccountGetAccountFeesAnticipationCreditCardDto.md b/documentation/models/MyAccountGetAccountFeesAnticipationCreditCardDto.md new file mode 100644 index 0000000..04e6135 --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesAnticipationCreditCardDto.md @@ -0,0 +1,12 @@ +# MyAccountGetAccountFeesAnticipationCreditCardDto + +Credit card anticipation fee + +**Properties** + +| Name | Type | Required | Description | +| :------------------------- | :----- | :------- | :----------------------------------- | +| detachedMonthlyFeeValue | Double | ❌ | Monthly fee for upfront charges | +| installmentMonthlyFeeValue | Long | ❌ | Monthly fee for installment payments | + + diff --git a/documentation/models/MyAccountGetAccountFeesAnticipationDto.md b/documentation/models/MyAccountGetAccountFeesAnticipationDto.md new file mode 100644 index 0000000..9df83b7 --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesAnticipationDto.md @@ -0,0 +1,12 @@ +# MyAccountGetAccountFeesAnticipationDto + +Anticipation fees + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----------------------------------------------- | :------- | :--------------------------- | +| creditCard | MyAccountGetAccountFeesAnticipationCreditCardDto | ❌ | Credit card anticipation fee | +| bankSlip | MyAccountGetAccountFeesAnticipationBankSlipDto | ❌ | Anticipation fee on boletos | + + diff --git a/documentation/models/MyAccountGetAccountFeesCreditBureauReportDto.md b/documentation/models/MyAccountGetAccountFeesCreditBureauReportDto.md new file mode 100644 index 0000000..1d14199 --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesCreditBureauReportDto.md @@ -0,0 +1,12 @@ +# MyAccountGetAccountFeesCreditBureauReportDto + +Serasa consultation fees + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :----- | :------- | :--------------------------------------------- | +| naturalPersonFeeValue | Double | ❌ | Fee for Serasa consultation for natural person | +| legalPersonFeeValue | Double | ❌ | Fee for Serasa consultation for legal person | + + diff --git a/documentation/models/MyAccountGetAccountFeesInvoiceDto.md b/documentation/models/MyAccountGetAccountFeesInvoiceDto.md new file mode 100644 index 0000000..f215107 --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesInvoiceDto.md @@ -0,0 +1,11 @@ +# MyAccountGetAccountFeesInvoiceDto + +Invoice fees + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :-------------------------- | +| feeValue | Double | ❌ | Fee per service note issued | + + diff --git a/documentation/models/MyAccountGetAccountFeesNotificationDto.md b/documentation/models/MyAccountGetAccountFeesNotificationDto.md new file mode 100644 index 0000000..ebfa052 --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesNotificationDto.md @@ -0,0 +1,13 @@ +# MyAccountGetAccountFeesNotificationDto + +Notification fees + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----- | :------- | :---------------------------------- | +| phoneCallFeeValue | Double | ❌ | Fees per voice robot call | +| whatsAppFeeValue | Double | ❌ | Fees for notifications via WhatsApp | +| messagingFeeValue | Double | ❌ | Fees for sending emails and SMS | + + diff --git a/documentation/models/MyAccountGetAccountFeesPaymentBankSlipDto.md b/documentation/models/MyAccountGetAccountFeesPaymentBankSlipDto.md new file mode 100644 index 0000000..73d120e --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesPaymentBankSlipDto.md @@ -0,0 +1,14 @@ +# MyAccountGetAccountFeesPaymentBankSlipDto + +Boleto fees + +**Properties** + +| Name | Type | Required | Description | +| :------------- | :----- | :------- | :--------------------------------------- | +| defaultValue | Double | ❌ | Fee per charge | +| discountValue | Double | ❌ | Promotional fee (If any) | +| expirationDate | String | ❌ | Promotional fee expiration date (If any) | +| daysToReceive | Long | ❌ | Days to receive billing | + + diff --git a/documentation/models/MyAccountGetAccountFeesPaymentCreditCardDto.md b/documentation/models/MyAccountGetAccountFeesPaymentCreditCardDto.md new file mode 100644 index 0000000..54a517d --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesPaymentCreditCardDto.md @@ -0,0 +1,21 @@ +# MyAccountGetAccountFeesPaymentCreditCardDto + +Credit card fees + +**Properties** + +| Name | Type | Required | Description | +| :------------------------------------------ | :----- | :------- | :------------------------------------------------------------- | +| operationValue | Double | ❌ | Operating fee per charge | +| oneInstallmentPercentage | Double | ❌ | Spot percentage rate | +| upToSixInstallmentsPercentage | Double | ❌ | Percentage rate for 2 to 6 installments | +| upToTwelveInstallmentsPercentage | Double | ❌ | Percentage rate for 7 to 12 installments | +| upToTwentyOneInstallmentsPercentage | Double | ❌ | Percentage rate for 13 to 21 installments | +| discountOneInstallmentPercentage | Double | ❌ | Promotional cash percentage rate (If any) | +| discountUpToSixInstallmentsPercentage | Double | ❌ | Percentage rate for 2 to 6 promotional installments (If any) | +| discountUpToTwelveInstallmentsPercentage | Double | ❌ | Percentage rate for 7 to 12 promotional installments (If any) | +| discountUpToTwentyOneInstallmentsPercentage | Double | ❌ | Percentage rate for 13 to 21 promotional installments (if any) | +| discountExpiration | String | ❌ | Promotional fee expiration date (If any) | +| daysToReceive | Long | ❌ | Days to receive billing | + + diff --git a/documentation/models/MyAccountGetAccountFeesPaymentDebitCardDto.md b/documentation/models/MyAccountGetAccountFeesPaymentDebitCardDto.md new file mode 100644 index 0000000..bcec2ba --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesPaymentDebitCardDto.md @@ -0,0 +1,13 @@ +# MyAccountGetAccountFeesPaymentDebitCardDto + +Debit card fees + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----- | :------- | :------------------------- | +| operationValue | Double | ❌ | Operating fee per charge | +| defaultPercentage | Double | ❌ | Percentage rate per charge | +| daysToReceive | Long | ❌ | Days to receive billing | + + diff --git a/documentation/models/MyAccountGetAccountFeesPaymentDto.md b/documentation/models/MyAccountGetAccountFeesPaymentDto.md new file mode 100644 index 0000000..48ca16d --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesPaymentDto.md @@ -0,0 +1,14 @@ +# MyAccountGetAccountFeesPaymentDto + +Billing fees + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :------------------------------------------ | :------- | :--------------- | +| bankSlip | MyAccountGetAccountFeesPaymentBankSlipDto | ❌ | Boleto fees | +| creditCard | MyAccountGetAccountFeesPaymentCreditCardDto | ❌ | Credit card fees | +| debitCard | MyAccountGetAccountFeesPaymentDebitCardDto | ❌ | Debit card fees | +| pix | MyAccountGetAccountFeesPaymentPixDto | ❌ | Pix Fees | + + diff --git a/documentation/models/MyAccountGetAccountFeesPaymentPixDto.md b/documentation/models/MyAccountGetAccountFeesPaymentPixDto.md new file mode 100644 index 0000000..c957ed5 --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesPaymentPixDto.md @@ -0,0 +1,18 @@ +# MyAccountGetAccountFeesPaymentPixDto + +Pix Fees + +**Properties** + +| Name | Type | Required | Description | +| :---------------------------- | :----- | :------- | :-------------------------------------------------- | +| fixedFeeValue | Double | ❌ | Fixed fee (If any) | +| fixedFeeValueWithDiscount | Double | ❌ | Promotional fixed rate (If any) | +| percentageFee | Double | ❌ | Percentage rate (If any) | +| minimumFeeValue | Double | ❌ | Minimum fixed rate in case of percentage rate | +| maximumFeeValue | Double | ❌ | Maximum fixed rate in case of percentage rate | +| discountExpiration | String | ❌ | Promotional fee expiration date (If any) | +| monthlyCreditsWithoutFee | Long | ❌ | Number of free transactions per month | +| creditsReceivedOfCurrentMonth | Long | ❌ | How many transactions have you received this month? | + + diff --git a/documentation/models/MyAccountGetAccountFeesResponseDto.md b/documentation/models/MyAccountGetAccountFeesResponseDto.md new file mode 100644 index 0000000..097c3c6 --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesResponseDto.md @@ -0,0 +1,14 @@ +# MyAccountGetAccountFeesResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------- | :------------------------------------------- | :------- | :----------------------- | +| payment | MyAccountGetAccountFeesPaymentDto | ❌ | Billing fees | +| transfer | MyAccountGetAccountFeesTransferDto | ❌ | Transfer fees | +| notification | MyAccountGetAccountFeesNotificationDto | ❌ | Notification fees | +| creditBureauReport | MyAccountGetAccountFeesCreditBureauReportDto | ❌ | Serasa consultation fees | +| invoice | MyAccountGetAccountFeesInvoiceDto | ❌ | Invoice fees | +| anticipation | MyAccountGetAccountFeesAnticipationDto | ❌ | Anticipation fees | + + diff --git a/documentation/models/MyAccountGetAccountFeesTransferDto.md b/documentation/models/MyAccountGetAccountFeesTransferDto.md new file mode 100644 index 0000000..b33d1f4 --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesTransferDto.md @@ -0,0 +1,13 @@ +# MyAccountGetAccountFeesTransferDto + +Transfer fees + +**Properties** + +| Name | Type | Required | Description | +| :------------------------- | :------------------------------------ | :------- | :---------------------------------- | +| monthlyTransfersWithoutFee | Long | ❌ | Number of monthly free transactions | +| ted | MyAccountGetAccountFeesTransferTedDto | ❌ | Fees for TED transfers | +| pix | MyAccountGetAccountFeesTransferPixDto | ❌ | Fees for Pix transfers | + + diff --git a/documentation/models/MyAccountGetAccountFeesTransferPixDto.md b/documentation/models/MyAccountGetAccountFeesTransferPixDto.md new file mode 100644 index 0000000..f1471f5 --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesTransferPixDto.md @@ -0,0 +1,14 @@ +# MyAccountGetAccountFeesTransferPixDto + +Fees for Pix transfers + +**Properties** + +| Name | Type | Required | Description | +| :------------------------------------- | :------ | :------- | :---------------------------------------------------------------------- | +| feeValue | Double | ❌ | Fee for sending transfers via Pix | +| discountValue | Double | ❌ | Promotional fee (If any) | +| expirationDate | String | ❌ | Promotional fee expiration date (If any) | +| consideredInMonthlyTransfersWithoutFee | Boolean | ❌ | Indicates whether the number of free monthly transactions considers Pix | + + diff --git a/documentation/models/MyAccountGetAccountFeesTransferTedDto.md b/documentation/models/MyAccountGetAccountFeesTransferTedDto.md new file mode 100644 index 0000000..3e21ef1 --- /dev/null +++ b/documentation/models/MyAccountGetAccountFeesTransferTedDto.md @@ -0,0 +1,12 @@ +# MyAccountGetAccountFeesTransferTedDto + +Fees for TED transfers + +**Properties** + +| Name | Type | Required | Description | +| :------------------------------------- | :------ | :------- | :---------------------------------------------------------------------- | +| feeValue | Double | ❌ | Transfer fee via TED | +| consideredInMonthlyTransfersWithoutFee | Boolean | ❌ | Indicates whether the number of monthly free transactions considers TED | + + diff --git a/documentation/models/MyAccountGetAccountNumberResponseDto.md b/documentation/models/MyAccountGetAccountNumberResponseDto.md new file mode 100644 index 0000000..7502b2f --- /dev/null +++ b/documentation/models/MyAccountGetAccountNumberResponseDto.md @@ -0,0 +1,11 @@ +# MyAccountGetAccountNumberResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| agency | String | ❌ | Account agency | +| account | String | ❌ | Account number | +| accountDigit | String | ❌ | Account digit | + + diff --git a/documentation/models/MyAccountGetStatusResponseDto.md b/documentation/models/MyAccountGetStatusResponseDto.md new file mode 100644 index 0000000..3db0c24 --- /dev/null +++ b/documentation/models/MyAccountGetStatusResponseDto.md @@ -0,0 +1,13 @@ +# MyAccountGetStatusResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :------------------------------- | :------- | :--------------------------------- | +| id | String | ❌ | Unique account identifier in Asaas | +| commercialInfo | MyAccountGetStatusResponseStatus | ❌ | Status of sent business data | +| bankAccountInfo | MyAccountGetStatusResponseStatus | ❌ | Status of sent business data | +| documentation | MyAccountGetStatusResponseStatus | ❌ | Status of sent business data | +| general | MyAccountGetStatusResponseStatus | ❌ | Status of sent business data | + + diff --git a/documentation/models/MyAccountGetStatusResponseStatus.md b/documentation/models/MyAccountGetStatusResponseStatus.md new file mode 100644 index 0000000..38e305f --- /dev/null +++ b/documentation/models/MyAccountGetStatusResponseStatus.md @@ -0,0 +1,14 @@ +# MyAccountGetStatusResponseStatus + +Status of sent business data + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----- | :------- | :------------------ | +| PENDING | String | ✅ | "PENDING" | +| APPROVED | String | ✅ | "APPROVED" | +| REJECTED | String | ✅ | "REJECTED" | +| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | + + diff --git a/documentation/models/NotificationBatchUpdateRequestDto.md b/documentation/models/NotificationBatchUpdateRequestDto.md new file mode 100644 index 0000000..6c0f5a0 --- /dev/null +++ b/documentation/models/NotificationBatchUpdateRequestDto.md @@ -0,0 +1,10 @@ +# NotificationBatchUpdateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :----------------------------------- | :------- | :---------------------------------- | +| customer | String | ✅ | Unique customer identifier in Asaas | +| notifications | List\ | ❌ | List of notification information | + + diff --git a/documentation/models/NotificationBatchUpdateResponseDto.md b/documentation/models/NotificationBatchUpdateResponseDto.md new file mode 100644 index 0000000..b75c338 --- /dev/null +++ b/documentation/models/NotificationBatchUpdateResponseDto.md @@ -0,0 +1,9 @@ +# NotificationBatchUpdateResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :--------------------------------- | :------- | :------------------------------- | +| notifications | List\ | ❌ | List of notification information | + + diff --git a/documentation/models/NotificationGetResponseDto.md b/documentation/models/NotificationGetResponseDto.md new file mode 100644 index 0000000..715badc --- /dev/null +++ b/documentation/models/NotificationGetResponseDto.md @@ -0,0 +1,23 @@ +# NotificationGetResponseDto + +List of notification information + +**Properties** + +| Name | Type | Required | Description | +| :-------------------------- | :--------------------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique notification identifier | +| customer | String | ❌ | Unique customer identifier | +| enabled | Boolean | ❌ | Indicates whether notification is enabled | +| emailEnabledForProvider | Boolean | ❌ | Indicates whether the email sent to you is enabled or disabled | +| smsEnabledForProvider | Boolean | ❌ | Indicates whether the SMS sent to you is enabled or disabled | +| emailEnabledForCustomer | Boolean | ❌ | Indicates whether the email sent to the customer is enabled or disabled | +| smsEnabledForCustomer | Boolean | ❌ | Indicates whether the SMS sent to the customer is enabled or disabled | +| phoneCallEnabledForCustomer | Boolean | ❌ | Indicates whether voice notification to the customer is enabled or disabled | +| whatsappEnabledForCustomer | Boolean | ❌ | Indicates whether the WhatsApp notification sent to the customer is enabled or disabled | +| event | NotificationGetResponseNotificationEvent | ❌ | Kind of event | +| scheduleOffset | NotificationGetResponseDtoScheduleOffset | ❌ | Specifies how many days before the due date the notification must be sent. Valid only for the `PAYMENT_DUEDATE_WARNING` and `PAYMENT_OVERDUE` events | +| deleted | Boolean | ❌ | Indicates whether the notification was deleted | + + diff --git a/documentation/models/NotificationGetResponseDtoScheduleOffset.md b/documentation/models/NotificationGetResponseDtoScheduleOffset.md new file mode 100644 index 0000000..1460662 --- /dev/null +++ b/documentation/models/NotificationGetResponseDtoScheduleOffset.md @@ -0,0 +1,17 @@ +# NotificationGetResponseDtoScheduleOffset + +Specifies how many days before the due date the notification must be sent. Valid only for the `PAYMENT_DUEDATE_WARNING` and `PAYMENT_OVERDUE` events + +**Properties** + +| Name | Type | Required | Description | +| :--- | :--- | :------- | :---------- | +| \_0 | long | ✅ | 0 | +| \_1 | long | ✅ | 1 | +| \_5 | long | ✅ | 5 | +| \_7 | long | ✅ | 7 | +| \_10 | long | ✅ | 10 | +| \_15 | long | ✅ | 15 | +| \_30 | long | ✅ | 30 | + + diff --git a/documentation/models/NotificationGetResponseNotificationEvent.md b/documentation/models/NotificationGetResponseNotificationEvent.md new file mode 100644 index 0000000..3a44afc --- /dev/null +++ b/documentation/models/NotificationGetResponseNotificationEvent.md @@ -0,0 +1,16 @@ +# NotificationGetResponseNotificationEvent + +Kind of event + +**Properties** + +| Name | Type | Required | Description | +| :---------------------- | :----- | :------- | :------------------------ | +| PAYMENT_CREATED | String | ✅ | "PAYMENT_CREATED" | +| PAYMENT_UPDATED | String | ✅ | "PAYMENT_UPDATED" | +| PAYMENT_RECEIVED | String | ✅ | "PAYMENT_RECEIVED" | +| PAYMENT_OVERDUE | String | ✅ | "PAYMENT_OVERDUE" | +| PAYMENT_DUEDATE_WARNING | String | ✅ | "PAYMENT_DUEDATE_WARNING" | +| SEND_LINHA_DIGITAVEL | String | ✅ | "SEND_LINHA_DIGITAVEL" | + + diff --git a/documentation/models/NotificationListResponseDto.md b/documentation/models/NotificationListResponseDto.md new file mode 100644 index 0000000..c1a7dc5 --- /dev/null +++ b/documentation/models/NotificationListResponseDto.md @@ -0,0 +1,14 @@ +# NotificationListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :--------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/NotificationUpdateRequestDto.md b/documentation/models/NotificationUpdateRequestDto.md new file mode 100644 index 0000000..76a38b5 --- /dev/null +++ b/documentation/models/NotificationUpdateRequestDto.md @@ -0,0 +1,18 @@ +# NotificationUpdateRequestDto + +List of notification information + +**Properties** + +| Name | Type | Required | Description | +| :-------------------------- | :----------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| enabled | Boolean | ❌ | Enable/disable notification | +| emailEnabledForProvider | Boolean | ❌ | enable/disable the email sent to you | +| smsEnabledForProvider | Boolean | ❌ | enable/disable the SMS sent to you | +| emailEnabledForCustomer | Boolean | ❌ | enable/disable the email sent to your customer | +| smsEnabledForCustomer | Boolean | ❌ | enable/disable the SMS sent to your customer | +| phoneCallEnabledForCustomer | Boolean | ❌ | enable/disable voice notification sent to your customer | +| whatsappEnabledForCustomer | Boolean | ❌ | enable/disable WhatsApp messages for your customer | +| scheduleOffset | NotificationUpdateRequestDtoScheduleOffset | ❌ | Specifies how many days before the due date the notification must be sent. For the `PAYMENT_DUEDATE_WARNING` event, the accepted values are: `0`, `5`, `10`, `15` and `30` For the `PAYMENT_OVERDUE` event, the accepted values are: `1`, `7`, `15` and `30` | + + diff --git a/documentation/models/NotificationUpdateRequestDtoScheduleOffset.md b/documentation/models/NotificationUpdateRequestDtoScheduleOffset.md new file mode 100644 index 0000000..7d89c5d --- /dev/null +++ b/documentation/models/NotificationUpdateRequestDtoScheduleOffset.md @@ -0,0 +1,17 @@ +# NotificationUpdateRequestDtoScheduleOffset + +Specifies how many days before the due date the notification must be sent. For the `PAYMENT_DUEDATE_WARNING` event, the accepted values are: `0`, `5`, `10`, `15` and `30` For the `PAYMENT_OVERDUE` event, the accepted values are: `1`, `7`, `15` and `30` + +**Properties** + +| Name | Type | Required | Description | +| :--- | :--- | :------- | :---------- | +| \_0 | long | ✅ | 0 | +| \_1 | long | ✅ | 1 | +| \_5 | long | ✅ | 5 | +| \_7 | long | ✅ | 7 | +| \_10 | long | ✅ | 10 | +| \_15 | long | ✅ | 15 | +| \_30 | long | ✅ | 30 | + + diff --git a/documentation/models/PaymentBankSlipRefundResponseDto.md b/documentation/models/PaymentBankSlipRefundResponseDto.md new file mode 100644 index 0000000..08df7d7 --- /dev/null +++ b/documentation/models/PaymentBankSlipRefundResponseDto.md @@ -0,0 +1,9 @@ +# PaymentBankSlipRefundResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----- | :------- | :---------------------------- | +| requestUrl | String | ❌ | Link to report refund details | + + diff --git a/documentation/models/PaymentBillingInfoResponseDto.md b/documentation/models/PaymentBillingInfoResponseDto.md new file mode 100644 index 0000000..3d9f9b1 --- /dev/null +++ b/documentation/models/PaymentBillingInfoResponseDto.md @@ -0,0 +1,11 @@ +# PaymentBillingInfoResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----------------------------- | :------- | :-------------------------------- | +| pix | PaymentPixQrCodeResponseDto | ❌ | Payment data related to pix | +| creditCard | CreditCardTokenizeResponseDto | ❌ | | +| bankSlip | BankSlipBillingInfoResponseDto | ❌ | Payment data related to bank slip | + + diff --git a/documentation/models/PaymentCallbackRequestDto.md b/documentation/models/PaymentCallbackRequestDto.md new file mode 100644 index 0000000..d3f72c6 --- /dev/null +++ b/documentation/models/PaymentCallbackRequestDto.md @@ -0,0 +1,12 @@ +# PaymentCallbackRequestDto + +Automatic redirection information after the payment of the link payment + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :------ | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| successUrl | String | ✅ | URL that the customer will be redirected to after successful payment of the invoice or payment link | +| autoRedirect | Boolean | ❌ | Define whether the customer will be automatically redirected or will just be informed with a button to return to the website. The default is true, if you want to disable it, enter false | + + diff --git a/documentation/models/PaymentChargebackResponseChargebackDisputeStatus.md b/documentation/models/PaymentChargebackResponseChargebackDisputeStatus.md new file mode 100644 index 0000000..8844bf7 --- /dev/null +++ b/documentation/models/PaymentChargebackResponseChargebackDisputeStatus.md @@ -0,0 +1,13 @@ +# PaymentChargebackResponseChargebackDisputeStatus + +Chargeback dispute status. + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :----- | :------- | :---------- | +| REQUESTED | String | ✅ | "REQUESTED" | +| ACCEPTED | String | ✅ | "ACCEPTED" | +| REJECTED | String | ✅ | "REJECTED" | + + diff --git a/documentation/models/PaymentChargebackResponseChargebackReason.md b/documentation/models/PaymentChargebackResponseChargebackReason.md new file mode 100644 index 0000000..df37c17 --- /dev/null +++ b/documentation/models/PaymentChargebackResponseChargebackReason.md @@ -0,0 +1,42 @@ +# PaymentChargebackResponseChargebackReason + +Chargeback reason + +**Properties** + +| Name | Type | Required | Description | +| :---------------------------------------- | :----- | :------- | :------------------------------------------ | +| ABSENCE_OF_PRINT | String | ✅ | "ABSENCE_OF_PRINT" | +| ABSENT_CARD_FRAUD | String | ✅ | "ABSENT_CARD_FRAUD" | +| CARD_ACTIVATED_PHONE_TRANSACTION | String | ✅ | "CARD_ACTIVATED_PHONE_TRANSACTION" | +| CARD_FRAUD | String | ✅ | "CARD_FRAUD" | +| CARD_RECOVERY_BULLETIN | String | ✅ | "CARD_RECOVERY_BULLETIN" | +| COMMERCIAL_DISAGREEMENT | String | ✅ | "COMMERCIAL_DISAGREEMENT" | +| COPY_NOT_RECEIVED | String | ✅ | "COPY_NOT_RECEIVED" | +| CREDIT_OR_DEBIT_PRESENTATION_ERROR | String | ✅ | "CREDIT_OR_DEBIT_PRESENTATION_ERROR" | +| DIFFERENT_PAY_METHOD | String | ✅ | "DIFFERENT_PAY_METHOD" | +| FRAUD | String | ✅ | "FRAUD" | +| INCORRECT_TRANSACTION_VALUE | String | ✅ | "INCORRECT_TRANSACTION_VALUE" | +| INVALID_CURRENCY | String | ✅ | "INVALID_CURRENCY" | +| INVALID_DATA | String | ✅ | "INVALID_DATA" | +| LATE_PRESENTATION | String | ✅ | "LATE_PRESENTATION" | +| LOCAL_REGULATORY_OR_LEGAL_DISPUTE | String | ✅ | "LOCAL_REGULATORY_OR_LEGAL_DISPUTE" | +| MULTIPLE_ROCS | String | ✅ | "MULTIPLE_ROCS" | +| ORIGINAL_CREDIT_TRANSACTION_NOT_ACCEPTED | String | ✅ | "ORIGINAL_CREDIT_TRANSACTION_NOT_ACCEPTED" | +| OTHER_ABSENT_CARD_FRAUD | String | ✅ | "OTHER_ABSENT_CARD_FRAUD" | +| PROCESS_ERROR | String | ✅ | "PROCESS_ERROR" | +| RECEIVED_COPY_ILLEGIBLE_OR_INCOMPLETE | String | ✅ | "RECEIVED_COPY_ILLEGIBLE_OR_INCOMPLETE" | +| RECURRENCE_CANCELED | String | ✅ | "RECURRENCE_CANCELED" | +| REQUIRED_AUTHORIZATION_NOT_GRANTED | String | ✅ | "REQUIRED_AUTHORIZATION_NOT_GRANTED" | +| RIGHT_OF_FULL_RECOURSE_FOR_FRAUD | String | ✅ | "RIGHT_OF_FULL_RECOURSE_FOR_FRAUD" | +| SALE_CANCELED | String | ✅ | "SALE_CANCELED" | +| SERVICE_DISAGREEMENT_OR_DEFECTIVE_PRODUCT | String | ✅ | "SERVICE_DISAGREEMENT_OR_DEFECTIVE_PRODUCT" | +| SERVICE_NOT_RECEIVED | String | ✅ | "SERVICE_NOT_RECEIVED" | +| SPLIT_SALE | String | ✅ | "SPLIT_SALE" | +| TRANSFERS_OF_DIVERSE_RESPONSIBILITIES | String | ✅ | "TRANSFERS_OF_DIVERSE_RESPONSIBILITIES" | +| UNQUALIFIED_CAR_RENTAL_DEBIT | String | ✅ | "UNQUALIFIED_CAR_RENTAL_DEBIT" | +| USA_CARDHOLDER_DISPUTE | String | ✅ | "USA_CARDHOLDER_DISPUTE" | +| VISA_FRAUD_MONITORING_PROGRAM | String | ✅ | "VISA_FRAUD_MONITORING_PROGRAM" | +| WARNING_BULLETIN_FILE | String | ✅ | "WARNING_BULLETIN_FILE" | + + diff --git a/documentation/models/PaymentChargebackResponseChargebackStatus.md b/documentation/models/PaymentChargebackResponseChargebackStatus.md new file mode 100644 index 0000000..1d9ca8d --- /dev/null +++ b/documentation/models/PaymentChargebackResponseChargebackStatus.md @@ -0,0 +1,15 @@ +# PaymentChargebackResponseChargebackStatus + +Chargeback status + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| REQUESTED | String | ✅ | "REQUESTED" | +| IN_DISPUTE | String | ✅ | "IN_DISPUTE" | +| DISPUTE_LOST | String | ✅ | "DISPUTE_LOST" | +| REVERSED | String | ✅ | "REVERSED" | +| DONE | String | ✅ | "DONE" | + + diff --git a/documentation/models/PaymentChargebackResponseDto.md b/documentation/models/PaymentChargebackResponseDto.md new file mode 100644 index 0000000..29b6c52 --- /dev/null +++ b/documentation/models/PaymentChargebackResponseDto.md @@ -0,0 +1,20 @@ +# PaymentChargebackResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------- | :----------------------------------------------- | :------- | :--------------------------------------------------------------- | +| id | String | ❌ | Unique chargeback identifier. | +| payment | String | ❌ | Unique payment identifier in Asaas | +| installment | String | ❌ | Unique installment identifier in Asaas | +| customerAccount | String | ❌ | Unique identifier of customer to which the chargeback is linked. | +| status | PaymentChargebackResponseChargebackStatus | ❌ | Chargeback status | +| reason | PaymentChargebackResponseChargebackReason | ❌ | Chargeback reason | +| disputeStartDate | String | ❌ | Chargeback opening date. | +| value | Double | ❌ | Chargeback value. | +| paymentDate | String | ❌ | Payment date on Asaas | +| creditCard | ChargebackCreditCardResponseDto | ❌ | Credit card information | +| disputeStatus | PaymentChargebackResponseChargebackDisputeStatus | ❌ | Chargeback dispute status. | +| deadlineToSendDisputeDocuments | String | ❌ | Deadline to send dispute documents. | + + diff --git a/documentation/models/PaymentCheckoutConfigGetResponseDto.md b/documentation/models/PaymentCheckoutConfigGetResponseDto.md new file mode 100644 index 0000000..e393136 --- /dev/null +++ b/documentation/models/PaymentCheckoutConfigGetResponseDto.md @@ -0,0 +1,16 @@ +# PaymentCheckoutConfigGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :-------------------------------------------------- | :------- | :------------------------------------------- | +| object | String | ❌ | Object type | +| logoBackgroundColor | String | ❌ | Logo background color | +| infoBackgroundColor | String | ❌ | Background color of your information | +| fontColor | String | ❌ | Font color of your information | +| enabled | Boolean | ❌ | Indicates whether personalization is enabled | +| logoUrl | String | ❌ | Logo download link | +| observations | String | ❌ | Invoice personalization analysis notes | +| status | PaymentCheckoutConfigGetResponseInvoiceConfigStatus | ❌ | Invoice personalization status | + + diff --git a/documentation/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.md b/documentation/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.md new file mode 100644 index 0000000..d2ce32a --- /dev/null +++ b/documentation/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.md @@ -0,0 +1,13 @@ +# PaymentCheckoutConfigGetResponseInvoiceConfigStatus + +Invoice personalization status + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----- | :------- | :------------------ | +| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | +| APPROVED | String | ✅ | "APPROVED" | +| REJECTED | String | ✅ | "REJECTED" | + + diff --git a/documentation/models/PaymentCheckoutConfigSaveRequestDto.md b/documentation/models/PaymentCheckoutConfigSaveRequestDto.md new file mode 100644 index 0000000..0996b95 --- /dev/null +++ b/documentation/models/PaymentCheckoutConfigSaveRequestDto.md @@ -0,0 +1,13 @@ +# PaymentCheckoutConfigSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :------ | :------- | :------------------------------------------- | +| logoBackgroundColor | String | ✅ | Logo background color | +| infoBackgroundColor | String | ✅ | Background color of your information | +| fontColor | String | ✅ | Font color of your information | +| enabled | Boolean | ❌ | Indicates whether personalization is enabled | +| logoFile | byte[] | ❌ | File | + + diff --git a/documentation/models/PaymentDeleteResponseDto.md b/documentation/models/PaymentDeleteResponseDto.md new file mode 100644 index 0000000..76ab33c --- /dev/null +++ b/documentation/models/PaymentDeleteResponseDto.md @@ -0,0 +1,10 @@ +# PaymentDeleteResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :-------------------------------------------- | +| deleted | Boolean | ❌ | Indicates whether the charge has been removed | +| id | String | ❌ | Unique payment identifier in Asaas | + + diff --git a/documentation/models/PaymentDiscountDiscountType.md b/documentation/models/PaymentDiscountDiscountType.md new file mode 100644 index 0000000..8d3393f --- /dev/null +++ b/documentation/models/PaymentDiscountDiscountType.md @@ -0,0 +1,12 @@ +# PaymentDiscountDiscountType + +Discount type + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----- | :------- | :----------- | +| FIXED | String | ✅ | "FIXED" | +| PERCENTAGE | String | ✅ | "PERCENTAGE" | + + diff --git a/documentation/models/PaymentDiscountDto.md b/documentation/models/PaymentDiscountDto.md new file mode 100644 index 0000000..2041938 --- /dev/null +++ b/documentation/models/PaymentDiscountDto.md @@ -0,0 +1,13 @@ +# PaymentDiscountDto + +Discount information + +**Properties** + +| Name | Type | Required | Description | +| :--------------- | :-------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------- | +| value | Double | ❌ | Percentage or fixed amount of discount to be applied to the Payment amount | +| dueDateLimitDays | Long | ❌ | Days before expiration to apply discount. Ex: 0 = until expiration, 1 = up to one day before, 2 = up to 2 days before, and so on | +| type | PaymentDiscountDiscountType | ❌ | Discount type | + + diff --git a/documentation/models/PaymentDocumentDeleteResponseDto.md b/documentation/models/PaymentDocumentDeleteResponseDto.md new file mode 100644 index 0000000..37de626 --- /dev/null +++ b/documentation/models/PaymentDocumentDeleteResponseDto.md @@ -0,0 +1,10 @@ +# PaymentDocumentDeleteResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :------------------------------------- | +| deleted | Boolean | ❌ | Indicates whether the file was removed | +| id | String | ❌ | Unique document identifier | + + diff --git a/documentation/models/PaymentDocumentFileResponseDto.md b/documentation/models/PaymentDocumentFileResponseDto.md new file mode 100644 index 0000000..16b52be --- /dev/null +++ b/documentation/models/PaymentDocumentFileResponseDto.md @@ -0,0 +1,16 @@ +# PaymentDocumentFileResponseDto + +File object + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :-------------------------------- | +| publicId | String | ❌ | Unique document identifier | +| originalName | String | ❌ | Original document name | +| size | Long | ❌ | File size | +| extension | String | ❌ | File extension | +| previewUrl | String | ❌ | Link to download the file preview | +| downloadUrl | String | ❌ | Link to download the file | + + diff --git a/documentation/models/PaymentDocumentGetResponseDto.md b/documentation/models/PaymentDocumentGetResponseDto.md new file mode 100644 index 0000000..da716d6 --- /dev/null +++ b/documentation/models/PaymentDocumentGetResponseDto.md @@ -0,0 +1,15 @@ +# PaymentDocumentGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :-------------------------------------------- | :------- | :------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique document identifier | +| name | String | ❌ | Document name | +| type | PaymentDocumentGetResponsePaymentDocumentType | ❌ | Document type | +| availableAfterPayment | Boolean | ❌ | Available only after payment | +| file | PaymentDocumentFileResponseDto | ❌ | File object | +| deleted | Boolean | ❌ | Indicates whether the file was removed | + + diff --git a/documentation/models/PaymentDocumentGetResponsePaymentDocumentType.md b/documentation/models/PaymentDocumentGetResponsePaymentDocumentType.md new file mode 100644 index 0000000..34374ff --- /dev/null +++ b/documentation/models/PaymentDocumentGetResponsePaymentDocumentType.md @@ -0,0 +1,17 @@ +# PaymentDocumentGetResponsePaymentDocumentType + +Document type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| INVOICE | String | ✅ | "INVOICE" | +| CONTRACT | String | ✅ | "CONTRACT" | +| MEDIA | String | ✅ | "MEDIA" | +| DOCUMENT | String | ✅ | "DOCUMENT" | +| SPREADSHEET | String | ✅ | "SPREADSHEET" | +| PROGRAM | String | ✅ | "PROGRAM" | +| OTHER | String | ✅ | "OTHER" | + + diff --git a/documentation/models/PaymentDocumentListResponseDto.md b/documentation/models/PaymentDocumentListResponseDto.md new file mode 100644 index 0000000..29078fa --- /dev/null +++ b/documentation/models/PaymentDocumentListResponseDto.md @@ -0,0 +1,14 @@ +# PaymentDocumentListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :------------------------------------ | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PaymentDocumentSaveRequestDto.md b/documentation/models/PaymentDocumentSaveRequestDto.md new file mode 100644 index 0000000..6b55f79 --- /dev/null +++ b/documentation/models/PaymentDocumentSaveRequestDto.md @@ -0,0 +1,11 @@ +# PaymentDocumentSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :-------------------------------------------- | :------- | :---------------------------------------------------------------- | +| availableAfterPayment | Boolean | ✅ | true to make the file available only after receipt of the payment | +| type | PaymentDocumentSaveRequestPaymentDocumentType | ✅ | Document type | +| file | byte[] | ✅ | File | + + diff --git a/documentation/models/PaymentDocumentSaveRequestPaymentDocumentType.md b/documentation/models/PaymentDocumentSaveRequestPaymentDocumentType.md new file mode 100644 index 0000000..29f4c46 --- /dev/null +++ b/documentation/models/PaymentDocumentSaveRequestPaymentDocumentType.md @@ -0,0 +1,17 @@ +# PaymentDocumentSaveRequestPaymentDocumentType + +Document type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| INVOICE | String | ✅ | "INVOICE" | +| CONTRACT | String | ✅ | "CONTRACT" | +| MEDIA | String | ✅ | "MEDIA" | +| DOCUMENT | String | ✅ | "DOCUMENT" | +| SPREADSHEET | String | ✅ | "SPREADSHEET" | +| PROGRAM | String | ✅ | "PROGRAM" | +| OTHER | String | ✅ | "OTHER" | + + diff --git a/documentation/models/PaymentDocumentUpdateRequestDto.md b/documentation/models/PaymentDocumentUpdateRequestDto.md new file mode 100644 index 0000000..cd17ac4 --- /dev/null +++ b/documentation/models/PaymentDocumentUpdateRequestDto.md @@ -0,0 +1,10 @@ +# PaymentDocumentUpdateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :---------------------------------------------- | :------- | :---------------------------------------------------------------- | +| availableAfterPayment | Boolean | ✅ | true to make the file available only after receipt of the payment | +| type | PaymentDocumentUpdateRequestPaymentDocumentType | ✅ | Document type | + + diff --git a/documentation/models/PaymentDocumentUpdateRequestPaymentDocumentType.md b/documentation/models/PaymentDocumentUpdateRequestPaymentDocumentType.md new file mode 100644 index 0000000..c8055f4 --- /dev/null +++ b/documentation/models/PaymentDocumentUpdateRequestPaymentDocumentType.md @@ -0,0 +1,17 @@ +# PaymentDocumentUpdateRequestPaymentDocumentType + +Document type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| INVOICE | String | ✅ | "INVOICE" | +| CONTRACT | String | ✅ | "CONTRACT" | +| MEDIA | String | ✅ | "MEDIA" | +| DOCUMENT | String | ✅ | "DOCUMENT" | +| SPREADSHEET | String | ✅ | "SPREADSHEET" | +| PROGRAM | String | ✅ | "PROGRAM" | +| OTHER | String | ✅ | "OTHER" | + + diff --git a/documentation/models/PaymentDunningCancelResponseDto.md b/documentation/models/PaymentDunningCancelResponseDto.md new file mode 100644 index 0000000..937caa7 --- /dev/null +++ b/documentation/models/PaymentDunningCancelResponseDto.md @@ -0,0 +1,24 @@ +# PaymentDunningCancelResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------- | :----------------------------------------------- | :------- | :-------------------------------------------------------- | +| id | String | ❌ | Unique identifier of the payment dunning in Asaas | +| dunningNumber | Long | ❌ | Payment dunning number | +| status | PaymentDunningCancelResponsePaymentDunningStatus | ❌ | Payment dunning status | +| type | PaymentDunningCancelResponsePaymentDunningType | ❌ | Type of payment dunning | +| payment | String | ❌ | Unique identifier of the payment to be recovered in Asaas | +| requestDate | String | ❌ | Request date | +| description | String | ❌ | Description of the payment dunning | +| value | Double | ❌ | Payment amount | +| feeValue | Double | ❌ | Cost and/or payment dunning fee | +| netValue | Double | ❌ | Net amount to be recovered | +| receivedInCashFeeValue | Double | ❌ | Cash receipt fee | +| denialReason | String | ❌ | Reason for denial of payment dunning | +| cancellationFeeValue | Double | ❌ | Fee charged in case of cancellation | +| canBeCancelled | Boolean | ❌ | Whether the payment dunning can be canceled | +| cannotBeCancelledReason | String | ❌ | Reason for not being able to request cancellation | +| isNecessaryResendDocumentation | Boolean | ❌ | Determine whether documentation needs to be resubmitted | + + diff --git a/documentation/models/PaymentDunningCancelResponsePaymentDunningStatus.md b/documentation/models/PaymentDunningCancelResponsePaymentDunningStatus.md new file mode 100644 index 0000000..a9fe3ff --- /dev/null +++ b/documentation/models/PaymentDunningCancelResponsePaymentDunningStatus.md @@ -0,0 +1,18 @@ +# PaymentDunningCancelResponsePaymentDunningStatus + +Payment dunning status + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :----- | :------- | :---------------------- | +| PENDING | String | ✅ | "PENDING" | +| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | +| AWAITING_CANCELLATION | String | ✅ | "AWAITING_CANCELLATION" | +| PROCESSED | String | ✅ | "PROCESSED" | +| PAID | String | ✅ | "PAID" | +| PARTIALLY_PAID | String | ✅ | "PARTIALLY_PAID" | +| DENIED | String | ✅ | "DENIED" | +| CANCELLED | String | ✅ | "CANCELLED" | + + diff --git a/documentation/models/PaymentDunningCancelResponsePaymentDunningType.md b/documentation/models/PaymentDunningCancelResponsePaymentDunningType.md new file mode 100644 index 0000000..7c3a3ac --- /dev/null +++ b/documentation/models/PaymentDunningCancelResponsePaymentDunningType.md @@ -0,0 +1,11 @@ +# PaymentDunningCancelResponsePaymentDunningType + +Type of payment dunning + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :----- | :------- | :-------------- | +| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | + + diff --git a/documentation/models/PaymentDunningListHistoryResponseDataDto.md b/documentation/models/PaymentDunningListHistoryResponseDataDto.md new file mode 100644 index 0000000..37d2449 --- /dev/null +++ b/documentation/models/PaymentDunningListHistoryResponseDataDto.md @@ -0,0 +1,13 @@ +# PaymentDunningListHistoryResponseDataDto + +List of objects + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :--------------------------------------------------------------- | :------- | :----------------------- | +| status | PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus | ❌ | Negotiation status | +| description | String | ❌ | Description of the event | +| eventDate | String | ❌ | Date the event occurred | + + diff --git a/documentation/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md b/documentation/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md new file mode 100644 index 0000000..e74fac0 --- /dev/null +++ b/documentation/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md @@ -0,0 +1,14 @@ +# PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus + +Negotiation status + +**Properties** + +| Name | Type | Required | Description | +| :--------------- | :----- | :------- | :----------------- | +| IN_NEGOTIATION | String | ✅ | "IN_NEGOTIATION" | +| NEGOTIATION_FAIL | String | ✅ | "NEGOTIATION_FAIL" | +| NEGOTIATED | String | ✅ | "NEGOTIATED" | +| PAID | String | ✅ | "PAID" | + + diff --git a/documentation/models/PaymentDunningListHistoryResponseDto.md b/documentation/models/PaymentDunningListHistoryResponseDto.md new file mode 100644 index 0000000..055cfa1 --- /dev/null +++ b/documentation/models/PaymentDunningListHistoryResponseDto.md @@ -0,0 +1,14 @@ +# PaymentDunningListHistoryResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----------------------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PaymentDunningListPartialPaymentsResponseDataDto.md b/documentation/models/PaymentDunningListPartialPaymentsResponseDataDto.md new file mode 100644 index 0000000..56e25db --- /dev/null +++ b/documentation/models/PaymentDunningListPartialPaymentsResponseDataDto.md @@ -0,0 +1,13 @@ +# PaymentDunningListPartialPaymentsResponseDataDto + +List of objects + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------------ | +| value | Double | ❌ | Amount paid | +| description | String | ❌ | Payment Description | +| paymentDate | String | ❌ | Pay day | + + diff --git a/documentation/models/PaymentDunningListPartialPaymentsResponseDto.md b/documentation/models/PaymentDunningListPartialPaymentsResponseDto.md new file mode 100644 index 0000000..636a671 --- /dev/null +++ b/documentation/models/PaymentDunningListPartialPaymentsResponseDto.md @@ -0,0 +1,14 @@ +# PaymentDunningListPartialPaymentsResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :------------------------------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PaymentDunningListRequestPaymentDunningStatus.md b/documentation/models/PaymentDunningListRequestPaymentDunningStatus.md new file mode 100644 index 0000000..f393381 --- /dev/null +++ b/documentation/models/PaymentDunningListRequestPaymentDunningStatus.md @@ -0,0 +1,18 @@ +# PaymentDunningListRequestPaymentDunningStatus + +Filter by payment dunning status + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :----- | :------- | :---------------------- | +| PENDING | String | ✅ | "PENDING" | +| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | +| AWAITING_CANCELLATION | String | ✅ | "AWAITING_CANCELLATION" | +| PROCESSED | String | ✅ | "PROCESSED" | +| PAID | String | ✅ | "PAID" | +| PARTIALLY_PAID | String | ✅ | "PARTIALLY_PAID" | +| DENIED | String | ✅ | "DENIED" | +| CANCELLED | String | ✅ | "CANCELLED" | + + diff --git a/documentation/models/PaymentDunningListRequestPaymentDunningType.md b/documentation/models/PaymentDunningListRequestPaymentDunningType.md new file mode 100644 index 0000000..ce7b232 --- /dev/null +++ b/documentation/models/PaymentDunningListRequestPaymentDunningType.md @@ -0,0 +1,12 @@ +# PaymentDunningListRequestPaymentDunningType + +Filter by type of payment dunning + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :----- | :------- | :------------------------- | +| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | +| DEBT_RECOVERY_ASSISTANCE | String | ✅ | "DEBT_RECOVERY_ASSISTANCE" | + + diff --git a/documentation/models/PaymentDunningListResponseDto.md b/documentation/models/PaymentDunningListResponseDto.md new file mode 100644 index 0000000..c8da17f --- /dev/null +++ b/documentation/models/PaymentDunningListResponseDto.md @@ -0,0 +1,14 @@ +# PaymentDunningListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :------------------------------------ | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md new file mode 100644 index 0000000..8f25295 --- /dev/null +++ b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md @@ -0,0 +1,16 @@ +# PaymentDunningPaymentsAvailableForDunningResponseDataBillingType + +Form of payment + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| TRANSFER | String | ✅ | "TRANSFER" | +| DEPOSIT | String | ✅ | "DEPOSIT" | +| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.md b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.md new file mode 100644 index 0000000..1727372 --- /dev/null +++ b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.md @@ -0,0 +1,17 @@ +# PaymentDunningPaymentsAvailableForDunningResponseDataDto + +List of objects + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :--------------------------------------------------------------------------------- | :------- | :---------------------------------------------------------------------- | +| payment | String | ❌ | Unique identifier of the payment to be recovered in Asaas | +| customer | String | ❌ | Unique customer identifier | +| value | Double | ❌ | Payment amount | +| status | PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus | ❌ | Billing status | +| billingType | PaymentDunningPaymentsAvailableForDunningResponseDataBillingType | ❌ | Form of payment | +| dueDate | String | ❌ | Due date | +| typeSimulations | List\ | ❌ | Simulation of denial request for each type of payment dunning available | + + diff --git a/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md new file mode 100644 index 0000000..0b79f1b --- /dev/null +++ b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md @@ -0,0 +1,14 @@ +# PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus + +Billing status + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :----- | :------- | :---------- | +| PENDING | String | ✅ | "PENDING" | +| RECEIVED | String | ✅ | "RECEIVED" | +| CONFIRMED | String | ✅ | "CONFIRMED" | +| OVERDUE | String | ✅ | "OVERDUE" | + + diff --git a/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md new file mode 100644 index 0000000..b9701dd --- /dev/null +++ b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md @@ -0,0 +1,16 @@ +# PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto + +Simulation of denial request for each type of payment dunning available + +**Properties** + +| Name | Type | Required | Description | +| :--------------- | :---------------------------------------------------------------------------------------- | :------- | :----------------------------------------------------------------------- | +| type | PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType | ❌ | Type of payment dunning | +| isAllowed | Boolean | ❌ | Whether it is possible to request a payment dunning of this type | +| notAllowedReason | String | ❌ | Reason why it is not possible to request a payment dunning for this type | +| feeValue | Double | ❌ | Cost and/or payment dunning fee | +| netValue | Double | ❌ | Net amount to be recovered | +| startDate | String | ❌ | Expected start date of the payment dunning | + + diff --git a/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md new file mode 100644 index 0000000..8066a7f --- /dev/null +++ b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md @@ -0,0 +1,11 @@ +# PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType + +Type of payment dunning + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :----- | :------- | :-------------- | +| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | + + diff --git a/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDto.md b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDto.md new file mode 100644 index 0000000..627cc47 --- /dev/null +++ b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDto.md @@ -0,0 +1,14 @@ +# PaymentDunningPaymentsAvailableForDunningResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :--------------------------------------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PaymentDunningSaveDocumentsRequestDto.md b/documentation/models/PaymentDunningSaveDocumentsRequestDto.md new file mode 100644 index 0000000..62d8ef4 --- /dev/null +++ b/documentation/models/PaymentDunningSaveDocumentsRequestDto.md @@ -0,0 +1,9 @@ +# PaymentDunningSaveDocumentsRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :----- | :------- | :-------------------------------- | +| documents | byte[] | ✅ | Invoice and/or contract notarized | + + diff --git a/documentation/models/PaymentDunningSaveDocumentsResponseDto.md b/documentation/models/PaymentDunningSaveDocumentsResponseDto.md new file mode 100644 index 0000000..5823422 --- /dev/null +++ b/documentation/models/PaymentDunningSaveDocumentsResponseDto.md @@ -0,0 +1,24 @@ +# PaymentDunningSaveDocumentsResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------- | :------------------------------------------------------ | :------- | :-------------------------------------------------------- | +| id | String | ❌ | Unique identifier of the payment dunning in Asaas | +| dunningNumber | Long | ❌ | Payment dunning number | +| status | PaymentDunningSaveDocumentsResponsePaymentDunningStatus | ❌ | Payment dunning status | +| type | PaymentDunningSaveDocumentsResponsePaymentDunningType | ❌ | Type of payment dunning | +| payment | String | ❌ | Unique identifier of the payment to be recovered in Asaas | +| requestDate | String | ❌ | Request date | +| description | String | ❌ | Description of the payment dunning | +| value | Double | ❌ | Payment amount | +| feeValue | Double | ❌ | Cost and/or payment dunning fee | +| netValue | Double | ❌ | Net amount to be recovered | +| receivedInCashFeeValue | Double | ❌ | Cash receipt fee | +| denialReason | String | ❌ | Reason for denial of payment dunning | +| cancellationFeeValue | Double | ❌ | Fee charged in case of cancellation | +| canBeCancelled | Boolean | ❌ | Whether the payment dunning can be canceled | +| cannotBeCancelledReason | String | ❌ | Reason for not being able to request cancellation | +| isNecessaryResendDocumentation | Boolean | ❌ | Determine whether documentation needs to be resubmitted | + + diff --git a/documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.md b/documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.md new file mode 100644 index 0000000..fe49441 --- /dev/null +++ b/documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.md @@ -0,0 +1,18 @@ +# PaymentDunningSaveDocumentsResponsePaymentDunningStatus + +Payment dunning status + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :----- | :------- | :---------------------- | +| PENDING | String | ✅ | "PENDING" | +| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | +| AWAITING_CANCELLATION | String | ✅ | "AWAITING_CANCELLATION" | +| PROCESSED | String | ✅ | "PROCESSED" | +| PAID | String | ✅ | "PAID" | +| PARTIALLY_PAID | String | ✅ | "PARTIALLY_PAID" | +| DENIED | String | ✅ | "DENIED" | +| CANCELLED | String | ✅ | "CANCELLED" | + + diff --git a/documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.md b/documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.md new file mode 100644 index 0000000..57de999 --- /dev/null +++ b/documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.md @@ -0,0 +1,11 @@ +# PaymentDunningSaveDocumentsResponsePaymentDunningType + +Type of payment dunning + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :----- | :------- | :-------------- | +| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | + + diff --git a/documentation/models/PaymentDunningSaveRequestDto.md b/documentation/models/PaymentDunningSaveRequestDto.md new file mode 100644 index 0000000..5a9eca3 --- /dev/null +++ b/documentation/models/PaymentDunningSaveRequestDto.md @@ -0,0 +1,21 @@ +# PaymentDunningSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :--------------------- | :------------------------------------------ | :------- | :-------------------------------------------------------- | +| payment | String | ✅ | Unique identifier of the payment to be recovered in Asaas | +| type | PaymentDunningSaveRequestPaymentDunningType | ✅ | Type of payment dunning | +| customerName | String | ✅ | Client name | +| customerCpfCnpj | String | ✅ | Customer CPF or CNPJ | +| customerPrimaryPhone | String | ✅ | Customer main telephone number | +| customerPostalCode | String | ✅ | Customer address zip code | +| customerAddress | String | ✅ | Customer public address | +| customerAddressNumber | String | ✅ | Customer address number | +| customerProvince | String | ✅ | Customer neighborhood | +| description | String | ❌ | Description of the product or service provided | +| customerSecondaryPhone | String | ❌ | Secondary customer phone number | +| customerComplement | String | ❌ | Customer address complement | +| documents | byte[] | ❌ | Invoice and/or contract notarized | + + diff --git a/documentation/models/PaymentDunningSaveRequestPaymentDunningType.md b/documentation/models/PaymentDunningSaveRequestPaymentDunningType.md new file mode 100644 index 0000000..66995b8 --- /dev/null +++ b/documentation/models/PaymentDunningSaveRequestPaymentDunningType.md @@ -0,0 +1,11 @@ +# PaymentDunningSaveRequestPaymentDunningType + +Type of payment dunning + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :----- | :------- | :-------------- | +| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | + + diff --git a/documentation/models/PaymentDunningShowResponseDto.md b/documentation/models/PaymentDunningShowResponseDto.md new file mode 100644 index 0000000..8797cc9 --- /dev/null +++ b/documentation/models/PaymentDunningShowResponseDto.md @@ -0,0 +1,24 @@ +# PaymentDunningShowResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------- | :--------------------------------------------- | :------- | :-------------------------------------------------------- | +| id | String | ❌ | Unique identifier of the payment dunning in Asaas | +| dunningNumber | Long | ❌ | Payment dunning number | +| status | PaymentDunningShowResponsePaymentDunningStatus | ❌ | Payment dunning status | +| type | PaymentDunningShowResponsePaymentDunningType | ❌ | Type of payment dunning | +| requestDate | String | ❌ | Request date | +| description | String | ❌ | Description of the payment dunning | +| value | Double | ❌ | Payment amount | +| feeValue | Double | ❌ | Cost and/or payment dunning fee | +| netValue | Double | ❌ | Net amount to be recovered | +| receivedInCashFeeValue | Double | ❌ | Cash receipt fee | +| denialReason | String | ❌ | Reason for denial of payment dunning | +| cancellationFeeValue | Double | ❌ | Fee charged in case of cancellation | +| canBeCancelled | Boolean | ❌ | Whether the payment dunning can be canceled | +| cannotBeCancelledReason | String | ❌ | Reason for not being able to request cancellation | +| isNecessaryResendDocumentation | Boolean | ❌ | Determine whether documentation needs to be resubmitted | +| payment | String | ❌ | Unique identifier of the payment to be recovered in Asaas | + + diff --git a/documentation/models/PaymentDunningShowResponsePaymentDunningStatus.md b/documentation/models/PaymentDunningShowResponsePaymentDunningStatus.md new file mode 100644 index 0000000..298883f --- /dev/null +++ b/documentation/models/PaymentDunningShowResponsePaymentDunningStatus.md @@ -0,0 +1,18 @@ +# PaymentDunningShowResponsePaymentDunningStatus + +Payment dunning status + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :----- | :------- | :---------------------- | +| PENDING | String | ✅ | "PENDING" | +| AWAITING_APPROVAL | String | ✅ | "AWAITING_APPROVAL" | +| AWAITING_CANCELLATION | String | ✅ | "AWAITING_CANCELLATION" | +| PROCESSED | String | ✅ | "PROCESSED" | +| PAID | String | ✅ | "PAID" | +| PARTIALLY_PAID | String | ✅ | "PARTIALLY_PAID" | +| DENIED | String | ✅ | "DENIED" | +| CANCELLED | String | ✅ | "CANCELLED" | + + diff --git a/documentation/models/PaymentDunningShowResponsePaymentDunningType.md b/documentation/models/PaymentDunningShowResponsePaymentDunningType.md new file mode 100644 index 0000000..e757118 --- /dev/null +++ b/documentation/models/PaymentDunningShowResponsePaymentDunningType.md @@ -0,0 +1,11 @@ +# PaymentDunningShowResponsePaymentDunningType + +Type of payment dunning + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :----- | :------- | :-------------- | +| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | + + diff --git a/documentation/models/PaymentDunningSimulateResponseDto.md b/documentation/models/PaymentDunningSimulateResponseDto.md new file mode 100644 index 0000000..2409383 --- /dev/null +++ b/documentation/models/PaymentDunningSimulateResponseDto.md @@ -0,0 +1,11 @@ +# PaymentDunningSimulateResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :---------------------------------------------------------- | :------- | :------------------------------------------------------------- | +| payment | String | ❌ | Unique identifier of the payment to be recovered in Asaas | +| value | Double | ❌ | Payment amount | +| typeSimulations | List\ | ❌ | Simulation of denial request for each type of denial available | + + diff --git a/documentation/models/PaymentDunningSimulateResponseTypeSimulationItemDto.md b/documentation/models/PaymentDunningSimulateResponseTypeSimulationItemDto.md new file mode 100644 index 0000000..917897c --- /dev/null +++ b/documentation/models/PaymentDunningSimulateResponseTypeSimulationItemDto.md @@ -0,0 +1,16 @@ +# PaymentDunningSimulateResponseTypeSimulationItemDto + +Simulation of denial request for each type of denial available + +**Properties** + +| Name | Type | Required | Description | +| :--------------- | :----------------------------------------------------------------- | :------- | :----------------------------------------------------------------------- | +| type | PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType | ❌ | Type of payment dunning | +| isAllowed | Boolean | ❌ | Whether it is possible to request a payment dunning of this type | +| notAllowedReason | String | ❌ | Reason why it is not possible to request a payment dunning for this type | +| feeValue | Double | ❌ | Cost and/or payment dunning fee | +| netValue | Double | ❌ | Net amount to be recovered | +| startDate | String | ❌ | Expected start date of the payment dunning | + + diff --git a/documentation/models/PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md b/documentation/models/PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md new file mode 100644 index 0000000..89bae09 --- /dev/null +++ b/documentation/models/PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md @@ -0,0 +1,11 @@ +# PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType + +Type of payment dunning + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :----- | :------- | :-------------- | +| CREDIT_BUREAU | String | ✅ | "CREDIT_BUREAU" | + + diff --git a/documentation/models/PaymentEscrowGetResponseDto.md b/documentation/models/PaymentEscrowGetResponseDto.md new file mode 100644 index 0000000..a04aa4f --- /dev/null +++ b/documentation/models/PaymentEscrowGetResponseDto.md @@ -0,0 +1,15 @@ +# PaymentEscrowGetResponseDto + +Payment escrow in the Escrow Account information + +**Properties** + +| Name | Type | Required | Description | +| :------------- | :------------------------------------------------ | :------- | :---------------------------------------- | +| id | String | ❌ | Unique payment escrow identifier in Asaas | +| status | PaymentEscrowGetResponsePaymentEscrowStatus | ❌ | Payment escrow status | +| expirationDate | String | ❌ | Payment escrow expiration date | +| finishDate | String | ❌ | Payment escrow finish date | +| finishReason | PaymentEscrowGetResponsePaymentEscrowFinishReason | ❌ | Payment escrow finish reason | + + diff --git a/documentation/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.md b/documentation/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.md new file mode 100644 index 0000000..9fa33d3 --- /dev/null +++ b/documentation/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.md @@ -0,0 +1,16 @@ +# PaymentEscrowGetResponsePaymentEscrowFinishReason + +Payment escrow finish reason + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :----- | :------- | :------------------------- | +| CHARGEBACK | String | ✅ | "CHARGEBACK" | +| EXPIRED | String | ✅ | "EXPIRED" | +| INSUFFICIENT_BALANCE | String | ✅ | "INSUFFICIENT_BALANCE" | +| PAYMENT_REFUNDED | String | ✅ | "PAYMENT_REFUNDED" | +| REQUESTED_BY_CUSTOMER | String | ✅ | "REQUESTED_BY_CUSTOMER" | +| CUSTOMER_CONFIG_DISABLED | String | ✅ | "CUSTOMER_CONFIG_DISABLED" | + + diff --git a/documentation/models/PaymentEscrowGetResponsePaymentEscrowStatus.md b/documentation/models/PaymentEscrowGetResponsePaymentEscrowStatus.md new file mode 100644 index 0000000..7afe64c --- /dev/null +++ b/documentation/models/PaymentEscrowGetResponsePaymentEscrowStatus.md @@ -0,0 +1,12 @@ +# PaymentEscrowGetResponsePaymentEscrowStatus + +Payment escrow status + +**Properties** + +| Name | Type | Required | Description | +| :----- | :----- | :------- | :---------- | +| ACTIVE | String | ✅ | "ACTIVE" | +| DONE | String | ✅ | "DONE" | + + diff --git a/documentation/models/PaymentFineRequestDto.md b/documentation/models/PaymentFineRequestDto.md new file mode 100644 index 0000000..401d11d --- /dev/null +++ b/documentation/models/PaymentFineRequestDto.md @@ -0,0 +1,12 @@ +# PaymentFineRequestDto + +Fine information for payment after due date + +**Properties** + +| Name | Type | Required | Description | +| :---- | :------------------------- | :------- | :---------------------------------------------------------------------------- | +| value | Double | ❌ | Percentage of fine on the amount of the charge for payment after the due date | +| type | PaymentFineRequestFineType | ❌ | Fine type | + + diff --git a/documentation/models/PaymentFineRequestFineType.md b/documentation/models/PaymentFineRequestFineType.md new file mode 100644 index 0000000..a82f78d --- /dev/null +++ b/documentation/models/PaymentFineRequestFineType.md @@ -0,0 +1,12 @@ +# PaymentFineRequestFineType + +Fine type + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----- | :------- | :----------- | +| FIXED | String | ✅ | "FIXED" | +| PERCENTAGE | String | ✅ | "PERCENTAGE" | + + diff --git a/documentation/models/PaymentFineResponseDto.md b/documentation/models/PaymentFineResponseDto.md new file mode 100644 index 0000000..145e745 --- /dev/null +++ b/documentation/models/PaymentFineResponseDto.md @@ -0,0 +1,11 @@ +# PaymentFineResponseDto + +Fine information for payment after due date + +**Properties** + +| Name | Type | Required | Description | +| :---- | :----- | :------- | :------------------------ | +| value | Double | ❌ | Fine amount in percentage | + + diff --git a/documentation/models/PaymentGetResponseBillingType.md b/documentation/models/PaymentGetResponseBillingType.md new file mode 100644 index 0000000..55f446a --- /dev/null +++ b/documentation/models/PaymentGetResponseBillingType.md @@ -0,0 +1,17 @@ +# PaymentGetResponseBillingType + +Payment billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | +| TRANSFER | String | ✅ | "TRANSFER" | +| DEPOSIT | String | ✅ | "DEPOSIT" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PaymentGetResponseDto.md b/documentation/models/PaymentGetResponseDto.md new file mode 100644 index 0000000..0a87ac4 --- /dev/null +++ b/documentation/models/PaymentGetResponseDto.md @@ -0,0 +1,52 @@ +# PaymentGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------------------- | :------------------------------------- | :------- | :----------------------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique payment identifier in Asaas | +| dateCreated | String | ❌ | Payment creation date | +| customer | String | ❌ | Unique identifier of the customer to whom the payment belongs | +| subscription | String | ❌ | Unique subscription identifier (when recurring billing) | +| installment | String | ❌ | Unique installment identifier (when billing in installments) | +| checkoutSession | String | ❌ | Unique checkout identifier | +| paymentLink | String | ❌ | Unique identifier of the payments link to which the payment belongs | +| value | Double | ❌ | Payment amount | +| netValue | Double | ❌ | Net value of the charge after discounting the Asaas fee | +| originalValue | Double | ❌ | Original amount of charge (filled when paid with interest and fine) | +| interestValue | Double | ❌ | Calculated amount of interest and fine that must be paid after the charge is due | +| description | String | ❌ | Description of the payment | +| billingType | PaymentGetResponseBillingType | ❌ | Payment billing type | +| creditCard | PaymentSaveWithCreditCardCreditCardDto | ❌ | Credit card information | +| canBePaidAfterDueDate | Boolean | ❌ | Informs whether the charge can be paid after the due date (Only for bank slip) | +| pixTransaction | String | ❌ | Unique identifier of the Pix transaction to which the payment belongs | +| pixQrCodeId | String | ❌ | Unique identifier of the static QrCode generated for a given Pix key | +| status | PaymentGetResponsePaymentStatus | ❌ | Payment status | +| dueDate | String | ❌ | Payment due date | +| originalDueDate | String | ❌ | Original due date upon creation of the payment | +| paymentDate | String | ❌ | Payment date on Asaas | +| clientPaymentDate | String | ❌ | Date on which the customer paid the bank slip | +| installmentNumber | Long | ❌ | Parcel number | +| invoiceUrl | String | ❌ | Invoice URL | +| invoiceNumber | String | ❌ | Bill number | +| externalReference | String | ❌ | Free search field | +| deleted | Boolean | ❌ | Determines if the payment has been removed | +| anticipated | Boolean | ❌ | Defines whether the charge was anticipated or is in the process of being anticipated | +| anticipable | Boolean | ❌ | Determines whether the charge is anticipated | +| creditDate | String | ❌ | Date when the credit became available | +| estimatedCreditDate | String | ❌ | Estimated date when the credit will be available | +| transactionReceiptUrl | String | ❌ | URL of proof of confirmation, receipt, reversal or removal | +| nossoNumero | String | ❌ | Unique identification of the bank slip | +| bankSlipUrl | String | ❌ | URL to download the bank slip | +| discount | PaymentDiscountDto | ❌ | Discount information | +| fine | PaymentFineResponseDto | ❌ | Fine information for payment after due date | +| interest | PaymentInterestResponseDto | ❌ | Interest information for payment after due date | +| split | List\ | ❌ | Split Settings | +| postalService | Boolean | ❌ | Define whether the payment will be sent via post | +| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | +| chargeback | PaymentChargebackResponseDto | ❌ | | +| escrow | PaymentEscrowGetResponseDto | ❌ | Payment escrow in the Escrow Account information | +| refunds | List\ | ❌ | Refunds information | + + diff --git a/documentation/models/PaymentGetResponsePaymentStatus.md b/documentation/models/PaymentGetResponsePaymentStatus.md new file mode 100644 index 0000000..84bd3e6 --- /dev/null +++ b/documentation/models/PaymentGetResponsePaymentStatus.md @@ -0,0 +1,24 @@ +# PaymentGetResponsePaymentStatus + +Payment status + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------- | :----- | :------- | :----------------------------- | +| PENDING | String | ✅ | "PENDING" | +| RECEIVED | String | ✅ | "RECEIVED" | +| CONFIRMED | String | ✅ | "CONFIRMED" | +| OVERDUE | String | ✅ | "OVERDUE" | +| REFUNDED | String | ✅ | "REFUNDED" | +| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | +| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | +| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | +| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | +| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | +| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | +| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | +| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | +| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | + + diff --git a/documentation/models/PaymentIdentificationFieldResponseDto.md b/documentation/models/PaymentIdentificationFieldResponseDto.md new file mode 100644 index 0000000..cc78cb5 --- /dev/null +++ b/documentation/models/PaymentIdentificationFieldResponseDto.md @@ -0,0 +1,11 @@ +# PaymentIdentificationFieldResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :----- | :------- | :------------------------------------- | +| identificationField | String | ❌ | Digitable bill line | +| nossoNumero | String | ❌ | Unique identification of the bank slip | +| barCode | String | ❌ | Bank slip bar code | + + diff --git a/documentation/models/PaymentInterestRequestDto.md b/documentation/models/PaymentInterestRequestDto.md new file mode 100644 index 0000000..f4df7c3 --- /dev/null +++ b/documentation/models/PaymentInterestRequestDto.md @@ -0,0 +1,11 @@ +# PaymentInterestRequestDto + +Interest information for payment after due date + +**Properties** + +| Name | Type | Required | Description | +| :---- | :----- | :------- | :-------------------------------------------------------------------------------- | +| value | Double | ❌ | Percentage of interest per month on the amount charged for payment after maturity | + + diff --git a/documentation/models/PaymentInterestResponseDto.md b/documentation/models/PaymentInterestResponseDto.md new file mode 100644 index 0000000..c0bb4a0 --- /dev/null +++ b/documentation/models/PaymentInterestResponseDto.md @@ -0,0 +1,11 @@ +# PaymentInterestResponseDto + +Interest information for payment after due date + +**Properties** + +| Name | Type | Required | Description | +| :---- | :----- | :------- | :--------------------------- | +| value | Double | ❌ | Interest value in percentage | + + diff --git a/documentation/models/PaymentLeanGetResponseBillingType.md b/documentation/models/PaymentLeanGetResponseBillingType.md new file mode 100644 index 0000000..e282112 --- /dev/null +++ b/documentation/models/PaymentLeanGetResponseBillingType.md @@ -0,0 +1,17 @@ +# PaymentLeanGetResponseBillingType + +Payment billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | +| TRANSFER | String | ✅ | "TRANSFER" | +| DEPOSIT | String | ✅ | "DEPOSIT" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PaymentLeanGetResponseDto.md b/documentation/models/PaymentLeanGetResponseDto.md new file mode 100644 index 0000000..00cc037 --- /dev/null +++ b/documentation/models/PaymentLeanGetResponseDto.md @@ -0,0 +1,41 @@ +# PaymentLeanGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :---------------------------------- | :------- | :----------------------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique payment identifier in Asaas | +| dateCreated | String | ❌ | Payment creation date | +| customerId | String | ❌ | Unique identifier of the customer to whom the payment belongs | +| subscriptionId | String | ❌ | Unique subscription identifier (when recurring billing) | +| installmentId | String | ❌ | Unique installment identifier (when billing in installments) | +| paymentLinkId | String | ❌ | Unique identifier of the payments link to which the payment belongs | +| value | Double | ❌ | Payment amount | +| netValue | Double | ❌ | Net value of the charge after discounting the Asaas fee | +| originalValue | Double | ❌ | Original amount of charge (filled when paid with interest and fine) | +| interestValue | Double | ❌ | Calculated amount of interest and fine that must be paid after the charge is due | +| description | String | ❌ | Description of the payment | +| billingType | PaymentLeanGetResponseBillingType | ❌ | Payment billing type | +| canBePaidAfterDueDate | Boolean | ❌ | Informs whether the charge can be paid after the due date (Only for bank slip) | +| confirmedDate | String | ❌ | Billing confirmation date | +| pixTransactionId | String | ❌ | Unique identifier of the Pix transaction to which the payment belongs | +| status | PaymentLeanGetResponsePaymentStatus | ❌ | Payment status | +| dueDate | String | ❌ | Payment due date | +| originalDueDate | String | ❌ | Original due date upon creation of the payment | +| paymentDate | String | ❌ | Payment date on Asaas | +| customerPaymentDate | String | ❌ | Date on which the customer paid the bank slip | +| installmentNumber | Long | ❌ | Parcel number | +| externalReference | String | ❌ | Free search field | +| deleted | Boolean | ❌ | Determines if the payment has been removed | +| anticipated | Boolean | ❌ | Defines whether the charge was anticipated or is in the process of being anticipated | +| anticipable | Boolean | ❌ | Determines whether the charge is anticipated | +| creditDate | String | ❌ | Billing Credit date | +| transactionReceiptUrl | String | ❌ | URL of proof of confirmation, receipt, reversal or removal | +| duplicatedPaymentId | String | ❌ | Duplicate billing identifier (if true) | +| discount | PaymentDiscountDto | ❌ | Discount information | +| fine | PaymentFineResponseDto | ❌ | Fine information for payment after due date | +| interest | PaymentInterestResponseDto | ❌ | Interest information for payment after due date | +| postalService | Boolean | ❌ | Define whether the payment will be sent via post | + + diff --git a/documentation/models/PaymentLeanGetResponsePaymentStatus.md b/documentation/models/PaymentLeanGetResponsePaymentStatus.md new file mode 100644 index 0000000..bafb756 --- /dev/null +++ b/documentation/models/PaymentLeanGetResponsePaymentStatus.md @@ -0,0 +1,24 @@ +# PaymentLeanGetResponsePaymentStatus + +Payment status + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------- | :----- | :------- | :----------------------------- | +| PENDING | String | ✅ | "PENDING" | +| RECEIVED | String | ✅ | "RECEIVED" | +| CONFIRMED | String | ✅ | "CONFIRMED" | +| OVERDUE | String | ✅ | "OVERDUE" | +| REFUNDED | String | ✅ | "REFUNDED" | +| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | +| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | +| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | +| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | +| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | +| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | +| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | +| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | +| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | + + diff --git a/documentation/models/PaymentLeanListResponseDto.md b/documentation/models/PaymentLeanListResponseDto.md new file mode 100644 index 0000000..6827806 --- /dev/null +++ b/documentation/models/PaymentLeanListResponseDto.md @@ -0,0 +1,14 @@ +# PaymentLeanListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :-------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PaymentLeanSaveWithCreditCardResponseBillingType.md b/documentation/models/PaymentLeanSaveWithCreditCardResponseBillingType.md new file mode 100644 index 0000000..438a989 --- /dev/null +++ b/documentation/models/PaymentLeanSaveWithCreditCardResponseBillingType.md @@ -0,0 +1,17 @@ +# PaymentLeanSaveWithCreditCardResponseBillingType + +Payment billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | +| TRANSFER | String | ✅ | "TRANSFER" | +| DEPOSIT | String | ✅ | "DEPOSIT" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PaymentLeanSaveWithCreditCardResponseDto.md b/documentation/models/PaymentLeanSaveWithCreditCardResponseDto.md new file mode 100644 index 0000000..02f7b8d --- /dev/null +++ b/documentation/models/PaymentLeanSaveWithCreditCardResponseDto.md @@ -0,0 +1,42 @@ +# PaymentLeanSaveWithCreditCardResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :------------------------------------------------- | :------- | :----------------------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique payment identifier in Asaas | +| dateCreated | String | ❌ | Payment creation date | +| customerId | String | ❌ | Unique identifier of the customer to whom the payment belongs | +| subscriptionId | String | ❌ | Unique subscription identifier (when recurring billing) | +| installmentId | String | ❌ | Unique installment identifier (when billing in installments) | +| paymentLinkId | String | ❌ | Unique identifier of the payments link to which the payment belongs | +| value | Double | ❌ | Payment amount | +| netValue | Double | ❌ | Net value of the charge after discounting the Asaas fee | +| originalValue | Double | ❌ | Original amount of charge (filled when paid with interest and fine) | +| interestValue | Double | ❌ | Calculated amount of interest and fine that must be paid after the charge is due | +| description | String | ❌ | Description of the payment | +| billingType | PaymentLeanSaveWithCreditCardResponseBillingType | ❌ | Payment billing type | +| canBePaidAfterDueDate | Boolean | ❌ | Informs whether the charge can be paid after the due date (Only for bank slip) | +| confirmedDate | String | ❌ | Billing confirmation date | +| pixTransactionId | String | ❌ | Unique identifier of the Pix transaction to which the payment belongs | +| status | PaymentLeanSaveWithCreditCardResponsePaymentStatus | ❌ | Payment status | +| dueDate | String | ❌ | Payment due date | +| originalDueDate | String | ❌ | Original due date upon creation of the payment | +| paymentDate | String | ❌ | Payment date on Asaas | +| customerPaymentDate | String | ❌ | Date on which the customer paid the bank slip | +| installmentNumber | Long | ❌ | Parcel number | +| externalReference | String | ❌ | Free search field | +| deleted | Boolean | ❌ | Determines if the payment has been removed | +| anticipated | Boolean | ❌ | Defines whether the charge was anticipated or is in the process of being anticipated | +| anticipable | Boolean | ❌ | Determines whether the charge is anticipated | +| creditDate | String | ❌ | Billing Credit date | +| transactionReceiptUrl | String | ❌ | URL of proof of confirmation, receipt, reversal or removal | +| duplicatedPaymentId | String | ❌ | Duplicate billing identifier (if true) | +| discount | PaymentDiscountDto | ❌ | Discount information | +| fine | PaymentFineResponseDto | ❌ | Fine information for payment after due date | +| interest | PaymentInterestResponseDto | ❌ | Interest information for payment after due date | +| postalService | Boolean | ❌ | Define whether the payment will be sent via post | +| creditCard | PaymentSaveWithCreditCardCreditCardDto | ❌ | Credit card information | + + diff --git a/documentation/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.md b/documentation/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.md new file mode 100644 index 0000000..55da853 --- /dev/null +++ b/documentation/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.md @@ -0,0 +1,24 @@ +# PaymentLeanSaveWithCreditCardResponsePaymentStatus + +Payment status + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------- | :----- | :------- | :----------------------------- | +| PENDING | String | ✅ | "PENDING" | +| RECEIVED | String | ✅ | "RECEIVED" | +| CONFIRMED | String | ✅ | "CONFIRMED" | +| OVERDUE | String | ✅ | "OVERDUE" | +| REFUNDED | String | ✅ | "REFUNDED" | +| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | +| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | +| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | +| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | +| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | +| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | +| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | +| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | +| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | + + diff --git a/documentation/models/PaymentLimitsResponseCreationDailyDto.md b/documentation/models/PaymentLimitsResponseCreationDailyDto.md new file mode 100644 index 0000000..1d011d4 --- /dev/null +++ b/documentation/models/PaymentLimitsResponseCreationDailyDto.md @@ -0,0 +1,13 @@ +# PaymentLimitsResponseCreationDailyDto + +Daily limits + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :------ | :------- | :------------------------------------------- | +| limit | Long | ❌ | Total limit | +| used | Long | ❌ | Limit used | +| wasReached | Boolean | ❌ | Indicates whether the limit has been reached | + + diff --git a/documentation/models/PaymentLimitsResponseCreationDto.md b/documentation/models/PaymentLimitsResponseCreationDto.md new file mode 100644 index 0000000..361328e --- /dev/null +++ b/documentation/models/PaymentLimitsResponseCreationDto.md @@ -0,0 +1,11 @@ +# PaymentLimitsResponseCreationDto + +Breeding limits + +**Properties** + +| Name | Type | Required | Description | +| :---- | :------------------------------------ | :------- | :----------- | +| daily | PaymentLimitsResponseCreationDailyDto | ❌ | Daily limits | + + diff --git a/documentation/models/PaymentLimitsResponseDto.md b/documentation/models/PaymentLimitsResponseDto.md new file mode 100644 index 0000000..fc99753 --- /dev/null +++ b/documentation/models/PaymentLimitsResponseDto.md @@ -0,0 +1,9 @@ +# PaymentLimitsResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------- | :------------------------------- | :------- | :-------------- | +| creation | PaymentLimitsResponseCreationDto | ❌ | Breeding limits | + + diff --git a/documentation/models/PaymentLinkDeleteResponseDto.md b/documentation/models/PaymentLinkDeleteResponseDto.md new file mode 100644 index 0000000..111760f --- /dev/null +++ b/documentation/models/PaymentLinkDeleteResponseDto.md @@ -0,0 +1,10 @@ +# PaymentLinkDeleteResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :-------------------------------------------------- | +| deleted | Boolean | ❌ | Indicates whether the payment link has been removed | +| id | String | ❌ | Unique identifier for your payments link in Asaas | + + diff --git a/documentation/models/PaymentLinkFileDeleteResponseDto.md b/documentation/models/PaymentLinkFileDeleteResponseDto.md new file mode 100644 index 0000000..05804b8 --- /dev/null +++ b/documentation/models/PaymentLinkFileDeleteResponseDto.md @@ -0,0 +1,10 @@ +# PaymentLinkFileDeleteResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :-------------------------------------------- | +| deleted | Boolean | ❌ | Indicates whether the image was removed | +| id | String | ❌ | Unique payment link image identifier in Asaas | + + diff --git a/documentation/models/PaymentLinkFileGetResponseDto.md b/documentation/models/PaymentLinkFileGetResponseDto.md new file mode 100644 index 0000000..f77adc5 --- /dev/null +++ b/documentation/models/PaymentLinkFileGetResponseDto.md @@ -0,0 +1,11 @@ +# PaymentLinkFileGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :---- | :------------------------------ | :------- | :-------------------------------------------- | +| id | String | ❌ | Unique payment link image identifier in Asaas | +| main | Boolean | ❌ | Determines if this is the main image | +| image | PaymentLinkFileImageResponseDto | ❌ | Payments link image information | + + diff --git a/documentation/models/PaymentLinkFileImageResponseDto.md b/documentation/models/PaymentLinkFileImageResponseDto.md new file mode 100644 index 0000000..5b851f4 --- /dev/null +++ b/documentation/models/PaymentLinkFileImageResponseDto.md @@ -0,0 +1,15 @@ +# PaymentLinkFileImageResponseDto + +Payments link image information + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :--------------------------------- | +| originalName | String | ❌ | Original image name | +| size | Long | ❌ | Image size | +| extension | String | ❌ | Image extension | +| previewUrl | String | ❌ | Link to download the image preview | +| downloadUrl | String | ❌ | Link to download the image | + + diff --git a/documentation/models/PaymentLinkFileListResponseDto.md b/documentation/models/PaymentLinkFileListResponseDto.md new file mode 100644 index 0000000..aa5a7ff --- /dev/null +++ b/documentation/models/PaymentLinkFileListResponseDto.md @@ -0,0 +1,14 @@ +# PaymentLinkFileListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :------------------------------------ | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PaymentLinkFileSaveRequestDto.md b/documentation/models/PaymentLinkFileSaveRequestDto.md new file mode 100644 index 0000000..d79bb3f --- /dev/null +++ b/documentation/models/PaymentLinkFileSaveRequestDto.md @@ -0,0 +1,10 @@ +# PaymentLinkFileSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---- | :------ | :------- | :---------------------------- | +| main | Boolean | ❌ | true to set as the main image | +| image | byte[] | ❌ | File | + + diff --git a/documentation/models/PaymentLinkGetResponseBillingType.md b/documentation/models/PaymentLinkGetResponseBillingType.md new file mode 100644 index 0000000..7a8b0d2 --- /dev/null +++ b/documentation/models/PaymentLinkGetResponseBillingType.md @@ -0,0 +1,14 @@ +# PaymentLinkGetResponseBillingType + +Allowed payment method + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PaymentLinkGetResponseChargeType.md b/documentation/models/PaymentLinkGetResponseChargeType.md new file mode 100644 index 0000000..a274b23 --- /dev/null +++ b/documentation/models/PaymentLinkGetResponseChargeType.md @@ -0,0 +1,13 @@ +# PaymentLinkGetResponseChargeType + +Charge type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| DETACHED | String | ✅ | "DETACHED" | +| RECURRENT | String | ✅ | "RECURRENT" | +| INSTALLMENT | String | ✅ | "INSTALLMENT" | + + diff --git a/documentation/models/PaymentLinkGetResponseCycle.md b/documentation/models/PaymentLinkGetResponseCycle.md new file mode 100644 index 0000000..03b9d90 --- /dev/null +++ b/documentation/models/PaymentLinkGetResponseCycle.md @@ -0,0 +1,17 @@ +# PaymentLinkGetResponseCycle + +Billing frequency, if the chargeType is RECURRENT + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| WEEKLY | String | ✅ | "WEEKLY" | +| BIWEEKLY | String | ✅ | "BIWEEKLY" | +| MONTHLY | String | ✅ | "MONTHLY" | +| BIMONTHLY | String | ✅ | "BIMONTHLY" | +| QUARTERLY | String | ✅ | "QUARTERLY" | +| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | +| YEARLY | String | ✅ | "YEARLY" | + + diff --git a/documentation/models/PaymentLinkGetResponseDto.md b/documentation/models/PaymentLinkGetResponseDto.md new file mode 100644 index 0000000..9db4d53 --- /dev/null +++ b/documentation/models/PaymentLinkGetResponseDto.md @@ -0,0 +1,25 @@ +# PaymentLinkGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :-------------------------------- | :------- | :-------------------------------------------------------------------------------------------------------------------- | +| id | String | ❌ | Unique identifier for your payments link in Asaas | +| name | String | ❌ | Payment link name | +| value | Double | ❌ | Value of the payment link, if not informed, the payer can inform how much they want to pay | +| active | Boolean | ❌ | If the payments link is active | +| chargeType | PaymentLinkGetResponseChargeType | ❌ | Charge type | +| url | String | ❌ | Payments link access link | +| billingType | PaymentLinkGetResponseBillingType | ❌ | Allowed payment method | +| subscriptionCycle | PaymentLinkGetResponseCycle | ❌ | Billing frequency, if the chargeType is RECURRENT | +| description | String | ❌ | Payments link description | +| endDate | String | ❌ | End date | +| deleted | Boolean | ❌ | Indicates whether the payment link has been removed | +| viewCount | Long | ❌ | The number of views of your payments link | +| maxInstallmentCount | Long | ❌ | Maximum number of installments that your customer can pay in installments for the payment link, if it is Installment. | +| dueDateLimitDays | Long | ❌ | Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) | +| notificationEnabled | Boolean | ❌ | Defines whether customers registered via the payments link will have notifications enabled | +| isAddressRequired | Boolean | ❌ | Defines whether filling in the address will be obligatory in the charges. | +| externalReference | String | ❌ | Free search field. | + + diff --git a/documentation/models/PaymentLinkListResponseDto.md b/documentation/models/PaymentLinkListResponseDto.md new file mode 100644 index 0000000..f2ca090 --- /dev/null +++ b/documentation/models/PaymentLinkListResponseDto.md @@ -0,0 +1,14 @@ +# PaymentLinkListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :-------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PaymentLinkSaveRequestBillingType.md b/documentation/models/PaymentLinkSaveRequestBillingType.md new file mode 100644 index 0000000..3911042 --- /dev/null +++ b/documentation/models/PaymentLinkSaveRequestBillingType.md @@ -0,0 +1,14 @@ +# PaymentLinkSaveRequestBillingType + +Allowed payment method + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PaymentLinkSaveRequestChargeType.md b/documentation/models/PaymentLinkSaveRequestChargeType.md new file mode 100644 index 0000000..c27afc8 --- /dev/null +++ b/documentation/models/PaymentLinkSaveRequestChargeType.md @@ -0,0 +1,13 @@ +# PaymentLinkSaveRequestChargeType + +Charge type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| DETACHED | String | ✅ | "DETACHED" | +| RECURRENT | String | ✅ | "RECURRENT" | +| INSTALLMENT | String | ✅ | "INSTALLMENT" | + + diff --git a/documentation/models/PaymentLinkSaveRequestCycle.md b/documentation/models/PaymentLinkSaveRequestCycle.md new file mode 100644 index 0000000..82e9f15 --- /dev/null +++ b/documentation/models/PaymentLinkSaveRequestCycle.md @@ -0,0 +1,17 @@ +# PaymentLinkSaveRequestCycle + +Billing frequency, if the chargeType is RECURRENT + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| WEEKLY | String | ✅ | "WEEKLY" | +| BIWEEKLY | String | ✅ | "BIWEEKLY" | +| MONTHLY | String | ✅ | "MONTHLY" | +| BIMONTHLY | String | ✅ | "BIMONTHLY" | +| QUARTERLY | String | ✅ | "QUARTERLY" | +| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | +| YEARLY | String | ✅ | "YEARLY" | + + diff --git a/documentation/models/PaymentLinkSaveRequestDto.md b/documentation/models/PaymentLinkSaveRequestDto.md new file mode 100644 index 0000000..97d052f --- /dev/null +++ b/documentation/models/PaymentLinkSaveRequestDto.md @@ -0,0 +1,21 @@ +# PaymentLinkSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :-------------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| name | String | ✅ | Payment link name | +| billingType | PaymentLinkSaveRequestBillingType | ✅ | Allowed payment method | +| chargeType | PaymentLinkSaveRequestChargeType | ✅ | Charge type | +| description | String | ❌ | Payments link description | +| endDate | String | ❌ | End date | +| value | Double | ❌ | Value of the payment link, if not informed, the payer can inform how much they want to pay | +| dueDateLimitDays | Long | ❌ | Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) | +| subscriptionCycle | PaymentLinkSaveRequestCycle | ❌ | Billing frequency, if the chargeType is RECURRENT | +| maxInstallmentCount | Long | ❌ | Maximum number of installments that your customer can pay in installments for the payment link if the billing method selected is Installments. If not informed, the default value will be 1 installment | +| externalReference | String | ❌ | Free search field. | +| notificationEnabled | Boolean | ❌ | Defines whether customers registered via the payments link will have notifications enabled. If not informed, the default value will be true | +| callback | PaymentCallbackRequestDto | ❌ | Automatic redirection information after the payment of the link payment | +| isAddressRequired | Boolean | ❌ | True to make it mandatory to fill in address data at checkout. | + + diff --git a/documentation/models/PaymentLinkUpdateRequestBillingType.md b/documentation/models/PaymentLinkUpdateRequestBillingType.md new file mode 100644 index 0000000..6f76329 --- /dev/null +++ b/documentation/models/PaymentLinkUpdateRequestBillingType.md @@ -0,0 +1,14 @@ +# PaymentLinkUpdateRequestBillingType + +Allowed payment method + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PaymentLinkUpdateRequestChargeType.md b/documentation/models/PaymentLinkUpdateRequestChargeType.md new file mode 100644 index 0000000..1f9dda6 --- /dev/null +++ b/documentation/models/PaymentLinkUpdateRequestChargeType.md @@ -0,0 +1,13 @@ +# PaymentLinkUpdateRequestChargeType + +Charge type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| DETACHED | String | ✅ | "DETACHED" | +| RECURRENT | String | ✅ | "RECURRENT" | +| INSTALLMENT | String | ✅ | "INSTALLMENT" | + + diff --git a/documentation/models/PaymentLinkUpdateRequestCycle.md b/documentation/models/PaymentLinkUpdateRequestCycle.md new file mode 100644 index 0000000..d7ee282 --- /dev/null +++ b/documentation/models/PaymentLinkUpdateRequestCycle.md @@ -0,0 +1,17 @@ +# PaymentLinkUpdateRequestCycle + +Billing frequency, if the chargeType is RECURRENT + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| WEEKLY | String | ✅ | "WEEKLY" | +| BIWEEKLY | String | ✅ | "BIWEEKLY" | +| MONTHLY | String | ✅ | "MONTHLY" | +| BIMONTHLY | String | ✅ | "BIMONTHLY" | +| QUARTERLY | String | ✅ | "QUARTERLY" | +| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | +| YEARLY | String | ✅ | "YEARLY" | + + diff --git a/documentation/models/PaymentLinkUpdateRequestDto.md b/documentation/models/PaymentLinkUpdateRequestDto.md new file mode 100644 index 0000000..0d02b04 --- /dev/null +++ b/documentation/models/PaymentLinkUpdateRequestDto.md @@ -0,0 +1,21 @@ +# PaymentLinkUpdateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :---------------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| name | String | ❌ | Payment link name | +| description | String | ❌ | Payments link description | +| endDate | String | ❌ | End date | +| value | Double | ❌ | Value of the payment link, if not informed, the payer can inform how much they want to pay | +| active | Boolean | ❌ | Determines whether the payments link is active | +| billingType | PaymentLinkUpdateRequestBillingType | ❌ | Allowed payment method | +| chargeType | PaymentLinkUpdateRequestChargeType | ❌ | Charge type | +| dueDateLimitDays | Long | ❌ | Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) | +| subscriptionCycle | PaymentLinkUpdateRequestCycle | ❌ | Billing frequency, if the chargeType is RECURRENT | +| maxInstallmentCount | Long | ❌ | Maximum number of installments that your customer can pay in installments for the payment link if the billing method selected is Installments. If not informed, the default value will be 1 installment | +| externalReference | String | ❌ | Free search field. | +| notificationEnabled | Boolean | ❌ | Defines whether customers registered via the payments link will have notifications enabled. If not informed, the default value will be true | +| callback | PaymentCallbackRequestDto | ❌ | Automatic redirection information after the payment of the link payment | + + diff --git a/documentation/models/PaymentListRequestBillingType.md b/documentation/models/PaymentListRequestBillingType.md new file mode 100644 index 0000000..c918471 --- /dev/null +++ b/documentation/models/PaymentListRequestBillingType.md @@ -0,0 +1,14 @@ +# PaymentListRequestBillingType + +Filter by billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PaymentListRequestInvoiceStatus.md b/documentation/models/PaymentListRequestInvoiceStatus.md new file mode 100644 index 0000000..6aeb105 --- /dev/null +++ b/documentation/models/PaymentListRequestInvoiceStatus.md @@ -0,0 +1,16 @@ +# PaymentListRequestInvoiceStatus + +Filter to return charges that have or do not have an invoice + +**Properties** + +| Name | Type | Required | Description | +| :---------------------- | :----- | :------- | :------------------------ | +| SCHEDULED | String | ✅ | "SCHEDULED" | +| AUTHORIZED | String | ✅ | "AUTHORIZED" | +| PROCESSING_CANCELLATION | String | ✅ | "PROCESSING_CANCELLATION" | +| CANCELED | String | ✅ | "CANCELED" | +| CANCELLATION_DENIED | String | ✅ | "CANCELLATION_DENIED" | +| ERROR | String | ✅ | "ERROR" | + + diff --git a/documentation/models/PaymentListRequestPaymentStatus.md b/documentation/models/PaymentListRequestPaymentStatus.md new file mode 100644 index 0000000..83b9d4f --- /dev/null +++ b/documentation/models/PaymentListRequestPaymentStatus.md @@ -0,0 +1,24 @@ +# PaymentListRequestPaymentStatus + +Filter by status + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------- | :----- | :------- | :----------------------------- | +| PENDING | String | ✅ | "PENDING" | +| RECEIVED | String | ✅ | "RECEIVED" | +| CONFIRMED | String | ✅ | "CONFIRMED" | +| OVERDUE | String | ✅ | "OVERDUE" | +| REFUNDED | String | ✅ | "REFUNDED" | +| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | +| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | +| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | +| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | +| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | +| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | +| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | +| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | +| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | + + diff --git a/documentation/models/PaymentListResponseDto.md b/documentation/models/PaymentListResponseDto.md new file mode 100644 index 0000000..b219aa1 --- /dev/null +++ b/documentation/models/PaymentListResponseDto.md @@ -0,0 +1,14 @@ +# PaymentListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :---------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PaymentPayWithCreditCardRequestDto.md b/documentation/models/PaymentPayWithCreditCardRequestDto.md new file mode 100644 index 0000000..bfbbce7 --- /dev/null +++ b/documentation/models/PaymentPayWithCreditCardRequestDto.md @@ -0,0 +1,11 @@ +# PaymentPayWithCreditCardRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :----------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------- | +| creditCard | CreditCardRequestDto | ✅ | Credit card information | +| creditCardHolderInfo | CreditCardHolderInfoRequestDto | ✅ | Credit card holder information | +| creditCardToken | String | ❌ | Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. | + + diff --git a/documentation/models/PaymentPixQrCodeResponseDto.md b/documentation/models/PaymentPixQrCodeResponseDto.md new file mode 100644 index 0000000..a89d445 --- /dev/null +++ b/documentation/models/PaymentPixQrCodeResponseDto.md @@ -0,0 +1,13 @@ +# PaymentPixQrCodeResponseDto + +Payment data related to pix + +**Properties** + +| Name | Type | Required | Description | +| :------------- | :----- | :------- | :------------------------------- | +| encodedImage | String | ❌ | QrCode image in base64 | +| payload | String | ❌ | Copy and Paste of the Pix QrCode | +| expirationDate | String | ❌ | QrCode expiration date | + + diff --git a/documentation/models/PaymentReceiveInCashRequestDto.md b/documentation/models/PaymentReceiveInCashRequestDto.md new file mode 100644 index 0000000..00a018b --- /dev/null +++ b/documentation/models/PaymentReceiveInCashRequestDto.md @@ -0,0 +1,11 @@ +# PaymentReceiveInCashRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------- | :------ | :------- | :----------------------------------------------------------------- | +| paymentDate | String | ❌ | Date the customer made the payment | +| value | Double | ❌ | Amount paid by the customer | +| notifyCustomer | Boolean | ❌ | Send or not send notification of confirmed payment to the customer | + + diff --git a/documentation/models/PaymentRefundGetResponseDto.md b/documentation/models/PaymentRefundGetResponseDto.md new file mode 100644 index 0000000..74b33a1 --- /dev/null +++ b/documentation/models/PaymentRefundGetResponseDto.md @@ -0,0 +1,18 @@ +# PaymentRefundGetResponseDto + +Refunds information + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :------------------------------------------ | :------- | :---------------------------------------------------------------------- | +| dateCreated | String | ❌ | Refund creation date | +| status | PaymentRefundGetResponsePaymentRefundStatus | ❌ | Refund status | +| value | Double | ❌ | Refund value | +| endToEndIdentifier | String | ❌ | (Pix only) Unique identifier of the Pix transaction at the Central Bank | +| description | String | ❌ | Description of the refund | +| effectiveDate | String | ❌ | (Pix only) Refund effective date | +| transactionReceiptUrl | String | ❌ | Transaction receipt link | +| refundedSplits | List\ | ❌ | Refunded Splits, if any | + + diff --git a/documentation/models/PaymentRefundGetResponsePaymentRefundStatus.md b/documentation/models/PaymentRefundGetResponsePaymentRefundStatus.md new file mode 100644 index 0000000..271ea82 --- /dev/null +++ b/documentation/models/PaymentRefundGetResponsePaymentRefundStatus.md @@ -0,0 +1,15 @@ +# PaymentRefundGetResponsePaymentRefundStatus + +Refund status + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------------------- | :----- | :------- | :----------------------------------------- | +| PENDING | String | ✅ | "PENDING" | +| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | +| AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION | String | ✅ | "AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION" | +| CANCELLED | String | ✅ | "CANCELLED" | +| DONE | String | ✅ | "DONE" | + + diff --git a/documentation/models/PaymentRefundListResponseDto.md b/documentation/models/PaymentRefundListResponseDto.md new file mode 100644 index 0000000..c8f845f --- /dev/null +++ b/documentation/models/PaymentRefundListResponseDto.md @@ -0,0 +1,14 @@ +# PaymentRefundListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :---------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PaymentRefundRequestDto.md b/documentation/models/PaymentRefundRequestDto.md new file mode 100644 index 0000000..6749edd --- /dev/null +++ b/documentation/models/PaymentRefundRequestDto.md @@ -0,0 +1,10 @@ +# PaymentRefundRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :-------------------- | +| value | Double | ❌ | Amount to be refunded | +| description | String | ❌ | Reason for the refund | + + diff --git a/documentation/models/PaymentRefundedSplitResponseDto.md b/documentation/models/PaymentRefundedSplitResponseDto.md new file mode 100644 index 0000000..60e9656 --- /dev/null +++ b/documentation/models/PaymentRefundedSplitResponseDto.md @@ -0,0 +1,13 @@ +# PaymentRefundedSplitResponseDto + +Refunded Splits, if any + +**Properties** + +| Name | Type | Required | Description | +| :---- | :------ | :------- | :--------------------------------------- | +| id | String | ❌ | Unique split identifier | +| value | Double | ❌ | Refunded value | +| done | Boolean | ❌ | Indicates whether the split was refunded | + + diff --git a/documentation/models/PaymentSaveRequestBillingType.md b/documentation/models/PaymentSaveRequestBillingType.md new file mode 100644 index 0000000..1402dc6 --- /dev/null +++ b/documentation/models/PaymentSaveRequestBillingType.md @@ -0,0 +1,14 @@ +# PaymentSaveRequestBillingType + +Payment billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PaymentSaveRequestDto.md b/documentation/models/PaymentSaveRequestDto.md new file mode 100644 index 0000000..db77878 --- /dev/null +++ b/documentation/models/PaymentSaveRequestDto.md @@ -0,0 +1,24 @@ +# PaymentSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------------------- | :----------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| customer | String | ✅ | Unique customer identifier in Asaas | +| billingType | PaymentSaveRequestBillingType | ✅ | Payment billing type | +| value | Double | ✅ | Payment amount | +| dueDate | String | ✅ | Payment due date | +| description | String | ❌ | Payment description (max. 500 characters) | +| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | +| externalReference | String | ❌ | Free search field | +| installmentCount | Long | ❌ | Number of installments (only in the case of installment payment) | +| totalValue | Double | ❌ | Enter the total amount of a charge that will be paid in installments (only in the case of an installment charge). If this field is sent, the installmentValue is not necessary, the calculation per installment will be automatic. | +| installmentValue | Double | ❌ | Value of each installment (only in the case of installment payment). Send this field if you want to define the value of each installment. | +| discount | PaymentDiscountDto | ❌ | Discount information | +| interest | PaymentInterestRequestDto | ❌ | Interest information for payment after due date | +| fine | PaymentFineRequestDto | ❌ | Fine information for payment after due date | +| postalService | Boolean | ❌ | Define whether the payment will be sent via post | +| split | List\ | ❌ | Split Settings | +| callback | PaymentCallbackRequestDto | ❌ | Automatic redirection information after the payment of the link payment | + + diff --git a/documentation/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.md b/documentation/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.md new file mode 100644 index 0000000..45dc362 --- /dev/null +++ b/documentation/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.md @@ -0,0 +1,23 @@ +# PaymentSaveWithCreditCardCreditCardCreditCardBrand + +Flag of the card used + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----- | :------- | :----------- | +| VISA | String | ✅ | "VISA" | +| MASTERCARD | String | ✅ | "MASTERCARD" | +| ELO | String | ✅ | "ELO" | +| DINERS | String | ✅ | "DINERS" | +| DISCOVER | String | ✅ | "DISCOVER" | +| AMEX | String | ✅ | "AMEX" | +| CABAL | String | ✅ | "CABAL" | +| BANESCARD | String | ✅ | "BANESCARD" | +| CREDZ | String | ✅ | "CREDZ" | +| SOROCRED | String | ✅ | "SOROCRED" | +| CREDSYSTEM | String | ✅ | "CREDSYSTEM" | +| JCB | String | ✅ | "JCB" | +| UNKNOWN | String | ✅ | "UNKNOWN" | + + diff --git a/documentation/models/PaymentSaveWithCreditCardCreditCardDto.md b/documentation/models/PaymentSaveWithCreditCardCreditCardDto.md new file mode 100644 index 0000000..c35cba5 --- /dev/null +++ b/documentation/models/PaymentSaveWithCreditCardCreditCardDto.md @@ -0,0 +1,13 @@ +# PaymentSaveWithCreditCardCreditCardDto + +Credit card information + +**Properties** + +| Name | Type | Required | Description | +| :--------------- | :------------------------------------------------- | :------- | :------------------------------------------- | +| creditCardNumber | String | ❌ | Last 4 digits of the card used | +| creditCardBrand | PaymentSaveWithCreditCardCreditCardCreditCardBrand | ❌ | Flag of the card used | +| creditCardToken | String | ❌ | Credit card token if tokenization is active. | + + diff --git a/documentation/models/PaymentSaveWithCreditCardRequestBillingType.md b/documentation/models/PaymentSaveWithCreditCardRequestBillingType.md new file mode 100644 index 0000000..4d576e1 --- /dev/null +++ b/documentation/models/PaymentSaveWithCreditCardRequestBillingType.md @@ -0,0 +1,14 @@ +# PaymentSaveWithCreditCardRequestBillingType + +Payment billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PaymentSaveWithCreditCardRequestDto.md b/documentation/models/PaymentSaveWithCreditCardRequestDto.md new file mode 100644 index 0000000..fbe154a --- /dev/null +++ b/documentation/models/PaymentSaveWithCreditCardRequestDto.md @@ -0,0 +1,29 @@ +# PaymentSaveWithCreditCardRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------------------- | :------------------------------------------ | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| customer | String | ✅ | Unique customer identifier in Asaas | +| billingType | PaymentSaveWithCreditCardRequestBillingType | ✅ | Payment billing type | +| value | Double | ✅ | Payment amount | +| dueDate | String | ✅ | Payment due date | +| remoteIp | String | ✅ | IP from where the customer is making the purchase. Your server's IP must not be entered. | +| description | String | ❌ | Payment description (max. 500 characters) | +| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | +| externalReference | String | ❌ | Free search field | +| installmentCount | Long | ❌ | Number of installments (only in the case of installment payment) | +| totalValue | Double | ❌ | Enter the total amount of a charge that will be paid in installments (only in the case of an installment charge). If this field is sent, the installmentValue is not necessary, the calculation per installment will be automatic. | +| installmentValue | Double | ❌ | Value of each installment (only in the case of installment payment). Send this field if you want to define the value of each installment. | +| discount | PaymentDiscountDto | ❌ | Discount information | +| interest | PaymentInterestRequestDto | ❌ | Interest information for payment after due date | +| fine | PaymentFineRequestDto | ❌ | Fine information for payment after due date | +| postalService | Boolean | ❌ | Define whether the payment will be sent via post | +| split | List\ | ❌ | Split Settings | +| callback | PaymentCallbackRequestDto | ❌ | Automatic redirection information after the payment of the link payment | +| creditCard | CreditCardRequestDto | ❌ | Credit card information | +| creditCardHolderInfo | CreditCardHolderInfoRequestDto | ❌ | Credit card holder information | +| creditCardToken | String | ❌ | Credit card token for using the credit card tokenization functionality | +| authorizeOnly | Boolean | ❌ | Carry out only the Pre-Authorization of the payment | + + diff --git a/documentation/models/PaymentSimulateBankSlipResponseDto.md b/documentation/models/PaymentSimulateBankSlipResponseDto.md new file mode 100644 index 0000000..25763e8 --- /dev/null +++ b/documentation/models/PaymentSimulateBankSlipResponseDto.md @@ -0,0 +1,13 @@ +# PaymentSimulateBankSlipResponseDto + +Boleto fees + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :------------------------------------ | :------- | :---------------------- | +| netValue | Double | ❌ | Net value | +| feeValue | Double | ❌ | Fee value | +| installment | PaymentSimulateInstallmentResponseDto | ❌ | Installment information | + + diff --git a/documentation/models/PaymentSimulateCreditCardResponseDto.md b/documentation/models/PaymentSimulateCreditCardResponseDto.md new file mode 100644 index 0000000..38c0e2c --- /dev/null +++ b/documentation/models/PaymentSimulateCreditCardResponseDto.md @@ -0,0 +1,14 @@ +# PaymentSimulateCreditCardResponseDto + +Card fees + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :------------------------------------ | :------- | :---------------------- | +| netValue | Double | ❌ | Net value | +| feePercentage | Double | ❌ | Rate in percentage | +| operationFee | Double | ❌ | Operation fee | +| installment | PaymentSimulateInstallmentResponseDto | ❌ | Installment information | + + diff --git a/documentation/models/PaymentSimulateInstallmentResponseDto.md b/documentation/models/PaymentSimulateInstallmentResponseDto.md new file mode 100644 index 0000000..fd6a1bf --- /dev/null +++ b/documentation/models/PaymentSimulateInstallmentResponseDto.md @@ -0,0 +1,12 @@ +# PaymentSimulateInstallmentResponseDto + +Installment information + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :----- | :------- | :---------- | +| paymentNetValue | Double | ❌ | Net value | +| paymentValue | Double | ❌ | Total value | + + diff --git a/documentation/models/PaymentSimulatePixResponseDto.md b/documentation/models/PaymentSimulatePixResponseDto.md new file mode 100644 index 0000000..4d8b3af --- /dev/null +++ b/documentation/models/PaymentSimulatePixResponseDto.md @@ -0,0 +1,14 @@ +# PaymentSimulatePixResponseDto + +PIX fees + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :------------------------------------ | :------- | :---------------------- | +| netValue | Double | ❌ | Net value | +| feePercentage | Double | ❌ | Rate in percentage | +| feeValue | Double | ❌ | Fee value | +| installment | PaymentSimulateInstallmentResponseDto | ❌ | Installment information | + + diff --git a/documentation/models/PaymentSimulateRequestBillingType.md b/documentation/models/PaymentSimulateRequestBillingType.md new file mode 100644 index 0000000..52b98e7 --- /dev/null +++ b/documentation/models/PaymentSimulateRequestBillingType.md @@ -0,0 +1,19 @@ +# PaymentSimulateRequestBillingType + +Form of payment + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :----- | :------- | :---------------- | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| MUNDIPAGG_CIELO | String | ✅ | "MUNDIPAGG_CIELO" | +| TRANSFER | String | ✅ | "TRANSFER" | +| DEPOSIT | String | ✅ | "DEPOSIT" | +| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | +| PIX | String | ✅ | "PIX" | +| ASAAS_MONEY | String | ✅ | "ASAAS_MONEY" | + + diff --git a/documentation/models/PaymentSimulateRequestDto.md b/documentation/models/PaymentSimulateRequestDto.md new file mode 100644 index 0000000..dd58316 --- /dev/null +++ b/documentation/models/PaymentSimulateRequestDto.md @@ -0,0 +1,11 @@ +# PaymentSimulateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :--------------- | :---------------------------------------- | :------- | :---------------------------------- | +| value | Double | ✅ | Total installment or billing amount | +| billingTypes | List\ | ✅ | Form of payment | +| installmentCount | Long | ❌ | Number of installments | + + diff --git a/documentation/models/PaymentSimulateResponseDto.md b/documentation/models/PaymentSimulateResponseDto.md new file mode 100644 index 0000000..dfc1319 --- /dev/null +++ b/documentation/models/PaymentSimulateResponseDto.md @@ -0,0 +1,12 @@ +# PaymentSimulateResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----------------------------------- | :------- | :---------------------------------- | +| value | Double | ❌ | Total installment or billing amount | +| creditCard | PaymentSimulateCreditCardResponseDto | ❌ | Card fees | +| bankSlip | PaymentSimulateBankSlipResponseDto | ❌ | Boleto fees | +| pix | PaymentSimulatePixResponseDto | ❌ | PIX fees | + + diff --git a/documentation/models/PaymentSplitGetResponseDto.md b/documentation/models/PaymentSplitGetResponseDto.md new file mode 100644 index 0000000..1c95b88 --- /dev/null +++ b/documentation/models/PaymentSplitGetResponseDto.md @@ -0,0 +1,19 @@ +# PaymentSplitGetResponseDto + +Split Settings + +**Properties** + +| Name | Type | Required | Description | +| :----------------- | :---------------------------------------------------- | :------- | :------------------------------------------------------------------------ | +| id | String | ❌ | Unique split identifier in Asaas | +| walletId | String | ❌ | Asaas wallet identifier that will be transferred | +| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the charge is received | +| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | +| totalValue | Double | ❌ | Amount that will be split relative to the total amount that will be paid | +| cancellationReason | PaymentSplitGetResponsePaymentSplitCancellationReason | ❌ | Reason for canceling the split | +| status | PaymentSplitGetResponsePaymentSplitStatus | ❌ | Split status | +| externalReference | String | ❌ | Unique identifier of split in your system | +| description | String | ❌ | Split description | + + diff --git a/documentation/models/PaymentSplitGetResponsePaymentSplitCancellationReason.md b/documentation/models/PaymentSplitGetResponsePaymentSplitCancellationReason.md new file mode 100644 index 0000000..daa2af1 --- /dev/null +++ b/documentation/models/PaymentSplitGetResponsePaymentSplitCancellationReason.md @@ -0,0 +1,16 @@ +# PaymentSplitGetResponsePaymentSplitCancellationReason + +Reason for canceling the split + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :----- | :------- | :------------------------- | +| PAYMENT_DELETED | String | ✅ | "PAYMENT_DELETED" | +| PAYMENT_OVERDUE | String | ✅ | "PAYMENT_OVERDUE" | +| PAYMENT_RECEIVED_IN_CASH | String | ✅ | "PAYMENT_RECEIVED_IN_CASH" | +| PAYMENT_REFUNDED | String | ✅ | "PAYMENT_REFUNDED" | +| VALUE_DIVERGENCE_BLOCK | String | ✅ | "VALUE_DIVERGENCE_BLOCK" | +| WALLET_UNABLE_TO_RECEIVE | String | ✅ | "WALLET_UNABLE_TO_RECEIVE" | + + diff --git a/documentation/models/PaymentSplitGetResponsePaymentSplitStatus.md b/documentation/models/PaymentSplitGetResponsePaymentSplitStatus.md new file mode 100644 index 0000000..71c505d --- /dev/null +++ b/documentation/models/PaymentSplitGetResponsePaymentSplitStatus.md @@ -0,0 +1,16 @@ +# PaymentSplitGetResponsePaymentSplitStatus + +Split status + +**Properties** + +| Name | Type | Required | Description | +| :-------------------------- | :----- | :------- | :---------------------------- | +| PENDING | String | ✅ | "PENDING" | +| AWAITING_CREDIT | String | ✅ | "AWAITING_CREDIT" | +| CANCELLED | String | ✅ | "CANCELLED" | +| DONE | String | ✅ | "DONE" | +| REFUNDED | String | ✅ | "REFUNDED" | +| BLOCKED_BY_VALUE_DIVERGENCE | String | ✅ | "BLOCKED_BY_VALUE_DIVERGENCE" | + + diff --git a/documentation/models/PaymentSplitListPaidRequestPaymentSplitStatus.md b/documentation/models/PaymentSplitListPaidRequestPaymentSplitStatus.md new file mode 100644 index 0000000..a5ff989 --- /dev/null +++ b/documentation/models/PaymentSplitListPaidRequestPaymentSplitStatus.md @@ -0,0 +1,16 @@ +# PaymentSplitListPaidRequestPaymentSplitStatus + +Filter by status + +**Properties** + +| Name | Type | Required | Description | +| :-------------------------- | :----- | :------- | :---------------------------- | +| PENDING | String | ✅ | "PENDING" | +| AWAITING_CREDIT | String | ✅ | "AWAITING_CREDIT" | +| CANCELLED | String | ✅ | "CANCELLED" | +| DONE | String | ✅ | "DONE" | +| REFUNDED | String | ✅ | "REFUNDED" | +| BLOCKED_BY_VALUE_DIVERGENCE | String | ✅ | "BLOCKED_BY_VALUE_DIVERGENCE" | + + diff --git a/documentation/models/PaymentSplitListReceivedRequestPaymentSplitStatus.md b/documentation/models/PaymentSplitListReceivedRequestPaymentSplitStatus.md new file mode 100644 index 0000000..1df31b2 --- /dev/null +++ b/documentation/models/PaymentSplitListReceivedRequestPaymentSplitStatus.md @@ -0,0 +1,16 @@ +# PaymentSplitListReceivedRequestPaymentSplitStatus + +Filter by status + +**Properties** + +| Name | Type | Required | Description | +| :-------------------------- | :----- | :------- | :---------------------------- | +| PENDING | String | ✅ | "PENDING" | +| AWAITING_CREDIT | String | ✅ | "AWAITING_CREDIT" | +| CANCELLED | String | ✅ | "CANCELLED" | +| DONE | String | ✅ | "DONE" | +| REFUNDED | String | ✅ | "REFUNDED" | +| BLOCKED_BY_VALUE_DIVERGENCE | String | ✅ | "BLOCKED_BY_VALUE_DIVERGENCE" | + + diff --git a/documentation/models/PaymentSplitListResponseDto.md b/documentation/models/PaymentSplitListResponseDto.md new file mode 100644 index 0000000..5a44d4d --- /dev/null +++ b/documentation/models/PaymentSplitListResponseDto.md @@ -0,0 +1,14 @@ +# PaymentSplitListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :--------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PaymentSplitRequestDto.md b/documentation/models/PaymentSplitRequestDto.md new file mode 100644 index 0000000..887aa1d --- /dev/null +++ b/documentation/models/PaymentSplitRequestDto.md @@ -0,0 +1,16 @@ +# PaymentSplitRequestDto + +Split Settings + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----- | :------- | :------------------------------------------------------------------------------------------------------------ | +| walletId | String | ✅ | Asaas wallet identifier that will be transferred | +| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the payment is received | +| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | +| totalFixedValue | Double | ❌ | (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. | +| externalReference | String | ❌ | Split identifier in your system | +| description | String | ❌ | Split description | + + diff --git a/documentation/models/PaymentStatusResponseDto.md b/documentation/models/PaymentStatusResponseDto.md new file mode 100644 index 0000000..44c89ff --- /dev/null +++ b/documentation/models/PaymentStatusResponseDto.md @@ -0,0 +1,9 @@ +# PaymentStatusResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----- | :--------------------------------- | :------- | :------------- | +| status | PaymentStatusResponsePaymentStatus | ❌ | Payment status | + + diff --git a/documentation/models/PaymentStatusResponsePaymentStatus.md b/documentation/models/PaymentStatusResponsePaymentStatus.md new file mode 100644 index 0000000..bb0bc7e --- /dev/null +++ b/documentation/models/PaymentStatusResponsePaymentStatus.md @@ -0,0 +1,24 @@ +# PaymentStatusResponsePaymentStatus + +Payment status + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------- | :----- | :------- | :----------------------------- | +| PENDING | String | ✅ | "PENDING" | +| RECEIVED | String | ✅ | "RECEIVED" | +| CONFIRMED | String | ✅ | "CONFIRMED" | +| OVERDUE | String | ✅ | "OVERDUE" | +| REFUNDED | String | ✅ | "REFUNDED" | +| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | +| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | +| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | +| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | +| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | +| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | +| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | +| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | +| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | + + diff --git a/documentation/models/PaymentUpdateRequestBillingType.md b/documentation/models/PaymentUpdateRequestBillingType.md new file mode 100644 index 0000000..1572196 --- /dev/null +++ b/documentation/models/PaymentUpdateRequestBillingType.md @@ -0,0 +1,14 @@ +# PaymentUpdateRequestBillingType + +Payment billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PaymentUpdateRequestDto.md b/documentation/models/PaymentUpdateRequestDto.md new file mode 100644 index 0000000..a238fab --- /dev/null +++ b/documentation/models/PaymentUpdateRequestDto.md @@ -0,0 +1,20 @@ +# PaymentUpdateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------------------- | :------------------------------ | :------- | :---------------------------------------------------------------------- | +| billingType | PaymentUpdateRequestBillingType | ✅ | Payment billing type | +| value | Double | ✅ | Payment amount | +| dueDate | String | ✅ | Payment due date | +| description | String | ❌ | Payment description (max. 500 characters) | +| daysAfterDueDateToRegistrationCancellation | Long | ❌ | Days after registration cancellation deadline (only for bank slip) | +| externalReference | String | ❌ | Free search field | +| discount | PaymentDiscountDto | ❌ | Discount information | +| interest | PaymentInterestRequestDto | ❌ | Interest information for payment after due date | +| fine | PaymentFineRequestDto | ❌ | Fine information for payment after due date | +| postalService | Boolean | ❌ | Define whether the payment will be sent via post | +| split | List\ | ❌ | Split Settings | +| callback | PaymentCallbackRequestDto | ❌ | Automatic redirection information after the payment of the link payment | + + diff --git a/documentation/models/PaymentViewingInfoResponseDto.md b/documentation/models/PaymentViewingInfoResponseDto.md new file mode 100644 index 0000000..b2f5b10 --- /dev/null +++ b/documentation/models/PaymentViewingInfoResponseDto.md @@ -0,0 +1,10 @@ +# PaymentViewingInfoResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----- | :------- | :---------------------------- | +| invoiceViewedDate | String | ❌ | Invoice viewing date and time | +| boletoViewedDate | String | ❌ | Bill viewing date and time | + + diff --git a/documentation/models/PixAddressKeyGetResponseDto.md b/documentation/models/PixAddressKeyGetResponseDto.md new file mode 100644 index 0000000..f9c37ab --- /dev/null +++ b/documentation/models/PixAddressKeyGetResponseDto.md @@ -0,0 +1,16 @@ +# PixAddressKeyGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :------------------------------------------ | :------- | :---------------------------------------- | +| id | String | ❌ | Unique Pix key identifier in Asaas | +| key | String | ❌ | Key value | +| type | PixAddressKeyGetResponsePixAddressKeyType | ❌ | Pix key type | +| status | PixAddressKeyGetResponsePixAddressKeyStatus | ❌ | Key status | +| dateCreated | String | ❌ | Key creation date | +| canBeDeleted | Boolean | ❌ | Determines whether the key can be deleted | +| cannotBeDeletedReason | String | ❌ | Reason it cannot be removed | +| qrCode | PixAddressKeyQrCodeGetResponseDto | ❌ | Pix key QRCode | + + diff --git a/documentation/models/PixAddressKeyGetResponsePixAddressKeyStatus.md b/documentation/models/PixAddressKeyGetResponsePixAddressKeyStatus.md new file mode 100644 index 0000000..22dbb16 --- /dev/null +++ b/documentation/models/PixAddressKeyGetResponsePixAddressKeyStatus.md @@ -0,0 +1,16 @@ +# PixAddressKeyGetResponsePixAddressKeyStatus + +Key status + +**Properties** + +| Name | Type | Required | Description | +| :------------------------ | :----- | :------- | :-------------------------- | +| AWAITING_ACTIVATION | String | ✅ | "AWAITING_ACTIVATION" | +| ACTIVE | String | ✅ | "ACTIVE" | +| AWAITING_DELETION | String | ✅ | "AWAITING_DELETION" | +| AWAITING_ACCOUNT_DELETION | String | ✅ | "AWAITING_ACCOUNT_DELETION" | +| DELETED | String | ✅ | "DELETED" | +| ERROR | String | ✅ | "ERROR" | + + diff --git a/documentation/models/PixAddressKeyGetResponsePixAddressKeyType.md b/documentation/models/PixAddressKeyGetResponsePixAddressKeyType.md new file mode 100644 index 0000000..1633239 --- /dev/null +++ b/documentation/models/PixAddressKeyGetResponsePixAddressKeyType.md @@ -0,0 +1,11 @@ +# PixAddressKeyGetResponsePixAddressKeyType + +Pix key type + +**Properties** + +| Name | Type | Required | Description | +| :--- | :----- | :------- | :---------- | +| EVP | String | ✅ | "EVP" | + + diff --git a/documentation/models/PixAddressKeyListRequestPixAddressKeyStatus.md b/documentation/models/PixAddressKeyListRequestPixAddressKeyStatus.md new file mode 100644 index 0000000..8717098 --- /dev/null +++ b/documentation/models/PixAddressKeyListRequestPixAddressKeyStatus.md @@ -0,0 +1,16 @@ +# PixAddressKeyListRequestPixAddressKeyStatus + +Filter by current key status + +**Properties** + +| Name | Type | Required | Description | +| :------------------------ | :----- | :------- | :-------------------------- | +| AWAITING_ACTIVATION | String | ✅ | "AWAITING_ACTIVATION" | +| ACTIVE | String | ✅ | "ACTIVE" | +| AWAITING_DELETION | String | ✅ | "AWAITING_DELETION" | +| AWAITING_ACCOUNT_DELETION | String | ✅ | "AWAITING_ACCOUNT_DELETION" | +| DELETED | String | ✅ | "DELETED" | +| ERROR | String | ✅ | "ERROR" | + + diff --git a/documentation/models/PixAddressKeyListResponseDto.md b/documentation/models/PixAddressKeyListResponseDto.md new file mode 100644 index 0000000..16c3b13 --- /dev/null +++ b/documentation/models/PixAddressKeyListResponseDto.md @@ -0,0 +1,9 @@ +# PixAddressKeyListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--- | :---------------------------------- | :------- | :-------------- | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PixAddressKeyQrCodeGetResponseDto.md b/documentation/models/PixAddressKeyQrCodeGetResponseDto.md new file mode 100644 index 0000000..397e7ff --- /dev/null +++ b/documentation/models/PixAddressKeyQrCodeGetResponseDto.md @@ -0,0 +1,12 @@ +# PixAddressKeyQrCodeGetResponseDto + +Pix key QRCode + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------------------ | +| encodedImage | String | ❌ | QrCode image in base64 | +| payload | String | ❌ | Copy and Paste the QrCode | + + diff --git a/documentation/models/PixAddressKeySaveRequestDto.md b/documentation/models/PixAddressKeySaveRequestDto.md new file mode 100644 index 0000000..0e8d94a --- /dev/null +++ b/documentation/models/PixAddressKeySaveRequestDto.md @@ -0,0 +1,9 @@ +# PixAddressKeySaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :--- | :---------------------------------------- | :------- | :----------- | +| type | PixAddressKeySaveRequestPixAddressKeyType | ✅ | Pix key type | + + diff --git a/documentation/models/PixAddressKeySaveRequestPixAddressKeyType.md b/documentation/models/PixAddressKeySaveRequestPixAddressKeyType.md new file mode 100644 index 0000000..75230c8 --- /dev/null +++ b/documentation/models/PixAddressKeySaveRequestPixAddressKeyType.md @@ -0,0 +1,11 @@ +# PixAddressKeySaveRequestPixAddressKeyType + +Pix key type + +**Properties** + +| Name | Type | Required | Description | +| :--- | :----- | :------- | :---------- | +| EVP | String | ✅ | "EVP" | + + diff --git a/documentation/models/PixOriginalTransactionResponseDto.md b/documentation/models/PixOriginalTransactionResponseDto.md new file mode 100644 index 0000000..c565980 --- /dev/null +++ b/documentation/models/PixOriginalTransactionResponseDto.md @@ -0,0 +1,14 @@ +# PixOriginalTransactionResponseDto + +Original transaction information if a chargeback has occurred + +**Properties** + +| Name | Type | Required | Description | +| :----------------- | :----- | :------- | :----------------------------------------------------------- | +| id | String | ❌ | Unique transaction identifier | +| endToEndIdentifier | String | ❌ | Unique identifier of the Pix transaction at the Central Bank | +| value | Double | ❌ | Original transaction value | +| effectiveDate | String | ❌ | Transaction date | + + diff --git a/documentation/models/PixQrCodeDecodeReceiverDto.md b/documentation/models/PixQrCodeDecodeReceiverDto.md new file mode 100644 index 0000000..43ff36c --- /dev/null +++ b/documentation/models/PixQrCodeDecodeReceiverDto.md @@ -0,0 +1,17 @@ +# PixQrCodeDecodeReceiverDto + +Information about the receiver + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :------------------------------------ | :------- | :-------------------------------- | +| ispb | String | ❌ | Financial institution code | +| ispbName | String | ❌ | Name of the financial institution | +| name | String | ❌ | Receiver name | +| tradingName | String | ❌ | Receiver's trade name | +| cpfCnpj | String | ❌ | CPF or CNPJ of the receiver | +| personType | PixQrCodeDecodeReceiverPersonType | ❌ | Person type | +| accountType | PixQrCodeDecodeReceiverPixAccountType | ❌ | Receiver account type | + + diff --git a/documentation/models/PixQrCodeDecodeReceiverPersonType.md b/documentation/models/PixQrCodeDecodeReceiverPersonType.md new file mode 100644 index 0000000..95712af --- /dev/null +++ b/documentation/models/PixQrCodeDecodeReceiverPersonType.md @@ -0,0 +1,12 @@ +# PixQrCodeDecodeReceiverPersonType + +Person type + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| JURIDICA | String | ✅ | "JURIDICA" | +| FISICA | String | ✅ | "FISICA" | + + diff --git a/documentation/models/PixQrCodeDecodeReceiverPixAccountType.md b/documentation/models/PixQrCodeDecodeReceiverPixAccountType.md new file mode 100644 index 0000000..00c8f15 --- /dev/null +++ b/documentation/models/PixQrCodeDecodeReceiverPixAccountType.md @@ -0,0 +1,14 @@ +# PixQrCodeDecodeReceiverPixAccountType + +Receiver account type + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :----- | :------- | :-------------------- | +| CHECKING_ACCOUNT | String | ✅ | "CHECKING_ACCOUNT" | +| SALARY_ACCOUNT | String | ✅ | "SALARY_ACCOUNT" | +| INVESTIMENT_ACCOUNT | String | ✅ | "INVESTIMENT_ACCOUNT" | +| PAYMENT_ACCOUNT | String | ✅ | "PAYMENT_ACCOUNT" | + + diff --git a/documentation/models/PixQrCodeDecodeRequestDto.md b/documentation/models/PixQrCodeDecodeRequestDto.md new file mode 100644 index 0000000..8d779c8 --- /dev/null +++ b/documentation/models/PixQrCodeDecodeRequestDto.md @@ -0,0 +1,10 @@ +# PixQrCodeDecodeRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :-------------------------------- | +| payload | String | ✅ | QRCode payload | +| changeValue | Double | ❌ | Change amount (for QRCode Change) | + + diff --git a/documentation/models/PixQrCodeDecodeResponseDto.md b/documentation/models/PixQrCodeDecodeResponseDto.md new file mode 100644 index 0000000..9c81e5b --- /dev/null +++ b/documentation/models/PixQrCodeDecodeResponseDto.md @@ -0,0 +1,29 @@ +# PixQrCodeDecodeResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------------- | :----------------------------------------------------- | :------- | :--------------------------------------------------------- | +| payload | String | ❌ | Copy and Paste of the QRCode | +| type | PixQrCodeDecodeResponsePixQrCodeType | ❌ | QRCode Type | +| transactionOriginType | PixQrCodeDecodeResponsePixTransactionOriginType | ❌ | Transaction origin | +| pixKey | String | ❌ | Pix key used | +| conciliationIdentifier | String | ❌ | Unique Pix reconciliation identifier with Asaas | +| dueDate | String | ❌ | Due date | +| expirationDate | String | ❌ | Expiration date | +| finality | PixQrCodeDecodeResponsePixTransactionCashValueFinality | ❌ | Used to indicate whether it is a Withdrawal or Change | +| value | Double | ❌ | QRCode Value | +| changeValue | Double | ❌ | Change value | +| interest | Double | ❌ | Interest value | +| fine | Double | ❌ | Fine value | +| discount | Double | ❌ | Discount value | +| totalValue | Double | ❌ | Total amount with fine, interest and discount applied | +| canBePaidWithDifferentValue | Boolean | ❌ | Informs if the QRCode can be paid with another amount | +| canBeModifyChangeValue | Boolean | ❌ | Informs whether the change can be paid with another amount | +| receiver | PixQrCodeDecodeReceiverDto | ❌ | Information about the receiver | +| payer | PixTransactionQrCodePayerResponseDto | ❌ | Information about the payer | +| description | String | ❌ | Description provided during the creation of the QRCode | +| canBePaid | Boolean | ❌ | Informs if the QRCode can be paid | +| cannotBePaidReason | String | ❌ | Informs why QRCode cannot be paid | + + diff --git a/documentation/models/PixQrCodeDecodeResponsePixQrCodeType.md b/documentation/models/PixQrCodeDecodeResponsePixQrCodeType.md new file mode 100644 index 0000000..9063ae9 --- /dev/null +++ b/documentation/models/PixQrCodeDecodeResponsePixQrCodeType.md @@ -0,0 +1,14 @@ +# PixQrCodeDecodeResponsePixQrCodeType + +QRCode Type + +**Properties** + +| Name | Type | Required | Description | +| :----------------------------- | :----- | :------- | :------------------------------- | +| STATIC\_ | String | ✅ | "STATIC" | +| DYNAMIC | String | ✅ | "DYNAMIC" | +| DYNAMIC_WITH_ASAAS_ADDRESS_KEY | String | ✅ | "DYNAMIC_WITH_ASAAS_ADDRESS_KEY" | +| COMPOSITE | String | ✅ | "COMPOSITE" | + + diff --git a/documentation/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.md b/documentation/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.md new file mode 100644 index 0000000..cafc98e --- /dev/null +++ b/documentation/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.md @@ -0,0 +1,12 @@ +# PixQrCodeDecodeResponsePixTransactionCashValueFinality + +Used to indicate whether it is a Withdrawal or Change + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----- | :------- | :----------- | +| WITHDRAWAL | String | ✅ | "WITHDRAWAL" | +| CHANGE | String | ✅ | "CHANGE" | + + diff --git a/documentation/models/PixQrCodeDecodeResponsePixTransactionOriginType.md b/documentation/models/PixQrCodeDecodeResponsePixTransactionOriginType.md new file mode 100644 index 0000000..1e04249 --- /dev/null +++ b/documentation/models/PixQrCodeDecodeResponsePixTransactionOriginType.md @@ -0,0 +1,16 @@ +# PixQrCodeDecodeResponsePixTransactionOriginType + +Transaction origin + +**Properties** + +| Name | Type | Required | Description | +| :------------------------- | :----- | :------- | :--------------------------- | +| MANUAL | String | ✅ | "MANUAL" | +| ADDRESS_KEY | String | ✅ | "ADDRESS_KEY" | +| STATIC_QRCODE | String | ✅ | "STATIC_QRCODE" | +| DYNAMIC_QRCODE | String | ✅ | "DYNAMIC_QRCODE" | +| PAYMENT_INITIATION_SERVICE | String | ✅ | "PAYMENT_INITIATION_SERVICE" | +| AUTOMATIC_RECURRING | String | ✅ | "AUTOMATIC_RECURRING" | + + diff --git a/documentation/models/PixQrCodeDeleteResponseDto.md b/documentation/models/PixQrCodeDeleteResponseDto.md new file mode 100644 index 0000000..726bb71 --- /dev/null +++ b/documentation/models/PixQrCodeDeleteResponseDto.md @@ -0,0 +1,10 @@ +# PixQrCodeDeleteResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :--------------------------------------------- | +| id | String | ❌ | QR Code identifier | +| deleted | Boolean | ❌ | Indicates whether the QR Code has been removed | + + diff --git a/documentation/models/PixQrCodeSaveRequestDto.md b/documentation/models/PixQrCodeSaveRequestDto.md new file mode 100644 index 0000000..2ecc939 --- /dev/null +++ b/documentation/models/PixQrCodeSaveRequestDto.md @@ -0,0 +1,16 @@ +# PixQrCodeSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :--------------------- | :------ | :------- | :----------------------------------------------------------------------------------------------- | +| addressKey | String | ❌ | Key that will receive QrCode payments | +| description | String | ❌ | QrCode Description | +| value | Double | ❌ | Value of the QrCode, if not informed, the payer can choose the value | +| format | Format | ❌ | QrCode Format | +| expirationDate | String | ❌ | QrCode expiration date/time, after this date all payments will be refused. | +| expirationSeconds | Long | ❌ | Determines the expiration date in seconds. | +| allowsMultiplePayments | Boolean | ❌ | Defines whether the QrCode can be paid multiple times, if not entered the default value is true. | +| externalReference | String | ❌ | Free search field | + + diff --git a/documentation/models/PixQrCodeSaveResponseDto.md b/documentation/models/PixQrCodeSaveResponseDto.md new file mode 100644 index 0000000..5a535a8 --- /dev/null +++ b/documentation/models/PixQrCodeSaveResponseDto.md @@ -0,0 +1,14 @@ +# PixQrCodeSaveResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------------------- | :------ | :------- | :------------------------------------------------------------------------ | +| id | String | ❌ | qrCode image in base64 | +| encodedImage | String | ❌ | QrCode identifier | +| payload | String | ❌ | Copy and Paste the QrCode | +| allowsMultiplePayments | Boolean | ❌ | Indicates whether multiple payments are allowed | +| expirationDate | String | ❌ | QrCode expiration date/time, after this date all payments will be refused | +| externalReference | String | ❌ | Free search field | + + diff --git a/documentation/models/PixRecurringTransactionExternalAccountDto.md b/documentation/models/PixRecurringTransactionExternalAccountDto.md new file mode 100644 index 0000000..8b21498 --- /dev/null +++ b/documentation/models/PixRecurringTransactionExternalAccountDto.md @@ -0,0 +1,14 @@ +# PixRecurringTransactionExternalAccountDto + +Receiver information + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :----- | :------- | :----------------------- | +| name | String | ❌ | Receiver name | +| financialInstitutionName | String | ❌ | Payment institution name | +| cpfCnpj | String | ❌ | Receiver CPF or CNPJ | +| pixKey | String | ❌ | Receiver Pix key | + + diff --git a/documentation/models/PixRecurringTransactionGetItemResponseDto.md b/documentation/models/PixRecurringTransactionGetItemResponseDto.md new file mode 100644 index 0000000..6d164bb --- /dev/null +++ b/documentation/models/PixRecurringTransactionGetItemResponseDto.md @@ -0,0 +1,17 @@ +# PixRecurringTransactionGetItemResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :---------------------------------------------------------------------- | :------- | :------------------------------------------- | +| id | String | ❌ | Unique recurrence item identifier in Asaas | +| status | PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus | ❌ | Recurrence item status | +| scheduledDate | String | ❌ | Recurrence item scheduled date | +| canBeCancelled | Boolean | ❌ | Whether the recurrence item can be cancelled | +| recurrenceNumber | Long | ❌ | Recurrence number | +| quantity | Long | ❌ | Number of repetitions | +| value | Double | ❌ | Recurrence value | +| refusalReasonDescription | String | ❌ | Recurrence item refusal reason | +| externalAccount | PixRecurringTransactionExternalAccountDto | ❌ | Receiver information | + + diff --git a/documentation/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.md b/documentation/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.md new file mode 100644 index 0000000..c322ea7 --- /dev/null +++ b/documentation/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.md @@ -0,0 +1,14 @@ +# PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus + +Recurrence item status + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :----- | :------- | :---------- | +| PENDING | String | ✅ | "PENDING" | +| CANCELLED | String | ✅ | "CANCELLED" | +| REFUSED | String | ✅ | "REFUSED" | +| DONE | String | ✅ | "DONE" | + + diff --git a/documentation/models/PixRecurringTransactionGetResponseDto.md b/documentation/models/PixRecurringTransactionGetResponseDto.md new file mode 100644 index 0000000..863597c --- /dev/null +++ b/documentation/models/PixRecurringTransactionGetResponseDto.md @@ -0,0 +1,18 @@ +# PixRecurringTransactionGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :----------------------------------------------------------------- | :------- | :-------------------------------------- | +| id | String | ❌ | Unique recurrence identifier in Asaas | +| status | PixRecurringTransactionGetResponsePixRecurringTransactionStatus | ❌ | Recurrence status | +| origin | PixRecurringTransactionGetResponsePixRecurringTransactionOrigin | ❌ | Indicates the origin of the recurrence | +| value | Double | ❌ | Recurrence value | +| frequency | PixRecurringTransactionGetResponsePixRecurringTransactionFrequency | ❌ | Recurrence frequency | +| quantity | Long | ❌ | Number of repetitions | +| startDate | String | ❌ | Recurrence start date | +| finishDate | String | ❌ | Recurrence finish date | +| canBeCancelled | Boolean | ❌ | Whether the recurrence can be cancelled | +| externalAccount | PixRecurringTransactionExternalAccountDto | ❌ | Receiver information | + + diff --git a/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.md b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.md new file mode 100644 index 0000000..4b9d7b0 --- /dev/null +++ b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.md @@ -0,0 +1,12 @@ +# PixRecurringTransactionGetResponsePixRecurringTransactionFrequency + +Recurrence frequency + +**Properties** + +| Name | Type | Required | Description | +| :------ | :----- | :------- | :---------- | +| WEEKLY | String | ✅ | "WEEKLY" | +| MONTHLY | String | ✅ | "MONTHLY" | + + diff --git a/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.md b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.md new file mode 100644 index 0000000..af3347c --- /dev/null +++ b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.md @@ -0,0 +1,11 @@ +# PixRecurringTransactionGetResponsePixRecurringTransactionOrigin + +Indicates the origin of the recurrence + +**Properties** + +| Name | Type | Required | Description | +| :--- | :----- | :------- | :---------- | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.md b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.md new file mode 100644 index 0000000..e37791b --- /dev/null +++ b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.md @@ -0,0 +1,15 @@ +# PixRecurringTransactionGetResponsePixRecurringTransactionStatus + +Recurrence status + +**Properties** + +| Name | Type | Required | Description | +| :------------------------------------- | :----- | :------- | :--------------------------------------- | +| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | +| PENDING | String | ✅ | "PENDING" | +| SCHEDULED | String | ✅ | "SCHEDULED" | +| CANCELLED | String | ✅ | "CANCELLED" | +| DONE | String | ✅ | "DONE" | + + diff --git a/documentation/models/PixRecurringTransactionListResponseDto.md b/documentation/models/PixRecurringTransactionListResponseDto.md new file mode 100644 index 0000000..de3d250 --- /dev/null +++ b/documentation/models/PixRecurringTransactionListResponseDto.md @@ -0,0 +1,14 @@ +# PixRecurringTransactionListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :-------------------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PixTokenBucketGetAddressKeyResponseDto.md b/documentation/models/PixTokenBucketGetAddressKeyResponseDto.md new file mode 100644 index 0000000..b736629 --- /dev/null +++ b/documentation/models/PixTokenBucketGetAddressKeyResponseDto.md @@ -0,0 +1,10 @@ +# PixTokenBucketGetAddressKeyResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :--- | :------- | :--------------------- | +| capacity | Long | ❌ | Maximum token capacity | +| remaining | Long | ❌ | Available tokens | + + diff --git a/documentation/models/PixTransactionExternalAccountResponseDto.md b/documentation/models/PixTransactionExternalAccountResponseDto.md new file mode 100644 index 0000000..034b878 --- /dev/null +++ b/documentation/models/PixTransactionExternalAccountResponseDto.md @@ -0,0 +1,16 @@ +# PixTransactionExternalAccountResponseDto + +Information about the recipient + +**Properties** + +| Name | Type | Required | Description | +| :------------- | :----------------------------------------------------- | :------- | :----------------------------- | +| ispb | String | ❌ | Payment Institution Identifier | +| ispbName | String | ❌ | Name of Payment Institution | +| name | String | ❌ | Receiver name | +| cpfCnpj | String | ❌ | CPF or CNPJ of the recipient | +| addressKey | String | ❌ | Pix Key | +| addressKeyType | PixTransactionExternalAccountResponsePixAddressKeyType | ❌ | Pix key type | + + diff --git a/documentation/models/PixTransactionExternalAccountResponsePixAddressKeyType.md b/documentation/models/PixTransactionExternalAccountResponsePixAddressKeyType.md new file mode 100644 index 0000000..a8d81ea --- /dev/null +++ b/documentation/models/PixTransactionExternalAccountResponsePixAddressKeyType.md @@ -0,0 +1,15 @@ +# PixTransactionExternalAccountResponsePixAddressKeyType + +Pix key type + +**Properties** + +| Name | Type | Required | Description | +| :---- | :----- | :------- | :---------- | +| CPF | String | ✅ | "CPF" | +| CNPJ | String | ✅ | "CNPJ" | +| EMAIL | String | ✅ | "EMAIL" | +| PHONE | String | ✅ | "PHONE" | +| EVP | String | ✅ | "EVP" | + + diff --git a/documentation/models/PixTransactionGetResponseDto.md b/documentation/models/PixTransactionGetResponseDto.md new file mode 100644 index 0000000..ffe3a43 --- /dev/null +++ b/documentation/models/PixTransactionGetResponseDto.md @@ -0,0 +1,36 @@ +# PixTransactionGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------------------- | :------------------------------------------------------- | :------- | :------------------------------------------------------------------------- | +| id | String | ❌ | Unique identifier of the Pix transaction in Asaas | +| endToEndIdentifier | String | ❌ | Pix transaction identifier at the Central Bank | +| finality | PixTransactionGetResponsePixTransactionCashValueFinality | ❌ | Used to indicate whether it is a Withdrawal or Change | +| value | Double | ❌ | Transaction or Withdrawal Value | +| changeValue | Double | ❌ | Change value | +| refundedValue | Double | ❌ | Value reversed | +| effectiveDate | String | ❌ | Transaction date | +| scheduledDate | String | ❌ | Schedule date | +| status | PixTransactionGetResponsePixTransactionStatus | ❌ | Transaction status | +| type | PixTransactionGetResponsePixTransactionType | ❌ | Transaction type | +| originType | PixTransactionGetResponsePixTransactionOriginType | ❌ | Indicates the origin of the transaction | +| conciliationIdentifier | String | ❌ | QrCode identifier linked to the transaction | +| description | String | ❌ | Description about the transaction | +| transactionReceiptUrl | String | ❌ | Proof of transaction will be available after the transaction is confirmed. | +| refusalReason | String | ❌ | Reason why the transaction was declined | +| canBeCanceled | Boolean | ❌ | Indicates whether the transaction can be canceled | +| originalTransaction | PixOriginalTransactionResponseDto | ❌ | Original transaction information if a chargeback has occurred | +| externalAccount | PixTransactionExternalAccountResponseDto | ❌ | Information about the recipient | +| qrCode | PixTransactionQrCodeResponseDto | ❌ | Information about QrCode | +| payment | String | ❌ | Unique billing identifier | +| canBeRefunded | Boolean | ❌ | Indicates whether the transaction can be refunded | +| refundDisabledReason | String | ❌ | Reason why the chargeback was disabled | +| chargedFeeValue | Double | ❌ | Debit or credit fee for the transaction | +| dateCreated | String | ❌ | Transaction creation date | +| addressKey | String | ❌ | Pix key when the transaction is a credit | +| addressKeyType | PixTransactionGetResponsePixAddressKeyType | ❌ | Pix key type | +| transferId | String | ❌ | Transfer identifier | +| externalReference | String | ❌ | Free search field | + + diff --git a/documentation/models/PixTransactionGetResponsePixAddressKeyType.md b/documentation/models/PixTransactionGetResponsePixAddressKeyType.md new file mode 100644 index 0000000..5043e2c --- /dev/null +++ b/documentation/models/PixTransactionGetResponsePixAddressKeyType.md @@ -0,0 +1,15 @@ +# PixTransactionGetResponsePixAddressKeyType + +Pix key type + +**Properties** + +| Name | Type | Required | Description | +| :---- | :----- | :------- | :---------- | +| CPF | String | ✅ | "CPF" | +| CNPJ | String | ✅ | "CNPJ" | +| EMAIL | String | ✅ | "EMAIL" | +| PHONE | String | ✅ | "PHONE" | +| EVP | String | ✅ | "EVP" | + + diff --git a/documentation/models/PixTransactionGetResponsePixTransactionCashValueFinality.md b/documentation/models/PixTransactionGetResponsePixTransactionCashValueFinality.md new file mode 100644 index 0000000..74f8c98 --- /dev/null +++ b/documentation/models/PixTransactionGetResponsePixTransactionCashValueFinality.md @@ -0,0 +1,12 @@ +# PixTransactionGetResponsePixTransactionCashValueFinality + +Used to indicate whether it is a Withdrawal or Change + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----- | :------- | :----------- | +| WITHDRAWAL | String | ✅ | "WITHDRAWAL" | +| CHANGE | String | ✅ | "CHANGE" | + + diff --git a/documentation/models/PixTransactionGetResponsePixTransactionOriginType.md b/documentation/models/PixTransactionGetResponsePixTransactionOriginType.md new file mode 100644 index 0000000..a7c06dd --- /dev/null +++ b/documentation/models/PixTransactionGetResponsePixTransactionOriginType.md @@ -0,0 +1,16 @@ +# PixTransactionGetResponsePixTransactionOriginType + +Indicates the origin of the transaction + +**Properties** + +| Name | Type | Required | Description | +| :------------------------- | :----- | :------- | :--------------------------- | +| MANUAL | String | ✅ | "MANUAL" | +| ADDRESS_KEY | String | ✅ | "ADDRESS_KEY" | +| STATIC_QRCODE | String | ✅ | "STATIC_QRCODE" | +| DYNAMIC_QRCODE | String | ✅ | "DYNAMIC_QRCODE" | +| PAYMENT_INITIATION_SERVICE | String | ✅ | "PAYMENT_INITIATION_SERVICE" | +| AUTOMATIC_RECURRING | String | ✅ | "AUTOMATIC_RECURRING" | + + diff --git a/documentation/models/PixTransactionGetResponsePixTransactionStatus.md b/documentation/models/PixTransactionGetResponsePixTransactionStatus.md new file mode 100644 index 0000000..3b56f32 --- /dev/null +++ b/documentation/models/PixTransactionGetResponsePixTransactionStatus.md @@ -0,0 +1,21 @@ +# PixTransactionGetResponsePixTransactionStatus + +Transaction status + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------------------- | :----- | :------- | :----------------------------------------- | +| AWAITING_BALANCE_VALIDATION | String | ✅ | "AWAITING_BALANCE_VALIDATION" | +| AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE | String | ✅ | "AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE" | +| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | +| AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST | String | ✅ | "AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST" | +| AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST | String | ✅ | "AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST" | +| SCHEDULED | String | ✅ | "SCHEDULED" | +| AWAITING_REQUEST | String | ✅ | "AWAITING_REQUEST" | +| REQUESTED | String | ✅ | "REQUESTED" | +| DONE | String | ✅ | "DONE" | +| REFUSED | String | ✅ | "REFUSED" | +| CANCELLED | String | ✅ | "CANCELLED" | + + diff --git a/documentation/models/PixTransactionGetResponsePixTransactionType.md b/documentation/models/PixTransactionGetResponsePixTransactionType.md new file mode 100644 index 0000000..c7f92d9 --- /dev/null +++ b/documentation/models/PixTransactionGetResponsePixTransactionType.md @@ -0,0 +1,15 @@ +# PixTransactionGetResponsePixTransactionType + +Transaction type + +**Properties** + +| Name | Type | Required | Description | +| :------------------------ | :----- | :------- | :-------------------------- | +| DEBIT | String | ✅ | "DEBIT" | +| CREDIT | String | ✅ | "CREDIT" | +| CREDIT_REFUND | String | ✅ | "CREDIT_REFUND" | +| DEBIT_REFUND | String | ✅ | "DEBIT_REFUND" | +| DEBIT_REFUND_CANCELLATION | String | ✅ | "DEBIT_REFUND_CANCELLATION" | + + diff --git a/documentation/models/PixTransactionListRequestPixTransactionStatus.md b/documentation/models/PixTransactionListRequestPixTransactionStatus.md new file mode 100644 index 0000000..79465c7 --- /dev/null +++ b/documentation/models/PixTransactionListRequestPixTransactionStatus.md @@ -0,0 +1,21 @@ +# PixTransactionListRequestPixTransactionStatus + +Filter by transaction status + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------------------- | :----- | :------- | :----------------------------------------- | +| AWAITING_BALANCE_VALIDATION | String | ✅ | "AWAITING_BALANCE_VALIDATION" | +| AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE | String | ✅ | "AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE" | +| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | +| AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST | String | ✅ | "AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST" | +| AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST | String | ✅ | "AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST" | +| SCHEDULED | String | ✅ | "SCHEDULED" | +| AWAITING_REQUEST | String | ✅ | "AWAITING_REQUEST" | +| REQUESTED | String | ✅ | "REQUESTED" | +| DONE | String | ✅ | "DONE" | +| REFUSED | String | ✅ | "REFUSED" | +| CANCELLED | String | ✅ | "CANCELLED" | + + diff --git a/documentation/models/PixTransactionListRequestPixTransactionType.md b/documentation/models/PixTransactionListRequestPixTransactionType.md new file mode 100644 index 0000000..0cac4af --- /dev/null +++ b/documentation/models/PixTransactionListRequestPixTransactionType.md @@ -0,0 +1,15 @@ +# PixTransactionListRequestPixTransactionType + +Filter by transaction type + +**Properties** + +| Name | Type | Required | Description | +| :------------------------ | :----- | :------- | :-------------------------- | +| DEBIT | String | ✅ | "DEBIT" | +| CREDIT | String | ✅ | "CREDIT" | +| CREDIT_REFUND | String | ✅ | "CREDIT_REFUND" | +| DEBIT_REFUND | String | ✅ | "DEBIT_REFUND" | +| DEBIT_REFUND_CANCELLATION | String | ✅ | "DEBIT_REFUND_CANCELLATION" | + + diff --git a/documentation/models/PixTransactionListResponseDto.md b/documentation/models/PixTransactionListResponseDto.md new file mode 100644 index 0000000..3e780ee --- /dev/null +++ b/documentation/models/PixTransactionListResponseDto.md @@ -0,0 +1,14 @@ +# PixTransactionListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/PixTransactionQrCodePayerResponseDto.md b/documentation/models/PixTransactionQrCodePayerResponseDto.md new file mode 100644 index 0000000..ad71c02 --- /dev/null +++ b/documentation/models/PixTransactionQrCodePayerResponseDto.md @@ -0,0 +1,12 @@ +# PixTransactionQrCodePayerResponseDto + +Information about the payer + +**Properties** + +| Name | Type | Required | Description | +| :------ | :----- | :------- | :----------------------- | +| name | String | ❌ | Payer's name | +| cpfCnpj | String | ❌ | CPF or CNPJ of the payer | + + diff --git a/documentation/models/PixTransactionQrCodeResponseDto.md b/documentation/models/PixTransactionQrCodeResponseDto.md new file mode 100644 index 0000000..bd9c8bb --- /dev/null +++ b/documentation/models/PixTransactionQrCodeResponseDto.md @@ -0,0 +1,18 @@ +# PixTransactionQrCodeResponseDto + +Information about QrCode + +**Properties** + +| Name | Type | Required | Description | +| :--------------------- | :----------------------------------- | :------- | :---------------------------------------------- | +| payer | PixTransactionQrCodePayerResponseDto | ❌ | Information about the payer | +| conciliationIdentifier | String | ❌ | Unique Pix reconciliation identifier with Asaas | +| originalValue | Double | ❌ | Original transaction value | +| dueDate | String | ❌ | Due date | +| interest | Double | ❌ | Interest value | +| fine | Double | ❌ | Fine value | +| discount | Double | ❌ | Discount amount | +| expirationDate | String | ❌ | Expiration date | + + diff --git a/documentation/models/PixTransactionQrCodeSaveRequestDto.md b/documentation/models/PixTransactionQrCodeSaveRequestDto.md new file mode 100644 index 0000000..cbceed8 --- /dev/null +++ b/documentation/models/PixTransactionQrCodeSaveRequestDto.md @@ -0,0 +1,12 @@ +# PixTransactionQrCodeSaveRequestDto + +QRCode payload for payment + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :-------------------------------- | +| payload | String | ✅ | QRCode payload | +| changeValue | Double | ❌ | Change amount (for QRCode Change) | + + diff --git a/documentation/models/PixTransactionSaveRequestDto.md b/documentation/models/PixTransactionSaveRequestDto.md new file mode 100644 index 0000000..adbf28b --- /dev/null +++ b/documentation/models/PixTransactionSaveRequestDto.md @@ -0,0 +1,12 @@ +# PixTransactionSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :--------------------------------- | :------- | :------------------------- | +| qrCode | PixTransactionQrCodeSaveRequestDto | ✅ | QRCode payload for payment | +| value | Double | ✅ | Value to be paid | +| description | String | ❌ | Payment Description | +| scheduleDate | String | ❌ | Used to schedule payment | + + diff --git a/documentation/models/RecurringPixTransactionListItemsResponseDto.md b/documentation/models/RecurringPixTransactionListItemsResponseDto.md new file mode 100644 index 0000000..c93ab07 --- /dev/null +++ b/documentation/models/RecurringPixTransactionListItemsResponseDto.md @@ -0,0 +1,9 @@ +# RecurringPixTransactionListItemsResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--- | :------------------------------------------------ | :------- | :-------------- | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.md b/documentation/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.md new file mode 100644 index 0000000..91a57ba --- /dev/null +++ b/documentation/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.md @@ -0,0 +1,15 @@ +# RecurringPixTransactionListRequestPixRecurringTransactionStatus + +Filter by recurrence status + +**Properties** + +| Name | Type | Required | Description | +| :------------------------------------- | :----- | :------- | :--------------------------------------- | +| AWAITING_CRITICAL_ACTION_AUTHORIZATION | String | ✅ | "AWAITING_CRITICAL_ACTION_AUTHORIZATION" | +| PENDING | String | ✅ | "PENDING" | +| SCHEDULED | String | ✅ | "SCHEDULED" | +| CANCELLED | String | ✅ | "CANCELLED" | +| DONE | String | ✅ | "DONE" | + + diff --git a/documentation/models/SubscriptionConfigureInvoiceRequestDto.md b/documentation/models/SubscriptionConfigureInvoiceRequestDto.md new file mode 100644 index 0000000..f763933 --- /dev/null +++ b/documentation/models/SubscriptionConfigureInvoiceRequestDto.md @@ -0,0 +1,18 @@ +# SubscriptionConfigureInvoiceRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :-------------------------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------- | +| municipalServiceId | String | ❌ | Unique municipal service identifier | +| municipalServiceCode | String | ❌ | Municipal Service Code | +| municipalServiceName | String | ❌ | Name of municipal service | +| updatePayment | Boolean | ❌ | Update the Payment amount with the invoice taxes already deducted. | +| deductions | Double | ❌ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | +| effectiveDatePeriod | SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod | ❌ | When the invoice will be issued | +| receivedOnly | Boolean | ❌ | Issue only for paid charges | +| daysBeforeDueDate | Long | ❌ | Number of days before billing due date | +| observations | String | ❌ | Additional notes on the invoice | +| taxes | InvoiceTaxesDto | ❌ | Invoice taxes | + + diff --git a/documentation/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md b/documentation/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md new file mode 100644 index 0000000..16f5cf1 --- /dev/null +++ b/documentation/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md @@ -0,0 +1,15 @@ +# SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod + +When the invoice will be issued + +**Properties** + +| Name | Type | Required | Description | +| :---------------------- | :----- | :------- | :------------------------ | +| ON_PAYMENT_CONFIRMATION | String | ✅ | "ON_PAYMENT_CONFIRMATION" | +| ON_PAYMENT_DUE_DATE | String | ✅ | "ON_PAYMENT_DUE_DATE" | +| BEFORE_PAYMENT_DUE_DATE | String | ✅ | "BEFORE_PAYMENT_DUE_DATE" | +| ON_DUE_DATE_MONTH | String | ✅ | "ON_DUE_DATE_MONTH" | +| ON_NEXT_MONTH | String | ✅ | "ON_NEXT_MONTH" | + + diff --git a/documentation/models/SubscriptionDeleteInvoiceConfigResponseDto.md b/documentation/models/SubscriptionDeleteInvoiceConfigResponseDto.md new file mode 100644 index 0000000..169e9c9 --- /dev/null +++ b/documentation/models/SubscriptionDeleteInvoiceConfigResponseDto.md @@ -0,0 +1,10 @@ +# SubscriptionDeleteInvoiceConfigResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :------------------------------------------ | +| deleted | Boolean | ❌ | Informs if configurations have been removed | +| id | String | ❌ | Unique subscription identifier in Asaas | + + diff --git a/documentation/models/SubscriptionDeleteResponseDto.md b/documentation/models/SubscriptionDeleteResponseDto.md new file mode 100644 index 0000000..a913b30 --- /dev/null +++ b/documentation/models/SubscriptionDeleteResponseDto.md @@ -0,0 +1,10 @@ +# SubscriptionDeleteResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :------------------------------------------- | +| deleted | Boolean | ❌ | Informs if the subscription has been removed | +| id | String | ❌ | Unique subscription identifier in Asaas | + + diff --git a/documentation/models/SubscriptionGetInvoicesRequestInvoiceStatus.md b/documentation/models/SubscriptionGetInvoicesRequestInvoiceStatus.md new file mode 100644 index 0000000..6153194 --- /dev/null +++ b/documentation/models/SubscriptionGetInvoicesRequestInvoiceStatus.md @@ -0,0 +1,21 @@ +# SubscriptionGetInvoicesRequestInvoiceStatus + +Filter by invoice status + +**Properties** + +| Name | Type | Required | Description | +| :---------------------- | :----- | :------- | :------------------------ | +| SCHEDULED | String | ✅ | "SCHEDULED" | +| WAITING_OVERDUE_PAYMENT | String | ✅ | "WAITING_OVERDUE_PAYMENT" | +| PENDING | String | ✅ | "PENDING" | +| SYNCHRONIZED\_ | String | ✅ | "SYNCHRONIZED" | +| AUTHORIZED | String | ✅ | "AUTHORIZED" | +| PROCESSING_CANCELLATION | String | ✅ | "PROCESSING_CANCELLATION" | +| CANCELLED | String | ✅ | "CANCELLED" | +| CANCELLATION_DENIED | String | ✅ | "CANCELLATION_DENIED" | +| ERROR | String | ✅ | "ERROR" | +| NONE | String | ✅ | "NONE" | +| CANCELED | String | ✅ | "CANCELED" | + + diff --git a/documentation/models/SubscriptionGetResponseBillingType.md b/documentation/models/SubscriptionGetResponseBillingType.md new file mode 100644 index 0000000..3f419e3 --- /dev/null +++ b/documentation/models/SubscriptionGetResponseBillingType.md @@ -0,0 +1,17 @@ +# SubscriptionGetResponseBillingType + +Billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | +| TRANSFER | String | ✅ | "TRANSFER" | +| DEPOSIT | String | ✅ | "DEPOSIT" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/SubscriptionGetResponseCycle.md b/documentation/models/SubscriptionGetResponseCycle.md new file mode 100644 index 0000000..527a013 --- /dev/null +++ b/documentation/models/SubscriptionGetResponseCycle.md @@ -0,0 +1,17 @@ +# SubscriptionGetResponseCycle + +Billing frequency + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| WEEKLY | String | ✅ | "WEEKLY" | +| BIWEEKLY | String | ✅ | "BIWEEKLY" | +| MONTHLY | String | ✅ | "MONTHLY" | +| BIMONTHLY | String | ✅ | "BIMONTHLY" | +| QUARTERLY | String | ✅ | "QUARTERLY" | +| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | +| YEARLY | String | ✅ | "YEARLY" | + + diff --git a/documentation/models/SubscriptionGetResponseDto.md b/documentation/models/SubscriptionGetResponseDto.md new file mode 100644 index 0000000..9e214e2 --- /dev/null +++ b/documentation/models/SubscriptionGetResponseDto.md @@ -0,0 +1,28 @@ +# SubscriptionGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :---------------------------------------- | :------- | :----------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique subscription identifier in Asaas | +| dateCreated | String | ❌ | Subscription creation date | +| customer | String | ❌ | Unique customer identifier | +| paymentLink | String | ❌ | Unique identifier of the payments link to which the subscription belongs | +| billingType | SubscriptionGetResponseBillingType | ❌ | Billing type | +| cycle | SubscriptionGetResponseCycle | ❌ | Billing frequency | +| value | Double | ❌ | Subscription value | +| nextDueDate | String | ❌ | Due date of the next payment to be generated | +| endDate | String | ❌ | Deadline for payments to be due | +| description | String | ❌ | Subscription description | +| status | SubscriptionGetResponseSubscriptionStatus | ❌ | Subscription status | +| discount | PaymentDiscountDto | ❌ | Discount information | +| fine | PaymentFineResponseDto | ❌ | Fine information for payment after due date | +| interest | PaymentInterestResponseDto | ❌ | Interest information for payment after due date | +| deleted | Boolean | ❌ | Informs if the subscription has been removed | +| maxPayments | Long | ❌ | Maximum number of payments to be generated for this subscription | +| externalReference | String | ❌ | Subscription identifier on your system | +| checkoutSession | String | ❌ | Unique checkout identifier | +| split | List\ | ❌ | Split information | + + diff --git a/documentation/models/SubscriptionGetResponseSubscriptionStatus.md b/documentation/models/SubscriptionGetResponseSubscriptionStatus.md new file mode 100644 index 0000000..9298450 --- /dev/null +++ b/documentation/models/SubscriptionGetResponseSubscriptionStatus.md @@ -0,0 +1,13 @@ +# SubscriptionGetResponseSubscriptionStatus + +Subscription status + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| ACTIVE | String | ✅ | "ACTIVE" | +| EXPIRED | String | ✅ | "EXPIRED" | +| INACTIVE | String | ✅ | "INACTIVE" | + + diff --git a/documentation/models/SubscriptionInvoiceConfigGetResponseDto.md b/documentation/models/SubscriptionInvoiceConfigGetResponseDto.md new file mode 100644 index 0000000..45a0451 --- /dev/null +++ b/documentation/models/SubscriptionInvoiceConfigGetResponseDto.md @@ -0,0 +1,17 @@ +# SubscriptionInvoiceConfigGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :-------------------- | :------- | :----------------------------------------------------------------------------------------------------------------- | +| municipalServiceId | String | ❌ | Unique municipal service identifier | +| municipalServiceCode | String | ❌ | Municipal Service Code | +| municipalServiceName | String | ❌ | Name of municipal service | +| deductions | Double | ❌ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | +| invoiceCreationPeriod | InvoiceCreationPeriod | ❌ | When the invoice will be issued | +| daysBeforeDueDate | Long | ❌ | Number of days before billing due date | +| receivedOnly | Boolean | ❌ | Issue only for paid charges | +| observations | String | ❌ | Additional notes on the invoice | +| taxes | InvoiceTaxesDto | ❌ | Invoice taxes | + + diff --git a/documentation/models/SubscriptionInvoiceConfigUpdateRequestDto.md b/documentation/models/SubscriptionInvoiceConfigUpdateRequestDto.md new file mode 100644 index 0000000..844f1ab --- /dev/null +++ b/documentation/models/SubscriptionInvoiceConfigUpdateRequestDto.md @@ -0,0 +1,14 @@ +# SubscriptionInvoiceConfigUpdateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------ | :----------------------------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------- | +| deductions | Double | ❌ | Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. | +| effectiveDatePeriod | SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod | ❌ | When the invoice will be issued | +| receivedOnly | Boolean | ❌ | Issue only for paid charges | +| daysBeforeDueDate | Long | ❌ | Number of days before billing due date | +| observations | String | ❌ | Additional notes on the invoice | +| taxes | InvoiceTaxesDto | ❌ | Invoice taxes | + + diff --git a/documentation/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md b/documentation/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md new file mode 100644 index 0000000..6c5c3eb --- /dev/null +++ b/documentation/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md @@ -0,0 +1,15 @@ +# SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod + +When the invoice will be issued + +**Properties** + +| Name | Type | Required | Description | +| :---------------------- | :----- | :------- | :------------------------ | +| ON_PAYMENT_CONFIRMATION | String | ✅ | "ON_PAYMENT_CONFIRMATION" | +| ON_PAYMENT_DUE_DATE | String | ✅ | "ON_PAYMENT_DUE_DATE" | +| BEFORE_PAYMENT_DUE_DATE | String | ✅ | "BEFORE_PAYMENT_DUE_DATE" | +| ON_DUE_DATE_MONTH | String | ✅ | "ON_DUE_DATE_MONTH" | +| ON_NEXT_MONTH | String | ✅ | "ON_NEXT_MONTH" | + + diff --git a/documentation/models/SubscriptionListPaymentsRequestPaymentStatus.md b/documentation/models/SubscriptionListPaymentsRequestPaymentStatus.md new file mode 100644 index 0000000..304d04c --- /dev/null +++ b/documentation/models/SubscriptionListPaymentsRequestPaymentStatus.md @@ -0,0 +1,24 @@ +# SubscriptionListPaymentsRequestPaymentStatus + +Filter by payment status + +**Properties** + +| Name | Type | Required | Description | +| :--------------------------- | :----- | :------- | :----------------------------- | +| PENDING | String | ✅ | "PENDING" | +| RECEIVED | String | ✅ | "RECEIVED" | +| CONFIRMED | String | ✅ | "CONFIRMED" | +| OVERDUE | String | ✅ | "OVERDUE" | +| REFUNDED | String | ✅ | "REFUNDED" | +| RECEIVED_IN_CASH | String | ✅ | "RECEIVED_IN_CASH" | +| REFUND_REQUESTED | String | ✅ | "REFUND_REQUESTED" | +| REFUND_IN_PROGRESS | String | ✅ | "REFUND_IN_PROGRESS" | +| CHARGEBACK_REQUESTED | String | ✅ | "CHARGEBACK_REQUESTED" | +| CHARGEBACK_DISPUTE | String | ✅ | "CHARGEBACK_DISPUTE" | +| AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "AWAITING_CHARGEBACK_REVERSAL" | +| DUNNING_REQUESTED | String | ✅ | "DUNNING_REQUESTED" | +| DUNNING_RECEIVED | String | ✅ | "DUNNING_RECEIVED" | +| AWAITING_RISK_ANALYSIS | String | ✅ | "AWAITING_RISK_ANALYSIS" | + + diff --git a/documentation/models/SubscriptionListRequestBillingType.md b/documentation/models/SubscriptionListRequestBillingType.md new file mode 100644 index 0000000..b0accee --- /dev/null +++ b/documentation/models/SubscriptionListRequestBillingType.md @@ -0,0 +1,17 @@ +# SubscriptionListRequestBillingType + +Filter by billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | +| TRANSFER | String | ✅ | "TRANSFER" | +| DEPOSIT | String | ✅ | "DEPOSIT" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/SubscriptionListRequestSubscriptionStatus.md b/documentation/models/SubscriptionListRequestSubscriptionStatus.md new file mode 100644 index 0000000..ff0c2ae --- /dev/null +++ b/documentation/models/SubscriptionListRequestSubscriptionStatus.md @@ -0,0 +1,13 @@ +# SubscriptionListRequestSubscriptionStatus + +Filter by status + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| ACTIVE | String | ✅ | "ACTIVE" | +| EXPIRED | String | ✅ | "EXPIRED" | +| INACTIVE | String | ✅ | "INACTIVE" | + + diff --git a/documentation/models/SubscriptionListResponseDto.md b/documentation/models/SubscriptionListResponseDto.md new file mode 100644 index 0000000..055cbac --- /dev/null +++ b/documentation/models/SubscriptionListResponseDto.md @@ -0,0 +1,14 @@ +# SubscriptionListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :--------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/SubscriptionSaveRequestBillingType.md b/documentation/models/SubscriptionSaveRequestBillingType.md new file mode 100644 index 0000000..f233c88 --- /dev/null +++ b/documentation/models/SubscriptionSaveRequestBillingType.md @@ -0,0 +1,14 @@ +# SubscriptionSaveRequestBillingType + +Billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/SubscriptionSaveRequestCycle.md b/documentation/models/SubscriptionSaveRequestCycle.md new file mode 100644 index 0000000..90a004e --- /dev/null +++ b/documentation/models/SubscriptionSaveRequestCycle.md @@ -0,0 +1,17 @@ +# SubscriptionSaveRequestCycle + +Billing frequency + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| WEEKLY | String | ✅ | "WEEKLY" | +| BIWEEKLY | String | ✅ | "BIWEEKLY" | +| MONTHLY | String | ✅ | "MONTHLY" | +| BIMONTHLY | String | ✅ | "BIMONTHLY" | +| QUARTERLY | String | ✅ | "QUARTERLY" | +| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | +| YEARLY | String | ✅ | "YEARLY" | + + diff --git a/documentation/models/SubscriptionSaveRequestDto.md b/documentation/models/SubscriptionSaveRequestDto.md new file mode 100644 index 0000000..7e6c7ad --- /dev/null +++ b/documentation/models/SubscriptionSaveRequestDto.md @@ -0,0 +1,22 @@ +# SubscriptionSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :---------------------------------- | :------- | :---------------------------------------------------------------------- | +| customer | String | ✅ | Unique customer identifier in Asaas | +| billingType | SubscriptionSaveRequestBillingType | ✅ | Billing type | +| value | Double | ✅ | Subscription value | +| nextDueDate | String | ✅ | First payment due | +| cycle | SubscriptionSaveRequestCycle | ✅ | Billing frequency | +| discount | PaymentDiscountDto | ❌ | Discount information | +| interest | PaymentInterestRequestDto | ❌ | Interest information for payment after due date | +| fine | PaymentFineRequestDto | ❌ | Fine information for payment after due date | +| description | String | ❌ | Subscription description (max. 500 characters) | +| endDate | String | ❌ | Deadline for payments to be due | +| maxPayments | Long | ❌ | Maximum number of payments to be generated for this subscription | +| externalReference | String | ❌ | Subscription identifier on your system | +| split | List\ | ❌ | Split information | +| callback | PaymentCallbackRequestDto | ❌ | Automatic redirection information after the payment of the link payment | + + diff --git a/documentation/models/SubscriptionSaveWithCreditCardRequestBillingType.md b/documentation/models/SubscriptionSaveWithCreditCardRequestBillingType.md new file mode 100644 index 0000000..adf0d8f --- /dev/null +++ b/documentation/models/SubscriptionSaveWithCreditCardRequestBillingType.md @@ -0,0 +1,14 @@ +# SubscriptionSaveWithCreditCardRequestBillingType + +Billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/SubscriptionSaveWithCreditCardRequestCycle.md b/documentation/models/SubscriptionSaveWithCreditCardRequestCycle.md new file mode 100644 index 0000000..3e6848d --- /dev/null +++ b/documentation/models/SubscriptionSaveWithCreditCardRequestCycle.md @@ -0,0 +1,17 @@ +# SubscriptionSaveWithCreditCardRequestCycle + +Billing frequency + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| WEEKLY | String | ✅ | "WEEKLY" | +| BIWEEKLY | String | ✅ | "BIWEEKLY" | +| MONTHLY | String | ✅ | "MONTHLY" | +| BIMONTHLY | String | ✅ | "BIMONTHLY" | +| QUARTERLY | String | ✅ | "QUARTERLY" | +| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | +| YEARLY | String | ✅ | "YEARLY" | + + diff --git a/documentation/models/SubscriptionSaveWithCreditCardRequestDto.md b/documentation/models/SubscriptionSaveWithCreditCardRequestDto.md new file mode 100644 index 0000000..6bc8d6a --- /dev/null +++ b/documentation/models/SubscriptionSaveWithCreditCardRequestDto.md @@ -0,0 +1,26 @@ +# SubscriptionSaveWithCreditCardRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :----------------------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------- | +| customer | String | ✅ | Unique customer identifier in Asaas | +| billingType | SubscriptionSaveWithCreditCardRequestBillingType | ✅ | Billing type | +| value | Double | ✅ | Subscription value | +| nextDueDate | String | ✅ | First payment due | +| cycle | SubscriptionSaveWithCreditCardRequestCycle | ✅ | Billing frequency | +| creditCard | CreditCardRequestDto | ✅ | Credit card information | +| creditCardHolderInfo | CreditCardHolderInfoRequestDto | ✅ | Credit card holder information | +| remoteIp | String | ✅ | IP from where the customer is making the purchase. Your server's IP must not be entered. | +| discount | PaymentDiscountDto | ❌ | Discount information | +| interest | PaymentInterestRequestDto | ❌ | Interest information for payment after due date | +| fine | PaymentFineRequestDto | ❌ | Fine information for payment after due date | +| description | String | ❌ | Subscription description (max. 500 characters) | +| endDate | String | ❌ | Deadline for payments to be due | +| maxPayments | Long | ❌ | Maximum number of payments to be generated for this subscription | +| externalReference | String | ❌ | Subscription identifier on your system | +| split | List\ | ❌ | Split information | +| callback | PaymentCallbackRequestDto | ❌ | Automatic redirection information after the payment of the link payment | +| creditCardToken | String | ❌ | Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. | + + diff --git a/documentation/models/SubscriptionSaveWithCreditCardResponseBillingType.md b/documentation/models/SubscriptionSaveWithCreditCardResponseBillingType.md new file mode 100644 index 0000000..e6f1cce --- /dev/null +++ b/documentation/models/SubscriptionSaveWithCreditCardResponseBillingType.md @@ -0,0 +1,17 @@ +# SubscriptionSaveWithCreditCardResponseBillingType + +Billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| DEBIT_CARD | String | ✅ | "DEBIT_CARD" | +| TRANSFER | String | ✅ | "TRANSFER" | +| DEPOSIT | String | ✅ | "DEPOSIT" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/SubscriptionSaveWithCreditCardResponseCycle.md b/documentation/models/SubscriptionSaveWithCreditCardResponseCycle.md new file mode 100644 index 0000000..41d024a --- /dev/null +++ b/documentation/models/SubscriptionSaveWithCreditCardResponseCycle.md @@ -0,0 +1,17 @@ +# SubscriptionSaveWithCreditCardResponseCycle + +Billing frequency + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| WEEKLY | String | ✅ | "WEEKLY" | +| BIWEEKLY | String | ✅ | "BIWEEKLY" | +| MONTHLY | String | ✅ | "MONTHLY" | +| BIMONTHLY | String | ✅ | "BIMONTHLY" | +| QUARTERLY | String | ✅ | "QUARTERLY" | +| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | +| YEARLY | String | ✅ | "YEARLY" | + + diff --git a/documentation/models/SubscriptionSaveWithCreditCardResponseDto.md b/documentation/models/SubscriptionSaveWithCreditCardResponseDto.md new file mode 100644 index 0000000..aec023c --- /dev/null +++ b/documentation/models/SubscriptionSaveWithCreditCardResponseDto.md @@ -0,0 +1,29 @@ +# SubscriptionSaveWithCreditCardResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :------------------------------------------------------- | :------- | :----------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique subscription identifier in Asaas | +| dateCreated | String | ❌ | Subscription creation date | +| customer | String | ❌ | Unique customer identifier | +| paymentLink | String | ❌ | Unique identifier of the payments link to which the subscription belongs | +| billingType | SubscriptionSaveWithCreditCardResponseBillingType | ❌ | Billing type | +| cycle | SubscriptionSaveWithCreditCardResponseCycle | ❌ | Billing frequency | +| value | Double | ❌ | Subscription value | +| nextDueDate | String | ❌ | Due date of the next payment to be generated | +| endDate | String | ❌ | Deadline for payments to be due | +| description | String | ❌ | Subscription description | +| status | SubscriptionSaveWithCreditCardResponseSubscriptionStatus | ❌ | Subscription status | +| discount | PaymentDiscountDto | ❌ | Discount information | +| fine | PaymentFineResponseDto | ❌ | Fine information for payment after due date | +| interest | PaymentInterestResponseDto | ❌ | Interest information for payment after due date | +| deleted | Boolean | ❌ | Informs if the subscription has been removed | +| maxPayments | Long | ❌ | Maximum number of payments to be generated for this subscription | +| externalReference | String | ❌ | Subscription identifier on your system | +| checkoutSession | String | ❌ | Unique checkout identifier | +| split | List\ | ❌ | Split information | +| creditCard | PaymentSaveWithCreditCardCreditCardDto | ❌ | Credit card information | + + diff --git a/documentation/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.md b/documentation/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.md new file mode 100644 index 0000000..aeb5a1b --- /dev/null +++ b/documentation/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.md @@ -0,0 +1,13 @@ +# SubscriptionSaveWithCreditCardResponseSubscriptionStatus + +Subscription status + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| ACTIVE | String | ✅ | "ACTIVE" | +| EXPIRED | String | ✅ | "EXPIRED" | +| INACTIVE | String | ✅ | "INACTIVE" | + + diff --git a/documentation/models/SubscriptionSplitRequestDto.md b/documentation/models/SubscriptionSplitRequestDto.md new file mode 100644 index 0000000..ada45d6 --- /dev/null +++ b/documentation/models/SubscriptionSplitRequestDto.md @@ -0,0 +1,15 @@ +# SubscriptionSplitRequestDto + +Split information + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----- | :------- | :------------------------------------------------------------------------- | +| walletId | String | ✅ | Asaas wallet identifier that will be transferred | +| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the payment is received | +| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | +| externalReference | String | ❌ | Split identifier in your system | +| description | String | ❌ | Split description | + + diff --git a/documentation/models/SubscriptionSplitResponseDto.md b/documentation/models/SubscriptionSplitResponseDto.md new file mode 100644 index 0000000..9fb4871 --- /dev/null +++ b/documentation/models/SubscriptionSplitResponseDto.md @@ -0,0 +1,17 @@ +# SubscriptionSplitResponseDto + +Split information + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :------------------------------------------------------- | :------- | :------------------------------------------------------------------------- | +| walletId | String | ❌ | Asaas wallet identifier that will be transferred | +| fixedValue | Double | ❌ | Fixed amount to be transferred to the account when the payment is received | +| percentualValue | Double | ❌ | Percentage of the net value of the charge to be transferred when received | +| externalReference | String | ❌ | Split identifier in your system | +| description | String | ❌ | Split description | +| status | SubscriptionSplitResponseSubscriptionSplitStatus | ❌ | Subscription split status | +| disabledReason | SubscriptionSplitResponseSubscriptionSplitDisabledReason | ❌ | Reason why subscription split was disabled | + + diff --git a/documentation/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.md b/documentation/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.md new file mode 100644 index 0000000..c3e0599 --- /dev/null +++ b/documentation/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.md @@ -0,0 +1,12 @@ +# SubscriptionSplitResponseSubscriptionSplitDisabledReason + +Reason why subscription split was disabled + +**Properties** + +| Name | Type | Required | Description | +| :----------------------- | :----- | :------- | :------------------------- | +| WALLET_UNABLE_TO_RECEIVE | String | ✅ | "WALLET_UNABLE_TO_RECEIVE" | +| VALUE_DIVERGENCE | String | ✅ | "VALUE_DIVERGENCE" | + + diff --git a/documentation/models/SubscriptionSplitResponseSubscriptionSplitStatus.md b/documentation/models/SubscriptionSplitResponseSubscriptionSplitStatus.md new file mode 100644 index 0000000..fc173c7 --- /dev/null +++ b/documentation/models/SubscriptionSplitResponseSubscriptionSplitStatus.md @@ -0,0 +1,12 @@ +# SubscriptionSplitResponseSubscriptionSplitStatus + +Subscription split status + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| ACTIVE | String | ✅ | "ACTIVE" | +| DISABLED | String | ✅ | "DISABLED" | + + diff --git a/documentation/models/SubscriptionUpdateCreditCardRequestDto.md b/documentation/models/SubscriptionUpdateCreditCardRequestDto.md new file mode 100644 index 0000000..89121fd --- /dev/null +++ b/documentation/models/SubscriptionUpdateCreditCardRequestDto.md @@ -0,0 +1,12 @@ +# SubscriptionUpdateCreditCardRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :------------------- | :----------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------------- | +| creditCard | CreditCardRequestDto | ✅ | Credit card information | +| creditCardHolderInfo | CreditCardHolderInfoRequestDto | ✅ | Credit card holder information | +| remoteIp | String | ✅ | IP from where the customer is making the purchase. Your server's IP must not be entered. | +| creditCardToken | String | ❌ | Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. | + + diff --git a/documentation/models/SubscriptionUpdateRequestBillingType.md b/documentation/models/SubscriptionUpdateRequestBillingType.md new file mode 100644 index 0000000..c5973a0 --- /dev/null +++ b/documentation/models/SubscriptionUpdateRequestBillingType.md @@ -0,0 +1,14 @@ +# SubscriptionUpdateRequestBillingType + +Billing type + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :----- | :------- | :------------ | +| UNDEFINED | String | ✅ | "UNDEFINED" | +| BOLETO | String | ✅ | "BOLETO" | +| CREDIT_CARD | String | ✅ | "CREDIT_CARD" | +| PIX | String | ✅ | "PIX" | + + diff --git a/documentation/models/SubscriptionUpdateRequestCycle.md b/documentation/models/SubscriptionUpdateRequestCycle.md new file mode 100644 index 0000000..20203a5 --- /dev/null +++ b/documentation/models/SubscriptionUpdateRequestCycle.md @@ -0,0 +1,17 @@ +# SubscriptionUpdateRequestCycle + +Billing frequency + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------- | +| WEEKLY | String | ✅ | "WEEKLY" | +| BIWEEKLY | String | ✅ | "BIWEEKLY" | +| MONTHLY | String | ✅ | "MONTHLY" | +| BIMONTHLY | String | ✅ | "BIMONTHLY" | +| QUARTERLY | String | ✅ | "QUARTERLY" | +| SEMIANNUALLY | String | ✅ | "SEMIANNUALLY" | +| YEARLY | String | ✅ | "YEARLY" | + + diff --git a/documentation/models/SubscriptionUpdateRequestDto.md b/documentation/models/SubscriptionUpdateRequestDto.md new file mode 100644 index 0000000..ee80459 --- /dev/null +++ b/documentation/models/SubscriptionUpdateRequestDto.md @@ -0,0 +1,21 @@ +# SubscriptionUpdateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :------------------------------------------ | :------- | :-------------------------------------------------------------------------- | +| billingType | SubscriptionUpdateRequestBillingType | ❌ | Billing type | +| status | SubscriptionUpdateRequestSubscriptionStatus | ❌ | Subscription status | +| nextDueDate | String | ❌ | First payment due | +| discount | PaymentDiscountDto | ❌ | Discount information | +| interest | PaymentInterestRequestDto | ❌ | Interest information for payment after due date | +| fine | PaymentFineRequestDto | ❌ | Fine information for payment after due date | +| cycle | SubscriptionUpdateRequestCycle | ❌ | Billing frequency | +| description | String | ❌ | Subscription description (max. 500 characters) | +| endDate | String | ❌ | Deadline for payments to be due | +| updatePendingPayments | Boolean | ❌ | true to update the possible properties of already existing pending payments | +| externalReference | String | ❌ | Subscription identifier on your system | +| split | List\ | ❌ | Split information | +| callback | PaymentCallbackRequestDto | ❌ | Automatic redirection information after the payment of the link payment | + + diff --git a/documentation/models/SubscriptionUpdateRequestSubscriptionStatus.md b/documentation/models/SubscriptionUpdateRequestSubscriptionStatus.md new file mode 100644 index 0000000..144da26 --- /dev/null +++ b/documentation/models/SubscriptionUpdateRequestSubscriptionStatus.md @@ -0,0 +1,12 @@ +# SubscriptionUpdateRequestSubscriptionStatus + +Subscription status + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| ACTIVE | String | ✅ | "ACTIVE" | +| INACTIVE | String | ✅ | "INACTIVE" | + + diff --git a/documentation/models/TransferBankAccountGetResponseDto.md b/documentation/models/TransferBankAccountGetResponseDto.md new file mode 100644 index 0000000..77db82b --- /dev/null +++ b/documentation/models/TransferBankAccountGetResponseDto.md @@ -0,0 +1,19 @@ +# TransferBankAccountGetResponseDto + +Bank account details + +**Properties** + +| Name | Type | Required | Description | +| :------------ | :------------------------- | :------- | :------------------------------------ | +| bank | TransferBankGetResponseDto | ❌ | Bank account name | +| accountName | String | ❌ | Name of bank account owner | +| ownerName | String | ❌ | Name of bank account owner | +| cpfCnpj | String | ❌ | CPF or CNPJ of the bank account owner | +| agency | String | ❌ | Non-digit agency number | +| agencyDigit | String | ❌ | Agency digit | +| account | String | ❌ | Non-digit bank account number | +| accountDigit | String | ❌ | Bank account digit | +| pixAddressKey | String | ❌ | Pix key address | + + diff --git a/documentation/models/TransferBankAccountSaveRequestBankAccountType.md b/documentation/models/TransferBankAccountSaveRequestBankAccountType.md new file mode 100644 index 0000000..caee267 --- /dev/null +++ b/documentation/models/TransferBankAccountSaveRequestBankAccountType.md @@ -0,0 +1,12 @@ +# TransferBankAccountSaveRequestBankAccountType + +Account type + +**Properties** + +| Name | Type | Required | Description | +| :------------- | :----- | :------- | :--------------- | +| CONTA_CORRENTE | String | ✅ | "CONTA_CORRENTE" | +| CONTA_POUPANCA | String | ✅ | "CONTA_POUPANCA" | + + diff --git a/documentation/models/TransferBankAccountSaveRequestDto.md b/documentation/models/TransferBankAccountSaveRequestDto.md new file mode 100644 index 0000000..89f9a43 --- /dev/null +++ b/documentation/models/TransferBankAccountSaveRequestDto.md @@ -0,0 +1,20 @@ +# TransferBankAccountSaveRequestDto + +Enter your account details if it is a transfer to a bank account + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :-------------------------------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------- | +| ownerName | String | ✅ | Name of bank account owner | +| cpfCnpj | String | ✅ | CPF or CNPJ of the bank account owner | +| agency | String | ✅ | Non-digit agency number | +| account | String | ✅ | Non-digit bank account number | +| accountDigit | String | ✅ | Bank account digit | +| bank | TransferBankSaveRequestDto | ❌ | Details of the bank account to which the transfer will be made | +| accountName | String | ❌ | Bank account name | +| ownerBirthDate | String | ❌ | Account owner's date of birth. Only when the bank account does not belong to the same CPF or CNPJ as the Asaas account. | +| bankAccountType | TransferBankAccountSaveRequestBankAccountType | ❌ | Account type | +| ispb | String | ❌ | Identifier in the Brazilian Payment System | + + diff --git a/documentation/models/TransferBankGetResponseDto.md b/documentation/models/TransferBankGetResponseDto.md new file mode 100644 index 0000000..d597190 --- /dev/null +++ b/documentation/models/TransferBankGetResponseDto.md @@ -0,0 +1,13 @@ +# TransferBankGetResponseDto + +Bank account name + +**Properties** + +| Name | Type | Required | Description | +| :--- | :----- | :------- | :----------------------------------------- | +| ispb | String | ❌ | Identifier in the Brazilian Payment System | +| code | String | ❌ | Bank clearing code in the banking system | +| name | String | ❌ | Bank name | + + diff --git a/documentation/models/TransferBankSaveRequestDto.md b/documentation/models/TransferBankSaveRequestDto.md new file mode 100644 index 0000000..6a7d371 --- /dev/null +++ b/documentation/models/TransferBankSaveRequestDto.md @@ -0,0 +1,11 @@ +# TransferBankSaveRequestDto + +Details of the bank account to which the transfer will be made + +**Properties** + +| Name | Type | Required | Description | +| :--- | :----- | :------- | :--------------------------------------- | +| code | String | ✅ | Bank clearing code in the banking system | + + diff --git a/documentation/models/TransferGetResponseDto.md b/documentation/models/TransferGetResponseDto.md new file mode 100644 index 0000000..42cc54c --- /dev/null +++ b/documentation/models/TransferGetResponseDto.md @@ -0,0 +1,27 @@ +# TransferGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :-------------------------------- | :------- | :------------------------------------------------------------------ | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique transfer identifier in Asaas | +| type | TransferGetResponseDtoType | ❌ | Type of transfer | +| dateCreated | String | ❌ | Transfer request date | +| value | Double | ❌ | Transfer amount | +| netValue | Double | ❌ | Net value minus transfer fee | +| status | TransferGetResponseTransferStatus | ❌ | Transfer status | +| transferFee | Double | ❌ | Transfer rate | +| effectiveDate | String | ❌ | Effective date | +| scheduleDate | String | ❌ | Schedule date | +| endToEndIdentifier | String | ❌ | Unique identifier of the Pix transaction at the Central Bank | +| authorized | Boolean | ❌ | `false` when awaiting authorization via SMS Token | +| failReason | String | ❌ | Reason for transfer failure | +| externalReference | String | ❌ | Transfer identifier in your system | +| transactionReceiptUrl | String | ❌ | Proof of transfer will be available after the transfer is confirmed | +| operationType | TransferGetResponseTransferType | ❌ | Transfer method | +| description | String | ❌ | Transfer description | +| recurring | String | ❌ | Unique recurrence identifier in Asaas | +| bankAccount | TransferBankAccountGetResponseDto | ❌ | Bank account details | + + diff --git a/documentation/models/TransferGetResponseDtoType.md b/documentation/models/TransferGetResponseDtoType.md new file mode 100644 index 0000000..371572e --- /dev/null +++ b/documentation/models/TransferGetResponseDtoType.md @@ -0,0 +1,13 @@ +# TransferGetResponseDtoType + +Type of transfer + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| PIX | String | ✅ | "PIX" | +| TED | String | ✅ | "TED" | +| INTERNAL | String | ✅ | "INTERNAL" | + + diff --git a/documentation/models/TransferGetResponseTransferStatus.md b/documentation/models/TransferGetResponseTransferStatus.md new file mode 100644 index 0000000..61e5fce --- /dev/null +++ b/documentation/models/TransferGetResponseTransferStatus.md @@ -0,0 +1,15 @@ +# TransferGetResponseTransferStatus + +Transfer status + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :----- | :------- | :---------------- | +| PENDING | String | ✅ | "PENDING" | +| BANK_PROCESSING | String | ✅ | "BANK_PROCESSING" | +| DONE | String | ✅ | "DONE" | +| CANCELLED | String | ✅ | "CANCELLED" | +| FAILED | String | ✅ | "FAILED" | + + diff --git a/documentation/models/TransferGetResponseTransferType.md b/documentation/models/TransferGetResponseTransferType.md new file mode 100644 index 0000000..f578d9b --- /dev/null +++ b/documentation/models/TransferGetResponseTransferType.md @@ -0,0 +1,13 @@ +# TransferGetResponseTransferType + +Transfer method + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| PIX | String | ✅ | "PIX" | +| TED | String | ✅ | "TED" | +| INTERNAL | String | ✅ | "INTERNAL" | + + diff --git a/documentation/models/TransferListResponseDto.md b/documentation/models/TransferListResponseDto.md new file mode 100644 index 0000000..5057fba --- /dev/null +++ b/documentation/models/TransferListResponseDto.md @@ -0,0 +1,14 @@ +# TransferListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :----------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/TransferRecurringSaveRequestDto.md b/documentation/models/TransferRecurringSaveRequestDto.md new file mode 100644 index 0000000..0eb40af --- /dev/null +++ b/documentation/models/TransferRecurringSaveRequestDto.md @@ -0,0 +1,12 @@ +# TransferRecurringSaveRequestDto + +Recurrence information. Only for Pix transfers + +**Properties** + +| Name | Type | Required | Description | +| :-------- | :------------------------------------------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| frequency | TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency | ❌ | Frequency | +| quantity | Long | ❌ | Number of repetitions. This transfer will be included as the first transaction of the recurrence. For the `WEEKLY` frequency, the maximum accepted is: `51` For the `MONTHLY` frequency, the maximum accepted is: `11` | + + diff --git a/documentation/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md b/documentation/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md new file mode 100644 index 0000000..e14053e --- /dev/null +++ b/documentation/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md @@ -0,0 +1,12 @@ +# TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency + +Frequency + +**Properties** + +| Name | Type | Required | Description | +| :------ | :----- | :------- | :---------- | +| WEEKLY | String | ✅ | "WEEKLY" | +| MONTHLY | String | ✅ | "MONTHLY" | + + diff --git a/documentation/models/TransferSaveInternalTransferAccountDto.md b/documentation/models/TransferSaveInternalTransferAccountDto.md new file mode 100644 index 0000000..ba89eea --- /dev/null +++ b/documentation/models/TransferSaveInternalTransferAccountDto.md @@ -0,0 +1,15 @@ +# TransferSaveInternalTransferAccountDto + +Target account basic information + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :----- | :------- | :------------------------------------- | +| name | String | ❌ | Target account name | +| cpfCnpj | String | ❌ | CPF or CNPJ of the destination account | +| agency | String | ❌ | Target account branch code | +| account | String | ❌ | Target account number | +| accountDigit | String | ❌ | Target account digit | + + diff --git a/documentation/models/TransferSaveInternalTransferRequestDto.md b/documentation/models/TransferSaveInternalTransferRequestDto.md new file mode 100644 index 0000000..c66478c --- /dev/null +++ b/documentation/models/TransferSaveInternalTransferRequestDto.md @@ -0,0 +1,11 @@ +# TransferSaveInternalTransferRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----- | :------- | :--------------------------------- | +| value | Double | ✅ | Amount to be transferred | +| walletId | String | ✅ | WalletId of the target account | +| externalReference | String | ❌ | Transfer identifier in your system | + + diff --git a/documentation/models/TransferSaveInternalTransferResponseDto.md b/documentation/models/TransferSaveInternalTransferResponseDto.md new file mode 100644 index 0000000..e8f5a9a --- /dev/null +++ b/documentation/models/TransferSaveInternalTransferResponseDto.md @@ -0,0 +1,28 @@ +# TransferSaveInternalTransferResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :-------------------- | :------------------------------------------------- | :------- | :--------------------------------------------------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique transfer identifier in Asaas | +| type | TransferSaveInternalTransferResponseDtoType | ❌ | Type of transfer | +| dateCreated | String | ❌ | Transfer request date | +| value | Double | ❌ | Transfer amount | +| netValue | Double | ❌ | Net value minus transfer fee | +| status | TransferSaveInternalTransferResponseTransferStatus | ❌ | Transfer status | +| transferFee | Double | ❌ | Transfer rate | +| effectiveDate | String | ❌ | Effective date | +| scheduleDate | String | ❌ | Schedule date | +| endToEndIdentifier | String | ❌ | Unique identifier of the Pix transaction at the Central Bank | +| authorized | Boolean | ❌ | `false` when awaiting authorization via SMS Token | +| failReason | String | ❌ | Reason for transfer failure | +| externalReference | String | ❌ | Transfer identifier in your system | +| transactionReceiptUrl | String | ❌ | Proof of transfer will be available after the transfer is confirmed | +| operationType | TransferSaveInternalTransferResponseTransferType | ❌ | Transfer method | +| description | String | ❌ | Transfer description | +| recurring | String | ❌ | Unique recurrence identifier in Asaas | +| walletId | String | ❌ | Unique wallet identifier to split charges or transfer between Asaas accounts | +| account | TransferSaveInternalTransferAccountDto | ❌ | Target account basic information | + + diff --git a/documentation/models/TransferSaveInternalTransferResponseDtoType.md b/documentation/models/TransferSaveInternalTransferResponseDtoType.md new file mode 100644 index 0000000..8d6f7c3 --- /dev/null +++ b/documentation/models/TransferSaveInternalTransferResponseDtoType.md @@ -0,0 +1,13 @@ +# TransferSaveInternalTransferResponseDtoType + +Type of transfer + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| PIX | String | ✅ | "PIX" | +| TED | String | ✅ | "TED" | +| INTERNAL | String | ✅ | "INTERNAL" | + + diff --git a/documentation/models/TransferSaveInternalTransferResponseTransferStatus.md b/documentation/models/TransferSaveInternalTransferResponseTransferStatus.md new file mode 100644 index 0000000..f7d43e2 --- /dev/null +++ b/documentation/models/TransferSaveInternalTransferResponseTransferStatus.md @@ -0,0 +1,15 @@ +# TransferSaveInternalTransferResponseTransferStatus + +Transfer status + +**Properties** + +| Name | Type | Required | Description | +| :-------------- | :----- | :------- | :---------------- | +| PENDING | String | ✅ | "PENDING" | +| BANK_PROCESSING | String | ✅ | "BANK_PROCESSING" | +| DONE | String | ✅ | "DONE" | +| CANCELLED | String | ✅ | "CANCELLED" | +| FAILED | String | ✅ | "FAILED" | + + diff --git a/documentation/models/TransferSaveInternalTransferResponseTransferType.md b/documentation/models/TransferSaveInternalTransferResponseTransferType.md new file mode 100644 index 0000000..521f135 --- /dev/null +++ b/documentation/models/TransferSaveInternalTransferResponseTransferType.md @@ -0,0 +1,13 @@ +# TransferSaveInternalTransferResponseTransferType + +Transfer method + +**Properties** + +| Name | Type | Required | Description | +| :------- | :----- | :------- | :---------- | +| PIX | String | ✅ | "PIX" | +| TED | String | ✅ | "TED" | +| INTERNAL | String | ✅ | "INTERNAL" | + + diff --git a/documentation/models/TransferSaveRequestDto.md b/documentation/models/TransferSaveRequestDto.md new file mode 100644 index 0000000..0380f55 --- /dev/null +++ b/documentation/models/TransferSaveRequestDto.md @@ -0,0 +1,17 @@ +# TransferSaveRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---------------- | :----------------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------- | +| value | Double | ✅ | Amount to be transferred | +| bankAccount | TransferBankAccountSaveRequestDto | ❌ | Enter your account details if it is a transfer to a bank account | +| operationType | TransferSaveRequestTransferType | ❌ | Transfer modality. If not informed and the receiving institution is a Pix participant, the transfer is via Pix. Otherwise via TED. | +| pixAddressKey | String | ❌ | Enter the Pix key if it is a transfer to a Pix key | +| pixAddressKeyType | TransferSaveRequestPixAddressKeyType | ❌ | Enter the type of key if it is a transfer to a Pix key | +| description | String | ❌ | Transfers via Pix allow description | +| scheduleDate | String | ❌ | For scheduled transfers, if not informed, payment is instantaneous | +| externalReference | String | ❌ | Transfer identifier in your system | +| recurring | TransferRecurringSaveRequestDto | ❌ | Recurrence information. Only for Pix transfers | + + diff --git a/documentation/models/TransferSaveRequestPixAddressKeyType.md b/documentation/models/TransferSaveRequestPixAddressKeyType.md new file mode 100644 index 0000000..a9c8f91 --- /dev/null +++ b/documentation/models/TransferSaveRequestPixAddressKeyType.md @@ -0,0 +1,15 @@ +# TransferSaveRequestPixAddressKeyType + +Enter the type of key if it is a transfer to a Pix key + +**Properties** + +| Name | Type | Required | Description | +| :---- | :----- | :------- | :---------- | +| CPF | String | ✅ | "CPF" | +| CNPJ | String | ✅ | "CNPJ" | +| EMAIL | String | ✅ | "EMAIL" | +| PHONE | String | ✅ | "PHONE" | +| EVP | String | ✅ | "EVP" | + + diff --git a/documentation/models/TransferSaveRequestTransferType.md b/documentation/models/TransferSaveRequestTransferType.md new file mode 100644 index 0000000..6edb282 --- /dev/null +++ b/documentation/models/TransferSaveRequestTransferType.md @@ -0,0 +1,12 @@ +# TransferSaveRequestTransferType + +Transfer modality. If not informed and the receiving institution is a Pix participant, the transfer is via Pix. Otherwise via TED. + +**Properties** + +| Name | Type | Required | Description | +| :--- | :----- | :------- | :---------- | +| PIX | String | ✅ | "PIX" | +| TED | String | ✅ | "TED" | + + diff --git a/documentation/models/WalletGetResponseDto.md b/documentation/models/WalletGetResponseDto.md new file mode 100644 index 0000000..246feb5 --- /dev/null +++ b/documentation/models/WalletGetResponseDto.md @@ -0,0 +1,12 @@ +# WalletGetResponseDto + +List of objects + +**Properties** + +| Name | Type | Required | Description | +| :----- | :----- | :------- | :-------------------------------- | +| object | String | ❌ | Object type | +| id | String | ❌ | Unique wallet identifier in Asaas | + + diff --git a/documentation/models/WalletShowResponseDto.md b/documentation/models/WalletShowResponseDto.md new file mode 100644 index 0000000..7c06504 --- /dev/null +++ b/documentation/models/WalletShowResponseDto.md @@ -0,0 +1,14 @@ +# WalletShowResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :--------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/WebhookConfigDeleteResponseDto.md b/documentation/models/WebhookConfigDeleteResponseDto.md new file mode 100644 index 0000000..4092246 --- /dev/null +++ b/documentation/models/WebhookConfigDeleteResponseDto.md @@ -0,0 +1,10 @@ +# WebhookConfigDeleteResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :------ | :------ | :------- | :---------------------------------------- | +| deleted | Boolean | ❌ | Indicates whether the Webhook was removed | +| id | String | ❌ | Unique Webhook Identifier | + + diff --git a/documentation/models/WebhookConfigGetResponseDto.md b/documentation/models/WebhookConfigGetResponseDto.md new file mode 100644 index 0000000..6b3fa9c --- /dev/null +++ b/documentation/models/WebhookConfigGetResponseDto.md @@ -0,0 +1,18 @@ +# WebhookConfigGetResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :----------- | :------------------------------------------- | :------- | :---------------------------------------------------------------------- | +| id | String | ❌ | Unique Webhook Identifier | +| name | String | ❌ | Webhook name | +| url | String | ❌ | Webhook URL | +| email | String | ❌ | Email that will receive notifications about the Webhook | +| enabled | Boolean | ❌ | Set whether the Webhook is active | +| interrupted | Boolean | ❌ | Set whether the sync queue is stopped | +| apiVersion | Long | ❌ | API Version | +| hasAuthToken | Boolean | ❌ | Indicates whether an authentication token is registered for the webhook | +| sendType | WebhookConfigGetResponseWebhookSendType | ❌ | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | +| events | List\ | ❌ | List of events this Webhook will observe | + + diff --git a/documentation/models/WebhookConfigGetResponseWebhookEvent.md b/documentation/models/WebhookConfigGetResponseWebhookEvent.md new file mode 100644 index 0000000..4f7205b --- /dev/null +++ b/documentation/models/WebhookConfigGetResponseWebhookEvent.md @@ -0,0 +1,100 @@ +# WebhookConfigGetResponseWebhookEvent + +List of events this Webhook will observe + +**Properties** + +| Name | Type | Required | Description | +| :------------------------------------------------- | :----- | :------- | :--------------------------------------------------- | +| PAYMENT_AUTHORIZED | String | ✅ | "PAYMENT_AUTHORIZED" | +| PAYMENT_AWAITING_RISK_ANALYSIS | String | ✅ | "PAYMENT_AWAITING_RISK_ANALYSIS" | +| PAYMENT_APPROVED_BY_RISK_ANALYSIS | String | ✅ | "PAYMENT_APPROVED_BY_RISK_ANALYSIS" | +| PAYMENT_REPROVED_BY_RISK_ANALYSIS | String | ✅ | "PAYMENT_REPROVED_BY_RISK_ANALYSIS" | +| PAYMENT_CREATED | String | ✅ | "PAYMENT_CREATED" | +| PAYMENT_UPDATED | String | ✅ | "PAYMENT_UPDATED" | +| PAYMENT_CONFIRMED | String | ✅ | "PAYMENT_CONFIRMED" | +| PAYMENT_RECEIVED | String | ✅ | "PAYMENT_RECEIVED" | +| PAYMENT_ANTICIPATED | String | ✅ | "PAYMENT_ANTICIPATED" | +| PAYMENT_OVERDUE | String | ✅ | "PAYMENT_OVERDUE" | +| PAYMENT_DELETED | String | ✅ | "PAYMENT_DELETED" | +| PAYMENT_RESTORED | String | ✅ | "PAYMENT_RESTORED" | +| PAYMENT_REFUNDED | String | ✅ | "PAYMENT_REFUNDED" | +| PAYMENT_REFUND_IN_PROGRESS | String | ✅ | "PAYMENT_REFUND_IN_PROGRESS" | +| PAYMENT_REFUND_DENIED | String | ✅ | "PAYMENT_REFUND_DENIED" | +| PAYMENT_RECEIVED_IN_CASH_UNDONE | String | ✅ | "PAYMENT_RECEIVED_IN_CASH_UNDONE" | +| PAYMENT_CHARGEBACK_REQUESTED | String | ✅ | "PAYMENT_CHARGEBACK_REQUESTED" | +| PAYMENT_CHARGEBACK_DISPUTE | String | ✅ | "PAYMENT_CHARGEBACK_DISPUTE" | +| PAYMENT_AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "PAYMENT_AWAITING_CHARGEBACK_REVERSAL" | +| PAYMENT_DUNNING_RECEIVED | String | ✅ | "PAYMENT_DUNNING_RECEIVED" | +| PAYMENT_DUNNING_REQUESTED | String | ✅ | "PAYMENT_DUNNING_REQUESTED" | +| PAYMENT_BANK_SLIP_VIEWED | String | ✅ | "PAYMENT_BANK_SLIP_VIEWED" | +| PAYMENT_CHECKOUT_VIEWED | String | ✅ | "PAYMENT_CHECKOUT_VIEWED" | +| PAYMENT_CREDIT_CARD_CAPTURE_REFUSED | String | ✅ | "PAYMENT_CREDIT_CARD_CAPTURE_REFUSED" | +| PAYMENT_PARTIALLY_REFUNDED | String | ✅ | "PAYMENT_PARTIALLY_REFUNDED" | +| PAYMENT_SPLIT_CANCELLED | String | ✅ | "PAYMENT_SPLIT_CANCELLED" | +| PAYMENT_SPLIT_DIVERGENCE_BLOCK | String | ✅ | "PAYMENT_SPLIT_DIVERGENCE_BLOCK" | +| PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED | String | ✅ | "PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED" | +| INVOICE_CREATED | String | ✅ | "INVOICE_CREATED" | +| INVOICE_UPDATED | String | ✅ | "INVOICE_UPDATED" | +| INVOICE_SYNCHRONIZED | String | ✅ | "INVOICE_SYNCHRONIZED" | +| INVOICE_AUTHORIZED | String | ✅ | "INVOICE_AUTHORIZED" | +| INVOICE_PROCESSING_CANCELLATION | String | ✅ | "INVOICE_PROCESSING_CANCELLATION" | +| INVOICE_CANCELED | String | ✅ | "INVOICE_CANCELED" | +| INVOICE_CANCELLATION_DENIED | String | ✅ | "INVOICE_CANCELLATION_DENIED" | +| INVOICE_ERROR | String | ✅ | "INVOICE_ERROR" | +| TRANSFER_CREATED | String | ✅ | "TRANSFER_CREATED" | +| TRANSFER_PENDING | String | ✅ | "TRANSFER_PENDING" | +| TRANSFER_IN_BANK_PROCESSING | String | ✅ | "TRANSFER_IN_BANK_PROCESSING" | +| TRANSFER_BLOCKED | String | ✅ | "TRANSFER_BLOCKED" | +| TRANSFER_DONE | String | ✅ | "TRANSFER_DONE" | +| TRANSFER_FAILED | String | ✅ | "TRANSFER_FAILED" | +| TRANSFER_CANCELLED | String | ✅ | "TRANSFER_CANCELLED" | +| BILL_CREATED | String | ✅ | "BILL_CREATED" | +| BILL_PENDING | String | ✅ | "BILL_PENDING" | +| BILL_BANK_PROCESSING | String | ✅ | "BILL_BANK_PROCESSING" | +| BILL_PAID | String | ✅ | "BILL_PAID" | +| BILL_CANCELLED | String | ✅ | "BILL_CANCELLED" | +| BILL_FAILED | String | ✅ | "BILL_FAILED" | +| BILL_REFUNDED | String | ✅ | "BILL_REFUNDED" | +| RECEIVABLE_ANTICIPATION_CANCELLED | String | ✅ | "RECEIVABLE_ANTICIPATION_CANCELLED" | +| RECEIVABLE_ANTICIPATION_SCHEDULED | String | ✅ | "RECEIVABLE_ANTICIPATION_SCHEDULED" | +| RECEIVABLE_ANTICIPATION_PENDING | String | ✅ | "RECEIVABLE_ANTICIPATION_PENDING" | +| RECEIVABLE_ANTICIPATION_CREDITED | String | ✅ | "RECEIVABLE_ANTICIPATION_CREDITED" | +| RECEIVABLE_ANTICIPATION_DEBITED | String | ✅ | "RECEIVABLE_ANTICIPATION_DEBITED" | +| RECEIVABLE_ANTICIPATION_DENIED | String | ✅ | "RECEIVABLE_ANTICIPATION_DENIED" | +| RECEIVABLE_ANTICIPATION_OVERDUE | String | ✅ | "RECEIVABLE_ANTICIPATION_OVERDUE" | +| MOBILE_PHONE_RECHARGE_PENDING | String | ✅ | "MOBILE_PHONE_RECHARGE_PENDING" | +| MOBILE_PHONE_RECHARGE_CANCELLED | String | ✅ | "MOBILE_PHONE_RECHARGE_CANCELLED" | +| MOBILE_PHONE_RECHARGE_CONFIRMED | String | ✅ | "MOBILE_PHONE_RECHARGE_CONFIRMED" | +| MOBILE_PHONE_RECHARGE_REFUNDED | String | ✅ | "MOBILE_PHONE_RECHARGE_REFUNDED" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED" | +| ACCOUNT_STATUS_DOCUMENT_APPROVED | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_APPROVED" | +| ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_DOCUMENT_PENDING | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_PENDING" | +| ACCOUNT_STATUS_DOCUMENT_REJECTED | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_REJECTED" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED" | +| SUBSCRIPTION_CREATED | String | ✅ | "SUBSCRIPTION_CREATED" | +| SUBSCRIPTION_UPDATED | String | ✅ | "SUBSCRIPTION_UPDATED" | +| SUBSCRIPTION_INACTIVATED | String | ✅ | "SUBSCRIPTION_INACTIVATED" | +| SUBSCRIPTION_DELETED | String | ✅ | "SUBSCRIPTION_DELETED" | +| SUBSCRIPTION_SPLIT_DISABLED | String | ✅ | "SUBSCRIPTION_SPLIT_DISABLED" | +| SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK | String | ✅ | "SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK" | +| SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED | String | ✅ | "SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED" | +| CHECKOUT_CREATED | String | ✅ | "CHECKOUT_CREATED" | +| CHECKOUT_CANCELED | String | ✅ | "CHECKOUT_CANCELED" | +| CHECKOUT_EXPIRED | String | ✅ | "CHECKOUT_EXPIRED" | +| CHECKOUT_PAID | String | ✅ | "CHECKOUT_PAID" | + + diff --git a/documentation/models/WebhookConfigGetResponseWebhookSendType.md b/documentation/models/WebhookConfigGetResponseWebhookSendType.md new file mode 100644 index 0000000..1ef0d0e --- /dev/null +++ b/documentation/models/WebhookConfigGetResponseWebhookSendType.md @@ -0,0 +1,12 @@ +# WebhookConfigGetResponseWebhookSendType + +Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) + +**Properties** + +| Name | Type | Required | Description | +| :--------------- | :----- | :------- | :----------------- | +| NON_SEQUENTIALLY | String | ✅ | "NON_SEQUENTIALLY" | +| SEQUENTIALLY | String | ✅ | "SEQUENTIALLY" | + + diff --git a/documentation/models/WebhookConfigListResponseDto.md b/documentation/models/WebhookConfigListResponseDto.md new file mode 100644 index 0000000..e9760b0 --- /dev/null +++ b/documentation/models/WebhookConfigListResponseDto.md @@ -0,0 +1,14 @@ +# WebhookConfigListResponseDto + +**Properties** + +| Name | Type | Required | Description | +| :--------- | :---------------------------------- | :------- | :---------------------------------------------------------- | +| object | String | ❌ | Object type | +| hasMore | Boolean | ❌ | Indicates whether there is another page to be searched | +| totalCount | Long | ❌ | Total number of items for the filters entered | +| limit | Long | ❌ | Number of objects per page | +| offset | Long | ❌ | Position of the object from which the page should be loaded | +| data | List\ | ❌ | List of objects | + + diff --git a/documentation/models/WebhookConfigSaveRequestDto.md b/documentation/models/WebhookConfigSaveRequestDto.md new file mode 100644 index 0000000..ea89d03 --- /dev/null +++ b/documentation/models/WebhookConfigSaveRequestDto.md @@ -0,0 +1,19 @@ +# WebhookConfigSaveRequestDto + +Array with desired Webhooks settings + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :------------------------------------------- | :------- | :------------------------------------------------------------- | +| name | String | ❌ | Webhook name | +| url | String | ❌ | Webhook URL | +| email | String | ❌ | Email that will receive notifications about the Webhook | +| enabled | Boolean | ❌ | Set whether the Webhook is active | +| interrupted | Boolean | ❌ | Set whether the sync queue is stopped | +| apiVersion | Long | ❌ | API Version | +| authToken | String | ❌ | Webhook authentication token | +| sendType | WebhookConfigSaveRequestWebhookSendType | ❌ | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | +| events | List\ | ❌ | List of events this Webhook will observe | + + diff --git a/documentation/models/WebhookConfigSaveRequestWebhookEvent.md b/documentation/models/WebhookConfigSaveRequestWebhookEvent.md new file mode 100644 index 0000000..21fc318 --- /dev/null +++ b/documentation/models/WebhookConfigSaveRequestWebhookEvent.md @@ -0,0 +1,100 @@ +# WebhookConfigSaveRequestWebhookEvent + +List of events this Webhook will observe + +**Properties** + +| Name | Type | Required | Description | +| :------------------------------------------------- | :----- | :------- | :--------------------------------------------------- | +| PAYMENT_AUTHORIZED | String | ✅ | "PAYMENT_AUTHORIZED" | +| PAYMENT_AWAITING_RISK_ANALYSIS | String | ✅ | "PAYMENT_AWAITING_RISK_ANALYSIS" | +| PAYMENT_APPROVED_BY_RISK_ANALYSIS | String | ✅ | "PAYMENT_APPROVED_BY_RISK_ANALYSIS" | +| PAYMENT_REPROVED_BY_RISK_ANALYSIS | String | ✅ | "PAYMENT_REPROVED_BY_RISK_ANALYSIS" | +| PAYMENT_CREATED | String | ✅ | "PAYMENT_CREATED" | +| PAYMENT_UPDATED | String | ✅ | "PAYMENT_UPDATED" | +| PAYMENT_CONFIRMED | String | ✅ | "PAYMENT_CONFIRMED" | +| PAYMENT_RECEIVED | String | ✅ | "PAYMENT_RECEIVED" | +| PAYMENT_ANTICIPATED | String | ✅ | "PAYMENT_ANTICIPATED" | +| PAYMENT_OVERDUE | String | ✅ | "PAYMENT_OVERDUE" | +| PAYMENT_DELETED | String | ✅ | "PAYMENT_DELETED" | +| PAYMENT_RESTORED | String | ✅ | "PAYMENT_RESTORED" | +| PAYMENT_REFUNDED | String | ✅ | "PAYMENT_REFUNDED" | +| PAYMENT_REFUND_IN_PROGRESS | String | ✅ | "PAYMENT_REFUND_IN_PROGRESS" | +| PAYMENT_REFUND_DENIED | String | ✅ | "PAYMENT_REFUND_DENIED" | +| PAYMENT_RECEIVED_IN_CASH_UNDONE | String | ✅ | "PAYMENT_RECEIVED_IN_CASH_UNDONE" | +| PAYMENT_CHARGEBACK_REQUESTED | String | ✅ | "PAYMENT_CHARGEBACK_REQUESTED" | +| PAYMENT_CHARGEBACK_DISPUTE | String | ✅ | "PAYMENT_CHARGEBACK_DISPUTE" | +| PAYMENT_AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "PAYMENT_AWAITING_CHARGEBACK_REVERSAL" | +| PAYMENT_DUNNING_RECEIVED | String | ✅ | "PAYMENT_DUNNING_RECEIVED" | +| PAYMENT_DUNNING_REQUESTED | String | ✅ | "PAYMENT_DUNNING_REQUESTED" | +| PAYMENT_BANK_SLIP_VIEWED | String | ✅ | "PAYMENT_BANK_SLIP_VIEWED" | +| PAYMENT_CHECKOUT_VIEWED | String | ✅ | "PAYMENT_CHECKOUT_VIEWED" | +| PAYMENT_CREDIT_CARD_CAPTURE_REFUSED | String | ✅ | "PAYMENT_CREDIT_CARD_CAPTURE_REFUSED" | +| PAYMENT_PARTIALLY_REFUNDED | String | ✅ | "PAYMENT_PARTIALLY_REFUNDED" | +| PAYMENT_SPLIT_CANCELLED | String | ✅ | "PAYMENT_SPLIT_CANCELLED" | +| PAYMENT_SPLIT_DIVERGENCE_BLOCK | String | ✅ | "PAYMENT_SPLIT_DIVERGENCE_BLOCK" | +| PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED | String | ✅ | "PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED" | +| INVOICE_CREATED | String | ✅ | "INVOICE_CREATED" | +| INVOICE_UPDATED | String | ✅ | "INVOICE_UPDATED" | +| INVOICE_SYNCHRONIZED | String | ✅ | "INVOICE_SYNCHRONIZED" | +| INVOICE_AUTHORIZED | String | ✅ | "INVOICE_AUTHORIZED" | +| INVOICE_PROCESSING_CANCELLATION | String | ✅ | "INVOICE_PROCESSING_CANCELLATION" | +| INVOICE_CANCELED | String | ✅ | "INVOICE_CANCELED" | +| INVOICE_CANCELLATION_DENIED | String | ✅ | "INVOICE_CANCELLATION_DENIED" | +| INVOICE_ERROR | String | ✅ | "INVOICE_ERROR" | +| TRANSFER_CREATED | String | ✅ | "TRANSFER_CREATED" | +| TRANSFER_PENDING | String | ✅ | "TRANSFER_PENDING" | +| TRANSFER_IN_BANK_PROCESSING | String | ✅ | "TRANSFER_IN_BANK_PROCESSING" | +| TRANSFER_BLOCKED | String | ✅ | "TRANSFER_BLOCKED" | +| TRANSFER_DONE | String | ✅ | "TRANSFER_DONE" | +| TRANSFER_FAILED | String | ✅ | "TRANSFER_FAILED" | +| TRANSFER_CANCELLED | String | ✅ | "TRANSFER_CANCELLED" | +| BILL_CREATED | String | ✅ | "BILL_CREATED" | +| BILL_PENDING | String | ✅ | "BILL_PENDING" | +| BILL_BANK_PROCESSING | String | ✅ | "BILL_BANK_PROCESSING" | +| BILL_PAID | String | ✅ | "BILL_PAID" | +| BILL_CANCELLED | String | ✅ | "BILL_CANCELLED" | +| BILL_FAILED | String | ✅ | "BILL_FAILED" | +| BILL_REFUNDED | String | ✅ | "BILL_REFUNDED" | +| RECEIVABLE_ANTICIPATION_CANCELLED | String | ✅ | "RECEIVABLE_ANTICIPATION_CANCELLED" | +| RECEIVABLE_ANTICIPATION_SCHEDULED | String | ✅ | "RECEIVABLE_ANTICIPATION_SCHEDULED" | +| RECEIVABLE_ANTICIPATION_PENDING | String | ✅ | "RECEIVABLE_ANTICIPATION_PENDING" | +| RECEIVABLE_ANTICIPATION_CREDITED | String | ✅ | "RECEIVABLE_ANTICIPATION_CREDITED" | +| RECEIVABLE_ANTICIPATION_DEBITED | String | ✅ | "RECEIVABLE_ANTICIPATION_DEBITED" | +| RECEIVABLE_ANTICIPATION_DENIED | String | ✅ | "RECEIVABLE_ANTICIPATION_DENIED" | +| RECEIVABLE_ANTICIPATION_OVERDUE | String | ✅ | "RECEIVABLE_ANTICIPATION_OVERDUE" | +| MOBILE_PHONE_RECHARGE_PENDING | String | ✅ | "MOBILE_PHONE_RECHARGE_PENDING" | +| MOBILE_PHONE_RECHARGE_CANCELLED | String | ✅ | "MOBILE_PHONE_RECHARGE_CANCELLED" | +| MOBILE_PHONE_RECHARGE_CONFIRMED | String | ✅ | "MOBILE_PHONE_RECHARGE_CONFIRMED" | +| MOBILE_PHONE_RECHARGE_REFUNDED | String | ✅ | "MOBILE_PHONE_RECHARGE_REFUNDED" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED" | +| ACCOUNT_STATUS_DOCUMENT_APPROVED | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_APPROVED" | +| ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_DOCUMENT_PENDING | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_PENDING" | +| ACCOUNT_STATUS_DOCUMENT_REJECTED | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_REJECTED" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED" | +| SUBSCRIPTION_CREATED | String | ✅ | "SUBSCRIPTION_CREATED" | +| SUBSCRIPTION_UPDATED | String | ✅ | "SUBSCRIPTION_UPDATED" | +| SUBSCRIPTION_INACTIVATED | String | ✅ | "SUBSCRIPTION_INACTIVATED" | +| SUBSCRIPTION_DELETED | String | ✅ | "SUBSCRIPTION_DELETED" | +| SUBSCRIPTION_SPLIT_DISABLED | String | ✅ | "SUBSCRIPTION_SPLIT_DISABLED" | +| SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK | String | ✅ | "SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK" | +| SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED | String | ✅ | "SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED" | +| CHECKOUT_CREATED | String | ✅ | "CHECKOUT_CREATED" | +| CHECKOUT_CANCELED | String | ✅ | "CHECKOUT_CANCELED" | +| CHECKOUT_EXPIRED | String | ✅ | "CHECKOUT_EXPIRED" | +| CHECKOUT_PAID | String | ✅ | "CHECKOUT_PAID" | + + diff --git a/documentation/models/WebhookConfigSaveRequestWebhookSendType.md b/documentation/models/WebhookConfigSaveRequestWebhookSendType.md new file mode 100644 index 0000000..9fff784 --- /dev/null +++ b/documentation/models/WebhookConfigSaveRequestWebhookSendType.md @@ -0,0 +1,12 @@ +# WebhookConfigSaveRequestWebhookSendType + +Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) + +**Properties** + +| Name | Type | Required | Description | +| :--------------- | :----- | :------- | :----------------- | +| NON_SEQUENTIALLY | String | ✅ | "NON_SEQUENTIALLY" | +| SEQUENTIALLY | String | ✅ | "SEQUENTIALLY" | + + diff --git a/documentation/models/WebhookConfigUpdateRequestDto.md b/documentation/models/WebhookConfigUpdateRequestDto.md new file mode 100644 index 0000000..32480d8 --- /dev/null +++ b/documentation/models/WebhookConfigUpdateRequestDto.md @@ -0,0 +1,15 @@ +# WebhookConfigUpdateRequestDto + +**Properties** + +| Name | Type | Required | Description | +| :---------- | :--------------------------------------------- | :------- | :------------------------------------------------------------- | +| name | String | ❌ | Webhook name | +| url | String | ❌ | Event destination URL | +| sendType | WebhookConfigUpdateRequestWebhookSendType | ❌ | Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) | +| enabled | Boolean | ❌ | Set whether the Webhook is active | +| interrupted | Boolean | ❌ | Set whether the sync queue is stopped | +| authToken | String | ❌ | Webhook authentication token | +| events | List\ | ❌ | List of events this Webhook will observe | + + diff --git a/documentation/models/WebhookConfigUpdateRequestWebhookEvent.md b/documentation/models/WebhookConfigUpdateRequestWebhookEvent.md new file mode 100644 index 0000000..7899a13 --- /dev/null +++ b/documentation/models/WebhookConfigUpdateRequestWebhookEvent.md @@ -0,0 +1,100 @@ +# WebhookConfigUpdateRequestWebhookEvent + +List of events this Webhook will observe + +**Properties** + +| Name | Type | Required | Description | +| :------------------------------------------------- | :----- | :------- | :--------------------------------------------------- | +| PAYMENT_AUTHORIZED | String | ✅ | "PAYMENT_AUTHORIZED" | +| PAYMENT_AWAITING_RISK_ANALYSIS | String | ✅ | "PAYMENT_AWAITING_RISK_ANALYSIS" | +| PAYMENT_APPROVED_BY_RISK_ANALYSIS | String | ✅ | "PAYMENT_APPROVED_BY_RISK_ANALYSIS" | +| PAYMENT_REPROVED_BY_RISK_ANALYSIS | String | ✅ | "PAYMENT_REPROVED_BY_RISK_ANALYSIS" | +| PAYMENT_CREATED | String | ✅ | "PAYMENT_CREATED" | +| PAYMENT_UPDATED | String | ✅ | "PAYMENT_UPDATED" | +| PAYMENT_CONFIRMED | String | ✅ | "PAYMENT_CONFIRMED" | +| PAYMENT_RECEIVED | String | ✅ | "PAYMENT_RECEIVED" | +| PAYMENT_ANTICIPATED | String | ✅ | "PAYMENT_ANTICIPATED" | +| PAYMENT_OVERDUE | String | ✅ | "PAYMENT_OVERDUE" | +| PAYMENT_DELETED | String | ✅ | "PAYMENT_DELETED" | +| PAYMENT_RESTORED | String | ✅ | "PAYMENT_RESTORED" | +| PAYMENT_REFUNDED | String | ✅ | "PAYMENT_REFUNDED" | +| PAYMENT_REFUND_IN_PROGRESS | String | ✅ | "PAYMENT_REFUND_IN_PROGRESS" | +| PAYMENT_REFUND_DENIED | String | ✅ | "PAYMENT_REFUND_DENIED" | +| PAYMENT_RECEIVED_IN_CASH_UNDONE | String | ✅ | "PAYMENT_RECEIVED_IN_CASH_UNDONE" | +| PAYMENT_CHARGEBACK_REQUESTED | String | ✅ | "PAYMENT_CHARGEBACK_REQUESTED" | +| PAYMENT_CHARGEBACK_DISPUTE | String | ✅ | "PAYMENT_CHARGEBACK_DISPUTE" | +| PAYMENT_AWAITING_CHARGEBACK_REVERSAL | String | ✅ | "PAYMENT_AWAITING_CHARGEBACK_REVERSAL" | +| PAYMENT_DUNNING_RECEIVED | String | ✅ | "PAYMENT_DUNNING_RECEIVED" | +| PAYMENT_DUNNING_REQUESTED | String | ✅ | "PAYMENT_DUNNING_REQUESTED" | +| PAYMENT_BANK_SLIP_VIEWED | String | ✅ | "PAYMENT_BANK_SLIP_VIEWED" | +| PAYMENT_CHECKOUT_VIEWED | String | ✅ | "PAYMENT_CHECKOUT_VIEWED" | +| PAYMENT_CREDIT_CARD_CAPTURE_REFUSED | String | ✅ | "PAYMENT_CREDIT_CARD_CAPTURE_REFUSED" | +| PAYMENT_PARTIALLY_REFUNDED | String | ✅ | "PAYMENT_PARTIALLY_REFUNDED" | +| PAYMENT_SPLIT_CANCELLED | String | ✅ | "PAYMENT_SPLIT_CANCELLED" | +| PAYMENT_SPLIT_DIVERGENCE_BLOCK | String | ✅ | "PAYMENT_SPLIT_DIVERGENCE_BLOCK" | +| PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED | String | ✅ | "PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED" | +| INVOICE_CREATED | String | ✅ | "INVOICE_CREATED" | +| INVOICE_UPDATED | String | ✅ | "INVOICE_UPDATED" | +| INVOICE_SYNCHRONIZED | String | ✅ | "INVOICE_SYNCHRONIZED" | +| INVOICE_AUTHORIZED | String | ✅ | "INVOICE_AUTHORIZED" | +| INVOICE_PROCESSING_CANCELLATION | String | ✅ | "INVOICE_PROCESSING_CANCELLATION" | +| INVOICE_CANCELED | String | ✅ | "INVOICE_CANCELED" | +| INVOICE_CANCELLATION_DENIED | String | ✅ | "INVOICE_CANCELLATION_DENIED" | +| INVOICE_ERROR | String | ✅ | "INVOICE_ERROR" | +| TRANSFER_CREATED | String | ✅ | "TRANSFER_CREATED" | +| TRANSFER_PENDING | String | ✅ | "TRANSFER_PENDING" | +| TRANSFER_IN_BANK_PROCESSING | String | ✅ | "TRANSFER_IN_BANK_PROCESSING" | +| TRANSFER_BLOCKED | String | ✅ | "TRANSFER_BLOCKED" | +| TRANSFER_DONE | String | ✅ | "TRANSFER_DONE" | +| TRANSFER_FAILED | String | ✅ | "TRANSFER_FAILED" | +| TRANSFER_CANCELLED | String | ✅ | "TRANSFER_CANCELLED" | +| BILL_CREATED | String | ✅ | "BILL_CREATED" | +| BILL_PENDING | String | ✅ | "BILL_PENDING" | +| BILL_BANK_PROCESSING | String | ✅ | "BILL_BANK_PROCESSING" | +| BILL_PAID | String | ✅ | "BILL_PAID" | +| BILL_CANCELLED | String | ✅ | "BILL_CANCELLED" | +| BILL_FAILED | String | ✅ | "BILL_FAILED" | +| BILL_REFUNDED | String | ✅ | "BILL_REFUNDED" | +| RECEIVABLE_ANTICIPATION_CANCELLED | String | ✅ | "RECEIVABLE_ANTICIPATION_CANCELLED" | +| RECEIVABLE_ANTICIPATION_SCHEDULED | String | ✅ | "RECEIVABLE_ANTICIPATION_SCHEDULED" | +| RECEIVABLE_ANTICIPATION_PENDING | String | ✅ | "RECEIVABLE_ANTICIPATION_PENDING" | +| RECEIVABLE_ANTICIPATION_CREDITED | String | ✅ | "RECEIVABLE_ANTICIPATION_CREDITED" | +| RECEIVABLE_ANTICIPATION_DEBITED | String | ✅ | "RECEIVABLE_ANTICIPATION_DEBITED" | +| RECEIVABLE_ANTICIPATION_DENIED | String | ✅ | "RECEIVABLE_ANTICIPATION_DENIED" | +| RECEIVABLE_ANTICIPATION_OVERDUE | String | ✅ | "RECEIVABLE_ANTICIPATION_OVERDUE" | +| MOBILE_PHONE_RECHARGE_PENDING | String | ✅ | "MOBILE_PHONE_RECHARGE_PENDING" | +| MOBILE_PHONE_RECHARGE_CANCELLED | String | ✅ | "MOBILE_PHONE_RECHARGE_CANCELLED" | +| MOBILE_PHONE_RECHARGE_CONFIRMED | String | ✅ | "MOBILE_PHONE_RECHARGE_CONFIRMED" | +| MOBILE_PHONE_RECHARGE_REFUNDED | String | ✅ | "MOBILE_PHONE_RECHARGE_REFUNDED" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING" | +| ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED | String | ✅ | "ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING" | +| ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED | String | ✅ | "ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED" | +| ACCOUNT_STATUS_DOCUMENT_APPROVED | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_APPROVED" | +| ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_DOCUMENT_PENDING | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_PENDING" | +| ACCOUNT_STATUS_DOCUMENT_REJECTED | String | ✅ | "ACCOUNT_STATUS_DOCUMENT_REJECTED" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING" | +| ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED | String | ✅ | "ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED" | +| SUBSCRIPTION_CREATED | String | ✅ | "SUBSCRIPTION_CREATED" | +| SUBSCRIPTION_UPDATED | String | ✅ | "SUBSCRIPTION_UPDATED" | +| SUBSCRIPTION_INACTIVATED | String | ✅ | "SUBSCRIPTION_INACTIVATED" | +| SUBSCRIPTION_DELETED | String | ✅ | "SUBSCRIPTION_DELETED" | +| SUBSCRIPTION_SPLIT_DISABLED | String | ✅ | "SUBSCRIPTION_SPLIT_DISABLED" | +| SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK | String | ✅ | "SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK" | +| SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED | String | ✅ | "SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED" | +| CHECKOUT_CREATED | String | ✅ | "CHECKOUT_CREATED" | +| CHECKOUT_CANCELED | String | ✅ | "CHECKOUT_CANCELED" | +| CHECKOUT_EXPIRED | String | ✅ | "CHECKOUT_EXPIRED" | +| CHECKOUT_PAID | String | ✅ | "CHECKOUT_PAID" | + + diff --git a/documentation/models/WebhookConfigUpdateRequestWebhookSendType.md b/documentation/models/WebhookConfigUpdateRequestWebhookSendType.md new file mode 100644 index 0000000..d6e2f85 --- /dev/null +++ b/documentation/models/WebhookConfigUpdateRequestWebhookSendType.md @@ -0,0 +1,12 @@ +# WebhookConfigUpdateRequestWebhookSendType + +Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) + +**Properties** + +| Name | Type | Required | Description | +| :--------------- | :----- | :------- | :----------------- | +| NON_SEQUENTIALLY | String | ✅ | "NON_SEQUENTIALLY" | +| SEQUENTIALLY | String | ✅ | "SEQUENTIALLY" | + + diff --git a/documentation/services/AccountDocumentService.md b/documentation/services/AccountDocumentService.md index c2f6469..e7a7d4a 100644 --- a/documentation/services/AccountDocumentService.md +++ b/documentation/services/AccountDocumentService.md @@ -5,7 +5,7 @@ A list of all methods in the `AccountDocumentService` service. Click on the meth | Methods | Description | | :---------------------------------------------- | :---------- | | [checkPendingDocuments](#checkpendingdocuments) | | -| [sendDocumentsViaApi](#senddocumentsviaapi) | | +| [sendDocuments](#senddocuments) | | | [viewDocumentSent](#viewdocumentsent) | | | [updateSentDocument](#updatesentdocument) | | | [removeSentDocument](#removesentdocument) | | @@ -17,7 +17,7 @@ A list of all methods in the `AccountDocumentService` service. Click on the meth **Return Type** -`ApiAccountDocumentShowResponseDto` +`AccountDocumentShowResponseDto` **Example Usage Code Snippet** @@ -25,7 +25,7 @@ A list of all methods in the `AccountDocumentService` service. Click on the meth import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiAccountDocumentShowResponseDto; +import com.asaas.apisdk.models.AccountDocumentShowResponseDto; public class Main { @@ -36,7 +36,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiAccountDocumentShowResponseDto response = asaasSdk.accountDocument.checkPendingDocuments(); + AccountDocumentShowResponseDto response = asaasSdk.accountDocument.checkPendingDocuments(); System.out.println(response); } @@ -44,22 +44,22 @@ public class Main { ``` -## sendDocumentsViaApi +## sendDocuments - HTTP Method: `POST` - Endpoint: `/v3/myAccount/documents/{id}` **Parameters** -| Name | Type | Required | Description | -| :------------------------------- | :-------------------------------------------------------------------------------- | :------- | :---------------------------------- | -| id | String | ✅ | Unique document identifier in Asaas | -| apiAccountDocumentSaveRequestDto | [ApiAccountDocumentSaveRequestDto](../models/ApiAccountDocumentSaveRequestDto.md) | ❌ | Request Body | -| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | +| Name | Type | Required | Description | +| :---------------------------- | :-------------------------------------------------------------------------- | :------- | :---------------------------------- | +| id | String | ✅ | Unique document identifier in Asaas | +| accountDocumentSaveRequestDto | [AccountDocumentSaveRequestDto](../models/AccountDocumentSaveRequestDto.md) | ❌ | Request Body | +| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | **Return Type** -`ApiAccountDocumentGetResponseDto` +`AccountDocumentGetResponseDto` **Example Usage Code Snippet** @@ -67,36 +67,38 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiAccountDocumentGetResponseDto; -import com.asaas.apisdk.models.ApiAccountDocumentSaveRequestCustomerDocumentType; -import com.asaas.apisdk.models.ApiAccountDocumentSaveRequestDto; +import com.asaas.apisdk.models.AccountDocumentGetResponseDto; +import com.asaas.apisdk.models.AccountDocumentSaveRequestAccountDocumentType; +import com.asaas.apisdk.models.AccountDocumentSaveRequestDto; public class Main { - public static void main(String[] args) { - AsaasSdkConfig config = AsaasSdkConfig.builder() - .apiKeyAuthConfig( - ApiKeyAuthConfig.builder() - .apiKey("YOUR_API_KEY") - .build() - ) - .build(); - AsaasSdk asaasSdk = new AsaasSdk(config); + public static void main(String[] args) { + AsaasSdkConfig config = AsaasSdkConfig.builder() + .apiKeyAuthConfig(ApiKeyAuthConfig.builder().apiKey("YOUR_API_KEY").build()) + .build(); - ApiAccountDocumentSaveRequestDto apiAccountDocumentSaveRequestDto = ApiAccountDocumentSaveRequestDto.builder() - .documentFile(ut Ut ) - .type(ApiAccountDocumentSaveRequestCustomerDocumentType.IDENTIFICATION) - .build(); - ApiAccountDocumentSaveRequestDto apiAccountDocumentSaveRequestDto = ApiAccountDocumentSaveRequestDto.builder() - .documentFile(ut Ut ) - .type(ApiAccountDocumentSaveRequestCustomerDocumentType.IDENTIFICATION) - .build(); + AsaasSdk asaasSdk = new AsaasSdk(config); - ApiAccountDocumentGetResponseDto response = asaasSdk.accountDocument.sendDocumentsViaApi("8d257732-2220-11ec-b695-b6af4a64184d", apiAccountDocumentSaveRequestDto, apiAccountDocumentSaveRequestDto); + AccountDocumentSaveRequestDto accountDocumentSaveRequestDto = AccountDocumentSaveRequestDto.builder() + .documentFile(sintl) + .type(AccountDocumentSaveRequestAccountDocumentType.IDENTIFICATION) + .build(); + AccountDocumentSaveRequestDto accountDocumentSaveRequestDto = AccountDocumentSaveRequestDto.builder() + .documentFile(sintl) + .type(AccountDocumentSaveRequestAccountDocumentType.IDENTIFICATION) + .build(); - System.out.println(response); - } + AccountDocumentGetResponseDto response = asaasSdk.accountDocument.sendDocuments( + "8d257732-2220-11ec-b695-b6af4a64184d", + accountDocumentSaveRequestDto, + accountDocumentSaveRequestDto + ); + + System.out.println(response); + } } + ``` ## viewDocumentSent @@ -112,7 +114,7 @@ public class Main { **Return Type** -`ApiAccountDocumentGetResponseDto` +`AccountDocumentGetResponseDto` **Example Usage Code Snippet** @@ -120,7 +122,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiAccountDocumentGetResponseDto; +import com.asaas.apisdk.models.AccountDocumentGetResponseDto; public class Main { @@ -131,7 +133,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiAccountDocumentGetResponseDto response = asaasSdk.accountDocument.viewDocumentSent( + AccountDocumentGetResponseDto response = asaasSdk.accountDocument.viewDocumentSent( "8d257732-2220-11ec-b695-b6af4a64184d" ); @@ -148,15 +150,15 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :--------------------------------- | :------------------------------------------------------------------------------------ | :------- | :---------------------------------- | -| id | String | ✅ | Unique document identifier in Asaas | -| apiAccountDocumentUpdateRequestDto | [ApiAccountDocumentUpdateRequestDto](../models/ApiAccountDocumentUpdateRequestDto.md) | ❌ | Request Body | -| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | +| Name | Type | Required | Description | +| :------------------------------ | :------------------------------------------------------------------------------ | :------- | :---------------------------------- | +| id | String | ✅ | Unique document identifier in Asaas | +| accountDocumentUpdateRequestDto | [AccountDocumentUpdateRequestDto](../models/AccountDocumentUpdateRequestDto.md) | ❌ | Request Body | +| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | **Return Type** -`ApiAccountDocumentGetResponseDto` +`AccountDocumentGetResponseDto` **Example Usage Code Snippet** @@ -164,35 +166,33 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiAccountDocumentGetResponseDto; -import com.asaas.apisdk.models.ApiAccountDocumentUpdateRequestDto; +import com.asaas.apisdk.models.AccountDocumentGetResponseDto; +import com.asaas.apisdk.models.AccountDocumentUpdateRequestDto; public class Main { + public static void main(String[] args) { + AsaasSdkConfig config = AsaasSdkConfig.builder() + .apiKeyAuthConfig( + ApiKeyAuthConfig.builder() + .apiKey("YOUR_API_KEY") + .build() + ) + .build(); - public static void main(String[] args) { - AsaasSdkConfig config = AsaasSdkConfig.builder() - .apiKeyAuthConfig(ApiKeyAuthConfig.builder().apiKey("YOUR_API_KEY").build()) - .build(); - - AsaasSdk asaasSdk = new AsaasSdk(config); + AsaasSdk asaasSdk = new AsaasSdk(config); - ApiAccountDocumentUpdateRequestDto apiAccountDocumentUpdateRequestDto = ApiAccountDocumentUpdateRequestDto.builder() - .documentFile(sintl) - .build(); - ApiAccountDocumentUpdateRequestDto apiAccountDocumentUpdateRequestDto = ApiAccountDocumentUpdateRequestDto.builder() - .documentFile(sintl) - .build(); + AccountDocumentUpdateRequestDto accountDocumentUpdateRequestDto = AccountDocumentUpdateRequestDto.builder() + .documentFile(dolor cul) + .build(); + AccountDocumentUpdateRequestDto accountDocumentUpdateRequestDto = AccountDocumentUpdateRequestDto.builder() + .documentFile(dolor cul) + .build(); - ApiAccountDocumentGetResponseDto response = asaasSdk.accountDocument.updateSentDocument( - "8d257732-2220-11ec-b695-b6af4a64184d", - apiAccountDocumentUpdateRequestDto, - apiAccountDocumentUpdateRequestDto - ); + AccountDocumentGetResponseDto response = asaasSdk.accountDocument.updateSentDocument("8d257732-2220-11ec-b695-b6af4a64184d", accountDocumentUpdateRequestDto, accountDocumentUpdateRequestDto); - System.out.println(response); - } + System.out.println(response); + } } - ``` ## removeSentDocument @@ -208,7 +208,7 @@ public class Main { **Return Type** -`ApiAccountDocumentDeleteResponseDto` +`AccountDocumentDeleteResponseDto` **Example Usage Code Snippet** @@ -216,7 +216,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiAccountDocumentDeleteResponseDto; +import com.asaas.apisdk.models.AccountDocumentDeleteResponseDto; public class Main { @@ -227,7 +227,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiAccountDocumentDeleteResponseDto response = asaasSdk.accountDocument.removeSentDocument( + AccountDocumentDeleteResponseDto response = asaasSdk.accountDocument.removeSentDocument( "8d257732-2220-11ec-b695-b6af4a64184d" ); diff --git a/documentation/services/AccountInfoService.md b/documentation/services/AccountInfoService.md index 6c16637..3e961be 100644 --- a/documentation/services/AccountInfoService.md +++ b/documentation/services/AccountInfoService.md @@ -21,7 +21,7 @@ A list of all methods in the `AccountInfoService` service. Click on the method n **Return Type** -`ApiCustomerUpdateRequestGetResponseDto` +`AccountInfoGetResponseDto` **Example Usage Code Snippet** @@ -29,7 +29,7 @@ A list of all methods in the `AccountInfoService` service. Click on the method n import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerUpdateRequestGetResponseDto; +import com.asaas.apisdk.models.AccountInfoGetResponseDto; public class Main { @@ -40,7 +40,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerUpdateRequestGetResponseDto response = asaasSdk.accountInfo.retrieveBusinessData(); + AccountInfoGetResponseDto response = asaasSdk.accountInfo.retrieveBusinessData(); System.out.println(response); } @@ -55,13 +55,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------------- | :-------------------------------------------------------------------------------------------- | :------- | :----------- | -| apiCustomerUpdateRequestSaveRequestDto | [ApiCustomerUpdateRequestSaveRequestDto](../models/ApiCustomerUpdateRequestSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------ | :------------------------------------------------------------------ | :------- | :----------- | +| accountInfoSaveRequestDto | [AccountInfoSaveRequestDto](../models/AccountInfoSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCustomerUpdateRequestGetResponseDto` +`AccountInfoGetResponseDto` **Example Usage Code Snippet** @@ -69,10 +69,10 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerUpdateRequestGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerUpdateRequestSaveRequestCompanyType; -import com.asaas.apisdk.models.ApiCustomerUpdateRequestSaveRequestDto; -import com.asaas.apisdk.models.ApiCustomerUpdateRequestSaveRequestPersonType; +import com.asaas.apisdk.models.AccountInfoGetResponseDto; +import com.asaas.apisdk.models.AccountInfoSaveRequestCompanyType; +import com.asaas.apisdk.models.AccountInfoSaveRequestDto; +import com.asaas.apisdk.models.AccountInfoSaveRequestPersonType; public class Main { @@ -83,27 +83,25 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerUpdateRequestSaveRequestDto apiCustomerUpdateRequestSaveRequestDto = - ApiCustomerUpdateRequestSaveRequestDto.builder() - .personType(ApiCustomerUpdateRequestSaveRequestPersonType.JURIDICA) - .cpfCnpj("66625514000140") - .birthDate("1995-04-12") - .companyType(ApiCustomerUpdateRequestSaveRequestCompanyType.MEI) - .incomeValue(25000D) - .email("john.doe@asaas.com.br") - .phone("phone") - .mobilePhone("mobilePhone") - .site("site") - .postalCode("89223005") - .address("Av. Rolf Wiest") - .addressNumber("659") - .complement("complement") - .province("Bom Retiro") - .build(); + AccountInfoSaveRequestDto accountInfoSaveRequestDto = AccountInfoSaveRequestDto.builder() + .personType(AccountInfoSaveRequestPersonType.JURIDICA) + .cpfCnpj("66625514000140") + .birthDate("1995-04-12") + .companyType(AccountInfoSaveRequestCompanyType.MEI) + .companyName("ASAAS") + .incomeValue(25000D) + .email("john.doe@asaas.com.br") + .phone("phone") + .mobilePhone("mobilePhone") + .site("site") + .postalCode("89223005") + .address("Av. Rolf Wiest") + .addressNumber("659") + .complement("complement") + .province("Bom Retiro") + .build(); - ApiCustomerUpdateRequestGetResponseDto response = asaasSdk.accountInfo.updateBusinessData( - apiCustomerUpdateRequestSaveRequestDto - ); + AccountInfoGetResponseDto response = asaasSdk.accountInfo.updateBusinessData(accountInfoSaveRequestDto); System.out.println(response); } @@ -118,7 +116,7 @@ public class Main { **Return Type** -`ApiPaymentCheckoutConfigGetResponseDto` +`PaymentCheckoutConfigGetResponseDto` **Example Usage Code Snippet** @@ -126,7 +124,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCheckoutConfigGetResponseDto; +import com.asaas.apisdk.models.PaymentCheckoutConfigGetResponseDto; public class Main { @@ -137,7 +135,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCheckoutConfigGetResponseDto response = asaasSdk.accountInfo.retrievePersonalizationSettings(); + PaymentCheckoutConfigGetResponseDto response = asaasSdk.accountInfo.retrievePersonalizationSettings(); System.out.println(response); } @@ -152,14 +150,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------------- | :-------------------------------------------------------------------------------------------- | :------- | :----------------------------- | -| apiPaymentCheckoutConfigSaveRequestDto | [ApiPaymentCheckoutConfigSaveRequestDto](../models/ApiPaymentCheckoutConfigSaveRequestDto.md) | ❌ | Request Body | -| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | +| Name | Type | Required | Description | +| :---------------------------------- | :-------------------------------------------------------------------------------------- | :------- | :----------------------------- | +| paymentCheckoutConfigSaveRequestDto | [PaymentCheckoutConfigSaveRequestDto](../models/PaymentCheckoutConfigSaveRequestDto.md) | ❌ | Request Body | +| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | **Return Type** -`ApiPaymentCheckoutConfigGetResponseDto` +`PaymentCheckoutConfigGetResponseDto` **Example Usage Code Snippet** @@ -167,8 +165,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCheckoutConfigGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentCheckoutConfigSaveRequestDto; +import com.asaas.apisdk.models.PaymentCheckoutConfigGetResponseDto; +import com.asaas.apisdk.models.PaymentCheckoutConfigSaveRequestDto; public class Main { @@ -179,26 +177,26 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCheckoutConfigSaveRequestDto apiPaymentCheckoutConfigSaveRequestDto = - ApiPaymentCheckoutConfigSaveRequestDto.builder() + PaymentCheckoutConfigSaveRequestDto paymentCheckoutConfigSaveRequestDto = + PaymentCheckoutConfigSaveRequestDto.builder() .logoBackgroundColor("#00ff00") .infoBackgroundColor("#000fff") .fontColor("#00ff0") .enabled(true) - .logoFile(repre) + .logoFile(adipisicing) .build(); - ApiPaymentCheckoutConfigSaveRequestDto apiPaymentCheckoutConfigSaveRequestDto = - ApiPaymentCheckoutConfigSaveRequestDto.builder() + PaymentCheckoutConfigSaveRequestDto paymentCheckoutConfigSaveRequestDto = + PaymentCheckoutConfigSaveRequestDto.builder() .logoBackgroundColor("#00ff00") .infoBackgroundColor("#000fff") .fontColor("#00ff0") .enabled(true) - .logoFile(repre) + .logoFile(adipisicing) .build(); - ApiPaymentCheckoutConfigGetResponseDto response = asaasSdk.accountInfo.savePaymentCheckoutPersonalization( - apiPaymentCheckoutConfigSaveRequestDto, - apiPaymentCheckoutConfigSaveRequestDto + PaymentCheckoutConfigGetResponseDto response = asaasSdk.accountInfo.savePaymentCheckoutPersonalization( + paymentCheckoutConfigSaveRequestDto, + paymentCheckoutConfigSaveRequestDto ); System.out.println(response); @@ -214,7 +212,7 @@ public class Main { **Return Type** -`ApiMyAccountGetAccountNumberResponseDto` +`MyAccountGetAccountNumberResponseDto` **Example Usage Code Snippet** @@ -222,7 +220,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiMyAccountGetAccountNumberResponseDto; +import com.asaas.apisdk.models.MyAccountGetAccountNumberResponseDto; public class Main { @@ -233,7 +231,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiMyAccountGetAccountNumberResponseDto response = asaasSdk.accountInfo.retrieveAsaasAccountNumber(); + MyAccountGetAccountNumberResponseDto response = asaasSdk.accountInfo.retrieveAsaasAccountNumber(); System.out.println(response); } @@ -248,7 +246,7 @@ public class Main { **Return Type** -`ApiMyAccountGetAccountFeesResponseDto` +`MyAccountGetAccountFeesResponseDto` **Example Usage Code Snippet** @@ -256,7 +254,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiMyAccountGetAccountFeesResponseDto; +import com.asaas.apisdk.models.MyAccountGetAccountFeesResponseDto; public class Main { @@ -267,7 +265,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiMyAccountGetAccountFeesResponseDto response = asaasSdk.accountInfo.retrieveAccountFees(); + MyAccountGetAccountFeesResponseDto response = asaasSdk.accountInfo.retrieveAccountFees(); System.out.println(response); } @@ -282,7 +280,7 @@ public class Main { **Return Type** -`ApiMyAccountGetStatusResponseDto` +`MyAccountGetStatusResponseDto` **Example Usage Code Snippet** @@ -290,7 +288,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiMyAccountGetStatusResponseDto; +import com.asaas.apisdk.models.MyAccountGetStatusResponseDto; public class Main { @@ -301,7 +299,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiMyAccountGetStatusResponseDto response = asaasSdk.accountInfo.checkAccountRegistrationStatus(); + MyAccountGetStatusResponseDto response = asaasSdk.accountInfo.checkAccountRegistrationStatus(); System.out.println(response); } @@ -316,7 +314,7 @@ public class Main { **Return Type** -`ApiWalletShowResponseDto` +`WalletShowResponseDto` **Example Usage Code Snippet** @@ -324,7 +322,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiWalletShowResponseDto; +import com.asaas.apisdk.models.WalletShowResponseDto; public class Main { @@ -335,7 +333,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiWalletShowResponseDto response = asaasSdk.accountInfo.retrieveWalletid(); + WalletShowResponseDto response = asaasSdk.accountInfo.retrieveWalletid(); System.out.println(response); } @@ -356,7 +354,7 @@ public class Main { **Return Type** -`ApiMyAccountDisableAccountResponseDto` +`MyAccountDisableAccountResponseDto` **Example Usage Code Snippet** @@ -364,8 +362,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiMyAccountDisableAccountResponseDto; import com.asaas.apisdk.models.DeleteWhiteLabelSubaccountParameters; +import com.asaas.apisdk.models.MyAccountDisableAccountResponseDto; public class Main { @@ -380,7 +378,7 @@ public class Main { .removeReason("Release data") .build(); - ApiMyAccountDisableAccountResponseDto response = asaasSdk.accountInfo.deleteWhiteLabelSubaccount(requestParameters); + MyAccountDisableAccountResponseDto response = asaasSdk.accountInfo.deleteWhiteLabelSubaccount(requestParameters); System.out.println(response); } diff --git a/documentation/services/AnticipationService.md b/documentation/services/AnticipationService.md index 20b7007..8034de6 100644 --- a/documentation/services/AnticipationService.md +++ b/documentation/services/AnticipationService.md @@ -26,7 +26,7 @@ A list of all methods in the `AnticipationService` service. Click on the method **Return Type** -`ApiReceivableAnticipationGetResponseDto` +`AnticipationGetResponseDto` **Example Usage Code Snippet** @@ -34,7 +34,7 @@ A list of all methods in the `AnticipationService` service. Click on the method import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiReceivableAnticipationGetResponseDto; +import com.asaas.apisdk.models.AnticipationGetResponseDto; public class Main { @@ -45,7 +45,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiReceivableAnticipationGetResponseDto response = asaasSdk.anticipation.retrieveASingleAnticipation("id"); + AnticipationGetResponseDto response = asaasSdk.anticipation.retrieveASingleAnticipation("id"); System.out.println(response); } @@ -66,7 +66,7 @@ public class Main { **Return Type** -`ApiReceivableAnticipationListResponseDto` +`AnticipationListResponseDto` **Example Usage Code Snippet** @@ -74,8 +74,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiReceivableAnticipationListRequestReceivableAnticipationStatus; -import com.asaas.apisdk.models.ApiReceivableAnticipationListResponseDto; +import com.asaas.apisdk.models.AnticipationListRequestAnticipationStatus; +import com.asaas.apisdk.models.AnticipationListResponseDto; import com.asaas.apisdk.models.ListAnticipationsParameters; public class Main { @@ -88,14 +88,14 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListAnticipationsParameters requestParameters = ListAnticipationsParameters.builder() - .offset(1L) + .offset(0L) .limit(10L) .payment("payment") .installment("installment") - .status(ApiReceivableAnticipationListRequestReceivableAnticipationStatus.PENDING) + .status(AnticipationListRequestAnticipationStatus.PENDING) .build(); - ApiReceivableAnticipationListResponseDto response = asaasSdk.anticipation.listAnticipations(requestParameters); + AnticipationListResponseDto response = asaasSdk.anticipation.listAnticipations(requestParameters); System.out.println(response); } @@ -110,14 +110,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :-------------------------------------- | :---------------------------------------------------------------------------------------------- | :------- | :----------------------------- | -| apiReceivableAnticipationSaveRequestDto | [ApiReceivableAnticipationSaveRequestDto](../models/ApiReceivableAnticipationSaveRequestDto.md) | ❌ | Request Body | -| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | +| Name | Type | Required | Description | +| :------------------------- | :-------------------------------------------------------------------- | :------- | :----------------------------- | +| anticipationSaveRequestDto | [AnticipationSaveRequestDto](../models/AnticipationSaveRequestDto.md) | ❌ | Request Body | +| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | **Return Type** -`ApiReceivableAnticipationGetResponseDto` +`AnticipationGetResponseDto` **Example Usage Code Snippet** @@ -125,8 +125,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiReceivableAnticipationGetResponseDto; -import com.asaas.apisdk.models.ApiReceivableAnticipationSaveRequestDto; +import com.asaas.apisdk.models.AnticipationGetResponseDto; +import com.asaas.apisdk.models.AnticipationSaveRequestDto; public class Main { @@ -137,22 +137,20 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiReceivableAnticipationSaveRequestDto apiReceivableAnticipationSaveRequestDto = - ApiReceivableAnticipationSaveRequestDto.builder() - .installment("installment") - .payment("pay_626366773834") - .documents(occaec) - .build(); - ApiReceivableAnticipationSaveRequestDto apiReceivableAnticipationSaveRequestDto = - ApiReceivableAnticipationSaveRequestDto.builder() - .installment("installment") - .payment("pay_626366773834") - .documents(occaec) - .build(); - - ApiReceivableAnticipationGetResponseDto response = asaasSdk.anticipation.requestAnticipation( - apiReceivableAnticipationSaveRequestDto, - apiReceivableAnticipationSaveRequestDto + AnticipationSaveRequestDto anticipationSaveRequestDto = AnticipationSaveRequestDto.builder() + .installment("installment") + .payment("pay_626366773834") + .documents(offic) + .build(); + AnticipationSaveRequestDto anticipationSaveRequestDto = AnticipationSaveRequestDto.builder() + .installment("installment") + .payment("pay_626366773834") + .documents(offic) + .build(); + + AnticipationGetResponseDto response = asaasSdk.anticipation.requestAnticipation( + anticipationSaveRequestDto, + anticipationSaveRequestDto ); System.out.println(response); @@ -168,13 +166,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------------------ | :------------------------------------------------------------------------------------------------------ | :------- | :----------- | -| apiReceivableAnticipationSimulateRequestDto | [ApiReceivableAnticipationSimulateRequestDto](../models/ApiReceivableAnticipationSimulateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :----------------------------- | :---------------------------------------------------------------------------- | :------- | :----------- | +| anticipationSimulateRequestDto | [AnticipationSimulateRequestDto](../models/AnticipationSimulateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiReceivableAnticipationSimulateResponseDto` +`AnticipationSimulateResponseDto` **Example Usage Code Snippet** @@ -182,8 +180,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiReceivableAnticipationSimulateRequestDto; -import com.asaas.apisdk.models.ApiReceivableAnticipationSimulateResponseDto; +import com.asaas.apisdk.models.AnticipationSimulateRequestDto; +import com.asaas.apisdk.models.AnticipationSimulateResponseDto; public class Main { @@ -194,14 +192,13 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiReceivableAnticipationSimulateRequestDto apiReceivableAnticipationSimulateRequestDto = - ApiReceivableAnticipationSimulateRequestDto.builder() - .installment("installment") - .payment("pay_626366773834") - .build(); + AnticipationSimulateRequestDto anticipationSimulateRequestDto = AnticipationSimulateRequestDto.builder() + .installment("installment") + .payment("pay_626366773834") + .build(); - ApiReceivableAnticipationSimulateResponseDto response = asaasSdk.anticipation.simulateAnticipation( - apiReceivableAnticipationSimulateRequestDto + AnticipationSimulateResponseDto response = asaasSdk.anticipation.simulateAnticipation( + anticipationSimulateRequestDto ); System.out.println(response); @@ -217,7 +214,7 @@ public class Main { **Return Type** -`ApiReceivableAnticipationConfigurationGetResponseDto` +`AnticipationConfigurationGetResponseDto` **Example Usage Code Snippet** @@ -225,7 +222,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiReceivableAnticipationConfigurationGetResponseDto; +import com.asaas.apisdk.models.AnticipationConfigurationGetResponseDto; public class Main { @@ -236,8 +233,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiReceivableAnticipationConfigurationGetResponseDto response = - asaasSdk.anticipation.retrieveStatusOfAutomaticAnticipation(); + AnticipationConfigurationGetResponseDto response = asaasSdk.anticipation.retrieveStatusOfAutomaticAnticipation(); System.out.println(response); } @@ -252,13 +248,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :----------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------- | :------- | :----------- | -| apiReceivableAnticipationConfigurationUpdateRequestDto | [ApiReceivableAnticipationConfigurationUpdateRequestDto](../models/ApiReceivableAnticipationConfigurationUpdateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------------------------- | :-------------------------------------------------------------------------------------------------- | :------- | :----------- | +| anticipationConfigurationUpdateRequestDto | [AnticipationConfigurationUpdateRequestDto](../models/AnticipationConfigurationUpdateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiReceivableAnticipationConfigurationGetResponseDto` +`AnticipationConfigurationGetResponseDto` **Example Usage Code Snippet** @@ -266,8 +262,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiReceivableAnticipationConfigurationGetResponseDto; -import com.asaas.apisdk.models.ApiReceivableAnticipationConfigurationUpdateRequestDto; +import com.asaas.apisdk.models.AnticipationConfigurationGetResponseDto; +import com.asaas.apisdk.models.AnticipationConfigurationUpdateRequestDto; public class Main { @@ -278,11 +274,12 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiReceivableAnticipationConfigurationUpdateRequestDto apiReceivableAnticipationConfigurationUpdateRequestDto = - ApiReceivableAnticipationConfigurationUpdateRequestDto.builder().creditCardAutomaticEnabled(true).build(); + AnticipationConfigurationUpdateRequestDto anticipationConfigurationUpdateRequestDto = + AnticipationConfigurationUpdateRequestDto.builder().creditCardAutomaticEnabled(true).build(); - ApiReceivableAnticipationConfigurationGetResponseDto response = - asaasSdk.anticipation.updateStatusOfAutomaticAnticipation(apiReceivableAnticipationConfigurationUpdateRequestDto); + AnticipationConfigurationGetResponseDto response = asaasSdk.anticipation.updateStatusOfAutomaticAnticipation( + anticipationConfigurationUpdateRequestDto + ); System.out.println(response); } @@ -297,7 +294,7 @@ public class Main { **Return Type** -`ApiReceivableAnticipationLimitsResponseDto` +`AnticipationLimitsResponseDto` **Example Usage Code Snippet** @@ -305,7 +302,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiReceivableAnticipationLimitsResponseDto; +import com.asaas.apisdk.models.AnticipationLimitsResponseDto; public class Main { @@ -316,7 +313,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiReceivableAnticipationLimitsResponseDto response = asaasSdk.anticipation.retrieveAnticipationLimits(); + AnticipationLimitsResponseDto response = asaasSdk.anticipation.retrieveAnticipationLimits(); System.out.println(response); } @@ -338,7 +335,7 @@ public class Main { **Return Type** -`ApiReceivableAnticipationGetResponseDto` +`AnticipationGetResponseDto` **Example Usage Code Snippet** @@ -346,7 +343,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiReceivableAnticipationGetResponseDto; +import com.asaas.apisdk.models.AnticipationGetResponseDto; public class Main { @@ -357,7 +354,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiReceivableAnticipationGetResponseDto response = asaasSdk.anticipation.cancelAnticipation("id", new Object()); + AnticipationGetResponseDto response = asaasSdk.anticipation.cancelAnticipation("id", new Object()); System.out.println(response); } diff --git a/documentation/services/BillService.md b/documentation/services/BillService.md index 79d0a00..60644b3 100644 --- a/documentation/services/BillService.md +++ b/documentation/services/BillService.md @@ -23,7 +23,7 @@ A list of all methods in the `BillService` service. Click on the method name to **Return Type** -`ApiBillListResponseDto` +`BillListResponseDto` **Example Usage Code Snippet** @@ -31,7 +31,7 @@ A list of all methods in the `BillService` service. Click on the method name to import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiBillListResponseDto; +import com.asaas.apisdk.models.BillListResponseDto; import com.asaas.apisdk.models.ListBillPaymentsParameters; public class Main { @@ -45,7 +45,7 @@ public class Main { ListBillPaymentsParameters requestParameters = ListBillPaymentsParameters.builder().offset(4L).limit(10L).build(); - ApiBillListResponseDto response = asaasSdk.bill.listBillPayments(requestParameters); + BillListResponseDto response = asaasSdk.bill.listBillPayments(requestParameters); System.out.println(response); } @@ -60,13 +60,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :-------------------- | :---------------------------------------------------------- | :------- | :----------- | -| apiBillSaveRequestDto | [ApiBillSaveRequestDto](../models/ApiBillSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :----------------- | :---------------------------------------------------- | :------- | :----------- | +| billSaveRequestDto | [BillSaveRequestDto](../models/BillSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiBillGetResponseDto` +`BillGetResponseDto` **Example Usage Code Snippet** @@ -74,8 +74,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiBillGetResponseDto; -import com.asaas.apisdk.models.ApiBillSaveRequestDto; +import com.asaas.apisdk.models.BillGetResponseDto; +import com.asaas.apisdk.models.BillSaveRequestDto; public class Main { @@ -86,19 +86,19 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiBillSaveRequestDto apiBillSaveRequestDto = ApiBillSaveRequestDto.builder() + BillSaveRequestDto billSaveRequestDto = BillSaveRequestDto.builder() .identificationField("03399.77779 29900.000000 04751.101017 1 81510000002990") .scheduleDate("2020-03-15") .description("Celular 03/12") - .discount(2.88D) - .interest(4.04D) - .fine(0.74D) + .discount(4.52D) + .interest(3.73D) + .fine(0.02D) .dueDate("2020-03-30") .value(29D) .externalReference("056984") .build(); - ApiBillGetResponseDto response = asaasSdk.bill.createABillPayment(apiBillSaveRequestDto); + BillGetResponseDto response = asaasSdk.bill.createABillPayment(billSaveRequestDto); System.out.println(response); } @@ -113,13 +113,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------ | :------------------------------------------------------------------ | :------- | :----------- | -| apiBillSimulateRequestDto | [ApiBillSimulateRequestDto](../models/ApiBillSimulateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :--------------------- | :------------------------------------------------------------ | :------- | :----------- | +| billSimulateRequestDto | [BillSimulateRequestDto](../models/BillSimulateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiBillSimulateResponseDto` +`BillSimulateResponseDto` **Example Usage Code Snippet** @@ -127,8 +127,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiBillSimulateRequestDto; -import com.asaas.apisdk.models.ApiBillSimulateResponseDto; +import com.asaas.apisdk.models.BillSimulateRequestDto; +import com.asaas.apisdk.models.BillSimulateResponseDto; public class Main { @@ -139,12 +139,12 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiBillSimulateRequestDto apiBillSimulateRequestDto = ApiBillSimulateRequestDto.builder() + BillSimulateRequestDto billSimulateRequestDto = BillSimulateRequestDto.builder() .identificationField("03399.77779 29900.000000 04751.101017 1 81510000002990") .barCode("barCode") .build(); - ApiBillSimulateResponseDto response = asaasSdk.bill.simulateABillPayment(apiBillSimulateRequestDto); + BillSimulateResponseDto response = asaasSdk.bill.simulateABillPayment(billSimulateRequestDto); System.out.println(response); } @@ -165,7 +165,7 @@ public class Main { **Return Type** -`ApiBillGetResponseDto` +`BillGetResponseDto` **Example Usage Code Snippet** @@ -173,7 +173,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiBillGetResponseDto; +import com.asaas.apisdk.models.BillGetResponseDto; public class Main { @@ -184,7 +184,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiBillGetResponseDto response = asaasSdk.bill.retrieveASingleBillPayment("f1bce822-6f37-4905-8de8-f1af9f2f4bab"); + BillGetResponseDto response = asaasSdk.bill.retrieveASingleBillPayment("f1bce822-6f37-4905-8de8-f1af9f2f4bab"); System.out.println(response); } @@ -208,7 +208,7 @@ Allows canceling the bill payment. Use the `canBeCancelled` property of the `bil **Return Type** -`ApiBillGetResponseDto` +`BillGetResponseDto` **Example Usage Code Snippet** @@ -216,7 +216,7 @@ Allows canceling the bill payment. Use the `canBeCancelled` property of the `bil import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiBillGetResponseDto; +import com.asaas.apisdk.models.BillGetResponseDto; public class Main { @@ -227,10 +227,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiBillGetResponseDto response = asaasSdk.bill.cancelBillPayment( - "1bce822-6f37-4905-8de8-f1af9f2f4bab", - new Object() - ); + BillGetResponseDto response = asaasSdk.bill.cancelBillPayment("1bce822-6f37-4905-8de8-f1af9f2f4bab", new Object()); System.out.println(response); } diff --git a/documentation/services/ChargebackService.md b/documentation/services/ChargebackService.md index fed8e60..4cee083 100644 --- a/documentation/services/ChargebackService.md +++ b/documentation/services/ChargebackService.md @@ -15,15 +15,15 @@ A list of all methods in the `ChargebackService` service. Click on the method na **Parameters** -| Name | Type | Required | Description | -| :--------------------------------- | :------------------------------------------------------------------------------------ | :------- | :--------------------------------------------------------------------- | -| id | String | ✅ | Unique identifier of chargeback for which the dispute will be created. | -| apiChargebackSaveDisputeRequestDto | [ApiChargebackSaveDisputeRequestDto](../models/ApiChargebackSaveDisputeRequestDto.md) | ❌ | Request Body | -| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | +| Name | Type | Required | Description | +| :------------------------------ | :------------------------------------------------------------------------------ | :------- | :--------------------------------------------------------------------- | +| id | String | ✅ | Unique identifier of chargeback for which the dispute will be created. | +| chargebackSaveDisputeRequestDto | [ChargebackSaveDisputeRequestDto](../models/ChargebackSaveDisputeRequestDto.md) | ❌ | Request Body | +| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | **Return Type** -`ApiChargebackSaveDisputeResponseDto` +`ChargebackSaveDisputeResponseDto` **Example Usage Code Snippet** @@ -31,8 +31,8 @@ A list of all methods in the `ChargebackService` service. Click on the method na import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiChargebackSaveDisputeRequestDto; -import com.asaas.apisdk.models.ApiChargebackSaveDisputeResponseDto; +import com.asaas.apisdk.models.ChargebackSaveDisputeRequestDto; +import com.asaas.apisdk.models.ChargebackSaveDisputeResponseDto; public class Main { @@ -43,17 +43,17 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiChargebackSaveDisputeRequestDto apiChargebackSaveDisputeRequestDto = ApiChargebackSaveDisputeRequestDto.builder() + ChargebackSaveDisputeRequestDto chargebackSaveDisputeRequestDto = ChargebackSaveDisputeRequestDto.builder() .files(files) .build(); - ApiChargebackSaveDisputeRequestDto apiChargebackSaveDisputeRequestDto = ApiChargebackSaveDisputeRequestDto.builder() + ChargebackSaveDisputeRequestDto chargebackSaveDisputeRequestDto = ChargebackSaveDisputeRequestDto.builder() .files(files) .build(); - ApiChargebackSaveDisputeResponseDto response = asaasSdk.chargeback.createAChargebackDispute( + ChargebackSaveDisputeResponseDto response = asaasSdk.chargeback.createAChargebackDispute( "8e784c3e-afe8-4844-bb93-6b445763", - apiChargebackSaveDisputeRequestDto, - apiChargebackSaveDisputeRequestDto + chargebackSaveDisputeRequestDto, + chargebackSaveDisputeRequestDto ); System.out.println(response); @@ -77,7 +77,7 @@ This method returns a paginated list of all chargebacks for the specified filter **Return Type** -`ApiChargebackListResponseDto` +`ChargebackListResponseDto` **Example Usage Code Snippet** @@ -85,9 +85,9 @@ This method returns a paginated list of all chargebacks for the specified filter import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiChargebackListRequestChargebackStatus; -import com.asaas.apisdk.models.ApiChargebackListRequestCreditCardBrand; -import com.asaas.apisdk.models.ApiChargebackListResponseDto; +import com.asaas.apisdk.models.ChargebackListRequestChargebackStatus; +import com.asaas.apisdk.models.ChargebackListRequestCreditCardBrand; +import com.asaas.apisdk.models.ChargebackListResponseDto; import com.asaas.apisdk.models.ListChargebacksParameters; public class Main { @@ -100,17 +100,17 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListChargebacksParameters requestParameters = ListChargebacksParameters.builder() - .offset(4L) + .offset(9L) .limit(10L) - .creditCardBrand(ApiChargebackListRequestCreditCardBrand.VISA) + .creditCardBrand(ChargebackListRequestCreditCardBrand.VISA) .originDisputeDateLe("2024-12-05") .originDisputeDateGe("2023-11-01") .originTransactionDateLe("2024-12-05") .originTransactionDateGe("2024-10-10") - .status(ApiChargebackListRequestChargebackStatus.REQUESTED) + .status(ChargebackListRequestChargebackStatus.REQUESTED) .build(); - ApiChargebackListResponseDto response = asaasSdk.chargeback.listChargebacks(requestParameters); + ChargebackListResponseDto response = asaasSdk.chargeback.listChargebacks(requestParameters); System.out.println(response); } @@ -133,7 +133,7 @@ This endpoint retrieves a specific chargeback based on the payment or installmen **Return Type** -`ApiPaymentChargebackResponseDto` +`PaymentChargebackResponseDto` **Example Usage Code Snippet** @@ -141,7 +141,7 @@ This endpoint retrieves a specific chargeback based on the payment or installmen import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentChargebackResponseDto; +import com.asaas.apisdk.models.PaymentChargebackResponseDto; public class Main { @@ -152,7 +152,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentChargebackResponseDto response = asaasSdk.chargeback.retrieveASingleChargeback("pay_s02s330x4pox1x0y"); + PaymentChargebackResponseDto response = asaasSdk.chargeback.retrieveASingleChargeback("pay_s02s330x4pox1x0y"); System.out.println(response); } diff --git a/documentation/services/CheckoutService.md b/documentation/services/CheckoutService.md index b50815c..536343d 100644 --- a/documentation/services/CheckoutService.md +++ b/documentation/services/CheckoutService.md @@ -14,13 +14,13 @@ A list of all methods in the `CheckoutService` service. Click on the method name **Parameters** -| Name | Type | Required | Description | -| :------------------------------- | :-------------------------------------------------------------------------------- | :------- | :----------- | -| apiCheckoutSessionSaveRequestDto | [ApiCheckoutSessionSaveRequestDto](../models/ApiCheckoutSessionSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------------- | :-------------------------------------------------------------------------- | :------- | :----------- | +| checkoutSessionSaveRequestDto | [CheckoutSessionSaveRequestDto](../models/CheckoutSessionSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCheckoutSessionResponseDto` +`CheckoutSessionResponseDto` **Example Usage Code Snippet** @@ -28,15 +28,17 @@ A list of all methods in the `CheckoutService` service. Click on the method name import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCheckoutSessionCallbackDto; -import com.asaas.apisdk.models.ApiCheckoutSessionCustomerDataDto; -import com.asaas.apisdk.models.ApiCheckoutSessionInstallmentDto; -import com.asaas.apisdk.models.ApiCheckoutSessionItemsDto; -import com.asaas.apisdk.models.ApiCheckoutSessionResponseDto; -import com.asaas.apisdk.models.ApiCheckoutSessionSaveRequestDto; -import com.asaas.apisdk.models.ApiCheckoutSessionSplitDto; -import com.asaas.apisdk.models.ApiCheckoutSessionSubscriptionCycle; -import com.asaas.apisdk.models.ApiCheckoutSessionSubscriptionDto; +import com.asaas.apisdk.models.CheckoutSessionCallbackDto; +import com.asaas.apisdk.models.CheckoutSessionCustomerDataDto; +import com.asaas.apisdk.models.CheckoutSessionInstallmentDto; +import com.asaas.apisdk.models.CheckoutSessionItemsDto; +import com.asaas.apisdk.models.CheckoutSessionResponseDto; +import com.asaas.apisdk.models.CheckoutSessionSaveRequestBillingType; +import com.asaas.apisdk.models.CheckoutSessionSaveRequestChargeType; +import com.asaas.apisdk.models.CheckoutSessionSaveRequestDto; +import com.asaas.apisdk.models.CheckoutSessionSplitDto; +import com.asaas.apisdk.models.CheckoutSessionSubscriptionCycle; +import com.asaas.apisdk.models.CheckoutSessionSubscriptionDto; import java.util.Arrays; import java.util.List; @@ -52,17 +54,17 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - List billingTypesList = Arrays.asList("billingTypes"); + List billingTypesList = Arrays.asList(CheckoutSessionSaveRequestBillingType.CREDIT_CARD); - List chargeTypesList = Arrays.asList("chargeTypes"); + List chargeTypesList = Arrays.asList(CheckoutSessionSaveRequestChargeType.DETACHED); - ApiCheckoutSessionCallbackDto apiCheckoutSessionCallbackDto = ApiCheckoutSessionCallbackDto.builder() + CheckoutSessionCallbackDto checkoutSessionCallbackDto = CheckoutSessionCallbackDto.builder() .successUrl("https://example.com/asaas/checkout/success") .cancelUrl("https://example.com/asaas/checkout/cancel") .expiredUrl("https://example.com/asaas/checkout/expired") .build(); - ApiCheckoutSessionItemsDto apiCheckoutSessionItemsDto = ApiCheckoutSessionItemsDto.builder() + CheckoutSessionItemsDto checkoutSessionItemsDto = CheckoutSessionItemsDto.builder() .description("Camisetas") .imageBase64("IMAGE IN BASE64") .name("Roupas") @@ -70,9 +72,9 @@ public class Main { .value(100D) .build(); - List itemsList = Arrays.asList(apiCheckoutSessionItemsDto); + List itemsList = Arrays.asList(checkoutSessionItemsDto); - ApiCheckoutSessionCustomerDataDto apiCheckoutSessionCustomerDataDto = ApiCheckoutSessionCustomerDataDto.builder() + CheckoutSessionCustomerDataDto checkoutSessionCustomerDataDto = CheckoutSessionCustomerDataDto.builder() .name("John Doe") .cpfCnpj("24971563792") .email("john.doe@asaas.com.br") @@ -85,38 +87,38 @@ public class Main { .city(12987382L) .build(); - ApiCheckoutSessionSubscriptionDto apiCheckoutSessionSubscriptionDto = ApiCheckoutSessionSubscriptionDto.builder() - .cycle(ApiCheckoutSessionSubscriptionCycle.WEEKLY) + CheckoutSessionSubscriptionDto checkoutSessionSubscriptionDto = CheckoutSessionSubscriptionDto.builder() + .cycle(CheckoutSessionSubscriptionCycle.WEEKLY) .endDate("2025-01-01") .nextDueDate("2025-01-01") .build(); - ApiCheckoutSessionInstallmentDto apiCheckoutSessionInstallmentDto = ApiCheckoutSessionInstallmentDto.builder() + CheckoutSessionInstallmentDto checkoutSessionInstallmentDto = CheckoutSessionInstallmentDto.builder() .maxInstallmentCount(1L) .build(); - ApiCheckoutSessionSplitDto apiCheckoutSessionSplitDto = ApiCheckoutSessionSplitDto.builder() + CheckoutSessionSplitDto checkoutSessionSplitDto = CheckoutSessionSplitDto.builder() .walletId("7bafd95a-e783-4a62-9be1-23999af742c6") .fixedValue(Comissão referente ao serviço utilizadoD) .percentageValue(10D) .totalFixedValue(15D) .build(); - List splitsList = Arrays.asList(apiCheckoutSessionSplitDto); + List splitsList = Arrays.asList(checkoutSessionSplitDto); - ApiCheckoutSessionSaveRequestDto apiCheckoutSessionSaveRequestDto = ApiCheckoutSessionSaveRequestDto.builder() + CheckoutSessionSaveRequestDto checkoutSessionSaveRequestDto = CheckoutSessionSaveRequestDto.builder() .billingTypes(billingTypesList) .chargeTypes(chargeTypesList) .minutesToExpire(10L) - .callback(apiCheckoutSessionCallbackDto) + .callback(checkoutSessionCallbackDto) .items(itemsList) - .customerData(apiCheckoutSessionCustomerDataDto) - .subscription(apiCheckoutSessionSubscriptionDto) - .installment(apiCheckoutSessionInstallmentDto) + .customerData(checkoutSessionCustomerDataDto) + .subscription(checkoutSessionSubscriptionDto) + .installment(checkoutSessionInstallmentDto) .splits(splitsList) .build(); - ApiCheckoutSessionResponseDto response = asaasSdk.checkout.createNewCheckout(apiCheckoutSessionSaveRequestDto); + CheckoutSessionResponseDto response = asaasSdk.checkout.createNewCheckout(checkoutSessionSaveRequestDto); System.out.println(response); } @@ -137,7 +139,7 @@ public class Main { **Return Type** -`ApiCheckoutSessionResponseDto` +`CheckoutSessionResponseDto` **Example Usage Code Snippet** @@ -145,7 +147,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCheckoutSessionResponseDto; +import com.asaas.apisdk.models.CheckoutSessionResponseDto; public class Main { @@ -156,7 +158,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCheckoutSessionResponseDto response = asaasSdk.checkout.cancelACheckout( + CheckoutSessionResponseDto response = asaasSdk.checkout.cancelACheckout( "131ca662-56c8-4479-b5b3-fd61a413fce7", new Object() ); diff --git a/documentation/services/CreditBureauReportService.md b/documentation/services/CreditBureauReportService.md index e782338..f0f21b1 100644 --- a/documentation/services/CreditBureauReportService.md +++ b/documentation/services/CreditBureauReportService.md @@ -21,7 +21,7 @@ A list of all methods in the `CreditBureauReportService` service. Click on the m **Return Type** -`ApiCreditBureauReportListResponseDto` +`CreditBureauReportListResponseDto` **Example Usage Code Snippet** @@ -29,7 +29,7 @@ A list of all methods in the `CreditBureauReportService` service. Click on the m import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCreditBureauReportListResponseDto; +import com.asaas.apisdk.models.CreditBureauReportListResponseDto; import com.asaas.apisdk.models.ListCreditBureauReportsParameters; public class Main { @@ -42,15 +42,13 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListCreditBureauReportsParameters requestParameters = ListCreditBureauReportsParameters.builder() - .offset(3L) + .offset(0L) .limit(10L) .startDate("startDate") .endDate("endDate") .build(); - ApiCreditBureauReportListResponseDto response = asaasSdk.creditBureauReport.listCreditBureauReports( - requestParameters - ); + CreditBureauReportListResponseDto response = asaasSdk.creditBureauReport.listCreditBureauReports(requestParameters); System.out.println(response); } @@ -65,13 +63,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :---------------------------------- | :-------------------------------------------------------------------------------------- | :------- | :----------- | -| apiCreditBureauReportSaveRequestDto | [ApiCreditBureauReportSaveRequestDto](../models/ApiCreditBureauReportSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------------- | :-------------------------------------------------------------------------------- | :------- | :----------- | +| creditBureauReportSaveRequestDto | [CreditBureauReportSaveRequestDto](../models/CreditBureauReportSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCreditBureauReportGetResponseDto` +`CreditBureauReportGetResponseDto` **Example Usage Code Snippet** @@ -79,8 +77,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCreditBureauReportGetResponseDto; -import com.asaas.apisdk.models.ApiCreditBureauReportSaveRequestDto; +import com.asaas.apisdk.models.CreditBureauReportGetResponseDto; +import com.asaas.apisdk.models.CreditBureauReportSaveRequestDto; public class Main { @@ -91,11 +89,13 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCreditBureauReportSaveRequestDto apiCreditBureauReportSaveRequestDto = - ApiCreditBureauReportSaveRequestDto.builder().customer("customer").cpfCnpj("05666663755").build(); + CreditBureauReportSaveRequestDto creditBureauReportSaveRequestDto = CreditBureauReportSaveRequestDto.builder() + .customer("customer") + .cpfCnpj("05666663755") + .build(); - ApiCreditBureauReportGetResponseDto response = asaasSdk.creditBureauReport.makeConsultation( - apiCreditBureauReportSaveRequestDto + CreditBureauReportGetResponseDto response = asaasSdk.creditBureauReport.makeConsultation( + creditBureauReportSaveRequestDto ); System.out.println(response); @@ -117,7 +117,7 @@ public class Main { **Return Type** -`ApiCreditBureauReportGetResponseDto` +`CreditBureauReportGetResponseDto` **Example Usage Code Snippet** @@ -125,7 +125,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCreditBureauReportGetResponseDto; +import com.asaas.apisdk.models.CreditBureauReportGetResponseDto; public class Main { @@ -136,7 +136,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCreditBureauReportGetResponseDto response = asaasSdk.creditBureauReport.retrieveACreditBureauReport( + CreditBureauReportGetResponseDto response = asaasSdk.creditBureauReport.retrieveACreditBureauReport( "6c5e73fa-9efd-4a75-b60c-1cafb8d1c7ed" ); diff --git a/documentation/services/CreditCardService.md b/documentation/services/CreditCardService.md index b7097c4..e63a7a4 100644 --- a/documentation/services/CreditCardService.md +++ b/documentation/services/CreditCardService.md @@ -13,13 +13,13 @@ A list of all methods in the `CreditCardService` service. Click on the method na **Parameters** -| Name | Type | Required | Description | -| :------------------------------ | :------------------------------------------------------------------------------ | :------- | :----------- | -| apiCreditCardTokenizeRequestDto | [ApiCreditCardTokenizeRequestDto](../models/ApiCreditCardTokenizeRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :--------------------------- | :------------------------------------------------------------------------ | :------- | :----------- | +| creditCardTokenizeRequestDto | [CreditCardTokenizeRequestDto](../models/CreditCardTokenizeRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCreditCardTokenizeResponseDto` +`CreditCardTokenizeResponseDto` **Example Usage Code Snippet** @@ -27,10 +27,10 @@ A list of all methods in the `CreditCardService` service. Click on the method na import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCreditCardHolderInfoRequestDto; -import com.asaas.apisdk.models.ApiCreditCardRequestDto; -import com.asaas.apisdk.models.ApiCreditCardTokenizeRequestDto; -import com.asaas.apisdk.models.ApiCreditCardTokenizeResponseDto; +import com.asaas.apisdk.models.CreditCardHolderInfoRequestDto; +import com.asaas.apisdk.models.CreditCardRequestDto; +import com.asaas.apisdk.models.CreditCardTokenizeRequestDto; +import com.asaas.apisdk.models.CreditCardTokenizeResponseDto; public class Main { @@ -41,15 +41,15 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCreditCardRequestDto apiCreditCardRequestDto = ApiCreditCardRequestDto.builder() + CreditCardRequestDto creditCardRequestDto = CreditCardRequestDto.builder() .holderName("John Doe") .number("1234567890123456") - .expiryMonth("6") + .expiryMonth("7") .expiryYear("2025") .ccv("123") .build(); - ApiCreditCardHolderInfoRequestDto apiCreditCardHolderInfoRequestDto = ApiCreditCardHolderInfoRequestDto.builder() + CreditCardHolderInfoRequestDto creditCardHolderInfoRequestDto = CreditCardHolderInfoRequestDto.builder() .name("John Doe") .email("john.doe@asaas.com") .cpfCnpj("12345678901") @@ -60,16 +60,14 @@ public class Main { .mobilePhone("mobilePhone") .build(); - ApiCreditCardTokenizeRequestDto apiCreditCardTokenizeRequestDto = ApiCreditCardTokenizeRequestDto.builder() + CreditCardTokenizeRequestDto creditCardTokenizeRequestDto = CreditCardTokenizeRequestDto.builder() .customer("cus_G7Dvo4iphUNk") - .creditCard(apiCreditCardRequestDto) - .creditCardHolderInfo(apiCreditCardHolderInfoRequestDto) + .creditCard(creditCardRequestDto) + .creditCardHolderInfo(creditCardHolderInfoRequestDto) .remoteIp("116.213.42.532") .build(); - ApiCreditCardTokenizeResponseDto response = asaasSdk.creditCard.creditCardTokenization( - apiCreditCardTokenizeRequestDto - ); + CreditCardTokenizeResponseDto response = asaasSdk.creditCard.creditCardTokenization(creditCardTokenizeRequestDto); System.out.println(response); } diff --git a/documentation/services/CustomerService.md b/documentation/services/CustomerService.md index 5ea3626..c552ae1 100644 --- a/documentation/services/CustomerService.md +++ b/documentation/services/CustomerService.md @@ -25,7 +25,7 @@ A list of all methods in the `CustomerService` service. Click on the method name **Return Type** -`ApiCustomerAccountListResponseDto` +`CustomerListResponseDto` **Example Usage Code Snippet** @@ -33,7 +33,7 @@ A list of all methods in the `CustomerService` service. Click on the method name import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerAccountListResponseDto; +import com.asaas.apisdk.models.CustomerListResponseDto; import com.asaas.apisdk.models.ListCustomersParameters; public class Main { @@ -55,7 +55,7 @@ public class Main { .externalReference("externalReference") .build(); - ApiCustomerAccountListResponseDto response = asaasSdk.customer.listCustomers(requestParameters); + CustomerListResponseDto response = asaasSdk.customer.listCustomers(requestParameters); System.out.println(response); } @@ -70,13 +70,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------- | :-------------------------------------------------------------------------------- | :------- | :----------- | -| apiCustomerAccountSaveRequestDto | [ApiCustomerAccountSaveRequestDto](../models/ApiCustomerAccountSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :--------------------- | :------------------------------------------------------------ | :------- | :----------- | +| customerSaveRequestDto | [CustomerSaveRequestDto](../models/CustomerSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCustomerAccountGetResponseDto` +`CustomerGetResponseDto` **Example Usage Code Snippet** @@ -84,8 +84,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerAccountGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerAccountSaveRequestDto; +import com.asaas.apisdk.models.CustomerGetResponseDto; +import com.asaas.apisdk.models.CustomerSaveRequestDto; public class Main { @@ -96,7 +96,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerAccountSaveRequestDto apiCustomerAccountSaveRequestDto = ApiCustomerAccountSaveRequestDto.builder() + CustomerSaveRequestDto customerSaveRequestDto = CustomerSaveRequestDto.builder() .name("John Doe") .cpfCnpj("24971563792") .email("john.doe@asaas.com.br") @@ -118,7 +118,7 @@ public class Main { .foreignCustomer(false) .build(); - ApiCustomerAccountGetResponseDto response = asaasSdk.customer.createNewCustomer(apiCustomerAccountSaveRequestDto); + CustomerGetResponseDto response = asaasSdk.customer.createNewCustomer(customerSaveRequestDto); System.out.println(response); } @@ -139,7 +139,7 @@ public class Main { **Return Type** -`ApiCustomerAccountGetResponseDto` +`CustomerGetResponseDto` **Example Usage Code Snippet** @@ -147,7 +147,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerAccountGetResponseDto; +import com.asaas.apisdk.models.CustomerGetResponseDto; public class Main { @@ -158,7 +158,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerAccountGetResponseDto response = asaasSdk.customer.retrieveASingleCustomer("cus_000005401844"); + CustomerGetResponseDto response = asaasSdk.customer.retrieveASingleCustomer("cus_000005401844"); System.out.println(response); } @@ -173,14 +173,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :--------------------------------- | :------------------------------------------------------------------------------------ | :------- | :----------------------------------------------- | -| id | String | ✅ | Unique identifier of the customer to be updated. | -| apiCustomerAccountUpdateRequestDto | [ApiCustomerAccountUpdateRequestDto](../models/ApiCustomerAccountUpdateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :----------------------- | :---------------------------------------------------------------- | :------- | :----------------------------------------------- | +| id | String | ✅ | Unique identifier of the customer to be updated. | +| customerUpdateRequestDto | [CustomerUpdateRequestDto](../models/CustomerUpdateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCustomerAccountGetResponseDto` +`CustomerGetResponseDto` **Example Usage Code Snippet** @@ -188,8 +188,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerAccountGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerAccountUpdateRequestDto; +import com.asaas.apisdk.models.CustomerGetResponseDto; +import com.asaas.apisdk.models.CustomerUpdateRequestDto; public class Main { @@ -200,7 +200,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerAccountUpdateRequestDto apiCustomerAccountUpdateRequestDto = ApiCustomerAccountUpdateRequestDto.builder() + CustomerUpdateRequestDto customerUpdateRequestDto = CustomerUpdateRequestDto.builder() .name("John Doe") .cpfCnpj("24971563792") .email("john.doe@asaas.com.br") @@ -222,9 +222,9 @@ public class Main { .foreignCustomer(true) .build(); - ApiCustomerAccountGetResponseDto response = asaasSdk.customer.updateExistingCustomer( + CustomerGetResponseDto response = asaasSdk.customer.updateExistingCustomer( "cus_000005401844", - apiCustomerAccountUpdateRequestDto + customerUpdateRequestDto ); System.out.println(response); @@ -246,7 +246,7 @@ public class Main { **Return Type** -`ApiCustomerAccountDeleteResponseDto` +`CustomerDeleteResponseDto` **Example Usage Code Snippet** @@ -254,7 +254,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerAccountDeleteResponseDto; +import com.asaas.apisdk.models.CustomerDeleteResponseDto; public class Main { @@ -265,7 +265,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerAccountDeleteResponseDto response = asaasSdk.customer.removeCustomer("cus_000005401844"); + CustomerDeleteResponseDto response = asaasSdk.customer.removeCustomer("cus_000005401844"); System.out.println(response); } @@ -287,7 +287,7 @@ public class Main { **Return Type** -`ApiCustomerAccountGetResponseDto` +`CustomerGetResponseDto` **Example Usage Code Snippet** @@ -295,7 +295,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerAccountGetResponseDto; +import com.asaas.apisdk.models.CustomerGetResponseDto; public class Main { @@ -306,10 +306,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerAccountGetResponseDto response = asaasSdk.customer.restoreRemovedCustomer( - "cus_000005401844", - new Object() - ); + CustomerGetResponseDto response = asaasSdk.customer.restoreRemovedCustomer("cus_000005401844", new Object()); System.out.println(response); } @@ -330,7 +327,7 @@ public class Main { **Return Type** -`ApiNotificationListResponseDto` +`NotificationListResponseDto` **Example Usage Code Snippet** @@ -338,7 +335,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiNotificationListResponseDto; +import com.asaas.apisdk.models.NotificationListResponseDto; public class Main { @@ -349,7 +346,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiNotificationListResponseDto response = asaasSdk.customer.retrieveNotificationsFromACustomer("cus_000005401844"); + NotificationListResponseDto response = asaasSdk.customer.retrieveNotificationsFromACustomer("cus_000005401844"); System.out.println(response); } diff --git a/documentation/services/EscrowAccountService.md b/documentation/services/EscrowAccountService.md index c2fb655..3db3f80 100644 --- a/documentation/services/EscrowAccountService.md +++ b/documentation/services/EscrowAccountService.md @@ -20,7 +20,7 @@ A list of all methods in the `EscrowAccountService` service. Click on the method **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -28,7 +28,7 @@ A list of all methods in the `EscrowAccountService` service. Click on the method import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; public class Main { @@ -39,7 +39,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentGetResponseDto response = asaasSdk.escrowAccount.finishPaymentEscrowInTheEscrowAccount( + PaymentGetResponseDto response = asaasSdk.escrowAccount.finishPaymentEscrowInTheEscrowAccount( "4f468235-cec3-482f-b3d0-348af4c7194", new Object() ); diff --git a/documentation/services/FinanceService.md b/documentation/services/FinanceService.md index 643faa1..34af6ab 100644 --- a/documentation/services/FinanceService.md +++ b/documentation/services/FinanceService.md @@ -15,7 +15,7 @@ A list of all methods in the `FinanceService` service. Click on the method name **Return Type** -`ApiFinanceBalanceResponseDto` +`FinanceBalanceResponseDto` **Example Usage Code Snippet** @@ -23,7 +23,7 @@ A list of all methods in the `FinanceService` service. Click on the method name import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiFinanceBalanceResponseDto; +import com.asaas.apisdk.models.FinanceBalanceResponseDto; public class Main { @@ -34,7 +34,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiFinanceBalanceResponseDto response = asaasSdk.finance.retrieveAccountBalance(); + FinanceBalanceResponseDto response = asaasSdk.finance.retrieveAccountBalance(); System.out.println(response); } @@ -57,7 +57,7 @@ Return total values of charges from your Asaas account according to the provided **Return Type** -`ApiFinanceGetPaymentStatisticsResponseDto` +`FinanceGetPaymentStatisticsResponseDto` **Example Usage Code Snippet** @@ -65,10 +65,10 @@ Return total values of charges from your Asaas account according to the provided import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiFinanceGetPaymentStatisticsRequestBillingType; -import com.asaas.apisdk.models.ApiFinanceGetPaymentStatisticsRequestPaymentStatus; -import com.asaas.apisdk.models.ApiFinanceGetPaymentStatisticsResponseDto; import com.asaas.apisdk.models.BillingStatisticsParameters; +import com.asaas.apisdk.models.FinanceGetPaymentStatisticsRequestBillingType; +import com.asaas.apisdk.models.FinanceGetPaymentStatisticsRequestPaymentStatus; +import com.asaas.apisdk.models.FinanceGetPaymentStatisticsResponseDto; public class Main { @@ -81,9 +81,9 @@ public class Main { BillingStatisticsParameters requestParameters = BillingStatisticsParameters.builder() .customer("cus_3EZfkUThUMAt") - .billingType(ApiFinanceGetPaymentStatisticsRequestBillingType.BOLETO) - .status(ApiFinanceGetPaymentStatisticsRequestPaymentStatus.PENDING) - .anticipated(false) + .billingType(FinanceGetPaymentStatisticsRequestBillingType.BOLETO) + .status(FinanceGetPaymentStatisticsRequestPaymentStatus.PENDING) + .anticipated(true) .dateCreatedGe("2023-01-01") .dateCreatedLe("2023-01-01") .dueDateGe("2023-01-01") @@ -93,7 +93,7 @@ public class Main { .externalReference("056984") .build(); - ApiFinanceGetPaymentStatisticsResponseDto response = asaasSdk.finance.billingStatistics(requestParameters); + FinanceGetPaymentStatisticsResponseDto response = asaasSdk.finance.billingStatistics(requestParameters); System.out.println(response); } @@ -108,7 +108,7 @@ public class Main { **Return Type** -`ApiFinanceGetSplitStatisticsResponseDto` +`FinanceGetSplitStatisticsResponseDto` **Example Usage Code Snippet** @@ -116,7 +116,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiFinanceGetSplitStatisticsResponseDto; +import com.asaas.apisdk.models.FinanceGetSplitStatisticsResponseDto; public class Main { @@ -127,7 +127,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiFinanceGetSplitStatisticsResponseDto response = asaasSdk.finance.retrieveSplitValues(); + FinanceGetSplitStatisticsResponseDto response = asaasSdk.finance.retrieveSplitValues(); System.out.println(response); } diff --git a/documentation/services/FinancialTransactionService.md b/documentation/services/FinancialTransactionService.md index e414af6..949ba3d 100644 --- a/documentation/services/FinancialTransactionService.md +++ b/documentation/services/FinancialTransactionService.md @@ -19,7 +19,7 @@ A list of all methods in the `FinancialTransactionService` service. Click on the **Return Type** -`ApiFinancialTransactionListResponseDto` +`FinancialTransactionListResponseDto` **Example Usage Code Snippet** @@ -27,7 +27,7 @@ A list of all methods in the `FinancialTransactionService` service. Click on the import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiFinancialTransactionListResponseDto; +import com.asaas.apisdk.models.FinancialTransactionListResponseDto; import com.asaas.apisdk.models.RetrieveExtractParameters; public class Main { @@ -40,14 +40,14 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); RetrieveExtractParameters requestParameters = RetrieveExtractParameters.builder() - .offset(10L) + .offset(1L) .limit(10L) .startDate("2023-03-01") .finishDate("2023-03-31") .order("asc") .build(); - ApiFinancialTransactionListResponseDto response = asaasSdk.financialTransaction.retrieveExtract(requestParameters); + FinancialTransactionListResponseDto response = asaasSdk.financialTransaction.retrieveExtract(requestParameters); System.out.println(response); } diff --git a/documentation/services/FiscalInfoService.md b/documentation/services/FiscalInfoService.md index 28494f6..8a868b1 100644 --- a/documentation/services/FiscalInfoService.md +++ b/documentation/services/FiscalInfoService.md @@ -18,7 +18,7 @@ A list of all methods in the `FiscalInfoService` service. Click on the method na **Return Type** -`ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto` +`FiscalInfoMunicipalOptionsGetResponseDto` **Example Usage Code Snippet** @@ -26,7 +26,7 @@ A list of all methods in the `FiscalInfoService` service. Click on the method na import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto; +import com.asaas.apisdk.models.FiscalInfoMunicipalOptionsGetResponseDto; public class Main { @@ -37,7 +37,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto response = asaasSdk.fiscalInfo.listMunicipalConfigurations(); + FiscalInfoMunicipalOptionsGetResponseDto response = asaasSdk.fiscalInfo.listMunicipalConfigurations(); System.out.println(response); } @@ -52,7 +52,7 @@ public class Main { **Return Type** -`ApiCustomerFiscalInfoGetResponseDto` +`FiscalInfoGetResponseDto` **Example Usage Code Snippet** @@ -60,7 +60,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoGetResponseDto; +import com.asaas.apisdk.models.FiscalInfoGetResponseDto; public class Main { @@ -71,7 +71,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerFiscalInfoGetResponseDto response = asaasSdk.fiscalInfo.retrieveTaxInformation(); + FiscalInfoGetResponseDto response = asaasSdk.fiscalInfo.retrieveTaxInformation(); System.out.println(response); } @@ -86,14 +86,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :---------------------------------- | :-------------------------------------------------------------------------------------- | :------- | :----------------------------- | -| apiCustomerFiscalInfoSaveRequestDto | [ApiCustomerFiscalInfoSaveRequestDto](../models/ApiCustomerFiscalInfoSaveRequestDto.md) | ❌ | Request Body | -| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | +| Name | Type | Required | Description | +| :----------------------- | :---------------------------------------------------------------- | :------- | :----------------------------- | +| fiscalInfoSaveRequestDto | [FiscalInfoSaveRequestDto](../models/FiscalInfoSaveRequestDto.md) | ❌ | Request Body | +| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | **Return Type** -`ApiCustomerFiscalInfoGetResponseDto` +`FiscalInfoGetResponseDto` **Example Usage Code Snippet** @@ -101,8 +101,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoSaveRequestDto; +import com.asaas.apisdk.models.FiscalInfoGetResponseDto; +import com.asaas.apisdk.models.FiscalInfoSaveRequestDto; public class Main { public static void main(String[] args) { @@ -116,11 +116,11 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerFiscalInfoSaveRequestDto apiCustomerFiscalInfoSaveRequestDto = ApiCustomerFiscalInfoSaveRequestDto.builder() + FiscalInfoSaveRequestDto fiscalInfoSaveRequestDto = FiscalInfoSaveRequestDto.builder() .email("john.doe@asaas.com.br") .municipalInscription("21779501") .simplesNacional(false) - .culturalProjectsPromoter(false) + .culturalProjectsPromoter(true) .cnae("6209100") .specialTaxRegime("1") .serviceListItem("serviceListItem") @@ -131,15 +131,15 @@ public class Main { .username("johndoe") .password("password") .accessToken("accessToken") - .certificateFile(nostrud sit in) + .certificateFile(enim ut cupid) .certificatePassword("certificatePassword") .nationalPortalTaxCalculationRegime("nationalPortalTaxCalculationRegime") .build(); - ApiCustomerFiscalInfoSaveRequestDto apiCustomerFiscalInfoSaveRequestDto = ApiCustomerFiscalInfoSaveRequestDto.builder() + FiscalInfoSaveRequestDto fiscalInfoSaveRequestDto = FiscalInfoSaveRequestDto.builder() .email("john.doe@asaas.com.br") .municipalInscription("21779501") .simplesNacional(false) - .culturalProjectsPromoter(false) + .culturalProjectsPromoter(true) .cnae("6209100") .specialTaxRegime("1") .serviceListItem("serviceListItem") @@ -150,12 +150,12 @@ public class Main { .username("johndoe") .password("password") .accessToken("accessToken") - .certificateFile(nostrud sit in) + .certificateFile(enim ut cupid) .certificatePassword("certificatePassword") .nationalPortalTaxCalculationRegime("nationalPortalTaxCalculationRegime") .build(); - ApiCustomerFiscalInfoGetResponseDto response = asaasSdk.fiscalInfo.createAndUpdateTaxInformation(apiCustomerFiscalInfoSaveRequestDto, apiCustomerFiscalInfoSaveRequestDto); + FiscalInfoGetResponseDto response = asaasSdk.fiscalInfo.createAndUpdateTaxInformation(fiscalInfoSaveRequestDto, fiscalInfoSaveRequestDto); System.out.println(response); } @@ -175,7 +175,7 @@ public class Main { **Return Type** -`ApiCustomerFiscalInfoListMunicipalServicesResponseDto` +`FiscalInfoListMunicipalServicesResponseDto` **Example Usage Code Snippet** @@ -183,7 +183,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoListMunicipalServicesResponseDto; +import com.asaas.apisdk.models.FiscalInfoListMunicipalServicesResponseDto; import com.asaas.apisdk.models.ListMunicipalServicesParameters; public class Main { @@ -201,9 +201,7 @@ public class Main { .description("1.01") .build(); - ApiCustomerFiscalInfoListMunicipalServicesResponseDto response = asaasSdk.fiscalInfo.listMunicipalServices( - requestParameters - ); + FiscalInfoListMunicipalServicesResponseDto response = asaasSdk.fiscalInfo.listMunicipalServices(requestParameters); System.out.println(response); } @@ -226,7 +224,7 @@ List of possible NBS Codes (Brazilian Nomenclature of Services) **Return Type** -`ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto` +`FiscalInfoListInvoiceNbsCodesResponseDto` **Example Usage Code Snippet** @@ -234,7 +232,7 @@ List of possible NBS Codes (Brazilian Nomenclature of Services) import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto; +import com.asaas.apisdk.models.FiscalInfoListInvoiceNbsCodesResponseDto; import com.asaas.apisdk.models.ListNbsCodesParameters; public class Main { @@ -247,12 +245,12 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListNbsCodesParameters requestParameters = ListNbsCodesParameters.builder() - .offset(6L) + .offset(5L) .limit(10L) .codeDescription("1.0101") .build(); - ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto response = asaasSdk.fiscalInfo.listNbsCodes(requestParameters); + FiscalInfoListInvoiceNbsCodesResponseDto response = asaasSdk.fiscalInfo.listNbsCodes(requestParameters); System.out.println(response); } @@ -269,13 +267,13 @@ Here you can enable or disable the use of the national portal as an invoice issu **Parameters** -| Name | Type | Required | Description | -| :----------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------- | :------- | :----------- | -| apiCustomerFiscalInfoUpdateUseNationalPortalRequestDto | [ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto](../models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------------------------ | :------------------------------------------------------------------------------------------------------ | :------- | :----------- | +| fiscalInfoUpdateUseNationalPortalRequestDto | [FiscalInfoUpdateUseNationalPortalRequestDto](../models/FiscalInfoUpdateUseNationalPortalRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto` +`FiscalInfoUpdateUseNationalPortalResponseDto` **Example Usage Code Snippet** @@ -283,8 +281,8 @@ Here you can enable or disable the use of the national portal as an invoice issu import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto; +import com.asaas.apisdk.models.FiscalInfoUpdateUseNationalPortalRequestDto; +import com.asaas.apisdk.models.FiscalInfoUpdateUseNationalPortalResponseDto; public class Main { @@ -295,11 +293,12 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto apiCustomerFiscalInfoUpdateUseNationalPortalRequestDto = - ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.builder().enabled(true).build(); + FiscalInfoUpdateUseNationalPortalRequestDto fiscalInfoUpdateUseNationalPortalRequestDto = + FiscalInfoUpdateUseNationalPortalRequestDto.builder().enabled(true).build(); - ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto response = - asaasSdk.fiscalInfo.configureInvoiceIssuingPortal(apiCustomerFiscalInfoUpdateUseNationalPortalRequestDto); + FiscalInfoUpdateUseNationalPortalResponseDto response = asaasSdk.fiscalInfo.configureInvoiceIssuingPortal( + fiscalInfoUpdateUseNationalPortalRequestDto + ); System.out.println(response); } diff --git a/documentation/services/InstallmentService.md b/documentation/services/InstallmentService.md index e0283c3..cb38fe2 100644 --- a/documentation/services/InstallmentService.md +++ b/documentation/services/InstallmentService.md @@ -27,7 +27,7 @@ A list of all methods in the `InstallmentService` service. Click on the method n **Return Type** -`ApiInstallmentListResponseDto` +`InstallmentListResponseDto` **Example Usage Code Snippet** @@ -35,7 +35,7 @@ A list of all methods in the `InstallmentService` service. Click on the method n import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiInstallmentListResponseDto; +import com.asaas.apisdk.models.InstallmentListResponseDto; import com.asaas.apisdk.models.ListInstallmentsParameters; public class Main { @@ -49,7 +49,7 @@ public class Main { ListInstallmentsParameters requestParameters = ListInstallmentsParameters.builder().offset(10L).limit(10L).build(); - ApiInstallmentListResponseDto response = asaasSdk.installment.listInstallments(requestParameters); + InstallmentListResponseDto response = asaasSdk.installment.listInstallments(requestParameters); System.out.println(response); } @@ -64,13 +64,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :--------------------------- | :------------------------------------------------------------------------ | :------- | :----------- | -| apiInstallmentSaveRequestDto | [ApiInstallmentSaveRequestDto](../models/ApiInstallmentSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------ | :------------------------------------------------------------------ | :------- | :----------- | +| installmentSaveRequestDto | [InstallmentSaveRequestDto](../models/InstallmentSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiInstallmentGetResponseDto` +`InstallmentGetResponseDto` **Example Usage Code Snippet** @@ -78,15 +78,15 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiInstallmentGetResponseDto; -import com.asaas.apisdk.models.ApiInstallmentSaveRequestBillingType; -import com.asaas.apisdk.models.ApiInstallmentSaveRequestDto; -import com.asaas.apisdk.models.ApiInstallmentSplitRequestDto; -import com.asaas.apisdk.models.ApiPaymentDiscountDiscountType; -import com.asaas.apisdk.models.ApiPaymentDiscountDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestFineType; -import com.asaas.apisdk.models.ApiPaymentInterestRequestDto; +import com.asaas.apisdk.models.InstallmentGetResponseDto; +import com.asaas.apisdk.models.InstallmentSaveRequestBillingType; +import com.asaas.apisdk.models.InstallmentSaveRequestDto; +import com.asaas.apisdk.models.InstallmentSplitRequestDto; +import com.asaas.apisdk.models.PaymentDiscountDiscountType; +import com.asaas.apisdk.models.PaymentDiscountDto; +import com.asaas.apisdk.models.PaymentFineRequestDto; +import com.asaas.apisdk.models.PaymentFineRequestFineType; +import com.asaas.apisdk.models.PaymentInterestRequestDto; import java.util.Arrays; import java.util.List; @@ -99,22 +99,20 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDiscountDto apiPaymentDiscountDto = ApiPaymentDiscountDto.builder() + PaymentDiscountDto paymentDiscountDto = PaymentDiscountDto.builder() .value(10D) .dueDateLimitDays(1L) - .type(ApiPaymentDiscountDiscountType.FIXED) + .type(PaymentDiscountDiscountType.FIXED) .build(); - ApiPaymentInterestRequestDto apiPaymentInterestRequestDto = ApiPaymentInterestRequestDto.builder() - .value(4.68D) - .build(); + PaymentInterestRequestDto paymentInterestRequestDto = PaymentInterestRequestDto.builder().value(4.68D).build(); - ApiPaymentFineRequestDto apiPaymentFineRequestDto = ApiPaymentFineRequestDto.builder() + PaymentFineRequestDto paymentFineRequestDto = PaymentFineRequestDto.builder() .value(8.99D) - .type(ApiPaymentFineRequestFineType.FIXED) + .type(PaymentFineRequestFineType.FIXED) .build(); - ApiInstallmentSplitRequestDto apiInstallmentSplitRequestDto = ApiInstallmentSplitRequestDto.builder() + InstallmentSplitRequestDto installmentSplitRequestDto = InstallmentSplitRequestDto.builder() .walletId("walletId") .fixedValue(2.11D) .percentualValue(0.03D) @@ -124,26 +122,26 @@ public class Main { .installmentNumber(1L) .build(); - List splitsList = Arrays.asList(apiInstallmentSplitRequestDto); + List splitsList = Arrays.asList(installmentSplitRequestDto); - ApiInstallmentSaveRequestDto apiInstallmentSaveRequestDto = ApiInstallmentSaveRequestDto.builder() + InstallmentSaveRequestDto installmentSaveRequestDto = InstallmentSaveRequestDto.builder() .installmentCount(3L) .customer("cus_G7Dvo4iphUNk") .value(100D) .totalValue(150D) - .billingType(ApiInstallmentSaveRequestBillingType.UNDEFINED) + .billingType(InstallmentSaveRequestBillingType.UNDEFINED) .dueDate("2025-07-08") .description("Installment 08652") .postalService(true) .daysAfterDueDateToRegistrationCancellation(1L) .paymentExternalReference("056984") - .discount(apiPaymentDiscountDto) - .interest(apiPaymentInterestRequestDto) - .fine(apiPaymentFineRequestDto) + .discount(paymentDiscountDto) + .interest(paymentInterestRequestDto) + .fine(paymentFineRequestDto) .splits(splitsList) .build(); - ApiInstallmentGetResponseDto response = asaasSdk.installment.createInstallment(apiInstallmentSaveRequestDto); + InstallmentGetResponseDto response = asaasSdk.installment.createInstallment(installmentSaveRequestDto); System.out.println(response); } @@ -158,13 +156,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :----------------------------------------- | :---------------------------------------------------------------------------------------------------- | :------- | :----------- | -| apiInstallmentSaveWithCreditCardRequestDto | [ApiInstallmentSaveWithCreditCardRequestDto](../models/ApiInstallmentSaveWithCreditCardRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :-------------------------------------- | :---------------------------------------------------------------------------------------------- | :------- | :----------- | +| installmentSaveWithCreditCardRequestDto | [InstallmentSaveWithCreditCardRequestDto](../models/InstallmentSaveWithCreditCardRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiInstallmentGetResponseDto` +`InstallmentGetResponseDto` **Example Usage Code Snippet** @@ -172,17 +170,17 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCreditCardHolderInfoRequestDto; -import com.asaas.apisdk.models.ApiCreditCardRequestDto; -import com.asaas.apisdk.models.ApiInstallmentGetResponseDto; -import com.asaas.apisdk.models.ApiInstallmentSaveWithCreditCardRequestBillingType; -import com.asaas.apisdk.models.ApiInstallmentSaveWithCreditCardRequestDto; -import com.asaas.apisdk.models.ApiInstallmentSplitRequestDto; -import com.asaas.apisdk.models.ApiPaymentDiscountDiscountType; -import com.asaas.apisdk.models.ApiPaymentDiscountDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestFineType; -import com.asaas.apisdk.models.ApiPaymentInterestRequestDto; +import com.asaas.apisdk.models.CreditCardHolderInfoRequestDto; +import com.asaas.apisdk.models.CreditCardRequestDto; +import com.asaas.apisdk.models.InstallmentGetResponseDto; +import com.asaas.apisdk.models.InstallmentSaveWithCreditCardRequestBillingType; +import com.asaas.apisdk.models.InstallmentSaveWithCreditCardRequestDto; +import com.asaas.apisdk.models.InstallmentSplitRequestDto; +import com.asaas.apisdk.models.PaymentDiscountDiscountType; +import com.asaas.apisdk.models.PaymentDiscountDto; +import com.asaas.apisdk.models.PaymentFineRequestDto; +import com.asaas.apisdk.models.PaymentFineRequestFineType; +import com.asaas.apisdk.models.PaymentInterestRequestDto; import java.util.Arrays; import java.util.List; @@ -195,22 +193,20 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDiscountDto apiPaymentDiscountDto = ApiPaymentDiscountDto.builder() + PaymentDiscountDto paymentDiscountDto = PaymentDiscountDto.builder() .value(10D) .dueDateLimitDays(1L) - .type(ApiPaymentDiscountDiscountType.FIXED) + .type(PaymentDiscountDiscountType.FIXED) .build(); - ApiPaymentInterestRequestDto apiPaymentInterestRequestDto = ApiPaymentInterestRequestDto.builder() - .value(4.68D) - .build(); + PaymentInterestRequestDto paymentInterestRequestDto = PaymentInterestRequestDto.builder().value(4.68D).build(); - ApiPaymentFineRequestDto apiPaymentFineRequestDto = ApiPaymentFineRequestDto.builder() + PaymentFineRequestDto paymentFineRequestDto = PaymentFineRequestDto.builder() .value(8.99D) - .type(ApiPaymentFineRequestFineType.FIXED) + .type(PaymentFineRequestFineType.FIXED) .build(); - ApiInstallmentSplitRequestDto apiInstallmentSplitRequestDto = ApiInstallmentSplitRequestDto.builder() + InstallmentSplitRequestDto installmentSplitRequestDto = InstallmentSplitRequestDto.builder() .walletId("walletId") .fixedValue(2.11D) .percentualValue(0.03D) @@ -220,17 +216,17 @@ public class Main { .installmentNumber(1L) .build(); - List splitsList = Arrays.asList(apiInstallmentSplitRequestDto); + List splitsList = Arrays.asList(installmentSplitRequestDto); - ApiCreditCardRequestDto apiCreditCardRequestDto = ApiCreditCardRequestDto.builder() + CreditCardRequestDto creditCardRequestDto = CreditCardRequestDto.builder() .holderName("John Doe") .number("1234567890123456") - .expiryMonth("6") + .expiryMonth("7") .expiryYear("2025") .ccv("123") .build(); - ApiCreditCardHolderInfoRequestDto apiCreditCardHolderInfoRequestDto = ApiCreditCardHolderInfoRequestDto.builder() + CreditCardHolderInfoRequestDto creditCardHolderInfoRequestDto = CreditCardHolderInfoRequestDto.builder() .name("John Doe") .email("john.doe@asaas.com") .cpfCnpj("12345678901") @@ -241,31 +237,31 @@ public class Main { .mobilePhone("mobilePhone") .build(); - ApiInstallmentSaveWithCreditCardRequestDto apiInstallmentSaveWithCreditCardRequestDto = - ApiInstallmentSaveWithCreditCardRequestDto.builder() + InstallmentSaveWithCreditCardRequestDto installmentSaveWithCreditCardRequestDto = + InstallmentSaveWithCreditCardRequestDto.builder() .installmentCount(3L) .customer("cus_G7Dvo4iphUNk") .value(100D) .totalValue(150D) - .billingType(ApiInstallmentSaveWithCreditCardRequestBillingType.UNDEFINED) + .billingType(InstallmentSaveWithCreditCardRequestBillingType.UNDEFINED) .dueDate("2025-07-08") .description("Installment 08652") .postalService(false) .daysAfterDueDateToRegistrationCancellation(1L) .paymentExternalReference("056984") - .discount(apiPaymentDiscountDto) - .interest(apiPaymentInterestRequestDto) - .fine(apiPaymentFineRequestDto) + .discount(paymentDiscountDto) + .interest(paymentInterestRequestDto) + .fine(paymentFineRequestDto) .splits(splitsList) - .creditCard(apiCreditCardRequestDto) - .creditCardHolderInfo(apiCreditCardHolderInfoRequestDto) + .creditCard(creditCardRequestDto) + .creditCardHolderInfo(creditCardHolderInfoRequestDto) .creditCardToken("a75a1d98-c52d-4a6b-a413-71e00b193c99") .authorizeOnly(false) .remoteIp("remoteIp") .build(); - ApiInstallmentGetResponseDto response = asaasSdk.installment.createInstallmentWithCreditCard( - apiInstallmentSaveWithCreditCardRequestDto + InstallmentGetResponseDto response = asaasSdk.installment.createInstallmentWithCreditCard( + installmentSaveWithCreditCardRequestDto ); System.out.println(response); @@ -287,7 +283,7 @@ public class Main { **Return Type** -`ApiInstallmentGetResponseDto` +`InstallmentGetResponseDto` **Example Usage Code Snippet** @@ -295,7 +291,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiInstallmentGetResponseDto; +import com.asaas.apisdk.models.InstallmentGetResponseDto; public class Main { @@ -306,7 +302,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiInstallmentGetResponseDto response = asaasSdk.installment.retrieveASingleInstallment( + InstallmentGetResponseDto response = asaasSdk.installment.retrieveASingleInstallment( "2765d086-c7c5-5cca-898a-4262d212587c" ); @@ -329,7 +325,7 @@ public class Main { **Return Type** -`ApiInstallmentDeleteResponseDto` +`InstallmentDeleteResponseDto` **Example Usage Code Snippet** @@ -337,7 +333,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiInstallmentDeleteResponseDto; +import com.asaas.apisdk.models.InstallmentDeleteResponseDto; public class Main { @@ -348,7 +344,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiInstallmentDeleteResponseDto response = asaasSdk.installment.removeInstallment( + InstallmentDeleteResponseDto response = asaasSdk.installment.removeInstallment( "5a2c890b-dd63-4b5a-9169-96c8d7828f4c" ); @@ -372,7 +368,7 @@ public class Main { **Return Type** -`ApiPaymentListResponseDto` +`PaymentListResponseDto` **Example Usage Code Snippet** @@ -380,9 +376,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiInstallmentListPaymentsRequestPaymentStatus; -import com.asaas.apisdk.models.ApiPaymentListResponseDto; +import com.asaas.apisdk.models.InstallmentListPaymentsRequestPaymentStatus; import com.asaas.apisdk.models.ListPaymentsOfAInstallmentParameters; +import com.asaas.apisdk.models.PaymentListResponseDto; public class Main { @@ -394,10 +390,10 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListPaymentsOfAInstallmentParameters requestParameters = ListPaymentsOfAInstallmentParameters.builder() - .status(ApiInstallmentListPaymentsRequestPaymentStatus.PENDING) + .status(InstallmentListPaymentsRequestPaymentStatus.PENDING) .build(); - ApiPaymentListResponseDto response = asaasSdk.installment.listPaymentsOfAInstallment( + PaymentListResponseDto response = asaasSdk.installment.listPaymentsOfAInstallment( "2765d086-c7c5-5cca-898a-4262d212587c", requestParameters ); @@ -422,7 +418,7 @@ public class Main { **Return Type** -`Object` +`InstallmentPaymentBookResponseDto` **Example Usage Code Snippet** @@ -431,6 +427,7 @@ import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.models.GenerateInstallmentBookletParameters; +import com.asaas.apisdk.models.InstallmentPaymentBookResponseDto; public class Main { @@ -446,7 +443,7 @@ public class Main { .order("asc") .build(); - Object response = asaasSdk.installment.generateInstallmentBooklet( + InstallmentPaymentBookResponseDto response = asaasSdk.installment.generateInstallmentBooklet( "2765d086-c7c5-5cca-898a-4262d212587c", requestParameters ); @@ -473,7 +470,7 @@ It is possible to refund an installment received or confirmed via credit card. J **Return Type** -`ApiInstallmentGetResponseDto` +`InstallmentGetResponseDto` **Example Usage Code Snippet** @@ -481,7 +478,7 @@ It is possible to refund an installment received or confirmed via credit card. J import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiInstallmentGetResponseDto; +import com.asaas.apisdk.models.InstallmentGetResponseDto; public class Main { @@ -492,7 +489,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiInstallmentGetResponseDto response = asaasSdk.installment.refundInstallment( + InstallmentGetResponseDto response = asaasSdk.installment.refundInstallment( "2765d086-c7c5-5cca-898a-4262d212587c", new Object() ); @@ -510,14 +507,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :---------------------------------- | :-------------------------------------------------------------------------------------- | :------- | :------------- | -| id | String | ✅ | Installment ID | -| apiInstallmentUpdateSplitRequestDto | [ApiInstallmentUpdateSplitRequestDto](../models/ApiInstallmentUpdateSplitRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------------- | :-------------------------------------------------------------------------------- | :------- | :------------- | +| id | String | ✅ | Installment ID | +| installmentUpdateSplitRequestDto | [InstallmentUpdateSplitRequestDto](../models/InstallmentUpdateSplitRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiInstallmentUpdateSplitResponseDto` +`InstallmentUpdateSplitResponseDto` **Example Usage Code Snippet** @@ -525,9 +522,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiInstallmentSplitRequestDto; -import com.asaas.apisdk.models.ApiInstallmentUpdateSplitRequestDto; -import com.asaas.apisdk.models.ApiInstallmentUpdateSplitResponseDto; +import com.asaas.apisdk.models.InstallmentSplitRequestDto; +import com.asaas.apisdk.models.InstallmentUpdateSplitRequestDto; +import com.asaas.apisdk.models.InstallmentUpdateSplitResponseDto; import java.util.Arrays; import java.util.List; @@ -540,7 +537,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiInstallmentSplitRequestDto apiInstallmentSplitRequestDto = ApiInstallmentSplitRequestDto.builder() + InstallmentSplitRequestDto installmentSplitRequestDto = InstallmentSplitRequestDto.builder() .walletId("walletId") .fixedValue(2.11D) .percentualValue(0.03D) @@ -550,14 +547,15 @@ public class Main { .installmentNumber(1L) .build(); - List splitsList = Arrays.asList(apiInstallmentSplitRequestDto); + List splitsList = Arrays.asList(installmentSplitRequestDto); - ApiInstallmentUpdateSplitRequestDto apiInstallmentUpdateSplitRequestDto = - ApiInstallmentUpdateSplitRequestDto.builder().splits(splitsList).build(); + InstallmentUpdateSplitRequestDto installmentUpdateSplitRequestDto = InstallmentUpdateSplitRequestDto.builder() + .splits(splitsList) + .build(); - ApiInstallmentUpdateSplitResponseDto response = asaasSdk.installment.updateInstallmentSplits( + InstallmentUpdateSplitResponseDto response = asaasSdk.installment.updateInstallmentSplits( "2765d086-c7c5-5cca-898a-4262d212587c", - apiInstallmentUpdateSplitRequestDto + installmentUpdateSplitRequestDto ); System.out.println(response); diff --git a/documentation/services/InvoiceService.md b/documentation/services/InvoiceService.md index ac89242..73231a7 100644 --- a/documentation/services/InvoiceService.md +++ b/documentation/services/InvoiceService.md @@ -24,7 +24,7 @@ A list of all methods in the `InvoiceService` service. Click on the method name **Return Type** -`ApiCustomerInvoiceListResponseDto` +`InvoiceListResponseDto` **Example Usage Code Snippet** @@ -32,8 +32,8 @@ A list of all methods in the `InvoiceService` service. Click on the method name import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerInvoiceListRequestInvoiceStatus; -import com.asaas.apisdk.models.ApiCustomerInvoiceListResponseDto; +import com.asaas.apisdk.models.InvoiceListRequestInvoiceStatus; +import com.asaas.apisdk.models.InvoiceListResponseDto; import com.asaas.apisdk.models.ListInvoicesParameters; public class Main { @@ -46,18 +46,18 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListInvoicesParameters requestParameters = ListInvoicesParameters.builder() - .offset(10L) + .offset(7L) .limit(10L) .effectiveDateGe("2024-08-03") .effectiveDateLe("2024-09-03") .payment("payment") .installment("installment") .externalReference("externalReference") - .status(ApiCustomerInvoiceListRequestInvoiceStatus.SCHEDULED) + .status(InvoiceListRequestInvoiceStatus.SCHEDULED) .customer("customer") .build(); - ApiCustomerInvoiceListResponseDto response = asaasSdk.invoice.listInvoices(requestParameters); + InvoiceListResponseDto response = asaasSdk.invoice.listInvoices(requestParameters); System.out.println(response); } @@ -72,13 +72,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------- | :-------------------------------------------------------------------------------- | :------- | :----------- | -| apiCustomerInvoiceSaveRequestDto | [ApiCustomerInvoiceSaveRequestDto](../models/ApiCustomerInvoiceSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :-------------------- | :---------------------------------------------------------- | :------- | :----------- | +| invoiceSaveRequestDto | [InvoiceSaveRequestDto](../models/InvoiceSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCustomerInvoiceGetResponseDto` +`InvoiceGetResponseDto` **Example Usage Code Snippet** @@ -86,9 +86,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerInvoiceGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerInvoiceSaveRequestDto; -import com.asaas.apisdk.models.ApiCustomerInvoiceTaxesDto; +import com.asaas.apisdk.models.InvoiceGetResponseDto; +import com.asaas.apisdk.models.InvoiceSaveRequestDto; +import com.asaas.apisdk.models.InvoiceTaxesDto; public class Main { @@ -99,7 +99,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerInvoiceTaxesDto apiCustomerInvoiceTaxesDto = ApiCustomerInvoiceTaxesDto.builder() + InvoiceTaxesDto invoiceTaxesDto = InvoiceTaxesDto.builder() .retainIss(true) .cofins(1D) .csll(1D) @@ -109,7 +109,7 @@ public class Main { .iss(1D) .build(); - ApiCustomerInvoiceSaveRequestDto apiCustomerInvoiceSaveRequestDto = ApiCustomerInvoiceSaveRequestDto.builder() + InvoiceSaveRequestDto invoiceSaveRequestDto = InvoiceSaveRequestDto.builder() .payment("pay_637959110194") .installment("installment") .customer("cus_000000002750") @@ -122,11 +122,11 @@ public class Main { .municipalServiceId("municipalServiceId") .municipalServiceCode("1.01") .municipalServiceName("Systems analysis and development") - .updatePayment(false) - .taxes(apiCustomerInvoiceTaxesDto) + .updatePayment(true) + .taxes(invoiceTaxesDto) .build(); - ApiCustomerInvoiceGetResponseDto response = asaasSdk.invoice.scheduleInvoice(apiCustomerInvoiceSaveRequestDto); + InvoiceGetResponseDto response = asaasSdk.invoice.scheduleInvoice(invoiceSaveRequestDto); System.out.println(response); } @@ -147,7 +147,7 @@ public class Main { **Return Type** -`ApiCustomerInvoiceGetResponseDto` +`InvoiceGetResponseDto` **Example Usage Code Snippet** @@ -155,7 +155,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerInvoiceGetResponseDto; +import com.asaas.apisdk.models.InvoiceGetResponseDto; public class Main { @@ -166,7 +166,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerInvoiceGetResponseDto response = asaasSdk.invoice.retrieveASingleInvoice("inv_000000000232"); + InvoiceGetResponseDto response = asaasSdk.invoice.retrieveASingleInvoice("inv_000000000232"); System.out.println(response); } @@ -181,14 +181,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :--------------------------------- | :------------------------------------------------------------------------------------ | :------- | :--------------------------------- | -| id | String | ✅ | Unique invoice identifier in Asaas | -| apiCustomerInvoiceUpdateRequestDto | [ApiCustomerInvoiceUpdateRequestDto](../models/ApiCustomerInvoiceUpdateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------- | :-------------------------------------------------------------- | :------- | :--------------------------------- | +| id | String | ✅ | Unique invoice identifier in Asaas | +| invoiceUpdateRequestDto | [InvoiceUpdateRequestDto](../models/InvoiceUpdateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCustomerInvoiceGetResponseDto` +`InvoiceGetResponseDto` **Example Usage Code Snippet** @@ -196,9 +196,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerInvoiceGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerInvoiceTaxesDto; -import com.asaas.apisdk.models.ApiCustomerInvoiceUpdateRequestDto; +import com.asaas.apisdk.models.InvoiceGetResponseDto; +import com.asaas.apisdk.models.InvoiceTaxesDto; +import com.asaas.apisdk.models.InvoiceUpdateRequestDto; public class Main { @@ -209,7 +209,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerInvoiceTaxesDto apiCustomerInvoiceTaxesDto = ApiCustomerInvoiceTaxesDto.builder() + InvoiceTaxesDto invoiceTaxesDto = InvoiceTaxesDto.builder() .retainIss(true) .cofins(1D) .csll(1D) @@ -219,21 +219,18 @@ public class Main { .iss(1D) .build(); - ApiCustomerInvoiceUpdateRequestDto apiCustomerInvoiceUpdateRequestDto = ApiCustomerInvoiceUpdateRequestDto.builder() + InvoiceUpdateRequestDto invoiceUpdateRequestDto = InvoiceUpdateRequestDto.builder() .serviceDescription("serviceDescription") .observations("Monthly for June work.") .externalReference("externalReference") .value(300D) .deductions(10D) .effectiveDate("2024-08-20") - .updatePayment(true) - .taxes(apiCustomerInvoiceTaxesDto) + .updatePayment(false) + .taxes(invoiceTaxesDto) .build(); - ApiCustomerInvoiceGetResponseDto response = asaasSdk.invoice.updateInvoice( - "inv_000000000232", - apiCustomerInvoiceUpdateRequestDto - ); + InvoiceGetResponseDto response = asaasSdk.invoice.updateInvoice("inv_000000000232", invoiceUpdateRequestDto); System.out.println(response); } @@ -255,7 +252,7 @@ public class Main { **Return Type** -`ApiCustomerInvoiceGetResponseDto` +`InvoiceGetResponseDto` **Example Usage Code Snippet** @@ -263,7 +260,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerInvoiceGetResponseDto; +import com.asaas.apisdk.models.InvoiceGetResponseDto; public class Main { @@ -274,7 +271,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerInvoiceGetResponseDto response = asaasSdk.invoice.issueAnInvoice("inv_000000000232", new Object()); + InvoiceGetResponseDto response = asaasSdk.invoice.issueAnInvoice("inv_000000000232", new Object()); System.out.println(response); } @@ -289,14 +286,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :--------------------------------- | :------------------------------------------------------------------------------------ | :------- | :--------------------------------- | -| id | String | ✅ | Unique invoice identifier in Asaas | -| apiCustomerInvoiceCancelRequestDto | [ApiCustomerInvoiceCancelRequestDto](../models/ApiCustomerInvoiceCancelRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------- | :-------------------------------------------------------------- | :------- | :--------------------------------- | +| id | String | ✅ | Unique invoice identifier in Asaas | +| invoiceCancelRequestDto | [InvoiceCancelRequestDto](../models/InvoiceCancelRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCustomerInvoiceGetResponseDto` +`InvoiceGetResponseDto` **Example Usage Code Snippet** @@ -304,8 +301,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerInvoiceCancelRequestDto; -import com.asaas.apisdk.models.ApiCustomerInvoiceGetResponseDto; +import com.asaas.apisdk.models.InvoiceCancelRequestDto; +import com.asaas.apisdk.models.InvoiceGetResponseDto; public class Main { @@ -316,14 +313,11 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerInvoiceCancelRequestDto apiCustomerInvoiceCancelRequestDto = ApiCustomerInvoiceCancelRequestDto.builder() + InvoiceCancelRequestDto invoiceCancelRequestDto = InvoiceCancelRequestDto.builder() .cancelOnlyOnAsaas(false) .build(); - ApiCustomerInvoiceGetResponseDto response = asaasSdk.invoice.cancelAnInvoice( - "inv_000000000232", - apiCustomerInvoiceCancelRequestDto - ); + InvoiceGetResponseDto response = asaasSdk.invoice.cancelAnInvoice("inv_000000000232", invoiceCancelRequestDto); System.out.println(response); } diff --git a/documentation/services/MobilePhoneRechargeService.md b/documentation/services/MobilePhoneRechargeService.md index 76b9977..3e8469a 100644 --- a/documentation/services/MobilePhoneRechargeService.md +++ b/documentation/services/MobilePhoneRechargeService.md @@ -23,7 +23,7 @@ A list of all methods in the `MobilePhoneRechargeService` service. Click on the **Return Type** -`ApiMobilePhoneRechargeListResponseDto` +`MobilePhoneRechargeListResponseDto` **Example Usage Code Snippet** @@ -31,8 +31,8 @@ A list of all methods in the `MobilePhoneRechargeService` service. Click on the import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiMobilePhoneRechargeListResponseDto; import com.asaas.apisdk.models.ListMobileRechargesParameters; +import com.asaas.apisdk.models.MobilePhoneRechargeListResponseDto; public class Main { @@ -44,13 +44,11 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListMobileRechargesParameters requestParameters = ListMobileRechargesParameters.builder() - .offset(2L) + .offset(8L) .limit(10L) .build(); - ApiMobilePhoneRechargeListResponseDto response = asaasSdk.mobilePhoneRecharge.listMobileRecharges( - requestParameters - ); + MobilePhoneRechargeListResponseDto response = asaasSdk.mobilePhoneRecharge.listMobileRecharges(requestParameters); System.out.println(response); } @@ -65,13 +63,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :----------------------------------- | :---------------------------------------------------------------------------------------- | :------- | :----------- | -| apiMobilePhoneRechargeSaveRequestDto | [ApiMobilePhoneRechargeSaveRequestDto](../models/ApiMobilePhoneRechargeSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :-------------------------------- | :---------------------------------------------------------------------------------- | :------- | :----------- | +| mobilePhoneRechargeSaveRequestDto | [MobilePhoneRechargeSaveRequestDto](../models/MobilePhoneRechargeSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiMobilePhoneRechargeGetResponseDto` +`MobilePhoneRechargeGetResponseDto` **Example Usage Code Snippet** @@ -79,8 +77,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiMobilePhoneRechargeGetResponseDto; -import com.asaas.apisdk.models.ApiMobilePhoneRechargeSaveRequestDto; +import com.asaas.apisdk.models.MobilePhoneRechargeGetResponseDto; +import com.asaas.apisdk.models.MobilePhoneRechargeSaveRequestDto; public class Main { @@ -91,11 +89,13 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiMobilePhoneRechargeSaveRequestDto apiMobilePhoneRechargeSaveRequestDto = - ApiMobilePhoneRechargeSaveRequestDto.builder().value(15D).phoneNumber("63997365512").build(); + MobilePhoneRechargeSaveRequestDto mobilePhoneRechargeSaveRequestDto = MobilePhoneRechargeSaveRequestDto.builder() + .value(15D) + .phoneNumber("63997365512") + .build(); - ApiMobilePhoneRechargeGetResponseDto response = asaasSdk.mobilePhoneRecharge.requestRecharge( - apiMobilePhoneRechargeSaveRequestDto + MobilePhoneRechargeGetResponseDto response = asaasSdk.mobilePhoneRecharge.requestRecharge( + mobilePhoneRechargeSaveRequestDto ); System.out.println(response); @@ -117,7 +117,7 @@ public class Main { **Return Type** -`ApiMobilePhoneRechargeGetResponseDto` +`MobilePhoneRechargeGetResponseDto` **Example Usage Code Snippet** @@ -125,7 +125,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiMobilePhoneRechargeGetResponseDto; +import com.asaas.apisdk.models.MobilePhoneRechargeGetResponseDto; public class Main { @@ -136,7 +136,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiMobilePhoneRechargeGetResponseDto response = asaasSdk.mobilePhoneRecharge.recoverASingleCellphoneRecharge( + MobilePhoneRechargeGetResponseDto response = asaasSdk.mobilePhoneRecharge.recoverASingleCellphoneRecharge( "37c22147-4194-11ec-8061-0242ac120002" ); @@ -162,7 +162,7 @@ Allows canceling the cell phone top-up. Use the canBeCancelled property to verif **Return Type** -`ApiMobilePhoneRechargeGetResponseDto` +`MobilePhoneRechargeGetResponseDto` **Example Usage Code Snippet** @@ -170,7 +170,7 @@ Allows canceling the cell phone top-up. Use the canBeCancelled property to verif import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiMobilePhoneRechargeGetResponseDto; +import com.asaas.apisdk.models.MobilePhoneRechargeGetResponseDto; public class Main { @@ -181,7 +181,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiMobilePhoneRechargeGetResponseDto response = asaasSdk.mobilePhoneRecharge.cancelACellphoneRecharge( + MobilePhoneRechargeGetResponseDto response = asaasSdk.mobilePhoneRecharge.cancelACellphoneRecharge( "37c22147-4194-11ec-8061-0242ac120002", new Object() ); @@ -205,7 +205,7 @@ public class Main { **Return Type** -`ApiMobilePhoneRechargeFindProviderResponseDto` +`MobilePhoneRechargeFindProviderResponseDto` **Example Usage Code Snippet** @@ -213,7 +213,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiMobilePhoneRechargeFindProviderResponseDto; +import com.asaas.apisdk.models.MobilePhoneRechargeFindProviderResponseDto; public class Main { @@ -224,7 +224,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiMobilePhoneRechargeFindProviderResponseDto response = asaasSdk.mobilePhoneRecharge.searchForCellPhoneProvider( + MobilePhoneRechargeFindProviderResponseDto response = asaasSdk.mobilePhoneRecharge.searchForCellPhoneProvider( "63997365512" ); diff --git a/documentation/services/NotificationService.md b/documentation/services/NotificationService.md index f47d04b..9ffecf1 100644 --- a/documentation/services/NotificationService.md +++ b/documentation/services/NotificationService.md @@ -14,14 +14,14 @@ A list of all methods in the `NotificationService` service. Click on the method **Parameters** -| Name | Type | Required | Description | -| :------------------------------ | :------------------------------------------------------------------------------ | :------- | :-------------------------------------------------- | -| id | String | ✅ | Unique identifier of the notification to be updated | -| apiNotificationUpdateRequestDto | [ApiNotificationUpdateRequestDto](../models/ApiNotificationUpdateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :--------------------------- | :------------------------------------------------------------------------ | :------- | :-------------------------------------------------- | +| id | String | ✅ | Unique identifier of the notification to be updated | +| notificationUpdateRequestDto | [NotificationUpdateRequestDto](../models/NotificationUpdateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiNotificationGetResponseDto` +`NotificationGetResponseDto` **Example Usage Code Snippet** @@ -29,9 +29,9 @@ A list of all methods in the `NotificationService` service. Click on the method import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiNotificationGetResponseDto; -import com.asaas.apisdk.models.ApiNotificationUpdateRequestDto; -import com.asaas.apisdk.models.ApiNotificationUpdateRequestDtoScheduleOffset; +import com.asaas.apisdk.models.NotificationGetResponseDto; +import com.asaas.apisdk.models.NotificationUpdateRequestDto; +import com.asaas.apisdk.models.NotificationUpdateRequestDtoScheduleOffset; public class Main { @@ -42,7 +42,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiNotificationUpdateRequestDto apiNotificationUpdateRequestDto = ApiNotificationUpdateRequestDto.builder() + NotificationUpdateRequestDto notificationUpdateRequestDto = NotificationUpdateRequestDto.builder() .enabled(true) .emailEnabledForProvider(true) .smsEnabledForProvider(true) @@ -50,12 +50,12 @@ public class Main { .smsEnabledForCustomer(true) .phoneCallEnabledForCustomer(true) .whatsappEnabledForCustomer(false) - .scheduleOffset(ApiNotificationUpdateRequestDtoScheduleOffset._0) + .scheduleOffset(NotificationUpdateRequestDtoScheduleOffset._0) .build(); - ApiNotificationGetResponseDto response = asaasSdk.notification.updateExistingNotification( + NotificationGetResponseDto response = asaasSdk.notification.updateExistingNotification( "not_wuGp97JeCr7G", - apiNotificationUpdateRequestDto + notificationUpdateRequestDto ); System.out.println(response); @@ -73,13 +73,13 @@ It is possible to customize various notifications, regardless of the communicati **Parameters** -| Name | Type | Required | Description | -| :----------------------------------- | :---------------------------------------------------------------------------------------- | :------- | :----------- | -| apiNotificationBatchUpdateRequestDto | [ApiNotificationBatchUpdateRequestDto](../models/ApiNotificationBatchUpdateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :-------------------------------- | :---------------------------------------------------------------------------------- | :------- | :----------- | +| notificationBatchUpdateRequestDto | [NotificationBatchUpdateRequestDto](../models/NotificationBatchUpdateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiNotificationBatchUpdateResponseDto` +`NotificationBatchUpdateResponseDto` **Example Usage Code Snippet** @@ -87,10 +87,10 @@ It is possible to customize various notifications, regardless of the communicati import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiNotificationBatchUpdateRequestDto; -import com.asaas.apisdk.models.ApiNotificationBatchUpdateResponseDto; -import com.asaas.apisdk.models.ApiNotificationUpdateRequestDto; -import com.asaas.apisdk.models.ApiNotificationUpdateRequestDtoScheduleOffset; +import com.asaas.apisdk.models.NotificationBatchUpdateRequestDto; +import com.asaas.apisdk.models.NotificationBatchUpdateResponseDto; +import com.asaas.apisdk.models.NotificationUpdateRequestDto; +import com.asaas.apisdk.models.NotificationUpdateRequestDtoScheduleOffset; import java.util.Arrays; import java.util.List; @@ -103,7 +103,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiNotificationUpdateRequestDto apiNotificationUpdateRequestDto = ApiNotificationUpdateRequestDto.builder() + NotificationUpdateRequestDto notificationUpdateRequestDto = NotificationUpdateRequestDto.builder() .enabled(true) .emailEnabledForProvider(true) .smsEnabledForProvider(true) @@ -111,19 +111,18 @@ public class Main { .smsEnabledForCustomer(true) .phoneCallEnabledForCustomer(true) .whatsappEnabledForCustomer(false) - .scheduleOffset(ApiNotificationUpdateRequestDtoScheduleOffset._0) + .scheduleOffset(NotificationUpdateRequestDtoScheduleOffset._0) .build(); - List notificationsList = Arrays.asList(apiNotificationUpdateRequestDto); + List notificationsList = Arrays.asList(notificationUpdateRequestDto); - ApiNotificationBatchUpdateRequestDto apiNotificationBatchUpdateRequestDto = - ApiNotificationBatchUpdateRequestDto.builder() - .customer("cus_000005401844") - .notifications(notificationsList) - .build(); + NotificationBatchUpdateRequestDto notificationBatchUpdateRequestDto = NotificationBatchUpdateRequestDto.builder() + .customer("cus_000005401844") + .notifications(notificationsList) + .build(); - ApiNotificationBatchUpdateResponseDto response = asaasSdk.notification.updateExistingNotificationsInBatch( - apiNotificationBatchUpdateRequestDto + NotificationBatchUpdateResponseDto response = asaasSdk.notification.updateExistingNotificationsInBatch( + notificationBatchUpdateRequestDto ); System.out.println(response); diff --git a/documentation/services/PaymentDocumentService.md b/documentation/services/PaymentDocumentService.md index c2bac46..873c4c3 100644 --- a/documentation/services/PaymentDocumentService.md +++ b/documentation/services/PaymentDocumentService.md @@ -23,7 +23,7 @@ A list of all methods in the `PaymentDocumentService` service. Click on the meth **Return Type** -`ApiPaymentDocumentListResponseDto` +`PaymentDocumentListResponseDto` **Example Usage Code Snippet** @@ -31,7 +31,7 @@ A list of all methods in the `PaymentDocumentService` service. Click on the meth import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDocumentListResponseDto; +import com.asaas.apisdk.models.PaymentDocumentListResponseDto; public class Main { @@ -42,7 +42,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDocumentListResponseDto response = asaasSdk.paymentDocument.listDocumentsOfAPayment("id"); + PaymentDocumentListResponseDto response = asaasSdk.paymentDocument.listDocumentsOfAPayment("id"); System.out.println(response); } @@ -57,15 +57,15 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------- | :-------------------------------------------------------------------------------- | :------- | :--------------------------------- | -| id | String | ✅ | Unique payment identifier in Asaas | -| apiPaymentDocumentSaveRequestDto | [ApiPaymentDocumentSaveRequestDto](../models/ApiPaymentDocumentSaveRequestDto.md) | ❌ | Request Body | -| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | +| Name | Type | Required | Description | +| :---------------------------- | :-------------------------------------------------------------------------- | :------- | :--------------------------------- | +| id | String | ✅ | Unique payment identifier in Asaas | +| paymentDocumentSaveRequestDto | [PaymentDocumentSaveRequestDto](../models/PaymentDocumentSaveRequestDto.md) | ❌ | Request Body | +| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | **Return Type** -`ApiPaymentDocumentGetResponseDto` +`PaymentDocumentGetResponseDto` **Example Usage Code Snippet** @@ -73,9 +73,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDocumentGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentDocumentSaveRequestDto; -import com.asaas.apisdk.models.ApiPaymentDocumentSaveRequestPaymentDocumentType; +import com.asaas.apisdk.models.PaymentDocumentGetResponseDto; +import com.asaas.apisdk.models.PaymentDocumentSaveRequestDto; +import com.asaas.apisdk.models.PaymentDocumentSaveRequestPaymentDocumentType; public class Main { public static void main(String[] args) { @@ -89,18 +89,18 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDocumentSaveRequestDto apiPaymentDocumentSaveRequestDto = ApiPaymentDocumentSaveRequestDto.builder() + PaymentDocumentSaveRequestDto paymentDocumentSaveRequestDto = PaymentDocumentSaveRequestDto.builder() .availableAfterPayment(true) - .type(ApiPaymentDocumentSaveRequestPaymentDocumentType.INVOICE) + .type(PaymentDocumentSaveRequestPaymentDocumentType.INVOICE) .file(tempor Ut) .build(); - ApiPaymentDocumentSaveRequestDto apiPaymentDocumentSaveRequestDto = ApiPaymentDocumentSaveRequestDto.builder() + PaymentDocumentSaveRequestDto paymentDocumentSaveRequestDto = PaymentDocumentSaveRequestDto.builder() .availableAfterPayment(true) - .type(ApiPaymentDocumentSaveRequestPaymentDocumentType.INVOICE) + .type(PaymentDocumentSaveRequestPaymentDocumentType.INVOICE) .file(tempor Ut) .build(); - ApiPaymentDocumentGetResponseDto response = asaasSdk.paymentDocument.uploadPaymentDocuments("id", apiPaymentDocumentSaveRequestDto, apiPaymentDocumentSaveRequestDto); + PaymentDocumentGetResponseDto response = asaasSdk.paymentDocument.uploadPaymentDocuments("id", paymentDocumentSaveRequestDto, paymentDocumentSaveRequestDto); System.out.println(response); } @@ -121,7 +121,7 @@ public class Main { **Return Type** -`ApiPaymentDocumentGetResponseDto` +`PaymentDocumentGetResponseDto` **Example Usage Code Snippet** @@ -129,7 +129,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDocumentGetResponseDto; +import com.asaas.apisdk.models.PaymentDocumentGetResponseDto; public class Main { @@ -140,7 +140,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDocumentGetResponseDto response = asaasSdk.paymentDocument.retrieveASingleDocumentOfAPayment( + PaymentDocumentGetResponseDto response = asaasSdk.paymentDocument.retrieveASingleDocumentOfAPayment( "id", "documentId" ); @@ -158,15 +158,15 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :--------------------------------- | :------------------------------------------------------------------------------------ | :------- | :--------------------------------- | -| id | String | ✅ | Unique payment identifier in Asaas | -| documentId | String | ✅ | Unique document identifier | -| apiPaymentDocumentUpdateRequestDto | [ApiPaymentDocumentUpdateRequestDto](../models/ApiPaymentDocumentUpdateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------------ | :------------------------------------------------------------------------------ | :------- | :--------------------------------- | +| id | String | ✅ | Unique payment identifier in Asaas | +| documentId | String | ✅ | Unique document identifier | +| paymentDocumentUpdateRequestDto | [PaymentDocumentUpdateRequestDto](../models/PaymentDocumentUpdateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentDocumentGetResponseDto` +`PaymentDocumentGetResponseDto` **Example Usage Code Snippet** @@ -174,9 +174,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDocumentGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentDocumentUpdateRequestDto; -import com.asaas.apisdk.models.ApiPaymentDocumentUpdateRequestPaymentDocumentType; +import com.asaas.apisdk.models.PaymentDocumentGetResponseDto; +import com.asaas.apisdk.models.PaymentDocumentUpdateRequestDto; +import com.asaas.apisdk.models.PaymentDocumentUpdateRequestPaymentDocumentType; public class Main { @@ -187,15 +187,15 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDocumentUpdateRequestDto apiPaymentDocumentUpdateRequestDto = ApiPaymentDocumentUpdateRequestDto.builder() + PaymentDocumentUpdateRequestDto paymentDocumentUpdateRequestDto = PaymentDocumentUpdateRequestDto.builder() .availableAfterPayment(true) - .type(ApiPaymentDocumentUpdateRequestPaymentDocumentType.INVOICE) + .type(PaymentDocumentUpdateRequestPaymentDocumentType.INVOICE) .build(); - ApiPaymentDocumentGetResponseDto response = asaasSdk.paymentDocument.updateSettingsOfADocumentOfAPayment( + PaymentDocumentGetResponseDto response = asaasSdk.paymentDocument.updateSettingsOfADocumentOfAPayment( "id", "documentId", - apiPaymentDocumentUpdateRequestDto + paymentDocumentUpdateRequestDto ); System.out.println(response); @@ -218,7 +218,7 @@ public class Main { **Return Type** -`ApiPaymentDocumentDeleteResponseDto` +`PaymentDocumentDeleteResponseDto` **Example Usage Code Snippet** @@ -226,7 +226,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDocumentDeleteResponseDto; +import com.asaas.apisdk.models.PaymentDocumentDeleteResponseDto; public class Main { @@ -237,10 +237,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDocumentDeleteResponseDto response = asaasSdk.paymentDocument.deleteDocumentFromAPayment( - "id", - "documentId" - ); + PaymentDocumentDeleteResponseDto response = asaasSdk.paymentDocument.deleteDocumentFromAPayment("id", "documentId"); System.out.println(response); } diff --git a/documentation/services/PaymentDunningService.md b/documentation/services/PaymentDunningService.md index 44ce989..711557e 100644 --- a/documentation/services/PaymentDunningService.md +++ b/documentation/services/PaymentDunningService.md @@ -27,7 +27,7 @@ A list of all methods in the `PaymentDunningService` service. Click on the metho **Return Type** -`ApiPaymentDunningListResponseDto` +`PaymentDunningListResponseDto` **Example Usage Code Snippet** @@ -35,10 +35,10 @@ A list of all methods in the `PaymentDunningService` service. Click on the metho import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDunningListRequestPaymentDunningStatus; -import com.asaas.apisdk.models.ApiPaymentDunningListRequestPaymentDunningType; -import com.asaas.apisdk.models.ApiPaymentDunningListResponseDto; import com.asaas.apisdk.models.ListPaymentDunningsParameters; +import com.asaas.apisdk.models.PaymentDunningListRequestPaymentDunningStatus; +import com.asaas.apisdk.models.PaymentDunningListRequestPaymentDunningType; +import com.asaas.apisdk.models.PaymentDunningListResponseDto; public class Main { @@ -50,16 +50,16 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListPaymentDunningsParameters requestParameters = ListPaymentDunningsParameters.builder() - .offset(6L) + .offset(4L) .limit(10L) - .status(ApiPaymentDunningListRequestPaymentDunningStatus.PENDING) - .type(ApiPaymentDunningListRequestPaymentDunningType.CREDIT_BUREAU) + .status(PaymentDunningListRequestPaymentDunningStatus.PENDING) + .type(PaymentDunningListRequestPaymentDunningType.CREDIT_BUREAU) .payment("payment") .requestStartDate("requestStartDate") .requestEndDate("requestEndDate") .build(); - ApiPaymentDunningListResponseDto response = asaasSdk.paymentDunning.listPaymentDunnings(requestParameters); + PaymentDunningListResponseDto response = asaasSdk.paymentDunning.listPaymentDunnings(requestParameters); System.out.println(response); } @@ -74,14 +74,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------ | :------------------------------------------------------------------------------ | :------- | :----------------------------- | -| apiPaymentDunningSaveRequestDto | [ApiPaymentDunningSaveRequestDto](../models/ApiPaymentDunningSaveRequestDto.md) | ❌ | Request Body | -| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | +| Name | Type | Required | Description | +| :--------------------------- | :------------------------------------------------------------------------ | :------- | :----------------------------- | +| paymentDunningSaveRequestDto | [PaymentDunningSaveRequestDto](../models/PaymentDunningSaveRequestDto.md) | ❌ | Request Body | +| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | **Return Type** -`ApiPaymentDunningShowResponseDto` +`PaymentDunningShowResponseDto` **Example Usage Code Snippet** @@ -89,9 +89,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDunningSaveRequestDto; -import com.asaas.apisdk.models.ApiPaymentDunningSaveRequestPaymentDunningType; -import com.asaas.apisdk.models.ApiPaymentDunningShowResponseDto; +import com.asaas.apisdk.models.PaymentDunningSaveRequestDto; +import com.asaas.apisdk.models.PaymentDunningSaveRequestPaymentDunningType; +import com.asaas.apisdk.models.PaymentDunningShowResponseDto; public class Main { @@ -102,9 +102,9 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDunningSaveRequestDto apiPaymentDunningSaveRequestDto = ApiPaymentDunningSaveRequestDto.builder() + PaymentDunningSaveRequestDto paymentDunningSaveRequestDto = PaymentDunningSaveRequestDto.builder() .payment("pay_080225913252") - .type(ApiPaymentDunningSaveRequestPaymentDunningType.CREDIT_BUREAU) + .type(PaymentDunningSaveRequestPaymentDunningType.CREDIT_BUREAU) .description("Duas mesas com 8 cadeiras solicitadas via encomenda no dia 01/05/2018") .customerName("John Doe") .customerCpfCnpj("378.285.120-07") @@ -117,9 +117,9 @@ public class Main { .customerProvince("Petrópolis") .documents(documents) .build(); - ApiPaymentDunningSaveRequestDto apiPaymentDunningSaveRequestDto = ApiPaymentDunningSaveRequestDto.builder() + PaymentDunningSaveRequestDto paymentDunningSaveRequestDto = PaymentDunningSaveRequestDto.builder() .payment("pay_080225913252") - .type(ApiPaymentDunningSaveRequestPaymentDunningType.CREDIT_BUREAU) + .type(PaymentDunningSaveRequestPaymentDunningType.CREDIT_BUREAU) .description("Duas mesas com 8 cadeiras solicitadas via encomenda no dia 01/05/2018") .customerName("John Doe") .customerCpfCnpj("378.285.120-07") @@ -133,9 +133,9 @@ public class Main { .documents(documents) .build(); - ApiPaymentDunningShowResponseDto response = asaasSdk.paymentDunning.createAPaymentDunning( - apiPaymentDunningSaveRequestDto, - apiPaymentDunningSaveRequestDto + PaymentDunningShowResponseDto response = asaasSdk.paymentDunning.createAPaymentDunning( + paymentDunningSaveRequestDto, + paymentDunningSaveRequestDto ); System.out.println(response); @@ -157,7 +157,7 @@ public class Main { **Return Type** -`ApiPaymentDunningSimulateResponseDto` +`PaymentDunningSimulateResponseDto` **Example Usage Code Snippet** @@ -165,7 +165,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDunningSimulateResponseDto; +import com.asaas.apisdk.models.PaymentDunningSimulateResponseDto; import com.asaas.apisdk.models.SimulateAPaymentDunningParameters; public class Main { @@ -182,7 +182,7 @@ public class Main { .requestBody(new Object()) .build(); - ApiPaymentDunningSimulateResponseDto response = asaasSdk.paymentDunning.simulateAPaymentDunning(requestParameters); + PaymentDunningSimulateResponseDto response = asaasSdk.paymentDunning.simulateAPaymentDunning(requestParameters); System.out.println(response); } @@ -203,7 +203,7 @@ public class Main { **Return Type** -`ApiPaymentDunningShowResponseDto` +`PaymentDunningShowResponseDto` **Example Usage Code Snippet** @@ -211,7 +211,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDunningShowResponseDto; +import com.asaas.apisdk.models.PaymentDunningShowResponseDto; public class Main { @@ -222,7 +222,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDunningShowResponseDto response = asaasSdk.paymentDunning.recoverASinglePaymentDunning( + PaymentDunningShowResponseDto response = asaasSdk.paymentDunning.recoverASinglePaymentDunning( "ce35702d-0d9f-475a-ba46-e251ad265c91" ); @@ -248,7 +248,7 @@ Returns a paginated list of events that have occurred since the charge was denie **Return Type** -`ApiPaymentDunningListHistoryResponseDto` +`PaymentDunningListHistoryResponseDto` **Example Usage Code Snippet** @@ -256,8 +256,8 @@ Returns a paginated list of events that have occurred since the charge was denie import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDunningListHistoryResponseDto; import com.asaas.apisdk.models.EventHistoryListsParameters; +import com.asaas.apisdk.models.PaymentDunningListHistoryResponseDto; public class Main { @@ -268,9 +268,9 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - EventHistoryListsParameters requestParameters = EventHistoryListsParameters.builder().offset(8L).limit(10L).build(); + EventHistoryListsParameters requestParameters = EventHistoryListsParameters.builder().offset(2L).limit(10L).build(); - ApiPaymentDunningListHistoryResponseDto response = asaasSdk.paymentDunning.eventHistoryLists( + PaymentDunningListHistoryResponseDto response = asaasSdk.paymentDunning.eventHistoryLists( "ce35702d-0d9f-475a-ba46-e251ad265c91", requestParameters ); @@ -297,7 +297,7 @@ Returns a paginated list of payments received through debt renegotiation. **Return Type** -`ApiPaymentDunningListPartialPaymentsResponseDto` +`PaymentDunningListPartialPaymentsResponseDto` **Example Usage Code Snippet** @@ -305,8 +305,8 @@ Returns a paginated list of payments received through debt renegotiation. import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDunningListPartialPaymentsResponseDto; import com.asaas.apisdk.models.ListPaymentsReceivedParameters; +import com.asaas.apisdk.models.PaymentDunningListPartialPaymentsResponseDto; public class Main { @@ -318,11 +318,11 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListPaymentsReceivedParameters requestParameters = ListPaymentsReceivedParameters.builder() - .offset(5L) + .offset(1L) .limit(10L) .build(); - ApiPaymentDunningListPartialPaymentsResponseDto response = asaasSdk.paymentDunning.listPaymentsReceived( + PaymentDunningListPartialPaymentsResponseDto response = asaasSdk.paymentDunning.listPaymentsReceived( "ce35702d-0d9f-475a-ba46-e251ad265c91", requestParameters ); @@ -348,7 +348,7 @@ Returns a paginated list of possible negative charges together with a simulation **Return Type** -`ApiPaymentDunningPaymentsAvailableForDunningResponseDto` +`PaymentDunningPaymentsAvailableForDunningResponseDto` **Example Usage Code Snippet** @@ -356,8 +356,8 @@ Returns a paginated list of possible negative charges together with a simulation import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDunningPaymentsAvailableForDunningResponseDto; import com.asaas.apisdk.models.ListPaymentsAvailableForPaymentDunningParameters; +import com.asaas.apisdk.models.PaymentDunningPaymentsAvailableForDunningResponseDto; public class Main { @@ -369,9 +369,9 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListPaymentsAvailableForPaymentDunningParameters requestParameters = - ListPaymentsAvailableForPaymentDunningParameters.builder().offset(0L).limit(10L).build(); + ListPaymentsAvailableForPaymentDunningParameters.builder().offset(4L).limit(10L).build(); - ApiPaymentDunningPaymentsAvailableForDunningResponseDto response = + PaymentDunningPaymentsAvailableForDunningResponseDto response = asaasSdk.paymentDunning.listPaymentsAvailableForPaymentDunning(requestParameters); System.out.println(response); @@ -389,15 +389,15 @@ Use the `isNecessaryResendDocumentation` property returned in the delinquency ob **Parameters** -| Name | Type | Required | Description | -| :--------------------------------------- | :------------------------------------------------------------------------------------------------ | :------- | :------------------------------------------------ | -| id | String | ✅ | Unique identifier of the payment dunning in Asaas | -| apiPaymentDunningSaveDocumentsRequestDto | [ApiPaymentDunningSaveDocumentsRequestDto](../models/ApiPaymentDunningSaveDocumentsRequestDto.md) | ❌ | Request Body | -| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | +| Name | Type | Required | Description | +| :------------------------------------ | :------------------------------------------------------------------------------------------ | :------- | :------------------------------------------------ | +| id | String | ✅ | Unique identifier of the payment dunning in Asaas | +| paymentDunningSaveDocumentsRequestDto | [PaymentDunningSaveDocumentsRequestDto](../models/PaymentDunningSaveDocumentsRequestDto.md) | ❌ | Request Body | +| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | **Return Type** -`ApiPaymentDunningSaveDocumentsResponseDto` +`PaymentDunningSaveDocumentsResponseDto` **Example Usage Code Snippet** @@ -405,8 +405,8 @@ Use the `isNecessaryResendDocumentation` property returned in the delinquency ob import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDunningSaveDocumentsRequestDto; -import com.asaas.apisdk.models.ApiPaymentDunningSaveDocumentsResponseDto; +import com.asaas.apisdk.models.PaymentDunningSaveDocumentsRequestDto; +import com.asaas.apisdk.models.PaymentDunningSaveDocumentsResponseDto; public class Main { @@ -417,15 +417,15 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDunningSaveDocumentsRequestDto apiPaymentDunningSaveDocumentsRequestDto = - ApiPaymentDunningSaveDocumentsRequestDto.builder().documents(documents).build(); - ApiPaymentDunningSaveDocumentsRequestDto apiPaymentDunningSaveDocumentsRequestDto = - ApiPaymentDunningSaveDocumentsRequestDto.builder().documents(documents).build(); + PaymentDunningSaveDocumentsRequestDto paymentDunningSaveDocumentsRequestDto = + PaymentDunningSaveDocumentsRequestDto.builder().documents(documents).build(); + PaymentDunningSaveDocumentsRequestDto paymentDunningSaveDocumentsRequestDto = + PaymentDunningSaveDocumentsRequestDto.builder().documents(documents).build(); - ApiPaymentDunningSaveDocumentsResponseDto response = asaasSdk.paymentDunning.resendDocuments( + PaymentDunningSaveDocumentsResponseDto response = asaasSdk.paymentDunning.resendDocuments( "ce35702d-0d9f-475a-ba46-e251ad265c91", - apiPaymentDunningSaveDocumentsRequestDto, - apiPaymentDunningSaveDocumentsRequestDto + paymentDunningSaveDocumentsRequestDto, + paymentDunningSaveDocumentsRequestDto ); System.out.println(response); @@ -450,7 +450,7 @@ Allows the cancellation of a delinquency. Use the `canBeCancelled` property retu **Return Type** -`ApiPaymentDunningCancelResponseDto` +`PaymentDunningCancelResponseDto` **Example Usage Code Snippet** @@ -458,7 +458,7 @@ Allows the cancellation of a delinquency. Use the `canBeCancelled` property retu import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDunningCancelResponseDto; +import com.asaas.apisdk.models.PaymentDunningCancelResponseDto; public class Main { @@ -469,7 +469,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDunningCancelResponseDto response = asaasSdk.paymentDunning.cancelPaymentDunning( + PaymentDunningCancelResponseDto response = asaasSdk.paymentDunning.cancelPaymentDunning( "ce35702d-0d9f-475a-ba46-e251ad265c91", new Object() ); diff --git a/documentation/services/PaymentLinkService.md b/documentation/services/PaymentLinkService.md index 55339c8..f6b6e58 100644 --- a/documentation/services/PaymentLinkService.md +++ b/documentation/services/PaymentLinkService.md @@ -29,7 +29,7 @@ A list of all methods in the `PaymentLinkService` service. Click on the method n **Return Type** -`ApiPaymentCampaignListResponseDto` +`PaymentLinkListResponseDto` **Example Usage Code Snippet** @@ -37,8 +37,8 @@ A list of all methods in the `PaymentLinkService` service. Click on the method n import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCampaignListResponseDto; import com.asaas.apisdk.models.ListPaymentsLinksParameters; +import com.asaas.apisdk.models.PaymentLinkListResponseDto; public class Main { @@ -50,15 +50,15 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListPaymentsLinksParameters requestParameters = ListPaymentsLinksParameters.builder() - .offset(2L) + .offset(9L) .limit(10L) .active(true) - .includeDeleted(false) + .includeDeleted(true) .name("name") .externalReference("externalReference") .build(); - ApiPaymentCampaignListResponseDto response = asaasSdk.paymentLink.listPaymentsLinks(requestParameters); + PaymentLinkListResponseDto response = asaasSdk.paymentLink.listPaymentsLinks(requestParameters); System.out.println(response); } @@ -73,13 +73,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------- | :-------------------------------------------------------------------------------- | :------- | :----------- | -| apiPaymentCampaignSaveRequestDto | [ApiPaymentCampaignSaveRequestDto](../models/ApiPaymentCampaignSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------ | :------------------------------------------------------------------ | :------- | :----------- | +| paymentLinkSaveRequestDto | [PaymentLinkSaveRequestDto](../models/PaymentLinkSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentCampaignGetResponseDto` +`PaymentLinkGetResponseDto` **Example Usage Code Snippet** @@ -87,12 +87,12 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCallbackRequestDto; -import com.asaas.apisdk.models.ApiPaymentCampaignGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentCampaignSaveRequestBillingType; -import com.asaas.apisdk.models.ApiPaymentCampaignSaveRequestChargeType; -import com.asaas.apisdk.models.ApiPaymentCampaignSaveRequestCycle; -import com.asaas.apisdk.models.ApiPaymentCampaignSaveRequestDto; +import com.asaas.apisdk.models.PaymentCallbackRequestDto; +import com.asaas.apisdk.models.PaymentLinkGetResponseDto; +import com.asaas.apisdk.models.PaymentLinkSaveRequestBillingType; +import com.asaas.apisdk.models.PaymentLinkSaveRequestChargeType; +import com.asaas.apisdk.models.PaymentLinkSaveRequestCycle; +import com.asaas.apisdk.models.PaymentLinkSaveRequestDto; public class Main { @@ -103,30 +103,28 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCallbackRequestDto apiPaymentCallbackRequestDto = ApiPaymentCallbackRequestDto.builder() + PaymentCallbackRequestDto paymentCallbackRequestDto = PaymentCallbackRequestDto.builder() .successUrl("successUrl") .autoRedirect(true) .build(); - ApiPaymentCampaignSaveRequestDto apiPaymentCampaignSaveRequestDto = ApiPaymentCampaignSaveRequestDto.builder() + PaymentLinkSaveRequestDto paymentLinkSaveRequestDto = PaymentLinkSaveRequestDto.builder() .name("Book sales") .description("Any book for just R$: 50.00") .endDate("2024-09-05") .value(50D) - .billingType(ApiPaymentCampaignSaveRequestBillingType.UNDEFINED) - .chargeType(ApiPaymentCampaignSaveRequestChargeType.DETACHED) + .billingType(PaymentLinkSaveRequestBillingType.UNDEFINED) + .chargeType(PaymentLinkSaveRequestChargeType.DETACHED) .dueDateLimitDays(10L) - .subscriptionCycle(ApiPaymentCampaignSaveRequestCycle.WEEKLY) + .subscriptionCycle(PaymentLinkSaveRequestCycle.WEEKLY) .maxInstallmentCount(1L) .externalReference("1287") - .notificationEnabled(false) - .callback(apiPaymentCallbackRequestDto) + .notificationEnabled(true) + .callback(paymentCallbackRequestDto) .isAddressRequired(true) .build(); - ApiPaymentCampaignGetResponseDto response = asaasSdk.paymentLink.createAPaymentsLink( - apiPaymentCampaignSaveRequestDto - ); + PaymentLinkGetResponseDto response = asaasSdk.paymentLink.createAPaymentsLink(paymentLinkSaveRequestDto); System.out.println(response); } @@ -147,7 +145,7 @@ public class Main { **Return Type** -`ApiPaymentCampaignGetResponseDto` +`PaymentLinkGetResponseDto` **Example Usage Code Snippet** @@ -155,7 +153,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCampaignGetResponseDto; +import com.asaas.apisdk.models.PaymentLinkGetResponseDto; public class Main { @@ -166,7 +164,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCampaignGetResponseDto response = asaasSdk.paymentLink.retrieveASinglePaymentsLink("725104409743"); + PaymentLinkGetResponseDto response = asaasSdk.paymentLink.retrieveASinglePaymentsLink("725104409743"); System.out.println(response); } @@ -181,14 +179,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :--------------------------------- | :------------------------------------------------------------------------------------ | :------- | :------------------------------------------------ | -| id | String | ✅ | Unique identifier for your payments link in Asaas | -| apiPaymentCampaignUpdateRequestDto | [ApiPaymentCampaignUpdateRequestDto](../models/ApiPaymentCampaignUpdateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :-------------------------- | :---------------------------------------------------------------------- | :------- | :------------------------------------------------ | +| id | String | ✅ | Unique identifier for your payments link in Asaas | +| paymentLinkUpdateRequestDto | [PaymentLinkUpdateRequestDto](../models/PaymentLinkUpdateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentCampaignGetResponseDto` +`PaymentLinkGetResponseDto` **Example Usage Code Snippet** @@ -196,12 +194,12 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCallbackRequestDto; -import com.asaas.apisdk.models.ApiPaymentCampaignGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentCampaignUpdateRequestBillingType; -import com.asaas.apisdk.models.ApiPaymentCampaignUpdateRequestChargeType; -import com.asaas.apisdk.models.ApiPaymentCampaignUpdateRequestCycle; -import com.asaas.apisdk.models.ApiPaymentCampaignUpdateRequestDto; +import com.asaas.apisdk.models.PaymentCallbackRequestDto; +import com.asaas.apisdk.models.PaymentLinkGetResponseDto; +import com.asaas.apisdk.models.PaymentLinkUpdateRequestBillingType; +import com.asaas.apisdk.models.PaymentLinkUpdateRequestChargeType; +import com.asaas.apisdk.models.PaymentLinkUpdateRequestCycle; +import com.asaas.apisdk.models.PaymentLinkUpdateRequestDto; public class Main { @@ -212,30 +210,30 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCallbackRequestDto apiPaymentCallbackRequestDto = ApiPaymentCallbackRequestDto.builder() + PaymentCallbackRequestDto paymentCallbackRequestDto = PaymentCallbackRequestDto.builder() .successUrl("successUrl") .autoRedirect(true) .build(); - ApiPaymentCampaignUpdateRequestDto apiPaymentCampaignUpdateRequestDto = ApiPaymentCampaignUpdateRequestDto.builder() + PaymentLinkUpdateRequestDto paymentLinkUpdateRequestDto = PaymentLinkUpdateRequestDto.builder() .name("Book sales") .description("Any book for just R$: 50.00") .endDate("2024-09-05") .value(50D) .active(true) - .billingType(ApiPaymentCampaignUpdateRequestBillingType.UNDEFINED) - .chargeType(ApiPaymentCampaignUpdateRequestChargeType.DETACHED) + .billingType(PaymentLinkUpdateRequestBillingType.UNDEFINED) + .chargeType(PaymentLinkUpdateRequestChargeType.DETACHED) .dueDateLimitDays(10L) - .subscriptionCycle(ApiPaymentCampaignUpdateRequestCycle.WEEKLY) + .subscriptionCycle(PaymentLinkUpdateRequestCycle.WEEKLY) .maxInstallmentCount(1L) .externalReference("2323") - .notificationEnabled(false) - .callback(apiPaymentCallbackRequestDto) + .notificationEnabled(true) + .callback(paymentCallbackRequestDto) .build(); - ApiPaymentCampaignGetResponseDto response = asaasSdk.paymentLink.updateAPaymentsLink( + PaymentLinkGetResponseDto response = asaasSdk.paymentLink.updateAPaymentsLink( "725104409743", - apiPaymentCampaignUpdateRequestDto + paymentLinkUpdateRequestDto ); System.out.println(response); @@ -257,7 +255,7 @@ public class Main { **Return Type** -`ApiPaymentCampaignDeleteResponseDto` +`PaymentLinkDeleteResponseDto` **Example Usage Code Snippet** @@ -265,7 +263,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCampaignDeleteResponseDto; +import com.asaas.apisdk.models.PaymentLinkDeleteResponseDto; public class Main { @@ -276,7 +274,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCampaignDeleteResponseDto response = asaasSdk.paymentLink.removeAPaymentsLink("725104409743"); + PaymentLinkDeleteResponseDto response = asaasSdk.paymentLink.removeAPaymentsLink("725104409743"); System.out.println(response); } @@ -298,7 +296,7 @@ public class Main { **Return Type** -`ApiPaymentCampaignGetResponseDto` +`PaymentLinkGetResponseDto` **Example Usage Code Snippet** @@ -306,7 +304,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCampaignGetResponseDto; +import com.asaas.apisdk.models.PaymentLinkGetResponseDto; public class Main { @@ -317,7 +315,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCampaignGetResponseDto response = asaasSdk.paymentLink.restoreAPaymentsLink("725104409743", new Object()); + PaymentLinkGetResponseDto response = asaasSdk.paymentLink.restoreAPaymentsLink("725104409743", new Object()); System.out.println(response); } @@ -338,7 +336,7 @@ public class Main { **Return Type** -`ApiPaymentCampaignFileListResponseDto` +`PaymentLinkFileListResponseDto` **Example Usage Code Snippet** @@ -346,7 +344,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCampaignFileListResponseDto; +import com.asaas.apisdk.models.PaymentLinkFileListResponseDto; public class Main { @@ -357,7 +355,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCampaignFileListResponseDto response = asaasSdk.paymentLink.listImagesFromAPaymentsLink("725104409743"); + PaymentLinkFileListResponseDto response = asaasSdk.paymentLink.listImagesFromAPaymentsLink("725104409743"); System.out.println(response); } @@ -372,15 +370,15 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :----------------------------------- | :---------------------------------------------------------------------------------------- | :------- | :------------------------------------------------ | -| id | String | ✅ | Unique identifier for your payments link in Asaas | -| apiPaymentCampaignFileSaveRequestDto | [ApiPaymentCampaignFileSaveRequestDto](../models/ApiPaymentCampaignFileSaveRequestDto.md) | ❌ | Request Body | -| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | +| Name | Type | Required | Description | +| :---------------------------- | :-------------------------------------------------------------------------- | :------- | :------------------------------------------------ | +| id | String | ✅ | Unique identifier for your payments link in Asaas | +| paymentLinkFileSaveRequestDto | [PaymentLinkFileSaveRequestDto](../models/PaymentLinkFileSaveRequestDto.md) | ❌ | Request Body | +| \_filename | [String](../models/String.md) | ✅ | Filename for the uploaded file | **Return Type** -`ApiPaymentCampaignFileGetResponseDto` +`PaymentLinkFileGetResponseDto` **Example Usage Code Snippet** @@ -388,8 +386,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCampaignFileGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentCampaignFileSaveRequestDto; +import com.asaas.apisdk.models.PaymentLinkFileGetResponseDto; +import com.asaas.apisdk.models.PaymentLinkFileSaveRequestDto; public class Main { public static void main(String[] args) { @@ -403,16 +401,16 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCampaignFileSaveRequestDto apiPaymentCampaignFileSaveRequestDto = ApiPaymentCampaignFileSaveRequestDto.builder() + PaymentLinkFileSaveRequestDto paymentLinkFileSaveRequestDto = PaymentLinkFileSaveRequestDto.builder() .main(true) - .image(ipsum nulla m) + .image(dolor laborum) .build(); - ApiPaymentCampaignFileSaveRequestDto apiPaymentCampaignFileSaveRequestDto = ApiPaymentCampaignFileSaveRequestDto.builder() + PaymentLinkFileSaveRequestDto paymentLinkFileSaveRequestDto = PaymentLinkFileSaveRequestDto.builder() .main(true) - .image(ipsum nulla m) + .image(dolor laborum) .build(); - ApiPaymentCampaignFileGetResponseDto response = asaasSdk.paymentLink.addAnImageToAPaymentsLink("725104409743", apiPaymentCampaignFileSaveRequestDto, apiPaymentCampaignFileSaveRequestDto); + PaymentLinkFileGetResponseDto response = asaasSdk.paymentLink.addAnImageToAPaymentsLink("725104409743", paymentLinkFileSaveRequestDto, paymentLinkFileSaveRequestDto); System.out.println(response); } @@ -433,7 +431,7 @@ public class Main { **Return Type** -`ApiPaymentCampaignFileGetResponseDto` +`PaymentLinkFileGetResponseDto` **Example Usage Code Snippet** @@ -441,7 +439,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCampaignFileGetResponseDto; +import com.asaas.apisdk.models.PaymentLinkFileGetResponseDto; public class Main { @@ -452,7 +450,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCampaignFileGetResponseDto response = asaasSdk.paymentLink.retrieveASinglePaymentsLinkImage( + PaymentLinkFileGetResponseDto response = asaasSdk.paymentLink.retrieveASinglePaymentsLinkImage( "725104409743", "417d1fe7-f530-4368-935f-699045f2bf5d" ); @@ -477,7 +475,7 @@ public class Main { **Return Type** -`ApiPaymentCampaignFileDeleteResponseDto` +`PaymentLinkFileDeleteResponseDto` **Example Usage Code Snippet** @@ -485,7 +483,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCampaignFileDeleteResponseDto; +import com.asaas.apisdk.models.PaymentLinkFileDeleteResponseDto; public class Main { @@ -496,7 +494,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCampaignFileDeleteResponseDto response = asaasSdk.paymentLink.removeAnImageFromPaymentsLink( + PaymentLinkFileDeleteResponseDto response = asaasSdk.paymentLink.removeAnImageFromPaymentsLink( "725104409743", "417d1fe7-f530-4368-935f-699045f2bf5d" ); @@ -522,7 +520,7 @@ public class Main { **Return Type** -`ApiPaymentCampaignFileGetResponseDto` +`PaymentLinkFileGetResponseDto` **Example Usage Code Snippet** @@ -530,7 +528,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCampaignFileGetResponseDto; +import com.asaas.apisdk.models.PaymentLinkFileGetResponseDto; public class Main { @@ -541,7 +539,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCampaignFileGetResponseDto response = asaasSdk.paymentLink.setPaymentsLinkMainImage( + PaymentLinkFileGetResponseDto response = asaasSdk.paymentLink.setPaymentsLinkMainImage( "725104409743", "417d1fe7-f530-4368-935f-699045f2bf5d", new Object() diff --git a/documentation/services/PaymentRefundService.md b/documentation/services/PaymentRefundService.md index 659712c..34ba8e7 100644 --- a/documentation/services/PaymentRefundService.md +++ b/documentation/services/PaymentRefundService.md @@ -20,7 +20,7 @@ A list of all methods in the `PaymentRefundService` service. Click on the method **Return Type** -`ApiPaymentRefundListResponseDto` +`PaymentRefundListResponseDto` **Example Usage Code Snippet** @@ -28,7 +28,7 @@ A list of all methods in the `PaymentRefundService` service. Click on the method import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentRefundListResponseDto; +import com.asaas.apisdk.models.PaymentRefundListResponseDto; public class Main { @@ -39,7 +39,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentRefundListResponseDto response = asaasSdk.paymentRefund.retrieveRefundsOfASinglePayment("id"); + PaymentRefundListResponseDto response = asaasSdk.paymentRefund.retrieveRefundsOfASinglePayment("id"); System.out.println(response); } @@ -61,7 +61,7 @@ public class Main { **Return Type** -`ApiPaymentBankSlipRefundResponseDto` +`PaymentBankSlipRefundResponseDto` **Example Usage Code Snippet** @@ -69,7 +69,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentBankSlipRefundResponseDto; +import com.asaas.apisdk.models.PaymentBankSlipRefundResponseDto; public class Main { @@ -80,7 +80,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentBankSlipRefundResponseDto response = asaasSdk.paymentRefund.refundBankSlip("id", new Object()); + PaymentBankSlipRefundResponseDto response = asaasSdk.paymentRefund.refundBankSlip("id", new Object()); System.out.println(response); } diff --git a/documentation/services/PaymentService.md b/documentation/services/PaymentService.md index 22893b5..5c44f6c 100644 --- a/documentation/services/PaymentService.md +++ b/documentation/services/PaymentService.md @@ -38,7 +38,7 @@ A list of all methods in the `PaymentService` service. Click on the method name **Return Type** -`ApiPaymentListResponseDto` +`PaymentListResponseDto` **Example Usage Code Snippet** @@ -46,11 +46,11 @@ A list of all methods in the `PaymentService` service. Click on the method name import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentListRequestBillingType; -import com.asaas.apisdk.models.ApiPaymentListRequestInvoiceStatus; -import com.asaas.apisdk.models.ApiPaymentListRequestPaymentStatus; -import com.asaas.apisdk.models.ApiPaymentListResponseDto; import com.asaas.apisdk.models.ListPaymentsParameters; +import com.asaas.apisdk.models.PaymentListRequestBillingType; +import com.asaas.apisdk.models.PaymentListRequestInvoiceStatus; +import com.asaas.apisdk.models.PaymentListRequestPaymentStatus; +import com.asaas.apisdk.models.PaymentListResponseDto; public class Main { @@ -67,12 +67,12 @@ public class Main { .limit(10L) .customer("customer") .customerGroupName("customerGroupName") - .billingType(ApiPaymentListRequestBillingType.UNDEFINED) - .status(ApiPaymentListRequestPaymentStatus.PENDING) + .billingType(PaymentListRequestBillingType.UNDEFINED) + .status(PaymentListRequestPaymentStatus.PENDING) .subscription("subscription") .externalReference("externalReference") .paymentDate("paymentDate") - .invoiceStatus(ApiPaymentListRequestInvoiceStatus.SCHEDULED) + .invoiceStatus(PaymentListRequestInvoiceStatus.SCHEDULED) .estimatedCreditDate("estimatedCreditDate") .pixQrCodeId("pixQrCodeId") .anticipated(false) @@ -88,7 +88,7 @@ public class Main { .user("user") .build(); - ApiPaymentListResponseDto response = asaasSdk.payment.listPayments(requestParameters); + PaymentListResponseDto response = asaasSdk.payment.listPayments(requestParameters); System.out.println(response); } @@ -103,13 +103,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :----------------------- | :---------------------------------------------------------------- | :------- | :----------- | -| apiPaymentSaveRequestDto | [ApiPaymentSaveRequestDto](../models/ApiPaymentSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :-------------------- | :---------------------------------------------------------- | :------- | :----------- | +| paymentSaveRequestDto | [PaymentSaveRequestDto](../models/PaymentSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -117,16 +117,16 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCallbackRequestDto; -import com.asaas.apisdk.models.ApiPaymentDiscountDiscountType; -import com.asaas.apisdk.models.ApiPaymentDiscountDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestFineType; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentInterestRequestDto; -import com.asaas.apisdk.models.ApiPaymentSaveRequestBillingType; -import com.asaas.apisdk.models.ApiPaymentSaveRequestDto; -import com.asaas.apisdk.models.ApiPaymentSplitRequestDto; +import com.asaas.apisdk.models.PaymentCallbackRequestDto; +import com.asaas.apisdk.models.PaymentDiscountDiscountType; +import com.asaas.apisdk.models.PaymentDiscountDto; +import com.asaas.apisdk.models.PaymentFineRequestDto; +import com.asaas.apisdk.models.PaymentFineRequestFineType; +import com.asaas.apisdk.models.PaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentInterestRequestDto; +import com.asaas.apisdk.models.PaymentSaveRequestBillingType; +import com.asaas.apisdk.models.PaymentSaveRequestDto; +import com.asaas.apisdk.models.PaymentSplitRequestDto; import java.util.Arrays; import java.util.List; @@ -139,22 +139,20 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDiscountDto apiPaymentDiscountDto = ApiPaymentDiscountDto.builder() + PaymentDiscountDto paymentDiscountDto = PaymentDiscountDto.builder() .value(10D) .dueDateLimitDays(1L) - .type(ApiPaymentDiscountDiscountType.FIXED) + .type(PaymentDiscountDiscountType.FIXED) .build(); - ApiPaymentInterestRequestDto apiPaymentInterestRequestDto = ApiPaymentInterestRequestDto.builder() - .value(4.68D) - .build(); + PaymentInterestRequestDto paymentInterestRequestDto = PaymentInterestRequestDto.builder().value(4.68D).build(); - ApiPaymentFineRequestDto apiPaymentFineRequestDto = ApiPaymentFineRequestDto.builder() + PaymentFineRequestDto paymentFineRequestDto = PaymentFineRequestDto.builder() .value(8.99D) - .type(ApiPaymentFineRequestFineType.FIXED) + .type(PaymentFineRequestFineType.FIXED) .build(); - ApiPaymentSplitRequestDto apiPaymentSplitRequestDto = ApiPaymentSplitRequestDto.builder() + PaymentSplitRequestDto paymentSplitRequestDto = PaymentSplitRequestDto.builder() .walletId("walletId") .fixedValue(6.62D) .percentualValue(6.01D) @@ -163,16 +161,16 @@ public class Main { .description("description") .build(); - List splitList = Arrays.asList(apiPaymentSplitRequestDto); + List splitList = Arrays.asList(paymentSplitRequestDto); - ApiPaymentCallbackRequestDto apiPaymentCallbackRequestDto = ApiPaymentCallbackRequestDto.builder() + PaymentCallbackRequestDto paymentCallbackRequestDto = PaymentCallbackRequestDto.builder() .successUrl("successUrl") .autoRedirect(true) .build(); - ApiPaymentSaveRequestDto apiPaymentSaveRequestDto = ApiPaymentSaveRequestDto.builder() + PaymentSaveRequestDto paymentSaveRequestDto = PaymentSaveRequestDto.builder() .customer("cus_G7Dvo4iphUNk") - .billingType(ApiPaymentSaveRequestBillingType.UNDEFINED) + .billingType(PaymentSaveRequestBillingType.UNDEFINED) .value(129.9D) .dueDate("2017-06-10") .description("Pedido 056984") @@ -181,15 +179,15 @@ public class Main { .installmentCount(7L) .totalValue(7.91D) .installmentValue(8.76D) - .discount(apiPaymentDiscountDto) - .interest(apiPaymentInterestRequestDto) - .fine(apiPaymentFineRequestDto) + .discount(paymentDiscountDto) + .interest(paymentInterestRequestDto) + .fine(paymentFineRequestDto) .postalService(true) .split(splitList) - .callback(apiPaymentCallbackRequestDto) + .callback(paymentCallbackRequestDto) .build(); - ApiPaymentGetResponseDto response = asaasSdk.payment.createNewPayment(apiPaymentSaveRequestDto); + PaymentGetResponseDto response = asaasSdk.payment.createNewPayment(paymentSaveRequestDto); System.out.println(response); } @@ -204,13 +202,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------------- | :-------------------------------------------------------------------------------------------- | :------- | :----------- | -| apiPaymentSaveWithCreditCardRequestDto | [ApiPaymentSaveWithCreditCardRequestDto](../models/ApiPaymentSaveWithCreditCardRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------------------- | :-------------------------------------------------------------------------------------- | :------- | :----------- | +| paymentSaveWithCreditCardRequestDto | [PaymentSaveWithCreditCardRequestDto](../models/PaymentSaveWithCreditCardRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -218,18 +216,18 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCreditCardHolderInfoRequestDto; -import com.asaas.apisdk.models.ApiCreditCardRequestDto; -import com.asaas.apisdk.models.ApiPaymentCallbackRequestDto; -import com.asaas.apisdk.models.ApiPaymentDiscountDiscountType; -import com.asaas.apisdk.models.ApiPaymentDiscountDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestFineType; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentInterestRequestDto; -import com.asaas.apisdk.models.ApiPaymentSaveWithCreditCardRequestBillingType; -import com.asaas.apisdk.models.ApiPaymentSaveWithCreditCardRequestDto; -import com.asaas.apisdk.models.ApiPaymentSplitRequestDto; +import com.asaas.apisdk.models.CreditCardHolderInfoRequestDto; +import com.asaas.apisdk.models.CreditCardRequestDto; +import com.asaas.apisdk.models.PaymentCallbackRequestDto; +import com.asaas.apisdk.models.PaymentDiscountDiscountType; +import com.asaas.apisdk.models.PaymentDiscountDto; +import com.asaas.apisdk.models.PaymentFineRequestDto; +import com.asaas.apisdk.models.PaymentFineRequestFineType; +import com.asaas.apisdk.models.PaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentInterestRequestDto; +import com.asaas.apisdk.models.PaymentSaveWithCreditCardRequestBillingType; +import com.asaas.apisdk.models.PaymentSaveWithCreditCardRequestDto; +import com.asaas.apisdk.models.PaymentSplitRequestDto; import java.util.Arrays; import java.util.List; @@ -242,22 +240,20 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDiscountDto apiPaymentDiscountDto = ApiPaymentDiscountDto.builder() + PaymentDiscountDto paymentDiscountDto = PaymentDiscountDto.builder() .value(10D) .dueDateLimitDays(1L) - .type(ApiPaymentDiscountDiscountType.FIXED) + .type(PaymentDiscountDiscountType.FIXED) .build(); - ApiPaymentInterestRequestDto apiPaymentInterestRequestDto = ApiPaymentInterestRequestDto.builder() - .value(4.68D) - .build(); + PaymentInterestRequestDto paymentInterestRequestDto = PaymentInterestRequestDto.builder().value(4.68D).build(); - ApiPaymentFineRequestDto apiPaymentFineRequestDto = ApiPaymentFineRequestDto.builder() + PaymentFineRequestDto paymentFineRequestDto = PaymentFineRequestDto.builder() .value(8.99D) - .type(ApiPaymentFineRequestFineType.FIXED) + .type(PaymentFineRequestFineType.FIXED) .build(); - ApiPaymentSplitRequestDto apiPaymentSplitRequestDto = ApiPaymentSplitRequestDto.builder() + PaymentSplitRequestDto paymentSplitRequestDto = PaymentSplitRequestDto.builder() .walletId("walletId") .fixedValue(6.62D) .percentualValue(6.01D) @@ -266,22 +262,22 @@ public class Main { .description("description") .build(); - List splitList = Arrays.asList(apiPaymentSplitRequestDto); + List splitList = Arrays.asList(paymentSplitRequestDto); - ApiPaymentCallbackRequestDto apiPaymentCallbackRequestDto = ApiPaymentCallbackRequestDto.builder() + PaymentCallbackRequestDto paymentCallbackRequestDto = PaymentCallbackRequestDto.builder() .successUrl("successUrl") .autoRedirect(true) .build(); - ApiCreditCardRequestDto apiCreditCardRequestDto = ApiCreditCardRequestDto.builder() + CreditCardRequestDto creditCardRequestDto = CreditCardRequestDto.builder() .holderName("John Doe") .number("1234567890123456") - .expiryMonth("6") + .expiryMonth("7") .expiryYear("2025") .ccv("123") .build(); - ApiCreditCardHolderInfoRequestDto apiCreditCardHolderInfoRequestDto = ApiCreditCardHolderInfoRequestDto.builder() + CreditCardHolderInfoRequestDto creditCardHolderInfoRequestDto = CreditCardHolderInfoRequestDto.builder() .name("John Doe") .email("john.doe@asaas.com") .cpfCnpj("12345678901") @@ -292,10 +288,10 @@ public class Main { .mobilePhone("mobilePhone") .build(); - ApiPaymentSaveWithCreditCardRequestDto apiPaymentSaveWithCreditCardRequestDto = - ApiPaymentSaveWithCreditCardRequestDto.builder() + PaymentSaveWithCreditCardRequestDto paymentSaveWithCreditCardRequestDto = + PaymentSaveWithCreditCardRequestDto.builder() .customer("cus_G7Dvo4iphUNk") - .billingType(ApiPaymentSaveWithCreditCardRequestBillingType.UNDEFINED) + .billingType(PaymentSaveWithCreditCardRequestBillingType.UNDEFINED) .value(129.9D) .dueDate("2017-06-10") .description("Pedido 056984") @@ -304,21 +300,21 @@ public class Main { .installmentCount(6L) .totalValue(3.41D) .installmentValue(8.68D) - .discount(apiPaymentDiscountDto) - .interest(apiPaymentInterestRequestDto) - .fine(apiPaymentFineRequestDto) + .discount(paymentDiscountDto) + .interest(paymentInterestRequestDto) + .fine(paymentFineRequestDto) .postalService(true) .split(splitList) - .callback(apiPaymentCallbackRequestDto) - .creditCard(apiCreditCardRequestDto) - .creditCardHolderInfo(apiCreditCardHolderInfoRequestDto) + .callback(paymentCallbackRequestDto) + .creditCard(creditCardRequestDto) + .creditCardHolderInfo(creditCardHolderInfoRequestDto) .creditCardToken("creditCardToken") .authorizeOnly(false) .remoteIp("remoteIp") .build(); - ApiPaymentGetResponseDto response = asaasSdk.payment.createNewPaymentWithCreditCard( - apiPaymentSaveWithCreditCardRequestDto + PaymentGetResponseDto response = asaasSdk.payment.createNewPaymentWithCreditCard( + paymentSaveWithCreditCardRequestDto ); System.out.println(response); @@ -341,7 +337,7 @@ public class Main { **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -349,7 +345,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; public class Main { @@ -360,7 +356,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentGetResponseDto response = asaasSdk.payment.capturePaymentWithPreAuthorization("id", new Object()); + PaymentGetResponseDto response = asaasSdk.payment.capturePaymentWithPreAuthorization("id", new Object()); System.out.println(response); } @@ -375,14 +371,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------------ | :------------------------------------------------------------------------------------------ | :------- | :--------------------------------- | -| id | String | ✅ | Unique payment identifier in Asaas | -| apiPaymentPayWithCreditCardRequestDto | [ApiPaymentPayWithCreditCardRequestDto](../models/ApiPaymentPayWithCreditCardRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :--------------------------------- | :------------------------------------------------------------------------------------ | :------- | :--------------------------------- | +| id | String | ✅ | Unique payment identifier in Asaas | +| paymentPayWithCreditCardRequestDto | [PaymentPayWithCreditCardRequestDto](../models/PaymentPayWithCreditCardRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -390,10 +386,10 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCreditCardHolderInfoRequestDto; -import com.asaas.apisdk.models.ApiCreditCardRequestDto; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentPayWithCreditCardRequestDto; +import com.asaas.apisdk.models.CreditCardHolderInfoRequestDto; +import com.asaas.apisdk.models.CreditCardRequestDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentPayWithCreditCardRequestDto; public class Main { @@ -404,15 +400,15 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCreditCardRequestDto apiCreditCardRequestDto = ApiCreditCardRequestDto.builder() + CreditCardRequestDto creditCardRequestDto = CreditCardRequestDto.builder() .holderName("John Doe") .number("1234567890123456") - .expiryMonth("6") + .expiryMonth("7") .expiryYear("2025") .ccv("123") .build(); - ApiCreditCardHolderInfoRequestDto apiCreditCardHolderInfoRequestDto = ApiCreditCardHolderInfoRequestDto.builder() + CreditCardHolderInfoRequestDto creditCardHolderInfoRequestDto = CreditCardHolderInfoRequestDto.builder() .name("John Doe") .email("john.doe@asaas.com") .cpfCnpj("12345678901") @@ -423,16 +419,15 @@ public class Main { .mobilePhone("mobilePhone") .build(); - ApiPaymentPayWithCreditCardRequestDto apiPaymentPayWithCreditCardRequestDto = - ApiPaymentPayWithCreditCardRequestDto.builder() - .creditCard(apiCreditCardRequestDto) - .creditCardHolderInfo(apiCreditCardHolderInfoRequestDto) - .creditCardToken("creditCardToken") - .build(); + PaymentPayWithCreditCardRequestDto paymentPayWithCreditCardRequestDto = PaymentPayWithCreditCardRequestDto.builder() + .creditCard(creditCardRequestDto) + .creditCardHolderInfo(creditCardHolderInfoRequestDto) + .creditCardToken("creditCardToken") + .build(); - ApiPaymentGetResponseDto response = asaasSdk.payment.payAChargeWithCreditCard( + PaymentGetResponseDto response = asaasSdk.payment.payAChargeWithCreditCard( "id", - apiPaymentPayWithCreditCardRequestDto + paymentPayWithCreditCardRequestDto ); System.out.println(response); @@ -454,7 +449,7 @@ public class Main { **Return Type** -`ApiPaymentBillingInfoResponseDto` +`PaymentBillingInfoResponseDto` **Example Usage Code Snippet** @@ -462,7 +457,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentBillingInfoResponseDto; +import com.asaas.apisdk.models.PaymentBillingInfoResponseDto; public class Main { @@ -473,7 +468,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentBillingInfoResponseDto response = asaasSdk.payment.retrievePaymentBillingInformation("id"); + PaymentBillingInfoResponseDto response = asaasSdk.payment.retrievePaymentBillingInformation("id"); System.out.println(response); } @@ -494,7 +489,7 @@ public class Main { **Return Type** -`ApiPaymentViewingInfoResponseDto` +`PaymentViewingInfoResponseDto` **Example Usage Code Snippet** @@ -502,7 +497,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentViewingInfoResponseDto; +import com.asaas.apisdk.models.PaymentViewingInfoResponseDto; public class Main { @@ -513,7 +508,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentViewingInfoResponseDto response = asaasSdk.payment.paymentViewingInformation("id"); + PaymentViewingInfoResponseDto response = asaasSdk.payment.paymentViewingInformation("id"); System.out.println(response); } @@ -534,7 +529,7 @@ public class Main { **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -542,7 +537,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; public class Main { @@ -553,7 +548,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentGetResponseDto response = asaasSdk.payment.retrieveASinglePayment("id"); + PaymentGetResponseDto response = asaasSdk.payment.retrieveASinglePayment("id"); System.out.println(response); } @@ -568,14 +563,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------- | :-------------------------------------------------------------------- | :------- | :--------------------------------- | -| id | String | ✅ | Unique payment identifier in Asaas | -| apiPaymentUpdateRequestDto | [ApiPaymentUpdateRequestDto](../models/ApiPaymentUpdateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------- | :-------------------------------------------------------------- | :------- | :--------------------------------- | +| id | String | ✅ | Unique payment identifier in Asaas | +| paymentUpdateRequestDto | [PaymentUpdateRequestDto](../models/PaymentUpdateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -583,16 +578,16 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCallbackRequestDto; -import com.asaas.apisdk.models.ApiPaymentDiscountDiscountType; -import com.asaas.apisdk.models.ApiPaymentDiscountDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestFineType; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentInterestRequestDto; -import com.asaas.apisdk.models.ApiPaymentSplitRequestDto; -import com.asaas.apisdk.models.ApiPaymentUpdateRequestBillingType; -import com.asaas.apisdk.models.ApiPaymentUpdateRequestDto; +import com.asaas.apisdk.models.PaymentCallbackRequestDto; +import com.asaas.apisdk.models.PaymentDiscountDiscountType; +import com.asaas.apisdk.models.PaymentDiscountDto; +import com.asaas.apisdk.models.PaymentFineRequestDto; +import com.asaas.apisdk.models.PaymentFineRequestFineType; +import com.asaas.apisdk.models.PaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentInterestRequestDto; +import com.asaas.apisdk.models.PaymentSplitRequestDto; +import com.asaas.apisdk.models.PaymentUpdateRequestBillingType; +import com.asaas.apisdk.models.PaymentUpdateRequestDto; import java.util.Arrays; import java.util.List; @@ -605,22 +600,20 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDiscountDto apiPaymentDiscountDto = ApiPaymentDiscountDto.builder() + PaymentDiscountDto paymentDiscountDto = PaymentDiscountDto.builder() .value(10D) .dueDateLimitDays(1L) - .type(ApiPaymentDiscountDiscountType.FIXED) + .type(PaymentDiscountDiscountType.FIXED) .build(); - ApiPaymentInterestRequestDto apiPaymentInterestRequestDto = ApiPaymentInterestRequestDto.builder() - .value(4.68D) - .build(); + PaymentInterestRequestDto paymentInterestRequestDto = PaymentInterestRequestDto.builder().value(4.68D).build(); - ApiPaymentFineRequestDto apiPaymentFineRequestDto = ApiPaymentFineRequestDto.builder() + PaymentFineRequestDto paymentFineRequestDto = PaymentFineRequestDto.builder() .value(8.99D) - .type(ApiPaymentFineRequestFineType.FIXED) + .type(PaymentFineRequestFineType.FIXED) .build(); - ApiPaymentSplitRequestDto apiPaymentSplitRequestDto = ApiPaymentSplitRequestDto.builder() + PaymentSplitRequestDto paymentSplitRequestDto = PaymentSplitRequestDto.builder() .walletId("walletId") .fixedValue(6.62D) .percentualValue(6.01D) @@ -629,31 +622,31 @@ public class Main { .description("description") .build(); - List splitList = Arrays.asList(apiPaymentSplitRequestDto); + List splitList = Arrays.asList(paymentSplitRequestDto); - ApiPaymentCallbackRequestDto apiPaymentCallbackRequestDto = ApiPaymentCallbackRequestDto.builder() + PaymentCallbackRequestDto paymentCallbackRequestDto = PaymentCallbackRequestDto.builder() .successUrl("successUrl") .autoRedirect(true) .build(); - ApiPaymentUpdateRequestDto apiPaymentUpdateRequestDto = ApiPaymentUpdateRequestDto.builder() - .billingType(ApiPaymentUpdateRequestBillingType.UNDEFINED) + PaymentUpdateRequestDto paymentUpdateRequestDto = PaymentUpdateRequestDto.builder() + .billingType(PaymentUpdateRequestBillingType.UNDEFINED) .value(129.9D) .dueDate("2017-06-10") .description("Pedido 056984") .daysAfterDueDateToRegistrationCancellation(1L) .externalReference("056984") - .discount(apiPaymentDiscountDto) - .interest(apiPaymentInterestRequestDto) - .fine(apiPaymentFineRequestDto) + .discount(paymentDiscountDto) + .interest(paymentInterestRequestDto) + .fine(paymentFineRequestDto) .postalService(false) .split(splitList) - .callback(apiPaymentCallbackRequestDto) + .callback(paymentCallbackRequestDto) .build(); - ApiPaymentGetResponseDto response = asaasSdk.payment.updateExistingPayment( + PaymentGetResponseDto response = asaasSdk.payment.updateExistingPayment( "pay_080225913252", - apiPaymentUpdateRequestDto + paymentUpdateRequestDto ); System.out.println(response); @@ -675,7 +668,7 @@ public class Main { **Return Type** -`ApiPaymentDeleteResponseDto` +`PaymentDeleteResponseDto` **Example Usage Code Snippet** @@ -683,7 +676,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDeleteResponseDto; +import com.asaas.apisdk.models.PaymentDeleteResponseDto; public class Main { @@ -694,7 +687,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDeleteResponseDto response = asaasSdk.payment.deletePayment("id"); + PaymentDeleteResponseDto response = asaasSdk.payment.deletePayment("id"); System.out.println(response); } @@ -716,7 +709,7 @@ public class Main { **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -724,7 +717,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; public class Main { @@ -735,7 +728,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentGetResponseDto response = asaasSdk.payment.restoreRemovedPayment("id", new Object()); + PaymentGetResponseDto response = asaasSdk.payment.restoreRemovedPayment("id", new Object()); System.out.println(response); } @@ -756,7 +749,7 @@ public class Main { **Return Type** -`ApiPaymentStatusResponseDto` +`PaymentStatusResponseDto` **Example Usage Code Snippet** @@ -764,7 +757,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentStatusResponseDto; +import com.asaas.apisdk.models.PaymentStatusResponseDto; public class Main { @@ -775,7 +768,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentStatusResponseDto response = asaasSdk.payment.retrieveStatusOfAPayment("id"); + PaymentStatusResponseDto response = asaasSdk.payment.retrieveStatusOfAPayment("id"); System.out.println(response); } @@ -790,14 +783,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------- | :-------------------------------------------------------------------- | :------- | :--------------------------------- | -| id | String | ✅ | Unique payment identifier in Asaas | -| apiPaymentRefundRequestDto | [ApiPaymentRefundRequestDto](../models/ApiPaymentRefundRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------- | :-------------------------------------------------------------- | :------- | :--------------------------------- | +| id | String | ✅ | Unique payment identifier in Asaas | +| paymentRefundRequestDto | [PaymentRefundRequestDto](../models/PaymentRefundRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -805,8 +798,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentRefundRequestDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentRefundRequestDto; public class Main { @@ -817,12 +810,12 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentRefundRequestDto apiPaymentRefundRequestDto = ApiPaymentRefundRequestDto.builder() + PaymentRefundRequestDto paymentRefundRequestDto = PaymentRefundRequestDto.builder() .value(5D) .description("Valor a mais") .build(); - ApiPaymentGetResponseDto response = asaasSdk.payment.refundPayment("id", apiPaymentRefundRequestDto); + PaymentGetResponseDto response = asaasSdk.payment.refundPayment("id", paymentRefundRequestDto); System.out.println(response); } @@ -843,7 +836,7 @@ public class Main { **Return Type** -`ApiPaymentIdentificationFieldResponseDto` +`PaymentIdentificationFieldResponseDto` **Example Usage Code Snippet** @@ -851,7 +844,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentIdentificationFieldResponseDto; +import com.asaas.apisdk.models.PaymentIdentificationFieldResponseDto; public class Main { @@ -862,7 +855,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentIdentificationFieldResponseDto response = asaasSdk.payment.getDigitableBillLine("id"); + PaymentIdentificationFieldResponseDto response = asaasSdk.payment.getDigitableBillLine("id"); System.out.println(response); } @@ -883,7 +876,7 @@ public class Main { **Return Type** -`ApiPaymentPixQrCodeResponseDto` +`PaymentPixQrCodeResponseDto` **Example Usage Code Snippet** @@ -891,7 +884,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentPixQrCodeResponseDto; +import com.asaas.apisdk.models.PaymentPixQrCodeResponseDto; public class Main { @@ -902,7 +895,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentPixQrCodeResponseDto response = asaasSdk.payment.getQrCodeForPixPayments("id"); + PaymentPixQrCodeResponseDto response = asaasSdk.payment.getQrCodeForPixPayments("id"); System.out.println(response); } @@ -917,14 +910,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :-------------------------------- | :---------------------------------------------------------------------------------- | :------- | :--------------------------------- | -| id | String | ✅ | Unique payment identifier in Asaas | -| apiPaymentReceiveInCashRequestDto | [ApiPaymentReceiveInCashRequestDto](../models/ApiPaymentReceiveInCashRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :----------------------------- | :---------------------------------------------------------------------------- | :------- | :--------------------------------- | +| id | String | ✅ | Unique payment identifier in Asaas | +| paymentReceiveInCashRequestDto | [PaymentReceiveInCashRequestDto](../models/PaymentReceiveInCashRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -932,8 +925,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentReceiveInCashRequestDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentReceiveInCashRequestDto; public class Main { @@ -944,13 +937,13 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentReceiveInCashRequestDto apiPaymentReceiveInCashRequestDto = ApiPaymentReceiveInCashRequestDto.builder() + PaymentReceiveInCashRequestDto paymentReceiveInCashRequestDto = PaymentReceiveInCashRequestDto.builder() .paymentDate("2025-05-30") .value(129.9D) .notifyCustomer(true) .build(); - ApiPaymentGetResponseDto response = asaasSdk.payment.confirmCashReceipt("id", apiPaymentReceiveInCashRequestDto); + PaymentGetResponseDto response = asaasSdk.payment.confirmCashReceipt("id", paymentReceiveInCashRequestDto); System.out.println(response); } @@ -972,7 +965,7 @@ public class Main { **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -980,7 +973,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; public class Main { @@ -991,7 +984,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentGetResponseDto response = asaasSdk.payment.undoCashReceiptConfirmation("id", new Object()); + PaymentGetResponseDto response = asaasSdk.payment.undoCashReceiptConfirmation("id", new Object()); System.out.println(response); } @@ -1006,13 +999,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :--------------------------- | :------------------------------------------------------------------------ | :------- | :----------- | -| apiPaymentSimulateRequestDto | [ApiPaymentSimulateRequestDto](../models/ApiPaymentSimulateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------ | :------------------------------------------------------------------ | :------- | :----------- | +| paymentSimulateRequestDto | [PaymentSimulateRequestDto](../models/PaymentSimulateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentSimulateResponseDto` +`PaymentSimulateResponseDto` **Example Usage Code Snippet** @@ -1020,8 +1013,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentSimulateRequestDto; -import com.asaas.apisdk.models.ApiPaymentSimulateResponseDto; +import com.asaas.apisdk.models.PaymentSimulateRequestBillingType; +import com.asaas.apisdk.models.PaymentSimulateRequestDto; +import com.asaas.apisdk.models.PaymentSimulateResponseDto; import java.util.Arrays; import java.util.List; @@ -1034,15 +1028,17 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - List billingTypesList = Arrays.asList("billingTypes"); + List billingTypesList = Arrays.asList( + PaymentSimulateRequestBillingType.UNDEFINED + ); - ApiPaymentSimulateRequestDto apiPaymentSimulateRequestDto = ApiPaymentSimulateRequestDto.builder() + PaymentSimulateRequestDto paymentSimulateRequestDto = PaymentSimulateRequestDto.builder() .value(100D) .installmentCount(2L) .billingTypes(billingTypesList) .build(); - ApiPaymentSimulateResponseDto response = asaasSdk.payment.salesSimulator(apiPaymentSimulateRequestDto); + PaymentSimulateResponseDto response = asaasSdk.payment.salesSimulator(paymentSimulateRequestDto); System.out.println(response); } @@ -1063,7 +1059,7 @@ public class Main { **Return Type** -`ApiPaymentCustodyGetResponseDto` +`PaymentEscrowGetResponseDto` **Example Usage Code Snippet** @@ -1071,7 +1067,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCustodyGetResponseDto; +import com.asaas.apisdk.models.PaymentEscrowGetResponseDto; public class Main { @@ -1082,7 +1078,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentCustodyGetResponseDto response = asaasSdk.payment.retrievePaymentEscrowInTheEscrowAccount("id"); + PaymentEscrowGetResponseDto response = asaasSdk.payment.retrievePaymentEscrowInTheEscrowAccount("id"); System.out.println(response); } @@ -1097,7 +1093,7 @@ public class Main { **Return Type** -`ApiPaymentLimitsResponseDto` +`PaymentLimitsResponseDto` **Example Usage Code Snippet** @@ -1105,7 +1101,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentLimitsResponseDto; +import com.asaas.apisdk.models.PaymentLimitsResponseDto; public class Main { @@ -1116,7 +1112,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentLimitsResponseDto response = asaasSdk.payment.recoveringPaymentLimits(); + PaymentLimitsResponseDto response = asaasSdk.payment.recoveringPaymentLimits(); System.out.println(response); } diff --git a/documentation/services/PaymentSplitService.md b/documentation/services/PaymentSplitService.md index 6256afd..5309716 100644 --- a/documentation/services/PaymentSplitService.md +++ b/documentation/services/PaymentSplitService.md @@ -22,7 +22,7 @@ A list of all methods in the `PaymentSplitService` service. Click on the method **Return Type** -`ApiPaymentSplitGetResponseDto` +`PaymentSplitGetResponseDto` **Example Usage Code Snippet** @@ -30,7 +30,7 @@ A list of all methods in the `PaymentSplitService` service. Click on the method import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentSplitGetResponseDto; +import com.asaas.apisdk.models.PaymentSplitGetResponseDto; public class Main { @@ -41,7 +41,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentSplitGetResponseDto response = asaasSdk.paymentSplit.retrieveASinglePaidSplit("id"); + PaymentSplitGetResponseDto response = asaasSdk.paymentSplit.retrieveASinglePaidSplit("id"); System.out.println(response); } @@ -62,7 +62,7 @@ public class Main { **Return Type** -`ApiPaymentSplitListResponseDto` +`PaymentSplitListResponseDto` **Example Usage Code Snippet** @@ -70,9 +70,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentSplitListPaidRequestPaymentSplitStatus; -import com.asaas.apisdk.models.ApiPaymentSplitListResponseDto; import com.asaas.apisdk.models.ListPaidSplitsParameters; +import com.asaas.apisdk.models.PaymentSplitListPaidRequestPaymentSplitStatus; +import com.asaas.apisdk.models.PaymentSplitListResponseDto; public class Main { @@ -87,14 +87,14 @@ public class Main { .offset(5L) .limit(10L) .paymentId("paymentId") - .status(ApiPaymentSplitListPaidRequestPaymentSplitStatus.PENDING) + .status(PaymentSplitListPaidRequestPaymentSplitStatus.PENDING) .paymentConfirmedDateGe("paymentConfirmedDate[ge]") .paymentConfirmedDateLe("paymentConfirmedDate[le]") .creditDateGe("creditDate[ge]") .creditDateLe("creditDate[le]") .build(); - ApiPaymentSplitListResponseDto response = asaasSdk.paymentSplit.listPaidSplits(requestParameters); + PaymentSplitListResponseDto response = asaasSdk.paymentSplit.listPaidSplits(requestParameters); System.out.println(response); } @@ -115,7 +115,7 @@ public class Main { **Return Type** -`ApiPaymentSplitGetResponseDto` +`PaymentSplitGetResponseDto` **Example Usage Code Snippet** @@ -123,7 +123,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentSplitGetResponseDto; +import com.asaas.apisdk.models.PaymentSplitGetResponseDto; public class Main { @@ -134,7 +134,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentSplitGetResponseDto response = asaasSdk.paymentSplit.retrieveASingleReceivedSplit("id"); + PaymentSplitGetResponseDto response = asaasSdk.paymentSplit.retrieveASingleReceivedSplit("id"); System.out.println(response); } @@ -155,7 +155,7 @@ public class Main { **Return Type** -`ApiPaymentSplitListResponseDto` +`PaymentSplitListResponseDto` **Example Usage Code Snippet** @@ -163,9 +163,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentSplitListReceivedRequestPaymentSplitStatus; -import com.asaas.apisdk.models.ApiPaymentSplitListResponseDto; import com.asaas.apisdk.models.ListReceivedSplitsParameters; +import com.asaas.apisdk.models.PaymentSplitListReceivedRequestPaymentSplitStatus; +import com.asaas.apisdk.models.PaymentSplitListResponseDto; public class Main { @@ -180,14 +180,14 @@ public class Main { .offset(6L) .limit(10L) .paymentId("paymentId") - .status(ApiPaymentSplitListReceivedRequestPaymentSplitStatus.PENDING) + .status(PaymentSplitListReceivedRequestPaymentSplitStatus.PENDING) .paymentConfirmedDateGe("paymentConfirmedDate[ge]") .paymentConfirmedDateLe("paymentConfirmedDate[le]") .creditDateGe("creditDate[ge]") .creditDateLe("creditDate[le]") .build(); - ApiPaymentSplitListResponseDto response = asaasSdk.paymentSplit.listReceivedSplits(requestParameters); + PaymentSplitListResponseDto response = asaasSdk.paymentSplit.listReceivedSplits(requestParameters); System.out.println(response); } diff --git a/documentation/services/PaymentWithSummaryDataService.md b/documentation/services/PaymentWithSummaryDataService.md index 48fcc9b..b93effd 100644 --- a/documentation/services/PaymentWithSummaryDataService.md +++ b/documentation/services/PaymentWithSummaryDataService.md @@ -29,7 +29,7 @@ A list of all methods in the `PaymentWithSummaryDataService` service. Click on t **Return Type** -`ApiPaymentLeanListResponseDto` +`PaymentLeanListResponseDto` **Example Usage Code Snippet** @@ -37,11 +37,11 @@ A list of all methods in the `PaymentWithSummaryDataService` service. Click on t import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentLeanListResponseDto; -import com.asaas.apisdk.models.ApiPaymentListRequestBillingType; -import com.asaas.apisdk.models.ApiPaymentListRequestInvoiceStatus; -import com.asaas.apisdk.models.ApiPaymentListRequestPaymentStatus; import com.asaas.apisdk.models.ListPaymentsWithSummaryDataParameters; +import com.asaas.apisdk.models.PaymentLeanListResponseDto; +import com.asaas.apisdk.models.PaymentListRequestBillingType; +import com.asaas.apisdk.models.PaymentListRequestInvoiceStatus; +import com.asaas.apisdk.models.PaymentListRequestPaymentStatus; public class Main { @@ -57,13 +57,13 @@ public class Main { .limit(10L) .customer("customer") .customerGroupName("customerGroupName") - .billingType(ApiPaymentListRequestBillingType.UNDEFINED) - .status(ApiPaymentListRequestPaymentStatus.PENDING) + .billingType(PaymentListRequestBillingType.UNDEFINED) + .status(PaymentListRequestPaymentStatus.PENDING) .subscription("subscription") .installment("installment") .externalReference("externalReference") .paymentDate("paymentDate") - .invoiceStatus(ApiPaymentListRequestInvoiceStatus.SCHEDULED) + .invoiceStatus(PaymentListRequestInvoiceStatus.SCHEDULED) .estimatedCreditDate("estimatedCreditDate") .pixQrCodeId("pixQrCodeId") .anticipated(true) @@ -79,7 +79,7 @@ public class Main { .user("user") .build(); - ApiPaymentLeanListResponseDto response = asaasSdk.paymentWithSummaryData.listPaymentsWithSummaryData( + PaymentLeanListResponseDto response = asaasSdk.paymentWithSummaryData.listPaymentsWithSummaryData( requestParameters ); @@ -96,13 +96,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :----------------------- | :---------------------------------------------------------------- | :------- | :----------- | -| apiPaymentSaveRequestDto | [ApiPaymentSaveRequestDto](../models/ApiPaymentSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :-------------------- | :---------------------------------------------------------- | :------- | :----------- | +| paymentSaveRequestDto | [PaymentSaveRequestDto](../models/PaymentSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentLeanGetResponseDto` +`PaymentLeanGetResponseDto` **Example Usage Code Snippet** @@ -110,16 +110,16 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCallbackRequestDto; -import com.asaas.apisdk.models.ApiPaymentDiscountDiscountType; -import com.asaas.apisdk.models.ApiPaymentDiscountDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestFineType; -import com.asaas.apisdk.models.ApiPaymentInterestRequestDto; -import com.asaas.apisdk.models.ApiPaymentLeanGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentSaveRequestBillingType; -import com.asaas.apisdk.models.ApiPaymentSaveRequestDto; -import com.asaas.apisdk.models.ApiPaymentSplitRequestDto; +import com.asaas.apisdk.models.PaymentCallbackRequestDto; +import com.asaas.apisdk.models.PaymentDiscountDiscountType; +import com.asaas.apisdk.models.PaymentDiscountDto; +import com.asaas.apisdk.models.PaymentFineRequestDto; +import com.asaas.apisdk.models.PaymentFineRequestFineType; +import com.asaas.apisdk.models.PaymentInterestRequestDto; +import com.asaas.apisdk.models.PaymentLeanGetResponseDto; +import com.asaas.apisdk.models.PaymentSaveRequestBillingType; +import com.asaas.apisdk.models.PaymentSaveRequestDto; +import com.asaas.apisdk.models.PaymentSplitRequestDto; import java.util.Arrays; import java.util.List; @@ -132,22 +132,20 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDiscountDto apiPaymentDiscountDto = ApiPaymentDiscountDto.builder() + PaymentDiscountDto paymentDiscountDto = PaymentDiscountDto.builder() .value(10D) .dueDateLimitDays(1L) - .type(ApiPaymentDiscountDiscountType.FIXED) + .type(PaymentDiscountDiscountType.FIXED) .build(); - ApiPaymentInterestRequestDto apiPaymentInterestRequestDto = ApiPaymentInterestRequestDto.builder() - .value(4.68D) - .build(); + PaymentInterestRequestDto paymentInterestRequestDto = PaymentInterestRequestDto.builder().value(4.68D).build(); - ApiPaymentFineRequestDto apiPaymentFineRequestDto = ApiPaymentFineRequestDto.builder() + PaymentFineRequestDto paymentFineRequestDto = PaymentFineRequestDto.builder() .value(8.99D) - .type(ApiPaymentFineRequestFineType.FIXED) + .type(PaymentFineRequestFineType.FIXED) .build(); - ApiPaymentSplitRequestDto apiPaymentSplitRequestDto = ApiPaymentSplitRequestDto.builder() + PaymentSplitRequestDto paymentSplitRequestDto = PaymentSplitRequestDto.builder() .walletId("walletId") .fixedValue(6.62D) .percentualValue(6.01D) @@ -156,16 +154,16 @@ public class Main { .description("description") .build(); - List splitList = Arrays.asList(apiPaymentSplitRequestDto); + List splitList = Arrays.asList(paymentSplitRequestDto); - ApiPaymentCallbackRequestDto apiPaymentCallbackRequestDto = ApiPaymentCallbackRequestDto.builder() + PaymentCallbackRequestDto paymentCallbackRequestDto = PaymentCallbackRequestDto.builder() .successUrl("successUrl") .autoRedirect(true) .build(); - ApiPaymentSaveRequestDto apiPaymentSaveRequestDto = ApiPaymentSaveRequestDto.builder() + PaymentSaveRequestDto paymentSaveRequestDto = PaymentSaveRequestDto.builder() .customer("cus_G7Dvo4iphUNk") - .billingType(ApiPaymentSaveRequestBillingType.UNDEFINED) + .billingType(PaymentSaveRequestBillingType.UNDEFINED) .value(129.9D) .dueDate("2017-06-10") .description("Pedido 056984") @@ -174,16 +172,16 @@ public class Main { .installmentCount(7L) .totalValue(7.91D) .installmentValue(8.76D) - .discount(apiPaymentDiscountDto) - .interest(apiPaymentInterestRequestDto) - .fine(apiPaymentFineRequestDto) + .discount(paymentDiscountDto) + .interest(paymentInterestRequestDto) + .fine(paymentFineRequestDto) .postalService(true) .split(splitList) - .callback(apiPaymentCallbackRequestDto) + .callback(paymentCallbackRequestDto) .build(); - ApiPaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.createNewPaymentWithSummaryDataInResponse( - apiPaymentSaveRequestDto + PaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.createNewPaymentWithSummaryDataInResponse( + paymentSaveRequestDto ); System.out.println(response); @@ -199,13 +197,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------------- | :-------------------------------------------------------------------------------------------- | :------- | :----------- | -| apiPaymentSaveWithCreditCardRequestDto | [ApiPaymentSaveWithCreditCardRequestDto](../models/ApiPaymentSaveWithCreditCardRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------------------- | :-------------------------------------------------------------------------------------- | :------- | :----------- | +| paymentSaveWithCreditCardRequestDto | [PaymentSaveWithCreditCardRequestDto](../models/PaymentSaveWithCreditCardRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentLeanSaveWithCreditCardResponseDto` +`PaymentLeanSaveWithCreditCardResponseDto` **Example Usage Code Snippet** @@ -213,18 +211,18 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCreditCardHolderInfoRequestDto; -import com.asaas.apisdk.models.ApiCreditCardRequestDto; -import com.asaas.apisdk.models.ApiPaymentCallbackRequestDto; -import com.asaas.apisdk.models.ApiPaymentDiscountDiscountType; -import com.asaas.apisdk.models.ApiPaymentDiscountDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestFineType; -import com.asaas.apisdk.models.ApiPaymentInterestRequestDto; -import com.asaas.apisdk.models.ApiPaymentLeanSaveWithCreditCardResponseDto; -import com.asaas.apisdk.models.ApiPaymentSaveWithCreditCardRequestBillingType; -import com.asaas.apisdk.models.ApiPaymentSaveWithCreditCardRequestDto; -import com.asaas.apisdk.models.ApiPaymentSplitRequestDto; +import com.asaas.apisdk.models.CreditCardHolderInfoRequestDto; +import com.asaas.apisdk.models.CreditCardRequestDto; +import com.asaas.apisdk.models.PaymentCallbackRequestDto; +import com.asaas.apisdk.models.PaymentDiscountDiscountType; +import com.asaas.apisdk.models.PaymentDiscountDto; +import com.asaas.apisdk.models.PaymentFineRequestDto; +import com.asaas.apisdk.models.PaymentFineRequestFineType; +import com.asaas.apisdk.models.PaymentInterestRequestDto; +import com.asaas.apisdk.models.PaymentLeanSaveWithCreditCardResponseDto; +import com.asaas.apisdk.models.PaymentSaveWithCreditCardRequestBillingType; +import com.asaas.apisdk.models.PaymentSaveWithCreditCardRequestDto; +import com.asaas.apisdk.models.PaymentSplitRequestDto; import java.util.Arrays; import java.util.List; @@ -237,22 +235,20 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDiscountDto apiPaymentDiscountDto = ApiPaymentDiscountDto.builder() + PaymentDiscountDto paymentDiscountDto = PaymentDiscountDto.builder() .value(10D) .dueDateLimitDays(1L) - .type(ApiPaymentDiscountDiscountType.FIXED) + .type(PaymentDiscountDiscountType.FIXED) .build(); - ApiPaymentInterestRequestDto apiPaymentInterestRequestDto = ApiPaymentInterestRequestDto.builder() - .value(4.68D) - .build(); + PaymentInterestRequestDto paymentInterestRequestDto = PaymentInterestRequestDto.builder().value(4.68D).build(); - ApiPaymentFineRequestDto apiPaymentFineRequestDto = ApiPaymentFineRequestDto.builder() + PaymentFineRequestDto paymentFineRequestDto = PaymentFineRequestDto.builder() .value(8.99D) - .type(ApiPaymentFineRequestFineType.FIXED) + .type(PaymentFineRequestFineType.FIXED) .build(); - ApiPaymentSplitRequestDto apiPaymentSplitRequestDto = ApiPaymentSplitRequestDto.builder() + PaymentSplitRequestDto paymentSplitRequestDto = PaymentSplitRequestDto.builder() .walletId("walletId") .fixedValue(6.62D) .percentualValue(6.01D) @@ -261,22 +257,22 @@ public class Main { .description("description") .build(); - List splitList = Arrays.asList(apiPaymentSplitRequestDto); + List splitList = Arrays.asList(paymentSplitRequestDto); - ApiPaymentCallbackRequestDto apiPaymentCallbackRequestDto = ApiPaymentCallbackRequestDto.builder() + PaymentCallbackRequestDto paymentCallbackRequestDto = PaymentCallbackRequestDto.builder() .successUrl("successUrl") .autoRedirect(true) .build(); - ApiCreditCardRequestDto apiCreditCardRequestDto = ApiCreditCardRequestDto.builder() + CreditCardRequestDto creditCardRequestDto = CreditCardRequestDto.builder() .holderName("John Doe") .number("1234567890123456") - .expiryMonth("6") + .expiryMonth("7") .expiryYear("2025") .ccv("123") .build(); - ApiCreditCardHolderInfoRequestDto apiCreditCardHolderInfoRequestDto = ApiCreditCardHolderInfoRequestDto.builder() + CreditCardHolderInfoRequestDto creditCardHolderInfoRequestDto = CreditCardHolderInfoRequestDto.builder() .name("John Doe") .email("john.doe@asaas.com") .cpfCnpj("12345678901") @@ -287,10 +283,10 @@ public class Main { .mobilePhone("mobilePhone") .build(); - ApiPaymentSaveWithCreditCardRequestDto apiPaymentSaveWithCreditCardRequestDto = - ApiPaymentSaveWithCreditCardRequestDto.builder() + PaymentSaveWithCreditCardRequestDto paymentSaveWithCreditCardRequestDto = + PaymentSaveWithCreditCardRequestDto.builder() .customer("cus_G7Dvo4iphUNk") - .billingType(ApiPaymentSaveWithCreditCardRequestBillingType.UNDEFINED) + .billingType(PaymentSaveWithCreditCardRequestBillingType.UNDEFINED) .value(129.9D) .dueDate("2017-06-10") .description("Pedido 056984") @@ -299,22 +295,22 @@ public class Main { .installmentCount(6L) .totalValue(3.41D) .installmentValue(8.68D) - .discount(apiPaymentDiscountDto) - .interest(apiPaymentInterestRequestDto) - .fine(apiPaymentFineRequestDto) + .discount(paymentDiscountDto) + .interest(paymentInterestRequestDto) + .fine(paymentFineRequestDto) .postalService(true) .split(splitList) - .callback(apiPaymentCallbackRequestDto) - .creditCard(apiCreditCardRequestDto) - .creditCardHolderInfo(apiCreditCardHolderInfoRequestDto) + .callback(paymentCallbackRequestDto) + .creditCard(creditCardRequestDto) + .creditCardHolderInfo(creditCardHolderInfoRequestDto) .creditCardToken("creditCardToken") .authorizeOnly(false) .remoteIp("remoteIp") .build(); - ApiPaymentLeanSaveWithCreditCardResponseDto response = + PaymentLeanSaveWithCreditCardResponseDto response = asaasSdk.paymentWithSummaryData.createNewPaymentWithCreditCardWithSummaryDataInResponse( - apiPaymentSaveWithCreditCardRequestDto + paymentSaveWithCreditCardRequestDto ); System.out.println(response); @@ -337,7 +333,7 @@ public class Main { **Return Type** -`ApiPaymentLeanGetResponseDto` +`PaymentLeanGetResponseDto` **Example Usage Code Snippet** @@ -345,7 +341,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentLeanGetResponseDto; +import com.asaas.apisdk.models.PaymentLeanGetResponseDto; public class Main { @@ -356,7 +352,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentLeanGetResponseDto response = + PaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.capturePaymentWithPreAuthorizationWithSummaryDataInResponse("id", new Object()); System.out.println(response); @@ -378,7 +374,7 @@ public class Main { **Return Type** -`ApiPaymentLeanGetResponseDto` +`PaymentLeanGetResponseDto` **Example Usage Code Snippet** @@ -386,7 +382,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentLeanGetResponseDto; +import com.asaas.apisdk.models.PaymentLeanGetResponseDto; public class Main { @@ -397,7 +393,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.retrieveASinglePaymentWithSummaryData("id"); + PaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.retrieveASinglePaymentWithSummaryData("id"); System.out.println(response); } @@ -419,7 +415,7 @@ public class Main { **Return Type** -`ApiPaymentLeanGetResponseDto` +`PaymentLeanGetResponseDto` **Example Usage Code Snippet** @@ -427,7 +423,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentLeanGetResponseDto; +import com.asaas.apisdk.models.PaymentLeanGetResponseDto; public class Main { @@ -438,8 +434,10 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentLeanGetResponseDto response = - asaasSdk.paymentWithSummaryData.updateExistingPaymentWithSummaryDataInResponse("id", new Object()); + PaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.updateExistingPaymentWithSummaryDataInResponse( + "id", + new Object() + ); System.out.println(response); } @@ -460,7 +458,7 @@ public class Main { **Return Type** -`ApiPaymentDeleteResponseDto` +`PaymentDeleteResponseDto` **Example Usage Code Snippet** @@ -468,7 +466,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentDeleteResponseDto; +import com.asaas.apisdk.models.PaymentDeleteResponseDto; public class Main { @@ -479,7 +477,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDeleteResponseDto response = asaasSdk.paymentWithSummaryData.deletePaymentWithSummaryData("id"); + PaymentDeleteResponseDto response = asaasSdk.paymentWithSummaryData.deletePaymentWithSummaryData("id"); System.out.println(response); } @@ -501,7 +499,7 @@ public class Main { **Return Type** -`ApiPaymentLeanGetResponseDto` +`PaymentLeanGetResponseDto` **Example Usage Code Snippet** @@ -509,7 +507,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentLeanGetResponseDto; +import com.asaas.apisdk.models.PaymentLeanGetResponseDto; public class Main { @@ -520,8 +518,10 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentLeanGetResponseDto response = - asaasSdk.paymentWithSummaryData.restoreRemovedPaymentWithSummaryDataInResponse("id", new Object()); + PaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.restoreRemovedPaymentWithSummaryDataInResponse( + "id", + new Object() + ); System.out.println(response); } @@ -536,14 +536,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------- | :-------------------------------------------------------------------- | :------- | :--------------------------------- | -| id | String | ✅ | Unique payment identifier in Asaas | -| apiPaymentRefundRequestDto | [ApiPaymentRefundRequestDto](../models/ApiPaymentRefundRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------- | :-------------------------------------------------------------- | :------- | :--------------------------------- | +| id | String | ✅ | Unique payment identifier in Asaas | +| paymentRefundRequestDto | [PaymentRefundRequestDto](../models/PaymentRefundRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentLeanGetResponseDto` +`PaymentLeanGetResponseDto` **Example Usage Code Snippet** @@ -551,8 +551,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentLeanGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentRefundRequestDto; +import com.asaas.apisdk.models.PaymentLeanGetResponseDto; +import com.asaas.apisdk.models.PaymentRefundRequestDto; public class Main { @@ -563,14 +563,14 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentRefundRequestDto apiPaymentRefundRequestDto = ApiPaymentRefundRequestDto.builder() + PaymentRefundRequestDto paymentRefundRequestDto = PaymentRefundRequestDto.builder() .value(5D) .description("Valor a mais") .build(); - ApiPaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.refundPaymentWithSummaryDataInResponse( + PaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.refundPaymentWithSummaryDataInResponse( "id", - apiPaymentRefundRequestDto + paymentRefundRequestDto ); System.out.println(response); @@ -586,14 +586,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :-------------------------------- | :---------------------------------------------------------------------------------- | :------- | :--------------------------------- | -| id | String | ✅ | Unique payment identifier in Asaas | -| apiPaymentReceiveInCashRequestDto | [ApiPaymentReceiveInCashRequestDto](../models/ApiPaymentReceiveInCashRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :----------------------------- | :---------------------------------------------------------------------------- | :------- | :--------------------------------- | +| id | String | ✅ | Unique payment identifier in Asaas | +| paymentReceiveInCashRequestDto | [PaymentReceiveInCashRequestDto](../models/PaymentReceiveInCashRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPaymentLeanGetResponseDto` +`PaymentLeanGetResponseDto` **Example Usage Code Snippet** @@ -601,8 +601,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentLeanGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentReceiveInCashRequestDto; +import com.asaas.apisdk.models.PaymentLeanGetResponseDto; +import com.asaas.apisdk.models.PaymentReceiveInCashRequestDto; public class Main { @@ -613,15 +613,15 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentReceiveInCashRequestDto apiPaymentReceiveInCashRequestDto = ApiPaymentReceiveInCashRequestDto.builder() + PaymentReceiveInCashRequestDto paymentReceiveInCashRequestDto = PaymentReceiveInCashRequestDto.builder() .paymentDate("2025-05-30") .value(129.9D) .notifyCustomer(true) .build(); - ApiPaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.confirmCashReceiptWithSummaryDataInResponse( + PaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.confirmCashReceiptWithSummaryDataInResponse( "id", - apiPaymentReceiveInCashRequestDto + paymentReceiveInCashRequestDto ); System.out.println(response); @@ -644,7 +644,7 @@ public class Main { **Return Type** -`ApiPaymentLeanGetResponseDto` +`PaymentLeanGetResponseDto` **Example Usage Code Snippet** @@ -652,7 +652,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentLeanGetResponseDto; +import com.asaas.apisdk.models.PaymentLeanGetResponseDto; public class Main { @@ -663,7 +663,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentLeanGetResponseDto response = + PaymentLeanGetResponseDto response = asaasSdk.paymentWithSummaryData.undoCashReceiptConfirmationWithSummaryDataInResponse("id", new Object()); System.out.println(response); diff --git a/documentation/services/PixService.md b/documentation/services/PixService.md index b755a62..d19df03 100644 --- a/documentation/services/PixService.md +++ b/documentation/services/PixService.md @@ -25,7 +25,7 @@ A list of all methods in the `PixService` service. Click on the method name to v **Return Type** -`ApiPixAddressKeyListResponseDto` +`PixAddressKeyListResponseDto` **Example Usage Code Snippet** @@ -33,9 +33,9 @@ A list of all methods in the `PixService` service. Click on the method name to v import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixAddressKeyListRequestPixAddressKeyStatus; -import com.asaas.apisdk.models.ApiPixAddressKeyListResponseDto; import com.asaas.apisdk.models.ListKeysParameters; +import com.asaas.apisdk.models.PixAddressKeyListRequestPixAddressKeyStatus; +import com.asaas.apisdk.models.PixAddressKeyListResponseDto; public class Main { @@ -47,13 +47,13 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListKeysParameters requestParameters = ListKeysParameters.builder() - .offset(7L) + .offset(8L) .limit(10L) - .status(ApiPixAddressKeyListRequestPixAddressKeyStatus.AWAITING_ACTIVATION) + .status(PixAddressKeyListRequestPixAddressKeyStatus.AWAITING_ACTIVATION) .statusList("statusList") .build(); - ApiPixAddressKeyListResponseDto response = asaasSdk.pix.listKeys(requestParameters); + PixAddressKeyListResponseDto response = asaasSdk.pix.listKeys(requestParameters); System.out.println(response); } @@ -68,13 +68,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :----------------------------- | :---------------------------------------------------------------------------- | :------- | :----------- | -| apiPixAddressKeySaveRequestDto | [ApiPixAddressKeySaveRequestDto](../models/ApiPixAddressKeySaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :-------------------------- | :---------------------------------------------------------------------- | :------- | :----------- | +| pixAddressKeySaveRequestDto | [PixAddressKeySaveRequestDto](../models/PixAddressKeySaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPixAddressKeyGetResponseDto` +`PixAddressKeyGetResponseDto` **Example Usage Code Snippet** @@ -82,9 +82,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixAddressKeyGetResponseDto; -import com.asaas.apisdk.models.ApiPixAddressKeySaveRequestDto; -import com.asaas.apisdk.models.ApiPixAddressKeySaveRequestPixAddressKeyType; +import com.asaas.apisdk.models.PixAddressKeyGetResponseDto; +import com.asaas.apisdk.models.PixAddressKeySaveRequestDto; +import com.asaas.apisdk.models.PixAddressKeySaveRequestPixAddressKeyType; public class Main { @@ -95,11 +95,11 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixAddressKeySaveRequestDto apiPixAddressKeySaveRequestDto = ApiPixAddressKeySaveRequestDto.builder() - .type(ApiPixAddressKeySaveRequestPixAddressKeyType.EVP) + PixAddressKeySaveRequestDto pixAddressKeySaveRequestDto = PixAddressKeySaveRequestDto.builder() + .type(PixAddressKeySaveRequestPixAddressKeyType.EVP) .build(); - ApiPixAddressKeyGetResponseDto response = asaasSdk.pix.createAKey(apiPixAddressKeySaveRequestDto); + PixAddressKeyGetResponseDto response = asaasSdk.pix.createAKey(pixAddressKeySaveRequestDto); System.out.println(response); } @@ -120,7 +120,7 @@ public class Main { **Return Type** -`ApiPixAddressKeyGetResponseDto` +`PixAddressKeyGetResponseDto` **Example Usage Code Snippet** @@ -128,7 +128,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixAddressKeyGetResponseDto; +import com.asaas.apisdk.models.PixAddressKeyGetResponseDto; public class Main { @@ -139,7 +139,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixAddressKeyGetResponseDto response = asaasSdk.pix.retrieveASingleKey("a33047b1-fb19-4b68-9373-a7ba8a8162aa"); + PixAddressKeyGetResponseDto response = asaasSdk.pix.retrieveASingleKey("a33047b1-fb19-4b68-9373-a7ba8a8162aa"); System.out.println(response); } @@ -160,7 +160,7 @@ public class Main { **Return Type** -`ApiPixAddressKeyGetResponseDto` +`PixAddressKeyGetResponseDto` **Example Usage Code Snippet** @@ -168,7 +168,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixAddressKeyGetResponseDto; +import com.asaas.apisdk.models.PixAddressKeyGetResponseDto; public class Main { @@ -179,7 +179,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixAddressKeyGetResponseDto response = asaasSdk.pix.removeKey("a33047b1-fb19-4b68-9373-a7ba8a8162aa"); + PixAddressKeyGetResponseDto response = asaasSdk.pix.removeKey("a33047b1-fb19-4b68-9373-a7ba8a8162aa"); System.out.println(response); } @@ -194,13 +194,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------- | :-------------------------------------------------------------------- | :------- | :----------- | -| apiPixQrCodeSaveRequestDto | [ApiPixQrCodeSaveRequestDto](../models/ApiPixQrCodeSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------- | :-------------------------------------------------------------- | :------- | :----------- | +| pixQrCodeSaveRequestDto | [PixQrCodeSaveRequestDto](../models/PixQrCodeSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPixQrCodeSaveResponseDto` +`PixQrCodeSaveResponseDto` **Example Usage Code Snippet** @@ -208,9 +208,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixQrCodeSaveRequestDto; -import com.asaas.apisdk.models.ApiPixQrCodeSaveResponseDto; import com.asaas.apisdk.models.Format; +import com.asaas.apisdk.models.PixQrCodeSaveRequestDto; +import com.asaas.apisdk.models.PixQrCodeSaveResponseDto; public class Main { @@ -221,18 +221,18 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixQrCodeSaveRequestDto apiPixQrCodeSaveRequestDto = ApiPixQrCodeSaveRequestDto.builder() + PixQrCodeSaveRequestDto pixQrCodeSaveRequestDto = PixQrCodeSaveRequestDto.builder() .addressKey("b6295ee1-f054-47d1-9e90-ee57b74f60d9") .description("Barbecue") .value(50D) .format(Format.ALL) .expirationDate("2023-05-05 14:20:50") - .expirationSeconds(6L) + .expirationSeconds(2L) .allowsMultiplePayments(true) .externalReference("externalReference") .build(); - ApiPixQrCodeSaveResponseDto response = asaasSdk.pix.createStaticQrcode(apiPixQrCodeSaveRequestDto); + PixQrCodeSaveResponseDto response = asaasSdk.pix.createStaticQrcode(pixQrCodeSaveRequestDto); System.out.println(response); } @@ -253,7 +253,7 @@ public class Main { **Return Type** -`ApiPixQrCodeDeleteResponseDto` +`PixQrCodeDeleteResponseDto` **Example Usage Code Snippet** @@ -261,7 +261,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixQrCodeDeleteResponseDto; +import com.asaas.apisdk.models.PixQrCodeDeleteResponseDto; public class Main { @@ -272,7 +272,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixQrCodeDeleteResponseDto response = asaasSdk.pix.deleteStaticQrcode("ASAAS00000000000000383ASA"); + PixQrCodeDeleteResponseDto response = asaasSdk.pix.deleteStaticQrcode("ASAAS00000000000000383ASA"); System.out.println(response); } @@ -287,7 +287,7 @@ public class Main { **Return Type** -`ApiPixTokenBucketGetAddressKeyResponseDto` +`PixTokenBucketGetAddressKeyResponseDto` **Example Usage Code Snippet** @@ -295,7 +295,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixTokenBucketGetAddressKeyResponseDto; +import com.asaas.apisdk.models.PixTokenBucketGetAddressKeyResponseDto; public class Main { @@ -306,7 +306,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixTokenBucketGetAddressKeyResponseDto response = asaasSdk.pix.availableTokenBucketCheck(); + PixTokenBucketGetAddressKeyResponseDto response = asaasSdk.pix.availableTokenBucketCheck(); System.out.println(response); } diff --git a/documentation/services/PixTransactionService.md b/documentation/services/PixTransactionService.md index df82b1d..bd09cd6 100644 --- a/documentation/services/PixTransactionService.md +++ b/documentation/services/PixTransactionService.md @@ -17,13 +17,13 @@ A list of all methods in the `PixTransactionService` service. Click on the metho **Parameters** -| Name | Type | Required | Description | -| :------------------------------ | :------------------------------------------------------------------------------ | :------- | :----------- | -| apiPixTransactionSaveRequestDto | [ApiPixTransactionSaveRequestDto](../models/ApiPixTransactionSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :--------------------------- | :------------------------------------------------------------------------ | :------- | :----------- | +| pixTransactionSaveRequestDto | [PixTransactionSaveRequestDto](../models/PixTransactionSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPixTransactionGetResponseDto` +`PixTransactionGetResponseDto` **Example Usage Code Snippet** @@ -31,9 +31,9 @@ A list of all methods in the `PixTransactionService` service. Click on the metho import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixTransactionGetResponseDto; -import com.asaas.apisdk.models.ApiPixTransactionQrCodeSaveRequestDto; -import com.asaas.apisdk.models.ApiPixTransactionSaveRequestDto; +import com.asaas.apisdk.models.PixTransactionGetResponseDto; +import com.asaas.apisdk.models.PixTransactionQrCodeSaveRequestDto; +import com.asaas.apisdk.models.PixTransactionSaveRequestDto; public class Main { @@ -44,17 +44,19 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixTransactionQrCodeSaveRequestDto apiPixTransactionQrCodeSaveRequestDto = - ApiPixTransactionQrCodeSaveRequestDto.builder().payload("payload").changeValue(8.23D).build(); + PixTransactionQrCodeSaveRequestDto pixTransactionQrCodeSaveRequestDto = PixTransactionQrCodeSaveRequestDto.builder() + .payload("payload") + .changeValue(4.89D) + .build(); - ApiPixTransactionSaveRequestDto apiPixTransactionSaveRequestDto = ApiPixTransactionSaveRequestDto.builder() - .qrCode(apiPixTransactionQrCodeSaveRequestDto) + PixTransactionSaveRequestDto pixTransactionSaveRequestDto = PixTransactionSaveRequestDto.builder() + .qrCode(pixTransactionQrCodeSaveRequestDto) .value(100D) .description("Barbecue") .scheduleDate("2022-03-15") .build(); - ApiPixTransactionGetResponseDto response = asaasSdk.pixTransaction.payAQrcode(apiPixTransactionSaveRequestDto); + PixTransactionGetResponseDto response = asaasSdk.pixTransaction.payAQrcode(pixTransactionSaveRequestDto); System.out.println(response); } @@ -69,13 +71,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :--------------------------- | :------------------------------------------------------------------------ | :------- | :----------- | -| apiPixQrCodeDecodeRequestDto | [ApiPixQrCodeDecodeRequestDto](../models/ApiPixQrCodeDecodeRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------ | :------------------------------------------------------------------ | :------- | :----------- | +| pixQrCodeDecodeRequestDto | [PixQrCodeDecodeRequestDto](../models/PixQrCodeDecodeRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPixQrCodeDecodeResponseDto` +`PixQrCodeDecodeResponseDto` **Example Usage Code Snippet** @@ -83,8 +85,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixQrCodeDecodeRequestDto; -import com.asaas.apisdk.models.ApiPixQrCodeDecodeResponseDto; +import com.asaas.apisdk.models.PixQrCodeDecodeRequestDto; +import com.asaas.apisdk.models.PixQrCodeDecodeResponseDto; public class Main { @@ -95,16 +97,14 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixQrCodeDecodeRequestDto apiPixQrCodeDecodeRequestDto = ApiPixQrCodeDecodeRequestDto.builder() + PixQrCodeDecodeRequestDto pixQrCodeDecodeRequestDto = PixQrCodeDecodeRequestDto.builder() .payload( "00020101021226730014br.gov.bcb.pix2551pix-h.asaas.com/pixqrcode/cobv/pay_76575613967995145204000053039865802BR5905ASAAS6009Joinville61088922827162070503***63045E7A" ) - .changeValue(7.59D) + .changeValue(7.29D) .build(); - ApiPixQrCodeDecodeResponseDto response = asaasSdk.pixTransaction.decodeAQrcodeForPayment( - apiPixQrCodeDecodeRequestDto - ); + PixQrCodeDecodeResponseDto response = asaasSdk.pixTransaction.decodeAQrcodeForPayment(pixQrCodeDecodeRequestDto); System.out.println(response); } @@ -125,7 +125,7 @@ public class Main { **Return Type** -`ApiPixTransactionGetResponseDto` +`PixTransactionGetResponseDto` **Example Usage Code Snippet** @@ -133,7 +133,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixTransactionGetResponseDto; +import com.asaas.apisdk.models.PixTransactionGetResponseDto; public class Main { @@ -144,7 +144,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixTransactionGetResponseDto response = asaasSdk.pixTransaction.retrieveASingleTransaction( + PixTransactionGetResponseDto response = asaasSdk.pixTransaction.retrieveASingleTransaction( "35363f6e-93e2-11ec-b9d9-96f4053b1bd4" ); @@ -167,7 +167,7 @@ public class Main { **Return Type** -`ApiPixTransactionListResponseDto` +`PixTransactionListResponseDto` **Example Usage Code Snippet** @@ -175,10 +175,10 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixTransactionListRequestPixTransactionStatus; -import com.asaas.apisdk.models.ApiPixTransactionListRequestPixTransactionType; -import com.asaas.apisdk.models.ApiPixTransactionListResponseDto; import com.asaas.apisdk.models.ListTransactionsParameters; +import com.asaas.apisdk.models.PixTransactionListRequestPixTransactionStatus; +import com.asaas.apisdk.models.PixTransactionListRequestPixTransactionType; +import com.asaas.apisdk.models.PixTransactionListResponseDto; public class Main { @@ -190,14 +190,14 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListTransactionsParameters requestParameters = ListTransactionsParameters.builder() - .offset(1L) + .offset(4L) .limit(10L) - .status(ApiPixTransactionListRequestPixTransactionStatus.AWAITING_BALANCE_VALIDATION) - .type(ApiPixTransactionListRequestPixTransactionType.DEBIT) + .status(PixTransactionListRequestPixTransactionStatus.AWAITING_BALANCE_VALIDATION) + .type(PixTransactionListRequestPixTransactionType.DEBIT) .endToEndIdentifier("endToEndIdentifier") .build(); - ApiPixTransactionListResponseDto response = asaasSdk.pixTransaction.listTransactions(requestParameters); + PixTransactionListResponseDto response = asaasSdk.pixTransaction.listTransactions(requestParameters); System.out.println(response); } @@ -219,7 +219,7 @@ public class Main { **Return Type** -`ApiPixTransactionGetResponseDto` +`PixTransactionGetResponseDto` **Example Usage Code Snippet** @@ -227,7 +227,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixTransactionGetResponseDto; +import com.asaas.apisdk.models.PixTransactionGetResponseDto; public class Main { @@ -238,7 +238,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixTransactionGetResponseDto response = asaasSdk.pixTransaction.cancelAScheduledTransaction("id", new Object()); + PixTransactionGetResponseDto response = asaasSdk.pixTransaction.cancelAScheduledTransaction("id", new Object()); System.out.println(response); } diff --git a/documentation/services/RecurringPixService.md b/documentation/services/RecurringPixService.md index f654d98..8b2a59d 100644 --- a/documentation/services/RecurringPixService.md +++ b/documentation/services/RecurringPixService.md @@ -23,7 +23,7 @@ A list of all methods in the `RecurringPixService` service. Click on the method **Return Type** -`ApiPixTransactionRecurringCheckoutScheduleListResponseDto` +`PixRecurringTransactionListResponseDto` **Example Usage Code Snippet** @@ -31,9 +31,9 @@ A list of all methods in the `RecurringPixService` service. Click on the method import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus; -import com.asaas.apisdk.models.ApiPixTransactionRecurringCheckoutScheduleListResponseDto; import com.asaas.apisdk.models.ListRecurrencesParameters; +import com.asaas.apisdk.models.PixRecurringTransactionListResponseDto; +import com.asaas.apisdk.models.RecurringPixTransactionListRequestPixRecurringTransactionStatus; public class Main { @@ -45,18 +45,14 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListRecurrencesParameters requestParameters = ListRecurrencesParameters.builder() - .offset(7L) + .offset(6L) .limit(10L) - .status( - ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.AWAITING_CRITICAL_ACTION_AUTHORIZATION - ) + .status(RecurringPixTransactionListRequestPixRecurringTransactionStatus.AWAITING_CRITICAL_ACTION_AUTHORIZATION) .value(100D) .searchText("searchText") .build(); - ApiPixTransactionRecurringCheckoutScheduleListResponseDto response = asaasSdk.recurringPix.listRecurrences( - requestParameters - ); + PixRecurringTransactionListResponseDto response = asaasSdk.recurringPix.listRecurrences(requestParameters); System.out.println(response); } @@ -77,7 +73,7 @@ public class Main { **Return Type** -`ApiPixTransactionRecurringCheckoutScheduleGetResponseDto` +`PixRecurringTransactionGetResponseDto` **Example Usage Code Snippet** @@ -85,7 +81,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixTransactionRecurringCheckoutScheduleGetResponseDto; +import com.asaas.apisdk.models.PixRecurringTransactionGetResponseDto; public class Main { @@ -96,7 +92,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixTransactionRecurringCheckoutScheduleGetResponseDto response = asaasSdk.recurringPix.retrieveASingleRecurrence( + PixRecurringTransactionGetResponseDto response = asaasSdk.recurringPix.retrieveASingleRecurrence( "35363f6e-93e2-11ec-b9d9-96f4053b1bd4" ); @@ -120,7 +116,7 @@ public class Main { **Return Type** -`ApiPixTransactionRecurringCheckoutScheduleGetResponseDto` +`PixRecurringTransactionGetResponseDto` **Example Usage Code Snippet** @@ -128,7 +124,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixTransactionRecurringCheckoutScheduleGetResponseDto; +import com.asaas.apisdk.models.PixRecurringTransactionGetResponseDto; public class Main { @@ -139,7 +135,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixTransactionRecurringCheckoutScheduleGetResponseDto response = asaasSdk.recurringPix.cancelARecurrence( + PixRecurringTransactionGetResponseDto response = asaasSdk.recurringPix.cancelARecurrence( "35363f6e-93e2-11ec-b9d9-96f4053b1bd4", new Object() ); @@ -164,7 +160,7 @@ public class Main { **Return Type** -`ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto` +`RecurringPixTransactionListItemsResponseDto` **Example Usage Code Snippet** @@ -172,8 +168,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto; import com.asaas.apisdk.models.ListRecurrenceItemsParameters; +import com.asaas.apisdk.models.RecurringPixTransactionListItemsResponseDto; public class Main { @@ -185,11 +181,11 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListRecurrenceItemsParameters requestParameters = ListRecurrenceItemsParameters.builder() - .offset(6L) + .offset(3L) .limit(10L) .build(); - ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto response = asaasSdk.recurringPix.listRecurrenceItems( + RecurringPixTransactionListItemsResponseDto response = asaasSdk.recurringPix.listRecurrenceItems( "35363f6e-93e2-11ec-b9d9-96f4053b1bd4", requestParameters ); @@ -214,7 +210,7 @@ public class Main { **Return Type** -`ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto` +`PixRecurringTransactionGetItemResponseDto` **Example Usage Code Snippet** @@ -222,7 +218,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto; +import com.asaas.apisdk.models.PixRecurringTransactionGetItemResponseDto; public class Main { @@ -233,7 +229,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto response = asaasSdk.recurringPix.cancelARecurrenceItem( + PixRecurringTransactionGetItemResponseDto response = asaasSdk.recurringPix.cancelARecurrenceItem( "71ae9d73-468f-4d04-8b87-a541128f9c46", new Object() ); diff --git a/documentation/services/SandboxActionsService.md b/documentation/services/SandboxActionsService.md index 3939915..09ad0d3 100644 --- a/documentation/services/SandboxActionsService.md +++ b/documentation/services/SandboxActionsService.md @@ -23,7 +23,7 @@ This endpoint confirms the payment of a charge in the sandbox environment. **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -31,7 +31,7 @@ This endpoint confirms the payment of a charge in the sandbox environment. import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; public class Main { @@ -42,7 +42,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentGetResponseDto response = asaasSdk.sandboxActions.confirmPayment("id", new Object()); + PaymentGetResponseDto response = asaasSdk.sandboxActions.confirmPayment("id", new Object()); System.out.println(response); } @@ -66,7 +66,7 @@ This endpoint forces a charge to become overdue in the sandbox environment. **Return Type** -`ApiPaymentGetResponseDto` +`PaymentGetResponseDto` **Example Usage Code Snippet** @@ -74,7 +74,7 @@ This endpoint forces a charge to become overdue in the sandbox environment. import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; public class Main { @@ -85,7 +85,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentGetResponseDto response = asaasSdk.sandboxActions.forceExpire("id", new Object()); + PaymentGetResponseDto response = asaasSdk.sandboxActions.forceExpire("id", new Object()); System.out.println(response); } diff --git a/documentation/services/SubaccountService.md b/documentation/services/SubaccountService.md index 0e9e6c9..7b232e7 100644 --- a/documentation/services/SubaccountService.md +++ b/documentation/services/SubaccountService.md @@ -23,7 +23,7 @@ A list of all methods in the `SubaccountService` service. Click on the method na **Return Type** -`ApiCustomerListResponseDto` +`AccountListResponseDto` **Example Usage Code Snippet** @@ -31,7 +31,7 @@ A list of all methods in the `SubaccountService` service. Click on the method na import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerListResponseDto; +import com.asaas.apisdk.models.AccountListResponseDto; import com.asaas.apisdk.models.ListSubaccountsParameters; public class Main { @@ -44,7 +44,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListSubaccountsParameters requestParameters = ListSubaccountsParameters.builder() - .offset(0L) + .offset(6L) .limit(10L) .cpfCnpj("cpfCnpj") .email("email") @@ -52,7 +52,7 @@ public class Main { .walletId("walletId") .build(); - ApiCustomerListResponseDto response = asaasSdk.subaccount.listSubaccounts(requestParameters); + AccountListResponseDto response = asaasSdk.subaccount.listSubaccounts(requestParameters); System.out.println(response); } @@ -67,13 +67,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------ | :------------------------------------------------------------------ | :------- | :----------- | -| apiCustomerSaveRequestDto | [ApiCustomerSaveRequestDto](../models/ApiCustomerSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :-------------------- | :---------------------------------------------------------- | :------- | :----------- | +| accountSaveRequestDto | [AccountSaveRequestDto](../models/AccountSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCustomerSaveResponseDto` +`AccountSaveResponseDto` **Example Usage Code Snippet** @@ -81,11 +81,12 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerSaveRequestCompanyType; -import com.asaas.apisdk.models.ApiCustomerSaveRequestDto; -import com.asaas.apisdk.models.ApiCustomerSaveResponseDto; -import com.asaas.apisdk.models.ApiPushNotificationConfigSaveRequestDto; -import com.asaas.apisdk.models.ApiPushNotificationConfigSaveRequestPushNotificationSendType; +import com.asaas.apisdk.models.AccountSaveRequestCompanyType; +import com.asaas.apisdk.models.AccountSaveRequestDto; +import com.asaas.apisdk.models.AccountSaveResponseDto; +import com.asaas.apisdk.models.WebhookConfigSaveRequestDto; +import com.asaas.apisdk.models.WebhookConfigSaveRequestWebhookEvent; +import com.asaas.apisdk.models.WebhookConfigSaveRequestWebhookSendType; import java.util.Arrays; import java.util.List; @@ -98,30 +99,31 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - List eventsList = Arrays.asList("events"); + List eventsList = Arrays.asList( + WebhookConfigSaveRequestWebhookEvent.PAYMENT_AUTHORIZED + ); - ApiPushNotificationConfigSaveRequestDto apiPushNotificationConfigSaveRequestDto = - ApiPushNotificationConfigSaveRequestDto.builder() - .name("Name Example") - .url("https://www.example.com/webhook/asaas") - .email("john.doe@asaas.com.br") - .enabled(true) - .interrupted(true) - .apiVersion(3L) - .authToken("5tLxsL6uoN") - .sendType(ApiPushNotificationConfigSaveRequestPushNotificationSendType.NON_SEQUENTIALLY) - .events(eventsList) - .build(); + WebhookConfigSaveRequestDto webhookConfigSaveRequestDto = WebhookConfigSaveRequestDto.builder() + .name("Name Example") + .url("https://www.example.com/webhook/asaas") + .email("john.doe@asaas.com.br") + .enabled(true) + .interrupted(true) + .apiVersion(3L) + .authToken("5tLxsL6uoN") + .sendType(WebhookConfigSaveRequestWebhookSendType.NON_SEQUENTIALLY) + .events(eventsList) + .build(); - List webhooksList = Arrays.asList(apiPushNotificationConfigSaveRequestDto); + List webhooksList = Arrays.asList(webhookConfigSaveRequestDto); - ApiCustomerSaveRequestDto apiCustomerSaveRequestDto = ApiCustomerSaveRequestDto.builder() + AccountSaveRequestDto accountSaveRequestDto = AccountSaveRequestDto.builder() .name("John Doe") .email("john.doe@asaas.com.br") .loginEmail("johndoe@asaas.com.br") .cpfCnpj("35381637000150") .birthDate("1995-04-12") - .companyType(ApiCustomerSaveRequestCompanyType.MEI) + .companyType(AccountSaveRequestCompanyType.MEI) .phone("phone") .mobilePhone("mobilePhone") .site("https://www.example.com") @@ -134,7 +136,7 @@ public class Main { .webhooks(webhooksList) .build(); - ApiCustomerSaveResponseDto response = asaasSdk.subaccount.createSubaccount(apiCustomerSaveRequestDto); + AccountSaveResponseDto response = asaasSdk.subaccount.createSubaccount(accountSaveRequestDto); System.out.println(response); } @@ -155,7 +157,7 @@ public class Main { **Return Type** -`ApiCustomerGetResponseDto` +`AccountGetResponseDto` **Example Usage Code Snippet** @@ -163,7 +165,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerGetResponseDto; +import com.asaas.apisdk.models.AccountGetResponseDto; public class Main { @@ -174,7 +176,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerGetResponseDto response = asaasSdk.subaccount.retrieveASingleSubaccount( + AccountGetResponseDto response = asaasSdk.subaccount.retrieveASingleSubaccount( "4f468235-cec3-482f-b3d0-348af4c7194" ); @@ -197,7 +199,7 @@ public class Main { **Return Type** -`ApiCustomerPaymentCustodyConfigDto` +`AccountPaymentEscrowConfigDto` **Example Usage Code Snippet** @@ -205,7 +207,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerPaymentCustodyConfigDto; +import com.asaas.apisdk.models.AccountPaymentEscrowConfigDto; public class Main { @@ -216,7 +218,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerPaymentCustodyConfigDto response = asaasSdk.subaccount.reteriveEscrowAccountConfigurationForSubaccount( + AccountPaymentEscrowConfigDto response = asaasSdk.subaccount.reteriveEscrowAccountConfigurationForSubaccount( "4f468235-cec3-482f-b3d0-348af4c7194" ); @@ -233,14 +235,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :---------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------- | :------- | :------------------------------------ | -| id | String | ✅ | Unique subaccount identifier in Asaas | -| apiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto | [ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto](../models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :----------------------------------------------- | :---------------------------------------------------------------------------------------------------------------- | :------- | :------------------------------------ | +| id | String | ✅ | Unique subaccount identifier in Asaas | +| accountSaveOrUpdatePaymentEscrowConfigRequestDto | [AccountSaveOrUpdatePaymentEscrowConfigRequestDto](../models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiCustomerPaymentCustodyConfigDto` +`AccountPaymentEscrowConfigDto` **Example Usage Code Snippet** @@ -248,8 +250,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerPaymentCustodyConfigDto; -import com.asaas.apisdk.models.ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto; +import com.asaas.apisdk.models.AccountPaymentEscrowConfigDto; +import com.asaas.apisdk.models.AccountSaveOrUpdatePaymentEscrowConfigRequestDto; public class Main { @@ -260,18 +262,17 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto apiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto = - ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.builder() + AccountSaveOrUpdatePaymentEscrowConfigRequestDto accountSaveOrUpdatePaymentEscrowConfigRequestDto = + AccountSaveOrUpdatePaymentEscrowConfigRequestDto.builder() .daysToExpire(30L) .enabled(true) .isFeePayer(false) .build(); - ApiCustomerPaymentCustodyConfigDto response = - asaasSdk.subaccount.saveOrUpdateEscrowAccountConfigurationForSubaccount( - "4f468235-cec3-482f-b3d0-348af4c7194", - apiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto - ); + AccountPaymentEscrowConfigDto response = asaasSdk.subaccount.saveOrUpdateEscrowAccountConfigurationForSubaccount( + "4f468235-cec3-482f-b3d0-348af4c7194", + accountSaveOrUpdatePaymentEscrowConfigRequestDto + ); System.out.println(response); } diff --git a/documentation/services/SubscriptionService.md b/documentation/services/SubscriptionService.md index 4cd245a..a5bb6f8 100644 --- a/documentation/services/SubscriptionService.md +++ b/documentation/services/SubscriptionService.md @@ -32,7 +32,7 @@ A list of all methods in the `SubscriptionService` service. Click on the method **Return Type** -`ApiSubscriptionListResponseDto` +`SubscriptionListResponseDto` **Example Usage Code Snippet** @@ -40,10 +40,10 @@ A list of all methods in the `SubscriptionService` service. Click on the method import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiSubscriptionListRequestBillingType; -import com.asaas.apisdk.models.ApiSubscriptionListRequestSubscriptionStatus; -import com.asaas.apisdk.models.ApiSubscriptionListResponseDto; import com.asaas.apisdk.models.ListSubscriptionsParameters; +import com.asaas.apisdk.models.SubscriptionListRequestBillingType; +import com.asaas.apisdk.models.SubscriptionListRequestSubscriptionStatus; +import com.asaas.apisdk.models.SubscriptionListResponseDto; public class Main { @@ -55,12 +55,12 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListSubscriptionsParameters requestParameters = ListSubscriptionsParameters.builder() - .offset(1L) + .offset(10L) .limit(10L) .customer("customer") .customerGroupName("customerGroupName") - .billingType(ApiSubscriptionListRequestBillingType.UNDEFINED) - .status(ApiSubscriptionListRequestSubscriptionStatus.ACTIVE) + .billingType(SubscriptionListRequestBillingType.UNDEFINED) + .status(SubscriptionListRequestSubscriptionStatus.ACTIVE) .deletedOnly("deletedOnly") .includeDeleted("includeDeleted") .externalReference("externalReference") @@ -68,7 +68,7 @@ public class Main { .sort("sort") .build(); - ApiSubscriptionListResponseDto response = asaasSdk.subscription.listSubscriptions(requestParameters); + SubscriptionListResponseDto response = asaasSdk.subscription.listSubscriptions(requestParameters); System.out.println(response); } @@ -83,13 +83,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :---------------------------- | :-------------------------------------------------------------------------- | :------- | :----------- | -| apiSubscriptionSaveRequestDto | [ApiSubscriptionSaveRequestDto](../models/ApiSubscriptionSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------- | :-------------------------------------------------------------------- | :------- | :----------- | +| subscriptionSaveRequestDto | [SubscriptionSaveRequestDto](../models/SubscriptionSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiSubscriptionGetResponseDto` +`SubscriptionGetResponseDto` **Example Usage Code Snippet** @@ -97,17 +97,17 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCallbackRequestDto; -import com.asaas.apisdk.models.ApiPaymentDiscountDiscountType; -import com.asaas.apisdk.models.ApiPaymentDiscountDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestFineType; -import com.asaas.apisdk.models.ApiPaymentInterestRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionGetResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionSaveRequestBillingType; -import com.asaas.apisdk.models.ApiSubscriptionSaveRequestCycle; -import com.asaas.apisdk.models.ApiSubscriptionSaveRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionSplitRequestDto; +import com.asaas.apisdk.models.PaymentCallbackRequestDto; +import com.asaas.apisdk.models.PaymentDiscountDiscountType; +import com.asaas.apisdk.models.PaymentDiscountDto; +import com.asaas.apisdk.models.PaymentFineRequestDto; +import com.asaas.apisdk.models.PaymentFineRequestFineType; +import com.asaas.apisdk.models.PaymentInterestRequestDto; +import com.asaas.apisdk.models.SubscriptionGetResponseDto; +import com.asaas.apisdk.models.SubscriptionSaveRequestBillingType; +import com.asaas.apisdk.models.SubscriptionSaveRequestCycle; +import com.asaas.apisdk.models.SubscriptionSaveRequestDto; +import com.asaas.apisdk.models.SubscriptionSplitRequestDto; import java.util.Arrays; import java.util.List; @@ -120,54 +120,52 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDiscountDto apiPaymentDiscountDto = ApiPaymentDiscountDto.builder() + PaymentDiscountDto paymentDiscountDto = PaymentDiscountDto.builder() .value(10D) .dueDateLimitDays(1L) - .type(ApiPaymentDiscountDiscountType.FIXED) + .type(PaymentDiscountDiscountType.FIXED) .build(); - ApiPaymentInterestRequestDto apiPaymentInterestRequestDto = ApiPaymentInterestRequestDto.builder() - .value(4.68D) - .build(); + PaymentInterestRequestDto paymentInterestRequestDto = PaymentInterestRequestDto.builder().value(4.68D).build(); - ApiPaymentFineRequestDto apiPaymentFineRequestDto = ApiPaymentFineRequestDto.builder() + PaymentFineRequestDto paymentFineRequestDto = PaymentFineRequestDto.builder() .value(8.99D) - .type(ApiPaymentFineRequestFineType.FIXED) + .type(PaymentFineRequestFineType.FIXED) .build(); - ApiSubscriptionSplitRequestDto apiSubscriptionSplitRequestDto = ApiSubscriptionSplitRequestDto.builder() + SubscriptionSplitRequestDto subscriptionSplitRequestDto = SubscriptionSplitRequestDto.builder() .walletId("walletId") - .fixedValue(3.49D) - .percentualValue(7.56D) + .fixedValue(8.29D) + .percentualValue(7.44D) .externalReference("externalReference") .description("description") .build(); - List splitList = Arrays.asList(apiSubscriptionSplitRequestDto); + List splitList = Arrays.asList(subscriptionSplitRequestDto); - ApiPaymentCallbackRequestDto apiPaymentCallbackRequestDto = ApiPaymentCallbackRequestDto.builder() + PaymentCallbackRequestDto paymentCallbackRequestDto = PaymentCallbackRequestDto.builder() .successUrl("successUrl") .autoRedirect(true) .build(); - ApiSubscriptionSaveRequestDto apiSubscriptionSaveRequestDto = ApiSubscriptionSaveRequestDto.builder() + SubscriptionSaveRequestDto subscriptionSaveRequestDto = SubscriptionSaveRequestDto.builder() .customer("cus_0T1mdomVMi39") - .billingType(ApiSubscriptionSaveRequestBillingType.UNDEFINED) + .billingType(SubscriptionSaveRequestBillingType.UNDEFINED) .value(19.9D) .nextDueDate("2017-05-15") - .discount(apiPaymentDiscountDto) - .interest(apiPaymentInterestRequestDto) - .fine(apiPaymentFineRequestDto) - .cycle(ApiSubscriptionSaveRequestCycle.WEEKLY) + .discount(paymentDiscountDto) + .interest(paymentInterestRequestDto) + .fine(paymentFineRequestDto) + .cycle(SubscriptionSaveRequestCycle.WEEKLY) .description("Pro Plan Subscription") .endDate("endDate") - .maxPayments(6L) + .maxPayments(10L) .externalReference("externalReference") .split(splitList) - .callback(apiPaymentCallbackRequestDto) + .callback(paymentCallbackRequestDto) .build(); - ApiSubscriptionGetResponseDto response = asaasSdk.subscription.createNewSubscription(apiSubscriptionSaveRequestDto); + SubscriptionGetResponseDto response = asaasSdk.subscription.createNewSubscription(subscriptionSaveRequestDto); System.out.println(response); } @@ -182,13 +180,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------------------ | :------------------------------------------------------------------------------------------------------ | :------- | :----------- | -| apiSubscriptionSaveWithCreditCardRequestDto | [ApiSubscriptionSaveWithCreditCardRequestDto](../models/ApiSubscriptionSaveWithCreditCardRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :--------------------------------------- | :------------------------------------------------------------------------------------------------ | :------- | :----------- | +| subscriptionSaveWithCreditCardRequestDto | [SubscriptionSaveWithCreditCardRequestDto](../models/SubscriptionSaveWithCreditCardRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiSubscriptionSaveWithCreditCardResponseDto` +`SubscriptionSaveWithCreditCardResponseDto` **Example Usage Code Snippet** @@ -196,19 +194,19 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCreditCardHolderInfoRequestDto; -import com.asaas.apisdk.models.ApiCreditCardRequestDto; -import com.asaas.apisdk.models.ApiPaymentCallbackRequestDto; -import com.asaas.apisdk.models.ApiPaymentDiscountDiscountType; -import com.asaas.apisdk.models.ApiPaymentDiscountDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestFineType; -import com.asaas.apisdk.models.ApiPaymentInterestRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionSaveWithCreditCardRequestBillingType; -import com.asaas.apisdk.models.ApiSubscriptionSaveWithCreditCardRequestCycle; -import com.asaas.apisdk.models.ApiSubscriptionSaveWithCreditCardRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionSaveWithCreditCardResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionSplitRequestDto; +import com.asaas.apisdk.models.CreditCardHolderInfoRequestDto; +import com.asaas.apisdk.models.CreditCardRequestDto; +import com.asaas.apisdk.models.PaymentCallbackRequestDto; +import com.asaas.apisdk.models.PaymentDiscountDiscountType; +import com.asaas.apisdk.models.PaymentDiscountDto; +import com.asaas.apisdk.models.PaymentFineRequestDto; +import com.asaas.apisdk.models.PaymentFineRequestFineType; +import com.asaas.apisdk.models.PaymentInterestRequestDto; +import com.asaas.apisdk.models.SubscriptionSaveWithCreditCardRequestBillingType; +import com.asaas.apisdk.models.SubscriptionSaveWithCreditCardRequestCycle; +import com.asaas.apisdk.models.SubscriptionSaveWithCreditCardRequestDto; +import com.asaas.apisdk.models.SubscriptionSaveWithCreditCardResponseDto; +import com.asaas.apisdk.models.SubscriptionSplitRequestDto; import java.util.Arrays; import java.util.List; @@ -221,45 +219,43 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDiscountDto apiPaymentDiscountDto = ApiPaymentDiscountDto.builder() + PaymentDiscountDto paymentDiscountDto = PaymentDiscountDto.builder() .value(10D) .dueDateLimitDays(1L) - .type(ApiPaymentDiscountDiscountType.FIXED) + .type(PaymentDiscountDiscountType.FIXED) .build(); - ApiPaymentInterestRequestDto apiPaymentInterestRequestDto = ApiPaymentInterestRequestDto.builder() - .value(4.68D) - .build(); + PaymentInterestRequestDto paymentInterestRequestDto = PaymentInterestRequestDto.builder().value(4.68D).build(); - ApiPaymentFineRequestDto apiPaymentFineRequestDto = ApiPaymentFineRequestDto.builder() + PaymentFineRequestDto paymentFineRequestDto = PaymentFineRequestDto.builder() .value(8.99D) - .type(ApiPaymentFineRequestFineType.FIXED) + .type(PaymentFineRequestFineType.FIXED) .build(); - ApiSubscriptionSplitRequestDto apiSubscriptionSplitRequestDto = ApiSubscriptionSplitRequestDto.builder() + SubscriptionSplitRequestDto subscriptionSplitRequestDto = SubscriptionSplitRequestDto.builder() .walletId("walletId") - .fixedValue(3.49D) - .percentualValue(7.56D) + .fixedValue(8.29D) + .percentualValue(7.44D) .externalReference("externalReference") .description("description") .build(); - List splitList = Arrays.asList(apiSubscriptionSplitRequestDto); + List splitList = Arrays.asList(subscriptionSplitRequestDto); - ApiPaymentCallbackRequestDto apiPaymentCallbackRequestDto = ApiPaymentCallbackRequestDto.builder() + PaymentCallbackRequestDto paymentCallbackRequestDto = PaymentCallbackRequestDto.builder() .successUrl("successUrl") .autoRedirect(true) .build(); - ApiCreditCardRequestDto apiCreditCardRequestDto = ApiCreditCardRequestDto.builder() + CreditCardRequestDto creditCardRequestDto = CreditCardRequestDto.builder() .holderName("John Doe") .number("1234567890123456") - .expiryMonth("6") + .expiryMonth("7") .expiryYear("2025") .ccv("123") .build(); - ApiCreditCardHolderInfoRequestDto apiCreditCardHolderInfoRequestDto = ApiCreditCardHolderInfoRequestDto.builder() + CreditCardHolderInfoRequestDto creditCardHolderInfoRequestDto = CreditCardHolderInfoRequestDto.builder() .name("John Doe") .email("john.doe@asaas.com") .cpfCnpj("12345678901") @@ -270,30 +266,30 @@ public class Main { .mobilePhone("mobilePhone") .build(); - ApiSubscriptionSaveWithCreditCardRequestDto apiSubscriptionSaveWithCreditCardRequestDto = - ApiSubscriptionSaveWithCreditCardRequestDto.builder() + SubscriptionSaveWithCreditCardRequestDto subscriptionSaveWithCreditCardRequestDto = + SubscriptionSaveWithCreditCardRequestDto.builder() .customer("cus_0T1mdomVMi39") - .billingType(ApiSubscriptionSaveWithCreditCardRequestBillingType.UNDEFINED) + .billingType(SubscriptionSaveWithCreditCardRequestBillingType.UNDEFINED) .value(19.9D) .nextDueDate("2017-05-15") - .discount(apiPaymentDiscountDto) - .interest(apiPaymentInterestRequestDto) - .fine(apiPaymentFineRequestDto) - .cycle(ApiSubscriptionSaveWithCreditCardRequestCycle.WEEKLY) + .discount(paymentDiscountDto) + .interest(paymentInterestRequestDto) + .fine(paymentFineRequestDto) + .cycle(SubscriptionSaveWithCreditCardRequestCycle.WEEKLY) .description("Pro Plan Subscription") .endDate("endDate") - .maxPayments(7L) + .maxPayments(0L) .externalReference("externalReference") .split(splitList) - .callback(apiPaymentCallbackRequestDto) - .creditCard(apiCreditCardRequestDto) - .creditCardHolderInfo(apiCreditCardHolderInfoRequestDto) + .callback(paymentCallbackRequestDto) + .creditCard(creditCardRequestDto) + .creditCardHolderInfo(creditCardHolderInfoRequestDto) .creditCardToken("a75a1d98-c52d-4a6b-a413-71e00b193c99") .remoteIp("remoteIp") .build(); - ApiSubscriptionSaveWithCreditCardResponseDto response = asaasSdk.subscription.createSubscriptionWithCreditCard( - apiSubscriptionSaveWithCreditCardRequestDto + SubscriptionSaveWithCreditCardResponseDto response = asaasSdk.subscription.createSubscriptionWithCreditCard( + subscriptionSaveWithCreditCardRequestDto ); System.out.println(response); @@ -315,7 +311,7 @@ public class Main { **Return Type** -`ApiSubscriptionGetResponseDto` +`SubscriptionGetResponseDto` **Example Usage Code Snippet** @@ -323,7 +319,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiSubscriptionGetResponseDto; +import com.asaas.apisdk.models.SubscriptionGetResponseDto; public class Main { @@ -334,7 +330,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiSubscriptionGetResponseDto response = asaasSdk.subscription.retrieveASingleSubscription("sub_VXJBYgP2u0eO"); + SubscriptionGetResponseDto response = asaasSdk.subscription.retrieveASingleSubscription("sub_VXJBYgP2u0eO"); System.out.println(response); } @@ -349,14 +345,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------ | :------------------------------------------------------------------------------ | :------- | :-------------------------------------- | -| id | String | ✅ | Unique subscription identifier in Asaas | -| apiSubscriptionUpdateRequestDto | [ApiSubscriptionUpdateRequestDto](../models/ApiSubscriptionUpdateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :--------------------------- | :------------------------------------------------------------------------ | :------- | :-------------------------------------- | +| id | String | ✅ | Unique subscription identifier in Asaas | +| subscriptionUpdateRequestDto | [SubscriptionUpdateRequestDto](../models/SubscriptionUpdateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiSubscriptionGetResponseDto` +`SubscriptionGetResponseDto` **Example Usage Code Snippet** @@ -364,18 +360,18 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentCallbackRequestDto; -import com.asaas.apisdk.models.ApiPaymentDiscountDiscountType; -import com.asaas.apisdk.models.ApiPaymentDiscountDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestDto; -import com.asaas.apisdk.models.ApiPaymentFineRequestFineType; -import com.asaas.apisdk.models.ApiPaymentInterestRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionGetResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionSplitRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionUpdateRequestBillingType; -import com.asaas.apisdk.models.ApiSubscriptionUpdateRequestCycle; -import com.asaas.apisdk.models.ApiSubscriptionUpdateRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionUpdateRequestSubscriptionStatus; +import com.asaas.apisdk.models.PaymentCallbackRequestDto; +import com.asaas.apisdk.models.PaymentDiscountDiscountType; +import com.asaas.apisdk.models.PaymentDiscountDto; +import com.asaas.apisdk.models.PaymentFineRequestDto; +import com.asaas.apisdk.models.PaymentFineRequestFineType; +import com.asaas.apisdk.models.PaymentInterestRequestDto; +import com.asaas.apisdk.models.SubscriptionGetResponseDto; +import com.asaas.apisdk.models.SubscriptionSplitRequestDto; +import com.asaas.apisdk.models.SubscriptionUpdateRequestBillingType; +import com.asaas.apisdk.models.SubscriptionUpdateRequestCycle; +import com.asaas.apisdk.models.SubscriptionUpdateRequestDto; +import com.asaas.apisdk.models.SubscriptionUpdateRequestSubscriptionStatus; import java.util.Arrays; import java.util.List; @@ -388,55 +384,53 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPaymentDiscountDto apiPaymentDiscountDto = ApiPaymentDiscountDto.builder() + PaymentDiscountDto paymentDiscountDto = PaymentDiscountDto.builder() .value(10D) .dueDateLimitDays(1L) - .type(ApiPaymentDiscountDiscountType.FIXED) + .type(PaymentDiscountDiscountType.FIXED) .build(); - ApiPaymentInterestRequestDto apiPaymentInterestRequestDto = ApiPaymentInterestRequestDto.builder() - .value(4.68D) - .build(); + PaymentInterestRequestDto paymentInterestRequestDto = PaymentInterestRequestDto.builder().value(4.68D).build(); - ApiPaymentFineRequestDto apiPaymentFineRequestDto = ApiPaymentFineRequestDto.builder() + PaymentFineRequestDto paymentFineRequestDto = PaymentFineRequestDto.builder() .value(8.99D) - .type(ApiPaymentFineRequestFineType.FIXED) + .type(PaymentFineRequestFineType.FIXED) .build(); - ApiSubscriptionSplitRequestDto apiSubscriptionSplitRequestDto = ApiSubscriptionSplitRequestDto.builder() + SubscriptionSplitRequestDto subscriptionSplitRequestDto = SubscriptionSplitRequestDto.builder() .walletId("walletId") - .fixedValue(3.49D) - .percentualValue(7.56D) + .fixedValue(8.29D) + .percentualValue(7.44D) .externalReference("externalReference") .description("description") .build(); - List splitList = Arrays.asList(apiSubscriptionSplitRequestDto); + List splitList = Arrays.asList(subscriptionSplitRequestDto); - ApiPaymentCallbackRequestDto apiPaymentCallbackRequestDto = ApiPaymentCallbackRequestDto.builder() + PaymentCallbackRequestDto paymentCallbackRequestDto = PaymentCallbackRequestDto.builder() .successUrl("successUrl") .autoRedirect(true) .build(); - ApiSubscriptionUpdateRequestDto apiSubscriptionUpdateRequestDto = ApiSubscriptionUpdateRequestDto.builder() - .billingType(ApiSubscriptionUpdateRequestBillingType.UNDEFINED) - .status(ApiSubscriptionUpdateRequestSubscriptionStatus.ACTIVE) + SubscriptionUpdateRequestDto subscriptionUpdateRequestDto = SubscriptionUpdateRequestDto.builder() + .billingType(SubscriptionUpdateRequestBillingType.UNDEFINED) + .status(SubscriptionUpdateRequestSubscriptionStatus.ACTIVE) .nextDueDate("2017-05-15") - .discount(apiPaymentDiscountDto) - .interest(apiPaymentInterestRequestDto) - .fine(apiPaymentFineRequestDto) - .cycle(ApiSubscriptionUpdateRequestCycle.WEEKLY) + .discount(paymentDiscountDto) + .interest(paymentInterestRequestDto) + .fine(paymentFineRequestDto) + .cycle(SubscriptionUpdateRequestCycle.WEEKLY) .description("Pro Plan Subscription") .endDate("endDate") .updatePendingPayments(true) .externalReference("externalReference") .split(splitList) - .callback(apiPaymentCallbackRequestDto) + .callback(paymentCallbackRequestDto) .build(); - ApiSubscriptionGetResponseDto response = asaasSdk.subscription.updateExistingSubscription( + SubscriptionGetResponseDto response = asaasSdk.subscription.updateExistingSubscription( "sub_VXJBYgP2u0eO", - apiSubscriptionUpdateRequestDto + subscriptionUpdateRequestDto ); System.out.println(response); @@ -458,7 +452,7 @@ public class Main { **Return Type** -`ApiSubscriptionDeleteResponseDto` +`SubscriptionDeleteResponseDto` **Example Usage Code Snippet** @@ -466,7 +460,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiSubscriptionDeleteResponseDto; +import com.asaas.apisdk.models.SubscriptionDeleteResponseDto; public class Main { @@ -477,7 +471,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiSubscriptionDeleteResponseDto response = asaasSdk.subscription.removeSubscription("sub_VXJBYgP2u0eO"); + SubscriptionDeleteResponseDto response = asaasSdk.subscription.removeSubscription("sub_VXJBYgP2u0eO"); System.out.println(response); } @@ -494,14 +488,14 @@ This endpoint updates the subscription's credit card without triggering an immed **Parameters** -| Name | Type | Required | Description | -| :---------------------------------------- | :-------------------------------------------------------------------------------------------------- | :------- | :-------------------------------------- | -| id | String | ✅ | Unique subscription identifier in Asaas | -| apiSubscriptionUpdateCreditCardRequestDto | [ApiSubscriptionUpdateCreditCardRequestDto](../models/ApiSubscriptionUpdateCreditCardRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------------------- | :-------------------------------------------------------------------------------------------- | :------- | :-------------------------------------- | +| id | String | ✅ | Unique subscription identifier in Asaas | +| subscriptionUpdateCreditCardRequestDto | [SubscriptionUpdateCreditCardRequestDto](../models/SubscriptionUpdateCreditCardRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiSubscriptionGetResponseDto` +`SubscriptionGetResponseDto` **Example Usage Code Snippet** @@ -509,10 +503,10 @@ This endpoint updates the subscription's credit card without triggering an immed import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCreditCardHolderInfoRequestDto; -import com.asaas.apisdk.models.ApiCreditCardRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionGetResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionUpdateCreditCardRequestDto; +import com.asaas.apisdk.models.CreditCardHolderInfoRequestDto; +import com.asaas.apisdk.models.CreditCardRequestDto; +import com.asaas.apisdk.models.SubscriptionGetResponseDto; +import com.asaas.apisdk.models.SubscriptionUpdateCreditCardRequestDto; public class Main { @@ -523,15 +517,15 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCreditCardRequestDto apiCreditCardRequestDto = ApiCreditCardRequestDto.builder() + CreditCardRequestDto creditCardRequestDto = CreditCardRequestDto.builder() .holderName("John Doe") .number("1234567890123456") - .expiryMonth("6") + .expiryMonth("7") .expiryYear("2025") .ccv("123") .build(); - ApiCreditCardHolderInfoRequestDto apiCreditCardHolderInfoRequestDto = ApiCreditCardHolderInfoRequestDto.builder() + CreditCardHolderInfoRequestDto creditCardHolderInfoRequestDto = CreditCardHolderInfoRequestDto.builder() .name("John Doe") .email("john.doe@asaas.com") .cpfCnpj("12345678901") @@ -542,17 +536,17 @@ public class Main { .mobilePhone("mobilePhone") .build(); - ApiSubscriptionUpdateCreditCardRequestDto apiSubscriptionUpdateCreditCardRequestDto = - ApiSubscriptionUpdateCreditCardRequestDto.builder() - .creditCard(apiCreditCardRequestDto) - .creditCardHolderInfo(apiCreditCardHolderInfoRequestDto) + SubscriptionUpdateCreditCardRequestDto subscriptionUpdateCreditCardRequestDto = + SubscriptionUpdateCreditCardRequestDto.builder() + .creditCard(creditCardRequestDto) + .creditCardHolderInfo(creditCardHolderInfoRequestDto) .creditCardToken("a75a1d98-c52d-4a6b-a413-71e00b193c99") .remoteIp("116.213.42.532") .build(); - ApiSubscriptionGetResponseDto response = asaasSdk.subscription.updateSubscriptionCreditCard( + SubscriptionGetResponseDto response = asaasSdk.subscription.updateSubscriptionCreditCard( "sub_VXJBYgP2u0eO", - apiSubscriptionUpdateCreditCardRequestDto + subscriptionUpdateCreditCardRequestDto ); System.out.println(response); @@ -575,7 +569,7 @@ public class Main { **Return Type** -`ApiPaymentListResponseDto` +`PaymentListResponseDto` **Example Usage Code Snippet** @@ -583,9 +577,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPaymentListResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionListPaymentsRequestPaymentStatus; import com.asaas.apisdk.models.ListPaymentsOfASubscriptionParameters; +import com.asaas.apisdk.models.PaymentListResponseDto; +import com.asaas.apisdk.models.SubscriptionListPaymentsRequestPaymentStatus; public class Main { @@ -597,10 +591,10 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); ListPaymentsOfASubscriptionParameters requestParameters = ListPaymentsOfASubscriptionParameters.builder() - .status(ApiSubscriptionListPaymentsRequestPaymentStatus.PENDING) + .status(SubscriptionListPaymentsRequestPaymentStatus.PENDING) .build(); - ApiPaymentListResponseDto response = asaasSdk.subscription.listPaymentsOfASubscription( + PaymentListResponseDto response = asaasSdk.subscription.listPaymentsOfASubscription( "sub_VXJBYgP2u0eO", requestParameters ); @@ -645,8 +639,8 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); GenerateSignatureBookletParameters requestParameters = GenerateSignatureBookletParameters.builder() - .month(10L) - .year(10L) + .month(2L) + .year(5L) .sort("sort") .order("asc") .build(); @@ -672,7 +666,7 @@ public class Main { **Return Type** -`ApiSubscriptionInvoiceConfigGetResponseDto` +`SubscriptionInvoiceConfigGetResponseDto` **Example Usage Code Snippet** @@ -680,7 +674,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiSubscriptionInvoiceConfigGetResponseDto; +import com.asaas.apisdk.models.SubscriptionInvoiceConfigGetResponseDto; public class Main { @@ -691,8 +685,9 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiSubscriptionInvoiceConfigGetResponseDto response = - asaasSdk.subscription.retrieveConfigurationForIssuanceOfInvoices("sub_VXJBYgP2u0eO"); + SubscriptionInvoiceConfigGetResponseDto response = asaasSdk.subscription.retrieveConfigurationForIssuanceOfInvoices( + "sub_VXJBYgP2u0eO" + ); System.out.println(response); } @@ -707,14 +702,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :---------------------------------------- | :-------------------------------------------------------------------------------------------------- | :------- | :-------------------------------------- | -| id | String | ✅ | Unique subscription identifier in Asaas | -| apiSubscriptionConfigureInvoiceRequestDto | [ApiSubscriptionConfigureInvoiceRequestDto](../models/ApiSubscriptionConfigureInvoiceRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------------------- | :-------------------------------------------------------------------------------------------- | :------- | :-------------------------------------- | +| id | String | ✅ | Unique subscription identifier in Asaas | +| subscriptionConfigureInvoiceRequestDto | [SubscriptionConfigureInvoiceRequestDto](../models/SubscriptionConfigureInvoiceRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiSubscriptionInvoiceConfigGetResponseDto` +`SubscriptionInvoiceConfigGetResponseDto` **Example Usage Code Snippet** @@ -722,10 +717,10 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerInvoiceTaxesDto; -import com.asaas.apisdk.models.ApiSubscriptionConfigureInvoiceRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod; -import com.asaas.apisdk.models.ApiSubscriptionInvoiceConfigGetResponseDto; +import com.asaas.apisdk.models.InvoiceTaxesDto; +import com.asaas.apisdk.models.SubscriptionConfigureInvoiceRequestDto; +import com.asaas.apisdk.models.SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod; +import com.asaas.apisdk.models.SubscriptionInvoiceConfigGetResponseDto; public class Main { @@ -736,7 +731,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerInvoiceTaxesDto apiCustomerInvoiceTaxesDto = ApiCustomerInvoiceTaxesDto.builder() + InvoiceTaxesDto invoiceTaxesDto = InvoiceTaxesDto.builder() .retainIss(true) .cofins(1D) .csll(1D) @@ -746,25 +741,24 @@ public class Main { .iss(1D) .build(); - ApiSubscriptionConfigureInvoiceRequestDto apiSubscriptionConfigureInvoiceRequestDto = - ApiSubscriptionConfigureInvoiceRequestDto.builder() + SubscriptionConfigureInvoiceRequestDto subscriptionConfigureInvoiceRequestDto = + SubscriptionConfigureInvoiceRequestDto.builder() .municipalServiceId("municipalServiceId") .municipalServiceCode("1.01") .municipalServiceName("municipalServiceName") .updatePayment(true) .deductions(55D) - .effectiveDatePeriod(ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.ON_PAYMENT_CONFIRMATION) - .receivedOnly(false) - .daysBeforeDueDate(2L) + .effectiveDatePeriod(SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.ON_PAYMENT_CONFIRMATION) + .receivedOnly(true) + .daysBeforeDueDate(9L) .observations("Regarding March work") - .taxes(apiCustomerInvoiceTaxesDto) + .taxes(invoiceTaxesDto) .build(); - ApiSubscriptionInvoiceConfigGetResponseDto response = - asaasSdk.subscription.createConfigurationForIssuanceOfInvoices( - "sub_VXJBYgP2u0eO", - apiSubscriptionConfigureInvoiceRequestDto - ); + SubscriptionInvoiceConfigGetResponseDto response = asaasSdk.subscription.createConfigurationForIssuanceOfInvoices( + "sub_VXJBYgP2u0eO", + subscriptionConfigureInvoiceRequestDto + ); System.out.println(response); } @@ -779,14 +773,14 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------------------------- | :-------------------------------------------------------------------------------------------------------- | :------- | :-------------------------------------- | -| id | String | ✅ | Unique subscription identifier in Asaas | -| apiSubscriptionInvoiceConfigUpdateRequestDto | [ApiSubscriptionInvoiceConfigUpdateRequestDto](../models/ApiSubscriptionInvoiceConfigUpdateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------------------------- | :-------------------------------------------------------------------------------------------------- | :------- | :-------------------------------------- | +| id | String | ✅ | Unique subscription identifier in Asaas | +| subscriptionInvoiceConfigUpdateRequestDto | [SubscriptionInvoiceConfigUpdateRequestDto](../models/SubscriptionInvoiceConfigUpdateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiSubscriptionInvoiceConfigGetResponseDto` +`SubscriptionInvoiceConfigGetResponseDto` **Example Usage Code Snippet** @@ -794,10 +788,10 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerInvoiceTaxesDto; -import com.asaas.apisdk.models.ApiSubscriptionInvoiceConfigGetResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionInvoiceConfigUpdateRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod; +import com.asaas.apisdk.models.InvoiceTaxesDto; +import com.asaas.apisdk.models.SubscriptionInvoiceConfigGetResponseDto; +import com.asaas.apisdk.models.SubscriptionInvoiceConfigUpdateRequestDto; +import com.asaas.apisdk.models.SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod; public class Main { @@ -808,7 +802,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiCustomerInvoiceTaxesDto apiCustomerInvoiceTaxesDto = ApiCustomerInvoiceTaxesDto.builder() + InvoiceTaxesDto invoiceTaxesDto = InvoiceTaxesDto.builder() .retainIss(true) .cofins(1D) .csll(1D) @@ -818,21 +812,20 @@ public class Main { .iss(1D) .build(); - ApiSubscriptionInvoiceConfigUpdateRequestDto apiSubscriptionInvoiceConfigUpdateRequestDto = - ApiSubscriptionInvoiceConfigUpdateRequestDto.builder() + SubscriptionInvoiceConfigUpdateRequestDto subscriptionInvoiceConfigUpdateRequestDto = + SubscriptionInvoiceConfigUpdateRequestDto.builder() .deductions(55D) - .effectiveDatePeriod(ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.ON_PAYMENT_CONFIRMATION) + .effectiveDatePeriod(SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.ON_PAYMENT_CONFIRMATION) .receivedOnly(true) - .daysBeforeDueDate(2L) + .daysBeforeDueDate(10L) .observations("Regarding March work") - .taxes(apiCustomerInvoiceTaxesDto) + .taxes(invoiceTaxesDto) .build(); - ApiSubscriptionInvoiceConfigGetResponseDto response = - asaasSdk.subscription.updateConfigurationForIssuanceOfInvoices( - "sub_VXJBYgP2u0eO", - apiSubscriptionInvoiceConfigUpdateRequestDto - ); + SubscriptionInvoiceConfigGetResponseDto response = asaasSdk.subscription.updateConfigurationForIssuanceOfInvoices( + "sub_VXJBYgP2u0eO", + subscriptionInvoiceConfigUpdateRequestDto + ); System.out.println(response); } @@ -853,7 +846,7 @@ public class Main { **Return Type** -`ApiSubscriptionDeleteInvoiceConfigResponseDto` +`SubscriptionDeleteInvoiceConfigResponseDto` **Example Usage Code Snippet** @@ -861,7 +854,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiSubscriptionDeleteInvoiceConfigResponseDto; +import com.asaas.apisdk.models.SubscriptionDeleteInvoiceConfigResponseDto; public class Main { @@ -872,7 +865,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiSubscriptionDeleteInvoiceConfigResponseDto response = + SubscriptionDeleteInvoiceConfigResponseDto response = asaasSdk.subscription.removeConfigurationForIssuanceOfInvoices("sub_VXJBYgP2u0eO"); System.out.println(response); @@ -895,7 +888,7 @@ public class Main { **Return Type** -`ApiCustomerInvoiceListResponseDto` +`InvoiceListResponseDto` **Example Usage Code Snippet** @@ -903,9 +896,9 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiCustomerInvoiceListResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionGetInvoicesRequestInvoiceStatus; +import com.asaas.apisdk.models.InvoiceListResponseDto; import com.asaas.apisdk.models.ListInvoicesForSubscriptionChargesParameters; +import com.asaas.apisdk.models.SubscriptionGetInvoicesRequestInvoiceStatus; public class Main { @@ -918,16 +911,16 @@ public class Main { ListInvoicesForSubscriptionChargesParameters requestParameters = ListInvoicesForSubscriptionChargesParameters.builder() - .offset(5L) + .offset(0L) .limit(10L) .effectiveDateGe("2024-08-20") .effectiveDateLe("2024-08-20") .externalReference("externalReference") - .status(ApiSubscriptionGetInvoicesRequestInvoiceStatus.SCHEDULED) + .status(SubscriptionGetInvoicesRequestInvoiceStatus.SCHEDULED) .customer("cus_000000002750") .build(); - ApiCustomerInvoiceListResponseDto response = asaasSdk.subscription.listInvoicesForSubscriptionCharges( + InvoiceListResponseDto response = asaasSdk.subscription.listInvoicesForSubscriptionCharges( "inv_000000000232", requestParameters ); diff --git a/documentation/services/TransferService.md b/documentation/services/TransferService.md index 41bfa82..e5d65e6 100644 --- a/documentation/services/TransferService.md +++ b/documentation/services/TransferService.md @@ -25,7 +25,7 @@ This method returns a paginated list of all transfers for the specified filter. **Return Type** -`ApiTransferListResponseDto` +`TransferListResponseDto` **Example Usage Code Snippet** @@ -33,8 +33,8 @@ This method returns a paginated list of all transfers for the specified filter. import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiTransferListResponseDto; import com.asaas.apisdk.models.ListTransfersParameters; +import com.asaas.apisdk.models.TransferListResponseDto; public class Main { @@ -53,7 +53,7 @@ public class Main { .type("ASAAS_ACCOUNT") .build(); - ApiTransferListResponseDto response = asaasSdk.transfer.listTransfers(requestParameters); + TransferListResponseDto response = asaasSdk.transfer.listTransfers(requestParameters); System.out.println(response); } @@ -68,13 +68,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :------------------------ | :------------------------------------------------------------------ | :------- | :----------- | -| apiTransferSaveRequestDto | [ApiTransferSaveRequestDto](../models/ApiTransferSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :--------------------- | :------------------------------------------------------------ | :------- | :----------- | +| transferSaveRequestDto | [TransferSaveRequestDto](../models/TransferSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiTransferGetResponseDto` +`TransferGetResponseDto` **Example Usage Code Snippet** @@ -82,15 +82,15 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiTransferBankAccountSaveRequestBankAccountType; -import com.asaas.apisdk.models.ApiTransferBankAccountSaveRequestDto; -import com.asaas.apisdk.models.ApiTransferBankSaveRequestDto; -import com.asaas.apisdk.models.ApiTransferGetResponseDto; -import com.asaas.apisdk.models.ApiTransferRecurringSaveRequestDto; -import com.asaas.apisdk.models.ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency; -import com.asaas.apisdk.models.ApiTransferSaveRequestDto; -import com.asaas.apisdk.models.ApiTransferSaveRequestPixAddressKeyType; -import com.asaas.apisdk.models.ApiTransferSaveRequestTransferType; +import com.asaas.apisdk.models.TransferBankAccountSaveRequestBankAccountType; +import com.asaas.apisdk.models.TransferBankAccountSaveRequestDto; +import com.asaas.apisdk.models.TransferBankSaveRequestDto; +import com.asaas.apisdk.models.TransferGetResponseDto; +import com.asaas.apisdk.models.TransferRecurringSaveRequestDto; +import com.asaas.apisdk.models.TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency; +import com.asaas.apisdk.models.TransferSaveRequestDto; +import com.asaas.apisdk.models.TransferSaveRequestPixAddressKeyType; +import com.asaas.apisdk.models.TransferSaveRequestTransferType; public class Main { @@ -101,43 +101,40 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiTransferBankSaveRequestDto apiTransferBankSaveRequestDto = ApiTransferBankSaveRequestDto.builder() - .code("237") + TransferBankSaveRequestDto transferBankSaveRequestDto = TransferBankSaveRequestDto.builder().code("237").build(); + + TransferBankAccountSaveRequestDto transferBankAccountSaveRequestDto = TransferBankAccountSaveRequestDto.builder() + .bank(transferBankSaveRequestDto) + .accountName("Bradesco account") + .ownerName("John Doe") + .ownerBirthDate("1995-04-12") + .cpfCnpj("52233424611") + .agency("1263") + .account("9999991") + .accountDigit("1") + .bankAccountType(TransferBankAccountSaveRequestBankAccountType.CONTA_CORRENTE) + .ispb("60746948") .build(); - ApiTransferBankAccountSaveRequestDto apiTransferBankAccountSaveRequestDto = - ApiTransferBankAccountSaveRequestDto.builder() - .bank(apiTransferBankSaveRequestDto) - .accountName("Bradesco account") - .ownerName("John Doe") - .ownerBirthDate("1995-04-12") - .cpfCnpj("52233424611") - .agency("1263") - .account("9999991") - .accountDigit("1") - .bankAccountType(ApiTransferBankAccountSaveRequestBankAccountType.CONTA_CORRENTE) - .ispb("60746948") - .build(); - - ApiTransferRecurringSaveRequestDto apiTransferRecurringSaveRequestDto = ApiTransferRecurringSaveRequestDto.builder() - .frequency(ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.WEEKLY) + TransferRecurringSaveRequestDto transferRecurringSaveRequestDto = TransferRecurringSaveRequestDto.builder() + .frequency(TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.WEEKLY) .quantity(3L) .build(); - ApiTransferSaveRequestDto apiTransferSaveRequestDto = ApiTransferSaveRequestDto.builder() + TransferSaveRequestDto transferSaveRequestDto = TransferSaveRequestDto.builder() .value(1000D) - .bankAccount(apiTransferBankAccountSaveRequestDto) - .operationType(ApiTransferSaveRequestTransferType.PIX) + .bankAccount(transferBankAccountSaveRequestDto) + .operationType(TransferSaveRequestTransferType.PIX) .pixAddressKey("pixAddressKey") - .pixAddressKeyType(ApiTransferSaveRequestPixAddressKeyType.CPF) + .pixAddressKeyType(TransferSaveRequestPixAddressKeyType.CPF) .description("Barbecue paid via Pix scheduled") .scheduleDate("2018-01-26") .externalReference("externalReference") - .recurring(apiTransferRecurringSaveRequestDto) + .recurring(transferRecurringSaveRequestDto) .build(); - ApiTransferGetResponseDto response = asaasSdk.transfer.transferToAnotherInstitutionAccountOrPixKey( - apiTransferSaveRequestDto + TransferGetResponseDto response = asaasSdk.transfer.transferToAnotherInstitutionAccountOrPixKey( + transferSaveRequestDto ); System.out.println(response); @@ -153,13 +150,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :---------------------------------------- | :-------------------------------------------------------------------------------------------------- | :------- | :----------- | -| apiTransferSaveInternalTransferRequestDto | [ApiTransferSaveInternalTransferRequestDto](../models/ApiTransferSaveInternalTransferRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :------------------------------------- | :-------------------------------------------------------------------------------------------- | :------- | :----------- | +| transferSaveInternalTransferRequestDto | [TransferSaveInternalTransferRequestDto](../models/TransferSaveInternalTransferRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiTransferSaveInternalTransferResponseDto` +`TransferSaveInternalTransferResponseDto` **Example Usage Code Snippet** @@ -167,8 +164,8 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiTransferSaveInternalTransferRequestDto; -import com.asaas.apisdk.models.ApiTransferSaveInternalTransferResponseDto; +import com.asaas.apisdk.models.TransferSaveInternalTransferRequestDto; +import com.asaas.apisdk.models.TransferSaveInternalTransferResponseDto; public class Main { @@ -179,15 +176,15 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiTransferSaveInternalTransferRequestDto apiTransferSaveInternalTransferRequestDto = - ApiTransferSaveInternalTransferRequestDto.builder() + TransferSaveInternalTransferRequestDto transferSaveInternalTransferRequestDto = + TransferSaveInternalTransferRequestDto.builder() .value(1000D) .walletId("021c712-d963-4d86-a59d-031e7ac51a2e") .externalReference("externalReference") .build(); - ApiTransferSaveInternalTransferResponseDto response = asaasSdk.transfer.transferToAsaasAccount( - apiTransferSaveInternalTransferRequestDto + TransferSaveInternalTransferResponseDto response = asaasSdk.transfer.transferToAsaasAccount( + transferSaveInternalTransferRequestDto ); System.out.println(response); @@ -209,7 +206,7 @@ public class Main { **Return Type** -`ApiTransferGetResponseDto` +`TransferGetResponseDto` **Example Usage Code Snippet** @@ -217,7 +214,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiTransferGetResponseDto; +import com.asaas.apisdk.models.TransferGetResponseDto; public class Main { @@ -228,9 +225,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiTransferGetResponseDto response = asaasSdk.transfer.retrieveASingleTransfer( - "777eb7c8-b1a2-4356-8fd8-a1b0644b528" - ); + TransferGetResponseDto response = asaasSdk.transfer.retrieveASingleTransfer("777eb7c8-b1a2-4356-8fd8-a1b0644b528"); System.out.println(response); } @@ -251,7 +246,7 @@ public class Main { **Return Type** -`ApiTransferGetResponseDto` +`TransferGetResponseDto` **Example Usage Code Snippet** @@ -259,7 +254,7 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiTransferGetResponseDto; +import com.asaas.apisdk.models.TransferGetResponseDto; public class Main { @@ -270,7 +265,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiTransferGetResponseDto response = asaasSdk.transfer.cancelATransfer("777eb7c8-b1a2-4356-8fd8-a1b0644b5282"); + TransferGetResponseDto response = asaasSdk.transfer.cancelATransfer("777eb7c8-b1a2-4356-8fd8-a1b0644b5282"); System.out.println(response); } diff --git a/documentation/services/WebhookService.md b/documentation/services/WebhookService.md index 1e635c7..5ba5a95 100644 --- a/documentation/services/WebhookService.md +++ b/documentation/services/WebhookService.md @@ -25,7 +25,7 @@ Endpoint to list all Webhooks registered in your account. **Return Type** -`ApiPushNotificationConfigListResponseDto` +`WebhookConfigListResponseDto` **Example Usage Code Snippet** @@ -33,8 +33,8 @@ Endpoint to list all Webhooks registered in your account. import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPushNotificationConfigListResponseDto; import com.asaas.apisdk.models.ListWebhooksParameters; +import com.asaas.apisdk.models.WebhookConfigListResponseDto; public class Main { @@ -45,9 +45,9 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ListWebhooksParameters requestParameters = ListWebhooksParameters.builder().offset(5L).limit(10L).build(); + ListWebhooksParameters requestParameters = ListWebhooksParameters.builder().offset(10L).limit(10L).build(); - ApiPushNotificationConfigListResponseDto response = asaasSdk.webhook.listWebhooks(requestParameters); + WebhookConfigListResponseDto response = asaasSdk.webhook.listWebhooks(requestParameters); System.out.println(response); } @@ -62,13 +62,13 @@ public class Main { **Parameters** -| Name | Type | Required | Description | -| :-------------------------------------- | :---------------------------------------------------------------------------------------------- | :------- | :----------- | -| apiPushNotificationConfigSaveRequestDto | [ApiPushNotificationConfigSaveRequestDto](../models/ApiPushNotificationConfigSaveRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :-------------------------- | :---------------------------------------------------------------------- | :------- | :----------- | +| webhookConfigSaveRequestDto | [WebhookConfigSaveRequestDto](../models/WebhookConfigSaveRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPushNotificationConfigGetResponseDto` +`WebhookConfigGetResponseDto` **Example Usage Code Snippet** @@ -76,9 +76,10 @@ public class Main { import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPushNotificationConfigGetResponseDto; -import com.asaas.apisdk.models.ApiPushNotificationConfigSaveRequestDto; -import com.asaas.apisdk.models.ApiPushNotificationConfigSaveRequestPushNotificationSendType; +import com.asaas.apisdk.models.WebhookConfigGetResponseDto; +import com.asaas.apisdk.models.WebhookConfigSaveRequestDto; +import com.asaas.apisdk.models.WebhookConfigSaveRequestWebhookEvent; +import com.asaas.apisdk.models.WebhookConfigSaveRequestWebhookSendType; import java.util.Arrays; import java.util.List; @@ -91,25 +92,24 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - List eventsList = Arrays.asList("events"); - - ApiPushNotificationConfigSaveRequestDto apiPushNotificationConfigSaveRequestDto = - ApiPushNotificationConfigSaveRequestDto.builder() - .name("Name Example") - .url("https://www.example.com/webhook/asaas") - .email("john.doe@asaas.com.br") - .enabled(true) - .interrupted(true) - .apiVersion(3L) - .authToken("5tLxsL6uoN") - .sendType(ApiPushNotificationConfigSaveRequestPushNotificationSendType.NON_SEQUENTIALLY) - .events(eventsList) - .build(); - - ApiPushNotificationConfigGetResponseDto response = asaasSdk.webhook.createNewWebhook( - apiPushNotificationConfigSaveRequestDto + List eventsList = Arrays.asList( + WebhookConfigSaveRequestWebhookEvent.PAYMENT_AUTHORIZED ); + WebhookConfigSaveRequestDto webhookConfigSaveRequestDto = WebhookConfigSaveRequestDto.builder() + .name("Name Example") + .url("https://www.example.com/webhook/asaas") + .email("john.doe@asaas.com.br") + .enabled(true) + .interrupted(true) + .apiVersion(3L) + .authToken("5tLxsL6uoN") + .sendType(WebhookConfigSaveRequestWebhookSendType.NON_SEQUENTIALLY) + .events(eventsList) + .build(); + + WebhookConfigGetResponseDto response = asaasSdk.webhook.createNewWebhook(webhookConfigSaveRequestDto); + System.out.println(response); } } @@ -131,7 +131,7 @@ This endpoint retrieves a single webhook according to the provided ID. **Return Type** -`ApiPushNotificationConfigGetResponseDto` +`WebhookConfigGetResponseDto` **Example Usage Code Snippet** @@ -139,7 +139,7 @@ This endpoint retrieves a single webhook according to the provided ID. import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPushNotificationConfigGetResponseDto; +import com.asaas.apisdk.models.WebhookConfigGetResponseDto; public class Main { @@ -150,7 +150,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPushNotificationConfigGetResponseDto response = asaasSdk.webhook.retrieveASingleWebhook( + WebhookConfigGetResponseDto response = asaasSdk.webhook.retrieveASingleWebhook( "bbf67496-1379-4b6d-a348-fd5fa229f1c" ); @@ -169,14 +169,14 @@ Use this endpoint to update information about an already registered webhook. **Parameters** -| Name | Type | Required | Description | -| :---------------------------------------- | :-------------------------------------------------------------------------------------------------- | :------- | :------------------------ | -| id | String | ✅ | Unique Webhook Identifier | -| apiPushNotificationConfigUpdateRequestDto | [ApiPushNotificationConfigUpdateRequestDto](../models/ApiPushNotificationConfigUpdateRequestDto.md) | ❌ | Request Body | +| Name | Type | Required | Description | +| :---------------------------- | :-------------------------------------------------------------------------- | :------- | :------------------------ | +| id | String | ✅ | Unique Webhook Identifier | +| webhookConfigUpdateRequestDto | [WebhookConfigUpdateRequestDto](../models/WebhookConfigUpdateRequestDto.md) | ❌ | Request Body | **Return Type** -`ApiPushNotificationConfigGetResponseDto` +`WebhookConfigGetResponseDto` **Example Usage Code Snippet** @@ -184,9 +184,10 @@ Use this endpoint to update information about an already registered webhook. import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPushNotificationConfigGetResponseDto; -import com.asaas.apisdk.models.ApiPushNotificationConfigUpdateRequestDto; -import com.asaas.apisdk.models.ApiPushNotificationConfigUpdateRequestPushNotificationSendType; +import com.asaas.apisdk.models.WebhookConfigGetResponseDto; +import com.asaas.apisdk.models.WebhookConfigUpdateRequestDto; +import com.asaas.apisdk.models.WebhookConfigUpdateRequestWebhookEvent; +import com.asaas.apisdk.models.WebhookConfigUpdateRequestWebhookSendType; import java.util.Arrays; import java.util.List; @@ -199,22 +200,23 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - List eventsList = Arrays.asList("events"); + List eventsList = Arrays.asList( + WebhookConfigUpdateRequestWebhookEvent.PAYMENT_AUTHORIZED + ); - ApiPushNotificationConfigUpdateRequestDto apiPushNotificationConfigUpdateRequestDto = - ApiPushNotificationConfigUpdateRequestDto.builder() - .name("Name Example") - .url("https://www.example.com/webhook/asaas") - .sendType(ApiPushNotificationConfigUpdateRequestPushNotificationSendType.NON_SEQUENTIALLY) - .enabled(true) - .interrupted(true) - .authToken("5tLxsL6uoN") - .events(eventsList) - .build(); + WebhookConfigUpdateRequestDto webhookConfigUpdateRequestDto = WebhookConfigUpdateRequestDto.builder() + .name("Name Example") + .url("https://www.example.com/webhook/asaas") + .sendType(WebhookConfigUpdateRequestWebhookSendType.NON_SEQUENTIALLY) + .enabled(true) + .interrupted(true) + .authToken("5tLxsL6uoN") + .events(eventsList) + .build(); - ApiPushNotificationConfigGetResponseDto response = asaasSdk.webhook.updateExistingWebhook( + WebhookConfigGetResponseDto response = asaasSdk.webhook.updateExistingWebhook( "bbf67496-1379-4b6d-a348-fd5fa229f1c", - apiPushNotificationConfigUpdateRequestDto + webhookConfigUpdateRequestDto ); System.out.println(response); @@ -238,7 +240,7 @@ This endpoint removes a webhook. **Return Type** -`ApiPushNotificationConfigDeleteResponseDto` +`WebhookConfigDeleteResponseDto` **Example Usage Code Snippet** @@ -246,7 +248,7 @@ This endpoint removes a webhook. import com.asaas.apisdk.AsaasSdk; import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; -import com.asaas.apisdk.models.ApiPushNotificationConfigDeleteResponseDto; +import com.asaas.apisdk.models.WebhookConfigDeleteResponseDto; public class Main { @@ -257,9 +259,7 @@ public class Main { AsaasSdk asaasSdk = new AsaasSdk(config); - ApiPushNotificationConfigDeleteResponseDto response = asaasSdk.webhook.removeWebhook( - "bbf67496-1379-4b6d-a348-fd5fa229f1c" - ); + WebhookConfigDeleteResponseDto response = asaasSdk.webhook.removeWebhook("bbf67496-1379-4b6d-a348-fd5fa229f1c"); System.out.println(response); } diff --git a/examples/pom.xml b/examples/pom.xml index 2446075..760d198 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -22,7 +22,7 @@ com.asaas api-sdk - 1.0.1 + 1.0.2 diff --git a/examples/src/main/java/com/example/Main.java b/examples/src/main/java/com/example/Main.java index 0475a15..f8258f1 100644 --- a/examples/src/main/java/com/example/Main.java +++ b/examples/src/main/java/com/example/Main.java @@ -6,11 +6,11 @@ import com.asaas.apisdk.config.ApiKeyAuthConfig; import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.models.ApiPaymentListRequestBillingType; -import com.asaas.apisdk.models.ApiPaymentListRequestInvoiceStatus; -import com.asaas.apisdk.models.ApiPaymentListRequestPaymentStatus; -import com.asaas.apisdk.models.ApiPaymentListResponseDto; import com.asaas.apisdk.models.ListPaymentsParameters; +import com.asaas.apisdk.models.PaymentListRequestBillingType; +import com.asaas.apisdk.models.PaymentListRequestInvoiceStatus; +import com.asaas.apisdk.models.PaymentListRequestPaymentStatus; +import com.asaas.apisdk.models.PaymentListResponseDto; public class Main { @@ -27,12 +27,12 @@ public static void main(String[] args) { .limit(10L) .customer("customer") .customerGroupName("customerGroupName") - .billingType(ApiPaymentListRequestBillingType.UNDEFINED) - .status(ApiPaymentListRequestPaymentStatus.PENDING) + .billingType(PaymentListRequestBillingType.UNDEFINED) + .status(PaymentListRequestPaymentStatus.PENDING) .subscription("subscription") .externalReference("externalReference") .paymentDate("paymentDate") - .invoiceStatus(ApiPaymentListRequestInvoiceStatus.SCHEDULED) + .invoiceStatus(PaymentListRequestInvoiceStatus.SCHEDULED) .estimatedCreditDate("estimatedCreditDate") .pixQrCodeId("pixQrCodeId") .anticipated(false) @@ -49,7 +49,7 @@ public static void main(String[] args) { .build(); try { - ApiPaymentListResponseDto response = asaasSdk.payment.listPayments(requestParameters); + PaymentListResponseDto response = asaasSdk.payment.listPayments(requestParameters); System.out.println(response); } catch (ApiError e) { diff --git a/pom.xml b/pom.xml index 3af6f7d..4033e3c 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ com.asaas api-sdk - 1.0.1 + 1.0.2 ${project.groupId}:${project.artifactId} diff --git a/src/main/java/com/asaas/apisdk/exceptions/ApiErrorResponseDtoException.java b/src/main/java/com/asaas/apisdk/exceptions/ApiErrorResponseDtoException.java deleted file mode 100644 index 84c9410..0000000 --- a/src/main/java/com/asaas/apisdk/exceptions/ApiErrorResponseDtoException.java +++ /dev/null @@ -1,21 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.exceptions; - -import com.asaas.apisdk.models.ApiErrorResponseDto; -import lombok.Getter; -import okhttp3.Response; - -/** - * Exception class for ApiErrorResponseDto errors. - */ -@Getter -public class ApiErrorResponseDtoException extends ApiError { - - private final ApiErrorResponseDto error; - - public ApiErrorResponseDtoException(ApiErrorResponseDto error, String message, int code, Response response) { - super(message, code, response); - this.error = error; - } -} diff --git a/src/main/java/com/asaas/apisdk/exceptions/ErrorResponseDtoException.java b/src/main/java/com/asaas/apisdk/exceptions/ErrorResponseDtoException.java new file mode 100644 index 0000000..f9e7df0 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/exceptions/ErrorResponseDtoException.java @@ -0,0 +1,21 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.exceptions; + +import com.asaas.apisdk.models.ErrorResponseDto; +import lombok.Getter; +import okhttp3.Response; + +/** + * Exception class for ErrorResponseDto errors. + */ +@Getter +public class ErrorResponseDtoException extends ApiError { + + private final ErrorResponseDto error; + + public ErrorResponseDtoException(ErrorResponseDto error, String message, int code, Response response) { + super(message, code, response); + this.error = error; + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentDeleteResponseDto.java new file mode 100644 index 0000000..fe24b00 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentDeleteResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountDocumentDeleteResponseDto { + + /** + * Indicates whether the document was removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Unique document identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountDocumentDeleteResponseDtoBuilder { + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public AccountDocumentDeleteResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public AccountDocumentDeleteResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseAccountDocumentStatus.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseAccountDocumentStatus.java new file mode 100644 index 0000000..cba278d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseAccountDocumentStatus.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Document approval status + */ +@Getter +@AllArgsConstructor +public enum AccountDocumentGetResponseAccountDocumentStatus { + NOT_SENT("NOT_SENT"), + PENDING("PENDING"), + APPROVED("APPROVED"), + REJECTED("REJECTED"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountDocumentGetResponseAccountDocumentStatus fromValue(String value) { + return Arrays.stream(AccountDocumentGetResponseAccountDocumentStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseDto.java new file mode 100644 index 0000000..8d9b2b5 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountDocumentGetResponseDto { + + /** + * Unique document identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Document approval status + */ + @JsonProperty("status") + private JsonNullable status; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public AccountDocumentGetResponseAccountDocumentStatus getStatus() { + return status.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountDocumentGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public AccountDocumentGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public AccountDocumentGetResponseDtoBuilder status(AccountDocumentGetResponseAccountDocumentStatus value) { + this.status = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentStatus.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentStatus.java new file mode 100644 index 0000000..146892a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentStatus.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Document group status + */ +@Getter +@AllArgsConstructor +public enum AccountDocumentGroupResponseAccountDocumentStatus { + NOT_SENT("NOT_SENT"), + PENDING("PENDING"), + APPROVED("APPROVED"), + REJECTED("REJECTED"), + IGNORED("IGNORED"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountDocumentGroupResponseAccountDocumentStatus fromValue(String value) { + return Arrays.stream(AccountDocumentGroupResponseAccountDocumentStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentType.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentType.java new file mode 100644 index 0000000..0882b40 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentType.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of documents + */ +@Getter +@AllArgsConstructor +public enum AccountDocumentGroupResponseAccountDocumentType { + IDENTIFICATION("IDENTIFICATION"), + SOCIAL_CONTRACT("SOCIAL_CONTRACT"), + ENTREPRENEUR_REQUIREMENT("ENTREPRENEUR_REQUIREMENT"), + MINUTES_OF_ELECTION("MINUTES_OF_ELECTION"), + CUSTOM("CUSTOM"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountDocumentGroupResponseAccountDocumentType fromValue(String value) { + return Arrays.stream(AccountDocumentGroupResponseAccountDocumentType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseDto.java new file mode 100644 index 0000000..e319ca4 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseDto.java @@ -0,0 +1,201 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of objects + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountDocumentGroupResponseDto { + + /** + * Unique document group identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Document group status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Type of documents + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Document group title + */ + @JsonProperty("title") + private JsonNullable title; + + /** + * Description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Who is responsible for sending these documents + */ + @JsonProperty("responsible") + private JsonNullable responsible; + + /** + * URL for sending documents + */ + @JsonProperty("onboardingUrl") + private JsonNullable onboardingUrl; + + /** + * Expiration date of the URL for sending documents + */ + @JsonProperty("onboardingUrlExpirationDate") + private JsonNullable onboardingUrlExpirationDate; + + /** + * Documents that have already been sent with their respective identifiers + */ + @JsonProperty("documents") + private JsonNullable> documents; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public AccountDocumentGroupResponseAccountDocumentStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public AccountDocumentGroupResponseAccountDocumentType getType() { + return type.orElse(null); + } + + @JsonIgnore + public String getTitle() { + return title.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public AccountDocumentResponsibleResponseDto getResponsible() { + return responsible.orElse(null); + } + + @JsonIgnore + public String getOnboardingUrl() { + return onboardingUrl.orElse(null); + } + + @JsonIgnore + public String getOnboardingUrlExpirationDate() { + return onboardingUrlExpirationDate.orElse(null); + } + + @JsonIgnore + public List getDocuments() { + return documents.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountDocumentGroupResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public AccountDocumentGroupResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public AccountDocumentGroupResponseDtoBuilder status(AccountDocumentGroupResponseAccountDocumentStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public AccountDocumentGroupResponseDtoBuilder type(AccountDocumentGroupResponseAccountDocumentType value) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable title = JsonNullable.undefined(); + + @JsonProperty("title") + public AccountDocumentGroupResponseDtoBuilder title(String value) { + this.title = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public AccountDocumentGroupResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable responsible = JsonNullable.undefined(); + + @JsonProperty("responsible") + public AccountDocumentGroupResponseDtoBuilder responsible(AccountDocumentResponsibleResponseDto value) { + this.responsible = JsonNullable.of(value); + return this; + } + + private JsonNullable onboardingUrl = JsonNullable.undefined(); + + @JsonProperty("onboardingUrl") + public AccountDocumentGroupResponseDtoBuilder onboardingUrl(String value) { + this.onboardingUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable onboardingUrlExpirationDate = JsonNullable.undefined(); + + @JsonProperty("onboardingUrlExpirationDate") + public AccountDocumentGroupResponseDtoBuilder onboardingUrlExpirationDate(String value) { + this.onboardingUrlExpirationDate = JsonNullable.of(value); + return this; + } + + private JsonNullable> documents = JsonNullable.undefined(); + + @JsonProperty("documents") + public AccountDocumentGroupResponseDtoBuilder documents(List value) { + this.documents = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseAccountDocumentResponsibleType.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseAccountDocumentResponsibleType.java new file mode 100644 index 0000000..9c3a910 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseAccountDocumentResponsibleType.java @@ -0,0 +1,40 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Responsible type + */ +@Getter +@AllArgsConstructor +public enum AccountDocumentResponsibleResponseAccountDocumentResponsibleType { + ALLOW_BANK_ACCOUNT_DEPOSIT_STATEMENT("ALLOW_BANK_ACCOUNT_DEPOSIT_STATEMENT"), + ASAAS_ACCOUNT_OWNER_EMANCIPATION_AGE("ASAAS_ACCOUNT_OWNER_EMANCIPATION_AGE"), + ASAAS_ACCOUNT_OWNER("ASAAS_ACCOUNT_OWNER"), + ASSOCIATION("ASSOCIATION"), + BANK_ACCOUNT_OWNER_EMANCIPATION_AGE("BANK_ACCOUNT_OWNER_EMANCIPATION_AGE"), + BANK_ACCOUNT_OWNER("BANK_ACCOUNT_OWNER"), + CUSTOM("CUSTOM"), + DIRECTOR("DIRECTOR"), + INDIVIDUAL_COMPANY("INDIVIDUAL_COMPANY"), + LIMITED_COMPANY("LIMITED_COMPANY"), + MEI("MEI"), + PARTNER("PARTNER"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountDocumentResponsibleResponseAccountDocumentResponsibleType fromValue(String value) { + return Arrays.stream(AccountDocumentResponsibleResponseAccountDocumentResponsibleType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseDto.java new file mode 100644 index 0000000..0d2e672 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseDto.java @@ -0,0 +1,71 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Who is responsible for sending these documents + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountDocumentResponsibleResponseDto { + + /** + * Responsible name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Responsible type + */ + @JsonProperty("type") + private JsonNullable> type; + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public List getType() { + return type.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountDocumentResponsibleResponseDtoBuilder { + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public AccountDocumentResponsibleResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable> type = + JsonNullable.undefined(); + + @JsonProperty("type") + public AccountDocumentResponsibleResponseDtoBuilder type( + List value + ) { + this.type = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestAccountDocumentType.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestAccountDocumentType.java new file mode 100644 index 0000000..74e1c56 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestAccountDocumentType.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Document Type + */ +@Getter +@AllArgsConstructor +public enum AccountDocumentSaveRequestAccountDocumentType { + IDENTIFICATION("IDENTIFICATION"), + SOCIAL_CONTRACT("SOCIAL_CONTRACT"), + ENTREPRENEUR_REQUIREMENT("ENTREPRENEUR_REQUIREMENT"), + MINUTES_OF_ELECTION("MINUTES_OF_ELECTION"), + CUSTOM("CUSTOM"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountDocumentSaveRequestAccountDocumentType fromValue(String value) { + return Arrays.stream(AccountDocumentSaveRequestAccountDocumentType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestDto.java new file mode 100644 index 0000000..13d384b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountDocumentSaveRequestDto { + + /** + * File + */ + @JsonProperty("documentFile") + private JsonNullable documentFile; + + /** + * Document Type + */ + @JsonProperty("type") + private JsonNullable type; + + @JsonIgnore + public byte[] getDocumentFile() { + return documentFile.orElse(null); + } + + @JsonIgnore + public AccountDocumentSaveRequestAccountDocumentType getType() { + return type.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountDocumentSaveRequestDtoBuilder { + + private JsonNullable documentFile = JsonNullable.undefined(); + + @JsonProperty("documentFile") + public AccountDocumentSaveRequestDtoBuilder documentFile(byte[] value) { + if (value == null) { + throw new IllegalStateException("documentFile cannot be null"); + } + this.documentFile = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public AccountDocumentSaveRequestDtoBuilder type(AccountDocumentSaveRequestAccountDocumentType value) { + this.type = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentShowResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentShowResponseDto.java new file mode 100644 index 0000000..094bfee --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentShowResponseDto.java @@ -0,0 +1,65 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountDocumentShowResponseDto { + + /** + * Reason why account approval was rejected + */ + @JsonProperty("rejectReasons") + private JsonNullable rejectReasons; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getRejectReasons() { + return rejectReasons.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountDocumentShowResponseDtoBuilder { + + private JsonNullable rejectReasons = JsonNullable.undefined(); + + @JsonProperty("rejectReasons") + public AccountDocumentShowResponseDtoBuilder rejectReasons(String value) { + this.rejectReasons = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public AccountDocumentShowResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountDocumentUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentUpdateRequestDto.java new file mode 100644 index 0000000..4d0cd89 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentUpdateRequestDto.java @@ -0,0 +1,26 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountDocumentUpdateRequestDto { + + /** + * File + */ + @NonNull + private byte[] documentFile; +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountGetResponseCompanyType.java b/src/main/java/com/asaas/apisdk/models/AccountGetResponseCompanyType.java new file mode 100644 index 0000000..43d33d6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountGetResponseCompanyType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of company (only when Legal Entity) + */ +@Getter +@AllArgsConstructor +public enum AccountGetResponseCompanyType { + MEI("MEI"), + LIMITED("LIMITED"), + INDIVIDUAL("INDIVIDUAL"), + ASSOCIATION("ASSOCIATION"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountGetResponseCompanyType fromValue(String value) { + return Arrays.stream(AccountGetResponseCompanyType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountGetResponseDto.java new file mode 100644 index 0000000..3ff9fff --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountGetResponseDto.java @@ -0,0 +1,483 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique subaccount identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Subaccount name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Subaccount email + */ + @JsonProperty("email") + private JsonNullable email; + + /** + * Email for subaccount login, if not provided, the subaccount email will be used + */ + @JsonProperty("loginEmail") + private JsonNullable loginEmail; + + /** + * Telephone + */ + @JsonProperty("phone") + private JsonNullable phone; + + /** + * Cellphone + */ + @JsonProperty("mobilePhone") + private JsonNullable mobilePhone; + + /** + * Public place + */ + @JsonProperty("address") + private JsonNullable address; + + /** + * Address number + */ + @JsonProperty("addressNumber") + private JsonNullable addressNumber; + + /** + * Address complement + */ + @JsonProperty("complement") + private JsonNullable complement; + + /** + * Neighborhood + */ + @JsonProperty("province") + private JsonNullable province; + + /** + * Address zip code + */ + @JsonProperty("postalCode") + private JsonNullable postalCode; + + /** + * CPF or CNPJ of the subaccount owner + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Date of birth (only for Individuals) + */ + @JsonProperty("birthDate") + private JsonNullable birthDate; + + /** + * Kind of person + */ + @JsonProperty("personType") + private JsonNullable personType; + + /** + * Type of company (only when Legal Entity) + */ + @JsonProperty("companyType") + private JsonNullable companyType; + + /** + * Unique city identifier in Asaas + */ + @JsonProperty("city") + private JsonNullable city; + + /** + * State abbreviation (SP, RJ, SC, ...) + */ + @JsonProperty("state") + private JsonNullable state; + + /** + * Country (Fixed Brazil) + */ + @JsonProperty("country") + private JsonNullable country; + + /** + * Display name (auto-populated) + */ + @JsonProperty("tradingName") + private JsonNullable tradingName; + + /** + * Url reffered to the subaccount + */ + @JsonProperty("site") + private JsonNullable site; + + /** + * Unique wallet identifier to split charges or transfer between Asaas accounts + */ + @JsonProperty("walletId") + private JsonNullable walletId; + + /** + * Subaccount number in Asaas + */ + @JsonProperty("accountNumber") + private JsonNullable accountNumber; + + /** + * Information about the expiration of commercial data + */ + @JsonProperty("commercialInfoExpiration") + private JsonNullable commercialInfoExpiration; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getEmail() { + return email.orElse(null); + } + + @JsonIgnore + public String getLoginEmail() { + return loginEmail.orElse(null); + } + + @JsonIgnore + public String getPhone() { + return phone.orElse(null); + } + + @JsonIgnore + public String getMobilePhone() { + return mobilePhone.orElse(null); + } + + @JsonIgnore + public String getAddress() { + return address.orElse(null); + } + + @JsonIgnore + public String getAddressNumber() { + return addressNumber.orElse(null); + } + + @JsonIgnore + public String getComplement() { + return complement.orElse(null); + } + + @JsonIgnore + public String getProvince() { + return province.orElse(null); + } + + @JsonIgnore + public String getPostalCode() { + return postalCode.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public String getBirthDate() { + return birthDate.orElse(null); + } + + @JsonIgnore + public AccountGetResponsePersonType getPersonType() { + return personType.orElse(null); + } + + @JsonIgnore + public AccountGetResponseCompanyType getCompanyType() { + return companyType.orElse(null); + } + + @JsonIgnore + public Long getCity() { + return city.orElse(null); + } + + @JsonIgnore + public String getState() { + return state.orElse(null); + } + + @JsonIgnore + public String getCountry() { + return country.orElse(null); + } + + @JsonIgnore + public String getTradingName() { + return tradingName.orElse(null); + } + + @JsonIgnore + public String getSite() { + return site.orElse(null); + } + + @JsonIgnore + public String getWalletId() { + return walletId.orElse(null); + } + + @JsonIgnore + public AccountNumberDto getAccountNumber() { + return accountNumber.orElse(null); + } + + @JsonIgnore + public AccountInfoCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { + return commercialInfoExpiration.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public AccountGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public AccountGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public AccountGetResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable email = JsonNullable.undefined(); + + @JsonProperty("email") + public AccountGetResponseDtoBuilder email(String value) { + this.email = JsonNullable.of(value); + return this; + } + + private JsonNullable loginEmail = JsonNullable.undefined(); + + @JsonProperty("loginEmail") + public AccountGetResponseDtoBuilder loginEmail(String value) { + this.loginEmail = JsonNullable.of(value); + return this; + } + + private JsonNullable phone = JsonNullable.undefined(); + + @JsonProperty("phone") + public AccountGetResponseDtoBuilder phone(String value) { + this.phone = JsonNullable.of(value); + return this; + } + + private JsonNullable mobilePhone = JsonNullable.undefined(); + + @JsonProperty("mobilePhone") + public AccountGetResponseDtoBuilder mobilePhone(String value) { + this.mobilePhone = JsonNullable.of(value); + return this; + } + + private JsonNullable address = JsonNullable.undefined(); + + @JsonProperty("address") + public AccountGetResponseDtoBuilder address(String value) { + this.address = JsonNullable.of(value); + return this; + } + + private JsonNullable addressNumber = JsonNullable.undefined(); + + @JsonProperty("addressNumber") + public AccountGetResponseDtoBuilder addressNumber(String value) { + this.addressNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable complement = JsonNullable.undefined(); + + @JsonProperty("complement") + public AccountGetResponseDtoBuilder complement(String value) { + this.complement = JsonNullable.of(value); + return this; + } + + private JsonNullable province = JsonNullable.undefined(); + + @JsonProperty("province") + public AccountGetResponseDtoBuilder province(String value) { + this.province = JsonNullable.of(value); + return this; + } + + private JsonNullable postalCode = JsonNullable.undefined(); + + @JsonProperty("postalCode") + public AccountGetResponseDtoBuilder postalCode(String value) { + this.postalCode = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public AccountGetResponseDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable birthDate = JsonNullable.undefined(); + + @JsonProperty("birthDate") + public AccountGetResponseDtoBuilder birthDate(String value) { + this.birthDate = JsonNullable.of(value); + return this; + } + + private JsonNullable personType = JsonNullable.undefined(); + + @JsonProperty("personType") + public AccountGetResponseDtoBuilder personType(AccountGetResponsePersonType value) { + this.personType = JsonNullable.of(value); + return this; + } + + private JsonNullable companyType = JsonNullable.undefined(); + + @JsonProperty("companyType") + public AccountGetResponseDtoBuilder companyType(AccountGetResponseCompanyType value) { + this.companyType = JsonNullable.of(value); + return this; + } + + private JsonNullable city = JsonNullable.undefined(); + + @JsonProperty("city") + public AccountGetResponseDtoBuilder city(Long value) { + this.city = JsonNullable.of(value); + return this; + } + + private JsonNullable state = JsonNullable.undefined(); + + @JsonProperty("state") + public AccountGetResponseDtoBuilder state(String value) { + this.state = JsonNullable.of(value); + return this; + } + + private JsonNullable country = JsonNullable.undefined(); + + @JsonProperty("country") + public AccountGetResponseDtoBuilder country(String value) { + this.country = JsonNullable.of(value); + return this; + } + + private JsonNullable tradingName = JsonNullable.undefined(); + + @JsonProperty("tradingName") + public AccountGetResponseDtoBuilder tradingName(String value) { + this.tradingName = JsonNullable.of(value); + return this; + } + + private JsonNullable site = JsonNullable.undefined(); + + @JsonProperty("site") + public AccountGetResponseDtoBuilder site(String value) { + this.site = JsonNullable.of(value); + return this; + } + + private JsonNullable walletId = JsonNullable.undefined(); + + @JsonProperty("walletId") + public AccountGetResponseDtoBuilder walletId(String value) { + this.walletId = JsonNullable.of(value); + return this; + } + + private JsonNullable accountNumber = JsonNullable.undefined(); + + @JsonProperty("accountNumber") + public AccountGetResponseDtoBuilder accountNumber(AccountNumberDto value) { + this.accountNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable commercialInfoExpiration = + JsonNullable.undefined(); + + @JsonProperty("commercialInfoExpiration") + public AccountGetResponseDtoBuilder commercialInfoExpiration(AccountInfoCommercialInfoExpirationResponseDto value) { + this.commercialInfoExpiration = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountGetResponsePersonType.java b/src/main/java/com/asaas/apisdk/models/AccountGetResponsePersonType.java new file mode 100644 index 0000000..50f2f92 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountGetResponsePersonType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Kind of person + */ +@Getter +@AllArgsConstructor +public enum AccountGetResponsePersonType { + JURIDICA("JURIDICA"), + FISICA("FISICA"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountGetResponsePersonType fromValue(String value) { + return Arrays.stream(AccountGetResponsePersonType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountInfoCityDto.java b/src/main/java/com/asaas/apisdk/models/AccountInfoCityDto.java new file mode 100644 index 0000000..aa0c1d7 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoCityDto.java @@ -0,0 +1,162 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * City information registered in your account + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountInfoCityDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique city identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * IBGE Code + */ + @JsonProperty("ibgeCode") + private JsonNullable ibgeCode; + + /** + * City's name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * District code + */ + @JsonProperty("districtCode") + private JsonNullable districtCode; + + /** + * District name + */ + @JsonProperty("district") + private JsonNullable district; + + /** + * State abbreviation (SP, RJ, SC, ...) + */ + @JsonProperty("state") + private JsonNullable state; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Long getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getIbgeCode() { + return ibgeCode.orElse(null); + } + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getDistrictCode() { + return districtCode.orElse(null); + } + + @JsonIgnore + public String getDistrict() { + return district.orElse(null); + } + + @JsonIgnore + public AccountInfoCityState getState() { + return state.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountInfoCityDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public AccountInfoCityDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public AccountInfoCityDtoBuilder id(Long value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable ibgeCode = JsonNullable.undefined(); + + @JsonProperty("ibgeCode") + public AccountInfoCityDtoBuilder ibgeCode(String value) { + this.ibgeCode = JsonNullable.of(value); + return this; + } + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public AccountInfoCityDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable districtCode = JsonNullable.undefined(); + + @JsonProperty("districtCode") + public AccountInfoCityDtoBuilder districtCode(String value) { + this.districtCode = JsonNullable.of(value); + return this; + } + + private JsonNullable district = JsonNullable.undefined(); + + @JsonProperty("district") + public AccountInfoCityDtoBuilder district(String value) { + this.district = JsonNullable.of(value); + return this; + } + + private JsonNullable state = JsonNullable.undefined(); + + @JsonProperty("state") + public AccountInfoCityDtoBuilder state(AccountInfoCityState value) { + this.state = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountInfoCityState.java b/src/main/java/com/asaas/apisdk/models/AccountInfoCityState.java new file mode 100644 index 0000000..fc00c98 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoCityState.java @@ -0,0 +1,55 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * State abbreviation (SP, RJ, SC, ...) + */ +@Getter +@AllArgsConstructor +public enum AccountInfoCityState { + AC("AC"), + AL("AL"), + AP("AP"), + AM("AM"), + BA("BA"), + CE("CE"), + DF("DF"), + ES("ES"), + GO("GO"), + MA("MA"), + MT("MT"), + MS("MS"), + MG("MG"), + PA("PA"), + PB("PB"), + PR("PR"), + PE("PE"), + PI("PI"), + RR("RR"), + RO("RO"), + RJ("RJ"), + RN("RN"), + RS("RS"), + SC("SC"), + SP("SP"), + SE("SE"), + TO("TO"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountInfoCityState fromValue(String value) { + return Arrays.stream(AccountInfoCityState.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountInfoCommercialInfoExpirationResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountInfoCommercialInfoExpirationResponseDto.java new file mode 100644 index 0000000..5e4058e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoCommercialInfoExpirationResponseDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Information about the expiration of commercial data + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountInfoCommercialInfoExpirationResponseDto { + + /** + * Informs if commercial data is expired + */ + @JsonProperty("isExpired") + private JsonNullable isExpired; + + /** + * Informs the expiration date of commercial data + */ + @JsonProperty("scheduledDate") + private JsonNullable scheduledDate; + + @JsonIgnore + public Boolean getIsExpired() { + return isExpired.orElse(null); + } + + @JsonIgnore + public String getScheduledDate() { + return scheduledDate.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountInfoCommercialInfoExpirationResponseDtoBuilder { + + private JsonNullable isExpired = JsonNullable.undefined(); + + @JsonProperty("isExpired") + public AccountInfoCommercialInfoExpirationResponseDtoBuilder isExpired(Boolean value) { + this.isExpired = JsonNullable.of(value); + return this; + } + + private JsonNullable scheduledDate = JsonNullable.undefined(); + + @JsonProperty("scheduledDate") + public AccountInfoCommercialInfoExpirationResponseDtoBuilder scheduledDate(String value) { + this.scheduledDate = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseCompanyType.java b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseCompanyType.java new file mode 100644 index 0000000..f1b7aef --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseCompanyType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of company (only when Legal Entity) + */ +@Getter +@AllArgsConstructor +public enum AccountInfoGetResponseCompanyType { + MEI("MEI"), + LIMITED("LIMITED"), + INDIVIDUAL("INDIVIDUAL"), + ASSOCIATION("ASSOCIATION"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountInfoGetResponseCompanyType fromValue(String value) { + return Arrays.stream(AccountInfoGetResponseCompanyType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseDto.java new file mode 100644 index 0000000..dbac8cc --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseDto.java @@ -0,0 +1,448 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountInfoGetResponseDto { + + /** + * Account status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Person Type + */ + @JsonProperty("personType") + private JsonNullable personType; + + /** + * CPF or CNPJ of the account owner + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Account owner name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Birthday (Required if the information is from an individual) + */ + @JsonProperty("birthDate") + private JsonNullable birthDate; + + /** + * Company Name + */ + @JsonProperty("companyName") + private JsonNullable companyName; + + /** + * Type of company (only when Legal Entity) + */ + @JsonProperty("companyType") + private JsonNullable companyType; + + /** + * Billing/Monthly income + */ + @JsonProperty("incomeValue") + private JsonNullable incomeValue; + + /** + * Account's email + */ + @JsonProperty("email") + private JsonNullable email; + + /** + * Telephone + */ + @JsonProperty("phone") + private JsonNullable phone; + + /** + * Cell phone + */ + @JsonProperty("mobilePhone") + private JsonNullable mobilePhone; + + /** + * Address zip code + */ + @JsonProperty("postalCode") + private JsonNullable postalCode; + + /** + * Public place + */ + @JsonProperty("address") + private JsonNullable address; + + /** + * Address number + */ + @JsonProperty("addressNumber") + private JsonNullable addressNumber; + + /** + * Address complement + */ + @JsonProperty("complement") + private JsonNullable complement; + + /** + * Neighborhood + */ + @JsonProperty("province") + private JsonNullable province; + + /** + * City information registered in your account + */ + @JsonProperty("city") + private JsonNullable city; + + /** + * Reason why it is necessary to resend the information + */ + @JsonProperty("denialReason") + private JsonNullable denialReason; + + /** + * Display name (auto-populated) + */ + @JsonProperty("tradingName") + private JsonNullable tradingName; + + /** + * Web site + */ + @JsonProperty("site") + private JsonNullable site; + + /** + * Company names available. Only filled in for Legal Entity type accounts. + */ + @JsonProperty("availableCompanyNames") + private JsonNullable> availableCompanyNames; + + /** + * Information about the expiration of commercial data + */ + @JsonProperty("commercialInfoExpiration") + private JsonNullable commercialInfoExpiration; + + @JsonIgnore + public AccountInfoGetResponseStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public AccountInfoGetResponsePersonType getPersonType() { + return personType.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getBirthDate() { + return birthDate.orElse(null); + } + + @JsonIgnore + public String getCompanyName() { + return companyName.orElse(null); + } + + @JsonIgnore + public AccountInfoGetResponseCompanyType getCompanyType() { + return companyType.orElse(null); + } + + @JsonIgnore + public Double getIncomeValue() { + return incomeValue.orElse(null); + } + + @JsonIgnore + public String getEmail() { + return email.orElse(null); + } + + @JsonIgnore + public String getPhone() { + return phone.orElse(null); + } + + @JsonIgnore + public String getMobilePhone() { + return mobilePhone.orElse(null); + } + + @JsonIgnore + public String getPostalCode() { + return postalCode.orElse(null); + } + + @JsonIgnore + public String getAddress() { + return address.orElse(null); + } + + @JsonIgnore + public String getAddressNumber() { + return addressNumber.orElse(null); + } + + @JsonIgnore + public String getComplement() { + return complement.orElse(null); + } + + @JsonIgnore + public String getProvince() { + return province.orElse(null); + } + + @JsonIgnore + public AccountInfoCityDto getCity() { + return city.orElse(null); + } + + @JsonIgnore + public String getDenialReason() { + return denialReason.orElse(null); + } + + @JsonIgnore + public String getTradingName() { + return tradingName.orElse(null); + } + + @JsonIgnore + public String getSite() { + return site.orElse(null); + } + + @JsonIgnore + public List getAvailableCompanyNames() { + return availableCompanyNames.orElse(null); + } + + @JsonIgnore + public AccountInfoCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { + return commercialInfoExpiration.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountInfoGetResponseDtoBuilder { + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public AccountInfoGetResponseDtoBuilder status(AccountInfoGetResponseStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable personType = JsonNullable.undefined(); + + @JsonProperty("personType") + public AccountInfoGetResponseDtoBuilder personType(AccountInfoGetResponsePersonType value) { + this.personType = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public AccountInfoGetResponseDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public AccountInfoGetResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable birthDate = JsonNullable.undefined(); + + @JsonProperty("birthDate") + public AccountInfoGetResponseDtoBuilder birthDate(String value) { + this.birthDate = JsonNullable.of(value); + return this; + } + + private JsonNullable companyName = JsonNullable.undefined(); + + @JsonProperty("companyName") + public AccountInfoGetResponseDtoBuilder companyName(String value) { + this.companyName = JsonNullable.of(value); + return this; + } + + private JsonNullable companyType = JsonNullable.undefined(); + + @JsonProperty("companyType") + public AccountInfoGetResponseDtoBuilder companyType(AccountInfoGetResponseCompanyType value) { + this.companyType = JsonNullable.of(value); + return this; + } + + private JsonNullable incomeValue = JsonNullable.undefined(); + + @JsonProperty("incomeValue") + public AccountInfoGetResponseDtoBuilder incomeValue(Double value) { + this.incomeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable email = JsonNullable.undefined(); + + @JsonProperty("email") + public AccountInfoGetResponseDtoBuilder email(String value) { + this.email = JsonNullable.of(value); + return this; + } + + private JsonNullable phone = JsonNullable.undefined(); + + @JsonProperty("phone") + public AccountInfoGetResponseDtoBuilder phone(String value) { + this.phone = JsonNullable.of(value); + return this; + } + + private JsonNullable mobilePhone = JsonNullable.undefined(); + + @JsonProperty("mobilePhone") + public AccountInfoGetResponseDtoBuilder mobilePhone(String value) { + this.mobilePhone = JsonNullable.of(value); + return this; + } + + private JsonNullable postalCode = JsonNullable.undefined(); + + @JsonProperty("postalCode") + public AccountInfoGetResponseDtoBuilder postalCode(String value) { + this.postalCode = JsonNullable.of(value); + return this; + } + + private JsonNullable address = JsonNullable.undefined(); + + @JsonProperty("address") + public AccountInfoGetResponseDtoBuilder address(String value) { + this.address = JsonNullable.of(value); + return this; + } + + private JsonNullable addressNumber = JsonNullable.undefined(); + + @JsonProperty("addressNumber") + public AccountInfoGetResponseDtoBuilder addressNumber(String value) { + this.addressNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable complement = JsonNullable.undefined(); + + @JsonProperty("complement") + public AccountInfoGetResponseDtoBuilder complement(String value) { + this.complement = JsonNullable.of(value); + return this; + } + + private JsonNullable province = JsonNullable.undefined(); + + @JsonProperty("province") + public AccountInfoGetResponseDtoBuilder province(String value) { + this.province = JsonNullable.of(value); + return this; + } + + private JsonNullable city = JsonNullable.undefined(); + + @JsonProperty("city") + public AccountInfoGetResponseDtoBuilder city(AccountInfoCityDto value) { + this.city = JsonNullable.of(value); + return this; + } + + private JsonNullable denialReason = JsonNullable.undefined(); + + @JsonProperty("denialReason") + public AccountInfoGetResponseDtoBuilder denialReason(String value) { + this.denialReason = JsonNullable.of(value); + return this; + } + + private JsonNullable tradingName = JsonNullable.undefined(); + + @JsonProperty("tradingName") + public AccountInfoGetResponseDtoBuilder tradingName(String value) { + this.tradingName = JsonNullable.of(value); + return this; + } + + private JsonNullable site = JsonNullable.undefined(); + + @JsonProperty("site") + public AccountInfoGetResponseDtoBuilder site(String value) { + this.site = JsonNullable.of(value); + return this; + } + + private JsonNullable> availableCompanyNames = JsonNullable.undefined(); + + @JsonProperty("availableCompanyNames") + public AccountInfoGetResponseDtoBuilder availableCompanyNames(List value) { + this.availableCompanyNames = JsonNullable.of(value); + return this; + } + + private JsonNullable commercialInfoExpiration = + JsonNullable.undefined(); + + @JsonProperty("commercialInfoExpiration") + public AccountInfoGetResponseDtoBuilder commercialInfoExpiration( + AccountInfoCommercialInfoExpirationResponseDto value + ) { + this.commercialInfoExpiration = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponsePersonType.java b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponsePersonType.java new file mode 100644 index 0000000..5ec9be6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponsePersonType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Person Type + */ +@Getter +@AllArgsConstructor +public enum AccountInfoGetResponsePersonType { + JURIDICA("JURIDICA"), + FISICA("FISICA"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountInfoGetResponsePersonType fromValue(String value) { + return Arrays.stream(AccountInfoGetResponsePersonType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseStatus.java b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseStatus.java new file mode 100644 index 0000000..875cc86 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseStatus.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Account status + */ +@Getter +@AllArgsConstructor +public enum AccountInfoGetResponseStatus { + APPROVED("APPROVED"), + AWAITING_ACTION_AUTHORIZATION("AWAITING_ACTION_AUTHORIZATION"), + DENIED("DENIED"), + PENDING("PENDING"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountInfoGetResponseStatus fromValue(String value) { + return Arrays.stream(AccountInfoGetResponseStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestCompanyType.java b/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestCompanyType.java new file mode 100644 index 0000000..1f4c5ce --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestCompanyType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of company (only when Legal Entity) + */ +@Getter +@AllArgsConstructor +public enum AccountInfoSaveRequestCompanyType { + MEI("MEI"), + LIMITED("LIMITED"), + INDIVIDUAL("INDIVIDUAL"), + ASSOCIATION("ASSOCIATION"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountInfoSaveRequestCompanyType fromValue(String value) { + return Arrays.stream(AccountInfoSaveRequestCompanyType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestDto.java new file mode 100644 index 0000000..f0fe5ab --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestDto.java @@ -0,0 +1,311 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountInfoSaveRequestDto { + + /** + * Person Type + */ + @JsonProperty("personType") + private JsonNullable personType; + + /** + * CPF or CNPJ of the account owner + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Birthday (Required if the information is from an individual) + */ + @JsonProperty("birthDate") + private JsonNullable birthDate; + + /** + * Type of company (only when Legal Entity) + */ + @JsonProperty("companyType") + private JsonNullable companyType; + + /** + * Company Name + */ + @JsonProperty("companyName") + private JsonNullable companyName; + + /** + * Billing/Monthly income + */ + @JsonProperty("incomeValue") + private JsonNullable incomeValue; + + /** + * Account's email + */ + @JsonProperty("email") + private JsonNullable email; + + /** + * Telephone + */ + @JsonProperty("phone") + private JsonNullable phone; + + /** + * Cell phone + */ + @JsonProperty("mobilePhone") + private JsonNullable mobilePhone; + + /** + * Web site + */ + @JsonProperty("site") + private JsonNullable site; + + /** + * Address zip code + */ + @JsonProperty("postalCode") + private JsonNullable postalCode; + + /** + * Public place + */ + @JsonProperty("address") + private JsonNullable address; + + /** + * Address number + */ + @JsonProperty("addressNumber") + private JsonNullable addressNumber; + + /** + * Address complement + */ + @JsonProperty("complement") + private JsonNullable complement; + + /** + * Neighborhood + */ + @JsonProperty("province") + private JsonNullable province; + + @JsonIgnore + public AccountInfoSaveRequestPersonType getPersonType() { + return personType.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public String getBirthDate() { + return birthDate.orElse(null); + } + + @JsonIgnore + public AccountInfoSaveRequestCompanyType getCompanyType() { + return companyType.orElse(null); + } + + @JsonIgnore + public String getCompanyName() { + return companyName.orElse(null); + } + + @JsonIgnore + public Double getIncomeValue() { + return incomeValue.orElse(null); + } + + @JsonIgnore + public String getEmail() { + return email.orElse(null); + } + + @JsonIgnore + public String getPhone() { + return phone.orElse(null); + } + + @JsonIgnore + public String getMobilePhone() { + return mobilePhone.orElse(null); + } + + @JsonIgnore + public String getSite() { + return site.orElse(null); + } + + @JsonIgnore + public String getPostalCode() { + return postalCode.orElse(null); + } + + @JsonIgnore + public String getAddress() { + return address.orElse(null); + } + + @JsonIgnore + public String getAddressNumber() { + return addressNumber.orElse(null); + } + + @JsonIgnore + public String getComplement() { + return complement.orElse(null); + } + + @JsonIgnore + public String getProvince() { + return province.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountInfoSaveRequestDtoBuilder { + + private JsonNullable personType = JsonNullable.undefined(); + + @JsonProperty("personType") + public AccountInfoSaveRequestDtoBuilder personType(AccountInfoSaveRequestPersonType value) { + this.personType = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public AccountInfoSaveRequestDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable birthDate = JsonNullable.undefined(); + + @JsonProperty("birthDate") + public AccountInfoSaveRequestDtoBuilder birthDate(String value) { + this.birthDate = JsonNullable.of(value); + return this; + } + + private JsonNullable companyType = JsonNullable.undefined(); + + @JsonProperty("companyType") + public AccountInfoSaveRequestDtoBuilder companyType(AccountInfoSaveRequestCompanyType value) { + this.companyType = JsonNullable.of(value); + return this; + } + + private JsonNullable companyName = JsonNullable.undefined(); + + @JsonProperty("companyName") + public AccountInfoSaveRequestDtoBuilder companyName(String value) { + this.companyName = JsonNullable.of(value); + return this; + } + + private JsonNullable incomeValue = JsonNullable.undefined(); + + @JsonProperty("incomeValue") + public AccountInfoSaveRequestDtoBuilder incomeValue(Double value) { + this.incomeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable email = JsonNullable.undefined(); + + @JsonProperty("email") + public AccountInfoSaveRequestDtoBuilder email(String value) { + this.email = JsonNullable.of(value); + return this; + } + + private JsonNullable phone = JsonNullable.undefined(); + + @JsonProperty("phone") + public AccountInfoSaveRequestDtoBuilder phone(String value) { + this.phone = JsonNullable.of(value); + return this; + } + + private JsonNullable mobilePhone = JsonNullable.undefined(); + + @JsonProperty("mobilePhone") + public AccountInfoSaveRequestDtoBuilder mobilePhone(String value) { + this.mobilePhone = JsonNullable.of(value); + return this; + } + + private JsonNullable site = JsonNullable.undefined(); + + @JsonProperty("site") + public AccountInfoSaveRequestDtoBuilder site(String value) { + this.site = JsonNullable.of(value); + return this; + } + + private JsonNullable postalCode = JsonNullable.undefined(); + + @JsonProperty("postalCode") + public AccountInfoSaveRequestDtoBuilder postalCode(String value) { + this.postalCode = JsonNullable.of(value); + return this; + } + + private JsonNullable address = JsonNullable.undefined(); + + @JsonProperty("address") + public AccountInfoSaveRequestDtoBuilder address(String value) { + this.address = JsonNullable.of(value); + return this; + } + + private JsonNullable addressNumber = JsonNullable.undefined(); + + @JsonProperty("addressNumber") + public AccountInfoSaveRequestDtoBuilder addressNumber(String value) { + this.addressNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable complement = JsonNullable.undefined(); + + @JsonProperty("complement") + public AccountInfoSaveRequestDtoBuilder complement(String value) { + this.complement = JsonNullable.of(value); + return this; + } + + private JsonNullable province = JsonNullable.undefined(); + + @JsonProperty("province") + public AccountInfoSaveRequestDtoBuilder province(String value) { + this.province = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestPersonType.java b/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestPersonType.java new file mode 100644 index 0000000..4275e86 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestPersonType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Person Type + */ +@Getter +@AllArgsConstructor +public enum AccountInfoSaveRequestPersonType { + JURIDICA("JURIDICA"), + FISICA("FISICA"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountInfoSaveRequestPersonType fromValue(String value) { + return Arrays.stream(AccountInfoSaveRequestPersonType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountListResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountListResponseDto.java new file mode 100644 index 0000000..325b6e0 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public AccountListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public AccountListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public AccountListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public AccountListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public AccountListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public AccountListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountNumberDto.java b/src/main/java/com/asaas/apisdk/models/AccountNumberDto.java new file mode 100644 index 0000000..d27b408 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountNumberDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Subaccount number in Asaas + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountNumberDto { + + /** + * Account agency + */ + @JsonProperty("agency") + private JsonNullable agency; + + /** + * Account number + */ + @JsonProperty("account") + private JsonNullable account; + + /** + * Account digit + */ + @JsonProperty("accountDigit") + private JsonNullable accountDigit; + + @JsonIgnore + public String getAgency() { + return agency.orElse(null); + } + + @JsonIgnore + public String getAccount() { + return account.orElse(null); + } + + @JsonIgnore + public String getAccountDigit() { + return accountDigit.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountNumberDtoBuilder { + + private JsonNullable agency = JsonNullable.undefined(); + + @JsonProperty("agency") + public AccountNumberDtoBuilder agency(String value) { + this.agency = JsonNullable.of(value); + return this; + } + + private JsonNullable account = JsonNullable.undefined(); + + @JsonProperty("account") + public AccountNumberDtoBuilder account(String value) { + this.account = JsonNullable.of(value); + return this; + } + + private JsonNullable accountDigit = JsonNullable.undefined(); + + @JsonProperty("accountDigit") + public AccountNumberDtoBuilder accountDigit(String value) { + this.accountDigit = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountPaymentEscrowConfigDto.java b/src/main/java/com/asaas/apisdk/models/AccountPaymentEscrowConfigDto.java new file mode 100644 index 0000000..426c34f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountPaymentEscrowConfigDto.java @@ -0,0 +1,71 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountPaymentEscrowConfigDto { + + /** + * Number of days to expire the payment escrow + */ + @NonNull + private Long daysToExpire; + + /** + * Indicates whether the Escrow Account is enabled + */ + @JsonProperty("enabled") + private JsonNullable enabled; + + /** + * Indicates whether the subaccount is responsible for paying the Escrow Account fee. If not informed, the main account will be responsible for the fee + */ + @JsonProperty("isFeePayer") + private JsonNullable isFeePayer; + + @JsonIgnore + public Boolean getEnabled() { + return enabled.orElse(null); + } + + @JsonIgnore + public Boolean getIsFeePayer() { + return isFeePayer.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountPaymentEscrowConfigDtoBuilder { + + private JsonNullable enabled = JsonNullable.undefined(); + + @JsonProperty("enabled") + public AccountPaymentEscrowConfigDtoBuilder enabled(Boolean value) { + this.enabled = JsonNullable.of(value); + return this; + } + + private JsonNullable isFeePayer = JsonNullable.undefined(); + + @JsonProperty("isFeePayer") + public AccountPaymentEscrowConfigDtoBuilder isFeePayer(Boolean value) { + this.isFeePayer = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.java b/src/main/java/com/asaas/apisdk/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.java new file mode 100644 index 0000000..24838b9 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.java @@ -0,0 +1,71 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountSaveOrUpdatePaymentEscrowConfigRequestDto { + + /** + * Number of days to expire the payment escrow + */ + @NonNull + private Long daysToExpire; + + /** + * Indicates whether the Escrow Account is enabled + */ + @JsonProperty("enabled") + private JsonNullable enabled; + + /** + * Indicates whether the subaccount is responsible for paying the Escrow Account fee. If not informed, the main account will be responsible for the fee + */ + @JsonProperty("isFeePayer") + private JsonNullable isFeePayer; + + @JsonIgnore + public Boolean getEnabled() { + return enabled.orElse(null); + } + + @JsonIgnore + public Boolean getIsFeePayer() { + return isFeePayer.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountSaveOrUpdatePaymentEscrowConfigRequestDtoBuilder { + + private JsonNullable enabled = JsonNullable.undefined(); + + @JsonProperty("enabled") + public AccountSaveOrUpdatePaymentEscrowConfigRequestDtoBuilder enabled(Boolean value) { + this.enabled = JsonNullable.of(value); + return this; + } + + private JsonNullable isFeePayer = JsonNullable.undefined(); + + @JsonProperty("isFeePayer") + public AccountSaveOrUpdatePaymentEscrowConfigRequestDtoBuilder isFeePayer(Boolean value) { + this.isFeePayer = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountSaveRequestCompanyType.java b/src/main/java/com/asaas/apisdk/models/AccountSaveRequestCompanyType.java new file mode 100644 index 0000000..919bfb9 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountSaveRequestCompanyType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of company (only when Legal Entity) + */ +@Getter +@AllArgsConstructor +public enum AccountSaveRequestCompanyType { + MEI("MEI"), + LIMITED("LIMITED"), + INDIVIDUAL("INDIVIDUAL"), + ASSOCIATION("ASSOCIATION"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountSaveRequestCompanyType fromValue(String value) { + return Arrays.stream(AccountSaveRequestCompanyType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/AccountSaveRequestDto.java new file mode 100644 index 0000000..34bcdac --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountSaveRequestDto.java @@ -0,0 +1,215 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountSaveRequestDto { + + /** + * Subaccount name + */ + @NonNull + private String name; + + /** + * Subaccount email + */ + @NonNull + private String email; + + /** + * CPF or CNPJ of the subaccount owner + */ + @NonNull + private String cpfCnpj; + + /** + * Cellphone + */ + @NonNull + private String mobilePhone; + + /** + * Billing/Monthly income + */ + @NonNull + private Double incomeValue; + + /** + * Public place + */ + @NonNull + private String address; + + /** + * Address number + */ + @NonNull + private String addressNumber; + + /** + * Neighborhood + */ + @NonNull + private String province; + + /** + * Address zip code + */ + @NonNull + private String postalCode; + + /** + * Email for subaccount login, if not provided, the subaccount email will be used + */ + @JsonProperty("loginEmail") + private JsonNullable loginEmail; + + /** + * Date of birth (only for Individuals) + */ + @JsonProperty("birthDate") + private JsonNullable birthDate; + + /** + * Type of company (only when Legal Entity) + */ + @JsonProperty("companyType") + private JsonNullable companyType; + + /** + * Telephone + */ + @JsonProperty("phone") + private JsonNullable phone; + + /** + * Url reffered to the subaccount + */ + @JsonProperty("site") + private JsonNullable site; + + /** + * Address complement + */ + @JsonProperty("complement") + private JsonNullable complement; + + /** + * Array with desired Webhooks settings + */ + @JsonProperty("webhooks") + private JsonNullable> webhooks; + + @JsonIgnore + public String getLoginEmail() { + return loginEmail.orElse(null); + } + + @JsonIgnore + public String getBirthDate() { + return birthDate.orElse(null); + } + + @JsonIgnore + public AccountSaveRequestCompanyType getCompanyType() { + return companyType.orElse(null); + } + + @JsonIgnore + public String getPhone() { + return phone.orElse(null); + } + + @JsonIgnore + public String getSite() { + return site.orElse(null); + } + + @JsonIgnore + public String getComplement() { + return complement.orElse(null); + } + + @JsonIgnore + public List getWebhooks() { + return webhooks.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountSaveRequestDtoBuilder { + + private JsonNullable loginEmail = JsonNullable.undefined(); + + @JsonProperty("loginEmail") + public AccountSaveRequestDtoBuilder loginEmail(String value) { + this.loginEmail = JsonNullable.of(value); + return this; + } + + private JsonNullable birthDate = JsonNullable.undefined(); + + @JsonProperty("birthDate") + public AccountSaveRequestDtoBuilder birthDate(String value) { + this.birthDate = JsonNullable.of(value); + return this; + } + + private JsonNullable companyType = JsonNullable.undefined(); + + @JsonProperty("companyType") + public AccountSaveRequestDtoBuilder companyType(AccountSaveRequestCompanyType value) { + this.companyType = JsonNullable.of(value); + return this; + } + + private JsonNullable phone = JsonNullable.undefined(); + + @JsonProperty("phone") + public AccountSaveRequestDtoBuilder phone(String value) { + this.phone = JsonNullable.of(value); + return this; + } + + private JsonNullable site = JsonNullable.undefined(); + + @JsonProperty("site") + public AccountSaveRequestDtoBuilder site(String value) { + this.site = JsonNullable.of(value); + return this; + } + + private JsonNullable complement = JsonNullable.undefined(); + + @JsonProperty("complement") + public AccountSaveRequestDtoBuilder complement(String value) { + this.complement = JsonNullable.of(value); + return this; + } + + private JsonNullable> webhooks = JsonNullable.undefined(); + + @JsonProperty("webhooks") + public AccountSaveRequestDtoBuilder webhooks(List value) { + this.webhooks = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountSaveResponseCompanyType.java b/src/main/java/com/asaas/apisdk/models/AccountSaveResponseCompanyType.java new file mode 100644 index 0000000..5b4c8f9 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountSaveResponseCompanyType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of company (only when Legal Entity) + */ +@Getter +@AllArgsConstructor +public enum AccountSaveResponseCompanyType { + MEI("MEI"), + LIMITED("LIMITED"), + INDIVIDUAL("INDIVIDUAL"), + ASSOCIATION("ASSOCIATION"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountSaveResponseCompanyType fromValue(String value) { + return Arrays.stream(AccountSaveResponseCompanyType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountSaveResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountSaveResponseDto.java new file mode 100644 index 0000000..c42f210 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountSaveResponseDto.java @@ -0,0 +1,504 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AccountSaveResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique subaccount identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Subaccount name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Subaccount email + */ + @JsonProperty("email") + private JsonNullable email; + + /** + * Email for subaccount login, if not provided, the subaccount email will be used + */ + @JsonProperty("loginEmail") + private JsonNullable loginEmail; + + /** + * Telephone + */ + @JsonProperty("phone") + private JsonNullable phone; + + /** + * Cellphone + */ + @JsonProperty("mobilePhone") + private JsonNullable mobilePhone; + + /** + * Public place + */ + @JsonProperty("address") + private JsonNullable address; + + /** + * Address number + */ + @JsonProperty("addressNumber") + private JsonNullable addressNumber; + + /** + * Address complement + */ + @JsonProperty("complement") + private JsonNullable complement; + + /** + * Neighborhood + */ + @JsonProperty("province") + private JsonNullable province; + + /** + * Address zip code + */ + @JsonProperty("postalCode") + private JsonNullable postalCode; + + /** + * CPF or CNPJ of the subaccount owner + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Date of birth (only for Individuals) + */ + @JsonProperty("birthDate") + private JsonNullable birthDate; + + /** + * Kind of person + */ + @JsonProperty("personType") + private JsonNullable personType; + + /** + * Type of company (only when Legal Entity) + */ + @JsonProperty("companyType") + private JsonNullable companyType; + + /** + * Unique city identifier in Asaas + */ + @JsonProperty("city") + private JsonNullable city; + + /** + * State abbreviation (SP, RJ, SC, ...) + */ + @JsonProperty("state") + private JsonNullable state; + + /** + * Country (Fixed Brazil) + */ + @JsonProperty("country") + private JsonNullable country; + + /** + * Display name (auto-populated) + */ + @JsonProperty("tradingName") + private JsonNullable tradingName; + + /** + * Url reffered to the subaccount + */ + @JsonProperty("site") + private JsonNullable site; + + /** + * Unique wallet identifier to split charges or transfer between Asaas accounts + */ + @JsonProperty("walletId") + private JsonNullable walletId; + + /** + * Subaccount number in Asaas + */ + @JsonProperty("accountNumber") + private JsonNullable accountNumber; + + /** + * Information about the expiration of commercial data + */ + @JsonProperty("commercialInfoExpiration") + private JsonNullable commercialInfoExpiration; + + /** + * API key + */ + @JsonProperty("apiKey") + private JsonNullable apiKey; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getEmail() { + return email.orElse(null); + } + + @JsonIgnore + public String getLoginEmail() { + return loginEmail.orElse(null); + } + + @JsonIgnore + public String getPhone() { + return phone.orElse(null); + } + + @JsonIgnore + public String getMobilePhone() { + return mobilePhone.orElse(null); + } + + @JsonIgnore + public String getAddress() { + return address.orElse(null); + } + + @JsonIgnore + public String getAddressNumber() { + return addressNumber.orElse(null); + } + + @JsonIgnore + public String getComplement() { + return complement.orElse(null); + } + + @JsonIgnore + public String getProvince() { + return province.orElse(null); + } + + @JsonIgnore + public String getPostalCode() { + return postalCode.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public String getBirthDate() { + return birthDate.orElse(null); + } + + @JsonIgnore + public AccountSaveResponsePersonType getPersonType() { + return personType.orElse(null); + } + + @JsonIgnore + public AccountSaveResponseCompanyType getCompanyType() { + return companyType.orElse(null); + } + + @JsonIgnore + public Long getCity() { + return city.orElse(null); + } + + @JsonIgnore + public String getState() { + return state.orElse(null); + } + + @JsonIgnore + public String getCountry() { + return country.orElse(null); + } + + @JsonIgnore + public String getTradingName() { + return tradingName.orElse(null); + } + + @JsonIgnore + public String getSite() { + return site.orElse(null); + } + + @JsonIgnore + public String getWalletId() { + return walletId.orElse(null); + } + + @JsonIgnore + public AccountNumberDto getAccountNumber() { + return accountNumber.orElse(null); + } + + @JsonIgnore + public AccountInfoCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { + return commercialInfoExpiration.orElse(null); + } + + @JsonIgnore + public String getApiKey() { + return apiKey.orElse(null); + } + + // Overwrite lombok builder methods + public static class AccountSaveResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public AccountSaveResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public AccountSaveResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public AccountSaveResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable email = JsonNullable.undefined(); + + @JsonProperty("email") + public AccountSaveResponseDtoBuilder email(String value) { + this.email = JsonNullable.of(value); + return this; + } + + private JsonNullable loginEmail = JsonNullable.undefined(); + + @JsonProperty("loginEmail") + public AccountSaveResponseDtoBuilder loginEmail(String value) { + this.loginEmail = JsonNullable.of(value); + return this; + } + + private JsonNullable phone = JsonNullable.undefined(); + + @JsonProperty("phone") + public AccountSaveResponseDtoBuilder phone(String value) { + this.phone = JsonNullable.of(value); + return this; + } + + private JsonNullable mobilePhone = JsonNullable.undefined(); + + @JsonProperty("mobilePhone") + public AccountSaveResponseDtoBuilder mobilePhone(String value) { + this.mobilePhone = JsonNullable.of(value); + return this; + } + + private JsonNullable address = JsonNullable.undefined(); + + @JsonProperty("address") + public AccountSaveResponseDtoBuilder address(String value) { + this.address = JsonNullable.of(value); + return this; + } + + private JsonNullable addressNumber = JsonNullable.undefined(); + + @JsonProperty("addressNumber") + public AccountSaveResponseDtoBuilder addressNumber(String value) { + this.addressNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable complement = JsonNullable.undefined(); + + @JsonProperty("complement") + public AccountSaveResponseDtoBuilder complement(String value) { + this.complement = JsonNullable.of(value); + return this; + } + + private JsonNullable province = JsonNullable.undefined(); + + @JsonProperty("province") + public AccountSaveResponseDtoBuilder province(String value) { + this.province = JsonNullable.of(value); + return this; + } + + private JsonNullable postalCode = JsonNullable.undefined(); + + @JsonProperty("postalCode") + public AccountSaveResponseDtoBuilder postalCode(String value) { + this.postalCode = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public AccountSaveResponseDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable birthDate = JsonNullable.undefined(); + + @JsonProperty("birthDate") + public AccountSaveResponseDtoBuilder birthDate(String value) { + this.birthDate = JsonNullable.of(value); + return this; + } + + private JsonNullable personType = JsonNullable.undefined(); + + @JsonProperty("personType") + public AccountSaveResponseDtoBuilder personType(AccountSaveResponsePersonType value) { + this.personType = JsonNullable.of(value); + return this; + } + + private JsonNullable companyType = JsonNullable.undefined(); + + @JsonProperty("companyType") + public AccountSaveResponseDtoBuilder companyType(AccountSaveResponseCompanyType value) { + this.companyType = JsonNullable.of(value); + return this; + } + + private JsonNullable city = JsonNullable.undefined(); + + @JsonProperty("city") + public AccountSaveResponseDtoBuilder city(Long value) { + this.city = JsonNullable.of(value); + return this; + } + + private JsonNullable state = JsonNullable.undefined(); + + @JsonProperty("state") + public AccountSaveResponseDtoBuilder state(String value) { + this.state = JsonNullable.of(value); + return this; + } + + private JsonNullable country = JsonNullable.undefined(); + + @JsonProperty("country") + public AccountSaveResponseDtoBuilder country(String value) { + this.country = JsonNullable.of(value); + return this; + } + + private JsonNullable tradingName = JsonNullable.undefined(); + + @JsonProperty("tradingName") + public AccountSaveResponseDtoBuilder tradingName(String value) { + this.tradingName = JsonNullable.of(value); + return this; + } + + private JsonNullable site = JsonNullable.undefined(); + + @JsonProperty("site") + public AccountSaveResponseDtoBuilder site(String value) { + this.site = JsonNullable.of(value); + return this; + } + + private JsonNullable walletId = JsonNullable.undefined(); + + @JsonProperty("walletId") + public AccountSaveResponseDtoBuilder walletId(String value) { + this.walletId = JsonNullable.of(value); + return this; + } + + private JsonNullable accountNumber = JsonNullable.undefined(); + + @JsonProperty("accountNumber") + public AccountSaveResponseDtoBuilder accountNumber(AccountNumberDto value) { + this.accountNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable commercialInfoExpiration = + JsonNullable.undefined(); + + @JsonProperty("commercialInfoExpiration") + public AccountSaveResponseDtoBuilder commercialInfoExpiration( + AccountInfoCommercialInfoExpirationResponseDto value + ) { + this.commercialInfoExpiration = JsonNullable.of(value); + return this; + } + + private JsonNullable apiKey = JsonNullable.undefined(); + + @JsonProperty("apiKey") + public AccountSaveResponseDtoBuilder apiKey(String value) { + this.apiKey = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AccountSaveResponsePersonType.java b/src/main/java/com/asaas/apisdk/models/AccountSaveResponsePersonType.java new file mode 100644 index 0000000..58ca181 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AccountSaveResponsePersonType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Kind of person + */ +@Getter +@AllArgsConstructor +public enum AccountSaveResponsePersonType { + JURIDICA("JURIDICA"), + FISICA("FISICA"); + + @JsonValue + private final String value; + + @JsonCreator + public static AccountSaveResponsePersonType fromValue(String value) { + return Arrays.stream(AccountSaveResponsePersonType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AnticipationConfigurationGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationConfigurationGetResponseDto.java new file mode 100644 index 0000000..4c35b56 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AnticipationConfigurationGetResponseDto.java @@ -0,0 +1,45 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AnticipationConfigurationGetResponseDto { + + /** + * Indicates whether automatic anticipation is enabled for credit card payments + */ + @JsonProperty("creditCardAutomaticEnabled") + private JsonNullable creditCardAutomaticEnabled; + + @JsonIgnore + public Boolean getCreditCardAutomaticEnabled() { + return creditCardAutomaticEnabled.orElse(null); + } + + // Overwrite lombok builder methods + public static class AnticipationConfigurationGetResponseDtoBuilder { + + private JsonNullable creditCardAutomaticEnabled = JsonNullable.undefined(); + + @JsonProperty("creditCardAutomaticEnabled") + public AnticipationConfigurationGetResponseDtoBuilder creditCardAutomaticEnabled(Boolean value) { + this.creditCardAutomaticEnabled = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AnticipationConfigurationUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationConfigurationUpdateRequestDto.java new file mode 100644 index 0000000..6981672 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AnticipationConfigurationUpdateRequestDto.java @@ -0,0 +1,45 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AnticipationConfigurationUpdateRequestDto { + + /** + * Define whether automatic anticipation is enabled for credit card payments + */ + @JsonProperty("creditCardAutomaticEnabled") + private JsonNullable creditCardAutomaticEnabled; + + @JsonIgnore + public Boolean getCreditCardAutomaticEnabled() { + return creditCardAutomaticEnabled.orElse(null); + } + + // Overwrite lombok builder methods + public static class AnticipationConfigurationUpdateRequestDtoBuilder { + + private JsonNullable creditCardAutomaticEnabled = JsonNullable.undefined(); + + @JsonProperty("creditCardAutomaticEnabled") + public AnticipationConfigurationUpdateRequestDtoBuilder creditCardAutomaticEnabled(Boolean value) { + this.creditCardAutomaticEnabled = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AnticipationGetResponseAnticipationStatus.java b/src/main/java/com/asaas/apisdk/models/AnticipationGetResponseAnticipationStatus.java new file mode 100644 index 0000000..e80937b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AnticipationGetResponseAnticipationStatus.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Anticipation status + */ +@Getter +@AllArgsConstructor +public enum AnticipationGetResponseAnticipationStatus { + PENDING("PENDING"), + DENIED("DENIED"), + CREDITED("CREDITED"), + DEBITED("DEBITED"), + CANCELLED("CANCELLED"), + OVERDUE("OVERDUE"), + SCHEDULED("SCHEDULED"); + + @JsonValue + private final String value; + + @JsonCreator + public static AnticipationGetResponseAnticipationStatus fromValue(String value) { + return Arrays.stream(AnticipationGetResponseAnticipationStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AnticipationGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationGetResponseDto.java new file mode 100644 index 0000000..6a8092b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AnticipationGetResponseDto.java @@ -0,0 +1,292 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AnticipationGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique identifier of anticipation in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Unique identifier of the installment to be anticipated + */ + @JsonProperty("installment") + private JsonNullable installment; + + /** + * Unique identifier of the payment to be anticipated. + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * Anticipation status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Anticipation request date + */ + @JsonProperty("anticipationDate") + private JsonNullable anticipationDate; + + /** + * Request due date + */ + @JsonProperty("dueDate") + private JsonNullable dueDate; + + /** + * Anticipation request date + */ + @JsonProperty("requestDate") + private JsonNullable requestDate; + + /** + * Anticipation fee + */ + @JsonProperty("fee") + private JsonNullable fee; + + /** + * Number of days that were anticipated + */ + @JsonProperty("anticipationDays") + private JsonNullable anticipationDays; + + /** + * Net value discounted the anticipation fee + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Total amount of the payment to be anticipated + */ + @JsonProperty("totalValue") + private JsonNullable totalValue; + + /** + * Anticipation value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Reason for rejecting the anticipation payment + */ + @JsonProperty("denialObservation") + private JsonNullable denialObservation; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getInstallment() { + return installment.orElse(null); + } + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public AnticipationGetResponseAnticipationStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getAnticipationDate() { + return anticipationDate.orElse(null); + } + + @JsonIgnore + public String getDueDate() { + return dueDate.orElse(null); + } + + @JsonIgnore + public String getRequestDate() { + return requestDate.orElse(null); + } + + @JsonIgnore + public Double getFee() { + return fee.orElse(null); + } + + @JsonIgnore + public Long getAnticipationDays() { + return anticipationDays.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getTotalValue() { + return totalValue.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getDenialObservation() { + return denialObservation.orElse(null); + } + + // Overwrite lombok builder methods + public static class AnticipationGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public AnticipationGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public AnticipationGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public AnticipationGetResponseDtoBuilder installment(String value) { + this.installment = JsonNullable.of(value); + return this; + } + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public AnticipationGetResponseDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public AnticipationGetResponseDtoBuilder status(AnticipationGetResponseAnticipationStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipationDate = JsonNullable.undefined(); + + @JsonProperty("anticipationDate") + public AnticipationGetResponseDtoBuilder anticipationDate(String value) { + this.anticipationDate = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDate = JsonNullable.undefined(); + + @JsonProperty("dueDate") + public AnticipationGetResponseDtoBuilder dueDate(String value) { + this.dueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable requestDate = JsonNullable.undefined(); + + @JsonProperty("requestDate") + public AnticipationGetResponseDtoBuilder requestDate(String value) { + this.requestDate = JsonNullable.of(value); + return this; + } + + private JsonNullable fee = JsonNullable.undefined(); + + @JsonProperty("fee") + public AnticipationGetResponseDtoBuilder fee(Double value) { + this.fee = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipationDays = JsonNullable.undefined(); + + @JsonProperty("anticipationDays") + public AnticipationGetResponseDtoBuilder anticipationDays(Long value) { + this.anticipationDays = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public AnticipationGetResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable totalValue = JsonNullable.undefined(); + + @JsonProperty("totalValue") + public AnticipationGetResponseDtoBuilder totalValue(Double value) { + this.totalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public AnticipationGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable denialObservation = JsonNullable.undefined(); + + @JsonProperty("denialObservation") + public AnticipationGetResponseDtoBuilder denialObservation(String value) { + this.denialObservation = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AnticipationLimitsInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationLimitsInfoResponseDto.java new file mode 100644 index 0000000..8191494 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AnticipationLimitsInfoResponseDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Credit card anticipation limits + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AnticipationLimitsInfoResponseDto { + + /** + * Anticipation limit released on the account + */ + @JsonProperty("total") + private JsonNullable total; + + /** + * Limit available to anticipate + */ + @JsonProperty("available") + private JsonNullable available; + + @JsonIgnore + public Double getTotal() { + return total.orElse(null); + } + + @JsonIgnore + public Double getAvailable() { + return available.orElse(null); + } + + // Overwrite lombok builder methods + public static class AnticipationLimitsInfoResponseDtoBuilder { + + private JsonNullable total = JsonNullable.undefined(); + + @JsonProperty("total") + public AnticipationLimitsInfoResponseDtoBuilder total(Double value) { + this.total = JsonNullable.of(value); + return this; + } + + private JsonNullable available = JsonNullable.undefined(); + + @JsonProperty("available") + public AnticipationLimitsInfoResponseDtoBuilder available(Double value) { + this.available = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AnticipationLimitsResponseDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationLimitsResponseDto.java new file mode 100644 index 0000000..3bc7a40 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AnticipationLimitsResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AnticipationLimitsResponseDto { + + /** + * Credit card anticipation limits + */ + @JsonProperty("creditCard") + private JsonNullable creditCard; + + /** + * Credit card anticipation limits + */ + @JsonProperty("bankSlip") + private JsonNullable bankSlip; + + @JsonIgnore + public AnticipationLimitsInfoResponseDto getCreditCard() { + return creditCard.orElse(null); + } + + @JsonIgnore + public AnticipationLimitsInfoResponseDto getBankSlip() { + return bankSlip.orElse(null); + } + + // Overwrite lombok builder methods + public static class AnticipationLimitsResponseDtoBuilder { + + private JsonNullable creditCard = JsonNullable.undefined(); + + @JsonProperty("creditCard") + public AnticipationLimitsResponseDtoBuilder creditCard(AnticipationLimitsInfoResponseDto value) { + this.creditCard = JsonNullable.of(value); + return this; + } + + private JsonNullable bankSlip = JsonNullable.undefined(); + + @JsonProperty("bankSlip") + public AnticipationLimitsResponseDtoBuilder bankSlip(AnticipationLimitsInfoResponseDto value) { + this.bankSlip = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AnticipationListRequestAnticipationStatus.java b/src/main/java/com/asaas/apisdk/models/AnticipationListRequestAnticipationStatus.java new file mode 100644 index 0000000..fc7c2e2 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AnticipationListRequestAnticipationStatus.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by status + */ +@Getter +@AllArgsConstructor +public enum AnticipationListRequestAnticipationStatus { + PENDING("PENDING"), + DENIED("DENIED"), + CREDITED("CREDITED"), + DEBITED("DEBITED"), + CANCELLED("CANCELLED"), + OVERDUE("OVERDUE"), + SCHEDULED("SCHEDULED"); + + @JsonValue + private final String value; + + @JsonCreator + public static AnticipationListRequestAnticipationStatus fromValue(String value) { + return Arrays.stream(AnticipationListRequestAnticipationStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AnticipationListResponseDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationListResponseDto.java new file mode 100644 index 0000000..f7eeac4 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AnticipationListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AnticipationListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class AnticipationListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public AnticipationListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public AnticipationListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public AnticipationListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public AnticipationListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public AnticipationListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public AnticipationListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AnticipationSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationSaveRequestDto.java new file mode 100644 index 0000000..d836185 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AnticipationSaveRequestDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AnticipationSaveRequestDto { + + /** + * ID of the installment to be anticipated + */ + @JsonProperty("installment") + private JsonNullable installment; + + /** + * ID of the payment to be anticipated + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * File + */ + @JsonProperty("documents") + private JsonNullable documents; + + @JsonIgnore + public String getInstallment() { + return installment.orElse(null); + } + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public byte[] getDocuments() { + return documents.orElse(null); + } + + // Overwrite lombok builder methods + public static class AnticipationSaveRequestDtoBuilder { + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public AnticipationSaveRequestDtoBuilder installment(String value) { + this.installment = JsonNullable.of(value); + return this; + } + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public AnticipationSaveRequestDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable documents = JsonNullable.undefined(); + + @JsonProperty("documents") + public AnticipationSaveRequestDtoBuilder 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/AnticipationSimulateRequestDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationSimulateRequestDto.java new file mode 100644 index 0000000..818ced7 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AnticipationSimulateRequestDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AnticipationSimulateRequestDto { + + /** + * ID of the installment to be anticipated + */ + @JsonProperty("installment") + private JsonNullable installment; + + /** + * ID of the payment to be anticipated + */ + @JsonProperty("payment") + private JsonNullable payment; + + @JsonIgnore + public String getInstallment() { + return installment.orElse(null); + } + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + // Overwrite lombok builder methods + public static class AnticipationSimulateRequestDtoBuilder { + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public AnticipationSimulateRequestDtoBuilder installment(String value) { + this.installment = JsonNullable.of(value); + return this; + } + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public AnticipationSimulateRequestDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/AnticipationSimulateResponseDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationSimulateResponseDto.java new file mode 100644 index 0000000..526dc51 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/AnticipationSimulateResponseDto.java @@ -0,0 +1,216 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class AnticipationSimulateResponseDto { + + /** + * Unique identifier of the installment to be anticipated + */ + @JsonProperty("installment") + private JsonNullable installment; + + /** + * Unique identifier of the payment to be anticipated + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * Anticipation request date + */ + @JsonProperty("anticipationDate") + private JsonNullable anticipationDate; + + /** + * Request due date + */ + @JsonProperty("dueDate") + private JsonNullable dueDate; + + /** + * Anticipation fee + */ + @JsonProperty("fee") + private JsonNullable fee; + + /** + * Number of days that were anticipated + */ + @JsonProperty("anticipationDays") + private JsonNullable anticipationDays; + + /** + * Net value discounted the anticipation fee + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Total amount of the payment to be anticipated + */ + @JsonProperty("totalValue") + private JsonNullable totalValue; + + /** + * Anticipation value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Determines the obligation to send electronic invoices or service provision contracts when requesting anticipation payment + */ + @JsonProperty("isDocumentationRequired") + private JsonNullable isDocumentationRequired; + + @JsonIgnore + public String getInstallment() { + return installment.orElse(null); + } + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public String getAnticipationDate() { + return anticipationDate.orElse(null); + } + + @JsonIgnore + public String getDueDate() { + return dueDate.orElse(null); + } + + @JsonIgnore + public Double getFee() { + return fee.orElse(null); + } + + @JsonIgnore + public Long getAnticipationDays() { + return anticipationDays.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getTotalValue() { + return totalValue.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Boolean getIsDocumentationRequired() { + return isDocumentationRequired.orElse(null); + } + + // Overwrite lombok builder methods + public static class AnticipationSimulateResponseDtoBuilder { + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public AnticipationSimulateResponseDtoBuilder installment(String value) { + this.installment = JsonNullable.of(value); + return this; + } + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public AnticipationSimulateResponseDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipationDate = JsonNullable.undefined(); + + @JsonProperty("anticipationDate") + public AnticipationSimulateResponseDtoBuilder anticipationDate(String value) { + this.anticipationDate = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDate = JsonNullable.undefined(); + + @JsonProperty("dueDate") + public AnticipationSimulateResponseDtoBuilder dueDate(String value) { + this.dueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable fee = JsonNullable.undefined(); + + @JsonProperty("fee") + public AnticipationSimulateResponseDtoBuilder fee(Double value) { + this.fee = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipationDays = JsonNullable.undefined(); + + @JsonProperty("anticipationDays") + public AnticipationSimulateResponseDtoBuilder anticipationDays(Long value) { + this.anticipationDays = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public AnticipationSimulateResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable totalValue = JsonNullable.undefined(); + + @JsonProperty("totalValue") + public AnticipationSimulateResponseDtoBuilder totalValue(Double value) { + this.totalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public AnticipationSimulateResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable isDocumentationRequired = JsonNullable.undefined(); + + @JsonProperty("isDocumentationRequired") + public AnticipationSimulateResponseDtoBuilder isDocumentationRequired(Boolean value) { + this.isDocumentationRequired = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentDeleteResponseDto.java deleted file mode 100644 index d1e02b6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentDeleteResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiAccountDocumentDeleteResponseDto { - - /** - * Indicates whether the document was removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Unique document identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiAccountDocumentDeleteResponseDtoBuilder { - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiAccountDocumentDeleteResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiAccountDocumentDeleteResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.java deleted file mode 100644 index ee5c586..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Document approval status - */ -@Getter -@AllArgsConstructor -public enum ApiAccountDocumentGetResponseCustomerDocumentStatus { - NOT_SENT("NOT_SENT"), - PENDING("PENDING"), - APPROVED("APPROVED"), - REJECTED("REJECTED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiAccountDocumentGetResponseCustomerDocumentStatus fromValue(String value) { - return Arrays.stream(ApiAccountDocumentGetResponseCustomerDocumentStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseDto.java deleted file mode 100644 index d284384..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiAccountDocumentGetResponseDto { - - /** - * Unique document identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Document approval status - */ - @JsonProperty("status") - private JsonNullable status; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public ApiAccountDocumentGetResponseCustomerDocumentStatus getStatus() { - return status.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiAccountDocumentGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiAccountDocumentGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiAccountDocumentGetResponseDtoBuilder status(ApiAccountDocumentGetResponseCustomerDocumentStatus value) { - this.status = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.java deleted file mode 100644 index fbdeba4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Document group status - */ -@Getter -@AllArgsConstructor -public enum ApiAccountDocumentGroupResponseCustomerDocumentStatus { - NOT_SENT("NOT_SENT"), - PENDING("PENDING"), - APPROVED("APPROVED"), - REJECTED("REJECTED"), - IGNORED("IGNORED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiAccountDocumentGroupResponseCustomerDocumentStatus fromValue(String value) { - return Arrays.stream(ApiAccountDocumentGroupResponseCustomerDocumentStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentType.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentType.java deleted file mode 100644 index 364daa2..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentType.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of documents - */ -@Getter -@AllArgsConstructor -public enum ApiAccountDocumentGroupResponseCustomerDocumentType { - IDENTIFICATION("IDENTIFICATION"), - SOCIAL_CONTRACT("SOCIAL_CONTRACT"), - ENTREPRENEUR_REQUIREMENT("ENTREPRENEUR_REQUIREMENT"), - MINUTES_OF_ELECTION("MINUTES_OF_ELECTION"), - CUSTOM("CUSTOM"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiAccountDocumentGroupResponseCustomerDocumentType fromValue(String value) { - return Arrays.stream(ApiAccountDocumentGroupResponseCustomerDocumentType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseDto.java deleted file mode 100644 index dafd4d9..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseDto.java +++ /dev/null @@ -1,197 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiAccountDocumentGroupResponseDto { - - /** - * Unique document group identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Document group status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Type of documents - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Document group title - */ - @JsonProperty("title") - private JsonNullable title; - - /** - * Description - */ - @JsonProperty("description") - private JsonNullable description; - - @JsonProperty("responsible") - private JsonNullable responsible; - - /** - * URL for sending documents - */ - @JsonProperty("onboardingUrl") - private JsonNullable onboardingUrl; - - /** - * Expiration date of the URL for sending documents - */ - @JsonProperty("onboardingUrlExpirationDate") - private JsonNullable onboardingUrlExpirationDate; - - /** - * Documents that have already been sent with their respective identifiers - */ - @JsonProperty("documents") - private JsonNullable> documents; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public ApiAccountDocumentGroupResponseCustomerDocumentStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiAccountDocumentGroupResponseCustomerDocumentType getType() { - return type.orElse(null); - } - - @JsonIgnore - public String getTitle() { - return title.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public ApiAccountDocumentGroupResponsibleResponseDto getResponsible() { - return responsible.orElse(null); - } - - @JsonIgnore - public String getOnboardingUrl() { - return onboardingUrl.orElse(null); - } - - @JsonIgnore - public String getOnboardingUrlExpirationDate() { - return onboardingUrlExpirationDate.orElse(null); - } - - @JsonIgnore - public List getDocuments() { - return documents.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiAccountDocumentGroupResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiAccountDocumentGroupResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiAccountDocumentGroupResponseDtoBuilder status( - ApiAccountDocumentGroupResponseCustomerDocumentStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiAccountDocumentGroupResponseDtoBuilder type(ApiAccountDocumentGroupResponseCustomerDocumentType value) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable title = JsonNullable.undefined(); - - @JsonProperty("title") - public ApiAccountDocumentGroupResponseDtoBuilder title(String value) { - this.title = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiAccountDocumentGroupResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable responsible = JsonNullable.undefined(); - - @JsonProperty("responsible") - public ApiAccountDocumentGroupResponseDtoBuilder responsible(ApiAccountDocumentGroupResponsibleResponseDto value) { - this.responsible = JsonNullable.of(value); - return this; - } - - private JsonNullable onboardingUrl = JsonNullable.undefined(); - - @JsonProperty("onboardingUrl") - public ApiAccountDocumentGroupResponseDtoBuilder onboardingUrl(String value) { - this.onboardingUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable onboardingUrlExpirationDate = JsonNullable.undefined(); - - @JsonProperty("onboardingUrlExpirationDate") - public ApiAccountDocumentGroupResponseDtoBuilder onboardingUrlExpirationDate(String value) { - this.onboardingUrlExpirationDate = JsonNullable.of(value); - return this; - } - - private JsonNullable> documents = JsonNullable.undefined(); - - @JsonProperty("documents") - public ApiAccountDocumentGroupResponseDtoBuilder documents(List value) { - 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 deleted file mode 100644 index 4d8bb04..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponsibleResponseDto.java +++ /dev/null @@ -1,65 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiAccountDocumentGroupResponsibleResponseDto { - - /** - * Responsible name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Responsible tyoe - */ - @JsonProperty("type") - private JsonNullable> type; - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public List getType() { - return type.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiAccountDocumentGroupResponsibleResponseDtoBuilder { - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiAccountDocumentGroupResponsibleResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable> type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiAccountDocumentGroupResponsibleResponseDtoBuilder type(List value) { - this.type = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestCustomerDocumentType.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestCustomerDocumentType.java deleted file mode 100644 index d9d1063..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestCustomerDocumentType.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Document Type - */ -@Getter -@AllArgsConstructor -public enum ApiAccountDocumentSaveRequestCustomerDocumentType { - IDENTIFICATION("IDENTIFICATION"), - SOCIAL_CONTRACT("SOCIAL_CONTRACT"), - ENTREPRENEUR_REQUIREMENT("ENTREPRENEUR_REQUIREMENT"), - MINUTES_OF_ELECTION("MINUTES_OF_ELECTION"), - CUSTOM("CUSTOM"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiAccountDocumentSaveRequestCustomerDocumentType fromValue(String value) { - return Arrays.stream(ApiAccountDocumentSaveRequestCustomerDocumentType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestDto.java deleted file mode 100644 index 534a4f7..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestDto.java +++ /dev/null @@ -1,67 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiAccountDocumentSaveRequestDto { - - /** - * File - */ - @JsonProperty("documentFile") - private JsonNullable documentFile; - - /** - * Document Type - */ - @JsonProperty("type") - private JsonNullable type; - - @JsonIgnore - public byte[] getDocumentFile() { - return documentFile.orElse(null); - } - - @JsonIgnore - public ApiAccountDocumentSaveRequestCustomerDocumentType getType() { - return type.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiAccountDocumentSaveRequestDtoBuilder { - - private JsonNullable documentFile = JsonNullable.undefined(); - - @JsonProperty("documentFile") - public ApiAccountDocumentSaveRequestDtoBuilder documentFile(byte[] value) { - if (value == null) { - throw new IllegalStateException("documentFile cannot be null"); - } - this.documentFile = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiAccountDocumentSaveRequestDtoBuilder type(ApiAccountDocumentSaveRequestCustomerDocumentType value) { - 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 deleted file mode 100644 index b3991af..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentShowResponseDto.java +++ /dev/null @@ -1,65 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiAccountDocumentShowResponseDto { - - /** - * Reason why account approval was rejected - */ - @JsonProperty("rejectReasons") - private JsonNullable rejectReasons; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getRejectReasons() { - return rejectReasons.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiAccountDocumentShowResponseDtoBuilder { - - private JsonNullable rejectReasons = JsonNullable.undefined(); - - @JsonProperty("rejectReasons") - public ApiAccountDocumentShowResponseDtoBuilder rejectReasons(String value) { - this.rejectReasons = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiAccountDocumentShowResponseDtoBuilder data(List value) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentUpdateRequestDto.java deleted file mode 100644 index 629ca8e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentUpdateRequestDto.java +++ /dev/null @@ -1,26 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiAccountDocumentUpdateRequestDto { - - /** - * File - */ - @NonNull - private byte[] documentFile; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiBankSlipBillingInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiBankSlipBillingInfoResponseDto.java deleted file mode 100644 index f21c02f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiBankSlipBillingInfoResponseDto.java +++ /dev/null @@ -1,121 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiBankSlipBillingInfoResponseDto { - - /** - * Digitable bill line - */ - @JsonProperty("identificationField") - private JsonNullable identificationField; - - /** - * Unique identification of the bank slip - */ - @JsonProperty("nossoNumero") - private JsonNullable nossoNumero; - - /** - * Bank slip bar code - */ - @JsonProperty("barCode") - private JsonNullable barCode; - - /** - * URL to download the bank slip - */ - @JsonProperty("bankSlipUrl") - private JsonNullable bankSlipUrl; - - /** - * Days after registration cancellation deadline (only for bank slip) - */ - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - private JsonNullable daysAfterDueDateToRegistrationCancellation; - - @JsonIgnore - public String getIdentificationField() { - return identificationField.orElse(null); - } - - @JsonIgnore - public String getNossoNumero() { - return nossoNumero.orElse(null); - } - - @JsonIgnore - public String getBarCode() { - return barCode.orElse(null); - } - - @JsonIgnore - public String getBankSlipUrl() { - return bankSlipUrl.orElse(null); - } - - @JsonIgnore - public Long getDaysAfterDueDateToRegistrationCancellation() { - return daysAfterDueDateToRegistrationCancellation.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiBankSlipBillingInfoResponseDtoBuilder { - - private JsonNullable identificationField = JsonNullable.undefined(); - - @JsonProperty("identificationField") - public ApiBankSlipBillingInfoResponseDtoBuilder identificationField(String value) { - this.identificationField = JsonNullable.of(value); - return this; - } - - private JsonNullable nossoNumero = JsonNullable.undefined(); - - @JsonProperty("nossoNumero") - public ApiBankSlipBillingInfoResponseDtoBuilder nossoNumero(String value) { - this.nossoNumero = JsonNullable.of(value); - return this; - } - - private JsonNullable barCode = JsonNullable.undefined(); - - @JsonProperty("barCode") - public ApiBankSlipBillingInfoResponseDtoBuilder barCode(String value) { - this.barCode = JsonNullable.of(value); - return this; - } - - private JsonNullable bankSlipUrl = JsonNullable.undefined(); - - @JsonProperty("bankSlipUrl") - public ApiBankSlipBillingInfoResponseDtoBuilder bankSlipUrl(String value) { - this.bankSlipUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); - - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiBankSlipBillingInfoResponseDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseBillStatus.java b/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseBillStatus.java deleted file mode 100644 index 38909ca..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseBillStatus.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Bill payment status - */ -@Getter -@AllArgsConstructor -public enum ApiBillGetResponseBillStatus { - PENDING("PENDING"), - BANK_PROCESSING("BANK_PROCESSING"), - PAID("PAID"), - FAILED("FAILED"), - CANCELLED("CANCELLED"), - REFUNDED("REFUNDED"), - AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST("AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiBillGetResponseBillStatus fromValue(String value) { - return Arrays.stream(ApiBillGetResponseBillStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseDto.java deleted file mode 100644 index 690dc3a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseDto.java +++ /dev/null @@ -1,369 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiBillGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique bill payment identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Bill payment status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Amount to be paid - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Discount attributed to payment - */ - @JsonProperty("discount") - private JsonNullable discount; - - /** - * Interest attributed to payment - */ - @JsonProperty("interest") - private JsonNullable interest; - - /** - * Fine assigned to payment - */ - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Typeable line of the bill to be paid - */ - @JsonProperty("identificationField") - private JsonNullable identificationField; - - /** - * Billing due date - */ - @JsonProperty("dueDate") - private JsonNullable dueDate; - - /** - * Payment scheduling date - */ - @JsonProperty("scheduleDate") - private JsonNullable scheduleDate; - - /** - * Date on which payment was made - */ - @JsonProperty("paymentDate") - private JsonNullable paymentDate; - - /** - * Asaas fee for bill payment - */ - @JsonProperty("fee") - private JsonNullable fee; - - /** - * Bill Payment Description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Company/Body issuing the payment - */ - @JsonProperty("companyName") - private JsonNullable companyName; - - /** - * Proof of bill payment - */ - @JsonProperty("transactionReceiptUrl") - private JsonNullable transactionReceiptUrl; - - /** - * Whether payment can be canceled - */ - @JsonProperty("canBeCancelled") - private JsonNullable canBeCancelled; - - /** - * Unique identifier of the bill in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * List of reasons for payment failure - */ - @JsonProperty("failReasons") - private JsonNullable> failReasons; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public ApiBillGetResponseBillStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public Double getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public Double getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public String getIdentificationField() { - return identificationField.orElse(null); - } - - @JsonIgnore - public String getDueDate() { - return dueDate.orElse(null); - } - - @JsonIgnore - public String getScheduleDate() { - return scheduleDate.orElse(null); - } - - @JsonIgnore - public String getPaymentDate() { - return paymentDate.orElse(null); - } - - @JsonIgnore - public Double getFee() { - return fee.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getCompanyName() { - return companyName.orElse(null); - } - - @JsonIgnore - public String getTransactionReceiptUrl() { - return transactionReceiptUrl.orElse(null); - } - - @JsonIgnore - public Boolean getCanBeCancelled() { - return canBeCancelled.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public List getFailReasons() { - return failReasons.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiBillGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiBillGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiBillGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiBillGetResponseDtoBuilder status(ApiBillGetResponseBillStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiBillGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiBillGetResponseDtoBuilder discount(Double value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiBillGetResponseDtoBuilder interest(Double value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiBillGetResponseDtoBuilder fine(Double value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable identificationField = JsonNullable.undefined(); - - @JsonProperty("identificationField") - public ApiBillGetResponseDtoBuilder identificationField(String value) { - this.identificationField = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDate = JsonNullable.undefined(); - - @JsonProperty("dueDate") - public ApiBillGetResponseDtoBuilder dueDate(String value) { - this.dueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable scheduleDate = JsonNullable.undefined(); - - @JsonProperty("scheduleDate") - public ApiBillGetResponseDtoBuilder scheduleDate(String value) { - this.scheduleDate = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentDate = JsonNullable.undefined(); - - @JsonProperty("paymentDate") - public ApiBillGetResponseDtoBuilder paymentDate(String value) { - this.paymentDate = JsonNullable.of(value); - return this; - } - - private JsonNullable fee = JsonNullable.undefined(); - - @JsonProperty("fee") - public ApiBillGetResponseDtoBuilder fee(Double value) { - this.fee = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiBillGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable companyName = JsonNullable.undefined(); - - @JsonProperty("companyName") - public ApiBillGetResponseDtoBuilder companyName(String value) { - this.companyName = JsonNullable.of(value); - return this; - } - - private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); - - @JsonProperty("transactionReceiptUrl") - public ApiBillGetResponseDtoBuilder transactionReceiptUrl(String value) { - this.transactionReceiptUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable canBeCancelled = JsonNullable.undefined(); - - @JsonProperty("canBeCancelled") - public ApiBillGetResponseDtoBuilder canBeCancelled(Boolean value) { - this.canBeCancelled = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiBillGetResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable> failReasons = JsonNullable.undefined(); - - @JsonProperty("failReasons") - public ApiBillGetResponseDtoBuilder failReasons(List value) { - 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 deleted file mode 100644 index 6b3b8a4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiBillListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiBillListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiBillListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiBillListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiBillListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiBillListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiBillListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiBillListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiBillListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index c61458d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSaveRequestDto.java +++ /dev/null @@ -1,185 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiBillSaveRequestDto { - - /** - * Digitizable bill line - */ - @NonNull - private String identificationField; - - /** - * Payment scheduling date - */ - @JsonProperty("scheduleDate") - private JsonNullable scheduleDate; - - /** - * Bill Payment Description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Discount attributed to payment - */ - @JsonProperty("discount") - private JsonNullable discount; - - /** - * Interest attributed to payment - */ - @JsonProperty("interest") - private JsonNullable interest; - - /** - * Fine assigned to payment - */ - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Expiration date of the account if it is the type that does not have this information - */ - @JsonProperty("dueDate") - private JsonNullable dueDate; - - /** - * Account value if it is the type that does not have this information (Ex: credit card invoices) - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Unique identifier of the bill in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - @JsonIgnore - public String getScheduleDate() { - return scheduleDate.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Double getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public Double getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public Double getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public String getDueDate() { - return dueDate.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiBillSaveRequestDtoBuilder { - - private JsonNullable scheduleDate = JsonNullable.undefined(); - - @JsonProperty("scheduleDate") - public ApiBillSaveRequestDtoBuilder scheduleDate(String value) { - this.scheduleDate = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiBillSaveRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiBillSaveRequestDtoBuilder discount(Double value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiBillSaveRequestDtoBuilder interest(Double value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiBillSaveRequestDtoBuilder fine(Double value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDate = JsonNullable.undefined(); - - @JsonProperty("dueDate") - public ApiBillSaveRequestDtoBuilder dueDate(String value) { - this.dueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiBillSaveRequestDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiBillSaveRequestDtoBuilder externalReference(String value) { - 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 deleted file mode 100644 index a627672..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateBankSlipInfoResponseDto.java +++ /dev/null @@ -1,349 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiBillSimulateBankSlipInfoResponseDto { - - /** - * Digitable line - */ - @JsonProperty("identificationField") - private JsonNullable identificationField; - - /** - * Ticket value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Due date - */ - @JsonProperty("dueDate") - private JsonNullable dueDate; - - /** - * Company/Body issuing the bill - */ - @JsonProperty("companyName") - private JsonNullable companyName; - - /** - * Code of the bank issuing the bill in the banking system - */ - @JsonProperty("bank") - private JsonNullable bank; - - /** - * CPF or CNPJ of the beneficiary - */ - @JsonProperty("beneficiaryCpfCnpj") - private JsonNullable beneficiaryCpfCnpj; - - /** - * Beneficiary's name - */ - @JsonProperty("beneficiaryName") - private JsonNullable beneficiaryName; - - /** - * Whether the value can be changed or not - */ - @JsonProperty("allowChangeValue") - private JsonNullable allowChangeValue; - - /** - * Minimum value that can be changed - */ - @JsonProperty("minValue") - private JsonNullable minValue; - - /** - * Maximum value that can be changed - */ - @JsonProperty("maxValue") - private JsonNullable maxValue; - - /** - * Value of discounts - */ - @JsonProperty("discountValue") - private JsonNullable discountValue; - - /** - * Interest amount - */ - @JsonProperty("interestValue") - private JsonNullable interestValue; - - /** - * Fine value - */ - @JsonProperty("fineValue") - private JsonNullable fineValue; - - /** - * Original bill value - */ - @JsonProperty("originalValue") - private JsonNullable originalValue; - - /** - * Total value of discounts and rebates - */ - @JsonProperty("totalDiscountValue") - private JsonNullable totalDiscountValue; - - /** - * Total amount of interest and fine - */ - @JsonProperty("totalAdditionalValue") - private JsonNullable totalAdditionalValue; - - /** - * Informs if the ticket is expired - */ - @JsonProperty("isOverdue") - private JsonNullable isOverdue; - - @JsonIgnore - public String getIdentificationField() { - return identificationField.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getDueDate() { - return dueDate.orElse(null); - } - - @JsonIgnore - public String getCompanyName() { - return companyName.orElse(null); - } - - @JsonIgnore - public String getBank() { - return bank.orElse(null); - } - - @JsonIgnore - public String getBeneficiaryCpfCnpj() { - return beneficiaryCpfCnpj.orElse(null); - } - - @JsonIgnore - public String getBeneficiaryName() { - return beneficiaryName.orElse(null); - } - - @JsonIgnore - public Boolean getAllowChangeValue() { - return allowChangeValue.orElse(null); - } - - @JsonIgnore - public Double getMinValue() { - return minValue.orElse(null); - } - - @JsonIgnore - public Double getMaxValue() { - return maxValue.orElse(null); - } - - @JsonIgnore - public Double getDiscountValue() { - return discountValue.orElse(null); - } - - @JsonIgnore - public Double getInterestValue() { - return interestValue.orElse(null); - } - - @JsonIgnore - public Double getFineValue() { - return fineValue.orElse(null); - } - - @JsonIgnore - public Double getOriginalValue() { - return originalValue.orElse(null); - } - - @JsonIgnore - public Double getTotalDiscountValue() { - return totalDiscountValue.orElse(null); - } - - @JsonIgnore - public Double getTotalAdditionalValue() { - return totalAdditionalValue.orElse(null); - } - - @JsonIgnore - public Boolean getIsOverdue() { - return isOverdue.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiBillSimulateBankSlipInfoResponseDtoBuilder { - - private JsonNullable identificationField = JsonNullable.undefined(); - - @JsonProperty("identificationField") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder identificationField(String value) { - this.identificationField = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDate = JsonNullable.undefined(); - - @JsonProperty("dueDate") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder dueDate(String value) { - this.dueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable companyName = JsonNullable.undefined(); - - @JsonProperty("companyName") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder companyName(String value) { - this.companyName = JsonNullable.of(value); - return this; - } - - private JsonNullable bank = JsonNullable.undefined(); - - @JsonProperty("bank") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder bank(String value) { - this.bank = JsonNullable.of(value); - return this; - } - - private JsonNullable beneficiaryCpfCnpj = JsonNullable.undefined(); - - @JsonProperty("beneficiaryCpfCnpj") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder beneficiaryCpfCnpj(String value) { - this.beneficiaryCpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable beneficiaryName = JsonNullable.undefined(); - - @JsonProperty("beneficiaryName") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder beneficiaryName(String value) { - this.beneficiaryName = JsonNullable.of(value); - return this; - } - - private JsonNullable allowChangeValue = JsonNullable.undefined(); - - @JsonProperty("allowChangeValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder allowChangeValue(Boolean value) { - this.allowChangeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable minValue = JsonNullable.undefined(); - - @JsonProperty("minValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder minValue(Double value) { - this.minValue = JsonNullable.of(value); - return this; - } - - private JsonNullable maxValue = JsonNullable.undefined(); - - @JsonProperty("maxValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder maxValue(Double value) { - this.maxValue = JsonNullable.of(value); - return this; - } - - private JsonNullable discountValue = JsonNullable.undefined(); - - @JsonProperty("discountValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder discountValue(Double value) { - this.discountValue = JsonNullable.of(value); - return this; - } - - private JsonNullable interestValue = JsonNullable.undefined(); - - @JsonProperty("interestValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder interestValue(Double value) { - this.interestValue = JsonNullable.of(value); - return this; - } - - private JsonNullable fineValue = JsonNullable.undefined(); - - @JsonProperty("fineValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder fineValue(Double value) { - this.fineValue = JsonNullable.of(value); - return this; - } - - private JsonNullable originalValue = JsonNullable.undefined(); - - @JsonProperty("originalValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder originalValue(Double value) { - this.originalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable totalDiscountValue = JsonNullable.undefined(); - - @JsonProperty("totalDiscountValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder totalDiscountValue(Double value) { - this.totalDiscountValue = JsonNullable.of(value); - return this; - } - - private JsonNullable totalAdditionalValue = JsonNullable.undefined(); - - @JsonProperty("totalAdditionalValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder totalAdditionalValue(Double value) { - this.totalAdditionalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable isOverdue = JsonNullable.undefined(); - - @JsonProperty("isOverdue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder isOverdue(Boolean value) { - 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 deleted file mode 100644 index f2d3065..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateRequestDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiBillSimulateRequestDto { - - /** - * Digitizable bill line - */ - @JsonProperty("identificationField") - private JsonNullable identificationField; - - /** - * Ticket barcode - */ - @JsonProperty("barCode") - private JsonNullable barCode; - - @JsonIgnore - public String getIdentificationField() { - return identificationField.orElse(null); - } - - @JsonIgnore - public String getBarCode() { - return barCode.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiBillSimulateRequestDtoBuilder { - - private JsonNullable identificationField = JsonNullable.undefined(); - - @JsonProperty("identificationField") - public ApiBillSimulateRequestDtoBuilder identificationField(String value) { - this.identificationField = JsonNullable.of(value); - return this; - } - - private JsonNullable barCode = JsonNullable.undefined(); - - @JsonProperty("barCode") - public ApiBillSimulateRequestDtoBuilder barCode(String value) { - 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 deleted file mode 100644 index 8107a32..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateResponseDto.java +++ /dev/null @@ -1,80 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiBillSimulateResponseDto { - - /** - * Minimum date allowed for scheduling - */ - @JsonProperty("minimumScheduleDate") - private JsonNullable minimumScheduleDate; - - /** - * Fee charged when paying the bill - */ - @JsonProperty("fee") - private JsonNullable fee; - - @JsonProperty("bankSlipInfo") - private JsonNullable bankSlipInfo; - - @JsonIgnore - public String getMinimumScheduleDate() { - return minimumScheduleDate.orElse(null); - } - - @JsonIgnore - public Double getFee() { - return fee.orElse(null); - } - - @JsonIgnore - public ApiBillSimulateBankSlipInfoResponseDto getBankSlipInfo() { - return bankSlipInfo.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiBillSimulateResponseDtoBuilder { - - private JsonNullable minimumScheduleDate = JsonNullable.undefined(); - - @JsonProperty("minimumScheduleDate") - public ApiBillSimulateResponseDtoBuilder minimumScheduleDate(String value) { - this.minimumScheduleDate = JsonNullable.of(value); - return this; - } - - private JsonNullable fee = JsonNullable.undefined(); - - @JsonProperty("fee") - public ApiBillSimulateResponseDtoBuilder fee(Double value) { - this.fee = JsonNullable.of(value); - return this; - } - - private JsonNullable bankSlipInfo = JsonNullable.undefined(); - - @JsonProperty("bankSlipInfo") - public ApiBillSimulateResponseDtoBuilder bankSlipInfo(ApiBillSimulateBankSlipInfoResponseDto value) { - this.bankSlipInfo = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseCreditCardBrand.java b/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseCreditCardBrand.java deleted file mode 100644 index 3a345a7..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseCreditCardBrand.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Flag of the card used - */ -@Getter -@AllArgsConstructor -public enum ApiChargebackCreditCardResponseCreditCardBrand { - VISA("VISA"), - MASTERCARD("MASTERCARD"), - ELO("ELO"), - DINERS("DINERS"), - DISCOVER("DISCOVER"), - AMEX("AMEX"), - HIPERCARD("HIPERCARD"), - CABAL("CABAL"), - BANESCARD("BANESCARD"), - CREDZ("CREDZ"), - SOROCRED("SOROCRED"), - CREDSYSTEM("CREDSYSTEM"), - JCB("JCB"), - UNKNOWN("UNKNOWN"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiChargebackCreditCardResponseCreditCardBrand fromValue(String value) { - return Arrays.stream(ApiChargebackCreditCardResponseCreditCardBrand.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseDto.java deleted file mode 100644 index 6f80e29..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiChargebackCreditCardResponseDto { - - /** - * Last 4 digits of the card used - */ - @JsonProperty("number") - private JsonNullable number; - - /** - * Flag of the card used - */ - @JsonProperty("brand") - private JsonNullable brand; - - @JsonIgnore - public String getNumber() { - return number.orElse(null); - } - - @JsonIgnore - public ApiChargebackCreditCardResponseCreditCardBrand getBrand() { - return brand.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiChargebackCreditCardResponseDtoBuilder { - - private JsonNullable number = JsonNullable.undefined(); - - @JsonProperty("number") - public ApiChargebackCreditCardResponseDtoBuilder number(String value) { - this.number = JsonNullable.of(value); - return this; - } - - private JsonNullable brand = JsonNullable.undefined(); - - @JsonProperty("brand") - public ApiChargebackCreditCardResponseDtoBuilder brand(ApiChargebackCreditCardResponseCreditCardBrand value) { - this.brand = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestChargebackStatus.java b/src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestChargebackStatus.java deleted file mode 100644 index f986165..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestChargebackStatus.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by chargeback status. - */ -@Getter -@AllArgsConstructor -public enum ApiChargebackListRequestChargebackStatus { - REQUESTED("REQUESTED"), - IN_DISPUTE("IN_DISPUTE"), - DISPUTE_LOST("DISPUTE_LOST"), - REVERSED("REVERSED"), - DONE("DONE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiChargebackListRequestChargebackStatus fromValue(String value) { - return Arrays.stream(ApiChargebackListRequestChargebackStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestCreditCardBrand.java b/src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestCreditCardBrand.java deleted file mode 100644 index 82e0ad3..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestCreditCardBrand.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by used card brand. - */ -@Getter -@AllArgsConstructor -public enum ApiChargebackListRequestCreditCardBrand { - VISA("VISA"), - MASTERCARD("MASTERCARD"), - ELO("ELO"), - DINERS("DINERS"), - DISCOVER("DISCOVER"), - AMEX("AMEX"), - HIPERCARD("HIPERCARD"), - CABAL("CABAL"), - BANESCARD("BANESCARD"), - CREDZ("CREDZ"), - SOROCRED("SOROCRED"), - CREDSYSTEM("CREDSYSTEM"), - JCB("JCB"), - UNKNOWN("UNKNOWN"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiChargebackListRequestCreditCardBrand fromValue(String value) { - return Arrays.stream(ApiChargebackListRequestCreditCardBrand.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiChargebackListResponseDto.java deleted file mode 100644 index 1ceb97c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiChargebackListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiChargebackListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiChargebackListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiChargebackListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiChargebackListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiChargebackListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiChargebackListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiChargebackListResponseDtoBuilder data(List value) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeRequestDto.java deleted file mode 100644 index c83024f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeRequestDto.java +++ /dev/null @@ -1,26 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiChargebackSaveDisputeRequestDto { - - /** - * Files to create the dispute (Maximum: 11). - */ - @NonNull - private byte[] files; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.java b/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.java deleted file mode 100644 index 4b4ac51..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Dispute status. - */ -@Getter -@AllArgsConstructor -public enum ApiChargebackSaveDisputeResponseChargebackDisputeStatus { - REQUESTED("REQUESTED"), - ACCEPTED("ACCEPTED"), - REJECTED("REJECTED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiChargebackSaveDisputeResponseChargebackDisputeStatus fromValue(String value) { - return Arrays.stream(ApiChargebackSaveDisputeResponseChargebackDisputeStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseDto.java deleted file mode 100644 index d8efae9..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseDto.java +++ /dev/null @@ -1,86 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiChargebackSaveDisputeResponseDto { - - /** - * Unique identifier of chargeback for which the dispute will be created. - */ - @JsonProperty("chargebackId") - private JsonNullable chargebackId; - - /** - * Dispute status. - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Names of the dispute files. - */ - @JsonProperty("files") - private JsonNullable> files; - - @JsonIgnore - public String getChargebackId() { - return chargebackId.orElse(null); - } - - @JsonIgnore - public ApiChargebackSaveDisputeResponseChargebackDisputeStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public List getFiles() { - return files.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiChargebackSaveDisputeResponseDtoBuilder { - - private JsonNullable chargebackId = JsonNullable.undefined(); - - @JsonProperty("chargebackId") - public ApiChargebackSaveDisputeResponseDtoBuilder chargebackId(String value) { - this.chargebackId = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiChargebackSaveDisputeResponseDtoBuilder status( - ApiChargebackSaveDisputeResponseChargebackDisputeStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable> files = JsonNullable.undefined(); - - @JsonProperty("files") - public ApiChargebackSaveDisputeResponseDtoBuilder files(List value) { - this.files = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCallbackDto.java b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCallbackDto.java deleted file mode 100644 index 22726ab..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCallbackDto.java +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCheckoutSessionCallbackDto { - - /** - * Redirect URL for successful checkout - */ - @NonNull - private String successUrl; - - /** - * Redirect URL for canceled checkout - */ - @NonNull - private String cancelUrl; - - /** - * Redirect URL for expired checkout - */ - @NonNull - private String expiredUrl; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCustomerDataDto.java b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCustomerDataDto.java deleted file mode 100644 index c37ecc6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCustomerDataDto.java +++ /dev/null @@ -1,216 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCheckoutSessionCustomerDataDto { - - /** - * Customer name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Customer CPF or CNPJ - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Customer email - */ - @JsonProperty("email") - private JsonNullable email; - - /** - * Customer phone - */ - @JsonProperty("phone") - private JsonNullable phone; - - /** - * Customer address - */ - @JsonProperty("address") - private JsonNullable address; - - /** - * Address number - */ - @JsonProperty("addressNumber") - private JsonNullable addressNumber; - - /** - * Address complement (max. 255 characters) - */ - @JsonProperty("complement") - private JsonNullable complement; - - /** - * Province of address - */ - @JsonProperty("province") - private JsonNullable province; - - /** - * Address zip code - */ - @JsonProperty("postalCode") - private JsonNullable postalCode; - - /** - * City code - */ - @JsonProperty("city") - private JsonNullable city; - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public String getEmail() { - return email.orElse(null); - } - - @JsonIgnore - public String getPhone() { - return phone.orElse(null); - } - - @JsonIgnore - public String getAddress() { - return address.orElse(null); - } - - @JsonIgnore - public Long getAddressNumber() { - return addressNumber.orElse(null); - } - - @JsonIgnore - public String getComplement() { - return complement.orElse(null); - } - - @JsonIgnore - public String getProvince() { - return province.orElse(null); - } - - @JsonIgnore - public String getPostalCode() { - return postalCode.orElse(null); - } - - @JsonIgnore - public Long getCity() { - return city.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCheckoutSessionCustomerDataDtoBuilder { - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiCheckoutSessionCustomerDataDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiCheckoutSessionCustomerDataDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable email = JsonNullable.undefined(); - - @JsonProperty("email") - public ApiCheckoutSessionCustomerDataDtoBuilder email(String value) { - this.email = JsonNullable.of(value); - return this; - } - - private JsonNullable phone = JsonNullable.undefined(); - - @JsonProperty("phone") - public ApiCheckoutSessionCustomerDataDtoBuilder phone(String value) { - this.phone = JsonNullable.of(value); - return this; - } - - private JsonNullable address = JsonNullable.undefined(); - - @JsonProperty("address") - public ApiCheckoutSessionCustomerDataDtoBuilder address(String value) { - this.address = JsonNullable.of(value); - return this; - } - - private JsonNullable addressNumber = JsonNullable.undefined(); - - @JsonProperty("addressNumber") - public ApiCheckoutSessionCustomerDataDtoBuilder addressNumber(Long value) { - this.addressNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable complement = JsonNullable.undefined(); - - @JsonProperty("complement") - public ApiCheckoutSessionCustomerDataDtoBuilder complement(String value) { - this.complement = JsonNullable.of(value); - return this; - } - - private JsonNullable province = JsonNullable.undefined(); - - @JsonProperty("province") - public ApiCheckoutSessionCustomerDataDtoBuilder province(String value) { - this.province = JsonNullable.of(value); - return this; - } - - private JsonNullable postalCode = JsonNullable.undefined(); - - @JsonProperty("postalCode") - public ApiCheckoutSessionCustomerDataDtoBuilder postalCode(String value) { - this.postalCode = JsonNullable.of(value); - return this; - } - - private JsonNullable city = JsonNullable.undefined(); - - @JsonProperty("city") - public ApiCheckoutSessionCustomerDataDtoBuilder city(Long value) { - 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 deleted file mode 100644 index 1aa3e57..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionInstallmentDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCheckoutSessionInstallmentDto { - - /** - * Maximum number of installments - */ - @JsonProperty("maxInstallmentCount") - private JsonNullable maxInstallmentCount; - - @JsonIgnore - public Long getMaxInstallmentCount() { - return maxInstallmentCount.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCheckoutSessionInstallmentDtoBuilder { - - private JsonNullable maxInstallmentCount = JsonNullable.undefined(); - - @JsonProperty("maxInstallmentCount") - public ApiCheckoutSessionInstallmentDtoBuilder maxInstallmentCount(Long value) { - 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 deleted file mode 100644 index 44108b1..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionItemsDto.java +++ /dev/null @@ -1,70 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCheckoutSessionItemsDto { - - /** - * Item image in Base64 - */ - @NonNull - private String imageBase64; - - /** - * Item name - */ - @NonNull - private String name; - - /** - * Item Quantity - */ - @NonNull - private Long quantity; - - /** - * Item value - */ - @NonNull - private Double value; - - /** - * Item Description - */ - @JsonProperty("description") - private JsonNullable description; - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCheckoutSessionItemsDtoBuilder { - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiCheckoutSessionItemsDtoBuilder description(String value) { - 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 deleted file mode 100644 index 3d5c22c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionResponseDto.java +++ /dev/null @@ -1,186 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCheckoutSessionResponseDto { - - /** - * Payment methods - */ - @JsonProperty("billingTypes") - private JsonNullable> billingTypes; - - /** - * Charge types - */ - @JsonProperty("chargeTypes") - private JsonNullable> chargeTypes; - - /** - * Time in minutes for checkout expiration - */ - @JsonProperty("minutesToExpire") - private JsonNullable minutesToExpire; - - @JsonProperty("callback") - private JsonNullable callback; - - /** - * List of items at checkout - */ - @JsonProperty("items") - private JsonNullable> items; - - @JsonProperty("customerData") - private JsonNullable customerData; - - @JsonProperty("subscription") - private JsonNullable subscription; - - @JsonProperty("installment") - private JsonNullable installment; - - /** - * Split Settings - */ - @JsonProperty("split") - private JsonNullable> split; - - @JsonIgnore - public List getBillingTypes() { - return billingTypes.orElse(null); - } - - @JsonIgnore - public List getChargeTypes() { - return chargeTypes.orElse(null); - } - - @JsonIgnore - public Long getMinutesToExpire() { - return minutesToExpire.orElse(null); - } - - @JsonIgnore - public ApiCheckoutSessionCallbackDto getCallback() { - return callback.orElse(null); - } - - @JsonIgnore - public List getItems() { - return items.orElse(null); - } - - @JsonIgnore - public ApiCheckoutSessionCustomerDataDto getCustomerData() { - return customerData.orElse(null); - } - - @JsonIgnore - public ApiCheckoutSessionSubscriptionDto getSubscription() { - return subscription.orElse(null); - } - - @JsonIgnore - public ApiCheckoutSessionInstallmentDto getInstallment() { - return installment.orElse(null); - } - - @JsonIgnore - public List getSplit() { - return split.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCheckoutSessionResponseDtoBuilder { - - private JsonNullable> billingTypes = JsonNullable.undefined(); - - @JsonProperty("billingTypes") - public ApiCheckoutSessionResponseDtoBuilder billingTypes(List value) { - this.billingTypes = JsonNullable.of(value); - return this; - } - - private JsonNullable> chargeTypes = JsonNullable.undefined(); - - @JsonProperty("chargeTypes") - public ApiCheckoutSessionResponseDtoBuilder chargeTypes(List value) { - this.chargeTypes = JsonNullable.of(value); - return this; - } - - private JsonNullable minutesToExpire = JsonNullable.undefined(); - - @JsonProperty("minutesToExpire") - public ApiCheckoutSessionResponseDtoBuilder minutesToExpire(Long value) { - this.minutesToExpire = JsonNullable.of(value); - return this; - } - - private JsonNullable callback = JsonNullable.undefined(); - - @JsonProperty("callback") - public ApiCheckoutSessionResponseDtoBuilder callback(ApiCheckoutSessionCallbackDto value) { - this.callback = JsonNullable.of(value); - return this; - } - - private JsonNullable> items = JsonNullable.undefined(); - - @JsonProperty("items") - public ApiCheckoutSessionResponseDtoBuilder items(List value) { - this.items = JsonNullable.of(value); - return this; - } - - private JsonNullable customerData = JsonNullable.undefined(); - - @JsonProperty("customerData") - public ApiCheckoutSessionResponseDtoBuilder customerData(ApiCheckoutSessionCustomerDataDto value) { - this.customerData = JsonNullable.of(value); - return this; - } - - private JsonNullable subscription = JsonNullable.undefined(); - - @JsonProperty("subscription") - public ApiCheckoutSessionResponseDtoBuilder subscription(ApiCheckoutSessionSubscriptionDto value) { - this.subscription = JsonNullable.of(value); - return this; - } - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiCheckoutSessionResponseDtoBuilder installment(ApiCheckoutSessionInstallmentDto value) { - this.installment = JsonNullable.of(value); - return this; - } - - private JsonNullable> split = JsonNullable.undefined(); - - @JsonProperty("split") - public ApiCheckoutSessionResponseDtoBuilder split(List value) { - 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 deleted file mode 100644 index 1c10ff5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSaveRequestDto.java +++ /dev/null @@ -1,164 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCheckoutSessionSaveRequestDto { - - /** - * Payment methods - */ - @NonNull - private List billingTypes; - - /** - * Charge types - */ - @NonNull - private List chargeTypes; - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCheckoutSessionCallbackDto callback; - - /** - * List of items at checkout - */ - @NonNull - private List items; - - /** - * Time in minutes for checkout expiration - */ - @JsonProperty("minutesToExpire") - private JsonNullable minutesToExpire; - - @JsonProperty("customerData") - private JsonNullable customerData; - - @JsonProperty("subscription") - private JsonNullable subscription; - - @JsonProperty("installment") - private JsonNullable installment; - - /** - * Split Settings - */ - @JsonProperty("splits") - private JsonNullable> splits; - - @JsonIgnore - public Long getMinutesToExpire() { - return minutesToExpire.orElse(null); - } - - @JsonIgnore - public ApiCheckoutSessionCustomerDataDto getCustomerData() { - return customerData.orElse(null); - } - - @JsonIgnore - public ApiCheckoutSessionSubscriptionDto getSubscription() { - return subscription.orElse(null); - } - - @JsonIgnore - public ApiCheckoutSessionInstallmentDto getInstallment() { - return installment.orElse(null); - } - - @JsonIgnore - public List getSplits() { - return splits.orElse(null); - } - - // 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) { - this.minutesToExpire = JsonNullable.of(value); - return this; - } - - private JsonNullable customerData = JsonNullable.undefined(); - - @JsonProperty("customerData") - public ApiCheckoutSessionSaveRequestDtoBuilder customerData(ApiCheckoutSessionCustomerDataDto value) { - this.customerData = JsonNullable.of(value); - return this; - } - - private JsonNullable subscription = JsonNullable.undefined(); - - @JsonProperty("subscription") - public ApiCheckoutSessionSaveRequestDtoBuilder subscription(ApiCheckoutSessionSubscriptionDto value) { - this.subscription = JsonNullable.of(value); - return this; - } - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiCheckoutSessionSaveRequestDtoBuilder installment(ApiCheckoutSessionInstallmentDto value) { - this.installment = JsonNullable.of(value); - return this; - } - - private JsonNullable> splits = JsonNullable.undefined(); - - @JsonProperty("splits") - public ApiCheckoutSessionSaveRequestDtoBuilder splits(List value) { - 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 deleted file mode 100644 index 465c790..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSplitDto.java +++ /dev/null @@ -1,90 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCheckoutSessionSplitDto { - - /** - * Asaas wallet identifier that will receive the transfer - */ - @NonNull - private String walletId; - - /** - * Fixed amount to be transferred to the account when the payment is received - */ - @JsonProperty("fixedValue") - private JsonNullable fixedValue; - - /** - * Percentage of the net value of the charge to be transferred when received - */ - @JsonProperty("percentageValue") - private JsonNullable percentageValue; - - /** - * (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. - */ - @JsonProperty("totalFixedValue") - private JsonNullable totalFixedValue; - - @JsonIgnore - public Double getFixedValue() { - return fixedValue.orElse(null); - } - - @JsonIgnore - public Double getPercentageValue() { - return percentageValue.orElse(null); - } - - @JsonIgnore - public Double getTotalFixedValue() { - return totalFixedValue.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCheckoutSessionSplitDtoBuilder { - - private JsonNullable fixedValue = JsonNullable.undefined(); - - @JsonProperty("fixedValue") - public ApiCheckoutSessionSplitDtoBuilder fixedValue(Double value) { - this.fixedValue = JsonNullable.of(value); - return this; - } - - private JsonNullable percentageValue = JsonNullable.undefined(); - - @JsonProperty("percentageValue") - public ApiCheckoutSessionSplitDtoBuilder percentageValue(Double value) { - this.percentageValue = JsonNullable.of(value); - return this; - } - - private JsonNullable totalFixedValue = JsonNullable.undefined(); - - @JsonProperty("totalFixedValue") - public ApiCheckoutSessionSplitDtoBuilder totalFixedValue(Double value) { - this.totalFixedValue = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionCycle.java b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionCycle.java deleted file mode 100644 index efe2776..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionCycle.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing frequency - */ -@Getter -@AllArgsConstructor -public enum ApiCheckoutSessionSubscriptionCycle { - WEEKLY("WEEKLY"), - BIWEEKLY("BIWEEKLY"), - MONTHLY("MONTHLY"), - BIMONTHLY("BIMONTHLY"), - QUARTERLY("QUARTERLY"), - SEMIANNUALLY("SEMIANNUALLY"), - YEARLY("YEARLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCheckoutSessionSubscriptionCycle fromValue(String value) { - return Arrays.stream(ApiCheckoutSessionSubscriptionCycle.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionDto.java b/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionDto.java deleted file mode 100644 index bc7bd2e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCheckoutSessionSubscriptionDto { - - /** - * Billing frequency - */ - @JsonProperty("cycle") - private JsonNullable cycle; - - /** - * Deadline for payments to be due - */ - @JsonProperty("endDate") - private JsonNullable endDate; - - /** - * Due date of the next payment to be generated - */ - @JsonProperty("nextDueDate") - private JsonNullable nextDueDate; - - @JsonIgnore - public ApiCheckoutSessionSubscriptionCycle getCycle() { - return cycle.orElse(null); - } - - @JsonIgnore - public String getEndDate() { - return endDate.orElse(null); - } - - @JsonIgnore - public String getNextDueDate() { - return nextDueDate.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCheckoutSessionSubscriptionDtoBuilder { - - private JsonNullable cycle = JsonNullable.undefined(); - - @JsonProperty("cycle") - public ApiCheckoutSessionSubscriptionDtoBuilder cycle(ApiCheckoutSessionSubscriptionCycle value) { - this.cycle = JsonNullable.of(value); - return this; - } - - private JsonNullable endDate = JsonNullable.undefined(); - - @JsonProperty("endDate") - public ApiCheckoutSessionSubscriptionDtoBuilder endDate(String value) { - this.endDate = JsonNullable.of(value); - return this; - } - - private JsonNullable nextDueDate = JsonNullable.undefined(); - - @JsonProperty("nextDueDate") - public ApiCheckoutSessionSubscriptionDtoBuilder nextDueDate(String value) { - 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 deleted file mode 100644 index e2962ae..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportGetResponseDto.java +++ /dev/null @@ -1,140 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCreditBureauReportGetResponseDto { - - /** - * Unique report identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Date of consultation - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * CPF or CNPJ consulted manually - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Unique customer identifier in Asaas - */ - @JsonProperty("customer") - private JsonNullable customer; - - /** - * Url to download the report. Available until 11:59 pm on the day of the appointment. - */ - @JsonProperty("downloadUrl") - private JsonNullable downloadUrl; - - /** - * PDF of the query report in Base64 (this field is only returned when the report is created) - */ - @JsonProperty("reportFile") - private JsonNullable reportFile; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public String getCustomer() { - return customer.orElse(null); - } - - @JsonIgnore - public String getDownloadUrl() { - return downloadUrl.orElse(null); - } - - @JsonIgnore - public String getReportFile() { - return reportFile.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCreditBureauReportGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiCreditBureauReportGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiCreditBureauReportGetResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiCreditBureauReportGetResponseDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable customer = JsonNullable.undefined(); - - @JsonProperty("customer") - public ApiCreditBureauReportGetResponseDtoBuilder customer(String value) { - this.customer = JsonNullable.of(value); - return this; - } - - private JsonNullable downloadUrl = JsonNullable.undefined(); - - @JsonProperty("downloadUrl") - public ApiCreditBureauReportGetResponseDtoBuilder downloadUrl(String value) { - this.downloadUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable reportFile = JsonNullable.undefined(); - - @JsonProperty("reportFile") - public ApiCreditBureauReportGetResponseDtoBuilder reportFile(String value) { - 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 deleted file mode 100644 index 25cc68e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCreditBureauReportListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCreditBureauReportListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCreditBureauReportListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiCreditBureauReportListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiCreditBureauReportListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiCreditBureauReportListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiCreditBureauReportListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiCreditBureauReportListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index 4f6645f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportSaveRequestDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCreditBureauReportSaveRequestDto { - - /** - * Unique customer identifier in Asaas - */ - @JsonProperty("customer") - private JsonNullable customer; - - /** - * CPF or CNPJ of the customer. Enter this field if your client is not registered with Asaas - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - @JsonIgnore - public String getCustomer() { - return customer.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCreditBureauReportSaveRequestDtoBuilder { - - private JsonNullable customer = JsonNullable.undefined(); - - @JsonProperty("customer") - public ApiCreditBureauReportSaveRequestDtoBuilder customer(String value) { - this.customer = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiCreditBureauReportSaveRequestDtoBuilder cpfCnpj(String value) { - 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 deleted file mode 100644 index ec82151..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardHolderInfoRequestDto.java +++ /dev/null @@ -1,101 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCreditCardHolderInfoRequestDto { - - /** - * Name of card holder - */ - @NonNull - private String name; - - /** - * Cardholder email - */ - @NonNull - private String email; - - /** - * CPF or CNPJ of the cardholder - */ - @NonNull - private String cpfCnpj; - - /** - * Cardholder zip code - */ - @NonNull - private String postalCode; - - /** - * Cardholder address number - */ - @NonNull - private String addressNumber; - - /** - * Phone with cardholder's area code - */ - @NonNull - private String phone; - - /** - * Supplementing the cardholder's address - */ - @JsonProperty("addressComplement") - private JsonNullable addressComplement; - - /** - * Cardholder's cell phone - */ - @JsonProperty("mobilePhone") - private JsonNullable mobilePhone; - - @JsonIgnore - public String getAddressComplement() { - return addressComplement.orElse(null); - } - - @JsonIgnore - public String getMobilePhone() { - return mobilePhone.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCreditCardHolderInfoRequestDtoBuilder { - - private JsonNullable addressComplement = JsonNullable.undefined(); - - @JsonProperty("addressComplement") - public ApiCreditCardHolderInfoRequestDtoBuilder addressComplement(String value) { - this.addressComplement = JsonNullable.of(value); - return this; - } - - private JsonNullable mobilePhone = JsonNullable.undefined(); - - @JsonProperty("mobilePhone") - public ApiCreditCardHolderInfoRequestDtoBuilder mobilePhone(String value) { - this.mobilePhone = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCreditCardRequestDto.java deleted file mode 100644 index 1a8534a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardRequestDto.java +++ /dev/null @@ -1,50 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCreditCardRequestDto { - - /** - * Name printed on card - */ - @NonNull - private String holderName; - - /** - * Card number - */ - @NonNull - private String number; - - /** - * Expiration month with 2 digits - */ - @NonNull - private String expiryMonth; - - /** - * Expiration year with 4 digits - */ - @NonNull - private String expiryYear; - - /** - * Security code - */ - @NonNull - private String ccv; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeRequestDto.java deleted file mode 100644 index cc2e6dd..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeRequestDto.java +++ /dev/null @@ -1,77 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonInclude; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCreditCardTokenizeRequestDto { - - /** - * Unique customer identifier in Asaas - */ - @NonNull - private String customer; - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardRequestDto creditCard; - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardHolderInfoRequestDto creditCardHolderInfo; - - /** - * IP from where the customer is making the purchase. Your server's IP must not be entered. - */ - @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/ApiCreditCardTokenizeResponseCreditCardBrand.java b/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseCreditCardBrand.java deleted file mode 100644 index cf192fb..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseCreditCardBrand.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Brand of the card used - */ -@Getter -@AllArgsConstructor -public enum ApiCreditCardTokenizeResponseCreditCardBrand { - VISA("VISA"), - MASTERCARD("MASTERCARD"), - ELO("ELO"), - DINERS("DINERS"), - DISCOVER("DISCOVER"), - AMEX("AMEX"), - HIPERCARD("HIPERCARD"), - CABAL("CABAL"), - BANESCARD("BANESCARD"), - CREDZ("CREDZ"), - SOROCRED("SOROCRED"), - CREDSYSTEM("CREDSYSTEM"), - JCB("JCB"), - UNKNOWN("UNKNOWN"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCreditCardTokenizeResponseCreditCardBrand fromValue(String value) { - return Arrays.stream(ApiCreditCardTokenizeResponseCreditCardBrand.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseDto.java deleted file mode 100644 index 7987b1e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCreditCardTokenizeResponseDto { - - /** - * Last 4 digits of the card used - */ - @JsonProperty("creditCardNumber") - private JsonNullable creditCardNumber; - - /** - * Brand of the card used - */ - @JsonProperty("creditCardBrand") - private JsonNullable creditCardBrand; - - /** - * Credit card token that can be sent in future transactions without the need to re-enter card and cardholder details. - */ - @JsonProperty("creditCardToken") - private JsonNullable creditCardToken; - - @JsonIgnore - public String getCreditCardNumber() { - return creditCardNumber.orElse(null); - } - - @JsonIgnore - public ApiCreditCardTokenizeResponseCreditCardBrand getCreditCardBrand() { - return creditCardBrand.orElse(null); - } - - @JsonIgnore - public String getCreditCardToken() { - return creditCardToken.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCreditCardTokenizeResponseDtoBuilder { - - private JsonNullable creditCardNumber = JsonNullable.undefined(); - - @JsonProperty("creditCardNumber") - public ApiCreditCardTokenizeResponseDtoBuilder creditCardNumber(String value) { - this.creditCardNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCardBrand = JsonNullable.undefined(); - - @JsonProperty("creditCardBrand") - public ApiCreditCardTokenizeResponseDtoBuilder creditCardBrand(ApiCreditCardTokenizeResponseCreditCardBrand value) { - this.creditCardBrand = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCardToken = JsonNullable.undefined(); - - @JsonProperty("creditCardToken") - public ApiCreditCardTokenizeResponseDtoBuilder creditCardToken(String value) { - 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 deleted file mode 100644 index 62a2627..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountDeleteResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerAccountDeleteResponseDto { - - /** - * Indicates whether the client has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Unique customer identifier - */ - @JsonProperty("id") - private JsonNullable id; - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerAccountDeleteResponseDtoBuilder { - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiCustomerAccountDeleteResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiCustomerAccountDeleteResponseDtoBuilder id(String value) { - 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 deleted file mode 100644 index d517142..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponseDto.java +++ /dev/null @@ -1,482 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerAccountGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique customer identifier - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Customer creation date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Client name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Customer email - */ - @JsonProperty("email") - private JsonNullable email; - - /** - * Customer phone - */ - @JsonProperty("phone") - private JsonNullable phone; - - /** - * Customer cell phone - */ - @JsonProperty("mobilePhone") - private JsonNullable mobilePhone; - - /** - * Customer address - */ - @JsonProperty("address") - private JsonNullable address; - - /** - * Customer address number - */ - @JsonProperty("addressNumber") - private JsonNullable addressNumber; - - /** - * Customer address complement - */ - @JsonProperty("complement") - private JsonNullable complement; - - /** - * Customer address neighborhood - */ - @JsonProperty("province") - private JsonNullable province; - - /** - * Unique city identifier in Asaas - */ - @JsonProperty("city") - private JsonNullable city; - - /** - * City of customer address - */ - @JsonProperty("cityName") - private JsonNullable cityName; - - /** - * Customer address status - */ - @JsonProperty("state") - private JsonNullable state; - - /** - * Customer country - */ - @JsonProperty("country") - private JsonNullable country; - - /** - * Customer address zip code - */ - @JsonProperty("postalCode") - private JsonNullable postalCode; - - /** - * Customer CPF or CNPJ - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Kind of person - */ - @JsonProperty("personType") - private JsonNullable personType; - - /** - * Indicates whether it is a deleted client - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Additional customer emails - */ - @JsonProperty("additionalEmails") - private JsonNullable additionalEmails; - - /** - * External customer reference - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Indicates whether notifications are disabled - */ - @JsonProperty("notificationDisabled") - private JsonNullable notificationDisabled; - - /** - * Customer Observations - */ - @JsonProperty("observations") - private JsonNullable observations; - - /** - * Indicates if it's non-brazilian customer - */ - @JsonProperty("foreignCustomer") - private JsonNullable foreignCustomer; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getEmail() { - return email.orElse(null); - } - - @JsonIgnore - public String getPhone() { - return phone.orElse(null); - } - - @JsonIgnore - public String getMobilePhone() { - return mobilePhone.orElse(null); - } - - @JsonIgnore - public String getAddress() { - return address.orElse(null); - } - - @JsonIgnore - public String getAddressNumber() { - return addressNumber.orElse(null); - } - - @JsonIgnore - public String getComplement() { - return complement.orElse(null); - } - - @JsonIgnore - public String getProvince() { - return province.orElse(null); - } - - @JsonIgnore - public String getCity() { - return city.orElse(null); - } - - @JsonIgnore - public String getCityName() { - return cityName.orElse(null); - } - - @JsonIgnore - public String getState() { - return state.orElse(null); - } - - @JsonIgnore - public String getCountry() { - return country.orElse(null); - } - - @JsonIgnore - public String getPostalCode() { - return postalCode.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public ApiCustomerAccountGetResponsePersonType getPersonType() { - return personType.orElse(null); - } - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public String getAdditionalEmails() { - return additionalEmails.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public Boolean getNotificationDisabled() { - return notificationDisabled.orElse(null); - } - - @JsonIgnore - public String getObservations() { - return observations.orElse(null); - } - - @JsonIgnore - public Boolean getForeignCustomer() { - return foreignCustomer.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerAccountGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCustomerAccountGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiCustomerAccountGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiCustomerAccountGetResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiCustomerAccountGetResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable email = JsonNullable.undefined(); - - @JsonProperty("email") - public ApiCustomerAccountGetResponseDtoBuilder email(String value) { - this.email = JsonNullable.of(value); - return this; - } - - private JsonNullable phone = JsonNullable.undefined(); - - @JsonProperty("phone") - public ApiCustomerAccountGetResponseDtoBuilder phone(String value) { - this.phone = JsonNullable.of(value); - return this; - } - - private JsonNullable mobilePhone = JsonNullable.undefined(); - - @JsonProperty("mobilePhone") - public ApiCustomerAccountGetResponseDtoBuilder mobilePhone(String value) { - this.mobilePhone = JsonNullable.of(value); - return this; - } - - private JsonNullable address = JsonNullable.undefined(); - - @JsonProperty("address") - public ApiCustomerAccountGetResponseDtoBuilder address(String value) { - this.address = JsonNullable.of(value); - return this; - } - - private JsonNullable addressNumber = JsonNullable.undefined(); - - @JsonProperty("addressNumber") - public ApiCustomerAccountGetResponseDtoBuilder addressNumber(String value) { - this.addressNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable complement = JsonNullable.undefined(); - - @JsonProperty("complement") - public ApiCustomerAccountGetResponseDtoBuilder complement(String value) { - this.complement = JsonNullable.of(value); - return this; - } - - private JsonNullable province = JsonNullable.undefined(); - - @JsonProperty("province") - public ApiCustomerAccountGetResponseDtoBuilder province(String value) { - this.province = JsonNullable.of(value); - return this; - } - - private JsonNullable city = JsonNullable.undefined(); - - @JsonProperty("city") - public ApiCustomerAccountGetResponseDtoBuilder city(String value) { - this.city = JsonNullable.of(value); - return this; - } - - private JsonNullable cityName = JsonNullable.undefined(); - - @JsonProperty("cityName") - public ApiCustomerAccountGetResponseDtoBuilder cityName(String value) { - this.cityName = JsonNullable.of(value); - return this; - } - - private JsonNullable state = JsonNullable.undefined(); - - @JsonProperty("state") - public ApiCustomerAccountGetResponseDtoBuilder state(String value) { - this.state = JsonNullable.of(value); - return this; - } - - private JsonNullable country = JsonNullable.undefined(); - - @JsonProperty("country") - public ApiCustomerAccountGetResponseDtoBuilder country(String value) { - this.country = JsonNullable.of(value); - return this; - } - - private JsonNullable postalCode = JsonNullable.undefined(); - - @JsonProperty("postalCode") - public ApiCustomerAccountGetResponseDtoBuilder postalCode(String value) { - this.postalCode = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiCustomerAccountGetResponseDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable personType = JsonNullable.undefined(); - - @JsonProperty("personType") - public ApiCustomerAccountGetResponseDtoBuilder personType(ApiCustomerAccountGetResponsePersonType value) { - this.personType = JsonNullable.of(value); - return this; - } - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiCustomerAccountGetResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable additionalEmails = JsonNullable.undefined(); - - @JsonProperty("additionalEmails") - public ApiCustomerAccountGetResponseDtoBuilder additionalEmails(String value) { - this.additionalEmails = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiCustomerAccountGetResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable notificationDisabled = JsonNullable.undefined(); - - @JsonProperty("notificationDisabled") - public ApiCustomerAccountGetResponseDtoBuilder notificationDisabled(Boolean value) { - this.notificationDisabled = JsonNullable.of(value); - return this; - } - - private JsonNullable observations = JsonNullable.undefined(); - - @JsonProperty("observations") - public ApiCustomerAccountGetResponseDtoBuilder observations(String value) { - this.observations = JsonNullable.of(value); - return this; - } - - private JsonNullable foreignCustomer = JsonNullable.undefined(); - - @JsonProperty("foreignCustomer") - public ApiCustomerAccountGetResponseDtoBuilder foreignCustomer(Boolean value) { - this.foreignCustomer = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponsePersonType.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponsePersonType.java deleted file mode 100644 index 270d81b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponsePersonType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Kind of person - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerAccountGetResponsePersonType { - JURIDICA("JURIDICA"), - FISICA("FISICA"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerAccountGetResponsePersonType fromValue(String value) { - return Arrays.stream(ApiCustomerAccountGetResponsePersonType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountListResponseDto.java deleted file mode 100644 index 8c22c72..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerAccountListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerAccountListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCustomerAccountListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiCustomerAccountListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiCustomerAccountListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiCustomerAccountListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiCustomerAccountListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiCustomerAccountListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index 63aa6a5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountNumberDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerAccountNumberDto { - - /** - * Account agency - */ - @JsonProperty("agency") - private JsonNullable agency; - - /** - * Account number - */ - @JsonProperty("account") - private JsonNullable account; - - /** - * Account digit - */ - @JsonProperty("accountDigit") - private JsonNullable accountDigit; - - @JsonIgnore - public String getAgency() { - return agency.orElse(null); - } - - @JsonIgnore - public String getAccount() { - return account.orElse(null); - } - - @JsonIgnore - public String getAccountDigit() { - return accountDigit.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerAccountNumberDtoBuilder { - - private JsonNullable agency = JsonNullable.undefined(); - - @JsonProperty("agency") - public ApiCustomerAccountNumberDtoBuilder agency(String value) { - this.agency = JsonNullable.of(value); - return this; - } - - private JsonNullable account = JsonNullable.undefined(); - - @JsonProperty("account") - public ApiCustomerAccountNumberDtoBuilder account(String value) { - this.account = JsonNullable.of(value); - return this; - } - - private JsonNullable accountDigit = JsonNullable.undefined(); - - @JsonProperty("accountDigit") - public ApiCustomerAccountNumberDtoBuilder accountDigit(String value) { - 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 deleted file mode 100644 index 2addbdb..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountSaveRequestDto.java +++ /dev/null @@ -1,362 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerAccountSaveRequestDto { - - /** - * Client name - */ - @NonNull - private String name; - - /** - * Customer CPF or CNPJ - */ - @NonNull - private String cpfCnpj; - - /** - * Customer email - */ - @JsonProperty("email") - private JsonNullable email; - - /** - * Landline - */ - @JsonProperty("phone") - private JsonNullable phone; - - /** - * Cell phone - */ - @JsonProperty("mobilePhone") - private JsonNullable mobilePhone; - - /** - * Public place - */ - @JsonProperty("address") - private JsonNullable address; - - /** - * Address number - */ - @JsonProperty("addressNumber") - private JsonNullable addressNumber; - - /** - * Address complement (max. 255 characters) - */ - @JsonProperty("complement") - private JsonNullable complement; - - /** - * Neighborhood - */ - @JsonProperty("province") - private JsonNullable province; - - /** - * Address zip code - */ - @JsonProperty("postalCode") - private JsonNullable postalCode; - - /** - * Customer identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * true to disable sending billing notifications - */ - @JsonProperty("notificationDisabled") - private JsonNullable notificationDisabled; - - /** - * Additional emails for sending billing notifications separated by "," - */ - @JsonProperty("additionalEmails") - private JsonNullable additionalEmails; - - /** - * Customer municipal registration - */ - @JsonProperty("municipalInscription") - private JsonNullable municipalInscription; - - /** - * Customer state registration - */ - @JsonProperty("stateInscription") - private JsonNullable stateInscription; - - /** - * Additional observations - */ - @JsonProperty("observations") - private JsonNullable observations; - - /** - * Name of the group the customer belongs to - */ - @JsonProperty("groupName") - private JsonNullable groupName; - - /** - * Company - */ - @JsonProperty("company") - private JsonNullable company; - - /** - * inform true if it's a non-brazilian customer - */ - @JsonProperty("foreignCustomer") - private JsonNullable foreignCustomer; - - @JsonIgnore - public String getEmail() { - return email.orElse(null); - } - - @JsonIgnore - public String getPhone() { - return phone.orElse(null); - } - - @JsonIgnore - public String getMobilePhone() { - return mobilePhone.orElse(null); - } - - @JsonIgnore - public String getAddress() { - return address.orElse(null); - } - - @JsonIgnore - public String getAddressNumber() { - return addressNumber.orElse(null); - } - - @JsonIgnore - public String getComplement() { - return complement.orElse(null); - } - - @JsonIgnore - public String getProvince() { - return province.orElse(null); - } - - @JsonIgnore - public String getPostalCode() { - return postalCode.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public Boolean getNotificationDisabled() { - return notificationDisabled.orElse(null); - } - - @JsonIgnore - public String getAdditionalEmails() { - return additionalEmails.orElse(null); - } - - @JsonIgnore - public String getMunicipalInscription() { - return municipalInscription.orElse(null); - } - - @JsonIgnore - public String getStateInscription() { - return stateInscription.orElse(null); - } - - @JsonIgnore - public String getObservations() { - return observations.orElse(null); - } - - @JsonIgnore - public String getGroupName() { - return groupName.orElse(null); - } - - @JsonIgnore - public String getCompany() { - return company.orElse(null); - } - - @JsonIgnore - public Boolean getForeignCustomer() { - return foreignCustomer.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerAccountSaveRequestDtoBuilder { - - private JsonNullable email = JsonNullable.undefined(); - - @JsonProperty("email") - public ApiCustomerAccountSaveRequestDtoBuilder email(String value) { - this.email = JsonNullable.of(value); - return this; - } - - private JsonNullable phone = JsonNullable.undefined(); - - @JsonProperty("phone") - public ApiCustomerAccountSaveRequestDtoBuilder phone(String value) { - this.phone = JsonNullable.of(value); - return this; - } - - private JsonNullable mobilePhone = JsonNullable.undefined(); - - @JsonProperty("mobilePhone") - public ApiCustomerAccountSaveRequestDtoBuilder mobilePhone(String value) { - this.mobilePhone = JsonNullable.of(value); - return this; - } - - private JsonNullable address = JsonNullable.undefined(); - - @JsonProperty("address") - public ApiCustomerAccountSaveRequestDtoBuilder address(String value) { - this.address = JsonNullable.of(value); - return this; - } - - private JsonNullable addressNumber = JsonNullable.undefined(); - - @JsonProperty("addressNumber") - public ApiCustomerAccountSaveRequestDtoBuilder addressNumber(String value) { - this.addressNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable complement = JsonNullable.undefined(); - - @JsonProperty("complement") - public ApiCustomerAccountSaveRequestDtoBuilder complement(String value) { - this.complement = JsonNullable.of(value); - return this; - } - - private JsonNullable province = JsonNullable.undefined(); - - @JsonProperty("province") - public ApiCustomerAccountSaveRequestDtoBuilder province(String value) { - this.province = JsonNullable.of(value); - return this; - } - - private JsonNullable postalCode = JsonNullable.undefined(); - - @JsonProperty("postalCode") - public ApiCustomerAccountSaveRequestDtoBuilder postalCode(String value) { - this.postalCode = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiCustomerAccountSaveRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable notificationDisabled = JsonNullable.undefined(); - - @JsonProperty("notificationDisabled") - public ApiCustomerAccountSaveRequestDtoBuilder notificationDisabled(Boolean value) { - this.notificationDisabled = JsonNullable.of(value); - return this; - } - - private JsonNullable additionalEmails = JsonNullable.undefined(); - - @JsonProperty("additionalEmails") - public ApiCustomerAccountSaveRequestDtoBuilder additionalEmails(String value) { - this.additionalEmails = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalInscription = JsonNullable.undefined(); - - @JsonProperty("municipalInscription") - public ApiCustomerAccountSaveRequestDtoBuilder municipalInscription(String value) { - this.municipalInscription = JsonNullable.of(value); - return this; - } - - private JsonNullable stateInscription = JsonNullable.undefined(); - - @JsonProperty("stateInscription") - public ApiCustomerAccountSaveRequestDtoBuilder stateInscription(String value) { - this.stateInscription = JsonNullable.of(value); - return this; - } - - private JsonNullable observations = JsonNullable.undefined(); - - @JsonProperty("observations") - public ApiCustomerAccountSaveRequestDtoBuilder observations(String value) { - this.observations = JsonNullable.of(value); - return this; - } - - private JsonNullable groupName = JsonNullable.undefined(); - - @JsonProperty("groupName") - public ApiCustomerAccountSaveRequestDtoBuilder groupName(String value) { - this.groupName = JsonNullable.of(value); - return this; - } - - private JsonNullable company = JsonNullable.undefined(); - - @JsonProperty("company") - public ApiCustomerAccountSaveRequestDtoBuilder company(String value) { - this.company = JsonNullable.of(value); - return this; - } - - private JsonNullable foreignCustomer = JsonNullable.undefined(); - - @JsonProperty("foreignCustomer") - public ApiCustomerAccountSaveRequestDtoBuilder foreignCustomer(Boolean value) { - 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 deleted file mode 100644 index e737a70..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountUpdateRequestDto.java +++ /dev/null @@ -1,387 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerAccountUpdateRequestDto { - - /** - * Client name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Customer CPF or CNPJ - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Customer email - */ - @JsonProperty("email") - private JsonNullable email; - - /** - * Landline - */ - @JsonProperty("phone") - private JsonNullable phone; - - /** - * Cell phone - */ - @JsonProperty("mobilePhone") - private JsonNullable mobilePhone; - - /** - * Public place - */ - @JsonProperty("address") - private JsonNullable address; - - /** - * Address number - */ - @JsonProperty("addressNumber") - private JsonNullable addressNumber; - - /** - * Address complement - */ - @JsonProperty("complement") - private JsonNullable complement; - - /** - * Neighborhood - */ - @JsonProperty("province") - private JsonNullable province; - - /** - * Address zip code - */ - @JsonProperty("postalCode") - private JsonNullable postalCode; - - /** - * Customer identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * true to disable sending billing notifications - */ - @JsonProperty("notificationDisabled") - private JsonNullable notificationDisabled; - - /** - * Additional emails for sending billing notifications separated by "," - */ - @JsonProperty("additionalEmails") - private JsonNullable additionalEmails; - - /** - * Customer municipal registration - */ - @JsonProperty("municipalInscription") - private JsonNullable municipalInscription; - - /** - * Customer state registration - */ - @JsonProperty("stateInscription") - private JsonNullable stateInscription; - - /** - * Additional observations - */ - @JsonProperty("observations") - private JsonNullable observations; - - /** - * Name of the group the customer belongs to - */ - @JsonProperty("groupName") - private JsonNullable groupName; - - /** - * Company - */ - @JsonProperty("company") - private JsonNullable company; - - /** - * inform true if it's a non-brazilian customer - */ - @JsonProperty("foreignCustomer") - private JsonNullable foreignCustomer; - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public String getEmail() { - return email.orElse(null); - } - - @JsonIgnore - public String getPhone() { - return phone.orElse(null); - } - - @JsonIgnore - public String getMobilePhone() { - return mobilePhone.orElse(null); - } - - @JsonIgnore - public String getAddress() { - return address.orElse(null); - } - - @JsonIgnore - public String getAddressNumber() { - return addressNumber.orElse(null); - } - - @JsonIgnore - public String getComplement() { - return complement.orElse(null); - } - - @JsonIgnore - public String getProvince() { - return province.orElse(null); - } - - @JsonIgnore - public String getPostalCode() { - return postalCode.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public Boolean getNotificationDisabled() { - return notificationDisabled.orElse(null); - } - - @JsonIgnore - public String getAdditionalEmails() { - return additionalEmails.orElse(null); - } - - @JsonIgnore - public String getMunicipalInscription() { - return municipalInscription.orElse(null); - } - - @JsonIgnore - public String getStateInscription() { - return stateInscription.orElse(null); - } - - @JsonIgnore - public String getObservations() { - return observations.orElse(null); - } - - @JsonIgnore - public String getGroupName() { - return groupName.orElse(null); - } - - @JsonIgnore - public String getCompany() { - return company.orElse(null); - } - - @JsonIgnore - public Boolean getForeignCustomer() { - return foreignCustomer.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerAccountUpdateRequestDtoBuilder { - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiCustomerAccountUpdateRequestDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiCustomerAccountUpdateRequestDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable email = JsonNullable.undefined(); - - @JsonProperty("email") - public ApiCustomerAccountUpdateRequestDtoBuilder email(String value) { - this.email = JsonNullable.of(value); - return this; - } - - private JsonNullable phone = JsonNullable.undefined(); - - @JsonProperty("phone") - public ApiCustomerAccountUpdateRequestDtoBuilder phone(String value) { - this.phone = JsonNullable.of(value); - return this; - } - - private JsonNullable mobilePhone = JsonNullable.undefined(); - - @JsonProperty("mobilePhone") - public ApiCustomerAccountUpdateRequestDtoBuilder mobilePhone(String value) { - this.mobilePhone = JsonNullable.of(value); - return this; - } - - private JsonNullable address = JsonNullable.undefined(); - - @JsonProperty("address") - public ApiCustomerAccountUpdateRequestDtoBuilder address(String value) { - this.address = JsonNullable.of(value); - return this; - } - - private JsonNullable addressNumber = JsonNullable.undefined(); - - @JsonProperty("addressNumber") - public ApiCustomerAccountUpdateRequestDtoBuilder addressNumber(String value) { - this.addressNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable complement = JsonNullable.undefined(); - - @JsonProperty("complement") - public ApiCustomerAccountUpdateRequestDtoBuilder complement(String value) { - this.complement = JsonNullable.of(value); - return this; - } - - private JsonNullable province = JsonNullable.undefined(); - - @JsonProperty("province") - public ApiCustomerAccountUpdateRequestDtoBuilder province(String value) { - this.province = JsonNullable.of(value); - return this; - } - - private JsonNullable postalCode = JsonNullable.undefined(); - - @JsonProperty("postalCode") - public ApiCustomerAccountUpdateRequestDtoBuilder postalCode(String value) { - this.postalCode = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiCustomerAccountUpdateRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable notificationDisabled = JsonNullable.undefined(); - - @JsonProperty("notificationDisabled") - public ApiCustomerAccountUpdateRequestDtoBuilder notificationDisabled(Boolean value) { - this.notificationDisabled = JsonNullable.of(value); - return this; - } - - private JsonNullable additionalEmails = JsonNullable.undefined(); - - @JsonProperty("additionalEmails") - public ApiCustomerAccountUpdateRequestDtoBuilder additionalEmails(String value) { - this.additionalEmails = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalInscription = JsonNullable.undefined(); - - @JsonProperty("municipalInscription") - public ApiCustomerAccountUpdateRequestDtoBuilder municipalInscription(String value) { - this.municipalInscription = JsonNullable.of(value); - return this; - } - - private JsonNullable stateInscription = JsonNullable.undefined(); - - @JsonProperty("stateInscription") - public ApiCustomerAccountUpdateRequestDtoBuilder stateInscription(String value) { - this.stateInscription = JsonNullable.of(value); - return this; - } - - private JsonNullable observations = JsonNullable.undefined(); - - @JsonProperty("observations") - public ApiCustomerAccountUpdateRequestDtoBuilder observations(String value) { - this.observations = JsonNullable.of(value); - return this; - } - - private JsonNullable groupName = JsonNullable.undefined(); - - @JsonProperty("groupName") - public ApiCustomerAccountUpdateRequestDtoBuilder groupName(String value) { - this.groupName = JsonNullable.of(value); - return this; - } - - private JsonNullable company = JsonNullable.undefined(); - - @JsonProperty("company") - public ApiCustomerAccountUpdateRequestDtoBuilder company(String value) { - this.company = JsonNullable.of(value); - return this; - } - - private JsonNullable foreignCustomer = JsonNullable.undefined(); - - @JsonProperty("foreignCustomer") - public ApiCustomerAccountUpdateRequestDtoBuilder foreignCustomer(Boolean value) { - 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 deleted file mode 100644 index 859604f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoGetResponseDto.java +++ /dev/null @@ -1,349 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerFiscalInfoGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Email used by Asaas to send invoice notifications and alerts - */ - @JsonProperty("email") - private JsonNullable email; - - /** - * Company municipal registration - */ - @JsonProperty("municipalInscription") - private JsonNullable municipalInscription; - - /** - * Indicates whether the company opts for the simple national system - */ - @JsonProperty("simplesNacional") - private JsonNullable simplesNacional; - - /** - * Identifies whether the company is classified as a cultural promoter - */ - @JsonProperty("culturalProjectsPromoter") - private JsonNullable culturalProjectsPromoter; - - /** - * CNAE code - */ - @JsonProperty("cnae") - private JsonNullable cnae; - - /** - * Special taxation regime identifier - */ - @JsonProperty("specialTaxRegime") - private JsonNullable specialTaxRegime; - - /** - * Service list item, as http://www.planalto.gov.br/ccivil_03/leis/LCP/Lcp116.htm - */ - @JsonProperty("serviceListItem") - private JsonNullable serviceListItem; - - /** - * NBS Code (Brazilian Nomenclature of Services). It must be included on the NFS-e (Electronic Service Invoice) when required by the municipal government and/or for import or export services. Check with your local government or your accounting department to determine whether this information is necessary. - */ - @JsonProperty("nbsCode") - private JsonNullable nbsCode; - - /** - * Serial Number registered for the company - */ - @JsonProperty("rpsSerie") - private JsonNullable rpsSerie; - - /** - * RPS number used in the last invoice issued to your company - */ - @JsonProperty("rpsNumber") - private JsonNullable rpsNumber; - - /** - * Batch number used on the last invoice issued by your company - */ - @JsonProperty("loteNumber") - private JsonNullable loteNumber; - - /** - * User to access your city's city hall website - */ - @JsonProperty("username") - private JsonNullable username; - - /** - * Indicates whether the password to access the city hall website has been entered - */ - @JsonProperty("passwordSent") - private JsonNullable passwordSent; - - /** - * Indicates whether the token for accessing the city hall website was provided - */ - @JsonProperty("accessTokenSent") - private JsonNullable accessTokenSent; - - /** - * Indicates whether the digital certificate for access to the city hall website has been provided - */ - @JsonProperty("certificateSent") - private JsonNullable certificateSent; - - /** - * Identifier of the tax calculation regime - */ - @JsonProperty("nationalPortalTaxCalculationRegime") - private JsonNullable nationalPortalTaxCalculationRegime; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getEmail() { - return email.orElse(null); - } - - @JsonIgnore - public String getMunicipalInscription() { - return municipalInscription.orElse(null); - } - - @JsonIgnore - public Boolean getSimplesNacional() { - return simplesNacional.orElse(null); - } - - @JsonIgnore - public Boolean getCulturalProjectsPromoter() { - return culturalProjectsPromoter.orElse(null); - } - - @JsonIgnore - public String getCnae() { - return cnae.orElse(null); - } - - @JsonIgnore - public String getSpecialTaxRegime() { - return specialTaxRegime.orElse(null); - } - - @JsonIgnore - public String getServiceListItem() { - return serviceListItem.orElse(null); - } - - @JsonIgnore - public String getNbsCode() { - return nbsCode.orElse(null); - } - - @JsonIgnore - public String getRpsSerie() { - return rpsSerie.orElse(null); - } - - @JsonIgnore - public Long getRpsNumber() { - return rpsNumber.orElse(null); - } - - @JsonIgnore - public Long getLoteNumber() { - return loteNumber.orElse(null); - } - - @JsonIgnore - public String getUsername() { - return username.orElse(null); - } - - @JsonIgnore - public Boolean getPasswordSent() { - return passwordSent.orElse(null); - } - - @JsonIgnore - public Boolean getAccessTokenSent() { - return accessTokenSent.orElse(null); - } - - @JsonIgnore - public Boolean getCertificateSent() { - return certificateSent.orElse(null); - } - - @JsonIgnore - public String getNationalPortalTaxCalculationRegime() { - return nationalPortalTaxCalculationRegime.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCustomerFiscalInfoGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable email = JsonNullable.undefined(); - - @JsonProperty("email") - public ApiCustomerFiscalInfoGetResponseDtoBuilder email(String value) { - this.email = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalInscription = JsonNullable.undefined(); - - @JsonProperty("municipalInscription") - public ApiCustomerFiscalInfoGetResponseDtoBuilder municipalInscription(String value) { - this.municipalInscription = JsonNullable.of(value); - return this; - } - - private JsonNullable simplesNacional = JsonNullable.of(true); - - @JsonProperty("simplesNacional") - public ApiCustomerFiscalInfoGetResponseDtoBuilder simplesNacional(Boolean value) { - this.simplesNacional = JsonNullable.of(value); - return this; - } - - private JsonNullable culturalProjectsPromoter = JsonNullable.of(true); - - @JsonProperty("culturalProjectsPromoter") - public ApiCustomerFiscalInfoGetResponseDtoBuilder culturalProjectsPromoter(Boolean value) { - this.culturalProjectsPromoter = JsonNullable.of(value); - return this; - } - - private JsonNullable cnae = JsonNullable.undefined(); - - @JsonProperty("cnae") - public ApiCustomerFiscalInfoGetResponseDtoBuilder cnae(String value) { - this.cnae = JsonNullable.of(value); - return this; - } - - private JsonNullable specialTaxRegime = JsonNullable.undefined(); - - @JsonProperty("specialTaxRegime") - public ApiCustomerFiscalInfoGetResponseDtoBuilder specialTaxRegime(String value) { - this.specialTaxRegime = JsonNullable.of(value); - return this; - } - - private JsonNullable serviceListItem = JsonNullable.undefined(); - - @JsonProperty("serviceListItem") - public ApiCustomerFiscalInfoGetResponseDtoBuilder serviceListItem(String value) { - this.serviceListItem = JsonNullable.of(value); - return this; - } - - private JsonNullable nbsCode = JsonNullable.undefined(); - - @JsonProperty("nbsCode") - public ApiCustomerFiscalInfoGetResponseDtoBuilder nbsCode(String value) { - this.nbsCode = JsonNullable.of(value); - return this; - } - - private JsonNullable rpsSerie = JsonNullable.undefined(); - - @JsonProperty("rpsSerie") - public ApiCustomerFiscalInfoGetResponseDtoBuilder rpsSerie(String value) { - this.rpsSerie = JsonNullable.of(value); - return this; - } - - private JsonNullable rpsNumber = JsonNullable.undefined(); - - @JsonProperty("rpsNumber") - public ApiCustomerFiscalInfoGetResponseDtoBuilder rpsNumber(Long value) { - this.rpsNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable loteNumber = JsonNullable.undefined(); - - @JsonProperty("loteNumber") - public ApiCustomerFiscalInfoGetResponseDtoBuilder loteNumber(Long value) { - this.loteNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable username = JsonNullable.undefined(); - - @JsonProperty("username") - public ApiCustomerFiscalInfoGetResponseDtoBuilder username(String value) { - this.username = JsonNullable.of(value); - return this; - } - - private JsonNullable passwordSent = JsonNullable.of(true); - - @JsonProperty("passwordSent") - public ApiCustomerFiscalInfoGetResponseDtoBuilder passwordSent(Boolean value) { - this.passwordSent = JsonNullable.of(value); - return this; - } - - private JsonNullable accessTokenSent = JsonNullable.of(true); - - @JsonProperty("accessTokenSent") - public ApiCustomerFiscalInfoGetResponseDtoBuilder accessTokenSent(Boolean value) { - this.accessTokenSent = JsonNullable.of(value); - return this; - } - - private JsonNullable certificateSent = JsonNullable.of(true); - - @JsonProperty("certificateSent") - public ApiCustomerFiscalInfoGetResponseDtoBuilder certificateSent(Boolean value) { - this.certificateSent = JsonNullable.of(value); - return this; - } - - private JsonNullable nationalPortalTaxCalculationRegime = JsonNullable.undefined(); - - @JsonProperty("nationalPortalTaxCalculationRegime") - public ApiCustomerFiscalInfoGetResponseDtoBuilder nationalPortalTaxCalculationRegime(String value) { - 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 deleted file mode 100644 index 8c88fdc..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto { - - /** - * NBS code - */ - @JsonProperty("nbsCode") - private JsonNullable nbsCode; - - /** - * NBS code description - */ - @JsonProperty("codeDescription") - private JsonNullable codeDescription; - - @JsonIgnore - public String getNbsCode() { - return nbsCode.orElse(null); - } - - @JsonIgnore - public String getCodeDescription() { - return codeDescription.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder { - - private JsonNullable nbsCode = JsonNullable.undefined(); - - @JsonProperty("nbsCode") - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder nbsCode(String value) { - this.nbsCode = JsonNullable.of(value); - return this; - } - - private JsonNullable codeDescription = JsonNullable.undefined(); - - @JsonProperty("codeDescription") - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder codeDescription(String value) { - 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 deleted file mode 100644 index 6c74637..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.java +++ /dev/null @@ -1,143 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDtoBuilder data( - List value - ) { - 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 deleted file mode 100644 index f3459c1..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto { - - /** - * Unique service identifier - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Service description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * ISS percentage rate - */ - @JsonProperty("issTax") - private JsonNullable issTax; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Double getIssTax() { - return issTax.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable issTax = JsonNullable.undefined(); - - @JsonProperty("issTax") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder issTax(Double value) { - 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 deleted file mode 100644 index cec6f2a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.java +++ /dev/null @@ -1,144 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerFiscalInfoListMunicipalServicesResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = - JsonNullable.undefined(); - - @JsonProperty("data") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder data( - List value - ) { - 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 deleted file mode 100644 index 02028b7..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.java +++ /dev/null @@ -1,290 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto { - - /** - * Type of authentication required at city hall - */ - @JsonProperty("authenticationType") - private JsonNullable authenticationType; - - /** - * Whether or not it supports the cancellation of invoices automatically at your city hall - */ - @JsonProperty("supportsCancellation") - private JsonNullable supportsCancellation; - - /** - * It is necessary to inform or not the special taxation regime. If used, enter it in the `specialTaxRegime` field of **Create or update tax information** according to the options returned in the `specialTaxRegimesList` list. - */ - @JsonProperty("usesSpecialTaxRegimes") - private JsonNullable usesSpecialTaxRegimes; - - /** - * Whether or not to inform the item on the service list - */ - @JsonProperty("usesServiceListItem") - private JsonNullable usesServiceListItem; - - /** - * Tax calculation regime options - */ - @JsonProperty("specialTaxRegimesList") - private JsonNullable> specialTaxRegimesList; - - /** - * Special taxation regime options - */ - @JsonProperty("nationalPortalTaxCalculationRegimeList") - private JsonNullable< - List - > nationalPortalTaxCalculationRegimeList; - - /** - * Explanation of the tax calculation regime - */ - @JsonProperty("nationalPortalTaxCalculationRegimeHelp") - private JsonNullable nationalPortalTaxCalculationRegimeHelp; - - /** - * Explanation of the municipal registration format - */ - @JsonProperty("municipalInscriptionHelp") - private JsonNullable municipalInscriptionHelp; - - /** - * Explanation of the special taxation regime - */ - @JsonProperty("specialTaxRegimeHelp") - private JsonNullable specialTaxRegimeHelp; - - /** - * Explanation of service list item format - */ - @JsonProperty("serviceListItemHelp") - private JsonNullable serviceListItemHelp; - - /** - * Explanation of digital certificate - */ - @JsonProperty("digitalCertificatedHelp") - private JsonNullable digitalCertificatedHelp; - - /** - * Token Explanation - */ - @JsonProperty("accessTokenHelp") - private JsonNullable accessTokenHelp; - - /** - * Explanation of municipal service code format - */ - @JsonProperty("municipalServiceCodeHelp") - private JsonNullable municipalServiceCodeHelp; - - @JsonIgnore - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao getAuthenticationType() { - return authenticationType.orElse(null); - } - - @JsonIgnore - public Boolean getSupportsCancellation() { - return supportsCancellation.orElse(null); - } - - @JsonIgnore - public Boolean getUsesSpecialTaxRegimes() { - return usesSpecialTaxRegimes.orElse(null); - } - - @JsonIgnore - public Boolean getUsesServiceListItem() { - return usesServiceListItem.orElse(null); - } - - @JsonIgnore - public List getSpecialTaxRegimesList() { - return specialTaxRegimesList.orElse(null); - } - - @JsonIgnore - public List< - ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto - > getNationalPortalTaxCalculationRegimeList() { - return nationalPortalTaxCalculationRegimeList.orElse(null); - } - - @JsonIgnore - public String getNationalPortalTaxCalculationRegimeHelp() { - return nationalPortalTaxCalculationRegimeHelp.orElse(null); - } - - @JsonIgnore - public String getMunicipalInscriptionHelp() { - return municipalInscriptionHelp.orElse(null); - } - - @JsonIgnore - public String getSpecialTaxRegimeHelp() { - return specialTaxRegimeHelp.orElse(null); - } - - @JsonIgnore - public String getServiceListItemHelp() { - return serviceListItemHelp.orElse(null); - } - - @JsonIgnore - public String getDigitalCertificatedHelp() { - return digitalCertificatedHelp.orElse(null); - } - - @JsonIgnore - public String getAccessTokenHelp() { - return accessTokenHelp.orElse(null); - } - - @JsonIgnore - public String getMunicipalServiceCodeHelp() { - return municipalServiceCodeHelp.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder { - - private JsonNullable authenticationType = - JsonNullable.undefined(); - - @JsonProperty("authenticationType") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder authenticationType( - ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao value - ) { - this.authenticationType = JsonNullable.of(value); - return this; - } - - private JsonNullable supportsCancellation = JsonNullable.of(true); - - @JsonProperty("supportsCancellation") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder supportsCancellation(Boolean value) { - this.supportsCancellation = JsonNullable.of(value); - return this; - } - - private JsonNullable usesSpecialTaxRegimes = JsonNullable.of(true); - - @JsonProperty("usesSpecialTaxRegimes") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder usesSpecialTaxRegimes(Boolean value) { - this.usesSpecialTaxRegimes = JsonNullable.of(value); - return this; - } - - private JsonNullable usesServiceListItem = JsonNullable.of(true); - - @JsonProperty("usesServiceListItem") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder usesServiceListItem(Boolean value) { - this.usesServiceListItem = JsonNullable.of(value); - return this; - } - - private JsonNullable> specialTaxRegimesList = - JsonNullable.undefined(); - - @JsonProperty("specialTaxRegimesList") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegimesList( - List value - ) { - this.specialTaxRegimesList = JsonNullable.of(value); - return this; - } - - private JsonNullable< - List - > nationalPortalTaxCalculationRegimeList = JsonNullable.undefined(); - - @JsonProperty("nationalPortalTaxCalculationRegimeList") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortalTaxCalculationRegimeList( - List value - ) { - this.nationalPortalTaxCalculationRegimeList = JsonNullable.of(value); - return this; - } - - private JsonNullable nationalPortalTaxCalculationRegimeHelp = JsonNullable.undefined(); - - @JsonProperty("nationalPortalTaxCalculationRegimeHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortalTaxCalculationRegimeHelp( - String value - ) { - this.nationalPortalTaxCalculationRegimeHelp = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalInscriptionHelp = JsonNullable.undefined(); - - @JsonProperty("municipalInscriptionHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder municipalInscriptionHelp(String value) { - this.municipalInscriptionHelp = JsonNullable.of(value); - return this; - } - - private JsonNullable specialTaxRegimeHelp = JsonNullable.undefined(); - - @JsonProperty("specialTaxRegimeHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegimeHelp(String value) { - this.specialTaxRegimeHelp = JsonNullable.of(value); - return this; - } - - private JsonNullable serviceListItemHelp = JsonNullable.undefined(); - - @JsonProperty("serviceListItemHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder serviceListItemHelp(String value) { - this.serviceListItemHelp = JsonNullable.of(value); - return this; - } - - private JsonNullable digitalCertificatedHelp = JsonNullable.undefined(); - - @JsonProperty("digitalCertificatedHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder digitalCertificatedHelp(String value) { - this.digitalCertificatedHelp = JsonNullable.of(value); - return this; - } - - private JsonNullable accessTokenHelp = JsonNullable.undefined(); - - @JsonProperty("accessTokenHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder accessTokenHelp(String value) { - this.accessTokenHelp = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalServiceCodeHelp = JsonNullable.undefined(); - - @JsonProperty("municipalServiceCodeHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder municipalServiceCodeHelp(String value) { - this.municipalServiceCodeHelp = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java deleted file mode 100644 index 8de2c36..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of authentication required at city hall - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao { - CERTIFICATE("CERTIFICATE"), - TOKEN("TOKEN"), - USER_AND_PASSWORD("USER_AND_PASSWORD"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao fromValue(String value) { - return Arrays.stream(ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java deleted file mode 100644 index 9414705..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto { - - /** - * Name of the tax calculation regime - */ - @JsonProperty("label") - private JsonNullable label; - - /** - * Identifier of the tax calculation regime - */ - @JsonProperty("value") - private JsonNullable value; - - @JsonIgnore - public String getLabel() { - return label.orElse(null); - } - - @JsonIgnore - public String getValue() { - return value.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder { - - private JsonNullable label = JsonNullable.undefined(); - - @JsonProperty("label") - public ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder label(String value) { - this.label = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder value(String value) { - 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 deleted file mode 100644 index cb320fc..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto { - - /** - * Name of the special taxation regime - */ - @JsonProperty("label") - private JsonNullable label; - - /** - * Special taxation regime identifier - */ - @JsonProperty("value") - private JsonNullable value; - - @JsonIgnore - public String getLabel() { - return label.orElse(null); - } - - @JsonIgnore - public String getValue() { - return value.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder { - - private JsonNullable label = JsonNullable.undefined(); - - @JsonProperty("label") - public ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder label(String value) { - this.label = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder value(String value) { - 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 deleted file mode 100644 index ba517e0..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoSaveRequestDto.java +++ /dev/null @@ -1,328 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerFiscalInfoSaveRequestDto { - - /** - * Email used by Asaas to send invoice notifications and alerts - */ - @NonNull - private String email; - - /** - * Indicates whether the company opts for the simple national system - */ - @NonNull - @Builder.Default - private Boolean simplesNacional = true; - - /** - * Company municipal registration - */ - @JsonProperty("municipalInscription") - private JsonNullable municipalInscription; - - /** - * Identifies whether the company is classified as a cultural promoter - */ - @JsonProperty("culturalProjectsPromoter") - private JsonNullable culturalProjectsPromoter; - - /** - * CNAE code - */ - @JsonProperty("cnae") - private JsonNullable cnae; - - /** - * Special taxation regime identifier - */ - @JsonProperty("specialTaxRegime") - private JsonNullable specialTaxRegime; - - /** - * Service list item, as http://www.planalto.gov.br/ccivil_03/leis/LCP/Lcp116.htm - */ - @JsonProperty("serviceListItem") - private JsonNullable serviceListItem; - - /** - * NBS Code (Brazilian Nomenclature of Services). It must be included on the NFS-e (Electronic Service Invoice) when required by the municipal government and/or for import or export services. Check with your local government or your accounting department to determine whether this information is necessary. - */ - @JsonProperty("nbsCode") - private JsonNullable nbsCode; - - /** - * Serial Number used by your company to issue invoices. In most cities the serial number used is '1' or 'E' - */ - @JsonProperty("rpsSerie") - private JsonNullable rpsSerie; - - /** - * RPS number used on the last invoice issued by your company. If your last NF issued has an RPS equal to '100', this field must be filled in with '101'. If you have never issued invoices through your city hall's website, enter '1' in this field - */ - @JsonProperty("rpsNumber") - private JsonNullable rpsNumber; - - /** - * Batch number used on the last invoice issued by your company. If the last lot used in your city hall is '25', this field must be filled in with '26'. Only enter this field if your city hall requires the use of lots - */ - @JsonProperty("loteNumber") - private JsonNullable loteNumber; - - /** - * User to access your city's city hall website - */ - @JsonProperty("username") - private JsonNullable username; - - /** - * Password to access the city hall website - */ - @JsonProperty("password") - private JsonNullable password; - - /** - * Token for access to the city hall website (If access to your city hall website is via Token) - */ - @JsonProperty("accessToken") - private JsonNullable accessToken; - - /** - * File - */ - @JsonProperty("certificateFile") - private JsonNullable certificateFile; - - /** - * Password for the digital certificate sent (If access to your city hall website through a digital certificate) - */ - @JsonProperty("certificatePassword") - private JsonNullable certificatePassword; - - /** - * Identifier of the tax calculation regime. It must only be completed by companies classified as ME or EPP opting for Simples Nacional. Consult the need for this information with your city hall or accounting department. - */ - @JsonProperty("nationalPortalTaxCalculationRegime") - private JsonNullable nationalPortalTaxCalculationRegime; - - @JsonIgnore - public String getMunicipalInscription() { - return municipalInscription.orElse(null); - } - - @JsonIgnore - public Boolean getCulturalProjectsPromoter() { - return culturalProjectsPromoter.orElse(null); - } - - @JsonIgnore - public String getCnae() { - return cnae.orElse(null); - } - - @JsonIgnore - public String getSpecialTaxRegime() { - return specialTaxRegime.orElse(null); - } - - @JsonIgnore - public String getServiceListItem() { - return serviceListItem.orElse(null); - } - - @JsonIgnore - public String getNbsCode() { - return nbsCode.orElse(null); - } - - @JsonIgnore - public String getRpsSerie() { - return rpsSerie.orElse(null); - } - - @JsonIgnore - public Long getRpsNumber() { - return rpsNumber.orElse(null); - } - - @JsonIgnore - public Long getLoteNumber() { - return loteNumber.orElse(null); - } - - @JsonIgnore - public String getUsername() { - return username.orElse(null); - } - - @JsonIgnore - public String getPassword() { - return password.orElse(null); - } - - @JsonIgnore - public String getAccessToken() { - return accessToken.orElse(null); - } - - @JsonIgnore - public byte[] getCertificateFile() { - return certificateFile.orElse(null); - } - - @JsonIgnore - public String getCertificatePassword() { - return certificatePassword.orElse(null); - } - - @JsonIgnore - public String getNationalPortalTaxCalculationRegime() { - return nationalPortalTaxCalculationRegime.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoSaveRequestDtoBuilder { - - private JsonNullable municipalInscription = JsonNullable.undefined(); - - @JsonProperty("municipalInscription") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder municipalInscription(String value) { - this.municipalInscription = JsonNullable.of(value); - return this; - } - - private JsonNullable culturalProjectsPromoter = JsonNullable.of(true); - - @JsonProperty("culturalProjectsPromoter") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder culturalProjectsPromoter(Boolean value) { - this.culturalProjectsPromoter = JsonNullable.of(value); - return this; - } - - private JsonNullable cnae = JsonNullable.undefined(); - - @JsonProperty("cnae") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder cnae(String value) { - this.cnae = JsonNullable.of(value); - return this; - } - - private JsonNullable specialTaxRegime = JsonNullable.undefined(); - - @JsonProperty("specialTaxRegime") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder specialTaxRegime(String value) { - this.specialTaxRegime = JsonNullable.of(value); - return this; - } - - private JsonNullable serviceListItem = JsonNullable.undefined(); - - @JsonProperty("serviceListItem") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder serviceListItem(String value) { - this.serviceListItem = JsonNullable.of(value); - return this; - } - - private JsonNullable nbsCode = JsonNullable.undefined(); - - @JsonProperty("nbsCode") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder nbsCode(String value) { - this.nbsCode = JsonNullable.of(value); - return this; - } - - private JsonNullable rpsSerie = JsonNullable.undefined(); - - @JsonProperty("rpsSerie") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder rpsSerie(String value) { - this.rpsSerie = JsonNullable.of(value); - return this; - } - - private JsonNullable rpsNumber = JsonNullable.undefined(); - - @JsonProperty("rpsNumber") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder rpsNumber(Long value) { - this.rpsNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable loteNumber = JsonNullable.undefined(); - - @JsonProperty("loteNumber") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder loteNumber(Long value) { - this.loteNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable username = JsonNullable.undefined(); - - @JsonProperty("username") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder username(String value) { - this.username = JsonNullable.of(value); - return this; - } - - private JsonNullable password = JsonNullable.undefined(); - - @JsonProperty("password") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder password(String value) { - this.password = JsonNullable.of(value); - return this; - } - - private JsonNullable accessToken = JsonNullable.undefined(); - - @JsonProperty("accessToken") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder accessToken(String value) { - this.accessToken = JsonNullable.of(value); - return this; - } - - private JsonNullable certificateFile = JsonNullable.undefined(); - - @JsonProperty("certificateFile") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder certificateFile(byte[] value) { - if (value == null) { - throw new IllegalStateException("certificateFile cannot be null"); - } - this.certificateFile = JsonNullable.of(value); - return this; - } - - private JsonNullable certificatePassword = JsonNullable.undefined(); - - @JsonProperty("certificatePassword") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder certificatePassword(String value) { - this.certificatePassword = JsonNullable.of(value); - return this; - } - - private JsonNullable nationalPortalTaxCalculationRegime = JsonNullable.undefined(); - - @JsonProperty("nationalPortalTaxCalculationRegime") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder nationalPortalTaxCalculationRegime(String value) { - this.nationalPortalTaxCalculationRegime = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.java deleted file mode 100644 index 647794e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.java +++ /dev/null @@ -1,26 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto { - - /** - * Indicates whether the issuing of invoices through the national portal should be enabled or not. - */ - @NonNull - private Boolean enabled; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java deleted file mode 100644 index 2a67510..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto { - - /** - * Status of the request to change the use status of national portal for issuing invoices. - */ - @JsonProperty("success") - private JsonNullable success; - - @JsonIgnore - public Boolean getSuccess() { - return success.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDtoBuilder { - - private JsonNullable success = JsonNullable.undefined(); - - @JsonProperty("success") - public ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDtoBuilder success(Boolean value) { - this.success = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseCompanyType.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseCompanyType.java deleted file mode 100644 index f2b1655..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseCompanyType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of company (only when Legal Entity) - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerGetResponseCompanyType { - MEI("MEI"), - LIMITED("LIMITED"), - INDIVIDUAL("INDIVIDUAL"), - ASSOCIATION("ASSOCIATION"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerGetResponseCompanyType fromValue(String value) { - return Arrays.stream(ApiCustomerGetResponseCompanyType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseDto.java deleted file mode 100644 index da1c63d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseDto.java +++ /dev/null @@ -1,479 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique subaccount identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Subaccount name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Subaccount email - */ - @JsonProperty("email") - private JsonNullable email; - - /** - * Email for subaccount login, if not provided, the subaccount email will be used - */ - @JsonProperty("loginEmail") - private JsonNullable loginEmail; - - /** - * Telephone - */ - @JsonProperty("phone") - private JsonNullable phone; - - /** - * Cellphone - */ - @JsonProperty("mobilePhone") - private JsonNullable mobilePhone; - - /** - * Public place - */ - @JsonProperty("address") - private JsonNullable address; - - /** - * Address number - */ - @JsonProperty("addressNumber") - private JsonNullable addressNumber; - - /** - * Address complement - */ - @JsonProperty("complement") - private JsonNullable complement; - - /** - * Neighborhood - */ - @JsonProperty("province") - private JsonNullable province; - - /** - * Address zip code - */ - @JsonProperty("postalCode") - private JsonNullable postalCode; - - /** - * CPF or CNPJ of the subaccount owner - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Date of birth (only for Individuals) - */ - @JsonProperty("birthDate") - private JsonNullable birthDate; - - /** - * Kind of person - */ - @JsonProperty("personType") - private JsonNullable personType; - - /** - * Type of company (only when Legal Entity) - */ - @JsonProperty("companyType") - private JsonNullable companyType; - - /** - * Unique city identifier in Asaas - */ - @JsonProperty("city") - private JsonNullable city; - - /** - * State abbreviation (SP, RJ, SC, ...) - */ - @JsonProperty("state") - private JsonNullable state; - - /** - * Country (Fixed Brazil) - */ - @JsonProperty("country") - private JsonNullable country; - - /** - * Display name (auto-populated) - */ - @JsonProperty("tradingName") - private JsonNullable tradingName; - - /** - * Url reffered to the subaccount - */ - @JsonProperty("site") - private JsonNullable site; - - /** - * Unique wallet identifier to split charges or transfer between Asaas accounts - */ - @JsonProperty("walletId") - private JsonNullable walletId; - - @JsonProperty("accountNumber") - private JsonNullable accountNumber; - - @JsonProperty("commercialInfoExpiration") - private JsonNullable commercialInfoExpiration; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getEmail() { - return email.orElse(null); - } - - @JsonIgnore - public String getLoginEmail() { - return loginEmail.orElse(null); - } - - @JsonIgnore - public String getPhone() { - return phone.orElse(null); - } - - @JsonIgnore - public String getMobilePhone() { - return mobilePhone.orElse(null); - } - - @JsonIgnore - public String getAddress() { - return address.orElse(null); - } - - @JsonIgnore - public String getAddressNumber() { - return addressNumber.orElse(null); - } - - @JsonIgnore - public String getComplement() { - return complement.orElse(null); - } - - @JsonIgnore - public String getProvince() { - return province.orElse(null); - } - - @JsonIgnore - public String getPostalCode() { - return postalCode.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public String getBirthDate() { - return birthDate.orElse(null); - } - - @JsonIgnore - public ApiCustomerGetResponsePersonType getPersonType() { - return personType.orElse(null); - } - - @JsonIgnore - public ApiCustomerGetResponseCompanyType getCompanyType() { - return companyType.orElse(null); - } - - @JsonIgnore - public Long getCity() { - return city.orElse(null); - } - - @JsonIgnore - public String getState() { - return state.orElse(null); - } - - @JsonIgnore - public String getCountry() { - return country.orElse(null); - } - - @JsonIgnore - public String getTradingName() { - return tradingName.orElse(null); - } - - @JsonIgnore - public String getSite() { - return site.orElse(null); - } - - @JsonIgnore - public String getWalletId() { - return walletId.orElse(null); - } - - @JsonIgnore - public ApiCustomerAccountNumberDto getAccountNumber() { - return accountNumber.orElse(null); - } - - @JsonIgnore - public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { - return commercialInfoExpiration.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCustomerGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiCustomerGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiCustomerGetResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable email = JsonNullable.undefined(); - - @JsonProperty("email") - public ApiCustomerGetResponseDtoBuilder email(String value) { - this.email = JsonNullable.of(value); - return this; - } - - private JsonNullable loginEmail = JsonNullable.undefined(); - - @JsonProperty("loginEmail") - public ApiCustomerGetResponseDtoBuilder loginEmail(String value) { - this.loginEmail = JsonNullable.of(value); - return this; - } - - private JsonNullable phone = JsonNullable.undefined(); - - @JsonProperty("phone") - public ApiCustomerGetResponseDtoBuilder phone(String value) { - this.phone = JsonNullable.of(value); - return this; - } - - private JsonNullable mobilePhone = JsonNullable.undefined(); - - @JsonProperty("mobilePhone") - public ApiCustomerGetResponseDtoBuilder mobilePhone(String value) { - this.mobilePhone = JsonNullable.of(value); - return this; - } - - private JsonNullable address = JsonNullable.undefined(); - - @JsonProperty("address") - public ApiCustomerGetResponseDtoBuilder address(String value) { - this.address = JsonNullable.of(value); - return this; - } - - private JsonNullable addressNumber = JsonNullable.undefined(); - - @JsonProperty("addressNumber") - public ApiCustomerGetResponseDtoBuilder addressNumber(String value) { - this.addressNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable complement = JsonNullable.undefined(); - - @JsonProperty("complement") - public ApiCustomerGetResponseDtoBuilder complement(String value) { - this.complement = JsonNullable.of(value); - return this; - } - - private JsonNullable province = JsonNullable.undefined(); - - @JsonProperty("province") - public ApiCustomerGetResponseDtoBuilder province(String value) { - this.province = JsonNullable.of(value); - return this; - } - - private JsonNullable postalCode = JsonNullable.undefined(); - - @JsonProperty("postalCode") - public ApiCustomerGetResponseDtoBuilder postalCode(String value) { - this.postalCode = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiCustomerGetResponseDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable birthDate = JsonNullable.undefined(); - - @JsonProperty("birthDate") - public ApiCustomerGetResponseDtoBuilder birthDate(String value) { - this.birthDate = JsonNullable.of(value); - return this; - } - - private JsonNullable personType = JsonNullable.undefined(); - - @JsonProperty("personType") - public ApiCustomerGetResponseDtoBuilder personType(ApiCustomerGetResponsePersonType value) { - this.personType = JsonNullable.of(value); - return this; - } - - private JsonNullable companyType = JsonNullable.undefined(); - - @JsonProperty("companyType") - public ApiCustomerGetResponseDtoBuilder companyType(ApiCustomerGetResponseCompanyType value) { - this.companyType = JsonNullable.of(value); - return this; - } - - private JsonNullable city = JsonNullable.undefined(); - - @JsonProperty("city") - public ApiCustomerGetResponseDtoBuilder city(Long value) { - this.city = JsonNullable.of(value); - return this; - } - - private JsonNullable state = JsonNullable.undefined(); - - @JsonProperty("state") - public ApiCustomerGetResponseDtoBuilder state(String value) { - this.state = JsonNullable.of(value); - return this; - } - - private JsonNullable country = JsonNullable.undefined(); - - @JsonProperty("country") - public ApiCustomerGetResponseDtoBuilder country(String value) { - this.country = JsonNullable.of(value); - return this; - } - - private JsonNullable tradingName = JsonNullable.undefined(); - - @JsonProperty("tradingName") - public ApiCustomerGetResponseDtoBuilder tradingName(String value) { - this.tradingName = JsonNullable.of(value); - return this; - } - - private JsonNullable site = JsonNullable.undefined(); - - @JsonProperty("site") - public ApiCustomerGetResponseDtoBuilder site(String value) { - this.site = JsonNullable.of(value); - return this; - } - - private JsonNullable walletId = JsonNullable.undefined(); - - @JsonProperty("walletId") - public ApiCustomerGetResponseDtoBuilder walletId(String value) { - this.walletId = JsonNullable.of(value); - return this; - } - - private JsonNullable accountNumber = JsonNullable.undefined(); - - @JsonProperty("accountNumber") - public ApiCustomerGetResponseDtoBuilder accountNumber(ApiCustomerAccountNumberDto value) { - this.accountNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable commercialInfoExpiration = - JsonNullable.undefined(); - - @JsonProperty("commercialInfoExpiration") - public ApiCustomerGetResponseDtoBuilder commercialInfoExpiration( - ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto value - ) { - this.commercialInfoExpiration = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponsePersonType.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponsePersonType.java deleted file mode 100644 index c5dfd8a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponsePersonType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Kind of person - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerGetResponsePersonType { - JURIDICA("JURIDICA"), - FISICA("FISICA"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerGetResponsePersonType fromValue(String value) { - return Arrays.stream(ApiCustomerGetResponsePersonType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceCancelRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceCancelRequestDto.java deleted file mode 100644 index 1afdce5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceCancelRequestDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerInvoiceCancelRequestDto { - - /** - * Cancel invoice only on Asaas - */ - @JsonProperty("cancelOnlyOnAsaas") - private JsonNullable cancelOnlyOnAsaas; - - @JsonIgnore - public Boolean getCancelOnlyOnAsaas() { - return cancelOnlyOnAsaas.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerInvoiceCancelRequestDtoBuilder { - - private JsonNullable cancelOnlyOnAsaas = JsonNullable.undefined(); - - @JsonProperty("cancelOnlyOnAsaas") - public ApiCustomerInvoiceCancelRequestDtoBuilder cancelOnlyOnAsaas(Boolean value) { - 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 deleted file mode 100644 index 0b90b73..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDto.java +++ /dev/null @@ -1,498 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerInvoiceGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique invoice identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Invoice status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Unique customer identifier - */ - @JsonProperty("customer") - private JsonNullable customer; - - /** - * Unique payment identifier in Asaas - */ - @JsonProperty("payment") - private JsonNullable payment; - - /** - * Unique installment identifier in Asaas - */ - @JsonProperty("installment") - private JsonNullable installment; - - /** - * Invoice type - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Description of the current status of the invoice - */ - @JsonProperty("statusDescription") - private JsonNullable statusDescription; - - /** - * Description of invoice services - */ - @JsonProperty("serviceDescription") - private JsonNullable serviceDescription; - - /** - * Link to pdf file of the invoice issued - */ - @JsonProperty("pdfUrl") - private JsonNullable pdfUrl; - - /** - * Link to xml file of the issued invoice - */ - @JsonProperty("xmlUrl") - private JsonNullable xmlUrl; - - /** - * Invoice series - */ - @JsonProperty("rpsSerie") - private JsonNullable rpsSerie; - - /** - * RPS converted to invoice - */ - @JsonProperty("rpsNumber") - private JsonNullable rpsNumber; - - /** - * Invoice number - */ - @JsonProperty("number") - private JsonNullable number; - - /** - * Verification code - */ - @JsonProperty("validationCode") - private JsonNullable validationCode; - - /** - * Total value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. - */ - @JsonProperty("deductions") - private JsonNullable deductions; - - /** - * Invoice issuance date - */ - @JsonProperty("effectiveDate") - private JsonNullable effectiveDate; - - /** - * Additional observations - */ - @JsonProperty("observations") - private JsonNullable observations; - - /** - * Estimated tax invoice - */ - @JsonProperty("estimatedTaxesDescription") - private JsonNullable estimatedTaxesDescription; - - /** - * Invoice identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - @JsonProperty("taxes") - private JsonNullable taxes; - - /** - * Unique municipal service identifier - */ - @JsonProperty("municipalServiceId") - private JsonNullable municipalServiceId; - - /** - * Municipal Service Code - */ - @JsonProperty("municipalServiceCode") - private JsonNullable municipalServiceCode; - - /** - * Name of municipal service - */ - @JsonProperty("municipalServiceName") - private JsonNullable municipalServiceName; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public ApiCustomerInvoiceGetResponseInvoiceStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getCustomer() { - return customer.orElse(null); - } - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public String getInstallment() { - return installment.orElse(null); - } - - @JsonIgnore - public ApiCustomerInvoiceGetResponseDtoType getType() { - return type.orElse(null); - } - - @JsonIgnore - public String getStatusDescription() { - return statusDescription.orElse(null); - } - - @JsonIgnore - public String getServiceDescription() { - return serviceDescription.orElse(null); - } - - @JsonIgnore - public String getPdfUrl() { - return pdfUrl.orElse(null); - } - - @JsonIgnore - public String getXmlUrl() { - return xmlUrl.orElse(null); - } - - @JsonIgnore - public String getRpsSerie() { - return rpsSerie.orElse(null); - } - - @JsonIgnore - public String getRpsNumber() { - return rpsNumber.orElse(null); - } - - @JsonIgnore - public String getNumber() { - return number.orElse(null); - } - - @JsonIgnore - public String getValidationCode() { - return validationCode.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getDeductions() { - return deductions.orElse(null); - } - - @JsonIgnore - public String getEffectiveDate() { - return effectiveDate.orElse(null); - } - - @JsonIgnore - public String getObservations() { - return observations.orElse(null); - } - - @JsonIgnore - public String getEstimatedTaxesDescription() { - return estimatedTaxesDescription.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public ApiCustomerInvoiceTaxesDto getTaxes() { - return taxes.orElse(null); - } - - @JsonIgnore - public String getMunicipalServiceId() { - return municipalServiceId.orElse(null); - } - - @JsonIgnore - public String getMunicipalServiceCode() { - return municipalServiceCode.orElse(null); - } - - @JsonIgnore - public String getMunicipalServiceName() { - return municipalServiceName.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerInvoiceGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCustomerInvoiceGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiCustomerInvoiceGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiCustomerInvoiceGetResponseDtoBuilder status(ApiCustomerInvoiceGetResponseInvoiceStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable customer = JsonNullable.undefined(); - - @JsonProperty("customer") - public ApiCustomerInvoiceGetResponseDtoBuilder customer(String value) { - this.customer = JsonNullable.of(value); - return this; - } - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiCustomerInvoiceGetResponseDtoBuilder payment(String value) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiCustomerInvoiceGetResponseDtoBuilder installment(String value) { - this.installment = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiCustomerInvoiceGetResponseDtoBuilder type(ApiCustomerInvoiceGetResponseDtoType value) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable statusDescription = JsonNullable.undefined(); - - @JsonProperty("statusDescription") - public ApiCustomerInvoiceGetResponseDtoBuilder statusDescription(String value) { - this.statusDescription = JsonNullable.of(value); - return this; - } - - private JsonNullable serviceDescription = JsonNullable.undefined(); - - @JsonProperty("serviceDescription") - public ApiCustomerInvoiceGetResponseDtoBuilder serviceDescription(String value) { - this.serviceDescription = JsonNullable.of(value); - return this; - } - - private JsonNullable pdfUrl = JsonNullable.undefined(); - - @JsonProperty("pdfUrl") - public ApiCustomerInvoiceGetResponseDtoBuilder pdfUrl(String value) { - this.pdfUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable xmlUrl = JsonNullable.undefined(); - - @JsonProperty("xmlUrl") - public ApiCustomerInvoiceGetResponseDtoBuilder xmlUrl(String value) { - this.xmlUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable rpsSerie = JsonNullable.undefined(); - - @JsonProperty("rpsSerie") - public ApiCustomerInvoiceGetResponseDtoBuilder rpsSerie(String value) { - this.rpsSerie = JsonNullable.of(value); - return this; - } - - private JsonNullable rpsNumber = JsonNullable.undefined(); - - @JsonProperty("rpsNumber") - public ApiCustomerInvoiceGetResponseDtoBuilder rpsNumber(String value) { - this.rpsNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable number = JsonNullable.undefined(); - - @JsonProperty("number") - public ApiCustomerInvoiceGetResponseDtoBuilder number(String value) { - this.number = JsonNullable.of(value); - return this; - } - - private JsonNullable validationCode = JsonNullable.undefined(); - - @JsonProperty("validationCode") - public ApiCustomerInvoiceGetResponseDtoBuilder validationCode(String value) { - this.validationCode = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiCustomerInvoiceGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable deductions = JsonNullable.undefined(); - - @JsonProperty("deductions") - public ApiCustomerInvoiceGetResponseDtoBuilder deductions(Double value) { - this.deductions = JsonNullable.of(value); - return this; - } - - private JsonNullable effectiveDate = JsonNullable.undefined(); - - @JsonProperty("effectiveDate") - public ApiCustomerInvoiceGetResponseDtoBuilder effectiveDate(String value) { - this.effectiveDate = JsonNullable.of(value); - return this; - } - - private JsonNullable observations = JsonNullable.undefined(); - - @JsonProperty("observations") - public ApiCustomerInvoiceGetResponseDtoBuilder observations(String value) { - this.observations = JsonNullable.of(value); - return this; - } - - private JsonNullable estimatedTaxesDescription = JsonNullable.undefined(); - - @JsonProperty("estimatedTaxesDescription") - public ApiCustomerInvoiceGetResponseDtoBuilder estimatedTaxesDescription(String value) { - this.estimatedTaxesDescription = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiCustomerInvoiceGetResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable taxes = JsonNullable.undefined(); - - @JsonProperty("taxes") - public ApiCustomerInvoiceGetResponseDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { - this.taxes = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalServiceId = JsonNullable.undefined(); - - @JsonProperty("municipalServiceId") - public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceId(String value) { - this.municipalServiceId = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalServiceCode = JsonNullable.undefined(); - - @JsonProperty("municipalServiceCode") - public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceCode(String value) { - this.municipalServiceCode = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalServiceName = JsonNullable.undefined(); - - @JsonProperty("municipalServiceName") - public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceName(String value) { - this.municipalServiceName = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDtoType.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDtoType.java deleted file mode 100644 index e26cf61..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDtoType.java +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Invoice type - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerInvoiceGetResponseDtoType { - NFS_E("NFS-e"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerInvoiceGetResponseDtoType fromValue(String value) { - return Arrays.stream(ApiCustomerInvoiceGetResponseDtoType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseInvoiceStatus.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseInvoiceStatus.java deleted file mode 100644 index 93077c5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseInvoiceStatus.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Invoice status - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerInvoiceGetResponseInvoiceStatus { - SCHEDULED("SCHEDULED"), - AUTHORIZED("AUTHORIZED"), - PROCESSING_CANCELLATION("PROCESSING_CANCELLATION"), - CANCELED("CANCELED"), - CANCELLATION_DENIED("CANCELLATION_DENIED"), - ERROR("ERROR"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerInvoiceGetResponseInvoiceStatus fromValue(String value) { - return Arrays.stream(ApiCustomerInvoiceGetResponseInvoiceStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListRequestInvoiceStatus.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListRequestInvoiceStatus.java deleted file mode 100644 index 114ae5a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListRequestInvoiceStatus.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by situation - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerInvoiceListRequestInvoiceStatus { - SCHEDULED("SCHEDULED"), - AUTHORIZED("AUTHORIZED"), - PROCESSING_CANCELLATION("PROCESSING_CANCELLATION"), - CANCELED("CANCELED"), - CANCELLATION_DENIED("CANCELLATION_DENIED"), - ERROR("ERROR"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerInvoiceListRequestInvoiceStatus fromValue(String value) { - return Arrays.stream(ApiCustomerInvoiceListRequestInvoiceStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListResponseDto.java deleted file mode 100644 index 798eac3..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerInvoiceListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerInvoiceListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCustomerInvoiceListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiCustomerInvoiceListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiCustomerInvoiceListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiCustomerInvoiceListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiCustomerInvoiceListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiCustomerInvoiceListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index e603529..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceSaveRequestDto.java +++ /dev/null @@ -1,233 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.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; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerInvoiceSaveRequestDto { - - /** - * Description of invoice services - */ - @NonNull - private String serviceDescription; - - /** - * Additional observations - */ - @NonNull - private String observations; - - /** - * Total value - */ - @NonNull - private Double value; - - /** - * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. - */ - @NonNull - private Double deductions; - - /** - * Invoice issuance date - */ - @NonNull - private String effectiveDate; - - /** - * Name of the municipal service. If not provided, the municipalServiceCode attribute will be used as the name for identification. - */ - @NonNull - private String municipalServiceName; - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCustomerInvoiceTaxesDto taxes; - - /** - * Unique payment identifier in Asaas - */ - @JsonProperty("payment") - private JsonNullable payment; - - /** - * Unique installment identifier in Asaas - */ - @JsonProperty("installment") - private JsonNullable installment; - - /** - * Unique customer identifier - */ - @JsonProperty("customer") - private JsonNullable customer; - - /** - * Invoice identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Unique municipal service identifier - */ - @JsonProperty("municipalServiceId") - private JsonNullable municipalServiceId; - - /** - * Municipal Service Code - */ - @JsonProperty("municipalServiceCode") - private JsonNullable municipalServiceCode; - - /** - * Update the Payment amount with the invoice taxes already deducted. - */ - @JsonProperty("updatePayment") - private JsonNullable updatePayment; - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public String getInstallment() { - return installment.orElse(null); - } - - @JsonIgnore - public String getCustomer() { - return customer.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public String getMunicipalServiceId() { - return municipalServiceId.orElse(null); - } - - @JsonIgnore - public String getMunicipalServiceCode() { - return municipalServiceCode.orElse(null); - } - - @JsonIgnore - public Boolean getUpdatePayment() { - return updatePayment.orElse(null); - } - - // 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) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiCustomerInvoiceSaveRequestDtoBuilder installment(String value) { - this.installment = JsonNullable.of(value); - return this; - } - - private JsonNullable customer = JsonNullable.undefined(); - - @JsonProperty("customer") - public ApiCustomerInvoiceSaveRequestDtoBuilder customer(String value) { - this.customer = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiCustomerInvoiceSaveRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalServiceId = JsonNullable.undefined(); - - @JsonProperty("municipalServiceId") - public ApiCustomerInvoiceSaveRequestDtoBuilder municipalServiceId(String value) { - this.municipalServiceId = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalServiceCode = JsonNullable.undefined(); - - @JsonProperty("municipalServiceCode") - public ApiCustomerInvoiceSaveRequestDtoBuilder municipalServiceCode(String value) { - this.municipalServiceCode = JsonNullable.of(value); - return this; - } - - private JsonNullable updatePayment = JsonNullable.undefined(); - - @JsonProperty("updatePayment") - public ApiCustomerInvoiceSaveRequestDtoBuilder updatePayment(Boolean value) { - 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/ApiCustomerInvoiceTaxesDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceTaxesDto.java deleted file mode 100644 index a562c94..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceTaxesDto.java +++ /dev/null @@ -1,62 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerInvoiceTaxesDto { - - /** - * The invoice holder must withhold ISS or not - */ - @NonNull - private Boolean retainIss; - - /** - * COFINS rate - */ - @NonNull - private Double cofins; - - /** - * CSLL rate - */ - @NonNull - private Double csll; - - /** - * INSS rate - */ - @NonNull - private Double inss; - - /** - * IR rate - */ - @NonNull - private Double ir; - - /** - * PIS rate - */ - @NonNull - private Double pis; - - /** - * ISS rate - */ - @NonNull - private Double iss; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceUpdateRequestDto.java deleted file mode 100644 index 95f1958..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceUpdateRequestDto.java +++ /dev/null @@ -1,175 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerInvoiceUpdateRequestDto { - - /** - * Description of invoice services - */ - @JsonProperty("serviceDescription") - private JsonNullable serviceDescription; - - /** - * Additional observations - */ - @JsonProperty("observations") - private JsonNullable observations; - - /** - * Invoice identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Total value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. - */ - @JsonProperty("deductions") - private JsonNullable deductions; - - /** - * Invoice issuance date - */ - @JsonProperty("effectiveDate") - private JsonNullable effectiveDate; - - /** - * Update the Payment amount with the invoice taxes already deducted. - */ - @JsonProperty("updatePayment") - private JsonNullable updatePayment; - - @JsonProperty("taxes") - private JsonNullable taxes; - - @JsonIgnore - public String getServiceDescription() { - return serviceDescription.orElse(null); - } - - @JsonIgnore - public String getObservations() { - return observations.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getDeductions() { - return deductions.orElse(null); - } - - @JsonIgnore - public String getEffectiveDate() { - return effectiveDate.orElse(null); - } - - @JsonIgnore - public Boolean getUpdatePayment() { - return updatePayment.orElse(null); - } - - @JsonIgnore - public ApiCustomerInvoiceTaxesDto getTaxes() { - return taxes.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerInvoiceUpdateRequestDtoBuilder { - - private JsonNullable serviceDescription = JsonNullable.undefined(); - - @JsonProperty("serviceDescription") - public ApiCustomerInvoiceUpdateRequestDtoBuilder serviceDescription(String value) { - this.serviceDescription = JsonNullable.of(value); - return this; - } - - private JsonNullable observations = JsonNullable.undefined(); - - @JsonProperty("observations") - public ApiCustomerInvoiceUpdateRequestDtoBuilder observations(String value) { - this.observations = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiCustomerInvoiceUpdateRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiCustomerInvoiceUpdateRequestDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable deductions = JsonNullable.undefined(); - - @JsonProperty("deductions") - public ApiCustomerInvoiceUpdateRequestDtoBuilder deductions(Double value) { - this.deductions = JsonNullable.of(value); - return this; - } - - private JsonNullable effectiveDate = JsonNullable.undefined(); - - @JsonProperty("effectiveDate") - public ApiCustomerInvoiceUpdateRequestDtoBuilder effectiveDate(String value) { - this.effectiveDate = JsonNullable.of(value); - return this; - } - - private JsonNullable updatePayment = JsonNullable.undefined(); - - @JsonProperty("updatePayment") - public ApiCustomerInvoiceUpdateRequestDtoBuilder updatePayment(Boolean value) { - this.updatePayment = JsonNullable.of(value); - return this; - } - - private JsonNullable taxes = JsonNullable.undefined(); - - @JsonProperty("taxes") - public ApiCustomerInvoiceUpdateRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { - 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 deleted file mode 100644 index c379f0c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCustomerListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiCustomerListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiCustomerListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiCustomerListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiCustomerListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiCustomerListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index c4136ea..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerPaymentCustodyConfigDto.java +++ /dev/null @@ -1,71 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerPaymentCustodyConfigDto { - - /** - * Number of days to expire the payment escrow - */ - @NonNull - private Long daysToExpire; - - /** - * Indicates whether the Escrow Account is enabled - */ - @JsonProperty("enabled") - private JsonNullable enabled; - - /** - * Indicates whether the subaccount is responsible for paying the Escrow Account fee. If not informed, the main account will be responsible for the fee - */ - @JsonProperty("isFeePayer") - private JsonNullable isFeePayer; - - @JsonIgnore - public Boolean getEnabled() { - return enabled.orElse(null); - } - - @JsonIgnore - public Boolean getIsFeePayer() { - return isFeePayer.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerPaymentCustodyConfigDtoBuilder { - - private JsonNullable enabled = JsonNullable.undefined(); - - @JsonProperty("enabled") - public ApiCustomerPaymentCustodyConfigDtoBuilder enabled(Boolean value) { - this.enabled = JsonNullable.of(value); - return this; - } - - private JsonNullable isFeePayer = JsonNullable.undefined(); - - @JsonProperty("isFeePayer") - public ApiCustomerPaymentCustodyConfigDtoBuilder isFeePayer(Boolean value) { - 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 deleted file mode 100644 index 6c5be82..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.java +++ /dev/null @@ -1,71 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto { - - /** - * Number of days to expire the payment escrow - */ - @NonNull - private Long daysToExpire; - - /** - * Indicates whether the Escrow Account is enabled - */ - @JsonProperty("enabled") - private JsonNullable enabled; - - /** - * Indicates whether the subaccount is responsible for paying the Escrow Account fee. If not informed, the main account will be responsible for the fee - */ - @JsonProperty("isFeePayer") - private JsonNullable isFeePayer; - - @JsonIgnore - public Boolean getEnabled() { - return enabled.orElse(null); - } - - @JsonIgnore - public Boolean getIsFeePayer() { - return isFeePayer.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDtoBuilder { - - private JsonNullable enabled = JsonNullable.undefined(); - - @JsonProperty("enabled") - public ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDtoBuilder enabled(Boolean value) { - this.enabled = JsonNullable.of(value); - return this; - } - - private JsonNullable isFeePayer = JsonNullable.undefined(); - - @JsonProperty("isFeePayer") - public ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDtoBuilder isFeePayer(Boolean value) { - this.isFeePayer = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestCompanyType.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestCompanyType.java deleted file mode 100644 index c340574..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestCompanyType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of company (only when Legal Entity) - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerSaveRequestCompanyType { - MEI("MEI"), - LIMITED("LIMITED"), - INDIVIDUAL("INDIVIDUAL"), - ASSOCIATION("ASSOCIATION"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerSaveRequestCompanyType fromValue(String value) { - return Arrays.stream(ApiCustomerSaveRequestCompanyType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestDto.java deleted file mode 100644 index 1a06533..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestDto.java +++ /dev/null @@ -1,215 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerSaveRequestDto { - - /** - * Subaccount name - */ - @NonNull - private String name; - - /** - * Subaccount email - */ - @NonNull - private String email; - - /** - * CPF or CNPJ of the subaccount owner - */ - @NonNull - private String cpfCnpj; - - /** - * Cellphone - */ - @NonNull - private String mobilePhone; - - /** - * Billing/Monthly income - */ - @NonNull - private Double incomeValue; - - /** - * Public place - */ - @NonNull - private String address; - - /** - * Address number - */ - @NonNull - private String addressNumber; - - /** - * Neighborhood - */ - @NonNull - private String province; - - /** - * Address zip code - */ - @NonNull - private String postalCode; - - /** - * Email for subaccount login, if not provided, the subaccount email will be used - */ - @JsonProperty("loginEmail") - private JsonNullable loginEmail; - - /** - * Date of birth (only for Individuals) - */ - @JsonProperty("birthDate") - private JsonNullable birthDate; - - /** - * Type of company (only when Legal Entity) - */ - @JsonProperty("companyType") - private JsonNullable companyType; - - /** - * Telephone - */ - @JsonProperty("phone") - private JsonNullable phone; - - /** - * Url reffered to the subaccount - */ - @JsonProperty("site") - private JsonNullable site; - - /** - * Address complement - */ - @JsonProperty("complement") - private JsonNullable complement; - - /** - * Array with desired Webhooks settings - */ - @JsonProperty("webhooks") - private JsonNullable> webhooks; - - @JsonIgnore - public String getLoginEmail() { - return loginEmail.orElse(null); - } - - @JsonIgnore - public String getBirthDate() { - return birthDate.orElse(null); - } - - @JsonIgnore - public ApiCustomerSaveRequestCompanyType getCompanyType() { - return companyType.orElse(null); - } - - @JsonIgnore - public String getPhone() { - return phone.orElse(null); - } - - @JsonIgnore - public String getSite() { - return site.orElse(null); - } - - @JsonIgnore - public String getComplement() { - return complement.orElse(null); - } - - @JsonIgnore - public List getWebhooks() { - return webhooks.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerSaveRequestDtoBuilder { - - private JsonNullable loginEmail = JsonNullable.undefined(); - - @JsonProperty("loginEmail") - public ApiCustomerSaveRequestDtoBuilder loginEmail(String value) { - this.loginEmail = JsonNullable.of(value); - return this; - } - - private JsonNullable birthDate = JsonNullable.undefined(); - - @JsonProperty("birthDate") - public ApiCustomerSaveRequestDtoBuilder birthDate(String value) { - this.birthDate = JsonNullable.of(value); - return this; - } - - private JsonNullable companyType = JsonNullable.undefined(); - - @JsonProperty("companyType") - public ApiCustomerSaveRequestDtoBuilder companyType(ApiCustomerSaveRequestCompanyType value) { - this.companyType = JsonNullable.of(value); - return this; - } - - private JsonNullable phone = JsonNullable.undefined(); - - @JsonProperty("phone") - public ApiCustomerSaveRequestDtoBuilder phone(String value) { - this.phone = JsonNullable.of(value); - return this; - } - - private JsonNullable site = JsonNullable.undefined(); - - @JsonProperty("site") - public ApiCustomerSaveRequestDtoBuilder site(String value) { - this.site = JsonNullable.of(value); - return this; - } - - private JsonNullable complement = JsonNullable.undefined(); - - @JsonProperty("complement") - public ApiCustomerSaveRequestDtoBuilder complement(String value) { - this.complement = JsonNullable.of(value); - return this; - } - - private JsonNullable> webhooks = JsonNullable.undefined(); - - @JsonProperty("webhooks") - public ApiCustomerSaveRequestDtoBuilder webhooks(List value) { - this.webhooks = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseCompanyType.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseCompanyType.java deleted file mode 100644 index 1303a64..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseCompanyType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of company (only when Legal Entity) - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerSaveResponseCompanyType { - MEI("MEI"), - LIMITED("LIMITED"), - INDIVIDUAL("INDIVIDUAL"), - ASSOCIATION("ASSOCIATION"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerSaveResponseCompanyType fromValue(String value) { - return Arrays.stream(ApiCustomerSaveResponseCompanyType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseDto.java deleted file mode 100644 index 92040cb..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseDto.java +++ /dev/null @@ -1,498 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerSaveResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique subaccount identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Subaccount name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Subaccount email - */ - @JsonProperty("email") - private JsonNullable email; - - /** - * Email for subaccount login, if not provided, the subaccount email will be used - */ - @JsonProperty("loginEmail") - private JsonNullable loginEmail; - - /** - * Telephone - */ - @JsonProperty("phone") - private JsonNullable phone; - - /** - * Cellphone - */ - @JsonProperty("mobilePhone") - private JsonNullable mobilePhone; - - /** - * Public place - */ - @JsonProperty("address") - private JsonNullable address; - - /** - * Address number - */ - @JsonProperty("addressNumber") - private JsonNullable addressNumber; - - /** - * Address complement - */ - @JsonProperty("complement") - private JsonNullable complement; - - /** - * Neighborhood - */ - @JsonProperty("province") - private JsonNullable province; - - /** - * Address zip code - */ - @JsonProperty("postalCode") - private JsonNullable postalCode; - - /** - * CPF or CNPJ of the subaccount owner - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Date of birth (only for Individuals) - */ - @JsonProperty("birthDate") - private JsonNullable birthDate; - - /** - * Kind of person - */ - @JsonProperty("personType") - private JsonNullable personType; - - /** - * Type of company (only when Legal Entity) - */ - @JsonProperty("companyType") - private JsonNullable companyType; - - /** - * Unique city identifier in Asaas - */ - @JsonProperty("city") - private JsonNullable city; - - /** - * State abbreviation (SP, RJ, SC, ...) - */ - @JsonProperty("state") - private JsonNullable state; - - /** - * Country (Fixed Brazil) - */ - @JsonProperty("country") - private JsonNullable country; - - /** - * Display name (auto-populated) - */ - @JsonProperty("tradingName") - private JsonNullable tradingName; - - /** - * Url reffered to the subaccount - */ - @JsonProperty("site") - private JsonNullable site; - - /** - * Unique wallet identifier to split charges or transfer between Asaas accounts - */ - @JsonProperty("walletId") - private JsonNullable walletId; - - @JsonProperty("accountNumber") - private JsonNullable accountNumber; - - @JsonProperty("commercialInfoExpiration") - private JsonNullable commercialInfoExpiration; - - /** - * API key - */ - @JsonProperty("apiKey") - private JsonNullable apiKey; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getEmail() { - return email.orElse(null); - } - - @JsonIgnore - public String getLoginEmail() { - return loginEmail.orElse(null); - } - - @JsonIgnore - public String getPhone() { - return phone.orElse(null); - } - - @JsonIgnore - public String getMobilePhone() { - return mobilePhone.orElse(null); - } - - @JsonIgnore - public String getAddress() { - return address.orElse(null); - } - - @JsonIgnore - public String getAddressNumber() { - return addressNumber.orElse(null); - } - - @JsonIgnore - public String getComplement() { - return complement.orElse(null); - } - - @JsonIgnore - public String getProvince() { - return province.orElse(null); - } - - @JsonIgnore - public String getPostalCode() { - return postalCode.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public String getBirthDate() { - return birthDate.orElse(null); - } - - @JsonIgnore - public ApiCustomerSaveResponsePersonType getPersonType() { - return personType.orElse(null); - } - - @JsonIgnore - public ApiCustomerSaveResponseCompanyType getCompanyType() { - return companyType.orElse(null); - } - - @JsonIgnore - public Long getCity() { - return city.orElse(null); - } - - @JsonIgnore - public String getState() { - return state.orElse(null); - } - - @JsonIgnore - public String getCountry() { - return country.orElse(null); - } - - @JsonIgnore - public String getTradingName() { - return tradingName.orElse(null); - } - - @JsonIgnore - public String getSite() { - return site.orElse(null); - } - - @JsonIgnore - public String getWalletId() { - return walletId.orElse(null); - } - - @JsonIgnore - public ApiCustomerAccountNumberDto getAccountNumber() { - return accountNumber.orElse(null); - } - - @JsonIgnore - public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { - return commercialInfoExpiration.orElse(null); - } - - @JsonIgnore - public String getApiKey() { - return apiKey.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerSaveResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCustomerSaveResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiCustomerSaveResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiCustomerSaveResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable email = JsonNullable.undefined(); - - @JsonProperty("email") - public ApiCustomerSaveResponseDtoBuilder email(String value) { - this.email = JsonNullable.of(value); - return this; - } - - private JsonNullable loginEmail = JsonNullable.undefined(); - - @JsonProperty("loginEmail") - public ApiCustomerSaveResponseDtoBuilder loginEmail(String value) { - this.loginEmail = JsonNullable.of(value); - return this; - } - - private JsonNullable phone = JsonNullable.undefined(); - - @JsonProperty("phone") - public ApiCustomerSaveResponseDtoBuilder phone(String value) { - this.phone = JsonNullable.of(value); - return this; - } - - private JsonNullable mobilePhone = JsonNullable.undefined(); - - @JsonProperty("mobilePhone") - public ApiCustomerSaveResponseDtoBuilder mobilePhone(String value) { - this.mobilePhone = JsonNullable.of(value); - return this; - } - - private JsonNullable address = JsonNullable.undefined(); - - @JsonProperty("address") - public ApiCustomerSaveResponseDtoBuilder address(String value) { - this.address = JsonNullable.of(value); - return this; - } - - private JsonNullable addressNumber = JsonNullable.undefined(); - - @JsonProperty("addressNumber") - public ApiCustomerSaveResponseDtoBuilder addressNumber(String value) { - this.addressNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable complement = JsonNullable.undefined(); - - @JsonProperty("complement") - public ApiCustomerSaveResponseDtoBuilder complement(String value) { - this.complement = JsonNullable.of(value); - return this; - } - - private JsonNullable province = JsonNullable.undefined(); - - @JsonProperty("province") - public ApiCustomerSaveResponseDtoBuilder province(String value) { - this.province = JsonNullable.of(value); - return this; - } - - private JsonNullable postalCode = JsonNullable.undefined(); - - @JsonProperty("postalCode") - public ApiCustomerSaveResponseDtoBuilder postalCode(String value) { - this.postalCode = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiCustomerSaveResponseDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable birthDate = JsonNullable.undefined(); - - @JsonProperty("birthDate") - public ApiCustomerSaveResponseDtoBuilder birthDate(String value) { - this.birthDate = JsonNullable.of(value); - return this; - } - - private JsonNullable personType = JsonNullable.undefined(); - - @JsonProperty("personType") - public ApiCustomerSaveResponseDtoBuilder personType(ApiCustomerSaveResponsePersonType value) { - this.personType = JsonNullable.of(value); - return this; - } - - private JsonNullable companyType = JsonNullable.undefined(); - - @JsonProperty("companyType") - public ApiCustomerSaveResponseDtoBuilder companyType(ApiCustomerSaveResponseCompanyType value) { - this.companyType = JsonNullable.of(value); - return this; - } - - private JsonNullable city = JsonNullable.undefined(); - - @JsonProperty("city") - public ApiCustomerSaveResponseDtoBuilder city(Long value) { - this.city = JsonNullable.of(value); - return this; - } - - private JsonNullable state = JsonNullable.undefined(); - - @JsonProperty("state") - public ApiCustomerSaveResponseDtoBuilder state(String value) { - this.state = JsonNullable.of(value); - return this; - } - - private JsonNullable country = JsonNullable.undefined(); - - @JsonProperty("country") - public ApiCustomerSaveResponseDtoBuilder country(String value) { - this.country = JsonNullable.of(value); - return this; - } - - private JsonNullable tradingName = JsonNullable.undefined(); - - @JsonProperty("tradingName") - public ApiCustomerSaveResponseDtoBuilder tradingName(String value) { - this.tradingName = JsonNullable.of(value); - return this; - } - - private JsonNullable site = JsonNullable.undefined(); - - @JsonProperty("site") - public ApiCustomerSaveResponseDtoBuilder site(String value) { - this.site = JsonNullable.of(value); - return this; - } - - private JsonNullable walletId = JsonNullable.undefined(); - - @JsonProperty("walletId") - public ApiCustomerSaveResponseDtoBuilder walletId(String value) { - this.walletId = JsonNullable.of(value); - return this; - } - - private JsonNullable accountNumber = JsonNullable.undefined(); - - @JsonProperty("accountNumber") - public ApiCustomerSaveResponseDtoBuilder accountNumber(ApiCustomerAccountNumberDto value) { - this.accountNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable commercialInfoExpiration = - JsonNullable.undefined(); - - @JsonProperty("commercialInfoExpiration") - public ApiCustomerSaveResponseDtoBuilder commercialInfoExpiration( - ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto value - ) { - this.commercialInfoExpiration = JsonNullable.of(value); - return this; - } - - private JsonNullable apiKey = JsonNullable.undefined(); - - @JsonProperty("apiKey") - public ApiCustomerSaveResponseDtoBuilder apiKey(String value) { - this.apiKey = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponsePersonType.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponsePersonType.java deleted file mode 100644 index faa1d67..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponsePersonType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Kind of person - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerSaveResponsePersonType { - JURIDICA("JURIDICA"), - FISICA("FISICA"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerSaveResponsePersonType fromValue(String value) { - return Arrays.stream(ApiCustomerSaveResponsePersonType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityDto.java deleted file mode 100644 index 82fe902..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityDto.java +++ /dev/null @@ -1,159 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerUpdateRequestCityDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique city identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * IBGE Code - */ - @JsonProperty("ibgeCode") - private JsonNullable ibgeCode; - - /** - * City's name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * District code - */ - @JsonProperty("districtCode") - private JsonNullable districtCode; - - /** - * District name - */ - @JsonProperty("district") - private JsonNullable district; - - /** - * State abbreviation (SP, RJ, SC, ...) - */ - @JsonProperty("state") - private JsonNullable state; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Long getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getIbgeCode() { - return ibgeCode.orElse(null); - } - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getDistrictCode() { - return districtCode.orElse(null); - } - - @JsonIgnore - public String getDistrict() { - return district.orElse(null); - } - - @JsonIgnore - public ApiCustomerUpdateRequestCityState getState() { - return state.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerUpdateRequestCityDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiCustomerUpdateRequestCityDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiCustomerUpdateRequestCityDtoBuilder id(Long value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable ibgeCode = JsonNullable.undefined(); - - @JsonProperty("ibgeCode") - public ApiCustomerUpdateRequestCityDtoBuilder ibgeCode(String value) { - this.ibgeCode = JsonNullable.of(value); - return this; - } - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiCustomerUpdateRequestCityDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable districtCode = JsonNullable.undefined(); - - @JsonProperty("districtCode") - public ApiCustomerUpdateRequestCityDtoBuilder districtCode(String value) { - this.districtCode = JsonNullable.of(value); - return this; - } - - private JsonNullable district = JsonNullable.undefined(); - - @JsonProperty("district") - public ApiCustomerUpdateRequestCityDtoBuilder district(String value) { - this.district = JsonNullable.of(value); - return this; - } - - private JsonNullable state = JsonNullable.undefined(); - - @JsonProperty("state") - public ApiCustomerUpdateRequestCityDtoBuilder state(ApiCustomerUpdateRequestCityState value) { - this.state = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityState.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityState.java deleted file mode 100644 index 2f3183b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityState.java +++ /dev/null @@ -1,55 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * State abbreviation (SP, RJ, SC, ...) - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerUpdateRequestCityState { - AC("AC"), - AL("AL"), - AP("AP"), - AM("AM"), - BA("BA"), - CE("CE"), - DF("DF"), - ES("ES"), - GO("GO"), - MA("MA"), - MT("MT"), - MS("MS"), - MG("MG"), - PA("PA"), - PB("PB"), - PR("PR"), - PE("PE"), - PI("PI"), - RR("RR"), - RO("RO"), - RJ("RJ"), - RN("RN"), - RS("RS"), - SC("SC"), - SP("SP"), - SE("SE"), - TO("TO"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerUpdateRequestCityState fromValue(String value) { - return Arrays.stream(ApiCustomerUpdateRequestCityState.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java deleted file mode 100644 index 0307965..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto { - - /** - * Informs if commercial data is expired - */ - @JsonProperty("isExpired") - private JsonNullable isExpired; - - /** - * Informs the expiration date of commercial data - */ - @JsonProperty("scheduledDate") - private JsonNullable scheduledDate; - - @JsonIgnore - public Boolean getIsExpired() { - return isExpired.orElse(null); - } - - @JsonIgnore - public String getScheduledDate() { - return scheduledDate.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerUpdateRequestCommercialInfoExpirationResponseDtoBuilder { - - private JsonNullable isExpired = JsonNullable.undefined(); - - @JsonProperty("isExpired") - public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDtoBuilder isExpired(Boolean value) { - this.isExpired = JsonNullable.of(value); - return this; - } - - private JsonNullable scheduledDate = JsonNullable.undefined(); - - @JsonProperty("scheduledDate") - public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDtoBuilder scheduledDate(String value) { - this.scheduledDate = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseCompanyType.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseCompanyType.java deleted file mode 100644 index 27383d6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseCompanyType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of company (only when Legal Entity) - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerUpdateRequestGetResponseCompanyType { - MEI("MEI"), - LIMITED("LIMITED"), - INDIVIDUAL("INDIVIDUAL"), - ASSOCIATION("ASSOCIATION"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerUpdateRequestGetResponseCompanyType fromValue(String value) { - return Arrays.stream(ApiCustomerUpdateRequestGetResponseCompanyType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseDto.java deleted file mode 100644 index 8f59eca..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseDto.java +++ /dev/null @@ -1,446 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerUpdateRequestGetResponseDto { - - /** - * Account status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Person Type - */ - @JsonProperty("personType") - private JsonNullable personType; - - /** - * CPF or CNPJ of the account owner - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Account owner name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Birthday (Required if the information is from an individual) - */ - @JsonProperty("birthDate") - private JsonNullable birthDate; - - /** - * Company Name - */ - @JsonProperty("companyName") - private JsonNullable companyName; - - /** - * Type of company (only when Legal Entity) - */ - @JsonProperty("companyType") - private JsonNullable companyType; - - /** - * Billing/Monthly income - */ - @JsonProperty("incomeValue") - private JsonNullable incomeValue; - - /** - * Account's email - */ - @JsonProperty("email") - private JsonNullable email; - - /** - * Telephone - */ - @JsonProperty("phone") - private JsonNullable phone; - - /** - * Cell phone - */ - @JsonProperty("mobilePhone") - private JsonNullable mobilePhone; - - /** - * Address zip code - */ - @JsonProperty("postalCode") - private JsonNullable postalCode; - - /** - * Public place - */ - @JsonProperty("address") - private JsonNullable address; - - /** - * Address number - */ - @JsonProperty("addressNumber") - private JsonNullable addressNumber; - - /** - * Address complement - */ - @JsonProperty("complement") - private JsonNullable complement; - - /** - * Neighborhood - */ - @JsonProperty("province") - private JsonNullable province; - - @JsonProperty("city") - private JsonNullable city; - - /** - * Reason why it is necessary to resend the information - */ - @JsonProperty("denialReason") - private JsonNullable denialReason; - - /** - * Display name (auto-populated) - */ - @JsonProperty("tradingName") - private JsonNullable tradingName; - - /** - * Web site - */ - @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; - - @JsonIgnore - public ApiCustomerUpdateRequestGetResponseStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiCustomerUpdateRequestGetResponsePersonType getPersonType() { - return personType.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getBirthDate() { - return birthDate.orElse(null); - } - - @JsonIgnore - public String getCompanyName() { - return companyName.orElse(null); - } - - @JsonIgnore - public ApiCustomerUpdateRequestGetResponseCompanyType getCompanyType() { - return companyType.orElse(null); - } - - @JsonIgnore - public Double getIncomeValue() { - return incomeValue.orElse(null); - } - - @JsonIgnore - public String getEmail() { - return email.orElse(null); - } - - @JsonIgnore - public String getPhone() { - return phone.orElse(null); - } - - @JsonIgnore - public String getMobilePhone() { - return mobilePhone.orElse(null); - } - - @JsonIgnore - public String getPostalCode() { - return postalCode.orElse(null); - } - - @JsonIgnore - public String getAddress() { - return address.orElse(null); - } - - @JsonIgnore - public String getAddressNumber() { - return addressNumber.orElse(null); - } - - @JsonIgnore - public String getComplement() { - return complement.orElse(null); - } - - @JsonIgnore - public String getProvince() { - return province.orElse(null); - } - - @JsonIgnore - public ApiCustomerUpdateRequestCityDto getCity() { - return city.orElse(null); - } - - @JsonIgnore - public String getDenialReason() { - return denialReason.orElse(null); - } - - @JsonIgnore - public String getTradingName() { - return tradingName.orElse(null); - } - - @JsonIgnore - public String getSite() { - return site.orElse(null); - } - - @JsonIgnore - public List getAvailableCompanyNames() { - return availableCompanyNames.orElse(null); - } - - @JsonIgnore - public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { - return commercialInfoExpiration.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerUpdateRequestGetResponseDtoBuilder { - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiCustomerUpdateRequestGetResponseDtoBuilder status(ApiCustomerUpdateRequestGetResponseStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable personType = JsonNullable.undefined(); - - @JsonProperty("personType") - public ApiCustomerUpdateRequestGetResponseDtoBuilder personType( - ApiCustomerUpdateRequestGetResponsePersonType value - ) { - this.personType = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiCustomerUpdateRequestGetResponseDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiCustomerUpdateRequestGetResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable birthDate = JsonNullable.undefined(); - - @JsonProperty("birthDate") - public ApiCustomerUpdateRequestGetResponseDtoBuilder birthDate(String value) { - this.birthDate = JsonNullable.of(value); - return this; - } - - private JsonNullable companyName = JsonNullable.undefined(); - - @JsonProperty("companyName") - public ApiCustomerUpdateRequestGetResponseDtoBuilder companyName(String value) { - this.companyName = JsonNullable.of(value); - return this; - } - - private JsonNullable companyType = JsonNullable.undefined(); - - @JsonProperty("companyType") - public ApiCustomerUpdateRequestGetResponseDtoBuilder companyType( - ApiCustomerUpdateRequestGetResponseCompanyType value - ) { - this.companyType = JsonNullable.of(value); - return this; - } - - private JsonNullable incomeValue = JsonNullable.undefined(); - - @JsonProperty("incomeValue") - public ApiCustomerUpdateRequestGetResponseDtoBuilder incomeValue(Double value) { - this.incomeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable email = JsonNullable.undefined(); - - @JsonProperty("email") - public ApiCustomerUpdateRequestGetResponseDtoBuilder email(String value) { - this.email = JsonNullable.of(value); - return this; - } - - private JsonNullable phone = JsonNullable.undefined(); - - @JsonProperty("phone") - public ApiCustomerUpdateRequestGetResponseDtoBuilder phone(String value) { - this.phone = JsonNullable.of(value); - return this; - } - - private JsonNullable mobilePhone = JsonNullable.undefined(); - - @JsonProperty("mobilePhone") - public ApiCustomerUpdateRequestGetResponseDtoBuilder mobilePhone(String value) { - this.mobilePhone = JsonNullable.of(value); - return this; - } - - private JsonNullable postalCode = JsonNullable.undefined(); - - @JsonProperty("postalCode") - public ApiCustomerUpdateRequestGetResponseDtoBuilder postalCode(String value) { - this.postalCode = JsonNullable.of(value); - return this; - } - - private JsonNullable address = JsonNullable.undefined(); - - @JsonProperty("address") - public ApiCustomerUpdateRequestGetResponseDtoBuilder address(String value) { - this.address = JsonNullable.of(value); - return this; - } - - private JsonNullable addressNumber = JsonNullable.undefined(); - - @JsonProperty("addressNumber") - public ApiCustomerUpdateRequestGetResponseDtoBuilder addressNumber(String value) { - this.addressNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable complement = JsonNullable.undefined(); - - @JsonProperty("complement") - public ApiCustomerUpdateRequestGetResponseDtoBuilder complement(String value) { - this.complement = JsonNullable.of(value); - return this; - } - - private JsonNullable province = JsonNullable.undefined(); - - @JsonProperty("province") - public ApiCustomerUpdateRequestGetResponseDtoBuilder province(String value) { - this.province = JsonNullable.of(value); - return this; - } - - private JsonNullable city = JsonNullable.undefined(); - - @JsonProperty("city") - public ApiCustomerUpdateRequestGetResponseDtoBuilder city(ApiCustomerUpdateRequestCityDto value) { - this.city = JsonNullable.of(value); - return this; - } - - private JsonNullable denialReason = JsonNullable.undefined(); - - @JsonProperty("denialReason") - public ApiCustomerUpdateRequestGetResponseDtoBuilder denialReason(String value) { - this.denialReason = JsonNullable.of(value); - return this; - } - - private JsonNullable tradingName = JsonNullable.undefined(); - - @JsonProperty("tradingName") - public ApiCustomerUpdateRequestGetResponseDtoBuilder tradingName(String value) { - this.tradingName = JsonNullable.of(value); - return this; - } - - private JsonNullable site = JsonNullable.undefined(); - - @JsonProperty("site") - public ApiCustomerUpdateRequestGetResponseDtoBuilder site(String value) { - 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(); - - @JsonProperty("commercialInfoExpiration") - public ApiCustomerUpdateRequestGetResponseDtoBuilder commercialInfoExpiration( - ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto value - ) { - this.commercialInfoExpiration = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponsePersonType.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponsePersonType.java deleted file mode 100644 index 0b39eaa..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponsePersonType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Person Type - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerUpdateRequestGetResponsePersonType { - JURIDICA("JURIDICA"), - FISICA("FISICA"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerUpdateRequestGetResponsePersonType fromValue(String value) { - return Arrays.stream(ApiCustomerUpdateRequestGetResponsePersonType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseStatus.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseStatus.java deleted file mode 100644 index 6e3e48b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseStatus.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Account status - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerUpdateRequestGetResponseStatus { - APPROVED("APPROVED"), - AWAITING_ACTION_AUTHORIZATION("AWAITING_ACTION_AUTHORIZATION"), - DENIED("DENIED"), - PENDING("PENDING"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerUpdateRequestGetResponseStatus fromValue(String value) { - return Arrays.stream(ApiCustomerUpdateRequestGetResponseStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestCompanyType.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestCompanyType.java deleted file mode 100644 index a06d41a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestCompanyType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of company (only when Legal Entity) - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerUpdateRequestSaveRequestCompanyType { - MEI("MEI"), - LIMITED("LIMITED"), - INDIVIDUAL("INDIVIDUAL"), - ASSOCIATION("ASSOCIATION"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerUpdateRequestSaveRequestCompanyType fromValue(String value) { - return Arrays.stream(ApiCustomerUpdateRequestSaveRequestCompanyType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestDto.java deleted file mode 100644 index c697aa1..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestDto.java +++ /dev/null @@ -1,296 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiCustomerUpdateRequestSaveRequestDto { - - /** - * Person Type - */ - @JsonProperty("personType") - private JsonNullable personType; - - /** - * CPF or CNPJ of the account owner - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Birthday (Required if the information is from an individual) - */ - @JsonProperty("birthDate") - private JsonNullable birthDate; - - /** - * Type of company (only when Legal Entity) - */ - @JsonProperty("companyType") - private JsonNullable companyType; - - /** - * Billing/Monthly income - */ - @JsonProperty("incomeValue") - private JsonNullable incomeValue; - - /** - * Account's email - */ - @JsonProperty("email") - private JsonNullable email; - - /** - * Telephone - */ - @JsonProperty("phone") - private JsonNullable phone; - - /** - * Cell phone - */ - @JsonProperty("mobilePhone") - private JsonNullable mobilePhone; - - /** - * Web site - */ - @JsonProperty("site") - private JsonNullable site; - - /** - * Address zip code - */ - @JsonProperty("postalCode") - private JsonNullable postalCode; - - /** - * Public place - */ - @JsonProperty("address") - private JsonNullable address; - - /** - * Address number - */ - @JsonProperty("addressNumber") - private JsonNullable addressNumber; - - /** - * Address complement - */ - @JsonProperty("complement") - private JsonNullable complement; - - /** - * Neighborhood - */ - @JsonProperty("province") - private JsonNullable province; - - @JsonIgnore - public ApiCustomerUpdateRequestSaveRequestPersonType getPersonType() { - return personType.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public String getBirthDate() { - return birthDate.orElse(null); - } - - @JsonIgnore - public ApiCustomerUpdateRequestSaveRequestCompanyType getCompanyType() { - return companyType.orElse(null); - } - - @JsonIgnore - public Double getIncomeValue() { - return incomeValue.orElse(null); - } - - @JsonIgnore - public String getEmail() { - return email.orElse(null); - } - - @JsonIgnore - public String getPhone() { - return phone.orElse(null); - } - - @JsonIgnore - public String getMobilePhone() { - return mobilePhone.orElse(null); - } - - @JsonIgnore - public String getSite() { - return site.orElse(null); - } - - @JsonIgnore - public String getPostalCode() { - return postalCode.orElse(null); - } - - @JsonIgnore - public String getAddress() { - return address.orElse(null); - } - - @JsonIgnore - public String getAddressNumber() { - return addressNumber.orElse(null); - } - - @JsonIgnore - public String getComplement() { - return complement.orElse(null); - } - - @JsonIgnore - public String getProvince() { - return province.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiCustomerUpdateRequestSaveRequestDtoBuilder { - - private JsonNullable personType = JsonNullable.undefined(); - - @JsonProperty("personType") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder personType( - ApiCustomerUpdateRequestSaveRequestPersonType value - ) { - this.personType = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable birthDate = JsonNullable.undefined(); - - @JsonProperty("birthDate") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder birthDate(String value) { - this.birthDate = JsonNullable.of(value); - return this; - } - - private JsonNullable companyType = JsonNullable.undefined(); - - @JsonProperty("companyType") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder companyType( - ApiCustomerUpdateRequestSaveRequestCompanyType value - ) { - this.companyType = JsonNullable.of(value); - return this; - } - - private JsonNullable incomeValue = JsonNullable.undefined(); - - @JsonProperty("incomeValue") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder incomeValue(Double value) { - this.incomeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable email = JsonNullable.undefined(); - - @JsonProperty("email") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder email(String value) { - this.email = JsonNullable.of(value); - return this; - } - - private JsonNullable phone = JsonNullable.undefined(); - - @JsonProperty("phone") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder phone(String value) { - this.phone = JsonNullable.of(value); - return this; - } - - private JsonNullable mobilePhone = JsonNullable.undefined(); - - @JsonProperty("mobilePhone") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder mobilePhone(String value) { - this.mobilePhone = JsonNullable.of(value); - return this; - } - - private JsonNullable site = JsonNullable.undefined(); - - @JsonProperty("site") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder site(String value) { - this.site = JsonNullable.of(value); - return this; - } - - private JsonNullable postalCode = JsonNullable.undefined(); - - @JsonProperty("postalCode") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder postalCode(String value) { - this.postalCode = JsonNullable.of(value); - return this; - } - - private JsonNullable address = JsonNullable.undefined(); - - @JsonProperty("address") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder address(String value) { - this.address = JsonNullable.of(value); - return this; - } - - private JsonNullable addressNumber = JsonNullable.undefined(); - - @JsonProperty("addressNumber") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder addressNumber(String value) { - this.addressNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable complement = JsonNullable.undefined(); - - @JsonProperty("complement") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder complement(String value) { - this.complement = JsonNullable.of(value); - return this; - } - - private JsonNullable province = JsonNullable.undefined(); - - @JsonProperty("province") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder province(String value) { - this.province = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestPersonType.java b/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestPersonType.java deleted file mode 100644 index c95382f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestPersonType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Person Type - */ -@Getter -@AllArgsConstructor -public enum ApiCustomerUpdateRequestSaveRequestPersonType { - JURIDICA("JURIDICA"), - FISICA("FISICA"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiCustomerUpdateRequestSaveRequestPersonType fromValue(String value) { - return Arrays.stream(ApiCustomerUpdateRequestSaveRequestPersonType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiErrorResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiErrorResponseDto.java deleted file mode 100644 index fe108e7..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiErrorResponseDto.java +++ /dev/null @@ -1,50 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -@NoArgsConstructor -@AllArgsConstructor -public class ApiErrorResponseDto { - - /** - * List of objects - */ - @JsonProperty("errors") - private JsonNullable> errors; - - @JsonIgnore - public List getErrors() { - return errors.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiErrorResponseDtoBuilder { - - private JsonNullable> errors = JsonNullable.undefined(); - - @JsonProperty("errors") - public ApiErrorResponseDtoBuilder errors(List value) { - 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 deleted file mode 100644 index 0e53564..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiErrorResponseItemDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiErrorResponseItemDto { - - /** - * Error code - */ - @JsonProperty("code") - private JsonNullable code; - - /** - * Error description - */ - @JsonProperty("description") - private JsonNullable description; - - @JsonIgnore - public String getCode() { - return code.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiErrorResponseItemDtoBuilder { - - private JsonNullable code = JsonNullable.undefined(); - - @JsonProperty("code") - public ApiErrorResponseItemDtoBuilder code(String value) { - this.code = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiErrorResponseItemDtoBuilder description(String value) { - 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 deleted file mode 100644 index b26ca37..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceBalanceResponseDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiFinanceBalanceResponseDto { - - /** - * Account balance - */ - @JsonProperty("balance") - private JsonNullable balance; - - @JsonIgnore - public Double getBalance() { - return balance.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiFinanceBalanceResponseDtoBuilder { - - private JsonNullable balance = JsonNullable.undefined(); - - @JsonProperty("balance") - public ApiFinanceBalanceResponseDtoBuilder balance(Double value) { - this.balance = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestBillingType.java deleted file mode 100644 index d0ea03f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestBillingType.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by payment method - */ -@Getter -@AllArgsConstructor -public enum ApiFinanceGetPaymentStatisticsRequestBillingType { - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - TRANSFER("TRANSFER"), - DEPOSIT("DEPOSIT"), - DEBIT_CARD("DEBIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiFinanceGetPaymentStatisticsRequestBillingType fromValue(String value) { - return Arrays.stream(ApiFinanceGetPaymentStatisticsRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.java deleted file mode 100644 index 1ef1389..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by status - */ -@Getter -@AllArgsConstructor -public enum ApiFinanceGetPaymentStatisticsRequestPaymentStatus { - PENDING("PENDING"), - RECEIVED("RECEIVED"), - CONFIRMED("CONFIRMED"), - OVERDUE("OVERDUE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiFinanceGetPaymentStatisticsRequestPaymentStatus fromValue(String value) { - return Arrays.stream(ApiFinanceGetPaymentStatisticsRequestPaymentStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsResponseDto.java deleted file mode 100644 index 79f4000..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsResponseDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiFinanceGetPaymentStatisticsResponseDto { - - /** - * Number of charges - */ - @JsonProperty("quantity") - private JsonNullable quantity; - - /** - * Amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Total net worth - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - @JsonIgnore - public Long getQuantity() { - return quantity.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiFinanceGetPaymentStatisticsResponseDtoBuilder { - - private JsonNullable quantity = JsonNullable.undefined(); - - @JsonProperty("quantity") - public ApiFinanceGetPaymentStatisticsResponseDtoBuilder quantity(Long value) { - this.quantity = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiFinanceGetPaymentStatisticsResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiFinanceGetPaymentStatisticsResponseDtoBuilder netValue(Double value) { - 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 deleted file mode 100644 index 1fcfecc..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetSplitStatisticsResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiFinanceGetSplitStatisticsResponseDto { - - /** - * Amounts receivable - */ - @JsonProperty("income") - private JsonNullable income; - - /** - * Values to be sent - */ - @JsonProperty("value") - private JsonNullable value; - - @JsonIgnore - public Double getIncome() { - return income.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiFinanceGetSplitStatisticsResponseDtoBuilder { - - private JsonNullable income = JsonNullable.undefined(); - - @JsonProperty("income") - public ApiFinanceGetSplitStatisticsResponseDtoBuilder income(Double value) { - this.income = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiFinanceGetSplitStatisticsResponseDtoBuilder value(Double value) { - 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 deleted file mode 100644 index 7e6888d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseDto.java +++ /dev/null @@ -1,313 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiFinancialTransactionGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique transaction identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Transaction value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Value in account at the time of the transaction - */ - @JsonProperty("balance") - private JsonNullable balance; - - /** - * Transaction type - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Transaction date - */ - @JsonProperty("date") - private JsonNullable date; - - /** - * Transaction description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Payment identifier (If any) - */ - @JsonProperty("paymentId") - private JsonNullable paymentId; - - /** - * Split identifier (If any) - */ - @JsonProperty("splitId") - private JsonNullable splitId; - - /** - * Transfer identifier (If any) - */ - @JsonProperty("transferId") - private JsonNullable transferId; - - /** - * Anticipation identifier (If any) - */ - @JsonProperty("anticipationId") - private JsonNullable anticipationId; - - /** - * Bill payment identifier (If any) - */ - @JsonProperty("billId") - private JsonNullable billId; - - /** - * Invoice identifier (If any) - */ - @JsonProperty("invoiceId") - private JsonNullable invoiceId; - - /** - * Payment dunning identifier (If any) - */ - @JsonProperty("paymentDunningId") - private JsonNullable paymentDunningId; - - /** - * Serasa consultation identifier (If any) - */ - @JsonProperty("creditBureauReportId") - private JsonNullable creditBureauReportId; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getBalance() { - return balance.orElse(null); - } - - @JsonIgnore - public ApiFinancialTransactionGetResponseFinancialTransactionType getType() { - return type.orElse(null); - } - - @JsonIgnore - public String getDate() { - return date.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getPaymentId() { - return paymentId.orElse(null); - } - - @JsonIgnore - public String getSplitId() { - return splitId.orElse(null); - } - - @JsonIgnore - public String getTransferId() { - return transferId.orElse(null); - } - - @JsonIgnore - public String getAnticipationId() { - return anticipationId.orElse(null); - } - - @JsonIgnore - public String getBillId() { - return billId.orElse(null); - } - - @JsonIgnore - public String getInvoiceId() { - return invoiceId.orElse(null); - } - - @JsonIgnore - public String getPaymentDunningId() { - return paymentDunningId.orElse(null); - } - - @JsonIgnore - public String getCreditBureauReportId() { - return creditBureauReportId.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiFinancialTransactionGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiFinancialTransactionGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiFinancialTransactionGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiFinancialTransactionGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable balance = JsonNullable.undefined(); - - @JsonProperty("balance") - public ApiFinancialTransactionGetResponseDtoBuilder balance(Double value) { - this.balance = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiFinancialTransactionGetResponseDtoBuilder type( - ApiFinancialTransactionGetResponseFinancialTransactionType value - ) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable date = JsonNullable.undefined(); - - @JsonProperty("date") - public ApiFinancialTransactionGetResponseDtoBuilder date(String value) { - this.date = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiFinancialTransactionGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentId = JsonNullable.undefined(); - - @JsonProperty("paymentId") - public ApiFinancialTransactionGetResponseDtoBuilder paymentId(String value) { - this.paymentId = JsonNullable.of(value); - return this; - } - - private JsonNullable splitId = JsonNullable.undefined(); - - @JsonProperty("splitId") - public ApiFinancialTransactionGetResponseDtoBuilder splitId(String value) { - this.splitId = JsonNullable.of(value); - return this; - } - - private JsonNullable transferId = JsonNullable.undefined(); - - @JsonProperty("transferId") - public ApiFinancialTransactionGetResponseDtoBuilder transferId(String value) { - this.transferId = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipationId = JsonNullable.undefined(); - - @JsonProperty("anticipationId") - public ApiFinancialTransactionGetResponseDtoBuilder anticipationId(String value) { - this.anticipationId = JsonNullable.of(value); - return this; - } - - private JsonNullable billId = JsonNullable.undefined(); - - @JsonProperty("billId") - public ApiFinancialTransactionGetResponseDtoBuilder billId(String value) { - this.billId = JsonNullable.of(value); - return this; - } - - private JsonNullable invoiceId = JsonNullable.undefined(); - - @JsonProperty("invoiceId") - public ApiFinancialTransactionGetResponseDtoBuilder invoiceId(String value) { - this.invoiceId = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentDunningId = JsonNullable.undefined(); - - @JsonProperty("paymentDunningId") - public ApiFinancialTransactionGetResponseDtoBuilder paymentDunningId(String value) { - this.paymentDunningId = JsonNullable.of(value); - return this; - } - - private JsonNullable creditBureauReportId = JsonNullable.undefined(); - - @JsonProperty("creditBureauReportId") - public ApiFinancialTransactionGetResponseDtoBuilder creditBureauReportId(String value) { - this.creditBureauReportId = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseFinancialTransactionType.java b/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseFinancialTransactionType.java deleted file mode 100644 index 44f2d62..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseFinancialTransactionType.java +++ /dev/null @@ -1,152 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Transaction type - */ -@Getter -@AllArgsConstructor -public enum ApiFinancialTransactionGetResponseFinancialTransactionType { - PAYMENT_RECEIVED("PAYMENT_RECEIVED"), - TRANSFER("TRANSFER"), - TRANSFER_FEE("TRANSFER_FEE"), - TRANSFER_REVERSAL("TRANSFER_REVERSAL"), - REVERSAL("REVERSAL"), - PAYMENT_REVERSAL("PAYMENT_REVERSAL"), - PAYMENT_REFUND_CANCELLED("PAYMENT_REFUND_CANCELLED"), - PAYMENT_FEE("PAYMENT_FEE"), - PAYMENT_FEE_REVERSAL("PAYMENT_FEE_REVERSAL"), - PAYMENT_CUSTODY_BLOCK("PAYMENT_CUSTODY_BLOCK"), - PAYMENT_CUSTODY_BLOCK_REVERSAL("PAYMENT_CUSTODY_BLOCK_REVERSAL"), - PHONE_CALL_NOTIFICATION_FEE("PHONE_CALL_NOTIFICATION_FEE"), - PROMOTIONAL_CODE_CREDIT("PROMOTIONAL_CODE_CREDIT"), - DEBIT("DEBIT"), - DEBIT_REVERSAL("DEBIT_REVERSAL"), - DEBT_RECOVERY_NEGOTIATION_FINANCIAL_CHARGES("DEBT_RECOVERY_NEGOTIATION_FINANCIAL_CHARGES"), - RECEIVABLE_ANTICIPATION_GROSS_CREDIT("RECEIVABLE_ANTICIPATION_GROSS_CREDIT"), - RECEIVABLE_ANTICIPATION_FEE("RECEIVABLE_ANTICIPATION_FEE"), - RECEIVABLE_ANTICIPATION_DEBIT("RECEIVABLE_ANTICIPATION_DEBIT"), - RECEIVABLE_ANTICIPATION_PARTNER_SETTLEMENT("RECEIVABLE_ANTICIPATION_PARTNER_SETTLEMENT"), - BILL_PAYMENT("BILL_PAYMENT"), - BILL_PAYMENT_FEE("BILL_PAYMENT_FEE"), - BILL_PAYMENT_CANCELLED("BILL_PAYMENT_CANCELLED"), - BILL_PAYMENT_FEE_CANCELLED("BILL_PAYMENT_FEE_CANCELLED"), - BILL_PAYMENT_REFUNDED("BILL_PAYMENT_REFUNDED"), - POSTAL_SERVICE_FEE("POSTAL_SERVICE_FEE"), - INTERNAL_TRANSFER_DEBIT("INTERNAL_TRANSFER_DEBIT"), - INTERNAL_TRANSFER_CREDIT("INTERNAL_TRANSFER_CREDIT"), - INTERNAL_TRANSFER_REVERSAL("INTERNAL_TRANSFER_REVERSAL"), - CREDIT("CREDIT"), - PARTIAL_PAYMENT("PARTIAL_PAYMENT"), - PAYMENT_MESSAGING_NOTIFICATION_FEE("PAYMENT_MESSAGING_NOTIFICATION_FEE"), - PAYMENT_SMS_NOTIFICATION_FEE("PAYMENT_SMS_NOTIFICATION_FEE"), - PAYMENT_DUNNING_REQUEST_FEE("PAYMENT_DUNNING_REQUEST_FEE"), - PAYMENT_DUNNING_RECEIVED_FEE("PAYMENT_DUNNING_RECEIVED_FEE"), - PAYMENT_DUNNING_RECEIVED_IN_CASH_FEE("PAYMENT_DUNNING_RECEIVED_IN_CASH_FEE"), - PAYMENT_DUNNING_CANCELLATION_FEE("PAYMENT_DUNNING_CANCELLATION_FEE"), - CUSTOMER_COMMISSION_SETTLEMENT_CREDIT("CUSTOMER_COMMISSION_SETTLEMENT_CREDIT"), - CUSTOMER_COMMISSION_SETTLEMENT_DEBIT("CUSTOMER_COMMISSION_SETTLEMENT_DEBIT"), - PROMOTIONAL_CODE_DEBIT("PROMOTIONAL_CODE_DEBIT"), - REFUND_REQUEST_FEE("REFUND_REQUEST_FEE"), - REFUND_REQUEST_CANCELLED("REFUND_REQUEST_CANCELLED"), - REFUND_REQUEST_FEE_REVERSAL("REFUND_REQUEST_FEE_REVERSAL"), - INVOICE_FEE("INVOICE_FEE"), - PRODUCT_INVOICE_FEE("PRODUCT_INVOICE_FEE"), - CONSUMER_INVOICE_FEE("CONSUMER_INVOICE_FEE"), - ASAAS_CARD_RECHARGE("ASAAS_CARD_RECHARGE"), - ASAAS_CARD_RECHARGE_REVERSAL("ASAAS_CARD_RECHARGE_REVERSAL"), - ASAAS_CARD_BALANCE_REFUND("ASAAS_CARD_BALANCE_REFUND"), - CHARGEBACK("CHARGEBACK"), - CHARGEBACK_REVERSAL("CHARGEBACK_REVERSAL"), - ASAAS_CARD_BILL_PAYMENT("ASAAS_CARD_BILL_PAYMENT"), - ASAAS_CARD_BILL_PAYMENT_REFUND("ASAAS_CARD_BILL_PAYMENT_REFUND"), - ASAAS_CARD_TRANSACTION("ASAAS_CARD_TRANSACTION"), - ASAAS_CARD_CASHBACK("ASAAS_CARD_CASHBACK"), - ASAAS_CARD_CREDIT_TRANSFER("ASAAS_CARD_CREDIT_TRANSFER"), - ASAAS_CARD_CREDIT_TRANSFER_CANCELLATION("ASAAS_CARD_CREDIT_TRANSFER_CANCELLATION"), - ASAAS_CARD_CREDIT_TRANSFER_PARTIAL_CANCELLATION("ASAAS_CARD_CREDIT_TRANSFER_PARTIAL_CANCELLATION"), - ASAAS_CARD_CREDIT_VOUCHER("ASAAS_CARD_CREDIT_VOUCHER"), - ASAAS_CARD_CREDIT_VOUCHER_REFUND("ASAAS_CARD_CREDIT_VOUCHER_REFUND"), - ASAAS_CARD_DEBIT_TRANSFER("ASAAS_CARD_DEBIT_TRANSFER"), - ASAAS_CARD_DEBIT_TRANSFER_CANCELLATION("ASAAS_CARD_DEBIT_TRANSFER_CANCELLATION"), - ASAAS_CARD_DEBIT_TRANSFER_PARTIAL_CANCELLATION("ASAAS_CARD_DEBIT_TRANSFER_PARTIAL_CANCELLATION"), - ASAAS_CARD_TRANSACTION_FEE("ASAAS_CARD_TRANSACTION_FEE"), - ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE("ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE"), - ASAAS_CARD_TRANSACTION_IOF_FEE("ASAAS_CARD_TRANSACTION_IOF_FEE"), - ASAAS_CARD_TRANSACTION_REFUND("ASAAS_CARD_TRANSACTION_REFUND"), - ASAAS_CARD_TRANSACTION_FEE_REFUND("ASAAS_CARD_TRANSACTION_FEE_REFUND"), - ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE_REFUND("ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE_REFUND"), - ASAAS_CARD_TRANSACTION_PARTIAL_REFUND("ASAAS_CARD_TRANSACTION_PARTIAL_REFUND"), - ASAAS_CARD_TRANSACTION_REFUND_CANCELLATION("ASAAS_CARD_TRANSACTION_REFUND_CANCELLATION"), - ASAAS_CARD_TRANSACTION_PARTIAL_REFUND_CANCELLATION("ASAAS_CARD_TRANSACTION_PARTIAL_REFUND_CANCELLATION"), - ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE("ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE"), - ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE_REFUND("ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE_REFUND"), - ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE("ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE"), - ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE_REFUND("ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE_REFUND"), - ASAAS_MONEY_PAYMENT_FINANCING_FEE("ASAAS_MONEY_PAYMENT_FINANCING_FEE"), - ASAAS_MONEY_PAYMENT_FINANCING_FEE_REFUND("ASAAS_MONEY_PAYMENT_FINANCING_FEE_REFUND"), - ASAAS_MONEY_TRANSACTION_CASHBACK("ASAAS_MONEY_TRANSACTION_CASHBACK"), - ASAAS_MONEY_TRANSACTION_CASHBACK_REFUND("ASAAS_MONEY_TRANSACTION_CASHBACK_REFUND"), - ASAAS_MONEY_TRANSACTION_CHARGEBACK("ASAAS_MONEY_TRANSACTION_CHARGEBACK"), - ASAAS_MONEY_TRANSACTION_CHARGEBACK_REVERSAL("ASAAS_MONEY_TRANSACTION_CHARGEBACK_REVERSAL"), - CHARGED_FEE_REFUND("CHARGED_FEE_REFUND"), - PIX_TRANSACTION_DEBIT("PIX_TRANSACTION_DEBIT"), - PIX_TRANSACTION_DEBIT_REFUND("PIX_TRANSACTION_DEBIT_REFUND"), - PIX_TRANSACTION_CREDIT("PIX_TRANSACTION_CREDIT"), - PIX_TRANSACTION_CREDIT_FEE("PIX_TRANSACTION_CREDIT_FEE"), - PIX_TRANSACTION_CREDIT_REFUND("PIX_TRANSACTION_CREDIT_REFUND"), - PIX_TRANSACTION_CREDIT_REFUND_CANCELLATION("PIX_TRANSACTION_CREDIT_REFUND_CANCELLATION"), - PIX_TRANSACTION_DEBIT_FEE("PIX_TRANSACTION_DEBIT_FEE"), - CREDIT_BUREAU_REPORT("CREDIT_BUREAU_REPORT"), - CONTRACTUAL_EFFECT_SETTLEMENT("CONTRACTUAL_EFFECT_SETTLEMENT"), - CONTRACTUAL_EFFECT_SETTLEMENT_REVERSAL("CONTRACTUAL_EFFECT_SETTLEMENT_REVERSAL"), - FREE_PAYMENT_USE("FREE_PAYMENT_USE"), - MOBILE_PHONE_RECHARGE("MOBILE_PHONE_RECHARGE"), - REFUND_MOBILE_PHONE_RECHARGE("REFUND_MOBILE_PHONE_RECHARGE"), - CANCEL_MOBILE_PHONE_RECHARGE("CANCEL_MOBILE_PHONE_RECHARGE"), - BACEN_JUDICIAL_LOCK("BACEN_JUDICIAL_LOCK"), - BACEN_JUDICIAL_UNLOCK("BACEN_JUDICIAL_UNLOCK"), - BACEN_JUDICIAL_TRANSFER("BACEN_JUDICIAL_TRANSFER"), - INSTANT_TEXT_MESSAGE_FEE("INSTANT_TEXT_MESSAGE_FEE"), - ASAAS_DEBIT_CARD_REQUEST_FEE("ASAAS_DEBIT_CARD_REQUEST_FEE"), - ASAAS_PREPAID_CARD_REQUEST_FEE("ASAAS_PREPAID_CARD_REQUEST_FEE"), - EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_CREDIT("EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_CREDIT"), - EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_REVERSAL("EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_REVERSAL"), - CHILD_ACCOUNT_KNOWN_YOUR_CUSTOMER_BATCH_FEE("CHILD_ACCOUNT_KNOWN_YOUR_CUSTOMER_BATCH_FEE"), - CONTRACTED_CUSTOMER_PLAN_FEE("CONTRACTED_CUSTOMER_PLAN_FEE"), - ACCOUNT_INACTIVITY_FEE("ACCOUNT_INACTIVITY_FEE"), - PAYMENT_ORIGIN_CHANNEL_FEE("PAYMENT_ORIGIN_CHANNEL_FEE"), - PAYMENT_SPLIT_DIVERGENCE_BLOCK("PAYMENT_SPLIT_DIVERGENCE_BLOCK"), - PAYMENT_SPLIT_DIVERGENCE_BLOCK_REVERSAL("PAYMENT_SPLIT_DIVERGENCE_BLOCK_REVERSAL"), - CUSTOMER_ACCOUNT_PAYMENT_BONUS_FEE("CUSTOMER_ACCOUNT_PAYMENT_BONUS_FEE"), - CUSTOMER_PAYMENT_CUSTODY_CONFIG_FEE("CUSTOMER_PAYMENT_CUSTODY_CONFIG_FEE"), - CARD_SALE_ITEM_FEE("CARD_SALE_ITEM_FEE"), - CARD_SALE_ITEM_FEE_REVERSAL("CARD_SALE_ITEM_FEE_REVERSAL"), - CARD_SALE_RECEIVED("CARD_SALE_RECEIVED"), - CARD_SALE_REVERSAL("CARD_SALE_REVERSAL"), - RECEIVABLE_ANTICIPATION_PAYMENT_FEE("RECEIVABLE_ANTICIPATION_PAYMENT_FEE"), - ASAAS_MONEY_DONATION_DEBIT("ASAAS_MONEY_DONATION_DEBIT"), - ASAAS_MONEY_DONATION_DEBIT_REFUND("ASAAS_MONEY_DONATION_DEBIT_REFUND"), - ASAAS_MONEY_PAYMENT_DEBIT("ASAAS_MONEY_PAYMENT_DEBIT"), - ASAAS_MONEY_PAYMENT_DEBIT_REFUND("ASAAS_MONEY_PAYMENT_DEBIT_REFUND"), - CUSTOMER_COMMISSION_CHECKOUT("CUSTOMER_COMMISSION_CHECKOUT"), - RECEIVABLE_ANTICIPATION_CREDIT("RECEIVABLE_ANTICIPATION_CREDIT"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiFinancialTransactionGetResponseFinancialTransactionType fromValue(String value) { - return Arrays.stream(ApiFinancialTransactionGetResponseFinancialTransactionType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionListResponseDto.java deleted file mode 100644 index 6e05504..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiFinancialTransactionListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiFinancialTransactionListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiFinancialTransactionListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiFinancialTransactionListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiFinancialTransactionListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiFinancialTransactionListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiFinancialTransactionListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiFinancialTransactionListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index ce8e316..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentDeleteResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiInstallmentDeleteResponseDto { - - /** - * Indicates whether the installment plan is removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Unique installment identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiInstallmentDeleteResponseDtoBuilder { - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiInstallmentDeleteResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiInstallmentDeleteResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseBillingType.java deleted file mode 100644 index e0891c0..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseBillingType.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Form of payment - */ -@Getter -@AllArgsConstructor -public enum ApiInstallmentGetResponseBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - DEBIT_CARD("DEBIT_CARD"), - TRANSFER("TRANSFER"), - DEPOSIT("DEPOSIT"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiInstallmentGetResponseBillingType fromValue(String value) { - return Arrays.stream(ApiInstallmentGetResponseBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseDto.java deleted file mode 100644 index b5c236e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseDto.java +++ /dev/null @@ -1,382 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiInstallmentGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique installment identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Installment amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Net installment amount - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Value of each installment - */ - @JsonProperty("paymentValue") - private JsonNullable paymentValue; - - /** - * Number of installments - */ - @JsonProperty("installmentCount") - private JsonNullable installmentCount; - - /** - * Form of payment - */ - @JsonProperty("billingType") - private JsonNullable billingType; - - /** - * Bill settlement date on Asaas - */ - @JsonProperty("paymentDate") - private JsonNullable paymentDate; - - /** - * Description of the installment - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Due date of each installment - */ - @JsonProperty("expirationDay") - private JsonNullable expirationDay; - - /** - * Installment creation date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Unique identifier of the customer to whom the installment belongs - */ - @JsonProperty("customer") - private JsonNullable customer; - - /** - * Unique identifier of the payment link to which the installment belongs - */ - @JsonProperty("paymentLink") - private JsonNullable paymentLink; - - /** - * Unique checkout identifier - */ - @JsonProperty("checkoutSession") - private JsonNullable checkoutSession; - - /** - * URL of proof of confirmation, receipt, reversal or removal. - */ - @JsonProperty("transactionReceiptUrl") - private JsonNullable transactionReceiptUrl; - - @JsonProperty("chargeback") - private JsonNullable chargeback; - - @JsonProperty("creditCard") - private JsonNullable creditCard; - - /** - * Indicates whether the installment has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Refunds information - */ - @JsonProperty("refunds") - private JsonNullable> refunds; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getPaymentValue() { - return paymentValue.orElse(null); - } - - @JsonIgnore - public Long getInstallmentCount() { - return installmentCount.orElse(null); - } - - @JsonIgnore - public ApiInstallmentGetResponseBillingType getBillingType() { - return billingType.orElse(null); - } - - @JsonIgnore - public String getPaymentDate() { - return paymentDate.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Long getExpirationDay() { - return expirationDay.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public String getCustomer() { - return customer.orElse(null); - } - - @JsonIgnore - public String getPaymentLink() { - return paymentLink.orElse(null); - } - - @JsonIgnore - public String getCheckoutSession() { - return checkoutSession.orElse(null); - } - - @JsonIgnore - public String getTransactionReceiptUrl() { - return transactionReceiptUrl.orElse(null); - } - - @JsonIgnore - public ApiPaymentChargebackResponseDto getChargeback() { - return chargeback.orElse(null); - } - - @JsonIgnore - public ApiPaymentSaveWithCreditCardCreditCardDto getCreditCard() { - return creditCard.orElse(null); - } - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public List getRefunds() { - return refunds.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiInstallmentGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiInstallmentGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiInstallmentGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiInstallmentGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiInstallmentGetResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentValue = JsonNullable.undefined(); - - @JsonProperty("paymentValue") - public ApiInstallmentGetResponseDtoBuilder paymentValue(Double value) { - this.paymentValue = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentCount = JsonNullable.undefined(); - - @JsonProperty("installmentCount") - public ApiInstallmentGetResponseDtoBuilder installmentCount(Long value) { - this.installmentCount = JsonNullable.of(value); - return this; - } - - private JsonNullable billingType = JsonNullable.undefined(); - - @JsonProperty("billingType") - public ApiInstallmentGetResponseDtoBuilder billingType(ApiInstallmentGetResponseBillingType value) { - this.billingType = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentDate = JsonNullable.undefined(); - - @JsonProperty("paymentDate") - public ApiInstallmentGetResponseDtoBuilder paymentDate(String value) { - this.paymentDate = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiInstallmentGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable expirationDay = JsonNullable.undefined(); - - @JsonProperty("expirationDay") - public ApiInstallmentGetResponseDtoBuilder expirationDay(Long value) { - this.expirationDay = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiInstallmentGetResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable customer = JsonNullable.undefined(); - - @JsonProperty("customer") - public ApiInstallmentGetResponseDtoBuilder customer(String value) { - this.customer = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentLink = JsonNullable.undefined(); - - @JsonProperty("paymentLink") - public ApiInstallmentGetResponseDtoBuilder paymentLink(String value) { - this.paymentLink = JsonNullable.of(value); - return this; - } - - private JsonNullable checkoutSession = JsonNullable.undefined(); - - @JsonProperty("checkoutSession") - public ApiInstallmentGetResponseDtoBuilder checkoutSession(String value) { - this.checkoutSession = JsonNullable.of(value); - return this; - } - - private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); - - @JsonProperty("transactionReceiptUrl") - public ApiInstallmentGetResponseDtoBuilder transactionReceiptUrl(String value) { - this.transactionReceiptUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable chargeback = JsonNullable.undefined(); - - @JsonProperty("chargeback") - public ApiInstallmentGetResponseDtoBuilder chargeback(ApiPaymentChargebackResponseDto value) { - this.chargeback = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCard = JsonNullable.undefined(); - - @JsonProperty("creditCard") - public ApiInstallmentGetResponseDtoBuilder creditCard(ApiPaymentSaveWithCreditCardCreditCardDto value) { - this.creditCard = JsonNullable.of(value); - return this; - } - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiInstallmentGetResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable> refunds = JsonNullable.undefined(); - - @JsonProperty("refunds") - public ApiInstallmentGetResponseDtoBuilder refunds(List value) { - this.refunds = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentListPaymentsRequestPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentListPaymentsRequestPaymentStatus.java deleted file mode 100644 index 12c0cf3..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentListPaymentsRequestPaymentStatus.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by payment status - */ -@Getter -@AllArgsConstructor -public enum ApiInstallmentListPaymentsRequestPaymentStatus { - PENDING("PENDING"), - RECEIVED("RECEIVED"), - CONFIRMED("CONFIRMED"), - OVERDUE("OVERDUE"), - REFUNDED("REFUNDED"), - RECEIVED_IN_CASH("RECEIVED_IN_CASH"), - REFUND_REQUESTED("REFUND_REQUESTED"), - REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), - CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), - CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), - AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), - DUNNING_REQUESTED("DUNNING_REQUESTED"), - DUNNING_RECEIVED("DUNNING_RECEIVED"), - AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiInstallmentListPaymentsRequestPaymentStatus fromValue(String value) { - return Arrays.stream(ApiInstallmentListPaymentsRequestPaymentStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentListResponseDto.java deleted file mode 100644 index 44b1fe5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiInstallmentListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiInstallmentListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiInstallmentListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiInstallmentListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiInstallmentListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiInstallmentListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiInstallmentListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiInstallmentListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index 2fb7f2d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponseDto.java +++ /dev/null @@ -1,198 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiInstallmentRefundResponseDto { - - /** - * Refund creation date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Refund status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Refund value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * (Pix only) Unique identifier of the Pix transaction at the Central Bank - */ - @JsonProperty("endToEndIdentifier") - private JsonNullable endToEndIdentifier; - - /** - * Description of the refund - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * (Pix only) Refund effective date - */ - @JsonProperty("effectiveDate") - private JsonNullable effectiveDate; - - /** - * Transaction receipt link - */ - @JsonProperty("transactionReceiptUrl") - private JsonNullable transactionReceiptUrl; - - /** - * Refunded Splits, if any - */ - @JsonProperty("refundedSplits") - private JsonNullable> refundedSplits; - - /** - * Unique payment identifier in Asaas - */ - @JsonProperty("paymentId") - private JsonNullable paymentId; - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public ApiInstallmentRefundResponsePaymentRefundStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getEndToEndIdentifier() { - return endToEndIdentifier.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getEffectiveDate() { - return effectiveDate.orElse(null); - } - - @JsonIgnore - public String getTransactionReceiptUrl() { - return transactionReceiptUrl.orElse(null); - } - - @JsonIgnore - public List getRefundedSplits() { - return refundedSplits.orElse(null); - } - - @JsonIgnore - public String getPaymentId() { - return paymentId.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiInstallmentRefundResponseDtoBuilder { - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiInstallmentRefundResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiInstallmentRefundResponseDtoBuilder status(ApiInstallmentRefundResponsePaymentRefundStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiInstallmentRefundResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable endToEndIdentifier = JsonNullable.undefined(); - - @JsonProperty("endToEndIdentifier") - public ApiInstallmentRefundResponseDtoBuilder endToEndIdentifier(String value) { - this.endToEndIdentifier = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiInstallmentRefundResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable effectiveDate = JsonNullable.undefined(); - - @JsonProperty("effectiveDate") - public ApiInstallmentRefundResponseDtoBuilder effectiveDate(String value) { - this.effectiveDate = JsonNullable.of(value); - return this; - } - - private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); - - @JsonProperty("transactionReceiptUrl") - public ApiInstallmentRefundResponseDtoBuilder transactionReceiptUrl(String value) { - this.transactionReceiptUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable> refundedSplits = JsonNullable.undefined(); - - @JsonProperty("refundedSplits") - public ApiInstallmentRefundResponseDtoBuilder refundedSplits(List value) { - this.refundedSplits = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentId = JsonNullable.undefined(); - - @JsonProperty("paymentId") - public ApiInstallmentRefundResponseDtoBuilder paymentId(String value) { - this.paymentId = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponsePaymentRefundStatus.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponsePaymentRefundStatus.java deleted file mode 100644 index 83045fa..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponsePaymentRefundStatus.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Refund status - */ -@Getter -@AllArgsConstructor -public enum ApiInstallmentRefundResponsePaymentRefundStatus { - PENDING("PENDING"), - AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), - AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION("AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION"), - CANCELLED("CANCELLED"), - DONE("DONE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiInstallmentRefundResponsePaymentRefundStatus fromValue(String value) { - return Arrays.stream(ApiInstallmentRefundResponsePaymentRefundStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestBillingType.java deleted file mode 100644 index 2e32df6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment billing type - */ -@Getter -@AllArgsConstructor -public enum ApiInstallmentSaveRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiInstallmentSaveRequestBillingType fromValue(String value) { - return Arrays.stream(ApiInstallmentSaveRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestDto.java deleted file mode 100644 index 28f4f59..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestDto.java +++ /dev/null @@ -1,220 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiInstallmentSaveRequestDto { - - /** - * Number of installments - */ - @NonNull - private Long installmentCount; - - /** - * Unique customer identifier in Asaas - */ - @NonNull - private String customer; - - /** - * Value of each installment - */ - @NonNull - private Double value; - - /** - * Payment billing type - */ - @NonNull - private ApiInstallmentSaveRequestBillingType billingType; - - /** - * Due date of the first installment - */ - @NonNull - private String dueDate; - - /** - * Total installment amount - */ - @JsonProperty("totalValue") - private JsonNullable totalValue; - - /** - * Installment description (max. 500 characters) - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Define whether the payment will be sent via post - */ - @JsonProperty("postalService") - private JsonNullable postalService; - - /** - * Days after registration cancellation deadline (only for bank slip) - */ - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - private JsonNullable daysAfterDueDateToRegistrationCancellation; - - /** - * Free search field - */ - @JsonProperty("paymentExternalReference") - private JsonNullable paymentExternalReference; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("interest") - private JsonNullable interest; - - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Split Settings - */ - @JsonProperty("splits") - private JsonNullable> splits; - - @JsonIgnore - public Double getTotalValue() { - return totalValue.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Boolean getPostalService() { - return postalService.orElse(null); - } - - @JsonIgnore - public Long getDaysAfterDueDateToRegistrationCancellation() { - return daysAfterDueDateToRegistrationCancellation.orElse(null); - } - - @JsonIgnore - public String getPaymentExternalReference() { - return paymentExternalReference.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineRequestDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public List getSplits() { - return splits.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiInstallmentSaveRequestDtoBuilder { - - private JsonNullable totalValue = JsonNullable.undefined(); - - @JsonProperty("totalValue") - public ApiInstallmentSaveRequestDtoBuilder totalValue(Double value) { - this.totalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiInstallmentSaveRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable postalService = JsonNullable.undefined(); - - @JsonProperty("postalService") - public ApiInstallmentSaveRequestDtoBuilder postalService(Boolean value) { - this.postalService = JsonNullable.of(value); - return this; - } - - private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); - - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiInstallmentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentExternalReference = JsonNullable.undefined(); - - @JsonProperty("paymentExternalReference") - public ApiInstallmentSaveRequestDtoBuilder paymentExternalReference(String value) { - this.paymentExternalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiInstallmentSaveRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiInstallmentSaveRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiInstallmentSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable> splits = JsonNullable.undefined(); - - @JsonProperty("splits") - public ApiInstallmentSaveRequestDtoBuilder splits(List value) { - this.splits = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestBillingType.java deleted file mode 100644 index a55789e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment billing type - */ -@Getter -@AllArgsConstructor -public enum ApiInstallmentSaveWithCreditCardRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiInstallmentSaveWithCreditCardRequestBillingType fromValue(String value) { - return Arrays.stream(ApiInstallmentSaveWithCreditCardRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestDto.java deleted file mode 100644 index 9b5bffe..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestDto.java +++ /dev/null @@ -1,325 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiInstallmentSaveWithCreditCardRequestDto { - - /** - * Number of installments - */ - @NonNull - private Long installmentCount; - - /** - * Unique customer identifier in Asaas - */ - @NonNull - private String customer; - - /** - * Value of each installment - */ - @NonNull - private Double value; - - /** - * Payment billing type - */ - @NonNull - private ApiInstallmentSaveWithCreditCardRequestBillingType billingType; - - /** - * Due date of the first installment - */ - @NonNull - private String dueDate; - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardRequestDto creditCard; - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardHolderInfoRequestDto creditCardHolderInfo; - - /** - * IP from where the customer is making the purchase. Your server's IP must not be entered. - */ - @NonNull - private String remoteIp; - - /** - * Total installment amount - */ - @JsonProperty("totalValue") - private JsonNullable totalValue; - - /** - * Installment description (max. 500 characters) - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Define whether the payment will be sent via post - */ - @JsonProperty("postalService") - private JsonNullable postalService; - - /** - * Days after registration cancellation deadline (only for bank slip) - */ - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - private JsonNullable daysAfterDueDateToRegistrationCancellation; - - /** - * Free search field - */ - @JsonProperty("paymentExternalReference") - private JsonNullable paymentExternalReference; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("interest") - private JsonNullable interest; - - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Split Settings - */ - @JsonProperty("splits") - private JsonNullable> splits; - - /** - * Credit card token for using the credit card tokenization functionality. If informed, the fields creditCard and creditCardHolderInfo are not mandatory. - */ - @JsonProperty("creditCardToken") - private JsonNullable creditCardToken; - - /** - * Carry out only the Pre-Authorization of the installment - */ - @JsonProperty("authorizeOnly") - private JsonNullable authorizeOnly; - - @JsonIgnore - public Double getTotalValue() { - return totalValue.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Boolean getPostalService() { - return postalService.orElse(null); - } - - @JsonIgnore - public Long getDaysAfterDueDateToRegistrationCancellation() { - return daysAfterDueDateToRegistrationCancellation.orElse(null); - } - - @JsonIgnore - public String getPaymentExternalReference() { - return paymentExternalReference.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineRequestDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public List getSplits() { - return splits.orElse(null); - } - - @JsonIgnore - public String getCreditCardToken() { - return creditCardToken.orElse(null); - } - - @JsonIgnore - public Boolean getAuthorizeOnly() { - return authorizeOnly.orElse(null); - } - - // 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) { - this.totalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable postalService = JsonNullable.undefined(); - - @JsonProperty("postalService") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder postalService(Boolean value) { - this.postalService = JsonNullable.of(value); - return this; - } - - private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); - - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentExternalReference = JsonNullable.undefined(); - - @JsonProperty("paymentExternalReference") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder paymentExternalReference(String value) { - this.paymentExternalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable> splits = JsonNullable.undefined(); - - @JsonProperty("splits") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder splits(List value) { - this.splits = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCardToken = JsonNullable.undefined(); - - @JsonProperty("creditCardToken") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder creditCardToken(String value) { - this.creditCardToken = JsonNullable.of(value); - return this; - } - - private JsonNullable authorizeOnly = JsonNullable.undefined(); - - @JsonProperty("authorizeOnly") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder authorizeOnly(Boolean value) { - this.authorizeOnly = JsonNullable.of(value); - return this; - } - - public ApiInstallmentSaveWithCreditCardRequestDto build() { - if (!creditCard$set) { - throw new IllegalStateException("creditCard is required"); - } - if (!creditCardHolderInfo$set) { - throw new IllegalStateException("creditCardHolderInfo is required"); - } - return new ApiInstallmentSaveWithCreditCardRequestDto( - installmentCount, - customer, - value, - billingType, - dueDate, - creditCard, - creditCardHolderInfo, - remoteIp, - totalValue, - description, - postalService, - daysAfterDueDateToRegistrationCancellation, - paymentExternalReference, - discount, - interest, - fine, - splits, - creditCardToken, - authorizeOnly - ); - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponseDto.java deleted file mode 100644 index 0cdf7f6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponseDto.java +++ /dev/null @@ -1,219 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiInstallmentSplitGetResponseDto { - - /** - * Unique split identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Asaas wallet identifier that will be transferred - */ - @JsonProperty("walletId") - private JsonNullable walletId; - - /** - * Fixed amount to be transferred to the account when the charge is received - */ - @JsonProperty("fixedValue") - private JsonNullable fixedValue; - - /** - * Percentage of the net value of the charge to be transferred when received - */ - @JsonProperty("percentualValue") - private JsonNullable percentualValue; - - /** - * Amount that will be split relative to the total amount that will be paid - */ - @JsonProperty("totalValue") - private JsonNullable totalValue; - - /** - * Reason for canceling the split - */ - @JsonProperty("cancellationReason") - private JsonNullable cancellationReason; - - /** - * Split status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Unique identifier of split in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Split description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Installment to which the split is linked - */ - @JsonProperty("installmentNumber") - private JsonNullable installmentNumber; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getWalletId() { - return walletId.orElse(null); - } - - @JsonIgnore - public Double getFixedValue() { - return fixedValue.orElse(null); - } - - @JsonIgnore - public Double getPercentualValue() { - return percentualValue.orElse(null); - } - - @JsonIgnore - public Double getTotalValue() { - return totalValue.orElse(null); - } - - @JsonIgnore - public ApiInstallmentSplitGetResponsePaymentSplitCancellationReason getCancellationReason() { - return cancellationReason.orElse(null); - } - - @JsonIgnore - public ApiInstallmentSplitGetResponsePaymentSplitStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Long getInstallmentNumber() { - return installmentNumber.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiInstallmentSplitGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiInstallmentSplitGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable walletId = JsonNullable.undefined(); - - @JsonProperty("walletId") - public ApiInstallmentSplitGetResponseDtoBuilder walletId(String value) { - this.walletId = JsonNullable.of(value); - return this; - } - - private JsonNullable fixedValue = JsonNullable.undefined(); - - @JsonProperty("fixedValue") - public ApiInstallmentSplitGetResponseDtoBuilder fixedValue(Double value) { - this.fixedValue = JsonNullable.of(value); - return this; - } - - private JsonNullable percentualValue = JsonNullable.undefined(); - - @JsonProperty("percentualValue") - public ApiInstallmentSplitGetResponseDtoBuilder percentualValue(Double value) { - this.percentualValue = JsonNullable.of(value); - return this; - } - - private JsonNullable totalValue = JsonNullable.undefined(); - - @JsonProperty("totalValue") - public ApiInstallmentSplitGetResponseDtoBuilder totalValue(Double value) { - this.totalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable cancellationReason = - JsonNullable.undefined(); - - @JsonProperty("cancellationReason") - public ApiInstallmentSplitGetResponseDtoBuilder cancellationReason( - ApiInstallmentSplitGetResponsePaymentSplitCancellationReason value - ) { - this.cancellationReason = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiInstallmentSplitGetResponseDtoBuilder status(ApiInstallmentSplitGetResponsePaymentSplitStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiInstallmentSplitGetResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiInstallmentSplitGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentNumber = JsonNullable.undefined(); - - @JsonProperty("installmentNumber") - public ApiInstallmentSplitGetResponseDtoBuilder installmentNumber(Long value) { - this.installmentNumber = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.java deleted file mode 100644 index 7413d16..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Reason for canceling the split - */ -@Getter -@AllArgsConstructor -public enum ApiInstallmentSplitGetResponsePaymentSplitCancellationReason { - PAYMENT_DELETED("PAYMENT_DELETED"), - PAYMENT_OVERDUE("PAYMENT_OVERDUE"), - PAYMENT_RECEIVED_IN_CASH("PAYMENT_RECEIVED_IN_CASH"), - PAYMENT_REFUNDED("PAYMENT_REFUNDED"), - VALUE_DIVERGENCE_BLOCK("VALUE_DIVERGENCE_BLOCK"), - WALLET_UNABLE_TO_RECEIVE("WALLET_UNABLE_TO_RECEIVE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiInstallmentSplitGetResponsePaymentSplitCancellationReason fromValue(String value) { - return Arrays.stream(ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.java deleted file mode 100644 index db988a1..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Split status - */ -@Getter -@AllArgsConstructor -public enum ApiInstallmentSplitGetResponsePaymentSplitStatus { - PENDING("PENDING"), - AWAITING_CREDIT("AWAITING_CREDIT"), - CANCELLED("CANCELLED"), - DONE("DONE"), - REFUNDED("REFUNDED"), - BLOCKED_BY_VALUE_DIVERGENCE("BLOCKED_BY_VALUE_DIVERGENCE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiInstallmentSplitGetResponsePaymentSplitStatus fromValue(String value) { - return Arrays.stream(ApiInstallmentSplitGetResponsePaymentSplitStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitRequestDto.java deleted file mode 100644 index fca329d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitRequestDto.java +++ /dev/null @@ -1,147 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiInstallmentSplitRequestDto { - - /** - * Asaas wallet identifier that will be transferred - */ - @NonNull - private String walletId; - - /** - * Fixed amount to be transferred to the account when the payment is received - */ - @JsonProperty("fixedValue") - private JsonNullable fixedValue; - - /** - * Percentage of the net value of the charge to be transferred when received - */ - @JsonProperty("percentualValue") - private JsonNullable percentualValue; - - /** - * (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. - */ - @JsonProperty("totalFixedValue") - private JsonNullable totalFixedValue; - - /** - * Split identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Split description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Installment number to which the split will be linked. Cannot be provided along with the 'totalFixedValue' field - */ - @JsonProperty("installmentNumber") - private JsonNullable installmentNumber; - - @JsonIgnore - public Double getFixedValue() { - return fixedValue.orElse(null); - } - - @JsonIgnore - public Double getPercentualValue() { - return percentualValue.orElse(null); - } - - @JsonIgnore - public Double getTotalFixedValue() { - return totalFixedValue.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Long getInstallmentNumber() { - return installmentNumber.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiInstallmentSplitRequestDtoBuilder { - - private JsonNullable fixedValue = JsonNullable.undefined(); - - @JsonProperty("fixedValue") - public ApiInstallmentSplitRequestDtoBuilder fixedValue(Double value) { - this.fixedValue = JsonNullable.of(value); - return this; - } - - private JsonNullable percentualValue = JsonNullable.undefined(); - - @JsonProperty("percentualValue") - public ApiInstallmentSplitRequestDtoBuilder percentualValue(Double value) { - this.percentualValue = JsonNullable.of(value); - return this; - } - - private JsonNullable totalFixedValue = JsonNullable.undefined(); - - @JsonProperty("totalFixedValue") - public ApiInstallmentSplitRequestDtoBuilder totalFixedValue(Double value) { - this.totalFixedValue = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiInstallmentSplitRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiInstallmentSplitRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentNumber = JsonNullable.undefined(); - - @JsonProperty("installmentNumber") - public ApiInstallmentSplitRequestDtoBuilder installmentNumber(Long value) { - this.installmentNumber = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitRequestDto.java deleted file mode 100644 index 0a552dd..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitRequestDto.java +++ /dev/null @@ -1,46 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiInstallmentUpdateSplitRequestDto { - - /** - * Split data to update - */ - @JsonProperty("splits") - private JsonNullable> splits; - - @JsonIgnore - public List getSplits() { - return splits.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiInstallmentUpdateSplitRequestDtoBuilder { - - private JsonNullable> splits = JsonNullable.undefined(); - - @JsonProperty("splits") - public ApiInstallmentUpdateSplitRequestDtoBuilder splits(List value) { - 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 deleted file mode 100644 index 3e3d63e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitResponseDto.java +++ /dev/null @@ -1,46 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiInstallmentUpdateSplitResponseDto { - - /** - * Split array - */ - @JsonProperty("splits") - private JsonNullable> splits; - - @JsonIgnore - public List getSplits() { - return splits.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiInstallmentUpdateSplitResponseDtoBuilder { - - private JsonNullable> splits = JsonNullable.undefined(); - - @JsonProperty("splits") - public ApiInstallmentUpdateSplitResponseDtoBuilder splits(List value) { - 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 deleted file mode 100644 index 3111898..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseDto.java +++ /dev/null @@ -1,67 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMobilePhoneRechargeFindProviderResponseDto { - - /** - * Name of cell phone operator - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Amounts available for recharge - */ - @JsonProperty("values") - private JsonNullable> values; - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public List getValues() { - return values.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMobilePhoneRechargeFindProviderResponseDtoBuilder { - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiMobilePhoneRechargeFindProviderResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable> values = JsonNullable.undefined(); - - @JsonProperty("values") - public ApiMobilePhoneRechargeFindProviderResponseDtoBuilder values( - List value - ) { - 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 deleted file mode 100644 index cef79bd..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.java +++ /dev/null @@ -1,121 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMobilePhoneRechargeFindProviderResponseValuesDto { - - /** - * Package name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Package Description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Package Bonuses - */ - @JsonProperty("bonus") - private JsonNullable bonus; - - /** - * Minimum top-up amount - */ - @JsonProperty("minValue") - private JsonNullable minValue; - - /** - * Maximum recharge value - */ - @JsonProperty("maxValue") - private JsonNullable maxValue; - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getBonus() { - return bonus.orElse(null); - } - - @JsonIgnore - public Double getMinValue() { - return minValue.orElse(null); - } - - @JsonIgnore - public Double getMaxValue() { - return maxValue.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder { - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable bonus = JsonNullable.undefined(); - - @JsonProperty("bonus") - public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder bonus(String value) { - this.bonus = JsonNullable.of(value); - return this; - } - - private JsonNullable minValue = JsonNullable.undefined(); - - @JsonProperty("minValue") - public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder minValue(Double value) { - this.minValue = JsonNullable.of(value); - return this; - } - - private JsonNullable maxValue = JsonNullable.undefined(); - - @JsonProperty("maxValue") - public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder maxValue(Double value) { - 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 deleted file mode 100644 index 1e6b303..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseDto.java +++ /dev/null @@ -1,142 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMobilePhoneRechargeGetResponseDto { - - /** - * Unique identifier for cell phone recharge on Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Recharge value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Cell phone number that was requested to be recharged - */ - @JsonProperty("phoneNumber") - private JsonNullable phoneNumber; - - /** - * Recharge status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Whether the top-up can be canceled - */ - @JsonProperty("canBeCancelled") - private JsonNullable canBeCancelled; - - /** - * Name of cell phone operator - */ - @JsonProperty("operatorName") - private JsonNullable operatorName; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getPhoneNumber() { - return phoneNumber.orElse(null); - } - - @JsonIgnore - public ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public Boolean getCanBeCancelled() { - return canBeCancelled.orElse(null); - } - - @JsonIgnore - public String getOperatorName() { - return operatorName.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMobilePhoneRechargeGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiMobilePhoneRechargeGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiMobilePhoneRechargeGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable phoneNumber = JsonNullable.undefined(); - - @JsonProperty("phoneNumber") - public ApiMobilePhoneRechargeGetResponseDtoBuilder phoneNumber(String value) { - this.phoneNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiMobilePhoneRechargeGetResponseDtoBuilder status( - ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable canBeCancelled = JsonNullable.of(true); - - @JsonProperty("canBeCancelled") - public ApiMobilePhoneRechargeGetResponseDtoBuilder canBeCancelled(Boolean value) { - this.canBeCancelled = JsonNullable.of(value); - return this; - } - - private JsonNullable operatorName = JsonNullable.undefined(); - - @JsonProperty("operatorName") - public ApiMobilePhoneRechargeGetResponseDtoBuilder operatorName(String value) { - this.operatorName = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java b/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java deleted file mode 100644 index 3a1e60a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Recharge status - */ -@Getter -@AllArgsConstructor -public enum ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus { - PENDING("PENDING"), - CONFIRMED("CONFIRMED"), - CANCELLED("CANCELLED"), - REFUNDED("REFUNDED"), - WAITING_CRITICAL_ACTION("WAITING_CRITICAL_ACTION"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus fromValue(String value) { - return Arrays.stream(ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeListResponseDto.java deleted file mode 100644 index a96abd7..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMobilePhoneRechargeListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMobilePhoneRechargeListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiMobilePhoneRechargeListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiMobilePhoneRechargeListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiMobilePhoneRechargeListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiMobilePhoneRechargeListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiMobilePhoneRechargeListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiMobilePhoneRechargeListResponseDtoBuilder data(List value) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeSaveRequestDto.java deleted file mode 100644 index 72e0c0d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeSaveRequestDto.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMobilePhoneRechargeSaveRequestDto { - - /** - * Recharge value - */ - @NonNull - private Double value; - - /** - * Cellphone number - */ - @NonNull - private String phoneNumber; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountDisableAccountResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountDisableAccountResponseDto.java deleted file mode 100644 index 7a5d7ad..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountDisableAccountResponseDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountDisableAccountResponseDto { - - /** - * Deletion information - */ - @JsonProperty("observations") - private JsonNullable observations; - - @JsonIgnore - public String getObservations() { - return observations.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountDisableAccountResponseDtoBuilder { - - private JsonNullable observations = JsonNullable.undefined(); - - @JsonProperty("observations") - public ApiMyAccountDisableAccountResponseDtoBuilder observations(String value) { - 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 deleted file mode 100644 index 0659c6a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesAnticipationBankSlipDto { - - /** - * Monthly fee for invoice charges - */ - @JsonProperty("monthlyFeePercentage") - private JsonNullable monthlyFeePercentage; - - @JsonIgnore - public Double getMonthlyFeePercentage() { - return monthlyFeePercentage.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesAnticipationBankSlipDtoBuilder { - - private JsonNullable monthlyFeePercentage = JsonNullable.undefined(); - - @JsonProperty("monthlyFeePercentage") - public ApiMyAccountGetAccountFeesAnticipationBankSlipDtoBuilder monthlyFeePercentage(Double value) { - 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 deleted file mode 100644 index 2e01803..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesAnticipationCreditCardDto { - - /** - * Monthly fee for upfront charges - */ - @JsonProperty("detachedMonthlyFeeValue") - private JsonNullable detachedMonthlyFeeValue; - - /** - * Monthly fee for installment payments - */ - @JsonProperty("installmentMonthlyFeeValue") - private JsonNullable installmentMonthlyFeeValue; - - @JsonIgnore - public Double getDetachedMonthlyFeeValue() { - return detachedMonthlyFeeValue.orElse(null); - } - - @JsonIgnore - public Long getInstallmentMonthlyFeeValue() { - return installmentMonthlyFeeValue.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesAnticipationCreditCardDtoBuilder { - - private JsonNullable detachedMonthlyFeeValue = JsonNullable.undefined(); - - @JsonProperty("detachedMonthlyFeeValue") - public ApiMyAccountGetAccountFeesAnticipationCreditCardDtoBuilder detachedMonthlyFeeValue(Double value) { - this.detachedMonthlyFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentMonthlyFeeValue = JsonNullable.undefined(); - - @JsonProperty("installmentMonthlyFeeValue") - public ApiMyAccountGetAccountFeesAnticipationCreditCardDtoBuilder installmentMonthlyFeeValue(Long value) { - 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 deleted file mode 100644 index 6e31469..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationDto.java +++ /dev/null @@ -1,62 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesAnticipationDto { - - @JsonProperty("creditCard") - private JsonNullable creditCard; - - @JsonProperty("bankSlip") - private JsonNullable bankSlip; - - @JsonIgnore - public ApiMyAccountGetAccountFeesAnticipationCreditCardDto getCreditCard() { - return creditCard.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetAccountFeesAnticipationBankSlipDto getBankSlip() { - return bankSlip.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesAnticipationDtoBuilder { - - private JsonNullable creditCard = JsonNullable.undefined(); - - @JsonProperty("creditCard") - public ApiMyAccountGetAccountFeesAnticipationDtoBuilder creditCard( - ApiMyAccountGetAccountFeesAnticipationCreditCardDto value - ) { - this.creditCard = JsonNullable.of(value); - return this; - } - - private JsonNullable bankSlip = JsonNullable.undefined(); - - @JsonProperty("bankSlip") - public ApiMyAccountGetAccountFeesAnticipationDtoBuilder bankSlip( - ApiMyAccountGetAccountFeesAnticipationBankSlipDto value - ) { - 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 deleted file mode 100644 index af30ed5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesCreditBureauReportDto { - - /** - * Fee for Serasa consultation for natural person - */ - @JsonProperty("naturalPersonFeeValue") - private JsonNullable naturalPersonFeeValue; - - /** - * Fee for Serasa consultation for legal person - */ - @JsonProperty("legalPersonFeeValue") - private JsonNullable legalPersonFeeValue; - - @JsonIgnore - public Double getNaturalPersonFeeValue() { - return naturalPersonFeeValue.orElse(null); - } - - @JsonIgnore - public Double getLegalPersonFeeValue() { - return legalPersonFeeValue.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesCreditBureauReportDtoBuilder { - - private JsonNullable naturalPersonFeeValue = JsonNullable.undefined(); - - @JsonProperty("naturalPersonFeeValue") - public ApiMyAccountGetAccountFeesCreditBureauReportDtoBuilder naturalPersonFeeValue(Double value) { - this.naturalPersonFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable legalPersonFeeValue = JsonNullable.undefined(); - - @JsonProperty("legalPersonFeeValue") - public ApiMyAccountGetAccountFeesCreditBureauReportDtoBuilder legalPersonFeeValue(Double value) { - 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 deleted file mode 100644 index 78113dd..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesInvoiceDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesInvoiceDto { - - /** - * Fee per service note issued - */ - @JsonProperty("feeValue") - private JsonNullable feeValue; - - @JsonIgnore - public Double getFeeValue() { - return feeValue.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesInvoiceDtoBuilder { - - private JsonNullable feeValue = JsonNullable.undefined(); - - @JsonProperty("feeValue") - public ApiMyAccountGetAccountFeesInvoiceDtoBuilder feeValue(Double value) { - 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 deleted file mode 100644 index d79aaaf..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesNotificationDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesNotificationDto { - - /** - * Fees per voice robot call - */ - @JsonProperty("phoneCallFeeValue") - private JsonNullable phoneCallFeeValue; - - /** - * Fees for notifications via WhatsApp - */ - @JsonProperty("whatsAppFeeValue") - private JsonNullable whatsAppFeeValue; - - /** - * Fees for sending emails and SMS - */ - @JsonProperty("messagingFeeValue") - private JsonNullable messagingFeeValue; - - @JsonIgnore - public Double getPhoneCallFeeValue() { - return phoneCallFeeValue.orElse(null); - } - - @JsonIgnore - public Double getWhatsAppFeeValue() { - return whatsAppFeeValue.orElse(null); - } - - @JsonIgnore - public Double getMessagingFeeValue() { - return messagingFeeValue.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesNotificationDtoBuilder { - - private JsonNullable phoneCallFeeValue = JsonNullable.undefined(); - - @JsonProperty("phoneCallFeeValue") - public ApiMyAccountGetAccountFeesNotificationDtoBuilder phoneCallFeeValue(Double value) { - this.phoneCallFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable whatsAppFeeValue = JsonNullable.undefined(); - - @JsonProperty("whatsAppFeeValue") - public ApiMyAccountGetAccountFeesNotificationDtoBuilder whatsAppFeeValue(Double value) { - this.whatsAppFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable messagingFeeValue = JsonNullable.undefined(); - - @JsonProperty("messagingFeeValue") - public ApiMyAccountGetAccountFeesNotificationDtoBuilder messagingFeeValue(Double value) { - 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 deleted file mode 100644 index 94278c2..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.java +++ /dev/null @@ -1,102 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesPaymentBankSlipDto { - - /** - * Fee per charge - */ - @JsonProperty("defaultValue") - private JsonNullable defaultValue; - - /** - * Promotional fee (If any) - */ - @JsonProperty("discountValue") - private JsonNullable discountValue; - - /** - * Promotional fee expiration date (If any) - */ - @JsonProperty("expirationDate") - private JsonNullable expirationDate; - - /** - * Days to receive billing - */ - @JsonProperty("daysToReceive") - private JsonNullable daysToReceive; - - @JsonIgnore - public Double getDefaultValue() { - return defaultValue.orElse(null); - } - - @JsonIgnore - public Double getDiscountValue() { - return discountValue.orElse(null); - } - - @JsonIgnore - public String getExpirationDate() { - return expirationDate.orElse(null); - } - - @JsonIgnore - public Long getDaysToReceive() { - return daysToReceive.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder { - - private JsonNullable defaultValue = JsonNullable.undefined(); - - @JsonProperty("defaultValue") - public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder defaultValue(Double value) { - this.defaultValue = JsonNullable.of(value); - return this; - } - - private JsonNullable discountValue = JsonNullable.undefined(); - - @JsonProperty("discountValue") - public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder discountValue(Double value) { - this.discountValue = JsonNullable.of(value); - return this; - } - - private JsonNullable expirationDate = JsonNullable.undefined(); - - @JsonProperty("expirationDate") - public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder expirationDate(String value) { - this.expirationDate = JsonNullable.of(value); - return this; - } - - private JsonNullable daysToReceive = JsonNullable.undefined(); - - @JsonProperty("daysToReceive") - public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder daysToReceive(Long value) { - 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 deleted file mode 100644 index 0b4b5d6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.java +++ /dev/null @@ -1,239 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesPaymentCreditCardDto { - - /** - * Operating fee per charge - */ - @JsonProperty("operationValue") - private JsonNullable operationValue; - - /** - * Spot percentage rate - */ - @JsonProperty("oneInstallmentPercentage") - private JsonNullable oneInstallmentPercentage; - - /** - * Percentage rate for 2 to 6 installments - */ - @JsonProperty("upToSixInstallmentsPercentage") - private JsonNullable upToSixInstallmentsPercentage; - - /** - * Percentage rate for 7 to 12 installments - */ - @JsonProperty("upToTwelveInstallmentsPercentage") - private JsonNullable upToTwelveInstallmentsPercentage; - - /** - * Percentage rate for 13 to 21 installments - */ - @JsonProperty("upToTwentyOneInstallmentsPercentage") - private JsonNullable upToTwentyOneInstallmentsPercentage; - - /** - * Promotional cash percentage rate (If any) - */ - @JsonProperty("discountOneInstallmentPercentage") - private JsonNullable discountOneInstallmentPercentage; - - /** - * Percentage rate for 2 to 6 promotional installments (If any) - */ - @JsonProperty("discountUpToSixInstallmentsPercentage") - private JsonNullable discountUpToSixInstallmentsPercentage; - - /** - * Percentage rate for 7 to 12 promotional installments (If any) - */ - @JsonProperty("discountUpToTwelveInstallmentsPercentage") - private JsonNullable discountUpToTwelveInstallmentsPercentage; - - /** - * Percentage rate for 13 to 21 promotional installments (if any) - */ - @JsonProperty("discountUpToTwentyOneInstallmentsPercentage") - private JsonNullable discountUpToTwentyOneInstallmentsPercentage; - - /** - * Promotional fee expiration date (If any) - */ - @JsonProperty("discountExpiration") - private JsonNullable discountExpiration; - - /** - * Days to receive billing - */ - @JsonProperty("daysToReceive") - private JsonNullable daysToReceive; - - @JsonIgnore - public Double getOperationValue() { - return operationValue.orElse(null); - } - - @JsonIgnore - public Double getOneInstallmentPercentage() { - return oneInstallmentPercentage.orElse(null); - } - - @JsonIgnore - public Double getUpToSixInstallmentsPercentage() { - return upToSixInstallmentsPercentage.orElse(null); - } - - @JsonIgnore - public Double getUpToTwelveInstallmentsPercentage() { - return upToTwelveInstallmentsPercentage.orElse(null); - } - - @JsonIgnore - public Double getUpToTwentyOneInstallmentsPercentage() { - return upToTwentyOneInstallmentsPercentage.orElse(null); - } - - @JsonIgnore - public Double getDiscountOneInstallmentPercentage() { - return discountOneInstallmentPercentage.orElse(null); - } - - @JsonIgnore - public Double getDiscountUpToSixInstallmentsPercentage() { - return discountUpToSixInstallmentsPercentage.orElse(null); - } - - @JsonIgnore - public Double getDiscountUpToTwelveInstallmentsPercentage() { - return discountUpToTwelveInstallmentsPercentage.orElse(null); - } - - @JsonIgnore - public Double getDiscountUpToTwentyOneInstallmentsPercentage() { - return discountUpToTwentyOneInstallmentsPercentage.orElse(null); - } - - @JsonIgnore - public String getDiscountExpiration() { - return discountExpiration.orElse(null); - } - - @JsonIgnore - public Long getDaysToReceive() { - return daysToReceive.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder { - - private JsonNullable operationValue = JsonNullable.undefined(); - - @JsonProperty("operationValue") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder operationValue(Double value) { - this.operationValue = JsonNullable.of(value); - return this; - } - - private JsonNullable oneInstallmentPercentage = JsonNullable.undefined(); - - @JsonProperty("oneInstallmentPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder oneInstallmentPercentage(Double value) { - this.oneInstallmentPercentage = JsonNullable.of(value); - return this; - } - - private JsonNullable upToSixInstallmentsPercentage = JsonNullable.undefined(); - - @JsonProperty("upToSixInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToSixInstallmentsPercentage(Double value) { - this.upToSixInstallmentsPercentage = JsonNullable.of(value); - return this; - } - - private JsonNullable upToTwelveInstallmentsPercentage = JsonNullable.undefined(); - - @JsonProperty("upToTwelveInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwelveInstallmentsPercentage(Double value) { - this.upToTwelveInstallmentsPercentage = JsonNullable.of(value); - return this; - } - - private JsonNullable upToTwentyOneInstallmentsPercentage = JsonNullable.undefined(); - - @JsonProperty("upToTwentyOneInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwentyOneInstallmentsPercentage(Double value) { - this.upToTwentyOneInstallmentsPercentage = JsonNullable.of(value); - return this; - } - - private JsonNullable discountOneInstallmentPercentage = JsonNullable.undefined(); - - @JsonProperty("discountOneInstallmentPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountOneInstallmentPercentage(Double value) { - this.discountOneInstallmentPercentage = JsonNullable.of(value); - return this; - } - - private JsonNullable discountUpToSixInstallmentsPercentage = JsonNullable.undefined(); - - @JsonProperty("discountUpToSixInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToSixInstallmentsPercentage(Double value) { - this.discountUpToSixInstallmentsPercentage = JsonNullable.of(value); - return this; - } - - private JsonNullable discountUpToTwelveInstallmentsPercentage = JsonNullable.undefined(); - - @JsonProperty("discountUpToTwelveInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwelveInstallmentsPercentage( - Double value - ) { - this.discountUpToTwelveInstallmentsPercentage = JsonNullable.of(value); - return this; - } - - private JsonNullable discountUpToTwentyOneInstallmentsPercentage = JsonNullable.undefined(); - - @JsonProperty("discountUpToTwentyOneInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwentyOneInstallmentsPercentage( - Double value - ) { - this.discountUpToTwentyOneInstallmentsPercentage = JsonNullable.of(value); - return this; - } - - private JsonNullable discountExpiration = JsonNullable.undefined(); - - @JsonProperty("discountExpiration") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountExpiration(String value) { - this.discountExpiration = JsonNullable.of(value); - return this; - } - - private JsonNullable daysToReceive = JsonNullable.undefined(); - - @JsonProperty("daysToReceive") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder daysToReceive(Long value) { - 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 deleted file mode 100644 index 3b255dd..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesPaymentDebitCardDto { - - /** - * Operating fee per charge - */ - @JsonProperty("operationValue") - private JsonNullable operationValue; - - /** - * Percentage rate per charge - */ - @JsonProperty("defaultPercentage") - private JsonNullable defaultPercentage; - - /** - * Days to receive billing - */ - @JsonProperty("daysToReceive") - private JsonNullable daysToReceive; - - @JsonIgnore - public Double getOperationValue() { - return operationValue.orElse(null); - } - - @JsonIgnore - public Double getDefaultPercentage() { - return defaultPercentage.orElse(null); - } - - @JsonIgnore - public Long getDaysToReceive() { - return daysToReceive.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder { - - private JsonNullable operationValue = JsonNullable.undefined(); - - @JsonProperty("operationValue") - public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder operationValue(Double value) { - this.operationValue = JsonNullable.of(value); - return this; - } - - private JsonNullable defaultPercentage = JsonNullable.undefined(); - - @JsonProperty("defaultPercentage") - public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder defaultPercentage(Double value) { - this.defaultPercentage = JsonNullable.of(value); - return this; - } - - private JsonNullable daysToReceive = JsonNullable.undefined(); - - @JsonProperty("daysToReceive") - public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder daysToReceive(Long value) { - 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 deleted file mode 100644 index 099953a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDto.java +++ /dev/null @@ -1,92 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesPaymentDto { - - @JsonProperty("bankSlip") - private JsonNullable bankSlip; - - @JsonProperty("creditCard") - private JsonNullable creditCard; - - @JsonProperty("debitCard") - private JsonNullable debitCard; - - @JsonProperty("pix") - private JsonNullable pix; - - @JsonIgnore - public ApiMyAccountGetAccountFeesPaymentBankSlipDto getBankSlip() { - return bankSlip.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetAccountFeesPaymentCreditCardDto getCreditCard() { - return creditCard.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetAccountFeesPaymentDebitCardDto getDebitCard() { - return debitCard.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetAccountFeesPaymentPixDto getPix() { - return pix.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesPaymentDtoBuilder { - - private JsonNullable bankSlip = JsonNullable.undefined(); - - @JsonProperty("bankSlip") - public ApiMyAccountGetAccountFeesPaymentDtoBuilder bankSlip(ApiMyAccountGetAccountFeesPaymentBankSlipDto value) { - this.bankSlip = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCard = JsonNullable.undefined(); - - @JsonProperty("creditCard") - public ApiMyAccountGetAccountFeesPaymentDtoBuilder creditCard( - ApiMyAccountGetAccountFeesPaymentCreditCardDto value - ) { - this.creditCard = JsonNullable.of(value); - return this; - } - - private JsonNullable debitCard = JsonNullable.undefined(); - - @JsonProperty("debitCard") - public ApiMyAccountGetAccountFeesPaymentDtoBuilder debitCard(ApiMyAccountGetAccountFeesPaymentDebitCardDto value) { - this.debitCard = JsonNullable.of(value); - return this; - } - - private JsonNullable pix = JsonNullable.undefined(); - - @JsonProperty("pix") - public ApiMyAccountGetAccountFeesPaymentDtoBuilder pix(ApiMyAccountGetAccountFeesPaymentPixDto value) { - 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 deleted file mode 100644 index 9f9edee..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentPixDto.java +++ /dev/null @@ -1,178 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesPaymentPixDto { - - /** - * Fixed fee (If any) - */ - @JsonProperty("fixedFeeValue") - private JsonNullable fixedFeeValue; - - /** - * Promotional fixed rate (If any) - */ - @JsonProperty("fixedFeeValueWithDiscount") - private JsonNullable fixedFeeValueWithDiscount; - - /** - * Percentage rate (If any) - */ - @JsonProperty("percentageFee") - private JsonNullable percentageFee; - - /** - * Minimum fixed rate in case of percentage rate - */ - @JsonProperty("minimumFeeValue") - private JsonNullable minimumFeeValue; - - /** - * Maximum fixed rate in case of percentage rate - */ - @JsonProperty("maximumFeeValue") - private JsonNullable maximumFeeValue; - - /** - * Promotional fee expiration date (If any) - */ - @JsonProperty("discountExpiration") - private JsonNullable discountExpiration; - - /** - * Number of free transactions per month - */ - @JsonProperty("monthlyCreditsWithoutFee") - private JsonNullable monthlyCreditsWithoutFee; - - /** - * How many transactions have you received this month? - */ - @JsonProperty("creditsReceivedOfCurrentMonth") - private JsonNullable creditsReceivedOfCurrentMonth; - - @JsonIgnore - public Double getFixedFeeValue() { - return fixedFeeValue.orElse(null); - } - - @JsonIgnore - public Double getFixedFeeValueWithDiscount() { - return fixedFeeValueWithDiscount.orElse(null); - } - - @JsonIgnore - public Double getPercentageFee() { - return percentageFee.orElse(null); - } - - @JsonIgnore - public Double getMinimumFeeValue() { - return minimumFeeValue.orElse(null); - } - - @JsonIgnore - public Double getMaximumFeeValue() { - return maximumFeeValue.orElse(null); - } - - @JsonIgnore - public String getDiscountExpiration() { - return discountExpiration.orElse(null); - } - - @JsonIgnore - public Long getMonthlyCreditsWithoutFee() { - return monthlyCreditsWithoutFee.orElse(null); - } - - @JsonIgnore - public Long getCreditsReceivedOfCurrentMonth() { - return creditsReceivedOfCurrentMonth.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesPaymentPixDtoBuilder { - - private JsonNullable fixedFeeValue = JsonNullable.undefined(); - - @JsonProperty("fixedFeeValue") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValue(Double value) { - this.fixedFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable fixedFeeValueWithDiscount = JsonNullable.undefined(); - - @JsonProperty("fixedFeeValueWithDiscount") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValueWithDiscount(Double value) { - this.fixedFeeValueWithDiscount = JsonNullable.of(value); - return this; - } - - private JsonNullable percentageFee = JsonNullable.undefined(); - - @JsonProperty("percentageFee") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder percentageFee(Double value) { - this.percentageFee = JsonNullable.of(value); - return this; - } - - private JsonNullable minimumFeeValue = JsonNullable.undefined(); - - @JsonProperty("minimumFeeValue") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder minimumFeeValue(Double value) { - this.minimumFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable maximumFeeValue = JsonNullable.undefined(); - - @JsonProperty("maximumFeeValue") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder maximumFeeValue(Double value) { - this.maximumFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable discountExpiration = JsonNullable.undefined(); - - @JsonProperty("discountExpiration") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder discountExpiration(String value) { - this.discountExpiration = JsonNullable.of(value); - return this; - } - - private JsonNullable monthlyCreditsWithoutFee = JsonNullable.undefined(); - - @JsonProperty("monthlyCreditsWithoutFee") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder monthlyCreditsWithoutFee(Long value) { - this.monthlyCreditsWithoutFee = JsonNullable.of(value); - return this; - } - - private JsonNullable creditsReceivedOfCurrentMonth = JsonNullable.undefined(); - - @JsonProperty("creditsReceivedOfCurrentMonth") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder creditsReceivedOfCurrentMonth(Long value) { - 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 deleted file mode 100644 index 45e631c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesResponseDto.java +++ /dev/null @@ -1,124 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesResponseDto { - - @JsonProperty("payment") - private JsonNullable payment; - - @JsonProperty("transfer") - private JsonNullable transfer; - - @JsonProperty("notification") - private JsonNullable notification; - - @JsonProperty("creditBureauReport") - private JsonNullable creditBureauReport; - - @JsonProperty("invoice") - private JsonNullable invoice; - - @JsonProperty("anticipation") - private JsonNullable anticipation; - - @JsonIgnore - public ApiMyAccountGetAccountFeesPaymentDto getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetAccountFeesTransferDto getTransfer() { - return transfer.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetAccountFeesNotificationDto getNotification() { - return notification.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetAccountFeesCreditBureauReportDto getCreditBureauReport() { - return creditBureauReport.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetAccountFeesInvoiceDto getInvoice() { - return invoice.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetAccountFeesAnticipationDto getAnticipation() { - return anticipation.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesResponseDtoBuilder { - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiMyAccountGetAccountFeesResponseDtoBuilder payment(ApiMyAccountGetAccountFeesPaymentDto value) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable transfer = JsonNullable.undefined(); - - @JsonProperty("transfer") - public ApiMyAccountGetAccountFeesResponseDtoBuilder transfer(ApiMyAccountGetAccountFeesTransferDto value) { - this.transfer = JsonNullable.of(value); - return this; - } - - private JsonNullable notification = JsonNullable.undefined(); - - @JsonProperty("notification") - public ApiMyAccountGetAccountFeesResponseDtoBuilder notification(ApiMyAccountGetAccountFeesNotificationDto value) { - this.notification = JsonNullable.of(value); - return this; - } - - private JsonNullable creditBureauReport = JsonNullable.undefined(); - - @JsonProperty("creditBureauReport") - public ApiMyAccountGetAccountFeesResponseDtoBuilder creditBureauReport( - ApiMyAccountGetAccountFeesCreditBureauReportDto value - ) { - this.creditBureauReport = JsonNullable.of(value); - return this; - } - - private JsonNullable invoice = JsonNullable.undefined(); - - @JsonProperty("invoice") - public ApiMyAccountGetAccountFeesResponseDtoBuilder invoice(ApiMyAccountGetAccountFeesInvoiceDto value) { - this.invoice = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipation = JsonNullable.undefined(); - - @JsonProperty("anticipation") - public ApiMyAccountGetAccountFeesResponseDtoBuilder anticipation(ApiMyAccountGetAccountFeesAnticipationDto value) { - 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 deleted file mode 100644 index efe7049..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferDto.java +++ /dev/null @@ -1,77 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesTransferDto { - - /** - * Number of monthly free transactions - */ - @JsonProperty("monthlyTransfersWithoutFee") - private JsonNullable monthlyTransfersWithoutFee; - - @JsonProperty("ted") - private JsonNullable ted; - - @JsonProperty("pix") - private JsonNullable pix; - - @JsonIgnore - public Long getMonthlyTransfersWithoutFee() { - return monthlyTransfersWithoutFee.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetAccountFeesTransferTedDto getTed() { - return ted.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetAccountFeesTransferPixDto getPix() { - return pix.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesTransferDtoBuilder { - - private JsonNullable monthlyTransfersWithoutFee = JsonNullable.undefined(); - - @JsonProperty("monthlyTransfersWithoutFee") - public ApiMyAccountGetAccountFeesTransferDtoBuilder monthlyTransfersWithoutFee(Long value) { - this.monthlyTransfersWithoutFee = JsonNullable.of(value); - return this; - } - - private JsonNullable ted = JsonNullable.undefined(); - - @JsonProperty("ted") - public ApiMyAccountGetAccountFeesTransferDtoBuilder ted(ApiMyAccountGetAccountFeesTransferTedDto value) { - this.ted = JsonNullable.of(value); - return this; - } - - private JsonNullable pix = JsonNullable.undefined(); - - @JsonProperty("pix") - public ApiMyAccountGetAccountFeesTransferDtoBuilder pix(ApiMyAccountGetAccountFeesTransferPixDto value) { - 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 deleted file mode 100644 index 56bff46..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferPixDto.java +++ /dev/null @@ -1,102 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesTransferPixDto { - - /** - * Fee for sending transfers via Pix - */ - @JsonProperty("feeValue") - private JsonNullable feeValue; - - /** - * Promotional fee (If any) - */ - @JsonProperty("discountValue") - private JsonNullable discountValue; - - /** - * Promotional fee expiration date (If any) - */ - @JsonProperty("expirationDate") - private JsonNullable expirationDate; - - /** - * Indicates whether the number of free monthly transactions considers Pix - */ - @JsonProperty("consideredInMonthlyTransfersWithoutFee") - private JsonNullable consideredInMonthlyTransfersWithoutFee; - - @JsonIgnore - public Double getFeeValue() { - return feeValue.orElse(null); - } - - @JsonIgnore - public Double getDiscountValue() { - return discountValue.orElse(null); - } - - @JsonIgnore - public String getExpirationDate() { - return expirationDate.orElse(null); - } - - @JsonIgnore - public Boolean getConsideredInMonthlyTransfersWithoutFee() { - return consideredInMonthlyTransfersWithoutFee.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesTransferPixDtoBuilder { - - private JsonNullable feeValue = JsonNullable.undefined(); - - @JsonProperty("feeValue") - public ApiMyAccountGetAccountFeesTransferPixDtoBuilder feeValue(Double value) { - this.feeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable discountValue = JsonNullable.undefined(); - - @JsonProperty("discountValue") - public ApiMyAccountGetAccountFeesTransferPixDtoBuilder discountValue(Double value) { - this.discountValue = JsonNullable.of(value); - return this; - } - - private JsonNullable expirationDate = JsonNullable.undefined(); - - @JsonProperty("expirationDate") - public ApiMyAccountGetAccountFeesTransferPixDtoBuilder expirationDate(String value) { - this.expirationDate = JsonNullable.of(value); - return this; - } - - private JsonNullable consideredInMonthlyTransfersWithoutFee = JsonNullable.undefined(); - - @JsonProperty("consideredInMonthlyTransfersWithoutFee") - public ApiMyAccountGetAccountFeesTransferPixDtoBuilder consideredInMonthlyTransfersWithoutFee(Boolean value) { - 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 deleted file mode 100644 index bd556b8..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferTedDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountFeesTransferTedDto { - - /** - * Transfer fee via TED - */ - @JsonProperty("feeValue") - private JsonNullable feeValue; - - /** - * Indicates whether the number of monthly free transactions considers TED - */ - @JsonProperty("consideredInMonthlyTransfersWithoutFee") - private JsonNullable consideredInMonthlyTransfersWithoutFee; - - @JsonIgnore - public Double getFeeValue() { - return feeValue.orElse(null); - } - - @JsonIgnore - public Boolean getConsideredInMonthlyTransfersWithoutFee() { - return consideredInMonthlyTransfersWithoutFee.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesTransferTedDtoBuilder { - - private JsonNullable feeValue = JsonNullable.undefined(); - - @JsonProperty("feeValue") - public ApiMyAccountGetAccountFeesTransferTedDtoBuilder feeValue(Double value) { - this.feeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable consideredInMonthlyTransfersWithoutFee = JsonNullable.undefined(); - - @JsonProperty("consideredInMonthlyTransfersWithoutFee") - public ApiMyAccountGetAccountFeesTransferTedDtoBuilder consideredInMonthlyTransfersWithoutFee(Boolean value) { - 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 deleted file mode 100644 index 3a51e53..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountNumberResponseDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetAccountNumberResponseDto { - - /** - * Account agency - */ - @JsonProperty("agency") - private JsonNullable agency; - - /** - * Account number - */ - @JsonProperty("account") - private JsonNullable account; - - /** - * Account digit - */ - @JsonProperty("accountDigit") - private JsonNullable accountDigit; - - @JsonIgnore - public String getAgency() { - return agency.orElse(null); - } - - @JsonIgnore - public String getAccount() { - return account.orElse(null); - } - - @JsonIgnore - public String getAccountDigit() { - return accountDigit.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountNumberResponseDtoBuilder { - - private JsonNullable agency = JsonNullable.undefined(); - - @JsonProperty("agency") - public ApiMyAccountGetAccountNumberResponseDtoBuilder agency(String value) { - this.agency = JsonNullable.of(value); - return this; - } - - private JsonNullable account = JsonNullable.undefined(); - - @JsonProperty("account") - public ApiMyAccountGetAccountNumberResponseDtoBuilder account(String value) { - this.account = JsonNullable.of(value); - return this; - } - - private JsonNullable accountDigit = JsonNullable.undefined(); - - @JsonProperty("accountDigit") - public ApiMyAccountGetAccountNumberResponseDtoBuilder accountDigit(String value) { - 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 deleted file mode 100644 index 5b75374..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseDto.java +++ /dev/null @@ -1,121 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiMyAccountGetStatusResponseDto { - - /** - * Unique account identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Status of sent business data - */ - @JsonProperty("commercialInfo") - private JsonNullable commercialInfo; - - /** - * Status of sent business data - */ - @JsonProperty("bankAccountInfo") - private JsonNullable bankAccountInfo; - - /** - * Status of sent business data - */ - @JsonProperty("documentation") - private JsonNullable documentation; - - /** - * Status of sent business data - */ - @JsonProperty("general") - private JsonNullable general; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetStatusResponseStatus getCommercialInfo() { - return commercialInfo.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetStatusResponseStatus getBankAccountInfo() { - return bankAccountInfo.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetStatusResponseStatus getDocumentation() { - return documentation.orElse(null); - } - - @JsonIgnore - public ApiMyAccountGetStatusResponseStatus getGeneral() { - return general.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiMyAccountGetStatusResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiMyAccountGetStatusResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable commercialInfo = JsonNullable.undefined(); - - @JsonProperty("commercialInfo") - public ApiMyAccountGetStatusResponseDtoBuilder commercialInfo(ApiMyAccountGetStatusResponseStatus value) { - this.commercialInfo = JsonNullable.of(value); - return this; - } - - private JsonNullable bankAccountInfo = JsonNullable.undefined(); - - @JsonProperty("bankAccountInfo") - public ApiMyAccountGetStatusResponseDtoBuilder bankAccountInfo(ApiMyAccountGetStatusResponseStatus value) { - this.bankAccountInfo = JsonNullable.of(value); - return this; - } - - private JsonNullable documentation = JsonNullable.undefined(); - - @JsonProperty("documentation") - public ApiMyAccountGetStatusResponseDtoBuilder documentation(ApiMyAccountGetStatusResponseStatus value) { - this.documentation = JsonNullable.of(value); - return this; - } - - private JsonNullable general = JsonNullable.undefined(); - - @JsonProperty("general") - public ApiMyAccountGetStatusResponseDtoBuilder general(ApiMyAccountGetStatusResponseStatus value) { - this.general = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseStatus.java b/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseStatus.java deleted file mode 100644 index 4baafeb..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseStatus.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Status of sent business data - */ -@Getter -@AllArgsConstructor -public enum ApiMyAccountGetStatusResponseStatus { - PENDING("PENDING"), - APPROVED("APPROVED"), - REJECTED("REJECTED"), - AWAITING_APPROVAL("AWAITING_APPROVAL"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiMyAccountGetStatusResponseStatus fromValue(String value) { - return Arrays.stream(ApiMyAccountGetStatusResponseStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateRequestDto.java deleted file mode 100644 index 6ac22fa..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateRequestDto.java +++ /dev/null @@ -1,53 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiNotificationBatchUpdateRequestDto { - - /** - * Unique customer identifier in Asaas - */ - @NonNull - private String customer; - - /** - * List of notification information - */ - @JsonProperty("notifications") - private JsonNullable> notifications; - - @JsonIgnore - public List getNotifications() { - return notifications.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiNotificationBatchUpdateRequestDtoBuilder { - - private JsonNullable> notifications = JsonNullable.undefined(); - - @JsonProperty("notifications") - public ApiNotificationBatchUpdateRequestDtoBuilder notifications(List value) { - 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 deleted file mode 100644 index 39fe116..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateResponseDto.java +++ /dev/null @@ -1,46 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiNotificationBatchUpdateResponseDto { - - /** - * List of notification information - */ - @JsonProperty("notifications") - private JsonNullable> notifications; - - @JsonIgnore - public List getNotifications() { - return notifications.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiNotificationBatchUpdateResponseDtoBuilder { - - private JsonNullable> notifications = JsonNullable.undefined(); - - @JsonProperty("notifications") - public ApiNotificationBatchUpdateResponseDtoBuilder notifications(List value) { - 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 deleted file mode 100644 index 315deab..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDto.java +++ /dev/null @@ -1,273 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiNotificationGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique notification identifier - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Unique customer identifier - */ - @JsonProperty("customer") - private JsonNullable customer; - - /** - * Indicates whether notification is enabled - */ - @JsonProperty("enabled") - private JsonNullable enabled; - - /** - * Indicates whether the email sent to you is enabled or disabled - */ - @JsonProperty("emailEnabledForProvider") - private JsonNullable emailEnabledForProvider; - - /** - * Indicates whether the SMS sent to you is enabled or disabled - */ - @JsonProperty("smsEnabledForProvider") - private JsonNullable smsEnabledForProvider; - - /** - * Indicates whether the email sent to the customer is enabled or disabled - */ - @JsonProperty("emailEnabledForCustomer") - private JsonNullable emailEnabledForCustomer; - - /** - * Indicates whether the SMS sent to the customer is enabled or disabled - */ - @JsonProperty("smsEnabledForCustomer") - private JsonNullable smsEnabledForCustomer; - - /** - * Indicates whether voice notification to the customer is enabled or disabled - */ - @JsonProperty("phoneCallEnabledForCustomer") - private JsonNullable phoneCallEnabledForCustomer; - - /** - * Indicates whether the WhatsApp notification sent to the customer is enabled or disabled - */ - @JsonProperty("whatsappEnabledForCustomer") - private JsonNullable whatsappEnabledForCustomer; - - /** - * Kind of event - */ - @JsonProperty("event") - private JsonNullable event; - - /** - * Specifies how many days before the due date the notification must be sent. Valid only for the `PAYMENT_DUEDATE_WARNING` and `PAYMENT_OVERDUE` events - */ - @JsonProperty("scheduleOffset") - private JsonNullable scheduleOffset; - - /** - * Indicates whether the notification was deleted - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getCustomer() { - return customer.orElse(null); - } - - @JsonIgnore - public Boolean getEnabled() { - return enabled.orElse(null); - } - - @JsonIgnore - public Boolean getEmailEnabledForProvider() { - return emailEnabledForProvider.orElse(null); - } - - @JsonIgnore - public Boolean getSmsEnabledForProvider() { - return smsEnabledForProvider.orElse(null); - } - - @JsonIgnore - public Boolean getEmailEnabledForCustomer() { - return emailEnabledForCustomer.orElse(null); - } - - @JsonIgnore - public Boolean getSmsEnabledForCustomer() { - return smsEnabledForCustomer.orElse(null); - } - - @JsonIgnore - public Boolean getPhoneCallEnabledForCustomer() { - return phoneCallEnabledForCustomer.orElse(null); - } - - @JsonIgnore - public Boolean getWhatsappEnabledForCustomer() { - return whatsappEnabledForCustomer.orElse(null); - } - - @JsonIgnore - public ApiNotificationGetResponseNotificationEvent getEvent() { - return event.orElse(null); - } - - @JsonIgnore - public ApiNotificationGetResponseDtoScheduleOffset getScheduleOffset() { - return scheduleOffset.orElse(null); - } - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiNotificationGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiNotificationGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiNotificationGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable customer = JsonNullable.undefined(); - - @JsonProperty("customer") - public ApiNotificationGetResponseDtoBuilder customer(String value) { - this.customer = JsonNullable.of(value); - return this; - } - - private JsonNullable enabled = JsonNullable.undefined(); - - @JsonProperty("enabled") - public ApiNotificationGetResponseDtoBuilder enabled(Boolean value) { - this.enabled = JsonNullable.of(value); - return this; - } - - private JsonNullable emailEnabledForProvider = JsonNullable.undefined(); - - @JsonProperty("emailEnabledForProvider") - public ApiNotificationGetResponseDtoBuilder emailEnabledForProvider(Boolean value) { - this.emailEnabledForProvider = JsonNullable.of(value); - return this; - } - - private JsonNullable smsEnabledForProvider = JsonNullable.undefined(); - - @JsonProperty("smsEnabledForProvider") - public ApiNotificationGetResponseDtoBuilder smsEnabledForProvider(Boolean value) { - this.smsEnabledForProvider = JsonNullable.of(value); - return this; - } - - private JsonNullable emailEnabledForCustomer = JsonNullable.undefined(); - - @JsonProperty("emailEnabledForCustomer") - public ApiNotificationGetResponseDtoBuilder emailEnabledForCustomer(Boolean value) { - this.emailEnabledForCustomer = JsonNullable.of(value); - return this; - } - - private JsonNullable smsEnabledForCustomer = JsonNullable.undefined(); - - @JsonProperty("smsEnabledForCustomer") - public ApiNotificationGetResponseDtoBuilder smsEnabledForCustomer(Boolean value) { - this.smsEnabledForCustomer = JsonNullable.of(value); - return this; - } - - private JsonNullable phoneCallEnabledForCustomer = JsonNullable.undefined(); - - @JsonProperty("phoneCallEnabledForCustomer") - public ApiNotificationGetResponseDtoBuilder phoneCallEnabledForCustomer(Boolean value) { - this.phoneCallEnabledForCustomer = JsonNullable.of(value); - return this; - } - - private JsonNullable whatsappEnabledForCustomer = JsonNullable.undefined(); - - @JsonProperty("whatsappEnabledForCustomer") - public ApiNotificationGetResponseDtoBuilder whatsappEnabledForCustomer(Boolean value) { - this.whatsappEnabledForCustomer = JsonNullable.of(value); - return this; - } - - private JsonNullable event = JsonNullable.undefined(); - - @JsonProperty("event") - public ApiNotificationGetResponseDtoBuilder event(ApiNotificationGetResponseNotificationEvent value) { - this.event = JsonNullable.of(value); - return this; - } - - private JsonNullable scheduleOffset = JsonNullable.undefined(); - - @JsonProperty("scheduleOffset") - public ApiNotificationGetResponseDtoBuilder scheduleOffset(ApiNotificationGetResponseDtoScheduleOffset value) { - this.scheduleOffset = JsonNullable.of(value); - return this; - } - - private JsonNullable deleted = JsonNullable.of(true); - - @JsonProperty("deleted") - public ApiNotificationGetResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDtoScheduleOffset.java b/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDtoScheduleOffset.java deleted file mode 100644 index 38f7a9d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDtoScheduleOffset.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Specifies how many days before the due date the notification must be sent. Valid only for the `PAYMENT_DUEDATE_WARNING` and `PAYMENT_OVERDUE` events - */ -@Getter -@AllArgsConstructor -public enum ApiNotificationGetResponseDtoScheduleOffset { - _0(0), - _1(1), - _5(5), - _7(7), - _10(10), - _15(15), - _30(30); - - @JsonValue - private final long value; - - @JsonCreator - public static ApiNotificationGetResponseDtoScheduleOffset fromValue(String value) { - return Arrays.stream(ApiNotificationGetResponseDtoScheduleOffset.values()) - .filter(item -> String.valueOf(item.value).equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseNotificationEvent.java b/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseNotificationEvent.java deleted file mode 100644 index 139ef8e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseNotificationEvent.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Kind of event - */ -@Getter -@AllArgsConstructor -public enum ApiNotificationGetResponseNotificationEvent { - PAYMENT_CREATED("PAYMENT_CREATED"), - PAYMENT_UPDATED("PAYMENT_UPDATED"), - PAYMENT_RECEIVED("PAYMENT_RECEIVED"), - PAYMENT_OVERDUE("PAYMENT_OVERDUE"), - PAYMENT_DUEDATE_WARNING("PAYMENT_DUEDATE_WARNING"), - SEND_LINHA_DIGITAVEL("SEND_LINHA_DIGITAVEL"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiNotificationGetResponseNotificationEvent fromValue(String value) { - return Arrays.stream(ApiNotificationGetResponseNotificationEvent.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiNotificationListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiNotificationListResponseDto.java deleted file mode 100644 index 08d01d4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiNotificationListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiNotificationListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiNotificationListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiNotificationListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiNotificationListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiNotificationListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiNotificationListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiNotificationListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index a1a3834..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDto.java +++ /dev/null @@ -1,180 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiNotificationUpdateRequestDto { - - /** - * Enable/disable notification - */ - @JsonProperty("enabled") - private JsonNullable enabled; - - /** - * enable/disable the email sent to you - */ - @JsonProperty("emailEnabledForProvider") - private JsonNullable emailEnabledForProvider; - - /** - * enable/disable the SMS sent to you - */ - @JsonProperty("smsEnabledForProvider") - private JsonNullable smsEnabledForProvider; - - /** - * enable/disable the email sent to your customer - */ - @JsonProperty("emailEnabledForCustomer") - private JsonNullable emailEnabledForCustomer; - - /** - * enable/disable the SMS sent to your customer - */ - @JsonProperty("smsEnabledForCustomer") - private JsonNullable smsEnabledForCustomer; - - /** - * enable/disable voice notification sent to your customer - */ - @JsonProperty("phoneCallEnabledForCustomer") - private JsonNullable phoneCallEnabledForCustomer; - - /** - * enable/disable WhatsApp messages for your customer - */ - @JsonProperty("whatsappEnabledForCustomer") - private JsonNullable whatsappEnabledForCustomer; - - /** - * Specifies how many days before the due date the notification must be sent. - * For the `PAYMENT_DUEDATE_WARNING` event, the accepted values are: `0`, `5`, `10`, `15` and `30` - * For the `PAYMENT_OVERDUE` event, the accepted values are: `1`, `7`, `15` and `30` - */ - @JsonProperty("scheduleOffset") - private JsonNullable scheduleOffset; - - @JsonIgnore - public Boolean getEnabled() { - return enabled.orElse(null); - } - - @JsonIgnore - public Boolean getEmailEnabledForProvider() { - return emailEnabledForProvider.orElse(null); - } - - @JsonIgnore - public Boolean getSmsEnabledForProvider() { - return smsEnabledForProvider.orElse(null); - } - - @JsonIgnore - public Boolean getEmailEnabledForCustomer() { - return emailEnabledForCustomer.orElse(null); - } - - @JsonIgnore - public Boolean getSmsEnabledForCustomer() { - return smsEnabledForCustomer.orElse(null); - } - - @JsonIgnore - public Boolean getPhoneCallEnabledForCustomer() { - return phoneCallEnabledForCustomer.orElse(null); - } - - @JsonIgnore - public Boolean getWhatsappEnabledForCustomer() { - return whatsappEnabledForCustomer.orElse(null); - } - - @JsonIgnore - public ApiNotificationUpdateRequestDtoScheduleOffset getScheduleOffset() { - return scheduleOffset.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiNotificationUpdateRequestDtoBuilder { - - private JsonNullable enabled = JsonNullable.undefined(); - - @JsonProperty("enabled") - public ApiNotificationUpdateRequestDtoBuilder enabled(Boolean value) { - this.enabled = JsonNullable.of(value); - return this; - } - - private JsonNullable emailEnabledForProvider = JsonNullable.undefined(); - - @JsonProperty("emailEnabledForProvider") - public ApiNotificationUpdateRequestDtoBuilder emailEnabledForProvider(Boolean value) { - this.emailEnabledForProvider = JsonNullable.of(value); - return this; - } - - private JsonNullable smsEnabledForProvider = JsonNullable.undefined(); - - @JsonProperty("smsEnabledForProvider") - public ApiNotificationUpdateRequestDtoBuilder smsEnabledForProvider(Boolean value) { - this.smsEnabledForProvider = JsonNullable.of(value); - return this; - } - - private JsonNullable emailEnabledForCustomer = JsonNullable.undefined(); - - @JsonProperty("emailEnabledForCustomer") - public ApiNotificationUpdateRequestDtoBuilder emailEnabledForCustomer(Boolean value) { - this.emailEnabledForCustomer = JsonNullable.of(value); - return this; - } - - private JsonNullable smsEnabledForCustomer = JsonNullable.undefined(); - - @JsonProperty("smsEnabledForCustomer") - public ApiNotificationUpdateRequestDtoBuilder smsEnabledForCustomer(Boolean value) { - this.smsEnabledForCustomer = JsonNullable.of(value); - return this; - } - - private JsonNullable phoneCallEnabledForCustomer = JsonNullable.undefined(); - - @JsonProperty("phoneCallEnabledForCustomer") - public ApiNotificationUpdateRequestDtoBuilder phoneCallEnabledForCustomer(Boolean value) { - this.phoneCallEnabledForCustomer = JsonNullable.of(value); - return this; - } - - private JsonNullable whatsappEnabledForCustomer = JsonNullable.undefined(); - - @JsonProperty("whatsappEnabledForCustomer") - public ApiNotificationUpdateRequestDtoBuilder whatsappEnabledForCustomer(Boolean value) { - this.whatsappEnabledForCustomer = JsonNullable.of(value); - return this; - } - - private JsonNullable scheduleOffset = JsonNullable.undefined(); - - @JsonProperty("scheduleOffset") - public ApiNotificationUpdateRequestDtoBuilder scheduleOffset(ApiNotificationUpdateRequestDtoScheduleOffset value) { - this.scheduleOffset = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDtoScheduleOffset.java b/src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDtoScheduleOffset.java deleted file mode 100644 index f02b438..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDtoScheduleOffset.java +++ /dev/null @@ -1,37 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Specifies how many days before the due date the notification must be sent. - * For the `PAYMENT_DUEDATE_WARNING` event, the accepted values are: `0`, `5`, `10`, `15` and `30` - * For the `PAYMENT_OVERDUE` event, the accepted values are: `1`, `7`, `15` and `30` - */ -@Getter -@AllArgsConstructor -public enum ApiNotificationUpdateRequestDtoScheduleOffset { - _0(0), - _1(1), - _5(5), - _7(7), - _10(10), - _15(15), - _30(30); - - @JsonValue - private final long value; - - @JsonCreator - public static ApiNotificationUpdateRequestDtoScheduleOffset fromValue(String value) { - return Arrays.stream(ApiNotificationUpdateRequestDtoScheduleOffset.values()) - .filter(item -> String.valueOf(item.value).equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentBankSlipRefundResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentBankSlipRefundResponseDto.java deleted file mode 100644 index d605857..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentBankSlipRefundResponseDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentBankSlipRefundResponseDto { - - /** - * Link to report refund details - */ - @JsonProperty("requestUrl") - private JsonNullable requestUrl; - - @JsonIgnore - public String getRequestUrl() { - return requestUrl.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentBankSlipRefundResponseDtoBuilder { - - private JsonNullable requestUrl = JsonNullable.undefined(); - - @JsonProperty("requestUrl") - public ApiPaymentBankSlipRefundResponseDtoBuilder requestUrl(String value) { - 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 deleted file mode 100644 index ad3d8e6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentBillingInfoResponseDto.java +++ /dev/null @@ -1,74 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentBillingInfoResponseDto { - - @JsonProperty("pix") - private JsonNullable pix; - - @JsonProperty("creditCard") - private JsonNullable creditCard; - - @JsonProperty("bankSlip") - private JsonNullable bankSlip; - - @JsonIgnore - public ApiPaymentPixQrCodeResponseDto getPix() { - return pix.orElse(null); - } - - @JsonIgnore - public ApiCreditCardTokenizeResponseDto getCreditCard() { - return creditCard.orElse(null); - } - - @JsonIgnore - public ApiBankSlipBillingInfoResponseDto getBankSlip() { - return bankSlip.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentBillingInfoResponseDtoBuilder { - - private JsonNullable pix = JsonNullable.undefined(); - - @JsonProperty("pix") - public ApiPaymentBillingInfoResponseDtoBuilder pix(ApiPaymentPixQrCodeResponseDto value) { - this.pix = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCard = JsonNullable.undefined(); - - @JsonProperty("creditCard") - public ApiPaymentBillingInfoResponseDtoBuilder creditCard(ApiCreditCardTokenizeResponseDto value) { - this.creditCard = JsonNullable.of(value); - return this; - } - - private JsonNullable bankSlip = JsonNullable.undefined(); - - @JsonProperty("bankSlip") - public ApiPaymentBillingInfoResponseDtoBuilder bankSlip(ApiBankSlipBillingInfoResponseDto value) { - 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 deleted file mode 100644 index b5adb2f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCallbackRequestDto.java +++ /dev/null @@ -1,52 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCallbackRequestDto { - - /** - * URL that the customer will be redirected to after successful payment of the invoice or payment link - */ - @NonNull - private String successUrl; - - /** - * Define whether the customer will be automatically redirected or will just be informed with a button to return to the website. The default is true, if you want to disable it, enter false - */ - @JsonProperty("autoRedirect") - private JsonNullable autoRedirect; - - @JsonIgnore - public Boolean getAutoRedirect() { - return autoRedirect.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCallbackRequestDtoBuilder { - - private JsonNullable autoRedirect = JsonNullable.undefined(); - - @JsonProperty("autoRedirect") - public ApiPaymentCallbackRequestDtoBuilder autoRedirect(Boolean value) { - 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 deleted file mode 100644 index 9962537..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignDeleteResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCampaignDeleteResponseDto { - - /** - * Indicates whether the payment link has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Unique identifier for your payments link in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCampaignDeleteResponseDtoBuilder { - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiPaymentCampaignDeleteResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentCampaignDeleteResponseDtoBuilder id(String value) { - 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 deleted file mode 100644 index 9e98862..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileDeleteResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCampaignFileDeleteResponseDto { - - /** - * Indicates whether the image was removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Unique payment link image identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCampaignFileDeleteResponseDtoBuilder { - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiPaymentCampaignFileDeleteResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentCampaignFileDeleteResponseDtoBuilder id(String value) { - 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 deleted file mode 100644 index 3c47312..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileGetResponseDto.java +++ /dev/null @@ -1,80 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCampaignFileGetResponseDto { - - /** - * Unique payment link image identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Determines if this is the main image - */ - @JsonProperty("main") - private JsonNullable main; - - @JsonProperty("image") - private JsonNullable image; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public Boolean getMain() { - return main.orElse(null); - } - - @JsonIgnore - public ApiPaymentCampaignFileImageResponseDto getImage() { - return image.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCampaignFileGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentCampaignFileGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable main = JsonNullable.undefined(); - - @JsonProperty("main") - public ApiPaymentCampaignFileGetResponseDtoBuilder main(Boolean value) { - this.main = JsonNullable.of(value); - return this; - } - - private JsonNullable image = JsonNullable.undefined(); - - @JsonProperty("image") - public ApiPaymentCampaignFileGetResponseDtoBuilder image(ApiPaymentCampaignFileImageResponseDto value) { - 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 deleted file mode 100644 index d3d29d1..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileImageResponseDto.java +++ /dev/null @@ -1,121 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCampaignFileImageResponseDto { - - /** - * Original image name - */ - @JsonProperty("originalName") - private JsonNullable originalName; - - /** - * Image size - */ - @JsonProperty("size") - private JsonNullable size; - - /** - * Image extension - */ - @JsonProperty("extension") - private JsonNullable extension; - - /** - * Link to download the image preview - */ - @JsonProperty("previewUrl") - private JsonNullable previewUrl; - - /** - * Link to download the image - */ - @JsonProperty("downloadUrl") - private JsonNullable downloadUrl; - - @JsonIgnore - public String getOriginalName() { - return originalName.orElse(null); - } - - @JsonIgnore - public Long getSize() { - return size.orElse(null); - } - - @JsonIgnore - public String getExtension() { - return extension.orElse(null); - } - - @JsonIgnore - public String getPreviewUrl() { - return previewUrl.orElse(null); - } - - @JsonIgnore - public String getDownloadUrl() { - return downloadUrl.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCampaignFileImageResponseDtoBuilder { - - private JsonNullable originalName = JsonNullable.undefined(); - - @JsonProperty("originalName") - public ApiPaymentCampaignFileImageResponseDtoBuilder originalName(String value) { - this.originalName = JsonNullable.of(value); - return this; - } - - private JsonNullable size = JsonNullable.undefined(); - - @JsonProperty("size") - public ApiPaymentCampaignFileImageResponseDtoBuilder size(Long value) { - this.size = JsonNullable.of(value); - return this; - } - - private JsonNullable extension = JsonNullable.undefined(); - - @JsonProperty("extension") - public ApiPaymentCampaignFileImageResponseDtoBuilder extension(String value) { - this.extension = JsonNullable.of(value); - return this; - } - - private JsonNullable previewUrl = JsonNullable.undefined(); - - @JsonProperty("previewUrl") - public ApiPaymentCampaignFileImageResponseDtoBuilder previewUrl(String value) { - this.previewUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable downloadUrl = JsonNullable.undefined(); - - @JsonProperty("downloadUrl") - public ApiPaymentCampaignFileImageResponseDtoBuilder downloadUrl(String value) { - 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 deleted file mode 100644 index 20c3461..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCampaignFileListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCampaignFileListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentCampaignFileListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPaymentCampaignFileListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPaymentCampaignFileListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentCampaignFileListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPaymentCampaignFileListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPaymentCampaignFileListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index baa24d7..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileSaveRequestDto.java +++ /dev/null @@ -1,67 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCampaignFileSaveRequestDto { - - /** - * true to set as the main image - */ - @JsonProperty("main") - private JsonNullable main; - - /** - * File - */ - @JsonProperty("image") - private JsonNullable image; - - @JsonIgnore - public Boolean getMain() { - return main.orElse(null); - } - - @JsonIgnore - public byte[] getImage() { - return image.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCampaignFileSaveRequestDtoBuilder { - - private JsonNullable main = JsonNullable.undefined(); - - @JsonProperty("main") - public ApiPaymentCampaignFileSaveRequestDtoBuilder main(Boolean value) { - this.main = JsonNullable.of(value); - return this; - } - - private JsonNullable image = JsonNullable.undefined(); - - @JsonProperty("image") - public ApiPaymentCampaignFileSaveRequestDtoBuilder image(byte[] 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/ApiPaymentCampaignGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseBillingType.java deleted file mode 100644 index 5ae571e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Allowed payment method - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCampaignGetResponseBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCampaignGetResponseBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignGetResponseBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseChargeType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseChargeType.java deleted file mode 100644 index 21d52ee..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseChargeType.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Charge type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCampaignGetResponseChargeType { - DETACHED("DETACHED"), - RECURRENT("RECURRENT"), - INSTALLMENT("INSTALLMENT"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCampaignGetResponseChargeType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignGetResponseChargeType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseCycle.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseCycle.java deleted file mode 100644 index b807437..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseCycle.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing frequency, if the chargeType is RECURRENT - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCampaignGetResponseCycle { - WEEKLY("WEEKLY"), - BIWEEKLY("BIWEEKLY"), - MONTHLY("MONTHLY"), - BIMONTHLY("BIMONTHLY"), - QUARTERLY("QUARTERLY"), - SEMIANNUALLY("SEMIANNUALLY"), - YEARLY("YEARLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCampaignGetResponseCycle fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignGetResponseCycle.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseDto.java deleted file mode 100644 index 485b3a8..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseDto.java +++ /dev/null @@ -1,349 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCampaignGetResponseDto { - - /** - * Unique identifier for your payments link in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Payment link name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Value of the payment link, if not informed, the payer can inform how much they want to pay - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * If the payments link is active - */ - @JsonProperty("active") - private JsonNullable active; - - /** - * Charge type - */ - @JsonProperty("chargeType") - private JsonNullable chargeType; - - /** - * Payments link access link - */ - @JsonProperty("url") - private JsonNullable url; - - /** - * Allowed payment method - */ - @JsonProperty("billingType") - private JsonNullable billingType; - - /** - * Billing frequency, if the chargeType is RECURRENT - */ - @JsonProperty("subscriptionCycle") - private JsonNullable subscriptionCycle; - - /** - * Payments link description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * End date - */ - @JsonProperty("endDate") - private JsonNullable endDate; - - /** - * Indicates whether the payment link has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * The number of views of your payments link - */ - @JsonProperty("viewCount") - private JsonNullable viewCount; - - /** - * Maximum number of installments that your customer can pay in installments for the payment link, if it is Installment. - */ - @JsonProperty("maxInstallmentCount") - private JsonNullable maxInstallmentCount; - - /** - * Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) - */ - @JsonProperty("dueDateLimitDays") - private JsonNullable dueDateLimitDays; - - /** - * Defines whether customers registered via the payments link will have notifications enabled - */ - @JsonProperty("notificationEnabled") - private JsonNullable notificationEnabled; - - /** - * Defines whether filling in the address will be obligatory in the charges. - */ - @JsonProperty("isAddressRequired") - private JsonNullable isAddressRequired; - - /** - * Free search field. - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Boolean getActive() { - return active.orElse(null); - } - - @JsonIgnore - public ApiPaymentCampaignGetResponseChargeType getChargeType() { - return chargeType.orElse(null); - } - - @JsonIgnore - public String getUrl() { - return url.orElse(null); - } - - @JsonIgnore - public ApiPaymentCampaignGetResponseBillingType getBillingType() { - return billingType.orElse(null); - } - - @JsonIgnore - public ApiPaymentCampaignGetResponseCycle getSubscriptionCycle() { - return subscriptionCycle.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getEndDate() { - return endDate.orElse(null); - } - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public Long getViewCount() { - return viewCount.orElse(null); - } - - @JsonIgnore - public Long getMaxInstallmentCount() { - return maxInstallmentCount.orElse(null); - } - - @JsonIgnore - public Long getDueDateLimitDays() { - return dueDateLimitDays.orElse(null); - } - - @JsonIgnore - public Boolean getNotificationEnabled() { - return notificationEnabled.orElse(null); - } - - @JsonIgnore - public Boolean getIsAddressRequired() { - return isAddressRequired.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCampaignGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentCampaignGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiPaymentCampaignGetResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentCampaignGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable active = JsonNullable.undefined(); - - @JsonProperty("active") - public ApiPaymentCampaignGetResponseDtoBuilder active(Boolean value) { - this.active = JsonNullable.of(value); - return this; - } - - private JsonNullable chargeType = JsonNullable.undefined(); - - @JsonProperty("chargeType") - public ApiPaymentCampaignGetResponseDtoBuilder chargeType(ApiPaymentCampaignGetResponseChargeType value) { - this.chargeType = JsonNullable.of(value); - return this; - } - - private JsonNullable url = JsonNullable.undefined(); - - @JsonProperty("url") - public ApiPaymentCampaignGetResponseDtoBuilder url(String value) { - this.url = JsonNullable.of(value); - return this; - } - - private JsonNullable billingType = JsonNullable.undefined(); - - @JsonProperty("billingType") - public ApiPaymentCampaignGetResponseDtoBuilder billingType(ApiPaymentCampaignGetResponseBillingType value) { - this.billingType = JsonNullable.of(value); - return this; - } - - private JsonNullable subscriptionCycle = JsonNullable.undefined(); - - @JsonProperty("subscriptionCycle") - public ApiPaymentCampaignGetResponseDtoBuilder subscriptionCycle(ApiPaymentCampaignGetResponseCycle value) { - this.subscriptionCycle = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentCampaignGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable endDate = JsonNullable.undefined(); - - @JsonProperty("endDate") - public ApiPaymentCampaignGetResponseDtoBuilder endDate(String value) { - this.endDate = JsonNullable.of(value); - return this; - } - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiPaymentCampaignGetResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable viewCount = JsonNullable.undefined(); - - @JsonProperty("viewCount") - public ApiPaymentCampaignGetResponseDtoBuilder viewCount(Long value) { - this.viewCount = JsonNullable.of(value); - return this; - } - - private JsonNullable maxInstallmentCount = JsonNullable.undefined(); - - @JsonProperty("maxInstallmentCount") - public ApiPaymentCampaignGetResponseDtoBuilder maxInstallmentCount(Long value) { - this.maxInstallmentCount = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDateLimitDays = JsonNullable.undefined(); - - @JsonProperty("dueDateLimitDays") - public ApiPaymentCampaignGetResponseDtoBuilder dueDateLimitDays(Long value) { - this.dueDateLimitDays = JsonNullable.of(value); - return this; - } - - private JsonNullable notificationEnabled = JsonNullable.undefined(); - - @JsonProperty("notificationEnabled") - public ApiPaymentCampaignGetResponseDtoBuilder notificationEnabled(Boolean value) { - this.notificationEnabled = JsonNullable.of(value); - return this; - } - - private JsonNullable isAddressRequired = JsonNullable.undefined(); - - @JsonProperty("isAddressRequired") - public ApiPaymentCampaignGetResponseDtoBuilder isAddressRequired(Boolean value) { - this.isAddressRequired = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPaymentCampaignGetResponseDtoBuilder externalReference(String value) { - 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 deleted file mode 100644 index 5b975a5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCampaignListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCampaignListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentCampaignListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPaymentCampaignListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPaymentCampaignListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentCampaignListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPaymentCampaignListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPaymentCampaignListResponseDtoBuilder data(List value) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestBillingType.java deleted file mode 100644 index 3cbf9dc..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Allowed payment method - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCampaignSaveRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCampaignSaveRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignSaveRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestChargeType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestChargeType.java deleted file mode 100644 index 003edec..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestChargeType.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Charge type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCampaignSaveRequestChargeType { - DETACHED("DETACHED"), - RECURRENT("RECURRENT"), - INSTALLMENT("INSTALLMENT"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCampaignSaveRequestChargeType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignSaveRequestChargeType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestCycle.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestCycle.java deleted file mode 100644 index 53cc3da..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestCycle.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing frequency, if the chargeType is RECURRENT - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCampaignSaveRequestCycle { - WEEKLY("WEEKLY"), - BIWEEKLY("BIWEEKLY"), - MONTHLY("MONTHLY"), - BIMONTHLY("BIMONTHLY"), - QUARTERLY("QUARTERLY"), - SEMIANNUALLY("SEMIANNUALLY"), - YEARLY("YEARLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCampaignSaveRequestCycle fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignSaveRequestCycle.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestDto.java deleted file mode 100644 index 3d88a56..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestDto.java +++ /dev/null @@ -1,232 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCampaignSaveRequestDto { - - /** - * Payment link name - */ - @NonNull - private String name; - - /** - * Allowed payment method - */ - @NonNull - private ApiPaymentCampaignSaveRequestBillingType billingType; - - /** - * Charge type - */ - @NonNull - private ApiPaymentCampaignSaveRequestChargeType chargeType; - - /** - * Payments link description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * End date - */ - @JsonProperty("endDate") - private JsonNullable endDate; - - /** - * Value of the payment link, if not informed, the payer can inform how much they want to pay - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) - */ - @JsonProperty("dueDateLimitDays") - private JsonNullable dueDateLimitDays; - - /** - * Billing frequency, if the chargeType is RECURRENT - */ - @JsonProperty("subscriptionCycle") - private JsonNullable subscriptionCycle; - - /** - * Maximum number of installments that your customer can pay in installments for the payment link if the billing method selected is Installments. If not informed, the default value will be 1 installment - */ - @JsonProperty("maxInstallmentCount") - private JsonNullable maxInstallmentCount; - - /** - * Free search field. - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Defines whether customers registered via the payments link will have notifications enabled. If not informed, the default value will be true - */ - @JsonProperty("notificationEnabled") - private JsonNullable notificationEnabled; - - @JsonProperty("callback") - private JsonNullable callback; - - /** - * True to make it mandatory to fill in address data at checkout. - */ - @JsonProperty("isAddressRequired") - private JsonNullable isAddressRequired; - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getEndDate() { - return endDate.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Long getDueDateLimitDays() { - return dueDateLimitDays.orElse(null); - } - - @JsonIgnore - public ApiPaymentCampaignSaveRequestCycle getSubscriptionCycle() { - return subscriptionCycle.orElse(null); - } - - @JsonIgnore - public Long getMaxInstallmentCount() { - return maxInstallmentCount.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public Boolean getNotificationEnabled() { - return notificationEnabled.orElse(null); - } - - @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { - return callback.orElse(null); - } - - @JsonIgnore - public Boolean getIsAddressRequired() { - return isAddressRequired.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCampaignSaveRequestDtoBuilder { - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentCampaignSaveRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable endDate = JsonNullable.undefined(); - - @JsonProperty("endDate") - public ApiPaymentCampaignSaveRequestDtoBuilder endDate(String value) { - this.endDate = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentCampaignSaveRequestDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDateLimitDays = JsonNullable.undefined(); - - @JsonProperty("dueDateLimitDays") - public ApiPaymentCampaignSaveRequestDtoBuilder dueDateLimitDays(Long value) { - this.dueDateLimitDays = JsonNullable.of(value); - return this; - } - - private JsonNullable subscriptionCycle = JsonNullable.undefined(); - - @JsonProperty("subscriptionCycle") - public ApiPaymentCampaignSaveRequestDtoBuilder subscriptionCycle(ApiPaymentCampaignSaveRequestCycle value) { - this.subscriptionCycle = JsonNullable.of(value); - return this; - } - - private JsonNullable maxInstallmentCount = JsonNullable.of(1L); - - @JsonProperty("maxInstallmentCount") - public ApiPaymentCampaignSaveRequestDtoBuilder maxInstallmentCount(Long value) { - this.maxInstallmentCount = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPaymentCampaignSaveRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable notificationEnabled = JsonNullable.of(true); - - @JsonProperty("notificationEnabled") - public ApiPaymentCampaignSaveRequestDtoBuilder notificationEnabled(Boolean value) { - this.notificationEnabled = JsonNullable.of(value); - return this; - } - - private JsonNullable callback = JsonNullable.undefined(); - - @JsonProperty("callback") - public ApiPaymentCampaignSaveRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - this.callback = JsonNullable.of(value); - return this; - } - - private JsonNullable isAddressRequired = JsonNullable.undefined(); - - @JsonProperty("isAddressRequired") - public ApiPaymentCampaignSaveRequestDtoBuilder isAddressRequired(Boolean value) { - this.isAddressRequired = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestBillingType.java deleted file mode 100644 index 7a53162..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Allowed payment method - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCampaignUpdateRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCampaignUpdateRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignUpdateRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestChargeType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestChargeType.java deleted file mode 100644 index 76e8771..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestChargeType.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Charge type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCampaignUpdateRequestChargeType { - DETACHED("DETACHED"), - RECURRENT("RECURRENT"), - INSTALLMENT("INSTALLMENT"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCampaignUpdateRequestChargeType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignUpdateRequestChargeType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestCycle.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestCycle.java deleted file mode 100644 index 1fb5d4b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestCycle.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing frequency, if the chargeType is RECURRENT - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCampaignUpdateRequestCycle { - WEEKLY("WEEKLY"), - BIWEEKLY("BIWEEKLY"), - MONTHLY("MONTHLY"), - BIMONTHLY("BIMONTHLY"), - QUARTERLY("QUARTERLY"), - SEMIANNUALLY("SEMIANNUALLY"), - YEARLY("YEARLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCampaignUpdateRequestCycle fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignUpdateRequestCycle.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestDto.java deleted file mode 100644 index aaf6031..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestDto.java +++ /dev/null @@ -1,270 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCampaignUpdateRequestDto { - - /** - * Payment link name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Payments link description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * End date - */ - @JsonProperty("endDate") - private JsonNullable endDate; - - /** - * Value of the payment link, if not informed, the payer can inform how much they want to pay - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Determines whether the payments link is active - */ - @JsonProperty("active") - private JsonNullable active; - - /** - * Allowed payment method - */ - @JsonProperty("billingType") - private JsonNullable billingType; - - /** - * Charge type - */ - @JsonProperty("chargeType") - private JsonNullable chargeType; - - /** - * Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) - */ - @JsonProperty("dueDateLimitDays") - private JsonNullable dueDateLimitDays; - - /** - * Billing frequency, if the chargeType is RECURRENT - */ - @JsonProperty("subscriptionCycle") - private JsonNullable subscriptionCycle; - - /** - * Maximum number of installments that your customer can pay in installments for the payment link if the billing method selected is Installments. If not informed, the default value will be 1 installment - */ - @JsonProperty("maxInstallmentCount") - private JsonNullable maxInstallmentCount; - - /** - * Free search field. - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Defines whether customers registered via the payments link will have notifications enabled. If not informed, the default value will be true - */ - @JsonProperty("notificationEnabled") - private JsonNullable notificationEnabled; - - @JsonProperty("callback") - private JsonNullable callback; - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getEndDate() { - return endDate.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Boolean getActive() { - return active.orElse(null); - } - - @JsonIgnore - public ApiPaymentCampaignUpdateRequestBillingType getBillingType() { - return billingType.orElse(null); - } - - @JsonIgnore - public ApiPaymentCampaignUpdateRequestChargeType getChargeType() { - return chargeType.orElse(null); - } - - @JsonIgnore - public Long getDueDateLimitDays() { - return dueDateLimitDays.orElse(null); - } - - @JsonIgnore - public ApiPaymentCampaignUpdateRequestCycle getSubscriptionCycle() { - return subscriptionCycle.orElse(null); - } - - @JsonIgnore - public Long getMaxInstallmentCount() { - return maxInstallmentCount.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public Boolean getNotificationEnabled() { - return notificationEnabled.orElse(null); - } - - @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { - return callback.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCampaignUpdateRequestDtoBuilder { - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiPaymentCampaignUpdateRequestDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentCampaignUpdateRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable endDate = JsonNullable.undefined(); - - @JsonProperty("endDate") - public ApiPaymentCampaignUpdateRequestDtoBuilder endDate(String value) { - this.endDate = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentCampaignUpdateRequestDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable active = JsonNullable.undefined(); - - @JsonProperty("active") - public ApiPaymentCampaignUpdateRequestDtoBuilder active(Boolean value) { - this.active = JsonNullable.of(value); - return this; - } - - private JsonNullable billingType = JsonNullable.undefined(); - - @JsonProperty("billingType") - public ApiPaymentCampaignUpdateRequestDtoBuilder billingType(ApiPaymentCampaignUpdateRequestBillingType value) { - this.billingType = JsonNullable.of(value); - return this; - } - - private JsonNullable chargeType = JsonNullable.undefined(); - - @JsonProperty("chargeType") - public ApiPaymentCampaignUpdateRequestDtoBuilder chargeType(ApiPaymentCampaignUpdateRequestChargeType value) { - this.chargeType = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDateLimitDays = JsonNullable.undefined(); - - @JsonProperty("dueDateLimitDays") - public ApiPaymentCampaignUpdateRequestDtoBuilder dueDateLimitDays(Long value) { - this.dueDateLimitDays = JsonNullable.of(value); - return this; - } - - private JsonNullable subscriptionCycle = JsonNullable.undefined(); - - @JsonProperty("subscriptionCycle") - public ApiPaymentCampaignUpdateRequestDtoBuilder subscriptionCycle(ApiPaymentCampaignUpdateRequestCycle value) { - this.subscriptionCycle = JsonNullable.of(value); - return this; - } - - private JsonNullable maxInstallmentCount = JsonNullable.of(1L); - - @JsonProperty("maxInstallmentCount") - public ApiPaymentCampaignUpdateRequestDtoBuilder maxInstallmentCount(Long value) { - this.maxInstallmentCount = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPaymentCampaignUpdateRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable notificationEnabled = JsonNullable.of(true); - - @JsonProperty("notificationEnabled") - public ApiPaymentCampaignUpdateRequestDtoBuilder notificationEnabled(Boolean value) { - this.notificationEnabled = JsonNullable.of(value); - return this; - } - - private JsonNullable callback = JsonNullable.undefined(); - - @JsonProperty("callback") - public ApiPaymentCampaignUpdateRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - this.callback = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackDisputeStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackDisputeStatus.java deleted file mode 100644 index 01a2e3d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackDisputeStatus.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Chargeback dispute status. - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentChargebackResponseChargebackDisputeStatus { - REQUESTED("REQUESTED"), - ACCEPTED("ACCEPTED"), - REJECTED("REJECTED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentChargebackResponseChargebackDisputeStatus fromValue(String value) { - return Arrays.stream(ApiPaymentChargebackResponseChargebackDisputeStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackReason.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackReason.java deleted file mode 100644 index 2775a9e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackReason.java +++ /dev/null @@ -1,60 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Chargeback reason - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentChargebackResponseChargebackReason { - ABSENCE_OF_PRINT("ABSENCE_OF_PRINT"), - ABSENT_CARD_FRAUD("ABSENT_CARD_FRAUD"), - CARD_ACTIVATED_PHONE_TRANSACTION("CARD_ACTIVATED_PHONE_TRANSACTION"), - CARD_FRAUD("CARD_FRAUD"), - CARD_RECOVERY_BULLETIN("CARD_RECOVERY_BULLETIN"), - COMMERCIAL_DISAGREEMENT("COMMERCIAL_DISAGREEMENT"), - COPY_NOT_RECEIVED("COPY_NOT_RECEIVED"), - CREDIT_OR_DEBIT_PRESENTATION_ERROR("CREDIT_OR_DEBIT_PRESENTATION_ERROR"), - DIFFERENT_PAY_METHOD("DIFFERENT_PAY_METHOD"), - FRAUD("FRAUD"), - INCORRECT_TRANSACTION_VALUE("INCORRECT_TRANSACTION_VALUE"), - INVALID_CURRENCY("INVALID_CURRENCY"), - INVALID_DATA("INVALID_DATA"), - LATE_PRESENTATION("LATE_PRESENTATION"), - LOCAL_REGULATORY_OR_LEGAL_DISPUTE("LOCAL_REGULATORY_OR_LEGAL_DISPUTE"), - MULTIPLE_ROCS("MULTIPLE_ROCS"), - ORIGINAL_CREDIT_TRANSACTION_NOT_ACCEPTED("ORIGINAL_CREDIT_TRANSACTION_NOT_ACCEPTED"), - OTHER_ABSENT_CARD_FRAUD("OTHER_ABSENT_CARD_FRAUD"), - PROCESS_ERROR("PROCESS_ERROR"), - RECEIVED_COPY_ILLEGIBLE_OR_INCOMPLETE("RECEIVED_COPY_ILLEGIBLE_OR_INCOMPLETE"), - RECURRENCE_CANCELED("RECURRENCE_CANCELED"), - REQUIRED_AUTHORIZATION_NOT_GRANTED("REQUIRED_AUTHORIZATION_NOT_GRANTED"), - RIGHT_OF_FULL_RECOURSE_FOR_FRAUD("RIGHT_OF_FULL_RECOURSE_FOR_FRAUD"), - SALE_CANCELED("SALE_CANCELED"), - SERVICE_DISAGREEMENT_OR_DEFECTIVE_PRODUCT("SERVICE_DISAGREEMENT_OR_DEFECTIVE_PRODUCT"), - SERVICE_NOT_RECEIVED("SERVICE_NOT_RECEIVED"), - SPLIT_SALE("SPLIT_SALE"), - TRANSFERS_OF_DIVERSE_RESPONSIBILITIES("TRANSFERS_OF_DIVERSE_RESPONSIBILITIES"), - UNQUALIFIED_CAR_RENTAL_DEBIT("UNQUALIFIED_CAR_RENTAL_DEBIT"), - USA_CARDHOLDER_DISPUTE("USA_CARDHOLDER_DISPUTE"), - VISA_FRAUD_MONITORING_PROGRAM("VISA_FRAUD_MONITORING_PROGRAM"), - WARNING_BULLETIN_FILE("WARNING_BULLETIN_FILE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentChargebackResponseChargebackReason fromValue(String value) { - return Arrays.stream(ApiPaymentChargebackResponseChargebackReason.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackStatus.java deleted file mode 100644 index 6eed619..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackStatus.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Chargeback status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentChargebackResponseChargebackStatus { - REQUESTED("REQUESTED"), - IN_DISPUTE("IN_DISPUTE"), - DISPUTE_LOST("DISPUTE_LOST"), - REVERSED("REVERSED"), - DONE("DONE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentChargebackResponseChargebackStatus fromValue(String value) { - return Arrays.stream(ApiPaymentChargebackResponseChargebackStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseDto.java deleted file mode 100644 index 6711da4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseDto.java +++ /dev/null @@ -1,253 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentChargebackResponseDto { - - /** - * Unique chargeback identifier. - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Unique payment identifier in Asaas - */ - @JsonProperty("payment") - private JsonNullable payment; - - /** - * Unique installment identifier in Asaas - */ - @JsonProperty("installment") - private JsonNullable installment; - - /** - * Unique identifier of customer to which the chargeback is linked. - */ - @JsonProperty("customerAccount") - private JsonNullable customerAccount; - - /** - * Chargeback status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Chargeback reason - */ - @JsonProperty("reason") - private JsonNullable reason; - - /** - * Chargeback opening date. - */ - @JsonProperty("disputeStartDate") - private JsonNullable disputeStartDate; - - /** - * Chargeback value. - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Payment date on Asaas - */ - @JsonProperty("paymentDate") - private JsonNullable paymentDate; - - @JsonProperty("creditCard") - private JsonNullable creditCard; - - /** - * Chargeback dispute status. - */ - @JsonProperty("disputeStatus") - private JsonNullable disputeStatus; - - /** - * Deadline to send dispute documents. - */ - @JsonProperty("deadlineToSendDisputeDocuments") - private JsonNullable deadlineToSendDisputeDocuments; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public String getInstallment() { - return installment.orElse(null); - } - - @JsonIgnore - public String getCustomerAccount() { - return customerAccount.orElse(null); - } - - @JsonIgnore - public ApiPaymentChargebackResponseChargebackStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiPaymentChargebackResponseChargebackReason getReason() { - return reason.orElse(null); - } - - @JsonIgnore - public String getDisputeStartDate() { - return disputeStartDate.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getPaymentDate() { - return paymentDate.orElse(null); - } - - @JsonIgnore - public ApiChargebackCreditCardResponseDto getCreditCard() { - return creditCard.orElse(null); - } - - @JsonIgnore - public ApiPaymentChargebackResponseChargebackDisputeStatus getDisputeStatus() { - return disputeStatus.orElse(null); - } - - @JsonIgnore - public String getDeadlineToSendDisputeDocuments() { - return deadlineToSendDisputeDocuments.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentChargebackResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentChargebackResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiPaymentChargebackResponseDtoBuilder payment(String value) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiPaymentChargebackResponseDtoBuilder installment(String value) { - this.installment = JsonNullable.of(value); - return this; - } - - private JsonNullable customerAccount = JsonNullable.undefined(); - - @JsonProperty("customerAccount") - public ApiPaymentChargebackResponseDtoBuilder customerAccount(String value) { - this.customerAccount = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentChargebackResponseDtoBuilder status(ApiPaymentChargebackResponseChargebackStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable reason = JsonNullable.undefined(); - - @JsonProperty("reason") - public ApiPaymentChargebackResponseDtoBuilder reason(ApiPaymentChargebackResponseChargebackReason value) { - this.reason = JsonNullable.of(value); - return this; - } - - private JsonNullable disputeStartDate = JsonNullable.undefined(); - - @JsonProperty("disputeStartDate") - public ApiPaymentChargebackResponseDtoBuilder disputeStartDate(String value) { - this.disputeStartDate = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentChargebackResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentDate = JsonNullable.undefined(); - - @JsonProperty("paymentDate") - public ApiPaymentChargebackResponseDtoBuilder paymentDate(String value) { - this.paymentDate = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCard = JsonNullable.undefined(); - - @JsonProperty("creditCard") - public ApiPaymentChargebackResponseDtoBuilder creditCard(ApiChargebackCreditCardResponseDto value) { - this.creditCard = JsonNullable.of(value); - return this; - } - - private JsonNullable disputeStatus = JsonNullable.undefined(); - - @JsonProperty("disputeStatus") - public ApiPaymentChargebackResponseDtoBuilder disputeStatus( - ApiPaymentChargebackResponseChargebackDisputeStatus value - ) { - this.disputeStatus = JsonNullable.of(value); - return this; - } - - private JsonNullable deadlineToSendDisputeDocuments = JsonNullable.undefined(); - - @JsonProperty("deadlineToSendDisputeDocuments") - public ApiPaymentChargebackResponseDtoBuilder deadlineToSendDisputeDocuments(String value) { - this.deadlineToSendDisputeDocuments = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.java deleted file mode 100644 index 50fbff3..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Invoice personalization status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus { - AWAITING_APPROVAL("AWAITING_APPROVAL"), - APPROVED("APPROVED"), - REJECTED("REJECTED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus fromValue(String value) { - return Arrays.stream(ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseDto.java deleted file mode 100644 index 93b61bf..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseDto.java +++ /dev/null @@ -1,181 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCheckoutConfigGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Logo background color - */ - @JsonProperty("logoBackgroundColor") - private JsonNullable logoBackgroundColor; - - /** - * Background color of your information - */ - @JsonProperty("infoBackgroundColor") - private JsonNullable infoBackgroundColor; - - /** - * Font color of your information - */ - @JsonProperty("fontColor") - private JsonNullable fontColor; - - /** - * Indicates whether personalization is enabled - */ - @JsonProperty("enabled") - private JsonNullable enabled; - - /** - * Logo download link - */ - @JsonProperty("logoUrl") - private JsonNullable logoUrl; - - /** - * Invoice personalization analysis notes - */ - @JsonProperty("observations") - private JsonNullable observations; - - /** - * Invoice personalization status - */ - @JsonProperty("status") - private JsonNullable status; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getLogoBackgroundColor() { - return logoBackgroundColor.orElse(null); - } - - @JsonIgnore - public String getInfoBackgroundColor() { - return infoBackgroundColor.orElse(null); - } - - @JsonIgnore - public String getFontColor() { - return fontColor.orElse(null); - } - - @JsonIgnore - public Boolean getEnabled() { - return enabled.orElse(null); - } - - @JsonIgnore - public String getLogoUrl() { - return logoUrl.orElse(null); - } - - @JsonIgnore - public String getObservations() { - return observations.orElse(null); - } - - @JsonIgnore - public ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus getStatus() { - return status.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCheckoutConfigGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable logoBackgroundColor = JsonNullable.undefined(); - - @JsonProperty("logoBackgroundColor") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder logoBackgroundColor(String value) { - this.logoBackgroundColor = JsonNullable.of(value); - return this; - } - - private JsonNullable infoBackgroundColor = JsonNullable.undefined(); - - @JsonProperty("infoBackgroundColor") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder infoBackgroundColor(String value) { - this.infoBackgroundColor = JsonNullable.of(value); - return this; - } - - private JsonNullable fontColor = JsonNullable.undefined(); - - @JsonProperty("fontColor") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder fontColor(String value) { - this.fontColor = JsonNullable.of(value); - return this; - } - - private JsonNullable enabled = JsonNullable.of(true); - - @JsonProperty("enabled") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder enabled(Boolean value) { - this.enabled = JsonNullable.of(value); - return this; - } - - private JsonNullable logoUrl = JsonNullable.undefined(); - - @JsonProperty("logoUrl") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder logoUrl(String value) { - this.logoUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable observations = JsonNullable.undefined(); - - @JsonProperty("observations") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder observations(String value) { - this.observations = JsonNullable.of(value); - return this; - } - - private JsonNullable status = - JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder status( - ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus value - ) { - 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 deleted file mode 100644 index bc37016..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigSaveRequestDto.java +++ /dev/null @@ -1,86 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCheckoutConfigSaveRequestDto { - - /** - * Logo background color - */ - @NonNull - private String logoBackgroundColor; - - /** - * Background color of your information - */ - @NonNull - private String infoBackgroundColor; - - /** - * Font color of your information - */ - @NonNull - private String fontColor; - - /** - * Indicates whether personalization is enabled - */ - @JsonProperty("enabled") - private JsonNullable enabled; - - /** - * File - */ - @JsonProperty("logoFile") - private JsonNullable logoFile; - - @JsonIgnore - public Boolean getEnabled() { - return enabled.orElse(null); - } - - @JsonIgnore - public byte[] getLogoFile() { - return logoFile.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCheckoutConfigSaveRequestDtoBuilder { - - private JsonNullable enabled = JsonNullable.undefined(); - - @JsonProperty("enabled") - public ApiPaymentCheckoutConfigSaveRequestDtoBuilder enabled(Boolean value) { - this.enabled = JsonNullable.of(value); - return this; - } - - private JsonNullable logoFile = JsonNullable.undefined(); - - @JsonProperty("logoFile") - public ApiPaymentCheckoutConfigSaveRequestDtoBuilder logoFile(byte[] value) { - if (value == null) { - throw new IllegalStateException("logoFile cannot be null"); - } - this.logoFile = 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 deleted file mode 100644 index 6e47a53..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponseDto.java +++ /dev/null @@ -1,124 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentCustodyGetResponseDto { - - /** - * Unique payment escrow identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Payment escrow status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Payment escrow expiration date - */ - @JsonProperty("expirationDate") - private JsonNullable expirationDate; - - /** - * Payment escrow finish date - */ - @JsonProperty("finishDate") - private JsonNullable finishDate; - - /** - * Payment escrow finish reason - */ - @JsonProperty("finishReason") - private JsonNullable finishReason; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public ApiPaymentCustodyGetResponsePaymentCustodyStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getExpirationDate() { - return expirationDate.orElse(null); - } - - @JsonIgnore - public String getFinishDate() { - return finishDate.orElse(null); - } - - @JsonIgnore - public ApiPaymentCustodyGetResponsePaymentCustodyFinishReason getFinishReason() { - return finishReason.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentCustodyGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentCustodyGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentCustodyGetResponseDtoBuilder status(ApiPaymentCustodyGetResponsePaymentCustodyStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable expirationDate = JsonNullable.undefined(); - - @JsonProperty("expirationDate") - public ApiPaymentCustodyGetResponseDtoBuilder expirationDate(String value) { - this.expirationDate = JsonNullable.of(value); - return this; - } - - private JsonNullable finishDate = JsonNullable.undefined(); - - @JsonProperty("finishDate") - public ApiPaymentCustodyGetResponseDtoBuilder finishDate(String value) { - this.finishDate = JsonNullable.of(value); - return this; - } - - private JsonNullable finishReason = - JsonNullable.undefined(); - - @JsonProperty("finishReason") - public ApiPaymentCustodyGetResponseDtoBuilder finishReason( - ApiPaymentCustodyGetResponsePaymentCustodyFinishReason value - ) { - this.finishReason = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.java deleted file mode 100644 index fe366b1..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment escrow finish reason - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCustodyGetResponsePaymentCustodyFinishReason { - CHARGEBACK("CHARGEBACK"), - EXPIRED("EXPIRED"), - INSUFFICIENT_BALANCE("INSUFFICIENT_BALANCE"), - PAYMENT_REFUNDED("PAYMENT_REFUNDED"), - REQUESTED_BY_CUSTOMER("REQUESTED_BY_CUSTOMER"), - CUSTOMER_CONFIG_DISABLED("CUSTOMER_CONFIG_DISABLED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCustodyGetResponsePaymentCustodyFinishReason fromValue(String value) { - return Arrays.stream(ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.java deleted file mode 100644 index ffd123a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment escrow status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentCustodyGetResponsePaymentCustodyStatus { - ACTIVE("ACTIVE"), - DONE("DONE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentCustodyGetResponsePaymentCustodyStatus fromValue(String value) { - return Arrays.stream(ApiPaymentCustodyGetResponsePaymentCustodyStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDeleteResponseDto.java deleted file mode 100644 index 61a2f86..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDeleteResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDeleteResponseDto { - - /** - * Indicates whether the charge has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Unique payment identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDeleteResponseDtoBuilder { - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiPaymentDeleteResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentDeleteResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDiscountType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDiscountType.java deleted file mode 100644 index 3850a2c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDiscountType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Discount type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDiscountDiscountType { - FIXED("FIXED"), - PERCENTAGE("PERCENTAGE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDiscountDiscountType fromValue(String value) { - return Arrays.stream(ApiPaymentDiscountDiscountType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDto.java deleted file mode 100644 index 0ef3d22..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDiscountDto { - - /** - * Percentage or fixed amount of discount to be applied to the Payment amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Days before expiration to apply discount. Ex: 0 = until expiration, 1 = up to one day before, 2 = up to 2 days before, and so on - */ - @JsonProperty("dueDateLimitDays") - private JsonNullable dueDateLimitDays; - - /** - * Discount type - */ - @JsonProperty("type") - private JsonNullable type; - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Long getDueDateLimitDays() { - return dueDateLimitDays.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDiscountType getType() { - return type.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDiscountDtoBuilder { - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentDiscountDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDateLimitDays = JsonNullable.undefined(); - - @JsonProperty("dueDateLimitDays") - public ApiPaymentDiscountDtoBuilder dueDateLimitDays(Long value) { - this.dueDateLimitDays = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiPaymentDiscountDtoBuilder type(ApiPaymentDiscountDiscountType value) { - 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 deleted file mode 100644 index 90c6bda..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentDeleteResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDocumentDeleteResponseDto { - - /** - * Indicates whether the file was removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Unique document identifier - */ - @JsonProperty("id") - private JsonNullable id; - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDocumentDeleteResponseDtoBuilder { - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiPaymentDocumentDeleteResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentDocumentDeleteResponseDtoBuilder id(String value) { - 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 deleted file mode 100644 index 717599f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentFileResponseDto.java +++ /dev/null @@ -1,140 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDocumentFileResponseDto { - - /** - * Unique document identifier - */ - @JsonProperty("publicId") - private JsonNullable publicId; - - /** - * Original document name - */ - @JsonProperty("originalName") - private JsonNullable originalName; - - /** - * File size - */ - @JsonProperty("size") - private JsonNullable size; - - /** - * File extension - */ - @JsonProperty("extension") - private JsonNullable extension; - - /** - * Link to download the file preview - */ - @JsonProperty("previewUrl") - private JsonNullable previewUrl; - - /** - * Link to download the file - */ - @JsonProperty("downloadUrl") - private JsonNullable downloadUrl; - - @JsonIgnore - public String getPublicId() { - return publicId.orElse(null); - } - - @JsonIgnore - public String getOriginalName() { - return originalName.orElse(null); - } - - @JsonIgnore - public Long getSize() { - return size.orElse(null); - } - - @JsonIgnore - public String getExtension() { - return extension.orElse(null); - } - - @JsonIgnore - public String getPreviewUrl() { - return previewUrl.orElse(null); - } - - @JsonIgnore - public String getDownloadUrl() { - return downloadUrl.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDocumentFileResponseDtoBuilder { - - private JsonNullable publicId = JsonNullable.undefined(); - - @JsonProperty("publicId") - public ApiPaymentDocumentFileResponseDtoBuilder publicId(String value) { - this.publicId = JsonNullable.of(value); - return this; - } - - private JsonNullable originalName = JsonNullable.undefined(); - - @JsonProperty("originalName") - public ApiPaymentDocumentFileResponseDtoBuilder originalName(String value) { - this.originalName = JsonNullable.of(value); - return this; - } - - private JsonNullable size = JsonNullable.undefined(); - - @JsonProperty("size") - public ApiPaymentDocumentFileResponseDtoBuilder size(Long value) { - this.size = JsonNullable.of(value); - return this; - } - - private JsonNullable extension = JsonNullable.undefined(); - - @JsonProperty("extension") - public ApiPaymentDocumentFileResponseDtoBuilder extension(String value) { - this.extension = JsonNullable.of(value); - return this; - } - - private JsonNullable previewUrl = JsonNullable.undefined(); - - @JsonProperty("previewUrl") - public ApiPaymentDocumentFileResponseDtoBuilder previewUrl(String value) { - this.previewUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable downloadUrl = JsonNullable.undefined(); - - @JsonProperty("downloadUrl") - public ApiPaymentDocumentFileResponseDtoBuilder downloadUrl(String value) { - 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 deleted file mode 100644 index eff47ae..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponseDto.java +++ /dev/null @@ -1,156 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDocumentGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique document identifier - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Document name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Document type - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Available only after payment - */ - @JsonProperty("availableAfterPayment") - private JsonNullable availableAfterPayment; - - @JsonProperty("file") - private JsonNullable file; - - /** - * Indicates whether the file was removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public ApiPaymentDocumentGetResponsePaymentDocumentType getType() { - return type.orElse(null); - } - - @JsonIgnore - public Boolean getAvailableAfterPayment() { - return availableAfterPayment.orElse(null); - } - - @JsonIgnore - public ApiPaymentDocumentFileResponseDto getFile() { - return file.orElse(null); - } - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDocumentGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentDocumentGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentDocumentGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiPaymentDocumentGetResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiPaymentDocumentGetResponseDtoBuilder type(ApiPaymentDocumentGetResponsePaymentDocumentType value) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable availableAfterPayment = JsonNullable.undefined(); - - @JsonProperty("availableAfterPayment") - public ApiPaymentDocumentGetResponseDtoBuilder availableAfterPayment(Boolean value) { - this.availableAfterPayment = JsonNullable.of(value); - return this; - } - - private JsonNullable file = JsonNullable.undefined(); - - @JsonProperty("file") - public ApiPaymentDocumentGetResponseDtoBuilder file(ApiPaymentDocumentFileResponseDto value) { - this.file = JsonNullable.of(value); - return this; - } - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiPaymentDocumentGetResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponsePaymentDocumentType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponsePaymentDocumentType.java deleted file mode 100644 index dc7576a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponsePaymentDocumentType.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Document type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDocumentGetResponsePaymentDocumentType { - INVOICE("INVOICE"), - CONTRACT("CONTRACT"), - MEDIA("MEDIA"), - DOCUMENT("DOCUMENT"), - SPREADSHEET("SPREADSHEET"), - PROGRAM("PROGRAM"), - OTHER("OTHER"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDocumentGetResponsePaymentDocumentType fromValue(String value) { - return Arrays.stream(ApiPaymentDocumentGetResponsePaymentDocumentType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentListResponseDto.java deleted file mode 100644 index 6bb25dc..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDocumentListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDocumentListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentDocumentListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPaymentDocumentListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPaymentDocumentListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentDocumentListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPaymentDocumentListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPaymentDocumentListResponseDtoBuilder data(List value) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestDto.java deleted file mode 100644 index 5bc2236..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestDto.java +++ /dev/null @@ -1,38 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDocumentSaveRequestDto { - - /** - * true to make the file available only after receipt of the payment - */ - @NonNull - private Boolean availableAfterPayment; - - /** - * Document type - */ - @NonNull - private ApiPaymentDocumentSaveRequestPaymentDocumentType type; - - /** - * File - */ - @NonNull - private byte[] file; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.java deleted file mode 100644 index 7009cc8..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Document type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDocumentSaveRequestPaymentDocumentType { - INVOICE("INVOICE"), - CONTRACT("CONTRACT"), - MEDIA("MEDIA"), - DOCUMENT("DOCUMENT"), - SPREADSHEET("SPREADSHEET"), - PROGRAM("PROGRAM"), - OTHER("OTHER"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDocumentSaveRequestPaymentDocumentType fromValue(String value) { - return Arrays.stream(ApiPaymentDocumentSaveRequestPaymentDocumentType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestDto.java deleted file mode 100644 index 7c8273e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestDto.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDocumentUpdateRequestDto { - - /** - * true to make the file available only after receipt of the payment - */ - @NonNull - private Boolean availableAfterPayment; - - /** - * Document type - */ - @NonNull - private ApiPaymentDocumentUpdateRequestPaymentDocumentType type; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.java deleted file mode 100644 index e3f991e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Document type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDocumentUpdateRequestPaymentDocumentType { - INVOICE("INVOICE"), - CONTRACT("CONTRACT"), - MEDIA("MEDIA"), - DOCUMENT("DOCUMENT"), - SPREADSHEET("SPREADSHEET"), - PROGRAM("PROGRAM"), - OTHER("OTHER"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDocumentUpdateRequestPaymentDocumentType fromValue(String value) { - return Arrays.stream(ApiPaymentDocumentUpdateRequestPaymentDocumentType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponseDto.java deleted file mode 100644 index 25afc72..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponseDto.java +++ /dev/null @@ -1,330 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningCancelResponseDto { - - /** - * Unique identifier of the payment dunning in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Payment dunning number - */ - @JsonProperty("dunningNumber") - private JsonNullable dunningNumber; - - /** - * Payment dunning status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Type of payment dunning - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Unique identifier of the payment to be recovered in Asaas - */ - @JsonProperty("payment") - private JsonNullable payment; - - /** - * Request date - */ - @JsonProperty("requestDate") - private JsonNullable requestDate; - - /** - * Description of the payment dunning - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Payment amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Cost and/or payment dunning fee - */ - @JsonProperty("feeValue") - private JsonNullable feeValue; - - /** - * Net amount to be recovered - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Cash receipt fee - */ - @JsonProperty("receivedInCashFeeValue") - private JsonNullable receivedInCashFeeValue; - - /** - * Reason for denial of payment dunning - */ - @JsonProperty("denialReason") - private JsonNullable denialReason; - - /** - * Fee charged in case of cancellation - */ - @JsonProperty("cancellationFeeValue") - private JsonNullable cancellationFeeValue; - - /** - * Whether the payment dunning can be canceled - */ - @JsonProperty("canBeCancelled") - private JsonNullable canBeCancelled; - - /** - * Reason for not being able to request cancellation - */ - @JsonProperty("cannotBeCancelledReason") - private JsonNullable cannotBeCancelledReason; - - /** - * Determine whether documentation needs to be resubmitted - */ - @JsonProperty("isNecessaryResendDocumentation") - private JsonNullable isNecessaryResendDocumentation; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public Long getDunningNumber() { - return dunningNumber.orElse(null); - } - - @JsonIgnore - public ApiPaymentDunningCancelResponsePaymentDunningStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiPaymentDunningCancelResponsePaymentDunningType getType() { - return type.orElse(null); - } - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public String getRequestDate() { - return requestDate.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getFeeValue() { - return feeValue.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getReceivedInCashFeeValue() { - return receivedInCashFeeValue.orElse(null); - } - - @JsonIgnore - public String getDenialReason() { - return denialReason.orElse(null); - } - - @JsonIgnore - public Double getCancellationFeeValue() { - return cancellationFeeValue.orElse(null); - } - - @JsonIgnore - public Boolean getCanBeCancelled() { - return canBeCancelled.orElse(null); - } - - @JsonIgnore - public String getCannotBeCancelledReason() { - return cannotBeCancelledReason.orElse(null); - } - - @JsonIgnore - public Boolean getIsNecessaryResendDocumentation() { - return isNecessaryResendDocumentation.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningCancelResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentDunningCancelResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable dunningNumber = JsonNullable.undefined(); - - @JsonProperty("dunningNumber") - public ApiPaymentDunningCancelResponseDtoBuilder dunningNumber(Long value) { - this.dunningNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentDunningCancelResponseDtoBuilder status(ApiPaymentDunningCancelResponsePaymentDunningStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiPaymentDunningCancelResponseDtoBuilder type(ApiPaymentDunningCancelResponsePaymentDunningType value) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiPaymentDunningCancelResponseDtoBuilder payment(String value) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable requestDate = JsonNullable.undefined(); - - @JsonProperty("requestDate") - public ApiPaymentDunningCancelResponseDtoBuilder requestDate(String value) { - this.requestDate = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentDunningCancelResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentDunningCancelResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable feeValue = JsonNullable.undefined(); - - @JsonProperty("feeValue") - public ApiPaymentDunningCancelResponseDtoBuilder feeValue(Double value) { - this.feeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiPaymentDunningCancelResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable receivedInCashFeeValue = JsonNullable.undefined(); - - @JsonProperty("receivedInCashFeeValue") - public ApiPaymentDunningCancelResponseDtoBuilder receivedInCashFeeValue(Double value) { - this.receivedInCashFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable denialReason = JsonNullable.undefined(); - - @JsonProperty("denialReason") - public ApiPaymentDunningCancelResponseDtoBuilder denialReason(String value) { - this.denialReason = JsonNullable.of(value); - return this; - } - - private JsonNullable cancellationFeeValue = JsonNullable.undefined(); - - @JsonProperty("cancellationFeeValue") - public ApiPaymentDunningCancelResponseDtoBuilder cancellationFeeValue(Double value) { - this.cancellationFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable canBeCancelled = JsonNullable.of(true); - - @JsonProperty("canBeCancelled") - public ApiPaymentDunningCancelResponseDtoBuilder canBeCancelled(Boolean value) { - this.canBeCancelled = JsonNullable.of(value); - return this; - } - - private JsonNullable cannotBeCancelledReason = JsonNullable.undefined(); - - @JsonProperty("cannotBeCancelledReason") - public ApiPaymentDunningCancelResponseDtoBuilder cannotBeCancelledReason(String value) { - this.cannotBeCancelledReason = JsonNullable.of(value); - return this; - } - - private JsonNullable isNecessaryResendDocumentation = JsonNullable.undefined(); - - @JsonProperty("isNecessaryResendDocumentation") - public ApiPaymentDunningCancelResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { - this.isNecessaryResendDocumentation = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.java deleted file mode 100644 index b5d7586..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.java +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment dunning status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningCancelResponsePaymentDunningStatus { - PENDING("PENDING"), - AWAITING_APPROVAL("AWAITING_APPROVAL"), - AWAITING_CANCELLATION("AWAITING_CANCELLATION"), - PROCESSED("PROCESSED"), - PAID("PAID"), - PARTIALLY_PAID("PARTIALLY_PAID"), - DENIED("DENIED"), - CANCELLED("CANCELLED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningCancelResponsePaymentDunningStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningCancelResponsePaymentDunningStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningType.java deleted file mode 100644 index 9212e91..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningType.java +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of payment dunning - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningCancelResponsePaymentDunningType { - CREDIT_BUREAU("CREDIT_BUREAU"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningCancelResponsePaymentDunningType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningCancelResponsePaymentDunningType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataDto.java deleted file mode 100644 index 4200057..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataDto.java +++ /dev/null @@ -1,86 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningListHistoryResponseDataDto { - - /** - * Negotiation status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Description of the event - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Date the event occurred - */ - @JsonProperty("eventDate") - private JsonNullable eventDate; - - @JsonIgnore - public ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getEventDate() { - return eventDate.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningListHistoryResponseDataDtoBuilder { - - private JsonNullable status = - JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentDunningListHistoryResponseDataDtoBuilder status( - ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentDunningListHistoryResponseDataDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable eventDate = JsonNullable.undefined(); - - @JsonProperty("eventDate") - public ApiPaymentDunningListHistoryResponseDataDtoBuilder eventDate(String value) { - this.eventDate = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java deleted file mode 100644 index 52271ff..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Negotiation status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus { - IN_NEGOTIATION("IN_NEGOTIATION"), - NEGOTIATION_FAIL("NEGOTIATION_FAIL"), - NEGOTIATED("NEGOTIATED"), - PAID("PAID"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDto.java deleted file mode 100644 index 9827bb4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDto.java +++ /dev/null @@ -1,143 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningListHistoryResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningListHistoryResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentDunningListHistoryResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPaymentDunningListHistoryResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPaymentDunningListHistoryResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentDunningListHistoryResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPaymentDunningListHistoryResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPaymentDunningListHistoryResponseDtoBuilder data( - List value - ) { - 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 deleted file mode 100644 index 1fe31b8..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningListPartialPaymentsResponseDataDto { - - /** - * Amount paid - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Payment Description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Pay day - */ - @JsonProperty("paymentDate") - private JsonNullable paymentDate; - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getPaymentDate() { - return paymentDate.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder { - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentDate = JsonNullable.undefined(); - - @JsonProperty("paymentDate") - public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder paymentDate(String value) { - 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 deleted file mode 100644 index 2231b17..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDto.java +++ /dev/null @@ -1,143 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningListPartialPaymentsResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningListPartialPaymentsResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPaymentDunningListPartialPaymentsResponseDtoBuilder data( - List value - ) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningStatus.java deleted file mode 100644 index 2941457..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningStatus.java +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by payment dunning status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningListRequestPaymentDunningStatus { - PENDING("PENDING"), - AWAITING_APPROVAL("AWAITING_APPROVAL"), - AWAITING_CANCELLATION("AWAITING_CANCELLATION"), - PROCESSED("PROCESSED"), - PAID("PAID"), - PARTIALLY_PAID("PARTIALLY_PAID"), - DENIED("DENIED"), - CANCELLED("CANCELLED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningListRequestPaymentDunningStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningListRequestPaymentDunningStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningType.java deleted file mode 100644 index 4afc21a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by type of payment dunning - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningListRequestPaymentDunningType { - CREDIT_BUREAU("CREDIT_BUREAU"), - DEBT_RECOVERY_ASSISTANCE("DEBT_RECOVERY_ASSISTANCE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningListRequestPaymentDunningType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningListRequestPaymentDunningType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListResponseDto.java deleted file mode 100644 index 6cc81e6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentDunningListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPaymentDunningListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPaymentDunningListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentDunningListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPaymentDunningListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPaymentDunningListResponseDtoBuilder data(List value) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java deleted file mode 100644 index ea34a9b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Form of payment - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType { - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - TRANSFER("TRANSFER"), - DEPOSIT("DEPOSIT"), - DEBIT_CARD("DEBIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java deleted file mode 100644 index 16db902..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java +++ /dev/null @@ -1,172 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto { - - /** - * Unique identifier of the payment to be recovered in Asaas - */ - @JsonProperty("payment") - private JsonNullable payment; - - /** - * Unique customer identifier - */ - @JsonProperty("customer") - private JsonNullable customer; - - /** - * Payment amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Billing status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Form of payment - */ - @JsonProperty("billingType") - private JsonNullable billingType; - - /** - * Due date - */ - @JsonProperty("dueDate") - private JsonNullable dueDate; - - /** - * Simulation of denial request for each type of payment dunning available - */ - @JsonProperty("typeSimulations") - private JsonNullable< - List - > typeSimulations; - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public String getCustomer() { - return customer.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType getBillingType() { - return billingType.orElse(null); - } - - @JsonIgnore - public String getDueDate() { - return dueDate.orElse(null); - } - - @JsonIgnore - public List getTypeSimulations() { - return typeSimulations.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder { - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder payment(String value) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable customer = JsonNullable.undefined(); - - @JsonProperty("customer") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder customer(String value) { - this.customer = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable status = - JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder status( - ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable billingType = - JsonNullable.undefined(); - - @JsonProperty("billingType") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder billingType( - ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType value - ) { - this.billingType = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDate = JsonNullable.undefined(); - - @JsonProperty("dueDate") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder dueDate(String value) { - this.dueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable< - List - > typeSimulations = JsonNullable.undefined(); - - @JsonProperty("typeSimulations") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder typeSimulations( - List value - ) { - this.typeSimulations = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java deleted file mode 100644 index 6ab2a6b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus { - PENDING("PENDING"), - RECEIVED("RECEIVED"), - CONFIRMED("CONFIRMED"), - OVERDUE("OVERDUE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java deleted file mode 100644 index ad5015c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java +++ /dev/null @@ -1,152 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto { - - /** - * Type of payment dunning - */ - @JsonProperty("type") - private JsonNullable< - ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType - > type; - - /** - * Whether it is possible to request a payment dunning of this type - */ - @JsonProperty("isAllowed") - private JsonNullable isAllowed; - - /** - * Reason why it is not possible to request a payment dunning for this type - */ - @JsonProperty("notAllowedReason") - private JsonNullable notAllowedReason; - - /** - * Cost and/or payment dunning fee - */ - @JsonProperty("feeValue") - private JsonNullable feeValue; - - /** - * Net amount to be recovered - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Expected start date of the payment dunning - */ - @JsonProperty("startDate") - private JsonNullable startDate; - - @JsonIgnore - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType getType() { - return type.orElse(null); - } - - @JsonIgnore - public Boolean getIsAllowed() { - return isAllowed.orElse(null); - } - - @JsonIgnore - public String getNotAllowedReason() { - return notAllowedReason.orElse(null); - } - - @JsonIgnore - public Double getFeeValue() { - return feeValue.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public String getStartDate() { - return startDate.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder { - - private JsonNullable< - ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType - > type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder type( - ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType value - ) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable isAllowed = JsonNullable.of(true); - - @JsonProperty("isAllowed") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder isAllowed( - Boolean value - ) { - this.isAllowed = JsonNullable.of(value); - return this; - } - - private JsonNullable notAllowedReason = JsonNullable.undefined(); - - @JsonProperty("notAllowedReason") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder notAllowedReason( - String value - ) { - this.notAllowedReason = JsonNullable.of(value); - return this; - } - - private JsonNullable feeValue = JsonNullable.undefined(); - - @JsonProperty("feeValue") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder feeValue(Double value) { - this.feeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable startDate = JsonNullable.undefined(); - - @JsonProperty("startDate") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder startDate( - String value - ) { - this.startDate = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java deleted file mode 100644 index ca5c5af..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of payment dunning - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType { - CREDIT_BUREAU("CREDIT_BUREAU"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType fromValue( - String value - ) { - return Arrays.stream( - ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.values() - ) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.java deleted file mode 100644 index 0665d8e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.java +++ /dev/null @@ -1,144 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningPaymentsAvailableForDunningResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = - JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDtoBuilder data( - List value - ) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsRequestDto.java deleted file mode 100644 index 883807e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsRequestDto.java +++ /dev/null @@ -1,26 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningSaveDocumentsRequestDto { - - /** - * Invoice and/or contract notarized - */ - @NonNull - private byte[] documents; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponseDto.java deleted file mode 100644 index c357950..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponseDto.java +++ /dev/null @@ -1,334 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningSaveDocumentsResponseDto { - - /** - * Unique identifier of the payment dunning in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Payment dunning number - */ - @JsonProperty("dunningNumber") - private JsonNullable dunningNumber; - - /** - * Payment dunning status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Type of payment dunning - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Unique identifier of the payment to be recovered in Asaas - */ - @JsonProperty("payment") - private JsonNullable payment; - - /** - * Request date - */ - @JsonProperty("requestDate") - private JsonNullable requestDate; - - /** - * Description of the payment dunning - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Payment amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Cost and/or payment dunning fee - */ - @JsonProperty("feeValue") - private JsonNullable feeValue; - - /** - * Net amount to be recovered - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Cash receipt fee - */ - @JsonProperty("receivedInCashFeeValue") - private JsonNullable receivedInCashFeeValue; - - /** - * Reason for denial of payment dunning - */ - @JsonProperty("denialReason") - private JsonNullable denialReason; - - /** - * Fee charged in case of cancellation - */ - @JsonProperty("cancellationFeeValue") - private JsonNullable cancellationFeeValue; - - /** - * Whether the payment dunning can be canceled - */ - @JsonProperty("canBeCancelled") - private JsonNullable canBeCancelled; - - /** - * Reason for not being able to request cancellation - */ - @JsonProperty("cannotBeCancelledReason") - private JsonNullable cannotBeCancelledReason; - - /** - * Determine whether documentation needs to be resubmitted - */ - @JsonProperty("isNecessaryResendDocumentation") - private JsonNullable isNecessaryResendDocumentation; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public Long getDunningNumber() { - return dunningNumber.orElse(null); - } - - @JsonIgnore - public ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiPaymentDunningSaveDocumentsResponsePaymentDunningType getType() { - return type.orElse(null); - } - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public String getRequestDate() { - return requestDate.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getFeeValue() { - return feeValue.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getReceivedInCashFeeValue() { - return receivedInCashFeeValue.orElse(null); - } - - @JsonIgnore - public String getDenialReason() { - return denialReason.orElse(null); - } - - @JsonIgnore - public Double getCancellationFeeValue() { - return cancellationFeeValue.orElse(null); - } - - @JsonIgnore - public Boolean getCanBeCancelled() { - return canBeCancelled.orElse(null); - } - - @JsonIgnore - public String getCannotBeCancelledReason() { - return cannotBeCancelledReason.orElse(null); - } - - @JsonIgnore - public Boolean getIsNecessaryResendDocumentation() { - return isNecessaryResendDocumentation.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningSaveDocumentsResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable dunningNumber = JsonNullable.undefined(); - - @JsonProperty("dunningNumber") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder dunningNumber(Long value) { - this.dunningNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder status( - ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder type( - ApiPaymentDunningSaveDocumentsResponsePaymentDunningType value - ) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder payment(String value) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable requestDate = JsonNullable.undefined(); - - @JsonProperty("requestDate") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder requestDate(String value) { - this.requestDate = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable feeValue = JsonNullable.undefined(); - - @JsonProperty("feeValue") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder feeValue(Double value) { - this.feeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable receivedInCashFeeValue = JsonNullable.undefined(); - - @JsonProperty("receivedInCashFeeValue") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder receivedInCashFeeValue(Double value) { - this.receivedInCashFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable denialReason = JsonNullable.undefined(); - - @JsonProperty("denialReason") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder denialReason(String value) { - this.denialReason = JsonNullable.of(value); - return this; - } - - private JsonNullable cancellationFeeValue = JsonNullable.undefined(); - - @JsonProperty("cancellationFeeValue") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder cancellationFeeValue(Double value) { - this.cancellationFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable canBeCancelled = JsonNullable.of(true); - - @JsonProperty("canBeCancelled") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder canBeCancelled(Boolean value) { - this.canBeCancelled = JsonNullable.of(value); - return this; - } - - private JsonNullable cannotBeCancelledReason = JsonNullable.undefined(); - - @JsonProperty("cannotBeCancelledReason") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder cannotBeCancelledReason(String value) { - this.cannotBeCancelledReason = JsonNullable.of(value); - return this; - } - - private JsonNullable isNecessaryResendDocumentation = JsonNullable.undefined(); - - @JsonProperty("isNecessaryResendDocumentation") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { - this.isNecessaryResendDocumentation = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.java deleted file mode 100644 index c5e0357..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.java +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment dunning status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus { - PENDING("PENDING"), - AWAITING_APPROVAL("AWAITING_APPROVAL"), - AWAITING_CANCELLATION("AWAITING_CANCELLATION"), - PROCESSED("PROCESSED"), - PAID("PAID"), - PARTIALLY_PAID("PARTIALLY_PAID"), - DENIED("DENIED"), - CANCELLED("CANCELLED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.java deleted file mode 100644 index da94f35..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.java +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of payment dunning - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningSaveDocumentsResponsePaymentDunningType { - CREDIT_BUREAU("CREDIT_BUREAU"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningSaveDocumentsResponsePaymentDunningType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestDto.java deleted file mode 100644 index cf47ad8..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestDto.java +++ /dev/null @@ -1,157 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningSaveRequestDto { - - /** - * Unique identifier of the payment to be recovered in Asaas - */ - @NonNull - private String payment; - - /** - * Type of payment dunning - */ - @NonNull - private ApiPaymentDunningSaveRequestPaymentDunningType type; - - /** - * Client name - */ - @NonNull - private String customerName; - - /** - * Customer CPF or CNPJ - */ - @NonNull - private String customerCpfCnpj; - - /** - * Customer main telephone number - */ - @NonNull - private String customerPrimaryPhone; - - /** - * Customer address zip code - */ - @NonNull - private String customerPostalCode; - - /** - * Customer public address - */ - @NonNull - private String customerAddress; - - /** - * Customer address number - */ - @NonNull - private String customerAddressNumber; - - /** - * Customer neighborhood - */ - @NonNull - private String customerProvince; - - /** - * Description of the product or service provided - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Secondary customer phone number - */ - @JsonProperty("customerSecondaryPhone") - private JsonNullable customerSecondaryPhone; - - /** - * Customer address complement - */ - @JsonProperty("customerComplement") - private JsonNullable customerComplement; - - /** - * Invoice and/or contract notarized - */ - @JsonProperty("documents") - private JsonNullable documents; - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getCustomerSecondaryPhone() { - return customerSecondaryPhone.orElse(null); - } - - @JsonIgnore - public String getCustomerComplement() { - return customerComplement.orElse(null); - } - - @JsonIgnore - public byte[] getDocuments() { - return documents.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningSaveRequestDtoBuilder { - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentDunningSaveRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable customerSecondaryPhone = JsonNullable.undefined(); - - @JsonProperty("customerSecondaryPhone") - public ApiPaymentDunningSaveRequestDtoBuilder customerSecondaryPhone(String value) { - this.customerSecondaryPhone = JsonNullable.of(value); - return this; - } - - private JsonNullable customerComplement = JsonNullable.undefined(); - - @JsonProperty("customerComplement") - public ApiPaymentDunningSaveRequestDtoBuilder customerComplement(String value) { - this.customerComplement = JsonNullable.of(value); - return this; - } - - private JsonNullable documents = JsonNullable.undefined(); - - @JsonProperty("documents") - public ApiPaymentDunningSaveRequestDtoBuilder documents(byte[] value) { - this.documents = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestPaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestPaymentDunningType.java deleted file mode 100644 index 9a0ed84..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestPaymentDunningType.java +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of payment dunning - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningSaveRequestPaymentDunningType { - CREDIT_BUREAU("CREDIT_BUREAU"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningSaveRequestPaymentDunningType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningSaveRequestPaymentDunningType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponseDto.java deleted file mode 100644 index b9af8ae..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponseDto.java +++ /dev/null @@ -1,330 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningShowResponseDto { - - /** - * Unique identifier of the payment dunning in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Payment dunning number - */ - @JsonProperty("dunningNumber") - private JsonNullable dunningNumber; - - /** - * Payment dunning status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Type of payment dunning - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Request date - */ - @JsonProperty("requestDate") - private JsonNullable requestDate; - - /** - * Description of the payment dunning - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Payment amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Cost and/or payment dunning fee - */ - @JsonProperty("feeValue") - private JsonNullable feeValue; - - /** - * Net amount to be recovered - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Cash receipt fee - */ - @JsonProperty("receivedInCashFeeValue") - private JsonNullable receivedInCashFeeValue; - - /** - * Reason for denial of payment dunning - */ - @JsonProperty("denialReason") - private JsonNullable denialReason; - - /** - * Fee charged in case of cancellation - */ - @JsonProperty("cancellationFeeValue") - private JsonNullable cancellationFeeValue; - - /** - * Whether the payment dunning can be canceled - */ - @JsonProperty("canBeCancelled") - private JsonNullable canBeCancelled; - - /** - * Reason for not being able to request cancellation - */ - @JsonProperty("cannotBeCancelledReason") - private JsonNullable cannotBeCancelledReason; - - /** - * Determine whether documentation needs to be resubmitted - */ - @JsonProperty("isNecessaryResendDocumentation") - private JsonNullable isNecessaryResendDocumentation; - - /** - * Unique identifier of the payment to be recovered in Asaas - */ - @JsonProperty("payment") - private JsonNullable payment; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public Long getDunningNumber() { - return dunningNumber.orElse(null); - } - - @JsonIgnore - public ApiPaymentDunningShowResponsePaymentDunningStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiPaymentDunningShowResponsePaymentDunningType getType() { - return type.orElse(null); - } - - @JsonIgnore - public String getRequestDate() { - return requestDate.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getFeeValue() { - return feeValue.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getReceivedInCashFeeValue() { - return receivedInCashFeeValue.orElse(null); - } - - @JsonIgnore - public String getDenialReason() { - return denialReason.orElse(null); - } - - @JsonIgnore - public Double getCancellationFeeValue() { - return cancellationFeeValue.orElse(null); - } - - @JsonIgnore - public Boolean getCanBeCancelled() { - return canBeCancelled.orElse(null); - } - - @JsonIgnore - public String getCannotBeCancelledReason() { - return cannotBeCancelledReason.orElse(null); - } - - @JsonIgnore - public Boolean getIsNecessaryResendDocumentation() { - return isNecessaryResendDocumentation.orElse(null); - } - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningShowResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentDunningShowResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable dunningNumber = JsonNullable.undefined(); - - @JsonProperty("dunningNumber") - public ApiPaymentDunningShowResponseDtoBuilder dunningNumber(Long value) { - this.dunningNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentDunningShowResponseDtoBuilder status(ApiPaymentDunningShowResponsePaymentDunningStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiPaymentDunningShowResponseDtoBuilder type(ApiPaymentDunningShowResponsePaymentDunningType value) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable requestDate = JsonNullable.undefined(); - - @JsonProperty("requestDate") - public ApiPaymentDunningShowResponseDtoBuilder requestDate(String value) { - this.requestDate = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentDunningShowResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentDunningShowResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable feeValue = JsonNullable.undefined(); - - @JsonProperty("feeValue") - public ApiPaymentDunningShowResponseDtoBuilder feeValue(Double value) { - this.feeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiPaymentDunningShowResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable receivedInCashFeeValue = JsonNullable.undefined(); - - @JsonProperty("receivedInCashFeeValue") - public ApiPaymentDunningShowResponseDtoBuilder receivedInCashFeeValue(Double value) { - this.receivedInCashFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable denialReason = JsonNullable.undefined(); - - @JsonProperty("denialReason") - public ApiPaymentDunningShowResponseDtoBuilder denialReason(String value) { - this.denialReason = JsonNullable.of(value); - return this; - } - - private JsonNullable cancellationFeeValue = JsonNullable.undefined(); - - @JsonProperty("cancellationFeeValue") - public ApiPaymentDunningShowResponseDtoBuilder cancellationFeeValue(Double value) { - this.cancellationFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable canBeCancelled = JsonNullable.of(true); - - @JsonProperty("canBeCancelled") - public ApiPaymentDunningShowResponseDtoBuilder canBeCancelled(Boolean value) { - this.canBeCancelled = JsonNullable.of(value); - return this; - } - - private JsonNullable cannotBeCancelledReason = JsonNullable.undefined(); - - @JsonProperty("cannotBeCancelledReason") - public ApiPaymentDunningShowResponseDtoBuilder cannotBeCancelledReason(String value) { - this.cannotBeCancelledReason = JsonNullable.of(value); - return this; - } - - private JsonNullable isNecessaryResendDocumentation = JsonNullable.undefined(); - - @JsonProperty("isNecessaryResendDocumentation") - public ApiPaymentDunningShowResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { - this.isNecessaryResendDocumentation = JsonNullable.of(value); - return this; - } - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiPaymentDunningShowResponseDtoBuilder payment(String value) { - this.payment = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningStatus.java deleted file mode 100644 index aa429f6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningStatus.java +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment dunning status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningShowResponsePaymentDunningStatus { - PENDING("PENDING"), - AWAITING_APPROVAL("AWAITING_APPROVAL"), - AWAITING_CANCELLATION("AWAITING_CANCELLATION"), - PROCESSED("PROCESSED"), - PAID("PAID"), - PARTIALLY_PAID("PARTIALLY_PAID"), - DENIED("DENIED"), - CANCELLED("CANCELLED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningShowResponsePaymentDunningStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningShowResponsePaymentDunningStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningType.java deleted file mode 100644 index fb9de1e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningType.java +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of payment dunning - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningShowResponsePaymentDunningType { - CREDIT_BUREAU("CREDIT_BUREAU"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningShowResponsePaymentDunningType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningShowResponsePaymentDunningType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseDto.java deleted file mode 100644 index bfdfcf1..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseDto.java +++ /dev/null @@ -1,87 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningSimulateResponseDto { - - /** - * Unique identifier of the payment to be recovered in Asaas - */ - @JsonProperty("payment") - private JsonNullable payment; - - /** - * Payment amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Simulation of denial request for each type of denial available - */ - @JsonProperty("typeSimulations") - private JsonNullable> typeSimulations; - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public List getTypeSimulations() { - return typeSimulations.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningSimulateResponseDtoBuilder { - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiPaymentDunningSimulateResponseDtoBuilder payment(String value) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentDunningSimulateResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable> typeSimulations = - JsonNullable.undefined(); - - @JsonProperty("typeSimulations") - public ApiPaymentDunningSimulateResponseDtoBuilder typeSimulations( - List value - ) { - 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 deleted file mode 100644 index 99e155c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.java +++ /dev/null @@ -1,143 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentDunningSimulateResponseTypeSimulationItemDto { - - /** - * Type of payment dunning - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Whether it is possible to request a payment dunning of this type - */ - @JsonProperty("isAllowed") - private JsonNullable isAllowed; - - /** - * Reason why it is not possible to request a payment dunning for this type - */ - @JsonProperty("notAllowedReason") - private JsonNullable notAllowedReason; - - /** - * Cost and/or payment dunning fee - */ - @JsonProperty("feeValue") - private JsonNullable feeValue; - - /** - * Net amount to be recovered - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Expected start date of the payment dunning - */ - @JsonProperty("startDate") - private JsonNullable startDate; - - @JsonIgnore - public ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType getType() { - return type.orElse(null); - } - - @JsonIgnore - public Boolean getIsAllowed() { - return isAllowed.orElse(null); - } - - @JsonIgnore - public String getNotAllowedReason() { - return notAllowedReason.orElse(null); - } - - @JsonIgnore - public Double getFeeValue() { - return feeValue.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public String getStartDate() { - return startDate.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder { - - private JsonNullable type = - JsonNullable.undefined(); - - @JsonProperty("type") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder type( - ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType value - ) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable isAllowed = JsonNullable.undefined(); - - @JsonProperty("isAllowed") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder isAllowed(Boolean value) { - this.isAllowed = JsonNullable.of(value); - return this; - } - - private JsonNullable notAllowedReason = JsonNullable.undefined(); - - @JsonProperty("notAllowedReason") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder notAllowedReason(String value) { - this.notAllowedReason = JsonNullable.of(value); - return this; - } - - private JsonNullable feeValue = JsonNullable.undefined(); - - @JsonProperty("feeValue") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder feeValue(Double value) { - this.feeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable startDate = JsonNullable.undefined(); - - @JsonProperty("startDate") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder startDate(String value) { - this.startDate = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.java deleted file mode 100644 index bba9019..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.java +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of payment dunning - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType { - CREDIT_BUREAU("CREDIT_BUREAU"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestDto.java deleted file mode 100644 index 9d009fd..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentFineRequestDto { - - /** - * Percentage of fine on the amount of the charge for payment after the due date - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Fine type - */ - @JsonProperty("type") - private JsonNullable type; - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineRequestFineType getType() { - return type.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentFineRequestDtoBuilder { - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentFineRequestDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiPaymentFineRequestDtoBuilder type(ApiPaymentFineRequestFineType value) { - this.type = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestFineType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestFineType.java deleted file mode 100644 index 66386f4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestFineType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Fine type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentFineRequestFineType { - FIXED("FIXED"), - PERCENTAGE("PERCENTAGE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentFineRequestFineType fromValue(String value) { - return Arrays.stream(ApiPaymentFineRequestFineType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentFineResponseDto.java deleted file mode 100644 index f3d77c7..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineResponseDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentFineResponseDto { - - /** - * Fine amount in percentage - */ - @JsonProperty("value") - private JsonNullable value; - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentFineResponseDtoBuilder { - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentFineResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseBillingType.java deleted file mode 100644 index c9142b5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseBillingType.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment billing type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentGetResponseBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - DEBIT_CARD("DEBIT_CARD"), - TRANSFER("TRANSFER"), - DEPOSIT("DEPOSIT"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentGetResponseBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentGetResponseBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseDto.java deleted file mode 100644 index 5c8b8fe..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseDto.java +++ /dev/null @@ -1,845 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique payment identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Payment creation date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Unique identifier of the customer to whom the payment belongs - */ - @JsonProperty("customer") - private JsonNullable customer; - - /** - * Unique subscription identifier (when recurring billing) - */ - @JsonProperty("subscription") - private JsonNullable subscription; - - /** - * Unique installment identifier (when billing in installments) - */ - @JsonProperty("installment") - private JsonNullable installment; - - /** - * Unique checkout identifier - */ - @JsonProperty("checkoutSession") - private JsonNullable checkoutSession; - - /** - * Unique identifier of the payments link to which the payment belongs - */ - @JsonProperty("paymentLink") - private JsonNullable paymentLink; - - /** - * Payment amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Net value of the charge after discounting the Asaas fee - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Original amount of charge (filled when paid with interest and fine) - */ - @JsonProperty("originalValue") - private JsonNullable originalValue; - - /** - * Calculated amount of interest and fine that must be paid after the charge is due - */ - @JsonProperty("interestValue") - private JsonNullable interestValue; - - /** - * Description of the payment - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Payment billing type - */ - @JsonProperty("billingType") - private JsonNullable billingType; - - @JsonProperty("creditCard") - private JsonNullable creditCard; - - /** - * Informs whether the charge can be paid after the due date (Only for bank slip) - */ - @JsonProperty("canBePaidAfterDueDate") - private JsonNullable canBePaidAfterDueDate; - - /** - * Unique identifier of the Pix transaction to which the payment belongs - */ - @JsonProperty("pixTransaction") - private JsonNullable pixTransaction; - - /** - * Unique identifier of the static QrCode generated for a given Pix key - */ - @JsonProperty("pixQrCodeId") - private JsonNullable pixQrCodeId; - - /** - * Payment status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Payment due date - */ - @JsonProperty("dueDate") - private JsonNullable dueDate; - - /** - * Original due date upon creation of the payment - */ - @JsonProperty("originalDueDate") - private JsonNullable originalDueDate; - - /** - * Payment date on Asaas - */ - @JsonProperty("paymentDate") - private JsonNullable paymentDate; - - /** - * Date on which the customer paid the bank slip - */ - @JsonProperty("clientPaymentDate") - private JsonNullable clientPaymentDate; - - /** - * Parcel number - */ - @JsonProperty("installmentNumber") - private JsonNullable installmentNumber; - - /** - * Invoice URL - */ - @JsonProperty("invoiceUrl") - private JsonNullable invoiceUrl; - - /** - * Bill number - */ - @JsonProperty("invoiceNumber") - private JsonNullable invoiceNumber; - - /** - * Free search field - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Determines if the payment has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Defines whether the charge was anticipated or is in the process of being anticipated - */ - @JsonProperty("anticipated") - private JsonNullable anticipated; - - /** - * Determines whether the charge is anticipated - */ - @JsonProperty("anticipable") - private JsonNullable anticipable; - - /** - * Date when the credit became available - */ - @JsonProperty("creditDate") - private JsonNullable creditDate; - - /** - * Estimated date when the credit will be available - */ - @JsonProperty("estimatedCreditDate") - private JsonNullable estimatedCreditDate; - - /** - * URL of proof of confirmation, receipt, reversal or removal - */ - @JsonProperty("transactionReceiptUrl") - private JsonNullable transactionReceiptUrl; - - /** - * Unique identification of the bank slip - */ - @JsonProperty("nossoNumero") - private JsonNullable nossoNumero; - - /** - * URL to download the bank slip - */ - @JsonProperty("bankSlipUrl") - private JsonNullable bankSlipUrl; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("fine") - private JsonNullable fine; - - @JsonProperty("interest") - private JsonNullable interest; - - /** - * Split Settings - */ - @JsonProperty("split") - private JsonNullable> split; - - /** - * Define whether the payment will be sent via post - */ - @JsonProperty("postalService") - private JsonNullable postalService; - - /** - * Days after registration cancellation deadline (only for bank slip) - */ - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - private JsonNullable daysAfterDueDateToRegistrationCancellation; - - @JsonProperty("chargeback") - private JsonNullable chargeback; - - @JsonProperty("escrow") - private JsonNullable escrow; - - /** - * Refunds information - */ - @JsonProperty("refunds") - private JsonNullable> refunds; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public String getCustomer() { - return customer.orElse(null); - } - - @JsonIgnore - public String getSubscription() { - return subscription.orElse(null); - } - - @JsonIgnore - public String getInstallment() { - return installment.orElse(null); - } - - @JsonIgnore - public String getCheckoutSession() { - return checkoutSession.orElse(null); - } - - @JsonIgnore - public String getPaymentLink() { - return paymentLink.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getOriginalValue() { - return originalValue.orElse(null); - } - - @JsonIgnore - public Double getInterestValue() { - return interestValue.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public ApiPaymentGetResponseBillingType getBillingType() { - return billingType.orElse(null); - } - - @JsonIgnore - public ApiPaymentSaveWithCreditCardCreditCardDto getCreditCard() { - return creditCard.orElse(null); - } - - @JsonIgnore - public Boolean getCanBePaidAfterDueDate() { - return canBePaidAfterDueDate.orElse(null); - } - - @JsonIgnore - public String getPixTransaction() { - return pixTransaction.orElse(null); - } - - @JsonIgnore - public String getPixQrCodeId() { - return pixQrCodeId.orElse(null); - } - - @JsonIgnore - public ApiPaymentGetResponsePaymentStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getDueDate() { - return dueDate.orElse(null); - } - - @JsonIgnore - public String getOriginalDueDate() { - return originalDueDate.orElse(null); - } - - @JsonIgnore - public String getPaymentDate() { - return paymentDate.orElse(null); - } - - @JsonIgnore - public String getClientPaymentDate() { - return clientPaymentDate.orElse(null); - } - - @JsonIgnore - public Long getInstallmentNumber() { - return installmentNumber.orElse(null); - } - - @JsonIgnore - public String getInvoiceUrl() { - return invoiceUrl.orElse(null); - } - - @JsonIgnore - public String getInvoiceNumber() { - return invoiceNumber.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public Boolean getAnticipated() { - return anticipated.orElse(null); - } - - @JsonIgnore - public Boolean getAnticipable() { - return anticipable.orElse(null); - } - - @JsonIgnore - public String getCreditDate() { - return creditDate.orElse(null); - } - - @JsonIgnore - public String getEstimatedCreditDate() { - return estimatedCreditDate.orElse(null); - } - - @JsonIgnore - public String getTransactionReceiptUrl() { - return transactionReceiptUrl.orElse(null); - } - - @JsonIgnore - public String getNossoNumero() { - return nossoNumero.orElse(null); - } - - @JsonIgnore - public String getBankSlipUrl() { - return bankSlipUrl.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineResponseDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestResponseDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public List getSplit() { - return split.orElse(null); - } - - @JsonIgnore - public Boolean getPostalService() { - return postalService.orElse(null); - } - - @JsonIgnore - public Long getDaysAfterDueDateToRegistrationCancellation() { - return daysAfterDueDateToRegistrationCancellation.orElse(null); - } - - @JsonIgnore - public ApiPaymentChargebackResponseDto getChargeback() { - return chargeback.orElse(null); - } - - @JsonIgnore - public ApiPaymentCustodyGetResponseDto getEscrow() { - return escrow.orElse(null); - } - - @JsonIgnore - public List getRefunds() { - return refunds.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiPaymentGetResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable customer = JsonNullable.undefined(); - - @JsonProperty("customer") - public ApiPaymentGetResponseDtoBuilder customer(String value) { - this.customer = JsonNullable.of(value); - return this; - } - - private JsonNullable subscription = JsonNullable.undefined(); - - @JsonProperty("subscription") - public ApiPaymentGetResponseDtoBuilder subscription(String value) { - this.subscription = JsonNullable.of(value); - return this; - } - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiPaymentGetResponseDtoBuilder installment(String value) { - this.installment = JsonNullable.of(value); - return this; - } - - private JsonNullable checkoutSession = JsonNullable.undefined(); - - @JsonProperty("checkoutSession") - public ApiPaymentGetResponseDtoBuilder checkoutSession(String value) { - this.checkoutSession = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentLink = JsonNullable.undefined(); - - @JsonProperty("paymentLink") - public ApiPaymentGetResponseDtoBuilder paymentLink(String value) { - this.paymentLink = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiPaymentGetResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable originalValue = JsonNullable.undefined(); - - @JsonProperty("originalValue") - public ApiPaymentGetResponseDtoBuilder originalValue(Double value) { - this.originalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable interestValue = JsonNullable.undefined(); - - @JsonProperty("interestValue") - public ApiPaymentGetResponseDtoBuilder interestValue(Double value) { - this.interestValue = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable billingType = JsonNullable.undefined(); - - @JsonProperty("billingType") - public ApiPaymentGetResponseDtoBuilder billingType(ApiPaymentGetResponseBillingType value) { - this.billingType = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCard = JsonNullable.undefined(); - - @JsonProperty("creditCard") - public ApiPaymentGetResponseDtoBuilder creditCard(ApiPaymentSaveWithCreditCardCreditCardDto value) { - this.creditCard = JsonNullable.of(value); - return this; - } - - private JsonNullable canBePaidAfterDueDate = JsonNullable.undefined(); - - @JsonProperty("canBePaidAfterDueDate") - public ApiPaymentGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { - this.canBePaidAfterDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable pixTransaction = JsonNullable.undefined(); - - @JsonProperty("pixTransaction") - public ApiPaymentGetResponseDtoBuilder pixTransaction(String value) { - this.pixTransaction = JsonNullable.of(value); - return this; - } - - private JsonNullable pixQrCodeId = JsonNullable.undefined(); - - @JsonProperty("pixQrCodeId") - public ApiPaymentGetResponseDtoBuilder pixQrCodeId(String value) { - this.pixQrCodeId = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentGetResponseDtoBuilder status(ApiPaymentGetResponsePaymentStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDate = JsonNullable.undefined(); - - @JsonProperty("dueDate") - public ApiPaymentGetResponseDtoBuilder dueDate(String value) { - this.dueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable originalDueDate = JsonNullable.undefined(); - - @JsonProperty("originalDueDate") - public ApiPaymentGetResponseDtoBuilder originalDueDate(String value) { - this.originalDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentDate = JsonNullable.undefined(); - - @JsonProperty("paymentDate") - public ApiPaymentGetResponseDtoBuilder paymentDate(String value) { - this.paymentDate = JsonNullable.of(value); - return this; - } - - private JsonNullable clientPaymentDate = JsonNullable.undefined(); - - @JsonProperty("clientPaymentDate") - public ApiPaymentGetResponseDtoBuilder clientPaymentDate(String value) { - this.clientPaymentDate = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentNumber = JsonNullable.undefined(); - - @JsonProperty("installmentNumber") - public ApiPaymentGetResponseDtoBuilder installmentNumber(Long value) { - this.installmentNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable invoiceUrl = JsonNullable.undefined(); - - @JsonProperty("invoiceUrl") - public ApiPaymentGetResponseDtoBuilder invoiceUrl(String value) { - this.invoiceUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable invoiceNumber = JsonNullable.undefined(); - - @JsonProperty("invoiceNumber") - public ApiPaymentGetResponseDtoBuilder invoiceNumber(String value) { - this.invoiceNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPaymentGetResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiPaymentGetResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipated = JsonNullable.undefined(); - - @JsonProperty("anticipated") - public ApiPaymentGetResponseDtoBuilder anticipated(Boolean value) { - this.anticipated = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipable = JsonNullable.undefined(); - - @JsonProperty("anticipable") - public ApiPaymentGetResponseDtoBuilder anticipable(Boolean value) { - this.anticipable = JsonNullable.of(value); - return this; - } - - private JsonNullable creditDate = JsonNullable.undefined(); - - @JsonProperty("creditDate") - public ApiPaymentGetResponseDtoBuilder creditDate(String value) { - this.creditDate = JsonNullable.of(value); - return this; - } - - private JsonNullable estimatedCreditDate = JsonNullable.undefined(); - - @JsonProperty("estimatedCreditDate") - public ApiPaymentGetResponseDtoBuilder estimatedCreditDate(String value) { - this.estimatedCreditDate = JsonNullable.of(value); - return this; - } - - private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); - - @JsonProperty("transactionReceiptUrl") - public ApiPaymentGetResponseDtoBuilder transactionReceiptUrl(String value) { - this.transactionReceiptUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable nossoNumero = JsonNullable.undefined(); - - @JsonProperty("nossoNumero") - public ApiPaymentGetResponseDtoBuilder nossoNumero(String value) { - this.nossoNumero = JsonNullable.of(value); - return this; - } - - private JsonNullable bankSlipUrl = JsonNullable.undefined(); - - @JsonProperty("bankSlipUrl") - public ApiPaymentGetResponseDtoBuilder bankSlipUrl(String value) { - this.bankSlipUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiPaymentGetResponseDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiPaymentGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiPaymentGetResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable> split = JsonNullable.undefined(); - - @JsonProperty("split") - public ApiPaymentGetResponseDtoBuilder split(List value) { - this.split = JsonNullable.of(value); - return this; - } - - private JsonNullable postalService = JsonNullable.undefined(); - - @JsonProperty("postalService") - public ApiPaymentGetResponseDtoBuilder postalService(Boolean value) { - this.postalService = JsonNullable.of(value); - return this; - } - - private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); - - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiPaymentGetResponseDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); - return this; - } - - private JsonNullable chargeback = JsonNullable.undefined(); - - @JsonProperty("chargeback") - public ApiPaymentGetResponseDtoBuilder chargeback(ApiPaymentChargebackResponseDto value) { - this.chargeback = JsonNullable.of(value); - return this; - } - - private JsonNullable escrow = JsonNullable.undefined(); - - @JsonProperty("escrow") - public ApiPaymentGetResponseDtoBuilder escrow(ApiPaymentCustodyGetResponseDto value) { - this.escrow = JsonNullable.of(value); - return this; - } - - private JsonNullable> refunds = JsonNullable.undefined(); - - @JsonProperty("refunds") - public ApiPaymentGetResponseDtoBuilder refunds(List value) { - this.refunds = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponsePaymentStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponsePaymentStatus.java deleted file mode 100644 index ab2f8a9..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponsePaymentStatus.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentGetResponsePaymentStatus { - PENDING("PENDING"), - RECEIVED("RECEIVED"), - CONFIRMED("CONFIRMED"), - OVERDUE("OVERDUE"), - REFUNDED("REFUNDED"), - RECEIVED_IN_CASH("RECEIVED_IN_CASH"), - REFUND_REQUESTED("REFUND_REQUESTED"), - REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), - CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), - CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), - AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), - DUNNING_REQUESTED("DUNNING_REQUESTED"), - DUNNING_RECEIVED("DUNNING_RECEIVED"), - AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentGetResponsePaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentGetResponsePaymentStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentIdentificationFieldResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentIdentificationFieldResponseDto.java deleted file mode 100644 index d227d6c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentIdentificationFieldResponseDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentIdentificationFieldResponseDto { - - /** - * Digitable bill line - */ - @JsonProperty("identificationField") - private JsonNullable identificationField; - - /** - * Unique identification of the bank slip - */ - @JsonProperty("nossoNumero") - private JsonNullable nossoNumero; - - /** - * Bank slip bar code - */ - @JsonProperty("barCode") - private JsonNullable barCode; - - @JsonIgnore - public String getIdentificationField() { - return identificationField.orElse(null); - } - - @JsonIgnore - public String getNossoNumero() { - return nossoNumero.orElse(null); - } - - @JsonIgnore - public String getBarCode() { - return barCode.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentIdentificationFieldResponseDtoBuilder { - - private JsonNullable identificationField = JsonNullable.undefined(); - - @JsonProperty("identificationField") - public ApiPaymentIdentificationFieldResponseDtoBuilder identificationField(String value) { - this.identificationField = JsonNullable.of(value); - return this; - } - - private JsonNullable nossoNumero = JsonNullable.undefined(); - - @JsonProperty("nossoNumero") - public ApiPaymentIdentificationFieldResponseDtoBuilder nossoNumero(String value) { - this.nossoNumero = JsonNullable.of(value); - return this; - } - - private JsonNullable barCode = JsonNullable.undefined(); - - @JsonProperty("barCode") - public ApiPaymentIdentificationFieldResponseDtoBuilder barCode(String value) { - 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 deleted file mode 100644 index f92b20c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestRequestDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentInterestRequestDto { - - /** - * Percentage of interest per month on the amount charged for payment after maturity - */ - @JsonProperty("value") - private JsonNullable value; - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentInterestRequestDtoBuilder { - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentInterestRequestDtoBuilder value(Double value) { - 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 deleted file mode 100644 index 1c2c377..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestResponseDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentInterestResponseDto { - - /** - * Interest value in percentage - */ - @JsonProperty("value") - private JsonNullable value; - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentInterestResponseDtoBuilder { - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentInterestResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseBillingType.java deleted file mode 100644 index 932c24c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseBillingType.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment billing type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentLeanGetResponseBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - DEBIT_CARD("DEBIT_CARD"), - TRANSFER("TRANSFER"), - DEPOSIT("DEPOSIT"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentLeanGetResponseBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentLeanGetResponseBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseDto.java deleted file mode 100644 index 8595547..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseDto.java +++ /dev/null @@ -1,644 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentLeanGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique payment identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Payment creation date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Unique identifier of the customer to whom the payment belongs - */ - @JsonProperty("customerId") - private JsonNullable customerId; - - /** - * Unique subscription identifier (when recurring billing) - */ - @JsonProperty("subscriptionId") - private JsonNullable subscriptionId; - - /** - * Unique installment identifier (when billing in installments) - */ - @JsonProperty("installmentId") - private JsonNullable installmentId; - - /** - * Unique identifier of the payments link to which the payment belongs - */ - @JsonProperty("paymentLinkId") - private JsonNullable paymentLinkId; - - /** - * Payment amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Net value of the charge after discounting the Asaas fee - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Original amount of charge (filled when paid with interest and fine) - */ - @JsonProperty("originalValue") - private JsonNullable originalValue; - - /** - * Calculated amount of interest and fine that must be paid after the charge is due - */ - @JsonProperty("interestValue") - private JsonNullable interestValue; - - /** - * Description of the payment - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Payment billing type - */ - @JsonProperty("billingType") - private JsonNullable billingType; - - /** - * Informs whether the charge can be paid after the due date (Only for bank slip) - */ - @JsonProperty("canBePaidAfterDueDate") - private JsonNullable canBePaidAfterDueDate; - - /** - * Billing confirmation date - */ - @JsonProperty("confirmedDate") - private JsonNullable confirmedDate; - - /** - * Unique identifier of the Pix transaction to which the payment belongs - */ - @JsonProperty("pixTransactionId") - private JsonNullable pixTransactionId; - - /** - * Payment status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Payment due date - */ - @JsonProperty("dueDate") - private JsonNullable dueDate; - - /** - * Original due date upon creation of the payment - */ - @JsonProperty("originalDueDate") - private JsonNullable originalDueDate; - - /** - * Payment date on Asaas - */ - @JsonProperty("paymentDate") - private JsonNullable paymentDate; - - /** - * Date on which the customer paid the bank slip - */ - @JsonProperty("customerPaymentDate") - private JsonNullable customerPaymentDate; - - /** - * Parcel number - */ - @JsonProperty("installmentNumber") - private JsonNullable installmentNumber; - - /** - * Free search field - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Determines if the payment has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Defines whether the charge was anticipated or is in the process of being anticipated - */ - @JsonProperty("anticipated") - private JsonNullable anticipated; - - /** - * Determines whether the charge is anticipated - */ - @JsonProperty("anticipable") - private JsonNullable anticipable; - - /** - * Billing Credit date - */ - @JsonProperty("creditDate") - private JsonNullable creditDate; - - /** - * URL of proof of confirmation, receipt, reversal or removal - */ - @JsonProperty("transactionReceiptUrl") - private JsonNullable transactionReceiptUrl; - - /** - * Duplicate billing identifier (if true) - */ - @JsonProperty("duplicatedPaymentId") - private JsonNullable duplicatedPaymentId; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("fine") - private JsonNullable fine; - - @JsonProperty("interest") - private JsonNullable interest; - - /** - * Define whether the payment will be sent via post - */ - @JsonProperty("postalService") - private JsonNullable postalService; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public String getCustomerId() { - return customerId.orElse(null); - } - - @JsonIgnore - public String getSubscriptionId() { - return subscriptionId.orElse(null); - } - - @JsonIgnore - public String getInstallmentId() { - return installmentId.orElse(null); - } - - @JsonIgnore - public String getPaymentLinkId() { - return paymentLinkId.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getOriginalValue() { - return originalValue.orElse(null); - } - - @JsonIgnore - public Double getInterestValue() { - return interestValue.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public ApiPaymentLeanGetResponseBillingType getBillingType() { - return billingType.orElse(null); - } - - @JsonIgnore - public Boolean getCanBePaidAfterDueDate() { - return canBePaidAfterDueDate.orElse(null); - } - - @JsonIgnore - public String getConfirmedDate() { - return confirmedDate.orElse(null); - } - - @JsonIgnore - public String getPixTransactionId() { - return pixTransactionId.orElse(null); - } - - @JsonIgnore - public ApiPaymentLeanGetResponsePaymentStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getDueDate() { - return dueDate.orElse(null); - } - - @JsonIgnore - public String getOriginalDueDate() { - return originalDueDate.orElse(null); - } - - @JsonIgnore - public String getPaymentDate() { - return paymentDate.orElse(null); - } - - @JsonIgnore - public String getCustomerPaymentDate() { - return customerPaymentDate.orElse(null); - } - - @JsonIgnore - public Long getInstallmentNumber() { - return installmentNumber.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public Boolean getAnticipated() { - return anticipated.orElse(null); - } - - @JsonIgnore - public Boolean getAnticipable() { - return anticipable.orElse(null); - } - - @JsonIgnore - public String getCreditDate() { - return creditDate.orElse(null); - } - - @JsonIgnore - public String getTransactionReceiptUrl() { - return transactionReceiptUrl.orElse(null); - } - - @JsonIgnore - public String getDuplicatedPaymentId() { - return duplicatedPaymentId.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineResponseDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestResponseDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public Boolean getPostalService() { - return postalService.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentLeanGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentLeanGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentLeanGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiPaymentLeanGetResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable customerId = JsonNullable.undefined(); - - @JsonProperty("customerId") - public ApiPaymentLeanGetResponseDtoBuilder customerId(String value) { - this.customerId = JsonNullable.of(value); - return this; - } - - private JsonNullable subscriptionId = JsonNullable.undefined(); - - @JsonProperty("subscriptionId") - public ApiPaymentLeanGetResponseDtoBuilder subscriptionId(String value) { - this.subscriptionId = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentId = JsonNullable.undefined(); - - @JsonProperty("installmentId") - public ApiPaymentLeanGetResponseDtoBuilder installmentId(String value) { - this.installmentId = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentLinkId = JsonNullable.undefined(); - - @JsonProperty("paymentLinkId") - public ApiPaymentLeanGetResponseDtoBuilder paymentLinkId(String value) { - this.paymentLinkId = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentLeanGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiPaymentLeanGetResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable originalValue = JsonNullable.undefined(); - - @JsonProperty("originalValue") - public ApiPaymentLeanGetResponseDtoBuilder originalValue(Double value) { - this.originalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable interestValue = JsonNullable.undefined(); - - @JsonProperty("interestValue") - public ApiPaymentLeanGetResponseDtoBuilder interestValue(Double value) { - this.interestValue = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentLeanGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable billingType = JsonNullable.undefined(); - - @JsonProperty("billingType") - public ApiPaymentLeanGetResponseDtoBuilder billingType(ApiPaymentLeanGetResponseBillingType value) { - this.billingType = JsonNullable.of(value); - return this; - } - - private JsonNullable canBePaidAfterDueDate = JsonNullable.undefined(); - - @JsonProperty("canBePaidAfterDueDate") - public ApiPaymentLeanGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { - this.canBePaidAfterDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable confirmedDate = JsonNullable.undefined(); - - @JsonProperty("confirmedDate") - public ApiPaymentLeanGetResponseDtoBuilder confirmedDate(String value) { - this.confirmedDate = JsonNullable.of(value); - return this; - } - - private JsonNullable pixTransactionId = JsonNullable.undefined(); - - @JsonProperty("pixTransactionId") - public ApiPaymentLeanGetResponseDtoBuilder pixTransactionId(String value) { - this.pixTransactionId = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentLeanGetResponseDtoBuilder status(ApiPaymentLeanGetResponsePaymentStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDate = JsonNullable.undefined(); - - @JsonProperty("dueDate") - public ApiPaymentLeanGetResponseDtoBuilder dueDate(String value) { - this.dueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable originalDueDate = JsonNullable.undefined(); - - @JsonProperty("originalDueDate") - public ApiPaymentLeanGetResponseDtoBuilder originalDueDate(String value) { - this.originalDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentDate = JsonNullable.undefined(); - - @JsonProperty("paymentDate") - public ApiPaymentLeanGetResponseDtoBuilder paymentDate(String value) { - this.paymentDate = JsonNullable.of(value); - return this; - } - - private JsonNullable customerPaymentDate = JsonNullable.undefined(); - - @JsonProperty("customerPaymentDate") - public ApiPaymentLeanGetResponseDtoBuilder customerPaymentDate(String value) { - this.customerPaymentDate = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentNumber = JsonNullable.undefined(); - - @JsonProperty("installmentNumber") - public ApiPaymentLeanGetResponseDtoBuilder installmentNumber(Long value) { - this.installmentNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPaymentLeanGetResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiPaymentLeanGetResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipated = JsonNullable.undefined(); - - @JsonProperty("anticipated") - public ApiPaymentLeanGetResponseDtoBuilder anticipated(Boolean value) { - this.anticipated = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipable = JsonNullable.undefined(); - - @JsonProperty("anticipable") - public ApiPaymentLeanGetResponseDtoBuilder anticipable(Boolean value) { - this.anticipable = JsonNullable.of(value); - return this; - } - - private JsonNullable creditDate = JsonNullable.undefined(); - - @JsonProperty("creditDate") - public ApiPaymentLeanGetResponseDtoBuilder creditDate(String value) { - this.creditDate = JsonNullable.of(value); - return this; - } - - private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); - - @JsonProperty("transactionReceiptUrl") - public ApiPaymentLeanGetResponseDtoBuilder transactionReceiptUrl(String value) { - this.transactionReceiptUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable duplicatedPaymentId = JsonNullable.undefined(); - - @JsonProperty("duplicatedPaymentId") - public ApiPaymentLeanGetResponseDtoBuilder duplicatedPaymentId(String value) { - this.duplicatedPaymentId = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiPaymentLeanGetResponseDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiPaymentLeanGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiPaymentLeanGetResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable postalService = JsonNullable.undefined(); - - @JsonProperty("postalService") - public ApiPaymentLeanGetResponseDtoBuilder postalService(Boolean value) { - this.postalService = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponsePaymentStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponsePaymentStatus.java deleted file mode 100644 index b2e8491..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponsePaymentStatus.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentLeanGetResponsePaymentStatus { - PENDING("PENDING"), - RECEIVED("RECEIVED"), - CONFIRMED("CONFIRMED"), - OVERDUE("OVERDUE"), - REFUNDED("REFUNDED"), - RECEIVED_IN_CASH("RECEIVED_IN_CASH"), - REFUND_REQUESTED("REFUND_REQUESTED"), - REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), - CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), - CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), - AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), - DUNNING_REQUESTED("DUNNING_REQUESTED"), - DUNNING_RECEIVED("DUNNING_RECEIVED"), - AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentLeanGetResponsePaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentLeanGetResponsePaymentStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanListResponseDto.java deleted file mode 100644 index dd54607..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentLeanListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentLeanListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentLeanListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPaymentLeanListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPaymentLeanListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentLeanListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPaymentLeanListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPaymentLeanListResponseDtoBuilder data(List value) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.java deleted file mode 100644 index 23ae375..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment billing type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentLeanSaveWithCreditCardResponseBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - DEBIT_CARD("DEBIT_CARD"), - TRANSFER("TRANSFER"), - DEPOSIT("DEPOSIT"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentLeanSaveWithCreditCardResponseBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentLeanSaveWithCreditCardResponseBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseDto.java deleted file mode 100644 index feb1209..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseDto.java +++ /dev/null @@ -1,666 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentLeanSaveWithCreditCardResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique payment identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Payment creation date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Unique identifier of the customer to whom the payment belongs - */ - @JsonProperty("customerId") - private JsonNullable customerId; - - /** - * Unique subscription identifier (when recurring billing) - */ - @JsonProperty("subscriptionId") - private JsonNullable subscriptionId; - - /** - * Unique installment identifier (when billing in installments) - */ - @JsonProperty("installmentId") - private JsonNullable installmentId; - - /** - * Unique identifier of the payments link to which the payment belongs - */ - @JsonProperty("paymentLinkId") - private JsonNullable paymentLinkId; - - /** - * Payment amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Net value of the charge after discounting the Asaas fee - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Original amount of charge (filled when paid with interest and fine) - */ - @JsonProperty("originalValue") - private JsonNullable originalValue; - - /** - * Calculated amount of interest and fine that must be paid after the charge is due - */ - @JsonProperty("interestValue") - private JsonNullable interestValue; - - /** - * Description of the payment - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Payment billing type - */ - @JsonProperty("billingType") - private JsonNullable billingType; - - /** - * Informs whether the charge can be paid after the due date (Only for bank slip) - */ - @JsonProperty("canBePaidAfterDueDate") - private JsonNullable canBePaidAfterDueDate; - - /** - * Billing confirmation date - */ - @JsonProperty("confirmedDate") - private JsonNullable confirmedDate; - - /** - * Unique identifier of the Pix transaction to which the payment belongs - */ - @JsonProperty("pixTransactionId") - private JsonNullable pixTransactionId; - - /** - * Payment status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Payment due date - */ - @JsonProperty("dueDate") - private JsonNullable dueDate; - - /** - * Original due date upon creation of the payment - */ - @JsonProperty("originalDueDate") - private JsonNullable originalDueDate; - - /** - * Payment date on Asaas - */ - @JsonProperty("paymentDate") - private JsonNullable paymentDate; - - /** - * Date on which the customer paid the bank slip - */ - @JsonProperty("customerPaymentDate") - private JsonNullable customerPaymentDate; - - /** - * Parcel number - */ - @JsonProperty("installmentNumber") - private JsonNullable installmentNumber; - - /** - * Free search field - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Determines if the payment has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Defines whether the charge was anticipated or is in the process of being anticipated - */ - @JsonProperty("anticipated") - private JsonNullable anticipated; - - /** - * Determines whether the charge is anticipated - */ - @JsonProperty("anticipable") - private JsonNullable anticipable; - - /** - * Billing Credit date - */ - @JsonProperty("creditDate") - private JsonNullable creditDate; - - /** - * URL of proof of confirmation, receipt, reversal or removal - */ - @JsonProperty("transactionReceiptUrl") - private JsonNullable transactionReceiptUrl; - - /** - * Duplicate billing identifier (if true) - */ - @JsonProperty("duplicatedPaymentId") - private JsonNullable duplicatedPaymentId; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("fine") - private JsonNullable fine; - - @JsonProperty("interest") - private JsonNullable interest; - - /** - * Define whether the payment will be sent via post - */ - @JsonProperty("postalService") - private JsonNullable postalService; - - @JsonProperty("creditCard") - private JsonNullable creditCard; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public String getCustomerId() { - return customerId.orElse(null); - } - - @JsonIgnore - public String getSubscriptionId() { - return subscriptionId.orElse(null); - } - - @JsonIgnore - public String getInstallmentId() { - return installmentId.orElse(null); - } - - @JsonIgnore - public String getPaymentLinkId() { - return paymentLinkId.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getOriginalValue() { - return originalValue.orElse(null); - } - - @JsonIgnore - public Double getInterestValue() { - return interestValue.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public ApiPaymentLeanSaveWithCreditCardResponseBillingType getBillingType() { - return billingType.orElse(null); - } - - @JsonIgnore - public Boolean getCanBePaidAfterDueDate() { - return canBePaidAfterDueDate.orElse(null); - } - - @JsonIgnore - public String getConfirmedDate() { - return confirmedDate.orElse(null); - } - - @JsonIgnore - public String getPixTransactionId() { - return pixTransactionId.orElse(null); - } - - @JsonIgnore - public ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getDueDate() { - return dueDate.orElse(null); - } - - @JsonIgnore - public String getOriginalDueDate() { - return originalDueDate.orElse(null); - } - - @JsonIgnore - public String getPaymentDate() { - return paymentDate.orElse(null); - } - - @JsonIgnore - public String getCustomerPaymentDate() { - return customerPaymentDate.orElse(null); - } - - @JsonIgnore - public Long getInstallmentNumber() { - return installmentNumber.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public Boolean getAnticipated() { - return anticipated.orElse(null); - } - - @JsonIgnore - public Boolean getAnticipable() { - return anticipable.orElse(null); - } - - @JsonIgnore - public String getCreditDate() { - return creditDate.orElse(null); - } - - @JsonIgnore - public String getTransactionReceiptUrl() { - return transactionReceiptUrl.orElse(null); - } - - @JsonIgnore - public String getDuplicatedPaymentId() { - return duplicatedPaymentId.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineResponseDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestResponseDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public Boolean getPostalService() { - return postalService.orElse(null); - } - - @JsonIgnore - public ApiPaymentSaveWithCreditCardCreditCardDto getCreditCard() { - return creditCard.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable customerId = JsonNullable.undefined(); - - @JsonProperty("customerId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder customerId(String value) { - this.customerId = JsonNullable.of(value); - return this; - } - - private JsonNullable subscriptionId = JsonNullable.undefined(); - - @JsonProperty("subscriptionId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder subscriptionId(String value) { - this.subscriptionId = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentId = JsonNullable.undefined(); - - @JsonProperty("installmentId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder installmentId(String value) { - this.installmentId = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentLinkId = JsonNullable.undefined(); - - @JsonProperty("paymentLinkId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder paymentLinkId(String value) { - this.paymentLinkId = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable originalValue = JsonNullable.undefined(); - - @JsonProperty("originalValue") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder originalValue(Double value) { - this.originalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable interestValue = JsonNullable.undefined(); - - @JsonProperty("interestValue") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder interestValue(Double value) { - this.interestValue = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable billingType = JsonNullable.undefined(); - - @JsonProperty("billingType") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder billingType( - ApiPaymentLeanSaveWithCreditCardResponseBillingType value - ) { - this.billingType = JsonNullable.of(value); - return this; - } - - private JsonNullable canBePaidAfterDueDate = JsonNullable.undefined(); - - @JsonProperty("canBePaidAfterDueDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { - this.canBePaidAfterDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable confirmedDate = JsonNullable.undefined(); - - @JsonProperty("confirmedDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder confirmedDate(String value) { - this.confirmedDate = JsonNullable.of(value); - return this; - } - - private JsonNullable pixTransactionId = JsonNullable.undefined(); - - @JsonProperty("pixTransactionId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder pixTransactionId(String value) { - this.pixTransactionId = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder status( - ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDate = JsonNullable.undefined(); - - @JsonProperty("dueDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder dueDate(String value) { - this.dueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable originalDueDate = JsonNullable.undefined(); - - @JsonProperty("originalDueDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder originalDueDate(String value) { - this.originalDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentDate = JsonNullable.undefined(); - - @JsonProperty("paymentDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder paymentDate(String value) { - this.paymentDate = JsonNullable.of(value); - return this; - } - - private JsonNullable customerPaymentDate = JsonNullable.undefined(); - - @JsonProperty("customerPaymentDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder customerPaymentDate(String value) { - this.customerPaymentDate = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentNumber = JsonNullable.undefined(); - - @JsonProperty("installmentNumber") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder installmentNumber(Long value) { - this.installmentNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipated = JsonNullable.undefined(); - - @JsonProperty("anticipated") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder anticipated(Boolean value) { - this.anticipated = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipable = JsonNullable.undefined(); - - @JsonProperty("anticipable") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder anticipable(Boolean value) { - this.anticipable = JsonNullable.of(value); - return this; - } - - private JsonNullable creditDate = JsonNullable.undefined(); - - @JsonProperty("creditDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder creditDate(String value) { - this.creditDate = JsonNullable.of(value); - return this; - } - - private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); - - @JsonProperty("transactionReceiptUrl") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder transactionReceiptUrl(String value) { - this.transactionReceiptUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable duplicatedPaymentId = JsonNullable.undefined(); - - @JsonProperty("duplicatedPaymentId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder duplicatedPaymentId(String value) { - this.duplicatedPaymentId = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable postalService = JsonNullable.undefined(); - - @JsonProperty("postalService") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder postalService(Boolean value) { - this.postalService = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCard = JsonNullable.undefined(); - - @JsonProperty("creditCard") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder creditCard( - ApiPaymentSaveWithCreditCardCreditCardDto value - ) { - this.creditCard = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.java deleted file mode 100644 index c6efa00..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus { - PENDING("PENDING"), - RECEIVED("RECEIVED"), - CONFIRMED("CONFIRMED"), - OVERDUE("OVERDUE"), - REFUNDED("REFUNDED"), - RECEIVED_IN_CASH("RECEIVED_IN_CASH"), - REFUND_REQUESTED("REFUND_REQUESTED"), - REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), - CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), - CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), - AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), - DUNNING_REQUESTED("DUNNING_REQUESTED"), - DUNNING_RECEIVED("DUNNING_RECEIVED"), - AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDailyDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDailyDto.java deleted file mode 100644 index 1904099..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDailyDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentLimitsResponseCreationDailyDto { - - /** - * Total limit - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Limit used - */ - @JsonProperty("used") - private JsonNullable used; - - /** - * Indicates whether the limit has been reached - */ - @JsonProperty("wasReached") - private JsonNullable wasReached; - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getUsed() { - return used.orElse(null); - } - - @JsonIgnore - public Boolean getWasReached() { - return wasReached.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentLimitsResponseCreationDailyDtoBuilder { - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentLimitsResponseCreationDailyDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable used = JsonNullable.undefined(); - - @JsonProperty("used") - public ApiPaymentLimitsResponseCreationDailyDtoBuilder used(Long value) { - this.used = JsonNullable.of(value); - return this; - } - - private JsonNullable wasReached = JsonNullable.undefined(); - - @JsonProperty("wasReached") - public ApiPaymentLimitsResponseCreationDailyDtoBuilder wasReached(Boolean value) { - 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 deleted file mode 100644 index 8597f0a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDto.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentLimitsResponseCreationDto { - - @JsonProperty("daily") - private JsonNullable daily; - - @JsonIgnore - public ApiPaymentLimitsResponseCreationDailyDto getDaily() { - return daily.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentLimitsResponseCreationDtoBuilder { - - private JsonNullable daily = JsonNullable.undefined(); - - @JsonProperty("daily") - public ApiPaymentLimitsResponseCreationDtoBuilder daily(ApiPaymentLimitsResponseCreationDailyDto value) { - 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 deleted file mode 100644 index 5a5a063..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseDto.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentLimitsResponseDto { - - @JsonProperty("creation") - private JsonNullable creation; - - @JsonIgnore - public ApiPaymentLimitsResponseCreationDto getCreation() { - return creation.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentLimitsResponseDtoBuilder { - - private JsonNullable creation = JsonNullable.undefined(); - - @JsonProperty("creation") - public ApiPaymentLimitsResponseDtoBuilder creation(ApiPaymentLimitsResponseCreationDto value) { - this.creation = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestBillingType.java deleted file mode 100644 index b307775..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by billing type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentListRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentListRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentListRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestInvoiceStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestInvoiceStatus.java deleted file mode 100644 index 11b2d2a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestInvoiceStatus.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter to return charges that have or do not have an invoice - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentListRequestInvoiceStatus { - SCHEDULED("SCHEDULED"), - AUTHORIZED("AUTHORIZED"), - PROCESSING_CANCELLATION("PROCESSING_CANCELLATION"), - CANCELED("CANCELED"), - CANCELLATION_DENIED("CANCELLATION_DENIED"), - ERROR("ERROR"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentListRequestInvoiceStatus fromValue(String value) { - return Arrays.stream(ApiPaymentListRequestInvoiceStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestPaymentStatus.java deleted file mode 100644 index 8b74ac8..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestPaymentStatus.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentListRequestPaymentStatus { - PENDING("PENDING"), - RECEIVED("RECEIVED"), - CONFIRMED("CONFIRMED"), - OVERDUE("OVERDUE"), - REFUNDED("REFUNDED"), - RECEIVED_IN_CASH("RECEIVED_IN_CASH"), - REFUND_REQUESTED("REFUND_REQUESTED"), - REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), - CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), - CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), - AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), - DUNNING_REQUESTED("DUNNING_REQUESTED"), - DUNNING_RECEIVED("DUNNING_RECEIVED"), - AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentListRequestPaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentListRequestPaymentStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentListResponseDto.java deleted file mode 100644 index 859628d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPaymentListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPaymentListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPaymentListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPaymentListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index e3de2cd..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentPayWithCreditCardRequestDto.java +++ /dev/null @@ -1,86 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentPayWithCreditCardRequestDto { - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardRequestDto creditCard; - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardHolderInfoRequestDto creditCardHolderInfo; - - /** - * Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. - */ - @JsonProperty("creditCardToken") - private JsonNullable creditCardToken; - - @JsonIgnore - public String getCreditCardToken() { - return creditCardToken.orElse(null); - } - - // 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) { - 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 deleted file mode 100644 index 3971fd5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentPixQrCodeResponseDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentPixQrCodeResponseDto { - - /** - * QrCode image in base64 - */ - @JsonProperty("encodedImage") - private JsonNullable encodedImage; - - /** - * Copy and Paste of the Pix QrCode - */ - @JsonProperty("payload") - private JsonNullable payload; - - /** - * QrCode expiration date - */ - @JsonProperty("expirationDate") - private JsonNullable expirationDate; - - @JsonIgnore - public String getEncodedImage() { - return encodedImage.orElse(null); - } - - @JsonIgnore - public String getPayload() { - return payload.orElse(null); - } - - @JsonIgnore - public String getExpirationDate() { - return expirationDate.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentPixQrCodeResponseDtoBuilder { - - private JsonNullable encodedImage = JsonNullable.undefined(); - - @JsonProperty("encodedImage") - public ApiPaymentPixQrCodeResponseDtoBuilder encodedImage(String value) { - this.encodedImage = JsonNullable.of(value); - return this; - } - - private JsonNullable payload = JsonNullable.undefined(); - - @JsonProperty("payload") - public ApiPaymentPixQrCodeResponseDtoBuilder payload(String value) { - this.payload = JsonNullable.of(value); - return this; - } - - private JsonNullable expirationDate = JsonNullable.undefined(); - - @JsonProperty("expirationDate") - public ApiPaymentPixQrCodeResponseDtoBuilder expirationDate(String value) { - 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 deleted file mode 100644 index 5db5d3b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentReceiveInCashRequestDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentReceiveInCashRequestDto { - - /** - * Date the customer made the payment - */ - @JsonProperty("paymentDate") - private JsonNullable paymentDate; - - /** - * Amount paid by the customer - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Send or not send notification of confirmed payment to the customer - */ - @JsonProperty("notifyCustomer") - private JsonNullable notifyCustomer; - - @JsonIgnore - public String getPaymentDate() { - return paymentDate.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Boolean getNotifyCustomer() { - return notifyCustomer.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentReceiveInCashRequestDtoBuilder { - - private JsonNullable paymentDate = JsonNullable.undefined(); - - @JsonProperty("paymentDate") - public ApiPaymentReceiveInCashRequestDtoBuilder paymentDate(String value) { - this.paymentDate = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentReceiveInCashRequestDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable notifyCustomer = JsonNullable.undefined(); - - @JsonProperty("notifyCustomer") - public ApiPaymentReceiveInCashRequestDtoBuilder notifyCustomer(Boolean value) { - 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 deleted file mode 100644 index 532e9f2..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponseDto.java +++ /dev/null @@ -1,179 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentRefundGetResponseDto { - - /** - * Refund creation date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Refund status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Refund value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * (Pix only) Unique identifier of the Pix transaction at the Central Bank - */ - @JsonProperty("endToEndIdentifier") - private JsonNullable endToEndIdentifier; - - /** - * Description of the refund - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * (Pix only) Refund effective date - */ - @JsonProperty("effectiveDate") - private JsonNullable effectiveDate; - - /** - * Transaction receipt link - */ - @JsonProperty("transactionReceiptUrl") - private JsonNullable transactionReceiptUrl; - - /** - * Refunded Splits, if any - */ - @JsonProperty("refundedSplits") - private JsonNullable> refundedSplits; - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public ApiPaymentRefundGetResponsePaymentRefundStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getEndToEndIdentifier() { - return endToEndIdentifier.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getEffectiveDate() { - return effectiveDate.orElse(null); - } - - @JsonIgnore - public String getTransactionReceiptUrl() { - return transactionReceiptUrl.orElse(null); - } - - @JsonIgnore - public List getRefundedSplits() { - return refundedSplits.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentRefundGetResponseDtoBuilder { - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiPaymentRefundGetResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentRefundGetResponseDtoBuilder status(ApiPaymentRefundGetResponsePaymentRefundStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentRefundGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable endToEndIdentifier = JsonNullable.undefined(); - - @JsonProperty("endToEndIdentifier") - public ApiPaymentRefundGetResponseDtoBuilder endToEndIdentifier(String value) { - this.endToEndIdentifier = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentRefundGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable effectiveDate = JsonNullable.undefined(); - - @JsonProperty("effectiveDate") - public ApiPaymentRefundGetResponseDtoBuilder effectiveDate(String value) { - this.effectiveDate = JsonNullable.of(value); - return this; - } - - private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); - - @JsonProperty("transactionReceiptUrl") - public ApiPaymentRefundGetResponseDtoBuilder transactionReceiptUrl(String value) { - this.transactionReceiptUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable> refundedSplits = JsonNullable.undefined(); - - @JsonProperty("refundedSplits") - public ApiPaymentRefundGetResponseDtoBuilder refundedSplits(List value) { - this.refundedSplits = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponsePaymentRefundStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponsePaymentRefundStatus.java deleted file mode 100644 index a055a56..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponsePaymentRefundStatus.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Refund status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentRefundGetResponsePaymentRefundStatus { - PENDING("PENDING"), - AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), - AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION("AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION"), - CANCELLED("CANCELLED"), - DONE("DONE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentRefundGetResponsePaymentRefundStatus fromValue(String value) { - return Arrays.stream(ApiPaymentRefundGetResponsePaymentRefundStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundListResponseDto.java deleted file mode 100644 index 3bd52bc..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentRefundListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentRefundListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentRefundListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPaymentRefundListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPaymentRefundListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentRefundListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPaymentRefundListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPaymentRefundListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index 41fe09f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundRequestDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentRefundRequestDto { - - /** - * Amount to be refunded - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Reason for the refund - */ - @JsonProperty("description") - private JsonNullable description; - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentRefundRequestDtoBuilder { - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentRefundRequestDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentRefundRequestDtoBuilder description(String value) { - 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 deleted file mode 100644 index dc9523e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundedSplitResponseDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentRefundedSplitResponseDto { - - /** - * Unique split identifier - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Refunded value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Indicates whether the split was refunded - */ - @JsonProperty("done") - private JsonNullable done; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Boolean getDone() { - return done.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentRefundedSplitResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentRefundedSplitResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentRefundedSplitResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable done = JsonNullable.undefined(); - - @JsonProperty("done") - public ApiPaymentRefundedSplitResponseDtoBuilder done(Boolean value) { - this.done = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestBillingType.java deleted file mode 100644 index 62229c6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment billing type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentSaveRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentSaveRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentSaveRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestDto.java deleted file mode 100644 index 3cde201..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestDto.java +++ /dev/null @@ -1,268 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSaveRequestDto { - - /** - * Unique customer identifier in Asaas - */ - @NonNull - private String customer; - - /** - * Payment billing type - */ - @NonNull - private ApiPaymentSaveRequestBillingType billingType; - - /** - * Payment amount - */ - @NonNull - private Double value; - - /** - * Payment due date - */ - @NonNull - private String dueDate; - - /** - * Payment description (max. 500 characters) - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Days after registration cancellation deadline (only for bank slip) - */ - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - private JsonNullable daysAfterDueDateToRegistrationCancellation; - - /** - * Free search field - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Number of installments (only in the case of installment payment) - */ - @JsonProperty("installmentCount") - private JsonNullable installmentCount; - - /** - * Enter the total amount of a charge that will be paid in installments (only in the case of an installment charge). If this field is sent, the installmentValue is not necessary, the calculation per installment will be automatic. - */ - @JsonProperty("totalValue") - private JsonNullable totalValue; - - /** - * Value of each installment (only in the case of installment payment). Send this field if you want to define the value of each installment. - */ - @JsonProperty("installmentValue") - private JsonNullable installmentValue; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("interest") - private JsonNullable interest; - - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Define whether the payment will be sent via post - */ - @JsonProperty("postalService") - private JsonNullable postalService; - - /** - * Split Settings - */ - @JsonProperty("split") - private JsonNullable> split; - - @JsonProperty("callback") - private JsonNullable callback; - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Long getDaysAfterDueDateToRegistrationCancellation() { - return daysAfterDueDateToRegistrationCancellation.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public Long getInstallmentCount() { - return installmentCount.orElse(null); - } - - @JsonIgnore - public Double getTotalValue() { - return totalValue.orElse(null); - } - - @JsonIgnore - public Double getInstallmentValue() { - return installmentValue.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineRequestDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public Boolean getPostalService() { - return postalService.orElse(null); - } - - @JsonIgnore - public List getSplit() { - return split.orElse(null); - } - - @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { - return callback.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSaveRequestDtoBuilder { - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentSaveRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); - - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiPaymentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPaymentSaveRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentCount = JsonNullable.undefined(); - - @JsonProperty("installmentCount") - public ApiPaymentSaveRequestDtoBuilder installmentCount(Long value) { - this.installmentCount = JsonNullable.of(value); - return this; - } - - private JsonNullable totalValue = JsonNullable.undefined(); - - @JsonProperty("totalValue") - public ApiPaymentSaveRequestDtoBuilder totalValue(Double value) { - this.totalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentValue = JsonNullable.undefined(); - - @JsonProperty("installmentValue") - public ApiPaymentSaveRequestDtoBuilder installmentValue(Double value) { - this.installmentValue = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiPaymentSaveRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiPaymentSaveRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiPaymentSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable postalService = JsonNullable.undefined(); - - @JsonProperty("postalService") - public ApiPaymentSaveRequestDtoBuilder postalService(Boolean value) { - this.postalService = JsonNullable.of(value); - return this; - } - - private JsonNullable> split = JsonNullable.undefined(); - - @JsonProperty("split") - public ApiPaymentSaveRequestDtoBuilder split(List value) { - this.split = JsonNullable.of(value); - return this; - } - - private JsonNullable callback = JsonNullable.undefined(); - - @JsonProperty("callback") - public ApiPaymentSaveRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - this.callback = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.java deleted file mode 100644 index 99f40a5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Flag of the card used - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand { - VISA("VISA"), - MASTERCARD("MASTERCARD"), - ELO("ELO"), - DINERS("DINERS"), - DISCOVER("DISCOVER"), - AMEX("AMEX"), - HIPERCARD("HIPERCARD"), - CABAL("CABAL"), - BANESCARD("BANESCARD"), - CREDZ("CREDZ"), - SOROCRED("SOROCRED"), - CREDSYSTEM("CREDSYSTEM"), - JCB("JCB"), - UNKNOWN("UNKNOWN"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand fromValue(String value) { - return Arrays.stream(ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardDto.java deleted file mode 100644 index 33a535a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardDto.java +++ /dev/null @@ -1,86 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSaveWithCreditCardCreditCardDto { - - /** - * Last 4 digits of the card used - */ - @JsonProperty("creditCardNumber") - private JsonNullable creditCardNumber; - - /** - * Flag of the card used - */ - @JsonProperty("creditCardBrand") - private JsonNullable creditCardBrand; - - /** - * Credit card token if tokenization is active. - */ - @JsonProperty("creditCardToken") - private JsonNullable creditCardToken; - - @JsonIgnore - public String getCreditCardNumber() { - return creditCardNumber.orElse(null); - } - - @JsonIgnore - public ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand getCreditCardBrand() { - return creditCardBrand.orElse(null); - } - - @JsonIgnore - public String getCreditCardToken() { - return creditCardToken.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSaveWithCreditCardCreditCardDtoBuilder { - - private JsonNullable creditCardNumber = JsonNullable.undefined(); - - @JsonProperty("creditCardNumber") - public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardNumber(String value) { - this.creditCardNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCardBrand = - JsonNullable.undefined(); - - @JsonProperty("creditCardBrand") - public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardBrand( - ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand value - ) { - this.creditCardBrand = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCardToken = JsonNullable.undefined(); - - @JsonProperty("creditCardToken") - public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardToken(String value) { - this.creditCardToken = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestBillingType.java deleted file mode 100644 index cda8b02..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment billing type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentSaveWithCreditCardRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentSaveWithCreditCardRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentSaveWithCreditCardRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestDto.java deleted file mode 100644 index 6813e8c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestDto.java +++ /dev/null @@ -1,344 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSaveWithCreditCardRequestDto { - - /** - * Unique customer identifier in Asaas - */ - @NonNull - private String customer; - - /** - * Payment billing type - */ - @NonNull - private ApiPaymentSaveWithCreditCardRequestBillingType billingType; - - /** - * Payment amount - */ - @NonNull - private Double value; - - /** - * Payment due date - */ - @NonNull - private String dueDate; - - /** - * IP from where the customer is making the purchase. Your server's IP must not be entered. - */ - @NonNull - private String remoteIp; - - /** - * Payment description (max. 500 characters) - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Days after registration cancellation deadline (only for bank slip) - */ - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - private JsonNullable daysAfterDueDateToRegistrationCancellation; - - /** - * Free search field - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Number of installments (only in the case of installment payment) - */ - @JsonProperty("installmentCount") - private JsonNullable installmentCount; - - /** - * Enter the total amount of a charge that will be paid in installments (only in the case of an installment charge). If this field is sent, the installmentValue is not necessary, the calculation per installment will be automatic. - */ - @JsonProperty("totalValue") - private JsonNullable totalValue; - - /** - * Value of each installment (only in the case of installment payment). Send this field if you want to define the value of each installment. - */ - @JsonProperty("installmentValue") - private JsonNullable installmentValue; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("interest") - private JsonNullable interest; - - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Define whether the payment will be sent via post - */ - @JsonProperty("postalService") - private JsonNullable postalService; - - /** - * Split Settings - */ - @JsonProperty("split") - private JsonNullable> split; - - @JsonProperty("callback") - private JsonNullable callback; - - @JsonProperty("creditCard") - private JsonNullable creditCard; - - @JsonProperty("creditCardHolderInfo") - private JsonNullable creditCardHolderInfo; - - /** - * Credit card token for using the credit card tokenization functionality - */ - @JsonProperty("creditCardToken") - private JsonNullable creditCardToken; - - /** - * Carry out only the Pre-Authorization of the payment - */ - @JsonProperty("authorizeOnly") - private JsonNullable authorizeOnly; - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Long getDaysAfterDueDateToRegistrationCancellation() { - return daysAfterDueDateToRegistrationCancellation.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public Long getInstallmentCount() { - return installmentCount.orElse(null); - } - - @JsonIgnore - public Double getTotalValue() { - return totalValue.orElse(null); - } - - @JsonIgnore - public Double getInstallmentValue() { - return installmentValue.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineRequestDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public Boolean getPostalService() { - return postalService.orElse(null); - } - - @JsonIgnore - public List getSplit() { - return split.orElse(null); - } - - @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { - return callback.orElse(null); - } - - @JsonIgnore - public ApiCreditCardRequestDto getCreditCard() { - return creditCard.orElse(null); - } - - @JsonIgnore - public ApiCreditCardHolderInfoRequestDto getCreditCardHolderInfo() { - return creditCardHolderInfo.orElse(null); - } - - @JsonIgnore - public String getCreditCardToken() { - return creditCardToken.orElse(null); - } - - @JsonIgnore - public Boolean getAuthorizeOnly() { - return authorizeOnly.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSaveWithCreditCardRequestDtoBuilder { - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); - - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentCount = JsonNullable.undefined(); - - @JsonProperty("installmentCount") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder installmentCount(Long value) { - this.installmentCount = JsonNullable.of(value); - return this; - } - - private JsonNullable totalValue = JsonNullable.undefined(); - - @JsonProperty("totalValue") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder totalValue(Double value) { - this.totalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable installmentValue = JsonNullable.undefined(); - - @JsonProperty("installmentValue") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder installmentValue(Double value) { - this.installmentValue = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable postalService = JsonNullable.undefined(); - - @JsonProperty("postalService") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder postalService(Boolean value) { - this.postalService = JsonNullable.of(value); - return this; - } - - private JsonNullable> split = JsonNullable.undefined(); - - @JsonProperty("split") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder split(List value) { - this.split = JsonNullable.of(value); - return this; - } - - private JsonNullable callback = JsonNullable.undefined(); - - @JsonProperty("callback") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - this.callback = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCard = JsonNullable.undefined(); - - @JsonProperty("creditCard") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder creditCard(ApiCreditCardRequestDto value) { - this.creditCard = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCardHolderInfo = JsonNullable.undefined(); - - @JsonProperty("creditCardHolderInfo") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder creditCardHolderInfo(ApiCreditCardHolderInfoRequestDto value) { - this.creditCardHolderInfo = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCardToken = JsonNullable.undefined(); - - @JsonProperty("creditCardToken") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder creditCardToken(String value) { - this.creditCardToken = JsonNullable.of(value); - return this; - } - - private JsonNullable authorizeOnly = JsonNullable.undefined(); - - @JsonProperty("authorizeOnly") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder authorizeOnly(Boolean value) { - this.authorizeOnly = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateBankSlipResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateBankSlipResponseDto.java deleted file mode 100644 index 2cbe6d4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateBankSlipResponseDto.java +++ /dev/null @@ -1,80 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSimulateBankSlipResponseDto { - - /** - * Net value - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Fee value - */ - @JsonProperty("feeValue") - private JsonNullable feeValue; - - @JsonProperty("installment") - private JsonNullable installment; - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getFeeValue() { - return feeValue.orElse(null); - } - - @JsonIgnore - public ApiPaymentSimulateInstallmentResponseDto getInstallment() { - return installment.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSimulateBankSlipResponseDtoBuilder { - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiPaymentSimulateBankSlipResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable feeValue = JsonNullable.undefined(); - - @JsonProperty("feeValue") - public ApiPaymentSimulateBankSlipResponseDtoBuilder feeValue(Double value) { - this.feeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiPaymentSimulateBankSlipResponseDtoBuilder installment(ApiPaymentSimulateInstallmentResponseDto value) { - this.installment = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateCreditCardResponseDto.java deleted file mode 100644 index e15ad03..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateCreditCardResponseDto.java +++ /dev/null @@ -1,99 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSimulateCreditCardResponseDto { - - /** - * Net value - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Rate in percentage - */ - @JsonProperty("feePercentage") - private JsonNullable feePercentage; - - /** - * Operation fee - */ - @JsonProperty("operationFee") - private JsonNullable operationFee; - - @JsonProperty("installment") - private JsonNullable installment; - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getFeePercentage() { - return feePercentage.orElse(null); - } - - @JsonIgnore - public Double getOperationFee() { - return operationFee.orElse(null); - } - - @JsonIgnore - public ApiPaymentSimulateInstallmentResponseDto getInstallment() { - return installment.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSimulateCreditCardResponseDtoBuilder { - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiPaymentSimulateCreditCardResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable feePercentage = JsonNullable.undefined(); - - @JsonProperty("feePercentage") - public ApiPaymentSimulateCreditCardResponseDtoBuilder feePercentage(Double value) { - this.feePercentage = JsonNullable.of(value); - return this; - } - - private JsonNullable operationFee = JsonNullable.undefined(); - - @JsonProperty("operationFee") - public ApiPaymentSimulateCreditCardResponseDtoBuilder operationFee(Double value) { - this.operationFee = JsonNullable.of(value); - return this; - } - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiPaymentSimulateCreditCardResponseDtoBuilder installment(ApiPaymentSimulateInstallmentResponseDto value) { - this.installment = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateInstallmentResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateInstallmentResponseDto.java deleted file mode 100644 index 91af59b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateInstallmentResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSimulateInstallmentResponseDto { - - /** - * Net value - */ - @JsonProperty("paymentNetValue") - private JsonNullable paymentNetValue; - - /** - * Total value - */ - @JsonProperty("paymentValue") - private JsonNullable paymentValue; - - @JsonIgnore - public Double getPaymentNetValue() { - return paymentNetValue.orElse(null); - } - - @JsonIgnore - public Double getPaymentValue() { - return paymentValue.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSimulateInstallmentResponseDtoBuilder { - - private JsonNullable paymentNetValue = JsonNullable.undefined(); - - @JsonProperty("paymentNetValue") - public ApiPaymentSimulateInstallmentResponseDtoBuilder paymentNetValue(Double value) { - this.paymentNetValue = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentValue = JsonNullable.undefined(); - - @JsonProperty("paymentValue") - public ApiPaymentSimulateInstallmentResponseDtoBuilder paymentValue(Double value) { - this.paymentValue = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulatePixResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulatePixResponseDto.java deleted file mode 100644 index 720b733..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulatePixResponseDto.java +++ /dev/null @@ -1,99 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSimulatePixResponseDto { - - /** - * Net value - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Rate in percentage - */ - @JsonProperty("feePercentage") - private JsonNullable feePercentage; - - /** - * Fee value - */ - @JsonProperty("feeValue") - private JsonNullable feeValue; - - @JsonProperty("installment") - private JsonNullable installment; - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getFeePercentage() { - return feePercentage.orElse(null); - } - - @JsonIgnore - public Double getFeeValue() { - return feeValue.orElse(null); - } - - @JsonIgnore - public ApiPaymentSimulateInstallmentResponseDto getInstallment() { - return installment.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSimulatePixResponseDtoBuilder { - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiPaymentSimulatePixResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable feePercentage = JsonNullable.undefined(); - - @JsonProperty("feePercentage") - public ApiPaymentSimulatePixResponseDtoBuilder feePercentage(Double value) { - this.feePercentage = JsonNullable.of(value); - return this; - } - - private JsonNullable feeValue = JsonNullable.undefined(); - - @JsonProperty("feeValue") - public ApiPaymentSimulatePixResponseDtoBuilder feeValue(Double value) { - this.feeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiPaymentSimulatePixResponseDtoBuilder installment(ApiPaymentSimulateInstallmentResponseDto value) { - this.installment = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateRequestDto.java deleted file mode 100644 index 1c3a22c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateRequestDto.java +++ /dev/null @@ -1,59 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSimulateRequestDto { - - /** - * Total installment or billing amount - */ - @NonNull - private Double value; - - /** - * Form of payment - */ - @NonNull - private List billingTypes; - - /** - * Number of installments - */ - @JsonProperty("installmentCount") - private JsonNullable installmentCount; - - @JsonIgnore - public Long getInstallmentCount() { - return installmentCount.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSimulateRequestDtoBuilder { - - private JsonNullable installmentCount = JsonNullable.undefined(); - - @JsonProperty("installmentCount") - public ApiPaymentSimulateRequestDtoBuilder installmentCount(Long value) { - this.installmentCount = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateResponseDto.java deleted file mode 100644 index ecf5d93..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateResponseDto.java +++ /dev/null @@ -1,93 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSimulateResponseDto { - - /** - * Total installment or billing amount - */ - @JsonProperty("value") - private JsonNullable value; - - @JsonProperty("creditCard") - private JsonNullable creditCard; - - @JsonProperty("bankSlip") - private JsonNullable bankSlip; - - @JsonProperty("pix") - private JsonNullable pix; - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public ApiPaymentSimulateCreditCardResponseDto getCreditCard() { - return creditCard.orElse(null); - } - - @JsonIgnore - public ApiPaymentSimulateBankSlipResponseDto getBankSlip() { - return bankSlip.orElse(null); - } - - @JsonIgnore - public ApiPaymentSimulatePixResponseDto getPix() { - return pix.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSimulateResponseDtoBuilder { - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPaymentSimulateResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCard = JsonNullable.undefined(); - - @JsonProperty("creditCard") - public ApiPaymentSimulateResponseDtoBuilder creditCard(ApiPaymentSimulateCreditCardResponseDto value) { - this.creditCard = JsonNullable.of(value); - return this; - } - - private JsonNullable bankSlip = JsonNullable.undefined(); - - @JsonProperty("bankSlip") - public ApiPaymentSimulateResponseDtoBuilder bankSlip(ApiPaymentSimulateBankSlipResponseDto value) { - this.bankSlip = JsonNullable.of(value); - return this; - } - - private JsonNullable pix = JsonNullable.undefined(); - - @JsonProperty("pix") - public ApiPaymentSimulateResponseDtoBuilder pix(ApiPaymentSimulatePixResponseDto value) { - this.pix = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponseDto.java deleted file mode 100644 index c75a50b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponseDto.java +++ /dev/null @@ -1,200 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSplitGetResponseDto { - - /** - * Unique split identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Asaas wallet identifier that will be transferred - */ - @JsonProperty("walletId") - private JsonNullable walletId; - - /** - * Fixed amount to be transferred to the account when the charge is received - */ - @JsonProperty("fixedValue") - private JsonNullable fixedValue; - - /** - * Percentage of the net value of the charge to be transferred when received - */ - @JsonProperty("percentualValue") - private JsonNullable percentualValue; - - /** - * Amount that will be split relative to the total amount that will be paid - */ - @JsonProperty("totalValue") - private JsonNullable totalValue; - - /** - * Reason for canceling the split - */ - @JsonProperty("cancellationReason") - private JsonNullable cancellationReason; - - /** - * Split status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Unique identifier of split in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Split description - */ - @JsonProperty("description") - private JsonNullable description; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getWalletId() { - return walletId.orElse(null); - } - - @JsonIgnore - public Double getFixedValue() { - return fixedValue.orElse(null); - } - - @JsonIgnore - public Double getPercentualValue() { - return percentualValue.orElse(null); - } - - @JsonIgnore - public Double getTotalValue() { - return totalValue.orElse(null); - } - - @JsonIgnore - public ApiPaymentSplitGetResponsePaymentSplitCancellationReason getCancellationReason() { - return cancellationReason.orElse(null); - } - - @JsonIgnore - public ApiPaymentSplitGetResponsePaymentSplitStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSplitGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPaymentSplitGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable walletId = JsonNullable.undefined(); - - @JsonProperty("walletId") - public ApiPaymentSplitGetResponseDtoBuilder walletId(String value) { - this.walletId = JsonNullable.of(value); - return this; - } - - private JsonNullable fixedValue = JsonNullable.undefined(); - - @JsonProperty("fixedValue") - public ApiPaymentSplitGetResponseDtoBuilder fixedValue(Double value) { - this.fixedValue = JsonNullable.of(value); - return this; - } - - private JsonNullable percentualValue = JsonNullable.undefined(); - - @JsonProperty("percentualValue") - public ApiPaymentSplitGetResponseDtoBuilder percentualValue(Double value) { - this.percentualValue = JsonNullable.of(value); - return this; - } - - private JsonNullable totalValue = JsonNullable.undefined(); - - @JsonProperty("totalValue") - public ApiPaymentSplitGetResponseDtoBuilder totalValue(Double value) { - this.totalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable cancellationReason = - JsonNullable.undefined(); - - @JsonProperty("cancellationReason") - public ApiPaymentSplitGetResponseDtoBuilder cancellationReason( - ApiPaymentSplitGetResponsePaymentSplitCancellationReason value - ) { - this.cancellationReason = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentSplitGetResponseDtoBuilder status(ApiPaymentSplitGetResponsePaymentSplitStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPaymentSplitGetResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentSplitGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.java deleted file mode 100644 index f8c7a2e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Reason for canceling the split - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentSplitGetResponsePaymentSplitCancellationReason { - PAYMENT_DELETED("PAYMENT_DELETED"), - PAYMENT_OVERDUE("PAYMENT_OVERDUE"), - PAYMENT_RECEIVED_IN_CASH("PAYMENT_RECEIVED_IN_CASH"), - PAYMENT_REFUNDED("PAYMENT_REFUNDED"), - VALUE_DIVERGENCE_BLOCK("VALUE_DIVERGENCE_BLOCK"), - WALLET_UNABLE_TO_RECEIVE("WALLET_UNABLE_TO_RECEIVE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentSplitGetResponsePaymentSplitCancellationReason fromValue(String value) { - return Arrays.stream(ApiPaymentSplitGetResponsePaymentSplitCancellationReason.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitStatus.java deleted file mode 100644 index 2698c5b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitStatus.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Split status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentSplitGetResponsePaymentSplitStatus { - PENDING("PENDING"), - AWAITING_CREDIT("AWAITING_CREDIT"), - CANCELLED("CANCELLED"), - DONE("DONE"), - REFUNDED("REFUNDED"), - BLOCKED_BY_VALUE_DIVERGENCE("BLOCKED_BY_VALUE_DIVERGENCE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentSplitGetResponsePaymentSplitStatus fromValue(String value) { - return Arrays.stream(ApiPaymentSplitGetResponsePaymentSplitStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.java deleted file mode 100644 index ce3ad5c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentSplitListPaidRequestPaymentSplitStatus { - PENDING("PENDING"), - AWAITING_CREDIT("AWAITING_CREDIT"), - CANCELLED("CANCELLED"), - DONE("DONE"), - REFUNDED("REFUNDED"), - BLOCKED_BY_VALUE_DIVERGENCE("BLOCKED_BY_VALUE_DIVERGENCE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentSplitListPaidRequestPaymentSplitStatus fromValue(String value) { - return Arrays.stream(ApiPaymentSplitListPaidRequestPaymentSplitStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.java deleted file mode 100644 index 04335a5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentSplitListReceivedRequestPaymentSplitStatus { - PENDING("PENDING"), - AWAITING_CREDIT("AWAITING_CREDIT"), - CANCELLED("CANCELLED"), - DONE("DONE"), - REFUNDED("REFUNDED"), - BLOCKED_BY_VALUE_DIVERGENCE("BLOCKED_BY_VALUE_DIVERGENCE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentSplitListReceivedRequestPaymentSplitStatus fromValue(String value) { - return Arrays.stream(ApiPaymentSplitListReceivedRequestPaymentSplitStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListResponseDto.java deleted file mode 100644 index ccc226c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSplitListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSplitListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPaymentSplitListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPaymentSplitListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPaymentSplitListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPaymentSplitListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPaymentSplitListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPaymentSplitListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index 4fb3c70..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitRequestDto.java +++ /dev/null @@ -1,128 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentSplitRequestDto { - - /** - * Asaas wallet identifier that will be transferred - */ - @NonNull - private String walletId; - - /** - * Fixed amount to be transferred to the account when the payment is received - */ - @JsonProperty("fixedValue") - private JsonNullable fixedValue; - - /** - * Percentage of the net value of the charge to be transferred when received - */ - @JsonProperty("percentualValue") - private JsonNullable percentualValue; - - /** - * (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. - */ - @JsonProperty("totalFixedValue") - private JsonNullable totalFixedValue; - - /** - * Split identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Split description - */ - @JsonProperty("description") - private JsonNullable description; - - @JsonIgnore - public Double getFixedValue() { - return fixedValue.orElse(null); - } - - @JsonIgnore - public Double getPercentualValue() { - return percentualValue.orElse(null); - } - - @JsonIgnore - public Double getTotalFixedValue() { - return totalFixedValue.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentSplitRequestDtoBuilder { - - private JsonNullable fixedValue = JsonNullable.undefined(); - - @JsonProperty("fixedValue") - public ApiPaymentSplitRequestDtoBuilder fixedValue(Double value) { - this.fixedValue = JsonNullable.of(value); - return this; - } - - private JsonNullable percentualValue = JsonNullable.undefined(); - - @JsonProperty("percentualValue") - public ApiPaymentSplitRequestDtoBuilder percentualValue(Double value) { - this.percentualValue = JsonNullable.of(value); - return this; - } - - private JsonNullable totalFixedValue = JsonNullable.undefined(); - - @JsonProperty("totalFixedValue") - public ApiPaymentSplitRequestDtoBuilder totalFixedValue(Double value) { - this.totalFixedValue = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPaymentSplitRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentSplitRequestDtoBuilder description(String value) { - 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 deleted file mode 100644 index 9e21e8e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponseDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentStatusResponseDto { - - /** - * Payment status - */ - @JsonProperty("status") - private JsonNullable status; - - @JsonIgnore - public ApiPaymentStatusResponsePaymentStatus getStatus() { - return status.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentStatusResponseDtoBuilder { - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPaymentStatusResponseDtoBuilder status(ApiPaymentStatusResponsePaymentStatus value) { - this.status = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponsePaymentStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponsePaymentStatus.java deleted file mode 100644 index 1bef4d0..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponsePaymentStatus.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment status - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentStatusResponsePaymentStatus { - PENDING("PENDING"), - RECEIVED("RECEIVED"), - CONFIRMED("CONFIRMED"), - OVERDUE("OVERDUE"), - REFUNDED("REFUNDED"), - RECEIVED_IN_CASH("RECEIVED_IN_CASH"), - REFUND_REQUESTED("REFUND_REQUESTED"), - REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), - CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), - CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), - AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), - DUNNING_REQUESTED("DUNNING_REQUESTED"), - DUNNING_RECEIVED("DUNNING_RECEIVED"), - AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentStatusResponsePaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentStatusResponsePaymentStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestBillingType.java deleted file mode 100644 index 07a2952..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Payment billing type - */ -@Getter -@AllArgsConstructor -public enum ApiPaymentUpdateRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPaymentUpdateRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentUpdateRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestDto.java deleted file mode 100644 index ac7e69a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestDto.java +++ /dev/null @@ -1,205 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentUpdateRequestDto { - - /** - * Payment billing type - */ - @NonNull - private ApiPaymentUpdateRequestBillingType billingType; - - /** - * Payment amount - */ - @NonNull - private Double value; - - /** - * Payment due date - */ - @NonNull - private String dueDate; - - /** - * Payment description (max. 500 characters) - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Days after registration cancellation deadline (only for bank slip) - */ - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - private JsonNullable daysAfterDueDateToRegistrationCancellation; - - /** - * Free search field - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("interest") - private JsonNullable interest; - - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Define whether the payment will be sent via post - */ - @JsonProperty("postalService") - private JsonNullable postalService; - - /** - * Split Settings - */ - @JsonProperty("split") - private JsonNullable> split; - - @JsonProperty("callback") - private JsonNullable callback; - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Long getDaysAfterDueDateToRegistrationCancellation() { - return daysAfterDueDateToRegistrationCancellation.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineRequestDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public Boolean getPostalService() { - return postalService.orElse(null); - } - - @JsonIgnore - public List getSplit() { - return split.orElse(null); - } - - @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { - return callback.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentUpdateRequestDtoBuilder { - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPaymentUpdateRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); - - @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiPaymentUpdateRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { - this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPaymentUpdateRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiPaymentUpdateRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiPaymentUpdateRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiPaymentUpdateRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable postalService = JsonNullable.undefined(); - - @JsonProperty("postalService") - public ApiPaymentUpdateRequestDtoBuilder postalService(Boolean value) { - this.postalService = JsonNullable.of(value); - return this; - } - - private JsonNullable> split = JsonNullable.undefined(); - - @JsonProperty("split") - public ApiPaymentUpdateRequestDtoBuilder split(List value) { - this.split = JsonNullable.of(value); - return this; - } - - private JsonNullable callback = JsonNullable.undefined(); - - @JsonProperty("callback") - public ApiPaymentUpdateRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - 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 deleted file mode 100644 index 218ffec..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentViewingInfoResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPaymentViewingInfoResponseDto { - - /** - * Invoice viewing date and time - */ - @JsonProperty("invoiceViewedDate") - private JsonNullable invoiceViewedDate; - - /** - * Bill viewing date and time - */ - @JsonProperty("boletoViewedDate") - private JsonNullable boletoViewedDate; - - @JsonIgnore - public String getInvoiceViewedDate() { - return invoiceViewedDate.orElse(null); - } - - @JsonIgnore - public String getBoletoViewedDate() { - return boletoViewedDate.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPaymentViewingInfoResponseDtoBuilder { - - private JsonNullable invoiceViewedDate = JsonNullable.undefined(); - - @JsonProperty("invoiceViewedDate") - public ApiPaymentViewingInfoResponseDtoBuilder invoiceViewedDate(String value) { - this.invoiceViewedDate = JsonNullable.of(value); - return this; - } - - private JsonNullable boletoViewedDate = JsonNullable.undefined(); - - @JsonProperty("boletoViewedDate") - public ApiPaymentViewingInfoResponseDtoBuilder boletoViewedDate(String value) { - 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 deleted file mode 100644 index d99d504..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponseDto.java +++ /dev/null @@ -1,175 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixAddressKeyGetResponseDto { - - /** - * Unique Pix key identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Key value - */ - @JsonProperty("key") - private JsonNullable key; - - /** - * Pix key type - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Key status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Key creation date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Determines whether the key can be deleted - */ - @JsonProperty("canBeDeleted") - private JsonNullable canBeDeleted; - - /** - * Reason it cannot be removed - */ - @JsonProperty("cannotBeDeletedReason") - private JsonNullable cannotBeDeletedReason; - - @JsonProperty("qrCode") - private JsonNullable qrCode; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getKey() { - return key.orElse(null); - } - - @JsonIgnore - public ApiPixAddressKeyGetResponsePixAddressKeyType getType() { - return type.orElse(null); - } - - @JsonIgnore - public ApiPixAddressKeyGetResponsePixAddressKeyStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public Boolean getCanBeDeleted() { - return canBeDeleted.orElse(null); - } - - @JsonIgnore - public String getCannotBeDeletedReason() { - return cannotBeDeletedReason.orElse(null); - } - - @JsonIgnore - public ApiPixAddressKeyQrCodeGetResponseDto getQrCode() { - return qrCode.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixAddressKeyGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPixAddressKeyGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable key = JsonNullable.undefined(); - - @JsonProperty("key") - public ApiPixAddressKeyGetResponseDtoBuilder key(String value) { - this.key = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiPixAddressKeyGetResponseDtoBuilder type(ApiPixAddressKeyGetResponsePixAddressKeyType value) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPixAddressKeyGetResponseDtoBuilder status(ApiPixAddressKeyGetResponsePixAddressKeyStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiPixAddressKeyGetResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable canBeDeleted = JsonNullable.undefined(); - - @JsonProperty("canBeDeleted") - public ApiPixAddressKeyGetResponseDtoBuilder canBeDeleted(Boolean value) { - this.canBeDeleted = JsonNullable.of(value); - return this; - } - - private JsonNullable cannotBeDeletedReason = JsonNullable.undefined(); - - @JsonProperty("cannotBeDeletedReason") - public ApiPixAddressKeyGetResponseDtoBuilder cannotBeDeletedReason(String value) { - this.cannotBeDeletedReason = JsonNullable.of(value); - return this; - } - - private JsonNullable qrCode = JsonNullable.undefined(); - - @JsonProperty("qrCode") - public ApiPixAddressKeyGetResponseDtoBuilder qrCode(ApiPixAddressKeyQrCodeGetResponseDto value) { - this.qrCode = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.java deleted file mode 100644 index 99d4004..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Key status - */ -@Getter -@AllArgsConstructor -public enum ApiPixAddressKeyGetResponsePixAddressKeyStatus { - AWAITING_ACTIVATION("AWAITING_ACTIVATION"), - ACTIVE("ACTIVE"), - AWAITING_DELETION("AWAITING_DELETION"), - AWAITING_ACCOUNT_DELETION("AWAITING_ACCOUNT_DELETION"), - DELETED("DELETED"), - ERROR("ERROR"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixAddressKeyGetResponsePixAddressKeyStatus fromValue(String value) { - return Arrays.stream(ApiPixAddressKeyGetResponsePixAddressKeyStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyType.java deleted file mode 100644 index 3e7aad6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyType.java +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Pix key type - */ -@Getter -@AllArgsConstructor -public enum ApiPixAddressKeyGetResponsePixAddressKeyType { - EVP("EVP"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixAddressKeyGetResponsePixAddressKeyType fromValue(String value) { - return Arrays.stream(ApiPixAddressKeyGetResponsePixAddressKeyType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.java deleted file mode 100644 index 6de14f1..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by current key status - */ -@Getter -@AllArgsConstructor -public enum ApiPixAddressKeyListRequestPixAddressKeyStatus { - AWAITING_ACTIVATION("AWAITING_ACTIVATION"), - ACTIVE("ACTIVE"), - AWAITING_DELETION("AWAITING_DELETION"), - AWAITING_ACCOUNT_DELETION("AWAITING_ACCOUNT_DELETION"), - DELETED("DELETED"), - ERROR("ERROR"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixAddressKeyListRequestPixAddressKeyStatus fromValue(String value) { - return Arrays.stream(ApiPixAddressKeyListRequestPixAddressKeyStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListResponseDto.java deleted file mode 100644 index f6483fb..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListResponseDto.java +++ /dev/null @@ -1,46 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixAddressKeyListResponseDto { - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixAddressKeyListResponseDtoBuilder { - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPixAddressKeyListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index ee9e5fc..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyQrCodeGetResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixAddressKeyQrCodeGetResponseDto { - - /** - * QrCode image in base64 - */ - @JsonProperty("encodedImage") - private JsonNullable encodedImage; - - /** - * Copy and Paste the QrCode - */ - @JsonProperty("payload") - private JsonNullable payload; - - @JsonIgnore - public String getEncodedImage() { - return encodedImage.orElse(null); - } - - @JsonIgnore - public String getPayload() { - return payload.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixAddressKeyQrCodeGetResponseDtoBuilder { - - private JsonNullable encodedImage = JsonNullable.undefined(); - - @JsonProperty("encodedImage") - public ApiPixAddressKeyQrCodeGetResponseDtoBuilder encodedImage(String value) { - this.encodedImage = JsonNullable.of(value); - return this; - } - - private JsonNullable payload = JsonNullable.undefined(); - - @JsonProperty("payload") - public ApiPixAddressKeyQrCodeGetResponseDtoBuilder payload(String value) { - this.payload = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestDto.java deleted file mode 100644 index 6b66633..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestDto.java +++ /dev/null @@ -1,26 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixAddressKeySaveRequestDto { - - /** - * Pix key type - */ - @NonNull - private ApiPixAddressKeySaveRequestPixAddressKeyType type; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestPixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestPixAddressKeyType.java deleted file mode 100644 index 1670845..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestPixAddressKeyType.java +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Pix key type - */ -@Getter -@AllArgsConstructor -public enum ApiPixAddressKeySaveRequestPixAddressKeyType { - EVP("EVP"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixAddressKeySaveRequestPixAddressKeyType fromValue(String value) { - return Arrays.stream(ApiPixAddressKeySaveRequestPixAddressKeyType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixOriginalTransactionResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixOriginalTransactionResponseDto.java deleted file mode 100644 index 333624e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixOriginalTransactionResponseDto.java +++ /dev/null @@ -1,102 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixOriginalTransactionResponseDto { - - /** - * Unique transaction identifier - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Unique identifier of the Pix transaction at the Central Bank - */ - @JsonProperty("endToEndIdentifier") - private JsonNullable endToEndIdentifier; - - /** - * Original transaction value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Transaction date - */ - @JsonProperty("effectiveDate") - private JsonNullable effectiveDate; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getEndToEndIdentifier() { - return endToEndIdentifier.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getEffectiveDate() { - return effectiveDate.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixOriginalTransactionResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPixOriginalTransactionResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable endToEndIdentifier = JsonNullable.undefined(); - - @JsonProperty("endToEndIdentifier") - public ApiPixOriginalTransactionResponseDtoBuilder endToEndIdentifier(String value) { - this.endToEndIdentifier = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPixOriginalTransactionResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable effectiveDate = JsonNullable.undefined(); - - @JsonProperty("effectiveDate") - public ApiPixOriginalTransactionResponseDtoBuilder effectiveDate(String value) { - 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 deleted file mode 100644 index 9592682..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverDto.java +++ /dev/null @@ -1,159 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixQrCodeDecodeReceiverDto { - - /** - * Financial institution code - */ - @JsonProperty("ispb") - private JsonNullable ispb; - - /** - * Name of the financial institution - */ - @JsonProperty("ispbName") - private JsonNullable ispbName; - - /** - * Receiver name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Receiver's trade name - */ - @JsonProperty("tradingName") - private JsonNullable tradingName; - - /** - * CPF or CNPJ of the receiver - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Person type - */ - @JsonProperty("personType") - private JsonNullable personType; - - /** - * Receiver account type - */ - @JsonProperty("accountType") - private JsonNullable accountType; - - @JsonIgnore - public String getIspb() { - return ispb.orElse(null); - } - - @JsonIgnore - public String getIspbName() { - return ispbName.orElse(null); - } - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getTradingName() { - return tradingName.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public ApiPixQrCodeDecodeReceiverPersonType getPersonType() { - return personType.orElse(null); - } - - @JsonIgnore - public ApiPixQrCodeDecodeReceiverPixAccountType getAccountType() { - return accountType.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixQrCodeDecodeReceiverDtoBuilder { - - private JsonNullable ispb = JsonNullable.undefined(); - - @JsonProperty("ispb") - public ApiPixQrCodeDecodeReceiverDtoBuilder ispb(String value) { - this.ispb = JsonNullable.of(value); - return this; - } - - private JsonNullable ispbName = JsonNullable.undefined(); - - @JsonProperty("ispbName") - public ApiPixQrCodeDecodeReceiverDtoBuilder ispbName(String value) { - this.ispbName = JsonNullable.of(value); - return this; - } - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiPixQrCodeDecodeReceiverDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable tradingName = JsonNullable.undefined(); - - @JsonProperty("tradingName") - public ApiPixQrCodeDecodeReceiverDtoBuilder tradingName(String value) { - this.tradingName = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiPixQrCodeDecodeReceiverDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable personType = JsonNullable.undefined(); - - @JsonProperty("personType") - public ApiPixQrCodeDecodeReceiverDtoBuilder personType(ApiPixQrCodeDecodeReceiverPersonType value) { - this.personType = JsonNullable.of(value); - return this; - } - - private JsonNullable accountType = JsonNullable.undefined(); - - @JsonProperty("accountType") - public ApiPixQrCodeDecodeReceiverDtoBuilder accountType(ApiPixQrCodeDecodeReceiverPixAccountType value) { - this.accountType = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPersonType.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPersonType.java deleted file mode 100644 index f9cdb18..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPersonType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Person type - */ -@Getter -@AllArgsConstructor -public enum ApiPixQrCodeDecodeReceiverPersonType { - JURIDICA("JURIDICA"), - FISICA("FISICA"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixQrCodeDecodeReceiverPersonType fromValue(String value) { - return Arrays.stream(ApiPixQrCodeDecodeReceiverPersonType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPixAccountType.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPixAccountType.java deleted file mode 100644 index 133ff6a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPixAccountType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Receiver account type - */ -@Getter -@AllArgsConstructor -public enum ApiPixQrCodeDecodeReceiverPixAccountType { - CHECKING_ACCOUNT("CHECKING_ACCOUNT"), - SALARY_ACCOUNT("SALARY_ACCOUNT"), - INVESTIMENT_ACCOUNT("INVESTIMENT_ACCOUNT"), - PAYMENT_ACCOUNT("PAYMENT_ACCOUNT"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixQrCodeDecodeReceiverPixAccountType fromValue(String value) { - return Arrays.stream(ApiPixQrCodeDecodeReceiverPixAccountType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeRequestDto.java deleted file mode 100644 index bc2a4c6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeRequestDto.java +++ /dev/null @@ -1,52 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixQrCodeDecodeRequestDto { - - /** - * QRCode payload - */ - @NonNull - private String payload; - - /** - * Change amount (for QRCode Change) - */ - @JsonProperty("changeValue") - private JsonNullable changeValue; - - @JsonIgnore - public Double getChangeValue() { - return changeValue.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixQrCodeDecodeRequestDtoBuilder { - - private JsonNullable changeValue = JsonNullable.undefined(); - - @JsonProperty("changeValue") - public ApiPixQrCodeDecodeRequestDtoBuilder changeValue(Double value) { - 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 deleted file mode 100644 index ce2def6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponseDto.java +++ /dev/null @@ -1,424 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixQrCodeDecodeResponseDto { - - /** - * Copy and Paste of the QRCode - */ - @JsonProperty("payload") - private JsonNullable payload; - - /** - * QRCode Type - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Transaction origin - */ - @JsonProperty("transactionOriginType") - private JsonNullable transactionOriginType; - - /** - * Pix key used - */ - @JsonProperty("pixKey") - private JsonNullable pixKey; - - /** - * Unique Pix reconciliation identifier with Asaas - */ - @JsonProperty("conciliationIdentifier") - private JsonNullable conciliationIdentifier; - - /** - * Due date - */ - @JsonProperty("dueDate") - private JsonNullable dueDate; - - /** - * Expiration date - */ - @JsonProperty("expirationDate") - private JsonNullable expirationDate; - - /** - * Used to indicate whether it is a Withdrawal or Change - */ - @JsonProperty("finality") - private JsonNullable finality; - - /** - * QRCode Value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Change value - */ - @JsonProperty("changeValue") - private JsonNullable changeValue; - - /** - * Interest value - */ - @JsonProperty("interest") - private JsonNullable interest; - - /** - * Fine value - */ - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Discount value - */ - @JsonProperty("discount") - private JsonNullable discount; - - /** - * Total amount with fine, interest and discount applied - */ - @JsonProperty("totalValue") - private JsonNullable totalValue; - - /** - * Informs if the QRCode can be paid with another amount - */ - @JsonProperty("canBePaidWithDifferentValue") - private JsonNullable canBePaidWithDifferentValue; - - /** - * Informs whether the change can be paid with another amount - */ - @JsonProperty("canBeModifyChangeValue") - private JsonNullable canBeModifyChangeValue; - - @JsonProperty("receiver") - private JsonNullable receiver; - - @JsonProperty("payer") - private JsonNullable payer; - - /** - * Description provided during the creation of the QRCode - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Informs if the QRCode can be paid - */ - @JsonProperty("canBePaid") - private JsonNullable canBePaid; - - /** - * Informs why QRCode cannot be paid - */ - @JsonProperty("cannotBePaidReason") - private JsonNullable cannotBePaidReason; - - @JsonIgnore - public String getPayload() { - return payload.orElse(null); - } - - @JsonIgnore - public ApiPixQrCodeDecodeResponsePixQrCodeType getType() { - return type.orElse(null); - } - - @JsonIgnore - public ApiPixQrCodeDecodeResponsePixTransactionOriginType getTransactionOriginType() { - return transactionOriginType.orElse(null); - } - - @JsonIgnore - public String getPixKey() { - return pixKey.orElse(null); - } - - @JsonIgnore - public String getConciliationIdentifier() { - return conciliationIdentifier.orElse(null); - } - - @JsonIgnore - public String getDueDate() { - return dueDate.orElse(null); - } - - @JsonIgnore - public String getExpirationDate() { - return expirationDate.orElse(null); - } - - @JsonIgnore - public ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality getFinality() { - return finality.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getChangeValue() { - return changeValue.orElse(null); - } - - @JsonIgnore - public Double getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public Double getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public Double getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public Double getTotalValue() { - return totalValue.orElse(null); - } - - @JsonIgnore - public Boolean getCanBePaidWithDifferentValue() { - return canBePaidWithDifferentValue.orElse(null); - } - - @JsonIgnore - public Boolean getCanBeModifyChangeValue() { - return canBeModifyChangeValue.orElse(null); - } - - @JsonIgnore - public ApiPixQrCodeDecodeReceiverDto getReceiver() { - return receiver.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionQrCodePayerResponseDto getPayer() { - return payer.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Boolean getCanBePaid() { - return canBePaid.orElse(null); - } - - @JsonIgnore - public String getCannotBePaidReason() { - return cannotBePaidReason.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixQrCodeDecodeResponseDtoBuilder { - - private JsonNullable payload = JsonNullable.undefined(); - - @JsonProperty("payload") - public ApiPixQrCodeDecodeResponseDtoBuilder payload(String value) { - this.payload = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiPixQrCodeDecodeResponseDtoBuilder type(ApiPixQrCodeDecodeResponsePixQrCodeType value) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable transactionOriginType = - JsonNullable.undefined(); - - @JsonProperty("transactionOriginType") - public ApiPixQrCodeDecodeResponseDtoBuilder transactionOriginType( - ApiPixQrCodeDecodeResponsePixTransactionOriginType value - ) { - this.transactionOriginType = JsonNullable.of(value); - return this; - } - - private JsonNullable pixKey = JsonNullable.undefined(); - - @JsonProperty("pixKey") - public ApiPixQrCodeDecodeResponseDtoBuilder pixKey(String value) { - this.pixKey = JsonNullable.of(value); - return this; - } - - private JsonNullable conciliationIdentifier = JsonNullable.undefined(); - - @JsonProperty("conciliationIdentifier") - public ApiPixQrCodeDecodeResponseDtoBuilder conciliationIdentifier(String value) { - this.conciliationIdentifier = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDate = JsonNullable.undefined(); - - @JsonProperty("dueDate") - public ApiPixQrCodeDecodeResponseDtoBuilder dueDate(String value) { - this.dueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable expirationDate = JsonNullable.undefined(); - - @JsonProperty("expirationDate") - public ApiPixQrCodeDecodeResponseDtoBuilder expirationDate(String value) { - this.expirationDate = JsonNullable.of(value); - return this; - } - - private JsonNullable finality = JsonNullable.undefined(); - - @JsonProperty("finality") - public ApiPixQrCodeDecodeResponseDtoBuilder finality( - ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality value - ) { - this.finality = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPixQrCodeDecodeResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable changeValue = JsonNullable.undefined(); - - @JsonProperty("changeValue") - public ApiPixQrCodeDecodeResponseDtoBuilder changeValue(Double value) { - this.changeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiPixQrCodeDecodeResponseDtoBuilder interest(Double value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiPixQrCodeDecodeResponseDtoBuilder fine(Double value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiPixQrCodeDecodeResponseDtoBuilder discount(Double value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable totalValue = JsonNullable.undefined(); - - @JsonProperty("totalValue") - public ApiPixQrCodeDecodeResponseDtoBuilder totalValue(Double value) { - this.totalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable canBePaidWithDifferentValue = JsonNullable.undefined(); - - @JsonProperty("canBePaidWithDifferentValue") - public ApiPixQrCodeDecodeResponseDtoBuilder canBePaidWithDifferentValue(Boolean value) { - this.canBePaidWithDifferentValue = JsonNullable.of(value); - return this; - } - - private JsonNullable canBeModifyChangeValue = JsonNullable.undefined(); - - @JsonProperty("canBeModifyChangeValue") - public ApiPixQrCodeDecodeResponseDtoBuilder canBeModifyChangeValue(Boolean value) { - this.canBeModifyChangeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable receiver = JsonNullable.undefined(); - - @JsonProperty("receiver") - public ApiPixQrCodeDecodeResponseDtoBuilder receiver(ApiPixQrCodeDecodeReceiverDto value) { - this.receiver = JsonNullable.of(value); - return this; - } - - private JsonNullable payer = JsonNullable.undefined(); - - @JsonProperty("payer") - public ApiPixQrCodeDecodeResponseDtoBuilder payer(ApiPixTransactionQrCodePayerResponseDto value) { - this.payer = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPixQrCodeDecodeResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable canBePaid = JsonNullable.undefined(); - - @JsonProperty("canBePaid") - public ApiPixQrCodeDecodeResponseDtoBuilder canBePaid(Boolean value) { - this.canBePaid = JsonNullable.of(value); - return this; - } - - private JsonNullable cannotBePaidReason = JsonNullable.undefined(); - - @JsonProperty("cannotBePaidReason") - public ApiPixQrCodeDecodeResponseDtoBuilder cannotBePaidReason(String value) { - this.cannotBePaidReason = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixQrCodeType.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixQrCodeType.java deleted file mode 100644 index 448dc6e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixQrCodeType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * QRCode Type - */ -@Getter -@AllArgsConstructor -public enum ApiPixQrCodeDecodeResponsePixQrCodeType { - STATIC_("STATIC"), - DYNAMIC("DYNAMIC"), - DYNAMIC_WITH_ASAAS_ADDRESS_KEY("DYNAMIC_WITH_ASAAS_ADDRESS_KEY"), - COMPOSITE("COMPOSITE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixQrCodeDecodeResponsePixQrCodeType fromValue(String value) { - return Arrays.stream(ApiPixQrCodeDecodeResponsePixQrCodeType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.java deleted file mode 100644 index e445cb1..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Used to indicate whether it is a Withdrawal or Change - */ -@Getter -@AllArgsConstructor -public enum ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality { - WITHDRAWAL("WITHDRAWAL"), - CHANGE("CHANGE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality fromValue(String value) { - return Arrays.stream(ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.java deleted file mode 100644 index 753b7ef..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Transaction origin - */ -@Getter -@AllArgsConstructor -public enum ApiPixQrCodeDecodeResponsePixTransactionOriginType { - MANUAL("MANUAL"), - ADDRESS_KEY("ADDRESS_KEY"), - STATIC_QRCODE("STATIC_QRCODE"), - DYNAMIC_QRCODE("DYNAMIC_QRCODE"), - PAYMENT_INITIATION_SERVICE("PAYMENT_INITIATION_SERVICE"), - AUTOMATIC_RECURRING("AUTOMATIC_RECURRING"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixQrCodeDecodeResponsePixTransactionOriginType fromValue(String value) { - return Arrays.stream(ApiPixQrCodeDecodeResponsePixTransactionOriginType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDeleteResponseDto.java deleted file mode 100644 index 67d9b13..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDeleteResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixQrCodeDeleteResponseDto { - - /** - * QR Code identifier - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Indicates whether the QR Code has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixQrCodeDeleteResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPixQrCodeDeleteResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiPixQrCodeDeleteResponseDtoBuilder deleted(Boolean value) { - 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 deleted file mode 100644 index deec28a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveRequestDto.java +++ /dev/null @@ -1,178 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixQrCodeSaveRequestDto { - - /** - * Key that will receive QrCode payments - */ - @JsonProperty("addressKey") - private JsonNullable addressKey; - - /** - * QrCode Description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Value of the QrCode, if not informed, the payer can choose the value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * QrCode Format - */ - @JsonProperty("format") - private JsonNullable format; - - /** - * QrCode expiration date/time, after this date all payments will be refused. - */ - @JsonProperty("expirationDate") - private JsonNullable expirationDate; - - /** - * Determines the expiration date in seconds. - */ - @JsonProperty("expirationSeconds") - private JsonNullable expirationSeconds; - - /** - * Defines whether the QrCode can be paid multiple times, if not entered the default value is true. - */ - @JsonProperty("allowsMultiplePayments") - private JsonNullable allowsMultiplePayments; - - /** - * Free search field - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - @JsonIgnore - public String getAddressKey() { - return addressKey.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Format getFormat() { - return format.orElse(null); - } - - @JsonIgnore - public String getExpirationDate() { - return expirationDate.orElse(null); - } - - @JsonIgnore - public Long getExpirationSeconds() { - return expirationSeconds.orElse(null); - } - - @JsonIgnore - public Boolean getAllowsMultiplePayments() { - return allowsMultiplePayments.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixQrCodeSaveRequestDtoBuilder { - - private JsonNullable addressKey = JsonNullable.undefined(); - - @JsonProperty("addressKey") - public ApiPixQrCodeSaveRequestDtoBuilder addressKey(String value) { - this.addressKey = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPixQrCodeSaveRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPixQrCodeSaveRequestDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable format = JsonNullable.undefined(); - - @JsonProperty("format") - public ApiPixQrCodeSaveRequestDtoBuilder format(Format value) { - this.format = JsonNullable.of(value); - return this; - } - - private JsonNullable expirationDate = JsonNullable.undefined(); - - @JsonProperty("expirationDate") - public ApiPixQrCodeSaveRequestDtoBuilder expirationDate(String value) { - this.expirationDate = JsonNullable.of(value); - return this; - } - - private JsonNullable expirationSeconds = JsonNullable.undefined(); - - @JsonProperty("expirationSeconds") - public ApiPixQrCodeSaveRequestDtoBuilder expirationSeconds(Long value) { - this.expirationSeconds = JsonNullable.of(value); - return this; - } - - private JsonNullable allowsMultiplePayments = JsonNullable.undefined(); - - @JsonProperty("allowsMultiplePayments") - public ApiPixQrCodeSaveRequestDtoBuilder allowsMultiplePayments(Boolean value) { - this.allowsMultiplePayments = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPixQrCodeSaveRequestDtoBuilder externalReference(String value) { - 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 deleted file mode 100644 index 8859f38..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveResponseDto.java +++ /dev/null @@ -1,140 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixQrCodeSaveResponseDto { - - /** - * qrCode image in base64 - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * QrCode identifier - */ - @JsonProperty("encodedImage") - private JsonNullable encodedImage; - - /** - * Copy and Paste the QrCode - */ - @JsonProperty("payload") - private JsonNullable payload; - - /** - * Indicates whether multiple payments are allowed - */ - @JsonProperty("allowsMultiplePayments") - private JsonNullable allowsMultiplePayments; - - /** - * QrCode expiration date/time, after this date all payments will be refused - */ - @JsonProperty("expirationDate") - private JsonNullable expirationDate; - - /** - * Free search field - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getEncodedImage() { - return encodedImage.orElse(null); - } - - @JsonIgnore - public String getPayload() { - return payload.orElse(null); - } - - @JsonIgnore - public Boolean getAllowsMultiplePayments() { - return allowsMultiplePayments.orElse(null); - } - - @JsonIgnore - public String getExpirationDate() { - return expirationDate.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixQrCodeSaveResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPixQrCodeSaveResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable encodedImage = JsonNullable.undefined(); - - @JsonProperty("encodedImage") - public ApiPixQrCodeSaveResponseDtoBuilder encodedImage(String value) { - this.encodedImage = JsonNullable.of(value); - return this; - } - - private JsonNullable payload = JsonNullable.undefined(); - - @JsonProperty("payload") - public ApiPixQrCodeSaveResponseDtoBuilder payload(String value) { - this.payload = JsonNullable.of(value); - return this; - } - - private JsonNullable allowsMultiplePayments = JsonNullable.undefined(); - - @JsonProperty("allowsMultiplePayments") - public ApiPixQrCodeSaveResponseDtoBuilder allowsMultiplePayments(Boolean value) { - this.allowsMultiplePayments = JsonNullable.of(value); - return this; - } - - private JsonNullable expirationDate = JsonNullable.undefined(); - - @JsonProperty("expirationDate") - public ApiPixQrCodeSaveResponseDtoBuilder expirationDate(String value) { - this.expirationDate = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPixQrCodeSaveResponseDtoBuilder externalReference(String value) { - 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 deleted file mode 100644 index 3390e85..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTokenBucketGetAddressKeyResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTokenBucketGetAddressKeyResponseDto { - - /** - * Maximum token capacity - */ - @JsonProperty("capacity") - private JsonNullable capacity; - - /** - * Available tokens - */ - @JsonProperty("remaining") - private JsonNullable remaining; - - @JsonIgnore - public Long getCapacity() { - return capacity.orElse(null); - } - - @JsonIgnore - public Long getRemaining() { - return remaining.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTokenBucketGetAddressKeyResponseDtoBuilder { - - private JsonNullable capacity = JsonNullable.undefined(); - - @JsonProperty("capacity") - public ApiPixTokenBucketGetAddressKeyResponseDtoBuilder capacity(Long value) { - this.capacity = JsonNullable.of(value); - return this; - } - - private JsonNullable remaining = JsonNullable.undefined(); - - @JsonProperty("remaining") - public ApiPixTokenBucketGetAddressKeyResponseDtoBuilder remaining(Long value) { - 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 deleted file mode 100644 index cbc245d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponseDto.java +++ /dev/null @@ -1,143 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionExternalAccountResponseDto { - - /** - * Payment Institution Identifier - */ - @JsonProperty("ispb") - private JsonNullable ispb; - - /** - * Name of Payment Institution - */ - @JsonProperty("ispbName") - private JsonNullable ispbName; - - /** - * Receiver name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * CPF or CNPJ of the recipient - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Pix Key - */ - @JsonProperty("addressKey") - private JsonNullable addressKey; - - /** - * Pix key type - */ - @JsonProperty("addressKeyType") - private JsonNullable addressKeyType; - - @JsonIgnore - public String getIspb() { - return ispb.orElse(null); - } - - @JsonIgnore - public String getIspbName() { - return ispbName.orElse(null); - } - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public String getAddressKey() { - return addressKey.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionExternalAccountResponsePixAddressKeyType getAddressKeyType() { - return addressKeyType.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTransactionExternalAccountResponseDtoBuilder { - - private JsonNullable ispb = JsonNullable.undefined(); - - @JsonProperty("ispb") - public ApiPixTransactionExternalAccountResponseDtoBuilder ispb(String value) { - this.ispb = JsonNullable.of(value); - return this; - } - - private JsonNullable ispbName = JsonNullable.undefined(); - - @JsonProperty("ispbName") - public ApiPixTransactionExternalAccountResponseDtoBuilder ispbName(String value) { - this.ispbName = JsonNullable.of(value); - return this; - } - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiPixTransactionExternalAccountResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiPixTransactionExternalAccountResponseDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable addressKey = JsonNullable.undefined(); - - @JsonProperty("addressKey") - public ApiPixTransactionExternalAccountResponseDtoBuilder addressKey(String value) { - this.addressKey = JsonNullable.of(value); - return this; - } - - private JsonNullable addressKeyType = - JsonNullable.undefined(); - - @JsonProperty("addressKeyType") - public ApiPixTransactionExternalAccountResponseDtoBuilder addressKeyType( - ApiPixTransactionExternalAccountResponsePixAddressKeyType value - ) { - this.addressKeyType = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.java deleted file mode 100644 index d21173c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Pix key type - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionExternalAccountResponsePixAddressKeyType { - CPF("CPF"), - CNPJ("CNPJ"), - EMAIL("EMAIL"), - PHONE("PHONE"), - EVP("EVP"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionExternalAccountResponsePixAddressKeyType fromValue(String value) { - return Arrays.stream(ApiPixTransactionExternalAccountResponsePixAddressKeyType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponseDto.java deleted file mode 100644 index 79fceb4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponseDto.java +++ /dev/null @@ -1,554 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionGetResponseDto { - - /** - * Unique identifier of the Pix transaction in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Pix transaction identifier at the Central Bank - */ - @JsonProperty("endToEndIdentifier") - private JsonNullable endToEndIdentifier; - - /** - * Used to indicate whether it is a Withdrawal or Change - */ - @JsonProperty("finality") - private JsonNullable finality; - - /** - * Transaction or Withdrawal Value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Change value - */ - @JsonProperty("changeValue") - private JsonNullable changeValue; - - /** - * Value reversed - */ - @JsonProperty("refundedValue") - private JsonNullable refundedValue; - - /** - * Transaction date - */ - @JsonProperty("effectiveDate") - private JsonNullable effectiveDate; - - /** - * Schedule date - */ - @JsonProperty("scheduledDate") - private JsonNullable scheduledDate; - - /** - * Transaction status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Transaction type - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Indicates the origin of the transaction - */ - @JsonProperty("originType") - private JsonNullable originType; - - /** - * QrCode identifier linked to the transaction - */ - @JsonProperty("conciliationIdentifier") - private JsonNullable conciliationIdentifier; - - /** - * Description about the transaction - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Proof of transaction will be available after the transaction is confirmed. - */ - @JsonProperty("transactionReceiptUrl") - private JsonNullable transactionReceiptUrl; - - /** - * Reason why the transaction was declined - */ - @JsonProperty("refusalReason") - private JsonNullable refusalReason; - - /** - * Indicates whether the transaction can be canceled - */ - @JsonProperty("canBeCanceled") - private JsonNullable canBeCanceled; - - @JsonProperty("originalTransaction") - private JsonNullable originalTransaction; - - @JsonProperty("externalAccount") - private JsonNullable externalAccount; - - @JsonProperty("qrCode") - private JsonNullable qrCode; - - /** - * Unique billing identifier - */ - @JsonProperty("payment") - private JsonNullable payment; - - /** - * Indicates whether the transaction can be refunded - */ - @JsonProperty("canBeRefunded") - private JsonNullable canBeRefunded; - - /** - * Reason why the chargeback was disabled - */ - @JsonProperty("refundDisabledReason") - private JsonNullable refundDisabledReason; - - /** - * Debit or credit fee for the transaction - */ - @JsonProperty("chargedFeeValue") - private JsonNullable chargedFeeValue; - - /** - * Transaction creation date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Pix key when the transaction is a credit - */ - @JsonProperty("addressKey") - private JsonNullable addressKey; - - /** - * Pix key type - */ - @JsonProperty("addressKeyType") - private JsonNullable addressKeyType; - - /** - * Transfer identifier - */ - @JsonProperty("transferId") - private JsonNullable transferId; - - /** - * Free search field - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getEndToEndIdentifier() { - return endToEndIdentifier.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionGetResponsePixTransactionCashValueFinality getFinality() { - return finality.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getChangeValue() { - return changeValue.orElse(null); - } - - @JsonIgnore - public Double getRefundedValue() { - return refundedValue.orElse(null); - } - - @JsonIgnore - public String getEffectiveDate() { - return effectiveDate.orElse(null); - } - - @JsonIgnore - public String getScheduledDate() { - return scheduledDate.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionGetResponsePixTransactionStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionGetResponsePixTransactionType getType() { - return type.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionGetResponsePixTransactionOriginType getOriginType() { - return originType.orElse(null); - } - - @JsonIgnore - public String getConciliationIdentifier() { - return conciliationIdentifier.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getTransactionReceiptUrl() { - return transactionReceiptUrl.orElse(null); - } - - @JsonIgnore - public String getRefusalReason() { - return refusalReason.orElse(null); - } - - @JsonIgnore - public Boolean getCanBeCanceled() { - return canBeCanceled.orElse(null); - } - - @JsonIgnore - public ApiPixOriginalTransactionResponseDto getOriginalTransaction() { - return originalTransaction.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionExternalAccountResponseDto getExternalAccount() { - return externalAccount.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionQrCodeResponseDto getQrCode() { - return qrCode.orElse(null); - } - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public Boolean getCanBeRefunded() { - return canBeRefunded.orElse(null); - } - - @JsonIgnore - public String getRefundDisabledReason() { - return refundDisabledReason.orElse(null); - } - - @JsonIgnore - public Double getChargedFeeValue() { - return chargedFeeValue.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public String getAddressKey() { - return addressKey.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionGetResponsePixAddressKeyType getAddressKeyType() { - return addressKeyType.orElse(null); - } - - @JsonIgnore - public String getTransferId() { - return transferId.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTransactionGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPixTransactionGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable endToEndIdentifier = JsonNullable.undefined(); - - @JsonProperty("endToEndIdentifier") - public ApiPixTransactionGetResponseDtoBuilder endToEndIdentifier(String value) { - this.endToEndIdentifier = JsonNullable.of(value); - return this; - } - - private JsonNullable finality = - JsonNullable.undefined(); - - @JsonProperty("finality") - public ApiPixTransactionGetResponseDtoBuilder finality( - ApiPixTransactionGetResponsePixTransactionCashValueFinality value - ) { - this.finality = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPixTransactionGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable changeValue = JsonNullable.undefined(); - - @JsonProperty("changeValue") - public ApiPixTransactionGetResponseDtoBuilder changeValue(Double value) { - this.changeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable refundedValue = JsonNullable.undefined(); - - @JsonProperty("refundedValue") - public ApiPixTransactionGetResponseDtoBuilder refundedValue(Double value) { - this.refundedValue = JsonNullable.of(value); - return this; - } - - private JsonNullable effectiveDate = JsonNullable.undefined(); - - @JsonProperty("effectiveDate") - public ApiPixTransactionGetResponseDtoBuilder effectiveDate(String value) { - this.effectiveDate = JsonNullable.of(value); - return this; - } - - private JsonNullable scheduledDate = JsonNullable.undefined(); - - @JsonProperty("scheduledDate") - public ApiPixTransactionGetResponseDtoBuilder scheduledDate(String value) { - this.scheduledDate = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPixTransactionGetResponseDtoBuilder status(ApiPixTransactionGetResponsePixTransactionStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiPixTransactionGetResponseDtoBuilder type(ApiPixTransactionGetResponsePixTransactionType value) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable originType = JsonNullable.undefined(); - - @JsonProperty("originType") - public ApiPixTransactionGetResponseDtoBuilder originType( - ApiPixTransactionGetResponsePixTransactionOriginType value - ) { - this.originType = JsonNullable.of(value); - return this; - } - - private JsonNullable conciliationIdentifier = JsonNullable.undefined(); - - @JsonProperty("conciliationIdentifier") - public ApiPixTransactionGetResponseDtoBuilder conciliationIdentifier(String value) { - this.conciliationIdentifier = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiPixTransactionGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); - - @JsonProperty("transactionReceiptUrl") - public ApiPixTransactionGetResponseDtoBuilder transactionReceiptUrl(String value) { - this.transactionReceiptUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable refusalReason = JsonNullable.undefined(); - - @JsonProperty("refusalReason") - public ApiPixTransactionGetResponseDtoBuilder refusalReason(String value) { - this.refusalReason = JsonNullable.of(value); - return this; - } - - private JsonNullable canBeCanceled = JsonNullable.undefined(); - - @JsonProperty("canBeCanceled") - public ApiPixTransactionGetResponseDtoBuilder canBeCanceled(Boolean value) { - this.canBeCanceled = JsonNullable.of(value); - return this; - } - - private JsonNullable originalTransaction = JsonNullable.undefined(); - - @JsonProperty("originalTransaction") - public ApiPixTransactionGetResponseDtoBuilder originalTransaction(ApiPixOriginalTransactionResponseDto value) { - this.originalTransaction = JsonNullable.of(value); - return this; - } - - private JsonNullable externalAccount = JsonNullable.undefined(); - - @JsonProperty("externalAccount") - public ApiPixTransactionGetResponseDtoBuilder externalAccount(ApiPixTransactionExternalAccountResponseDto value) { - this.externalAccount = JsonNullable.of(value); - return this; - } - - private JsonNullable qrCode = JsonNullable.undefined(); - - @JsonProperty("qrCode") - public ApiPixTransactionGetResponseDtoBuilder qrCode(ApiPixTransactionQrCodeResponseDto value) { - this.qrCode = JsonNullable.of(value); - return this; - } - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiPixTransactionGetResponseDtoBuilder payment(String value) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable canBeRefunded = JsonNullable.undefined(); - - @JsonProperty("canBeRefunded") - public ApiPixTransactionGetResponseDtoBuilder canBeRefunded(Boolean value) { - this.canBeRefunded = JsonNullable.of(value); - return this; - } - - private JsonNullable refundDisabledReason = JsonNullable.undefined(); - - @JsonProperty("refundDisabledReason") - public ApiPixTransactionGetResponseDtoBuilder refundDisabledReason(String value) { - this.refundDisabledReason = JsonNullable.of(value); - return this; - } - - private JsonNullable chargedFeeValue = JsonNullable.undefined(); - - @JsonProperty("chargedFeeValue") - public ApiPixTransactionGetResponseDtoBuilder chargedFeeValue(Double value) { - this.chargedFeeValue = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiPixTransactionGetResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable addressKey = JsonNullable.undefined(); - - @JsonProperty("addressKey") - public ApiPixTransactionGetResponseDtoBuilder addressKey(String value) { - this.addressKey = JsonNullable.of(value); - return this; - } - - private JsonNullable addressKeyType = JsonNullable.undefined(); - - @JsonProperty("addressKeyType") - public ApiPixTransactionGetResponseDtoBuilder addressKeyType(ApiPixTransactionGetResponsePixAddressKeyType value) { - this.addressKeyType = JsonNullable.of(value); - return this; - } - - private JsonNullable transferId = JsonNullable.undefined(); - - @JsonProperty("transferId") - public ApiPixTransactionGetResponseDtoBuilder transferId(String value) { - this.transferId = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiPixTransactionGetResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixAddressKeyType.java deleted file mode 100644 index 9337b93..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixAddressKeyType.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Pix key type - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionGetResponsePixAddressKeyType { - CPF("CPF"), - CNPJ("CNPJ"), - EMAIL("EMAIL"), - PHONE("PHONE"), - EVP("EVP"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionGetResponsePixAddressKeyType fromValue(String value) { - return Arrays.stream(ApiPixTransactionGetResponsePixAddressKeyType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.java deleted file mode 100644 index 8356e80..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Used to indicate whether it is a Withdrawal or Change - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionGetResponsePixTransactionCashValueFinality { - WITHDRAWAL("WITHDRAWAL"), - CHANGE("CHANGE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionGetResponsePixTransactionCashValueFinality fromValue(String value) { - return Arrays.stream(ApiPixTransactionGetResponsePixTransactionCashValueFinality.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionOriginType.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionOriginType.java deleted file mode 100644 index dab2ad8..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionOriginType.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Indicates the origin of the transaction - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionGetResponsePixTransactionOriginType { - MANUAL("MANUAL"), - ADDRESS_KEY("ADDRESS_KEY"), - STATIC_QRCODE("STATIC_QRCODE"), - DYNAMIC_QRCODE("DYNAMIC_QRCODE"), - PAYMENT_INITIATION_SERVICE("PAYMENT_INITIATION_SERVICE"), - AUTOMATIC_RECURRING("AUTOMATIC_RECURRING"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionGetResponsePixTransactionOriginType fromValue(String value) { - return Arrays.stream(ApiPixTransactionGetResponsePixTransactionOriginType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionStatus.java deleted file mode 100644 index 7a07b2b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionStatus.java +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Transaction status - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionGetResponsePixTransactionStatus { - AWAITING_BALANCE_VALIDATION("AWAITING_BALANCE_VALIDATION"), - AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE("AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE"), - AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), - AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST("AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST"), - AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST("AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST"), - SCHEDULED("SCHEDULED"), - AWAITING_REQUEST("AWAITING_REQUEST"), - REQUESTED("REQUESTED"), - DONE("DONE"), - REFUSED("REFUSED"), - CANCELLED("CANCELLED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionGetResponsePixTransactionStatus fromValue(String value) { - return Arrays.stream(ApiPixTransactionGetResponsePixTransactionStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionType.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionType.java deleted file mode 100644 index b1c93ea..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionType.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Transaction type - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionGetResponsePixTransactionType { - DEBIT("DEBIT"), - CREDIT("CREDIT"), - CREDIT_REFUND("CREDIT_REFUND"), - DEBIT_REFUND("DEBIT_REFUND"), - DEBIT_REFUND_CANCELLATION("DEBIT_REFUND_CANCELLATION"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionGetResponsePixTransactionType fromValue(String value) { - return Arrays.stream(ApiPixTransactionGetResponsePixTransactionType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionStatus.java deleted file mode 100644 index c8f6b31..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionStatus.java +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by transaction status - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionListRequestPixTransactionStatus { - AWAITING_BALANCE_VALIDATION("AWAITING_BALANCE_VALIDATION"), - AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE("AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE"), - AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), - AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST("AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST"), - AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST("AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST"), - SCHEDULED("SCHEDULED"), - AWAITING_REQUEST("AWAITING_REQUEST"), - REQUESTED("REQUESTED"), - DONE("DONE"), - REFUSED("REFUSED"), - CANCELLED("CANCELLED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionListRequestPixTransactionStatus fromValue(String value) { - return Arrays.stream(ApiPixTransactionListRequestPixTransactionStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionType.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionType.java deleted file mode 100644 index 3af6127..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionType.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by transaction type - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionListRequestPixTransactionType { - DEBIT("DEBIT"), - CREDIT("CREDIT"), - CREDIT_REFUND("CREDIT_REFUND"), - DEBIT_REFUND("DEBIT_REFUND"), - DEBIT_REFUND_CANCELLATION("DEBIT_REFUND_CANCELLATION"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionListRequestPixTransactionType fromValue(String value) { - return Arrays.stream(ApiPixTransactionListRequestPixTransactionType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListResponseDto.java deleted file mode 100644 index 36dad5d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTransactionListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPixTransactionListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPixTransactionListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPixTransactionListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPixTransactionListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPixTransactionListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPixTransactionListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index 5451e11..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodePayerResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionQrCodePayerResponseDto { - - /** - * Payer's name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * CPF or CNPJ of the payer - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTransactionQrCodePayerResponseDtoBuilder { - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiPixTransactionQrCodePayerResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiPixTransactionQrCodePayerResponseDtoBuilder cpfCnpj(String value) { - 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 deleted file mode 100644 index 9e567d4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeResponseDto.java +++ /dev/null @@ -1,175 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionQrCodeResponseDto { - - @JsonProperty("payer") - private JsonNullable payer; - - /** - * Unique Pix reconciliation identifier with Asaas - */ - @JsonProperty("conciliationIdentifier") - private JsonNullable conciliationIdentifier; - - /** - * Original transaction value - */ - @JsonProperty("originalValue") - private JsonNullable originalValue; - - /** - * Due date - */ - @JsonProperty("dueDate") - private JsonNullable dueDate; - - /** - * Interest value - */ - @JsonProperty("interest") - private JsonNullable interest; - - /** - * Fine value - */ - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Discount amount - */ - @JsonProperty("discount") - private JsonNullable discount; - - /** - * Expiration date - */ - @JsonProperty("expirationDate") - private JsonNullable expirationDate; - - @JsonIgnore - public ApiPixTransactionQrCodePayerResponseDto getPayer() { - return payer.orElse(null); - } - - @JsonIgnore - public String getConciliationIdentifier() { - return conciliationIdentifier.orElse(null); - } - - @JsonIgnore - public Double getOriginalValue() { - return originalValue.orElse(null); - } - - @JsonIgnore - public String getDueDate() { - return dueDate.orElse(null); - } - - @JsonIgnore - public Double getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public Double getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public Double getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public String getExpirationDate() { - return expirationDate.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTransactionQrCodeResponseDtoBuilder { - - private JsonNullable payer = JsonNullable.undefined(); - - @JsonProperty("payer") - public ApiPixTransactionQrCodeResponseDtoBuilder payer(ApiPixTransactionQrCodePayerResponseDto value) { - this.payer = JsonNullable.of(value); - return this; - } - - private JsonNullable conciliationIdentifier = JsonNullable.undefined(); - - @JsonProperty("conciliationIdentifier") - public ApiPixTransactionQrCodeResponseDtoBuilder conciliationIdentifier(String value) { - this.conciliationIdentifier = JsonNullable.of(value); - return this; - } - - private JsonNullable originalValue = JsonNullable.undefined(); - - @JsonProperty("originalValue") - public ApiPixTransactionQrCodeResponseDtoBuilder originalValue(Double value) { - this.originalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDate = JsonNullable.undefined(); - - @JsonProperty("dueDate") - public ApiPixTransactionQrCodeResponseDtoBuilder dueDate(String value) { - this.dueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiPixTransactionQrCodeResponseDtoBuilder interest(Double value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiPixTransactionQrCodeResponseDtoBuilder fine(Double value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiPixTransactionQrCodeResponseDtoBuilder discount(Double value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable expirationDate = JsonNullable.undefined(); - - @JsonProperty("expirationDate") - public ApiPixTransactionQrCodeResponseDtoBuilder expirationDate(String value) { - 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 deleted file mode 100644 index a1c51da..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeSaveRequestDto.java +++ /dev/null @@ -1,52 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionQrCodeSaveRequestDto { - - /** - * QRCode payload - */ - @NonNull - private String payload; - - /** - * Change amount (for QRCode Change) - */ - @JsonProperty("changeValue") - private JsonNullable changeValue; - - @JsonIgnore - public Double getChangeValue() { - return changeValue.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTransactionQrCodeSaveRequestDtoBuilder { - - private JsonNullable changeValue = JsonNullable.undefined(); - - @JsonProperty("changeValue") - public ApiPixTransactionQrCodeSaveRequestDtoBuilder changeValue(Double value) { - 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 deleted file mode 100644 index 7b80d71..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.java +++ /dev/null @@ -1,102 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto { - - /** - * Receiver name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Payment institution name - */ - @JsonProperty("financialInstitutionName") - private JsonNullable financialInstitutionName; - - /** - * Receiver CPF or CNPJ - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Receiver Pix key - */ - @JsonProperty("pixKey") - private JsonNullable pixKey; - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getFinancialInstitutionName() { - return financialInstitutionName.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public String getPixKey() { - return pixKey.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder { - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable financialInstitutionName = JsonNullable.undefined(); - - @JsonProperty("financialInstitutionName") - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder financialInstitutionName(String value) { - this.financialInstitutionName = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable pixKey = JsonNullable.undefined(); - - @JsonProperty("pixKey") - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder pixKey(String value) { - 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 deleted file mode 100644 index d80e8dc..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.java +++ /dev/null @@ -1,203 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto { - - /** - * Unique recurrence item identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Recurrence item status - */ - @JsonProperty("status") - private JsonNullable< - ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus - > status; - - /** - * Recurrence item scheduled date - */ - @JsonProperty("scheduledDate") - private JsonNullable scheduledDate; - - /** - * Whether the recurrence item can be cancelled - */ - @JsonProperty("canBeCancelled") - private JsonNullable canBeCancelled; - - /** - * Recurrence number - */ - @JsonProperty("recurrenceNumber") - private JsonNullable recurrenceNumber; - - /** - * Number of repetitions - */ - @JsonProperty("quantity") - private JsonNullable quantity; - - /** - * Recurrence value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Recurrence item refusal reason - */ - @JsonProperty("refusalReasonDescription") - private JsonNullable refusalReasonDescription; - - @JsonProperty("externalAccount") - private JsonNullable externalAccount; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getScheduledDate() { - return scheduledDate.orElse(null); - } - - @JsonIgnore - public Boolean getCanBeCancelled() { - return canBeCancelled.orElse(null); - } - - @JsonIgnore - public Long getRecurrenceNumber() { - return recurrenceNumber.orElse(null); - } - - @JsonIgnore - public Long getQuantity() { - return quantity.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getRefusalReasonDescription() { - return refusalReasonDescription.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto getExternalAccount() { - return externalAccount.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable< - ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus - > status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder status( - ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable scheduledDate = JsonNullable.undefined(); - - @JsonProperty("scheduledDate") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder scheduledDate(String value) { - this.scheduledDate = JsonNullable.of(value); - return this; - } - - private JsonNullable canBeCancelled = JsonNullable.undefined(); - - @JsonProperty("canBeCancelled") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder canBeCancelled(Boolean value) { - this.canBeCancelled = JsonNullable.of(value); - return this; - } - - private JsonNullable recurrenceNumber = JsonNullable.undefined(); - - @JsonProperty("recurrenceNumber") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder recurrenceNumber(Long value) { - this.recurrenceNumber = JsonNullable.of(value); - return this; - } - - private JsonNullable quantity = JsonNullable.undefined(); - - @JsonProperty("quantity") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder quantity(Long value) { - this.quantity = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable refusalReasonDescription = JsonNullable.undefined(); - - @JsonProperty("refusalReasonDescription") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder refusalReasonDescription(String value) { - this.refusalReasonDescription = JsonNullable.of(value); - return this; - } - - private JsonNullable externalAccount = - JsonNullable.undefined(); - - @JsonProperty("externalAccount") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder externalAccount( - ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto value - ) { - this.externalAccount = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.java deleted file mode 100644 index 20e77ed..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.java +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Recurrence item status - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus { - PENDING("PENDING"), - CANCELLED("CANCELLED"), - REFUSED("REFUSED"), - DONE("DONE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus fromValue( - String value - ) { - return Arrays.stream( - ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.values() - ) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java deleted file mode 100644 index 77803fb..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java +++ /dev/null @@ -1,228 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionRecurringCheckoutScheduleGetResponseDto { - - /** - * Unique recurrence identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Recurrence status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Indicates the origin of the recurrence - */ - @JsonProperty("origin") - private JsonNullable origin; - - /** - * Recurrence value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Recurrence frequency - */ - @JsonProperty("frequency") - private JsonNullable< - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency - > frequency; - - /** - * Number of repetitions - */ - @JsonProperty("quantity") - private JsonNullable quantity; - - /** - * Recurrence start date - */ - @JsonProperty("startDate") - private JsonNullable startDate; - - /** - * Recurrence finish date - */ - @JsonProperty("finishDate") - private JsonNullable finishDate; - - /** - * Whether the recurrence can be cancelled - */ - @JsonProperty("canBeCancelled") - private JsonNullable canBeCancelled; - - @JsonProperty("externalAccount") - private JsonNullable externalAccount; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin getOrigin() { - return origin.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency getFrequency() { - return frequency.orElse(null); - } - - @JsonIgnore - public Long getQuantity() { - return quantity.orElse(null); - } - - @JsonIgnore - public String getStartDate() { - return startDate.orElse(null); - } - - @JsonIgnore - public String getFinishDate() { - return finishDate.orElse(null); - } - - @JsonIgnore - public Boolean getCanBeCancelled() { - return canBeCancelled.orElse(null); - } - - @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto getExternalAccount() { - return externalAccount.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable status = - JsonNullable.undefined(); - - @JsonProperty("status") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder status( - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable origin = - JsonNullable.undefined(); - - @JsonProperty("origin") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder origin( - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin value - ) { - this.origin = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable< - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency - > frequency = JsonNullable.undefined(); - - @JsonProperty("frequency") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder frequency( - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency value - ) { - this.frequency = JsonNullable.of(value); - return this; - } - - private JsonNullable quantity = JsonNullable.undefined(); - - @JsonProperty("quantity") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder quantity(Long value) { - this.quantity = JsonNullable.of(value); - return this; - } - - private JsonNullable startDate = JsonNullable.undefined(); - - @JsonProperty("startDate") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder startDate(String value) { - this.startDate = JsonNullable.of(value); - return this; - } - - private JsonNullable finishDate = JsonNullable.undefined(); - - @JsonProperty("finishDate") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder finishDate(String value) { - this.finishDate = JsonNullable.of(value); - return this; - } - - private JsonNullable canBeCancelled = JsonNullable.undefined(); - - @JsonProperty("canBeCancelled") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder canBeCancelled(Boolean value) { - this.canBeCancelled = JsonNullable.of(value); - return this; - } - - private JsonNullable externalAccount = - JsonNullable.undefined(); - - @JsonProperty("externalAccount") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder externalAccount( - ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto value - ) { - this.externalAccount = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.java deleted file mode 100644 index 4eba78b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.java +++ /dev/null @@ -1,34 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Recurrence frequency - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency { - WEEKLY("WEEKLY"), - MONTHLY("MONTHLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency fromValue( - String value - ) { - return Arrays.stream( - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.values() - ) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.java deleted file mode 100644 index 39fab4e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Indicates the origin of the recurrence - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin { - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin fromValue( - String value - ) { - return Arrays.stream(ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.java deleted file mode 100644 index be14910..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Recurrence status - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus { - AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), - PENDING("PENDING"), - SCHEDULED("SCHEDULED"), - CANCELLED("CANCELLED"), - DONE("DONE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus fromValue( - String value - ) { - return Arrays.stream(ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java deleted file mode 100644 index e02bca9..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java +++ /dev/null @@ -1,49 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto { - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDtoBuilder { - - private JsonNullable> data = - JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDtoBuilder data( - List value - ) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.java deleted file mode 100644 index 510678a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by recurrence status - */ -@Getter -@AllArgsConstructor -public enum ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus { - AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), - PENDING("PENDING"), - SCHEDULED("SCHEDULED"), - CANCELLED("CANCELLED"), - DONE("DONE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus fromValue( - String value - ) { - return Arrays.stream(ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.java deleted file mode 100644 index c4f3310..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.java +++ /dev/null @@ -1,144 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionRecurringCheckoutScheduleListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = - JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPixTransactionRecurringCheckoutScheduleListResponseDtoBuilder data( - List value - ) { - 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 deleted file mode 100644 index 825919a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionSaveRequestDto.java +++ /dev/null @@ -1,93 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.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; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPixTransactionSaveRequestDto { - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiPixTransactionQrCodeSaveRequestDto qrCode; - - /** - * Value to be paid - */ - @NonNull - private Double value; - - /** - * Payment Description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Used to schedule payment - */ - @JsonProperty("scheduleDate") - private JsonNullable scheduleDate; - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getScheduleDate() { - return scheduleDate.orElse(null); - } - - // 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) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable scheduleDate = JsonNullable.undefined(); - - @JsonProperty("scheduleDate") - public ApiPixTransactionSaveRequestDtoBuilder scheduleDate(String value) { - 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 deleted file mode 100644 index 0ed2360..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigDeleteResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPushNotificationConfigDeleteResponseDto { - - /** - * Indicates whether the Webhook was removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Unique Webhook Identifier - */ - @JsonProperty("id") - private JsonNullable id; - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPushNotificationConfigDeleteResponseDtoBuilder { - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiPushNotificationConfigDeleteResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPushNotificationConfigDeleteResponseDtoBuilder id(String value) { - 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 deleted file mode 100644 index 2bcf4af..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponseDto.java +++ /dev/null @@ -1,220 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPushNotificationConfigGetResponseDto { - - /** - * Unique Webhook Identifier - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Webhook name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Webhook URL - */ - @JsonProperty("url") - private JsonNullable url; - - /** - * Email that will receive notifications about the Webhook - */ - @JsonProperty("email") - private JsonNullable email; - - /** - * Set whether the Webhook is active - */ - @JsonProperty("enabled") - private JsonNullable enabled; - - /** - * Set whether the sync queue is stopped - */ - @JsonProperty("interrupted") - private JsonNullable interrupted; - - /** - * API Version - */ - @JsonProperty("apiVersion") - private JsonNullable apiVersion; - - /** - * Indicates whether an authentication token is registered for the webhook - */ - @JsonProperty("hasAuthToken") - private JsonNullable hasAuthToken; - - /** - * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) - */ - @JsonProperty("sendType") - private JsonNullable sendType; - - /** - * List of events this Webhook will observe - */ - @JsonProperty("events") - private JsonNullable> events; - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getUrl() { - return url.orElse(null); - } - - @JsonIgnore - public String getEmail() { - return email.orElse(null); - } - - @JsonIgnore - public Boolean getEnabled() { - return enabled.orElse(null); - } - - @JsonIgnore - public Boolean getInterrupted() { - return interrupted.orElse(null); - } - - @JsonIgnore - public Long getApiVersion() { - return apiVersion.orElse(null); - } - - @JsonIgnore - public Boolean getHasAuthToken() { - return hasAuthToken.orElse(null); - } - - @JsonIgnore - public ApiPushNotificationConfigGetResponsePushNotificationSendType getSendType() { - return sendType.orElse(null); - } - - @JsonIgnore - public List getEvents() { - return events.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPushNotificationConfigGetResponseDtoBuilder { - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiPushNotificationConfigGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiPushNotificationConfigGetResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable url = JsonNullable.undefined(); - - @JsonProperty("url") - public ApiPushNotificationConfigGetResponseDtoBuilder url(String value) { - this.url = JsonNullable.of(value); - return this; - } - - private JsonNullable email = JsonNullable.undefined(); - - @JsonProperty("email") - public ApiPushNotificationConfigGetResponseDtoBuilder email(String value) { - this.email = JsonNullable.of(value); - return this; - } - - private JsonNullable enabled = JsonNullable.undefined(); - - @JsonProperty("enabled") - public ApiPushNotificationConfigGetResponseDtoBuilder enabled(Boolean value) { - this.enabled = JsonNullable.of(value); - return this; - } - - private JsonNullable interrupted = JsonNullable.undefined(); - - @JsonProperty("interrupted") - public ApiPushNotificationConfigGetResponseDtoBuilder interrupted(Boolean value) { - this.interrupted = JsonNullable.of(value); - return this; - } - - private JsonNullable apiVersion = JsonNullable.undefined(); - - @JsonProperty("apiVersion") - public ApiPushNotificationConfigGetResponseDtoBuilder apiVersion(Long value) { - this.apiVersion = JsonNullable.of(value); - return this; - } - - private JsonNullable hasAuthToken = JsonNullable.undefined(); - - @JsonProperty("hasAuthToken") - public ApiPushNotificationConfigGetResponseDtoBuilder hasAuthToken(Boolean value) { - this.hasAuthToken = JsonNullable.of(value); - return this; - } - - private JsonNullable sendType = - JsonNullable.undefined(); - - @JsonProperty("sendType") - public ApiPushNotificationConfigGetResponseDtoBuilder sendType( - ApiPushNotificationConfigGetResponsePushNotificationSendType value - ) { - this.sendType = JsonNullable.of(value); - return this; - } - - private JsonNullable> events = JsonNullable.undefined(); - - @JsonProperty("events") - public ApiPushNotificationConfigGetResponseDtoBuilder events(List value) { - this.events = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.java b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.java deleted file mode 100644 index f26119c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) - */ -@Getter -@AllArgsConstructor -public enum ApiPushNotificationConfigGetResponsePushNotificationSendType { - NON_SEQUENTIALLY("NON_SEQUENTIALLY"), - SEQUENTIALLY("SEQUENTIALLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPushNotificationConfigGetResponsePushNotificationSendType fromValue(String value) { - return Arrays.stream(ApiPushNotificationConfigGetResponsePushNotificationSendType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigListResponseDto.java deleted file mode 100644 index 6b9113c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPushNotificationConfigListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPushNotificationConfigListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiPushNotificationConfigListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiPushNotificationConfigListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiPushNotificationConfigListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiPushNotificationConfigListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiPushNotificationConfigListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiPushNotificationConfigListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index f356d46..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestDto.java +++ /dev/null @@ -1,201 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPushNotificationConfigSaveRequestDto { - - /** - * Webhook name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Webhook URL - */ - @JsonProperty("url") - private JsonNullable url; - - /** - * Email that will receive notifications about the Webhook - */ - @JsonProperty("email") - private JsonNullable email; - - /** - * Set whether the Webhook is active - */ - @JsonProperty("enabled") - private JsonNullable enabled; - - /** - * Set whether the sync queue is stopped - */ - @JsonProperty("interrupted") - private JsonNullable interrupted; - - /** - * API Version - */ - @JsonProperty("apiVersion") - private JsonNullable apiVersion; - - /** - * Webhook authentication token - */ - @JsonProperty("authToken") - private JsonNullable authToken; - - /** - * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) - */ - @JsonProperty("sendType") - private JsonNullable sendType; - - /** - * List of events this Webhook will observe - */ - @JsonProperty("events") - private JsonNullable> events; - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getUrl() { - return url.orElse(null); - } - - @JsonIgnore - public String getEmail() { - return email.orElse(null); - } - - @JsonIgnore - public Boolean getEnabled() { - return enabled.orElse(null); - } - - @JsonIgnore - public Boolean getInterrupted() { - return interrupted.orElse(null); - } - - @JsonIgnore - public Long getApiVersion() { - return apiVersion.orElse(null); - } - - @JsonIgnore - public String getAuthToken() { - return authToken.orElse(null); - } - - @JsonIgnore - public ApiPushNotificationConfigSaveRequestPushNotificationSendType getSendType() { - return sendType.orElse(null); - } - - @JsonIgnore - public List getEvents() { - return events.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPushNotificationConfigSaveRequestDtoBuilder { - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiPushNotificationConfigSaveRequestDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable url = JsonNullable.undefined(); - - @JsonProperty("url") - public ApiPushNotificationConfigSaveRequestDtoBuilder url(String value) { - this.url = JsonNullable.of(value); - return this; - } - - private JsonNullable email = JsonNullable.undefined(); - - @JsonProperty("email") - public ApiPushNotificationConfigSaveRequestDtoBuilder email(String value) { - this.email = JsonNullable.of(value); - return this; - } - - private JsonNullable enabled = JsonNullable.undefined(); - - @JsonProperty("enabled") - public ApiPushNotificationConfigSaveRequestDtoBuilder enabled(Boolean value) { - this.enabled = JsonNullable.of(value); - return this; - } - - private JsonNullable interrupted = JsonNullable.undefined(); - - @JsonProperty("interrupted") - public ApiPushNotificationConfigSaveRequestDtoBuilder interrupted(Boolean value) { - this.interrupted = JsonNullable.of(value); - return this; - } - - private JsonNullable apiVersion = JsonNullable.undefined(); - - @JsonProperty("apiVersion") - public ApiPushNotificationConfigSaveRequestDtoBuilder apiVersion(Long value) { - this.apiVersion = JsonNullable.of(value); - return this; - } - - private JsonNullable authToken = JsonNullable.undefined(); - - @JsonProperty("authToken") - public ApiPushNotificationConfigSaveRequestDtoBuilder authToken(String value) { - this.authToken = JsonNullable.of(value); - return this; - } - - private JsonNullable sendType = - JsonNullable.undefined(); - - @JsonProperty("sendType") - public ApiPushNotificationConfigSaveRequestDtoBuilder sendType( - ApiPushNotificationConfigSaveRequestPushNotificationSendType value - ) { - this.sendType = JsonNullable.of(value); - return this; - } - - private JsonNullable> events = JsonNullable.undefined(); - - @JsonProperty("events") - public ApiPushNotificationConfigSaveRequestDtoBuilder events(List value) { - this.events = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.java b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.java deleted file mode 100644 index a70c567..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) - */ -@Getter -@AllArgsConstructor -public enum ApiPushNotificationConfigSaveRequestPushNotificationSendType { - NON_SEQUENTIALLY("NON_SEQUENTIALLY"), - SEQUENTIALLY("SEQUENTIALLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPushNotificationConfigSaveRequestPushNotificationSendType fromValue(String value) { - return Arrays.stream(ApiPushNotificationConfigSaveRequestPushNotificationSendType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestDto.java deleted file mode 100644 index c2e1740..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestDto.java +++ /dev/null @@ -1,163 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiPushNotificationConfigUpdateRequestDto { - - /** - * Webhook name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * Event destination URL - */ - @JsonProperty("url") - private JsonNullable url; - - /** - * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) - */ - @JsonProperty("sendType") - private JsonNullable sendType; - - /** - * Set whether the Webhook is active - */ - @JsonProperty("enabled") - private JsonNullable enabled; - - /** - * Set whether the sync queue is stopped - */ - @JsonProperty("interrupted") - private JsonNullable interrupted; - - /** - * Webhook authentication token - */ - @JsonProperty("authToken") - private JsonNullable authToken; - - /** - * List of events this Webhook will observe - */ - @JsonProperty("events") - private JsonNullable> events; - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getUrl() { - return url.orElse(null); - } - - @JsonIgnore - public ApiPushNotificationConfigUpdateRequestPushNotificationSendType getSendType() { - return sendType.orElse(null); - } - - @JsonIgnore - public Boolean getEnabled() { - return enabled.orElse(null); - } - - @JsonIgnore - public Boolean getInterrupted() { - return interrupted.orElse(null); - } - - @JsonIgnore - public String getAuthToken() { - return authToken.orElse(null); - } - - @JsonIgnore - public List getEvents() { - return events.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiPushNotificationConfigUpdateRequestDtoBuilder { - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiPushNotificationConfigUpdateRequestDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable url = JsonNullable.undefined(); - - @JsonProperty("url") - public ApiPushNotificationConfigUpdateRequestDtoBuilder url(String value) { - this.url = JsonNullable.of(value); - return this; - } - - private JsonNullable sendType = - JsonNullable.undefined(); - - @JsonProperty("sendType") - public ApiPushNotificationConfigUpdateRequestDtoBuilder sendType( - ApiPushNotificationConfigUpdateRequestPushNotificationSendType value - ) { - this.sendType = JsonNullable.of(value); - return this; - } - - private JsonNullable enabled = JsonNullable.undefined(); - - @JsonProperty("enabled") - public ApiPushNotificationConfigUpdateRequestDtoBuilder enabled(Boolean value) { - this.enabled = JsonNullable.of(value); - return this; - } - - private JsonNullable interrupted = JsonNullable.undefined(); - - @JsonProperty("interrupted") - public ApiPushNotificationConfigUpdateRequestDtoBuilder interrupted(Boolean value) { - this.interrupted = JsonNullable.of(value); - return this; - } - - private JsonNullable authToken = JsonNullable.undefined(); - - @JsonProperty("authToken") - public ApiPushNotificationConfigUpdateRequestDtoBuilder authToken(String value) { - this.authToken = JsonNullable.of(value); - return this; - } - - private JsonNullable> events = JsonNullable.undefined(); - - @JsonProperty("events") - public ApiPushNotificationConfigUpdateRequestDtoBuilder events(List value) { - this.events = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.java b/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.java deleted file mode 100644 index 593f3d6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) - */ -@Getter -@AllArgsConstructor -public enum ApiPushNotificationConfigUpdateRequestPushNotificationSendType { - NON_SEQUENTIALLY("NON_SEQUENTIALLY"), - SEQUENTIALLY("SEQUENTIALLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiPushNotificationConfigUpdateRequestPushNotificationSendType fromValue(String value) { - return Arrays.stream(ApiPushNotificationConfigUpdateRequestPushNotificationSendType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationGetResponseDto.java deleted file mode 100644 index daf0a1f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationGetResponseDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiReceivableAnticipationConfigurationGetResponseDto { - - /** - * Indicates whether automatic anticipation is enabled for credit card payments - */ - @JsonProperty("creditCardAutomaticEnabled") - private JsonNullable creditCardAutomaticEnabled; - - @JsonIgnore - public Boolean getCreditCardAutomaticEnabled() { - return creditCardAutomaticEnabled.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiReceivableAnticipationConfigurationGetResponseDtoBuilder { - - private JsonNullable creditCardAutomaticEnabled = JsonNullable.undefined(); - - @JsonProperty("creditCardAutomaticEnabled") - public ApiReceivableAnticipationConfigurationGetResponseDtoBuilder creditCardAutomaticEnabled(Boolean value) { - 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 deleted file mode 100644 index 9faa8c7..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.java +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiReceivableAnticipationConfigurationUpdateRequestDto { - - /** - * Define whether automatic anticipation is enabled for credit card payments - */ - @JsonProperty("creditCardAutomaticEnabled") - private JsonNullable creditCardAutomaticEnabled; - - @JsonIgnore - public Boolean getCreditCardAutomaticEnabled() { - return creditCardAutomaticEnabled.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiReceivableAnticipationConfigurationUpdateRequestDtoBuilder { - - private JsonNullable creditCardAutomaticEnabled = JsonNullable.undefined(); - - @JsonProperty("creditCardAutomaticEnabled") - public ApiReceivableAnticipationConfigurationUpdateRequestDtoBuilder creditCardAutomaticEnabled(Boolean value) { - 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 deleted file mode 100644 index c21414e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseDto.java +++ /dev/null @@ -1,295 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiReceivableAnticipationGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique identifier of anticipation in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Unique identifier of the installment to be anticipated - */ - @JsonProperty("installment") - private JsonNullable installment; - - /** - * Unique identifier of the payment to be anticipated. - */ - @JsonProperty("payment") - private JsonNullable payment; - - /** - * Anticipation status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Anticipation request date - */ - @JsonProperty("anticipationDate") - private JsonNullable anticipationDate; - - /** - * Request due date - */ - @JsonProperty("dueDate") - private JsonNullable dueDate; - - /** - * Anticipation request date - */ - @JsonProperty("requestDate") - private JsonNullable requestDate; - - /** - * Anticipation fee - */ - @JsonProperty("fee") - private JsonNullable fee; - - /** - * Number of days that were anticipated - */ - @JsonProperty("anticipationDays") - private JsonNullable anticipationDays; - - /** - * Net value discounted the anticipation fee - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Total amount of the payment to be anticipated - */ - @JsonProperty("totalValue") - private JsonNullable totalValue; - - /** - * Anticipation value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Reason for rejecting the anticipation payment - */ - @JsonProperty("denialObservation") - private JsonNullable denialObservation; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getInstallment() { - return installment.orElse(null); - } - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public ApiReceivableAnticipationGetResponseReceivableAnticipationStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getAnticipationDate() { - return anticipationDate.orElse(null); - } - - @JsonIgnore - public String getDueDate() { - return dueDate.orElse(null); - } - - @JsonIgnore - public String getRequestDate() { - return requestDate.orElse(null); - } - - @JsonIgnore - public Double getFee() { - return fee.orElse(null); - } - - @JsonIgnore - public Long getAnticipationDays() { - return anticipationDays.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getTotalValue() { - return totalValue.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getDenialObservation() { - return denialObservation.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiReceivableAnticipationGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiReceivableAnticipationGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiReceivableAnticipationGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiReceivableAnticipationGetResponseDtoBuilder installment(String value) { - this.installment = JsonNullable.of(value); - return this; - } - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiReceivableAnticipationGetResponseDtoBuilder payment(String value) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable status = - JsonNullable.undefined(); - - @JsonProperty("status") - public ApiReceivableAnticipationGetResponseDtoBuilder status( - ApiReceivableAnticipationGetResponseReceivableAnticipationStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipationDate = JsonNullable.undefined(); - - @JsonProperty("anticipationDate") - public ApiReceivableAnticipationGetResponseDtoBuilder anticipationDate(String value) { - this.anticipationDate = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDate = JsonNullable.undefined(); - - @JsonProperty("dueDate") - public ApiReceivableAnticipationGetResponseDtoBuilder dueDate(String value) { - this.dueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable requestDate = JsonNullable.undefined(); - - @JsonProperty("requestDate") - public ApiReceivableAnticipationGetResponseDtoBuilder requestDate(String value) { - this.requestDate = JsonNullable.of(value); - return this; - } - - private JsonNullable fee = JsonNullable.undefined(); - - @JsonProperty("fee") - public ApiReceivableAnticipationGetResponseDtoBuilder fee(Double value) { - this.fee = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipationDays = JsonNullable.undefined(); - - @JsonProperty("anticipationDays") - public ApiReceivableAnticipationGetResponseDtoBuilder anticipationDays(Long value) { - this.anticipationDays = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiReceivableAnticipationGetResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable totalValue = JsonNullable.undefined(); - - @JsonProperty("totalValue") - public ApiReceivableAnticipationGetResponseDtoBuilder totalValue(Double value) { - this.totalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiReceivableAnticipationGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable denialObservation = JsonNullable.undefined(); - - @JsonProperty("denialObservation") - public ApiReceivableAnticipationGetResponseDtoBuilder denialObservation(String value) { - this.denialObservation = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.java deleted file mode 100644 index f8e7113..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Anticipation status - */ -@Getter -@AllArgsConstructor -public enum ApiReceivableAnticipationGetResponseReceivableAnticipationStatus { - PENDING("PENDING"), - DENIED("DENIED"), - CREDITED("CREDITED"), - DEBITED("DEBITED"), - CANCELLED("CANCELLED"), - OVERDUE("OVERDUE"), - SCHEDULED("SCHEDULED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiReceivableAnticipationGetResponseReceivableAnticipationStatus fromValue(String value) { - return Arrays.stream(ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsInfoResponseDto.java deleted file mode 100644 index af0dcbe..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsInfoResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiReceivableAnticipationLimitsInfoResponseDto { - - /** - * Anticipation limit released on the account - */ - @JsonProperty("total") - private JsonNullable total; - - /** - * Limit available to anticipate - */ - @JsonProperty("available") - private JsonNullable available; - - @JsonIgnore - public Double getTotal() { - return total.orElse(null); - } - - @JsonIgnore - public Double getAvailable() { - return available.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiReceivableAnticipationLimitsInfoResponseDtoBuilder { - - private JsonNullable total = JsonNullable.undefined(); - - @JsonProperty("total") - public ApiReceivableAnticipationLimitsInfoResponseDtoBuilder total(Double value) { - this.total = JsonNullable.of(value); - return this; - } - - private JsonNullable available = JsonNullable.undefined(); - - @JsonProperty("available") - public ApiReceivableAnticipationLimitsInfoResponseDtoBuilder available(Double value) { - 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 deleted file mode 100644 index 78fd0c1..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsResponseDto.java +++ /dev/null @@ -1,62 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiReceivableAnticipationLimitsResponseDto { - - @JsonProperty("creditCard") - private JsonNullable creditCard; - - @JsonProperty("bankSlip") - private JsonNullable bankSlip; - - @JsonIgnore - public ApiReceivableAnticipationLimitsInfoResponseDto getCreditCard() { - return creditCard.orElse(null); - } - - @JsonIgnore - public ApiReceivableAnticipationLimitsInfoResponseDto getBankSlip() { - return bankSlip.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiReceivableAnticipationLimitsResponseDtoBuilder { - - private JsonNullable creditCard = JsonNullable.undefined(); - - @JsonProperty("creditCard") - public ApiReceivableAnticipationLimitsResponseDtoBuilder creditCard( - ApiReceivableAnticipationLimitsInfoResponseDto value - ) { - this.creditCard = JsonNullable.of(value); - return this; - } - - private JsonNullable bankSlip = JsonNullable.undefined(); - - @JsonProperty("bankSlip") - public ApiReceivableAnticipationLimitsResponseDtoBuilder bankSlip( - ApiReceivableAnticipationLimitsInfoResponseDto value - ) { - this.bankSlip = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.java deleted file mode 100644 index fb4ba06..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by status - */ -@Getter -@AllArgsConstructor -public enum ApiReceivableAnticipationListRequestReceivableAnticipationStatus { - PENDING("PENDING"), - DENIED("DENIED"), - CREDITED("CREDITED"), - DEBITED("DEBITED"), - CANCELLED("CANCELLED"), - OVERDUE("OVERDUE"), - SCHEDULED("SCHEDULED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiReceivableAnticipationListRequestReceivableAnticipationStatus fromValue(String value) { - return Arrays.stream(ApiReceivableAnticipationListRequestReceivableAnticipationStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListResponseDto.java deleted file mode 100644 index b7afb9f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiReceivableAnticipationListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiReceivableAnticipationListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiReceivableAnticipationListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiReceivableAnticipationListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiReceivableAnticipationListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiReceivableAnticipationListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiReceivableAnticipationListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiReceivableAnticipationListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index 94e5da4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSaveRequestDto.java +++ /dev/null @@ -1,86 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiReceivableAnticipationSaveRequestDto { - - /** - * ID of the installment to be anticipated - */ - @JsonProperty("installment") - private JsonNullable installment; - - /** - * ID of the payment to be anticipated - */ - @JsonProperty("payment") - private JsonNullable payment; - - /** - * File - */ - @JsonProperty("documents") - private JsonNullable documents; - - @JsonIgnore - public String getInstallment() { - return installment.orElse(null); - } - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public byte[] getDocuments() { - return documents.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiReceivableAnticipationSaveRequestDtoBuilder { - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiReceivableAnticipationSaveRequestDtoBuilder installment(String value) { - this.installment = JsonNullable.of(value); - return this; - } - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiReceivableAnticipationSaveRequestDtoBuilder payment(String value) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable documents = JsonNullable.undefined(); - - @JsonProperty("documents") - public ApiReceivableAnticipationSaveRequestDtoBuilder 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/ApiReceivableAnticipationSimulateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateRequestDto.java deleted file mode 100644 index 9eb0442..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateRequestDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiReceivableAnticipationSimulateRequestDto { - - /** - * ID of the installment to be anticipated - */ - @JsonProperty("installment") - private JsonNullable installment; - - /** - * ID of the payment to be anticipated - */ - @JsonProperty("payment") - private JsonNullable payment; - - @JsonIgnore - public String getInstallment() { - return installment.orElse(null); - } - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiReceivableAnticipationSimulateRequestDtoBuilder { - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiReceivableAnticipationSimulateRequestDtoBuilder installment(String value) { - this.installment = JsonNullable.of(value); - return this; - } - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiReceivableAnticipationSimulateRequestDtoBuilder payment(String value) { - 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 deleted file mode 100644 index 5fc98a4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateResponseDto.java +++ /dev/null @@ -1,216 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiReceivableAnticipationSimulateResponseDto { - - /** - * Unique identifier of the installment to be anticipated - */ - @JsonProperty("installment") - private JsonNullable installment; - - /** - * Unique identifier of the payment to be anticipated - */ - @JsonProperty("payment") - private JsonNullable payment; - - /** - * Anticipation request date - */ - @JsonProperty("anticipationDate") - private JsonNullable anticipationDate; - - /** - * Request due date - */ - @JsonProperty("dueDate") - private JsonNullable dueDate; - - /** - * Anticipation fee - */ - @JsonProperty("fee") - private JsonNullable fee; - - /** - * Number of days that were anticipated - */ - @JsonProperty("anticipationDays") - private JsonNullable anticipationDays; - - /** - * Net value discounted the anticipation fee - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Total amount of the payment to be anticipated - */ - @JsonProperty("totalValue") - private JsonNullable totalValue; - - /** - * Anticipation value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Determines the obligation to send electronic invoices or service provision contracts when requesting anticipation payment - */ - @JsonProperty("isDocumentationRequired") - private JsonNullable isDocumentationRequired; - - @JsonIgnore - public String getInstallment() { - return installment.orElse(null); - } - - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - - @JsonIgnore - public String getAnticipationDate() { - return anticipationDate.orElse(null); - } - - @JsonIgnore - public String getDueDate() { - return dueDate.orElse(null); - } - - @JsonIgnore - public Double getFee() { - return fee.orElse(null); - } - - @JsonIgnore - public Long getAnticipationDays() { - return anticipationDays.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public Double getTotalValue() { - return totalValue.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Boolean getIsDocumentationRequired() { - return isDocumentationRequired.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiReceivableAnticipationSimulateResponseDtoBuilder { - - private JsonNullable installment = JsonNullable.undefined(); - - @JsonProperty("installment") - public ApiReceivableAnticipationSimulateResponseDtoBuilder installment(String value) { - this.installment = JsonNullable.of(value); - return this; - } - - private JsonNullable payment = JsonNullable.undefined(); - - @JsonProperty("payment") - public ApiReceivableAnticipationSimulateResponseDtoBuilder payment(String value) { - this.payment = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipationDate = JsonNullable.undefined(); - - @JsonProperty("anticipationDate") - public ApiReceivableAnticipationSimulateResponseDtoBuilder anticipationDate(String value) { - this.anticipationDate = JsonNullable.of(value); - return this; - } - - private JsonNullable dueDate = JsonNullable.undefined(); - - @JsonProperty("dueDate") - public ApiReceivableAnticipationSimulateResponseDtoBuilder dueDate(String value) { - this.dueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable fee = JsonNullable.undefined(); - - @JsonProperty("fee") - public ApiReceivableAnticipationSimulateResponseDtoBuilder fee(Double value) { - this.fee = JsonNullable.of(value); - return this; - } - - private JsonNullable anticipationDays = JsonNullable.undefined(); - - @JsonProperty("anticipationDays") - public ApiReceivableAnticipationSimulateResponseDtoBuilder anticipationDays(Long value) { - this.anticipationDays = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiReceivableAnticipationSimulateResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable totalValue = JsonNullable.undefined(); - - @JsonProperty("totalValue") - public ApiReceivableAnticipationSimulateResponseDtoBuilder totalValue(Double value) { - this.totalValue = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiReceivableAnticipationSimulateResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable isDocumentationRequired = JsonNullable.undefined(); - - @JsonProperty("isDocumentationRequired") - public ApiReceivableAnticipationSimulateResponseDtoBuilder isDocumentationRequired(Boolean value) { - 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 deleted file mode 100644 index 5d036a2..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDto.java +++ /dev/null @@ -1,216 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionConfigureInvoiceRequestDto { - - /** - * Unique municipal service identifier - */ - @JsonProperty("municipalServiceId") - private JsonNullable municipalServiceId; - - /** - * Municipal Service Code - */ - @JsonProperty("municipalServiceCode") - private JsonNullable municipalServiceCode; - - /** - * Name of municipal service - */ - @JsonProperty("municipalServiceName") - private JsonNullable municipalServiceName; - - /** - * Update the Payment amount with the invoice taxes already deducted. - */ - @JsonProperty("updatePayment") - private JsonNullable updatePayment; - - /** - * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. - */ - @JsonProperty("deductions") - private JsonNullable deductions; - - /** - * When the invoice will be issued - */ - @JsonProperty("effectiveDatePeriod") - private JsonNullable effectiveDatePeriod; - - /** - * Issue only for paid charges - */ - @JsonProperty("receivedOnly") - private JsonNullable receivedOnly; - - /** - * Number of days before billing due date - */ - @JsonProperty("daysBeforeDueDate") - private JsonNullable daysBeforeDueDate; - - /** - * Additional notes on the invoice - */ - @JsonProperty("observations") - private JsonNullable observations; - - @JsonProperty("taxes") - private JsonNullable taxes; - - @JsonIgnore - public String getMunicipalServiceId() { - return municipalServiceId.orElse(null); - } - - @JsonIgnore - public String getMunicipalServiceCode() { - return municipalServiceCode.orElse(null); - } - - @JsonIgnore - public String getMunicipalServiceName() { - return municipalServiceName.orElse(null); - } - - @JsonIgnore - public Boolean getUpdatePayment() { - return updatePayment.orElse(null); - } - - @JsonIgnore - public Double getDeductions() { - return deductions.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod getEffectiveDatePeriod() { - return effectiveDatePeriod.orElse(null); - } - - @JsonIgnore - public Boolean getReceivedOnly() { - return receivedOnly.orElse(null); - } - - @JsonIgnore - public Long getDaysBeforeDueDate() { - return daysBeforeDueDate.orElse(null); - } - - @JsonIgnore - public String getObservations() { - return observations.orElse(null); - } - - @JsonIgnore - public ApiCustomerInvoiceTaxesDto getTaxes() { - return taxes.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionConfigureInvoiceRequestDtoBuilder { - - private JsonNullable municipalServiceId = JsonNullable.undefined(); - - @JsonProperty("municipalServiceId") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceId(String value) { - this.municipalServiceId = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalServiceCode = JsonNullable.undefined(); - - @JsonProperty("municipalServiceCode") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceCode(String value) { - this.municipalServiceCode = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalServiceName = JsonNullable.undefined(); - - @JsonProperty("municipalServiceName") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceName(String value) { - this.municipalServiceName = JsonNullable.of(value); - return this; - } - - private JsonNullable updatePayment = JsonNullable.undefined(); - - @JsonProperty("updatePayment") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder updatePayment(Boolean value) { - this.updatePayment = JsonNullable.of(value); - return this; - } - - private JsonNullable deductions = JsonNullable.undefined(); - - @JsonProperty("deductions") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder deductions(Double value) { - this.deductions = JsonNullable.of(value); - return this; - } - - private JsonNullable effectiveDatePeriod = - JsonNullable.undefined(); - - @JsonProperty("effectiveDatePeriod") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder effectiveDatePeriod( - ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod value - ) { - this.effectiveDatePeriod = JsonNullable.of(value); - return this; - } - - private JsonNullable receivedOnly = JsonNullable.undefined(); - - @JsonProperty("receivedOnly") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder receivedOnly(Boolean value) { - this.receivedOnly = JsonNullable.of(value); - return this; - } - - private JsonNullable daysBeforeDueDate = JsonNullable.undefined(); - - @JsonProperty("daysBeforeDueDate") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder daysBeforeDueDate(Long value) { - this.daysBeforeDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable observations = JsonNullable.undefined(); - - @JsonProperty("observations") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder observations(String value) { - this.observations = JsonNullable.of(value); - return this; - } - - private JsonNullable taxes = JsonNullable.undefined(); - - @JsonProperty("taxes") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { - this.taxes = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java deleted file mode 100644 index 26fc7d4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * When the invoice will be issued - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod { - ON_PAYMENT_CONFIRMATION("ON_PAYMENT_CONFIRMATION"), - ON_PAYMENT_DUE_DATE("ON_PAYMENT_DUE_DATE"), - BEFORE_PAYMENT_DUE_DATE("BEFORE_PAYMENT_DUE_DATE"), - ON_DUE_DATE_MONTH("ON_DUE_DATE_MONTH"), - ON_NEXT_MONTH("ON_NEXT_MONTH"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod fromValue(String value) { - return Arrays.stream(ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.java deleted file mode 100644 index c686df0..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionDeleteInvoiceConfigResponseDto { - - /** - * Informs if configurations have been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Unique subscription identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionDeleteInvoiceConfigResponseDtoBuilder { - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiSubscriptionDeleteInvoiceConfigResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiSubscriptionDeleteInvoiceConfigResponseDtoBuilder id(String value) { - 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 deleted file mode 100644 index 5d5c03d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionDeleteResponseDto { - - /** - * Informs if the subscription has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Unique subscription identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionDeleteResponseDtoBuilder { - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiSubscriptionDeleteResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiSubscriptionDeleteResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.java deleted file mode 100644 index 23fc90e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.java +++ /dev/null @@ -1,39 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by invoice status - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionGetInvoicesRequestInvoiceStatus { - SCHEDULED("SCHEDULED"), - WAITING_OVERDUE_PAYMENT("WAITING_OVERDUE_PAYMENT"), - PENDING("PENDING"), - SYNCHRONIZED_("SYNCHRONIZED"), - AUTHORIZED("AUTHORIZED"), - PROCESSING_CANCELLATION("PROCESSING_CANCELLATION"), - CANCELLED("CANCELLED"), - CANCELLATION_DENIED("CANCELLATION_DENIED"), - ERROR("ERROR"), - NONE("NONE"), - CANCELED("CANCELED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionGetInvoicesRequestInvoiceStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionGetInvoicesRequestInvoiceStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseBillingType.java deleted file mode 100644 index c22b7bc..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseBillingType.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing type - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionGetResponseBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - DEBIT_CARD("DEBIT_CARD"), - TRANSFER("TRANSFER"), - DEPOSIT("DEPOSIT"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionGetResponseBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionGetResponseBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseCycle.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseCycle.java deleted file mode 100644 index 37d61ee..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseCycle.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing frequency - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionGetResponseCycle { - WEEKLY("WEEKLY"), - BIWEEKLY("BIWEEKLY"), - MONTHLY("MONTHLY"), - BIMONTHLY("BIMONTHLY"), - QUARTERLY("QUARTERLY"), - SEMIANNUALLY("SEMIANNUALLY"), - YEARLY("YEARLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionGetResponseCycle fromValue(String value) { - return Arrays.stream(ApiSubscriptionGetResponseCycle.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseDto.java deleted file mode 100644 index 23226ef..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseDto.java +++ /dev/null @@ -1,398 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique subscription identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Subscription creation date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Unique customer identifier - */ - @JsonProperty("customer") - private JsonNullable customer; - - /** - * Unique identifier of the payments link to which the subscription belongs - */ - @JsonProperty("paymentLink") - private JsonNullable paymentLink; - - /** - * Billing type - */ - @JsonProperty("billingType") - private JsonNullable billingType; - - /** - * Billing frequency - */ - @JsonProperty("cycle") - private JsonNullable cycle; - - /** - * Subscription value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Due date of the next payment to be generated - */ - @JsonProperty("nextDueDate") - private JsonNullable nextDueDate; - - /** - * Deadline for payments to be due - */ - @JsonProperty("endDate") - private JsonNullable endDate; - - /** - * Subscription description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Subscription status - */ - @JsonProperty("status") - private JsonNullable status; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("fine") - private JsonNullable fine; - - @JsonProperty("interest") - private JsonNullable interest; - - /** - * Informs if the subscription has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Maximum number of payments to be generated for this subscription - */ - @JsonProperty("maxPayments") - private JsonNullable maxPayments; - - /** - * Subscription identifier on your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Unique checkout identifier - */ - @JsonProperty("checkoutSession") - private JsonNullable checkoutSession; - - /** - * Split information - */ - @JsonProperty("split") - private JsonNullable> split; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public String getCustomer() { - return customer.orElse(null); - } - - @JsonIgnore - public String getPaymentLink() { - return paymentLink.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionGetResponseBillingType getBillingType() { - return billingType.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionGetResponseCycle getCycle() { - return cycle.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getNextDueDate() { - return nextDueDate.orElse(null); - } - - @JsonIgnore - public String getEndDate() { - return endDate.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionGetResponseSubscriptionStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineResponseDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestResponseDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public Long getMaxPayments() { - return maxPayments.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public String getCheckoutSession() { - return checkoutSession.orElse(null); - } - - @JsonIgnore - public List getSplit() { - return split.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiSubscriptionGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiSubscriptionGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiSubscriptionGetResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable customer = JsonNullable.undefined(); - - @JsonProperty("customer") - public ApiSubscriptionGetResponseDtoBuilder customer(String value) { - this.customer = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentLink = JsonNullable.undefined(); - - @JsonProperty("paymentLink") - public ApiSubscriptionGetResponseDtoBuilder paymentLink(String value) { - this.paymentLink = JsonNullable.of(value); - return this; - } - - private JsonNullable billingType = JsonNullable.undefined(); - - @JsonProperty("billingType") - public ApiSubscriptionGetResponseDtoBuilder billingType(ApiSubscriptionGetResponseBillingType value) { - this.billingType = JsonNullable.of(value); - return this; - } - - private JsonNullable cycle = JsonNullable.undefined(); - - @JsonProperty("cycle") - public ApiSubscriptionGetResponseDtoBuilder cycle(ApiSubscriptionGetResponseCycle value) { - this.cycle = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiSubscriptionGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable nextDueDate = JsonNullable.undefined(); - - @JsonProperty("nextDueDate") - public ApiSubscriptionGetResponseDtoBuilder nextDueDate(String value) { - this.nextDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable endDate = JsonNullable.undefined(); - - @JsonProperty("endDate") - public ApiSubscriptionGetResponseDtoBuilder endDate(String value) { - this.endDate = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiSubscriptionGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiSubscriptionGetResponseDtoBuilder status(ApiSubscriptionGetResponseSubscriptionStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiSubscriptionGetResponseDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiSubscriptionGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiSubscriptionGetResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiSubscriptionGetResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable maxPayments = JsonNullable.undefined(); - - @JsonProperty("maxPayments") - public ApiSubscriptionGetResponseDtoBuilder maxPayments(Long value) { - this.maxPayments = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiSubscriptionGetResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable checkoutSession = JsonNullable.undefined(); - - @JsonProperty("checkoutSession") - public ApiSubscriptionGetResponseDtoBuilder checkoutSession(String value) { - this.checkoutSession = JsonNullable.of(value); - return this; - } - - private JsonNullable> split = JsonNullable.undefined(); - - @JsonProperty("split") - public ApiSubscriptionGetResponseDtoBuilder split(List value) { - this.split = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseSubscriptionStatus.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseSubscriptionStatus.java deleted file mode 100644 index 785a2dc..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseSubscriptionStatus.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Subscription status - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionGetResponseSubscriptionStatus { - ACTIVE("ACTIVE"), - EXPIRED("EXPIRED"), - INACTIVE("INACTIVE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionGetResponseSubscriptionStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionGetResponseSubscriptionStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigGetResponseDto.java deleted file mode 100644 index d3deec3..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigGetResponseDto.java +++ /dev/null @@ -1,194 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionInvoiceConfigGetResponseDto { - - /** - * Unique municipal service identifier - */ - @JsonProperty("municipalServiceId") - private JsonNullable municipalServiceId; - - /** - * Municipal Service Code - */ - @JsonProperty("municipalServiceCode") - private JsonNullable municipalServiceCode; - - /** - * Name of municipal service - */ - @JsonProperty("municipalServiceName") - private JsonNullable municipalServiceName; - - /** - * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. - */ - @JsonProperty("deductions") - private JsonNullable deductions; - - /** - * When the invoice will be issued - */ - @JsonProperty("invoiceCreationPeriod") - private JsonNullable invoiceCreationPeriod; - - /** - * Number of days before billing due date - */ - @JsonProperty("daysBeforeDueDate") - private JsonNullable daysBeforeDueDate; - - /** - * Issue only for paid charges - */ - @JsonProperty("receivedOnly") - private JsonNullable receivedOnly; - - /** - * Additional notes on the invoice - */ - @JsonProperty("observations") - private JsonNullable observations; - - @JsonProperty("taxes") - private JsonNullable taxes; - - @JsonIgnore - public String getMunicipalServiceId() { - return municipalServiceId.orElse(null); - } - - @JsonIgnore - public String getMunicipalServiceCode() { - return municipalServiceCode.orElse(null); - } - - @JsonIgnore - public String getMunicipalServiceName() { - return municipalServiceName.orElse(null); - } - - @JsonIgnore - public Double getDeductions() { - return deductions.orElse(null); - } - - @JsonIgnore - public InvoiceCreationPeriod getInvoiceCreationPeriod() { - return invoiceCreationPeriod.orElse(null); - } - - @JsonIgnore - public Long getDaysBeforeDueDate() { - return daysBeforeDueDate.orElse(null); - } - - @JsonIgnore - public Boolean getReceivedOnly() { - return receivedOnly.orElse(null); - } - - @JsonIgnore - public String getObservations() { - return observations.orElse(null); - } - - @JsonIgnore - public ApiCustomerInvoiceTaxesDto getTaxes() { - return taxes.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionInvoiceConfigGetResponseDtoBuilder { - - private JsonNullable municipalServiceId = JsonNullable.undefined(); - - @JsonProperty("municipalServiceId") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceId(String value) { - this.municipalServiceId = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalServiceCode = JsonNullable.undefined(); - - @JsonProperty("municipalServiceCode") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceCode(String value) { - this.municipalServiceCode = JsonNullable.of(value); - return this; - } - - private JsonNullable municipalServiceName = JsonNullable.undefined(); - - @JsonProperty("municipalServiceName") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceName(String value) { - this.municipalServiceName = JsonNullable.of(value); - return this; - } - - private JsonNullable deductions = JsonNullable.undefined(); - - @JsonProperty("deductions") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder deductions(Double value) { - this.deductions = JsonNullable.of(value); - return this; - } - - private JsonNullable invoiceCreationPeriod = JsonNullable.undefined(); - - @JsonProperty("invoiceCreationPeriod") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder invoiceCreationPeriod(InvoiceCreationPeriod value) { - this.invoiceCreationPeriod = JsonNullable.of(value); - return this; - } - - private JsonNullable daysBeforeDueDate = JsonNullable.undefined(); - - @JsonProperty("daysBeforeDueDate") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder daysBeforeDueDate(Long value) { - this.daysBeforeDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable receivedOnly = JsonNullable.undefined(); - - @JsonProperty("receivedOnly") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder receivedOnly(Boolean value) { - this.receivedOnly = JsonNullable.of(value); - return this; - } - - private JsonNullable observations = JsonNullable.undefined(); - - @JsonProperty("observations") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder observations(String value) { - this.observations = JsonNullable.of(value); - return this; - } - - private JsonNullable taxes = JsonNullable.undefined(); - - @JsonProperty("taxes") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { - 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 deleted file mode 100644 index d29b87a..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.java +++ /dev/null @@ -1,140 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionInvoiceConfigUpdateRequestDto { - - /** - * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. - */ - @JsonProperty("deductions") - private JsonNullable deductions; - - /** - * When the invoice will be issued - */ - @JsonProperty("effectiveDatePeriod") - private JsonNullable effectiveDatePeriod; - - /** - * Issue only for paid charges - */ - @JsonProperty("receivedOnly") - private JsonNullable receivedOnly; - - /** - * Number of days before billing due date - */ - @JsonProperty("daysBeforeDueDate") - private JsonNullable daysBeforeDueDate; - - /** - * Additional notes on the invoice - */ - @JsonProperty("observations") - private JsonNullable observations; - - @JsonProperty("taxes") - private JsonNullable taxes; - - @JsonIgnore - public Double getDeductions() { - return deductions.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod getEffectiveDatePeriod() { - return effectiveDatePeriod.orElse(null); - } - - @JsonIgnore - public Boolean getReceivedOnly() { - return receivedOnly.orElse(null); - } - - @JsonIgnore - public Long getDaysBeforeDueDate() { - return daysBeforeDueDate.orElse(null); - } - - @JsonIgnore - public String getObservations() { - return observations.orElse(null); - } - - @JsonIgnore - public ApiCustomerInvoiceTaxesDto getTaxes() { - return taxes.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder { - - private JsonNullable deductions = JsonNullable.undefined(); - - @JsonProperty("deductions") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder deductions(Double value) { - this.deductions = JsonNullable.of(value); - return this; - } - - private JsonNullable effectiveDatePeriod = - JsonNullable.undefined(); - - @JsonProperty("effectiveDatePeriod") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder effectiveDatePeriod( - ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod value - ) { - this.effectiveDatePeriod = JsonNullable.of(value); - return this; - } - - private JsonNullable receivedOnly = JsonNullable.undefined(); - - @JsonProperty("receivedOnly") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder receivedOnly(Boolean value) { - this.receivedOnly = JsonNullable.of(value); - return this; - } - - private JsonNullable daysBeforeDueDate = JsonNullable.undefined(); - - @JsonProperty("daysBeforeDueDate") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder daysBeforeDueDate(Long value) { - this.daysBeforeDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable observations = JsonNullable.undefined(); - - @JsonProperty("observations") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder observations(String value) { - this.observations = JsonNullable.of(value); - return this; - } - - private JsonNullable taxes = JsonNullable.undefined(); - - @JsonProperty("taxes") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { - this.taxes = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java deleted file mode 100644 index dbad65f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * When the invoice will be issued - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod { - ON_PAYMENT_CONFIRMATION("ON_PAYMENT_CONFIRMATION"), - ON_PAYMENT_DUE_DATE("ON_PAYMENT_DUE_DATE"), - BEFORE_PAYMENT_DUE_DATE("BEFORE_PAYMENT_DUE_DATE"), - ON_DUE_DATE_MONTH("ON_DUE_DATE_MONTH"), - ON_NEXT_MONTH("ON_NEXT_MONTH"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod fromValue(String value) { - return Arrays.stream(ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListPaymentsRequestPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListPaymentsRequestPaymentStatus.java deleted file mode 100644 index 756ec1b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListPaymentsRequestPaymentStatus.java +++ /dev/null @@ -1,42 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by payment status - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionListPaymentsRequestPaymentStatus { - PENDING("PENDING"), - RECEIVED("RECEIVED"), - CONFIRMED("CONFIRMED"), - OVERDUE("OVERDUE"), - REFUNDED("REFUNDED"), - RECEIVED_IN_CASH("RECEIVED_IN_CASH"), - REFUND_REQUESTED("REFUND_REQUESTED"), - REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), - CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), - CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), - AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), - DUNNING_REQUESTED("DUNNING_REQUESTED"), - DUNNING_RECEIVED("DUNNING_RECEIVED"), - AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionListPaymentsRequestPaymentStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionListPaymentsRequestPaymentStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestBillingType.java deleted file mode 100644 index 30b4dd3..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestBillingType.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by billing type - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionListRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - DEBIT_CARD("DEBIT_CARD"), - TRANSFER("TRANSFER"), - DEPOSIT("DEPOSIT"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionListRequestBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionListRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestSubscriptionStatus.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestSubscriptionStatus.java deleted file mode 100644 index 7b67cea..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestSubscriptionStatus.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Filter by status - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionListRequestSubscriptionStatus { - ACTIVE("ACTIVE"), - EXPIRED("EXPIRED"), - INACTIVE("INACTIVE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionListRequestSubscriptionStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionListRequestSubscriptionStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListResponseDto.java deleted file mode 100644 index 0ad0e3b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiSubscriptionListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiSubscriptionListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiSubscriptionListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiSubscriptionListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiSubscriptionListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiSubscriptionListResponseDtoBuilder data(List value) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestBillingType.java deleted file mode 100644 index 062143f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing type - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionSaveRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionSaveRequestBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestCycle.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestCycle.java deleted file mode 100644 index 9749fb0..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestCycle.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing frequency - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionSaveRequestCycle { - WEEKLY("WEEKLY"), - BIWEEKLY("BIWEEKLY"), - MONTHLY("MONTHLY"), - BIMONTHLY("BIMONTHLY"), - QUARTERLY("QUARTERLY"), - SEMIANNUALLY("SEMIANNUALLY"), - YEARLY("YEARLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionSaveRequestCycle fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveRequestCycle.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestDto.java deleted file mode 100644 index e5dc4d1..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestDto.java +++ /dev/null @@ -1,217 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionSaveRequestDto { - - /** - * Unique customer identifier in Asaas - */ - @NonNull - private String customer; - - /** - * Billing type - */ - @NonNull - private ApiSubscriptionSaveRequestBillingType billingType; - - /** - * Subscription value - */ - @NonNull - private Double value; - - /** - * First payment due - */ - @NonNull - private String nextDueDate; - - /** - * Billing frequency - */ - @NonNull - private ApiSubscriptionSaveRequestCycle cycle; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("interest") - private JsonNullable interest; - - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Subscription description (max. 500 characters) - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Deadline for payments to be due - */ - @JsonProperty("endDate") - private JsonNullable endDate; - - /** - * Maximum number of payments to be generated for this subscription - */ - @JsonProperty("maxPayments") - private JsonNullable maxPayments; - - /** - * Subscription identifier on your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Split information - */ - @JsonProperty("split") - private JsonNullable> split; - - @JsonProperty("callback") - private JsonNullable callback; - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineRequestDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getEndDate() { - return endDate.orElse(null); - } - - @JsonIgnore - public Long getMaxPayments() { - return maxPayments.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public List getSplit() { - return split.orElse(null); - } - - @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { - return callback.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionSaveRequestDtoBuilder { - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiSubscriptionSaveRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiSubscriptionSaveRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiSubscriptionSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiSubscriptionSaveRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable endDate = JsonNullable.undefined(); - - @JsonProperty("endDate") - public ApiSubscriptionSaveRequestDtoBuilder endDate(String value) { - this.endDate = JsonNullable.of(value); - return this; - } - - private JsonNullable maxPayments = JsonNullable.undefined(); - - @JsonProperty("maxPayments") - public ApiSubscriptionSaveRequestDtoBuilder maxPayments(Long value) { - this.maxPayments = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiSubscriptionSaveRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable> split = JsonNullable.undefined(); - - @JsonProperty("split") - public ApiSubscriptionSaveRequestDtoBuilder split(List value) { - this.split = JsonNullable.of(value); - return this; - } - - private JsonNullable callback = JsonNullable.undefined(); - - @JsonProperty("callback") - public ApiSubscriptionSaveRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - this.callback = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.java deleted file mode 100644 index 451c9df..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing type - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionSaveWithCreditCardRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionSaveWithCreditCardRequestBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveWithCreditCardRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestCycle.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestCycle.java deleted file mode 100644 index 12e68ce..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestCycle.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing frequency - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionSaveWithCreditCardRequestCycle { - WEEKLY("WEEKLY"), - BIWEEKLY("BIWEEKLY"), - MONTHLY("MONTHLY"), - BIMONTHLY("BIMONTHLY"), - QUARTERLY("QUARTERLY"), - SEMIANNUALLY("SEMIANNUALLY"), - YEARLY("YEARLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionSaveWithCreditCardRequestCycle fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveWithCreditCardRequestCycle.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestDto.java deleted file mode 100644 index f3de8d0..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestDto.java +++ /dev/null @@ -1,302 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionSaveWithCreditCardRequestDto { - - /** - * Unique customer identifier in Asaas - */ - @NonNull - private String customer; - - /** - * Billing type - */ - @NonNull - private ApiSubscriptionSaveWithCreditCardRequestBillingType billingType; - - /** - * Subscription value - */ - @NonNull - private Double value; - - /** - * First payment due - */ - @NonNull - private String nextDueDate; - - /** - * Billing frequency - */ - @NonNull - private ApiSubscriptionSaveWithCreditCardRequestCycle cycle; - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardRequestDto creditCard; - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardHolderInfoRequestDto creditCardHolderInfo; - - /** - * IP from where the customer is making the purchase. Your server's IP must not be entered. - */ - @NonNull - private String remoteIp; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("interest") - private JsonNullable interest; - - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Subscription description (max. 500 characters) - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Deadline for payments to be due - */ - @JsonProperty("endDate") - private JsonNullable endDate; - - /** - * Maximum number of payments to be generated for this subscription - */ - @JsonProperty("maxPayments") - private JsonNullable maxPayments; - - /** - * Subscription identifier on your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Split information - */ - @JsonProperty("split") - private JsonNullable> split; - - @JsonProperty("callback") - private JsonNullable callback; - - /** - * Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. - */ - @JsonProperty("creditCardToken") - private JsonNullable creditCardToken; - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineRequestDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getEndDate() { - return endDate.orElse(null); - } - - @JsonIgnore - public Long getMaxPayments() { - return maxPayments.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public List getSplit() { - return split.orElse(null); - } - - @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { - return callback.orElse(null); - } - - @JsonIgnore - public String getCreditCardToken() { - return creditCardToken.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionSaveWithCreditCardRequestDtoBuilder { - - /** - * 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 ApiSubscriptionSaveWithCreditCardRequestDtoBuilder creditCard(ApiCreditCardRequestDto creditCard) { - this.creditCard$set = true; - this.creditCard = creditCard; - return this; - } - - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder creditCardHolderInfo( - ApiCreditCardHolderInfoRequestDto creditCardHolderInfo - ) { - this.creditCardHolderInfo$set = true; - this.creditCardHolderInfo = creditCardHolderInfo; - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable endDate = JsonNullable.undefined(); - - @JsonProperty("endDate") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder endDate(String value) { - this.endDate = JsonNullable.of(value); - return this; - } - - private JsonNullable maxPayments = JsonNullable.undefined(); - - @JsonProperty("maxPayments") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder maxPayments(Long value) { - this.maxPayments = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable> split = JsonNullable.undefined(); - - @JsonProperty("split") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder split(List value) { - this.split = JsonNullable.of(value); - return this; - } - - private JsonNullable callback = JsonNullable.undefined(); - - @JsonProperty("callback") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - this.callback = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCardToken = JsonNullable.undefined(); - - @JsonProperty("creditCardToken") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder creditCardToken(String value) { - this.creditCardToken = JsonNullable.of(value); - return this; - } - - public ApiSubscriptionSaveWithCreditCardRequestDto build() { - if (!creditCard$set) { - throw new IllegalStateException("creditCard is required"); - } - if (!creditCardHolderInfo$set) { - throw new IllegalStateException("creditCardHolderInfo is required"); - } - return new ApiSubscriptionSaveWithCreditCardRequestDto( - customer, - billingType, - value, - nextDueDate, - cycle, - creditCard, - creditCardHolderInfo, - remoteIp, - discount, - interest, - fine, - description, - endDate, - maxPayments, - externalReference, - split, - callback, - creditCardToken - ); - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.java deleted file mode 100644 index fe97d6d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing type - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionSaveWithCreditCardResponseBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - DEBIT_CARD("DEBIT_CARD"), - TRANSFER("TRANSFER"), - DEPOSIT("DEPOSIT"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionSaveWithCreditCardResponseBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveWithCreditCardResponseBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseCycle.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseCycle.java deleted file mode 100644 index db2c44c..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseCycle.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing frequency - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionSaveWithCreditCardResponseCycle { - WEEKLY("WEEKLY"), - BIWEEKLY("BIWEEKLY"), - MONTHLY("MONTHLY"), - BIMONTHLY("BIMONTHLY"), - QUARTERLY("QUARTERLY"), - SEMIANNUALLY("SEMIANNUALLY"), - YEARLY("YEARLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionSaveWithCreditCardResponseCycle fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveWithCreditCardResponseCycle.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseDto.java deleted file mode 100644 index 9ea6f4e..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseDto.java +++ /dev/null @@ -1,422 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionSaveWithCreditCardResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique subscription identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Subscription creation date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Unique customer identifier - */ - @JsonProperty("customer") - private JsonNullable customer; - - /** - * Unique identifier of the payments link to which the subscription belongs - */ - @JsonProperty("paymentLink") - private JsonNullable paymentLink; - - /** - * Billing type - */ - @JsonProperty("billingType") - private JsonNullable billingType; - - /** - * Billing frequency - */ - @JsonProperty("cycle") - private JsonNullable cycle; - - /** - * Subscription value - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Due date of the next payment to be generated - */ - @JsonProperty("nextDueDate") - private JsonNullable nextDueDate; - - /** - * Deadline for payments to be due - */ - @JsonProperty("endDate") - private JsonNullable endDate; - - /** - * Subscription description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Subscription status - */ - @JsonProperty("status") - private JsonNullable status; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("fine") - private JsonNullable fine; - - @JsonProperty("interest") - private JsonNullable interest; - - /** - * Informs if the subscription has been removed - */ - @JsonProperty("deleted") - private JsonNullable deleted; - - /** - * Maximum number of payments to be generated for this subscription - */ - @JsonProperty("maxPayments") - private JsonNullable maxPayments; - - /** - * Subscription identifier on your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Unique checkout identifier - */ - @JsonProperty("checkoutSession") - private JsonNullable checkoutSession; - - /** - * Split information - */ - @JsonProperty("split") - private JsonNullable> split; - - @JsonProperty("creditCard") - private JsonNullable creditCard; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public String getCustomer() { - return customer.orElse(null); - } - - @JsonIgnore - public String getPaymentLink() { - return paymentLink.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionSaveWithCreditCardResponseBillingType getBillingType() { - return billingType.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionSaveWithCreditCardResponseCycle getCycle() { - return cycle.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public String getNextDueDate() { - return nextDueDate.orElse(null); - } - - @JsonIgnore - public String getEndDate() { - return endDate.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineResponseDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestResponseDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public Boolean getDeleted() { - return deleted.orElse(null); - } - - @JsonIgnore - public Long getMaxPayments() { - return maxPayments.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public String getCheckoutSession() { - return checkoutSession.orElse(null); - } - - @JsonIgnore - public List getSplit() { - return split.orElse(null); - } - - @JsonIgnore - public ApiPaymentSaveWithCreditCardCreditCardDto getCreditCard() { - return creditCard.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionSaveWithCreditCardResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable customer = JsonNullable.undefined(); - - @JsonProperty("customer") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder customer(String value) { - this.customer = JsonNullable.of(value); - return this; - } - - private JsonNullable paymentLink = JsonNullable.undefined(); - - @JsonProperty("paymentLink") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder paymentLink(String value) { - this.paymentLink = JsonNullable.of(value); - return this; - } - - private JsonNullable billingType = JsonNullable.undefined(); - - @JsonProperty("billingType") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder billingType( - ApiSubscriptionSaveWithCreditCardResponseBillingType value - ) { - this.billingType = JsonNullable.of(value); - return this; - } - - private JsonNullable cycle = JsonNullable.undefined(); - - @JsonProperty("cycle") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder cycle( - ApiSubscriptionSaveWithCreditCardResponseCycle value - ) { - this.cycle = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable nextDueDate = JsonNullable.undefined(); - - @JsonProperty("nextDueDate") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder nextDueDate(String value) { - this.nextDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable endDate = JsonNullable.undefined(); - - @JsonProperty("endDate") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder endDate(String value) { - this.endDate = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder status( - ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable deleted = JsonNullable.undefined(); - - @JsonProperty("deleted") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder deleted(Boolean value) { - this.deleted = JsonNullable.of(value); - return this; - } - - private JsonNullable maxPayments = JsonNullable.undefined(); - - @JsonProperty("maxPayments") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder maxPayments(Long value) { - this.maxPayments = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable checkoutSession = JsonNullable.undefined(); - - @JsonProperty("checkoutSession") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder checkoutSession(String value) { - this.checkoutSession = JsonNullable.of(value); - return this; - } - - private JsonNullable> split = JsonNullable.undefined(); - - @JsonProperty("split") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder split(List value) { - this.split = JsonNullable.of(value); - return this; - } - - private JsonNullable creditCard = JsonNullable.undefined(); - - @JsonProperty("creditCard") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder creditCard( - ApiPaymentSaveWithCreditCardCreditCardDto value - ) { - this.creditCard = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.java deleted file mode 100644 index 4e92fa4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Subscription status - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus { - ACTIVE("ACTIVE"), - EXPIRED("EXPIRED"), - INACTIVE("INACTIVE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitRequestDto.java deleted file mode 100644 index 7cd4685..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitRequestDto.java +++ /dev/null @@ -1,109 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionSplitRequestDto { - - /** - * Asaas wallet identifier that will be transferred - */ - @NonNull - private String walletId; - - /** - * Fixed amount to be transferred to the account when the payment is received - */ - @JsonProperty("fixedValue") - private JsonNullable fixedValue; - - /** - * Percentage of the net value of the charge to be transferred when received - */ - @JsonProperty("percentualValue") - private JsonNullable percentualValue; - - /** - * Split identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Split description - */ - @JsonProperty("description") - private JsonNullable description; - - @JsonIgnore - public Double getFixedValue() { - return fixedValue.orElse(null); - } - - @JsonIgnore - public Double getPercentualValue() { - return percentualValue.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionSplitRequestDtoBuilder { - - private JsonNullable fixedValue = JsonNullable.undefined(); - - @JsonProperty("fixedValue") - public ApiSubscriptionSplitRequestDtoBuilder fixedValue(Double value) { - this.fixedValue = JsonNullable.of(value); - return this; - } - - private JsonNullable percentualValue = JsonNullable.undefined(); - - @JsonProperty("percentualValue") - public ApiSubscriptionSplitRequestDtoBuilder percentualValue(Double value) { - this.percentualValue = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiSubscriptionSplitRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiSubscriptionSplitRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseDto.java deleted file mode 100644 index e4252da..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseDto.java +++ /dev/null @@ -1,162 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionSplitResponseDto { - - /** - * Asaas wallet identifier that will be transferred - */ - @JsonProperty("walletId") - private JsonNullable walletId; - - /** - * Fixed amount to be transferred to the account when the payment is received - */ - @JsonProperty("fixedValue") - private JsonNullable fixedValue; - - /** - * Percentage of the net value of the charge to be transferred when received - */ - @JsonProperty("percentualValue") - private JsonNullable percentualValue; - - /** - * Split identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Split description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Subscription split status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Reason why subscription split was disabled - */ - @JsonProperty("disabledReason") - private JsonNullable disabledReason; - - @JsonIgnore - public String getWalletId() { - return walletId.orElse(null); - } - - @JsonIgnore - public Double getFixedValue() { - return fixedValue.orElse(null); - } - - @JsonIgnore - public Double getPercentualValue() { - return percentualValue.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionSplitResponseSubscriptionSplitStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason getDisabledReason() { - return disabledReason.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionSplitResponseDtoBuilder { - - private JsonNullable walletId = JsonNullable.undefined(); - - @JsonProperty("walletId") - public ApiSubscriptionSplitResponseDtoBuilder walletId(String value) { - this.walletId = JsonNullable.of(value); - return this; - } - - private JsonNullable fixedValue = JsonNullable.undefined(); - - @JsonProperty("fixedValue") - public ApiSubscriptionSplitResponseDtoBuilder fixedValue(Double value) { - this.fixedValue = JsonNullable.of(value); - return this; - } - - private JsonNullable percentualValue = JsonNullable.undefined(); - - @JsonProperty("percentualValue") - public ApiSubscriptionSplitResponseDtoBuilder percentualValue(Double value) { - this.percentualValue = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiSubscriptionSplitResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiSubscriptionSplitResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiSubscriptionSplitResponseDtoBuilder status(ApiSubscriptionSplitResponseSubscriptionSplitStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable disabledReason = - JsonNullable.undefined(); - - @JsonProperty("disabledReason") - public ApiSubscriptionSplitResponseDtoBuilder disabledReason( - ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason value - ) { - this.disabledReason = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.java deleted file mode 100644 index 8ebccae..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Reason why subscription split was disabled - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason { - WALLET_UNABLE_TO_RECEIVE("WALLET_UNABLE_TO_RECEIVE"), - VALUE_DIVERGENCE("VALUE_DIVERGENCE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason fromValue(String value) { - return Arrays.stream(ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.java deleted file mode 100644 index e39716b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Subscription split status - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionSplitResponseSubscriptionSplitStatus { - ACTIVE("ACTIVE"), - DISABLED("DISABLED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionSplitResponseSubscriptionSplitStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionSplitResponseSubscriptionSplitStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateCreditCardRequestDto.java deleted file mode 100644 index 6129145..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateCreditCardRequestDto.java +++ /dev/null @@ -1,93 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.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; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionUpdateCreditCardRequestDto { - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardRequestDto creditCard; - - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardHolderInfoRequestDto creditCardHolderInfo; - - /** - * IP from where the customer is making the purchase. Your server's IP must not be entered. - */ - @NonNull - private String remoteIp; - - /** - * Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. - */ - @JsonProperty("creditCardToken") - private JsonNullable creditCardToken; - - @JsonIgnore - public String getCreditCardToken() { - return creditCardToken.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionUpdateCreditCardRequestDtoBuilder { - - /** - * 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 ApiSubscriptionUpdateCreditCardRequestDtoBuilder creditCard(ApiCreditCardRequestDto creditCard) { - this.creditCard$set = true; - this.creditCard = creditCard; - return this; - } - - public ApiSubscriptionUpdateCreditCardRequestDtoBuilder creditCardHolderInfo( - ApiCreditCardHolderInfoRequestDto creditCardHolderInfo - ) { - this.creditCardHolderInfo$set = true; - this.creditCardHolderInfo = creditCardHolderInfo; - return this; - } - - private JsonNullable creditCardToken = JsonNullable.undefined(); - - @JsonProperty("creditCardToken") - public ApiSubscriptionUpdateCreditCardRequestDtoBuilder creditCardToken(String value) { - 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/ApiSubscriptionUpdateRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestBillingType.java deleted file mode 100644 index fee893f..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestBillingType.java +++ /dev/null @@ -1,32 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing type - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionUpdateRequestBillingType { - UNDEFINED("UNDEFINED"), - BOLETO("BOLETO"), - CREDIT_CARD("CREDIT_CARD"), - PIX("PIX"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionUpdateRequestBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionUpdateRequestBillingType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestCycle.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestCycle.java deleted file mode 100644 index 075c087..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestCycle.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Billing frequency - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionUpdateRequestCycle { - WEEKLY("WEEKLY"), - BIWEEKLY("BIWEEKLY"), - MONTHLY("MONTHLY"), - BIMONTHLY("BIMONTHLY"), - QUARTERLY("QUARTERLY"), - SEMIANNUALLY("SEMIANNUALLY"), - YEARLY("YEARLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionUpdateRequestCycle fromValue(String value) { - return Arrays.stream(ApiSubscriptionUpdateRequestCycle.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestDto.java deleted file mode 100644 index b54e5da..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestDto.java +++ /dev/null @@ -1,262 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiSubscriptionUpdateRequestDto { - - /** - * Billing type - */ - @JsonProperty("billingType") - private JsonNullable billingType; - - /** - * Subscription status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * First payment due - */ - @JsonProperty("nextDueDate") - private JsonNullable nextDueDate; - - @JsonProperty("discount") - private JsonNullable discount; - - @JsonProperty("interest") - private JsonNullable interest; - - @JsonProperty("fine") - private JsonNullable fine; - - /** - * Billing frequency - */ - @JsonProperty("cycle") - private JsonNullable cycle; - - /** - * Subscription description (max. 500 characters) - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Deadline for payments to be due - */ - @JsonProperty("endDate") - private JsonNullable endDate; - - /** - * true to update the possible properties of already existing pending payments - */ - @JsonProperty("updatePendingPayments") - private JsonNullable updatePendingPayments; - - /** - * Subscription identifier on your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Split information - */ - @JsonProperty("split") - private JsonNullable> split; - - @JsonProperty("callback") - private JsonNullable callback; - - @JsonIgnore - public ApiSubscriptionUpdateRequestBillingType getBillingType() { - return billingType.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionUpdateRequestSubscriptionStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public String getNextDueDate() { - return nextDueDate.orElse(null); - } - - @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { - return discount.orElse(null); - } - - @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { - return interest.orElse(null); - } - - @JsonIgnore - public ApiPaymentFineRequestDto getFine() { - return fine.orElse(null); - } - - @JsonIgnore - public ApiSubscriptionUpdateRequestCycle getCycle() { - return cycle.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getEndDate() { - return endDate.orElse(null); - } - - @JsonIgnore - public Boolean getUpdatePendingPayments() { - return updatePendingPayments.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public List getSplit() { - return split.orElse(null); - } - - @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { - return callback.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiSubscriptionUpdateRequestDtoBuilder { - - private JsonNullable billingType = JsonNullable.undefined(); - - @JsonProperty("billingType") - public ApiSubscriptionUpdateRequestDtoBuilder billingType(ApiSubscriptionUpdateRequestBillingType value) { - this.billingType = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiSubscriptionUpdateRequestDtoBuilder status(ApiSubscriptionUpdateRequestSubscriptionStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable nextDueDate = JsonNullable.undefined(); - - @JsonProperty("nextDueDate") - public ApiSubscriptionUpdateRequestDtoBuilder nextDueDate(String value) { - this.nextDueDate = JsonNullable.of(value); - return this; - } - - private JsonNullable discount = JsonNullable.undefined(); - - @JsonProperty("discount") - public ApiSubscriptionUpdateRequestDtoBuilder discount(ApiPaymentDiscountDto value) { - this.discount = JsonNullable.of(value); - return this; - } - - private JsonNullable interest = JsonNullable.undefined(); - - @JsonProperty("interest") - public ApiSubscriptionUpdateRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { - this.interest = JsonNullable.of(value); - return this; - } - - private JsonNullable fine = JsonNullable.undefined(); - - @JsonProperty("fine") - public ApiSubscriptionUpdateRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { - this.fine = JsonNullable.of(value); - return this; - } - - private JsonNullable cycle = JsonNullable.undefined(); - - @JsonProperty("cycle") - public ApiSubscriptionUpdateRequestDtoBuilder cycle(ApiSubscriptionUpdateRequestCycle value) { - this.cycle = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiSubscriptionUpdateRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable endDate = JsonNullable.undefined(); - - @JsonProperty("endDate") - public ApiSubscriptionUpdateRequestDtoBuilder endDate(String value) { - this.endDate = JsonNullable.of(value); - return this; - } - - private JsonNullable updatePendingPayments = JsonNullable.undefined(); - - @JsonProperty("updatePendingPayments") - public ApiSubscriptionUpdateRequestDtoBuilder updatePendingPayments(Boolean value) { - this.updatePendingPayments = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiSubscriptionUpdateRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable> split = JsonNullable.undefined(); - - @JsonProperty("split") - public ApiSubscriptionUpdateRequestDtoBuilder split(List value) { - this.split = JsonNullable.of(value); - return this; - } - - private JsonNullable callback = JsonNullable.undefined(); - - @JsonProperty("callback") - public ApiSubscriptionUpdateRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { - this.callback = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestSubscriptionStatus.java b/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestSubscriptionStatus.java deleted file mode 100644 index e365ce9..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestSubscriptionStatus.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Subscription status - */ -@Getter -@AllArgsConstructor -public enum ApiSubscriptionUpdateRequestSubscriptionStatus { - ACTIVE("ACTIVE"), - INACTIVE("INACTIVE"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiSubscriptionUpdateRequestSubscriptionStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionUpdateRequestSubscriptionStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountGetResponseDto.java deleted file mode 100644 index 6adf2b2..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountGetResponseDto.java +++ /dev/null @@ -1,194 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiTransferBankAccountGetResponseDto { - - @JsonProperty("bank") - private JsonNullable bank; - - /** - * Name of bank account owner - */ - @JsonProperty("accountName") - private JsonNullable accountName; - - /** - * Name of bank account owner - */ - @JsonProperty("ownerName") - private JsonNullable ownerName; - - /** - * CPF or CNPJ of the bank account owner - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Non-digit agency number - */ - @JsonProperty("agency") - private JsonNullable agency; - - /** - * Agency digit - */ - @JsonProperty("agencyDigit") - private JsonNullable agencyDigit; - - /** - * Non-digit bank account number - */ - @JsonProperty("account") - private JsonNullable account; - - /** - * Bank account digit - */ - @JsonProperty("accountDigit") - private JsonNullable accountDigit; - - /** - * Pix key address - */ - @JsonProperty("pixAddressKey") - private JsonNullable pixAddressKey; - - @JsonIgnore - public ApiTransferBankGetResponseDto getBank() { - return bank.orElse(null); - } - - @JsonIgnore - public String getAccountName() { - return accountName.orElse(null); - } - - @JsonIgnore - public String getOwnerName() { - return ownerName.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public String getAgency() { - return agency.orElse(null); - } - - @JsonIgnore - public String getAgencyDigit() { - return agencyDigit.orElse(null); - } - - @JsonIgnore - public String getAccount() { - return account.orElse(null); - } - - @JsonIgnore - public String getAccountDigit() { - return accountDigit.orElse(null); - } - - @JsonIgnore - public String getPixAddressKey() { - return pixAddressKey.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiTransferBankAccountGetResponseDtoBuilder { - - private JsonNullable bank = JsonNullable.undefined(); - - @JsonProperty("bank") - public ApiTransferBankAccountGetResponseDtoBuilder bank(ApiTransferBankGetResponseDto value) { - this.bank = JsonNullable.of(value); - return this; - } - - private JsonNullable accountName = JsonNullable.undefined(); - - @JsonProperty("accountName") - public ApiTransferBankAccountGetResponseDtoBuilder accountName(String value) { - this.accountName = JsonNullable.of(value); - return this; - } - - private JsonNullable ownerName = JsonNullable.undefined(); - - @JsonProperty("ownerName") - public ApiTransferBankAccountGetResponseDtoBuilder ownerName(String value) { - this.ownerName = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiTransferBankAccountGetResponseDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable agency = JsonNullable.undefined(); - - @JsonProperty("agency") - public ApiTransferBankAccountGetResponseDtoBuilder agency(String value) { - this.agency = JsonNullable.of(value); - return this; - } - - private JsonNullable agencyDigit = JsonNullable.undefined(); - - @JsonProperty("agencyDigit") - public ApiTransferBankAccountGetResponseDtoBuilder agencyDigit(String value) { - this.agencyDigit = JsonNullable.of(value); - return this; - } - - private JsonNullable account = JsonNullable.undefined(); - - @JsonProperty("account") - public ApiTransferBankAccountGetResponseDtoBuilder account(String value) { - this.account = JsonNullable.of(value); - return this; - } - - private JsonNullable accountDigit = JsonNullable.undefined(); - - @JsonProperty("accountDigit") - public ApiTransferBankAccountGetResponseDtoBuilder accountDigit(String value) { - this.accountDigit = JsonNullable.of(value); - return this; - } - - private JsonNullable pixAddressKey = JsonNullable.undefined(); - - @JsonProperty("pixAddressKey") - public ApiTransferBankAccountGetResponseDtoBuilder pixAddressKey(String value) { - this.pixAddressKey = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestBankAccountType.java b/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestBankAccountType.java deleted file mode 100644 index 85b8e72..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestBankAccountType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Account type - */ -@Getter -@AllArgsConstructor -public enum ApiTransferBankAccountSaveRequestBankAccountType { - CONTA_CORRENTE("CONTA_CORRENTE"), - CONTA_POUPANCA("CONTA_POUPANCA"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiTransferBankAccountSaveRequestBankAccountType fromValue(String value) { - return Arrays.stream(ApiTransferBankAccountSaveRequestBankAccountType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestDto.java deleted file mode 100644 index 0300ed7..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestDto.java +++ /dev/null @@ -1,151 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiTransferBankAccountSaveRequestDto { - - /** - * Name of bank account owner - */ - @NonNull - private String ownerName; - - /** - * CPF or CNPJ of the bank account owner - */ - @NonNull - private String cpfCnpj; - - /** - * Non-digit agency number - */ - @NonNull - private String agency; - - /** - * Non-digit bank account number - */ - @NonNull - private String account; - - /** - * Bank account digit - */ - @NonNull - private String accountDigit; - - @JsonProperty("bank") - private JsonNullable bank; - - /** - * Bank account name - */ - @JsonProperty("accountName") - private JsonNullable accountName; - - /** - * Account owner's date of birth. Only when the bank account does not belong to the same CPF or CNPJ as the Asaas account. - */ - @JsonProperty("ownerBirthDate") - private JsonNullable ownerBirthDate; - - /** - * Account type - */ - @JsonProperty("bankAccountType") - private JsonNullable bankAccountType; - - /** - * Identifier in the Brazilian Payment System - */ - @JsonProperty("ispb") - private JsonNullable ispb; - - @JsonIgnore - public ApiTransferBankSaveRequestDto getBank() { - return bank.orElse(null); - } - - @JsonIgnore - public String getAccountName() { - return accountName.orElse(null); - } - - @JsonIgnore - public String getOwnerBirthDate() { - return ownerBirthDate.orElse(null); - } - - @JsonIgnore - public ApiTransferBankAccountSaveRequestBankAccountType getBankAccountType() { - return bankAccountType.orElse(null); - } - - @JsonIgnore - public String getIspb() { - return ispb.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiTransferBankAccountSaveRequestDtoBuilder { - - private JsonNullable bank = JsonNullable.undefined(); - - @JsonProperty("bank") - public ApiTransferBankAccountSaveRequestDtoBuilder bank(ApiTransferBankSaveRequestDto value) { - this.bank = JsonNullable.of(value); - return this; - } - - private JsonNullable accountName = JsonNullable.undefined(); - - @JsonProperty("accountName") - public ApiTransferBankAccountSaveRequestDtoBuilder accountName(String value) { - this.accountName = JsonNullable.of(value); - return this; - } - - private JsonNullable ownerBirthDate = JsonNullable.undefined(); - - @JsonProperty("ownerBirthDate") - public ApiTransferBankAccountSaveRequestDtoBuilder ownerBirthDate(String value) { - this.ownerBirthDate = JsonNullable.of(value); - return this; - } - - private JsonNullable bankAccountType = JsonNullable.undefined(); - - @JsonProperty("bankAccountType") - public ApiTransferBankAccountSaveRequestDtoBuilder bankAccountType( - ApiTransferBankAccountSaveRequestBankAccountType value - ) { - this.bankAccountType = JsonNullable.of(value); - return this; - } - - private JsonNullable ispb = JsonNullable.undefined(); - - @JsonProperty("ispb") - public ApiTransferBankAccountSaveRequestDtoBuilder ispb(String value) { - this.ispb = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferBankGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferBankGetResponseDto.java deleted file mode 100644 index af6fa29..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferBankGetResponseDto.java +++ /dev/null @@ -1,83 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiTransferBankGetResponseDto { - - /** - * Identifier in the Brazilian Payment System - */ - @JsonProperty("ispb") - private JsonNullable ispb; - - /** - * Bank clearing code in the banking system - */ - @JsonProperty("code") - private JsonNullable code; - - /** - * Bank name - */ - @JsonProperty("name") - private JsonNullable name; - - @JsonIgnore - public String getIspb() { - return ispb.orElse(null); - } - - @JsonIgnore - public String getCode() { - return code.orElse(null); - } - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiTransferBankGetResponseDtoBuilder { - - private JsonNullable ispb = JsonNullable.undefined(); - - @JsonProperty("ispb") - public ApiTransferBankGetResponseDtoBuilder ispb(String value) { - this.ispb = JsonNullable.of(value); - return this; - } - - private JsonNullable code = JsonNullable.undefined(); - - @JsonProperty("code") - public ApiTransferBankGetResponseDtoBuilder code(String value) { - this.code = JsonNullable.of(value); - return this; - } - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiTransferBankGetResponseDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferBankSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferBankSaveRequestDto.java deleted file mode 100644 index d1be583..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferBankSaveRequestDto.java +++ /dev/null @@ -1,26 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiTransferBankSaveRequestDto { - - /** - * Bank clearing code in the banking system - */ - @NonNull - private String code; -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDto.java deleted file mode 100644 index 52f4b37..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDto.java +++ /dev/null @@ -1,384 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiTransferGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique transfer identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Type of transfer - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Transfer request date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Transfer amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Net value minus transfer fee - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Transfer status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Transfer rate - */ - @JsonProperty("transferFee") - private JsonNullable transferFee; - - /** - * Effective date - */ - @JsonProperty("effectiveDate") - private JsonNullable effectiveDate; - - /** - * Schedule date - */ - @JsonProperty("scheduleDate") - private JsonNullable scheduleDate; - - /** - * Unique identifier of the Pix transaction at the Central Bank - */ - @JsonProperty("endToEndIdentifier") - private JsonNullable endToEndIdentifier; - - /** - * `false` when awaiting authorization via SMS Token - */ - @JsonProperty("authorized") - private JsonNullable authorized; - - /** - * Reason for transfer failure - */ - @JsonProperty("failReason") - private JsonNullable failReason; - - /** - * Transfer identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Proof of transfer will be available after the transfer is confirmed - */ - @JsonProperty("transactionReceiptUrl") - private JsonNullable transactionReceiptUrl; - - /** - * Transfer method - */ - @JsonProperty("operationType") - private JsonNullable operationType; - - /** - * Transfer description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Unique recurrence identifier in Asaas - */ - @JsonProperty("recurring") - private JsonNullable recurring; - - @JsonProperty("bankAccount") - private JsonNullable bankAccount; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public ApiTransferGetResponseDtoType getType() { - return type.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public ApiTransferGetResponseTransferStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public Double getTransferFee() { - return transferFee.orElse(null); - } - - @JsonIgnore - public String getEffectiveDate() { - return effectiveDate.orElse(null); - } - - @JsonIgnore - public String getScheduleDate() { - return scheduleDate.orElse(null); - } - - @JsonIgnore - public String getEndToEndIdentifier() { - return endToEndIdentifier.orElse(null); - } - - @JsonIgnore - public Boolean getAuthorized() { - return authorized.orElse(null); - } - - @JsonIgnore - public String getFailReason() { - return failReason.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public String getTransactionReceiptUrl() { - return transactionReceiptUrl.orElse(null); - } - - @JsonIgnore - public ApiTransferGetResponseTransferType getOperationType() { - return operationType.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getRecurring() { - return recurring.orElse(null); - } - - @JsonIgnore - public ApiTransferBankAccountGetResponseDto getBankAccount() { - return bankAccount.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiTransferGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiTransferGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiTransferGetResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiTransferGetResponseDtoBuilder type(ApiTransferGetResponseDtoType value) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiTransferGetResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiTransferGetResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiTransferGetResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiTransferGetResponseDtoBuilder status(ApiTransferGetResponseTransferStatus value) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable transferFee = JsonNullable.undefined(); - - @JsonProperty("transferFee") - public ApiTransferGetResponseDtoBuilder transferFee(Double value) { - this.transferFee = JsonNullable.of(value); - return this; - } - - private JsonNullable effectiveDate = JsonNullable.undefined(); - - @JsonProperty("effectiveDate") - public ApiTransferGetResponseDtoBuilder effectiveDate(String value) { - this.effectiveDate = JsonNullable.of(value); - return this; - } - - private JsonNullable scheduleDate = JsonNullable.undefined(); - - @JsonProperty("scheduleDate") - public ApiTransferGetResponseDtoBuilder scheduleDate(String value) { - this.scheduleDate = JsonNullable.of(value); - return this; - } - - private JsonNullable endToEndIdentifier = JsonNullable.undefined(); - - @JsonProperty("endToEndIdentifier") - public ApiTransferGetResponseDtoBuilder endToEndIdentifier(String value) { - this.endToEndIdentifier = JsonNullable.of(value); - return this; - } - - private JsonNullable authorized = JsonNullable.undefined(); - - @JsonProperty("authorized") - public ApiTransferGetResponseDtoBuilder authorized(Boolean value) { - this.authorized = JsonNullable.of(value); - return this; - } - - private JsonNullable failReason = JsonNullable.undefined(); - - @JsonProperty("failReason") - public ApiTransferGetResponseDtoBuilder failReason(String value) { - this.failReason = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiTransferGetResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); - - @JsonProperty("transactionReceiptUrl") - public ApiTransferGetResponseDtoBuilder transactionReceiptUrl(String value) { - this.transactionReceiptUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable operationType = JsonNullable.undefined(); - - @JsonProperty("operationType") - public ApiTransferGetResponseDtoBuilder operationType(ApiTransferGetResponseTransferType value) { - this.operationType = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiTransferGetResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable recurring = JsonNullable.undefined(); - - @JsonProperty("recurring") - public ApiTransferGetResponseDtoBuilder recurring(String value) { - this.recurring = JsonNullable.of(value); - return this; - } - - private JsonNullable bankAccount = JsonNullable.undefined(); - - @JsonProperty("bankAccount") - public ApiTransferGetResponseDtoBuilder bankAccount(ApiTransferBankAccountGetResponseDto value) { - this.bankAccount = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDtoType.java b/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDtoType.java deleted file mode 100644 index 42d9023..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDtoType.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of transfer - */ -@Getter -@AllArgsConstructor -public enum ApiTransferGetResponseDtoType { - PIX("PIX"), - TED("TED"), - INTERNAL("INTERNAL"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiTransferGetResponseDtoType fromValue(String value) { - return Arrays.stream(ApiTransferGetResponseDtoType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferStatus.java b/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferStatus.java deleted file mode 100644 index 6776dae..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferStatus.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Transfer status - */ -@Getter -@AllArgsConstructor -public enum ApiTransferGetResponseTransferStatus { - PENDING("PENDING"), - BANK_PROCESSING("BANK_PROCESSING"), - DONE("DONE"), - CANCELLED("CANCELLED"), - FAILED("FAILED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiTransferGetResponseTransferStatus fromValue(String value) { - return Arrays.stream(ApiTransferGetResponseTransferStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferType.java b/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferType.java deleted file mode 100644 index 5d8875b..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferType.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Transfer method - */ -@Getter -@AllArgsConstructor -public enum ApiTransferGetResponseTransferType { - PIX("PIX"), - TED("TED"), - INTERNAL("INTERNAL"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiTransferGetResponseTransferType fromValue(String value) { - return Arrays.stream(ApiTransferGetResponseTransferType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferListResponseDto.java deleted file mode 100644 index 3b5d5a2..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferListResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiTransferListResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiTransferListResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiTransferListResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiTransferListResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiTransferListResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiTransferListResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiTransferListResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiTransferListResponseDtoBuilder data(List value) { - 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 deleted file mode 100644 index 50e895d..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestDto.java +++ /dev/null @@ -1,69 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiTransferRecurringSaveRequestDto { - - /** - * Frequency - */ - @JsonProperty("frequency") - private JsonNullable frequency; - - /** - * Number of repetitions. This transfer will be included as the first transaction of the recurrence. - * For the `WEEKLY` frequency, the maximum accepted is: `51` - * For the `MONTHLY` frequency, the maximum accepted is: `11` - */ - @JsonProperty("quantity") - private JsonNullable quantity; - - @JsonIgnore - public ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency getFrequency() { - return frequency.orElse(null); - } - - @JsonIgnore - public Long getQuantity() { - return quantity.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiTransferRecurringSaveRequestDtoBuilder { - - private JsonNullable frequency = - JsonNullable.undefined(); - - @JsonProperty("frequency") - public ApiTransferRecurringSaveRequestDtoBuilder frequency( - ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency value - ) { - this.frequency = JsonNullable.of(value); - return this; - } - - private JsonNullable quantity = JsonNullable.undefined(); - - @JsonProperty("quantity") - public ApiTransferRecurringSaveRequestDtoBuilder quantity(Long value) { - this.quantity = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java b/src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java deleted file mode 100644 index 5bdc8a0..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Frequency - */ -@Getter -@AllArgsConstructor -public enum ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency { - WEEKLY("WEEKLY"), - MONTHLY("MONTHLY"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency fromValue(String value) { - return Arrays.stream(ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferAccountDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferAccountDto.java deleted file mode 100644 index e2cf7eb..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferAccountDto.java +++ /dev/null @@ -1,121 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiTransferSaveInternalTransferAccountDto { - - /** - * Target account name - */ - @JsonProperty("name") - private JsonNullable name; - - /** - * CPF or CNPJ of the destination account - */ - @JsonProperty("cpfCnpj") - private JsonNullable cpfCnpj; - - /** - * Target account branch code - */ - @JsonProperty("agency") - private JsonNullable agency; - - /** - * Target account number - */ - @JsonProperty("account") - private JsonNullable account; - - /** - * Target account digit - */ - @JsonProperty("accountDigit") - private JsonNullable accountDigit; - - @JsonIgnore - public String getName() { - return name.orElse(null); - } - - @JsonIgnore - public String getCpfCnpj() { - return cpfCnpj.orElse(null); - } - - @JsonIgnore - public String getAgency() { - return agency.orElse(null); - } - - @JsonIgnore - public String getAccount() { - return account.orElse(null); - } - - @JsonIgnore - public String getAccountDigit() { - return accountDigit.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiTransferSaveInternalTransferAccountDtoBuilder { - - private JsonNullable name = JsonNullable.undefined(); - - @JsonProperty("name") - public ApiTransferSaveInternalTransferAccountDtoBuilder name(String value) { - this.name = JsonNullable.of(value); - return this; - } - - private JsonNullable cpfCnpj = JsonNullable.undefined(); - - @JsonProperty("cpfCnpj") - public ApiTransferSaveInternalTransferAccountDtoBuilder cpfCnpj(String value) { - this.cpfCnpj = JsonNullable.of(value); - return this; - } - - private JsonNullable agency = JsonNullable.undefined(); - - @JsonProperty("agency") - public ApiTransferSaveInternalTransferAccountDtoBuilder agency(String value) { - this.agency = JsonNullable.of(value); - return this; - } - - private JsonNullable account = JsonNullable.undefined(); - - @JsonProperty("account") - public ApiTransferSaveInternalTransferAccountDtoBuilder account(String value) { - this.account = JsonNullable.of(value); - return this; - } - - private JsonNullable accountDigit = JsonNullable.undefined(); - - @JsonProperty("accountDigit") - public ApiTransferSaveInternalTransferAccountDtoBuilder accountDigit(String value) { - 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 deleted file mode 100644 index c2990b4..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferRequestDto.java +++ /dev/null @@ -1,58 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiTransferSaveInternalTransferRequestDto { - - /** - * Amount to be transferred - */ - @NonNull - private Double value; - - /** - * WalletId of the target account - */ - @NonNull - private String walletId; - - /** - * Transfer identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiTransferSaveInternalTransferRequestDtoBuilder { - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiTransferSaveInternalTransferRequestDtoBuilder externalReference(String value) { - 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 deleted file mode 100644 index b7905a5..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDto.java +++ /dev/null @@ -1,409 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiTransferSaveInternalTransferResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique transfer identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - /** - * Type of transfer - */ - @JsonProperty("type") - private JsonNullable type; - - /** - * Transfer request date - */ - @JsonProperty("dateCreated") - private JsonNullable dateCreated; - - /** - * Transfer amount - */ - @JsonProperty("value") - private JsonNullable value; - - /** - * Net value minus transfer fee - */ - @JsonProperty("netValue") - private JsonNullable netValue; - - /** - * Transfer status - */ - @JsonProperty("status") - private JsonNullable status; - - /** - * Transfer rate - */ - @JsonProperty("transferFee") - private JsonNullable transferFee; - - /** - * Effective date - */ - @JsonProperty("effectiveDate") - private JsonNullable effectiveDate; - - /** - * Schedule date - */ - @JsonProperty("scheduleDate") - private JsonNullable scheduleDate; - - /** - * Unique identifier of the Pix transaction at the Central Bank - */ - @JsonProperty("endToEndIdentifier") - private JsonNullable endToEndIdentifier; - - /** - * `false` when awaiting authorization via SMS Token - */ - @JsonProperty("authorized") - private JsonNullable authorized; - - /** - * Reason for transfer failure - */ - @JsonProperty("failReason") - private JsonNullable failReason; - - /** - * Transfer identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - /** - * Proof of transfer will be available after the transfer is confirmed - */ - @JsonProperty("transactionReceiptUrl") - private JsonNullable transactionReceiptUrl; - - /** - * Transfer method - */ - @JsonProperty("operationType") - private JsonNullable operationType; - - /** - * Transfer description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * Unique recurrence identifier in Asaas - */ - @JsonProperty("recurring") - private JsonNullable recurring; - - /** - * Unique wallet identifier to split charges or transfer between Asaas accounts - */ - @JsonProperty("walletId") - private JsonNullable walletId; - - @JsonProperty("account") - private JsonNullable account; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - @JsonIgnore - public ApiTransferSaveInternalTransferResponseDtoType getType() { - return type.orElse(null); - } - - @JsonIgnore - public String getDateCreated() { - return dateCreated.orElse(null); - } - - @JsonIgnore - public Double getValue() { - return value.orElse(null); - } - - @JsonIgnore - public Double getNetValue() { - return netValue.orElse(null); - } - - @JsonIgnore - public ApiTransferSaveInternalTransferResponseTransferStatus getStatus() { - return status.orElse(null); - } - - @JsonIgnore - public Double getTransferFee() { - return transferFee.orElse(null); - } - - @JsonIgnore - public String getEffectiveDate() { - return effectiveDate.orElse(null); - } - - @JsonIgnore - public String getScheduleDate() { - return scheduleDate.orElse(null); - } - - @JsonIgnore - public String getEndToEndIdentifier() { - return endToEndIdentifier.orElse(null); - } - - @JsonIgnore - public Boolean getAuthorized() { - return authorized.orElse(null); - } - - @JsonIgnore - public String getFailReason() { - return failReason.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public String getTransactionReceiptUrl() { - return transactionReceiptUrl.orElse(null); - } - - @JsonIgnore - public ApiTransferSaveInternalTransferResponseTransferType getOperationType() { - return operationType.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getRecurring() { - return recurring.orElse(null); - } - - @JsonIgnore - public String getWalletId() { - return walletId.orElse(null); - } - - @JsonIgnore - public ApiTransferSaveInternalTransferAccountDto getAccount() { - return account.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiTransferSaveInternalTransferResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiTransferSaveInternalTransferResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiTransferSaveInternalTransferResponseDtoBuilder id(String value) { - this.id = JsonNullable.of(value); - return this; - } - - private JsonNullable type = JsonNullable.undefined(); - - @JsonProperty("type") - public ApiTransferSaveInternalTransferResponseDtoBuilder type( - ApiTransferSaveInternalTransferResponseDtoType value - ) { - this.type = JsonNullable.of(value); - return this; - } - - private JsonNullable dateCreated = JsonNullable.undefined(); - - @JsonProperty("dateCreated") - public ApiTransferSaveInternalTransferResponseDtoBuilder dateCreated(String value) { - this.dateCreated = JsonNullable.of(value); - return this; - } - - private JsonNullable value = JsonNullable.undefined(); - - @JsonProperty("value") - public ApiTransferSaveInternalTransferResponseDtoBuilder value(Double value) { - this.value = JsonNullable.of(value); - return this; - } - - private JsonNullable netValue = JsonNullable.undefined(); - - @JsonProperty("netValue") - public ApiTransferSaveInternalTransferResponseDtoBuilder netValue(Double value) { - this.netValue = JsonNullable.of(value); - return this; - } - - private JsonNullable status = JsonNullable.undefined(); - - @JsonProperty("status") - public ApiTransferSaveInternalTransferResponseDtoBuilder status( - ApiTransferSaveInternalTransferResponseTransferStatus value - ) { - this.status = JsonNullable.of(value); - return this; - } - - private JsonNullable transferFee = JsonNullable.undefined(); - - @JsonProperty("transferFee") - public ApiTransferSaveInternalTransferResponseDtoBuilder transferFee(Double value) { - this.transferFee = JsonNullable.of(value); - return this; - } - - private JsonNullable effectiveDate = JsonNullable.undefined(); - - @JsonProperty("effectiveDate") - public ApiTransferSaveInternalTransferResponseDtoBuilder effectiveDate(String value) { - this.effectiveDate = JsonNullable.of(value); - return this; - } - - private JsonNullable scheduleDate = JsonNullable.undefined(); - - @JsonProperty("scheduleDate") - public ApiTransferSaveInternalTransferResponseDtoBuilder scheduleDate(String value) { - this.scheduleDate = JsonNullable.of(value); - return this; - } - - private JsonNullable endToEndIdentifier = JsonNullable.undefined(); - - @JsonProperty("endToEndIdentifier") - public ApiTransferSaveInternalTransferResponseDtoBuilder endToEndIdentifier(String value) { - this.endToEndIdentifier = JsonNullable.of(value); - return this; - } - - private JsonNullable authorized = JsonNullable.undefined(); - - @JsonProperty("authorized") - public ApiTransferSaveInternalTransferResponseDtoBuilder authorized(Boolean value) { - this.authorized = JsonNullable.of(value); - return this; - } - - private JsonNullable failReason = JsonNullable.undefined(); - - @JsonProperty("failReason") - public ApiTransferSaveInternalTransferResponseDtoBuilder failReason(String value) { - this.failReason = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiTransferSaveInternalTransferResponseDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); - - @JsonProperty("transactionReceiptUrl") - public ApiTransferSaveInternalTransferResponseDtoBuilder transactionReceiptUrl(String value) { - this.transactionReceiptUrl = JsonNullable.of(value); - return this; - } - - private JsonNullable operationType = JsonNullable.undefined(); - - @JsonProperty("operationType") - public ApiTransferSaveInternalTransferResponseDtoBuilder operationType( - ApiTransferSaveInternalTransferResponseTransferType value - ) { - this.operationType = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiTransferSaveInternalTransferResponseDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable recurring = JsonNullable.undefined(); - - @JsonProperty("recurring") - public ApiTransferSaveInternalTransferResponseDtoBuilder recurring(String value) { - this.recurring = JsonNullable.of(value); - return this; - } - - private JsonNullable walletId = JsonNullable.undefined(); - - @JsonProperty("walletId") - public ApiTransferSaveInternalTransferResponseDtoBuilder walletId(String value) { - this.walletId = JsonNullable.of(value); - return this; - } - - private JsonNullable account = JsonNullable.undefined(); - - @JsonProperty("account") - public ApiTransferSaveInternalTransferResponseDtoBuilder account(ApiTransferSaveInternalTransferAccountDto value) { - this.account = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDtoType.java b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDtoType.java deleted file mode 100644 index d00dbb3..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDtoType.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Type of transfer - */ -@Getter -@AllArgsConstructor -public enum ApiTransferSaveInternalTransferResponseDtoType { - PIX("PIX"), - TED("TED"), - INTERNAL("INTERNAL"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiTransferSaveInternalTransferResponseDtoType fromValue(String value) { - return Arrays.stream(ApiTransferSaveInternalTransferResponseDtoType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferStatus.java b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferStatus.java deleted file mode 100644 index 91f4e62..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferStatus.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Transfer status - */ -@Getter -@AllArgsConstructor -public enum ApiTransferSaveInternalTransferResponseTransferStatus { - PENDING("PENDING"), - BANK_PROCESSING("BANK_PROCESSING"), - DONE("DONE"), - CANCELLED("CANCELLED"), - FAILED("FAILED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiTransferSaveInternalTransferResponseTransferStatus fromValue(String value) { - return Arrays.stream(ApiTransferSaveInternalTransferResponseTransferStatus.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferType.java b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferType.java deleted file mode 100644 index d2dbab7..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferType.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Transfer method - */ -@Getter -@AllArgsConstructor -public enum ApiTransferSaveInternalTransferResponseTransferType { - PIX("PIX"), - TED("TED"), - INTERNAL("INTERNAL"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiTransferSaveInternalTransferResponseTransferType fromValue(String value) { - return Arrays.stream(ApiTransferSaveInternalTransferResponseTransferType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestDto.java deleted file mode 100644 index 8b3cec6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestDto.java +++ /dev/null @@ -1,179 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiTransferSaveRequestDto { - - /** - * Amount to be transferred - */ - @NonNull - private Double value; - - @JsonProperty("bankAccount") - private JsonNullable bankAccount; - - /** - * Transfer modality. If not informed and the receiving institution is a Pix participant, the transfer is via Pix. Otherwise via TED. - */ - @JsonProperty("operationType") - private JsonNullable operationType; - - /** - * Enter the Pix key if it is a transfer to a Pix key - */ - @JsonProperty("pixAddressKey") - private JsonNullable pixAddressKey; - - /** - * Enter the type of key if it is a transfer to a Pix key - */ - @JsonProperty("pixAddressKeyType") - private JsonNullable pixAddressKeyType; - - /** - * Transfers via Pix allow description - */ - @JsonProperty("description") - private JsonNullable description; - - /** - * For scheduled transfers, if not informed, payment is instantaneous - */ - @JsonProperty("scheduleDate") - private JsonNullable scheduleDate; - - /** - * Transfer identifier in your system - */ - @JsonProperty("externalReference") - private JsonNullable externalReference; - - @JsonProperty("recurring") - private JsonNullable recurring; - - @JsonIgnore - public ApiTransferBankAccountSaveRequestDto getBankAccount() { - return bankAccount.orElse(null); - } - - @JsonIgnore - public ApiTransferSaveRequestTransferType getOperationType() { - return operationType.orElse(null); - } - - @JsonIgnore - public String getPixAddressKey() { - return pixAddressKey.orElse(null); - } - - @JsonIgnore - public ApiTransferSaveRequestPixAddressKeyType getPixAddressKeyType() { - return pixAddressKeyType.orElse(null); - } - - @JsonIgnore - public String getDescription() { - return description.orElse(null); - } - - @JsonIgnore - public String getScheduleDate() { - return scheduleDate.orElse(null); - } - - @JsonIgnore - public String getExternalReference() { - return externalReference.orElse(null); - } - - @JsonIgnore - public ApiTransferRecurringSaveRequestDto getRecurring() { - return recurring.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiTransferSaveRequestDtoBuilder { - - private JsonNullable bankAccount = JsonNullable.undefined(); - - @JsonProperty("bankAccount") - public ApiTransferSaveRequestDtoBuilder bankAccount(ApiTransferBankAccountSaveRequestDto value) { - this.bankAccount = JsonNullable.of(value); - return this; - } - - private JsonNullable operationType = JsonNullable.undefined(); - - @JsonProperty("operationType") - public ApiTransferSaveRequestDtoBuilder operationType(ApiTransferSaveRequestTransferType value) { - this.operationType = JsonNullable.of(value); - return this; - } - - private JsonNullable pixAddressKey = JsonNullable.undefined(); - - @JsonProperty("pixAddressKey") - public ApiTransferSaveRequestDtoBuilder pixAddressKey(String value) { - this.pixAddressKey = JsonNullable.of(value); - return this; - } - - private JsonNullable pixAddressKeyType = JsonNullable.undefined(); - - @JsonProperty("pixAddressKeyType") - public ApiTransferSaveRequestDtoBuilder pixAddressKeyType(ApiTransferSaveRequestPixAddressKeyType value) { - this.pixAddressKeyType = JsonNullable.of(value); - return this; - } - - private JsonNullable description = JsonNullable.undefined(); - - @JsonProperty("description") - public ApiTransferSaveRequestDtoBuilder description(String value) { - this.description = JsonNullable.of(value); - return this; - } - - private JsonNullable scheduleDate = JsonNullable.undefined(); - - @JsonProperty("scheduleDate") - public ApiTransferSaveRequestDtoBuilder scheduleDate(String value) { - this.scheduleDate = JsonNullable.of(value); - return this; - } - - private JsonNullable externalReference = JsonNullable.undefined(); - - @JsonProperty("externalReference") - public ApiTransferSaveRequestDtoBuilder externalReference(String value) { - this.externalReference = JsonNullable.of(value); - return this; - } - - private JsonNullable recurring = JsonNullable.undefined(); - - @JsonProperty("recurring") - public ApiTransferSaveRequestDtoBuilder recurring(ApiTransferRecurringSaveRequestDto value) { - this.recurring = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestPixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestPixAddressKeyType.java deleted file mode 100644 index 8a14996..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestPixAddressKeyType.java +++ /dev/null @@ -1,33 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Enter the type of key if it is a transfer to a Pix key - */ -@Getter -@AllArgsConstructor -public enum ApiTransferSaveRequestPixAddressKeyType { - CPF("CPF"), - CNPJ("CNPJ"), - EMAIL("EMAIL"), - PHONE("PHONE"), - EVP("EVP"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiTransferSaveRequestPixAddressKeyType fromValue(String value) { - return Arrays.stream(ApiTransferSaveRequestPixAddressKeyType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestTransferType.java b/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestTransferType.java deleted file mode 100644 index d3eff33..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestTransferType.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import lombok.AllArgsConstructor; -import lombok.Getter; - -/** - * Transfer modality. If not informed and the receiving institution is a Pix participant, the transfer is via Pix. Otherwise via TED. - */ -@Getter -@AllArgsConstructor -public enum ApiTransferSaveRequestTransferType { - PIX("PIX"), - TED("TED"); - - @JsonValue - private final String value; - - @JsonCreator - public static ApiTransferSaveRequestTransferType fromValue(String value) { - return Arrays.stream(ApiTransferSaveRequestTransferType.values()) - .filter(item -> item.value.equals(value)) - .findFirst() - .orElse(null); - } -} diff --git a/src/main/java/com/asaas/apisdk/models/ApiWalletGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/ApiWalletGetResponseDto.java deleted file mode 100644 index 493e3c6..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiWalletGetResponseDto.java +++ /dev/null @@ -1,64 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiWalletGetResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Unique wallet identifier in Asaas - */ - @JsonProperty("id") - private JsonNullable id; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public String getId() { - return id.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiWalletGetResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiWalletGetResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable id = JsonNullable.undefined(); - - @JsonProperty("id") - public ApiWalletGetResponseDtoBuilder id(String value) { - 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 deleted file mode 100644 index 38e3f78..0000000 --- a/src/main/java/com/asaas/apisdk/models/ApiWalletShowResponseDto.java +++ /dev/null @@ -1,141 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.models; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import lombok.Builder; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; -import lombok.With; -import lombok.extern.jackson.Jacksonized; -import org.openapitools.jackson.nullable.JsonNullable; - -@Data -@Builder -@With -@ToString -@EqualsAndHashCode -@Jacksonized -public class ApiWalletShowResponseDto { - - /** - * Object type - */ - @JsonProperty("object") - private JsonNullable object; - - /** - * Indicates whether there is another page to be searched - */ - @JsonProperty("hasMore") - private JsonNullable hasMore; - - /** - * Total number of items for the filters entered - */ - @JsonProperty("totalCount") - private JsonNullable totalCount; - - /** - * Number of objects per page - */ - @JsonProperty("limit") - private JsonNullable limit; - - /** - * Position of the object from which the page should be loaded - */ - @JsonProperty("offset") - private JsonNullable offset; - - /** - * List of objects - */ - @JsonProperty("data") - private JsonNullable> data; - - @JsonIgnore - public String getObject() { - return object.orElse(null); - } - - @JsonIgnore - public Boolean getHasMore() { - return hasMore.orElse(null); - } - - @JsonIgnore - public Long getTotalCount() { - return totalCount.orElse(null); - } - - @JsonIgnore - public Long getLimit() { - return limit.orElse(null); - } - - @JsonIgnore - public Long getOffset() { - return offset.orElse(null); - } - - @JsonIgnore - public List getData() { - return data.orElse(null); - } - - // Overwrite lombok builder methods - public static class ApiWalletShowResponseDtoBuilder { - - private JsonNullable object = JsonNullable.undefined(); - - @JsonProperty("object") - public ApiWalletShowResponseDtoBuilder object(String value) { - this.object = JsonNullable.of(value); - return this; - } - - private JsonNullable hasMore = JsonNullable.undefined(); - - @JsonProperty("hasMore") - public ApiWalletShowResponseDtoBuilder hasMore(Boolean value) { - this.hasMore = JsonNullable.of(value); - return this; - } - - private JsonNullable totalCount = JsonNullable.undefined(); - - @JsonProperty("totalCount") - public ApiWalletShowResponseDtoBuilder totalCount(Long value) { - this.totalCount = JsonNullable.of(value); - return this; - } - - private JsonNullable limit = JsonNullable.undefined(); - - @JsonProperty("limit") - public ApiWalletShowResponseDtoBuilder limit(Long value) { - this.limit = JsonNullable.of(value); - return this; - } - - private JsonNullable offset = JsonNullable.undefined(); - - @JsonProperty("offset") - public ApiWalletShowResponseDtoBuilder offset(Long value) { - this.offset = JsonNullable.of(value); - return this; - } - - private JsonNullable> data = JsonNullable.undefined(); - - @JsonProperty("data") - public ApiWalletShowResponseDtoBuilder data(List value) { - this.data = JsonNullable.of(value); - return this; - } - } -} diff --git a/src/main/java/com/asaas/apisdk/models/BankSlipBillingInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/BankSlipBillingInfoResponseDto.java new file mode 100644 index 0000000..66b283a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/BankSlipBillingInfoResponseDto.java @@ -0,0 +1,124 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Payment data related to bank slip + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class BankSlipBillingInfoResponseDto { + + /** + * Digitable bill line + */ + @JsonProperty("identificationField") + private JsonNullable identificationField; + + /** + * Unique identification of the bank slip + */ + @JsonProperty("nossoNumero") + private JsonNullable nossoNumero; + + /** + * Bank slip bar code + */ + @JsonProperty("barCode") + private JsonNullable barCode; + + /** + * URL to download the bank slip + */ + @JsonProperty("bankSlipUrl") + private JsonNullable bankSlipUrl; + + /** + * Days after registration cancellation deadline (only for bank slip) + */ + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + private JsonNullable daysAfterDueDateToRegistrationCancellation; + + @JsonIgnore + public String getIdentificationField() { + return identificationField.orElse(null); + } + + @JsonIgnore + public String getNossoNumero() { + return nossoNumero.orElse(null); + } + + @JsonIgnore + public String getBarCode() { + return barCode.orElse(null); + } + + @JsonIgnore + public String getBankSlipUrl() { + return bankSlipUrl.orElse(null); + } + + @JsonIgnore + public Long getDaysAfterDueDateToRegistrationCancellation() { + return daysAfterDueDateToRegistrationCancellation.orElse(null); + } + + // Overwrite lombok builder methods + public static class BankSlipBillingInfoResponseDtoBuilder { + + private JsonNullable identificationField = JsonNullable.undefined(); + + @JsonProperty("identificationField") + public BankSlipBillingInfoResponseDtoBuilder identificationField(String value) { + this.identificationField = JsonNullable.of(value); + return this; + } + + private JsonNullable nossoNumero = JsonNullable.undefined(); + + @JsonProperty("nossoNumero") + public BankSlipBillingInfoResponseDtoBuilder nossoNumero(String value) { + this.nossoNumero = JsonNullable.of(value); + return this; + } + + private JsonNullable barCode = JsonNullable.undefined(); + + @JsonProperty("barCode") + public BankSlipBillingInfoResponseDtoBuilder barCode(String value) { + this.barCode = JsonNullable.of(value); + return this; + } + + private JsonNullable bankSlipUrl = JsonNullable.undefined(); + + @JsonProperty("bankSlipUrl") + public BankSlipBillingInfoResponseDtoBuilder bankSlipUrl(String value) { + this.bankSlipUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); + + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + public BankSlipBillingInfoResponseDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/BillGetResponseBillStatus.java b/src/main/java/com/asaas/apisdk/models/BillGetResponseBillStatus.java new file mode 100644 index 0000000..9510f7a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/BillGetResponseBillStatus.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Bill payment status + */ +@Getter +@AllArgsConstructor +public enum BillGetResponseBillStatus { + PENDING("PENDING"), + BANK_PROCESSING("BANK_PROCESSING"), + PAID("PAID"), + FAILED("FAILED"), + CANCELLED("CANCELLED"), + REFUNDED("REFUNDED"), + AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST("AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST"); + + @JsonValue + private final String value; + + @JsonCreator + public static BillGetResponseBillStatus fromValue(String value) { + return Arrays.stream(BillGetResponseBillStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/BillGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/BillGetResponseDto.java new file mode 100644 index 0000000..2654b42 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/BillGetResponseDto.java @@ -0,0 +1,369 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class BillGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique bill payment identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Bill payment status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Amount to be paid + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Discount attributed to payment + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Interest attributed to payment + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine assigned to payment + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Typeable line of the bill to be paid + */ + @JsonProperty("identificationField") + private JsonNullable identificationField; + + /** + * Billing due date + */ + @JsonProperty("dueDate") + private JsonNullable dueDate; + + /** + * Payment scheduling date + */ + @JsonProperty("scheduleDate") + private JsonNullable scheduleDate; + + /** + * Date on which payment was made + */ + @JsonProperty("paymentDate") + private JsonNullable paymentDate; + + /** + * Asaas fee for bill payment + */ + @JsonProperty("fee") + private JsonNullable fee; + + /** + * Bill Payment Description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Company/Body issuing the payment + */ + @JsonProperty("companyName") + private JsonNullable companyName; + + /** + * Proof of bill payment + */ + @JsonProperty("transactionReceiptUrl") + private JsonNullable transactionReceiptUrl; + + /** + * Whether payment can be canceled + */ + @JsonProperty("canBeCancelled") + private JsonNullable canBeCancelled; + + /** + * Unique identifier of the bill in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * List of reasons for payment failure + */ + @JsonProperty("failReasons") + private JsonNullable> failReasons; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public BillGetResponseBillStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public Double getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public Double getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public String getIdentificationField() { + return identificationField.orElse(null); + } + + @JsonIgnore + public String getDueDate() { + return dueDate.orElse(null); + } + + @JsonIgnore + public String getScheduleDate() { + return scheduleDate.orElse(null); + } + + @JsonIgnore + public String getPaymentDate() { + return paymentDate.orElse(null); + } + + @JsonIgnore + public Double getFee() { + return fee.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getCompanyName() { + return companyName.orElse(null); + } + + @JsonIgnore + public String getTransactionReceiptUrl() { + return transactionReceiptUrl.orElse(null); + } + + @JsonIgnore + public Boolean getCanBeCancelled() { + return canBeCancelled.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public List getFailReasons() { + return failReasons.orElse(null); + } + + // Overwrite lombok builder methods + public static class BillGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public BillGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public BillGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public BillGetResponseDtoBuilder status(BillGetResponseBillStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public BillGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public BillGetResponseDtoBuilder discount(Double value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public BillGetResponseDtoBuilder interest(Double value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public BillGetResponseDtoBuilder fine(Double value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable identificationField = JsonNullable.undefined(); + + @JsonProperty("identificationField") + public BillGetResponseDtoBuilder identificationField(String value) { + this.identificationField = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDate = JsonNullable.undefined(); + + @JsonProperty("dueDate") + public BillGetResponseDtoBuilder dueDate(String value) { + this.dueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable scheduleDate = JsonNullable.undefined(); + + @JsonProperty("scheduleDate") + public BillGetResponseDtoBuilder scheduleDate(String value) { + this.scheduleDate = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentDate = JsonNullable.undefined(); + + @JsonProperty("paymentDate") + public BillGetResponseDtoBuilder paymentDate(String value) { + this.paymentDate = JsonNullable.of(value); + return this; + } + + private JsonNullable fee = JsonNullable.undefined(); + + @JsonProperty("fee") + public BillGetResponseDtoBuilder fee(Double value) { + this.fee = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public BillGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable companyName = JsonNullable.undefined(); + + @JsonProperty("companyName") + public BillGetResponseDtoBuilder companyName(String value) { + this.companyName = JsonNullable.of(value); + return this; + } + + private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); + + @JsonProperty("transactionReceiptUrl") + public BillGetResponseDtoBuilder transactionReceiptUrl(String value) { + this.transactionReceiptUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable canBeCancelled = JsonNullable.undefined(); + + @JsonProperty("canBeCancelled") + public BillGetResponseDtoBuilder canBeCancelled(Boolean value) { + this.canBeCancelled = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public BillGetResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable> failReasons = JsonNullable.undefined(); + + @JsonProperty("failReasons") + public BillGetResponseDtoBuilder failReasons(List value) { + this.failReasons = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/BillListResponseDto.java b/src/main/java/com/asaas/apisdk/models/BillListResponseDto.java new file mode 100644 index 0000000..431b920 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/BillListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class BillListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class BillListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public BillListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public BillListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public BillListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public BillListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public BillListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public BillListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/BillSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/BillSaveRequestDto.java new file mode 100644 index 0000000..352e478 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/BillSaveRequestDto.java @@ -0,0 +1,185 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class BillSaveRequestDto { + + /** + * Digitizable bill line + */ + @NonNull + private String identificationField; + + /** + * Payment scheduling date + */ + @JsonProperty("scheduleDate") + private JsonNullable scheduleDate; + + /** + * Bill Payment Description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Discount attributed to payment + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Interest attributed to payment + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine assigned to payment + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Expiration date of the account if it is the type that does not have this information + */ + @JsonProperty("dueDate") + private JsonNullable dueDate; + + /** + * Account value if it is the type that does not have this information (Ex: credit card invoices) + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Unique identifier of the bill in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + @JsonIgnore + public String getScheduleDate() { + return scheduleDate.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Double getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public Double getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public Double getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public String getDueDate() { + return dueDate.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + // Overwrite lombok builder methods + public static class BillSaveRequestDtoBuilder { + + private JsonNullable scheduleDate = JsonNullable.undefined(); + + @JsonProperty("scheduleDate") + public BillSaveRequestDtoBuilder scheduleDate(String value) { + this.scheduleDate = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public BillSaveRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public BillSaveRequestDtoBuilder discount(Double value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public BillSaveRequestDtoBuilder interest(Double value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public BillSaveRequestDtoBuilder fine(Double value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDate = JsonNullable.undefined(); + + @JsonProperty("dueDate") + public BillSaveRequestDtoBuilder dueDate(String value) { + this.dueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public BillSaveRequestDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public BillSaveRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/BillSimulateBankSlipInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/BillSimulateBankSlipInfoResponseDto.java new file mode 100644 index 0000000..fe046b1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/BillSimulateBankSlipInfoResponseDto.java @@ -0,0 +1,352 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Information about the bill to be paid + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class BillSimulateBankSlipInfoResponseDto { + + /** + * Digitable line + */ + @JsonProperty("identificationField") + private JsonNullable identificationField; + + /** + * Ticket value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Due date + */ + @JsonProperty("dueDate") + private JsonNullable dueDate; + + /** + * Company/Body issuing the bill + */ + @JsonProperty("companyName") + private JsonNullable companyName; + + /** + * Code of the bank issuing the bill in the banking system + */ + @JsonProperty("bank") + private JsonNullable bank; + + /** + * CPF or CNPJ of the beneficiary + */ + @JsonProperty("beneficiaryCpfCnpj") + private JsonNullable beneficiaryCpfCnpj; + + /** + * Beneficiary's name + */ + @JsonProperty("beneficiaryName") + private JsonNullable beneficiaryName; + + /** + * Whether the value can be changed or not + */ + @JsonProperty("allowChangeValue") + private JsonNullable allowChangeValue; + + /** + * Minimum value that can be changed + */ + @JsonProperty("minValue") + private JsonNullable minValue; + + /** + * Maximum value that can be changed + */ + @JsonProperty("maxValue") + private JsonNullable maxValue; + + /** + * Value of discounts + */ + @JsonProperty("discountValue") + private JsonNullable discountValue; + + /** + * Interest amount + */ + @JsonProperty("interestValue") + private JsonNullable interestValue; + + /** + * Fine value + */ + @JsonProperty("fineValue") + private JsonNullable fineValue; + + /** + * Original bill value + */ + @JsonProperty("originalValue") + private JsonNullable originalValue; + + /** + * Total value of discounts and rebates + */ + @JsonProperty("totalDiscountValue") + private JsonNullable totalDiscountValue; + + /** + * Total amount of interest and fine + */ + @JsonProperty("totalAdditionalValue") + private JsonNullable totalAdditionalValue; + + /** + * Informs if the ticket is expired + */ + @JsonProperty("isOverdue") + private JsonNullable isOverdue; + + @JsonIgnore + public String getIdentificationField() { + return identificationField.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getDueDate() { + return dueDate.orElse(null); + } + + @JsonIgnore + public String getCompanyName() { + return companyName.orElse(null); + } + + @JsonIgnore + public String getBank() { + return bank.orElse(null); + } + + @JsonIgnore + public String getBeneficiaryCpfCnpj() { + return beneficiaryCpfCnpj.orElse(null); + } + + @JsonIgnore + public String getBeneficiaryName() { + return beneficiaryName.orElse(null); + } + + @JsonIgnore + public Boolean getAllowChangeValue() { + return allowChangeValue.orElse(null); + } + + @JsonIgnore + public Double getMinValue() { + return minValue.orElse(null); + } + + @JsonIgnore + public Double getMaxValue() { + return maxValue.orElse(null); + } + + @JsonIgnore + public Double getDiscountValue() { + return discountValue.orElse(null); + } + + @JsonIgnore + public Double getInterestValue() { + return interestValue.orElse(null); + } + + @JsonIgnore + public Double getFineValue() { + return fineValue.orElse(null); + } + + @JsonIgnore + public Double getOriginalValue() { + return originalValue.orElse(null); + } + + @JsonIgnore + public Double getTotalDiscountValue() { + return totalDiscountValue.orElse(null); + } + + @JsonIgnore + public Double getTotalAdditionalValue() { + return totalAdditionalValue.orElse(null); + } + + @JsonIgnore + public Boolean getIsOverdue() { + return isOverdue.orElse(null); + } + + // Overwrite lombok builder methods + public static class BillSimulateBankSlipInfoResponseDtoBuilder { + + private JsonNullable identificationField = JsonNullable.undefined(); + + @JsonProperty("identificationField") + public BillSimulateBankSlipInfoResponseDtoBuilder identificationField(String value) { + this.identificationField = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public BillSimulateBankSlipInfoResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDate = JsonNullable.undefined(); + + @JsonProperty("dueDate") + public BillSimulateBankSlipInfoResponseDtoBuilder dueDate(String value) { + this.dueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable companyName = JsonNullable.undefined(); + + @JsonProperty("companyName") + public BillSimulateBankSlipInfoResponseDtoBuilder companyName(String value) { + this.companyName = JsonNullable.of(value); + return this; + } + + private JsonNullable bank = JsonNullable.undefined(); + + @JsonProperty("bank") + public BillSimulateBankSlipInfoResponseDtoBuilder bank(String value) { + this.bank = JsonNullable.of(value); + return this; + } + + private JsonNullable beneficiaryCpfCnpj = JsonNullable.undefined(); + + @JsonProperty("beneficiaryCpfCnpj") + public BillSimulateBankSlipInfoResponseDtoBuilder beneficiaryCpfCnpj(String value) { + this.beneficiaryCpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable beneficiaryName = JsonNullable.undefined(); + + @JsonProperty("beneficiaryName") + public BillSimulateBankSlipInfoResponseDtoBuilder beneficiaryName(String value) { + this.beneficiaryName = JsonNullable.of(value); + return this; + } + + private JsonNullable allowChangeValue = JsonNullable.undefined(); + + @JsonProperty("allowChangeValue") + public BillSimulateBankSlipInfoResponseDtoBuilder allowChangeValue(Boolean value) { + this.allowChangeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable minValue = JsonNullable.undefined(); + + @JsonProperty("minValue") + public BillSimulateBankSlipInfoResponseDtoBuilder minValue(Double value) { + this.minValue = JsonNullable.of(value); + return this; + } + + private JsonNullable maxValue = JsonNullable.undefined(); + + @JsonProperty("maxValue") + public BillSimulateBankSlipInfoResponseDtoBuilder maxValue(Double value) { + this.maxValue = JsonNullable.of(value); + return this; + } + + private JsonNullable discountValue = JsonNullable.undefined(); + + @JsonProperty("discountValue") + public BillSimulateBankSlipInfoResponseDtoBuilder discountValue(Double value) { + this.discountValue = JsonNullable.of(value); + return this; + } + + private JsonNullable interestValue = JsonNullable.undefined(); + + @JsonProperty("interestValue") + public BillSimulateBankSlipInfoResponseDtoBuilder interestValue(Double value) { + this.interestValue = JsonNullable.of(value); + return this; + } + + private JsonNullable fineValue = JsonNullable.undefined(); + + @JsonProperty("fineValue") + public BillSimulateBankSlipInfoResponseDtoBuilder fineValue(Double value) { + this.fineValue = JsonNullable.of(value); + return this; + } + + private JsonNullable originalValue = JsonNullable.undefined(); + + @JsonProperty("originalValue") + public BillSimulateBankSlipInfoResponseDtoBuilder originalValue(Double value) { + this.originalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable totalDiscountValue = JsonNullable.undefined(); + + @JsonProperty("totalDiscountValue") + public BillSimulateBankSlipInfoResponseDtoBuilder totalDiscountValue(Double value) { + this.totalDiscountValue = JsonNullable.of(value); + return this; + } + + private JsonNullable totalAdditionalValue = JsonNullable.undefined(); + + @JsonProperty("totalAdditionalValue") + public BillSimulateBankSlipInfoResponseDtoBuilder totalAdditionalValue(Double value) { + this.totalAdditionalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable isOverdue = JsonNullable.undefined(); + + @JsonProperty("isOverdue") + public BillSimulateBankSlipInfoResponseDtoBuilder isOverdue(Boolean value) { + this.isOverdue = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/BillSimulateRequestDto.java b/src/main/java/com/asaas/apisdk/models/BillSimulateRequestDto.java new file mode 100644 index 0000000..5d6951d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/BillSimulateRequestDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class BillSimulateRequestDto { + + /** + * Digitizable bill line + */ + @JsonProperty("identificationField") + private JsonNullable identificationField; + + /** + * Ticket barcode + */ + @JsonProperty("barCode") + private JsonNullable barCode; + + @JsonIgnore + public String getIdentificationField() { + return identificationField.orElse(null); + } + + @JsonIgnore + public String getBarCode() { + return barCode.orElse(null); + } + + // Overwrite lombok builder methods + public static class BillSimulateRequestDtoBuilder { + + private JsonNullable identificationField = JsonNullable.undefined(); + + @JsonProperty("identificationField") + public BillSimulateRequestDtoBuilder identificationField(String value) { + this.identificationField = JsonNullable.of(value); + return this; + } + + private JsonNullable barCode = JsonNullable.undefined(); + + @JsonProperty("barCode") + public BillSimulateRequestDtoBuilder barCode(String value) { + this.barCode = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/BillSimulateResponseDto.java b/src/main/java/com/asaas/apisdk/models/BillSimulateResponseDto.java new file mode 100644 index 0000000..3001798 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/BillSimulateResponseDto.java @@ -0,0 +1,83 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class BillSimulateResponseDto { + + /** + * Minimum date allowed for scheduling + */ + @JsonProperty("minimumScheduleDate") + private JsonNullable minimumScheduleDate; + + /** + * Fee charged when paying the bill + */ + @JsonProperty("fee") + private JsonNullable fee; + + /** + * Information about the bill to be paid + */ + @JsonProperty("bankSlipInfo") + private JsonNullable bankSlipInfo; + + @JsonIgnore + public String getMinimumScheduleDate() { + return minimumScheduleDate.orElse(null); + } + + @JsonIgnore + public Double getFee() { + return fee.orElse(null); + } + + @JsonIgnore + public BillSimulateBankSlipInfoResponseDto getBankSlipInfo() { + return bankSlipInfo.orElse(null); + } + + // Overwrite lombok builder methods + public static class BillSimulateResponseDtoBuilder { + + private JsonNullable minimumScheduleDate = JsonNullable.undefined(); + + @JsonProperty("minimumScheduleDate") + public BillSimulateResponseDtoBuilder minimumScheduleDate(String value) { + this.minimumScheduleDate = JsonNullable.of(value); + return this; + } + + private JsonNullable fee = JsonNullable.undefined(); + + @JsonProperty("fee") + public BillSimulateResponseDtoBuilder fee(Double value) { + this.fee = JsonNullable.of(value); + return this; + } + + private JsonNullable bankSlipInfo = JsonNullable.undefined(); + + @JsonProperty("bankSlipInfo") + public BillSimulateResponseDtoBuilder bankSlipInfo(BillSimulateBankSlipInfoResponseDto value) { + this.bankSlipInfo = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/BillingStatisticsParameters.java b/src/main/java/com/asaas/apisdk/models/BillingStatisticsParameters.java index 7a95093..1a70a89 100644 --- a/src/main/java/com/asaas/apisdk/models/BillingStatisticsParameters.java +++ b/src/main/java/com/asaas/apisdk/models/BillingStatisticsParameters.java @@ -30,13 +30,13 @@ public class BillingStatisticsParameters { * Filter by payment method */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Filter by status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Filter early registrations or not @@ -92,12 +92,12 @@ public String getCustomer() { } @JsonIgnore - public ApiFinanceGetPaymentStatisticsRequestBillingType getBillingType() { + public FinanceGetPaymentStatisticsRequestBillingType getBillingType() { return billingType.orElse(null); } @JsonIgnore - public ApiFinanceGetPaymentStatisticsRequestPaymentStatus getStatus() { + public FinanceGetPaymentStatisticsRequestPaymentStatus getStatus() { return status.orElse(null); } @@ -155,10 +155,10 @@ public BillingStatisticsParametersBuilder customer(String value) { return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public BillingStatisticsParametersBuilder billingType(ApiFinanceGetPaymentStatisticsRequestBillingType value) { + public BillingStatisticsParametersBuilder billingType(FinanceGetPaymentStatisticsRequestBillingType value) { if (value == null) { throw new IllegalStateException("billingType cannot be null"); } @@ -166,10 +166,10 @@ public BillingStatisticsParametersBuilder billingType(ApiFinanceGetPaymentStatis return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public BillingStatisticsParametersBuilder status(ApiFinanceGetPaymentStatisticsRequestPaymentStatus value) { + public BillingStatisticsParametersBuilder status(FinanceGetPaymentStatisticsRequestPaymentStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseCreditCardBrand.java b/src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseCreditCardBrand.java new file mode 100644 index 0000000..36b7145 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseCreditCardBrand.java @@ -0,0 +1,41 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Flag of the card used + */ +@Getter +@AllArgsConstructor +public enum ChargebackCreditCardResponseCreditCardBrand { + VISA("VISA"), + MASTERCARD("MASTERCARD"), + ELO("ELO"), + DINERS("DINERS"), + DISCOVER("DISCOVER"), + AMEX("AMEX"), + CABAL("CABAL"), + BANESCARD("BANESCARD"), + CREDZ("CREDZ"), + SOROCRED("SOROCRED"), + CREDSYSTEM("CREDSYSTEM"), + JCB("JCB"), + UNKNOWN("UNKNOWN"); + + @JsonValue + private final String value; + + @JsonCreator + public static ChargebackCreditCardResponseCreditCardBrand fromValue(String value) { + return Arrays.stream(ChargebackCreditCardResponseCreditCardBrand.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseDto.java new file mode 100644 index 0000000..5bfaff8 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Credit card information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class ChargebackCreditCardResponseDto { + + /** + * Last 4 digits of the card used + */ + @JsonProperty("number") + private JsonNullable number; + + /** + * Flag of the card used + */ + @JsonProperty("brand") + private JsonNullable brand; + + @JsonIgnore + public String getNumber() { + return number.orElse(null); + } + + @JsonIgnore + public ChargebackCreditCardResponseCreditCardBrand getBrand() { + return brand.orElse(null); + } + + // Overwrite lombok builder methods + public static class ChargebackCreditCardResponseDtoBuilder { + + private JsonNullable number = JsonNullable.undefined(); + + @JsonProperty("number") + public ChargebackCreditCardResponseDtoBuilder number(String value) { + this.number = JsonNullable.of(value); + return this; + } + + private JsonNullable brand = JsonNullable.undefined(); + + @JsonProperty("brand") + public ChargebackCreditCardResponseDtoBuilder brand(ChargebackCreditCardResponseCreditCardBrand value) { + this.brand = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/ChargebackListRequestChargebackStatus.java b/src/main/java/com/asaas/apisdk/models/ChargebackListRequestChargebackStatus.java new file mode 100644 index 0000000..d7fb048 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/ChargebackListRequestChargebackStatus.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by chargeback status. + */ +@Getter +@AllArgsConstructor +public enum ChargebackListRequestChargebackStatus { + REQUESTED("REQUESTED"), + IN_DISPUTE("IN_DISPUTE"), + DISPUTE_LOST("DISPUTE_LOST"), + REVERSED("REVERSED"), + DONE("DONE"); + + @JsonValue + private final String value; + + @JsonCreator + public static ChargebackListRequestChargebackStatus fromValue(String value) { + return Arrays.stream(ChargebackListRequestChargebackStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/ChargebackListRequestCreditCardBrand.java b/src/main/java/com/asaas/apisdk/models/ChargebackListRequestCreditCardBrand.java new file mode 100644 index 0000000..70c48b8 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/ChargebackListRequestCreditCardBrand.java @@ -0,0 +1,41 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by used card brand. + */ +@Getter +@AllArgsConstructor +public enum ChargebackListRequestCreditCardBrand { + VISA("VISA"), + MASTERCARD("MASTERCARD"), + ELO("ELO"), + DINERS("DINERS"), + DISCOVER("DISCOVER"), + AMEX("AMEX"), + CABAL("CABAL"), + BANESCARD("BANESCARD"), + CREDZ("CREDZ"), + SOROCRED("SOROCRED"), + CREDSYSTEM("CREDSYSTEM"), + JCB("JCB"), + UNKNOWN("UNKNOWN"); + + @JsonValue + private final String value; + + @JsonCreator + public static ChargebackListRequestCreditCardBrand fromValue(String value) { + return Arrays.stream(ChargebackListRequestCreditCardBrand.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/ChargebackListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ChargebackListResponseDto.java new file mode 100644 index 0000000..983718e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/ChargebackListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class ChargebackListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class ChargebackListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public ChargebackListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public ChargebackListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public ChargebackListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public ChargebackListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public ChargebackListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public ChargebackListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeRequestDto.java b/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeRequestDto.java new file mode 100644 index 0000000..c8523f7 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeRequestDto.java @@ -0,0 +1,26 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class ChargebackSaveDisputeRequestDto { + + /** + * Files to create the dispute (Maximum: 11). + */ + @NonNull + private byte[] files; +} diff --git a/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.java b/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.java new file mode 100644 index 0000000..f60d78f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Dispute status. + */ +@Getter +@AllArgsConstructor +public enum ChargebackSaveDisputeResponseChargebackDisputeStatus { + REQUESTED("REQUESTED"), + ACCEPTED("ACCEPTED"), + REJECTED("REJECTED"); + + @JsonValue + private final String value; + + @JsonCreator + public static ChargebackSaveDisputeResponseChargebackDisputeStatus fromValue(String value) { + return Arrays.stream(ChargebackSaveDisputeResponseChargebackDisputeStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseDto.java b/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseDto.java new file mode 100644 index 0000000..fc389d1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseDto.java @@ -0,0 +1,84 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class ChargebackSaveDisputeResponseDto { + + /** + * Unique identifier of chargeback for which the dispute will be created. + */ + @JsonProperty("chargebackId") + private JsonNullable chargebackId; + + /** + * Dispute status. + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Names of the dispute files. + */ + @JsonProperty("files") + private JsonNullable> files; + + @JsonIgnore + public String getChargebackId() { + return chargebackId.orElse(null); + } + + @JsonIgnore + public ChargebackSaveDisputeResponseChargebackDisputeStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public List getFiles() { + return files.orElse(null); + } + + // Overwrite lombok builder methods + public static class ChargebackSaveDisputeResponseDtoBuilder { + + private JsonNullable chargebackId = JsonNullable.undefined(); + + @JsonProperty("chargebackId") + public ChargebackSaveDisputeResponseDtoBuilder chargebackId(String value) { + this.chargebackId = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public ChargebackSaveDisputeResponseDtoBuilder status(ChargebackSaveDisputeResponseChargebackDisputeStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable> files = JsonNullable.undefined(); + + @JsonProperty("files") + public ChargebackSaveDisputeResponseDtoBuilder files(List value) { + this.files = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionCallbackDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionCallbackDto.java new file mode 100644 index 0000000..30fa7f5 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionCallbackDto.java @@ -0,0 +1,41 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +/** + * Automatic redirection information after payment on the checkout screen + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CheckoutSessionCallbackDto { + + /** + * Redirect URL for successful checkout + */ + @NonNull + private String successUrl; + + /** + * Redirect URL for canceled checkout + */ + @NonNull + private String cancelUrl; + + /** + * Redirect URL for expired checkout + */ + @NonNull + private String expiredUrl; +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionCustomerDataDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionCustomerDataDto.java new file mode 100644 index 0000000..534c944 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionCustomerDataDto.java @@ -0,0 +1,219 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Customer data + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CheckoutSessionCustomerDataDto { + + /** + * Customer name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Customer CPF or CNPJ + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Customer email + */ + @JsonProperty("email") + private JsonNullable email; + + /** + * Customer phone + */ + @JsonProperty("phone") + private JsonNullable phone; + + /** + * Customer address + */ + @JsonProperty("address") + private JsonNullable address; + + /** + * Address number + */ + @JsonProperty("addressNumber") + private JsonNullable addressNumber; + + /** + * Address complement (max. 255 characters) + */ + @JsonProperty("complement") + private JsonNullable complement; + + /** + * Province of address + */ + @JsonProperty("province") + private JsonNullable province; + + /** + * Address zip code + */ + @JsonProperty("postalCode") + private JsonNullable postalCode; + + /** + * City code + */ + @JsonProperty("city") + private JsonNullable city; + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public String getEmail() { + return email.orElse(null); + } + + @JsonIgnore + public String getPhone() { + return phone.orElse(null); + } + + @JsonIgnore + public String getAddress() { + return address.orElse(null); + } + + @JsonIgnore + public Long getAddressNumber() { + return addressNumber.orElse(null); + } + + @JsonIgnore + public String getComplement() { + return complement.orElse(null); + } + + @JsonIgnore + public String getProvince() { + return province.orElse(null); + } + + @JsonIgnore + public String getPostalCode() { + return postalCode.orElse(null); + } + + @JsonIgnore + public Long getCity() { + return city.orElse(null); + } + + // Overwrite lombok builder methods + public static class CheckoutSessionCustomerDataDtoBuilder { + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public CheckoutSessionCustomerDataDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public CheckoutSessionCustomerDataDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable email = JsonNullable.undefined(); + + @JsonProperty("email") + public CheckoutSessionCustomerDataDtoBuilder email(String value) { + this.email = JsonNullable.of(value); + return this; + } + + private JsonNullable phone = JsonNullable.undefined(); + + @JsonProperty("phone") + public CheckoutSessionCustomerDataDtoBuilder phone(String value) { + this.phone = JsonNullable.of(value); + return this; + } + + private JsonNullable address = JsonNullable.undefined(); + + @JsonProperty("address") + public CheckoutSessionCustomerDataDtoBuilder address(String value) { + this.address = JsonNullable.of(value); + return this; + } + + private JsonNullable addressNumber = JsonNullable.undefined(); + + @JsonProperty("addressNumber") + public CheckoutSessionCustomerDataDtoBuilder addressNumber(Long value) { + this.addressNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable complement = JsonNullable.undefined(); + + @JsonProperty("complement") + public CheckoutSessionCustomerDataDtoBuilder complement(String value) { + this.complement = JsonNullable.of(value); + return this; + } + + private JsonNullable province = JsonNullable.undefined(); + + @JsonProperty("province") + public CheckoutSessionCustomerDataDtoBuilder province(String value) { + this.province = JsonNullable.of(value); + return this; + } + + private JsonNullable postalCode = JsonNullable.undefined(); + + @JsonProperty("postalCode") + public CheckoutSessionCustomerDataDtoBuilder postalCode(String value) { + this.postalCode = JsonNullable.of(value); + return this; + } + + private JsonNullable city = JsonNullable.undefined(); + + @JsonProperty("city") + public CheckoutSessionCustomerDataDtoBuilder city(Long value) { + this.city = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionInstallmentDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionInstallmentDto.java new file mode 100644 index 0000000..1fd1a05 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionInstallmentDto.java @@ -0,0 +1,48 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Installment details. If informed, it will be mandatory to include the `INSTALLMENT` chargeType + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CheckoutSessionInstallmentDto { + + /** + * Maximum number of installments + */ + @JsonProperty("maxInstallmentCount") + private JsonNullable maxInstallmentCount; + + @JsonIgnore + public Long getMaxInstallmentCount() { + return maxInstallmentCount.orElse(null); + } + + // Overwrite lombok builder methods + public static class CheckoutSessionInstallmentDtoBuilder { + + private JsonNullable maxInstallmentCount = JsonNullable.undefined(); + + @JsonProperty("maxInstallmentCount") + public CheckoutSessionInstallmentDtoBuilder maxInstallmentCount(Long value) { + this.maxInstallmentCount = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionItemsDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionItemsDto.java new file mode 100644 index 0000000..8ba907b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionItemsDto.java @@ -0,0 +1,73 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of items at checkout + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CheckoutSessionItemsDto { + + /** + * Item image in Base64 + */ + @NonNull + private String imageBase64; + + /** + * Item name + */ + @NonNull + private String name; + + /** + * Item Quantity + */ + @NonNull + private Long quantity; + + /** + * Item value + */ + @NonNull + private Double value; + + /** + * Item Description + */ + @JsonProperty("description") + private JsonNullable description; + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + // Overwrite lombok builder methods + public static class CheckoutSessionItemsDtoBuilder { + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public CheckoutSessionItemsDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseBillingType.java new file mode 100644 index 0000000..2d55db0 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseBillingType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment methods + */ +@Getter +@AllArgsConstructor +public enum CheckoutSessionResponseBillingType { + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static CheckoutSessionResponseBillingType fromValue(String value) { + return Arrays.stream(CheckoutSessionResponseBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseChargeType.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseChargeType.java new file mode 100644 index 0000000..1802ae1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseChargeType.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Charge types + */ +@Getter +@AllArgsConstructor +public enum CheckoutSessionResponseChargeType { + DETACHED("DETACHED"), + RECURRENT("RECURRENT"), + INSTALLMENT("INSTALLMENT"); + + @JsonValue + private final String value; + + @JsonCreator + public static CheckoutSessionResponseChargeType fromValue(String value) { + return Arrays.stream(CheckoutSessionResponseChargeType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseDto.java new file mode 100644 index 0000000..c31c66a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseDto.java @@ -0,0 +1,198 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CheckoutSessionResponseDto { + + /** + * Payment methods + */ + @JsonProperty("billingTypes") + private JsonNullable> billingTypes; + + /** + * Charge types + */ + @JsonProperty("chargeTypes") + private JsonNullable> chargeTypes; + + /** + * Time in minutes for checkout expiration + */ + @JsonProperty("minutesToExpire") + private JsonNullable minutesToExpire; + + /** + * Automatic redirection information after payment on the checkout screen + */ + @JsonProperty("callback") + private JsonNullable callback; + + /** + * List of items at checkout + */ + @JsonProperty("items") + private JsonNullable> items; + + /** + * Customer data + */ + @JsonProperty("customerData") + private JsonNullable customerData; + + /** + * Subscription details, required if chargeTypes includes `RECURRENT` + */ + @JsonProperty("subscription") + private JsonNullable subscription; + + /** + * Installment details. If informed, it will be mandatory to include the `INSTALLMENT` chargeType + */ + @JsonProperty("installment") + private JsonNullable installment; + + /** + * Split Settings + */ + @JsonProperty("split") + private JsonNullable> split; + + @JsonIgnore + public List getBillingTypes() { + return billingTypes.orElse(null); + } + + @JsonIgnore + public List getChargeTypes() { + return chargeTypes.orElse(null); + } + + @JsonIgnore + public Long getMinutesToExpire() { + return minutesToExpire.orElse(null); + } + + @JsonIgnore + public CheckoutSessionCallbackDto getCallback() { + return callback.orElse(null); + } + + @JsonIgnore + public List getItems() { + return items.orElse(null); + } + + @JsonIgnore + public CheckoutSessionCustomerDataDto getCustomerData() { + return customerData.orElse(null); + } + + @JsonIgnore + public CheckoutSessionSubscriptionDto getSubscription() { + return subscription.orElse(null); + } + + @JsonIgnore + public CheckoutSessionInstallmentDto getInstallment() { + return installment.orElse(null); + } + + @JsonIgnore + public List getSplit() { + return split.orElse(null); + } + + // Overwrite lombok builder methods + public static class CheckoutSessionResponseDtoBuilder { + + private JsonNullable> billingTypes = JsonNullable.undefined(); + + @JsonProperty("billingTypes") + public CheckoutSessionResponseDtoBuilder billingTypes(List value) { + this.billingTypes = JsonNullable.of(value); + return this; + } + + private JsonNullable> chargeTypes = JsonNullable.undefined(); + + @JsonProperty("chargeTypes") + public CheckoutSessionResponseDtoBuilder chargeTypes(List value) { + this.chargeTypes = JsonNullable.of(value); + return this; + } + + private JsonNullable minutesToExpire = JsonNullable.undefined(); + + @JsonProperty("minutesToExpire") + public CheckoutSessionResponseDtoBuilder minutesToExpire(Long value) { + this.minutesToExpire = JsonNullable.of(value); + return this; + } + + private JsonNullable callback = JsonNullable.undefined(); + + @JsonProperty("callback") + public CheckoutSessionResponseDtoBuilder callback(CheckoutSessionCallbackDto value) { + this.callback = JsonNullable.of(value); + return this; + } + + private JsonNullable> items = JsonNullable.undefined(); + + @JsonProperty("items") + public CheckoutSessionResponseDtoBuilder items(List value) { + this.items = JsonNullable.of(value); + return this; + } + + private JsonNullable customerData = JsonNullable.undefined(); + + @JsonProperty("customerData") + public CheckoutSessionResponseDtoBuilder customerData(CheckoutSessionCustomerDataDto value) { + this.customerData = JsonNullable.of(value); + return this; + } + + private JsonNullable subscription = JsonNullable.undefined(); + + @JsonProperty("subscription") + public CheckoutSessionResponseDtoBuilder subscription(CheckoutSessionSubscriptionDto value) { + this.subscription = JsonNullable.of(value); + return this; + } + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public CheckoutSessionResponseDtoBuilder installment(CheckoutSessionInstallmentDto value) { + this.installment = JsonNullable.of(value); + return this; + } + + private JsonNullable> split = JsonNullable.undefined(); + + @JsonProperty("split") + public CheckoutSessionResponseDtoBuilder split(List value) { + this.split = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestBillingType.java new file mode 100644 index 0000000..77ed88e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestBillingType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment methods + */ +@Getter +@AllArgsConstructor +public enum CheckoutSessionSaveRequestBillingType { + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static CheckoutSessionSaveRequestBillingType fromValue(String value) { + return Arrays.stream(CheckoutSessionSaveRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestChargeType.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestChargeType.java new file mode 100644 index 0000000..6e5fef7 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestChargeType.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Charge types + */ +@Getter +@AllArgsConstructor +public enum CheckoutSessionSaveRequestChargeType { + DETACHED("DETACHED"), + RECURRENT("RECURRENT"), + INSTALLMENT("INSTALLMENT"); + + @JsonValue + private final String value; + + @JsonCreator + public static CheckoutSessionSaveRequestChargeType fromValue(String value) { + return Arrays.stream(CheckoutSessionSaveRequestChargeType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestDto.java new file mode 100644 index 0000000..58b376c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestDto.java @@ -0,0 +1,176 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CheckoutSessionSaveRequestDto { + + /** + * Payment methods + */ + @NonNull + private List billingTypes; + + /** + * Charge types + */ + @NonNull + private List chargeTypes; + + /** + * Automatic redirection information after payment on the checkout screen + */ + @JsonInclude(JsonInclude.Include.ALWAYS) + private CheckoutSessionCallbackDto callback; + + /** + * List of items at checkout + */ + @NonNull + private List items; + + /** + * Time in minutes for checkout expiration + */ + @JsonProperty("minutesToExpire") + private JsonNullable minutesToExpire; + + /** + * Customer data + */ + @JsonProperty("customerData") + private JsonNullable customerData; + + /** + * Subscription details, required if chargeTypes includes `RECURRENT` + */ + @JsonProperty("subscription") + private JsonNullable subscription; + + /** + * Installment details. If informed, it will be mandatory to include the `INSTALLMENT` chargeType + */ + @JsonProperty("installment") + private JsonNullable installment; + + /** + * Split Settings + */ + @JsonProperty("splits") + private JsonNullable> splits; + + @JsonIgnore + public Long getMinutesToExpire() { + return minutesToExpire.orElse(null); + } + + @JsonIgnore + public CheckoutSessionCustomerDataDto getCustomerData() { + return customerData.orElse(null); + } + + @JsonIgnore + public CheckoutSessionSubscriptionDto getSubscription() { + return subscription.orElse(null); + } + + @JsonIgnore + public CheckoutSessionInstallmentDto getInstallment() { + return installment.orElse(null); + } + + @JsonIgnore + public List getSplits() { + return splits.orElse(null); + } + + // Overwrite lombok builder methods + public static class CheckoutSessionSaveRequestDtoBuilder { + + /** + * Flag to track if the callback property has been set. + */ + private boolean callback$set = false; + + public CheckoutSessionSaveRequestDtoBuilder callback(CheckoutSessionCallbackDto callback) { + this.callback$set = true; + this.callback = callback; + return this; + } + + private JsonNullable minutesToExpire = JsonNullable.undefined(); + + @JsonProperty("minutesToExpire") + public CheckoutSessionSaveRequestDtoBuilder minutesToExpire(Long value) { + this.minutesToExpire = JsonNullable.of(value); + return this; + } + + private JsonNullable customerData = JsonNullable.undefined(); + + @JsonProperty("customerData") + public CheckoutSessionSaveRequestDtoBuilder customerData(CheckoutSessionCustomerDataDto value) { + this.customerData = JsonNullable.of(value); + return this; + } + + private JsonNullable subscription = JsonNullable.undefined(); + + @JsonProperty("subscription") + public CheckoutSessionSaveRequestDtoBuilder subscription(CheckoutSessionSubscriptionDto value) { + this.subscription = JsonNullable.of(value); + return this; + } + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public CheckoutSessionSaveRequestDtoBuilder installment(CheckoutSessionInstallmentDto value) { + this.installment = JsonNullable.of(value); + return this; + } + + private JsonNullable> splits = JsonNullable.undefined(); + + @JsonProperty("splits") + public CheckoutSessionSaveRequestDtoBuilder splits(List value) { + this.splits = JsonNullable.of(value); + return this; + } + + public CheckoutSessionSaveRequestDto build() { + if (!callback$set) { + throw new IllegalStateException("callback is required"); + } + return new CheckoutSessionSaveRequestDto( + billingTypes, + chargeTypes, + callback, + items, + minutesToExpire, + customerData, + subscription, + installment, + splits + ); + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionSplitDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSplitDto.java new file mode 100644 index 0000000..c9201eb --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSplitDto.java @@ -0,0 +1,93 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Split Settings + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CheckoutSessionSplitDto { + + /** + * Asaas wallet identifier that will receive the transfer + */ + @NonNull + private String walletId; + + /** + * Fixed amount to be transferred to the account when the payment is received + */ + @JsonProperty("fixedValue") + private JsonNullable fixedValue; + + /** + * Percentage of the net value of the charge to be transferred when received + */ + @JsonProperty("percentageValue") + private JsonNullable percentageValue; + + /** + * (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. + */ + @JsonProperty("totalFixedValue") + private JsonNullable totalFixedValue; + + @JsonIgnore + public Double getFixedValue() { + return fixedValue.orElse(null); + } + + @JsonIgnore + public Double getPercentageValue() { + return percentageValue.orElse(null); + } + + @JsonIgnore + public Double getTotalFixedValue() { + return totalFixedValue.orElse(null); + } + + // Overwrite lombok builder methods + public static class CheckoutSessionSplitDtoBuilder { + + private JsonNullable fixedValue = JsonNullable.undefined(); + + @JsonProperty("fixedValue") + public CheckoutSessionSplitDtoBuilder fixedValue(Double value) { + this.fixedValue = JsonNullable.of(value); + return this; + } + + private JsonNullable percentageValue = JsonNullable.undefined(); + + @JsonProperty("percentageValue") + public CheckoutSessionSplitDtoBuilder percentageValue(Double value) { + this.percentageValue = JsonNullable.of(value); + return this; + } + + private JsonNullable totalFixedValue = JsonNullable.undefined(); + + @JsonProperty("totalFixedValue") + public CheckoutSessionSplitDtoBuilder totalFixedValue(Double value) { + this.totalFixedValue = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionCycle.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionCycle.java new file mode 100644 index 0000000..94665ef --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionCycle.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing frequency + */ +@Getter +@AllArgsConstructor +public enum CheckoutSessionSubscriptionCycle { + WEEKLY("WEEKLY"), + BIWEEKLY("BIWEEKLY"), + MONTHLY("MONTHLY"), + BIMONTHLY("BIMONTHLY"), + QUARTERLY("QUARTERLY"), + SEMIANNUALLY("SEMIANNUALLY"), + YEARLY("YEARLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static CheckoutSessionSubscriptionCycle fromValue(String value) { + return Arrays.stream(CheckoutSessionSubscriptionCycle.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionDto.java new file mode 100644 index 0000000..c4b0ce6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Subscription details, required if chargeTypes includes `RECURRENT` + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CheckoutSessionSubscriptionDto { + + /** + * Billing frequency + */ + @JsonProperty("cycle") + private JsonNullable cycle; + + /** + * Deadline for payments to be due + */ + @JsonProperty("endDate") + private JsonNullable endDate; + + /** + * Due date of the next payment to be generated + */ + @JsonProperty("nextDueDate") + private JsonNullable nextDueDate; + + @JsonIgnore + public CheckoutSessionSubscriptionCycle getCycle() { + return cycle.orElse(null); + } + + @JsonIgnore + public String getEndDate() { + return endDate.orElse(null); + } + + @JsonIgnore + public String getNextDueDate() { + return nextDueDate.orElse(null); + } + + // Overwrite lombok builder methods + public static class CheckoutSessionSubscriptionDtoBuilder { + + private JsonNullable cycle = JsonNullable.undefined(); + + @JsonProperty("cycle") + public CheckoutSessionSubscriptionDtoBuilder cycle(CheckoutSessionSubscriptionCycle value) { + this.cycle = JsonNullable.of(value); + return this; + } + + private JsonNullable endDate = JsonNullable.undefined(); + + @JsonProperty("endDate") + public CheckoutSessionSubscriptionDtoBuilder endDate(String value) { + this.endDate = JsonNullable.of(value); + return this; + } + + private JsonNullable nextDueDate = JsonNullable.undefined(); + + @JsonProperty("nextDueDate") + public CheckoutSessionSubscriptionDtoBuilder nextDueDate(String value) { + this.nextDueDate = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CreditBureauReportGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/CreditBureauReportGetResponseDto.java new file mode 100644 index 0000000..6feb6be --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CreditBureauReportGetResponseDto.java @@ -0,0 +1,140 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CreditBureauReportGetResponseDto { + + /** + * Unique report identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Date of consultation + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * CPF or CNPJ consulted manually + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Unique customer identifier in Asaas + */ + @JsonProperty("customer") + private JsonNullable customer; + + /** + * Url to download the report. Available until 11:59 pm on the day of the appointment. + */ + @JsonProperty("downloadUrl") + private JsonNullable downloadUrl; + + /** + * PDF of the query report in Base64 (this field is only returned when the report is created) + */ + @JsonProperty("reportFile") + private JsonNullable reportFile; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public String getCustomer() { + return customer.orElse(null); + } + + @JsonIgnore + public String getDownloadUrl() { + return downloadUrl.orElse(null); + } + + @JsonIgnore + public String getReportFile() { + return reportFile.orElse(null); + } + + // Overwrite lombok builder methods + public static class CreditBureauReportGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public CreditBureauReportGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public CreditBureauReportGetResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public CreditBureauReportGetResponseDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable customer = JsonNullable.undefined(); + + @JsonProperty("customer") + public CreditBureauReportGetResponseDtoBuilder customer(String value) { + this.customer = JsonNullable.of(value); + return this; + } + + private JsonNullable downloadUrl = JsonNullable.undefined(); + + @JsonProperty("downloadUrl") + public CreditBureauReportGetResponseDtoBuilder downloadUrl(String value) { + this.downloadUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable reportFile = JsonNullable.undefined(); + + @JsonProperty("reportFile") + public CreditBureauReportGetResponseDtoBuilder reportFile(String value) { + this.reportFile = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CreditBureauReportListResponseDto.java b/src/main/java/com/asaas/apisdk/models/CreditBureauReportListResponseDto.java new file mode 100644 index 0000000..bdac658 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CreditBureauReportListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CreditBureauReportListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class CreditBureauReportListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public CreditBureauReportListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public CreditBureauReportListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public CreditBureauReportListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public CreditBureauReportListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public CreditBureauReportListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public CreditBureauReportListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CreditBureauReportSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/CreditBureauReportSaveRequestDto.java new file mode 100644 index 0000000..f664738 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CreditBureauReportSaveRequestDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CreditBureauReportSaveRequestDto { + + /** + * Unique customer identifier in Asaas + */ + @JsonProperty("customer") + private JsonNullable customer; + + /** + * CPF or CNPJ of the customer. Enter this field if your client is not registered with Asaas + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + @JsonIgnore + public String getCustomer() { + return customer.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + // Overwrite lombok builder methods + public static class CreditBureauReportSaveRequestDtoBuilder { + + private JsonNullable customer = JsonNullable.undefined(); + + @JsonProperty("customer") + public CreditBureauReportSaveRequestDtoBuilder customer(String value) { + this.customer = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public CreditBureauReportSaveRequestDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CreditCardHolderInfoRequestDto.java b/src/main/java/com/asaas/apisdk/models/CreditCardHolderInfoRequestDto.java new file mode 100644 index 0000000..7fdaf07 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CreditCardHolderInfoRequestDto.java @@ -0,0 +1,104 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Credit card holder information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CreditCardHolderInfoRequestDto { + + /** + * Name of card holder + */ + @NonNull + private String name; + + /** + * Cardholder email + */ + @NonNull + private String email; + + /** + * CPF or CNPJ of the cardholder + */ + @NonNull + private String cpfCnpj; + + /** + * Cardholder zip code + */ + @NonNull + private String postalCode; + + /** + * Cardholder address number + */ + @NonNull + private String addressNumber; + + /** + * Phone with cardholder's area code + */ + @NonNull + private String phone; + + /** + * Supplementing the cardholder's address + */ + @JsonProperty("addressComplement") + private JsonNullable addressComplement; + + /** + * Cardholder's cell phone + */ + @JsonProperty("mobilePhone") + private JsonNullable mobilePhone; + + @JsonIgnore + public String getAddressComplement() { + return addressComplement.orElse(null); + } + + @JsonIgnore + public String getMobilePhone() { + return mobilePhone.orElse(null); + } + + // Overwrite lombok builder methods + public static class CreditCardHolderInfoRequestDtoBuilder { + + private JsonNullable addressComplement = JsonNullable.undefined(); + + @JsonProperty("addressComplement") + public CreditCardHolderInfoRequestDtoBuilder addressComplement(String value) { + this.addressComplement = JsonNullable.of(value); + return this; + } + + private JsonNullable mobilePhone = JsonNullable.undefined(); + + @JsonProperty("mobilePhone") + public CreditCardHolderInfoRequestDtoBuilder mobilePhone(String value) { + this.mobilePhone = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/CreditCardRequestDto.java new file mode 100644 index 0000000..149ae46 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CreditCardRequestDto.java @@ -0,0 +1,53 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +/** + * Credit card information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CreditCardRequestDto { + + /** + * Name printed on card + */ + @NonNull + private String holderName; + + /** + * Card number + */ + @NonNull + private String number; + + /** + * Expiration month with 2 digits + */ + @NonNull + private String expiryMonth; + + /** + * Expiration year with 4 digits + */ + @NonNull + private String expiryYear; + + /** + * Security code + */ + @NonNull + private String ccv; +} diff --git a/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeRequestDto.java b/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeRequestDto.java new file mode 100644 index 0000000..2d65bab --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeRequestDto.java @@ -0,0 +1,44 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CreditCardTokenizeRequestDto { + + /** + * Unique customer identifier in Asaas + */ + @NonNull + private String customer; + + /** + * Credit card information + */ + @NonNull + private CreditCardRequestDto creditCard; + + /** + * Credit card holder information + */ + @NonNull + private CreditCardHolderInfoRequestDto creditCardHolderInfo; + + /** + * IP from where the customer is making the purchase. Your server's IP must not be entered. + */ + @NonNull + private String remoteIp; +} diff --git a/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseCreditCardBrand.java b/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseCreditCardBrand.java new file mode 100644 index 0000000..5673e54 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseCreditCardBrand.java @@ -0,0 +1,41 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Brand of the card used + */ +@Getter +@AllArgsConstructor +public enum CreditCardTokenizeResponseCreditCardBrand { + VISA("VISA"), + MASTERCARD("MASTERCARD"), + ELO("ELO"), + DINERS("DINERS"), + DISCOVER("DISCOVER"), + AMEX("AMEX"), + CABAL("CABAL"), + BANESCARD("BANESCARD"), + CREDZ("CREDZ"), + SOROCRED("SOROCRED"), + CREDSYSTEM("CREDSYSTEM"), + JCB("JCB"), + UNKNOWN("UNKNOWN"); + + @JsonValue + private final String value; + + @JsonCreator + public static CreditCardTokenizeResponseCreditCardBrand fromValue(String value) { + return Arrays.stream(CreditCardTokenizeResponseCreditCardBrand.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseDto.java b/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseDto.java new file mode 100644 index 0000000..e97a8ef --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseDto.java @@ -0,0 +1,83 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CreditCardTokenizeResponseDto { + + /** + * Last 4 digits of the card used + */ + @JsonProperty("creditCardNumber") + private JsonNullable creditCardNumber; + + /** + * Brand of the card used + */ + @JsonProperty("creditCardBrand") + private JsonNullable creditCardBrand; + + /** + * Credit card token that can be sent in future transactions without the need to re-enter card and cardholder details. + */ + @JsonProperty("creditCardToken") + private JsonNullable creditCardToken; + + @JsonIgnore + public String getCreditCardNumber() { + return creditCardNumber.orElse(null); + } + + @JsonIgnore + public CreditCardTokenizeResponseCreditCardBrand getCreditCardBrand() { + return creditCardBrand.orElse(null); + } + + @JsonIgnore + public String getCreditCardToken() { + return creditCardToken.orElse(null); + } + + // Overwrite lombok builder methods + public static class CreditCardTokenizeResponseDtoBuilder { + + private JsonNullable creditCardNumber = JsonNullable.undefined(); + + @JsonProperty("creditCardNumber") + public CreditCardTokenizeResponseDtoBuilder creditCardNumber(String value) { + this.creditCardNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCardBrand = JsonNullable.undefined(); + + @JsonProperty("creditCardBrand") + public CreditCardTokenizeResponseDtoBuilder creditCardBrand(CreditCardTokenizeResponseCreditCardBrand value) { + this.creditCardBrand = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCardToken = JsonNullable.undefined(); + + @JsonProperty("creditCardToken") + public CreditCardTokenizeResponseDtoBuilder creditCardToken(String value) { + this.creditCardToken = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CustomerDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/CustomerDeleteResponseDto.java new file mode 100644 index 0000000..2aac68e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CustomerDeleteResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CustomerDeleteResponseDto { + + /** + * Indicates whether the client has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Unique customer identifier + */ + @JsonProperty("id") + private JsonNullable id; + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + // Overwrite lombok builder methods + public static class CustomerDeleteResponseDtoBuilder { + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public CustomerDeleteResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public CustomerDeleteResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CustomerGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/CustomerGetResponseDto.java new file mode 100644 index 0000000..f592c72 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CustomerGetResponseDto.java @@ -0,0 +1,482 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CustomerGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique customer identifier + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Customer creation date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Client name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Customer email + */ + @JsonProperty("email") + private JsonNullable email; + + /** + * Customer phone + */ + @JsonProperty("phone") + private JsonNullable phone; + + /** + * Customer cell phone + */ + @JsonProperty("mobilePhone") + private JsonNullable mobilePhone; + + /** + * Customer address + */ + @JsonProperty("address") + private JsonNullable address; + + /** + * Customer address number + */ + @JsonProperty("addressNumber") + private JsonNullable addressNumber; + + /** + * Customer address complement + */ + @JsonProperty("complement") + private JsonNullable complement; + + /** + * Customer address neighborhood + */ + @JsonProperty("province") + private JsonNullable province; + + /** + * Unique city identifier in Asaas + */ + @JsonProperty("city") + private JsonNullable city; + + /** + * City of customer address + */ + @JsonProperty("cityName") + private JsonNullable cityName; + + /** + * Customer address status + */ + @JsonProperty("state") + private JsonNullable state; + + /** + * Customer country + */ + @JsonProperty("country") + private JsonNullable country; + + /** + * Customer address zip code + */ + @JsonProperty("postalCode") + private JsonNullable postalCode; + + /** + * Customer CPF or CNPJ + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Kind of person + */ + @JsonProperty("personType") + private JsonNullable personType; + + /** + * Indicates whether it is a deleted client + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Additional customer emails + */ + @JsonProperty("additionalEmails") + private JsonNullable additionalEmails; + + /** + * External customer reference + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Indicates whether notifications are disabled + */ + @JsonProperty("notificationDisabled") + private JsonNullable notificationDisabled; + + /** + * Customer Observations + */ + @JsonProperty("observations") + private JsonNullable observations; + + /** + * Indicates if it's non-brazilian customer + */ + @JsonProperty("foreignCustomer") + private JsonNullable foreignCustomer; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getEmail() { + return email.orElse(null); + } + + @JsonIgnore + public String getPhone() { + return phone.orElse(null); + } + + @JsonIgnore + public String getMobilePhone() { + return mobilePhone.orElse(null); + } + + @JsonIgnore + public String getAddress() { + return address.orElse(null); + } + + @JsonIgnore + public String getAddressNumber() { + return addressNumber.orElse(null); + } + + @JsonIgnore + public String getComplement() { + return complement.orElse(null); + } + + @JsonIgnore + public String getProvince() { + return province.orElse(null); + } + + @JsonIgnore + public Long getCity() { + return city.orElse(null); + } + + @JsonIgnore + public String getCityName() { + return cityName.orElse(null); + } + + @JsonIgnore + public String getState() { + return state.orElse(null); + } + + @JsonIgnore + public String getCountry() { + return country.orElse(null); + } + + @JsonIgnore + public String getPostalCode() { + return postalCode.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public CustomerGetResponsePersonType getPersonType() { + return personType.orElse(null); + } + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public String getAdditionalEmails() { + return additionalEmails.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public Boolean getNotificationDisabled() { + return notificationDisabled.orElse(null); + } + + @JsonIgnore + public String getObservations() { + return observations.orElse(null); + } + + @JsonIgnore + public Boolean getForeignCustomer() { + return foreignCustomer.orElse(null); + } + + // Overwrite lombok builder methods + public static class CustomerGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public CustomerGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public CustomerGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public CustomerGetResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public CustomerGetResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable email = JsonNullable.undefined(); + + @JsonProperty("email") + public CustomerGetResponseDtoBuilder email(String value) { + this.email = JsonNullable.of(value); + return this; + } + + private JsonNullable phone = JsonNullable.undefined(); + + @JsonProperty("phone") + public CustomerGetResponseDtoBuilder phone(String value) { + this.phone = JsonNullable.of(value); + return this; + } + + private JsonNullable mobilePhone = JsonNullable.undefined(); + + @JsonProperty("mobilePhone") + public CustomerGetResponseDtoBuilder mobilePhone(String value) { + this.mobilePhone = JsonNullable.of(value); + return this; + } + + private JsonNullable address = JsonNullable.undefined(); + + @JsonProperty("address") + public CustomerGetResponseDtoBuilder address(String value) { + this.address = JsonNullable.of(value); + return this; + } + + private JsonNullable addressNumber = JsonNullable.undefined(); + + @JsonProperty("addressNumber") + public CustomerGetResponseDtoBuilder addressNumber(String value) { + this.addressNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable complement = JsonNullable.undefined(); + + @JsonProperty("complement") + public CustomerGetResponseDtoBuilder complement(String value) { + this.complement = JsonNullable.of(value); + return this; + } + + private JsonNullable province = JsonNullable.undefined(); + + @JsonProperty("province") + public CustomerGetResponseDtoBuilder province(String value) { + this.province = JsonNullable.of(value); + return this; + } + + private JsonNullable city = JsonNullable.undefined(); + + @JsonProperty("city") + public CustomerGetResponseDtoBuilder city(Long value) { + this.city = JsonNullable.of(value); + return this; + } + + private JsonNullable cityName = JsonNullable.undefined(); + + @JsonProperty("cityName") + public CustomerGetResponseDtoBuilder cityName(String value) { + this.cityName = JsonNullable.of(value); + return this; + } + + private JsonNullable state = JsonNullable.undefined(); + + @JsonProperty("state") + public CustomerGetResponseDtoBuilder state(String value) { + this.state = JsonNullable.of(value); + return this; + } + + private JsonNullable country = JsonNullable.undefined(); + + @JsonProperty("country") + public CustomerGetResponseDtoBuilder country(String value) { + this.country = JsonNullable.of(value); + return this; + } + + private JsonNullable postalCode = JsonNullable.undefined(); + + @JsonProperty("postalCode") + public CustomerGetResponseDtoBuilder postalCode(String value) { + this.postalCode = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public CustomerGetResponseDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable personType = JsonNullable.undefined(); + + @JsonProperty("personType") + public CustomerGetResponseDtoBuilder personType(CustomerGetResponsePersonType value) { + this.personType = JsonNullable.of(value); + return this; + } + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public CustomerGetResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable additionalEmails = JsonNullable.undefined(); + + @JsonProperty("additionalEmails") + public CustomerGetResponseDtoBuilder additionalEmails(String value) { + this.additionalEmails = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public CustomerGetResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable notificationDisabled = JsonNullable.undefined(); + + @JsonProperty("notificationDisabled") + public CustomerGetResponseDtoBuilder notificationDisabled(Boolean value) { + this.notificationDisabled = JsonNullable.of(value); + return this; + } + + private JsonNullable observations = JsonNullable.undefined(); + + @JsonProperty("observations") + public CustomerGetResponseDtoBuilder observations(String value) { + this.observations = JsonNullable.of(value); + return this; + } + + private JsonNullable foreignCustomer = JsonNullable.undefined(); + + @JsonProperty("foreignCustomer") + public CustomerGetResponseDtoBuilder foreignCustomer(Boolean value) { + this.foreignCustomer = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CustomerGetResponsePersonType.java b/src/main/java/com/asaas/apisdk/models/CustomerGetResponsePersonType.java new file mode 100644 index 0000000..f6de49f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CustomerGetResponsePersonType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Kind of person + */ +@Getter +@AllArgsConstructor +public enum CustomerGetResponsePersonType { + JURIDICA("JURIDICA"), + FISICA("FISICA"); + + @JsonValue + private final String value; + + @JsonCreator + public static CustomerGetResponsePersonType fromValue(String value) { + return Arrays.stream(CustomerGetResponsePersonType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CustomerListResponseDto.java b/src/main/java/com/asaas/apisdk/models/CustomerListResponseDto.java new file mode 100644 index 0000000..894481b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CustomerListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CustomerListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class CustomerListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public CustomerListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public CustomerListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public CustomerListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public CustomerListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public CustomerListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public CustomerListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CustomerSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/CustomerSaveRequestDto.java new file mode 100644 index 0000000..ec4d8ae --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CustomerSaveRequestDto.java @@ -0,0 +1,362 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CustomerSaveRequestDto { + + /** + * Client name + */ + @NonNull + private String name; + + /** + * Customer CPF or CNPJ + */ + @NonNull + private String cpfCnpj; + + /** + * Customer email + */ + @JsonProperty("email") + private JsonNullable email; + + /** + * Landline + */ + @JsonProperty("phone") + private JsonNullable phone; + + /** + * Cell phone + */ + @JsonProperty("mobilePhone") + private JsonNullable mobilePhone; + + /** + * Public place + */ + @JsonProperty("address") + private JsonNullable address; + + /** + * Address number + */ + @JsonProperty("addressNumber") + private JsonNullable addressNumber; + + /** + * Address complement (max. 255 characters) + */ + @JsonProperty("complement") + private JsonNullable complement; + + /** + * Neighborhood + */ + @JsonProperty("province") + private JsonNullable province; + + /** + * Address zip code + */ + @JsonProperty("postalCode") + private JsonNullable postalCode; + + /** + * Customer identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * true to disable sending billing notifications + */ + @JsonProperty("notificationDisabled") + private JsonNullable notificationDisabled; + + /** + * Additional emails for sending billing notifications separated by "," + */ + @JsonProperty("additionalEmails") + private JsonNullable additionalEmails; + + /** + * Customer municipal registration + */ + @JsonProperty("municipalInscription") + private JsonNullable municipalInscription; + + /** + * Customer state registration + */ + @JsonProperty("stateInscription") + private JsonNullable stateInscription; + + /** + * Additional observations + */ + @JsonProperty("observations") + private JsonNullable observations; + + /** + * Name of the group the customer belongs to + */ + @JsonProperty("groupName") + private JsonNullable groupName; + + /** + * Company + */ + @JsonProperty("company") + private JsonNullable company; + + /** + * inform true if it's a non-brazilian customer + */ + @JsonProperty("foreignCustomer") + private JsonNullable foreignCustomer; + + @JsonIgnore + public String getEmail() { + return email.orElse(null); + } + + @JsonIgnore + public String getPhone() { + return phone.orElse(null); + } + + @JsonIgnore + public String getMobilePhone() { + return mobilePhone.orElse(null); + } + + @JsonIgnore + public String getAddress() { + return address.orElse(null); + } + + @JsonIgnore + public String getAddressNumber() { + return addressNumber.orElse(null); + } + + @JsonIgnore + public String getComplement() { + return complement.orElse(null); + } + + @JsonIgnore + public String getProvince() { + return province.orElse(null); + } + + @JsonIgnore + public String getPostalCode() { + return postalCode.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public Boolean getNotificationDisabled() { + return notificationDisabled.orElse(null); + } + + @JsonIgnore + public String getAdditionalEmails() { + return additionalEmails.orElse(null); + } + + @JsonIgnore + public String getMunicipalInscription() { + return municipalInscription.orElse(null); + } + + @JsonIgnore + public String getStateInscription() { + return stateInscription.orElse(null); + } + + @JsonIgnore + public String getObservations() { + return observations.orElse(null); + } + + @JsonIgnore + public String getGroupName() { + return groupName.orElse(null); + } + + @JsonIgnore + public String getCompany() { + return company.orElse(null); + } + + @JsonIgnore + public Boolean getForeignCustomer() { + return foreignCustomer.orElse(null); + } + + // Overwrite lombok builder methods + public static class CustomerSaveRequestDtoBuilder { + + private JsonNullable email = JsonNullable.undefined(); + + @JsonProperty("email") + public CustomerSaveRequestDtoBuilder email(String value) { + this.email = JsonNullable.of(value); + return this; + } + + private JsonNullable phone = JsonNullable.undefined(); + + @JsonProperty("phone") + public CustomerSaveRequestDtoBuilder phone(String value) { + this.phone = JsonNullable.of(value); + return this; + } + + private JsonNullable mobilePhone = JsonNullable.undefined(); + + @JsonProperty("mobilePhone") + public CustomerSaveRequestDtoBuilder mobilePhone(String value) { + this.mobilePhone = JsonNullable.of(value); + return this; + } + + private JsonNullable address = JsonNullable.undefined(); + + @JsonProperty("address") + public CustomerSaveRequestDtoBuilder address(String value) { + this.address = JsonNullable.of(value); + return this; + } + + private JsonNullable addressNumber = JsonNullable.undefined(); + + @JsonProperty("addressNumber") + public CustomerSaveRequestDtoBuilder addressNumber(String value) { + this.addressNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable complement = JsonNullable.undefined(); + + @JsonProperty("complement") + public CustomerSaveRequestDtoBuilder complement(String value) { + this.complement = JsonNullable.of(value); + return this; + } + + private JsonNullable province = JsonNullable.undefined(); + + @JsonProperty("province") + public CustomerSaveRequestDtoBuilder province(String value) { + this.province = JsonNullable.of(value); + return this; + } + + private JsonNullable postalCode = JsonNullable.undefined(); + + @JsonProperty("postalCode") + public CustomerSaveRequestDtoBuilder postalCode(String value) { + this.postalCode = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public CustomerSaveRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable notificationDisabled = JsonNullable.undefined(); + + @JsonProperty("notificationDisabled") + public CustomerSaveRequestDtoBuilder notificationDisabled(Boolean value) { + this.notificationDisabled = JsonNullable.of(value); + return this; + } + + private JsonNullable additionalEmails = JsonNullable.undefined(); + + @JsonProperty("additionalEmails") + public CustomerSaveRequestDtoBuilder additionalEmails(String value) { + this.additionalEmails = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalInscription = JsonNullable.undefined(); + + @JsonProperty("municipalInscription") + public CustomerSaveRequestDtoBuilder municipalInscription(String value) { + this.municipalInscription = JsonNullable.of(value); + return this; + } + + private JsonNullable stateInscription = JsonNullable.undefined(); + + @JsonProperty("stateInscription") + public CustomerSaveRequestDtoBuilder stateInscription(String value) { + this.stateInscription = JsonNullable.of(value); + return this; + } + + private JsonNullable observations = JsonNullable.undefined(); + + @JsonProperty("observations") + public CustomerSaveRequestDtoBuilder observations(String value) { + this.observations = JsonNullable.of(value); + return this; + } + + private JsonNullable groupName = JsonNullable.undefined(); + + @JsonProperty("groupName") + public CustomerSaveRequestDtoBuilder groupName(String value) { + this.groupName = JsonNullable.of(value); + return this; + } + + private JsonNullable company = JsonNullable.undefined(); + + @JsonProperty("company") + public CustomerSaveRequestDtoBuilder company(String value) { + this.company = JsonNullable.of(value); + return this; + } + + private JsonNullable foreignCustomer = JsonNullable.undefined(); + + @JsonProperty("foreignCustomer") + public CustomerSaveRequestDtoBuilder foreignCustomer(Boolean value) { + this.foreignCustomer = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/CustomerUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/CustomerUpdateRequestDto.java new file mode 100644 index 0000000..3f5d95b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/CustomerUpdateRequestDto.java @@ -0,0 +1,387 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class CustomerUpdateRequestDto { + + /** + * Client name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Customer CPF or CNPJ + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Customer email + */ + @JsonProperty("email") + private JsonNullable email; + + /** + * Landline + */ + @JsonProperty("phone") + private JsonNullable phone; + + /** + * Cell phone + */ + @JsonProperty("mobilePhone") + private JsonNullable mobilePhone; + + /** + * Public place + */ + @JsonProperty("address") + private JsonNullable address; + + /** + * Address number + */ + @JsonProperty("addressNumber") + private JsonNullable addressNumber; + + /** + * Address complement + */ + @JsonProperty("complement") + private JsonNullable complement; + + /** + * Neighborhood + */ + @JsonProperty("province") + private JsonNullable province; + + /** + * Address zip code + */ + @JsonProperty("postalCode") + private JsonNullable postalCode; + + /** + * Customer identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * true to disable sending billing notifications + */ + @JsonProperty("notificationDisabled") + private JsonNullable notificationDisabled; + + /** + * Additional emails for sending billing notifications separated by "," + */ + @JsonProperty("additionalEmails") + private JsonNullable additionalEmails; + + /** + * Customer municipal registration + */ + @JsonProperty("municipalInscription") + private JsonNullable municipalInscription; + + /** + * Customer state registration + */ + @JsonProperty("stateInscription") + private JsonNullable stateInscription; + + /** + * Additional observations + */ + @JsonProperty("observations") + private JsonNullable observations; + + /** + * Name of the group the customer belongs to + */ + @JsonProperty("groupName") + private JsonNullable groupName; + + /** + * Company + */ + @JsonProperty("company") + private JsonNullable company; + + /** + * inform true if it's a non-brazilian customer + */ + @JsonProperty("foreignCustomer") + private JsonNullable foreignCustomer; + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public String getEmail() { + return email.orElse(null); + } + + @JsonIgnore + public String getPhone() { + return phone.orElse(null); + } + + @JsonIgnore + public String getMobilePhone() { + return mobilePhone.orElse(null); + } + + @JsonIgnore + public String getAddress() { + return address.orElse(null); + } + + @JsonIgnore + public String getAddressNumber() { + return addressNumber.orElse(null); + } + + @JsonIgnore + public String getComplement() { + return complement.orElse(null); + } + + @JsonIgnore + public String getProvince() { + return province.orElse(null); + } + + @JsonIgnore + public String getPostalCode() { + return postalCode.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public Boolean getNotificationDisabled() { + return notificationDisabled.orElse(null); + } + + @JsonIgnore + public String getAdditionalEmails() { + return additionalEmails.orElse(null); + } + + @JsonIgnore + public String getMunicipalInscription() { + return municipalInscription.orElse(null); + } + + @JsonIgnore + public String getStateInscription() { + return stateInscription.orElse(null); + } + + @JsonIgnore + public String getObservations() { + return observations.orElse(null); + } + + @JsonIgnore + public String getGroupName() { + return groupName.orElse(null); + } + + @JsonIgnore + public String getCompany() { + return company.orElse(null); + } + + @JsonIgnore + public Boolean getForeignCustomer() { + return foreignCustomer.orElse(null); + } + + // Overwrite lombok builder methods + public static class CustomerUpdateRequestDtoBuilder { + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public CustomerUpdateRequestDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public CustomerUpdateRequestDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable email = JsonNullable.undefined(); + + @JsonProperty("email") + public CustomerUpdateRequestDtoBuilder email(String value) { + this.email = JsonNullable.of(value); + return this; + } + + private JsonNullable phone = JsonNullable.undefined(); + + @JsonProperty("phone") + public CustomerUpdateRequestDtoBuilder phone(String value) { + this.phone = JsonNullable.of(value); + return this; + } + + private JsonNullable mobilePhone = JsonNullable.undefined(); + + @JsonProperty("mobilePhone") + public CustomerUpdateRequestDtoBuilder mobilePhone(String value) { + this.mobilePhone = JsonNullable.of(value); + return this; + } + + private JsonNullable address = JsonNullable.undefined(); + + @JsonProperty("address") + public CustomerUpdateRequestDtoBuilder address(String value) { + this.address = JsonNullable.of(value); + return this; + } + + private JsonNullable addressNumber = JsonNullable.undefined(); + + @JsonProperty("addressNumber") + public CustomerUpdateRequestDtoBuilder addressNumber(String value) { + this.addressNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable complement = JsonNullable.undefined(); + + @JsonProperty("complement") + public CustomerUpdateRequestDtoBuilder complement(String value) { + this.complement = JsonNullable.of(value); + return this; + } + + private JsonNullable province = JsonNullable.undefined(); + + @JsonProperty("province") + public CustomerUpdateRequestDtoBuilder province(String value) { + this.province = JsonNullable.of(value); + return this; + } + + private JsonNullable postalCode = JsonNullable.undefined(); + + @JsonProperty("postalCode") + public CustomerUpdateRequestDtoBuilder postalCode(String value) { + this.postalCode = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public CustomerUpdateRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable notificationDisabled = JsonNullable.undefined(); + + @JsonProperty("notificationDisabled") + public CustomerUpdateRequestDtoBuilder notificationDisabled(Boolean value) { + this.notificationDisabled = JsonNullable.of(value); + return this; + } + + private JsonNullable additionalEmails = JsonNullable.undefined(); + + @JsonProperty("additionalEmails") + public CustomerUpdateRequestDtoBuilder additionalEmails(String value) { + this.additionalEmails = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalInscription = JsonNullable.undefined(); + + @JsonProperty("municipalInscription") + public CustomerUpdateRequestDtoBuilder municipalInscription(String value) { + this.municipalInscription = JsonNullable.of(value); + return this; + } + + private JsonNullable stateInscription = JsonNullable.undefined(); + + @JsonProperty("stateInscription") + public CustomerUpdateRequestDtoBuilder stateInscription(String value) { + this.stateInscription = JsonNullable.of(value); + return this; + } + + private JsonNullable observations = JsonNullable.undefined(); + + @JsonProperty("observations") + public CustomerUpdateRequestDtoBuilder observations(String value) { + this.observations = JsonNullable.of(value); + return this; + } + + private JsonNullable groupName = JsonNullable.undefined(); + + @JsonProperty("groupName") + public CustomerUpdateRequestDtoBuilder groupName(String value) { + this.groupName = JsonNullable.of(value); + return this; + } + + private JsonNullable company = JsonNullable.undefined(); + + @JsonProperty("company") + public CustomerUpdateRequestDtoBuilder company(String value) { + this.company = JsonNullable.of(value); + return this; + } + + private JsonNullable foreignCustomer = JsonNullable.undefined(); + + @JsonProperty("foreignCustomer") + public CustomerUpdateRequestDtoBuilder foreignCustomer(Boolean value) { + this.foreignCustomer = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/ErrorResponseDto.java b/src/main/java/com/asaas/apisdk/models/ErrorResponseDto.java new file mode 100644 index 0000000..08f0c96 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/ErrorResponseDto.java @@ -0,0 +1,50 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +@NoArgsConstructor +@AllArgsConstructor +public class ErrorResponseDto { + + /** + * List of objects + */ + @JsonProperty("errors") + private JsonNullable> errors; + + @JsonIgnore + public List getErrors() { + return errors.orElse(null); + } + + // Overwrite lombok builder methods + public static class ErrorResponseDtoBuilder { + + private JsonNullable> errors = JsonNullable.undefined(); + + @JsonProperty("errors") + public ErrorResponseDtoBuilder errors(List value) { + this.errors = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/ErrorResponseItemDto.java b/src/main/java/com/asaas/apisdk/models/ErrorResponseItemDto.java new file mode 100644 index 0000000..1b79326 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/ErrorResponseItemDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of objects + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class ErrorResponseItemDto { + + /** + * Error code + */ + @JsonProperty("code") + private JsonNullable code; + + /** + * Error description + */ + @JsonProperty("description") + private JsonNullable description; + + @JsonIgnore + public String getCode() { + return code.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + // Overwrite lombok builder methods + public static class ErrorResponseItemDtoBuilder { + + private JsonNullable code = JsonNullable.undefined(); + + @JsonProperty("code") + public ErrorResponseItemDtoBuilder code(String value) { + this.code = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public ErrorResponseItemDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FinanceBalanceResponseDto.java b/src/main/java/com/asaas/apisdk/models/FinanceBalanceResponseDto.java new file mode 100644 index 0000000..ea806c0 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FinanceBalanceResponseDto.java @@ -0,0 +1,45 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FinanceBalanceResponseDto { + + /** + * Account balance + */ + @JsonProperty("balance") + private JsonNullable balance; + + @JsonIgnore + public Double getBalance() { + return balance.orElse(null); + } + + // Overwrite lombok builder methods + public static class FinanceBalanceResponseDtoBuilder { + + private JsonNullable balance = JsonNullable.undefined(); + + @JsonProperty("balance") + public FinanceBalanceResponseDtoBuilder balance(Double value) { + this.balance = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestBillingType.java new file mode 100644 index 0000000..2cd15ab --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestBillingType.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by payment method + */ +@Getter +@AllArgsConstructor +public enum FinanceGetPaymentStatisticsRequestBillingType { + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + TRANSFER("TRANSFER"), + DEPOSIT("DEPOSIT"), + DEBIT_CARD("DEBIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static FinanceGetPaymentStatisticsRequestBillingType fromValue(String value) { + return Arrays.stream(FinanceGetPaymentStatisticsRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestPaymentStatus.java new file mode 100644 index 0000000..679e339 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestPaymentStatus.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by status + */ +@Getter +@AllArgsConstructor +public enum FinanceGetPaymentStatisticsRequestPaymentStatus { + PENDING("PENDING"), + RECEIVED("RECEIVED"), + CONFIRMED("CONFIRMED"), + OVERDUE("OVERDUE"); + + @JsonValue + private final String value; + + @JsonCreator + public static FinanceGetPaymentStatisticsRequestPaymentStatus fromValue(String value) { + return Arrays.stream(FinanceGetPaymentStatisticsRequestPaymentStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsResponseDto.java b/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsResponseDto.java new file mode 100644 index 0000000..fccfd65 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsResponseDto.java @@ -0,0 +1,83 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FinanceGetPaymentStatisticsResponseDto { + + /** + * Number of charges + */ + @JsonProperty("quantity") + private JsonNullable quantity; + + /** + * Amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Total net worth + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + @JsonIgnore + public Long getQuantity() { + return quantity.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + // Overwrite lombok builder methods + public static class FinanceGetPaymentStatisticsResponseDtoBuilder { + + private JsonNullable quantity = JsonNullable.undefined(); + + @JsonProperty("quantity") + public FinanceGetPaymentStatisticsResponseDtoBuilder quantity(Long value) { + this.quantity = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public FinanceGetPaymentStatisticsResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public FinanceGetPaymentStatisticsResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FinanceGetSplitStatisticsResponseDto.java b/src/main/java/com/asaas/apisdk/models/FinanceGetSplitStatisticsResponseDto.java new file mode 100644 index 0000000..caa62ee --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FinanceGetSplitStatisticsResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FinanceGetSplitStatisticsResponseDto { + + /** + * Amounts receivable + */ + @JsonProperty("income") + private JsonNullable income; + + /** + * Values to be sent + */ + @JsonProperty("value") + private JsonNullable value; + + @JsonIgnore + public Double getIncome() { + return income.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + // Overwrite lombok builder methods + public static class FinanceGetSplitStatisticsResponseDtoBuilder { + + private JsonNullable income = JsonNullable.undefined(); + + @JsonProperty("income") + public FinanceGetSplitStatisticsResponseDtoBuilder income(Double value) { + this.income = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public FinanceGetSplitStatisticsResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseDto.java new file mode 100644 index 0000000..5264ddd --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseDto.java @@ -0,0 +1,316 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of objects + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FinancialTransactionGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique transaction identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Transaction value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Value in account at the time of the transaction + */ + @JsonProperty("balance") + private JsonNullable balance; + + /** + * Transaction type + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Transaction date + */ + @JsonProperty("date") + private JsonNullable date; + + /** + * Transaction description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Payment identifier (If any) + */ + @JsonProperty("paymentId") + private JsonNullable paymentId; + + /** + * Split identifier (If any) + */ + @JsonProperty("splitId") + private JsonNullable splitId; + + /** + * Transfer identifier (If any) + */ + @JsonProperty("transferId") + private JsonNullable transferId; + + /** + * Anticipation identifier (If any) + */ + @JsonProperty("anticipationId") + private JsonNullable anticipationId; + + /** + * Bill payment identifier (If any) + */ + @JsonProperty("billId") + private JsonNullable billId; + + /** + * Invoice identifier (If any) + */ + @JsonProperty("invoiceId") + private JsonNullable invoiceId; + + /** + * Payment dunning identifier (If any) + */ + @JsonProperty("paymentDunningId") + private JsonNullable paymentDunningId; + + /** + * Serasa consultation identifier (If any) + */ + @JsonProperty("creditBureauReportId") + private JsonNullable creditBureauReportId; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getBalance() { + return balance.orElse(null); + } + + @JsonIgnore + public FinancialTransactionGetResponseFinancialTransactionType getType() { + return type.orElse(null); + } + + @JsonIgnore + public String getDate() { + return date.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getPaymentId() { + return paymentId.orElse(null); + } + + @JsonIgnore + public String getSplitId() { + return splitId.orElse(null); + } + + @JsonIgnore + public String getTransferId() { + return transferId.orElse(null); + } + + @JsonIgnore + public String getAnticipationId() { + return anticipationId.orElse(null); + } + + @JsonIgnore + public String getBillId() { + return billId.orElse(null); + } + + @JsonIgnore + public String getInvoiceId() { + return invoiceId.orElse(null); + } + + @JsonIgnore + public String getPaymentDunningId() { + return paymentDunningId.orElse(null); + } + + @JsonIgnore + public String getCreditBureauReportId() { + return creditBureauReportId.orElse(null); + } + + // Overwrite lombok builder methods + public static class FinancialTransactionGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public FinancialTransactionGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public FinancialTransactionGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public FinancialTransactionGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable balance = JsonNullable.undefined(); + + @JsonProperty("balance") + public FinancialTransactionGetResponseDtoBuilder balance(Double value) { + this.balance = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public FinancialTransactionGetResponseDtoBuilder type( + FinancialTransactionGetResponseFinancialTransactionType value + ) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable date = JsonNullable.undefined(); + + @JsonProperty("date") + public FinancialTransactionGetResponseDtoBuilder date(String value) { + this.date = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public FinancialTransactionGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentId = JsonNullable.undefined(); + + @JsonProperty("paymentId") + public FinancialTransactionGetResponseDtoBuilder paymentId(String value) { + this.paymentId = JsonNullable.of(value); + return this; + } + + private JsonNullable splitId = JsonNullable.undefined(); + + @JsonProperty("splitId") + public FinancialTransactionGetResponseDtoBuilder splitId(String value) { + this.splitId = JsonNullable.of(value); + return this; + } + + private JsonNullable transferId = JsonNullable.undefined(); + + @JsonProperty("transferId") + public FinancialTransactionGetResponseDtoBuilder transferId(String value) { + this.transferId = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipationId = JsonNullable.undefined(); + + @JsonProperty("anticipationId") + public FinancialTransactionGetResponseDtoBuilder anticipationId(String value) { + this.anticipationId = JsonNullable.of(value); + return this; + } + + private JsonNullable billId = JsonNullable.undefined(); + + @JsonProperty("billId") + public FinancialTransactionGetResponseDtoBuilder billId(String value) { + this.billId = JsonNullable.of(value); + return this; + } + + private JsonNullable invoiceId = JsonNullable.undefined(); + + @JsonProperty("invoiceId") + public FinancialTransactionGetResponseDtoBuilder invoiceId(String value) { + this.invoiceId = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentDunningId = JsonNullable.undefined(); + + @JsonProperty("paymentDunningId") + public FinancialTransactionGetResponseDtoBuilder paymentDunningId(String value) { + this.paymentDunningId = JsonNullable.of(value); + return this; + } + + private JsonNullable creditBureauReportId = JsonNullable.undefined(); + + @JsonProperty("creditBureauReportId") + public FinancialTransactionGetResponseDtoBuilder creditBureauReportId(String value) { + this.creditBureauReportId = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseFinancialTransactionType.java b/src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseFinancialTransactionType.java new file mode 100644 index 0000000..4e8d5cd --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseFinancialTransactionType.java @@ -0,0 +1,153 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Transaction type + */ +@Getter +@AllArgsConstructor +public enum FinancialTransactionGetResponseFinancialTransactionType { + PAYMENT_RECEIVED("PAYMENT_RECEIVED"), + TRANSFER("TRANSFER"), + TRANSFER_FEE("TRANSFER_FEE"), + TRANSFER_REVERSAL("TRANSFER_REVERSAL"), + REVERSAL("REVERSAL"), + PAYMENT_REVERSAL("PAYMENT_REVERSAL"), + PAYMENT_REFUND_CANCELLED("PAYMENT_REFUND_CANCELLED"), + PAYMENT_FEE("PAYMENT_FEE"), + PAYMENT_FEE_REVERSAL("PAYMENT_FEE_REVERSAL"), + PAYMENT_CUSTODY_BLOCK("PAYMENT_CUSTODY_BLOCK"), + PAYMENT_CUSTODY_BLOCK_REVERSAL("PAYMENT_CUSTODY_BLOCK_REVERSAL"), + PHONE_CALL_NOTIFICATION_FEE("PHONE_CALL_NOTIFICATION_FEE"), + PROMOTIONAL_CODE_CREDIT("PROMOTIONAL_CODE_CREDIT"), + DEBIT("DEBIT"), + DEBIT_REVERSAL("DEBIT_REVERSAL"), + DEBT_RECOVERY_NEGOTIATION_FINANCIAL_CHARGES("DEBT_RECOVERY_NEGOTIATION_FINANCIAL_CHARGES"), + RECEIVABLE_ANTICIPATION_GROSS_CREDIT("RECEIVABLE_ANTICIPATION_GROSS_CREDIT"), + RECEIVABLE_ANTICIPATION_FEE("RECEIVABLE_ANTICIPATION_FEE"), + RECEIVABLE_ANTICIPATION_DEBIT("RECEIVABLE_ANTICIPATION_DEBIT"), + RECEIVABLE_ANTICIPATION_PARTNER_SETTLEMENT("RECEIVABLE_ANTICIPATION_PARTNER_SETTLEMENT"), + BILL_PAYMENT("BILL_PAYMENT"), + BILL_PAYMENT_FEE("BILL_PAYMENT_FEE"), + BILL_PAYMENT_CANCELLED("BILL_PAYMENT_CANCELLED"), + BILL_PAYMENT_FEE_CANCELLED("BILL_PAYMENT_FEE_CANCELLED"), + BILL_PAYMENT_REFUNDED("BILL_PAYMENT_REFUNDED"), + POSTAL_SERVICE_FEE("POSTAL_SERVICE_FEE"), + INTERNAL_TRANSFER_DEBIT("INTERNAL_TRANSFER_DEBIT"), + INTERNAL_TRANSFER_CREDIT("INTERNAL_TRANSFER_CREDIT"), + INTERNAL_TRANSFER_REVERSAL("INTERNAL_TRANSFER_REVERSAL"), + CREDIT("CREDIT"), + PARTIAL_PAYMENT("PARTIAL_PAYMENT"), + PAYMENT_MESSAGING_NOTIFICATION_FEE("PAYMENT_MESSAGING_NOTIFICATION_FEE"), + PAYMENT_SMS_NOTIFICATION_FEE("PAYMENT_SMS_NOTIFICATION_FEE"), + PAYMENT_DUNNING_REQUEST_FEE("PAYMENT_DUNNING_REQUEST_FEE"), + PAYMENT_DUNNING_RECEIVED_FEE("PAYMENT_DUNNING_RECEIVED_FEE"), + PAYMENT_DUNNING_RECEIVED_IN_CASH_FEE("PAYMENT_DUNNING_RECEIVED_IN_CASH_FEE"), + PAYMENT_DUNNING_CANCELLATION_FEE("PAYMENT_DUNNING_CANCELLATION_FEE"), + CUSTOMER_COMMISSION_SETTLEMENT_CREDIT("CUSTOMER_COMMISSION_SETTLEMENT_CREDIT"), + CUSTOMER_COMMISSION_SETTLEMENT_DEBIT("CUSTOMER_COMMISSION_SETTLEMENT_DEBIT"), + PROMOTIONAL_CODE_DEBIT("PROMOTIONAL_CODE_DEBIT"), + REFUND_REQUEST_FEE("REFUND_REQUEST_FEE"), + REFUND_REQUEST_CANCELLED("REFUND_REQUEST_CANCELLED"), + REFUND_REQUEST_FEE_REVERSAL("REFUND_REQUEST_FEE_REVERSAL"), + INVOICE_FEE("INVOICE_FEE"), + PRODUCT_INVOICE_FEE("PRODUCT_INVOICE_FEE"), + CONSUMER_INVOICE_FEE("CONSUMER_INVOICE_FEE"), + ASAAS_CARD_RECHARGE("ASAAS_CARD_RECHARGE"), + ASAAS_CARD_RECHARGE_REVERSAL("ASAAS_CARD_RECHARGE_REVERSAL"), + ASAAS_CARD_BALANCE_REFUND("ASAAS_CARD_BALANCE_REFUND"), + CHARGEBACK("CHARGEBACK"), + CHARGEBACK_REVERSAL("CHARGEBACK_REVERSAL"), + ASAAS_CARD_BILL_PAYMENT("ASAAS_CARD_BILL_PAYMENT"), + ASAAS_CARD_BILL_PAYMENT_REFUND("ASAAS_CARD_BILL_PAYMENT_REFUND"), + ASAAS_CARD_TRANSACTION("ASAAS_CARD_TRANSACTION"), + ASAAS_CARD_CASHBACK("ASAAS_CARD_CASHBACK"), + ASAAS_CARD_CREDIT_TRANSFER("ASAAS_CARD_CREDIT_TRANSFER"), + ASAAS_CARD_CREDIT_TRANSFER_CANCELLATION("ASAAS_CARD_CREDIT_TRANSFER_CANCELLATION"), + ASAAS_CARD_CREDIT_TRANSFER_PARTIAL_CANCELLATION("ASAAS_CARD_CREDIT_TRANSFER_PARTIAL_CANCELLATION"), + ASAAS_CARD_CREDIT_VOUCHER("ASAAS_CARD_CREDIT_VOUCHER"), + ASAAS_CARD_CREDIT_VOUCHER_REFUND("ASAAS_CARD_CREDIT_VOUCHER_REFUND"), + ASAAS_CARD_DEBIT_TRANSFER("ASAAS_CARD_DEBIT_TRANSFER"), + ASAAS_CARD_DEBIT_TRANSFER_CANCELLATION("ASAAS_CARD_DEBIT_TRANSFER_CANCELLATION"), + ASAAS_CARD_DEBIT_TRANSFER_PARTIAL_CANCELLATION("ASAAS_CARD_DEBIT_TRANSFER_PARTIAL_CANCELLATION"), + ASAAS_CARD_TRANSACTION_FEE("ASAAS_CARD_TRANSACTION_FEE"), + ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE("ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE"), + ASAAS_CARD_TRANSACTION_IOF_FEE("ASAAS_CARD_TRANSACTION_IOF_FEE"), + ASAAS_CARD_TRANSACTION_REFUND("ASAAS_CARD_TRANSACTION_REFUND"), + ASAAS_CARD_TRANSACTION_FEE_REFUND("ASAAS_CARD_TRANSACTION_FEE_REFUND"), + ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE_REFUND("ASAAS_CARD_TRANSACTION_WITHDRAWAL_FEE_REFUND"), + ASAAS_CARD_TRANSACTION_PARTIAL_REFUND("ASAAS_CARD_TRANSACTION_PARTIAL_REFUND"), + ASAAS_CARD_TRANSACTION_REFUND_CANCELLATION("ASAAS_CARD_TRANSACTION_REFUND_CANCELLATION"), + ASAAS_CARD_TRANSACTION_PARTIAL_REFUND_CANCELLATION("ASAAS_CARD_TRANSACTION_PARTIAL_REFUND_CANCELLATION"), + ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE("ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE"), + ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE_REFUND("ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE_REFUND"), + ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE("ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE"), + ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE_REFUND("ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE_REFUND"), + ASAAS_MONEY_PAYMENT_FINANCING_FEE("ASAAS_MONEY_PAYMENT_FINANCING_FEE"), + ASAAS_MONEY_PAYMENT_FINANCING_FEE_REFUND("ASAAS_MONEY_PAYMENT_FINANCING_FEE_REFUND"), + ASAAS_MONEY_TRANSACTION_CASHBACK("ASAAS_MONEY_TRANSACTION_CASHBACK"), + ASAAS_MONEY_TRANSACTION_CASHBACK_REFUND("ASAAS_MONEY_TRANSACTION_CASHBACK_REFUND"), + ASAAS_MONEY_TRANSACTION_CHARGEBACK("ASAAS_MONEY_TRANSACTION_CHARGEBACK"), + ASAAS_MONEY_TRANSACTION_CHARGEBACK_REVERSAL("ASAAS_MONEY_TRANSACTION_CHARGEBACK_REVERSAL"), + CHARGED_FEE_REFUND("CHARGED_FEE_REFUND"), + PIX_TRANSACTION_DEBIT("PIX_TRANSACTION_DEBIT"), + PIX_TRANSACTION_DEBIT_REFUND("PIX_TRANSACTION_DEBIT_REFUND"), + PIX_TRANSACTION_CREDIT("PIX_TRANSACTION_CREDIT"), + PIX_TRANSACTION_CREDIT_FEE("PIX_TRANSACTION_CREDIT_FEE"), + PIX_TRANSACTION_CREDIT_REFUND("PIX_TRANSACTION_CREDIT_REFUND"), + PIX_TRANSACTION_CREDIT_REFUND_CANCELLATION("PIX_TRANSACTION_CREDIT_REFUND_CANCELLATION"), + PIX_TRANSACTION_DEBIT_FEE("PIX_TRANSACTION_DEBIT_FEE"), + CREDIT_BUREAU_REPORT("CREDIT_BUREAU_REPORT"), + CONTRACTUAL_EFFECT_SETTLEMENT("CONTRACTUAL_EFFECT_SETTLEMENT"), + CONTRACTUAL_EFFECT_SETTLEMENT_REVERSAL("CONTRACTUAL_EFFECT_SETTLEMENT_REVERSAL"), + FREE_PAYMENT_USE("FREE_PAYMENT_USE"), + MOBILE_PHONE_RECHARGE("MOBILE_PHONE_RECHARGE"), + REFUND_MOBILE_PHONE_RECHARGE("REFUND_MOBILE_PHONE_RECHARGE"), + CANCEL_MOBILE_PHONE_RECHARGE("CANCEL_MOBILE_PHONE_RECHARGE"), + BACEN_JUDICIAL_LOCK("BACEN_JUDICIAL_LOCK"), + BACEN_JUDICIAL_UNLOCK("BACEN_JUDICIAL_UNLOCK"), + BACEN_JUDICIAL_TRANSFER("BACEN_JUDICIAL_TRANSFER"), + INSTANT_TEXT_MESSAGE_FEE("INSTANT_TEXT_MESSAGE_FEE"), + ASAAS_DEBIT_CARD_REQUEST_FEE("ASAAS_DEBIT_CARD_REQUEST_FEE"), + ASAAS_PREPAID_CARD_REQUEST_FEE("ASAAS_PREPAID_CARD_REQUEST_FEE"), + EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_CREDIT("EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_CREDIT"), + EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_REVERSAL("EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_REVERSAL"), + CHILD_ACCOUNT_KNOWN_YOUR_CUSTOMER_BATCH_FEE("CHILD_ACCOUNT_KNOWN_YOUR_CUSTOMER_BATCH_FEE"), + CONTRACTED_CUSTOMER_PLAN_FEE("CONTRACTED_CUSTOMER_PLAN_FEE"), + ACCOUNT_INACTIVITY_FEE("ACCOUNT_INACTIVITY_FEE"), + PAYMENT_ORIGIN_CHANNEL_FEE("PAYMENT_ORIGIN_CHANNEL_FEE"), + PAYMENT_SPLIT_DIVERGENCE_BLOCK("PAYMENT_SPLIT_DIVERGENCE_BLOCK"), + PAYMENT_SPLIT_DIVERGENCE_BLOCK_REVERSAL("PAYMENT_SPLIT_DIVERGENCE_BLOCK_REVERSAL"), + CUSTOMER_ACCOUNT_PAYMENT_BONUS_FEE("CUSTOMER_ACCOUNT_PAYMENT_BONUS_FEE"), + CUSTOMER_PAYMENT_CUSTODY_CONFIG_FEE("CUSTOMER_PAYMENT_CUSTODY_CONFIG_FEE"), + CARD_SALE_ITEM_FEE("CARD_SALE_ITEM_FEE"), + CARD_SALE_ITEM_FEE_REVERSAL("CARD_SALE_ITEM_FEE_REVERSAL"), + CARD_SALE_RECEIVED("CARD_SALE_RECEIVED"), + CARD_SALE_REVERSAL("CARD_SALE_REVERSAL"), + FLAPP_STORE_PLAN_CHARGE_FEE("FLAPP_STORE_PLAN_CHARGE_FEE"), + RECEIVABLE_ANTICIPATION_PAYMENT_FEE("RECEIVABLE_ANTICIPATION_PAYMENT_FEE"), + ASAAS_MONEY_DONATION_DEBIT("ASAAS_MONEY_DONATION_DEBIT"), + ASAAS_MONEY_DONATION_DEBIT_REFUND("ASAAS_MONEY_DONATION_DEBIT_REFUND"), + ASAAS_MONEY_PAYMENT_DEBIT("ASAAS_MONEY_PAYMENT_DEBIT"), + ASAAS_MONEY_PAYMENT_DEBIT_REFUND("ASAAS_MONEY_PAYMENT_DEBIT_REFUND"), + CUSTOMER_COMMISSION_CHECKOUT("CUSTOMER_COMMISSION_CHECKOUT"), + RECEIVABLE_ANTICIPATION_CREDIT("RECEIVABLE_ANTICIPATION_CREDIT"); + + @JsonValue + private final String value; + + @JsonCreator + public static FinancialTransactionGetResponseFinancialTransactionType fromValue(String value) { + return Arrays.stream(FinancialTransactionGetResponseFinancialTransactionType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FinancialTransactionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/FinancialTransactionListResponseDto.java new file mode 100644 index 0000000..3168aaa --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FinancialTransactionListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FinancialTransactionListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class FinancialTransactionListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public FinancialTransactionListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public FinancialTransactionListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public FinancialTransactionListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public FinancialTransactionListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public FinancialTransactionListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public FinancialTransactionListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoGetResponseDto.java new file mode 100644 index 0000000..6a601fe --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoGetResponseDto.java @@ -0,0 +1,349 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FiscalInfoGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Email used by Asaas to send invoice notifications and alerts + */ + @JsonProperty("email") + private JsonNullable email; + + /** + * Company municipal registration + */ + @JsonProperty("municipalInscription") + private JsonNullable municipalInscription; + + /** + * Indicates whether the company opts for the simple national system + */ + @JsonProperty("simplesNacional") + private JsonNullable simplesNacional; + + /** + * Identifies whether the company is classified as a cultural promoter + */ + @JsonProperty("culturalProjectsPromoter") + private JsonNullable culturalProjectsPromoter; + + /** + * CNAE code + */ + @JsonProperty("cnae") + private JsonNullable cnae; + + /** + * Special taxation regime identifier + */ + @JsonProperty("specialTaxRegime") + private JsonNullable specialTaxRegime; + + /** + * Service list item, as http://www.planalto.gov.br/ccivil_03/leis/LCP/Lcp116.htm + */ + @JsonProperty("serviceListItem") + private JsonNullable serviceListItem; + + /** + * NBS Code (Brazilian Nomenclature of Services). It must be included on the NFS-e (Electronic Service Invoice) when required by the municipal government and/or for import or export services. Check with your local government or your accounting department to determine whether this information is necessary. + */ + @JsonProperty("nbsCode") + private JsonNullable nbsCode; + + /** + * Serial Number registered for the company + */ + @JsonProperty("rpsSerie") + private JsonNullable rpsSerie; + + /** + * RPS number used in the last invoice issued to your company + */ + @JsonProperty("rpsNumber") + private JsonNullable rpsNumber; + + /** + * Batch number used on the last invoice issued by your company + */ + @JsonProperty("loteNumber") + private JsonNullable loteNumber; + + /** + * User to access your city's city hall website + */ + @JsonProperty("username") + private JsonNullable username; + + /** + * Indicates whether the password to access the city hall website has been entered + */ + @JsonProperty("passwordSent") + private JsonNullable passwordSent; + + /** + * Indicates whether the token for accessing the city hall website was provided + */ + @JsonProperty("accessTokenSent") + private JsonNullable accessTokenSent; + + /** + * Indicates whether the digital certificate for access to the city hall website has been provided + */ + @JsonProperty("certificateSent") + private JsonNullable certificateSent; + + /** + * Identifier of the tax calculation regime + */ + @JsonProperty("nationalPortalTaxCalculationRegime") + private JsonNullable nationalPortalTaxCalculationRegime; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getEmail() { + return email.orElse(null); + } + + @JsonIgnore + public String getMunicipalInscription() { + return municipalInscription.orElse(null); + } + + @JsonIgnore + public Boolean getSimplesNacional() { + return simplesNacional.orElse(null); + } + + @JsonIgnore + public Boolean getCulturalProjectsPromoter() { + return culturalProjectsPromoter.orElse(null); + } + + @JsonIgnore + public String getCnae() { + return cnae.orElse(null); + } + + @JsonIgnore + public String getSpecialTaxRegime() { + return specialTaxRegime.orElse(null); + } + + @JsonIgnore + public String getServiceListItem() { + return serviceListItem.orElse(null); + } + + @JsonIgnore + public String getNbsCode() { + return nbsCode.orElse(null); + } + + @JsonIgnore + public String getRpsSerie() { + return rpsSerie.orElse(null); + } + + @JsonIgnore + public Long getRpsNumber() { + return rpsNumber.orElse(null); + } + + @JsonIgnore + public Long getLoteNumber() { + return loteNumber.orElse(null); + } + + @JsonIgnore + public String getUsername() { + return username.orElse(null); + } + + @JsonIgnore + public Boolean getPasswordSent() { + return passwordSent.orElse(null); + } + + @JsonIgnore + public Boolean getAccessTokenSent() { + return accessTokenSent.orElse(null); + } + + @JsonIgnore + public Boolean getCertificateSent() { + return certificateSent.orElse(null); + } + + @JsonIgnore + public String getNationalPortalTaxCalculationRegime() { + return nationalPortalTaxCalculationRegime.orElse(null); + } + + // Overwrite lombok builder methods + public static class FiscalInfoGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public FiscalInfoGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable email = JsonNullable.undefined(); + + @JsonProperty("email") + public FiscalInfoGetResponseDtoBuilder email(String value) { + this.email = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalInscription = JsonNullable.undefined(); + + @JsonProperty("municipalInscription") + public FiscalInfoGetResponseDtoBuilder municipalInscription(String value) { + this.municipalInscription = JsonNullable.of(value); + return this; + } + + private JsonNullable simplesNacional = JsonNullable.of(true); + + @JsonProperty("simplesNacional") + public FiscalInfoGetResponseDtoBuilder simplesNacional(Boolean value) { + this.simplesNacional = JsonNullable.of(value); + return this; + } + + private JsonNullable culturalProjectsPromoter = JsonNullable.of(true); + + @JsonProperty("culturalProjectsPromoter") + public FiscalInfoGetResponseDtoBuilder culturalProjectsPromoter(Boolean value) { + this.culturalProjectsPromoter = JsonNullable.of(value); + return this; + } + + private JsonNullable cnae = JsonNullable.undefined(); + + @JsonProperty("cnae") + public FiscalInfoGetResponseDtoBuilder cnae(String value) { + this.cnae = JsonNullable.of(value); + return this; + } + + private JsonNullable specialTaxRegime = JsonNullable.undefined(); + + @JsonProperty("specialTaxRegime") + public FiscalInfoGetResponseDtoBuilder specialTaxRegime(String value) { + this.specialTaxRegime = JsonNullable.of(value); + return this; + } + + private JsonNullable serviceListItem = JsonNullable.undefined(); + + @JsonProperty("serviceListItem") + public FiscalInfoGetResponseDtoBuilder serviceListItem(String value) { + this.serviceListItem = JsonNullable.of(value); + return this; + } + + private JsonNullable nbsCode = JsonNullable.undefined(); + + @JsonProperty("nbsCode") + public FiscalInfoGetResponseDtoBuilder nbsCode(String value) { + this.nbsCode = JsonNullable.of(value); + return this; + } + + private JsonNullable rpsSerie = JsonNullable.undefined(); + + @JsonProperty("rpsSerie") + public FiscalInfoGetResponseDtoBuilder rpsSerie(String value) { + this.rpsSerie = JsonNullable.of(value); + return this; + } + + private JsonNullable rpsNumber = JsonNullable.undefined(); + + @JsonProperty("rpsNumber") + public FiscalInfoGetResponseDtoBuilder rpsNumber(Long value) { + this.rpsNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable loteNumber = JsonNullable.undefined(); + + @JsonProperty("loteNumber") + public FiscalInfoGetResponseDtoBuilder loteNumber(Long value) { + this.loteNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable username = JsonNullable.undefined(); + + @JsonProperty("username") + public FiscalInfoGetResponseDtoBuilder username(String value) { + this.username = JsonNullable.of(value); + return this; + } + + private JsonNullable passwordSent = JsonNullable.of(true); + + @JsonProperty("passwordSent") + public FiscalInfoGetResponseDtoBuilder passwordSent(Boolean value) { + this.passwordSent = JsonNullable.of(value); + return this; + } + + private JsonNullable accessTokenSent = JsonNullable.of(true); + + @JsonProperty("accessTokenSent") + public FiscalInfoGetResponseDtoBuilder accessTokenSent(Boolean value) { + this.accessTokenSent = JsonNullable.of(value); + return this; + } + + private JsonNullable certificateSent = JsonNullable.of(true); + + @JsonProperty("certificateSent") + public FiscalInfoGetResponseDtoBuilder certificateSent(Boolean value) { + this.certificateSent = JsonNullable.of(value); + return this; + } + + private JsonNullable nationalPortalTaxCalculationRegime = JsonNullable.undefined(); + + @JsonProperty("nationalPortalTaxCalculationRegime") + public FiscalInfoGetResponseDtoBuilder nationalPortalTaxCalculationRegime(String value) { + this.nationalPortalTaxCalculationRegime = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.java new file mode 100644 index 0000000..36f54ba --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of objects + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FiscalInfoListInvoiceNbsCodesResponseDataDto { + + /** + * NBS code + */ + @JsonProperty("nbsCode") + private JsonNullable nbsCode; + + /** + * NBS code description + */ + @JsonProperty("codeDescription") + private JsonNullable codeDescription; + + @JsonIgnore + public String getNbsCode() { + return nbsCode.orElse(null); + } + + @JsonIgnore + public String getCodeDescription() { + return codeDescription.orElse(null); + } + + // Overwrite lombok builder methods + public static class FiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder { + + private JsonNullable nbsCode = JsonNullable.undefined(); + + @JsonProperty("nbsCode") + public FiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder nbsCode(String value) { + this.nbsCode = JsonNullable.of(value); + return this; + } + + private JsonNullable codeDescription = JsonNullable.undefined(); + + @JsonProperty("codeDescription") + public FiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder codeDescription(String value) { + this.codeDescription = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDto.java new file mode 100644 index 0000000..c78626e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDto.java @@ -0,0 +1,143 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FiscalInfoListInvoiceNbsCodesResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class FiscalInfoListInvoiceNbsCodesResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder data( + List value + ) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDataDto.java new file mode 100644 index 0000000..b5e6344 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDataDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of objects + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FiscalInfoListMunicipalServicesResponseDataDto { + + /** + * Unique service identifier + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Service description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * ISS percentage rate + */ + @JsonProperty("issTax") + private JsonNullable issTax; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Double getIssTax() { + return issTax.orElse(null); + } + + // Overwrite lombok builder methods + public static class FiscalInfoListMunicipalServicesResponseDataDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public FiscalInfoListMunicipalServicesResponseDataDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public FiscalInfoListMunicipalServicesResponseDataDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable issTax = JsonNullable.undefined(); + + @JsonProperty("issTax") + public FiscalInfoListMunicipalServicesResponseDataDtoBuilder issTax(Double value) { + this.issTax = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDto.java new file mode 100644 index 0000000..35c51ba --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDto.java @@ -0,0 +1,143 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FiscalInfoListMunicipalServicesResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class FiscalInfoListMunicipalServicesResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public FiscalInfoListMunicipalServicesResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public FiscalInfoListMunicipalServicesResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public FiscalInfoListMunicipalServicesResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public FiscalInfoListMunicipalServicesResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public FiscalInfoListMunicipalServicesResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public FiscalInfoListMunicipalServicesResponseDtoBuilder data( + List value + ) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseDto.java new file mode 100644 index 0000000..eaebfe0 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseDto.java @@ -0,0 +1,288 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FiscalInfoMunicipalOptionsGetResponseDto { + + /** + * Type of authentication required at city hall + */ + @JsonProperty("authenticationType") + private JsonNullable authenticationType; + + /** + * Whether or not it supports the cancellation of invoices automatically at your city hall + */ + @JsonProperty("supportsCancellation") + private JsonNullable supportsCancellation; + + /** + * It is necessary to inform or not the special taxation regime. If used, enter it in the `specialTaxRegime` field of **Create or update tax information** according to the options returned in the `specialTaxRegimesList` list. + */ + @JsonProperty("usesSpecialTaxRegimes") + private JsonNullable usesSpecialTaxRegimes; + + /** + * Whether or not to inform the item on the service list + */ + @JsonProperty("usesServiceListItem") + private JsonNullable usesServiceListItem; + + /** + * Tax calculation regime options + */ + @JsonProperty("specialTaxRegimesList") + private JsonNullable> specialTaxRegimesList; + + /** + * Special taxation regime options + */ + @JsonProperty("nationalPortalTaxCalculationRegimeList") + private JsonNullable< + List + > nationalPortalTaxCalculationRegimeList; + + /** + * Explanation of the tax calculation regime + */ + @JsonProperty("nationalPortalTaxCalculationRegimeHelp") + private JsonNullable nationalPortalTaxCalculationRegimeHelp; + + /** + * Explanation of the municipal registration format + */ + @JsonProperty("municipalInscriptionHelp") + private JsonNullable municipalInscriptionHelp; + + /** + * Explanation of the special taxation regime + */ + @JsonProperty("specialTaxRegimeHelp") + private JsonNullable specialTaxRegimeHelp; + + /** + * Explanation of service list item format + */ + @JsonProperty("serviceListItemHelp") + private JsonNullable serviceListItemHelp; + + /** + * Explanation of digital certificate + */ + @JsonProperty("digitalCertificatedHelp") + private JsonNullable digitalCertificatedHelp; + + /** + * Token Explanation + */ + @JsonProperty("accessTokenHelp") + private JsonNullable accessTokenHelp; + + /** + * Explanation of municipal service code format + */ + @JsonProperty("municipalServiceCodeHelp") + private JsonNullable municipalServiceCodeHelp; + + @JsonIgnore + public FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao getAuthenticationType() { + return authenticationType.orElse(null); + } + + @JsonIgnore + public Boolean getSupportsCancellation() { + return supportsCancellation.orElse(null); + } + + @JsonIgnore + public Boolean getUsesSpecialTaxRegimes() { + return usesSpecialTaxRegimes.orElse(null); + } + + @JsonIgnore + public Boolean getUsesServiceListItem() { + return usesServiceListItem.orElse(null); + } + + @JsonIgnore + public List getSpecialTaxRegimesList() { + return specialTaxRegimesList.orElse(null); + } + + @JsonIgnore + public List< + FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto + > getNationalPortalTaxCalculationRegimeList() { + return nationalPortalTaxCalculationRegimeList.orElse(null); + } + + @JsonIgnore + public String getNationalPortalTaxCalculationRegimeHelp() { + return nationalPortalTaxCalculationRegimeHelp.orElse(null); + } + + @JsonIgnore + public String getMunicipalInscriptionHelp() { + return municipalInscriptionHelp.orElse(null); + } + + @JsonIgnore + public String getSpecialTaxRegimeHelp() { + return specialTaxRegimeHelp.orElse(null); + } + + @JsonIgnore + public String getServiceListItemHelp() { + return serviceListItemHelp.orElse(null); + } + + @JsonIgnore + public String getDigitalCertificatedHelp() { + return digitalCertificatedHelp.orElse(null); + } + + @JsonIgnore + public String getAccessTokenHelp() { + return accessTokenHelp.orElse(null); + } + + @JsonIgnore + public String getMunicipalServiceCodeHelp() { + return municipalServiceCodeHelp.orElse(null); + } + + // Overwrite lombok builder methods + public static class FiscalInfoMunicipalOptionsGetResponseDtoBuilder { + + private JsonNullable authenticationType = + JsonNullable.undefined(); + + @JsonProperty("authenticationType") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder authenticationType( + FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao value + ) { + this.authenticationType = JsonNullable.of(value); + return this; + } + + private JsonNullable supportsCancellation = JsonNullable.of(true); + + @JsonProperty("supportsCancellation") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder supportsCancellation(Boolean value) { + this.supportsCancellation = JsonNullable.of(value); + return this; + } + + private JsonNullable usesSpecialTaxRegimes = JsonNullable.of(true); + + @JsonProperty("usesSpecialTaxRegimes") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder usesSpecialTaxRegimes(Boolean value) { + this.usesSpecialTaxRegimes = JsonNullable.of(value); + return this; + } + + private JsonNullable usesServiceListItem = JsonNullable.of(true); + + @JsonProperty("usesServiceListItem") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder usesServiceListItem(Boolean value) { + this.usesServiceListItem = JsonNullable.of(value); + return this; + } + + private JsonNullable> specialTaxRegimesList = + JsonNullable.undefined(); + + @JsonProperty("specialTaxRegimesList") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegimesList( + List value + ) { + this.specialTaxRegimesList = JsonNullable.of(value); + return this; + } + + private JsonNullable< + List + > nationalPortalTaxCalculationRegimeList = JsonNullable.undefined(); + + @JsonProperty("nationalPortalTaxCalculationRegimeList") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortalTaxCalculationRegimeList( + List value + ) { + this.nationalPortalTaxCalculationRegimeList = JsonNullable.of(value); + return this; + } + + private JsonNullable nationalPortalTaxCalculationRegimeHelp = JsonNullable.undefined(); + + @JsonProperty("nationalPortalTaxCalculationRegimeHelp") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortalTaxCalculationRegimeHelp(String value) { + this.nationalPortalTaxCalculationRegimeHelp = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalInscriptionHelp = JsonNullable.undefined(); + + @JsonProperty("municipalInscriptionHelp") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder municipalInscriptionHelp(String value) { + this.municipalInscriptionHelp = JsonNullable.of(value); + return this; + } + + private JsonNullable specialTaxRegimeHelp = JsonNullable.undefined(); + + @JsonProperty("specialTaxRegimeHelp") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegimeHelp(String value) { + this.specialTaxRegimeHelp = JsonNullable.of(value); + return this; + } + + private JsonNullable serviceListItemHelp = JsonNullable.undefined(); + + @JsonProperty("serviceListItemHelp") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder serviceListItemHelp(String value) { + this.serviceListItemHelp = JsonNullable.of(value); + return this; + } + + private JsonNullable digitalCertificatedHelp = JsonNullable.undefined(); + + @JsonProperty("digitalCertificatedHelp") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder digitalCertificatedHelp(String value) { + this.digitalCertificatedHelp = JsonNullable.of(value); + return this; + } + + private JsonNullable accessTokenHelp = JsonNullable.undefined(); + + @JsonProperty("accessTokenHelp") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder accessTokenHelp(String value) { + this.accessTokenHelp = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalServiceCodeHelp = JsonNullable.undefined(); + + @JsonProperty("municipalServiceCodeHelp") + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder municipalServiceCodeHelp(String value) { + this.municipalServiceCodeHelp = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java new file mode 100644 index 0000000..5682627 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of authentication required at city hall + */ +@Getter +@AllArgsConstructor +public enum FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao { + CERTIFICATE("CERTIFICATE"), + TOKEN("TOKEN"), + USER_AND_PASSWORD("USER_AND_PASSWORD"); + + @JsonValue + private final String value; + + @JsonCreator + public static FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao fromValue(String value) { + return Arrays.stream(FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java new file mode 100644 index 0000000..5367432 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Special taxation regime options + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto { + + /** + * Name of the tax calculation regime + */ + @JsonProperty("label") + private JsonNullable label; + + /** + * Identifier of the tax calculation regime + */ + @JsonProperty("value") + private JsonNullable value; + + @JsonIgnore + public String getLabel() { + return label.orElse(null); + } + + @JsonIgnore + public String getValue() { + return value.orElse(null); + } + + // Overwrite lombok builder methods + public static class FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder { + + private JsonNullable label = JsonNullable.undefined(); + + @JsonProperty("label") + public FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder label(String value) { + this.label = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder value(String value) { + this.value = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java new file mode 100644 index 0000000..d13d49d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Tax calculation regime options + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FiscalInfoMunicipalOptionsSpecialTaxRegimesDto { + + /** + * Name of the special taxation regime + */ + @JsonProperty("label") + private JsonNullable label; + + /** + * Special taxation regime identifier + */ + @JsonProperty("value") + private JsonNullable value; + + @JsonIgnore + public String getLabel() { + return label.orElse(null); + } + + @JsonIgnore + public String getValue() { + return value.orElse(null); + } + + // Overwrite lombok builder methods + public static class FiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder { + + private JsonNullable label = JsonNullable.undefined(); + + @JsonProperty("label") + public FiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder label(String value) { + this.label = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public FiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder value(String value) { + this.value = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoSaveRequestDto.java new file mode 100644 index 0000000..ea7f283 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoSaveRequestDto.java @@ -0,0 +1,328 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FiscalInfoSaveRequestDto { + + /** + * Email used by Asaas to send invoice notifications and alerts + */ + @NonNull + private String email; + + /** + * Indicates whether the company opts for the simple national system + */ + @NonNull + @Builder.Default + private Boolean simplesNacional = true; + + /** + * Company municipal registration + */ + @JsonProperty("municipalInscription") + private JsonNullable municipalInscription; + + /** + * Identifies whether the company is classified as a cultural promoter + */ + @JsonProperty("culturalProjectsPromoter") + private JsonNullable culturalProjectsPromoter; + + /** + * CNAE code + */ + @JsonProperty("cnae") + private JsonNullable cnae; + + /** + * Special taxation regime identifier + */ + @JsonProperty("specialTaxRegime") + private JsonNullable specialTaxRegime; + + /** + * Service list item, as http://www.planalto.gov.br/ccivil_03/leis/LCP/Lcp116.htm + */ + @JsonProperty("serviceListItem") + private JsonNullable serviceListItem; + + /** + * NBS Code (Brazilian Nomenclature of Services). It must be included on the NFS-e (Electronic Service Invoice) when required by the municipal government and/or for import or export services. Check with your local government or your accounting department to determine whether this information is necessary. + */ + @JsonProperty("nbsCode") + private JsonNullable nbsCode; + + /** + * Serial Number used by your company to issue invoices. In most cities the serial number used is '1' or 'E' + */ + @JsonProperty("rpsSerie") + private JsonNullable rpsSerie; + + /** + * RPS number used on the last invoice issued by your company. If your last NF issued has an RPS equal to '100', this field must be filled in with '101'. If you have never issued invoices through your city hall's website, enter '1' in this field + */ + @JsonProperty("rpsNumber") + private JsonNullable rpsNumber; + + /** + * Batch number used on the last invoice issued by your company. If the last lot used in your city hall is '25', this field must be filled in with '26'. Only enter this field if your city hall requires the use of lots + */ + @JsonProperty("loteNumber") + private JsonNullable loteNumber; + + /** + * User to access your city's city hall website + */ + @JsonProperty("username") + private JsonNullable username; + + /** + * Password to access the city hall website + */ + @JsonProperty("password") + private JsonNullable password; + + /** + * Token for access to the city hall website (If access to your city hall website is via Token) + */ + @JsonProperty("accessToken") + private JsonNullable accessToken; + + /** + * File + */ + @JsonProperty("certificateFile") + private JsonNullable certificateFile; + + /** + * Password for the digital certificate sent (If access to your city hall website through a digital certificate) + */ + @JsonProperty("certificatePassword") + private JsonNullable certificatePassword; + + /** + * Identifier of the tax calculation regime. It must only be completed by companies classified as ME or EPP opting for Simples Nacional. Consult the need for this information with your city hall or accounting department. + */ + @JsonProperty("nationalPortalTaxCalculationRegime") + private JsonNullable nationalPortalTaxCalculationRegime; + + @JsonIgnore + public String getMunicipalInscription() { + return municipalInscription.orElse(null); + } + + @JsonIgnore + public Boolean getCulturalProjectsPromoter() { + return culturalProjectsPromoter.orElse(null); + } + + @JsonIgnore + public String getCnae() { + return cnae.orElse(null); + } + + @JsonIgnore + public String getSpecialTaxRegime() { + return specialTaxRegime.orElse(null); + } + + @JsonIgnore + public String getServiceListItem() { + return serviceListItem.orElse(null); + } + + @JsonIgnore + public String getNbsCode() { + return nbsCode.orElse(null); + } + + @JsonIgnore + public String getRpsSerie() { + return rpsSerie.orElse(null); + } + + @JsonIgnore + public Long getRpsNumber() { + return rpsNumber.orElse(null); + } + + @JsonIgnore + public Long getLoteNumber() { + return loteNumber.orElse(null); + } + + @JsonIgnore + public String getUsername() { + return username.orElse(null); + } + + @JsonIgnore + public String getPassword() { + return password.orElse(null); + } + + @JsonIgnore + public String getAccessToken() { + return accessToken.orElse(null); + } + + @JsonIgnore + public byte[] getCertificateFile() { + return certificateFile.orElse(null); + } + + @JsonIgnore + public String getCertificatePassword() { + return certificatePassword.orElse(null); + } + + @JsonIgnore + public String getNationalPortalTaxCalculationRegime() { + return nationalPortalTaxCalculationRegime.orElse(null); + } + + // Overwrite lombok builder methods + public static class FiscalInfoSaveRequestDtoBuilder { + + private JsonNullable municipalInscription = JsonNullable.undefined(); + + @JsonProperty("municipalInscription") + public FiscalInfoSaveRequestDtoBuilder municipalInscription(String value) { + this.municipalInscription = JsonNullable.of(value); + return this; + } + + private JsonNullable culturalProjectsPromoter = JsonNullable.of(true); + + @JsonProperty("culturalProjectsPromoter") + public FiscalInfoSaveRequestDtoBuilder culturalProjectsPromoter(Boolean value) { + this.culturalProjectsPromoter = JsonNullable.of(value); + return this; + } + + private JsonNullable cnae = JsonNullable.undefined(); + + @JsonProperty("cnae") + public FiscalInfoSaveRequestDtoBuilder cnae(String value) { + this.cnae = JsonNullable.of(value); + return this; + } + + private JsonNullable specialTaxRegime = JsonNullable.undefined(); + + @JsonProperty("specialTaxRegime") + public FiscalInfoSaveRequestDtoBuilder specialTaxRegime(String value) { + this.specialTaxRegime = JsonNullable.of(value); + return this; + } + + private JsonNullable serviceListItem = JsonNullable.undefined(); + + @JsonProperty("serviceListItem") + public FiscalInfoSaveRequestDtoBuilder serviceListItem(String value) { + this.serviceListItem = JsonNullable.of(value); + return this; + } + + private JsonNullable nbsCode = JsonNullable.undefined(); + + @JsonProperty("nbsCode") + public FiscalInfoSaveRequestDtoBuilder nbsCode(String value) { + this.nbsCode = JsonNullable.of(value); + return this; + } + + private JsonNullable rpsSerie = JsonNullable.undefined(); + + @JsonProperty("rpsSerie") + public FiscalInfoSaveRequestDtoBuilder rpsSerie(String value) { + this.rpsSerie = JsonNullable.of(value); + return this; + } + + private JsonNullable rpsNumber = JsonNullable.undefined(); + + @JsonProperty("rpsNumber") + public FiscalInfoSaveRequestDtoBuilder rpsNumber(Long value) { + this.rpsNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable loteNumber = JsonNullable.undefined(); + + @JsonProperty("loteNumber") + public FiscalInfoSaveRequestDtoBuilder loteNumber(Long value) { + this.loteNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable username = JsonNullable.undefined(); + + @JsonProperty("username") + public FiscalInfoSaveRequestDtoBuilder username(String value) { + this.username = JsonNullable.of(value); + return this; + } + + private JsonNullable password = JsonNullable.undefined(); + + @JsonProperty("password") + public FiscalInfoSaveRequestDtoBuilder password(String value) { + this.password = JsonNullable.of(value); + return this; + } + + private JsonNullable accessToken = JsonNullable.undefined(); + + @JsonProperty("accessToken") + public FiscalInfoSaveRequestDtoBuilder accessToken(String value) { + this.accessToken = JsonNullable.of(value); + return this; + } + + private JsonNullable certificateFile = JsonNullable.undefined(); + + @JsonProperty("certificateFile") + public FiscalInfoSaveRequestDtoBuilder certificateFile(byte[] value) { + if (value == null) { + throw new IllegalStateException("certificateFile cannot be null"); + } + this.certificateFile = JsonNullable.of(value); + return this; + } + + private JsonNullable certificatePassword = JsonNullable.undefined(); + + @JsonProperty("certificatePassword") + public FiscalInfoSaveRequestDtoBuilder certificatePassword(String value) { + this.certificatePassword = JsonNullable.of(value); + return this; + } + + private JsonNullable nationalPortalTaxCalculationRegime = JsonNullable.undefined(); + + @JsonProperty("nationalPortalTaxCalculationRegime") + public FiscalInfoSaveRequestDtoBuilder nationalPortalTaxCalculationRegime(String value) { + this.nationalPortalTaxCalculationRegime = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalRequestDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalRequestDto.java new file mode 100644 index 0000000..cfb467f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalRequestDto.java @@ -0,0 +1,26 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FiscalInfoUpdateUseNationalPortalRequestDto { + + /** + * Indicates whether the issuing of invoices through the national portal should be enabled or not. + */ + @NonNull + private Boolean enabled; +} diff --git a/src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalResponseDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalResponseDto.java new file mode 100644 index 0000000..fbb903e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalResponseDto.java @@ -0,0 +1,45 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class FiscalInfoUpdateUseNationalPortalResponseDto { + + /** + * Status of the request to change the use status of national portal for issuing invoices. + */ + @JsonProperty("success") + private JsonNullable success; + + @JsonIgnore + public Boolean getSuccess() { + return success.orElse(null); + } + + // Overwrite lombok builder methods + public static class FiscalInfoUpdateUseNationalPortalResponseDtoBuilder { + + private JsonNullable success = JsonNullable.undefined(); + + @JsonProperty("success") + public FiscalInfoUpdateUseNationalPortalResponseDtoBuilder success(Boolean value) { + this.success = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentDeleteResponseDto.java new file mode 100644 index 0000000..40b4b97 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentDeleteResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InstallmentDeleteResponseDto { + + /** + * Indicates whether the installment plan is removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Unique installment identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + // Overwrite lombok builder methods + public static class InstallmentDeleteResponseDtoBuilder { + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public InstallmentDeleteResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public InstallmentDeleteResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/InstallmentGetResponseBillingType.java new file mode 100644 index 0000000..b90b269 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentGetResponseBillingType.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Form of payment + */ +@Getter +@AllArgsConstructor +public enum InstallmentGetResponseBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + DEBIT_CARD("DEBIT_CARD"), + TRANSFER("TRANSFER"), + DEPOSIT("DEPOSIT"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static InstallmentGetResponseBillingType fromValue(String value) { + return Arrays.stream(InstallmentGetResponseBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentGetResponseDto.java new file mode 100644 index 0000000..129eb7e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentGetResponseDto.java @@ -0,0 +1,385 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InstallmentGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique installment identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Installment amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Net installment amount + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Value of each installment + */ + @JsonProperty("paymentValue") + private JsonNullable paymentValue; + + /** + * Number of installments + */ + @JsonProperty("installmentCount") + private JsonNullable installmentCount; + + /** + * Form of payment + */ + @JsonProperty("billingType") + private JsonNullable billingType; + + /** + * Bill settlement date on Asaas + */ + @JsonProperty("paymentDate") + private JsonNullable paymentDate; + + /** + * Description of the installment + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Due date of each installment + */ + @JsonProperty("expirationDay") + private JsonNullable expirationDay; + + /** + * Installment creation date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Unique identifier of the customer to whom the installment belongs + */ + @JsonProperty("customer") + private JsonNullable customer; + + /** + * Unique identifier of the payment link to which the installment belongs + */ + @JsonProperty("paymentLink") + private JsonNullable paymentLink; + + /** + * Unique checkout identifier + */ + @JsonProperty("checkoutSession") + private JsonNullable checkoutSession; + + /** + * URL of proof of confirmation, receipt, reversal or removal. + */ + @JsonProperty("transactionReceiptUrl") + private JsonNullable transactionReceiptUrl; + + @JsonProperty("chargeback") + private JsonNullable chargeback; + + /** + * Credit card information + */ + @JsonProperty("creditCard") + private JsonNullable creditCard; + + /** + * Indicates whether the installment has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Refunds information + */ + @JsonProperty("refunds") + private JsonNullable> refunds; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getPaymentValue() { + return paymentValue.orElse(null); + } + + @JsonIgnore + public Long getInstallmentCount() { + return installmentCount.orElse(null); + } + + @JsonIgnore + public InstallmentGetResponseBillingType getBillingType() { + return billingType.orElse(null); + } + + @JsonIgnore + public String getPaymentDate() { + return paymentDate.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Long getExpirationDay() { + return expirationDay.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public String getCustomer() { + return customer.orElse(null); + } + + @JsonIgnore + public String getPaymentLink() { + return paymentLink.orElse(null); + } + + @JsonIgnore + public String getCheckoutSession() { + return checkoutSession.orElse(null); + } + + @JsonIgnore + public String getTransactionReceiptUrl() { + return transactionReceiptUrl.orElse(null); + } + + @JsonIgnore + public PaymentChargebackResponseDto getChargeback() { + return chargeback.orElse(null); + } + + @JsonIgnore + public PaymentSaveWithCreditCardCreditCardDto getCreditCard() { + return creditCard.orElse(null); + } + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public List getRefunds() { + return refunds.orElse(null); + } + + // Overwrite lombok builder methods + public static class InstallmentGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public InstallmentGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public InstallmentGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public InstallmentGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public InstallmentGetResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentValue = JsonNullable.undefined(); + + @JsonProperty("paymentValue") + public InstallmentGetResponseDtoBuilder paymentValue(Double value) { + this.paymentValue = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentCount = JsonNullable.undefined(); + + @JsonProperty("installmentCount") + public InstallmentGetResponseDtoBuilder installmentCount(Long value) { + this.installmentCount = JsonNullable.of(value); + return this; + } + + private JsonNullable billingType = JsonNullable.undefined(); + + @JsonProperty("billingType") + public InstallmentGetResponseDtoBuilder billingType(InstallmentGetResponseBillingType value) { + this.billingType = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentDate = JsonNullable.undefined(); + + @JsonProperty("paymentDate") + public InstallmentGetResponseDtoBuilder paymentDate(String value) { + this.paymentDate = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public InstallmentGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable expirationDay = JsonNullable.undefined(); + + @JsonProperty("expirationDay") + public InstallmentGetResponseDtoBuilder expirationDay(Long value) { + this.expirationDay = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public InstallmentGetResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable customer = JsonNullable.undefined(); + + @JsonProperty("customer") + public InstallmentGetResponseDtoBuilder customer(String value) { + this.customer = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentLink = JsonNullable.undefined(); + + @JsonProperty("paymentLink") + public InstallmentGetResponseDtoBuilder paymentLink(String value) { + this.paymentLink = JsonNullable.of(value); + return this; + } + + private JsonNullable checkoutSession = JsonNullable.undefined(); + + @JsonProperty("checkoutSession") + public InstallmentGetResponseDtoBuilder checkoutSession(String value) { + this.checkoutSession = JsonNullable.of(value); + return this; + } + + private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); + + @JsonProperty("transactionReceiptUrl") + public InstallmentGetResponseDtoBuilder transactionReceiptUrl(String value) { + this.transactionReceiptUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable chargeback = JsonNullable.undefined(); + + @JsonProperty("chargeback") + public InstallmentGetResponseDtoBuilder chargeback(PaymentChargebackResponseDto value) { + this.chargeback = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCard = JsonNullable.undefined(); + + @JsonProperty("creditCard") + public InstallmentGetResponseDtoBuilder creditCard(PaymentSaveWithCreditCardCreditCardDto value) { + this.creditCard = JsonNullable.of(value); + return this; + } + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public InstallmentGetResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable> refunds = JsonNullable.undefined(); + + @JsonProperty("refunds") + public InstallmentGetResponseDtoBuilder refunds(List value) { + this.refunds = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentListPaymentsRequestPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/InstallmentListPaymentsRequestPaymentStatus.java new file mode 100644 index 0000000..c9ff49a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentListPaymentsRequestPaymentStatus.java @@ -0,0 +1,42 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by payment status + */ +@Getter +@AllArgsConstructor +public enum InstallmentListPaymentsRequestPaymentStatus { + PENDING("PENDING"), + RECEIVED("RECEIVED"), + CONFIRMED("CONFIRMED"), + OVERDUE("OVERDUE"), + REFUNDED("REFUNDED"), + RECEIVED_IN_CASH("RECEIVED_IN_CASH"), + REFUND_REQUESTED("REFUND_REQUESTED"), + REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), + CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), + CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), + AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), + DUNNING_REQUESTED("DUNNING_REQUESTED"), + DUNNING_RECEIVED("DUNNING_RECEIVED"), + AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); + + @JsonValue + private final String value; + + @JsonCreator + public static InstallmentListPaymentsRequestPaymentStatus fromValue(String value) { + return Arrays.stream(InstallmentListPaymentsRequestPaymentStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentListResponseDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentListResponseDto.java new file mode 100644 index 0000000..fa5d292 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InstallmentListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class InstallmentListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public InstallmentListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public InstallmentListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public InstallmentListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public InstallmentListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public InstallmentListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public InstallmentListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentPaymentBookResponseDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentPaymentBookResponseDto.java new file mode 100644 index 0000000..bba8a34 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentPaymentBookResponseDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InstallmentPaymentBookResponseDto { + + /** + * File + */ + @JsonProperty("file") + private JsonNullable file; + + /** + * File name + */ + @JsonProperty("fileName") + private JsonNullable fileName; + + @JsonIgnore + public byte[] getFile() { + return file.orElse(null); + } + + @JsonIgnore + public String getFileName() { + return fileName.orElse(null); + } + + // Overwrite lombok builder methods + public static class InstallmentPaymentBookResponseDtoBuilder { + + private JsonNullable file = JsonNullable.undefined(); + + @JsonProperty("file") + public InstallmentPaymentBookResponseDtoBuilder file(byte[] value) { + if (value == null) { + throw new IllegalStateException("file cannot be null"); + } + this.file = JsonNullable.of(value); + return this; + } + + private JsonNullable fileName = JsonNullable.undefined(); + + @JsonProperty("fileName") + public InstallmentPaymentBookResponseDtoBuilder fileName(String value) { + this.fileName = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentRefundResponseDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentRefundResponseDto.java new file mode 100644 index 0000000..5dea015 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentRefundResponseDto.java @@ -0,0 +1,201 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Refunds information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InstallmentRefundResponseDto { + + /** + * Refund creation date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Refund status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Refund value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * (Pix only) Unique identifier of the Pix transaction at the Central Bank + */ + @JsonProperty("endToEndIdentifier") + private JsonNullable endToEndIdentifier; + + /** + * Description of the refund + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * (Pix only) Refund effective date + */ + @JsonProperty("effectiveDate") + private JsonNullable effectiveDate; + + /** + * Transaction receipt link + */ + @JsonProperty("transactionReceiptUrl") + private JsonNullable transactionReceiptUrl; + + /** + * Refunded Splits, if any + */ + @JsonProperty("refundedSplits") + private JsonNullable> refundedSplits; + + /** + * Unique payment identifier in Asaas + */ + @JsonProperty("paymentId") + private JsonNullable paymentId; + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public InstallmentRefundResponsePaymentRefundStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getEndToEndIdentifier() { + return endToEndIdentifier.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getEffectiveDate() { + return effectiveDate.orElse(null); + } + + @JsonIgnore + public String getTransactionReceiptUrl() { + return transactionReceiptUrl.orElse(null); + } + + @JsonIgnore + public List getRefundedSplits() { + return refundedSplits.orElse(null); + } + + @JsonIgnore + public String getPaymentId() { + return paymentId.orElse(null); + } + + // Overwrite lombok builder methods + public static class InstallmentRefundResponseDtoBuilder { + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public InstallmentRefundResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public InstallmentRefundResponseDtoBuilder status(InstallmentRefundResponsePaymentRefundStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public InstallmentRefundResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable endToEndIdentifier = JsonNullable.undefined(); + + @JsonProperty("endToEndIdentifier") + public InstallmentRefundResponseDtoBuilder endToEndIdentifier(String value) { + this.endToEndIdentifier = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public InstallmentRefundResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable effectiveDate = JsonNullable.undefined(); + + @JsonProperty("effectiveDate") + public InstallmentRefundResponseDtoBuilder effectiveDate(String value) { + this.effectiveDate = JsonNullable.of(value); + return this; + } + + private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); + + @JsonProperty("transactionReceiptUrl") + public InstallmentRefundResponseDtoBuilder transactionReceiptUrl(String value) { + this.transactionReceiptUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable> refundedSplits = JsonNullable.undefined(); + + @JsonProperty("refundedSplits") + public InstallmentRefundResponseDtoBuilder refundedSplits(List value) { + this.refundedSplits = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentId = JsonNullable.undefined(); + + @JsonProperty("paymentId") + public InstallmentRefundResponseDtoBuilder paymentId(String value) { + this.paymentId = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentRefundResponsePaymentRefundStatus.java b/src/main/java/com/asaas/apisdk/models/InstallmentRefundResponsePaymentRefundStatus.java new file mode 100644 index 0000000..7fb589e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentRefundResponsePaymentRefundStatus.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Refund status + */ +@Getter +@AllArgsConstructor +public enum InstallmentRefundResponsePaymentRefundStatus { + PENDING("PENDING"), + AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), + AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION("AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION"), + CANCELLED("CANCELLED"), + DONE("DONE"); + + @JsonValue + private final String value; + + @JsonCreator + public static InstallmentRefundResponsePaymentRefundStatus fromValue(String value) { + return Arrays.stream(InstallmentRefundResponsePaymentRefundStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestBillingType.java new file mode 100644 index 0000000..05a4675 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment billing type + */ +@Getter +@AllArgsConstructor +public enum InstallmentSaveRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static InstallmentSaveRequestBillingType fromValue(String value) { + return Arrays.stream(InstallmentSaveRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestDto.java new file mode 100644 index 0000000..66b308e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestDto.java @@ -0,0 +1,229 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InstallmentSaveRequestDto { + + /** + * Number of installments + */ + @NonNull + private Long installmentCount; + + /** + * Unique customer identifier in Asaas + */ + @NonNull + private String customer; + + /** + * Value of each installment + */ + @NonNull + private Double value; + + /** + * Payment billing type + */ + @NonNull + private InstallmentSaveRequestBillingType billingType; + + /** + * Due date of the first installment + */ + @NonNull + private String dueDate; + + /** + * Total installment amount + */ + @JsonProperty("totalValue") + private JsonNullable totalValue; + + /** + * Installment description (max. 500 characters) + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Define whether the payment will be sent via post + */ + @JsonProperty("postalService") + private JsonNullable postalService; + + /** + * Days after registration cancellation deadline (only for bank slip) + */ + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + private JsonNullable daysAfterDueDateToRegistrationCancellation; + + /** + * Free search field + */ + @JsonProperty("paymentExternalReference") + private JsonNullable paymentExternalReference; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Split Settings + */ + @JsonProperty("splits") + private JsonNullable> splits; + + @JsonIgnore + public Double getTotalValue() { + return totalValue.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Boolean getPostalService() { + return postalService.orElse(null); + } + + @JsonIgnore + public Long getDaysAfterDueDateToRegistrationCancellation() { + return daysAfterDueDateToRegistrationCancellation.orElse(null); + } + + @JsonIgnore + public String getPaymentExternalReference() { + return paymentExternalReference.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentInterestRequestDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public PaymentFineRequestDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public List getSplits() { + return splits.orElse(null); + } + + // Overwrite lombok builder methods + public static class InstallmentSaveRequestDtoBuilder { + + private JsonNullable totalValue = JsonNullable.undefined(); + + @JsonProperty("totalValue") + public InstallmentSaveRequestDtoBuilder totalValue(Double value) { + this.totalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public InstallmentSaveRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable postalService = JsonNullable.undefined(); + + @JsonProperty("postalService") + public InstallmentSaveRequestDtoBuilder postalService(Boolean value) { + this.postalService = JsonNullable.of(value); + return this; + } + + private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); + + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + public InstallmentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentExternalReference = JsonNullable.undefined(); + + @JsonProperty("paymentExternalReference") + public InstallmentSaveRequestDtoBuilder paymentExternalReference(String value) { + this.paymentExternalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public InstallmentSaveRequestDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public InstallmentSaveRequestDtoBuilder interest(PaymentInterestRequestDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public InstallmentSaveRequestDtoBuilder fine(PaymentFineRequestDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable> splits = JsonNullable.undefined(); + + @JsonProperty("splits") + public InstallmentSaveRequestDtoBuilder splits(List value) { + this.splits = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestBillingType.java new file mode 100644 index 0000000..d010fc5 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment billing type + */ +@Getter +@AllArgsConstructor +public enum InstallmentSaveWithCreditCardRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static InstallmentSaveWithCreditCardRequestBillingType fromValue(String value) { + return Arrays.stream(InstallmentSaveWithCreditCardRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestDto.java new file mode 100644 index 0000000..a5e759e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestDto.java @@ -0,0 +1,285 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InstallmentSaveWithCreditCardRequestDto { + + /** + * Number of installments + */ + @NonNull + private Long installmentCount; + + /** + * Unique customer identifier in Asaas + */ + @NonNull + private String customer; + + /** + * Value of each installment + */ + @NonNull + private Double value; + + /** + * Payment billing type + */ + @NonNull + private InstallmentSaveWithCreditCardRequestBillingType billingType; + + /** + * Due date of the first installment + */ + @NonNull + private String dueDate; + + /** + * Credit card information + */ + @NonNull + private CreditCardRequestDto creditCard; + + /** + * Credit card holder information + */ + @NonNull + private CreditCardHolderInfoRequestDto creditCardHolderInfo; + + /** + * IP from where the customer is making the purchase. Your server's IP must not be entered. + */ + @NonNull + private String remoteIp; + + /** + * Total installment amount + */ + @JsonProperty("totalValue") + private JsonNullable totalValue; + + /** + * Installment description (max. 500 characters) + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Define whether the payment will be sent via post + */ + @JsonProperty("postalService") + private JsonNullable postalService; + + /** + * Days after registration cancellation deadline (only for bank slip) + */ + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + private JsonNullable daysAfterDueDateToRegistrationCancellation; + + /** + * Free search field + */ + @JsonProperty("paymentExternalReference") + private JsonNullable paymentExternalReference; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Split Settings + */ + @JsonProperty("splits") + private JsonNullable> splits; + + /** + * Credit card token for using the credit card tokenization functionality. If informed, the fields creditCard and creditCardHolderInfo are not mandatory. + */ + @JsonProperty("creditCardToken") + private JsonNullable creditCardToken; + + /** + * Carry out only the Pre-Authorization of the installment + */ + @JsonProperty("authorizeOnly") + private JsonNullable authorizeOnly; + + @JsonIgnore + public Double getTotalValue() { + return totalValue.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Boolean getPostalService() { + return postalService.orElse(null); + } + + @JsonIgnore + public Long getDaysAfterDueDateToRegistrationCancellation() { + return daysAfterDueDateToRegistrationCancellation.orElse(null); + } + + @JsonIgnore + public String getPaymentExternalReference() { + return paymentExternalReference.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentInterestRequestDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public PaymentFineRequestDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public List getSplits() { + return splits.orElse(null); + } + + @JsonIgnore + public String getCreditCardToken() { + return creditCardToken.orElse(null); + } + + @JsonIgnore + public Boolean getAuthorizeOnly() { + return authorizeOnly.orElse(null); + } + + // Overwrite lombok builder methods + public static class InstallmentSaveWithCreditCardRequestDtoBuilder { + + private JsonNullable totalValue = JsonNullable.undefined(); + + @JsonProperty("totalValue") + public InstallmentSaveWithCreditCardRequestDtoBuilder totalValue(Double value) { + this.totalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public InstallmentSaveWithCreditCardRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable postalService = JsonNullable.undefined(); + + @JsonProperty("postalService") + public InstallmentSaveWithCreditCardRequestDtoBuilder postalService(Boolean value) { + this.postalService = JsonNullable.of(value); + return this; + } + + private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); + + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + public InstallmentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentExternalReference = JsonNullable.undefined(); + + @JsonProperty("paymentExternalReference") + public InstallmentSaveWithCreditCardRequestDtoBuilder paymentExternalReference(String value) { + this.paymentExternalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public InstallmentSaveWithCreditCardRequestDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public InstallmentSaveWithCreditCardRequestDtoBuilder interest(PaymentInterestRequestDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public InstallmentSaveWithCreditCardRequestDtoBuilder fine(PaymentFineRequestDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable> splits = JsonNullable.undefined(); + + @JsonProperty("splits") + public InstallmentSaveWithCreditCardRequestDtoBuilder splits(List value) { + this.splits = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCardToken = JsonNullable.undefined(); + + @JsonProperty("creditCardToken") + public InstallmentSaveWithCreditCardRequestDtoBuilder creditCardToken(String value) { + this.creditCardToken = JsonNullable.of(value); + return this; + } + + private JsonNullable authorizeOnly = JsonNullable.undefined(); + + @JsonProperty("authorizeOnly") + public InstallmentSaveWithCreditCardRequestDtoBuilder authorizeOnly(Boolean value) { + this.authorizeOnly = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponseDto.java new file mode 100644 index 0000000..152c2fb --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponseDto.java @@ -0,0 +1,222 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Split array + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InstallmentSplitGetResponseDto { + + /** + * Unique split identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Asaas wallet identifier that will be transferred + */ + @JsonProperty("walletId") + private JsonNullable walletId; + + /** + * Fixed amount to be transferred to the account when the charge is received + */ + @JsonProperty("fixedValue") + private JsonNullable fixedValue; + + /** + * Percentage of the net value of the charge to be transferred when received + */ + @JsonProperty("percentualValue") + private JsonNullable percentualValue; + + /** + * Amount that will be split relative to the total amount that will be paid + */ + @JsonProperty("totalValue") + private JsonNullable totalValue; + + /** + * Reason for canceling the split + */ + @JsonProperty("cancellationReason") + private JsonNullable cancellationReason; + + /** + * Split status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Unique identifier of split in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Split description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Installment to which the split is linked + */ + @JsonProperty("installmentNumber") + private JsonNullable installmentNumber; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getWalletId() { + return walletId.orElse(null); + } + + @JsonIgnore + public Double getFixedValue() { + return fixedValue.orElse(null); + } + + @JsonIgnore + public Double getPercentualValue() { + return percentualValue.orElse(null); + } + + @JsonIgnore + public Double getTotalValue() { + return totalValue.orElse(null); + } + + @JsonIgnore + public InstallmentSplitGetResponsePaymentSplitCancellationReason getCancellationReason() { + return cancellationReason.orElse(null); + } + + @JsonIgnore + public InstallmentSplitGetResponsePaymentSplitStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Long getInstallmentNumber() { + return installmentNumber.orElse(null); + } + + // Overwrite lombok builder methods + public static class InstallmentSplitGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public InstallmentSplitGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable walletId = JsonNullable.undefined(); + + @JsonProperty("walletId") + public InstallmentSplitGetResponseDtoBuilder walletId(String value) { + this.walletId = JsonNullable.of(value); + return this; + } + + private JsonNullable fixedValue = JsonNullable.undefined(); + + @JsonProperty("fixedValue") + public InstallmentSplitGetResponseDtoBuilder fixedValue(Double value) { + this.fixedValue = JsonNullable.of(value); + return this; + } + + private JsonNullable percentualValue = JsonNullable.undefined(); + + @JsonProperty("percentualValue") + public InstallmentSplitGetResponseDtoBuilder percentualValue(Double value) { + this.percentualValue = JsonNullable.of(value); + return this; + } + + private JsonNullable totalValue = JsonNullable.undefined(); + + @JsonProperty("totalValue") + public InstallmentSplitGetResponseDtoBuilder totalValue(Double value) { + this.totalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable cancellationReason = + JsonNullable.undefined(); + + @JsonProperty("cancellationReason") + public InstallmentSplitGetResponseDtoBuilder cancellationReason( + InstallmentSplitGetResponsePaymentSplitCancellationReason value + ) { + this.cancellationReason = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public InstallmentSplitGetResponseDtoBuilder status(InstallmentSplitGetResponsePaymentSplitStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public InstallmentSplitGetResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public InstallmentSplitGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentNumber = JsonNullable.undefined(); + + @JsonProperty("installmentNumber") + public InstallmentSplitGetResponseDtoBuilder installmentNumber(Long value) { + this.installmentNumber = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.java b/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.java new file mode 100644 index 0000000..d1ee416 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Reason for canceling the split + */ +@Getter +@AllArgsConstructor +public enum InstallmentSplitGetResponsePaymentSplitCancellationReason { + PAYMENT_DELETED("PAYMENT_DELETED"), + PAYMENT_OVERDUE("PAYMENT_OVERDUE"), + PAYMENT_RECEIVED_IN_CASH("PAYMENT_RECEIVED_IN_CASH"), + PAYMENT_REFUNDED("PAYMENT_REFUNDED"), + VALUE_DIVERGENCE_BLOCK("VALUE_DIVERGENCE_BLOCK"), + WALLET_UNABLE_TO_RECEIVE("WALLET_UNABLE_TO_RECEIVE"); + + @JsonValue + private final String value; + + @JsonCreator + public static InstallmentSplitGetResponsePaymentSplitCancellationReason fromValue(String value) { + return Arrays.stream(InstallmentSplitGetResponsePaymentSplitCancellationReason.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitStatus.java new file mode 100644 index 0000000..4c078f1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitStatus.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Split status + */ +@Getter +@AllArgsConstructor +public enum InstallmentSplitGetResponsePaymentSplitStatus { + PENDING("PENDING"), + AWAITING_CREDIT("AWAITING_CREDIT"), + CANCELLED("CANCELLED"), + DONE("DONE"), + REFUNDED("REFUNDED"), + BLOCKED_BY_VALUE_DIVERGENCE("BLOCKED_BY_VALUE_DIVERGENCE"); + + @JsonValue + private final String value; + + @JsonCreator + public static InstallmentSplitGetResponsePaymentSplitStatus fromValue(String value) { + return Arrays.stream(InstallmentSplitGetResponsePaymentSplitStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentSplitRequestDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentSplitRequestDto.java new file mode 100644 index 0000000..5c54f5c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSplitRequestDto.java @@ -0,0 +1,150 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Split Settings + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InstallmentSplitRequestDto { + + /** + * Asaas wallet identifier that will be transferred + */ + @NonNull + private String walletId; + + /** + * Fixed amount to be transferred to the account when the payment is received + */ + @JsonProperty("fixedValue") + private JsonNullable fixedValue; + + /** + * Percentage of the net value of the charge to be transferred when received + */ + @JsonProperty("percentualValue") + private JsonNullable percentualValue; + + /** + * (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. + */ + @JsonProperty("totalFixedValue") + private JsonNullable totalFixedValue; + + /** + * Split identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Split description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Installment number to which the split will be linked. Cannot be provided along with the 'totalFixedValue' field + */ + @JsonProperty("installmentNumber") + private JsonNullable installmentNumber; + + @JsonIgnore + public Double getFixedValue() { + return fixedValue.orElse(null); + } + + @JsonIgnore + public Double getPercentualValue() { + return percentualValue.orElse(null); + } + + @JsonIgnore + public Double getTotalFixedValue() { + return totalFixedValue.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Long getInstallmentNumber() { + return installmentNumber.orElse(null); + } + + // Overwrite lombok builder methods + public static class InstallmentSplitRequestDtoBuilder { + + private JsonNullable fixedValue = JsonNullable.undefined(); + + @JsonProperty("fixedValue") + public InstallmentSplitRequestDtoBuilder fixedValue(Double value) { + this.fixedValue = JsonNullable.of(value); + return this; + } + + private JsonNullable percentualValue = JsonNullable.undefined(); + + @JsonProperty("percentualValue") + public InstallmentSplitRequestDtoBuilder percentualValue(Double value) { + this.percentualValue = JsonNullable.of(value); + return this; + } + + private JsonNullable totalFixedValue = JsonNullable.undefined(); + + @JsonProperty("totalFixedValue") + public InstallmentSplitRequestDtoBuilder totalFixedValue(Double value) { + this.totalFixedValue = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public InstallmentSplitRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public InstallmentSplitRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentNumber = JsonNullable.undefined(); + + @JsonProperty("installmentNumber") + public InstallmentSplitRequestDtoBuilder installmentNumber(Long value) { + this.installmentNumber = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitRequestDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitRequestDto.java new file mode 100644 index 0000000..b5a5666 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitRequestDto.java @@ -0,0 +1,46 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InstallmentUpdateSplitRequestDto { + + /** + * Split data to update + */ + @JsonProperty("splits") + private JsonNullable> splits; + + @JsonIgnore + public List getSplits() { + return splits.orElse(null); + } + + // Overwrite lombok builder methods + public static class InstallmentUpdateSplitRequestDtoBuilder { + + private JsonNullable> splits = JsonNullable.undefined(); + + @JsonProperty("splits") + public InstallmentUpdateSplitRequestDtoBuilder splits(List value) { + this.splits = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitResponseDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitResponseDto.java new file mode 100644 index 0000000..57afdaa --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitResponseDto.java @@ -0,0 +1,46 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InstallmentUpdateSplitResponseDto { + + /** + * Split array + */ + @JsonProperty("splits") + private JsonNullable> splits; + + @JsonIgnore + public List getSplits() { + return splits.orElse(null); + } + + // Overwrite lombok builder methods + public static class InstallmentUpdateSplitResponseDtoBuilder { + + private JsonNullable> splits = JsonNullable.undefined(); + + @JsonProperty("splits") + public InstallmentUpdateSplitResponseDtoBuilder splits(List value) { + this.splits = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InvoiceCancelRequestDto.java b/src/main/java/com/asaas/apisdk/models/InvoiceCancelRequestDto.java new file mode 100644 index 0000000..c56e094 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InvoiceCancelRequestDto.java @@ -0,0 +1,45 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InvoiceCancelRequestDto { + + /** + * Cancel invoice only on Asaas + */ + @JsonProperty("cancelOnlyOnAsaas") + private JsonNullable cancelOnlyOnAsaas; + + @JsonIgnore + public Boolean getCancelOnlyOnAsaas() { + return cancelOnlyOnAsaas.orElse(null); + } + + // Overwrite lombok builder methods + public static class InvoiceCancelRequestDtoBuilder { + + private JsonNullable cancelOnlyOnAsaas = JsonNullable.undefined(); + + @JsonProperty("cancelOnlyOnAsaas") + public InvoiceCancelRequestDtoBuilder cancelOnlyOnAsaas(Boolean value) { + this.cancelOnlyOnAsaas = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDto.java new file mode 100644 index 0000000..4e6aea6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDto.java @@ -0,0 +1,501 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InvoiceGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique invoice identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Invoice status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Unique customer identifier + */ + @JsonProperty("customer") + private JsonNullable customer; + + /** + * Unique payment identifier in Asaas + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * Unique installment identifier in Asaas + */ + @JsonProperty("installment") + private JsonNullable installment; + + /** + * Invoice type + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Description of the current status of the invoice + */ + @JsonProperty("statusDescription") + private JsonNullable statusDescription; + + /** + * Description of invoice services + */ + @JsonProperty("serviceDescription") + private JsonNullable serviceDescription; + + /** + * Link to pdf file of the invoice issued + */ + @JsonProperty("pdfUrl") + private JsonNullable pdfUrl; + + /** + * Link to xml file of the issued invoice + */ + @JsonProperty("xmlUrl") + private JsonNullable xmlUrl; + + /** + * Invoice series + */ + @JsonProperty("rpsSerie") + private JsonNullable rpsSerie; + + /** + * RPS converted to invoice + */ + @JsonProperty("rpsNumber") + private JsonNullable rpsNumber; + + /** + * Invoice number + */ + @JsonProperty("number") + private JsonNullable number; + + /** + * Verification code + */ + @JsonProperty("validationCode") + private JsonNullable validationCode; + + /** + * Total value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. + */ + @JsonProperty("deductions") + private JsonNullable deductions; + + /** + * Invoice issuance date + */ + @JsonProperty("effectiveDate") + private JsonNullable effectiveDate; + + /** + * Additional observations + */ + @JsonProperty("observations") + private JsonNullable observations; + + /** + * Estimated tax invoice + */ + @JsonProperty("estimatedTaxesDescription") + private JsonNullable estimatedTaxesDescription; + + /** + * Invoice identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Invoice taxes + */ + @JsonProperty("taxes") + private JsonNullable taxes; + + /** + * Unique municipal service identifier + */ + @JsonProperty("municipalServiceId") + private JsonNullable municipalServiceId; + + /** + * Municipal Service Code + */ + @JsonProperty("municipalServiceCode") + private JsonNullable municipalServiceCode; + + /** + * Name of municipal service + */ + @JsonProperty("municipalServiceName") + private JsonNullable municipalServiceName; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public InvoiceGetResponseInvoiceStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getCustomer() { + return customer.orElse(null); + } + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public String getInstallment() { + return installment.orElse(null); + } + + @JsonIgnore + public InvoiceGetResponseDtoType getType() { + return type.orElse(null); + } + + @JsonIgnore + public String getStatusDescription() { + return statusDescription.orElse(null); + } + + @JsonIgnore + public String getServiceDescription() { + return serviceDescription.orElse(null); + } + + @JsonIgnore + public String getPdfUrl() { + return pdfUrl.orElse(null); + } + + @JsonIgnore + public String getXmlUrl() { + return xmlUrl.orElse(null); + } + + @JsonIgnore + public String getRpsSerie() { + return rpsSerie.orElse(null); + } + + @JsonIgnore + public String getRpsNumber() { + return rpsNumber.orElse(null); + } + + @JsonIgnore + public String getNumber() { + return number.orElse(null); + } + + @JsonIgnore + public String getValidationCode() { + return validationCode.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getDeductions() { + return deductions.orElse(null); + } + + @JsonIgnore + public String getEffectiveDate() { + return effectiveDate.orElse(null); + } + + @JsonIgnore + public String getObservations() { + return observations.orElse(null); + } + + @JsonIgnore + public String getEstimatedTaxesDescription() { + return estimatedTaxesDescription.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public InvoiceTaxesDto getTaxes() { + return taxes.orElse(null); + } + + @JsonIgnore + public String getMunicipalServiceId() { + return municipalServiceId.orElse(null); + } + + @JsonIgnore + public String getMunicipalServiceCode() { + return municipalServiceCode.orElse(null); + } + + @JsonIgnore + public String getMunicipalServiceName() { + return municipalServiceName.orElse(null); + } + + // Overwrite lombok builder methods + public static class InvoiceGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public InvoiceGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public InvoiceGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public InvoiceGetResponseDtoBuilder status(InvoiceGetResponseInvoiceStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable customer = JsonNullable.undefined(); + + @JsonProperty("customer") + public InvoiceGetResponseDtoBuilder customer(String value) { + this.customer = JsonNullable.of(value); + return this; + } + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public InvoiceGetResponseDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public InvoiceGetResponseDtoBuilder installment(String value) { + this.installment = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public InvoiceGetResponseDtoBuilder type(InvoiceGetResponseDtoType value) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable statusDescription = JsonNullable.undefined(); + + @JsonProperty("statusDescription") + public InvoiceGetResponseDtoBuilder statusDescription(String value) { + this.statusDescription = JsonNullable.of(value); + return this; + } + + private JsonNullable serviceDescription = JsonNullable.undefined(); + + @JsonProperty("serviceDescription") + public InvoiceGetResponseDtoBuilder serviceDescription(String value) { + this.serviceDescription = JsonNullable.of(value); + return this; + } + + private JsonNullable pdfUrl = JsonNullable.undefined(); + + @JsonProperty("pdfUrl") + public InvoiceGetResponseDtoBuilder pdfUrl(String value) { + this.pdfUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable xmlUrl = JsonNullable.undefined(); + + @JsonProperty("xmlUrl") + public InvoiceGetResponseDtoBuilder xmlUrl(String value) { + this.xmlUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable rpsSerie = JsonNullable.undefined(); + + @JsonProperty("rpsSerie") + public InvoiceGetResponseDtoBuilder rpsSerie(String value) { + this.rpsSerie = JsonNullable.of(value); + return this; + } + + private JsonNullable rpsNumber = JsonNullable.undefined(); + + @JsonProperty("rpsNumber") + public InvoiceGetResponseDtoBuilder rpsNumber(String value) { + this.rpsNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable number = JsonNullable.undefined(); + + @JsonProperty("number") + public InvoiceGetResponseDtoBuilder number(String value) { + this.number = JsonNullable.of(value); + return this; + } + + private JsonNullable validationCode = JsonNullable.undefined(); + + @JsonProperty("validationCode") + public InvoiceGetResponseDtoBuilder validationCode(String value) { + this.validationCode = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public InvoiceGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable deductions = JsonNullable.undefined(); + + @JsonProperty("deductions") + public InvoiceGetResponseDtoBuilder deductions(Double value) { + this.deductions = JsonNullable.of(value); + return this; + } + + private JsonNullable effectiveDate = JsonNullable.undefined(); + + @JsonProperty("effectiveDate") + public InvoiceGetResponseDtoBuilder effectiveDate(String value) { + this.effectiveDate = JsonNullable.of(value); + return this; + } + + private JsonNullable observations = JsonNullable.undefined(); + + @JsonProperty("observations") + public InvoiceGetResponseDtoBuilder observations(String value) { + this.observations = JsonNullable.of(value); + return this; + } + + private JsonNullable estimatedTaxesDescription = JsonNullable.undefined(); + + @JsonProperty("estimatedTaxesDescription") + public InvoiceGetResponseDtoBuilder estimatedTaxesDescription(String value) { + this.estimatedTaxesDescription = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public InvoiceGetResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable taxes = JsonNullable.undefined(); + + @JsonProperty("taxes") + public InvoiceGetResponseDtoBuilder taxes(InvoiceTaxesDto value) { + this.taxes = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalServiceId = JsonNullable.undefined(); + + @JsonProperty("municipalServiceId") + public InvoiceGetResponseDtoBuilder municipalServiceId(String value) { + this.municipalServiceId = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalServiceCode = JsonNullable.undefined(); + + @JsonProperty("municipalServiceCode") + public InvoiceGetResponseDtoBuilder municipalServiceCode(String value) { + this.municipalServiceCode = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalServiceName = JsonNullable.undefined(); + + @JsonProperty("municipalServiceName") + public InvoiceGetResponseDtoBuilder municipalServiceName(String value) { + this.municipalServiceName = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDtoType.java b/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDtoType.java new file mode 100644 index 0000000..08d034f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDtoType.java @@ -0,0 +1,29 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Invoice type + */ +@Getter +@AllArgsConstructor +public enum InvoiceGetResponseDtoType { + NFS_E("NFS-e"); + + @JsonValue + private final String value; + + @JsonCreator + public static InvoiceGetResponseDtoType fromValue(String value) { + return Arrays.stream(InvoiceGetResponseDtoType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseInvoiceStatus.java b/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseInvoiceStatus.java new file mode 100644 index 0000000..71c3abe --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseInvoiceStatus.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Invoice status + */ +@Getter +@AllArgsConstructor +public enum InvoiceGetResponseInvoiceStatus { + SCHEDULED("SCHEDULED"), + AUTHORIZED("AUTHORIZED"), + PROCESSING_CANCELLATION("PROCESSING_CANCELLATION"), + CANCELED("CANCELED"), + CANCELLATION_DENIED("CANCELLATION_DENIED"), + ERROR("ERROR"); + + @JsonValue + private final String value; + + @JsonCreator + public static InvoiceGetResponseInvoiceStatus fromValue(String value) { + return Arrays.stream(InvoiceGetResponseInvoiceStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InvoiceListRequestInvoiceStatus.java b/src/main/java/com/asaas/apisdk/models/InvoiceListRequestInvoiceStatus.java new file mode 100644 index 0000000..f4d73c0 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InvoiceListRequestInvoiceStatus.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by situation + */ +@Getter +@AllArgsConstructor +public enum InvoiceListRequestInvoiceStatus { + SCHEDULED("SCHEDULED"), + AUTHORIZED("AUTHORIZED"), + PROCESSING_CANCELLATION("PROCESSING_CANCELLATION"), + CANCELED("CANCELED"), + CANCELLATION_DENIED("CANCELLATION_DENIED"), + ERROR("ERROR"); + + @JsonValue + private final String value; + + @JsonCreator + public static InvoiceListRequestInvoiceStatus fromValue(String value) { + return Arrays.stream(InvoiceListRequestInvoiceStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InvoiceListResponseDto.java b/src/main/java/com/asaas/apisdk/models/InvoiceListResponseDto.java new file mode 100644 index 0000000..55a7c66 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InvoiceListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InvoiceListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class InvoiceListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public InvoiceListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public InvoiceListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public InvoiceListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public InvoiceListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public InvoiceListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public InvoiceListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InvoiceSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/InvoiceSaveRequestDto.java new file mode 100644 index 0000000..15224d6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InvoiceSaveRequestDto.java @@ -0,0 +1,236 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.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; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InvoiceSaveRequestDto { + + /** + * Description of invoice services + */ + @NonNull + private String serviceDescription; + + /** + * Additional observations + */ + @NonNull + private String observations; + + /** + * Total value + */ + @NonNull + private Double value; + + /** + * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. + */ + @NonNull + private Double deductions; + + /** + * Invoice issuance date + */ + @NonNull + private String effectiveDate; + + /** + * Name of the municipal service. If not provided, the municipalServiceCode attribute will be used as the name for identification. + */ + @NonNull + private String municipalServiceName; + + /** + * Invoice taxes + */ + @JsonInclude(JsonInclude.Include.ALWAYS) + private InvoiceTaxesDto taxes; + + /** + * Unique payment identifier in Asaas + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * Unique installment identifier in Asaas + */ + @JsonProperty("installment") + private JsonNullable installment; + + /** + * Unique customer identifier + */ + @JsonProperty("customer") + private JsonNullable customer; + + /** + * Invoice identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Unique municipal service identifier + */ + @JsonProperty("municipalServiceId") + private JsonNullable municipalServiceId; + + /** + * Municipal Service Code + */ + @JsonProperty("municipalServiceCode") + private JsonNullable municipalServiceCode; + + /** + * Update the Payment amount with the invoice taxes already deducted. + */ + @JsonProperty("updatePayment") + private JsonNullable updatePayment; + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public String getInstallment() { + return installment.orElse(null); + } + + @JsonIgnore + public String getCustomer() { + return customer.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public String getMunicipalServiceId() { + return municipalServiceId.orElse(null); + } + + @JsonIgnore + public String getMunicipalServiceCode() { + return municipalServiceCode.orElse(null); + } + + @JsonIgnore + public Boolean getUpdatePayment() { + return updatePayment.orElse(null); + } + + // Overwrite lombok builder methods + public static class InvoiceSaveRequestDtoBuilder { + + /** + * Flag to track if the taxes property has been set. + */ + private boolean taxes$set = false; + + public InvoiceSaveRequestDtoBuilder taxes(InvoiceTaxesDto taxes) { + this.taxes$set = true; + this.taxes = taxes; + return this; + } + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public InvoiceSaveRequestDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public InvoiceSaveRequestDtoBuilder installment(String value) { + this.installment = JsonNullable.of(value); + return this; + } + + private JsonNullable customer = JsonNullable.undefined(); + + @JsonProperty("customer") + public InvoiceSaveRequestDtoBuilder customer(String value) { + this.customer = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public InvoiceSaveRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalServiceId = JsonNullable.undefined(); + + @JsonProperty("municipalServiceId") + public InvoiceSaveRequestDtoBuilder municipalServiceId(String value) { + this.municipalServiceId = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalServiceCode = JsonNullable.undefined(); + + @JsonProperty("municipalServiceCode") + public InvoiceSaveRequestDtoBuilder municipalServiceCode(String value) { + this.municipalServiceCode = JsonNullable.of(value); + return this; + } + + private JsonNullable updatePayment = JsonNullable.undefined(); + + @JsonProperty("updatePayment") + public InvoiceSaveRequestDtoBuilder updatePayment(Boolean value) { + this.updatePayment = JsonNullable.of(value); + return this; + } + + public InvoiceSaveRequestDto build() { + if (!taxes$set) { + throw new IllegalStateException("taxes is required"); + } + return new InvoiceSaveRequestDto( + serviceDescription, + observations, + value, + deductions, + effectiveDate, + municipalServiceName, + taxes, + payment, + installment, + customer, + externalReference, + municipalServiceId, + municipalServiceCode, + updatePayment + ); + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/InvoiceTaxesDto.java b/src/main/java/com/asaas/apisdk/models/InvoiceTaxesDto.java new file mode 100644 index 0000000..1206d14 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InvoiceTaxesDto.java @@ -0,0 +1,65 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +/** + * Invoice taxes + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InvoiceTaxesDto { + + /** + * The invoice holder must withhold ISS or not + */ + @NonNull + private Boolean retainIss; + + /** + * COFINS rate + */ + @NonNull + private Double cofins; + + /** + * CSLL rate + */ + @NonNull + private Double csll; + + /** + * INSS rate + */ + @NonNull + private Double inss; + + /** + * IR rate + */ + @NonNull + private Double ir; + + /** + * PIS rate + */ + @NonNull + private Double pis; + + /** + * ISS rate + */ + @NonNull + private Double iss; +} diff --git a/src/main/java/com/asaas/apisdk/models/InvoiceUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/InvoiceUpdateRequestDto.java new file mode 100644 index 0000000..a9a0ec7 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/InvoiceUpdateRequestDto.java @@ -0,0 +1,178 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class InvoiceUpdateRequestDto { + + /** + * Description of invoice services + */ + @JsonProperty("serviceDescription") + private JsonNullable serviceDescription; + + /** + * Additional observations + */ + @JsonProperty("observations") + private JsonNullable observations; + + /** + * Invoice identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Total value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. + */ + @JsonProperty("deductions") + private JsonNullable deductions; + + /** + * Invoice issuance date + */ + @JsonProperty("effectiveDate") + private JsonNullable effectiveDate; + + /** + * Update the Payment amount with the invoice taxes already deducted. + */ + @JsonProperty("updatePayment") + private JsonNullable updatePayment; + + /** + * Invoice taxes + */ + @JsonProperty("taxes") + private JsonNullable taxes; + + @JsonIgnore + public String getServiceDescription() { + return serviceDescription.orElse(null); + } + + @JsonIgnore + public String getObservations() { + return observations.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getDeductions() { + return deductions.orElse(null); + } + + @JsonIgnore + public String getEffectiveDate() { + return effectiveDate.orElse(null); + } + + @JsonIgnore + public Boolean getUpdatePayment() { + return updatePayment.orElse(null); + } + + @JsonIgnore + public InvoiceTaxesDto getTaxes() { + return taxes.orElse(null); + } + + // Overwrite lombok builder methods + public static class InvoiceUpdateRequestDtoBuilder { + + private JsonNullable serviceDescription = JsonNullable.undefined(); + + @JsonProperty("serviceDescription") + public InvoiceUpdateRequestDtoBuilder serviceDescription(String value) { + this.serviceDescription = JsonNullable.of(value); + return this; + } + + private JsonNullable observations = JsonNullable.undefined(); + + @JsonProperty("observations") + public InvoiceUpdateRequestDtoBuilder observations(String value) { + this.observations = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public InvoiceUpdateRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public InvoiceUpdateRequestDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable deductions = JsonNullable.undefined(); + + @JsonProperty("deductions") + public InvoiceUpdateRequestDtoBuilder deductions(Double value) { + this.deductions = JsonNullable.of(value); + return this; + } + + private JsonNullable effectiveDate = JsonNullable.undefined(); + + @JsonProperty("effectiveDate") + public InvoiceUpdateRequestDtoBuilder effectiveDate(String value) { + this.effectiveDate = JsonNullable.of(value); + return this; + } + + private JsonNullable updatePayment = JsonNullable.undefined(); + + @JsonProperty("updatePayment") + public InvoiceUpdateRequestDtoBuilder updatePayment(Boolean value) { + this.updatePayment = JsonNullable.of(value); + return this; + } + + private JsonNullable taxes = JsonNullable.undefined(); + + @JsonProperty("taxes") + public InvoiceUpdateRequestDtoBuilder taxes(InvoiceTaxesDto value) { + this.taxes = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/ListAnticipationsParameters.java b/src/main/java/com/asaas/apisdk/models/ListAnticipationsParameters.java index efac0c6..b63d2a0 100644 --- a/src/main/java/com/asaas/apisdk/models/ListAnticipationsParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListAnticipationsParameters.java @@ -48,7 +48,7 @@ public class ListAnticipationsParameters { * Filter by status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; @JsonIgnore public Long getOffset() { @@ -71,7 +71,7 @@ public String getInstallment() { } @JsonIgnore - public ApiReceivableAnticipationListRequestReceivableAnticipationStatus getStatus() { + public AnticipationListRequestAnticipationStatus getStatus() { return status.orElse(null); } @@ -122,13 +122,10 @@ public ListAnticipationsParametersBuilder installment(String value) { return this; } - private JsonNullable status = - JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListAnticipationsParametersBuilder status( - ApiReceivableAnticipationListRequestReceivableAnticipationStatus value - ) { + public ListAnticipationsParametersBuilder status(AnticipationListRequestAnticipationStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListChargebacksParameters.java b/src/main/java/com/asaas/apisdk/models/ListChargebacksParameters.java index 6d58f42..98594e9 100644 --- a/src/main/java/com/asaas/apisdk/models/ListChargebacksParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListChargebacksParameters.java @@ -36,7 +36,7 @@ public class ListChargebacksParameters { * Filter by used card brand. */ @JsonProperty("creditCardBrand") - private JsonNullable creditCardBrand; + private JsonNullable creditCardBrand; /** * Filter up to the chargeback opening date. @@ -66,7 +66,7 @@ public class ListChargebacksParameters { * Filter by chargeback status. */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; @JsonIgnore public Long getOffset() { @@ -79,7 +79,7 @@ public Long getLimit() { } @JsonIgnore - public ApiChargebackListRequestCreditCardBrand getCreditCardBrand() { + public ChargebackListRequestCreditCardBrand getCreditCardBrand() { return creditCardBrand.orElse(null); } @@ -104,7 +104,7 @@ public String getOriginTransactionDateGe() { } @JsonIgnore - public ApiChargebackListRequestChargebackStatus getStatus() { + public ChargebackListRequestChargebackStatus getStatus() { return status.orElse(null); } @@ -133,10 +133,10 @@ public ListChargebacksParametersBuilder limit(Long value) { return this; } - private JsonNullable creditCardBrand = JsonNullable.undefined(); + private JsonNullable creditCardBrand = JsonNullable.undefined(); @JsonProperty("creditCardBrand") - public ListChargebacksParametersBuilder creditCardBrand(ApiChargebackListRequestCreditCardBrand value) { + public ListChargebacksParametersBuilder creditCardBrand(ChargebackListRequestCreditCardBrand value) { if (value == null) { throw new IllegalStateException("creditCardBrand cannot be null"); } @@ -188,10 +188,10 @@ public ListChargebacksParametersBuilder originTransactionDateGe(String value) { return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListChargebacksParametersBuilder status(ApiChargebackListRequestChargebackStatus value) { + public ListChargebacksParametersBuilder status(ChargebackListRequestChargebackStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListInvoicesForSubscriptionChargesParameters.java b/src/main/java/com/asaas/apisdk/models/ListInvoicesForSubscriptionChargesParameters.java index f3d22a1..e15440a 100644 --- a/src/main/java/com/asaas/apisdk/models/ListInvoicesForSubscriptionChargesParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListInvoicesForSubscriptionChargesParameters.java @@ -54,7 +54,7 @@ public class ListInvoicesForSubscriptionChargesParameters { * Filter by invoice status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Filter by unique customer identifier @@ -88,7 +88,7 @@ public String getExternalReference() { } @JsonIgnore - public ApiSubscriptionGetInvoicesRequestInvoiceStatus getStatus() { + public SubscriptionGetInvoicesRequestInvoiceStatus getStatus() { return status.orElse(null); } @@ -155,11 +155,11 @@ public ListInvoicesForSubscriptionChargesParametersBuilder externalReference(Str return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") public ListInvoicesForSubscriptionChargesParametersBuilder status( - ApiSubscriptionGetInvoicesRequestInvoiceStatus value + SubscriptionGetInvoicesRequestInvoiceStatus value ) { if (value == null) { throw new IllegalStateException("status cannot be null"); diff --git a/src/main/java/com/asaas/apisdk/models/ListInvoicesParameters.java b/src/main/java/com/asaas/apisdk/models/ListInvoicesParameters.java index d5d9871..757516b 100644 --- a/src/main/java/com/asaas/apisdk/models/ListInvoicesParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListInvoicesParameters.java @@ -66,7 +66,7 @@ public class ListInvoicesParameters { * Filter by situation */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Filter by unique customer identifier @@ -110,7 +110,7 @@ public String getExternalReference() { } @JsonIgnore - public ApiCustomerInvoiceListRequestInvoiceStatus getStatus() { + public InvoiceListRequestInvoiceStatus getStatus() { return status.orElse(null); } @@ -199,10 +199,10 @@ public ListInvoicesParametersBuilder externalReference(String value) { return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListInvoicesParametersBuilder status(ApiCustomerInvoiceListRequestInvoiceStatus value) { + public ListInvoicesParametersBuilder status(InvoiceListRequestInvoiceStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListKeysParameters.java b/src/main/java/com/asaas/apisdk/models/ListKeysParameters.java index 9797c3f..6535cdd 100644 --- a/src/main/java/com/asaas/apisdk/models/ListKeysParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListKeysParameters.java @@ -36,7 +36,7 @@ public class ListKeysParameters { * Filter by current key status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Filter by one or more key statuses @@ -55,7 +55,7 @@ public Long getLimit() { } @JsonIgnore - public ApiPixAddressKeyListRequestPixAddressKeyStatus getStatus() { + public PixAddressKeyListRequestPixAddressKeyStatus getStatus() { return status.orElse(null); } @@ -89,10 +89,10 @@ public ListKeysParametersBuilder limit(Long value) { return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListKeysParametersBuilder status(ApiPixAddressKeyListRequestPixAddressKeyStatus value) { + public ListKeysParametersBuilder status(PixAddressKeyListRequestPixAddressKeyStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListPaidSplitsParameters.java b/src/main/java/com/asaas/apisdk/models/ListPaidSplitsParameters.java index a2e7136..e6daf8e 100644 --- a/src/main/java/com/asaas/apisdk/models/ListPaidSplitsParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListPaidSplitsParameters.java @@ -42,7 +42,7 @@ public class ListPaidSplitsParameters { * Filter by status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Filter from the initial payment confirmation date @@ -84,7 +84,7 @@ public String getPaymentId() { } @JsonIgnore - public ApiPaymentSplitListPaidRequestPaymentSplitStatus getStatus() { + public PaymentSplitListPaidRequestPaymentSplitStatus getStatus() { return status.orElse(null); } @@ -144,10 +144,10 @@ public ListPaidSplitsParametersBuilder paymentId(String value) { return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListPaidSplitsParametersBuilder status(ApiPaymentSplitListPaidRequestPaymentSplitStatus value) { + public ListPaidSplitsParametersBuilder status(PaymentSplitListPaidRequestPaymentSplitStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListPaymentDunningsParameters.java b/src/main/java/com/asaas/apisdk/models/ListPaymentDunningsParameters.java index c489c69..164fdf0 100644 --- a/src/main/java/com/asaas/apisdk/models/ListPaymentDunningsParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListPaymentDunningsParameters.java @@ -36,13 +36,13 @@ public class ListPaymentDunningsParameters { * Filter by payment dunning status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Filter by type of payment dunning */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Filter by dunnings for a specific payment @@ -73,12 +73,12 @@ public Long getLimit() { } @JsonIgnore - public ApiPaymentDunningListRequestPaymentDunningStatus getStatus() { + public PaymentDunningListRequestPaymentDunningStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiPaymentDunningListRequestPaymentDunningType getType() { + public PaymentDunningListRequestPaymentDunningType getType() { return type.orElse(null); } @@ -122,10 +122,10 @@ public ListPaymentDunningsParametersBuilder limit(Long value) { return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListPaymentDunningsParametersBuilder status(ApiPaymentDunningListRequestPaymentDunningStatus value) { + public ListPaymentDunningsParametersBuilder status(PaymentDunningListRequestPaymentDunningStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } @@ -133,10 +133,10 @@ public ListPaymentDunningsParametersBuilder status(ApiPaymentDunningListRequestP return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ListPaymentDunningsParametersBuilder type(ApiPaymentDunningListRequestPaymentDunningType value) { + public ListPaymentDunningsParametersBuilder type(PaymentDunningListRequestPaymentDunningType value) { if (value == null) { throw new IllegalStateException("type cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListPaymentsOfAInstallmentParameters.java b/src/main/java/com/asaas/apisdk/models/ListPaymentsOfAInstallmentParameters.java index 1bb49bf..e08fdb5 100644 --- a/src/main/java/com/asaas/apisdk/models/ListPaymentsOfAInstallmentParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListPaymentsOfAInstallmentParameters.java @@ -24,20 +24,20 @@ public class ListPaymentsOfAInstallmentParameters { * Filter by payment status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; @JsonIgnore - public ApiInstallmentListPaymentsRequestPaymentStatus getStatus() { + public InstallmentListPaymentsRequestPaymentStatus getStatus() { return status.orElse(null); } // Overwrite lombok builder methods public static class ListPaymentsOfAInstallmentParametersBuilder { - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListPaymentsOfAInstallmentParametersBuilder status(ApiInstallmentListPaymentsRequestPaymentStatus value) { + public ListPaymentsOfAInstallmentParametersBuilder status(InstallmentListPaymentsRequestPaymentStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListPaymentsOfASubscriptionParameters.java b/src/main/java/com/asaas/apisdk/models/ListPaymentsOfASubscriptionParameters.java index 2854421..4a34cba 100644 --- a/src/main/java/com/asaas/apisdk/models/ListPaymentsOfASubscriptionParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListPaymentsOfASubscriptionParameters.java @@ -24,20 +24,20 @@ public class ListPaymentsOfASubscriptionParameters { * Filter by payment status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; @JsonIgnore - public ApiSubscriptionListPaymentsRequestPaymentStatus getStatus() { + public SubscriptionListPaymentsRequestPaymentStatus getStatus() { return status.orElse(null); } // Overwrite lombok builder methods public static class ListPaymentsOfASubscriptionParametersBuilder { - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListPaymentsOfASubscriptionParametersBuilder status(ApiSubscriptionListPaymentsRequestPaymentStatus value) { + public ListPaymentsOfASubscriptionParametersBuilder status(SubscriptionListPaymentsRequestPaymentStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListPaymentsParameters.java b/src/main/java/com/asaas/apisdk/models/ListPaymentsParameters.java index c2b6456..579ef05 100644 --- a/src/main/java/com/asaas/apisdk/models/ListPaymentsParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListPaymentsParameters.java @@ -54,13 +54,13 @@ public class ListPaymentsParameters { * Filter by billing type */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Filter by status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Filter by unique subscription identifier @@ -84,7 +84,7 @@ public class ListPaymentsParameters { * Filter to return charges that have or do not have an invoice */ @JsonProperty("invoiceStatus") - private JsonNullable invoiceStatus; + private JsonNullable invoiceStatus; /** * Filter by estimated credit date @@ -190,12 +190,12 @@ public String getCustomerGroupName() { } @JsonIgnore - public ApiPaymentListRequestBillingType getBillingType() { + public PaymentListRequestBillingType getBillingType() { return billingType.orElse(null); } @JsonIgnore - public ApiPaymentListRequestPaymentStatus getStatus() { + public PaymentListRequestPaymentStatus getStatus() { return status.orElse(null); } @@ -215,7 +215,7 @@ public String getPaymentDate() { } @JsonIgnore - public ApiPaymentListRequestInvoiceStatus getInvoiceStatus() { + public PaymentListRequestInvoiceStatus getInvoiceStatus() { return invoiceStatus.orElse(null); } @@ -342,10 +342,10 @@ public ListPaymentsParametersBuilder customerGroupName(String value) { return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ListPaymentsParametersBuilder billingType(ApiPaymentListRequestBillingType value) { + public ListPaymentsParametersBuilder billingType(PaymentListRequestBillingType value) { if (value == null) { throw new IllegalStateException("billingType cannot be null"); } @@ -353,10 +353,10 @@ public ListPaymentsParametersBuilder billingType(ApiPaymentListRequestBillingTyp return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListPaymentsParametersBuilder status(ApiPaymentListRequestPaymentStatus value) { + public ListPaymentsParametersBuilder status(PaymentListRequestPaymentStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } @@ -397,10 +397,10 @@ public ListPaymentsParametersBuilder paymentDate(String value) { return this; } - private JsonNullable invoiceStatus = JsonNullable.undefined(); + private JsonNullable invoiceStatus = JsonNullable.undefined(); @JsonProperty("invoiceStatus") - public ListPaymentsParametersBuilder invoiceStatus(ApiPaymentListRequestInvoiceStatus value) { + public ListPaymentsParametersBuilder invoiceStatus(PaymentListRequestInvoiceStatus value) { if (value == null) { throw new IllegalStateException("invoiceStatus cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListPaymentsWithSummaryDataParameters.java b/src/main/java/com/asaas/apisdk/models/ListPaymentsWithSummaryDataParameters.java index fc20b3a..89ead7d 100644 --- a/src/main/java/com/asaas/apisdk/models/ListPaymentsWithSummaryDataParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListPaymentsWithSummaryDataParameters.java @@ -48,13 +48,13 @@ public class ListPaymentsWithSummaryDataParameters { * Filter by billing type */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Filter by status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Filter by unique subscription identifier @@ -84,7 +84,7 @@ public class ListPaymentsWithSummaryDataParameters { * Filter to return charges that have or do not have an invoice */ @JsonProperty("invoiceStatus") - private JsonNullable invoiceStatus; + private JsonNullable invoiceStatus; /** * Filter by estimated credit date @@ -185,12 +185,12 @@ public String getCustomerGroupName() { } @JsonIgnore - public ApiPaymentListRequestBillingType getBillingType() { + public PaymentListRequestBillingType getBillingType() { return billingType.orElse(null); } @JsonIgnore - public ApiPaymentListRequestPaymentStatus getStatus() { + public PaymentListRequestPaymentStatus getStatus() { return status.orElse(null); } @@ -215,7 +215,7 @@ public String getPaymentDate() { } @JsonIgnore - public ApiPaymentListRequestInvoiceStatus getInvoiceStatus() { + public PaymentListRequestInvoiceStatus getInvoiceStatus() { return invoiceStatus.orElse(null); } @@ -331,10 +331,10 @@ public ListPaymentsWithSummaryDataParametersBuilder customerGroupName(String val return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ListPaymentsWithSummaryDataParametersBuilder billingType(ApiPaymentListRequestBillingType value) { + public ListPaymentsWithSummaryDataParametersBuilder billingType(PaymentListRequestBillingType value) { if (value == null) { throw new IllegalStateException("billingType cannot be null"); } @@ -342,10 +342,10 @@ public ListPaymentsWithSummaryDataParametersBuilder billingType(ApiPaymentListRe return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListPaymentsWithSummaryDataParametersBuilder status(ApiPaymentListRequestPaymentStatus value) { + public ListPaymentsWithSummaryDataParametersBuilder status(PaymentListRequestPaymentStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } @@ -397,10 +397,10 @@ public ListPaymentsWithSummaryDataParametersBuilder paymentDate(String value) { return this; } - private JsonNullable invoiceStatus = JsonNullable.undefined(); + private JsonNullable invoiceStatus = JsonNullable.undefined(); @JsonProperty("invoiceStatus") - public ListPaymentsWithSummaryDataParametersBuilder invoiceStatus(ApiPaymentListRequestInvoiceStatus value) { + public ListPaymentsWithSummaryDataParametersBuilder invoiceStatus(PaymentListRequestInvoiceStatus value) { if (value == null) { throw new IllegalStateException("invoiceStatus cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListReceivedSplitsParameters.java b/src/main/java/com/asaas/apisdk/models/ListReceivedSplitsParameters.java index d5fe88c..6b7e4f5 100644 --- a/src/main/java/com/asaas/apisdk/models/ListReceivedSplitsParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListReceivedSplitsParameters.java @@ -42,7 +42,7 @@ public class ListReceivedSplitsParameters { * Filter by status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Filter from the initial payment confirmation date @@ -84,7 +84,7 @@ public String getPaymentId() { } @JsonIgnore - public ApiPaymentSplitListReceivedRequestPaymentSplitStatus getStatus() { + public PaymentSplitListReceivedRequestPaymentSplitStatus getStatus() { return status.orElse(null); } @@ -144,10 +144,10 @@ public ListReceivedSplitsParametersBuilder paymentId(String value) { return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListReceivedSplitsParametersBuilder status(ApiPaymentSplitListReceivedRequestPaymentSplitStatus value) { + public ListReceivedSplitsParametersBuilder status(PaymentSplitListReceivedRequestPaymentSplitStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListRecurrencesParameters.java b/src/main/java/com/asaas/apisdk/models/ListRecurrencesParameters.java index aa1ea5b..ff3a9e8 100644 --- a/src/main/java/com/asaas/apisdk/models/ListRecurrencesParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListRecurrencesParameters.java @@ -36,7 +36,7 @@ public class ListRecurrencesParameters { * Filter by recurrence status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Filter by recurrence value @@ -61,7 +61,7 @@ public Long getLimit() { } @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus getStatus() { + public RecurringPixTransactionListRequestPixRecurringTransactionStatus getStatus() { return status.orElse(null); } @@ -100,12 +100,12 @@ public ListRecurrencesParametersBuilder limit(Long value) { return this; } - private JsonNullable status = + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") public ListRecurrencesParametersBuilder status( - ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus value + RecurringPixTransactionListRequestPixRecurringTransactionStatus value ) { if (value == null) { throw new IllegalStateException("status cannot be null"); diff --git a/src/main/java/com/asaas/apisdk/models/ListSubscriptionsParameters.java b/src/main/java/com/asaas/apisdk/models/ListSubscriptionsParameters.java index e0775e3..2317e59 100644 --- a/src/main/java/com/asaas/apisdk/models/ListSubscriptionsParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListSubscriptionsParameters.java @@ -48,13 +48,13 @@ public class ListSubscriptionsParameters { * Filter by billing type */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Filter by status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Send true to return only removed subscriptions @@ -107,12 +107,12 @@ public String getCustomerGroupName() { } @JsonIgnore - public ApiSubscriptionListRequestBillingType getBillingType() { + public SubscriptionListRequestBillingType getBillingType() { return billingType.orElse(null); } @JsonIgnore - public ApiSubscriptionListRequestSubscriptionStatus getStatus() { + public SubscriptionListRequestSubscriptionStatus getStatus() { return status.orElse(null); } @@ -188,10 +188,10 @@ public ListSubscriptionsParametersBuilder customerGroupName(String value) { return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ListSubscriptionsParametersBuilder billingType(ApiSubscriptionListRequestBillingType value) { + public ListSubscriptionsParametersBuilder billingType(SubscriptionListRequestBillingType value) { if (value == null) { throw new IllegalStateException("billingType cannot be null"); } @@ -199,10 +199,10 @@ public ListSubscriptionsParametersBuilder billingType(ApiSubscriptionListRequest return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListSubscriptionsParametersBuilder status(ApiSubscriptionListRequestSubscriptionStatus value) { + public ListSubscriptionsParametersBuilder status(SubscriptionListRequestSubscriptionStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ListTransactionsParameters.java b/src/main/java/com/asaas/apisdk/models/ListTransactionsParameters.java index 9a73874..d8afce6 100644 --- a/src/main/java/com/asaas/apisdk/models/ListTransactionsParameters.java +++ b/src/main/java/com/asaas/apisdk/models/ListTransactionsParameters.java @@ -36,13 +36,13 @@ public class ListTransactionsParameters { * Filter by transaction status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Filter by transaction type */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Filter by Pix transaction identifier at the Central Bank @@ -61,12 +61,12 @@ public Long getLimit() { } @JsonIgnore - public ApiPixTransactionListRequestPixTransactionStatus getStatus() { + public PixTransactionListRequestPixTransactionStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiPixTransactionListRequestPixTransactionType getType() { + public PixTransactionListRequestPixTransactionType getType() { return type.orElse(null); } @@ -100,10 +100,10 @@ public ListTransactionsParametersBuilder limit(Long value) { return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ListTransactionsParametersBuilder status(ApiPixTransactionListRequestPixTransactionStatus value) { + public ListTransactionsParametersBuilder status(PixTransactionListRequestPixTransactionStatus value) { if (value == null) { throw new IllegalStateException("status cannot be null"); } @@ -111,10 +111,10 @@ public ListTransactionsParametersBuilder status(ApiPixTransactionListRequestPixT return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ListTransactionsParametersBuilder type(ApiPixTransactionListRequestPixTransactionType value) { + public ListTransactionsParametersBuilder type(PixTransactionListRequestPixTransactionType value) { if (value == null) { throw new IllegalStateException("type cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseDto.java b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseDto.java new file mode 100644 index 0000000..719ed21 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MobilePhoneRechargeFindProviderResponseDto { + + /** + * Name of cell phone operator + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Amounts available for recharge + */ + @JsonProperty("values") + private JsonNullable> values; + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public List getValues() { + return values.orElse(null); + } + + // Overwrite lombok builder methods + public static class MobilePhoneRechargeFindProviderResponseDtoBuilder { + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public MobilePhoneRechargeFindProviderResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable> values = JsonNullable.undefined(); + + @JsonProperty("values") + public MobilePhoneRechargeFindProviderResponseDtoBuilder values( + List value + ) { + this.values = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseValuesDto.java b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseValuesDto.java new file mode 100644 index 0000000..c978b45 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseValuesDto.java @@ -0,0 +1,124 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Amounts available for recharge + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MobilePhoneRechargeFindProviderResponseValuesDto { + + /** + * Package name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Package Description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Package Bonuses + */ + @JsonProperty("bonus") + private JsonNullable bonus; + + /** + * Minimum top-up amount + */ + @JsonProperty("minValue") + private JsonNullable minValue; + + /** + * Maximum recharge value + */ + @JsonProperty("maxValue") + private JsonNullable maxValue; + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getBonus() { + return bonus.orElse(null); + } + + @JsonIgnore + public Double getMinValue() { + return minValue.orElse(null); + } + + @JsonIgnore + public Double getMaxValue() { + return maxValue.orElse(null); + } + + // Overwrite lombok builder methods + public static class MobilePhoneRechargeFindProviderResponseValuesDtoBuilder { + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public MobilePhoneRechargeFindProviderResponseValuesDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public MobilePhoneRechargeFindProviderResponseValuesDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable bonus = JsonNullable.undefined(); + + @JsonProperty("bonus") + public MobilePhoneRechargeFindProviderResponseValuesDtoBuilder bonus(String value) { + this.bonus = JsonNullable.of(value); + return this; + } + + private JsonNullable minValue = JsonNullable.undefined(); + + @JsonProperty("minValue") + public MobilePhoneRechargeFindProviderResponseValuesDtoBuilder minValue(Double value) { + this.minValue = JsonNullable.of(value); + return this; + } + + private JsonNullable maxValue = JsonNullable.undefined(); + + @JsonProperty("maxValue") + public MobilePhoneRechargeFindProviderResponseValuesDtoBuilder maxValue(Double value) { + this.maxValue = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseDto.java new file mode 100644 index 0000000..ce22051 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseDto.java @@ -0,0 +1,142 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MobilePhoneRechargeGetResponseDto { + + /** + * Unique identifier for cell phone recharge on Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Recharge value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Cell phone number that was requested to be recharged + */ + @JsonProperty("phoneNumber") + private JsonNullable phoneNumber; + + /** + * Recharge status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Whether the top-up can be canceled + */ + @JsonProperty("canBeCancelled") + private JsonNullable canBeCancelled; + + /** + * Name of cell phone operator + */ + @JsonProperty("operatorName") + private JsonNullable operatorName; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getPhoneNumber() { + return phoneNumber.orElse(null); + } + + @JsonIgnore + public MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public Boolean getCanBeCancelled() { + return canBeCancelled.orElse(null); + } + + @JsonIgnore + public String getOperatorName() { + return operatorName.orElse(null); + } + + // Overwrite lombok builder methods + public static class MobilePhoneRechargeGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public MobilePhoneRechargeGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public MobilePhoneRechargeGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable phoneNumber = JsonNullable.undefined(); + + @JsonProperty("phoneNumber") + public MobilePhoneRechargeGetResponseDtoBuilder phoneNumber(String value) { + this.phoneNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public MobilePhoneRechargeGetResponseDtoBuilder status( + MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus value + ) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable canBeCancelled = JsonNullable.of(true); + + @JsonProperty("canBeCancelled") + public MobilePhoneRechargeGetResponseDtoBuilder canBeCancelled(Boolean value) { + this.canBeCancelled = JsonNullable.of(value); + return this; + } + + private JsonNullable operatorName = JsonNullable.undefined(); + + @JsonProperty("operatorName") + public MobilePhoneRechargeGetResponseDtoBuilder operatorName(String value) { + this.operatorName = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java new file mode 100644 index 0000000..e04c151 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Recharge status + */ +@Getter +@AllArgsConstructor +public enum MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus { + PENDING("PENDING"), + CONFIRMED("CONFIRMED"), + CANCELLED("CANCELLED"), + REFUNDED("REFUNDED"), + WAITING_CRITICAL_ACTION("WAITING_CRITICAL_ACTION"); + + @JsonValue + private final String value; + + @JsonCreator + public static MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus fromValue(String value) { + return Arrays.stream(MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeListResponseDto.java b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeListResponseDto.java new file mode 100644 index 0000000..25fc3e9 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MobilePhoneRechargeListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class MobilePhoneRechargeListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public MobilePhoneRechargeListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public MobilePhoneRechargeListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public MobilePhoneRechargeListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public MobilePhoneRechargeListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public MobilePhoneRechargeListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public MobilePhoneRechargeListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeSaveRequestDto.java new file mode 100644 index 0000000..793d3f0 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeSaveRequestDto.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MobilePhoneRechargeSaveRequestDto { + + /** + * Recharge value + */ + @NonNull + private Double value; + + /** + * Cellphone number + */ + @NonNull + private String phoneNumber; +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountDisableAccountResponseDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountDisableAccountResponseDto.java new file mode 100644 index 0000000..ecdaf6a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountDisableAccountResponseDto.java @@ -0,0 +1,45 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountDisableAccountResponseDto { + + /** + * Deletion information + */ + @JsonProperty("observations") + private JsonNullable observations; + + @JsonIgnore + public String getObservations() { + return observations.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountDisableAccountResponseDtoBuilder { + + private JsonNullable observations = JsonNullable.undefined(); + + @JsonProperty("observations") + public MyAccountDisableAccountResponseDtoBuilder observations(String value) { + this.observations = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationBankSlipDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationBankSlipDto.java new file mode 100644 index 0000000..2d12b33 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationBankSlipDto.java @@ -0,0 +1,48 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Anticipation fee on boletos + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesAnticipationBankSlipDto { + + /** + * Monthly fee for invoice charges + */ + @JsonProperty("monthlyFeePercentage") + private JsonNullable monthlyFeePercentage; + + @JsonIgnore + public Double getMonthlyFeePercentage() { + return monthlyFeePercentage.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesAnticipationBankSlipDtoBuilder { + + private JsonNullable monthlyFeePercentage = JsonNullable.undefined(); + + @JsonProperty("monthlyFeePercentage") + public MyAccountGetAccountFeesAnticipationBankSlipDtoBuilder monthlyFeePercentage(Double value) { + this.monthlyFeePercentage = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationCreditCardDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationCreditCardDto.java new file mode 100644 index 0000000..9e0a61b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationCreditCardDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Credit card anticipation fee + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesAnticipationCreditCardDto { + + /** + * Monthly fee for upfront charges + */ + @JsonProperty("detachedMonthlyFeeValue") + private JsonNullable detachedMonthlyFeeValue; + + /** + * Monthly fee for installment payments + */ + @JsonProperty("installmentMonthlyFeeValue") + private JsonNullable installmentMonthlyFeeValue; + + @JsonIgnore + public Double getDetachedMonthlyFeeValue() { + return detachedMonthlyFeeValue.orElse(null); + } + + @JsonIgnore + public Long getInstallmentMonthlyFeeValue() { + return installmentMonthlyFeeValue.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesAnticipationCreditCardDtoBuilder { + + private JsonNullable detachedMonthlyFeeValue = JsonNullable.undefined(); + + @JsonProperty("detachedMonthlyFeeValue") + public MyAccountGetAccountFeesAnticipationCreditCardDtoBuilder detachedMonthlyFeeValue(Double value) { + this.detachedMonthlyFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentMonthlyFeeValue = JsonNullable.undefined(); + + @JsonProperty("installmentMonthlyFeeValue") + public MyAccountGetAccountFeesAnticipationCreditCardDtoBuilder installmentMonthlyFeeValue(Long value) { + this.installmentMonthlyFeeValue = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationDto.java new file mode 100644 index 0000000..6f3a3c7 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationDto.java @@ -0,0 +1,71 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Anticipation fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesAnticipationDto { + + /** + * Credit card anticipation fee + */ + @JsonProperty("creditCard") + private JsonNullable creditCard; + + /** + * Anticipation fee on boletos + */ + @JsonProperty("bankSlip") + private JsonNullable bankSlip; + + @JsonIgnore + public MyAccountGetAccountFeesAnticipationCreditCardDto getCreditCard() { + return creditCard.orElse(null); + } + + @JsonIgnore + public MyAccountGetAccountFeesAnticipationBankSlipDto getBankSlip() { + return bankSlip.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesAnticipationDtoBuilder { + + private JsonNullable creditCard = JsonNullable.undefined(); + + @JsonProperty("creditCard") + public MyAccountGetAccountFeesAnticipationDtoBuilder creditCard( + MyAccountGetAccountFeesAnticipationCreditCardDto value + ) { + this.creditCard = JsonNullable.of(value); + return this; + } + + private JsonNullable bankSlip = JsonNullable.undefined(); + + @JsonProperty("bankSlip") + public MyAccountGetAccountFeesAnticipationDtoBuilder bankSlip( + MyAccountGetAccountFeesAnticipationBankSlipDto value + ) { + this.bankSlip = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesCreditBureauReportDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesCreditBureauReportDto.java new file mode 100644 index 0000000..2faed68 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesCreditBureauReportDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Serasa consultation fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesCreditBureauReportDto { + + /** + * Fee for Serasa consultation for natural person + */ + @JsonProperty("naturalPersonFeeValue") + private JsonNullable naturalPersonFeeValue; + + /** + * Fee for Serasa consultation for legal person + */ + @JsonProperty("legalPersonFeeValue") + private JsonNullable legalPersonFeeValue; + + @JsonIgnore + public Double getNaturalPersonFeeValue() { + return naturalPersonFeeValue.orElse(null); + } + + @JsonIgnore + public Double getLegalPersonFeeValue() { + return legalPersonFeeValue.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesCreditBureauReportDtoBuilder { + + private JsonNullable naturalPersonFeeValue = JsonNullable.undefined(); + + @JsonProperty("naturalPersonFeeValue") + public MyAccountGetAccountFeesCreditBureauReportDtoBuilder naturalPersonFeeValue(Double value) { + this.naturalPersonFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable legalPersonFeeValue = JsonNullable.undefined(); + + @JsonProperty("legalPersonFeeValue") + public MyAccountGetAccountFeesCreditBureauReportDtoBuilder legalPersonFeeValue(Double value) { + this.legalPersonFeeValue = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesInvoiceDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesInvoiceDto.java new file mode 100644 index 0000000..cfe098e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesInvoiceDto.java @@ -0,0 +1,48 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Invoice fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesInvoiceDto { + + /** + * Fee per service note issued + */ + @JsonProperty("feeValue") + private JsonNullable feeValue; + + @JsonIgnore + public Double getFeeValue() { + return feeValue.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesInvoiceDtoBuilder { + + private JsonNullable feeValue = JsonNullable.undefined(); + + @JsonProperty("feeValue") + public MyAccountGetAccountFeesInvoiceDtoBuilder feeValue(Double value) { + this.feeValue = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesNotificationDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesNotificationDto.java new file mode 100644 index 0000000..505b99b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesNotificationDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Notification fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesNotificationDto { + + /** + * Fees per voice robot call + */ + @JsonProperty("phoneCallFeeValue") + private JsonNullable phoneCallFeeValue; + + /** + * Fees for notifications via WhatsApp + */ + @JsonProperty("whatsAppFeeValue") + private JsonNullable whatsAppFeeValue; + + /** + * Fees for sending emails and SMS + */ + @JsonProperty("messagingFeeValue") + private JsonNullable messagingFeeValue; + + @JsonIgnore + public Double getPhoneCallFeeValue() { + return phoneCallFeeValue.orElse(null); + } + + @JsonIgnore + public Double getWhatsAppFeeValue() { + return whatsAppFeeValue.orElse(null); + } + + @JsonIgnore + public Double getMessagingFeeValue() { + return messagingFeeValue.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesNotificationDtoBuilder { + + private JsonNullable phoneCallFeeValue = JsonNullable.undefined(); + + @JsonProperty("phoneCallFeeValue") + public MyAccountGetAccountFeesNotificationDtoBuilder phoneCallFeeValue(Double value) { + this.phoneCallFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable whatsAppFeeValue = JsonNullable.undefined(); + + @JsonProperty("whatsAppFeeValue") + public MyAccountGetAccountFeesNotificationDtoBuilder whatsAppFeeValue(Double value) { + this.whatsAppFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable messagingFeeValue = JsonNullable.undefined(); + + @JsonProperty("messagingFeeValue") + public MyAccountGetAccountFeesNotificationDtoBuilder messagingFeeValue(Double value) { + this.messagingFeeValue = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentBankSlipDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentBankSlipDto.java new file mode 100644 index 0000000..af8e028 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentBankSlipDto.java @@ -0,0 +1,105 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Boleto fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesPaymentBankSlipDto { + + /** + * Fee per charge + */ + @JsonProperty("defaultValue") + private JsonNullable defaultValue; + + /** + * Promotional fee (If any) + */ + @JsonProperty("discountValue") + private JsonNullable discountValue; + + /** + * Promotional fee expiration date (If any) + */ + @JsonProperty("expirationDate") + private JsonNullable expirationDate; + + /** + * Days to receive billing + */ + @JsonProperty("daysToReceive") + private JsonNullable daysToReceive; + + @JsonIgnore + public Double getDefaultValue() { + return defaultValue.orElse(null); + } + + @JsonIgnore + public Double getDiscountValue() { + return discountValue.orElse(null); + } + + @JsonIgnore + public String getExpirationDate() { + return expirationDate.orElse(null); + } + + @JsonIgnore + public Long getDaysToReceive() { + return daysToReceive.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesPaymentBankSlipDtoBuilder { + + private JsonNullable defaultValue = JsonNullable.undefined(); + + @JsonProperty("defaultValue") + public MyAccountGetAccountFeesPaymentBankSlipDtoBuilder defaultValue(Double value) { + this.defaultValue = JsonNullable.of(value); + return this; + } + + private JsonNullable discountValue = JsonNullable.undefined(); + + @JsonProperty("discountValue") + public MyAccountGetAccountFeesPaymentBankSlipDtoBuilder discountValue(Double value) { + this.discountValue = JsonNullable.of(value); + return this; + } + + private JsonNullable expirationDate = JsonNullable.undefined(); + + @JsonProperty("expirationDate") + public MyAccountGetAccountFeesPaymentBankSlipDtoBuilder expirationDate(String value) { + this.expirationDate = JsonNullable.of(value); + return this; + } + + private JsonNullable daysToReceive = JsonNullable.undefined(); + + @JsonProperty("daysToReceive") + public MyAccountGetAccountFeesPaymentBankSlipDtoBuilder daysToReceive(Long value) { + this.daysToReceive = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentCreditCardDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentCreditCardDto.java new file mode 100644 index 0000000..e55740f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentCreditCardDto.java @@ -0,0 +1,240 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Credit card fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesPaymentCreditCardDto { + + /** + * Operating fee per charge + */ + @JsonProperty("operationValue") + private JsonNullable operationValue; + + /** + * Spot percentage rate + */ + @JsonProperty("oneInstallmentPercentage") + private JsonNullable oneInstallmentPercentage; + + /** + * Percentage rate for 2 to 6 installments + */ + @JsonProperty("upToSixInstallmentsPercentage") + private JsonNullable upToSixInstallmentsPercentage; + + /** + * Percentage rate for 7 to 12 installments + */ + @JsonProperty("upToTwelveInstallmentsPercentage") + private JsonNullable upToTwelveInstallmentsPercentage; + + /** + * Percentage rate for 13 to 21 installments + */ + @JsonProperty("upToTwentyOneInstallmentsPercentage") + private JsonNullable upToTwentyOneInstallmentsPercentage; + + /** + * Promotional cash percentage rate (If any) + */ + @JsonProperty("discountOneInstallmentPercentage") + private JsonNullable discountOneInstallmentPercentage; + + /** + * Percentage rate for 2 to 6 promotional installments (If any) + */ + @JsonProperty("discountUpToSixInstallmentsPercentage") + private JsonNullable discountUpToSixInstallmentsPercentage; + + /** + * Percentage rate for 7 to 12 promotional installments (If any) + */ + @JsonProperty("discountUpToTwelveInstallmentsPercentage") + private JsonNullable discountUpToTwelveInstallmentsPercentage; + + /** + * Percentage rate for 13 to 21 promotional installments (if any) + */ + @JsonProperty("discountUpToTwentyOneInstallmentsPercentage") + private JsonNullable discountUpToTwentyOneInstallmentsPercentage; + + /** + * Promotional fee expiration date (If any) + */ + @JsonProperty("discountExpiration") + private JsonNullable discountExpiration; + + /** + * Days to receive billing + */ + @JsonProperty("daysToReceive") + private JsonNullable daysToReceive; + + @JsonIgnore + public Double getOperationValue() { + return operationValue.orElse(null); + } + + @JsonIgnore + public Double getOneInstallmentPercentage() { + return oneInstallmentPercentage.orElse(null); + } + + @JsonIgnore + public Double getUpToSixInstallmentsPercentage() { + return upToSixInstallmentsPercentage.orElse(null); + } + + @JsonIgnore + public Double getUpToTwelveInstallmentsPercentage() { + return upToTwelveInstallmentsPercentage.orElse(null); + } + + @JsonIgnore + public Double getUpToTwentyOneInstallmentsPercentage() { + return upToTwentyOneInstallmentsPercentage.orElse(null); + } + + @JsonIgnore + public Double getDiscountOneInstallmentPercentage() { + return discountOneInstallmentPercentage.orElse(null); + } + + @JsonIgnore + public Double getDiscountUpToSixInstallmentsPercentage() { + return discountUpToSixInstallmentsPercentage.orElse(null); + } + + @JsonIgnore + public Double getDiscountUpToTwelveInstallmentsPercentage() { + return discountUpToTwelveInstallmentsPercentage.orElse(null); + } + + @JsonIgnore + public Double getDiscountUpToTwentyOneInstallmentsPercentage() { + return discountUpToTwentyOneInstallmentsPercentage.orElse(null); + } + + @JsonIgnore + public String getDiscountExpiration() { + return discountExpiration.orElse(null); + } + + @JsonIgnore + public Long getDaysToReceive() { + return daysToReceive.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesPaymentCreditCardDtoBuilder { + + private JsonNullable operationValue = JsonNullable.undefined(); + + @JsonProperty("operationValue") + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder operationValue(Double value) { + this.operationValue = JsonNullable.of(value); + return this; + } + + private JsonNullable oneInstallmentPercentage = JsonNullable.undefined(); + + @JsonProperty("oneInstallmentPercentage") + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder oneInstallmentPercentage(Double value) { + this.oneInstallmentPercentage = JsonNullable.of(value); + return this; + } + + private JsonNullable upToSixInstallmentsPercentage = JsonNullable.undefined(); + + @JsonProperty("upToSixInstallmentsPercentage") + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToSixInstallmentsPercentage(Double value) { + this.upToSixInstallmentsPercentage = JsonNullable.of(value); + return this; + } + + private JsonNullable upToTwelveInstallmentsPercentage = JsonNullable.undefined(); + + @JsonProperty("upToTwelveInstallmentsPercentage") + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwelveInstallmentsPercentage(Double value) { + this.upToTwelveInstallmentsPercentage = JsonNullable.of(value); + return this; + } + + private JsonNullable upToTwentyOneInstallmentsPercentage = JsonNullable.undefined(); + + @JsonProperty("upToTwentyOneInstallmentsPercentage") + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwentyOneInstallmentsPercentage(Double value) { + this.upToTwentyOneInstallmentsPercentage = JsonNullable.of(value); + return this; + } + + private JsonNullable discountOneInstallmentPercentage = JsonNullable.undefined(); + + @JsonProperty("discountOneInstallmentPercentage") + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountOneInstallmentPercentage(Double value) { + this.discountOneInstallmentPercentage = JsonNullable.of(value); + return this; + } + + private JsonNullable discountUpToSixInstallmentsPercentage = JsonNullable.undefined(); + + @JsonProperty("discountUpToSixInstallmentsPercentage") + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToSixInstallmentsPercentage(Double value) { + this.discountUpToSixInstallmentsPercentage = JsonNullable.of(value); + return this; + } + + private JsonNullable discountUpToTwelveInstallmentsPercentage = JsonNullable.undefined(); + + @JsonProperty("discountUpToTwelveInstallmentsPercentage") + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwelveInstallmentsPercentage(Double value) { + this.discountUpToTwelveInstallmentsPercentage = JsonNullable.of(value); + return this; + } + + private JsonNullable discountUpToTwentyOneInstallmentsPercentage = JsonNullable.undefined(); + + @JsonProperty("discountUpToTwentyOneInstallmentsPercentage") + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwentyOneInstallmentsPercentage( + Double value + ) { + this.discountUpToTwentyOneInstallmentsPercentage = JsonNullable.of(value); + return this; + } + + private JsonNullable discountExpiration = JsonNullable.undefined(); + + @JsonProperty("discountExpiration") + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountExpiration(String value) { + this.discountExpiration = JsonNullable.of(value); + return this; + } + + private JsonNullable daysToReceive = JsonNullable.undefined(); + + @JsonProperty("daysToReceive") + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder daysToReceive(Long value) { + this.daysToReceive = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDebitCardDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDebitCardDto.java new file mode 100644 index 0000000..e4ab31f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDebitCardDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Debit card fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesPaymentDebitCardDto { + + /** + * Operating fee per charge + */ + @JsonProperty("operationValue") + private JsonNullable operationValue; + + /** + * Percentage rate per charge + */ + @JsonProperty("defaultPercentage") + private JsonNullable defaultPercentage; + + /** + * Days to receive billing + */ + @JsonProperty("daysToReceive") + private JsonNullable daysToReceive; + + @JsonIgnore + public Double getOperationValue() { + return operationValue.orElse(null); + } + + @JsonIgnore + public Double getDefaultPercentage() { + return defaultPercentage.orElse(null); + } + + @JsonIgnore + public Long getDaysToReceive() { + return daysToReceive.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesPaymentDebitCardDtoBuilder { + + private JsonNullable operationValue = JsonNullable.undefined(); + + @JsonProperty("operationValue") + public MyAccountGetAccountFeesPaymentDebitCardDtoBuilder operationValue(Double value) { + this.operationValue = JsonNullable.of(value); + return this; + } + + private JsonNullable defaultPercentage = JsonNullable.undefined(); + + @JsonProperty("defaultPercentage") + public MyAccountGetAccountFeesPaymentDebitCardDtoBuilder defaultPercentage(Double value) { + this.defaultPercentage = JsonNullable.of(value); + return this; + } + + private JsonNullable daysToReceive = JsonNullable.undefined(); + + @JsonProperty("daysToReceive") + public MyAccountGetAccountFeesPaymentDebitCardDtoBuilder daysToReceive(Long value) { + this.daysToReceive = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDto.java new file mode 100644 index 0000000..d6da1d6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDto.java @@ -0,0 +1,105 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Billing fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesPaymentDto { + + /** + * Boleto fees + */ + @JsonProperty("bankSlip") + private JsonNullable bankSlip; + + /** + * Credit card fees + */ + @JsonProperty("creditCard") + private JsonNullable creditCard; + + /** + * Debit card fees + */ + @JsonProperty("debitCard") + private JsonNullable debitCard; + + /** + * Pix Fees + */ + @JsonProperty("pix") + private JsonNullable pix; + + @JsonIgnore + public MyAccountGetAccountFeesPaymentBankSlipDto getBankSlip() { + return bankSlip.orElse(null); + } + + @JsonIgnore + public MyAccountGetAccountFeesPaymentCreditCardDto getCreditCard() { + return creditCard.orElse(null); + } + + @JsonIgnore + public MyAccountGetAccountFeesPaymentDebitCardDto getDebitCard() { + return debitCard.orElse(null); + } + + @JsonIgnore + public MyAccountGetAccountFeesPaymentPixDto getPix() { + return pix.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesPaymentDtoBuilder { + + private JsonNullable bankSlip = JsonNullable.undefined(); + + @JsonProperty("bankSlip") + public MyAccountGetAccountFeesPaymentDtoBuilder bankSlip(MyAccountGetAccountFeesPaymentBankSlipDto value) { + this.bankSlip = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCard = JsonNullable.undefined(); + + @JsonProperty("creditCard") + public MyAccountGetAccountFeesPaymentDtoBuilder creditCard(MyAccountGetAccountFeesPaymentCreditCardDto value) { + this.creditCard = JsonNullable.of(value); + return this; + } + + private JsonNullable debitCard = JsonNullable.undefined(); + + @JsonProperty("debitCard") + public MyAccountGetAccountFeesPaymentDtoBuilder debitCard(MyAccountGetAccountFeesPaymentDebitCardDto value) { + this.debitCard = JsonNullable.of(value); + return this; + } + + private JsonNullable pix = JsonNullable.undefined(); + + @JsonProperty("pix") + public MyAccountGetAccountFeesPaymentDtoBuilder pix(MyAccountGetAccountFeesPaymentPixDto value) { + this.pix = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentPixDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentPixDto.java new file mode 100644 index 0000000..71d8015 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentPixDto.java @@ -0,0 +1,181 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Pix Fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesPaymentPixDto { + + /** + * Fixed fee (If any) + */ + @JsonProperty("fixedFeeValue") + private JsonNullable fixedFeeValue; + + /** + * Promotional fixed rate (If any) + */ + @JsonProperty("fixedFeeValueWithDiscount") + private JsonNullable fixedFeeValueWithDiscount; + + /** + * Percentage rate (If any) + */ + @JsonProperty("percentageFee") + private JsonNullable percentageFee; + + /** + * Minimum fixed rate in case of percentage rate + */ + @JsonProperty("minimumFeeValue") + private JsonNullable minimumFeeValue; + + /** + * Maximum fixed rate in case of percentage rate + */ + @JsonProperty("maximumFeeValue") + private JsonNullable maximumFeeValue; + + /** + * Promotional fee expiration date (If any) + */ + @JsonProperty("discountExpiration") + private JsonNullable discountExpiration; + + /** + * Number of free transactions per month + */ + @JsonProperty("monthlyCreditsWithoutFee") + private JsonNullable monthlyCreditsWithoutFee; + + /** + * How many transactions have you received this month? + */ + @JsonProperty("creditsReceivedOfCurrentMonth") + private JsonNullable creditsReceivedOfCurrentMonth; + + @JsonIgnore + public Double getFixedFeeValue() { + return fixedFeeValue.orElse(null); + } + + @JsonIgnore + public Double getFixedFeeValueWithDiscount() { + return fixedFeeValueWithDiscount.orElse(null); + } + + @JsonIgnore + public Double getPercentageFee() { + return percentageFee.orElse(null); + } + + @JsonIgnore + public Double getMinimumFeeValue() { + return minimumFeeValue.orElse(null); + } + + @JsonIgnore + public Double getMaximumFeeValue() { + return maximumFeeValue.orElse(null); + } + + @JsonIgnore + public String getDiscountExpiration() { + return discountExpiration.orElse(null); + } + + @JsonIgnore + public Long getMonthlyCreditsWithoutFee() { + return monthlyCreditsWithoutFee.orElse(null); + } + + @JsonIgnore + public Long getCreditsReceivedOfCurrentMonth() { + return creditsReceivedOfCurrentMonth.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesPaymentPixDtoBuilder { + + private JsonNullable fixedFeeValue = JsonNullable.undefined(); + + @JsonProperty("fixedFeeValue") + public MyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValue(Double value) { + this.fixedFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable fixedFeeValueWithDiscount = JsonNullable.undefined(); + + @JsonProperty("fixedFeeValueWithDiscount") + public MyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValueWithDiscount(Double value) { + this.fixedFeeValueWithDiscount = JsonNullable.of(value); + return this; + } + + private JsonNullable percentageFee = JsonNullable.undefined(); + + @JsonProperty("percentageFee") + public MyAccountGetAccountFeesPaymentPixDtoBuilder percentageFee(Double value) { + this.percentageFee = JsonNullable.of(value); + return this; + } + + private JsonNullable minimumFeeValue = JsonNullable.undefined(); + + @JsonProperty("minimumFeeValue") + public MyAccountGetAccountFeesPaymentPixDtoBuilder minimumFeeValue(Double value) { + this.minimumFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable maximumFeeValue = JsonNullable.undefined(); + + @JsonProperty("maximumFeeValue") + public MyAccountGetAccountFeesPaymentPixDtoBuilder maximumFeeValue(Double value) { + this.maximumFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable discountExpiration = JsonNullable.undefined(); + + @JsonProperty("discountExpiration") + public MyAccountGetAccountFeesPaymentPixDtoBuilder discountExpiration(String value) { + this.discountExpiration = JsonNullable.of(value); + return this; + } + + private JsonNullable monthlyCreditsWithoutFee = JsonNullable.undefined(); + + @JsonProperty("monthlyCreditsWithoutFee") + public MyAccountGetAccountFeesPaymentPixDtoBuilder monthlyCreditsWithoutFee(Long value) { + this.monthlyCreditsWithoutFee = JsonNullable.of(value); + return this; + } + + private JsonNullable creditsReceivedOfCurrentMonth = JsonNullable.undefined(); + + @JsonProperty("creditsReceivedOfCurrentMonth") + public MyAccountGetAccountFeesPaymentPixDtoBuilder creditsReceivedOfCurrentMonth(Long value) { + this.creditsReceivedOfCurrentMonth = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesResponseDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesResponseDto.java new file mode 100644 index 0000000..c4bf86b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesResponseDto.java @@ -0,0 +1,142 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesResponseDto { + + /** + * Billing fees + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * Transfer fees + */ + @JsonProperty("transfer") + private JsonNullable transfer; + + /** + * Notification fees + */ + @JsonProperty("notification") + private JsonNullable notification; + + /** + * Serasa consultation fees + */ + @JsonProperty("creditBureauReport") + private JsonNullable creditBureauReport; + + /** + * Invoice fees + */ + @JsonProperty("invoice") + private JsonNullable invoice; + + /** + * Anticipation fees + */ + @JsonProperty("anticipation") + private JsonNullable anticipation; + + @JsonIgnore + public MyAccountGetAccountFeesPaymentDto getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public MyAccountGetAccountFeesTransferDto getTransfer() { + return transfer.orElse(null); + } + + @JsonIgnore + public MyAccountGetAccountFeesNotificationDto getNotification() { + return notification.orElse(null); + } + + @JsonIgnore + public MyAccountGetAccountFeesCreditBureauReportDto getCreditBureauReport() { + return creditBureauReport.orElse(null); + } + + @JsonIgnore + public MyAccountGetAccountFeesInvoiceDto getInvoice() { + return invoice.orElse(null); + } + + @JsonIgnore + public MyAccountGetAccountFeesAnticipationDto getAnticipation() { + return anticipation.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesResponseDtoBuilder { + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public MyAccountGetAccountFeesResponseDtoBuilder payment(MyAccountGetAccountFeesPaymentDto value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable transfer = JsonNullable.undefined(); + + @JsonProperty("transfer") + public MyAccountGetAccountFeesResponseDtoBuilder transfer(MyAccountGetAccountFeesTransferDto value) { + this.transfer = JsonNullable.of(value); + return this; + } + + private JsonNullable notification = JsonNullable.undefined(); + + @JsonProperty("notification") + public MyAccountGetAccountFeesResponseDtoBuilder notification(MyAccountGetAccountFeesNotificationDto value) { + this.notification = JsonNullable.of(value); + return this; + } + + private JsonNullable creditBureauReport = JsonNullable.undefined(); + + @JsonProperty("creditBureauReport") + public MyAccountGetAccountFeesResponseDtoBuilder creditBureauReport( + MyAccountGetAccountFeesCreditBureauReportDto value + ) { + this.creditBureauReport = JsonNullable.of(value); + return this; + } + + private JsonNullable invoice = JsonNullable.undefined(); + + @JsonProperty("invoice") + public MyAccountGetAccountFeesResponseDtoBuilder invoice(MyAccountGetAccountFeesInvoiceDto value) { + this.invoice = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipation = JsonNullable.undefined(); + + @JsonProperty("anticipation") + public MyAccountGetAccountFeesResponseDtoBuilder anticipation(MyAccountGetAccountFeesAnticipationDto value) { + this.anticipation = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferDto.java new file mode 100644 index 0000000..6fcfe36 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Transfer fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesTransferDto { + + /** + * Number of monthly free transactions + */ + @JsonProperty("monthlyTransfersWithoutFee") + private JsonNullable monthlyTransfersWithoutFee; + + /** + * Fees for TED transfers + */ + @JsonProperty("ted") + private JsonNullable ted; + + /** + * Fees for Pix transfers + */ + @JsonProperty("pix") + private JsonNullable pix; + + @JsonIgnore + public Long getMonthlyTransfersWithoutFee() { + return monthlyTransfersWithoutFee.orElse(null); + } + + @JsonIgnore + public MyAccountGetAccountFeesTransferTedDto getTed() { + return ted.orElse(null); + } + + @JsonIgnore + public MyAccountGetAccountFeesTransferPixDto getPix() { + return pix.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesTransferDtoBuilder { + + private JsonNullable monthlyTransfersWithoutFee = JsonNullable.undefined(); + + @JsonProperty("monthlyTransfersWithoutFee") + public MyAccountGetAccountFeesTransferDtoBuilder monthlyTransfersWithoutFee(Long value) { + this.monthlyTransfersWithoutFee = JsonNullable.of(value); + return this; + } + + private JsonNullable ted = JsonNullable.undefined(); + + @JsonProperty("ted") + public MyAccountGetAccountFeesTransferDtoBuilder ted(MyAccountGetAccountFeesTransferTedDto value) { + this.ted = JsonNullable.of(value); + return this; + } + + private JsonNullable pix = JsonNullable.undefined(); + + @JsonProperty("pix") + public MyAccountGetAccountFeesTransferDtoBuilder pix(MyAccountGetAccountFeesTransferPixDto value) { + this.pix = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferPixDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferPixDto.java new file mode 100644 index 0000000..4ce4660 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferPixDto.java @@ -0,0 +1,105 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Fees for Pix transfers + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesTransferPixDto { + + /** + * Fee for sending transfers via Pix + */ + @JsonProperty("feeValue") + private JsonNullable feeValue; + + /** + * Promotional fee (If any) + */ + @JsonProperty("discountValue") + private JsonNullable discountValue; + + /** + * Promotional fee expiration date (If any) + */ + @JsonProperty("expirationDate") + private JsonNullable expirationDate; + + /** + * Indicates whether the number of free monthly transactions considers Pix + */ + @JsonProperty("consideredInMonthlyTransfersWithoutFee") + private JsonNullable consideredInMonthlyTransfersWithoutFee; + + @JsonIgnore + public Double getFeeValue() { + return feeValue.orElse(null); + } + + @JsonIgnore + public Double getDiscountValue() { + return discountValue.orElse(null); + } + + @JsonIgnore + public String getExpirationDate() { + return expirationDate.orElse(null); + } + + @JsonIgnore + public Boolean getConsideredInMonthlyTransfersWithoutFee() { + return consideredInMonthlyTransfersWithoutFee.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesTransferPixDtoBuilder { + + private JsonNullable feeValue = JsonNullable.undefined(); + + @JsonProperty("feeValue") + public MyAccountGetAccountFeesTransferPixDtoBuilder feeValue(Double value) { + this.feeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable discountValue = JsonNullable.undefined(); + + @JsonProperty("discountValue") + public MyAccountGetAccountFeesTransferPixDtoBuilder discountValue(Double value) { + this.discountValue = JsonNullable.of(value); + return this; + } + + private JsonNullable expirationDate = JsonNullable.undefined(); + + @JsonProperty("expirationDate") + public MyAccountGetAccountFeesTransferPixDtoBuilder expirationDate(String value) { + this.expirationDate = JsonNullable.of(value); + return this; + } + + private JsonNullable consideredInMonthlyTransfersWithoutFee = JsonNullable.undefined(); + + @JsonProperty("consideredInMonthlyTransfersWithoutFee") + public MyAccountGetAccountFeesTransferPixDtoBuilder consideredInMonthlyTransfersWithoutFee(Boolean value) { + this.consideredInMonthlyTransfersWithoutFee = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferTedDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferTedDto.java new file mode 100644 index 0000000..291869e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferTedDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Fees for TED transfers + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountFeesTransferTedDto { + + /** + * Transfer fee via TED + */ + @JsonProperty("feeValue") + private JsonNullable feeValue; + + /** + * Indicates whether the number of monthly free transactions considers TED + */ + @JsonProperty("consideredInMonthlyTransfersWithoutFee") + private JsonNullable consideredInMonthlyTransfersWithoutFee; + + @JsonIgnore + public Double getFeeValue() { + return feeValue.orElse(null); + } + + @JsonIgnore + public Boolean getConsideredInMonthlyTransfersWithoutFee() { + return consideredInMonthlyTransfersWithoutFee.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountFeesTransferTedDtoBuilder { + + private JsonNullable feeValue = JsonNullable.undefined(); + + @JsonProperty("feeValue") + public MyAccountGetAccountFeesTransferTedDtoBuilder feeValue(Double value) { + this.feeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable consideredInMonthlyTransfersWithoutFee = JsonNullable.undefined(); + + @JsonProperty("consideredInMonthlyTransfersWithoutFee") + public MyAccountGetAccountFeesTransferTedDtoBuilder consideredInMonthlyTransfersWithoutFee(Boolean value) { + this.consideredInMonthlyTransfersWithoutFee = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountNumberResponseDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountNumberResponseDto.java new file mode 100644 index 0000000..28a0c61 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountNumberResponseDto.java @@ -0,0 +1,83 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetAccountNumberResponseDto { + + /** + * Account agency + */ + @JsonProperty("agency") + private JsonNullable agency; + + /** + * Account number + */ + @JsonProperty("account") + private JsonNullable account; + + /** + * Account digit + */ + @JsonProperty("accountDigit") + private JsonNullable accountDigit; + + @JsonIgnore + public String getAgency() { + return agency.orElse(null); + } + + @JsonIgnore + public String getAccount() { + return account.orElse(null); + } + + @JsonIgnore + public String getAccountDigit() { + return accountDigit.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetAccountNumberResponseDtoBuilder { + + private JsonNullable agency = JsonNullable.undefined(); + + @JsonProperty("agency") + public MyAccountGetAccountNumberResponseDtoBuilder agency(String value) { + this.agency = JsonNullable.of(value); + return this; + } + + private JsonNullable account = JsonNullable.undefined(); + + @JsonProperty("account") + public MyAccountGetAccountNumberResponseDtoBuilder account(String value) { + this.account = JsonNullable.of(value); + return this; + } + + private JsonNullable accountDigit = JsonNullable.undefined(); + + @JsonProperty("accountDigit") + public MyAccountGetAccountNumberResponseDtoBuilder accountDigit(String value) { + this.accountDigit = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseDto.java new file mode 100644 index 0000000..356548b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseDto.java @@ -0,0 +1,121 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class MyAccountGetStatusResponseDto { + + /** + * Unique account identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Status of sent business data + */ + @JsonProperty("commercialInfo") + private JsonNullable commercialInfo; + + /** + * Status of sent business data + */ + @JsonProperty("bankAccountInfo") + private JsonNullable bankAccountInfo; + + /** + * Status of sent business data + */ + @JsonProperty("documentation") + private JsonNullable documentation; + + /** + * Status of sent business data + */ + @JsonProperty("general") + private JsonNullable general; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public MyAccountGetStatusResponseStatus getCommercialInfo() { + return commercialInfo.orElse(null); + } + + @JsonIgnore + public MyAccountGetStatusResponseStatus getBankAccountInfo() { + return bankAccountInfo.orElse(null); + } + + @JsonIgnore + public MyAccountGetStatusResponseStatus getDocumentation() { + return documentation.orElse(null); + } + + @JsonIgnore + public MyAccountGetStatusResponseStatus getGeneral() { + return general.orElse(null); + } + + // Overwrite lombok builder methods + public static class MyAccountGetStatusResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public MyAccountGetStatusResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable commercialInfo = JsonNullable.undefined(); + + @JsonProperty("commercialInfo") + public MyAccountGetStatusResponseDtoBuilder commercialInfo(MyAccountGetStatusResponseStatus value) { + this.commercialInfo = JsonNullable.of(value); + return this; + } + + private JsonNullable bankAccountInfo = JsonNullable.undefined(); + + @JsonProperty("bankAccountInfo") + public MyAccountGetStatusResponseDtoBuilder bankAccountInfo(MyAccountGetStatusResponseStatus value) { + this.bankAccountInfo = JsonNullable.of(value); + return this; + } + + private JsonNullable documentation = JsonNullable.undefined(); + + @JsonProperty("documentation") + public MyAccountGetStatusResponseDtoBuilder documentation(MyAccountGetStatusResponseStatus value) { + this.documentation = JsonNullable.of(value); + return this; + } + + private JsonNullable general = JsonNullable.undefined(); + + @JsonProperty("general") + public MyAccountGetStatusResponseDtoBuilder general(MyAccountGetStatusResponseStatus value) { + this.general = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseStatus.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseStatus.java new file mode 100644 index 0000000..7eb05fa --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseStatus.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Status of sent business data + */ +@Getter +@AllArgsConstructor +public enum MyAccountGetStatusResponseStatus { + PENDING("PENDING"), + APPROVED("APPROVED"), + REJECTED("REJECTED"), + AWAITING_APPROVAL("AWAITING_APPROVAL"); + + @JsonValue + private final String value; + + @JsonCreator + public static MyAccountGetStatusResponseStatus fromValue(String value) { + return Arrays.stream(MyAccountGetStatusResponseStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateRequestDto.java new file mode 100644 index 0000000..505ec46 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateRequestDto.java @@ -0,0 +1,53 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class NotificationBatchUpdateRequestDto { + + /** + * Unique customer identifier in Asaas + */ + @NonNull + private String customer; + + /** + * List of notification information + */ + @JsonProperty("notifications") + private JsonNullable> notifications; + + @JsonIgnore + public List getNotifications() { + return notifications.orElse(null); + } + + // Overwrite lombok builder methods + public static class NotificationBatchUpdateRequestDtoBuilder { + + private JsonNullable> notifications = JsonNullable.undefined(); + + @JsonProperty("notifications") + public NotificationBatchUpdateRequestDtoBuilder notifications(List value) { + this.notifications = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateResponseDto.java b/src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateResponseDto.java new file mode 100644 index 0000000..0a4a9de --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateResponseDto.java @@ -0,0 +1,46 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class NotificationBatchUpdateResponseDto { + + /** + * List of notification information + */ + @JsonProperty("notifications") + private JsonNullable> notifications; + + @JsonIgnore + public List getNotifications() { + return notifications.orElse(null); + } + + // Overwrite lombok builder methods + public static class NotificationBatchUpdateResponseDtoBuilder { + + private JsonNullable> notifications = JsonNullable.undefined(); + + @JsonProperty("notifications") + public NotificationBatchUpdateResponseDtoBuilder notifications(List value) { + this.notifications = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/NotificationGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/NotificationGetResponseDto.java new file mode 100644 index 0000000..23e2765 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/NotificationGetResponseDto.java @@ -0,0 +1,276 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of notification information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class NotificationGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique notification identifier + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Unique customer identifier + */ + @JsonProperty("customer") + private JsonNullable customer; + + /** + * Indicates whether notification is enabled + */ + @JsonProperty("enabled") + private JsonNullable enabled; + + /** + * Indicates whether the email sent to you is enabled or disabled + */ + @JsonProperty("emailEnabledForProvider") + private JsonNullable emailEnabledForProvider; + + /** + * Indicates whether the SMS sent to you is enabled or disabled + */ + @JsonProperty("smsEnabledForProvider") + private JsonNullable smsEnabledForProvider; + + /** + * Indicates whether the email sent to the customer is enabled or disabled + */ + @JsonProperty("emailEnabledForCustomer") + private JsonNullable emailEnabledForCustomer; + + /** + * Indicates whether the SMS sent to the customer is enabled or disabled + */ + @JsonProperty("smsEnabledForCustomer") + private JsonNullable smsEnabledForCustomer; + + /** + * Indicates whether voice notification to the customer is enabled or disabled + */ + @JsonProperty("phoneCallEnabledForCustomer") + private JsonNullable phoneCallEnabledForCustomer; + + /** + * Indicates whether the WhatsApp notification sent to the customer is enabled or disabled + */ + @JsonProperty("whatsappEnabledForCustomer") + private JsonNullable whatsappEnabledForCustomer; + + /** + * Kind of event + */ + @JsonProperty("event") + private JsonNullable event; + + /** + * Specifies how many days before the due date the notification must be sent. Valid only for the `PAYMENT_DUEDATE_WARNING` and `PAYMENT_OVERDUE` events + */ + @JsonProperty("scheduleOffset") + private JsonNullable scheduleOffset; + + /** + * Indicates whether the notification was deleted + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getCustomer() { + return customer.orElse(null); + } + + @JsonIgnore + public Boolean getEnabled() { + return enabled.orElse(null); + } + + @JsonIgnore + public Boolean getEmailEnabledForProvider() { + return emailEnabledForProvider.orElse(null); + } + + @JsonIgnore + public Boolean getSmsEnabledForProvider() { + return smsEnabledForProvider.orElse(null); + } + + @JsonIgnore + public Boolean getEmailEnabledForCustomer() { + return emailEnabledForCustomer.orElse(null); + } + + @JsonIgnore + public Boolean getSmsEnabledForCustomer() { + return smsEnabledForCustomer.orElse(null); + } + + @JsonIgnore + public Boolean getPhoneCallEnabledForCustomer() { + return phoneCallEnabledForCustomer.orElse(null); + } + + @JsonIgnore + public Boolean getWhatsappEnabledForCustomer() { + return whatsappEnabledForCustomer.orElse(null); + } + + @JsonIgnore + public NotificationGetResponseNotificationEvent getEvent() { + return event.orElse(null); + } + + @JsonIgnore + public NotificationGetResponseDtoScheduleOffset getScheduleOffset() { + return scheduleOffset.orElse(null); + } + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + // Overwrite lombok builder methods + public static class NotificationGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public NotificationGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public NotificationGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable customer = JsonNullable.undefined(); + + @JsonProperty("customer") + public NotificationGetResponseDtoBuilder customer(String value) { + this.customer = JsonNullable.of(value); + return this; + } + + private JsonNullable enabled = JsonNullable.undefined(); + + @JsonProperty("enabled") + public NotificationGetResponseDtoBuilder enabled(Boolean value) { + this.enabled = JsonNullable.of(value); + return this; + } + + private JsonNullable emailEnabledForProvider = JsonNullable.undefined(); + + @JsonProperty("emailEnabledForProvider") + public NotificationGetResponseDtoBuilder emailEnabledForProvider(Boolean value) { + this.emailEnabledForProvider = JsonNullable.of(value); + return this; + } + + private JsonNullable smsEnabledForProvider = JsonNullable.undefined(); + + @JsonProperty("smsEnabledForProvider") + public NotificationGetResponseDtoBuilder smsEnabledForProvider(Boolean value) { + this.smsEnabledForProvider = JsonNullable.of(value); + return this; + } + + private JsonNullable emailEnabledForCustomer = JsonNullable.undefined(); + + @JsonProperty("emailEnabledForCustomer") + public NotificationGetResponseDtoBuilder emailEnabledForCustomer(Boolean value) { + this.emailEnabledForCustomer = JsonNullable.of(value); + return this; + } + + private JsonNullable smsEnabledForCustomer = JsonNullable.undefined(); + + @JsonProperty("smsEnabledForCustomer") + public NotificationGetResponseDtoBuilder smsEnabledForCustomer(Boolean value) { + this.smsEnabledForCustomer = JsonNullable.of(value); + return this; + } + + private JsonNullable phoneCallEnabledForCustomer = JsonNullable.undefined(); + + @JsonProperty("phoneCallEnabledForCustomer") + public NotificationGetResponseDtoBuilder phoneCallEnabledForCustomer(Boolean value) { + this.phoneCallEnabledForCustomer = JsonNullable.of(value); + return this; + } + + private JsonNullable whatsappEnabledForCustomer = JsonNullable.undefined(); + + @JsonProperty("whatsappEnabledForCustomer") + public NotificationGetResponseDtoBuilder whatsappEnabledForCustomer(Boolean value) { + this.whatsappEnabledForCustomer = JsonNullable.of(value); + return this; + } + + private JsonNullable event = JsonNullable.undefined(); + + @JsonProperty("event") + public NotificationGetResponseDtoBuilder event(NotificationGetResponseNotificationEvent value) { + this.event = JsonNullable.of(value); + return this; + } + + private JsonNullable scheduleOffset = JsonNullable.undefined(); + + @JsonProperty("scheduleOffset") + public NotificationGetResponseDtoBuilder scheduleOffset(NotificationGetResponseDtoScheduleOffset value) { + this.scheduleOffset = JsonNullable.of(value); + return this; + } + + private JsonNullable deleted = JsonNullable.of(true); + + @JsonProperty("deleted") + public NotificationGetResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/NotificationGetResponseDtoScheduleOffset.java b/src/main/java/com/asaas/apisdk/models/NotificationGetResponseDtoScheduleOffset.java new file mode 100644 index 0000000..0f59d6e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/NotificationGetResponseDtoScheduleOffset.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Specifies how many days before the due date the notification must be sent. Valid only for the `PAYMENT_DUEDATE_WARNING` and `PAYMENT_OVERDUE` events + */ +@Getter +@AllArgsConstructor +public enum NotificationGetResponseDtoScheduleOffset { + _0(0), + _1(1), + _5(5), + _7(7), + _10(10), + _15(15), + _30(30); + + @JsonValue + private final long value; + + @JsonCreator + public static NotificationGetResponseDtoScheduleOffset fromValue(String value) { + return Arrays.stream(NotificationGetResponseDtoScheduleOffset.values()) + .filter(item -> String.valueOf(item.value).equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/NotificationGetResponseNotificationEvent.java b/src/main/java/com/asaas/apisdk/models/NotificationGetResponseNotificationEvent.java new file mode 100644 index 0000000..2c7ffbb --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/NotificationGetResponseNotificationEvent.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Kind of event + */ +@Getter +@AllArgsConstructor +public enum NotificationGetResponseNotificationEvent { + PAYMENT_CREATED("PAYMENT_CREATED"), + PAYMENT_UPDATED("PAYMENT_UPDATED"), + PAYMENT_RECEIVED("PAYMENT_RECEIVED"), + PAYMENT_OVERDUE("PAYMENT_OVERDUE"), + PAYMENT_DUEDATE_WARNING("PAYMENT_DUEDATE_WARNING"), + SEND_LINHA_DIGITAVEL("SEND_LINHA_DIGITAVEL"); + + @JsonValue + private final String value; + + @JsonCreator + public static NotificationGetResponseNotificationEvent fromValue(String value) { + return Arrays.stream(NotificationGetResponseNotificationEvent.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/NotificationListResponseDto.java b/src/main/java/com/asaas/apisdk/models/NotificationListResponseDto.java new file mode 100644 index 0000000..91e8567 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/NotificationListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class NotificationListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class NotificationListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public NotificationListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public NotificationListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public NotificationListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public NotificationListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public NotificationListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public NotificationListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDto.java new file mode 100644 index 0000000..fc4b4be --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDto.java @@ -0,0 +1,183 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of notification information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class NotificationUpdateRequestDto { + + /** + * Enable/disable notification + */ + @JsonProperty("enabled") + private JsonNullable enabled; + + /** + * enable/disable the email sent to you + */ + @JsonProperty("emailEnabledForProvider") + private JsonNullable emailEnabledForProvider; + + /** + * enable/disable the SMS sent to you + */ + @JsonProperty("smsEnabledForProvider") + private JsonNullable smsEnabledForProvider; + + /** + * enable/disable the email sent to your customer + */ + @JsonProperty("emailEnabledForCustomer") + private JsonNullable emailEnabledForCustomer; + + /** + * enable/disable the SMS sent to your customer + */ + @JsonProperty("smsEnabledForCustomer") + private JsonNullable smsEnabledForCustomer; + + /** + * enable/disable voice notification sent to your customer + */ + @JsonProperty("phoneCallEnabledForCustomer") + private JsonNullable phoneCallEnabledForCustomer; + + /** + * enable/disable WhatsApp messages for your customer + */ + @JsonProperty("whatsappEnabledForCustomer") + private JsonNullable whatsappEnabledForCustomer; + + /** + * Specifies how many days before the due date the notification must be sent. + * For the `PAYMENT_DUEDATE_WARNING` event, the accepted values are: `0`, `5`, `10`, `15` and `30` + * For the `PAYMENT_OVERDUE` event, the accepted values are: `1`, `7`, `15` and `30` + */ + @JsonProperty("scheduleOffset") + private JsonNullable scheduleOffset; + + @JsonIgnore + public Boolean getEnabled() { + return enabled.orElse(null); + } + + @JsonIgnore + public Boolean getEmailEnabledForProvider() { + return emailEnabledForProvider.orElse(null); + } + + @JsonIgnore + public Boolean getSmsEnabledForProvider() { + return smsEnabledForProvider.orElse(null); + } + + @JsonIgnore + public Boolean getEmailEnabledForCustomer() { + return emailEnabledForCustomer.orElse(null); + } + + @JsonIgnore + public Boolean getSmsEnabledForCustomer() { + return smsEnabledForCustomer.orElse(null); + } + + @JsonIgnore + public Boolean getPhoneCallEnabledForCustomer() { + return phoneCallEnabledForCustomer.orElse(null); + } + + @JsonIgnore + public Boolean getWhatsappEnabledForCustomer() { + return whatsappEnabledForCustomer.orElse(null); + } + + @JsonIgnore + public NotificationUpdateRequestDtoScheduleOffset getScheduleOffset() { + return scheduleOffset.orElse(null); + } + + // Overwrite lombok builder methods + public static class NotificationUpdateRequestDtoBuilder { + + private JsonNullable enabled = JsonNullable.undefined(); + + @JsonProperty("enabled") + public NotificationUpdateRequestDtoBuilder enabled(Boolean value) { + this.enabled = JsonNullable.of(value); + return this; + } + + private JsonNullable emailEnabledForProvider = JsonNullable.undefined(); + + @JsonProperty("emailEnabledForProvider") + public NotificationUpdateRequestDtoBuilder emailEnabledForProvider(Boolean value) { + this.emailEnabledForProvider = JsonNullable.of(value); + return this; + } + + private JsonNullable smsEnabledForProvider = JsonNullable.undefined(); + + @JsonProperty("smsEnabledForProvider") + public NotificationUpdateRequestDtoBuilder smsEnabledForProvider(Boolean value) { + this.smsEnabledForProvider = JsonNullable.of(value); + return this; + } + + private JsonNullable emailEnabledForCustomer = JsonNullable.undefined(); + + @JsonProperty("emailEnabledForCustomer") + public NotificationUpdateRequestDtoBuilder emailEnabledForCustomer(Boolean value) { + this.emailEnabledForCustomer = JsonNullable.of(value); + return this; + } + + private JsonNullable smsEnabledForCustomer = JsonNullable.undefined(); + + @JsonProperty("smsEnabledForCustomer") + public NotificationUpdateRequestDtoBuilder smsEnabledForCustomer(Boolean value) { + this.smsEnabledForCustomer = JsonNullable.of(value); + return this; + } + + private JsonNullable phoneCallEnabledForCustomer = JsonNullable.undefined(); + + @JsonProperty("phoneCallEnabledForCustomer") + public NotificationUpdateRequestDtoBuilder phoneCallEnabledForCustomer(Boolean value) { + this.phoneCallEnabledForCustomer = JsonNullable.of(value); + return this; + } + + private JsonNullable whatsappEnabledForCustomer = JsonNullable.undefined(); + + @JsonProperty("whatsappEnabledForCustomer") + public NotificationUpdateRequestDtoBuilder whatsappEnabledForCustomer(Boolean value) { + this.whatsappEnabledForCustomer = JsonNullable.of(value); + return this; + } + + private JsonNullable scheduleOffset = JsonNullable.undefined(); + + @JsonProperty("scheduleOffset") + public NotificationUpdateRequestDtoBuilder scheduleOffset(NotificationUpdateRequestDtoScheduleOffset value) { + this.scheduleOffset = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDtoScheduleOffset.java b/src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDtoScheduleOffset.java new file mode 100644 index 0000000..808c3a6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDtoScheduleOffset.java @@ -0,0 +1,37 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Specifies how many days before the due date the notification must be sent. + * For the `PAYMENT_DUEDATE_WARNING` event, the accepted values are: `0`, `5`, `10`, `15` and `30` + * For the `PAYMENT_OVERDUE` event, the accepted values are: `1`, `7`, `15` and `30` + */ +@Getter +@AllArgsConstructor +public enum NotificationUpdateRequestDtoScheduleOffset { + _0(0), + _1(1), + _5(5), + _7(7), + _10(10), + _15(15), + _30(30); + + @JsonValue + private final long value; + + @JsonCreator + public static NotificationUpdateRequestDtoScheduleOffset fromValue(String value) { + return Arrays.stream(NotificationUpdateRequestDtoScheduleOffset.values()) + .filter(item -> String.valueOf(item.value).equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentBankSlipRefundResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentBankSlipRefundResponseDto.java new file mode 100644 index 0000000..949bca3 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentBankSlipRefundResponseDto.java @@ -0,0 +1,45 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentBankSlipRefundResponseDto { + + /** + * Link to report refund details + */ + @JsonProperty("requestUrl") + private JsonNullable requestUrl; + + @JsonIgnore + public String getRequestUrl() { + return requestUrl.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentBankSlipRefundResponseDtoBuilder { + + private JsonNullable requestUrl = JsonNullable.undefined(); + + @JsonProperty("requestUrl") + public PaymentBankSlipRefundResponseDtoBuilder requestUrl(String value) { + this.requestUrl = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentBillingInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentBillingInfoResponseDto.java new file mode 100644 index 0000000..eadb76d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentBillingInfoResponseDto.java @@ -0,0 +1,80 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentBillingInfoResponseDto { + + /** + * Payment data related to pix + */ + @JsonProperty("pix") + private JsonNullable pix; + + @JsonProperty("creditCard") + private JsonNullable creditCard; + + /** + * Payment data related to bank slip + */ + @JsonProperty("bankSlip") + private JsonNullable bankSlip; + + @JsonIgnore + public PaymentPixQrCodeResponseDto getPix() { + return pix.orElse(null); + } + + @JsonIgnore + public CreditCardTokenizeResponseDto getCreditCard() { + return creditCard.orElse(null); + } + + @JsonIgnore + public BankSlipBillingInfoResponseDto getBankSlip() { + return bankSlip.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentBillingInfoResponseDtoBuilder { + + private JsonNullable pix = JsonNullable.undefined(); + + @JsonProperty("pix") + public PaymentBillingInfoResponseDtoBuilder pix(PaymentPixQrCodeResponseDto value) { + this.pix = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCard = JsonNullable.undefined(); + + @JsonProperty("creditCard") + public PaymentBillingInfoResponseDtoBuilder creditCard(CreditCardTokenizeResponseDto value) { + this.creditCard = JsonNullable.of(value); + return this; + } + + private JsonNullable bankSlip = JsonNullable.undefined(); + + @JsonProperty("bankSlip") + public PaymentBillingInfoResponseDtoBuilder bankSlip(BankSlipBillingInfoResponseDto value) { + this.bankSlip = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentCallbackRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentCallbackRequestDto.java new file mode 100644 index 0000000..085f9e3 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentCallbackRequestDto.java @@ -0,0 +1,55 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Automatic redirection information after the payment of the link payment + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentCallbackRequestDto { + + /** + * URL that the customer will be redirected to after successful payment of the invoice or payment link + */ + @NonNull + private String successUrl; + + /** + * Define whether the customer will be automatically redirected or will just be informed with a button to return to the website. The default is true, if you want to disable it, enter false + */ + @JsonProperty("autoRedirect") + private JsonNullable autoRedirect; + + @JsonIgnore + public Boolean getAutoRedirect() { + return autoRedirect.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentCallbackRequestDtoBuilder { + + private JsonNullable autoRedirect = JsonNullable.undefined(); + + @JsonProperty("autoRedirect") + public PaymentCallbackRequestDtoBuilder autoRedirect(Boolean value) { + this.autoRedirect = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackDisputeStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackDisputeStatus.java new file mode 100644 index 0000000..63ced6a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackDisputeStatus.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Chargeback dispute status. + */ +@Getter +@AllArgsConstructor +public enum PaymentChargebackResponseChargebackDisputeStatus { + REQUESTED("REQUESTED"), + ACCEPTED("ACCEPTED"), + REJECTED("REJECTED"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentChargebackResponseChargebackDisputeStatus fromValue(String value) { + return Arrays.stream(PaymentChargebackResponseChargebackDisputeStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackReason.java b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackReason.java new file mode 100644 index 0000000..f8c045b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackReason.java @@ -0,0 +1,60 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Chargeback reason + */ +@Getter +@AllArgsConstructor +public enum PaymentChargebackResponseChargebackReason { + ABSENCE_OF_PRINT("ABSENCE_OF_PRINT"), + ABSENT_CARD_FRAUD("ABSENT_CARD_FRAUD"), + CARD_ACTIVATED_PHONE_TRANSACTION("CARD_ACTIVATED_PHONE_TRANSACTION"), + CARD_FRAUD("CARD_FRAUD"), + CARD_RECOVERY_BULLETIN("CARD_RECOVERY_BULLETIN"), + COMMERCIAL_DISAGREEMENT("COMMERCIAL_DISAGREEMENT"), + COPY_NOT_RECEIVED("COPY_NOT_RECEIVED"), + CREDIT_OR_DEBIT_PRESENTATION_ERROR("CREDIT_OR_DEBIT_PRESENTATION_ERROR"), + DIFFERENT_PAY_METHOD("DIFFERENT_PAY_METHOD"), + FRAUD("FRAUD"), + INCORRECT_TRANSACTION_VALUE("INCORRECT_TRANSACTION_VALUE"), + INVALID_CURRENCY("INVALID_CURRENCY"), + INVALID_DATA("INVALID_DATA"), + LATE_PRESENTATION("LATE_PRESENTATION"), + LOCAL_REGULATORY_OR_LEGAL_DISPUTE("LOCAL_REGULATORY_OR_LEGAL_DISPUTE"), + MULTIPLE_ROCS("MULTIPLE_ROCS"), + ORIGINAL_CREDIT_TRANSACTION_NOT_ACCEPTED("ORIGINAL_CREDIT_TRANSACTION_NOT_ACCEPTED"), + OTHER_ABSENT_CARD_FRAUD("OTHER_ABSENT_CARD_FRAUD"), + PROCESS_ERROR("PROCESS_ERROR"), + RECEIVED_COPY_ILLEGIBLE_OR_INCOMPLETE("RECEIVED_COPY_ILLEGIBLE_OR_INCOMPLETE"), + RECURRENCE_CANCELED("RECURRENCE_CANCELED"), + REQUIRED_AUTHORIZATION_NOT_GRANTED("REQUIRED_AUTHORIZATION_NOT_GRANTED"), + RIGHT_OF_FULL_RECOURSE_FOR_FRAUD("RIGHT_OF_FULL_RECOURSE_FOR_FRAUD"), + SALE_CANCELED("SALE_CANCELED"), + SERVICE_DISAGREEMENT_OR_DEFECTIVE_PRODUCT("SERVICE_DISAGREEMENT_OR_DEFECTIVE_PRODUCT"), + SERVICE_NOT_RECEIVED("SERVICE_NOT_RECEIVED"), + SPLIT_SALE("SPLIT_SALE"), + TRANSFERS_OF_DIVERSE_RESPONSIBILITIES("TRANSFERS_OF_DIVERSE_RESPONSIBILITIES"), + UNQUALIFIED_CAR_RENTAL_DEBIT("UNQUALIFIED_CAR_RENTAL_DEBIT"), + USA_CARDHOLDER_DISPUTE("USA_CARDHOLDER_DISPUTE"), + VISA_FRAUD_MONITORING_PROGRAM("VISA_FRAUD_MONITORING_PROGRAM"), + WARNING_BULLETIN_FILE("WARNING_BULLETIN_FILE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentChargebackResponseChargebackReason fromValue(String value) { + return Arrays.stream(PaymentChargebackResponseChargebackReason.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackStatus.java new file mode 100644 index 0000000..15234bf --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackStatus.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Chargeback status + */ +@Getter +@AllArgsConstructor +public enum PaymentChargebackResponseChargebackStatus { + REQUESTED("REQUESTED"), + IN_DISPUTE("IN_DISPUTE"), + DISPUTE_LOST("DISPUTE_LOST"), + REVERSED("REVERSED"), + DONE("DONE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentChargebackResponseChargebackStatus fromValue(String value) { + return Arrays.stream(PaymentChargebackResponseChargebackStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseDto.java new file mode 100644 index 0000000..42feea9 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseDto.java @@ -0,0 +1,254 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentChargebackResponseDto { + + /** + * Unique chargeback identifier. + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Unique payment identifier in Asaas + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * Unique installment identifier in Asaas + */ + @JsonProperty("installment") + private JsonNullable installment; + + /** + * Unique identifier of customer to which the chargeback is linked. + */ + @JsonProperty("customerAccount") + private JsonNullable customerAccount; + + /** + * Chargeback status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Chargeback reason + */ + @JsonProperty("reason") + private JsonNullable reason; + + /** + * Chargeback opening date. + */ + @JsonProperty("disputeStartDate") + private JsonNullable disputeStartDate; + + /** + * Chargeback value. + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Payment date on Asaas + */ + @JsonProperty("paymentDate") + private JsonNullable paymentDate; + + /** + * Credit card information + */ + @JsonProperty("creditCard") + private JsonNullable creditCard; + + /** + * Chargeback dispute status. + */ + @JsonProperty("disputeStatus") + private JsonNullable disputeStatus; + + /** + * Deadline to send dispute documents. + */ + @JsonProperty("deadlineToSendDisputeDocuments") + private JsonNullable deadlineToSendDisputeDocuments; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public String getInstallment() { + return installment.orElse(null); + } + + @JsonIgnore + public String getCustomerAccount() { + return customerAccount.orElse(null); + } + + @JsonIgnore + public PaymentChargebackResponseChargebackStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public PaymentChargebackResponseChargebackReason getReason() { + return reason.orElse(null); + } + + @JsonIgnore + public String getDisputeStartDate() { + return disputeStartDate.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getPaymentDate() { + return paymentDate.orElse(null); + } + + @JsonIgnore + public ChargebackCreditCardResponseDto getCreditCard() { + return creditCard.orElse(null); + } + + @JsonIgnore + public PaymentChargebackResponseChargebackDisputeStatus getDisputeStatus() { + return disputeStatus.orElse(null); + } + + @JsonIgnore + public String getDeadlineToSendDisputeDocuments() { + return deadlineToSendDisputeDocuments.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentChargebackResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentChargebackResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public PaymentChargebackResponseDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public PaymentChargebackResponseDtoBuilder installment(String value) { + this.installment = JsonNullable.of(value); + return this; + } + + private JsonNullable customerAccount = JsonNullable.undefined(); + + @JsonProperty("customerAccount") + public PaymentChargebackResponseDtoBuilder customerAccount(String value) { + this.customerAccount = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentChargebackResponseDtoBuilder status(PaymentChargebackResponseChargebackStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable reason = JsonNullable.undefined(); + + @JsonProperty("reason") + public PaymentChargebackResponseDtoBuilder reason(PaymentChargebackResponseChargebackReason value) { + this.reason = JsonNullable.of(value); + return this; + } + + private JsonNullable disputeStartDate = JsonNullable.undefined(); + + @JsonProperty("disputeStartDate") + public PaymentChargebackResponseDtoBuilder disputeStartDate(String value) { + this.disputeStartDate = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentChargebackResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentDate = JsonNullable.undefined(); + + @JsonProperty("paymentDate") + public PaymentChargebackResponseDtoBuilder paymentDate(String value) { + this.paymentDate = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCard = JsonNullable.undefined(); + + @JsonProperty("creditCard") + public PaymentChargebackResponseDtoBuilder creditCard(ChargebackCreditCardResponseDto value) { + this.creditCard = JsonNullable.of(value); + return this; + } + + private JsonNullable disputeStatus = JsonNullable.undefined(); + + @JsonProperty("disputeStatus") + public PaymentChargebackResponseDtoBuilder disputeStatus(PaymentChargebackResponseChargebackDisputeStatus value) { + this.disputeStatus = JsonNullable.of(value); + return this; + } + + private JsonNullable deadlineToSendDisputeDocuments = JsonNullable.undefined(); + + @JsonProperty("deadlineToSendDisputeDocuments") + public PaymentChargebackResponseDtoBuilder deadlineToSendDisputeDocuments(String value) { + this.deadlineToSendDisputeDocuments = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseDto.java new file mode 100644 index 0000000..7685e90 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseDto.java @@ -0,0 +1,180 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentCheckoutConfigGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Logo background color + */ + @JsonProperty("logoBackgroundColor") + private JsonNullable logoBackgroundColor; + + /** + * Background color of your information + */ + @JsonProperty("infoBackgroundColor") + private JsonNullable infoBackgroundColor; + + /** + * Font color of your information + */ + @JsonProperty("fontColor") + private JsonNullable fontColor; + + /** + * Indicates whether personalization is enabled + */ + @JsonProperty("enabled") + private JsonNullable enabled; + + /** + * Logo download link + */ + @JsonProperty("logoUrl") + private JsonNullable logoUrl; + + /** + * Invoice personalization analysis notes + */ + @JsonProperty("observations") + private JsonNullable observations; + + /** + * Invoice personalization status + */ + @JsonProperty("status") + private JsonNullable status; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getLogoBackgroundColor() { + return logoBackgroundColor.orElse(null); + } + + @JsonIgnore + public String getInfoBackgroundColor() { + return infoBackgroundColor.orElse(null); + } + + @JsonIgnore + public String getFontColor() { + return fontColor.orElse(null); + } + + @JsonIgnore + public Boolean getEnabled() { + return enabled.orElse(null); + } + + @JsonIgnore + public String getLogoUrl() { + return logoUrl.orElse(null); + } + + @JsonIgnore + public String getObservations() { + return observations.orElse(null); + } + + @JsonIgnore + public PaymentCheckoutConfigGetResponseInvoiceConfigStatus getStatus() { + return status.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentCheckoutConfigGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentCheckoutConfigGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable logoBackgroundColor = JsonNullable.undefined(); + + @JsonProperty("logoBackgroundColor") + public PaymentCheckoutConfigGetResponseDtoBuilder logoBackgroundColor(String value) { + this.logoBackgroundColor = JsonNullable.of(value); + return this; + } + + private JsonNullable infoBackgroundColor = JsonNullable.undefined(); + + @JsonProperty("infoBackgroundColor") + public PaymentCheckoutConfigGetResponseDtoBuilder infoBackgroundColor(String value) { + this.infoBackgroundColor = JsonNullable.of(value); + return this; + } + + private JsonNullable fontColor = JsonNullable.undefined(); + + @JsonProperty("fontColor") + public PaymentCheckoutConfigGetResponseDtoBuilder fontColor(String value) { + this.fontColor = JsonNullable.of(value); + return this; + } + + private JsonNullable enabled = JsonNullable.of(true); + + @JsonProperty("enabled") + public PaymentCheckoutConfigGetResponseDtoBuilder enabled(Boolean value) { + this.enabled = JsonNullable.of(value); + return this; + } + + private JsonNullable logoUrl = JsonNullable.undefined(); + + @JsonProperty("logoUrl") + public PaymentCheckoutConfigGetResponseDtoBuilder logoUrl(String value) { + this.logoUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable observations = JsonNullable.undefined(); + + @JsonProperty("observations") + public PaymentCheckoutConfigGetResponseDtoBuilder observations(String value) { + this.observations = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentCheckoutConfigGetResponseDtoBuilder status( + PaymentCheckoutConfigGetResponseInvoiceConfigStatus value + ) { + this.status = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.java new file mode 100644 index 0000000..3726b50 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Invoice personalization status + */ +@Getter +@AllArgsConstructor +public enum PaymentCheckoutConfigGetResponseInvoiceConfigStatus { + AWAITING_APPROVAL("AWAITING_APPROVAL"), + APPROVED("APPROVED"), + REJECTED("REJECTED"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentCheckoutConfigGetResponseInvoiceConfigStatus fromValue(String value) { + return Arrays.stream(PaymentCheckoutConfigGetResponseInvoiceConfigStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigSaveRequestDto.java new file mode 100644 index 0000000..779bf71 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigSaveRequestDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentCheckoutConfigSaveRequestDto { + + /** + * Logo background color + */ + @NonNull + private String logoBackgroundColor; + + /** + * Background color of your information + */ + @NonNull + private String infoBackgroundColor; + + /** + * Font color of your information + */ + @NonNull + private String fontColor; + + /** + * Indicates whether personalization is enabled + */ + @JsonProperty("enabled") + private JsonNullable enabled; + + /** + * File + */ + @JsonProperty("logoFile") + private JsonNullable logoFile; + + @JsonIgnore + public Boolean getEnabled() { + return enabled.orElse(null); + } + + @JsonIgnore + public byte[] getLogoFile() { + return logoFile.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentCheckoutConfigSaveRequestDtoBuilder { + + private JsonNullable enabled = JsonNullable.undefined(); + + @JsonProperty("enabled") + public PaymentCheckoutConfigSaveRequestDtoBuilder enabled(Boolean value) { + this.enabled = JsonNullable.of(value); + return this; + } + + private JsonNullable logoFile = JsonNullable.undefined(); + + @JsonProperty("logoFile") + public PaymentCheckoutConfigSaveRequestDtoBuilder logoFile(byte[] value) { + if (value == null) { + throw new IllegalStateException("logoFile cannot be null"); + } + this.logoFile = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDeleteResponseDto.java new file mode 100644 index 0000000..407982e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDeleteResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDeleteResponseDto { + + /** + * Indicates whether the charge has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Unique payment identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDeleteResponseDtoBuilder { + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public PaymentDeleteResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentDeleteResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDiscountDiscountType.java b/src/main/java/com/asaas/apisdk/models/PaymentDiscountDiscountType.java new file mode 100644 index 0000000..c6f5b10 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDiscountDiscountType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Discount type + */ +@Getter +@AllArgsConstructor +public enum PaymentDiscountDiscountType { + FIXED("FIXED"), + PERCENTAGE("PERCENTAGE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDiscountDiscountType fromValue(String value) { + return Arrays.stream(PaymentDiscountDiscountType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDiscountDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDiscountDto.java new file mode 100644 index 0000000..dc3a689 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDiscountDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Discount information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDiscountDto { + + /** + * Percentage or fixed amount of discount to be applied to the Payment amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Days before expiration to apply discount. Ex: 0 = until expiration, 1 = up to one day before, 2 = up to 2 days before, and so on + */ + @JsonProperty("dueDateLimitDays") + private JsonNullable dueDateLimitDays; + + /** + * Discount type + */ + @JsonProperty("type") + private JsonNullable type; + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Long getDueDateLimitDays() { + return dueDateLimitDays.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDiscountType getType() { + return type.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDiscountDtoBuilder { + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentDiscountDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDateLimitDays = JsonNullable.undefined(); + + @JsonProperty("dueDateLimitDays") + public PaymentDiscountDtoBuilder dueDateLimitDays(Long value) { + this.dueDateLimitDays = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public PaymentDiscountDtoBuilder type(PaymentDiscountDiscountType value) { + this.type = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDocumentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentDeleteResponseDto.java new file mode 100644 index 0000000..68447d5 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentDeleteResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDocumentDeleteResponseDto { + + /** + * Indicates whether the file was removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Unique document identifier + */ + @JsonProperty("id") + private JsonNullable id; + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDocumentDeleteResponseDtoBuilder { + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public PaymentDocumentDeleteResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentDocumentDeleteResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDocumentFileResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentFileResponseDto.java new file mode 100644 index 0000000..29f3fe7 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentFileResponseDto.java @@ -0,0 +1,143 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * File object + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDocumentFileResponseDto { + + /** + * Unique document identifier + */ + @JsonProperty("publicId") + private JsonNullable publicId; + + /** + * Original document name + */ + @JsonProperty("originalName") + private JsonNullable originalName; + + /** + * File size + */ + @JsonProperty("size") + private JsonNullable size; + + /** + * File extension + */ + @JsonProperty("extension") + private JsonNullable extension; + + /** + * Link to download the file preview + */ + @JsonProperty("previewUrl") + private JsonNullable previewUrl; + + /** + * Link to download the file + */ + @JsonProperty("downloadUrl") + private JsonNullable downloadUrl; + + @JsonIgnore + public String getPublicId() { + return publicId.orElse(null); + } + + @JsonIgnore + public String getOriginalName() { + return originalName.orElse(null); + } + + @JsonIgnore + public Long getSize() { + return size.orElse(null); + } + + @JsonIgnore + public String getExtension() { + return extension.orElse(null); + } + + @JsonIgnore + public String getPreviewUrl() { + return previewUrl.orElse(null); + } + + @JsonIgnore + public String getDownloadUrl() { + return downloadUrl.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDocumentFileResponseDtoBuilder { + + private JsonNullable publicId = JsonNullable.undefined(); + + @JsonProperty("publicId") + public PaymentDocumentFileResponseDtoBuilder publicId(String value) { + this.publicId = JsonNullable.of(value); + return this; + } + + private JsonNullable originalName = JsonNullable.undefined(); + + @JsonProperty("originalName") + public PaymentDocumentFileResponseDtoBuilder originalName(String value) { + this.originalName = JsonNullable.of(value); + return this; + } + + private JsonNullable size = JsonNullable.undefined(); + + @JsonProperty("size") + public PaymentDocumentFileResponseDtoBuilder size(Long value) { + this.size = JsonNullable.of(value); + return this; + } + + private JsonNullable extension = JsonNullable.undefined(); + + @JsonProperty("extension") + public PaymentDocumentFileResponseDtoBuilder extension(String value) { + this.extension = JsonNullable.of(value); + return this; + } + + private JsonNullable previewUrl = JsonNullable.undefined(); + + @JsonProperty("previewUrl") + public PaymentDocumentFileResponseDtoBuilder previewUrl(String value) { + this.previewUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable downloadUrl = JsonNullable.undefined(); + + @JsonProperty("downloadUrl") + public PaymentDocumentFileResponseDtoBuilder downloadUrl(String value) { + this.downloadUrl = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponseDto.java new file mode 100644 index 0000000..581765f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponseDto.java @@ -0,0 +1,159 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDocumentGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique document identifier + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Document name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Document type + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Available only after payment + */ + @JsonProperty("availableAfterPayment") + private JsonNullable availableAfterPayment; + + /** + * File object + */ + @JsonProperty("file") + private JsonNullable file; + + /** + * Indicates whether the file was removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public PaymentDocumentGetResponsePaymentDocumentType getType() { + return type.orElse(null); + } + + @JsonIgnore + public Boolean getAvailableAfterPayment() { + return availableAfterPayment.orElse(null); + } + + @JsonIgnore + public PaymentDocumentFileResponseDto getFile() { + return file.orElse(null); + } + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDocumentGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentDocumentGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentDocumentGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public PaymentDocumentGetResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public PaymentDocumentGetResponseDtoBuilder type(PaymentDocumentGetResponsePaymentDocumentType value) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable availableAfterPayment = JsonNullable.undefined(); + + @JsonProperty("availableAfterPayment") + public PaymentDocumentGetResponseDtoBuilder availableAfterPayment(Boolean value) { + this.availableAfterPayment = JsonNullable.of(value); + return this; + } + + private JsonNullable file = JsonNullable.undefined(); + + @JsonProperty("file") + public PaymentDocumentGetResponseDtoBuilder file(PaymentDocumentFileResponseDto value) { + this.file = JsonNullable.of(value); + return this; + } + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public PaymentDocumentGetResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponsePaymentDocumentType.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponsePaymentDocumentType.java new file mode 100644 index 0000000..3555438 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponsePaymentDocumentType.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Document type + */ +@Getter +@AllArgsConstructor +public enum PaymentDocumentGetResponsePaymentDocumentType { + INVOICE("INVOICE"), + CONTRACT("CONTRACT"), + MEDIA("MEDIA"), + DOCUMENT("DOCUMENT"), + SPREADSHEET("SPREADSHEET"), + PROGRAM("PROGRAM"), + OTHER("OTHER"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDocumentGetResponsePaymentDocumentType fromValue(String value) { + return Arrays.stream(PaymentDocumentGetResponsePaymentDocumentType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDocumentListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentListResponseDto.java new file mode 100644 index 0000000..06ce341 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDocumentListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDocumentListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentDocumentListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PaymentDocumentListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PaymentDocumentListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentDocumentListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PaymentDocumentListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PaymentDocumentListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestDto.java new file mode 100644 index 0000000..99d0828 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestDto.java @@ -0,0 +1,38 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDocumentSaveRequestDto { + + /** + * true to make the file available only after receipt of the payment + */ + @NonNull + private Boolean availableAfterPayment; + + /** + * Document type + */ + @NonNull + private PaymentDocumentSaveRequestPaymentDocumentType type; + + /** + * File + */ + @NonNull + private byte[] file; +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestPaymentDocumentType.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestPaymentDocumentType.java new file mode 100644 index 0000000..2ffd39b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestPaymentDocumentType.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Document type + */ +@Getter +@AllArgsConstructor +public enum PaymentDocumentSaveRequestPaymentDocumentType { + INVOICE("INVOICE"), + CONTRACT("CONTRACT"), + MEDIA("MEDIA"), + DOCUMENT("DOCUMENT"), + SPREADSHEET("SPREADSHEET"), + PROGRAM("PROGRAM"), + OTHER("OTHER"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDocumentSaveRequestPaymentDocumentType fromValue(String value) { + return Arrays.stream(PaymentDocumentSaveRequestPaymentDocumentType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestDto.java new file mode 100644 index 0000000..a2ff6da --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestDto.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDocumentUpdateRequestDto { + + /** + * true to make the file available only after receipt of the payment + */ + @NonNull + private Boolean availableAfterPayment; + + /** + * Document type + */ + @NonNull + private PaymentDocumentUpdateRequestPaymentDocumentType type; +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestPaymentDocumentType.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestPaymentDocumentType.java new file mode 100644 index 0000000..37be5c9 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestPaymentDocumentType.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Document type + */ +@Getter +@AllArgsConstructor +public enum PaymentDocumentUpdateRequestPaymentDocumentType { + INVOICE("INVOICE"), + CONTRACT("CONTRACT"), + MEDIA("MEDIA"), + DOCUMENT("DOCUMENT"), + SPREADSHEET("SPREADSHEET"), + PROGRAM("PROGRAM"), + OTHER("OTHER"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDocumentUpdateRequestPaymentDocumentType fromValue(String value) { + return Arrays.stream(PaymentDocumentUpdateRequestPaymentDocumentType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponseDto.java new file mode 100644 index 0000000..04963ac --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponseDto.java @@ -0,0 +1,330 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningCancelResponseDto { + + /** + * Unique identifier of the payment dunning in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Payment dunning number + */ + @JsonProperty("dunningNumber") + private JsonNullable dunningNumber; + + /** + * Payment dunning status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Type of payment dunning + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Unique identifier of the payment to be recovered in Asaas + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * Request date + */ + @JsonProperty("requestDate") + private JsonNullable requestDate; + + /** + * Description of the payment dunning + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Payment amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Cost and/or payment dunning fee + */ + @JsonProperty("feeValue") + private JsonNullable feeValue; + + /** + * Net amount to be recovered + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Cash receipt fee + */ + @JsonProperty("receivedInCashFeeValue") + private JsonNullable receivedInCashFeeValue; + + /** + * Reason for denial of payment dunning + */ + @JsonProperty("denialReason") + private JsonNullable denialReason; + + /** + * Fee charged in case of cancellation + */ + @JsonProperty("cancellationFeeValue") + private JsonNullable cancellationFeeValue; + + /** + * Whether the payment dunning can be canceled + */ + @JsonProperty("canBeCancelled") + private JsonNullable canBeCancelled; + + /** + * Reason for not being able to request cancellation + */ + @JsonProperty("cannotBeCancelledReason") + private JsonNullable cannotBeCancelledReason; + + /** + * Determine whether documentation needs to be resubmitted + */ + @JsonProperty("isNecessaryResendDocumentation") + private JsonNullable isNecessaryResendDocumentation; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public Long getDunningNumber() { + return dunningNumber.orElse(null); + } + + @JsonIgnore + public PaymentDunningCancelResponsePaymentDunningStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public PaymentDunningCancelResponsePaymentDunningType getType() { + return type.orElse(null); + } + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public String getRequestDate() { + return requestDate.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getFeeValue() { + return feeValue.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getReceivedInCashFeeValue() { + return receivedInCashFeeValue.orElse(null); + } + + @JsonIgnore + public String getDenialReason() { + return denialReason.orElse(null); + } + + @JsonIgnore + public Double getCancellationFeeValue() { + return cancellationFeeValue.orElse(null); + } + + @JsonIgnore + public Boolean getCanBeCancelled() { + return canBeCancelled.orElse(null); + } + + @JsonIgnore + public String getCannotBeCancelledReason() { + return cannotBeCancelledReason.orElse(null); + } + + @JsonIgnore + public Boolean getIsNecessaryResendDocumentation() { + return isNecessaryResendDocumentation.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningCancelResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentDunningCancelResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable dunningNumber = JsonNullable.undefined(); + + @JsonProperty("dunningNumber") + public PaymentDunningCancelResponseDtoBuilder dunningNumber(Long value) { + this.dunningNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentDunningCancelResponseDtoBuilder status(PaymentDunningCancelResponsePaymentDunningStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public PaymentDunningCancelResponseDtoBuilder type(PaymentDunningCancelResponsePaymentDunningType value) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public PaymentDunningCancelResponseDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable requestDate = JsonNullable.undefined(); + + @JsonProperty("requestDate") + public PaymentDunningCancelResponseDtoBuilder requestDate(String value) { + this.requestDate = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentDunningCancelResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentDunningCancelResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable feeValue = JsonNullable.undefined(); + + @JsonProperty("feeValue") + public PaymentDunningCancelResponseDtoBuilder feeValue(Double value) { + this.feeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public PaymentDunningCancelResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable receivedInCashFeeValue = JsonNullable.undefined(); + + @JsonProperty("receivedInCashFeeValue") + public PaymentDunningCancelResponseDtoBuilder receivedInCashFeeValue(Double value) { + this.receivedInCashFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable denialReason = JsonNullable.undefined(); + + @JsonProperty("denialReason") + public PaymentDunningCancelResponseDtoBuilder denialReason(String value) { + this.denialReason = JsonNullable.of(value); + return this; + } + + private JsonNullable cancellationFeeValue = JsonNullable.undefined(); + + @JsonProperty("cancellationFeeValue") + public PaymentDunningCancelResponseDtoBuilder cancellationFeeValue(Double value) { + this.cancellationFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable canBeCancelled = JsonNullable.of(true); + + @JsonProperty("canBeCancelled") + public PaymentDunningCancelResponseDtoBuilder canBeCancelled(Boolean value) { + this.canBeCancelled = JsonNullable.of(value); + return this; + } + + private JsonNullable cannotBeCancelledReason = JsonNullable.undefined(); + + @JsonProperty("cannotBeCancelledReason") + public PaymentDunningCancelResponseDtoBuilder cannotBeCancelledReason(String value) { + this.cannotBeCancelledReason = JsonNullable.of(value); + return this; + } + + private JsonNullable isNecessaryResendDocumentation = JsonNullable.undefined(); + + @JsonProperty("isNecessaryResendDocumentation") + public PaymentDunningCancelResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { + this.isNecessaryResendDocumentation = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningStatus.java new file mode 100644 index 0000000..4b37c0a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningStatus.java @@ -0,0 +1,36 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment dunning status + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningCancelResponsePaymentDunningStatus { + PENDING("PENDING"), + AWAITING_APPROVAL("AWAITING_APPROVAL"), + AWAITING_CANCELLATION("AWAITING_CANCELLATION"), + PROCESSED("PROCESSED"), + PAID("PAID"), + PARTIALLY_PAID("PARTIALLY_PAID"), + DENIED("DENIED"), + CANCELLED("CANCELLED"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningCancelResponsePaymentDunningStatus fromValue(String value) { + return Arrays.stream(PaymentDunningCancelResponsePaymentDunningStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningType.java new file mode 100644 index 0000000..571dd4d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningType.java @@ -0,0 +1,29 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of payment dunning + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningCancelResponsePaymentDunningType { + CREDIT_BUREAU("CREDIT_BUREAU"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningCancelResponsePaymentDunningType fromValue(String value) { + return Arrays.stream(PaymentDunningCancelResponsePaymentDunningType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataDto.java new file mode 100644 index 0000000..81ba059 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataDto.java @@ -0,0 +1,89 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of objects + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningListHistoryResponseDataDto { + + /** + * Negotiation status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Description of the event + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Date the event occurred + */ + @JsonProperty("eventDate") + private JsonNullable eventDate; + + @JsonIgnore + public PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getEventDate() { + return eventDate.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningListHistoryResponseDataDtoBuilder { + + private JsonNullable status = + JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentDunningListHistoryResponseDataDtoBuilder status( + PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus value + ) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentDunningListHistoryResponseDataDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable eventDate = JsonNullable.undefined(); + + @JsonProperty("eventDate") + public PaymentDunningListHistoryResponseDataDtoBuilder eventDate(String value) { + this.eventDate = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java new file mode 100644 index 0000000..50d03ee --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Negotiation status + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus { + IN_NEGOTIATION("IN_NEGOTIATION"), + NEGOTIATION_FAIL("NEGOTIATION_FAIL"), + NEGOTIATED("NEGOTIATED"), + PAID("PAID"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus fromValue(String value) { + return Arrays.stream(PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDto.java new file mode 100644 index 0000000..6bc60cf --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningListHistoryResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningListHistoryResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentDunningListHistoryResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PaymentDunningListHistoryResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PaymentDunningListHistoryResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentDunningListHistoryResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PaymentDunningListHistoryResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PaymentDunningListHistoryResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningListPartialPaymentsResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListPartialPaymentsResponseDataDto.java new file mode 100644 index 0000000..3ccaf87 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListPartialPaymentsResponseDataDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of objects + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningListPartialPaymentsResponseDataDto { + + /** + * Amount paid + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Payment Description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Pay day + */ + @JsonProperty("paymentDate") + private JsonNullable paymentDate; + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getPaymentDate() { + return paymentDate.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningListPartialPaymentsResponseDataDtoBuilder { + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentDunningListPartialPaymentsResponseDataDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentDunningListPartialPaymentsResponseDataDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentDate = JsonNullable.undefined(); + + @JsonProperty("paymentDate") + public PaymentDunningListPartialPaymentsResponseDataDtoBuilder paymentDate(String value) { + this.paymentDate = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningListPartialPaymentsResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListPartialPaymentsResponseDto.java new file mode 100644 index 0000000..c7796f1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListPartialPaymentsResponseDto.java @@ -0,0 +1,143 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningListPartialPaymentsResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningListPartialPaymentsResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentDunningListPartialPaymentsResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PaymentDunningListPartialPaymentsResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PaymentDunningListPartialPaymentsResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentDunningListPartialPaymentsResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PaymentDunningListPartialPaymentsResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PaymentDunningListPartialPaymentsResponseDtoBuilder data( + List value + ) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningStatus.java new file mode 100644 index 0000000..33511a2 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningStatus.java @@ -0,0 +1,36 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by payment dunning status + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningListRequestPaymentDunningStatus { + PENDING("PENDING"), + AWAITING_APPROVAL("AWAITING_APPROVAL"), + AWAITING_CANCELLATION("AWAITING_CANCELLATION"), + PROCESSED("PROCESSED"), + PAID("PAID"), + PARTIALLY_PAID("PARTIALLY_PAID"), + DENIED("DENIED"), + CANCELLED("CANCELLED"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningListRequestPaymentDunningStatus fromValue(String value) { + return Arrays.stream(PaymentDunningListRequestPaymentDunningStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningType.java new file mode 100644 index 0000000..54c4b75 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by type of payment dunning + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningListRequestPaymentDunningType { + CREDIT_BUREAU("CREDIT_BUREAU"), + DEBT_RECOVERY_ASSISTANCE("DEBT_RECOVERY_ASSISTANCE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningListRequestPaymentDunningType fromValue(String value) { + return Arrays.stream(PaymentDunningListRequestPaymentDunningType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListResponseDto.java new file mode 100644 index 0000000..c82d93c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentDunningListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PaymentDunningListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PaymentDunningListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentDunningListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PaymentDunningListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PaymentDunningListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java new file mode 100644 index 0000000..ac2ab5c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Form of payment + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningPaymentsAvailableForDunningResponseDataBillingType { + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + TRANSFER("TRANSFER"), + DEPOSIT("DEPOSIT"), + DEBIT_CARD("DEBIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningPaymentsAvailableForDunningResponseDataBillingType fromValue(String value) { + return Arrays.stream(PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.java new file mode 100644 index 0000000..6cd36bb --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.java @@ -0,0 +1,175 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of objects + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningPaymentsAvailableForDunningResponseDataDto { + + /** + * Unique identifier of the payment to be recovered in Asaas + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * Unique customer identifier + */ + @JsonProperty("customer") + private JsonNullable customer; + + /** + * Payment amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Billing status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Form of payment + */ + @JsonProperty("billingType") + private JsonNullable billingType; + + /** + * Due date + */ + @JsonProperty("dueDate") + private JsonNullable dueDate; + + /** + * Simulation of denial request for each type of payment dunning available + */ + @JsonProperty("typeSimulations") + private JsonNullable< + List + > typeSimulations; + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public String getCustomer() { + return customer.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public PaymentDunningPaymentsAvailableForDunningResponseDataBillingType getBillingType() { + return billingType.orElse(null); + } + + @JsonIgnore + public String getDueDate() { + return dueDate.orElse(null); + } + + @JsonIgnore + public List getTypeSimulations() { + return typeSimulations.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder { + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable customer = JsonNullable.undefined(); + + @JsonProperty("customer") + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder customer(String value) { + this.customer = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable status = + JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder status( + PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus value + ) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable billingType = + JsonNullable.undefined(); + + @JsonProperty("billingType") + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder billingType( + PaymentDunningPaymentsAvailableForDunningResponseDataBillingType value + ) { + this.billingType = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDate = JsonNullable.undefined(); + + @JsonProperty("dueDate") + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder dueDate(String value) { + this.dueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable< + List + > typeSimulations = JsonNullable.undefined(); + + @JsonProperty("typeSimulations") + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder typeSimulations( + List value + ) { + this.typeSimulations = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java new file mode 100644 index 0000000..783ed04 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing status + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus { + PENDING("PENDING"), + RECEIVED("RECEIVED"), + CONFIRMED("CONFIRMED"), + OVERDUE("OVERDUE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus fromValue(String value) { + return Arrays.stream(PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java new file mode 100644 index 0000000..53bf6c7 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java @@ -0,0 +1,149 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Simulation of denial request for each type of payment dunning available + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto { + + /** + * Type of payment dunning + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Whether it is possible to request a payment dunning of this type + */ + @JsonProperty("isAllowed") + private JsonNullable isAllowed; + + /** + * Reason why it is not possible to request a payment dunning for this type + */ + @JsonProperty("notAllowedReason") + private JsonNullable notAllowedReason; + + /** + * Cost and/or payment dunning fee + */ + @JsonProperty("feeValue") + private JsonNullable feeValue; + + /** + * Net amount to be recovered + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Expected start date of the payment dunning + */ + @JsonProperty("startDate") + private JsonNullable startDate; + + @JsonIgnore + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType getType() { + return type.orElse(null); + } + + @JsonIgnore + public Boolean getIsAllowed() { + return isAllowed.orElse(null); + } + + @JsonIgnore + public String getNotAllowedReason() { + return notAllowedReason.orElse(null); + } + + @JsonIgnore + public Double getFeeValue() { + return feeValue.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public String getStartDate() { + return startDate.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder { + + private JsonNullable< + PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType + > type = JsonNullable.undefined(); + + @JsonProperty("type") + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder type( + PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType value + ) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable isAllowed = JsonNullable.of(true); + + @JsonProperty("isAllowed") + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder isAllowed(Boolean value) { + this.isAllowed = JsonNullable.of(value); + return this; + } + + private JsonNullable notAllowedReason = JsonNullable.undefined(); + + @JsonProperty("notAllowedReason") + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder notAllowedReason( + String value + ) { + this.notAllowedReason = JsonNullable.of(value); + return this; + } + + private JsonNullable feeValue = JsonNullable.undefined(); + + @JsonProperty("feeValue") + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder feeValue(Double value) { + this.feeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable startDate = JsonNullable.undefined(); + + @JsonProperty("startDate") + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder startDate(String value) { + this.startDate = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java new file mode 100644 index 0000000..1764e40 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of payment dunning + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType { + CREDIT_BUREAU("CREDIT_BUREAU"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType fromValue( + String value + ) { + return Arrays.stream( + PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.values() + ) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDto.java new file mode 100644 index 0000000..414c54d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDto.java @@ -0,0 +1,144 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningPaymentsAvailableForDunningResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = + JsonNullable.undefined(); + + @JsonProperty("data") + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder data( + List value + ) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsRequestDto.java new file mode 100644 index 0000000..7af37f1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsRequestDto.java @@ -0,0 +1,26 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningSaveDocumentsRequestDto { + + /** + * Invoice and/or contract notarized + */ + @NonNull + private byte[] documents; +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponseDto.java new file mode 100644 index 0000000..90b515d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponseDto.java @@ -0,0 +1,334 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningSaveDocumentsResponseDto { + + /** + * Unique identifier of the payment dunning in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Payment dunning number + */ + @JsonProperty("dunningNumber") + private JsonNullable dunningNumber; + + /** + * Payment dunning status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Type of payment dunning + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Unique identifier of the payment to be recovered in Asaas + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * Request date + */ + @JsonProperty("requestDate") + private JsonNullable requestDate; + + /** + * Description of the payment dunning + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Payment amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Cost and/or payment dunning fee + */ + @JsonProperty("feeValue") + private JsonNullable feeValue; + + /** + * Net amount to be recovered + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Cash receipt fee + */ + @JsonProperty("receivedInCashFeeValue") + private JsonNullable receivedInCashFeeValue; + + /** + * Reason for denial of payment dunning + */ + @JsonProperty("denialReason") + private JsonNullable denialReason; + + /** + * Fee charged in case of cancellation + */ + @JsonProperty("cancellationFeeValue") + private JsonNullable cancellationFeeValue; + + /** + * Whether the payment dunning can be canceled + */ + @JsonProperty("canBeCancelled") + private JsonNullable canBeCancelled; + + /** + * Reason for not being able to request cancellation + */ + @JsonProperty("cannotBeCancelledReason") + private JsonNullable cannotBeCancelledReason; + + /** + * Determine whether documentation needs to be resubmitted + */ + @JsonProperty("isNecessaryResendDocumentation") + private JsonNullable isNecessaryResendDocumentation; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public Long getDunningNumber() { + return dunningNumber.orElse(null); + } + + @JsonIgnore + public PaymentDunningSaveDocumentsResponsePaymentDunningStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public PaymentDunningSaveDocumentsResponsePaymentDunningType getType() { + return type.orElse(null); + } + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public String getRequestDate() { + return requestDate.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getFeeValue() { + return feeValue.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getReceivedInCashFeeValue() { + return receivedInCashFeeValue.orElse(null); + } + + @JsonIgnore + public String getDenialReason() { + return denialReason.orElse(null); + } + + @JsonIgnore + public Double getCancellationFeeValue() { + return cancellationFeeValue.orElse(null); + } + + @JsonIgnore + public Boolean getCanBeCancelled() { + return canBeCancelled.orElse(null); + } + + @JsonIgnore + public String getCannotBeCancelledReason() { + return cannotBeCancelledReason.orElse(null); + } + + @JsonIgnore + public Boolean getIsNecessaryResendDocumentation() { + return isNecessaryResendDocumentation.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningSaveDocumentsResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentDunningSaveDocumentsResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable dunningNumber = JsonNullable.undefined(); + + @JsonProperty("dunningNumber") + public PaymentDunningSaveDocumentsResponseDtoBuilder dunningNumber(Long value) { + this.dunningNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentDunningSaveDocumentsResponseDtoBuilder status( + PaymentDunningSaveDocumentsResponsePaymentDunningStatus value + ) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public PaymentDunningSaveDocumentsResponseDtoBuilder type( + PaymentDunningSaveDocumentsResponsePaymentDunningType value + ) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public PaymentDunningSaveDocumentsResponseDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable requestDate = JsonNullable.undefined(); + + @JsonProperty("requestDate") + public PaymentDunningSaveDocumentsResponseDtoBuilder requestDate(String value) { + this.requestDate = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentDunningSaveDocumentsResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentDunningSaveDocumentsResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable feeValue = JsonNullable.undefined(); + + @JsonProperty("feeValue") + public PaymentDunningSaveDocumentsResponseDtoBuilder feeValue(Double value) { + this.feeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public PaymentDunningSaveDocumentsResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable receivedInCashFeeValue = JsonNullable.undefined(); + + @JsonProperty("receivedInCashFeeValue") + public PaymentDunningSaveDocumentsResponseDtoBuilder receivedInCashFeeValue(Double value) { + this.receivedInCashFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable denialReason = JsonNullable.undefined(); + + @JsonProperty("denialReason") + public PaymentDunningSaveDocumentsResponseDtoBuilder denialReason(String value) { + this.denialReason = JsonNullable.of(value); + return this; + } + + private JsonNullable cancellationFeeValue = JsonNullable.undefined(); + + @JsonProperty("cancellationFeeValue") + public PaymentDunningSaveDocumentsResponseDtoBuilder cancellationFeeValue(Double value) { + this.cancellationFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable canBeCancelled = JsonNullable.of(true); + + @JsonProperty("canBeCancelled") + public PaymentDunningSaveDocumentsResponseDtoBuilder canBeCancelled(Boolean value) { + this.canBeCancelled = JsonNullable.of(value); + return this; + } + + private JsonNullable cannotBeCancelledReason = JsonNullable.undefined(); + + @JsonProperty("cannotBeCancelledReason") + public PaymentDunningSaveDocumentsResponseDtoBuilder cannotBeCancelledReason(String value) { + this.cannotBeCancelledReason = JsonNullable.of(value); + return this; + } + + private JsonNullable isNecessaryResendDocumentation = JsonNullable.undefined(); + + @JsonProperty("isNecessaryResendDocumentation") + public PaymentDunningSaveDocumentsResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { + this.isNecessaryResendDocumentation = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.java new file mode 100644 index 0000000..3177915 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.java @@ -0,0 +1,36 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment dunning status + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningSaveDocumentsResponsePaymentDunningStatus { + PENDING("PENDING"), + AWAITING_APPROVAL("AWAITING_APPROVAL"), + AWAITING_CANCELLATION("AWAITING_CANCELLATION"), + PROCESSED("PROCESSED"), + PAID("PAID"), + PARTIALLY_PAID("PARTIALLY_PAID"), + DENIED("DENIED"), + CANCELLED("CANCELLED"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningSaveDocumentsResponsePaymentDunningStatus fromValue(String value) { + return Arrays.stream(PaymentDunningSaveDocumentsResponsePaymentDunningStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.java new file mode 100644 index 0000000..bd849bb --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.java @@ -0,0 +1,29 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of payment dunning + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningSaveDocumentsResponsePaymentDunningType { + CREDIT_BUREAU("CREDIT_BUREAU"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningSaveDocumentsResponsePaymentDunningType fromValue(String value) { + return Arrays.stream(PaymentDunningSaveDocumentsResponsePaymentDunningType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestDto.java new file mode 100644 index 0000000..9500026 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestDto.java @@ -0,0 +1,157 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningSaveRequestDto { + + /** + * Unique identifier of the payment to be recovered in Asaas + */ + @NonNull + private String payment; + + /** + * Type of payment dunning + */ + @NonNull + private PaymentDunningSaveRequestPaymentDunningType type; + + /** + * Client name + */ + @NonNull + private String customerName; + + /** + * Customer CPF or CNPJ + */ + @NonNull + private String customerCpfCnpj; + + /** + * Customer main telephone number + */ + @NonNull + private String customerPrimaryPhone; + + /** + * Customer address zip code + */ + @NonNull + private String customerPostalCode; + + /** + * Customer public address + */ + @NonNull + private String customerAddress; + + /** + * Customer address number + */ + @NonNull + private String customerAddressNumber; + + /** + * Customer neighborhood + */ + @NonNull + private String customerProvince; + + /** + * Description of the product or service provided + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Secondary customer phone number + */ + @JsonProperty("customerSecondaryPhone") + private JsonNullable customerSecondaryPhone; + + /** + * Customer address complement + */ + @JsonProperty("customerComplement") + private JsonNullable customerComplement; + + /** + * Invoice and/or contract notarized + */ + @JsonProperty("documents") + private JsonNullable documents; + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getCustomerSecondaryPhone() { + return customerSecondaryPhone.orElse(null); + } + + @JsonIgnore + public String getCustomerComplement() { + return customerComplement.orElse(null); + } + + @JsonIgnore + public byte[] getDocuments() { + return documents.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningSaveRequestDtoBuilder { + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentDunningSaveRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable customerSecondaryPhone = JsonNullable.undefined(); + + @JsonProperty("customerSecondaryPhone") + public PaymentDunningSaveRequestDtoBuilder customerSecondaryPhone(String value) { + this.customerSecondaryPhone = JsonNullable.of(value); + return this; + } + + private JsonNullable customerComplement = JsonNullable.undefined(); + + @JsonProperty("customerComplement") + public PaymentDunningSaveRequestDtoBuilder customerComplement(String value) { + this.customerComplement = JsonNullable.of(value); + return this; + } + + private JsonNullable documents = JsonNullable.undefined(); + + @JsonProperty("documents") + public PaymentDunningSaveRequestDtoBuilder documents(byte[] value) { + this.documents = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestPaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestPaymentDunningType.java new file mode 100644 index 0000000..f4e3ba2 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestPaymentDunningType.java @@ -0,0 +1,29 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of payment dunning + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningSaveRequestPaymentDunningType { + CREDIT_BUREAU("CREDIT_BUREAU"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningSaveRequestPaymentDunningType fromValue(String value) { + return Arrays.stream(PaymentDunningSaveRequestPaymentDunningType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponseDto.java new file mode 100644 index 0000000..0b6e47c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponseDto.java @@ -0,0 +1,330 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningShowResponseDto { + + /** + * Unique identifier of the payment dunning in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Payment dunning number + */ + @JsonProperty("dunningNumber") + private JsonNullable dunningNumber; + + /** + * Payment dunning status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Type of payment dunning + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Request date + */ + @JsonProperty("requestDate") + private JsonNullable requestDate; + + /** + * Description of the payment dunning + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Payment amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Cost and/or payment dunning fee + */ + @JsonProperty("feeValue") + private JsonNullable feeValue; + + /** + * Net amount to be recovered + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Cash receipt fee + */ + @JsonProperty("receivedInCashFeeValue") + private JsonNullable receivedInCashFeeValue; + + /** + * Reason for denial of payment dunning + */ + @JsonProperty("denialReason") + private JsonNullable denialReason; + + /** + * Fee charged in case of cancellation + */ + @JsonProperty("cancellationFeeValue") + private JsonNullable cancellationFeeValue; + + /** + * Whether the payment dunning can be canceled + */ + @JsonProperty("canBeCancelled") + private JsonNullable canBeCancelled; + + /** + * Reason for not being able to request cancellation + */ + @JsonProperty("cannotBeCancelledReason") + private JsonNullable cannotBeCancelledReason; + + /** + * Determine whether documentation needs to be resubmitted + */ + @JsonProperty("isNecessaryResendDocumentation") + private JsonNullable isNecessaryResendDocumentation; + + /** + * Unique identifier of the payment to be recovered in Asaas + */ + @JsonProperty("payment") + private JsonNullable payment; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public Long getDunningNumber() { + return dunningNumber.orElse(null); + } + + @JsonIgnore + public PaymentDunningShowResponsePaymentDunningStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public PaymentDunningShowResponsePaymentDunningType getType() { + return type.orElse(null); + } + + @JsonIgnore + public String getRequestDate() { + return requestDate.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getFeeValue() { + return feeValue.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getReceivedInCashFeeValue() { + return receivedInCashFeeValue.orElse(null); + } + + @JsonIgnore + public String getDenialReason() { + return denialReason.orElse(null); + } + + @JsonIgnore + public Double getCancellationFeeValue() { + return cancellationFeeValue.orElse(null); + } + + @JsonIgnore + public Boolean getCanBeCancelled() { + return canBeCancelled.orElse(null); + } + + @JsonIgnore + public String getCannotBeCancelledReason() { + return cannotBeCancelledReason.orElse(null); + } + + @JsonIgnore + public Boolean getIsNecessaryResendDocumentation() { + return isNecessaryResendDocumentation.orElse(null); + } + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningShowResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentDunningShowResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable dunningNumber = JsonNullable.undefined(); + + @JsonProperty("dunningNumber") + public PaymentDunningShowResponseDtoBuilder dunningNumber(Long value) { + this.dunningNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentDunningShowResponseDtoBuilder status(PaymentDunningShowResponsePaymentDunningStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public PaymentDunningShowResponseDtoBuilder type(PaymentDunningShowResponsePaymentDunningType value) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable requestDate = JsonNullable.undefined(); + + @JsonProperty("requestDate") + public PaymentDunningShowResponseDtoBuilder requestDate(String value) { + this.requestDate = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentDunningShowResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentDunningShowResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable feeValue = JsonNullable.undefined(); + + @JsonProperty("feeValue") + public PaymentDunningShowResponseDtoBuilder feeValue(Double value) { + this.feeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public PaymentDunningShowResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable receivedInCashFeeValue = JsonNullable.undefined(); + + @JsonProperty("receivedInCashFeeValue") + public PaymentDunningShowResponseDtoBuilder receivedInCashFeeValue(Double value) { + this.receivedInCashFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable denialReason = JsonNullable.undefined(); + + @JsonProperty("denialReason") + public PaymentDunningShowResponseDtoBuilder denialReason(String value) { + this.denialReason = JsonNullable.of(value); + return this; + } + + private JsonNullable cancellationFeeValue = JsonNullable.undefined(); + + @JsonProperty("cancellationFeeValue") + public PaymentDunningShowResponseDtoBuilder cancellationFeeValue(Double value) { + this.cancellationFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable canBeCancelled = JsonNullable.of(true); + + @JsonProperty("canBeCancelled") + public PaymentDunningShowResponseDtoBuilder canBeCancelled(Boolean value) { + this.canBeCancelled = JsonNullable.of(value); + return this; + } + + private JsonNullable cannotBeCancelledReason = JsonNullable.undefined(); + + @JsonProperty("cannotBeCancelledReason") + public PaymentDunningShowResponseDtoBuilder cannotBeCancelledReason(String value) { + this.cannotBeCancelledReason = JsonNullable.of(value); + return this; + } + + private JsonNullable isNecessaryResendDocumentation = JsonNullable.undefined(); + + @JsonProperty("isNecessaryResendDocumentation") + public PaymentDunningShowResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { + this.isNecessaryResendDocumentation = JsonNullable.of(value); + return this; + } + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public PaymentDunningShowResponseDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningStatus.java new file mode 100644 index 0000000..d269943 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningStatus.java @@ -0,0 +1,36 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment dunning status + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningShowResponsePaymentDunningStatus { + PENDING("PENDING"), + AWAITING_APPROVAL("AWAITING_APPROVAL"), + AWAITING_CANCELLATION("AWAITING_CANCELLATION"), + PROCESSED("PROCESSED"), + PAID("PAID"), + PARTIALLY_PAID("PARTIALLY_PAID"), + DENIED("DENIED"), + CANCELLED("CANCELLED"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningShowResponsePaymentDunningStatus fromValue(String value) { + return Arrays.stream(PaymentDunningShowResponsePaymentDunningStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningType.java new file mode 100644 index 0000000..1e7e290 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningType.java @@ -0,0 +1,29 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of payment dunning + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningShowResponsePaymentDunningType { + CREDIT_BUREAU("CREDIT_BUREAU"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningShowResponsePaymentDunningType fromValue(String value) { + return Arrays.stream(PaymentDunningShowResponsePaymentDunningType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseDto.java new file mode 100644 index 0000000..90dc748 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseDto.java @@ -0,0 +1,87 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningSimulateResponseDto { + + /** + * Unique identifier of the payment to be recovered in Asaas + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * Payment amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Simulation of denial request for each type of denial available + */ + @JsonProperty("typeSimulations") + private JsonNullable> typeSimulations; + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public List getTypeSimulations() { + return typeSimulations.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningSimulateResponseDtoBuilder { + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public PaymentDunningSimulateResponseDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentDunningSimulateResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable> typeSimulations = + JsonNullable.undefined(); + + @JsonProperty("typeSimulations") + public PaymentDunningSimulateResponseDtoBuilder typeSimulations( + List value + ) { + this.typeSimulations = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseTypeSimulationItemDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseTypeSimulationItemDto.java new file mode 100644 index 0000000..af65a5f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseTypeSimulationItemDto.java @@ -0,0 +1,146 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Simulation of denial request for each type of denial available + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentDunningSimulateResponseTypeSimulationItemDto { + + /** + * Type of payment dunning + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Whether it is possible to request a payment dunning of this type + */ + @JsonProperty("isAllowed") + private JsonNullable isAllowed; + + /** + * Reason why it is not possible to request a payment dunning for this type + */ + @JsonProperty("notAllowedReason") + private JsonNullable notAllowedReason; + + /** + * Cost and/or payment dunning fee + */ + @JsonProperty("feeValue") + private JsonNullable feeValue; + + /** + * Net amount to be recovered + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Expected start date of the payment dunning + */ + @JsonProperty("startDate") + private JsonNullable startDate; + + @JsonIgnore + public PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType getType() { + return type.orElse(null); + } + + @JsonIgnore + public Boolean getIsAllowed() { + return isAllowed.orElse(null); + } + + @JsonIgnore + public String getNotAllowedReason() { + return notAllowedReason.orElse(null); + } + + @JsonIgnore + public Double getFeeValue() { + return feeValue.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public String getStartDate() { + return startDate.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder { + + private JsonNullable type = + JsonNullable.undefined(); + + @JsonProperty("type") + public PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder type( + PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType value + ) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable isAllowed = JsonNullable.undefined(); + + @JsonProperty("isAllowed") + public PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder isAllowed(Boolean value) { + this.isAllowed = JsonNullable.of(value); + return this; + } + + private JsonNullable notAllowedReason = JsonNullable.undefined(); + + @JsonProperty("notAllowedReason") + public PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder notAllowedReason(String value) { + this.notAllowedReason = JsonNullable.of(value); + return this; + } + + private JsonNullable feeValue = JsonNullable.undefined(); + + @JsonProperty("feeValue") + public PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder feeValue(Double value) { + this.feeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable startDate = JsonNullable.undefined(); + + @JsonProperty("startDate") + public PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder startDate(String value) { + this.startDate = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.java new file mode 100644 index 0000000..817eb94 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.java @@ -0,0 +1,29 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of payment dunning + */ +@Getter +@AllArgsConstructor +public enum PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType { + CREDIT_BUREAU("CREDIT_BUREAU"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType fromValue(String value) { + return Arrays.stream(PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponseDto.java new file mode 100644 index 0000000..fcb9271 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponseDto.java @@ -0,0 +1,124 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Payment escrow in the Escrow Account information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentEscrowGetResponseDto { + + /** + * Unique payment escrow identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Payment escrow status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Payment escrow expiration date + */ + @JsonProperty("expirationDate") + private JsonNullable expirationDate; + + /** + * Payment escrow finish date + */ + @JsonProperty("finishDate") + private JsonNullable finishDate; + + /** + * Payment escrow finish reason + */ + @JsonProperty("finishReason") + private JsonNullable finishReason; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public PaymentEscrowGetResponsePaymentEscrowStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getExpirationDate() { + return expirationDate.orElse(null); + } + + @JsonIgnore + public String getFinishDate() { + return finishDate.orElse(null); + } + + @JsonIgnore + public PaymentEscrowGetResponsePaymentEscrowFinishReason getFinishReason() { + return finishReason.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentEscrowGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentEscrowGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentEscrowGetResponseDtoBuilder status(PaymentEscrowGetResponsePaymentEscrowStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable expirationDate = JsonNullable.undefined(); + + @JsonProperty("expirationDate") + public PaymentEscrowGetResponseDtoBuilder expirationDate(String value) { + this.expirationDate = JsonNullable.of(value); + return this; + } + + private JsonNullable finishDate = JsonNullable.undefined(); + + @JsonProperty("finishDate") + public PaymentEscrowGetResponseDtoBuilder finishDate(String value) { + this.finishDate = JsonNullable.of(value); + return this; + } + + private JsonNullable finishReason = JsonNullable.undefined(); + + @JsonProperty("finishReason") + public PaymentEscrowGetResponseDtoBuilder finishReason(PaymentEscrowGetResponsePaymentEscrowFinishReason value) { + this.finishReason = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.java b/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.java new file mode 100644 index 0000000..55e3dea --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment escrow finish reason + */ +@Getter +@AllArgsConstructor +public enum PaymentEscrowGetResponsePaymentEscrowFinishReason { + CHARGEBACK("CHARGEBACK"), + EXPIRED("EXPIRED"), + INSUFFICIENT_BALANCE("INSUFFICIENT_BALANCE"), + PAYMENT_REFUNDED("PAYMENT_REFUNDED"), + REQUESTED_BY_CUSTOMER("REQUESTED_BY_CUSTOMER"), + CUSTOMER_CONFIG_DISABLED("CUSTOMER_CONFIG_DISABLED"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentEscrowGetResponsePaymentEscrowFinishReason fromValue(String value) { + return Arrays.stream(PaymentEscrowGetResponsePaymentEscrowFinishReason.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowStatus.java new file mode 100644 index 0000000..1109e32 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowStatus.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment escrow status + */ +@Getter +@AllArgsConstructor +public enum PaymentEscrowGetResponsePaymentEscrowStatus { + ACTIVE("ACTIVE"), + DONE("DONE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentEscrowGetResponsePaymentEscrowStatus fromValue(String value) { + return Arrays.stream(PaymentEscrowGetResponsePaymentEscrowStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentFineRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentFineRequestDto.java new file mode 100644 index 0000000..5634341 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentFineRequestDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Fine information for payment after due date + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentFineRequestDto { + + /** + * Percentage of fine on the amount of the charge for payment after the due date + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Fine type + */ + @JsonProperty("type") + private JsonNullable type; + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public PaymentFineRequestFineType getType() { + return type.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentFineRequestDtoBuilder { + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentFineRequestDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public PaymentFineRequestDtoBuilder type(PaymentFineRequestFineType value) { + this.type = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentFineRequestFineType.java b/src/main/java/com/asaas/apisdk/models/PaymentFineRequestFineType.java new file mode 100644 index 0000000..441eb2e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentFineRequestFineType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Fine type + */ +@Getter +@AllArgsConstructor +public enum PaymentFineRequestFineType { + FIXED("FIXED"), + PERCENTAGE("PERCENTAGE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentFineRequestFineType fromValue(String value) { + return Arrays.stream(PaymentFineRequestFineType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentFineResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentFineResponseDto.java new file mode 100644 index 0000000..23bf54d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentFineResponseDto.java @@ -0,0 +1,48 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Fine information for payment after due date + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentFineResponseDto { + + /** + * Fine amount in percentage + */ + @JsonProperty("value") + private JsonNullable value; + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentFineResponseDtoBuilder { + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentFineResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentGetResponseBillingType.java new file mode 100644 index 0000000..f4c0356 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentGetResponseBillingType.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment billing type + */ +@Getter +@AllArgsConstructor +public enum PaymentGetResponseBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + DEBIT_CARD("DEBIT_CARD"), + TRANSFER("TRANSFER"), + DEPOSIT("DEPOSIT"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentGetResponseBillingType fromValue(String value) { + return Arrays.stream(PaymentGetResponseBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentGetResponseDto.java new file mode 100644 index 0000000..96ac075 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentGetResponseDto.java @@ -0,0 +1,860 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique payment identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Payment creation date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Unique identifier of the customer to whom the payment belongs + */ + @JsonProperty("customer") + private JsonNullable customer; + + /** + * Unique subscription identifier (when recurring billing) + */ + @JsonProperty("subscription") + private JsonNullable subscription; + + /** + * Unique installment identifier (when billing in installments) + */ + @JsonProperty("installment") + private JsonNullable installment; + + /** + * Unique checkout identifier + */ + @JsonProperty("checkoutSession") + private JsonNullable checkoutSession; + + /** + * Unique identifier of the payments link to which the payment belongs + */ + @JsonProperty("paymentLink") + private JsonNullable paymentLink; + + /** + * Payment amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Net value of the charge after discounting the Asaas fee + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Original amount of charge (filled when paid with interest and fine) + */ + @JsonProperty("originalValue") + private JsonNullable originalValue; + + /** + * Calculated amount of interest and fine that must be paid after the charge is due + */ + @JsonProperty("interestValue") + private JsonNullable interestValue; + + /** + * Description of the payment + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Payment billing type + */ + @JsonProperty("billingType") + private JsonNullable billingType; + + /** + * Credit card information + */ + @JsonProperty("creditCard") + private JsonNullable creditCard; + + /** + * Informs whether the charge can be paid after the due date (Only for bank slip) + */ + @JsonProperty("canBePaidAfterDueDate") + private JsonNullable canBePaidAfterDueDate; + + /** + * Unique identifier of the Pix transaction to which the payment belongs + */ + @JsonProperty("pixTransaction") + private JsonNullable pixTransaction; + + /** + * Unique identifier of the static QrCode generated for a given Pix key + */ + @JsonProperty("pixQrCodeId") + private JsonNullable pixQrCodeId; + + /** + * Payment status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Payment due date + */ + @JsonProperty("dueDate") + private JsonNullable dueDate; + + /** + * Original due date upon creation of the payment + */ + @JsonProperty("originalDueDate") + private JsonNullable originalDueDate; + + /** + * Payment date on Asaas + */ + @JsonProperty("paymentDate") + private JsonNullable paymentDate; + + /** + * Date on which the customer paid the bank slip + */ + @JsonProperty("clientPaymentDate") + private JsonNullable clientPaymentDate; + + /** + * Parcel number + */ + @JsonProperty("installmentNumber") + private JsonNullable installmentNumber; + + /** + * Invoice URL + */ + @JsonProperty("invoiceUrl") + private JsonNullable invoiceUrl; + + /** + * Bill number + */ + @JsonProperty("invoiceNumber") + private JsonNullable invoiceNumber; + + /** + * Free search field + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Determines if the payment has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Defines whether the charge was anticipated or is in the process of being anticipated + */ + @JsonProperty("anticipated") + private JsonNullable anticipated; + + /** + * Determines whether the charge is anticipated + */ + @JsonProperty("anticipable") + private JsonNullable anticipable; + + /** + * Date when the credit became available + */ + @JsonProperty("creditDate") + private JsonNullable creditDate; + + /** + * Estimated date when the credit will be available + */ + @JsonProperty("estimatedCreditDate") + private JsonNullable estimatedCreditDate; + + /** + * URL of proof of confirmation, receipt, reversal or removal + */ + @JsonProperty("transactionReceiptUrl") + private JsonNullable transactionReceiptUrl; + + /** + * Unique identification of the bank slip + */ + @JsonProperty("nossoNumero") + private JsonNullable nossoNumero; + + /** + * URL to download the bank slip + */ + @JsonProperty("bankSlipUrl") + private JsonNullable bankSlipUrl; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Split Settings + */ + @JsonProperty("split") + private JsonNullable> split; + + /** + * Define whether the payment will be sent via post + */ + @JsonProperty("postalService") + private JsonNullable postalService; + + /** + * Days after registration cancellation deadline (only for bank slip) + */ + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + private JsonNullable daysAfterDueDateToRegistrationCancellation; + + @JsonProperty("chargeback") + private JsonNullable chargeback; + + /** + * Payment escrow in the Escrow Account information + */ + @JsonProperty("escrow") + private JsonNullable escrow; + + /** + * Refunds information + */ + @JsonProperty("refunds") + private JsonNullable> refunds; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public String getCustomer() { + return customer.orElse(null); + } + + @JsonIgnore + public String getSubscription() { + return subscription.orElse(null); + } + + @JsonIgnore + public String getInstallment() { + return installment.orElse(null); + } + + @JsonIgnore + public String getCheckoutSession() { + return checkoutSession.orElse(null); + } + + @JsonIgnore + public String getPaymentLink() { + return paymentLink.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getOriginalValue() { + return originalValue.orElse(null); + } + + @JsonIgnore + public Double getInterestValue() { + return interestValue.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public PaymentGetResponseBillingType getBillingType() { + return billingType.orElse(null); + } + + @JsonIgnore + public PaymentSaveWithCreditCardCreditCardDto getCreditCard() { + return creditCard.orElse(null); + } + + @JsonIgnore + public Boolean getCanBePaidAfterDueDate() { + return canBePaidAfterDueDate.orElse(null); + } + + @JsonIgnore + public String getPixTransaction() { + return pixTransaction.orElse(null); + } + + @JsonIgnore + public String getPixQrCodeId() { + return pixQrCodeId.orElse(null); + } + + @JsonIgnore + public PaymentGetResponsePaymentStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getDueDate() { + return dueDate.orElse(null); + } + + @JsonIgnore + public String getOriginalDueDate() { + return originalDueDate.orElse(null); + } + + @JsonIgnore + public String getPaymentDate() { + return paymentDate.orElse(null); + } + + @JsonIgnore + public String getClientPaymentDate() { + return clientPaymentDate.orElse(null); + } + + @JsonIgnore + public Long getInstallmentNumber() { + return installmentNumber.orElse(null); + } + + @JsonIgnore + public String getInvoiceUrl() { + return invoiceUrl.orElse(null); + } + + @JsonIgnore + public String getInvoiceNumber() { + return invoiceNumber.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public Boolean getAnticipated() { + return anticipated.orElse(null); + } + + @JsonIgnore + public Boolean getAnticipable() { + return anticipable.orElse(null); + } + + @JsonIgnore + public String getCreditDate() { + return creditDate.orElse(null); + } + + @JsonIgnore + public String getEstimatedCreditDate() { + return estimatedCreditDate.orElse(null); + } + + @JsonIgnore + public String getTransactionReceiptUrl() { + return transactionReceiptUrl.orElse(null); + } + + @JsonIgnore + public String getNossoNumero() { + return nossoNumero.orElse(null); + } + + @JsonIgnore + public String getBankSlipUrl() { + return bankSlipUrl.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentFineResponseDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public PaymentInterestResponseDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public List getSplit() { + return split.orElse(null); + } + + @JsonIgnore + public Boolean getPostalService() { + return postalService.orElse(null); + } + + @JsonIgnore + public Long getDaysAfterDueDateToRegistrationCancellation() { + return daysAfterDueDateToRegistrationCancellation.orElse(null); + } + + @JsonIgnore + public PaymentChargebackResponseDto getChargeback() { + return chargeback.orElse(null); + } + + @JsonIgnore + public PaymentEscrowGetResponseDto getEscrow() { + return escrow.orElse(null); + } + + @JsonIgnore + public List getRefunds() { + return refunds.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public PaymentGetResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable customer = JsonNullable.undefined(); + + @JsonProperty("customer") + public PaymentGetResponseDtoBuilder customer(String value) { + this.customer = JsonNullable.of(value); + return this; + } + + private JsonNullable subscription = JsonNullable.undefined(); + + @JsonProperty("subscription") + public PaymentGetResponseDtoBuilder subscription(String value) { + this.subscription = JsonNullable.of(value); + return this; + } + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public PaymentGetResponseDtoBuilder installment(String value) { + this.installment = JsonNullable.of(value); + return this; + } + + private JsonNullable checkoutSession = JsonNullable.undefined(); + + @JsonProperty("checkoutSession") + public PaymentGetResponseDtoBuilder checkoutSession(String value) { + this.checkoutSession = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentLink = JsonNullable.undefined(); + + @JsonProperty("paymentLink") + public PaymentGetResponseDtoBuilder paymentLink(String value) { + this.paymentLink = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public PaymentGetResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable originalValue = JsonNullable.undefined(); + + @JsonProperty("originalValue") + public PaymentGetResponseDtoBuilder originalValue(Double value) { + this.originalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable interestValue = JsonNullable.undefined(); + + @JsonProperty("interestValue") + public PaymentGetResponseDtoBuilder interestValue(Double value) { + this.interestValue = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable billingType = JsonNullable.undefined(); + + @JsonProperty("billingType") + public PaymentGetResponseDtoBuilder billingType(PaymentGetResponseBillingType value) { + this.billingType = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCard = JsonNullable.undefined(); + + @JsonProperty("creditCard") + public PaymentGetResponseDtoBuilder creditCard(PaymentSaveWithCreditCardCreditCardDto value) { + this.creditCard = JsonNullable.of(value); + return this; + } + + private JsonNullable canBePaidAfterDueDate = JsonNullable.undefined(); + + @JsonProperty("canBePaidAfterDueDate") + public PaymentGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { + this.canBePaidAfterDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable pixTransaction = JsonNullable.undefined(); + + @JsonProperty("pixTransaction") + public PaymentGetResponseDtoBuilder pixTransaction(String value) { + this.pixTransaction = JsonNullable.of(value); + return this; + } + + private JsonNullable pixQrCodeId = JsonNullable.undefined(); + + @JsonProperty("pixQrCodeId") + public PaymentGetResponseDtoBuilder pixQrCodeId(String value) { + this.pixQrCodeId = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentGetResponseDtoBuilder status(PaymentGetResponsePaymentStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDate = JsonNullable.undefined(); + + @JsonProperty("dueDate") + public PaymentGetResponseDtoBuilder dueDate(String value) { + this.dueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable originalDueDate = JsonNullable.undefined(); + + @JsonProperty("originalDueDate") + public PaymentGetResponseDtoBuilder originalDueDate(String value) { + this.originalDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentDate = JsonNullable.undefined(); + + @JsonProperty("paymentDate") + public PaymentGetResponseDtoBuilder paymentDate(String value) { + this.paymentDate = JsonNullable.of(value); + return this; + } + + private JsonNullable clientPaymentDate = JsonNullable.undefined(); + + @JsonProperty("clientPaymentDate") + public PaymentGetResponseDtoBuilder clientPaymentDate(String value) { + this.clientPaymentDate = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentNumber = JsonNullable.undefined(); + + @JsonProperty("installmentNumber") + public PaymentGetResponseDtoBuilder installmentNumber(Long value) { + this.installmentNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable invoiceUrl = JsonNullable.undefined(); + + @JsonProperty("invoiceUrl") + public PaymentGetResponseDtoBuilder invoiceUrl(String value) { + this.invoiceUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable invoiceNumber = JsonNullable.undefined(); + + @JsonProperty("invoiceNumber") + public PaymentGetResponseDtoBuilder invoiceNumber(String value) { + this.invoiceNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PaymentGetResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public PaymentGetResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipated = JsonNullable.undefined(); + + @JsonProperty("anticipated") + public PaymentGetResponseDtoBuilder anticipated(Boolean value) { + this.anticipated = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipable = JsonNullable.undefined(); + + @JsonProperty("anticipable") + public PaymentGetResponseDtoBuilder anticipable(Boolean value) { + this.anticipable = JsonNullable.of(value); + return this; + } + + private JsonNullable creditDate = JsonNullable.undefined(); + + @JsonProperty("creditDate") + public PaymentGetResponseDtoBuilder creditDate(String value) { + this.creditDate = JsonNullable.of(value); + return this; + } + + private JsonNullable estimatedCreditDate = JsonNullable.undefined(); + + @JsonProperty("estimatedCreditDate") + public PaymentGetResponseDtoBuilder estimatedCreditDate(String value) { + this.estimatedCreditDate = JsonNullable.of(value); + return this; + } + + private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); + + @JsonProperty("transactionReceiptUrl") + public PaymentGetResponseDtoBuilder transactionReceiptUrl(String value) { + this.transactionReceiptUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable nossoNumero = JsonNullable.undefined(); + + @JsonProperty("nossoNumero") + public PaymentGetResponseDtoBuilder nossoNumero(String value) { + this.nossoNumero = JsonNullable.of(value); + return this; + } + + private JsonNullable bankSlipUrl = JsonNullable.undefined(); + + @JsonProperty("bankSlipUrl") + public PaymentGetResponseDtoBuilder bankSlipUrl(String value) { + this.bankSlipUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public PaymentGetResponseDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public PaymentGetResponseDtoBuilder fine(PaymentFineResponseDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public PaymentGetResponseDtoBuilder interest(PaymentInterestResponseDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable> split = JsonNullable.undefined(); + + @JsonProperty("split") + public PaymentGetResponseDtoBuilder split(List value) { + this.split = JsonNullable.of(value); + return this; + } + + private JsonNullable postalService = JsonNullable.undefined(); + + @JsonProperty("postalService") + public PaymentGetResponseDtoBuilder postalService(Boolean value) { + this.postalService = JsonNullable.of(value); + return this; + } + + private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); + + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + public PaymentGetResponseDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); + return this; + } + + private JsonNullable chargeback = JsonNullable.undefined(); + + @JsonProperty("chargeback") + public PaymentGetResponseDtoBuilder chargeback(PaymentChargebackResponseDto value) { + this.chargeback = JsonNullable.of(value); + return this; + } + + private JsonNullable escrow = JsonNullable.undefined(); + + @JsonProperty("escrow") + public PaymentGetResponseDtoBuilder escrow(PaymentEscrowGetResponseDto value) { + this.escrow = JsonNullable.of(value); + return this; + } + + private JsonNullable> refunds = JsonNullable.undefined(); + + @JsonProperty("refunds") + public PaymentGetResponseDtoBuilder refunds(List value) { + this.refunds = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentGetResponsePaymentStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentGetResponsePaymentStatus.java new file mode 100644 index 0000000..9c9c9d1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentGetResponsePaymentStatus.java @@ -0,0 +1,42 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment status + */ +@Getter +@AllArgsConstructor +public enum PaymentGetResponsePaymentStatus { + PENDING("PENDING"), + RECEIVED("RECEIVED"), + CONFIRMED("CONFIRMED"), + OVERDUE("OVERDUE"), + REFUNDED("REFUNDED"), + RECEIVED_IN_CASH("RECEIVED_IN_CASH"), + REFUND_REQUESTED("REFUND_REQUESTED"), + REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), + CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), + CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), + AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), + DUNNING_REQUESTED("DUNNING_REQUESTED"), + DUNNING_RECEIVED("DUNNING_RECEIVED"), + AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentGetResponsePaymentStatus fromValue(String value) { + return Arrays.stream(PaymentGetResponsePaymentStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentIdentificationFieldResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentIdentificationFieldResponseDto.java new file mode 100644 index 0000000..cd3efd6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentIdentificationFieldResponseDto.java @@ -0,0 +1,83 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentIdentificationFieldResponseDto { + + /** + * Digitable bill line + */ + @JsonProperty("identificationField") + private JsonNullable identificationField; + + /** + * Unique identification of the bank slip + */ + @JsonProperty("nossoNumero") + private JsonNullable nossoNumero; + + /** + * Bank slip bar code + */ + @JsonProperty("barCode") + private JsonNullable barCode; + + @JsonIgnore + public String getIdentificationField() { + return identificationField.orElse(null); + } + + @JsonIgnore + public String getNossoNumero() { + return nossoNumero.orElse(null); + } + + @JsonIgnore + public String getBarCode() { + return barCode.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentIdentificationFieldResponseDtoBuilder { + + private JsonNullable identificationField = JsonNullable.undefined(); + + @JsonProperty("identificationField") + public PaymentIdentificationFieldResponseDtoBuilder identificationField(String value) { + this.identificationField = JsonNullable.of(value); + return this; + } + + private JsonNullable nossoNumero = JsonNullable.undefined(); + + @JsonProperty("nossoNumero") + public PaymentIdentificationFieldResponseDtoBuilder nossoNumero(String value) { + this.nossoNumero = JsonNullable.of(value); + return this; + } + + private JsonNullable barCode = JsonNullable.undefined(); + + @JsonProperty("barCode") + public PaymentIdentificationFieldResponseDtoBuilder barCode(String value) { + this.barCode = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentInterestRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentInterestRequestDto.java new file mode 100644 index 0000000..7c72d8d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentInterestRequestDto.java @@ -0,0 +1,48 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Interest information for payment after due date + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentInterestRequestDto { + + /** + * Percentage of interest per month on the amount charged for payment after maturity + */ + @JsonProperty("value") + private JsonNullable value; + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentInterestRequestDtoBuilder { + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentInterestRequestDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentInterestResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentInterestResponseDto.java new file mode 100644 index 0000000..aaa788b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentInterestResponseDto.java @@ -0,0 +1,48 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Interest information for payment after due date + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentInterestResponseDto { + + /** + * Interest value in percentage + */ + @JsonProperty("value") + private JsonNullable value; + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentInterestResponseDtoBuilder { + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentInterestResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseBillingType.java new file mode 100644 index 0000000..942b75f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseBillingType.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment billing type + */ +@Getter +@AllArgsConstructor +public enum PaymentLeanGetResponseBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + DEBIT_CARD("DEBIT_CARD"), + TRANSFER("TRANSFER"), + DEPOSIT("DEPOSIT"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLeanGetResponseBillingType fromValue(String value) { + return Arrays.stream(PaymentLeanGetResponseBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseDto.java new file mode 100644 index 0000000..5100c1a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseDto.java @@ -0,0 +1,653 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLeanGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique payment identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Payment creation date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Unique identifier of the customer to whom the payment belongs + */ + @JsonProperty("customerId") + private JsonNullable customerId; + + /** + * Unique subscription identifier (when recurring billing) + */ + @JsonProperty("subscriptionId") + private JsonNullable subscriptionId; + + /** + * Unique installment identifier (when billing in installments) + */ + @JsonProperty("installmentId") + private JsonNullable installmentId; + + /** + * Unique identifier of the payments link to which the payment belongs + */ + @JsonProperty("paymentLinkId") + private JsonNullable paymentLinkId; + + /** + * Payment amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Net value of the charge after discounting the Asaas fee + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Original amount of charge (filled when paid with interest and fine) + */ + @JsonProperty("originalValue") + private JsonNullable originalValue; + + /** + * Calculated amount of interest and fine that must be paid after the charge is due + */ + @JsonProperty("interestValue") + private JsonNullable interestValue; + + /** + * Description of the payment + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Payment billing type + */ + @JsonProperty("billingType") + private JsonNullable billingType; + + /** + * Informs whether the charge can be paid after the due date (Only for bank slip) + */ + @JsonProperty("canBePaidAfterDueDate") + private JsonNullable canBePaidAfterDueDate; + + /** + * Billing confirmation date + */ + @JsonProperty("confirmedDate") + private JsonNullable confirmedDate; + + /** + * Unique identifier of the Pix transaction to which the payment belongs + */ + @JsonProperty("pixTransactionId") + private JsonNullable pixTransactionId; + + /** + * Payment status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Payment due date + */ + @JsonProperty("dueDate") + private JsonNullable dueDate; + + /** + * Original due date upon creation of the payment + */ + @JsonProperty("originalDueDate") + private JsonNullable originalDueDate; + + /** + * Payment date on Asaas + */ + @JsonProperty("paymentDate") + private JsonNullable paymentDate; + + /** + * Date on which the customer paid the bank slip + */ + @JsonProperty("customerPaymentDate") + private JsonNullable customerPaymentDate; + + /** + * Parcel number + */ + @JsonProperty("installmentNumber") + private JsonNullable installmentNumber; + + /** + * Free search field + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Determines if the payment has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Defines whether the charge was anticipated or is in the process of being anticipated + */ + @JsonProperty("anticipated") + private JsonNullable anticipated; + + /** + * Determines whether the charge is anticipated + */ + @JsonProperty("anticipable") + private JsonNullable anticipable; + + /** + * Billing Credit date + */ + @JsonProperty("creditDate") + private JsonNullable creditDate; + + /** + * URL of proof of confirmation, receipt, reversal or removal + */ + @JsonProperty("transactionReceiptUrl") + private JsonNullable transactionReceiptUrl; + + /** + * Duplicate billing identifier (if true) + */ + @JsonProperty("duplicatedPaymentId") + private JsonNullable duplicatedPaymentId; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Define whether the payment will be sent via post + */ + @JsonProperty("postalService") + private JsonNullable postalService; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public String getCustomerId() { + return customerId.orElse(null); + } + + @JsonIgnore + public String getSubscriptionId() { + return subscriptionId.orElse(null); + } + + @JsonIgnore + public String getInstallmentId() { + return installmentId.orElse(null); + } + + @JsonIgnore + public String getPaymentLinkId() { + return paymentLinkId.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getOriginalValue() { + return originalValue.orElse(null); + } + + @JsonIgnore + public Double getInterestValue() { + return interestValue.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public PaymentLeanGetResponseBillingType getBillingType() { + return billingType.orElse(null); + } + + @JsonIgnore + public Boolean getCanBePaidAfterDueDate() { + return canBePaidAfterDueDate.orElse(null); + } + + @JsonIgnore + public String getConfirmedDate() { + return confirmedDate.orElse(null); + } + + @JsonIgnore + public String getPixTransactionId() { + return pixTransactionId.orElse(null); + } + + @JsonIgnore + public PaymentLeanGetResponsePaymentStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getDueDate() { + return dueDate.orElse(null); + } + + @JsonIgnore + public String getOriginalDueDate() { + return originalDueDate.orElse(null); + } + + @JsonIgnore + public String getPaymentDate() { + return paymentDate.orElse(null); + } + + @JsonIgnore + public String getCustomerPaymentDate() { + return customerPaymentDate.orElse(null); + } + + @JsonIgnore + public Long getInstallmentNumber() { + return installmentNumber.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public Boolean getAnticipated() { + return anticipated.orElse(null); + } + + @JsonIgnore + public Boolean getAnticipable() { + return anticipable.orElse(null); + } + + @JsonIgnore + public String getCreditDate() { + return creditDate.orElse(null); + } + + @JsonIgnore + public String getTransactionReceiptUrl() { + return transactionReceiptUrl.orElse(null); + } + + @JsonIgnore + public String getDuplicatedPaymentId() { + return duplicatedPaymentId.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentFineResponseDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public PaymentInterestResponseDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public Boolean getPostalService() { + return postalService.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLeanGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentLeanGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentLeanGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public PaymentLeanGetResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable customerId = JsonNullable.undefined(); + + @JsonProperty("customerId") + public PaymentLeanGetResponseDtoBuilder customerId(String value) { + this.customerId = JsonNullable.of(value); + return this; + } + + private JsonNullable subscriptionId = JsonNullable.undefined(); + + @JsonProperty("subscriptionId") + public PaymentLeanGetResponseDtoBuilder subscriptionId(String value) { + this.subscriptionId = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentId = JsonNullable.undefined(); + + @JsonProperty("installmentId") + public PaymentLeanGetResponseDtoBuilder installmentId(String value) { + this.installmentId = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentLinkId = JsonNullable.undefined(); + + @JsonProperty("paymentLinkId") + public PaymentLeanGetResponseDtoBuilder paymentLinkId(String value) { + this.paymentLinkId = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentLeanGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public PaymentLeanGetResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable originalValue = JsonNullable.undefined(); + + @JsonProperty("originalValue") + public PaymentLeanGetResponseDtoBuilder originalValue(Double value) { + this.originalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable interestValue = JsonNullable.undefined(); + + @JsonProperty("interestValue") + public PaymentLeanGetResponseDtoBuilder interestValue(Double value) { + this.interestValue = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentLeanGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable billingType = JsonNullable.undefined(); + + @JsonProperty("billingType") + public PaymentLeanGetResponseDtoBuilder billingType(PaymentLeanGetResponseBillingType value) { + this.billingType = JsonNullable.of(value); + return this; + } + + private JsonNullable canBePaidAfterDueDate = JsonNullable.undefined(); + + @JsonProperty("canBePaidAfterDueDate") + public PaymentLeanGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { + this.canBePaidAfterDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable confirmedDate = JsonNullable.undefined(); + + @JsonProperty("confirmedDate") + public PaymentLeanGetResponseDtoBuilder confirmedDate(String value) { + this.confirmedDate = JsonNullable.of(value); + return this; + } + + private JsonNullable pixTransactionId = JsonNullable.undefined(); + + @JsonProperty("pixTransactionId") + public PaymentLeanGetResponseDtoBuilder pixTransactionId(String value) { + this.pixTransactionId = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentLeanGetResponseDtoBuilder status(PaymentLeanGetResponsePaymentStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDate = JsonNullable.undefined(); + + @JsonProperty("dueDate") + public PaymentLeanGetResponseDtoBuilder dueDate(String value) { + this.dueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable originalDueDate = JsonNullable.undefined(); + + @JsonProperty("originalDueDate") + public PaymentLeanGetResponseDtoBuilder originalDueDate(String value) { + this.originalDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentDate = JsonNullable.undefined(); + + @JsonProperty("paymentDate") + public PaymentLeanGetResponseDtoBuilder paymentDate(String value) { + this.paymentDate = JsonNullable.of(value); + return this; + } + + private JsonNullable customerPaymentDate = JsonNullable.undefined(); + + @JsonProperty("customerPaymentDate") + public PaymentLeanGetResponseDtoBuilder customerPaymentDate(String value) { + this.customerPaymentDate = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentNumber = JsonNullable.undefined(); + + @JsonProperty("installmentNumber") + public PaymentLeanGetResponseDtoBuilder installmentNumber(Long value) { + this.installmentNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PaymentLeanGetResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public PaymentLeanGetResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipated = JsonNullable.undefined(); + + @JsonProperty("anticipated") + public PaymentLeanGetResponseDtoBuilder anticipated(Boolean value) { + this.anticipated = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipable = JsonNullable.undefined(); + + @JsonProperty("anticipable") + public PaymentLeanGetResponseDtoBuilder anticipable(Boolean value) { + this.anticipable = JsonNullable.of(value); + return this; + } + + private JsonNullable creditDate = JsonNullable.undefined(); + + @JsonProperty("creditDate") + public PaymentLeanGetResponseDtoBuilder creditDate(String value) { + this.creditDate = JsonNullable.of(value); + return this; + } + + private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); + + @JsonProperty("transactionReceiptUrl") + public PaymentLeanGetResponseDtoBuilder transactionReceiptUrl(String value) { + this.transactionReceiptUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable duplicatedPaymentId = JsonNullable.undefined(); + + @JsonProperty("duplicatedPaymentId") + public PaymentLeanGetResponseDtoBuilder duplicatedPaymentId(String value) { + this.duplicatedPaymentId = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public PaymentLeanGetResponseDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public PaymentLeanGetResponseDtoBuilder fine(PaymentFineResponseDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public PaymentLeanGetResponseDtoBuilder interest(PaymentInterestResponseDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable postalService = JsonNullable.undefined(); + + @JsonProperty("postalService") + public PaymentLeanGetResponseDtoBuilder postalService(Boolean value) { + this.postalService = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponsePaymentStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponsePaymentStatus.java new file mode 100644 index 0000000..7bf85fb --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponsePaymentStatus.java @@ -0,0 +1,42 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment status + */ +@Getter +@AllArgsConstructor +public enum PaymentLeanGetResponsePaymentStatus { + PENDING("PENDING"), + RECEIVED("RECEIVED"), + CONFIRMED("CONFIRMED"), + OVERDUE("OVERDUE"), + REFUNDED("REFUNDED"), + RECEIVED_IN_CASH("RECEIVED_IN_CASH"), + REFUND_REQUESTED("REFUND_REQUESTED"), + REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), + CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), + CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), + AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), + DUNNING_REQUESTED("DUNNING_REQUESTED"), + DUNNING_RECEIVED("DUNNING_RECEIVED"), + AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLeanGetResponsePaymentStatus fromValue(String value) { + return Arrays.stream(PaymentLeanGetResponsePaymentStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLeanListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLeanListResponseDto.java new file mode 100644 index 0000000..c2c3912 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLeanListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLeanListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentLeanListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PaymentLeanListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PaymentLeanListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentLeanListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PaymentLeanListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PaymentLeanListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseBillingType.java new file mode 100644 index 0000000..f2d758b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseBillingType.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment billing type + */ +@Getter +@AllArgsConstructor +public enum PaymentLeanSaveWithCreditCardResponseBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + DEBIT_CARD("DEBIT_CARD"), + TRANSFER("TRANSFER"), + DEPOSIT("DEPOSIT"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLeanSaveWithCreditCardResponseBillingType fromValue(String value) { + return Arrays.stream(PaymentLeanSaveWithCreditCardResponseBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseDto.java new file mode 100644 index 0000000..30099bd --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseDto.java @@ -0,0 +1,676 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLeanSaveWithCreditCardResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique payment identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Payment creation date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Unique identifier of the customer to whom the payment belongs + */ + @JsonProperty("customerId") + private JsonNullable customerId; + + /** + * Unique subscription identifier (when recurring billing) + */ + @JsonProperty("subscriptionId") + private JsonNullable subscriptionId; + + /** + * Unique installment identifier (when billing in installments) + */ + @JsonProperty("installmentId") + private JsonNullable installmentId; + + /** + * Unique identifier of the payments link to which the payment belongs + */ + @JsonProperty("paymentLinkId") + private JsonNullable paymentLinkId; + + /** + * Payment amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Net value of the charge after discounting the Asaas fee + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Original amount of charge (filled when paid with interest and fine) + */ + @JsonProperty("originalValue") + private JsonNullable originalValue; + + /** + * Calculated amount of interest and fine that must be paid after the charge is due + */ + @JsonProperty("interestValue") + private JsonNullable interestValue; + + /** + * Description of the payment + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Payment billing type + */ + @JsonProperty("billingType") + private JsonNullable billingType; + + /** + * Informs whether the charge can be paid after the due date (Only for bank slip) + */ + @JsonProperty("canBePaidAfterDueDate") + private JsonNullable canBePaidAfterDueDate; + + /** + * Billing confirmation date + */ + @JsonProperty("confirmedDate") + private JsonNullable confirmedDate; + + /** + * Unique identifier of the Pix transaction to which the payment belongs + */ + @JsonProperty("pixTransactionId") + private JsonNullable pixTransactionId; + + /** + * Payment status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Payment due date + */ + @JsonProperty("dueDate") + private JsonNullable dueDate; + + /** + * Original due date upon creation of the payment + */ + @JsonProperty("originalDueDate") + private JsonNullable originalDueDate; + + /** + * Payment date on Asaas + */ + @JsonProperty("paymentDate") + private JsonNullable paymentDate; + + /** + * Date on which the customer paid the bank slip + */ + @JsonProperty("customerPaymentDate") + private JsonNullable customerPaymentDate; + + /** + * Parcel number + */ + @JsonProperty("installmentNumber") + private JsonNullable installmentNumber; + + /** + * Free search field + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Determines if the payment has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Defines whether the charge was anticipated or is in the process of being anticipated + */ + @JsonProperty("anticipated") + private JsonNullable anticipated; + + /** + * Determines whether the charge is anticipated + */ + @JsonProperty("anticipable") + private JsonNullable anticipable; + + /** + * Billing Credit date + */ + @JsonProperty("creditDate") + private JsonNullable creditDate; + + /** + * URL of proof of confirmation, receipt, reversal or removal + */ + @JsonProperty("transactionReceiptUrl") + private JsonNullable transactionReceiptUrl; + + /** + * Duplicate billing identifier (if true) + */ + @JsonProperty("duplicatedPaymentId") + private JsonNullable duplicatedPaymentId; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Define whether the payment will be sent via post + */ + @JsonProperty("postalService") + private JsonNullable postalService; + + /** + * Credit card information + */ + @JsonProperty("creditCard") + private JsonNullable creditCard; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public String getCustomerId() { + return customerId.orElse(null); + } + + @JsonIgnore + public String getSubscriptionId() { + return subscriptionId.orElse(null); + } + + @JsonIgnore + public String getInstallmentId() { + return installmentId.orElse(null); + } + + @JsonIgnore + public String getPaymentLinkId() { + return paymentLinkId.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getOriginalValue() { + return originalValue.orElse(null); + } + + @JsonIgnore + public Double getInterestValue() { + return interestValue.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public PaymentLeanSaveWithCreditCardResponseBillingType getBillingType() { + return billingType.orElse(null); + } + + @JsonIgnore + public Boolean getCanBePaidAfterDueDate() { + return canBePaidAfterDueDate.orElse(null); + } + + @JsonIgnore + public String getConfirmedDate() { + return confirmedDate.orElse(null); + } + + @JsonIgnore + public String getPixTransactionId() { + return pixTransactionId.orElse(null); + } + + @JsonIgnore + public PaymentLeanSaveWithCreditCardResponsePaymentStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getDueDate() { + return dueDate.orElse(null); + } + + @JsonIgnore + public String getOriginalDueDate() { + return originalDueDate.orElse(null); + } + + @JsonIgnore + public String getPaymentDate() { + return paymentDate.orElse(null); + } + + @JsonIgnore + public String getCustomerPaymentDate() { + return customerPaymentDate.orElse(null); + } + + @JsonIgnore + public Long getInstallmentNumber() { + return installmentNumber.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public Boolean getAnticipated() { + return anticipated.orElse(null); + } + + @JsonIgnore + public Boolean getAnticipable() { + return anticipable.orElse(null); + } + + @JsonIgnore + public String getCreditDate() { + return creditDate.orElse(null); + } + + @JsonIgnore + public String getTransactionReceiptUrl() { + return transactionReceiptUrl.orElse(null); + } + + @JsonIgnore + public String getDuplicatedPaymentId() { + return duplicatedPaymentId.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentFineResponseDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public PaymentInterestResponseDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public Boolean getPostalService() { + return postalService.orElse(null); + } + + @JsonIgnore + public PaymentSaveWithCreditCardCreditCardDto getCreditCard() { + return creditCard.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLeanSaveWithCreditCardResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable customerId = JsonNullable.undefined(); + + @JsonProperty("customerId") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder customerId(String value) { + this.customerId = JsonNullable.of(value); + return this; + } + + private JsonNullable subscriptionId = JsonNullable.undefined(); + + @JsonProperty("subscriptionId") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder subscriptionId(String value) { + this.subscriptionId = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentId = JsonNullable.undefined(); + + @JsonProperty("installmentId") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder installmentId(String value) { + this.installmentId = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentLinkId = JsonNullable.undefined(); + + @JsonProperty("paymentLinkId") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder paymentLinkId(String value) { + this.paymentLinkId = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable originalValue = JsonNullable.undefined(); + + @JsonProperty("originalValue") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder originalValue(Double value) { + this.originalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable interestValue = JsonNullable.undefined(); + + @JsonProperty("interestValue") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder interestValue(Double value) { + this.interestValue = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable billingType = JsonNullable.undefined(); + + @JsonProperty("billingType") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder billingType( + PaymentLeanSaveWithCreditCardResponseBillingType value + ) { + this.billingType = JsonNullable.of(value); + return this; + } + + private JsonNullable canBePaidAfterDueDate = JsonNullable.undefined(); + + @JsonProperty("canBePaidAfterDueDate") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { + this.canBePaidAfterDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable confirmedDate = JsonNullable.undefined(); + + @JsonProperty("confirmedDate") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder confirmedDate(String value) { + this.confirmedDate = JsonNullable.of(value); + return this; + } + + private JsonNullable pixTransactionId = JsonNullable.undefined(); + + @JsonProperty("pixTransactionId") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder pixTransactionId(String value) { + this.pixTransactionId = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder status( + PaymentLeanSaveWithCreditCardResponsePaymentStatus value + ) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDate = JsonNullable.undefined(); + + @JsonProperty("dueDate") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder dueDate(String value) { + this.dueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable originalDueDate = JsonNullable.undefined(); + + @JsonProperty("originalDueDate") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder originalDueDate(String value) { + this.originalDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentDate = JsonNullable.undefined(); + + @JsonProperty("paymentDate") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder paymentDate(String value) { + this.paymentDate = JsonNullable.of(value); + return this; + } + + private JsonNullable customerPaymentDate = JsonNullable.undefined(); + + @JsonProperty("customerPaymentDate") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder customerPaymentDate(String value) { + this.customerPaymentDate = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentNumber = JsonNullable.undefined(); + + @JsonProperty("installmentNumber") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder installmentNumber(Long value) { + this.installmentNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipated = JsonNullable.undefined(); + + @JsonProperty("anticipated") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder anticipated(Boolean value) { + this.anticipated = JsonNullable.of(value); + return this; + } + + private JsonNullable anticipable = JsonNullable.undefined(); + + @JsonProperty("anticipable") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder anticipable(Boolean value) { + this.anticipable = JsonNullable.of(value); + return this; + } + + private JsonNullable creditDate = JsonNullable.undefined(); + + @JsonProperty("creditDate") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder creditDate(String value) { + this.creditDate = JsonNullable.of(value); + return this; + } + + private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); + + @JsonProperty("transactionReceiptUrl") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder transactionReceiptUrl(String value) { + this.transactionReceiptUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable duplicatedPaymentId = JsonNullable.undefined(); + + @JsonProperty("duplicatedPaymentId") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder duplicatedPaymentId(String value) { + this.duplicatedPaymentId = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder fine(PaymentFineResponseDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder interest(PaymentInterestResponseDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable postalService = JsonNullable.undefined(); + + @JsonProperty("postalService") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder postalService(Boolean value) { + this.postalService = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCard = JsonNullable.undefined(); + + @JsonProperty("creditCard") + public PaymentLeanSaveWithCreditCardResponseDtoBuilder creditCard(PaymentSaveWithCreditCardCreditCardDto value) { + this.creditCard = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.java new file mode 100644 index 0000000..452a8bd --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.java @@ -0,0 +1,42 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment status + */ +@Getter +@AllArgsConstructor +public enum PaymentLeanSaveWithCreditCardResponsePaymentStatus { + PENDING("PENDING"), + RECEIVED("RECEIVED"), + CONFIRMED("CONFIRMED"), + OVERDUE("OVERDUE"), + REFUNDED("REFUNDED"), + RECEIVED_IN_CASH("RECEIVED_IN_CASH"), + REFUND_REQUESTED("REFUND_REQUESTED"), + REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), + CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), + CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), + AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), + DUNNING_REQUESTED("DUNNING_REQUESTED"), + DUNNING_RECEIVED("DUNNING_RECEIVED"), + AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLeanSaveWithCreditCardResponsePaymentStatus fromValue(String value) { + return Arrays.stream(PaymentLeanSaveWithCreditCardResponsePaymentStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDailyDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDailyDto.java new file mode 100644 index 0000000..e95abb8 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDailyDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Daily limits + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLimitsResponseCreationDailyDto { + + /** + * Total limit + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Limit used + */ + @JsonProperty("used") + private JsonNullable used; + + /** + * Indicates whether the limit has been reached + */ + @JsonProperty("wasReached") + private JsonNullable wasReached; + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getUsed() { + return used.orElse(null); + } + + @JsonIgnore + public Boolean getWasReached() { + return wasReached.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLimitsResponseCreationDailyDtoBuilder { + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentLimitsResponseCreationDailyDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable used = JsonNullable.undefined(); + + @JsonProperty("used") + public PaymentLimitsResponseCreationDailyDtoBuilder used(Long value) { + this.used = JsonNullable.of(value); + return this; + } + + private JsonNullable wasReached = JsonNullable.undefined(); + + @JsonProperty("wasReached") + public PaymentLimitsResponseCreationDailyDtoBuilder wasReached(Boolean value) { + this.wasReached = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDto.java new file mode 100644 index 0000000..b615427 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDto.java @@ -0,0 +1,48 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Breeding limits + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLimitsResponseCreationDto { + + /** + * Daily limits + */ + @JsonProperty("daily") + private JsonNullable daily; + + @JsonIgnore + public PaymentLimitsResponseCreationDailyDto getDaily() { + return daily.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLimitsResponseCreationDtoBuilder { + + private JsonNullable daily = JsonNullable.undefined(); + + @JsonProperty("daily") + public PaymentLimitsResponseCreationDtoBuilder daily(PaymentLimitsResponseCreationDailyDto value) { + this.daily = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseDto.java new file mode 100644 index 0000000..205d494 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseDto.java @@ -0,0 +1,45 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLimitsResponseDto { + + /** + * Breeding limits + */ + @JsonProperty("creation") + private JsonNullable creation; + + @JsonIgnore + public PaymentLimitsResponseCreationDto getCreation() { + return creation.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLimitsResponseDtoBuilder { + + private JsonNullable creation = JsonNullable.undefined(); + + @JsonProperty("creation") + public PaymentLimitsResponseDtoBuilder creation(PaymentLimitsResponseCreationDto value) { + this.creation = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkDeleteResponseDto.java new file mode 100644 index 0000000..d913585 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkDeleteResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLinkDeleteResponseDto { + + /** + * Indicates whether the payment link has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Unique identifier for your payments link in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLinkDeleteResponseDtoBuilder { + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public PaymentLinkDeleteResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentLinkDeleteResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkFileDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileDeleteResponseDto.java new file mode 100644 index 0000000..61df8d4 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileDeleteResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLinkFileDeleteResponseDto { + + /** + * Indicates whether the image was removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Unique payment link image identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLinkFileDeleteResponseDtoBuilder { + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public PaymentLinkFileDeleteResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentLinkFileDeleteResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkFileGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileGetResponseDto.java new file mode 100644 index 0000000..3c9e172 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileGetResponseDto.java @@ -0,0 +1,83 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLinkFileGetResponseDto { + + /** + * Unique payment link image identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Determines if this is the main image + */ + @JsonProperty("main") + private JsonNullable main; + + /** + * Payments link image information + */ + @JsonProperty("image") + private JsonNullable image; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public Boolean getMain() { + return main.orElse(null); + } + + @JsonIgnore + public PaymentLinkFileImageResponseDto getImage() { + return image.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLinkFileGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentLinkFileGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable main = JsonNullable.undefined(); + + @JsonProperty("main") + public PaymentLinkFileGetResponseDtoBuilder main(Boolean value) { + this.main = JsonNullable.of(value); + return this; + } + + private JsonNullable image = JsonNullable.undefined(); + + @JsonProperty("image") + public PaymentLinkFileGetResponseDtoBuilder image(PaymentLinkFileImageResponseDto value) { + this.image = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkFileImageResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileImageResponseDto.java new file mode 100644 index 0000000..3df27f9 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileImageResponseDto.java @@ -0,0 +1,124 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Payments link image information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLinkFileImageResponseDto { + + /** + * Original image name + */ + @JsonProperty("originalName") + private JsonNullable originalName; + + /** + * Image size + */ + @JsonProperty("size") + private JsonNullable size; + + /** + * Image extension + */ + @JsonProperty("extension") + private JsonNullable extension; + + /** + * Link to download the image preview + */ + @JsonProperty("previewUrl") + private JsonNullable previewUrl; + + /** + * Link to download the image + */ + @JsonProperty("downloadUrl") + private JsonNullable downloadUrl; + + @JsonIgnore + public String getOriginalName() { + return originalName.orElse(null); + } + + @JsonIgnore + public Long getSize() { + return size.orElse(null); + } + + @JsonIgnore + public String getExtension() { + return extension.orElse(null); + } + + @JsonIgnore + public String getPreviewUrl() { + return previewUrl.orElse(null); + } + + @JsonIgnore + public String getDownloadUrl() { + return downloadUrl.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLinkFileImageResponseDtoBuilder { + + private JsonNullable originalName = JsonNullable.undefined(); + + @JsonProperty("originalName") + public PaymentLinkFileImageResponseDtoBuilder originalName(String value) { + this.originalName = JsonNullable.of(value); + return this; + } + + private JsonNullable size = JsonNullable.undefined(); + + @JsonProperty("size") + public PaymentLinkFileImageResponseDtoBuilder size(Long value) { + this.size = JsonNullable.of(value); + return this; + } + + private JsonNullable extension = JsonNullable.undefined(); + + @JsonProperty("extension") + public PaymentLinkFileImageResponseDtoBuilder extension(String value) { + this.extension = JsonNullable.of(value); + return this; + } + + private JsonNullable previewUrl = JsonNullable.undefined(); + + @JsonProperty("previewUrl") + public PaymentLinkFileImageResponseDtoBuilder previewUrl(String value) { + this.previewUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable downloadUrl = JsonNullable.undefined(); + + @JsonProperty("downloadUrl") + public PaymentLinkFileImageResponseDtoBuilder downloadUrl(String value) { + this.downloadUrl = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkFileListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileListResponseDto.java new file mode 100644 index 0000000..1b840c5 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLinkFileListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLinkFileListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentLinkFileListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PaymentLinkFileListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PaymentLinkFileListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentLinkFileListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PaymentLinkFileListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PaymentLinkFileListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkFileSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileSaveRequestDto.java new file mode 100644 index 0000000..99f8aae --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileSaveRequestDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLinkFileSaveRequestDto { + + /** + * true to set as the main image + */ + @JsonProperty("main") + private JsonNullable main; + + /** + * File + */ + @JsonProperty("image") + private JsonNullable image; + + @JsonIgnore + public Boolean getMain() { + return main.orElse(null); + } + + @JsonIgnore + public byte[] getImage() { + return image.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLinkFileSaveRequestDtoBuilder { + + private JsonNullable main = JsonNullable.undefined(); + + @JsonProperty("main") + public PaymentLinkFileSaveRequestDtoBuilder main(Boolean value) { + this.main = JsonNullable.of(value); + return this; + } + + private JsonNullable image = JsonNullable.undefined(); + + @JsonProperty("image") + public PaymentLinkFileSaveRequestDtoBuilder image(byte[] 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/PaymentLinkGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseBillingType.java new file mode 100644 index 0000000..95e9f76 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Allowed payment method + */ +@Getter +@AllArgsConstructor +public enum PaymentLinkGetResponseBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLinkGetResponseBillingType fromValue(String value) { + return Arrays.stream(PaymentLinkGetResponseBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseChargeType.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseChargeType.java new file mode 100644 index 0000000..281dd5f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseChargeType.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Charge type + */ +@Getter +@AllArgsConstructor +public enum PaymentLinkGetResponseChargeType { + DETACHED("DETACHED"), + RECURRENT("RECURRENT"), + INSTALLMENT("INSTALLMENT"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLinkGetResponseChargeType fromValue(String value) { + return Arrays.stream(PaymentLinkGetResponseChargeType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseCycle.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseCycle.java new file mode 100644 index 0000000..f178f9a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseCycle.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing frequency, if the chargeType is RECURRENT + */ +@Getter +@AllArgsConstructor +public enum PaymentLinkGetResponseCycle { + WEEKLY("WEEKLY"), + BIWEEKLY("BIWEEKLY"), + MONTHLY("MONTHLY"), + BIMONTHLY("BIMONTHLY"), + QUARTERLY("QUARTERLY"), + SEMIANNUALLY("SEMIANNUALLY"), + YEARLY("YEARLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLinkGetResponseCycle fromValue(String value) { + return Arrays.stream(PaymentLinkGetResponseCycle.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseDto.java new file mode 100644 index 0000000..52fc710 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseDto.java @@ -0,0 +1,349 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLinkGetResponseDto { + + /** + * Unique identifier for your payments link in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Payment link name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Value of the payment link, if not informed, the payer can inform how much they want to pay + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * If the payments link is active + */ + @JsonProperty("active") + private JsonNullable active; + + /** + * Charge type + */ + @JsonProperty("chargeType") + private JsonNullable chargeType; + + /** + * Payments link access link + */ + @JsonProperty("url") + private JsonNullable url; + + /** + * Allowed payment method + */ + @JsonProperty("billingType") + private JsonNullable billingType; + + /** + * Billing frequency, if the chargeType is RECURRENT + */ + @JsonProperty("subscriptionCycle") + private JsonNullable subscriptionCycle; + + /** + * Payments link description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * End date + */ + @JsonProperty("endDate") + private JsonNullable endDate; + + /** + * Indicates whether the payment link has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * The number of views of your payments link + */ + @JsonProperty("viewCount") + private JsonNullable viewCount; + + /** + * Maximum number of installments that your customer can pay in installments for the payment link, if it is Installment. + */ + @JsonProperty("maxInstallmentCount") + private JsonNullable maxInstallmentCount; + + /** + * Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) + */ + @JsonProperty("dueDateLimitDays") + private JsonNullable dueDateLimitDays; + + /** + * Defines whether customers registered via the payments link will have notifications enabled + */ + @JsonProperty("notificationEnabled") + private JsonNullable notificationEnabled; + + /** + * Defines whether filling in the address will be obligatory in the charges. + */ + @JsonProperty("isAddressRequired") + private JsonNullable isAddressRequired; + + /** + * Free search field. + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Boolean getActive() { + return active.orElse(null); + } + + @JsonIgnore + public PaymentLinkGetResponseChargeType getChargeType() { + return chargeType.orElse(null); + } + + @JsonIgnore + public String getUrl() { + return url.orElse(null); + } + + @JsonIgnore + public PaymentLinkGetResponseBillingType getBillingType() { + return billingType.orElse(null); + } + + @JsonIgnore + public PaymentLinkGetResponseCycle getSubscriptionCycle() { + return subscriptionCycle.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getEndDate() { + return endDate.orElse(null); + } + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public Long getViewCount() { + return viewCount.orElse(null); + } + + @JsonIgnore + public Long getMaxInstallmentCount() { + return maxInstallmentCount.orElse(null); + } + + @JsonIgnore + public Long getDueDateLimitDays() { + return dueDateLimitDays.orElse(null); + } + + @JsonIgnore + public Boolean getNotificationEnabled() { + return notificationEnabled.orElse(null); + } + + @JsonIgnore + public Boolean getIsAddressRequired() { + return isAddressRequired.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLinkGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentLinkGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public PaymentLinkGetResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentLinkGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable active = JsonNullable.undefined(); + + @JsonProperty("active") + public PaymentLinkGetResponseDtoBuilder active(Boolean value) { + this.active = JsonNullable.of(value); + return this; + } + + private JsonNullable chargeType = JsonNullable.undefined(); + + @JsonProperty("chargeType") + public PaymentLinkGetResponseDtoBuilder chargeType(PaymentLinkGetResponseChargeType value) { + this.chargeType = JsonNullable.of(value); + return this; + } + + private JsonNullable url = JsonNullable.undefined(); + + @JsonProperty("url") + public PaymentLinkGetResponseDtoBuilder url(String value) { + this.url = JsonNullable.of(value); + return this; + } + + private JsonNullable billingType = JsonNullable.undefined(); + + @JsonProperty("billingType") + public PaymentLinkGetResponseDtoBuilder billingType(PaymentLinkGetResponseBillingType value) { + this.billingType = JsonNullable.of(value); + return this; + } + + private JsonNullable subscriptionCycle = JsonNullable.undefined(); + + @JsonProperty("subscriptionCycle") + public PaymentLinkGetResponseDtoBuilder subscriptionCycle(PaymentLinkGetResponseCycle value) { + this.subscriptionCycle = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentLinkGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable endDate = JsonNullable.undefined(); + + @JsonProperty("endDate") + public PaymentLinkGetResponseDtoBuilder endDate(String value) { + this.endDate = JsonNullable.of(value); + return this; + } + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public PaymentLinkGetResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable viewCount = JsonNullable.undefined(); + + @JsonProperty("viewCount") + public PaymentLinkGetResponseDtoBuilder viewCount(Long value) { + this.viewCount = JsonNullable.of(value); + return this; + } + + private JsonNullable maxInstallmentCount = JsonNullable.undefined(); + + @JsonProperty("maxInstallmentCount") + public PaymentLinkGetResponseDtoBuilder maxInstallmentCount(Long value) { + this.maxInstallmentCount = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDateLimitDays = JsonNullable.undefined(); + + @JsonProperty("dueDateLimitDays") + public PaymentLinkGetResponseDtoBuilder dueDateLimitDays(Long value) { + this.dueDateLimitDays = JsonNullable.of(value); + return this; + } + + private JsonNullable notificationEnabled = JsonNullable.undefined(); + + @JsonProperty("notificationEnabled") + public PaymentLinkGetResponseDtoBuilder notificationEnabled(Boolean value) { + this.notificationEnabled = JsonNullable.of(value); + return this; + } + + private JsonNullable isAddressRequired = JsonNullable.undefined(); + + @JsonProperty("isAddressRequired") + public PaymentLinkGetResponseDtoBuilder isAddressRequired(Boolean value) { + this.isAddressRequired = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PaymentLinkGetResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkListResponseDto.java new file mode 100644 index 0000000..8849500 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLinkListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLinkListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentLinkListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PaymentLinkListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PaymentLinkListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentLinkListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PaymentLinkListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PaymentLinkListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestBillingType.java new file mode 100644 index 0000000..4dd4d48 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Allowed payment method + */ +@Getter +@AllArgsConstructor +public enum PaymentLinkSaveRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLinkSaveRequestBillingType fromValue(String value) { + return Arrays.stream(PaymentLinkSaveRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestChargeType.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestChargeType.java new file mode 100644 index 0000000..d2dc841 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestChargeType.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Charge type + */ +@Getter +@AllArgsConstructor +public enum PaymentLinkSaveRequestChargeType { + DETACHED("DETACHED"), + RECURRENT("RECURRENT"), + INSTALLMENT("INSTALLMENT"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLinkSaveRequestChargeType fromValue(String value) { + return Arrays.stream(PaymentLinkSaveRequestChargeType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestCycle.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestCycle.java new file mode 100644 index 0000000..e8fcec1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestCycle.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing frequency, if the chargeType is RECURRENT + */ +@Getter +@AllArgsConstructor +public enum PaymentLinkSaveRequestCycle { + WEEKLY("WEEKLY"), + BIWEEKLY("BIWEEKLY"), + MONTHLY("MONTHLY"), + BIMONTHLY("BIMONTHLY"), + QUARTERLY("QUARTERLY"), + SEMIANNUALLY("SEMIANNUALLY"), + YEARLY("YEARLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLinkSaveRequestCycle fromValue(String value) { + return Arrays.stream(PaymentLinkSaveRequestCycle.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestDto.java new file mode 100644 index 0000000..7df99cb --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestDto.java @@ -0,0 +1,235 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLinkSaveRequestDto { + + /** + * Payment link name + */ + @NonNull + private String name; + + /** + * Allowed payment method + */ + @NonNull + private PaymentLinkSaveRequestBillingType billingType; + + /** + * Charge type + */ + @NonNull + private PaymentLinkSaveRequestChargeType chargeType; + + /** + * Payments link description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * End date + */ + @JsonProperty("endDate") + private JsonNullable endDate; + + /** + * Value of the payment link, if not informed, the payer can inform how much they want to pay + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) + */ + @JsonProperty("dueDateLimitDays") + private JsonNullable dueDateLimitDays; + + /** + * Billing frequency, if the chargeType is RECURRENT + */ + @JsonProperty("subscriptionCycle") + private JsonNullable subscriptionCycle; + + /** + * Maximum number of installments that your customer can pay in installments for the payment link if the billing method selected is Installments. If not informed, the default value will be 1 installment + */ + @JsonProperty("maxInstallmentCount") + private JsonNullable maxInstallmentCount; + + /** + * Free search field. + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Defines whether customers registered via the payments link will have notifications enabled. If not informed, the default value will be true + */ + @JsonProperty("notificationEnabled") + private JsonNullable notificationEnabled; + + /** + * Automatic redirection information after the payment of the link payment + */ + @JsonProperty("callback") + private JsonNullable callback; + + /** + * True to make it mandatory to fill in address data at checkout. + */ + @JsonProperty("isAddressRequired") + private JsonNullable isAddressRequired; + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getEndDate() { + return endDate.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Long getDueDateLimitDays() { + return dueDateLimitDays.orElse(null); + } + + @JsonIgnore + public PaymentLinkSaveRequestCycle getSubscriptionCycle() { + return subscriptionCycle.orElse(null); + } + + @JsonIgnore + public Long getMaxInstallmentCount() { + return maxInstallmentCount.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public Boolean getNotificationEnabled() { + return notificationEnabled.orElse(null); + } + + @JsonIgnore + public PaymentCallbackRequestDto getCallback() { + return callback.orElse(null); + } + + @JsonIgnore + public Boolean getIsAddressRequired() { + return isAddressRequired.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLinkSaveRequestDtoBuilder { + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentLinkSaveRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable endDate = JsonNullable.undefined(); + + @JsonProperty("endDate") + public PaymentLinkSaveRequestDtoBuilder endDate(String value) { + this.endDate = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentLinkSaveRequestDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDateLimitDays = JsonNullable.undefined(); + + @JsonProperty("dueDateLimitDays") + public PaymentLinkSaveRequestDtoBuilder dueDateLimitDays(Long value) { + this.dueDateLimitDays = JsonNullable.of(value); + return this; + } + + private JsonNullable subscriptionCycle = JsonNullable.undefined(); + + @JsonProperty("subscriptionCycle") + public PaymentLinkSaveRequestDtoBuilder subscriptionCycle(PaymentLinkSaveRequestCycle value) { + this.subscriptionCycle = JsonNullable.of(value); + return this; + } + + private JsonNullable maxInstallmentCount = JsonNullable.of(1L); + + @JsonProperty("maxInstallmentCount") + public PaymentLinkSaveRequestDtoBuilder maxInstallmentCount(Long value) { + this.maxInstallmentCount = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PaymentLinkSaveRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable notificationEnabled = JsonNullable.of(true); + + @JsonProperty("notificationEnabled") + public PaymentLinkSaveRequestDtoBuilder notificationEnabled(Boolean value) { + this.notificationEnabled = JsonNullable.of(value); + return this; + } + + private JsonNullable callback = JsonNullable.undefined(); + + @JsonProperty("callback") + public PaymentLinkSaveRequestDtoBuilder callback(PaymentCallbackRequestDto value) { + this.callback = JsonNullable.of(value); + return this; + } + + private JsonNullable isAddressRequired = JsonNullable.undefined(); + + @JsonProperty("isAddressRequired") + public PaymentLinkSaveRequestDtoBuilder isAddressRequired(Boolean value) { + this.isAddressRequired = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestBillingType.java new file mode 100644 index 0000000..ab4edce --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Allowed payment method + */ +@Getter +@AllArgsConstructor +public enum PaymentLinkUpdateRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLinkUpdateRequestBillingType fromValue(String value) { + return Arrays.stream(PaymentLinkUpdateRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestChargeType.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestChargeType.java new file mode 100644 index 0000000..3626bae --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestChargeType.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Charge type + */ +@Getter +@AllArgsConstructor +public enum PaymentLinkUpdateRequestChargeType { + DETACHED("DETACHED"), + RECURRENT("RECURRENT"), + INSTALLMENT("INSTALLMENT"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLinkUpdateRequestChargeType fromValue(String value) { + return Arrays.stream(PaymentLinkUpdateRequestChargeType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestCycle.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestCycle.java new file mode 100644 index 0000000..a4ba1d8 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestCycle.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing frequency, if the chargeType is RECURRENT + */ +@Getter +@AllArgsConstructor +public enum PaymentLinkUpdateRequestCycle { + WEEKLY("WEEKLY"), + BIWEEKLY("BIWEEKLY"), + MONTHLY("MONTHLY"), + BIMONTHLY("BIMONTHLY"), + QUARTERLY("QUARTERLY"), + SEMIANNUALLY("SEMIANNUALLY"), + YEARLY("YEARLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentLinkUpdateRequestCycle fromValue(String value) { + return Arrays.stream(PaymentLinkUpdateRequestCycle.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestDto.java new file mode 100644 index 0000000..0eafd39 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestDto.java @@ -0,0 +1,273 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentLinkUpdateRequestDto { + + /** + * Payment link name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Payments link description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * End date + */ + @JsonProperty("endDate") + private JsonNullable endDate; + + /** + * Value of the payment link, if not informed, the payer can inform how much they want to pay + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Determines whether the payments link is active + */ + @JsonProperty("active") + private JsonNullable active; + + /** + * Allowed payment method + */ + @JsonProperty("billingType") + private JsonNullable billingType; + + /** + * Charge type + */ + @JsonProperty("chargeType") + private JsonNullable chargeType; + + /** + * Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) + */ + @JsonProperty("dueDateLimitDays") + private JsonNullable dueDateLimitDays; + + /** + * Billing frequency, if the chargeType is RECURRENT + */ + @JsonProperty("subscriptionCycle") + private JsonNullable subscriptionCycle; + + /** + * Maximum number of installments that your customer can pay in installments for the payment link if the billing method selected is Installments. If not informed, the default value will be 1 installment + */ + @JsonProperty("maxInstallmentCount") + private JsonNullable maxInstallmentCount; + + /** + * Free search field. + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Defines whether customers registered via the payments link will have notifications enabled. If not informed, the default value will be true + */ + @JsonProperty("notificationEnabled") + private JsonNullable notificationEnabled; + + /** + * Automatic redirection information after the payment of the link payment + */ + @JsonProperty("callback") + private JsonNullable callback; + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getEndDate() { + return endDate.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Boolean getActive() { + return active.orElse(null); + } + + @JsonIgnore + public PaymentLinkUpdateRequestBillingType getBillingType() { + return billingType.orElse(null); + } + + @JsonIgnore + public PaymentLinkUpdateRequestChargeType getChargeType() { + return chargeType.orElse(null); + } + + @JsonIgnore + public Long getDueDateLimitDays() { + return dueDateLimitDays.orElse(null); + } + + @JsonIgnore + public PaymentLinkUpdateRequestCycle getSubscriptionCycle() { + return subscriptionCycle.orElse(null); + } + + @JsonIgnore + public Long getMaxInstallmentCount() { + return maxInstallmentCount.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public Boolean getNotificationEnabled() { + return notificationEnabled.orElse(null); + } + + @JsonIgnore + public PaymentCallbackRequestDto getCallback() { + return callback.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentLinkUpdateRequestDtoBuilder { + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public PaymentLinkUpdateRequestDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentLinkUpdateRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable endDate = JsonNullable.undefined(); + + @JsonProperty("endDate") + public PaymentLinkUpdateRequestDtoBuilder endDate(String value) { + this.endDate = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentLinkUpdateRequestDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable active = JsonNullable.undefined(); + + @JsonProperty("active") + public PaymentLinkUpdateRequestDtoBuilder active(Boolean value) { + this.active = JsonNullable.of(value); + return this; + } + + private JsonNullable billingType = JsonNullable.undefined(); + + @JsonProperty("billingType") + public PaymentLinkUpdateRequestDtoBuilder billingType(PaymentLinkUpdateRequestBillingType value) { + this.billingType = JsonNullable.of(value); + return this; + } + + private JsonNullable chargeType = JsonNullable.undefined(); + + @JsonProperty("chargeType") + public PaymentLinkUpdateRequestDtoBuilder chargeType(PaymentLinkUpdateRequestChargeType value) { + this.chargeType = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDateLimitDays = JsonNullable.undefined(); + + @JsonProperty("dueDateLimitDays") + public PaymentLinkUpdateRequestDtoBuilder dueDateLimitDays(Long value) { + this.dueDateLimitDays = JsonNullable.of(value); + return this; + } + + private JsonNullable subscriptionCycle = JsonNullable.undefined(); + + @JsonProperty("subscriptionCycle") + public PaymentLinkUpdateRequestDtoBuilder subscriptionCycle(PaymentLinkUpdateRequestCycle value) { + this.subscriptionCycle = JsonNullable.of(value); + return this; + } + + private JsonNullable maxInstallmentCount = JsonNullable.of(1L); + + @JsonProperty("maxInstallmentCount") + public PaymentLinkUpdateRequestDtoBuilder maxInstallmentCount(Long value) { + this.maxInstallmentCount = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PaymentLinkUpdateRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable notificationEnabled = JsonNullable.of(true); + + @JsonProperty("notificationEnabled") + public PaymentLinkUpdateRequestDtoBuilder notificationEnabled(Boolean value) { + this.notificationEnabled = JsonNullable.of(value); + return this; + } + + private JsonNullable callback = JsonNullable.undefined(); + + @JsonProperty("callback") + public PaymentLinkUpdateRequestDtoBuilder callback(PaymentCallbackRequestDto value) { + this.callback = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentListRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentListRequestBillingType.java new file mode 100644 index 0000000..257a789 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentListRequestBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by billing type + */ +@Getter +@AllArgsConstructor +public enum PaymentListRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentListRequestBillingType fromValue(String value) { + return Arrays.stream(PaymentListRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentListRequestInvoiceStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentListRequestInvoiceStatus.java new file mode 100644 index 0000000..8f04b42 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentListRequestInvoiceStatus.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter to return charges that have or do not have an invoice + */ +@Getter +@AllArgsConstructor +public enum PaymentListRequestInvoiceStatus { + SCHEDULED("SCHEDULED"), + AUTHORIZED("AUTHORIZED"), + PROCESSING_CANCELLATION("PROCESSING_CANCELLATION"), + CANCELED("CANCELED"), + CANCELLATION_DENIED("CANCELLATION_DENIED"), + ERROR("ERROR"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentListRequestInvoiceStatus fromValue(String value) { + return Arrays.stream(PaymentListRequestInvoiceStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentListRequestPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentListRequestPaymentStatus.java new file mode 100644 index 0000000..02af7b8 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentListRequestPaymentStatus.java @@ -0,0 +1,42 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by status + */ +@Getter +@AllArgsConstructor +public enum PaymentListRequestPaymentStatus { + PENDING("PENDING"), + RECEIVED("RECEIVED"), + CONFIRMED("CONFIRMED"), + OVERDUE("OVERDUE"), + REFUNDED("REFUNDED"), + RECEIVED_IN_CASH("RECEIVED_IN_CASH"), + REFUND_REQUESTED("REFUND_REQUESTED"), + REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), + CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), + CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), + AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), + DUNNING_REQUESTED("DUNNING_REQUESTED"), + DUNNING_RECEIVED("DUNNING_RECEIVED"), + AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentListRequestPaymentStatus fromValue(String value) { + return Arrays.stream(PaymentListRequestPaymentStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentListResponseDto.java new file mode 100644 index 0000000..19a16ee --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PaymentListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PaymentListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PaymentListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PaymentListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentPayWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentPayWithCreditCardRequestDto.java new file mode 100644 index 0000000..27ed018 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentPayWithCreditCardRequestDto.java @@ -0,0 +1,58 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentPayWithCreditCardRequestDto { + + /** + * Credit card information + */ + @NonNull + private CreditCardRequestDto creditCard; + + /** + * Credit card holder information + */ + @NonNull + private CreditCardHolderInfoRequestDto creditCardHolderInfo; + + /** + * Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. + */ + @JsonProperty("creditCardToken") + private JsonNullable creditCardToken; + + @JsonIgnore + public String getCreditCardToken() { + return creditCardToken.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentPayWithCreditCardRequestDtoBuilder { + + private JsonNullable creditCardToken = JsonNullable.undefined(); + + @JsonProperty("creditCardToken") + public PaymentPayWithCreditCardRequestDtoBuilder creditCardToken(String value) { + this.creditCardToken = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentPixQrCodeResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentPixQrCodeResponseDto.java new file mode 100644 index 0000000..e761fcd --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentPixQrCodeResponseDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Payment data related to pix + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentPixQrCodeResponseDto { + + /** + * QrCode image in base64 + */ + @JsonProperty("encodedImage") + private JsonNullable encodedImage; + + /** + * Copy and Paste of the Pix QrCode + */ + @JsonProperty("payload") + private JsonNullable payload; + + /** + * QrCode expiration date + */ + @JsonProperty("expirationDate") + private JsonNullable expirationDate; + + @JsonIgnore + public String getEncodedImage() { + return encodedImage.orElse(null); + } + + @JsonIgnore + public String getPayload() { + return payload.orElse(null); + } + + @JsonIgnore + public String getExpirationDate() { + return expirationDate.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentPixQrCodeResponseDtoBuilder { + + private JsonNullable encodedImage = JsonNullable.undefined(); + + @JsonProperty("encodedImage") + public PaymentPixQrCodeResponseDtoBuilder encodedImage(String value) { + this.encodedImage = JsonNullable.of(value); + return this; + } + + private JsonNullable payload = JsonNullable.undefined(); + + @JsonProperty("payload") + public PaymentPixQrCodeResponseDtoBuilder payload(String value) { + this.payload = JsonNullable.of(value); + return this; + } + + private JsonNullable expirationDate = JsonNullable.undefined(); + + @JsonProperty("expirationDate") + public PaymentPixQrCodeResponseDtoBuilder expirationDate(String value) { + this.expirationDate = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentReceiveInCashRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentReceiveInCashRequestDto.java new file mode 100644 index 0000000..4123340 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentReceiveInCashRequestDto.java @@ -0,0 +1,83 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentReceiveInCashRequestDto { + + /** + * Date the customer made the payment + */ + @JsonProperty("paymentDate") + private JsonNullable paymentDate; + + /** + * Amount paid by the customer + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Send or not send notification of confirmed payment to the customer + */ + @JsonProperty("notifyCustomer") + private JsonNullable notifyCustomer; + + @JsonIgnore + public String getPaymentDate() { + return paymentDate.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Boolean getNotifyCustomer() { + return notifyCustomer.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentReceiveInCashRequestDtoBuilder { + + private JsonNullable paymentDate = JsonNullable.undefined(); + + @JsonProperty("paymentDate") + public PaymentReceiveInCashRequestDtoBuilder paymentDate(String value) { + this.paymentDate = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentReceiveInCashRequestDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable notifyCustomer = JsonNullable.undefined(); + + @JsonProperty("notifyCustomer") + public PaymentReceiveInCashRequestDtoBuilder notifyCustomer(Boolean value) { + this.notifyCustomer = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponseDto.java new file mode 100644 index 0000000..6f966f4 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponseDto.java @@ -0,0 +1,182 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Refunds information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentRefundGetResponseDto { + + /** + * Refund creation date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Refund status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Refund value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * (Pix only) Unique identifier of the Pix transaction at the Central Bank + */ + @JsonProperty("endToEndIdentifier") + private JsonNullable endToEndIdentifier; + + /** + * Description of the refund + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * (Pix only) Refund effective date + */ + @JsonProperty("effectiveDate") + private JsonNullable effectiveDate; + + /** + * Transaction receipt link + */ + @JsonProperty("transactionReceiptUrl") + private JsonNullable transactionReceiptUrl; + + /** + * Refunded Splits, if any + */ + @JsonProperty("refundedSplits") + private JsonNullable> refundedSplits; + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public PaymentRefundGetResponsePaymentRefundStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getEndToEndIdentifier() { + return endToEndIdentifier.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getEffectiveDate() { + return effectiveDate.orElse(null); + } + + @JsonIgnore + public String getTransactionReceiptUrl() { + return transactionReceiptUrl.orElse(null); + } + + @JsonIgnore + public List getRefundedSplits() { + return refundedSplits.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentRefundGetResponseDtoBuilder { + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public PaymentRefundGetResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentRefundGetResponseDtoBuilder status(PaymentRefundGetResponsePaymentRefundStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentRefundGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable endToEndIdentifier = JsonNullable.undefined(); + + @JsonProperty("endToEndIdentifier") + public PaymentRefundGetResponseDtoBuilder endToEndIdentifier(String value) { + this.endToEndIdentifier = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentRefundGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable effectiveDate = JsonNullable.undefined(); + + @JsonProperty("effectiveDate") + public PaymentRefundGetResponseDtoBuilder effectiveDate(String value) { + this.effectiveDate = JsonNullable.of(value); + return this; + } + + private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); + + @JsonProperty("transactionReceiptUrl") + public PaymentRefundGetResponseDtoBuilder transactionReceiptUrl(String value) { + this.transactionReceiptUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable> refundedSplits = JsonNullable.undefined(); + + @JsonProperty("refundedSplits") + public PaymentRefundGetResponseDtoBuilder refundedSplits(List value) { + this.refundedSplits = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponsePaymentRefundStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponsePaymentRefundStatus.java new file mode 100644 index 0000000..ad057d4 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponsePaymentRefundStatus.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Refund status + */ +@Getter +@AllArgsConstructor +public enum PaymentRefundGetResponsePaymentRefundStatus { + PENDING("PENDING"), + AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), + AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION("AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION"), + CANCELLED("CANCELLED"), + DONE("DONE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentRefundGetResponsePaymentRefundStatus fromValue(String value) { + return Arrays.stream(PaymentRefundGetResponsePaymentRefundStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentRefundListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentRefundListResponseDto.java new file mode 100644 index 0000000..ad160a4 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentRefundListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentRefundListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentRefundListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentRefundListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PaymentRefundListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PaymentRefundListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentRefundListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PaymentRefundListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PaymentRefundListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentRefundRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentRefundRequestDto.java new file mode 100644 index 0000000..28d839d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentRefundRequestDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentRefundRequestDto { + + /** + * Amount to be refunded + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Reason for the refund + */ + @JsonProperty("description") + private JsonNullable description; + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentRefundRequestDtoBuilder { + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentRefundRequestDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentRefundRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentRefundedSplitResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentRefundedSplitResponseDto.java new file mode 100644 index 0000000..3f8daa6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentRefundedSplitResponseDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Refunded Splits, if any + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentRefundedSplitResponseDto { + + /** + * Unique split identifier + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Refunded value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Indicates whether the split was refunded + */ + @JsonProperty("done") + private JsonNullable done; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Boolean getDone() { + return done.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentRefundedSplitResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentRefundedSplitResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentRefundedSplitResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable done = JsonNullable.undefined(); + + @JsonProperty("done") + public PaymentRefundedSplitResponseDtoBuilder done(Boolean value) { + this.done = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentSaveRequestBillingType.java new file mode 100644 index 0000000..cba3801 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveRequestBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment billing type + */ +@Getter +@AllArgsConstructor +public enum PaymentSaveRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentSaveRequestBillingType fromValue(String value) { + return Arrays.stream(PaymentSaveRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSaveRequestDto.java new file mode 100644 index 0000000..1a9d017 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveRequestDto.java @@ -0,0 +1,280 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSaveRequestDto { + + /** + * Unique customer identifier in Asaas + */ + @NonNull + private String customer; + + /** + * Payment billing type + */ + @NonNull + private PaymentSaveRequestBillingType billingType; + + /** + * Payment amount + */ + @NonNull + private Double value; + + /** + * Payment due date + */ + @NonNull + private String dueDate; + + /** + * Payment description (max. 500 characters) + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Days after registration cancellation deadline (only for bank slip) + */ + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + private JsonNullable daysAfterDueDateToRegistrationCancellation; + + /** + * Free search field + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Number of installments (only in the case of installment payment) + */ + @JsonProperty("installmentCount") + private JsonNullable installmentCount; + + /** + * Enter the total amount of a charge that will be paid in installments (only in the case of an installment charge). If this field is sent, the installmentValue is not necessary, the calculation per installment will be automatic. + */ + @JsonProperty("totalValue") + private JsonNullable totalValue; + + /** + * Value of each installment (only in the case of installment payment). Send this field if you want to define the value of each installment. + */ + @JsonProperty("installmentValue") + private JsonNullable installmentValue; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Define whether the payment will be sent via post + */ + @JsonProperty("postalService") + private JsonNullable postalService; + + /** + * Split Settings + */ + @JsonProperty("split") + private JsonNullable> split; + + /** + * Automatic redirection information after the payment of the link payment + */ + @JsonProperty("callback") + private JsonNullable callback; + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Long getDaysAfterDueDateToRegistrationCancellation() { + return daysAfterDueDateToRegistrationCancellation.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public Long getInstallmentCount() { + return installmentCount.orElse(null); + } + + @JsonIgnore + public Double getTotalValue() { + return totalValue.orElse(null); + } + + @JsonIgnore + public Double getInstallmentValue() { + return installmentValue.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentInterestRequestDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public PaymentFineRequestDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public Boolean getPostalService() { + return postalService.orElse(null); + } + + @JsonIgnore + public List getSplit() { + return split.orElse(null); + } + + @JsonIgnore + public PaymentCallbackRequestDto getCallback() { + return callback.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSaveRequestDtoBuilder { + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentSaveRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); + + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + public PaymentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PaymentSaveRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentCount = JsonNullable.undefined(); + + @JsonProperty("installmentCount") + public PaymentSaveRequestDtoBuilder installmentCount(Long value) { + this.installmentCount = JsonNullable.of(value); + return this; + } + + private JsonNullable totalValue = JsonNullable.undefined(); + + @JsonProperty("totalValue") + public PaymentSaveRequestDtoBuilder totalValue(Double value) { + this.totalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentValue = JsonNullable.undefined(); + + @JsonProperty("installmentValue") + public PaymentSaveRequestDtoBuilder installmentValue(Double value) { + this.installmentValue = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public PaymentSaveRequestDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public PaymentSaveRequestDtoBuilder interest(PaymentInterestRequestDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public PaymentSaveRequestDtoBuilder fine(PaymentFineRequestDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable postalService = JsonNullable.undefined(); + + @JsonProperty("postalService") + public PaymentSaveRequestDtoBuilder postalService(Boolean value) { + this.postalService = JsonNullable.of(value); + return this; + } + + private JsonNullable> split = JsonNullable.undefined(); + + @JsonProperty("split") + public PaymentSaveRequestDtoBuilder split(List value) { + this.split = JsonNullable.of(value); + return this; + } + + private JsonNullable callback = JsonNullable.undefined(); + + @JsonProperty("callback") + public PaymentSaveRequestDtoBuilder callback(PaymentCallbackRequestDto value) { + this.callback = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.java b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.java new file mode 100644 index 0000000..7cc266c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.java @@ -0,0 +1,41 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Flag of the card used + */ +@Getter +@AllArgsConstructor +public enum PaymentSaveWithCreditCardCreditCardCreditCardBrand { + VISA("VISA"), + MASTERCARD("MASTERCARD"), + ELO("ELO"), + DINERS("DINERS"), + DISCOVER("DISCOVER"), + AMEX("AMEX"), + CABAL("CABAL"), + BANESCARD("BANESCARD"), + CREDZ("CREDZ"), + SOROCRED("SOROCRED"), + CREDSYSTEM("CREDSYSTEM"), + JCB("JCB"), + UNKNOWN("UNKNOWN"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentSaveWithCreditCardCreditCardCreditCardBrand fromValue(String value) { + return Arrays.stream(PaymentSaveWithCreditCardCreditCardCreditCardBrand.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardDto.java new file mode 100644 index 0000000..ac9d5f3 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardDto.java @@ -0,0 +1,88 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Credit card information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSaveWithCreditCardCreditCardDto { + + /** + * Last 4 digits of the card used + */ + @JsonProperty("creditCardNumber") + private JsonNullable creditCardNumber; + + /** + * Flag of the card used + */ + @JsonProperty("creditCardBrand") + private JsonNullable creditCardBrand; + + /** + * Credit card token if tokenization is active. + */ + @JsonProperty("creditCardToken") + private JsonNullable creditCardToken; + + @JsonIgnore + public String getCreditCardNumber() { + return creditCardNumber.orElse(null); + } + + @JsonIgnore + public PaymentSaveWithCreditCardCreditCardCreditCardBrand getCreditCardBrand() { + return creditCardBrand.orElse(null); + } + + @JsonIgnore + public String getCreditCardToken() { + return creditCardToken.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSaveWithCreditCardCreditCardDtoBuilder { + + private JsonNullable creditCardNumber = JsonNullable.undefined(); + + @JsonProperty("creditCardNumber") + public PaymentSaveWithCreditCardCreditCardDtoBuilder creditCardNumber(String value) { + this.creditCardNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCardBrand = JsonNullable.undefined(); + + @JsonProperty("creditCardBrand") + public PaymentSaveWithCreditCardCreditCardDtoBuilder creditCardBrand( + PaymentSaveWithCreditCardCreditCardCreditCardBrand value + ) { + this.creditCardBrand = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCardToken = JsonNullable.undefined(); + + @JsonProperty("creditCardToken") + public PaymentSaveWithCreditCardCreditCardDtoBuilder creditCardToken(String value) { + this.creditCardToken = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestBillingType.java new file mode 100644 index 0000000..e158fbd --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment billing type + */ +@Getter +@AllArgsConstructor +public enum PaymentSaveWithCreditCardRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentSaveWithCreditCardRequestBillingType fromValue(String value) { + return Arrays.stream(PaymentSaveWithCreditCardRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestDto.java new file mode 100644 index 0000000..c3159dd --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestDto.java @@ -0,0 +1,368 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSaveWithCreditCardRequestDto { + + /** + * Unique customer identifier in Asaas + */ + @NonNull + private String customer; + + /** + * Payment billing type + */ + @NonNull + private PaymentSaveWithCreditCardRequestBillingType billingType; + + /** + * Payment amount + */ + @NonNull + private Double value; + + /** + * Payment due date + */ + @NonNull + private String dueDate; + + /** + * IP from where the customer is making the purchase. Your server's IP must not be entered. + */ + @NonNull + private String remoteIp; + + /** + * Payment description (max. 500 characters) + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Days after registration cancellation deadline (only for bank slip) + */ + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + private JsonNullable daysAfterDueDateToRegistrationCancellation; + + /** + * Free search field + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Number of installments (only in the case of installment payment) + */ + @JsonProperty("installmentCount") + private JsonNullable installmentCount; + + /** + * Enter the total amount of a charge that will be paid in installments (only in the case of an installment charge). If this field is sent, the installmentValue is not necessary, the calculation per installment will be automatic. + */ + @JsonProperty("totalValue") + private JsonNullable totalValue; + + /** + * Value of each installment (only in the case of installment payment). Send this field if you want to define the value of each installment. + */ + @JsonProperty("installmentValue") + private JsonNullable installmentValue; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Define whether the payment will be sent via post + */ + @JsonProperty("postalService") + private JsonNullable postalService; + + /** + * Split Settings + */ + @JsonProperty("split") + private JsonNullable> split; + + /** + * Automatic redirection information after the payment of the link payment + */ + @JsonProperty("callback") + private JsonNullable callback; + + /** + * Credit card information + */ + @JsonProperty("creditCard") + private JsonNullable creditCard; + + /** + * Credit card holder information + */ + @JsonProperty("creditCardHolderInfo") + private JsonNullable creditCardHolderInfo; + + /** + * Credit card token for using the credit card tokenization functionality + */ + @JsonProperty("creditCardToken") + private JsonNullable creditCardToken; + + /** + * Carry out only the Pre-Authorization of the payment + */ + @JsonProperty("authorizeOnly") + private JsonNullable authorizeOnly; + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Long getDaysAfterDueDateToRegistrationCancellation() { + return daysAfterDueDateToRegistrationCancellation.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public Long getInstallmentCount() { + return installmentCount.orElse(null); + } + + @JsonIgnore + public Double getTotalValue() { + return totalValue.orElse(null); + } + + @JsonIgnore + public Double getInstallmentValue() { + return installmentValue.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentInterestRequestDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public PaymentFineRequestDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public Boolean getPostalService() { + return postalService.orElse(null); + } + + @JsonIgnore + public List getSplit() { + return split.orElse(null); + } + + @JsonIgnore + public PaymentCallbackRequestDto getCallback() { + return callback.orElse(null); + } + + @JsonIgnore + public CreditCardRequestDto getCreditCard() { + return creditCard.orElse(null); + } + + @JsonIgnore + public CreditCardHolderInfoRequestDto getCreditCardHolderInfo() { + return creditCardHolderInfo.orElse(null); + } + + @JsonIgnore + public String getCreditCardToken() { + return creditCardToken.orElse(null); + } + + @JsonIgnore + public Boolean getAuthorizeOnly() { + return authorizeOnly.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSaveWithCreditCardRequestDtoBuilder { + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentSaveWithCreditCardRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); + + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + public PaymentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PaymentSaveWithCreditCardRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentCount = JsonNullable.undefined(); + + @JsonProperty("installmentCount") + public PaymentSaveWithCreditCardRequestDtoBuilder installmentCount(Long value) { + this.installmentCount = JsonNullable.of(value); + return this; + } + + private JsonNullable totalValue = JsonNullable.undefined(); + + @JsonProperty("totalValue") + public PaymentSaveWithCreditCardRequestDtoBuilder totalValue(Double value) { + this.totalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable installmentValue = JsonNullable.undefined(); + + @JsonProperty("installmentValue") + public PaymentSaveWithCreditCardRequestDtoBuilder installmentValue(Double value) { + this.installmentValue = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public PaymentSaveWithCreditCardRequestDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public PaymentSaveWithCreditCardRequestDtoBuilder interest(PaymentInterestRequestDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public PaymentSaveWithCreditCardRequestDtoBuilder fine(PaymentFineRequestDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable postalService = JsonNullable.undefined(); + + @JsonProperty("postalService") + public PaymentSaveWithCreditCardRequestDtoBuilder postalService(Boolean value) { + this.postalService = JsonNullable.of(value); + return this; + } + + private JsonNullable> split = JsonNullable.undefined(); + + @JsonProperty("split") + public PaymentSaveWithCreditCardRequestDtoBuilder split(List value) { + this.split = JsonNullable.of(value); + return this; + } + + private JsonNullable callback = JsonNullable.undefined(); + + @JsonProperty("callback") + public PaymentSaveWithCreditCardRequestDtoBuilder callback(PaymentCallbackRequestDto value) { + this.callback = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCard = JsonNullable.undefined(); + + @JsonProperty("creditCard") + public PaymentSaveWithCreditCardRequestDtoBuilder creditCard(CreditCardRequestDto value) { + if (value == null) { + throw new IllegalStateException("creditCard cannot be null"); + } + this.creditCard = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCardHolderInfo = JsonNullable.undefined(); + + @JsonProperty("creditCardHolderInfo") + public PaymentSaveWithCreditCardRequestDtoBuilder creditCardHolderInfo(CreditCardHolderInfoRequestDto value) { + if (value == null) { + throw new IllegalStateException("creditCardHolderInfo cannot be null"); + } + this.creditCardHolderInfo = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCardToken = JsonNullable.undefined(); + + @JsonProperty("creditCardToken") + public PaymentSaveWithCreditCardRequestDtoBuilder creditCardToken(String value) { + this.creditCardToken = JsonNullable.of(value); + return this; + } + + private JsonNullable authorizeOnly = JsonNullable.undefined(); + + @JsonProperty("authorizeOnly") + public PaymentSaveWithCreditCardRequestDtoBuilder authorizeOnly(Boolean value) { + this.authorizeOnly = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSimulateBankSlipResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSimulateBankSlipResponseDto.java new file mode 100644 index 0000000..2de11c8 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateBankSlipResponseDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Boleto fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSimulateBankSlipResponseDto { + + /** + * Net value + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Fee value + */ + @JsonProperty("feeValue") + private JsonNullable feeValue; + + /** + * Installment information + */ + @JsonProperty("installment") + private JsonNullable installment; + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getFeeValue() { + return feeValue.orElse(null); + } + + @JsonIgnore + public PaymentSimulateInstallmentResponseDto getInstallment() { + return installment.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSimulateBankSlipResponseDtoBuilder { + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public PaymentSimulateBankSlipResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable feeValue = JsonNullable.undefined(); + + @JsonProperty("feeValue") + public PaymentSimulateBankSlipResponseDtoBuilder feeValue(Double value) { + this.feeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public PaymentSimulateBankSlipResponseDtoBuilder installment(PaymentSimulateInstallmentResponseDto value) { + this.installment = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSimulateCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSimulateCreditCardResponseDto.java new file mode 100644 index 0000000..a972c74 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateCreditCardResponseDto.java @@ -0,0 +1,105 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Card fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSimulateCreditCardResponseDto { + + /** + * Net value + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Rate in percentage + */ + @JsonProperty("feePercentage") + private JsonNullable feePercentage; + + /** + * Operation fee + */ + @JsonProperty("operationFee") + private JsonNullable operationFee; + + /** + * Installment information + */ + @JsonProperty("installment") + private JsonNullable installment; + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getFeePercentage() { + return feePercentage.orElse(null); + } + + @JsonIgnore + public Double getOperationFee() { + return operationFee.orElse(null); + } + + @JsonIgnore + public PaymentSimulateInstallmentResponseDto getInstallment() { + return installment.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSimulateCreditCardResponseDtoBuilder { + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public PaymentSimulateCreditCardResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable feePercentage = JsonNullable.undefined(); + + @JsonProperty("feePercentage") + public PaymentSimulateCreditCardResponseDtoBuilder feePercentage(Double value) { + this.feePercentage = JsonNullable.of(value); + return this; + } + + private JsonNullable operationFee = JsonNullable.undefined(); + + @JsonProperty("operationFee") + public PaymentSimulateCreditCardResponseDtoBuilder operationFee(Double value) { + this.operationFee = JsonNullable.of(value); + return this; + } + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public PaymentSimulateCreditCardResponseDtoBuilder installment(PaymentSimulateInstallmentResponseDto value) { + this.installment = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSimulateInstallmentResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSimulateInstallmentResponseDto.java new file mode 100644 index 0000000..27453c2 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateInstallmentResponseDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Installment information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSimulateInstallmentResponseDto { + + /** + * Net value + */ + @JsonProperty("paymentNetValue") + private JsonNullable paymentNetValue; + + /** + * Total value + */ + @JsonProperty("paymentValue") + private JsonNullable paymentValue; + + @JsonIgnore + public Double getPaymentNetValue() { + return paymentNetValue.orElse(null); + } + + @JsonIgnore + public Double getPaymentValue() { + return paymentValue.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSimulateInstallmentResponseDtoBuilder { + + private JsonNullable paymentNetValue = JsonNullable.undefined(); + + @JsonProperty("paymentNetValue") + public PaymentSimulateInstallmentResponseDtoBuilder paymentNetValue(Double value) { + this.paymentNetValue = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentValue = JsonNullable.undefined(); + + @JsonProperty("paymentValue") + public PaymentSimulateInstallmentResponseDtoBuilder paymentValue(Double value) { + this.paymentValue = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSimulatePixResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSimulatePixResponseDto.java new file mode 100644 index 0000000..c0fa3e3 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulatePixResponseDto.java @@ -0,0 +1,105 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * PIX fees + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSimulatePixResponseDto { + + /** + * Net value + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Rate in percentage + */ + @JsonProperty("feePercentage") + private JsonNullable feePercentage; + + /** + * Fee value + */ + @JsonProperty("feeValue") + private JsonNullable feeValue; + + /** + * Installment information + */ + @JsonProperty("installment") + private JsonNullable installment; + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public Double getFeePercentage() { + return feePercentage.orElse(null); + } + + @JsonIgnore + public Double getFeeValue() { + return feeValue.orElse(null); + } + + @JsonIgnore + public PaymentSimulateInstallmentResponseDto getInstallment() { + return installment.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSimulatePixResponseDtoBuilder { + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public PaymentSimulatePixResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable feePercentage = JsonNullable.undefined(); + + @JsonProperty("feePercentage") + public PaymentSimulatePixResponseDtoBuilder feePercentage(Double value) { + this.feePercentage = JsonNullable.of(value); + return this; + } + + private JsonNullable feeValue = JsonNullable.undefined(); + + @JsonProperty("feeValue") + public PaymentSimulatePixResponseDtoBuilder feeValue(Double value) { + this.feeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable installment = JsonNullable.undefined(); + + @JsonProperty("installment") + public PaymentSimulatePixResponseDtoBuilder installment(PaymentSimulateInstallmentResponseDto value) { + this.installment = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestBillingType.java new file mode 100644 index 0000000..f203506 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestBillingType.java @@ -0,0 +1,37 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Form of payment + */ +@Getter +@AllArgsConstructor +public enum PaymentSimulateRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + MUNDIPAGG_CIELO("MUNDIPAGG_CIELO"), + TRANSFER("TRANSFER"), + DEPOSIT("DEPOSIT"), + DEBIT_CARD("DEBIT_CARD"), + PIX("PIX"), + ASAAS_MONEY("ASAAS_MONEY"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentSimulateRequestBillingType fromValue(String value) { + return Arrays.stream(PaymentSimulateRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestDto.java new file mode 100644 index 0000000..f9c17f1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestDto.java @@ -0,0 +1,59 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSimulateRequestDto { + + /** + * Total installment or billing amount + */ + @NonNull + private Double value; + + /** + * Form of payment + */ + @NonNull + private List billingTypes; + + /** + * Number of installments + */ + @JsonProperty("installmentCount") + private JsonNullable installmentCount; + + @JsonIgnore + public Long getInstallmentCount() { + return installmentCount.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSimulateRequestDtoBuilder { + + private JsonNullable installmentCount = JsonNullable.undefined(); + + @JsonProperty("installmentCount") + public PaymentSimulateRequestDtoBuilder installmentCount(Long value) { + this.installmentCount = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSimulateResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSimulateResponseDto.java new file mode 100644 index 0000000..b71a801 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateResponseDto.java @@ -0,0 +1,102 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSimulateResponseDto { + + /** + * Total installment or billing amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Card fees + */ + @JsonProperty("creditCard") + private JsonNullable creditCard; + + /** + * Boleto fees + */ + @JsonProperty("bankSlip") + private JsonNullable bankSlip; + + /** + * PIX fees + */ + @JsonProperty("pix") + private JsonNullable pix; + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public PaymentSimulateCreditCardResponseDto getCreditCard() { + return creditCard.orElse(null); + } + + @JsonIgnore + public PaymentSimulateBankSlipResponseDto getBankSlip() { + return bankSlip.orElse(null); + } + + @JsonIgnore + public PaymentSimulatePixResponseDto getPix() { + return pix.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSimulateResponseDtoBuilder { + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PaymentSimulateResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCard = JsonNullable.undefined(); + + @JsonProperty("creditCard") + public PaymentSimulateResponseDtoBuilder creditCard(PaymentSimulateCreditCardResponseDto value) { + this.creditCard = JsonNullable.of(value); + return this; + } + + private JsonNullable bankSlip = JsonNullable.undefined(); + + @JsonProperty("bankSlip") + public PaymentSimulateResponseDtoBuilder bankSlip(PaymentSimulateBankSlipResponseDto value) { + this.bankSlip = JsonNullable.of(value); + return this; + } + + private JsonNullable pix = JsonNullable.undefined(); + + @JsonProperty("pix") + public PaymentSimulateResponseDtoBuilder pix(PaymentSimulatePixResponseDto value) { + this.pix = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponseDto.java new file mode 100644 index 0000000..2f0e3ba --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponseDto.java @@ -0,0 +1,203 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Split Settings + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSplitGetResponseDto { + + /** + * Unique split identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Asaas wallet identifier that will be transferred + */ + @JsonProperty("walletId") + private JsonNullable walletId; + + /** + * Fixed amount to be transferred to the account when the charge is received + */ + @JsonProperty("fixedValue") + private JsonNullable fixedValue; + + /** + * Percentage of the net value of the charge to be transferred when received + */ + @JsonProperty("percentualValue") + private JsonNullable percentualValue; + + /** + * Amount that will be split relative to the total amount that will be paid + */ + @JsonProperty("totalValue") + private JsonNullable totalValue; + + /** + * Reason for canceling the split + */ + @JsonProperty("cancellationReason") + private JsonNullable cancellationReason; + + /** + * Split status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Unique identifier of split in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Split description + */ + @JsonProperty("description") + private JsonNullable description; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getWalletId() { + return walletId.orElse(null); + } + + @JsonIgnore + public Double getFixedValue() { + return fixedValue.orElse(null); + } + + @JsonIgnore + public Double getPercentualValue() { + return percentualValue.orElse(null); + } + + @JsonIgnore + public Double getTotalValue() { + return totalValue.orElse(null); + } + + @JsonIgnore + public PaymentSplitGetResponsePaymentSplitCancellationReason getCancellationReason() { + return cancellationReason.orElse(null); + } + + @JsonIgnore + public PaymentSplitGetResponsePaymentSplitStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSplitGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PaymentSplitGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable walletId = JsonNullable.undefined(); + + @JsonProperty("walletId") + public PaymentSplitGetResponseDtoBuilder walletId(String value) { + this.walletId = JsonNullable.of(value); + return this; + } + + private JsonNullable fixedValue = JsonNullable.undefined(); + + @JsonProperty("fixedValue") + public PaymentSplitGetResponseDtoBuilder fixedValue(Double value) { + this.fixedValue = JsonNullable.of(value); + return this; + } + + private JsonNullable percentualValue = JsonNullable.undefined(); + + @JsonProperty("percentualValue") + public PaymentSplitGetResponseDtoBuilder percentualValue(Double value) { + this.percentualValue = JsonNullable.of(value); + return this; + } + + private JsonNullable totalValue = JsonNullable.undefined(); + + @JsonProperty("totalValue") + public PaymentSplitGetResponseDtoBuilder totalValue(Double value) { + this.totalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable cancellationReason = + JsonNullable.undefined(); + + @JsonProperty("cancellationReason") + public PaymentSplitGetResponseDtoBuilder cancellationReason( + PaymentSplitGetResponsePaymentSplitCancellationReason value + ) { + this.cancellationReason = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentSplitGetResponseDtoBuilder status(PaymentSplitGetResponsePaymentSplitStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PaymentSplitGetResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentSplitGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitCancellationReason.java b/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitCancellationReason.java new file mode 100644 index 0000000..28075fc --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitCancellationReason.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Reason for canceling the split + */ +@Getter +@AllArgsConstructor +public enum PaymentSplitGetResponsePaymentSplitCancellationReason { + PAYMENT_DELETED("PAYMENT_DELETED"), + PAYMENT_OVERDUE("PAYMENT_OVERDUE"), + PAYMENT_RECEIVED_IN_CASH("PAYMENT_RECEIVED_IN_CASH"), + PAYMENT_REFUNDED("PAYMENT_REFUNDED"), + VALUE_DIVERGENCE_BLOCK("VALUE_DIVERGENCE_BLOCK"), + WALLET_UNABLE_TO_RECEIVE("WALLET_UNABLE_TO_RECEIVE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentSplitGetResponsePaymentSplitCancellationReason fromValue(String value) { + return Arrays.stream(PaymentSplitGetResponsePaymentSplitCancellationReason.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitStatus.java new file mode 100644 index 0000000..a73859c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitStatus.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Split status + */ +@Getter +@AllArgsConstructor +public enum PaymentSplitGetResponsePaymentSplitStatus { + PENDING("PENDING"), + AWAITING_CREDIT("AWAITING_CREDIT"), + CANCELLED("CANCELLED"), + DONE("DONE"), + REFUNDED("REFUNDED"), + BLOCKED_BY_VALUE_DIVERGENCE("BLOCKED_BY_VALUE_DIVERGENCE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentSplitGetResponsePaymentSplitStatus fromValue(String value) { + return Arrays.stream(PaymentSplitGetResponsePaymentSplitStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSplitListPaidRequestPaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentSplitListPaidRequestPaymentSplitStatus.java new file mode 100644 index 0000000..7a72332 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitListPaidRequestPaymentSplitStatus.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by status + */ +@Getter +@AllArgsConstructor +public enum PaymentSplitListPaidRequestPaymentSplitStatus { + PENDING("PENDING"), + AWAITING_CREDIT("AWAITING_CREDIT"), + CANCELLED("CANCELLED"), + DONE("DONE"), + REFUNDED("REFUNDED"), + BLOCKED_BY_VALUE_DIVERGENCE("BLOCKED_BY_VALUE_DIVERGENCE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentSplitListPaidRequestPaymentSplitStatus fromValue(String value) { + return Arrays.stream(PaymentSplitListPaidRequestPaymentSplitStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSplitListReceivedRequestPaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentSplitListReceivedRequestPaymentSplitStatus.java new file mode 100644 index 0000000..b2efe02 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitListReceivedRequestPaymentSplitStatus.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by status + */ +@Getter +@AllArgsConstructor +public enum PaymentSplitListReceivedRequestPaymentSplitStatus { + PENDING("PENDING"), + AWAITING_CREDIT("AWAITING_CREDIT"), + CANCELLED("CANCELLED"), + DONE("DONE"), + REFUNDED("REFUNDED"), + BLOCKED_BY_VALUE_DIVERGENCE("BLOCKED_BY_VALUE_DIVERGENCE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentSplitListReceivedRequestPaymentSplitStatus fromValue(String value) { + return Arrays.stream(PaymentSplitListReceivedRequestPaymentSplitStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSplitListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSplitListResponseDto.java new file mode 100644 index 0000000..36d48c3 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSplitListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSplitListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PaymentSplitListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PaymentSplitListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PaymentSplitListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PaymentSplitListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PaymentSplitListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PaymentSplitListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentSplitRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSplitRequestDto.java new file mode 100644 index 0000000..92ceeb2 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitRequestDto.java @@ -0,0 +1,131 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Split Settings + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentSplitRequestDto { + + /** + * Asaas wallet identifier that will be transferred + */ + @NonNull + private String walletId; + + /** + * Fixed amount to be transferred to the account when the payment is received + */ + @JsonProperty("fixedValue") + private JsonNullable fixedValue; + + /** + * Percentage of the net value of the charge to be transferred when received + */ + @JsonProperty("percentualValue") + private JsonNullable percentualValue; + + /** + * (Instalments only). Amount that will be split relative to the total amount that will be paid in installments. + */ + @JsonProperty("totalFixedValue") + private JsonNullable totalFixedValue; + + /** + * Split identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Split description + */ + @JsonProperty("description") + private JsonNullable description; + + @JsonIgnore + public Double getFixedValue() { + return fixedValue.orElse(null); + } + + @JsonIgnore + public Double getPercentualValue() { + return percentualValue.orElse(null); + } + + @JsonIgnore + public Double getTotalFixedValue() { + return totalFixedValue.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentSplitRequestDtoBuilder { + + private JsonNullable fixedValue = JsonNullable.undefined(); + + @JsonProperty("fixedValue") + public PaymentSplitRequestDtoBuilder fixedValue(Double value) { + this.fixedValue = JsonNullable.of(value); + return this; + } + + private JsonNullable percentualValue = JsonNullable.undefined(); + + @JsonProperty("percentualValue") + public PaymentSplitRequestDtoBuilder percentualValue(Double value) { + this.percentualValue = JsonNullable.of(value); + return this; + } + + private JsonNullable totalFixedValue = JsonNullable.undefined(); + + @JsonProperty("totalFixedValue") + public PaymentSplitRequestDtoBuilder totalFixedValue(Double value) { + this.totalFixedValue = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PaymentSplitRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentSplitRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentStatusResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentStatusResponseDto.java new file mode 100644 index 0000000..079d112 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentStatusResponseDto.java @@ -0,0 +1,45 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentStatusResponseDto { + + /** + * Payment status + */ + @JsonProperty("status") + private JsonNullable status; + + @JsonIgnore + public PaymentStatusResponsePaymentStatus getStatus() { + return status.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentStatusResponseDtoBuilder { + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PaymentStatusResponseDtoBuilder status(PaymentStatusResponsePaymentStatus value) { + this.status = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentStatusResponsePaymentStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentStatusResponsePaymentStatus.java new file mode 100644 index 0000000..7bdda2c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentStatusResponsePaymentStatus.java @@ -0,0 +1,42 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment status + */ +@Getter +@AllArgsConstructor +public enum PaymentStatusResponsePaymentStatus { + PENDING("PENDING"), + RECEIVED("RECEIVED"), + CONFIRMED("CONFIRMED"), + OVERDUE("OVERDUE"), + REFUNDED("REFUNDED"), + RECEIVED_IN_CASH("RECEIVED_IN_CASH"), + REFUND_REQUESTED("REFUND_REQUESTED"), + REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), + CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), + CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), + AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), + DUNNING_REQUESTED("DUNNING_REQUESTED"), + DUNNING_RECEIVED("DUNNING_RECEIVED"), + AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentStatusResponsePaymentStatus fromValue(String value) { + return Arrays.stream(PaymentStatusResponsePaymentStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestBillingType.java new file mode 100644 index 0000000..2369849 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Payment billing type + */ +@Getter +@AllArgsConstructor +public enum PaymentUpdateRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PaymentUpdateRequestBillingType fromValue(String value) { + return Arrays.stream(PaymentUpdateRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestDto.java new file mode 100644 index 0000000..c44878a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestDto.java @@ -0,0 +1,217 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentUpdateRequestDto { + + /** + * Payment billing type + */ + @NonNull + private PaymentUpdateRequestBillingType billingType; + + /** + * Payment amount + */ + @NonNull + private Double value; + + /** + * Payment due date + */ + @NonNull + private String dueDate; + + /** + * Payment description (max. 500 characters) + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Days after registration cancellation deadline (only for bank slip) + */ + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + private JsonNullable daysAfterDueDateToRegistrationCancellation; + + /** + * Free search field + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Define whether the payment will be sent via post + */ + @JsonProperty("postalService") + private JsonNullable postalService; + + /** + * Split Settings + */ + @JsonProperty("split") + private JsonNullable> split; + + /** + * Automatic redirection information after the payment of the link payment + */ + @JsonProperty("callback") + private JsonNullable callback; + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Long getDaysAfterDueDateToRegistrationCancellation() { + return daysAfterDueDateToRegistrationCancellation.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentInterestRequestDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public PaymentFineRequestDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public Boolean getPostalService() { + return postalService.orElse(null); + } + + @JsonIgnore + public List getSplit() { + return split.orElse(null); + } + + @JsonIgnore + public PaymentCallbackRequestDto getCallback() { + return callback.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentUpdateRequestDtoBuilder { + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PaymentUpdateRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); + + @JsonProperty("daysAfterDueDateToRegistrationCancellation") + public PaymentUpdateRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PaymentUpdateRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public PaymentUpdateRequestDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public PaymentUpdateRequestDtoBuilder interest(PaymentInterestRequestDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public PaymentUpdateRequestDtoBuilder fine(PaymentFineRequestDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable postalService = JsonNullable.undefined(); + + @JsonProperty("postalService") + public PaymentUpdateRequestDtoBuilder postalService(Boolean value) { + this.postalService = JsonNullable.of(value); + return this; + } + + private JsonNullable> split = JsonNullable.undefined(); + + @JsonProperty("split") + public PaymentUpdateRequestDtoBuilder split(List value) { + this.split = JsonNullable.of(value); + return this; + } + + private JsonNullable callback = JsonNullable.undefined(); + + @JsonProperty("callback") + public PaymentUpdateRequestDtoBuilder callback(PaymentCallbackRequestDto value) { + this.callback = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PaymentViewingInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentViewingInfoResponseDto.java new file mode 100644 index 0000000..5bccbd1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PaymentViewingInfoResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PaymentViewingInfoResponseDto { + + /** + * Invoice viewing date and time + */ + @JsonProperty("invoiceViewedDate") + private JsonNullable invoiceViewedDate; + + /** + * Bill viewing date and time + */ + @JsonProperty("boletoViewedDate") + private JsonNullable boletoViewedDate; + + @JsonIgnore + public String getInvoiceViewedDate() { + return invoiceViewedDate.orElse(null); + } + + @JsonIgnore + public String getBoletoViewedDate() { + return boletoViewedDate.orElse(null); + } + + // Overwrite lombok builder methods + public static class PaymentViewingInfoResponseDtoBuilder { + + private JsonNullable invoiceViewedDate = JsonNullable.undefined(); + + @JsonProperty("invoiceViewedDate") + public PaymentViewingInfoResponseDtoBuilder invoiceViewedDate(String value) { + this.invoiceViewedDate = JsonNullable.of(value); + return this; + } + + private JsonNullable boletoViewedDate = JsonNullable.undefined(); + + @JsonProperty("boletoViewedDate") + public PaymentViewingInfoResponseDtoBuilder boletoViewedDate(String value) { + this.boletoViewedDate = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponseDto.java new file mode 100644 index 0000000..1ca0563 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponseDto.java @@ -0,0 +1,178 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixAddressKeyGetResponseDto { + + /** + * Unique Pix key identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Key value + */ + @JsonProperty("key") + private JsonNullable key; + + /** + * Pix key type + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Key status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Key creation date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Determines whether the key can be deleted + */ + @JsonProperty("canBeDeleted") + private JsonNullable canBeDeleted; + + /** + * Reason it cannot be removed + */ + @JsonProperty("cannotBeDeletedReason") + private JsonNullable cannotBeDeletedReason; + + /** + * Pix key QRCode + */ + @JsonProperty("qrCode") + private JsonNullable qrCode; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getKey() { + return key.orElse(null); + } + + @JsonIgnore + public PixAddressKeyGetResponsePixAddressKeyType getType() { + return type.orElse(null); + } + + @JsonIgnore + public PixAddressKeyGetResponsePixAddressKeyStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public Boolean getCanBeDeleted() { + return canBeDeleted.orElse(null); + } + + @JsonIgnore + public String getCannotBeDeletedReason() { + return cannotBeDeletedReason.orElse(null); + } + + @JsonIgnore + public PixAddressKeyQrCodeGetResponseDto getQrCode() { + return qrCode.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixAddressKeyGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PixAddressKeyGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable key = JsonNullable.undefined(); + + @JsonProperty("key") + public PixAddressKeyGetResponseDtoBuilder key(String value) { + this.key = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public PixAddressKeyGetResponseDtoBuilder type(PixAddressKeyGetResponsePixAddressKeyType value) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PixAddressKeyGetResponseDtoBuilder status(PixAddressKeyGetResponsePixAddressKeyStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public PixAddressKeyGetResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable canBeDeleted = JsonNullable.undefined(); + + @JsonProperty("canBeDeleted") + public PixAddressKeyGetResponseDtoBuilder canBeDeleted(Boolean value) { + this.canBeDeleted = JsonNullable.of(value); + return this; + } + + private JsonNullable cannotBeDeletedReason = JsonNullable.undefined(); + + @JsonProperty("cannotBeDeletedReason") + public PixAddressKeyGetResponseDtoBuilder cannotBeDeletedReason(String value) { + this.cannotBeDeletedReason = JsonNullable.of(value); + return this; + } + + private JsonNullable qrCode = JsonNullable.undefined(); + + @JsonProperty("qrCode") + public PixAddressKeyGetResponseDtoBuilder qrCode(PixAddressKeyQrCodeGetResponseDto value) { + this.qrCode = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyStatus.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyStatus.java new file mode 100644 index 0000000..48a6652 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyStatus.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Key status + */ +@Getter +@AllArgsConstructor +public enum PixAddressKeyGetResponsePixAddressKeyStatus { + AWAITING_ACTIVATION("AWAITING_ACTIVATION"), + ACTIVE("ACTIVE"), + AWAITING_DELETION("AWAITING_DELETION"), + AWAITING_ACCOUNT_DELETION("AWAITING_ACCOUNT_DELETION"), + DELETED("DELETED"), + ERROR("ERROR"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixAddressKeyGetResponsePixAddressKeyStatus fromValue(String value) { + return Arrays.stream(PixAddressKeyGetResponsePixAddressKeyStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyType.java new file mode 100644 index 0000000..7380a01 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyType.java @@ -0,0 +1,29 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Pix key type + */ +@Getter +@AllArgsConstructor +public enum PixAddressKeyGetResponsePixAddressKeyType { + EVP("EVP"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixAddressKeyGetResponsePixAddressKeyType fromValue(String value) { + return Arrays.stream(PixAddressKeyGetResponsePixAddressKeyType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixAddressKeyListRequestPixAddressKeyStatus.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeyListRequestPixAddressKeyStatus.java new file mode 100644 index 0000000..65c3ac7 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyListRequestPixAddressKeyStatus.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by current key status + */ +@Getter +@AllArgsConstructor +public enum PixAddressKeyListRequestPixAddressKeyStatus { + AWAITING_ACTIVATION("AWAITING_ACTIVATION"), + ACTIVE("ACTIVE"), + AWAITING_DELETION("AWAITING_DELETION"), + AWAITING_ACCOUNT_DELETION("AWAITING_ACCOUNT_DELETION"), + DELETED("DELETED"), + ERROR("ERROR"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixAddressKeyListRequestPixAddressKeyStatus fromValue(String value) { + return Arrays.stream(PixAddressKeyListRequestPixAddressKeyStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixAddressKeyListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeyListResponseDto.java new file mode 100644 index 0000000..d7b411e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyListResponseDto.java @@ -0,0 +1,46 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixAddressKeyListResponseDto { + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixAddressKeyListResponseDtoBuilder { + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PixAddressKeyListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixAddressKeyQrCodeGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeyQrCodeGetResponseDto.java new file mode 100644 index 0000000..8d9d9f0 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyQrCodeGetResponseDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Pix key QRCode + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixAddressKeyQrCodeGetResponseDto { + + /** + * QrCode image in base64 + */ + @JsonProperty("encodedImage") + private JsonNullable encodedImage; + + /** + * Copy and Paste the QrCode + */ + @JsonProperty("payload") + private JsonNullable payload; + + @JsonIgnore + public String getEncodedImage() { + return encodedImage.orElse(null); + } + + @JsonIgnore + public String getPayload() { + return payload.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixAddressKeyQrCodeGetResponseDtoBuilder { + + private JsonNullable encodedImage = JsonNullable.undefined(); + + @JsonProperty("encodedImage") + public PixAddressKeyQrCodeGetResponseDtoBuilder encodedImage(String value) { + this.encodedImage = JsonNullable.of(value); + return this; + } + + private JsonNullable payload = JsonNullable.undefined(); + + @JsonProperty("payload") + public PixAddressKeyQrCodeGetResponseDtoBuilder payload(String value) { + this.payload = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestDto.java new file mode 100644 index 0000000..8524023 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestDto.java @@ -0,0 +1,26 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixAddressKeySaveRequestDto { + + /** + * Pix key type + */ + @NonNull + private PixAddressKeySaveRequestPixAddressKeyType type; +} diff --git a/src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestPixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestPixAddressKeyType.java new file mode 100644 index 0000000..b5a8247 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestPixAddressKeyType.java @@ -0,0 +1,29 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Pix key type + */ +@Getter +@AllArgsConstructor +public enum PixAddressKeySaveRequestPixAddressKeyType { + EVP("EVP"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixAddressKeySaveRequestPixAddressKeyType fromValue(String value) { + return Arrays.stream(PixAddressKeySaveRequestPixAddressKeyType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixOriginalTransactionResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixOriginalTransactionResponseDto.java new file mode 100644 index 0000000..7e482d1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixOriginalTransactionResponseDto.java @@ -0,0 +1,105 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Original transaction information if a chargeback has occurred + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixOriginalTransactionResponseDto { + + /** + * Unique transaction identifier + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Unique identifier of the Pix transaction at the Central Bank + */ + @JsonProperty("endToEndIdentifier") + private JsonNullable endToEndIdentifier; + + /** + * Original transaction value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Transaction date + */ + @JsonProperty("effectiveDate") + private JsonNullable effectiveDate; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getEndToEndIdentifier() { + return endToEndIdentifier.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getEffectiveDate() { + return effectiveDate.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixOriginalTransactionResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PixOriginalTransactionResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable endToEndIdentifier = JsonNullable.undefined(); + + @JsonProperty("endToEndIdentifier") + public PixOriginalTransactionResponseDtoBuilder endToEndIdentifier(String value) { + this.endToEndIdentifier = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PixOriginalTransactionResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable effectiveDate = JsonNullable.undefined(); + + @JsonProperty("effectiveDate") + public PixOriginalTransactionResponseDtoBuilder effectiveDate(String value) { + this.effectiveDate = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverDto.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverDto.java new file mode 100644 index 0000000..102710b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverDto.java @@ -0,0 +1,162 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Information about the receiver + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixQrCodeDecodeReceiverDto { + + /** + * Financial institution code + */ + @JsonProperty("ispb") + private JsonNullable ispb; + + /** + * Name of the financial institution + */ + @JsonProperty("ispbName") + private JsonNullable ispbName; + + /** + * Receiver name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Receiver's trade name + */ + @JsonProperty("tradingName") + private JsonNullable tradingName; + + /** + * CPF or CNPJ of the receiver + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Person type + */ + @JsonProperty("personType") + private JsonNullable personType; + + /** + * Receiver account type + */ + @JsonProperty("accountType") + private JsonNullable accountType; + + @JsonIgnore + public String getIspb() { + return ispb.orElse(null); + } + + @JsonIgnore + public String getIspbName() { + return ispbName.orElse(null); + } + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getTradingName() { + return tradingName.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public PixQrCodeDecodeReceiverPersonType getPersonType() { + return personType.orElse(null); + } + + @JsonIgnore + public PixQrCodeDecodeReceiverPixAccountType getAccountType() { + return accountType.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixQrCodeDecodeReceiverDtoBuilder { + + private JsonNullable ispb = JsonNullable.undefined(); + + @JsonProperty("ispb") + public PixQrCodeDecodeReceiverDtoBuilder ispb(String value) { + this.ispb = JsonNullable.of(value); + return this; + } + + private JsonNullable ispbName = JsonNullable.undefined(); + + @JsonProperty("ispbName") + public PixQrCodeDecodeReceiverDtoBuilder ispbName(String value) { + this.ispbName = JsonNullable.of(value); + return this; + } + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public PixQrCodeDecodeReceiverDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable tradingName = JsonNullable.undefined(); + + @JsonProperty("tradingName") + public PixQrCodeDecodeReceiverDtoBuilder tradingName(String value) { + this.tradingName = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public PixQrCodeDecodeReceiverDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable personType = JsonNullable.undefined(); + + @JsonProperty("personType") + public PixQrCodeDecodeReceiverDtoBuilder personType(PixQrCodeDecodeReceiverPersonType value) { + this.personType = JsonNullable.of(value); + return this; + } + + private JsonNullable accountType = JsonNullable.undefined(); + + @JsonProperty("accountType") + public PixQrCodeDecodeReceiverDtoBuilder accountType(PixQrCodeDecodeReceiverPixAccountType value) { + this.accountType = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPersonType.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPersonType.java new file mode 100644 index 0000000..f22f9ba --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPersonType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Person type + */ +@Getter +@AllArgsConstructor +public enum PixQrCodeDecodeReceiverPersonType { + JURIDICA("JURIDICA"), + FISICA("FISICA"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixQrCodeDecodeReceiverPersonType fromValue(String value) { + return Arrays.stream(PixQrCodeDecodeReceiverPersonType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPixAccountType.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPixAccountType.java new file mode 100644 index 0000000..2627892 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPixAccountType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Receiver account type + */ +@Getter +@AllArgsConstructor +public enum PixQrCodeDecodeReceiverPixAccountType { + CHECKING_ACCOUNT("CHECKING_ACCOUNT"), + SALARY_ACCOUNT("SALARY_ACCOUNT"), + INVESTIMENT_ACCOUNT("INVESTIMENT_ACCOUNT"), + PAYMENT_ACCOUNT("PAYMENT_ACCOUNT"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixQrCodeDecodeReceiverPixAccountType fromValue(String value) { + return Arrays.stream(PixQrCodeDecodeReceiverPixAccountType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeRequestDto.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeRequestDto.java new file mode 100644 index 0000000..3d27b00 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeRequestDto.java @@ -0,0 +1,52 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixQrCodeDecodeRequestDto { + + /** + * QRCode payload + */ + @NonNull + private String payload; + + /** + * Change amount (for QRCode Change) + */ + @JsonProperty("changeValue") + private JsonNullable changeValue; + + @JsonIgnore + public Double getChangeValue() { + return changeValue.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixQrCodeDecodeRequestDtoBuilder { + + private JsonNullable changeValue = JsonNullable.undefined(); + + @JsonProperty("changeValue") + public PixQrCodeDecodeRequestDtoBuilder changeValue(Double value) { + this.changeValue = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponseDto.java new file mode 100644 index 0000000..a638a58 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponseDto.java @@ -0,0 +1,428 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixQrCodeDecodeResponseDto { + + /** + * Copy and Paste of the QRCode + */ + @JsonProperty("payload") + private JsonNullable payload; + + /** + * QRCode Type + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Transaction origin + */ + @JsonProperty("transactionOriginType") + private JsonNullable transactionOriginType; + + /** + * Pix key used + */ + @JsonProperty("pixKey") + private JsonNullable pixKey; + + /** + * Unique Pix reconciliation identifier with Asaas + */ + @JsonProperty("conciliationIdentifier") + private JsonNullable conciliationIdentifier; + + /** + * Due date + */ + @JsonProperty("dueDate") + private JsonNullable dueDate; + + /** + * Expiration date + */ + @JsonProperty("expirationDate") + private JsonNullable expirationDate; + + /** + * Used to indicate whether it is a Withdrawal or Change + */ + @JsonProperty("finality") + private JsonNullable finality; + + /** + * QRCode Value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Change value + */ + @JsonProperty("changeValue") + private JsonNullable changeValue; + + /** + * Interest value + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine value + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Discount value + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Total amount with fine, interest and discount applied + */ + @JsonProperty("totalValue") + private JsonNullable totalValue; + + /** + * Informs if the QRCode can be paid with another amount + */ + @JsonProperty("canBePaidWithDifferentValue") + private JsonNullable canBePaidWithDifferentValue; + + /** + * Informs whether the change can be paid with another amount + */ + @JsonProperty("canBeModifyChangeValue") + private JsonNullable canBeModifyChangeValue; + + /** + * Information about the receiver + */ + @JsonProperty("receiver") + private JsonNullable receiver; + + /** + * Information about the payer + */ + @JsonProperty("payer") + private JsonNullable payer; + + /** + * Description provided during the creation of the QRCode + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Informs if the QRCode can be paid + */ + @JsonProperty("canBePaid") + private JsonNullable canBePaid; + + /** + * Informs why QRCode cannot be paid + */ + @JsonProperty("cannotBePaidReason") + private JsonNullable cannotBePaidReason; + + @JsonIgnore + public String getPayload() { + return payload.orElse(null); + } + + @JsonIgnore + public PixQrCodeDecodeResponsePixQrCodeType getType() { + return type.orElse(null); + } + + @JsonIgnore + public PixQrCodeDecodeResponsePixTransactionOriginType getTransactionOriginType() { + return transactionOriginType.orElse(null); + } + + @JsonIgnore + public String getPixKey() { + return pixKey.orElse(null); + } + + @JsonIgnore + public String getConciliationIdentifier() { + return conciliationIdentifier.orElse(null); + } + + @JsonIgnore + public String getDueDate() { + return dueDate.orElse(null); + } + + @JsonIgnore + public String getExpirationDate() { + return expirationDate.orElse(null); + } + + @JsonIgnore + public PixQrCodeDecodeResponsePixTransactionCashValueFinality getFinality() { + return finality.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getChangeValue() { + return changeValue.orElse(null); + } + + @JsonIgnore + public Double getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public Double getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public Double getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public Double getTotalValue() { + return totalValue.orElse(null); + } + + @JsonIgnore + public Boolean getCanBePaidWithDifferentValue() { + return canBePaidWithDifferentValue.orElse(null); + } + + @JsonIgnore + public Boolean getCanBeModifyChangeValue() { + return canBeModifyChangeValue.orElse(null); + } + + @JsonIgnore + public PixQrCodeDecodeReceiverDto getReceiver() { + return receiver.orElse(null); + } + + @JsonIgnore + public PixTransactionQrCodePayerResponseDto getPayer() { + return payer.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Boolean getCanBePaid() { + return canBePaid.orElse(null); + } + + @JsonIgnore + public String getCannotBePaidReason() { + return cannotBePaidReason.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixQrCodeDecodeResponseDtoBuilder { + + private JsonNullable payload = JsonNullable.undefined(); + + @JsonProperty("payload") + public PixQrCodeDecodeResponseDtoBuilder payload(String value) { + this.payload = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public PixQrCodeDecodeResponseDtoBuilder type(PixQrCodeDecodeResponsePixQrCodeType value) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable transactionOriginType = + JsonNullable.undefined(); + + @JsonProperty("transactionOriginType") + public PixQrCodeDecodeResponseDtoBuilder transactionOriginType( + PixQrCodeDecodeResponsePixTransactionOriginType value + ) { + this.transactionOriginType = JsonNullable.of(value); + return this; + } + + private JsonNullable pixKey = JsonNullable.undefined(); + + @JsonProperty("pixKey") + public PixQrCodeDecodeResponseDtoBuilder pixKey(String value) { + this.pixKey = JsonNullable.of(value); + return this; + } + + private JsonNullable conciliationIdentifier = JsonNullable.undefined(); + + @JsonProperty("conciliationIdentifier") + public PixQrCodeDecodeResponseDtoBuilder conciliationIdentifier(String value) { + this.conciliationIdentifier = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDate = JsonNullable.undefined(); + + @JsonProperty("dueDate") + public PixQrCodeDecodeResponseDtoBuilder dueDate(String value) { + this.dueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable expirationDate = JsonNullable.undefined(); + + @JsonProperty("expirationDate") + public PixQrCodeDecodeResponseDtoBuilder expirationDate(String value) { + this.expirationDate = JsonNullable.of(value); + return this; + } + + private JsonNullable finality = JsonNullable.undefined(); + + @JsonProperty("finality") + public PixQrCodeDecodeResponseDtoBuilder finality(PixQrCodeDecodeResponsePixTransactionCashValueFinality value) { + this.finality = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PixQrCodeDecodeResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable changeValue = JsonNullable.undefined(); + + @JsonProperty("changeValue") + public PixQrCodeDecodeResponseDtoBuilder changeValue(Double value) { + this.changeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public PixQrCodeDecodeResponseDtoBuilder interest(Double value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public PixQrCodeDecodeResponseDtoBuilder fine(Double value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public PixQrCodeDecodeResponseDtoBuilder discount(Double value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable totalValue = JsonNullable.undefined(); + + @JsonProperty("totalValue") + public PixQrCodeDecodeResponseDtoBuilder totalValue(Double value) { + this.totalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable canBePaidWithDifferentValue = JsonNullable.undefined(); + + @JsonProperty("canBePaidWithDifferentValue") + public PixQrCodeDecodeResponseDtoBuilder canBePaidWithDifferentValue(Boolean value) { + this.canBePaidWithDifferentValue = JsonNullable.of(value); + return this; + } + + private JsonNullable canBeModifyChangeValue = JsonNullable.undefined(); + + @JsonProperty("canBeModifyChangeValue") + public PixQrCodeDecodeResponseDtoBuilder canBeModifyChangeValue(Boolean value) { + this.canBeModifyChangeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable receiver = JsonNullable.undefined(); + + @JsonProperty("receiver") + public PixQrCodeDecodeResponseDtoBuilder receiver(PixQrCodeDecodeReceiverDto value) { + this.receiver = JsonNullable.of(value); + return this; + } + + private JsonNullable payer = JsonNullable.undefined(); + + @JsonProperty("payer") + public PixQrCodeDecodeResponseDtoBuilder payer(PixTransactionQrCodePayerResponseDto value) { + this.payer = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PixQrCodeDecodeResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable canBePaid = JsonNullable.undefined(); + + @JsonProperty("canBePaid") + public PixQrCodeDecodeResponseDtoBuilder canBePaid(Boolean value) { + this.canBePaid = JsonNullable.of(value); + return this; + } + + private JsonNullable cannotBePaidReason = JsonNullable.undefined(); + + @JsonProperty("cannotBePaidReason") + public PixQrCodeDecodeResponseDtoBuilder cannotBePaidReason(String value) { + this.cannotBePaidReason = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixQrCodeType.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixQrCodeType.java new file mode 100644 index 0000000..81e6132 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixQrCodeType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * QRCode Type + */ +@Getter +@AllArgsConstructor +public enum PixQrCodeDecodeResponsePixQrCodeType { + STATIC_("STATIC"), + DYNAMIC("DYNAMIC"), + DYNAMIC_WITH_ASAAS_ADDRESS_KEY("DYNAMIC_WITH_ASAAS_ADDRESS_KEY"), + COMPOSITE("COMPOSITE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixQrCodeDecodeResponsePixQrCodeType fromValue(String value) { + return Arrays.stream(PixQrCodeDecodeResponsePixQrCodeType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.java new file mode 100644 index 0000000..8ff678b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Used to indicate whether it is a Withdrawal or Change + */ +@Getter +@AllArgsConstructor +public enum PixQrCodeDecodeResponsePixTransactionCashValueFinality { + WITHDRAWAL("WITHDRAWAL"), + CHANGE("CHANGE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixQrCodeDecodeResponsePixTransactionCashValueFinality fromValue(String value) { + return Arrays.stream(PixQrCodeDecodeResponsePixTransactionCashValueFinality.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionOriginType.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionOriginType.java new file mode 100644 index 0000000..af38307 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionOriginType.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Transaction origin + */ +@Getter +@AllArgsConstructor +public enum PixQrCodeDecodeResponsePixTransactionOriginType { + MANUAL("MANUAL"), + ADDRESS_KEY("ADDRESS_KEY"), + STATIC_QRCODE("STATIC_QRCODE"), + DYNAMIC_QRCODE("DYNAMIC_QRCODE"), + PAYMENT_INITIATION_SERVICE("PAYMENT_INITIATION_SERVICE"), + AUTOMATIC_RECURRING("AUTOMATIC_RECURRING"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixQrCodeDecodeResponsePixTransactionOriginType fromValue(String value) { + return Arrays.stream(PixQrCodeDecodeResponsePixTransactionOriginType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixQrCodeDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDeleteResponseDto.java new file mode 100644 index 0000000..113ef46 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDeleteResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixQrCodeDeleteResponseDto { + + /** + * QR Code identifier + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Indicates whether the QR Code has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixQrCodeDeleteResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PixQrCodeDeleteResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public PixQrCodeDeleteResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixQrCodeSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeSaveRequestDto.java new file mode 100644 index 0000000..a9be96a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeSaveRequestDto.java @@ -0,0 +1,178 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixQrCodeSaveRequestDto { + + /** + * Key that will receive QrCode payments + */ + @JsonProperty("addressKey") + private JsonNullable addressKey; + + /** + * QrCode Description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Value of the QrCode, if not informed, the payer can choose the value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * QrCode Format + */ + @JsonProperty("format") + private JsonNullable format; + + /** + * QrCode expiration date/time, after this date all payments will be refused. + */ + @JsonProperty("expirationDate") + private JsonNullable expirationDate; + + /** + * Determines the expiration date in seconds. + */ + @JsonProperty("expirationSeconds") + private JsonNullable expirationSeconds; + + /** + * Defines whether the QrCode can be paid multiple times, if not entered the default value is true. + */ + @JsonProperty("allowsMultiplePayments") + private JsonNullable allowsMultiplePayments; + + /** + * Free search field + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + @JsonIgnore + public String getAddressKey() { + return addressKey.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Format getFormat() { + return format.orElse(null); + } + + @JsonIgnore + public String getExpirationDate() { + return expirationDate.orElse(null); + } + + @JsonIgnore + public Long getExpirationSeconds() { + return expirationSeconds.orElse(null); + } + + @JsonIgnore + public Boolean getAllowsMultiplePayments() { + return allowsMultiplePayments.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixQrCodeSaveRequestDtoBuilder { + + private JsonNullable addressKey = JsonNullable.undefined(); + + @JsonProperty("addressKey") + public PixQrCodeSaveRequestDtoBuilder addressKey(String value) { + this.addressKey = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PixQrCodeSaveRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PixQrCodeSaveRequestDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable format = JsonNullable.undefined(); + + @JsonProperty("format") + public PixQrCodeSaveRequestDtoBuilder format(Format value) { + this.format = JsonNullable.of(value); + return this; + } + + private JsonNullable expirationDate = JsonNullable.undefined(); + + @JsonProperty("expirationDate") + public PixQrCodeSaveRequestDtoBuilder expirationDate(String value) { + this.expirationDate = JsonNullable.of(value); + return this; + } + + private JsonNullable expirationSeconds = JsonNullable.undefined(); + + @JsonProperty("expirationSeconds") + public PixQrCodeSaveRequestDtoBuilder expirationSeconds(Long value) { + this.expirationSeconds = JsonNullable.of(value); + return this; + } + + private JsonNullable allowsMultiplePayments = JsonNullable.undefined(); + + @JsonProperty("allowsMultiplePayments") + public PixQrCodeSaveRequestDtoBuilder allowsMultiplePayments(Boolean value) { + this.allowsMultiplePayments = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PixQrCodeSaveRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixQrCodeSaveResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeSaveResponseDto.java new file mode 100644 index 0000000..e6a7398 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeSaveResponseDto.java @@ -0,0 +1,140 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixQrCodeSaveResponseDto { + + /** + * qrCode image in base64 + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * QrCode identifier + */ + @JsonProperty("encodedImage") + private JsonNullable encodedImage; + + /** + * Copy and Paste the QrCode + */ + @JsonProperty("payload") + private JsonNullable payload; + + /** + * Indicates whether multiple payments are allowed + */ + @JsonProperty("allowsMultiplePayments") + private JsonNullable allowsMultiplePayments; + + /** + * QrCode expiration date/time, after this date all payments will be refused + */ + @JsonProperty("expirationDate") + private JsonNullable expirationDate; + + /** + * Free search field + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getEncodedImage() { + return encodedImage.orElse(null); + } + + @JsonIgnore + public String getPayload() { + return payload.orElse(null); + } + + @JsonIgnore + public Boolean getAllowsMultiplePayments() { + return allowsMultiplePayments.orElse(null); + } + + @JsonIgnore + public String getExpirationDate() { + return expirationDate.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixQrCodeSaveResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PixQrCodeSaveResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable encodedImage = JsonNullable.undefined(); + + @JsonProperty("encodedImage") + public PixQrCodeSaveResponseDtoBuilder encodedImage(String value) { + this.encodedImage = JsonNullable.of(value); + return this; + } + + private JsonNullable payload = JsonNullable.undefined(); + + @JsonProperty("payload") + public PixQrCodeSaveResponseDtoBuilder payload(String value) { + this.payload = JsonNullable.of(value); + return this; + } + + private JsonNullable allowsMultiplePayments = JsonNullable.undefined(); + + @JsonProperty("allowsMultiplePayments") + public PixQrCodeSaveResponseDtoBuilder allowsMultiplePayments(Boolean value) { + this.allowsMultiplePayments = JsonNullable.of(value); + return this; + } + + private JsonNullable expirationDate = JsonNullable.undefined(); + + @JsonProperty("expirationDate") + public PixQrCodeSaveResponseDtoBuilder expirationDate(String value) { + this.expirationDate = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PixQrCodeSaveResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionExternalAccountDto.java b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionExternalAccountDto.java new file mode 100644 index 0000000..1c8e091 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionExternalAccountDto.java @@ -0,0 +1,105 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Receiver information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixRecurringTransactionExternalAccountDto { + + /** + * Receiver name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Payment institution name + */ + @JsonProperty("financialInstitutionName") + private JsonNullable financialInstitutionName; + + /** + * Receiver CPF or CNPJ + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Receiver Pix key + */ + @JsonProperty("pixKey") + private JsonNullable pixKey; + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getFinancialInstitutionName() { + return financialInstitutionName.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public String getPixKey() { + return pixKey.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixRecurringTransactionExternalAccountDtoBuilder { + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public PixRecurringTransactionExternalAccountDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable financialInstitutionName = JsonNullable.undefined(); + + @JsonProperty("financialInstitutionName") + public PixRecurringTransactionExternalAccountDtoBuilder financialInstitutionName(String value) { + this.financialInstitutionName = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public PixRecurringTransactionExternalAccountDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable pixKey = JsonNullable.undefined(); + + @JsonProperty("pixKey") + public PixRecurringTransactionExternalAccountDtoBuilder pixKey(String value) { + this.pixKey = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponseDto.java new file mode 100644 index 0000000..aecd003 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponseDto.java @@ -0,0 +1,202 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixRecurringTransactionGetItemResponseDto { + + /** + * Unique recurrence item identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Recurrence item status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Recurrence item scheduled date + */ + @JsonProperty("scheduledDate") + private JsonNullable scheduledDate; + + /** + * Whether the recurrence item can be cancelled + */ + @JsonProperty("canBeCancelled") + private JsonNullable canBeCancelled; + + /** + * Recurrence number + */ + @JsonProperty("recurrenceNumber") + private JsonNullable recurrenceNumber; + + /** + * Number of repetitions + */ + @JsonProperty("quantity") + private JsonNullable quantity; + + /** + * Recurrence value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Recurrence item refusal reason + */ + @JsonProperty("refusalReasonDescription") + private JsonNullable refusalReasonDescription; + + /** + * Receiver information + */ + @JsonProperty("externalAccount") + private JsonNullable externalAccount; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getScheduledDate() { + return scheduledDate.orElse(null); + } + + @JsonIgnore + public Boolean getCanBeCancelled() { + return canBeCancelled.orElse(null); + } + + @JsonIgnore + public Long getRecurrenceNumber() { + return recurrenceNumber.orElse(null); + } + + @JsonIgnore + public Long getQuantity() { + return quantity.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getRefusalReasonDescription() { + return refusalReasonDescription.orElse(null); + } + + @JsonIgnore + public PixRecurringTransactionExternalAccountDto getExternalAccount() { + return externalAccount.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixRecurringTransactionGetItemResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PixRecurringTransactionGetItemResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable status = + JsonNullable.undefined(); + + @JsonProperty("status") + public PixRecurringTransactionGetItemResponseDtoBuilder status( + PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus value + ) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable scheduledDate = JsonNullable.undefined(); + + @JsonProperty("scheduledDate") + public PixRecurringTransactionGetItemResponseDtoBuilder scheduledDate(String value) { + this.scheduledDate = JsonNullable.of(value); + return this; + } + + private JsonNullable canBeCancelled = JsonNullable.undefined(); + + @JsonProperty("canBeCancelled") + public PixRecurringTransactionGetItemResponseDtoBuilder canBeCancelled(Boolean value) { + this.canBeCancelled = JsonNullable.of(value); + return this; + } + + private JsonNullable recurrenceNumber = JsonNullable.undefined(); + + @JsonProperty("recurrenceNumber") + public PixRecurringTransactionGetItemResponseDtoBuilder recurrenceNumber(Long value) { + this.recurrenceNumber = JsonNullable.of(value); + return this; + } + + private JsonNullable quantity = JsonNullable.undefined(); + + @JsonProperty("quantity") + public PixRecurringTransactionGetItemResponseDtoBuilder quantity(Long value) { + this.quantity = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PixRecurringTransactionGetItemResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable refusalReasonDescription = JsonNullable.undefined(); + + @JsonProperty("refusalReasonDescription") + public PixRecurringTransactionGetItemResponseDtoBuilder refusalReasonDescription(String value) { + this.refusalReasonDescription = JsonNullable.of(value); + return this; + } + + private JsonNullable externalAccount = JsonNullable.undefined(); + + @JsonProperty("externalAccount") + public PixRecurringTransactionGetItemResponseDtoBuilder externalAccount( + PixRecurringTransactionExternalAccountDto value + ) { + this.externalAccount = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.java b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.java new file mode 100644 index 0000000..2dcb5fb --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Recurrence item status + */ +@Getter +@AllArgsConstructor +public enum PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus { + PENDING("PENDING"), + CANCELLED("CANCELLED"), + REFUSED("REFUSED"), + DONE("DONE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus fromValue(String value) { + return Arrays.stream(PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponseDto.java new file mode 100644 index 0000000..4b5860f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponseDto.java @@ -0,0 +1,227 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixRecurringTransactionGetResponseDto { + + /** + * Unique recurrence identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Recurrence status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Indicates the origin of the recurrence + */ + @JsonProperty("origin") + private JsonNullable origin; + + /** + * Recurrence value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Recurrence frequency + */ + @JsonProperty("frequency") + private JsonNullable frequency; + + /** + * Number of repetitions + */ + @JsonProperty("quantity") + private JsonNullable quantity; + + /** + * Recurrence start date + */ + @JsonProperty("startDate") + private JsonNullable startDate; + + /** + * Recurrence finish date + */ + @JsonProperty("finishDate") + private JsonNullable finishDate; + + /** + * Whether the recurrence can be cancelled + */ + @JsonProperty("canBeCancelled") + private JsonNullable canBeCancelled; + + /** + * Receiver information + */ + @JsonProperty("externalAccount") + private JsonNullable externalAccount; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public PixRecurringTransactionGetResponsePixRecurringTransactionStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public PixRecurringTransactionGetResponsePixRecurringTransactionOrigin getOrigin() { + return origin.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public PixRecurringTransactionGetResponsePixRecurringTransactionFrequency getFrequency() { + return frequency.orElse(null); + } + + @JsonIgnore + public Long getQuantity() { + return quantity.orElse(null); + } + + @JsonIgnore + public String getStartDate() { + return startDate.orElse(null); + } + + @JsonIgnore + public String getFinishDate() { + return finishDate.orElse(null); + } + + @JsonIgnore + public Boolean getCanBeCancelled() { + return canBeCancelled.orElse(null); + } + + @JsonIgnore + public PixRecurringTransactionExternalAccountDto getExternalAccount() { + return externalAccount.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixRecurringTransactionGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PixRecurringTransactionGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable status = + JsonNullable.undefined(); + + @JsonProperty("status") + public PixRecurringTransactionGetResponseDtoBuilder status( + PixRecurringTransactionGetResponsePixRecurringTransactionStatus value + ) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable origin = + JsonNullable.undefined(); + + @JsonProperty("origin") + public PixRecurringTransactionGetResponseDtoBuilder origin( + PixRecurringTransactionGetResponsePixRecurringTransactionOrigin value + ) { + this.origin = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PixRecurringTransactionGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable frequency = + JsonNullable.undefined(); + + @JsonProperty("frequency") + public PixRecurringTransactionGetResponseDtoBuilder frequency( + PixRecurringTransactionGetResponsePixRecurringTransactionFrequency value + ) { + this.frequency = JsonNullable.of(value); + return this; + } + + private JsonNullable quantity = JsonNullable.undefined(); + + @JsonProperty("quantity") + public PixRecurringTransactionGetResponseDtoBuilder quantity(Long value) { + this.quantity = JsonNullable.of(value); + return this; + } + + private JsonNullable startDate = JsonNullable.undefined(); + + @JsonProperty("startDate") + public PixRecurringTransactionGetResponseDtoBuilder startDate(String value) { + this.startDate = JsonNullable.of(value); + return this; + } + + private JsonNullable finishDate = JsonNullable.undefined(); + + @JsonProperty("finishDate") + public PixRecurringTransactionGetResponseDtoBuilder finishDate(String value) { + this.finishDate = JsonNullable.of(value); + return this; + } + + private JsonNullable canBeCancelled = JsonNullable.undefined(); + + @JsonProperty("canBeCancelled") + public PixRecurringTransactionGetResponseDtoBuilder canBeCancelled(Boolean value) { + this.canBeCancelled = JsonNullable.of(value); + return this; + } + + private JsonNullable externalAccount = JsonNullable.undefined(); + + @JsonProperty("externalAccount") + public PixRecurringTransactionGetResponseDtoBuilder externalAccount( + PixRecurringTransactionExternalAccountDto value + ) { + this.externalAccount = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.java b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.java new file mode 100644 index 0000000..f98bf89 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Recurrence frequency + */ +@Getter +@AllArgsConstructor +public enum PixRecurringTransactionGetResponsePixRecurringTransactionFrequency { + WEEKLY("WEEKLY"), + MONTHLY("MONTHLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixRecurringTransactionGetResponsePixRecurringTransactionFrequency fromValue(String value) { + return Arrays.stream(PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.java b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.java new file mode 100644 index 0000000..273be10 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.java @@ -0,0 +1,29 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Indicates the origin of the recurrence + */ +@Getter +@AllArgsConstructor +public enum PixRecurringTransactionGetResponsePixRecurringTransactionOrigin { + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixRecurringTransactionGetResponsePixRecurringTransactionOrigin fromValue(String value) { + return Arrays.stream(PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.java b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.java new file mode 100644 index 0000000..4710f6d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Recurrence status + */ +@Getter +@AllArgsConstructor +public enum PixRecurringTransactionGetResponsePixRecurringTransactionStatus { + AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), + PENDING("PENDING"), + SCHEDULED("SCHEDULED"), + CANCELLED("CANCELLED"), + DONE("DONE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixRecurringTransactionGetResponsePixRecurringTransactionStatus fromValue(String value) { + return Arrays.stream(PixRecurringTransactionGetResponsePixRecurringTransactionStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionListResponseDto.java new file mode 100644 index 0000000..9f8573e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixRecurringTransactionListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixRecurringTransactionListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PixRecurringTransactionListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PixRecurringTransactionListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PixRecurringTransactionListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PixRecurringTransactionListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PixRecurringTransactionListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PixRecurringTransactionListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTokenBucketGetAddressKeyResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixTokenBucketGetAddressKeyResponseDto.java new file mode 100644 index 0000000..3820a38 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTokenBucketGetAddressKeyResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixTokenBucketGetAddressKeyResponseDto { + + /** + * Maximum token capacity + */ + @JsonProperty("capacity") + private JsonNullable capacity; + + /** + * Available tokens + */ + @JsonProperty("remaining") + private JsonNullable remaining; + + @JsonIgnore + public Long getCapacity() { + return capacity.orElse(null); + } + + @JsonIgnore + public Long getRemaining() { + return remaining.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixTokenBucketGetAddressKeyResponseDtoBuilder { + + private JsonNullable capacity = JsonNullable.undefined(); + + @JsonProperty("capacity") + public PixTokenBucketGetAddressKeyResponseDtoBuilder capacity(Long value) { + this.capacity = JsonNullable.of(value); + return this; + } + + private JsonNullable remaining = JsonNullable.undefined(); + + @JsonProperty("remaining") + public PixTokenBucketGetAddressKeyResponseDtoBuilder remaining(Long value) { + this.remaining = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponseDto.java new file mode 100644 index 0000000..130917f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponseDto.java @@ -0,0 +1,146 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Information about the recipient + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixTransactionExternalAccountResponseDto { + + /** + * Payment Institution Identifier + */ + @JsonProperty("ispb") + private JsonNullable ispb; + + /** + * Name of Payment Institution + */ + @JsonProperty("ispbName") + private JsonNullable ispbName; + + /** + * Receiver name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * CPF or CNPJ of the recipient + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Pix Key + */ + @JsonProperty("addressKey") + private JsonNullable addressKey; + + /** + * Pix key type + */ + @JsonProperty("addressKeyType") + private JsonNullable addressKeyType; + + @JsonIgnore + public String getIspb() { + return ispb.orElse(null); + } + + @JsonIgnore + public String getIspbName() { + return ispbName.orElse(null); + } + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public String getAddressKey() { + return addressKey.orElse(null); + } + + @JsonIgnore + public PixTransactionExternalAccountResponsePixAddressKeyType getAddressKeyType() { + return addressKeyType.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixTransactionExternalAccountResponseDtoBuilder { + + private JsonNullable ispb = JsonNullable.undefined(); + + @JsonProperty("ispb") + public PixTransactionExternalAccountResponseDtoBuilder ispb(String value) { + this.ispb = JsonNullable.of(value); + return this; + } + + private JsonNullable ispbName = JsonNullable.undefined(); + + @JsonProperty("ispbName") + public PixTransactionExternalAccountResponseDtoBuilder ispbName(String value) { + this.ispbName = JsonNullable.of(value); + return this; + } + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public PixTransactionExternalAccountResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public PixTransactionExternalAccountResponseDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable addressKey = JsonNullable.undefined(); + + @JsonProperty("addressKey") + public PixTransactionExternalAccountResponseDtoBuilder addressKey(String value) { + this.addressKey = JsonNullable.of(value); + return this; + } + + private JsonNullable addressKeyType = + JsonNullable.undefined(); + + @JsonProperty("addressKeyType") + public PixTransactionExternalAccountResponseDtoBuilder addressKeyType( + PixTransactionExternalAccountResponsePixAddressKeyType value + ) { + this.addressKeyType = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponsePixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponsePixAddressKeyType.java new file mode 100644 index 0000000..75e0b23 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponsePixAddressKeyType.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Pix key type + */ +@Getter +@AllArgsConstructor +public enum PixTransactionExternalAccountResponsePixAddressKeyType { + CPF("CPF"), + CNPJ("CNPJ"), + EMAIL("EMAIL"), + PHONE("PHONE"), + EVP("EVP"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixTransactionExternalAccountResponsePixAddressKeyType fromValue(String value) { + return Arrays.stream(PixTransactionExternalAccountResponsePixAddressKeyType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponseDto.java new file mode 100644 index 0000000..21d04da --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponseDto.java @@ -0,0 +1,560 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixTransactionGetResponseDto { + + /** + * Unique identifier of the Pix transaction in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Pix transaction identifier at the Central Bank + */ + @JsonProperty("endToEndIdentifier") + private JsonNullable endToEndIdentifier; + + /** + * Used to indicate whether it is a Withdrawal or Change + */ + @JsonProperty("finality") + private JsonNullable finality; + + /** + * Transaction or Withdrawal Value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Change value + */ + @JsonProperty("changeValue") + private JsonNullable changeValue; + + /** + * Value reversed + */ + @JsonProperty("refundedValue") + private JsonNullable refundedValue; + + /** + * Transaction date + */ + @JsonProperty("effectiveDate") + private JsonNullable effectiveDate; + + /** + * Schedule date + */ + @JsonProperty("scheduledDate") + private JsonNullable scheduledDate; + + /** + * Transaction status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Transaction type + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Indicates the origin of the transaction + */ + @JsonProperty("originType") + private JsonNullable originType; + + /** + * QrCode identifier linked to the transaction + */ + @JsonProperty("conciliationIdentifier") + private JsonNullable conciliationIdentifier; + + /** + * Description about the transaction + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Proof of transaction will be available after the transaction is confirmed. + */ + @JsonProperty("transactionReceiptUrl") + private JsonNullable transactionReceiptUrl; + + /** + * Reason why the transaction was declined + */ + @JsonProperty("refusalReason") + private JsonNullable refusalReason; + + /** + * Indicates whether the transaction can be canceled + */ + @JsonProperty("canBeCanceled") + private JsonNullable canBeCanceled; + + /** + * Original transaction information if a chargeback has occurred + */ + @JsonProperty("originalTransaction") + private JsonNullable originalTransaction; + + /** + * Information about the recipient + */ + @JsonProperty("externalAccount") + private JsonNullable externalAccount; + + /** + * Information about QrCode + */ + @JsonProperty("qrCode") + private JsonNullable qrCode; + + /** + * Unique billing identifier + */ + @JsonProperty("payment") + private JsonNullable payment; + + /** + * Indicates whether the transaction can be refunded + */ + @JsonProperty("canBeRefunded") + private JsonNullable canBeRefunded; + + /** + * Reason why the chargeback was disabled + */ + @JsonProperty("refundDisabledReason") + private JsonNullable refundDisabledReason; + + /** + * Debit or credit fee for the transaction + */ + @JsonProperty("chargedFeeValue") + private JsonNullable chargedFeeValue; + + /** + * Transaction creation date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Pix key when the transaction is a credit + */ + @JsonProperty("addressKey") + private JsonNullable addressKey; + + /** + * Pix key type + */ + @JsonProperty("addressKeyType") + private JsonNullable addressKeyType; + + /** + * Transfer identifier + */ + @JsonProperty("transferId") + private JsonNullable transferId; + + /** + * Free search field + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getEndToEndIdentifier() { + return endToEndIdentifier.orElse(null); + } + + @JsonIgnore + public PixTransactionGetResponsePixTransactionCashValueFinality getFinality() { + return finality.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getChangeValue() { + return changeValue.orElse(null); + } + + @JsonIgnore + public Double getRefundedValue() { + return refundedValue.orElse(null); + } + + @JsonIgnore + public String getEffectiveDate() { + return effectiveDate.orElse(null); + } + + @JsonIgnore + public String getScheduledDate() { + return scheduledDate.orElse(null); + } + + @JsonIgnore + public PixTransactionGetResponsePixTransactionStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public PixTransactionGetResponsePixTransactionType getType() { + return type.orElse(null); + } + + @JsonIgnore + public PixTransactionGetResponsePixTransactionOriginType getOriginType() { + return originType.orElse(null); + } + + @JsonIgnore + public String getConciliationIdentifier() { + return conciliationIdentifier.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getTransactionReceiptUrl() { + return transactionReceiptUrl.orElse(null); + } + + @JsonIgnore + public String getRefusalReason() { + return refusalReason.orElse(null); + } + + @JsonIgnore + public Boolean getCanBeCanceled() { + return canBeCanceled.orElse(null); + } + + @JsonIgnore + public PixOriginalTransactionResponseDto getOriginalTransaction() { + return originalTransaction.orElse(null); + } + + @JsonIgnore + public PixTransactionExternalAccountResponseDto getExternalAccount() { + return externalAccount.orElse(null); + } + + @JsonIgnore + public PixTransactionQrCodeResponseDto getQrCode() { + return qrCode.orElse(null); + } + + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + + @JsonIgnore + public Boolean getCanBeRefunded() { + return canBeRefunded.orElse(null); + } + + @JsonIgnore + public String getRefundDisabledReason() { + return refundDisabledReason.orElse(null); + } + + @JsonIgnore + public Double getChargedFeeValue() { + return chargedFeeValue.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public String getAddressKey() { + return addressKey.orElse(null); + } + + @JsonIgnore + public PixTransactionGetResponsePixAddressKeyType getAddressKeyType() { + return addressKeyType.orElse(null); + } + + @JsonIgnore + public String getTransferId() { + return transferId.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixTransactionGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public PixTransactionGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable endToEndIdentifier = JsonNullable.undefined(); + + @JsonProperty("endToEndIdentifier") + public PixTransactionGetResponseDtoBuilder endToEndIdentifier(String value) { + this.endToEndIdentifier = JsonNullable.of(value); + return this; + } + + private JsonNullable finality = JsonNullable.undefined(); + + @JsonProperty("finality") + public PixTransactionGetResponseDtoBuilder finality( + PixTransactionGetResponsePixTransactionCashValueFinality value + ) { + this.finality = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public PixTransactionGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable changeValue = JsonNullable.undefined(); + + @JsonProperty("changeValue") + public PixTransactionGetResponseDtoBuilder changeValue(Double value) { + this.changeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable refundedValue = JsonNullable.undefined(); + + @JsonProperty("refundedValue") + public PixTransactionGetResponseDtoBuilder refundedValue(Double value) { + this.refundedValue = JsonNullable.of(value); + return this; + } + + private JsonNullable effectiveDate = JsonNullable.undefined(); + + @JsonProperty("effectiveDate") + public PixTransactionGetResponseDtoBuilder effectiveDate(String value) { + this.effectiveDate = JsonNullable.of(value); + return this; + } + + private JsonNullable scheduledDate = JsonNullable.undefined(); + + @JsonProperty("scheduledDate") + public PixTransactionGetResponseDtoBuilder scheduledDate(String value) { + this.scheduledDate = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public PixTransactionGetResponseDtoBuilder status(PixTransactionGetResponsePixTransactionStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public PixTransactionGetResponseDtoBuilder type(PixTransactionGetResponsePixTransactionType value) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable originType = JsonNullable.undefined(); + + @JsonProperty("originType") + public PixTransactionGetResponseDtoBuilder originType(PixTransactionGetResponsePixTransactionOriginType value) { + this.originType = JsonNullable.of(value); + return this; + } + + private JsonNullable conciliationIdentifier = JsonNullable.undefined(); + + @JsonProperty("conciliationIdentifier") + public PixTransactionGetResponseDtoBuilder conciliationIdentifier(String value) { + this.conciliationIdentifier = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PixTransactionGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); + + @JsonProperty("transactionReceiptUrl") + public PixTransactionGetResponseDtoBuilder transactionReceiptUrl(String value) { + this.transactionReceiptUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable refusalReason = JsonNullable.undefined(); + + @JsonProperty("refusalReason") + public PixTransactionGetResponseDtoBuilder refusalReason(String value) { + this.refusalReason = JsonNullable.of(value); + return this; + } + + private JsonNullable canBeCanceled = JsonNullable.undefined(); + + @JsonProperty("canBeCanceled") + public PixTransactionGetResponseDtoBuilder canBeCanceled(Boolean value) { + this.canBeCanceled = JsonNullable.of(value); + return this; + } + + private JsonNullable originalTransaction = JsonNullable.undefined(); + + @JsonProperty("originalTransaction") + public PixTransactionGetResponseDtoBuilder originalTransaction(PixOriginalTransactionResponseDto value) { + this.originalTransaction = JsonNullable.of(value); + return this; + } + + private JsonNullable externalAccount = JsonNullable.undefined(); + + @JsonProperty("externalAccount") + public PixTransactionGetResponseDtoBuilder externalAccount(PixTransactionExternalAccountResponseDto value) { + this.externalAccount = JsonNullable.of(value); + return this; + } + + private JsonNullable qrCode = JsonNullable.undefined(); + + @JsonProperty("qrCode") + public PixTransactionGetResponseDtoBuilder qrCode(PixTransactionQrCodeResponseDto value) { + this.qrCode = JsonNullable.of(value); + return this; + } + + private JsonNullable payment = JsonNullable.undefined(); + + @JsonProperty("payment") + public PixTransactionGetResponseDtoBuilder payment(String value) { + this.payment = JsonNullable.of(value); + return this; + } + + private JsonNullable canBeRefunded = JsonNullable.undefined(); + + @JsonProperty("canBeRefunded") + public PixTransactionGetResponseDtoBuilder canBeRefunded(Boolean value) { + this.canBeRefunded = JsonNullable.of(value); + return this; + } + + private JsonNullable refundDisabledReason = JsonNullable.undefined(); + + @JsonProperty("refundDisabledReason") + public PixTransactionGetResponseDtoBuilder refundDisabledReason(String value) { + this.refundDisabledReason = JsonNullable.of(value); + return this; + } + + private JsonNullable chargedFeeValue = JsonNullable.undefined(); + + @JsonProperty("chargedFeeValue") + public PixTransactionGetResponseDtoBuilder chargedFeeValue(Double value) { + this.chargedFeeValue = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public PixTransactionGetResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable addressKey = JsonNullable.undefined(); + + @JsonProperty("addressKey") + public PixTransactionGetResponseDtoBuilder addressKey(String value) { + this.addressKey = JsonNullable.of(value); + return this; + } + + private JsonNullable addressKeyType = JsonNullable.undefined(); + + @JsonProperty("addressKeyType") + public PixTransactionGetResponseDtoBuilder addressKeyType(PixTransactionGetResponsePixAddressKeyType value) { + this.addressKeyType = JsonNullable.of(value); + return this; + } + + private JsonNullable transferId = JsonNullable.undefined(); + + @JsonProperty("transferId") + public PixTransactionGetResponseDtoBuilder transferId(String value) { + this.transferId = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public PixTransactionGetResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixAddressKeyType.java new file mode 100644 index 0000000..456587e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixAddressKeyType.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Pix key type + */ +@Getter +@AllArgsConstructor +public enum PixTransactionGetResponsePixAddressKeyType { + CPF("CPF"), + CNPJ("CNPJ"), + EMAIL("EMAIL"), + PHONE("PHONE"), + EVP("EVP"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixTransactionGetResponsePixAddressKeyType fromValue(String value) { + return Arrays.stream(PixTransactionGetResponsePixAddressKeyType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionCashValueFinality.java b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionCashValueFinality.java new file mode 100644 index 0000000..0524832 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionCashValueFinality.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Used to indicate whether it is a Withdrawal or Change + */ +@Getter +@AllArgsConstructor +public enum PixTransactionGetResponsePixTransactionCashValueFinality { + WITHDRAWAL("WITHDRAWAL"), + CHANGE("CHANGE"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixTransactionGetResponsePixTransactionCashValueFinality fromValue(String value) { + return Arrays.stream(PixTransactionGetResponsePixTransactionCashValueFinality.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionOriginType.java b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionOriginType.java new file mode 100644 index 0000000..5062ad0 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionOriginType.java @@ -0,0 +1,34 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Indicates the origin of the transaction + */ +@Getter +@AllArgsConstructor +public enum PixTransactionGetResponsePixTransactionOriginType { + MANUAL("MANUAL"), + ADDRESS_KEY("ADDRESS_KEY"), + STATIC_QRCODE("STATIC_QRCODE"), + DYNAMIC_QRCODE("DYNAMIC_QRCODE"), + PAYMENT_INITIATION_SERVICE("PAYMENT_INITIATION_SERVICE"), + AUTOMATIC_RECURRING("AUTOMATIC_RECURRING"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixTransactionGetResponsePixTransactionOriginType fromValue(String value) { + return Arrays.stream(PixTransactionGetResponsePixTransactionOriginType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionStatus.java b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionStatus.java new file mode 100644 index 0000000..e34bf5e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionStatus.java @@ -0,0 +1,39 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Transaction status + */ +@Getter +@AllArgsConstructor +public enum PixTransactionGetResponsePixTransactionStatus { + AWAITING_BALANCE_VALIDATION("AWAITING_BALANCE_VALIDATION"), + AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE("AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE"), + AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), + AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST("AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST"), + AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST("AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST"), + SCHEDULED("SCHEDULED"), + AWAITING_REQUEST("AWAITING_REQUEST"), + REQUESTED("REQUESTED"), + DONE("DONE"), + REFUSED("REFUSED"), + CANCELLED("CANCELLED"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixTransactionGetResponsePixTransactionStatus fromValue(String value) { + return Arrays.stream(PixTransactionGetResponsePixTransactionStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionType.java b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionType.java new file mode 100644 index 0000000..4737f21 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionType.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Transaction type + */ +@Getter +@AllArgsConstructor +public enum PixTransactionGetResponsePixTransactionType { + DEBIT("DEBIT"), + CREDIT("CREDIT"), + CREDIT_REFUND("CREDIT_REFUND"), + DEBIT_REFUND("DEBIT_REFUND"), + DEBIT_REFUND_CANCELLATION("DEBIT_REFUND_CANCELLATION"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixTransactionGetResponsePixTransactionType fromValue(String value) { + return Arrays.stream(PixTransactionGetResponsePixTransactionType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionStatus.java b/src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionStatus.java new file mode 100644 index 0000000..ef9971a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionStatus.java @@ -0,0 +1,39 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by transaction status + */ +@Getter +@AllArgsConstructor +public enum PixTransactionListRequestPixTransactionStatus { + AWAITING_BALANCE_VALIDATION("AWAITING_BALANCE_VALIDATION"), + AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE("AWAITING_INSTANT_PAYMENT_ACCOUNT_BALANCE"), + AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), + AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST("AWAITING_CHECKOUT_RISK_ANALYSIS_REQUEST"), + AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST("AWAITING_CASH_IN_RISK_ANALYSIS_REQUEST"), + SCHEDULED("SCHEDULED"), + AWAITING_REQUEST("AWAITING_REQUEST"), + REQUESTED("REQUESTED"), + DONE("DONE"), + REFUSED("REFUSED"), + CANCELLED("CANCELLED"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixTransactionListRequestPixTransactionStatus fromValue(String value) { + return Arrays.stream(PixTransactionListRequestPixTransactionStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionType.java b/src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionType.java new file mode 100644 index 0000000..071543c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionType.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by transaction type + */ +@Getter +@AllArgsConstructor +public enum PixTransactionListRequestPixTransactionType { + DEBIT("DEBIT"), + CREDIT("CREDIT"), + CREDIT_REFUND("CREDIT_REFUND"), + DEBIT_REFUND("DEBIT_REFUND"), + DEBIT_REFUND_CANCELLATION("DEBIT_REFUND_CANCELLATION"); + + @JsonValue + private final String value; + + @JsonCreator + public static PixTransactionListRequestPixTransactionType fromValue(String value) { + return Arrays.stream(PixTransactionListRequestPixTransactionType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixTransactionListResponseDto.java new file mode 100644 index 0000000..7df80a3 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixTransactionListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixTransactionListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public PixTransactionListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public PixTransactionListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public PixTransactionListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public PixTransactionListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public PixTransactionListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public PixTransactionListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodePayerResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodePayerResponseDto.java new file mode 100644 index 0000000..579061a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodePayerResponseDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Information about the payer + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixTransactionQrCodePayerResponseDto { + + /** + * Payer's name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * CPF or CNPJ of the payer + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixTransactionQrCodePayerResponseDtoBuilder { + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public PixTransactionQrCodePayerResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public PixTransactionQrCodePayerResponseDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeResponseDto.java new file mode 100644 index 0000000..209c9f4 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeResponseDto.java @@ -0,0 +1,181 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Information about QrCode + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixTransactionQrCodeResponseDto { + + /** + * Information about the payer + */ + @JsonProperty("payer") + private JsonNullable payer; + + /** + * Unique Pix reconciliation identifier with Asaas + */ + @JsonProperty("conciliationIdentifier") + private JsonNullable conciliationIdentifier; + + /** + * Original transaction value + */ + @JsonProperty("originalValue") + private JsonNullable originalValue; + + /** + * Due date + */ + @JsonProperty("dueDate") + private JsonNullable dueDate; + + /** + * Interest value + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine value + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Discount amount + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Expiration date + */ + @JsonProperty("expirationDate") + private JsonNullable expirationDate; + + @JsonIgnore + public PixTransactionQrCodePayerResponseDto getPayer() { + return payer.orElse(null); + } + + @JsonIgnore + public String getConciliationIdentifier() { + return conciliationIdentifier.orElse(null); + } + + @JsonIgnore + public Double getOriginalValue() { + return originalValue.orElse(null); + } + + @JsonIgnore + public String getDueDate() { + return dueDate.orElse(null); + } + + @JsonIgnore + public Double getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public Double getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public Double getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public String getExpirationDate() { + return expirationDate.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixTransactionQrCodeResponseDtoBuilder { + + private JsonNullable payer = JsonNullable.undefined(); + + @JsonProperty("payer") + public PixTransactionQrCodeResponseDtoBuilder payer(PixTransactionQrCodePayerResponseDto value) { + this.payer = JsonNullable.of(value); + return this; + } + + private JsonNullable conciliationIdentifier = JsonNullable.undefined(); + + @JsonProperty("conciliationIdentifier") + public PixTransactionQrCodeResponseDtoBuilder conciliationIdentifier(String value) { + this.conciliationIdentifier = JsonNullable.of(value); + return this; + } + + private JsonNullable originalValue = JsonNullable.undefined(); + + @JsonProperty("originalValue") + public PixTransactionQrCodeResponseDtoBuilder originalValue(Double value) { + this.originalValue = JsonNullable.of(value); + return this; + } + + private JsonNullable dueDate = JsonNullable.undefined(); + + @JsonProperty("dueDate") + public PixTransactionQrCodeResponseDtoBuilder dueDate(String value) { + this.dueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public PixTransactionQrCodeResponseDtoBuilder interest(Double value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public PixTransactionQrCodeResponseDtoBuilder fine(Double value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public PixTransactionQrCodeResponseDtoBuilder discount(Double value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable expirationDate = JsonNullable.undefined(); + + @JsonProperty("expirationDate") + public PixTransactionQrCodeResponseDtoBuilder expirationDate(String value) { + this.expirationDate = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeSaveRequestDto.java new file mode 100644 index 0000000..5b94d28 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeSaveRequestDto.java @@ -0,0 +1,55 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * QRCode payload for payment + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixTransactionQrCodeSaveRequestDto { + + /** + * QRCode payload + */ + @NonNull + private String payload; + + /** + * Change amount (for QRCode Change) + */ + @JsonProperty("changeValue") + private JsonNullable changeValue; + + @JsonIgnore + public Double getChangeValue() { + return changeValue.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixTransactionQrCodeSaveRequestDtoBuilder { + + private JsonNullable changeValue = JsonNullable.undefined(); + + @JsonProperty("changeValue") + public PixTransactionQrCodeSaveRequestDtoBuilder changeValue(Double value) { + this.changeValue = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/PixTransactionSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PixTransactionSaveRequestDto.java new file mode 100644 index 0000000..b71caff --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionSaveRequestDto.java @@ -0,0 +1,77 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class PixTransactionSaveRequestDto { + + /** + * QRCode payload for payment + */ + @NonNull + private PixTransactionQrCodeSaveRequestDto qrCode; + + /** + * Value to be paid + */ + @NonNull + private Double value; + + /** + * Payment Description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Used to schedule payment + */ + @JsonProperty("scheduleDate") + private JsonNullable scheduleDate; + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getScheduleDate() { + return scheduleDate.orElse(null); + } + + // Overwrite lombok builder methods + public static class PixTransactionSaveRequestDtoBuilder { + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public PixTransactionSaveRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable scheduleDate = JsonNullable.undefined(); + + @JsonProperty("scheduleDate") + public PixTransactionSaveRequestDtoBuilder scheduleDate(String value) { + this.scheduleDate = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListItemsResponseDto.java b/src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListItemsResponseDto.java new file mode 100644 index 0000000..db02f42 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListItemsResponseDto.java @@ -0,0 +1,48 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class RecurringPixTransactionListItemsResponseDto { + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class RecurringPixTransactionListItemsResponseDtoBuilder { + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public RecurringPixTransactionListItemsResponseDtoBuilder data( + List value + ) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.java b/src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.java new file mode 100644 index 0000000..fe73db8 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by recurrence status + */ +@Getter +@AllArgsConstructor +public enum RecurringPixTransactionListRequestPixRecurringTransactionStatus { + AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), + PENDING("PENDING"), + SCHEDULED("SCHEDULED"), + CANCELLED("CANCELLED"), + DONE("DONE"); + + @JsonValue + private final String value; + + @JsonCreator + public static RecurringPixTransactionListRequestPixRecurringTransactionStatus fromValue(String value) { + return Arrays.stream(RecurringPixTransactionListRequestPixRecurringTransactionStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDto.java new file mode 100644 index 0000000..bc49691 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDto.java @@ -0,0 +1,219 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionConfigureInvoiceRequestDto { + + /** + * Unique municipal service identifier + */ + @JsonProperty("municipalServiceId") + private JsonNullable municipalServiceId; + + /** + * Municipal Service Code + */ + @JsonProperty("municipalServiceCode") + private JsonNullable municipalServiceCode; + + /** + * Name of municipal service + */ + @JsonProperty("municipalServiceName") + private JsonNullable municipalServiceName; + + /** + * Update the Payment amount with the invoice taxes already deducted. + */ + @JsonProperty("updatePayment") + private JsonNullable updatePayment; + + /** + * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. + */ + @JsonProperty("deductions") + private JsonNullable deductions; + + /** + * When the invoice will be issued + */ + @JsonProperty("effectiveDatePeriod") + private JsonNullable effectiveDatePeriod; + + /** + * Issue only for paid charges + */ + @JsonProperty("receivedOnly") + private JsonNullable receivedOnly; + + /** + * Number of days before billing due date + */ + @JsonProperty("daysBeforeDueDate") + private JsonNullable daysBeforeDueDate; + + /** + * Additional notes on the invoice + */ + @JsonProperty("observations") + private JsonNullable observations; + + /** + * Invoice taxes + */ + @JsonProperty("taxes") + private JsonNullable taxes; + + @JsonIgnore + public String getMunicipalServiceId() { + return municipalServiceId.orElse(null); + } + + @JsonIgnore + public String getMunicipalServiceCode() { + return municipalServiceCode.orElse(null); + } + + @JsonIgnore + public String getMunicipalServiceName() { + return municipalServiceName.orElse(null); + } + + @JsonIgnore + public Boolean getUpdatePayment() { + return updatePayment.orElse(null); + } + + @JsonIgnore + public Double getDeductions() { + return deductions.orElse(null); + } + + @JsonIgnore + public SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod getEffectiveDatePeriod() { + return effectiveDatePeriod.orElse(null); + } + + @JsonIgnore + public Boolean getReceivedOnly() { + return receivedOnly.orElse(null); + } + + @JsonIgnore + public Long getDaysBeforeDueDate() { + return daysBeforeDueDate.orElse(null); + } + + @JsonIgnore + public String getObservations() { + return observations.orElse(null); + } + + @JsonIgnore + public InvoiceTaxesDto getTaxes() { + return taxes.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionConfigureInvoiceRequestDtoBuilder { + + private JsonNullable municipalServiceId = JsonNullable.undefined(); + + @JsonProperty("municipalServiceId") + public SubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceId(String value) { + this.municipalServiceId = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalServiceCode = JsonNullable.undefined(); + + @JsonProperty("municipalServiceCode") + public SubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceCode(String value) { + this.municipalServiceCode = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalServiceName = JsonNullable.undefined(); + + @JsonProperty("municipalServiceName") + public SubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceName(String value) { + this.municipalServiceName = JsonNullable.of(value); + return this; + } + + private JsonNullable updatePayment = JsonNullable.undefined(); + + @JsonProperty("updatePayment") + public SubscriptionConfigureInvoiceRequestDtoBuilder updatePayment(Boolean value) { + this.updatePayment = JsonNullable.of(value); + return this; + } + + private JsonNullable deductions = JsonNullable.undefined(); + + @JsonProperty("deductions") + public SubscriptionConfigureInvoiceRequestDtoBuilder deductions(Double value) { + this.deductions = JsonNullable.of(value); + return this; + } + + private JsonNullable effectiveDatePeriod = + JsonNullable.undefined(); + + @JsonProperty("effectiveDatePeriod") + public SubscriptionConfigureInvoiceRequestDtoBuilder effectiveDatePeriod( + SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod value + ) { + this.effectiveDatePeriod = JsonNullable.of(value); + return this; + } + + private JsonNullable receivedOnly = JsonNullable.undefined(); + + @JsonProperty("receivedOnly") + public SubscriptionConfigureInvoiceRequestDtoBuilder receivedOnly(Boolean value) { + this.receivedOnly = JsonNullable.of(value); + return this; + } + + private JsonNullable daysBeforeDueDate = JsonNullable.undefined(); + + @JsonProperty("daysBeforeDueDate") + public SubscriptionConfigureInvoiceRequestDtoBuilder daysBeforeDueDate(Long value) { + this.daysBeforeDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable observations = JsonNullable.undefined(); + + @JsonProperty("observations") + public SubscriptionConfigureInvoiceRequestDtoBuilder observations(String value) { + this.observations = JsonNullable.of(value); + return this; + } + + private JsonNullable taxes = JsonNullable.undefined(); + + @JsonProperty("taxes") + public SubscriptionConfigureInvoiceRequestDtoBuilder taxes(InvoiceTaxesDto value) { + this.taxes = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java b/src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java new file mode 100644 index 0000000..062e8be --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * When the invoice will be issued + */ +@Getter +@AllArgsConstructor +public enum SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod { + ON_PAYMENT_CONFIRMATION("ON_PAYMENT_CONFIRMATION"), + ON_PAYMENT_DUE_DATE("ON_PAYMENT_DUE_DATE"), + BEFORE_PAYMENT_DUE_DATE("BEFORE_PAYMENT_DUE_DATE"), + ON_DUE_DATE_MONTH("ON_DUE_DATE_MONTH"), + ON_NEXT_MONTH("ON_NEXT_MONTH"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod fromValue(String value) { + return Arrays.stream(SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionDeleteInvoiceConfigResponseDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionDeleteInvoiceConfigResponseDto.java new file mode 100644 index 0000000..03782c1 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionDeleteInvoiceConfigResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionDeleteInvoiceConfigResponseDto { + + /** + * Informs if configurations have been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Unique subscription identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionDeleteInvoiceConfigResponseDtoBuilder { + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public SubscriptionDeleteInvoiceConfigResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public SubscriptionDeleteInvoiceConfigResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionDeleteResponseDto.java new file mode 100644 index 0000000..03f1566 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionDeleteResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionDeleteResponseDto { + + /** + * Informs if the subscription has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Unique subscription identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionDeleteResponseDtoBuilder { + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public SubscriptionDeleteResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public SubscriptionDeleteResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionGetInvoicesRequestInvoiceStatus.java b/src/main/java/com/asaas/apisdk/models/SubscriptionGetInvoicesRequestInvoiceStatus.java new file mode 100644 index 0000000..3045047 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionGetInvoicesRequestInvoiceStatus.java @@ -0,0 +1,39 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by invoice status + */ +@Getter +@AllArgsConstructor +public enum SubscriptionGetInvoicesRequestInvoiceStatus { + SCHEDULED("SCHEDULED"), + WAITING_OVERDUE_PAYMENT("WAITING_OVERDUE_PAYMENT"), + PENDING("PENDING"), + SYNCHRONIZED_("SYNCHRONIZED"), + AUTHORIZED("AUTHORIZED"), + PROCESSING_CANCELLATION("PROCESSING_CANCELLATION"), + CANCELLED("CANCELLED"), + CANCELLATION_DENIED("CANCELLATION_DENIED"), + ERROR("ERROR"), + NONE("NONE"), + CANCELED("CANCELED"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionGetInvoicesRequestInvoiceStatus fromValue(String value) { + return Arrays.stream(SubscriptionGetInvoicesRequestInvoiceStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseBillingType.java new file mode 100644 index 0000000..05aec0c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseBillingType.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing type + */ +@Getter +@AllArgsConstructor +public enum SubscriptionGetResponseBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + DEBIT_CARD("DEBIT_CARD"), + TRANSFER("TRANSFER"), + DEPOSIT("DEPOSIT"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionGetResponseBillingType fromValue(String value) { + return Arrays.stream(SubscriptionGetResponseBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseCycle.java b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseCycle.java new file mode 100644 index 0000000..e7b7a69 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseCycle.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing frequency + */ +@Getter +@AllArgsConstructor +public enum SubscriptionGetResponseCycle { + WEEKLY("WEEKLY"), + BIWEEKLY("BIWEEKLY"), + MONTHLY("MONTHLY"), + BIMONTHLY("BIMONTHLY"), + QUARTERLY("QUARTERLY"), + SEMIANNUALLY("SEMIANNUALLY"), + YEARLY("YEARLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionGetResponseCycle fromValue(String value) { + return Arrays.stream(SubscriptionGetResponseCycle.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseDto.java new file mode 100644 index 0000000..9c8f706 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseDto.java @@ -0,0 +1,407 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique subscription identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Subscription creation date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Unique customer identifier + */ + @JsonProperty("customer") + private JsonNullable customer; + + /** + * Unique identifier of the payments link to which the subscription belongs + */ + @JsonProperty("paymentLink") + private JsonNullable paymentLink; + + /** + * Billing type + */ + @JsonProperty("billingType") + private JsonNullable billingType; + + /** + * Billing frequency + */ + @JsonProperty("cycle") + private JsonNullable cycle; + + /** + * Subscription value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Due date of the next payment to be generated + */ + @JsonProperty("nextDueDate") + private JsonNullable nextDueDate; + + /** + * Deadline for payments to be due + */ + @JsonProperty("endDate") + private JsonNullable endDate; + + /** + * Subscription description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Subscription status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Informs if the subscription has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Maximum number of payments to be generated for this subscription + */ + @JsonProperty("maxPayments") + private JsonNullable maxPayments; + + /** + * Subscription identifier on your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Unique checkout identifier + */ + @JsonProperty("checkoutSession") + private JsonNullable checkoutSession; + + /** + * Split information + */ + @JsonProperty("split") + private JsonNullable> split; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public String getCustomer() { + return customer.orElse(null); + } + + @JsonIgnore + public String getPaymentLink() { + return paymentLink.orElse(null); + } + + @JsonIgnore + public SubscriptionGetResponseBillingType getBillingType() { + return billingType.orElse(null); + } + + @JsonIgnore + public SubscriptionGetResponseCycle getCycle() { + return cycle.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getNextDueDate() { + return nextDueDate.orElse(null); + } + + @JsonIgnore + public String getEndDate() { + return endDate.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public SubscriptionGetResponseSubscriptionStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentFineResponseDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public PaymentInterestResponseDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public Long getMaxPayments() { + return maxPayments.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public String getCheckoutSession() { + return checkoutSession.orElse(null); + } + + @JsonIgnore + public List getSplit() { + return split.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public SubscriptionGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public SubscriptionGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public SubscriptionGetResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable customer = JsonNullable.undefined(); + + @JsonProperty("customer") + public SubscriptionGetResponseDtoBuilder customer(String value) { + this.customer = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentLink = JsonNullable.undefined(); + + @JsonProperty("paymentLink") + public SubscriptionGetResponseDtoBuilder paymentLink(String value) { + this.paymentLink = JsonNullable.of(value); + return this; + } + + private JsonNullable billingType = JsonNullable.undefined(); + + @JsonProperty("billingType") + public SubscriptionGetResponseDtoBuilder billingType(SubscriptionGetResponseBillingType value) { + this.billingType = JsonNullable.of(value); + return this; + } + + private JsonNullable cycle = JsonNullable.undefined(); + + @JsonProperty("cycle") + public SubscriptionGetResponseDtoBuilder cycle(SubscriptionGetResponseCycle value) { + this.cycle = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public SubscriptionGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable nextDueDate = JsonNullable.undefined(); + + @JsonProperty("nextDueDate") + public SubscriptionGetResponseDtoBuilder nextDueDate(String value) { + this.nextDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable endDate = JsonNullable.undefined(); + + @JsonProperty("endDate") + public SubscriptionGetResponseDtoBuilder endDate(String value) { + this.endDate = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public SubscriptionGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public SubscriptionGetResponseDtoBuilder status(SubscriptionGetResponseSubscriptionStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public SubscriptionGetResponseDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public SubscriptionGetResponseDtoBuilder fine(PaymentFineResponseDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public SubscriptionGetResponseDtoBuilder interest(PaymentInterestResponseDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public SubscriptionGetResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable maxPayments = JsonNullable.undefined(); + + @JsonProperty("maxPayments") + public SubscriptionGetResponseDtoBuilder maxPayments(Long value) { + this.maxPayments = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public SubscriptionGetResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable checkoutSession = JsonNullable.undefined(); + + @JsonProperty("checkoutSession") + public SubscriptionGetResponseDtoBuilder checkoutSession(String value) { + this.checkoutSession = JsonNullable.of(value); + return this; + } + + private JsonNullable> split = JsonNullable.undefined(); + + @JsonProperty("split") + public SubscriptionGetResponseDtoBuilder split(List value) { + this.split = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseSubscriptionStatus.java b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseSubscriptionStatus.java new file mode 100644 index 0000000..76b9ec6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseSubscriptionStatus.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Subscription status + */ +@Getter +@AllArgsConstructor +public enum SubscriptionGetResponseSubscriptionStatus { + ACTIVE("ACTIVE"), + EXPIRED("EXPIRED"), + INACTIVE("INACTIVE"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionGetResponseSubscriptionStatus fromValue(String value) { + return Arrays.stream(SubscriptionGetResponseSubscriptionStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigGetResponseDto.java new file mode 100644 index 0000000..c1a8f20 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigGetResponseDto.java @@ -0,0 +1,197 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionInvoiceConfigGetResponseDto { + + /** + * Unique municipal service identifier + */ + @JsonProperty("municipalServiceId") + private JsonNullable municipalServiceId; + + /** + * Municipal Service Code + */ + @JsonProperty("municipalServiceCode") + private JsonNullable municipalServiceCode; + + /** + * Name of municipal service + */ + @JsonProperty("municipalServiceName") + private JsonNullable municipalServiceName; + + /** + * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. + */ + @JsonProperty("deductions") + private JsonNullable deductions; + + /** + * When the invoice will be issued + */ + @JsonProperty("invoiceCreationPeriod") + private JsonNullable invoiceCreationPeriod; + + /** + * Number of days before billing due date + */ + @JsonProperty("daysBeforeDueDate") + private JsonNullable daysBeforeDueDate; + + /** + * Issue only for paid charges + */ + @JsonProperty("receivedOnly") + private JsonNullable receivedOnly; + + /** + * Additional notes on the invoice + */ + @JsonProperty("observations") + private JsonNullable observations; + + /** + * Invoice taxes + */ + @JsonProperty("taxes") + private JsonNullable taxes; + + @JsonIgnore + public String getMunicipalServiceId() { + return municipalServiceId.orElse(null); + } + + @JsonIgnore + public String getMunicipalServiceCode() { + return municipalServiceCode.orElse(null); + } + + @JsonIgnore + public String getMunicipalServiceName() { + return municipalServiceName.orElse(null); + } + + @JsonIgnore + public Double getDeductions() { + return deductions.orElse(null); + } + + @JsonIgnore + public InvoiceCreationPeriod getInvoiceCreationPeriod() { + return invoiceCreationPeriod.orElse(null); + } + + @JsonIgnore + public Long getDaysBeforeDueDate() { + return daysBeforeDueDate.orElse(null); + } + + @JsonIgnore + public Boolean getReceivedOnly() { + return receivedOnly.orElse(null); + } + + @JsonIgnore + public String getObservations() { + return observations.orElse(null); + } + + @JsonIgnore + public InvoiceTaxesDto getTaxes() { + return taxes.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionInvoiceConfigGetResponseDtoBuilder { + + private JsonNullable municipalServiceId = JsonNullable.undefined(); + + @JsonProperty("municipalServiceId") + public SubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceId(String value) { + this.municipalServiceId = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalServiceCode = JsonNullable.undefined(); + + @JsonProperty("municipalServiceCode") + public SubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceCode(String value) { + this.municipalServiceCode = JsonNullable.of(value); + return this; + } + + private JsonNullable municipalServiceName = JsonNullable.undefined(); + + @JsonProperty("municipalServiceName") + public SubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceName(String value) { + this.municipalServiceName = JsonNullable.of(value); + return this; + } + + private JsonNullable deductions = JsonNullable.undefined(); + + @JsonProperty("deductions") + public SubscriptionInvoiceConfigGetResponseDtoBuilder deductions(Double value) { + this.deductions = JsonNullable.of(value); + return this; + } + + private JsonNullable invoiceCreationPeriod = JsonNullable.undefined(); + + @JsonProperty("invoiceCreationPeriod") + public SubscriptionInvoiceConfigGetResponseDtoBuilder invoiceCreationPeriod(InvoiceCreationPeriod value) { + this.invoiceCreationPeriod = JsonNullable.of(value); + return this; + } + + private JsonNullable daysBeforeDueDate = JsonNullable.undefined(); + + @JsonProperty("daysBeforeDueDate") + public SubscriptionInvoiceConfigGetResponseDtoBuilder daysBeforeDueDate(Long value) { + this.daysBeforeDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable receivedOnly = JsonNullable.undefined(); + + @JsonProperty("receivedOnly") + public SubscriptionInvoiceConfigGetResponseDtoBuilder receivedOnly(Boolean value) { + this.receivedOnly = JsonNullable.of(value); + return this; + } + + private JsonNullable observations = JsonNullable.undefined(); + + @JsonProperty("observations") + public SubscriptionInvoiceConfigGetResponseDtoBuilder observations(String value) { + this.observations = JsonNullable.of(value); + return this; + } + + private JsonNullable taxes = JsonNullable.undefined(); + + @JsonProperty("taxes") + public SubscriptionInvoiceConfigGetResponseDtoBuilder taxes(InvoiceTaxesDto value) { + this.taxes = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDto.java new file mode 100644 index 0000000..bdb58e6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDto.java @@ -0,0 +1,143 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionInvoiceConfigUpdateRequestDto { + + /** + * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. + */ + @JsonProperty("deductions") + private JsonNullable deductions; + + /** + * When the invoice will be issued + */ + @JsonProperty("effectiveDatePeriod") + private JsonNullable effectiveDatePeriod; + + /** + * Issue only for paid charges + */ + @JsonProperty("receivedOnly") + private JsonNullable receivedOnly; + + /** + * Number of days before billing due date + */ + @JsonProperty("daysBeforeDueDate") + private JsonNullable daysBeforeDueDate; + + /** + * Additional notes on the invoice + */ + @JsonProperty("observations") + private JsonNullable observations; + + /** + * Invoice taxes + */ + @JsonProperty("taxes") + private JsonNullable taxes; + + @JsonIgnore + public Double getDeductions() { + return deductions.orElse(null); + } + + @JsonIgnore + public SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod getEffectiveDatePeriod() { + return effectiveDatePeriod.orElse(null); + } + + @JsonIgnore + public Boolean getReceivedOnly() { + return receivedOnly.orElse(null); + } + + @JsonIgnore + public Long getDaysBeforeDueDate() { + return daysBeforeDueDate.orElse(null); + } + + @JsonIgnore + public String getObservations() { + return observations.orElse(null); + } + + @JsonIgnore + public InvoiceTaxesDto getTaxes() { + return taxes.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionInvoiceConfigUpdateRequestDtoBuilder { + + private JsonNullable deductions = JsonNullable.undefined(); + + @JsonProperty("deductions") + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder deductions(Double value) { + this.deductions = JsonNullable.of(value); + return this; + } + + private JsonNullable effectiveDatePeriod = + JsonNullable.undefined(); + + @JsonProperty("effectiveDatePeriod") + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder effectiveDatePeriod( + SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod value + ) { + this.effectiveDatePeriod = JsonNullable.of(value); + return this; + } + + private JsonNullable receivedOnly = JsonNullable.undefined(); + + @JsonProperty("receivedOnly") + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder receivedOnly(Boolean value) { + this.receivedOnly = JsonNullable.of(value); + return this; + } + + private JsonNullable daysBeforeDueDate = JsonNullable.undefined(); + + @JsonProperty("daysBeforeDueDate") + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder daysBeforeDueDate(Long value) { + this.daysBeforeDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable observations = JsonNullable.undefined(); + + @JsonProperty("observations") + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder observations(String value) { + this.observations = JsonNullable.of(value); + return this; + } + + private JsonNullable taxes = JsonNullable.undefined(); + + @JsonProperty("taxes") + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder taxes(InvoiceTaxesDto value) { + this.taxes = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java b/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java new file mode 100644 index 0000000..8174111 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * When the invoice will be issued + */ +@Getter +@AllArgsConstructor +public enum SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod { + ON_PAYMENT_CONFIRMATION("ON_PAYMENT_CONFIRMATION"), + ON_PAYMENT_DUE_DATE("ON_PAYMENT_DUE_DATE"), + BEFORE_PAYMENT_DUE_DATE("BEFORE_PAYMENT_DUE_DATE"), + ON_DUE_DATE_MONTH("ON_DUE_DATE_MONTH"), + ON_NEXT_MONTH("ON_NEXT_MONTH"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod fromValue(String value) { + return Arrays.stream(SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionListPaymentsRequestPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/SubscriptionListPaymentsRequestPaymentStatus.java new file mode 100644 index 0000000..87df887 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionListPaymentsRequestPaymentStatus.java @@ -0,0 +1,42 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by payment status + */ +@Getter +@AllArgsConstructor +public enum SubscriptionListPaymentsRequestPaymentStatus { + PENDING("PENDING"), + RECEIVED("RECEIVED"), + CONFIRMED("CONFIRMED"), + OVERDUE("OVERDUE"), + REFUNDED("REFUNDED"), + RECEIVED_IN_CASH("RECEIVED_IN_CASH"), + REFUND_REQUESTED("REFUND_REQUESTED"), + REFUND_IN_PROGRESS("REFUND_IN_PROGRESS"), + CHARGEBACK_REQUESTED("CHARGEBACK_REQUESTED"), + CHARGEBACK_DISPUTE("CHARGEBACK_DISPUTE"), + AWAITING_CHARGEBACK_REVERSAL("AWAITING_CHARGEBACK_REVERSAL"), + DUNNING_REQUESTED("DUNNING_REQUESTED"), + DUNNING_RECEIVED("DUNNING_RECEIVED"), + AWAITING_RISK_ANALYSIS("AWAITING_RISK_ANALYSIS"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionListPaymentsRequestPaymentStatus fromValue(String value) { + return Arrays.stream(SubscriptionListPaymentsRequestPaymentStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionListRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/SubscriptionListRequestBillingType.java new file mode 100644 index 0000000..cb79a45 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionListRequestBillingType.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by billing type + */ +@Getter +@AllArgsConstructor +public enum SubscriptionListRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + DEBIT_CARD("DEBIT_CARD"), + TRANSFER("TRANSFER"), + DEPOSIT("DEPOSIT"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionListRequestBillingType fromValue(String value) { + return Arrays.stream(SubscriptionListRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionListRequestSubscriptionStatus.java b/src/main/java/com/asaas/apisdk/models/SubscriptionListRequestSubscriptionStatus.java new file mode 100644 index 0000000..0e611df --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionListRequestSubscriptionStatus.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Filter by status + */ +@Getter +@AllArgsConstructor +public enum SubscriptionListRequestSubscriptionStatus { + ACTIVE("ACTIVE"), + EXPIRED("EXPIRED"), + INACTIVE("INACTIVE"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionListRequestSubscriptionStatus fromValue(String value) { + return Arrays.stream(SubscriptionListRequestSubscriptionStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionListResponseDto.java new file mode 100644 index 0000000..53556b7 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public SubscriptionListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public SubscriptionListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public SubscriptionListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public SubscriptionListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public SubscriptionListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public SubscriptionListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestBillingType.java new file mode 100644 index 0000000..b7c8f09 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing type + */ +@Getter +@AllArgsConstructor +public enum SubscriptionSaveRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionSaveRequestBillingType fromValue(String value) { + return Arrays.stream(SubscriptionSaveRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestCycle.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestCycle.java new file mode 100644 index 0000000..76e5406 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestCycle.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing frequency + */ +@Getter +@AllArgsConstructor +public enum SubscriptionSaveRequestCycle { + WEEKLY("WEEKLY"), + BIWEEKLY("BIWEEKLY"), + MONTHLY("MONTHLY"), + BIMONTHLY("BIMONTHLY"), + QUARTERLY("QUARTERLY"), + SEMIANNUALLY("SEMIANNUALLY"), + YEARLY("YEARLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionSaveRequestCycle fromValue(String value) { + return Arrays.stream(SubscriptionSaveRequestCycle.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestDto.java new file mode 100644 index 0000000..8305ed6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestDto.java @@ -0,0 +1,229 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionSaveRequestDto { + + /** + * Unique customer identifier in Asaas + */ + @NonNull + private String customer; + + /** + * Billing type + */ + @NonNull + private SubscriptionSaveRequestBillingType billingType; + + /** + * Subscription value + */ + @NonNull + private Double value; + + /** + * First payment due + */ + @NonNull + private String nextDueDate; + + /** + * Billing frequency + */ + @NonNull + private SubscriptionSaveRequestCycle cycle; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Subscription description (max. 500 characters) + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Deadline for payments to be due + */ + @JsonProperty("endDate") + private JsonNullable endDate; + + /** + * Maximum number of payments to be generated for this subscription + */ + @JsonProperty("maxPayments") + private JsonNullable maxPayments; + + /** + * Subscription identifier on your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Split information + */ + @JsonProperty("split") + private JsonNullable> split; + + /** + * Automatic redirection information after the payment of the link payment + */ + @JsonProperty("callback") + private JsonNullable callback; + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentInterestRequestDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public PaymentFineRequestDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getEndDate() { + return endDate.orElse(null); + } + + @JsonIgnore + public Long getMaxPayments() { + return maxPayments.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public List getSplit() { + return split.orElse(null); + } + + @JsonIgnore + public PaymentCallbackRequestDto getCallback() { + return callback.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionSaveRequestDtoBuilder { + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public SubscriptionSaveRequestDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public SubscriptionSaveRequestDtoBuilder interest(PaymentInterestRequestDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public SubscriptionSaveRequestDtoBuilder fine(PaymentFineRequestDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public SubscriptionSaveRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable endDate = JsonNullable.undefined(); + + @JsonProperty("endDate") + public SubscriptionSaveRequestDtoBuilder endDate(String value) { + this.endDate = JsonNullable.of(value); + return this; + } + + private JsonNullable maxPayments = JsonNullable.undefined(); + + @JsonProperty("maxPayments") + public SubscriptionSaveRequestDtoBuilder maxPayments(Long value) { + this.maxPayments = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public SubscriptionSaveRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable> split = JsonNullable.undefined(); + + @JsonProperty("split") + public SubscriptionSaveRequestDtoBuilder split(List value) { + this.split = JsonNullable.of(value); + return this; + } + + private JsonNullable callback = JsonNullable.undefined(); + + @JsonProperty("callback") + public SubscriptionSaveRequestDtoBuilder callback(PaymentCallbackRequestDto value) { + this.callback = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestBillingType.java new file mode 100644 index 0000000..3ed6945 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing type + */ +@Getter +@AllArgsConstructor +public enum SubscriptionSaveWithCreditCardRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionSaveWithCreditCardRequestBillingType fromValue(String value) { + return Arrays.stream(SubscriptionSaveWithCreditCardRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestCycle.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestCycle.java new file mode 100644 index 0000000..3e91d9e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestCycle.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing frequency + */ +@Getter +@AllArgsConstructor +public enum SubscriptionSaveWithCreditCardRequestCycle { + WEEKLY("WEEKLY"), + BIWEEKLY("BIWEEKLY"), + MONTHLY("MONTHLY"), + BIMONTHLY("BIMONTHLY"), + QUARTERLY("QUARTERLY"), + SEMIANNUALLY("SEMIANNUALLY"), + YEARLY("YEARLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionSaveWithCreditCardRequestCycle fromValue(String value) { + return Arrays.stream(SubscriptionSaveWithCreditCardRequestCycle.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestDto.java new file mode 100644 index 0000000..851415c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestDto.java @@ -0,0 +1,266 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionSaveWithCreditCardRequestDto { + + /** + * Unique customer identifier in Asaas + */ + @NonNull + private String customer; + + /** + * Billing type + */ + @NonNull + private SubscriptionSaveWithCreditCardRequestBillingType billingType; + + /** + * Subscription value + */ + @NonNull + private Double value; + + /** + * First payment due + */ + @NonNull + private String nextDueDate; + + /** + * Billing frequency + */ + @NonNull + private SubscriptionSaveWithCreditCardRequestCycle cycle; + + /** + * Credit card information + */ + @NonNull + private CreditCardRequestDto creditCard; + + /** + * Credit card holder information + */ + @NonNull + private CreditCardHolderInfoRequestDto creditCardHolderInfo; + + /** + * IP from where the customer is making the purchase. Your server's IP must not be entered. + */ + @NonNull + private String remoteIp; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Subscription description (max. 500 characters) + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Deadline for payments to be due + */ + @JsonProperty("endDate") + private JsonNullable endDate; + + /** + * Maximum number of payments to be generated for this subscription + */ + @JsonProperty("maxPayments") + private JsonNullable maxPayments; + + /** + * Subscription identifier on your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Split information + */ + @JsonProperty("split") + private JsonNullable> split; + + /** + * Automatic redirection information after the payment of the link payment + */ + @JsonProperty("callback") + private JsonNullable callback; + + /** + * Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. + */ + @JsonProperty("creditCardToken") + private JsonNullable creditCardToken; + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentInterestRequestDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public PaymentFineRequestDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getEndDate() { + return endDate.orElse(null); + } + + @JsonIgnore + public Long getMaxPayments() { + return maxPayments.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public List getSplit() { + return split.orElse(null); + } + + @JsonIgnore + public PaymentCallbackRequestDto getCallback() { + return callback.orElse(null); + } + + @JsonIgnore + public String getCreditCardToken() { + return creditCardToken.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionSaveWithCreditCardRequestDtoBuilder { + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public SubscriptionSaveWithCreditCardRequestDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public SubscriptionSaveWithCreditCardRequestDtoBuilder interest(PaymentInterestRequestDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public SubscriptionSaveWithCreditCardRequestDtoBuilder fine(PaymentFineRequestDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public SubscriptionSaveWithCreditCardRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable endDate = JsonNullable.undefined(); + + @JsonProperty("endDate") + public SubscriptionSaveWithCreditCardRequestDtoBuilder endDate(String value) { + this.endDate = JsonNullable.of(value); + return this; + } + + private JsonNullable maxPayments = JsonNullable.undefined(); + + @JsonProperty("maxPayments") + public SubscriptionSaveWithCreditCardRequestDtoBuilder maxPayments(Long value) { + this.maxPayments = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public SubscriptionSaveWithCreditCardRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable> split = JsonNullable.undefined(); + + @JsonProperty("split") + public SubscriptionSaveWithCreditCardRequestDtoBuilder split(List value) { + this.split = JsonNullable.of(value); + return this; + } + + private JsonNullable callback = JsonNullable.undefined(); + + @JsonProperty("callback") + public SubscriptionSaveWithCreditCardRequestDtoBuilder callback(PaymentCallbackRequestDto value) { + this.callback = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCardToken = JsonNullable.undefined(); + + @JsonProperty("creditCardToken") + public SubscriptionSaveWithCreditCardRequestDtoBuilder creditCardToken(String value) { + this.creditCardToken = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseBillingType.java new file mode 100644 index 0000000..4c1a108 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseBillingType.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing type + */ +@Getter +@AllArgsConstructor +public enum SubscriptionSaveWithCreditCardResponseBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + DEBIT_CARD("DEBIT_CARD"), + TRANSFER("TRANSFER"), + DEPOSIT("DEPOSIT"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionSaveWithCreditCardResponseBillingType fromValue(String value) { + return Arrays.stream(SubscriptionSaveWithCreditCardResponseBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseCycle.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseCycle.java new file mode 100644 index 0000000..4a5319a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseCycle.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing frequency + */ +@Getter +@AllArgsConstructor +public enum SubscriptionSaveWithCreditCardResponseCycle { + WEEKLY("WEEKLY"), + BIWEEKLY("BIWEEKLY"), + MONTHLY("MONTHLY"), + BIMONTHLY("BIMONTHLY"), + QUARTERLY("QUARTERLY"), + SEMIANNUALLY("SEMIANNUALLY"), + YEARLY("YEARLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionSaveWithCreditCardResponseCycle fromValue(String value) { + return Arrays.stream(SubscriptionSaveWithCreditCardResponseCycle.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseDto.java new file mode 100644 index 0000000..bd5c668 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseDto.java @@ -0,0 +1,430 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionSaveWithCreditCardResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique subscription identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Subscription creation date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Unique customer identifier + */ + @JsonProperty("customer") + private JsonNullable customer; + + /** + * Unique identifier of the payments link to which the subscription belongs + */ + @JsonProperty("paymentLink") + private JsonNullable paymentLink; + + /** + * Billing type + */ + @JsonProperty("billingType") + private JsonNullable billingType; + + /** + * Billing frequency + */ + @JsonProperty("cycle") + private JsonNullable cycle; + + /** + * Subscription value + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Due date of the next payment to be generated + */ + @JsonProperty("nextDueDate") + private JsonNullable nextDueDate; + + /** + * Deadline for payments to be due + */ + @JsonProperty("endDate") + private JsonNullable endDate; + + /** + * Subscription description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Subscription status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Informs if the subscription has been removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Maximum number of payments to be generated for this subscription + */ + @JsonProperty("maxPayments") + private JsonNullable maxPayments; + + /** + * Subscription identifier on your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Unique checkout identifier + */ + @JsonProperty("checkoutSession") + private JsonNullable checkoutSession; + + /** + * Split information + */ + @JsonProperty("split") + private JsonNullable> split; + + /** + * Credit card information + */ + @JsonProperty("creditCard") + private JsonNullable creditCard; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public String getCustomer() { + return customer.orElse(null); + } + + @JsonIgnore + public String getPaymentLink() { + return paymentLink.orElse(null); + } + + @JsonIgnore + public SubscriptionSaveWithCreditCardResponseBillingType getBillingType() { + return billingType.orElse(null); + } + + @JsonIgnore + public SubscriptionSaveWithCreditCardResponseCycle getCycle() { + return cycle.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public String getNextDueDate() { + return nextDueDate.orElse(null); + } + + @JsonIgnore + public String getEndDate() { + return endDate.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public SubscriptionSaveWithCreditCardResponseSubscriptionStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentFineResponseDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public PaymentInterestResponseDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public Long getMaxPayments() { + return maxPayments.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public String getCheckoutSession() { + return checkoutSession.orElse(null); + } + + @JsonIgnore + public List getSplit() { + return split.orElse(null); + } + + @JsonIgnore + public PaymentSaveWithCreditCardCreditCardDto getCreditCard() { + return creditCard.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionSaveWithCreditCardResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public SubscriptionSaveWithCreditCardResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public SubscriptionSaveWithCreditCardResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public SubscriptionSaveWithCreditCardResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable customer = JsonNullable.undefined(); + + @JsonProperty("customer") + public SubscriptionSaveWithCreditCardResponseDtoBuilder customer(String value) { + this.customer = JsonNullable.of(value); + return this; + } + + private JsonNullable paymentLink = JsonNullable.undefined(); + + @JsonProperty("paymentLink") + public SubscriptionSaveWithCreditCardResponseDtoBuilder paymentLink(String value) { + this.paymentLink = JsonNullable.of(value); + return this; + } + + private JsonNullable billingType = JsonNullable.undefined(); + + @JsonProperty("billingType") + public SubscriptionSaveWithCreditCardResponseDtoBuilder billingType( + SubscriptionSaveWithCreditCardResponseBillingType value + ) { + this.billingType = JsonNullable.of(value); + return this; + } + + private JsonNullable cycle = JsonNullable.undefined(); + + @JsonProperty("cycle") + public SubscriptionSaveWithCreditCardResponseDtoBuilder cycle(SubscriptionSaveWithCreditCardResponseCycle value) { + this.cycle = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public SubscriptionSaveWithCreditCardResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable nextDueDate = JsonNullable.undefined(); + + @JsonProperty("nextDueDate") + public SubscriptionSaveWithCreditCardResponseDtoBuilder nextDueDate(String value) { + this.nextDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable endDate = JsonNullable.undefined(); + + @JsonProperty("endDate") + public SubscriptionSaveWithCreditCardResponseDtoBuilder endDate(String value) { + this.endDate = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public SubscriptionSaveWithCreditCardResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public SubscriptionSaveWithCreditCardResponseDtoBuilder status( + SubscriptionSaveWithCreditCardResponseSubscriptionStatus value + ) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public SubscriptionSaveWithCreditCardResponseDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public SubscriptionSaveWithCreditCardResponseDtoBuilder fine(PaymentFineResponseDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public SubscriptionSaveWithCreditCardResponseDtoBuilder interest(PaymentInterestResponseDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public SubscriptionSaveWithCreditCardResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable maxPayments = JsonNullable.undefined(); + + @JsonProperty("maxPayments") + public SubscriptionSaveWithCreditCardResponseDtoBuilder maxPayments(Long value) { + this.maxPayments = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public SubscriptionSaveWithCreditCardResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable checkoutSession = JsonNullable.undefined(); + + @JsonProperty("checkoutSession") + public SubscriptionSaveWithCreditCardResponseDtoBuilder checkoutSession(String value) { + this.checkoutSession = JsonNullable.of(value); + return this; + } + + private JsonNullable> split = JsonNullable.undefined(); + + @JsonProperty("split") + public SubscriptionSaveWithCreditCardResponseDtoBuilder split(List value) { + this.split = JsonNullable.of(value); + return this; + } + + private JsonNullable creditCard = JsonNullable.undefined(); + + @JsonProperty("creditCard") + public SubscriptionSaveWithCreditCardResponseDtoBuilder creditCard(PaymentSaveWithCreditCardCreditCardDto value) { + this.creditCard = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.java new file mode 100644 index 0000000..cff2f9e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Subscription status + */ +@Getter +@AllArgsConstructor +public enum SubscriptionSaveWithCreditCardResponseSubscriptionStatus { + ACTIVE("ACTIVE"), + EXPIRED("EXPIRED"), + INACTIVE("INACTIVE"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionSaveWithCreditCardResponseSubscriptionStatus fromValue(String value) { + return Arrays.stream(SubscriptionSaveWithCreditCardResponseSubscriptionStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSplitRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitRequestDto.java new file mode 100644 index 0000000..375b091 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitRequestDto.java @@ -0,0 +1,112 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Split information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionSplitRequestDto { + + /** + * Asaas wallet identifier that will be transferred + */ + @NonNull + private String walletId; + + /** + * Fixed amount to be transferred to the account when the payment is received + */ + @JsonProperty("fixedValue") + private JsonNullable fixedValue; + + /** + * Percentage of the net value of the charge to be transferred when received + */ + @JsonProperty("percentualValue") + private JsonNullable percentualValue; + + /** + * Split identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Split description + */ + @JsonProperty("description") + private JsonNullable description; + + @JsonIgnore + public Double getFixedValue() { + return fixedValue.orElse(null); + } + + @JsonIgnore + public Double getPercentualValue() { + return percentualValue.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionSplitRequestDtoBuilder { + + private JsonNullable fixedValue = JsonNullable.undefined(); + + @JsonProperty("fixedValue") + public SubscriptionSplitRequestDtoBuilder fixedValue(Double value) { + this.fixedValue = JsonNullable.of(value); + return this; + } + + private JsonNullable percentualValue = JsonNullable.undefined(); + + @JsonProperty("percentualValue") + public SubscriptionSplitRequestDtoBuilder percentualValue(Double value) { + this.percentualValue = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public SubscriptionSplitRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public SubscriptionSplitRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseDto.java new file mode 100644 index 0000000..ac646ef --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseDto.java @@ -0,0 +1,165 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Split information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionSplitResponseDto { + + /** + * Asaas wallet identifier that will be transferred + */ + @JsonProperty("walletId") + private JsonNullable walletId; + + /** + * Fixed amount to be transferred to the account when the payment is received + */ + @JsonProperty("fixedValue") + private JsonNullable fixedValue; + + /** + * Percentage of the net value of the charge to be transferred when received + */ + @JsonProperty("percentualValue") + private JsonNullable percentualValue; + + /** + * Split identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Split description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Subscription split status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Reason why subscription split was disabled + */ + @JsonProperty("disabledReason") + private JsonNullable disabledReason; + + @JsonIgnore + public String getWalletId() { + return walletId.orElse(null); + } + + @JsonIgnore + public Double getFixedValue() { + return fixedValue.orElse(null); + } + + @JsonIgnore + public Double getPercentualValue() { + return percentualValue.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public SubscriptionSplitResponseSubscriptionSplitStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public SubscriptionSplitResponseSubscriptionSplitDisabledReason getDisabledReason() { + return disabledReason.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionSplitResponseDtoBuilder { + + private JsonNullable walletId = JsonNullable.undefined(); + + @JsonProperty("walletId") + public SubscriptionSplitResponseDtoBuilder walletId(String value) { + this.walletId = JsonNullable.of(value); + return this; + } + + private JsonNullable fixedValue = JsonNullable.undefined(); + + @JsonProperty("fixedValue") + public SubscriptionSplitResponseDtoBuilder fixedValue(Double value) { + this.fixedValue = JsonNullable.of(value); + return this; + } + + private JsonNullable percentualValue = JsonNullable.undefined(); + + @JsonProperty("percentualValue") + public SubscriptionSplitResponseDtoBuilder percentualValue(Double value) { + this.percentualValue = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public SubscriptionSplitResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public SubscriptionSplitResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public SubscriptionSplitResponseDtoBuilder status(SubscriptionSplitResponseSubscriptionSplitStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable disabledReason = + JsonNullable.undefined(); + + @JsonProperty("disabledReason") + public SubscriptionSplitResponseDtoBuilder disabledReason( + SubscriptionSplitResponseSubscriptionSplitDisabledReason value + ) { + this.disabledReason = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.java new file mode 100644 index 0000000..1b7eac6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Reason why subscription split was disabled + */ +@Getter +@AllArgsConstructor +public enum SubscriptionSplitResponseSubscriptionSplitDisabledReason { + WALLET_UNABLE_TO_RECEIVE("WALLET_UNABLE_TO_RECEIVE"), + VALUE_DIVERGENCE("VALUE_DIVERGENCE"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionSplitResponseSubscriptionSplitDisabledReason fromValue(String value) { + return Arrays.stream(SubscriptionSplitResponseSubscriptionSplitDisabledReason.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitStatus.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitStatus.java new file mode 100644 index 0000000..ad0d74e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitStatus.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Subscription split status + */ +@Getter +@AllArgsConstructor +public enum SubscriptionSplitResponseSubscriptionSplitStatus { + ACTIVE("ACTIVE"), + DISABLED("DISABLED"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionSplitResponseSubscriptionSplitStatus fromValue(String value) { + return Arrays.stream(SubscriptionSplitResponseSubscriptionSplitStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateCreditCardRequestDto.java new file mode 100644 index 0000000..9146afa --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateCreditCardRequestDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionUpdateCreditCardRequestDto { + + /** + * Credit card information + */ + @NonNull + private CreditCardRequestDto creditCard; + + /** + * Credit card holder information + */ + @NonNull + private CreditCardHolderInfoRequestDto creditCardHolderInfo; + + /** + * IP from where the customer is making the purchase. Your server's IP must not be entered. + */ + @NonNull + private String remoteIp; + + /** + * Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. + */ + @JsonProperty("creditCardToken") + private JsonNullable creditCardToken; + + @JsonIgnore + public String getCreditCardToken() { + return creditCardToken.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionUpdateCreditCardRequestDtoBuilder { + + private JsonNullable creditCardToken = JsonNullable.undefined(); + + @JsonProperty("creditCardToken") + public SubscriptionUpdateCreditCardRequestDtoBuilder creditCardToken(String value) { + this.creditCardToken = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestBillingType.java new file mode 100644 index 0000000..f49242f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestBillingType.java @@ -0,0 +1,32 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing type + */ +@Getter +@AllArgsConstructor +public enum SubscriptionUpdateRequestBillingType { + UNDEFINED("UNDEFINED"), + BOLETO("BOLETO"), + CREDIT_CARD("CREDIT_CARD"), + PIX("PIX"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionUpdateRequestBillingType fromValue(String value) { + return Arrays.stream(SubscriptionUpdateRequestBillingType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestCycle.java b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestCycle.java new file mode 100644 index 0000000..2b21efb --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestCycle.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Billing frequency + */ +@Getter +@AllArgsConstructor +public enum SubscriptionUpdateRequestCycle { + WEEKLY("WEEKLY"), + BIWEEKLY("BIWEEKLY"), + MONTHLY("MONTHLY"), + BIMONTHLY("BIMONTHLY"), + QUARTERLY("QUARTERLY"), + SEMIANNUALLY("SEMIANNUALLY"), + YEARLY("YEARLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionUpdateRequestCycle fromValue(String value) { + return Arrays.stream(SubscriptionUpdateRequestCycle.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestDto.java new file mode 100644 index 0000000..227f4e0 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestDto.java @@ -0,0 +1,274 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class SubscriptionUpdateRequestDto { + + /** + * Billing type + */ + @JsonProperty("billingType") + private JsonNullable billingType; + + /** + * Subscription status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * First payment due + */ + @JsonProperty("nextDueDate") + private JsonNullable nextDueDate; + + /** + * Discount information + */ + @JsonProperty("discount") + private JsonNullable discount; + + /** + * Interest information for payment after due date + */ + @JsonProperty("interest") + private JsonNullable interest; + + /** + * Fine information for payment after due date + */ + @JsonProperty("fine") + private JsonNullable fine; + + /** + * Billing frequency + */ + @JsonProperty("cycle") + private JsonNullable cycle; + + /** + * Subscription description (max. 500 characters) + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Deadline for payments to be due + */ + @JsonProperty("endDate") + private JsonNullable endDate; + + /** + * true to update the possible properties of already existing pending payments + */ + @JsonProperty("updatePendingPayments") + private JsonNullable updatePendingPayments; + + /** + * Subscription identifier on your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Split information + */ + @JsonProperty("split") + private JsonNullable> split; + + /** + * Automatic redirection information after the payment of the link payment + */ + @JsonProperty("callback") + private JsonNullable callback; + + @JsonIgnore + public SubscriptionUpdateRequestBillingType getBillingType() { + return billingType.orElse(null); + } + + @JsonIgnore + public SubscriptionUpdateRequestSubscriptionStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public String getNextDueDate() { + return nextDueDate.orElse(null); + } + + @JsonIgnore + public PaymentDiscountDto getDiscount() { + return discount.orElse(null); + } + + @JsonIgnore + public PaymentInterestRequestDto getInterest() { + return interest.orElse(null); + } + + @JsonIgnore + public PaymentFineRequestDto getFine() { + return fine.orElse(null); + } + + @JsonIgnore + public SubscriptionUpdateRequestCycle getCycle() { + return cycle.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getEndDate() { + return endDate.orElse(null); + } + + @JsonIgnore + public Boolean getUpdatePendingPayments() { + return updatePendingPayments.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public List getSplit() { + return split.orElse(null); + } + + @JsonIgnore + public PaymentCallbackRequestDto getCallback() { + return callback.orElse(null); + } + + // Overwrite lombok builder methods + public static class SubscriptionUpdateRequestDtoBuilder { + + private JsonNullable billingType = JsonNullable.undefined(); + + @JsonProperty("billingType") + public SubscriptionUpdateRequestDtoBuilder billingType(SubscriptionUpdateRequestBillingType value) { + this.billingType = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public SubscriptionUpdateRequestDtoBuilder status(SubscriptionUpdateRequestSubscriptionStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable nextDueDate = JsonNullable.undefined(); + + @JsonProperty("nextDueDate") + public SubscriptionUpdateRequestDtoBuilder nextDueDate(String value) { + this.nextDueDate = JsonNullable.of(value); + return this; + } + + private JsonNullable discount = JsonNullable.undefined(); + + @JsonProperty("discount") + public SubscriptionUpdateRequestDtoBuilder discount(PaymentDiscountDto value) { + this.discount = JsonNullable.of(value); + return this; + } + + private JsonNullable interest = JsonNullable.undefined(); + + @JsonProperty("interest") + public SubscriptionUpdateRequestDtoBuilder interest(PaymentInterestRequestDto value) { + this.interest = JsonNullable.of(value); + return this; + } + + private JsonNullable fine = JsonNullable.undefined(); + + @JsonProperty("fine") + public SubscriptionUpdateRequestDtoBuilder fine(PaymentFineRequestDto value) { + this.fine = JsonNullable.of(value); + return this; + } + + private JsonNullable cycle = JsonNullable.undefined(); + + @JsonProperty("cycle") + public SubscriptionUpdateRequestDtoBuilder cycle(SubscriptionUpdateRequestCycle value) { + this.cycle = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public SubscriptionUpdateRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable endDate = JsonNullable.undefined(); + + @JsonProperty("endDate") + public SubscriptionUpdateRequestDtoBuilder endDate(String value) { + this.endDate = JsonNullable.of(value); + return this; + } + + private JsonNullable updatePendingPayments = JsonNullable.undefined(); + + @JsonProperty("updatePendingPayments") + public SubscriptionUpdateRequestDtoBuilder updatePendingPayments(Boolean value) { + this.updatePendingPayments = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public SubscriptionUpdateRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable> split = JsonNullable.undefined(); + + @JsonProperty("split") + public SubscriptionUpdateRequestDtoBuilder split(List value) { + this.split = JsonNullable.of(value); + return this; + } + + private JsonNullable callback = JsonNullable.undefined(); + + @JsonProperty("callback") + public SubscriptionUpdateRequestDtoBuilder callback(PaymentCallbackRequestDto value) { + this.callback = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestSubscriptionStatus.java b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestSubscriptionStatus.java new file mode 100644 index 0000000..bc57d11 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestSubscriptionStatus.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Subscription status + */ +@Getter +@AllArgsConstructor +public enum SubscriptionUpdateRequestSubscriptionStatus { + ACTIVE("ACTIVE"), + INACTIVE("INACTIVE"); + + @JsonValue + private final String value; + + @JsonCreator + public static SubscriptionUpdateRequestSubscriptionStatus fromValue(String value) { + return Arrays.stream(SubscriptionUpdateRequestSubscriptionStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferBankAccountGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/TransferBankAccountGetResponseDto.java new file mode 100644 index 0000000..ac3185e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferBankAccountGetResponseDto.java @@ -0,0 +1,200 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Bank account details + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class TransferBankAccountGetResponseDto { + + /** + * Bank account name + */ + @JsonProperty("bank") + private JsonNullable bank; + + /** + * Name of bank account owner + */ + @JsonProperty("accountName") + private JsonNullable accountName; + + /** + * Name of bank account owner + */ + @JsonProperty("ownerName") + private JsonNullable ownerName; + + /** + * CPF or CNPJ of the bank account owner + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Non-digit agency number + */ + @JsonProperty("agency") + private JsonNullable agency; + + /** + * Agency digit + */ + @JsonProperty("agencyDigit") + private JsonNullable agencyDigit; + + /** + * Non-digit bank account number + */ + @JsonProperty("account") + private JsonNullable account; + + /** + * Bank account digit + */ + @JsonProperty("accountDigit") + private JsonNullable accountDigit; + + /** + * Pix key address + */ + @JsonProperty("pixAddressKey") + private JsonNullable pixAddressKey; + + @JsonIgnore + public TransferBankGetResponseDto getBank() { + return bank.orElse(null); + } + + @JsonIgnore + public String getAccountName() { + return accountName.orElse(null); + } + + @JsonIgnore + public String getOwnerName() { + return ownerName.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public String getAgency() { + return agency.orElse(null); + } + + @JsonIgnore + public String getAgencyDigit() { + return agencyDigit.orElse(null); + } + + @JsonIgnore + public String getAccount() { + return account.orElse(null); + } + + @JsonIgnore + public String getAccountDigit() { + return accountDigit.orElse(null); + } + + @JsonIgnore + public String getPixAddressKey() { + return pixAddressKey.orElse(null); + } + + // Overwrite lombok builder methods + public static class TransferBankAccountGetResponseDtoBuilder { + + private JsonNullable bank = JsonNullable.undefined(); + + @JsonProperty("bank") + public TransferBankAccountGetResponseDtoBuilder bank(TransferBankGetResponseDto value) { + this.bank = JsonNullable.of(value); + return this; + } + + private JsonNullable accountName = JsonNullable.undefined(); + + @JsonProperty("accountName") + public TransferBankAccountGetResponseDtoBuilder accountName(String value) { + this.accountName = JsonNullable.of(value); + return this; + } + + private JsonNullable ownerName = JsonNullable.undefined(); + + @JsonProperty("ownerName") + public TransferBankAccountGetResponseDtoBuilder ownerName(String value) { + this.ownerName = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public TransferBankAccountGetResponseDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable agency = JsonNullable.undefined(); + + @JsonProperty("agency") + public TransferBankAccountGetResponseDtoBuilder agency(String value) { + this.agency = JsonNullable.of(value); + return this; + } + + private JsonNullable agencyDigit = JsonNullable.undefined(); + + @JsonProperty("agencyDigit") + public TransferBankAccountGetResponseDtoBuilder agencyDigit(String value) { + this.agencyDigit = JsonNullable.of(value); + return this; + } + + private JsonNullable account = JsonNullable.undefined(); + + @JsonProperty("account") + public TransferBankAccountGetResponseDtoBuilder account(String value) { + this.account = JsonNullable.of(value); + return this; + } + + private JsonNullable accountDigit = JsonNullable.undefined(); + + @JsonProperty("accountDigit") + public TransferBankAccountGetResponseDtoBuilder accountDigit(String value) { + this.accountDigit = JsonNullable.of(value); + return this; + } + + private JsonNullable pixAddressKey = JsonNullable.undefined(); + + @JsonProperty("pixAddressKey") + public TransferBankAccountGetResponseDtoBuilder pixAddressKey(String value) { + this.pixAddressKey = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestBankAccountType.java b/src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestBankAccountType.java new file mode 100644 index 0000000..16a856a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestBankAccountType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Account type + */ +@Getter +@AllArgsConstructor +public enum TransferBankAccountSaveRequestBankAccountType { + CONTA_CORRENTE("CONTA_CORRENTE"), + CONTA_POUPANCA("CONTA_POUPANCA"); + + @JsonValue + private final String value; + + @JsonCreator + public static TransferBankAccountSaveRequestBankAccountType fromValue(String value) { + return Arrays.stream(TransferBankAccountSaveRequestBankAccountType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestDto.java new file mode 100644 index 0000000..87a25e3 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestDto.java @@ -0,0 +1,157 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Enter your account details if it is a transfer to a bank account + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class TransferBankAccountSaveRequestDto { + + /** + * Name of bank account owner + */ + @NonNull + private String ownerName; + + /** + * CPF or CNPJ of the bank account owner + */ + @NonNull + private String cpfCnpj; + + /** + * Non-digit agency number + */ + @NonNull + private String agency; + + /** + * Non-digit bank account number + */ + @NonNull + private String account; + + /** + * Bank account digit + */ + @NonNull + private String accountDigit; + + /** + * Details of the bank account to which the transfer will be made + */ + @JsonProperty("bank") + private JsonNullable bank; + + /** + * Bank account name + */ + @JsonProperty("accountName") + private JsonNullable accountName; + + /** + * Account owner's date of birth. Only when the bank account does not belong to the same CPF or CNPJ as the Asaas account. + */ + @JsonProperty("ownerBirthDate") + private JsonNullable ownerBirthDate; + + /** + * Account type + */ + @JsonProperty("bankAccountType") + private JsonNullable bankAccountType; + + /** + * Identifier in the Brazilian Payment System + */ + @JsonProperty("ispb") + private JsonNullable ispb; + + @JsonIgnore + public TransferBankSaveRequestDto getBank() { + return bank.orElse(null); + } + + @JsonIgnore + public String getAccountName() { + return accountName.orElse(null); + } + + @JsonIgnore + public String getOwnerBirthDate() { + return ownerBirthDate.orElse(null); + } + + @JsonIgnore + public TransferBankAccountSaveRequestBankAccountType getBankAccountType() { + return bankAccountType.orElse(null); + } + + @JsonIgnore + public String getIspb() { + return ispb.orElse(null); + } + + // Overwrite lombok builder methods + public static class TransferBankAccountSaveRequestDtoBuilder { + + private JsonNullable bank = JsonNullable.undefined(); + + @JsonProperty("bank") + public TransferBankAccountSaveRequestDtoBuilder bank(TransferBankSaveRequestDto value) { + this.bank = JsonNullable.of(value); + return this; + } + + private JsonNullable accountName = JsonNullable.undefined(); + + @JsonProperty("accountName") + public TransferBankAccountSaveRequestDtoBuilder accountName(String value) { + this.accountName = JsonNullable.of(value); + return this; + } + + private JsonNullable ownerBirthDate = JsonNullable.undefined(); + + @JsonProperty("ownerBirthDate") + public TransferBankAccountSaveRequestDtoBuilder ownerBirthDate(String value) { + this.ownerBirthDate = JsonNullable.of(value); + return this; + } + + private JsonNullable bankAccountType = JsonNullable.undefined(); + + @JsonProperty("bankAccountType") + public TransferBankAccountSaveRequestDtoBuilder bankAccountType( + TransferBankAccountSaveRequestBankAccountType value + ) { + this.bankAccountType = JsonNullable.of(value); + return this; + } + + private JsonNullable ispb = JsonNullable.undefined(); + + @JsonProperty("ispb") + public TransferBankAccountSaveRequestDtoBuilder ispb(String value) { + this.ispb = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferBankGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/TransferBankGetResponseDto.java new file mode 100644 index 0000000..f6ee0f5 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferBankGetResponseDto.java @@ -0,0 +1,86 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Bank account name + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class TransferBankGetResponseDto { + + /** + * Identifier in the Brazilian Payment System + */ + @JsonProperty("ispb") + private JsonNullable ispb; + + /** + * Bank clearing code in the banking system + */ + @JsonProperty("code") + private JsonNullable code; + + /** + * Bank name + */ + @JsonProperty("name") + private JsonNullable name; + + @JsonIgnore + public String getIspb() { + return ispb.orElse(null); + } + + @JsonIgnore + public String getCode() { + return code.orElse(null); + } + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + // Overwrite lombok builder methods + public static class TransferBankGetResponseDtoBuilder { + + private JsonNullable ispb = JsonNullable.undefined(); + + @JsonProperty("ispb") + public TransferBankGetResponseDtoBuilder ispb(String value) { + this.ispb = JsonNullable.of(value); + return this; + } + + private JsonNullable code = JsonNullable.undefined(); + + @JsonProperty("code") + public TransferBankGetResponseDtoBuilder code(String value) { + this.code = JsonNullable.of(value); + return this; + } + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public TransferBankGetResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferBankSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/TransferBankSaveRequestDto.java new file mode 100644 index 0000000..f6278bb --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferBankSaveRequestDto.java @@ -0,0 +1,29 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; + +/** + * Details of the bank account to which the transfer will be made + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class TransferBankSaveRequestDto { + + /** + * Bank clearing code in the banking system + */ + @NonNull + private String code; +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/TransferGetResponseDto.java new file mode 100644 index 0000000..a71de1e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferGetResponseDto.java @@ -0,0 +1,387 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class TransferGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique transfer identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Type of transfer + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Transfer request date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Transfer amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Net value minus transfer fee + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Transfer status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Transfer rate + */ + @JsonProperty("transferFee") + private JsonNullable transferFee; + + /** + * Effective date + */ + @JsonProperty("effectiveDate") + private JsonNullable effectiveDate; + + /** + * Schedule date + */ + @JsonProperty("scheduleDate") + private JsonNullable scheduleDate; + + /** + * Unique identifier of the Pix transaction at the Central Bank + */ + @JsonProperty("endToEndIdentifier") + private JsonNullable endToEndIdentifier; + + /** + * `false` when awaiting authorization via SMS Token + */ + @JsonProperty("authorized") + private JsonNullable authorized; + + /** + * Reason for transfer failure + */ + @JsonProperty("failReason") + private JsonNullable failReason; + + /** + * Transfer identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Proof of transfer will be available after the transfer is confirmed + */ + @JsonProperty("transactionReceiptUrl") + private JsonNullable transactionReceiptUrl; + + /** + * Transfer method + */ + @JsonProperty("operationType") + private JsonNullable operationType; + + /** + * Transfer description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Unique recurrence identifier in Asaas + */ + @JsonProperty("recurring") + private JsonNullable recurring; + + /** + * Bank account details + */ + @JsonProperty("bankAccount") + private JsonNullable bankAccount; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public TransferGetResponseDtoType getType() { + return type.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public TransferGetResponseTransferStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public Double getTransferFee() { + return transferFee.orElse(null); + } + + @JsonIgnore + public String getEffectiveDate() { + return effectiveDate.orElse(null); + } + + @JsonIgnore + public String getScheduleDate() { + return scheduleDate.orElse(null); + } + + @JsonIgnore + public String getEndToEndIdentifier() { + return endToEndIdentifier.orElse(null); + } + + @JsonIgnore + public Boolean getAuthorized() { + return authorized.orElse(null); + } + + @JsonIgnore + public String getFailReason() { + return failReason.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public String getTransactionReceiptUrl() { + return transactionReceiptUrl.orElse(null); + } + + @JsonIgnore + public TransferGetResponseTransferType getOperationType() { + return operationType.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getRecurring() { + return recurring.orElse(null); + } + + @JsonIgnore + public TransferBankAccountGetResponseDto getBankAccount() { + return bankAccount.orElse(null); + } + + // Overwrite lombok builder methods + public static class TransferGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public TransferGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public TransferGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public TransferGetResponseDtoBuilder type(TransferGetResponseDtoType value) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public TransferGetResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public TransferGetResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public TransferGetResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public TransferGetResponseDtoBuilder status(TransferGetResponseTransferStatus value) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable transferFee = JsonNullable.undefined(); + + @JsonProperty("transferFee") + public TransferGetResponseDtoBuilder transferFee(Double value) { + this.transferFee = JsonNullable.of(value); + return this; + } + + private JsonNullable effectiveDate = JsonNullable.undefined(); + + @JsonProperty("effectiveDate") + public TransferGetResponseDtoBuilder effectiveDate(String value) { + this.effectiveDate = JsonNullable.of(value); + return this; + } + + private JsonNullable scheduleDate = JsonNullable.undefined(); + + @JsonProperty("scheduleDate") + public TransferGetResponseDtoBuilder scheduleDate(String value) { + this.scheduleDate = JsonNullable.of(value); + return this; + } + + private JsonNullable endToEndIdentifier = JsonNullable.undefined(); + + @JsonProperty("endToEndIdentifier") + public TransferGetResponseDtoBuilder endToEndIdentifier(String value) { + this.endToEndIdentifier = JsonNullable.of(value); + return this; + } + + private JsonNullable authorized = JsonNullable.undefined(); + + @JsonProperty("authorized") + public TransferGetResponseDtoBuilder authorized(Boolean value) { + this.authorized = JsonNullable.of(value); + return this; + } + + private JsonNullable failReason = JsonNullable.undefined(); + + @JsonProperty("failReason") + public TransferGetResponseDtoBuilder failReason(String value) { + this.failReason = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public TransferGetResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); + + @JsonProperty("transactionReceiptUrl") + public TransferGetResponseDtoBuilder transactionReceiptUrl(String value) { + this.transactionReceiptUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable operationType = JsonNullable.undefined(); + + @JsonProperty("operationType") + public TransferGetResponseDtoBuilder operationType(TransferGetResponseTransferType value) { + this.operationType = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public TransferGetResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable recurring = JsonNullable.undefined(); + + @JsonProperty("recurring") + public TransferGetResponseDtoBuilder recurring(String value) { + this.recurring = JsonNullable.of(value); + return this; + } + + private JsonNullable bankAccount = JsonNullable.undefined(); + + @JsonProperty("bankAccount") + public TransferGetResponseDtoBuilder bankAccount(TransferBankAccountGetResponseDto value) { + this.bankAccount = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferGetResponseDtoType.java b/src/main/java/com/asaas/apisdk/models/TransferGetResponseDtoType.java new file mode 100644 index 0000000..05f953a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferGetResponseDtoType.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of transfer + */ +@Getter +@AllArgsConstructor +public enum TransferGetResponseDtoType { + PIX("PIX"), + TED("TED"), + INTERNAL("INTERNAL"); + + @JsonValue + private final String value; + + @JsonCreator + public static TransferGetResponseDtoType fromValue(String value) { + return Arrays.stream(TransferGetResponseDtoType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferStatus.java b/src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferStatus.java new file mode 100644 index 0000000..f4436e5 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferStatus.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Transfer status + */ +@Getter +@AllArgsConstructor +public enum TransferGetResponseTransferStatus { + PENDING("PENDING"), + BANK_PROCESSING("BANK_PROCESSING"), + DONE("DONE"), + CANCELLED("CANCELLED"), + FAILED("FAILED"); + + @JsonValue + private final String value; + + @JsonCreator + public static TransferGetResponseTransferStatus fromValue(String value) { + return Arrays.stream(TransferGetResponseTransferStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferType.java b/src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferType.java new file mode 100644 index 0000000..9cf6d2d --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferType.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Transfer method + */ +@Getter +@AllArgsConstructor +public enum TransferGetResponseTransferType { + PIX("PIX"), + TED("TED"), + INTERNAL("INTERNAL"); + + @JsonValue + private final String value; + + @JsonCreator + public static TransferGetResponseTransferType fromValue(String value) { + return Arrays.stream(TransferGetResponseTransferType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferListResponseDto.java b/src/main/java/com/asaas/apisdk/models/TransferListResponseDto.java new file mode 100644 index 0000000..f3aa804 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class TransferListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class TransferListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public TransferListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public TransferListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public TransferListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public TransferListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public TransferListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public TransferListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestDto.java new file mode 100644 index 0000000..f1b48ab --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestDto.java @@ -0,0 +1,72 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Recurrence information. Only for Pix transfers + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class TransferRecurringSaveRequestDto { + + /** + * Frequency + */ + @JsonProperty("frequency") + private JsonNullable frequency; + + /** + * Number of repetitions. This transfer will be included as the first transaction of the recurrence. + * For the `WEEKLY` frequency, the maximum accepted is: `51` + * For the `MONTHLY` frequency, the maximum accepted is: `11` + */ + @JsonProperty("quantity") + private JsonNullable quantity; + + @JsonIgnore + public TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency getFrequency() { + return frequency.orElse(null); + } + + @JsonIgnore + public Long getQuantity() { + return quantity.orElse(null); + } + + // Overwrite lombok builder methods + public static class TransferRecurringSaveRequestDtoBuilder { + + private JsonNullable frequency = + JsonNullable.undefined(); + + @JsonProperty("frequency") + public TransferRecurringSaveRequestDtoBuilder frequency( + TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency value + ) { + this.frequency = JsonNullable.of(value); + return this; + } + + private JsonNullable quantity = JsonNullable.undefined(); + + @JsonProperty("quantity") + public TransferRecurringSaveRequestDtoBuilder quantity(Long value) { + this.quantity = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java b/src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java new file mode 100644 index 0000000..b249d97 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Frequency + */ +@Getter +@AllArgsConstructor +public enum TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency { + WEEKLY("WEEKLY"), + MONTHLY("MONTHLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency fromValue(String value) { + return Arrays.stream(TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferAccountDto.java b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferAccountDto.java new file mode 100644 index 0000000..d2e2573 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferAccountDto.java @@ -0,0 +1,124 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Target account basic information + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class TransferSaveInternalTransferAccountDto { + + /** + * Target account name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * CPF or CNPJ of the destination account + */ + @JsonProperty("cpfCnpj") + private JsonNullable cpfCnpj; + + /** + * Target account branch code + */ + @JsonProperty("agency") + private JsonNullable agency; + + /** + * Target account number + */ + @JsonProperty("account") + private JsonNullable account; + + /** + * Target account digit + */ + @JsonProperty("accountDigit") + private JsonNullable accountDigit; + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getCpfCnpj() { + return cpfCnpj.orElse(null); + } + + @JsonIgnore + public String getAgency() { + return agency.orElse(null); + } + + @JsonIgnore + public String getAccount() { + return account.orElse(null); + } + + @JsonIgnore + public String getAccountDigit() { + return accountDigit.orElse(null); + } + + // Overwrite lombok builder methods + public static class TransferSaveInternalTransferAccountDtoBuilder { + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public TransferSaveInternalTransferAccountDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable cpfCnpj = JsonNullable.undefined(); + + @JsonProperty("cpfCnpj") + public TransferSaveInternalTransferAccountDtoBuilder cpfCnpj(String value) { + this.cpfCnpj = JsonNullable.of(value); + return this; + } + + private JsonNullable agency = JsonNullable.undefined(); + + @JsonProperty("agency") + public TransferSaveInternalTransferAccountDtoBuilder agency(String value) { + this.agency = JsonNullable.of(value); + return this; + } + + private JsonNullable account = JsonNullable.undefined(); + + @JsonProperty("account") + public TransferSaveInternalTransferAccountDtoBuilder account(String value) { + this.account = JsonNullable.of(value); + return this; + } + + private JsonNullable accountDigit = JsonNullable.undefined(); + + @JsonProperty("accountDigit") + public TransferSaveInternalTransferAccountDtoBuilder accountDigit(String value) { + this.accountDigit = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferRequestDto.java b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferRequestDto.java new file mode 100644 index 0000000..47e7af7 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferRequestDto.java @@ -0,0 +1,58 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class TransferSaveInternalTransferRequestDto { + + /** + * Amount to be transferred + */ + @NonNull + private Double value; + + /** + * WalletId of the target account + */ + @NonNull + private String walletId; + + /** + * Transfer identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + // Overwrite lombok builder methods + public static class TransferSaveInternalTransferRequestDtoBuilder { + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public TransferSaveInternalTransferRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDto.java b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDto.java new file mode 100644 index 0000000..03e8ab6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDto.java @@ -0,0 +1,410 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class TransferSaveInternalTransferResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique transfer identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Type of transfer + */ + @JsonProperty("type") + private JsonNullable type; + + /** + * Transfer request date + */ + @JsonProperty("dateCreated") + private JsonNullable dateCreated; + + /** + * Transfer amount + */ + @JsonProperty("value") + private JsonNullable value; + + /** + * Net value minus transfer fee + */ + @JsonProperty("netValue") + private JsonNullable netValue; + + /** + * Transfer status + */ + @JsonProperty("status") + private JsonNullable status; + + /** + * Transfer rate + */ + @JsonProperty("transferFee") + private JsonNullable transferFee; + + /** + * Effective date + */ + @JsonProperty("effectiveDate") + private JsonNullable effectiveDate; + + /** + * Schedule date + */ + @JsonProperty("scheduleDate") + private JsonNullable scheduleDate; + + /** + * Unique identifier of the Pix transaction at the Central Bank + */ + @JsonProperty("endToEndIdentifier") + private JsonNullable endToEndIdentifier; + + /** + * `false` when awaiting authorization via SMS Token + */ + @JsonProperty("authorized") + private JsonNullable authorized; + + /** + * Reason for transfer failure + */ + @JsonProperty("failReason") + private JsonNullable failReason; + + /** + * Transfer identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Proof of transfer will be available after the transfer is confirmed + */ + @JsonProperty("transactionReceiptUrl") + private JsonNullable transactionReceiptUrl; + + /** + * Transfer method + */ + @JsonProperty("operationType") + private JsonNullable operationType; + + /** + * Transfer description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * Unique recurrence identifier in Asaas + */ + @JsonProperty("recurring") + private JsonNullable recurring; + + /** + * Unique wallet identifier to split charges or transfer between Asaas accounts + */ + @JsonProperty("walletId") + private JsonNullable walletId; + + /** + * Target account basic information + */ + @JsonProperty("account") + private JsonNullable account; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public TransferSaveInternalTransferResponseDtoType getType() { + return type.orElse(null); + } + + @JsonIgnore + public String getDateCreated() { + return dateCreated.orElse(null); + } + + @JsonIgnore + public Double getValue() { + return value.orElse(null); + } + + @JsonIgnore + public Double getNetValue() { + return netValue.orElse(null); + } + + @JsonIgnore + public TransferSaveInternalTransferResponseTransferStatus getStatus() { + return status.orElse(null); + } + + @JsonIgnore + public Double getTransferFee() { + return transferFee.orElse(null); + } + + @JsonIgnore + public String getEffectiveDate() { + return effectiveDate.orElse(null); + } + + @JsonIgnore + public String getScheduleDate() { + return scheduleDate.orElse(null); + } + + @JsonIgnore + public String getEndToEndIdentifier() { + return endToEndIdentifier.orElse(null); + } + + @JsonIgnore + public Boolean getAuthorized() { + return authorized.orElse(null); + } + + @JsonIgnore + public String getFailReason() { + return failReason.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public String getTransactionReceiptUrl() { + return transactionReceiptUrl.orElse(null); + } + + @JsonIgnore + public TransferSaveInternalTransferResponseTransferType getOperationType() { + return operationType.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getRecurring() { + return recurring.orElse(null); + } + + @JsonIgnore + public String getWalletId() { + return walletId.orElse(null); + } + + @JsonIgnore + public TransferSaveInternalTransferAccountDto getAccount() { + return account.orElse(null); + } + + // Overwrite lombok builder methods + public static class TransferSaveInternalTransferResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public TransferSaveInternalTransferResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public TransferSaveInternalTransferResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable type = JsonNullable.undefined(); + + @JsonProperty("type") + public TransferSaveInternalTransferResponseDtoBuilder type(TransferSaveInternalTransferResponseDtoType value) { + this.type = JsonNullable.of(value); + return this; + } + + private JsonNullable dateCreated = JsonNullable.undefined(); + + @JsonProperty("dateCreated") + public TransferSaveInternalTransferResponseDtoBuilder dateCreated(String value) { + this.dateCreated = JsonNullable.of(value); + return this; + } + + private JsonNullable value = JsonNullable.undefined(); + + @JsonProperty("value") + public TransferSaveInternalTransferResponseDtoBuilder value(Double value) { + this.value = JsonNullable.of(value); + return this; + } + + private JsonNullable netValue = JsonNullable.undefined(); + + @JsonProperty("netValue") + public TransferSaveInternalTransferResponseDtoBuilder netValue(Double value) { + this.netValue = JsonNullable.of(value); + return this; + } + + private JsonNullable status = JsonNullable.undefined(); + + @JsonProperty("status") + public TransferSaveInternalTransferResponseDtoBuilder status( + TransferSaveInternalTransferResponseTransferStatus value + ) { + this.status = JsonNullable.of(value); + return this; + } + + private JsonNullable transferFee = JsonNullable.undefined(); + + @JsonProperty("transferFee") + public TransferSaveInternalTransferResponseDtoBuilder transferFee(Double value) { + this.transferFee = JsonNullable.of(value); + return this; + } + + private JsonNullable effectiveDate = JsonNullable.undefined(); + + @JsonProperty("effectiveDate") + public TransferSaveInternalTransferResponseDtoBuilder effectiveDate(String value) { + this.effectiveDate = JsonNullable.of(value); + return this; + } + + private JsonNullable scheduleDate = JsonNullable.undefined(); + + @JsonProperty("scheduleDate") + public TransferSaveInternalTransferResponseDtoBuilder scheduleDate(String value) { + this.scheduleDate = JsonNullable.of(value); + return this; + } + + private JsonNullable endToEndIdentifier = JsonNullable.undefined(); + + @JsonProperty("endToEndIdentifier") + public TransferSaveInternalTransferResponseDtoBuilder endToEndIdentifier(String value) { + this.endToEndIdentifier = JsonNullable.of(value); + return this; + } + + private JsonNullable authorized = JsonNullable.undefined(); + + @JsonProperty("authorized") + public TransferSaveInternalTransferResponseDtoBuilder authorized(Boolean value) { + this.authorized = JsonNullable.of(value); + return this; + } + + private JsonNullable failReason = JsonNullable.undefined(); + + @JsonProperty("failReason") + public TransferSaveInternalTransferResponseDtoBuilder failReason(String value) { + this.failReason = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public TransferSaveInternalTransferResponseDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); + + @JsonProperty("transactionReceiptUrl") + public TransferSaveInternalTransferResponseDtoBuilder transactionReceiptUrl(String value) { + this.transactionReceiptUrl = JsonNullable.of(value); + return this; + } + + private JsonNullable operationType = JsonNullable.undefined(); + + @JsonProperty("operationType") + public TransferSaveInternalTransferResponseDtoBuilder operationType( + TransferSaveInternalTransferResponseTransferType value + ) { + this.operationType = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public TransferSaveInternalTransferResponseDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable recurring = JsonNullable.undefined(); + + @JsonProperty("recurring") + public TransferSaveInternalTransferResponseDtoBuilder recurring(String value) { + this.recurring = JsonNullable.of(value); + return this; + } + + private JsonNullable walletId = JsonNullable.undefined(); + + @JsonProperty("walletId") + public TransferSaveInternalTransferResponseDtoBuilder walletId(String value) { + this.walletId = JsonNullable.of(value); + return this; + } + + private JsonNullable account = JsonNullable.undefined(); + + @JsonProperty("account") + public TransferSaveInternalTransferResponseDtoBuilder account(TransferSaveInternalTransferAccountDto value) { + this.account = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDtoType.java b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDtoType.java new file mode 100644 index 0000000..94ea0b6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDtoType.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Type of transfer + */ +@Getter +@AllArgsConstructor +public enum TransferSaveInternalTransferResponseDtoType { + PIX("PIX"), + TED("TED"), + INTERNAL("INTERNAL"); + + @JsonValue + private final String value; + + @JsonCreator + public static TransferSaveInternalTransferResponseDtoType fromValue(String value) { + return Arrays.stream(TransferSaveInternalTransferResponseDtoType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferStatus.java b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferStatus.java new file mode 100644 index 0000000..0cba575 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferStatus.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Transfer status + */ +@Getter +@AllArgsConstructor +public enum TransferSaveInternalTransferResponseTransferStatus { + PENDING("PENDING"), + BANK_PROCESSING("BANK_PROCESSING"), + DONE("DONE"), + CANCELLED("CANCELLED"), + FAILED("FAILED"); + + @JsonValue + private final String value; + + @JsonCreator + public static TransferSaveInternalTransferResponseTransferStatus fromValue(String value) { + return Arrays.stream(TransferSaveInternalTransferResponseTransferStatus.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferType.java b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferType.java new file mode 100644 index 0000000..700e991 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferType.java @@ -0,0 +1,31 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Transfer method + */ +@Getter +@AllArgsConstructor +public enum TransferSaveInternalTransferResponseTransferType { + PIX("PIX"), + TED("TED"), + INTERNAL("INTERNAL"); + + @JsonValue + private final String value; + + @JsonCreator + public static TransferSaveInternalTransferResponseTransferType fromValue(String value) { + return Arrays.stream(TransferSaveInternalTransferResponseTransferType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/TransferSaveRequestDto.java new file mode 100644 index 0000000..82af237 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveRequestDto.java @@ -0,0 +1,185 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class TransferSaveRequestDto { + + /** + * Amount to be transferred + */ + @NonNull + private Double value; + + /** + * Enter your account details if it is a transfer to a bank account + */ + @JsonProperty("bankAccount") + private JsonNullable bankAccount; + + /** + * Transfer modality. If not informed and the receiving institution is a Pix participant, the transfer is via Pix. Otherwise via TED. + */ + @JsonProperty("operationType") + private JsonNullable operationType; + + /** + * Enter the Pix key if it is a transfer to a Pix key + */ + @JsonProperty("pixAddressKey") + private JsonNullable pixAddressKey; + + /** + * Enter the type of key if it is a transfer to a Pix key + */ + @JsonProperty("pixAddressKeyType") + private JsonNullable pixAddressKeyType; + + /** + * Transfers via Pix allow description + */ + @JsonProperty("description") + private JsonNullable description; + + /** + * For scheduled transfers, if not informed, payment is instantaneous + */ + @JsonProperty("scheduleDate") + private JsonNullable scheduleDate; + + /** + * Transfer identifier in your system + */ + @JsonProperty("externalReference") + private JsonNullable externalReference; + + /** + * Recurrence information. Only for Pix transfers + */ + @JsonProperty("recurring") + private JsonNullable recurring; + + @JsonIgnore + public TransferBankAccountSaveRequestDto getBankAccount() { + return bankAccount.orElse(null); + } + + @JsonIgnore + public TransferSaveRequestTransferType getOperationType() { + return operationType.orElse(null); + } + + @JsonIgnore + public String getPixAddressKey() { + return pixAddressKey.orElse(null); + } + + @JsonIgnore + public TransferSaveRequestPixAddressKeyType getPixAddressKeyType() { + return pixAddressKeyType.orElse(null); + } + + @JsonIgnore + public String getDescription() { + return description.orElse(null); + } + + @JsonIgnore + public String getScheduleDate() { + return scheduleDate.orElse(null); + } + + @JsonIgnore + public String getExternalReference() { + return externalReference.orElse(null); + } + + @JsonIgnore + public TransferRecurringSaveRequestDto getRecurring() { + return recurring.orElse(null); + } + + // Overwrite lombok builder methods + public static class TransferSaveRequestDtoBuilder { + + private JsonNullable bankAccount = JsonNullable.undefined(); + + @JsonProperty("bankAccount") + public TransferSaveRequestDtoBuilder bankAccount(TransferBankAccountSaveRequestDto value) { + this.bankAccount = JsonNullable.of(value); + return this; + } + + private JsonNullable operationType = JsonNullable.undefined(); + + @JsonProperty("operationType") + public TransferSaveRequestDtoBuilder operationType(TransferSaveRequestTransferType value) { + this.operationType = JsonNullable.of(value); + return this; + } + + private JsonNullable pixAddressKey = JsonNullable.undefined(); + + @JsonProperty("pixAddressKey") + public TransferSaveRequestDtoBuilder pixAddressKey(String value) { + this.pixAddressKey = JsonNullable.of(value); + return this; + } + + private JsonNullable pixAddressKeyType = JsonNullable.undefined(); + + @JsonProperty("pixAddressKeyType") + public TransferSaveRequestDtoBuilder pixAddressKeyType(TransferSaveRequestPixAddressKeyType value) { + this.pixAddressKeyType = JsonNullable.of(value); + return this; + } + + private JsonNullable description = JsonNullable.undefined(); + + @JsonProperty("description") + public TransferSaveRequestDtoBuilder description(String value) { + this.description = JsonNullable.of(value); + return this; + } + + private JsonNullable scheduleDate = JsonNullable.undefined(); + + @JsonProperty("scheduleDate") + public TransferSaveRequestDtoBuilder scheduleDate(String value) { + this.scheduleDate = JsonNullable.of(value); + return this; + } + + private JsonNullable externalReference = JsonNullable.undefined(); + + @JsonProperty("externalReference") + public TransferSaveRequestDtoBuilder externalReference(String value) { + this.externalReference = JsonNullable.of(value); + return this; + } + + private JsonNullable recurring = JsonNullable.undefined(); + + @JsonProperty("recurring") + public TransferSaveRequestDtoBuilder recurring(TransferRecurringSaveRequestDto value) { + this.recurring = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferSaveRequestPixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/TransferSaveRequestPixAddressKeyType.java new file mode 100644 index 0000000..6988fa9 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveRequestPixAddressKeyType.java @@ -0,0 +1,33 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Enter the type of key if it is a transfer to a Pix key + */ +@Getter +@AllArgsConstructor +public enum TransferSaveRequestPixAddressKeyType { + CPF("CPF"), + CNPJ("CNPJ"), + EMAIL("EMAIL"), + PHONE("PHONE"), + EVP("EVP"); + + @JsonValue + private final String value; + + @JsonCreator + public static TransferSaveRequestPixAddressKeyType fromValue(String value) { + return Arrays.stream(TransferSaveRequestPixAddressKeyType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/TransferSaveRequestTransferType.java b/src/main/java/com/asaas/apisdk/models/TransferSaveRequestTransferType.java new file mode 100644 index 0000000..a4bd10b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveRequestTransferType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Transfer modality. If not informed and the receiving institution is a Pix participant, the transfer is via Pix. Otherwise via TED. + */ +@Getter +@AllArgsConstructor +public enum TransferSaveRequestTransferType { + PIX("PIX"), + TED("TED"); + + @JsonValue + private final String value; + + @JsonCreator + public static TransferSaveRequestTransferType fromValue(String value) { + return Arrays.stream(TransferSaveRequestTransferType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WalletGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/WalletGetResponseDto.java new file mode 100644 index 0000000..5ec46dc --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WalletGetResponseDto.java @@ -0,0 +1,67 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * List of objects + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class WalletGetResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Unique wallet identifier in Asaas + */ + @JsonProperty("id") + private JsonNullable id; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + // Overwrite lombok builder methods + public static class WalletGetResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public WalletGetResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public WalletGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WalletShowResponseDto.java b/src/main/java/com/asaas/apisdk/models/WalletShowResponseDto.java new file mode 100644 index 0000000..03d5bd6 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WalletShowResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class WalletShowResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class WalletShowResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public WalletShowResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public WalletShowResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public WalletShowResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public WalletShowResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public WalletShowResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public WalletShowResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WebhookConfigDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigDeleteResponseDto.java new file mode 100644 index 0000000..1a9853c --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigDeleteResponseDto.java @@ -0,0 +1,64 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class WebhookConfigDeleteResponseDto { + + /** + * Indicates whether the Webhook was removed + */ + @JsonProperty("deleted") + private JsonNullable deleted; + + /** + * Unique Webhook Identifier + */ + @JsonProperty("id") + private JsonNullable id; + + @JsonIgnore + public Boolean getDeleted() { + return deleted.orElse(null); + } + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + // Overwrite lombok builder methods + public static class WebhookConfigDeleteResponseDtoBuilder { + + private JsonNullable deleted = JsonNullable.undefined(); + + @JsonProperty("deleted") + public WebhookConfigDeleteResponseDtoBuilder deleted(Boolean value) { + this.deleted = JsonNullable.of(value); + return this; + } + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public WebhookConfigDeleteResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseDto.java new file mode 100644 index 0000000..576793e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseDto.java @@ -0,0 +1,217 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class WebhookConfigGetResponseDto { + + /** + * Unique Webhook Identifier + */ + @JsonProperty("id") + private JsonNullable id; + + /** + * Webhook name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Webhook URL + */ + @JsonProperty("url") + private JsonNullable url; + + /** + * Email that will receive notifications about the Webhook + */ + @JsonProperty("email") + private JsonNullable email; + + /** + * Set whether the Webhook is active + */ + @JsonProperty("enabled") + private JsonNullable enabled; + + /** + * Set whether the sync queue is stopped + */ + @JsonProperty("interrupted") + private JsonNullable interrupted; + + /** + * API Version + */ + @JsonProperty("apiVersion") + private JsonNullable apiVersion; + + /** + * Indicates whether an authentication token is registered for the webhook + */ + @JsonProperty("hasAuthToken") + private JsonNullable hasAuthToken; + + /** + * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) + */ + @JsonProperty("sendType") + private JsonNullable sendType; + + /** + * List of events this Webhook will observe + */ + @JsonProperty("events") + private JsonNullable> events; + + @JsonIgnore + public String getId() { + return id.orElse(null); + } + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getUrl() { + return url.orElse(null); + } + + @JsonIgnore + public String getEmail() { + return email.orElse(null); + } + + @JsonIgnore + public Boolean getEnabled() { + return enabled.orElse(null); + } + + @JsonIgnore + public Boolean getInterrupted() { + return interrupted.orElse(null); + } + + @JsonIgnore + public Long getApiVersion() { + return apiVersion.orElse(null); + } + + @JsonIgnore + public Boolean getHasAuthToken() { + return hasAuthToken.orElse(null); + } + + @JsonIgnore + public WebhookConfigGetResponseWebhookSendType getSendType() { + return sendType.orElse(null); + } + + @JsonIgnore + public List getEvents() { + return events.orElse(null); + } + + // Overwrite lombok builder methods + public static class WebhookConfigGetResponseDtoBuilder { + + private JsonNullable id = JsonNullable.undefined(); + + @JsonProperty("id") + public WebhookConfigGetResponseDtoBuilder id(String value) { + this.id = JsonNullable.of(value); + return this; + } + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public WebhookConfigGetResponseDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable url = JsonNullable.undefined(); + + @JsonProperty("url") + public WebhookConfigGetResponseDtoBuilder url(String value) { + this.url = JsonNullable.of(value); + return this; + } + + private JsonNullable email = JsonNullable.undefined(); + + @JsonProperty("email") + public WebhookConfigGetResponseDtoBuilder email(String value) { + this.email = JsonNullable.of(value); + return this; + } + + private JsonNullable enabled = JsonNullable.undefined(); + + @JsonProperty("enabled") + public WebhookConfigGetResponseDtoBuilder enabled(Boolean value) { + this.enabled = JsonNullable.of(value); + return this; + } + + private JsonNullable interrupted = JsonNullable.undefined(); + + @JsonProperty("interrupted") + public WebhookConfigGetResponseDtoBuilder interrupted(Boolean value) { + this.interrupted = JsonNullable.of(value); + return this; + } + + private JsonNullable apiVersion = JsonNullable.undefined(); + + @JsonProperty("apiVersion") + public WebhookConfigGetResponseDtoBuilder apiVersion(Long value) { + this.apiVersion = JsonNullable.of(value); + return this; + } + + private JsonNullable hasAuthToken = JsonNullable.undefined(); + + @JsonProperty("hasAuthToken") + public WebhookConfigGetResponseDtoBuilder hasAuthToken(Boolean value) { + this.hasAuthToken = JsonNullable.of(value); + return this; + } + + private JsonNullable sendType = JsonNullable.undefined(); + + @JsonProperty("sendType") + public WebhookConfigGetResponseDtoBuilder sendType(WebhookConfigGetResponseWebhookSendType value) { + this.sendType = JsonNullable.of(value); + return this; + } + + private JsonNullable> events = JsonNullable.undefined(); + + @JsonProperty("events") + public WebhookConfigGetResponseDtoBuilder events(List value) { + this.events = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookEvent.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookEvent.java new file mode 100644 index 0000000..792be65 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookEvent.java @@ -0,0 +1,118 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * List of events this Webhook will observe + */ +@Getter +@AllArgsConstructor +public enum WebhookConfigGetResponseWebhookEvent { + PAYMENT_AUTHORIZED("PAYMENT_AUTHORIZED"), + PAYMENT_AWAITING_RISK_ANALYSIS("PAYMENT_AWAITING_RISK_ANALYSIS"), + PAYMENT_APPROVED_BY_RISK_ANALYSIS("PAYMENT_APPROVED_BY_RISK_ANALYSIS"), + PAYMENT_REPROVED_BY_RISK_ANALYSIS("PAYMENT_REPROVED_BY_RISK_ANALYSIS"), + PAYMENT_CREATED("PAYMENT_CREATED"), + PAYMENT_UPDATED("PAYMENT_UPDATED"), + PAYMENT_CONFIRMED("PAYMENT_CONFIRMED"), + PAYMENT_RECEIVED("PAYMENT_RECEIVED"), + PAYMENT_ANTICIPATED("PAYMENT_ANTICIPATED"), + PAYMENT_OVERDUE("PAYMENT_OVERDUE"), + PAYMENT_DELETED("PAYMENT_DELETED"), + PAYMENT_RESTORED("PAYMENT_RESTORED"), + PAYMENT_REFUNDED("PAYMENT_REFUNDED"), + PAYMENT_REFUND_IN_PROGRESS("PAYMENT_REFUND_IN_PROGRESS"), + PAYMENT_REFUND_DENIED("PAYMENT_REFUND_DENIED"), + PAYMENT_RECEIVED_IN_CASH_UNDONE("PAYMENT_RECEIVED_IN_CASH_UNDONE"), + PAYMENT_CHARGEBACK_REQUESTED("PAYMENT_CHARGEBACK_REQUESTED"), + PAYMENT_CHARGEBACK_DISPUTE("PAYMENT_CHARGEBACK_DISPUTE"), + PAYMENT_AWAITING_CHARGEBACK_REVERSAL("PAYMENT_AWAITING_CHARGEBACK_REVERSAL"), + PAYMENT_DUNNING_RECEIVED("PAYMENT_DUNNING_RECEIVED"), + PAYMENT_DUNNING_REQUESTED("PAYMENT_DUNNING_REQUESTED"), + PAYMENT_BANK_SLIP_VIEWED("PAYMENT_BANK_SLIP_VIEWED"), + PAYMENT_CHECKOUT_VIEWED("PAYMENT_CHECKOUT_VIEWED"), + PAYMENT_CREDIT_CARD_CAPTURE_REFUSED("PAYMENT_CREDIT_CARD_CAPTURE_REFUSED"), + PAYMENT_PARTIALLY_REFUNDED("PAYMENT_PARTIALLY_REFUNDED"), + PAYMENT_SPLIT_CANCELLED("PAYMENT_SPLIT_CANCELLED"), + PAYMENT_SPLIT_DIVERGENCE_BLOCK("PAYMENT_SPLIT_DIVERGENCE_BLOCK"), + PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED("PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED"), + INVOICE_CREATED("INVOICE_CREATED"), + INVOICE_UPDATED("INVOICE_UPDATED"), + INVOICE_SYNCHRONIZED("INVOICE_SYNCHRONIZED"), + INVOICE_AUTHORIZED("INVOICE_AUTHORIZED"), + INVOICE_PROCESSING_CANCELLATION("INVOICE_PROCESSING_CANCELLATION"), + INVOICE_CANCELED("INVOICE_CANCELED"), + INVOICE_CANCELLATION_DENIED("INVOICE_CANCELLATION_DENIED"), + INVOICE_ERROR("INVOICE_ERROR"), + TRANSFER_CREATED("TRANSFER_CREATED"), + TRANSFER_PENDING("TRANSFER_PENDING"), + TRANSFER_IN_BANK_PROCESSING("TRANSFER_IN_BANK_PROCESSING"), + TRANSFER_BLOCKED("TRANSFER_BLOCKED"), + TRANSFER_DONE("TRANSFER_DONE"), + TRANSFER_FAILED("TRANSFER_FAILED"), + TRANSFER_CANCELLED("TRANSFER_CANCELLED"), + BILL_CREATED("BILL_CREATED"), + BILL_PENDING("BILL_PENDING"), + BILL_BANK_PROCESSING("BILL_BANK_PROCESSING"), + BILL_PAID("BILL_PAID"), + BILL_CANCELLED("BILL_CANCELLED"), + BILL_FAILED("BILL_FAILED"), + BILL_REFUNDED("BILL_REFUNDED"), + RECEIVABLE_ANTICIPATION_CANCELLED("RECEIVABLE_ANTICIPATION_CANCELLED"), + RECEIVABLE_ANTICIPATION_SCHEDULED("RECEIVABLE_ANTICIPATION_SCHEDULED"), + RECEIVABLE_ANTICIPATION_PENDING("RECEIVABLE_ANTICIPATION_PENDING"), + RECEIVABLE_ANTICIPATION_CREDITED("RECEIVABLE_ANTICIPATION_CREDITED"), + RECEIVABLE_ANTICIPATION_DEBITED("RECEIVABLE_ANTICIPATION_DEBITED"), + RECEIVABLE_ANTICIPATION_DENIED("RECEIVABLE_ANTICIPATION_DENIED"), + RECEIVABLE_ANTICIPATION_OVERDUE("RECEIVABLE_ANTICIPATION_OVERDUE"), + MOBILE_PHONE_RECHARGE_PENDING("MOBILE_PHONE_RECHARGE_PENDING"), + MOBILE_PHONE_RECHARGE_CANCELLED("MOBILE_PHONE_RECHARGE_CANCELLED"), + MOBILE_PHONE_RECHARGE_CONFIRMED("MOBILE_PHONE_RECHARGE_CONFIRMED"), + MOBILE_PHONE_RECHARGE_REFUNDED("MOBILE_PHONE_RECHARGE_REFUNDED"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED"), + ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED("ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED"), + ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL("ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL"), + ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED("ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED"), + ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON("ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON"), + ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING("ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING"), + ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED("ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED"), + ACCOUNT_STATUS_DOCUMENT_APPROVED("ACCOUNT_STATUS_DOCUMENT_APPROVED"), + ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL("ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL"), + ACCOUNT_STATUS_DOCUMENT_PENDING("ACCOUNT_STATUS_DOCUMENT_PENDING"), + ACCOUNT_STATUS_DOCUMENT_REJECTED("ACCOUNT_STATUS_DOCUMENT_REJECTED"), + ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED("ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED"), + ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL("ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL"), + ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING("ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING"), + ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED("ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED"), + SUBSCRIPTION_CREATED("SUBSCRIPTION_CREATED"), + SUBSCRIPTION_UPDATED("SUBSCRIPTION_UPDATED"), + SUBSCRIPTION_INACTIVATED("SUBSCRIPTION_INACTIVATED"), + SUBSCRIPTION_DELETED("SUBSCRIPTION_DELETED"), + SUBSCRIPTION_SPLIT_DISABLED("SUBSCRIPTION_SPLIT_DISABLED"), + SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK("SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK"), + SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED("SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED"), + CHECKOUT_CREATED("CHECKOUT_CREATED"), + CHECKOUT_CANCELED("CHECKOUT_CANCELED"), + CHECKOUT_EXPIRED("CHECKOUT_EXPIRED"), + CHECKOUT_PAID("CHECKOUT_PAID"); + + @JsonValue + private final String value; + + @JsonCreator + public static WebhookConfigGetResponseWebhookEvent fromValue(String value) { + return Arrays.stream(WebhookConfigGetResponseWebhookEvent.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookSendType.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookSendType.java new file mode 100644 index 0000000..3a2cc9a --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookSendType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) + */ +@Getter +@AllArgsConstructor +public enum WebhookConfigGetResponseWebhookSendType { + NON_SEQUENTIALLY("NON_SEQUENTIALLY"), + SEQUENTIALLY("SEQUENTIALLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static WebhookConfigGetResponseWebhookSendType fromValue(String value) { + return Arrays.stream(WebhookConfigGetResponseWebhookSendType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WebhookConfigListResponseDto.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigListResponseDto.java new file mode 100644 index 0000000..c3802f4 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigListResponseDto.java @@ -0,0 +1,141 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class WebhookConfigListResponseDto { + + /** + * Object type + */ + @JsonProperty("object") + private JsonNullable object; + + /** + * Indicates whether there is another page to be searched + */ + @JsonProperty("hasMore") + private JsonNullable hasMore; + + /** + * Total number of items for the filters entered + */ + @JsonProperty("totalCount") + private JsonNullable totalCount; + + /** + * Number of objects per page + */ + @JsonProperty("limit") + private JsonNullable limit; + + /** + * Position of the object from which the page should be loaded + */ + @JsonProperty("offset") + private JsonNullable offset; + + /** + * List of objects + */ + @JsonProperty("data") + private JsonNullable> data; + + @JsonIgnore + public String getObject() { + return object.orElse(null); + } + + @JsonIgnore + public Boolean getHasMore() { + return hasMore.orElse(null); + } + + @JsonIgnore + public Long getTotalCount() { + return totalCount.orElse(null); + } + + @JsonIgnore + public Long getLimit() { + return limit.orElse(null); + } + + @JsonIgnore + public Long getOffset() { + return offset.orElse(null); + } + + @JsonIgnore + public List getData() { + return data.orElse(null); + } + + // Overwrite lombok builder methods + public static class WebhookConfigListResponseDtoBuilder { + + private JsonNullable object = JsonNullable.undefined(); + + @JsonProperty("object") + public WebhookConfigListResponseDtoBuilder object(String value) { + this.object = JsonNullable.of(value); + return this; + } + + private JsonNullable hasMore = JsonNullable.undefined(); + + @JsonProperty("hasMore") + public WebhookConfigListResponseDtoBuilder hasMore(Boolean value) { + this.hasMore = JsonNullable.of(value); + return this; + } + + private JsonNullable totalCount = JsonNullable.undefined(); + + @JsonProperty("totalCount") + public WebhookConfigListResponseDtoBuilder totalCount(Long value) { + this.totalCount = JsonNullable.of(value); + return this; + } + + private JsonNullable limit = JsonNullable.undefined(); + + @JsonProperty("limit") + public WebhookConfigListResponseDtoBuilder limit(Long value) { + this.limit = JsonNullable.of(value); + return this; + } + + private JsonNullable offset = JsonNullable.undefined(); + + @JsonProperty("offset") + public WebhookConfigListResponseDtoBuilder offset(Long value) { + this.offset = JsonNullable.of(value); + return this; + } + + private JsonNullable> data = JsonNullable.undefined(); + + @JsonProperty("data") + public WebhookConfigListResponseDtoBuilder data(List value) { + this.data = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestDto.java new file mode 100644 index 0000000..04ed1d9 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestDto.java @@ -0,0 +1,201 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Array with desired Webhooks settings + */ +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class WebhookConfigSaveRequestDto { + + /** + * Webhook name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Webhook URL + */ + @JsonProperty("url") + private JsonNullable url; + + /** + * Email that will receive notifications about the Webhook + */ + @JsonProperty("email") + private JsonNullable email; + + /** + * Set whether the Webhook is active + */ + @JsonProperty("enabled") + private JsonNullable enabled; + + /** + * Set whether the sync queue is stopped + */ + @JsonProperty("interrupted") + private JsonNullable interrupted; + + /** + * API Version + */ + @JsonProperty("apiVersion") + private JsonNullable apiVersion; + + /** + * Webhook authentication token + */ + @JsonProperty("authToken") + private JsonNullable authToken; + + /** + * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) + */ + @JsonProperty("sendType") + private JsonNullable sendType; + + /** + * List of events this Webhook will observe + */ + @JsonProperty("events") + private JsonNullable> events; + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getUrl() { + return url.orElse(null); + } + + @JsonIgnore + public String getEmail() { + return email.orElse(null); + } + + @JsonIgnore + public Boolean getEnabled() { + return enabled.orElse(null); + } + + @JsonIgnore + public Boolean getInterrupted() { + return interrupted.orElse(null); + } + + @JsonIgnore + public Long getApiVersion() { + return apiVersion.orElse(null); + } + + @JsonIgnore + public String getAuthToken() { + return authToken.orElse(null); + } + + @JsonIgnore + public WebhookConfigSaveRequestWebhookSendType getSendType() { + return sendType.orElse(null); + } + + @JsonIgnore + public List getEvents() { + return events.orElse(null); + } + + // Overwrite lombok builder methods + public static class WebhookConfigSaveRequestDtoBuilder { + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public WebhookConfigSaveRequestDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable url = JsonNullable.undefined(); + + @JsonProperty("url") + public WebhookConfigSaveRequestDtoBuilder url(String value) { + this.url = JsonNullable.of(value); + return this; + } + + private JsonNullable email = JsonNullable.undefined(); + + @JsonProperty("email") + public WebhookConfigSaveRequestDtoBuilder email(String value) { + this.email = JsonNullable.of(value); + return this; + } + + private JsonNullable enabled = JsonNullable.undefined(); + + @JsonProperty("enabled") + public WebhookConfigSaveRequestDtoBuilder enabled(Boolean value) { + this.enabled = JsonNullable.of(value); + return this; + } + + private JsonNullable interrupted = JsonNullable.undefined(); + + @JsonProperty("interrupted") + public WebhookConfigSaveRequestDtoBuilder interrupted(Boolean value) { + this.interrupted = JsonNullable.of(value); + return this; + } + + private JsonNullable apiVersion = JsonNullable.undefined(); + + @JsonProperty("apiVersion") + public WebhookConfigSaveRequestDtoBuilder apiVersion(Long value) { + this.apiVersion = JsonNullable.of(value); + return this; + } + + private JsonNullable authToken = JsonNullable.undefined(); + + @JsonProperty("authToken") + public WebhookConfigSaveRequestDtoBuilder authToken(String value) { + this.authToken = JsonNullable.of(value); + return this; + } + + private JsonNullable sendType = JsonNullable.undefined(); + + @JsonProperty("sendType") + public WebhookConfigSaveRequestDtoBuilder sendType(WebhookConfigSaveRequestWebhookSendType value) { + this.sendType = JsonNullable.of(value); + return this; + } + + private JsonNullable> events = JsonNullable.undefined(); + + @JsonProperty("events") + public WebhookConfigSaveRequestDtoBuilder events(List value) { + this.events = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookEvent.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookEvent.java new file mode 100644 index 0000000..dc95894 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookEvent.java @@ -0,0 +1,118 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * List of events this Webhook will observe + */ +@Getter +@AllArgsConstructor +public enum WebhookConfigSaveRequestWebhookEvent { + PAYMENT_AUTHORIZED("PAYMENT_AUTHORIZED"), + PAYMENT_AWAITING_RISK_ANALYSIS("PAYMENT_AWAITING_RISK_ANALYSIS"), + PAYMENT_APPROVED_BY_RISK_ANALYSIS("PAYMENT_APPROVED_BY_RISK_ANALYSIS"), + PAYMENT_REPROVED_BY_RISK_ANALYSIS("PAYMENT_REPROVED_BY_RISK_ANALYSIS"), + PAYMENT_CREATED("PAYMENT_CREATED"), + PAYMENT_UPDATED("PAYMENT_UPDATED"), + PAYMENT_CONFIRMED("PAYMENT_CONFIRMED"), + PAYMENT_RECEIVED("PAYMENT_RECEIVED"), + PAYMENT_ANTICIPATED("PAYMENT_ANTICIPATED"), + PAYMENT_OVERDUE("PAYMENT_OVERDUE"), + PAYMENT_DELETED("PAYMENT_DELETED"), + PAYMENT_RESTORED("PAYMENT_RESTORED"), + PAYMENT_REFUNDED("PAYMENT_REFUNDED"), + PAYMENT_REFUND_IN_PROGRESS("PAYMENT_REFUND_IN_PROGRESS"), + PAYMENT_REFUND_DENIED("PAYMENT_REFUND_DENIED"), + PAYMENT_RECEIVED_IN_CASH_UNDONE("PAYMENT_RECEIVED_IN_CASH_UNDONE"), + PAYMENT_CHARGEBACK_REQUESTED("PAYMENT_CHARGEBACK_REQUESTED"), + PAYMENT_CHARGEBACK_DISPUTE("PAYMENT_CHARGEBACK_DISPUTE"), + PAYMENT_AWAITING_CHARGEBACK_REVERSAL("PAYMENT_AWAITING_CHARGEBACK_REVERSAL"), + PAYMENT_DUNNING_RECEIVED("PAYMENT_DUNNING_RECEIVED"), + PAYMENT_DUNNING_REQUESTED("PAYMENT_DUNNING_REQUESTED"), + PAYMENT_BANK_SLIP_VIEWED("PAYMENT_BANK_SLIP_VIEWED"), + PAYMENT_CHECKOUT_VIEWED("PAYMENT_CHECKOUT_VIEWED"), + PAYMENT_CREDIT_CARD_CAPTURE_REFUSED("PAYMENT_CREDIT_CARD_CAPTURE_REFUSED"), + PAYMENT_PARTIALLY_REFUNDED("PAYMENT_PARTIALLY_REFUNDED"), + PAYMENT_SPLIT_CANCELLED("PAYMENT_SPLIT_CANCELLED"), + PAYMENT_SPLIT_DIVERGENCE_BLOCK("PAYMENT_SPLIT_DIVERGENCE_BLOCK"), + PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED("PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED"), + INVOICE_CREATED("INVOICE_CREATED"), + INVOICE_UPDATED("INVOICE_UPDATED"), + INVOICE_SYNCHRONIZED("INVOICE_SYNCHRONIZED"), + INVOICE_AUTHORIZED("INVOICE_AUTHORIZED"), + INVOICE_PROCESSING_CANCELLATION("INVOICE_PROCESSING_CANCELLATION"), + INVOICE_CANCELED("INVOICE_CANCELED"), + INVOICE_CANCELLATION_DENIED("INVOICE_CANCELLATION_DENIED"), + INVOICE_ERROR("INVOICE_ERROR"), + TRANSFER_CREATED("TRANSFER_CREATED"), + TRANSFER_PENDING("TRANSFER_PENDING"), + TRANSFER_IN_BANK_PROCESSING("TRANSFER_IN_BANK_PROCESSING"), + TRANSFER_BLOCKED("TRANSFER_BLOCKED"), + TRANSFER_DONE("TRANSFER_DONE"), + TRANSFER_FAILED("TRANSFER_FAILED"), + TRANSFER_CANCELLED("TRANSFER_CANCELLED"), + BILL_CREATED("BILL_CREATED"), + BILL_PENDING("BILL_PENDING"), + BILL_BANK_PROCESSING("BILL_BANK_PROCESSING"), + BILL_PAID("BILL_PAID"), + BILL_CANCELLED("BILL_CANCELLED"), + BILL_FAILED("BILL_FAILED"), + BILL_REFUNDED("BILL_REFUNDED"), + RECEIVABLE_ANTICIPATION_CANCELLED("RECEIVABLE_ANTICIPATION_CANCELLED"), + RECEIVABLE_ANTICIPATION_SCHEDULED("RECEIVABLE_ANTICIPATION_SCHEDULED"), + RECEIVABLE_ANTICIPATION_PENDING("RECEIVABLE_ANTICIPATION_PENDING"), + RECEIVABLE_ANTICIPATION_CREDITED("RECEIVABLE_ANTICIPATION_CREDITED"), + RECEIVABLE_ANTICIPATION_DEBITED("RECEIVABLE_ANTICIPATION_DEBITED"), + RECEIVABLE_ANTICIPATION_DENIED("RECEIVABLE_ANTICIPATION_DENIED"), + RECEIVABLE_ANTICIPATION_OVERDUE("RECEIVABLE_ANTICIPATION_OVERDUE"), + MOBILE_PHONE_RECHARGE_PENDING("MOBILE_PHONE_RECHARGE_PENDING"), + MOBILE_PHONE_RECHARGE_CANCELLED("MOBILE_PHONE_RECHARGE_CANCELLED"), + MOBILE_PHONE_RECHARGE_CONFIRMED("MOBILE_PHONE_RECHARGE_CONFIRMED"), + MOBILE_PHONE_RECHARGE_REFUNDED("MOBILE_PHONE_RECHARGE_REFUNDED"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED"), + ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED("ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED"), + ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL("ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL"), + ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED("ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED"), + ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON("ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON"), + ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING("ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING"), + ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED("ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED"), + ACCOUNT_STATUS_DOCUMENT_APPROVED("ACCOUNT_STATUS_DOCUMENT_APPROVED"), + ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL("ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL"), + ACCOUNT_STATUS_DOCUMENT_PENDING("ACCOUNT_STATUS_DOCUMENT_PENDING"), + ACCOUNT_STATUS_DOCUMENT_REJECTED("ACCOUNT_STATUS_DOCUMENT_REJECTED"), + ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED("ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED"), + ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL("ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL"), + ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING("ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING"), + ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED("ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED"), + SUBSCRIPTION_CREATED("SUBSCRIPTION_CREATED"), + SUBSCRIPTION_UPDATED("SUBSCRIPTION_UPDATED"), + SUBSCRIPTION_INACTIVATED("SUBSCRIPTION_INACTIVATED"), + SUBSCRIPTION_DELETED("SUBSCRIPTION_DELETED"), + SUBSCRIPTION_SPLIT_DISABLED("SUBSCRIPTION_SPLIT_DISABLED"), + SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK("SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK"), + SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED("SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED"), + CHECKOUT_CREATED("CHECKOUT_CREATED"), + CHECKOUT_CANCELED("CHECKOUT_CANCELED"), + CHECKOUT_EXPIRED("CHECKOUT_EXPIRED"), + CHECKOUT_PAID("CHECKOUT_PAID"); + + @JsonValue + private final String value; + + @JsonCreator + public static WebhookConfigSaveRequestWebhookEvent fromValue(String value) { + return Arrays.stream(WebhookConfigSaveRequestWebhookEvent.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookSendType.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookSendType.java new file mode 100644 index 0000000..56b1ee2 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookSendType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) + */ +@Getter +@AllArgsConstructor +public enum WebhookConfigSaveRequestWebhookSendType { + NON_SEQUENTIALLY("NON_SEQUENTIALLY"), + SEQUENTIALLY("SEQUENTIALLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static WebhookConfigSaveRequestWebhookSendType fromValue(String value) { + return Arrays.stream(WebhookConfigSaveRequestWebhookSendType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestDto.java new file mode 100644 index 0000000..22cb31f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestDto.java @@ -0,0 +1,160 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Builder; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.With; +import lombok.extern.jackson.Jacksonized; +import org.openapitools.jackson.nullable.JsonNullable; + +@Data +@Builder +@With +@ToString +@EqualsAndHashCode +@Jacksonized +public class WebhookConfigUpdateRequestDto { + + /** + * Webhook name + */ + @JsonProperty("name") + private JsonNullable name; + + /** + * Event destination URL + */ + @JsonProperty("url") + private JsonNullable url; + + /** + * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) + */ + @JsonProperty("sendType") + private JsonNullable sendType; + + /** + * Set whether the Webhook is active + */ + @JsonProperty("enabled") + private JsonNullable enabled; + + /** + * Set whether the sync queue is stopped + */ + @JsonProperty("interrupted") + private JsonNullable interrupted; + + /** + * Webhook authentication token + */ + @JsonProperty("authToken") + private JsonNullable authToken; + + /** + * List of events this Webhook will observe + */ + @JsonProperty("events") + private JsonNullable> events; + + @JsonIgnore + public String getName() { + return name.orElse(null); + } + + @JsonIgnore + public String getUrl() { + return url.orElse(null); + } + + @JsonIgnore + public WebhookConfigUpdateRequestWebhookSendType getSendType() { + return sendType.orElse(null); + } + + @JsonIgnore + public Boolean getEnabled() { + return enabled.orElse(null); + } + + @JsonIgnore + public Boolean getInterrupted() { + return interrupted.orElse(null); + } + + @JsonIgnore + public String getAuthToken() { + return authToken.orElse(null); + } + + @JsonIgnore + public List getEvents() { + return events.orElse(null); + } + + // Overwrite lombok builder methods + public static class WebhookConfigUpdateRequestDtoBuilder { + + private JsonNullable name = JsonNullable.undefined(); + + @JsonProperty("name") + public WebhookConfigUpdateRequestDtoBuilder name(String value) { + this.name = JsonNullable.of(value); + return this; + } + + private JsonNullable url = JsonNullable.undefined(); + + @JsonProperty("url") + public WebhookConfigUpdateRequestDtoBuilder url(String value) { + this.url = JsonNullable.of(value); + return this; + } + + private JsonNullable sendType = JsonNullable.undefined(); + + @JsonProperty("sendType") + public WebhookConfigUpdateRequestDtoBuilder sendType(WebhookConfigUpdateRequestWebhookSendType value) { + this.sendType = JsonNullable.of(value); + return this; + } + + private JsonNullable enabled = JsonNullable.undefined(); + + @JsonProperty("enabled") + public WebhookConfigUpdateRequestDtoBuilder enabled(Boolean value) { + this.enabled = JsonNullable.of(value); + return this; + } + + private JsonNullable interrupted = JsonNullable.undefined(); + + @JsonProperty("interrupted") + public WebhookConfigUpdateRequestDtoBuilder interrupted(Boolean value) { + this.interrupted = JsonNullable.of(value); + return this; + } + + private JsonNullable authToken = JsonNullable.undefined(); + + @JsonProperty("authToken") + public WebhookConfigUpdateRequestDtoBuilder authToken(String value) { + this.authToken = JsonNullable.of(value); + return this; + } + + private JsonNullable> events = JsonNullable.undefined(); + + @JsonProperty("events") + public WebhookConfigUpdateRequestDtoBuilder events(List value) { + this.events = JsonNullable.of(value); + return this; + } + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookEvent.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookEvent.java new file mode 100644 index 0000000..2aea1d9 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookEvent.java @@ -0,0 +1,118 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * List of events this Webhook will observe + */ +@Getter +@AllArgsConstructor +public enum WebhookConfigUpdateRequestWebhookEvent { + PAYMENT_AUTHORIZED("PAYMENT_AUTHORIZED"), + PAYMENT_AWAITING_RISK_ANALYSIS("PAYMENT_AWAITING_RISK_ANALYSIS"), + PAYMENT_APPROVED_BY_RISK_ANALYSIS("PAYMENT_APPROVED_BY_RISK_ANALYSIS"), + PAYMENT_REPROVED_BY_RISK_ANALYSIS("PAYMENT_REPROVED_BY_RISK_ANALYSIS"), + PAYMENT_CREATED("PAYMENT_CREATED"), + PAYMENT_UPDATED("PAYMENT_UPDATED"), + PAYMENT_CONFIRMED("PAYMENT_CONFIRMED"), + PAYMENT_RECEIVED("PAYMENT_RECEIVED"), + PAYMENT_ANTICIPATED("PAYMENT_ANTICIPATED"), + PAYMENT_OVERDUE("PAYMENT_OVERDUE"), + PAYMENT_DELETED("PAYMENT_DELETED"), + PAYMENT_RESTORED("PAYMENT_RESTORED"), + PAYMENT_REFUNDED("PAYMENT_REFUNDED"), + PAYMENT_REFUND_IN_PROGRESS("PAYMENT_REFUND_IN_PROGRESS"), + PAYMENT_REFUND_DENIED("PAYMENT_REFUND_DENIED"), + PAYMENT_RECEIVED_IN_CASH_UNDONE("PAYMENT_RECEIVED_IN_CASH_UNDONE"), + PAYMENT_CHARGEBACK_REQUESTED("PAYMENT_CHARGEBACK_REQUESTED"), + PAYMENT_CHARGEBACK_DISPUTE("PAYMENT_CHARGEBACK_DISPUTE"), + PAYMENT_AWAITING_CHARGEBACK_REVERSAL("PAYMENT_AWAITING_CHARGEBACK_REVERSAL"), + PAYMENT_DUNNING_RECEIVED("PAYMENT_DUNNING_RECEIVED"), + PAYMENT_DUNNING_REQUESTED("PAYMENT_DUNNING_REQUESTED"), + PAYMENT_BANK_SLIP_VIEWED("PAYMENT_BANK_SLIP_VIEWED"), + PAYMENT_CHECKOUT_VIEWED("PAYMENT_CHECKOUT_VIEWED"), + PAYMENT_CREDIT_CARD_CAPTURE_REFUSED("PAYMENT_CREDIT_CARD_CAPTURE_REFUSED"), + PAYMENT_PARTIALLY_REFUNDED("PAYMENT_PARTIALLY_REFUNDED"), + PAYMENT_SPLIT_CANCELLED("PAYMENT_SPLIT_CANCELLED"), + PAYMENT_SPLIT_DIVERGENCE_BLOCK("PAYMENT_SPLIT_DIVERGENCE_BLOCK"), + PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED("PAYMENT_SPLIT_DIVERGENCE_BLOCK_FINISHED"), + INVOICE_CREATED("INVOICE_CREATED"), + INVOICE_UPDATED("INVOICE_UPDATED"), + INVOICE_SYNCHRONIZED("INVOICE_SYNCHRONIZED"), + INVOICE_AUTHORIZED("INVOICE_AUTHORIZED"), + INVOICE_PROCESSING_CANCELLATION("INVOICE_PROCESSING_CANCELLATION"), + INVOICE_CANCELED("INVOICE_CANCELED"), + INVOICE_CANCELLATION_DENIED("INVOICE_CANCELLATION_DENIED"), + INVOICE_ERROR("INVOICE_ERROR"), + TRANSFER_CREATED("TRANSFER_CREATED"), + TRANSFER_PENDING("TRANSFER_PENDING"), + TRANSFER_IN_BANK_PROCESSING("TRANSFER_IN_BANK_PROCESSING"), + TRANSFER_BLOCKED("TRANSFER_BLOCKED"), + TRANSFER_DONE("TRANSFER_DONE"), + TRANSFER_FAILED("TRANSFER_FAILED"), + TRANSFER_CANCELLED("TRANSFER_CANCELLED"), + BILL_CREATED("BILL_CREATED"), + BILL_PENDING("BILL_PENDING"), + BILL_BANK_PROCESSING("BILL_BANK_PROCESSING"), + BILL_PAID("BILL_PAID"), + BILL_CANCELLED("BILL_CANCELLED"), + BILL_FAILED("BILL_FAILED"), + BILL_REFUNDED("BILL_REFUNDED"), + RECEIVABLE_ANTICIPATION_CANCELLED("RECEIVABLE_ANTICIPATION_CANCELLED"), + RECEIVABLE_ANTICIPATION_SCHEDULED("RECEIVABLE_ANTICIPATION_SCHEDULED"), + RECEIVABLE_ANTICIPATION_PENDING("RECEIVABLE_ANTICIPATION_PENDING"), + RECEIVABLE_ANTICIPATION_CREDITED("RECEIVABLE_ANTICIPATION_CREDITED"), + RECEIVABLE_ANTICIPATION_DEBITED("RECEIVABLE_ANTICIPATION_DEBITED"), + RECEIVABLE_ANTICIPATION_DENIED("RECEIVABLE_ANTICIPATION_DENIED"), + RECEIVABLE_ANTICIPATION_OVERDUE("RECEIVABLE_ANTICIPATION_OVERDUE"), + MOBILE_PHONE_RECHARGE_PENDING("MOBILE_PHONE_RECHARGE_PENDING"), + MOBILE_PHONE_RECHARGE_CANCELLED("MOBILE_PHONE_RECHARGE_CANCELLED"), + MOBILE_PHONE_RECHARGE_CONFIRMED("MOBILE_PHONE_RECHARGE_CONFIRMED"), + MOBILE_PHONE_RECHARGE_REFUNDED("MOBILE_PHONE_RECHARGE_REFUNDED"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_APPROVED"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_AWAITING_APPROVAL"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_PENDING"), + ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED("ACCOUNT_STATUS_BANK_ACCOUNT_INFO_REJECTED"), + ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED("ACCOUNT_STATUS_COMMERCIAL_INFO_APPROVED"), + ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL("ACCOUNT_STATUS_COMMERCIAL_INFO_AWAITING_APPROVAL"), + ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED("ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRED"), + ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON("ACCOUNT_STATUS_COMMERCIAL_INFO_EXPIRING_SOON"), + ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING("ACCOUNT_STATUS_COMMERCIAL_INFO_PENDING"), + ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED("ACCOUNT_STATUS_COMMERCIAL_INFO_REJECTED"), + ACCOUNT_STATUS_DOCUMENT_APPROVED("ACCOUNT_STATUS_DOCUMENT_APPROVED"), + ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL("ACCOUNT_STATUS_DOCUMENT_AWAITING_APPROVAL"), + ACCOUNT_STATUS_DOCUMENT_PENDING("ACCOUNT_STATUS_DOCUMENT_PENDING"), + ACCOUNT_STATUS_DOCUMENT_REJECTED("ACCOUNT_STATUS_DOCUMENT_REJECTED"), + ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED("ACCOUNT_STATUS_GENERAL_APPROVAL_APPROVED"), + ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL("ACCOUNT_STATUS_GENERAL_APPROVAL_AWAITING_APPROVAL"), + ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING("ACCOUNT_STATUS_GENERAL_APPROVAL_PENDING"), + ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED("ACCOUNT_STATUS_GENERAL_APPROVAL_REJECTED"), + SUBSCRIPTION_CREATED("SUBSCRIPTION_CREATED"), + SUBSCRIPTION_UPDATED("SUBSCRIPTION_UPDATED"), + SUBSCRIPTION_INACTIVATED("SUBSCRIPTION_INACTIVATED"), + SUBSCRIPTION_DELETED("SUBSCRIPTION_DELETED"), + SUBSCRIPTION_SPLIT_DISABLED("SUBSCRIPTION_SPLIT_DISABLED"), + SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK("SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK"), + SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED("SUBSCRIPTION_SPLIT_DIVERGENCE_BLOCK_FINISHED"), + CHECKOUT_CREATED("CHECKOUT_CREATED"), + CHECKOUT_CANCELED("CHECKOUT_CANCELED"), + CHECKOUT_EXPIRED("CHECKOUT_EXPIRED"), + CHECKOUT_PAID("CHECKOUT_PAID"); + + @JsonValue + private final String value; + + @JsonCreator + public static WebhookConfigUpdateRequestWebhookEvent fromValue(String value) { + return Arrays.stream(WebhookConfigUpdateRequestWebhookEvent.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookSendType.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookSendType.java new file mode 100644 index 0000000..b6ab14b --- /dev/null +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookSendType.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Getter; + +/** + * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) + */ +@Getter +@AllArgsConstructor +public enum WebhookConfigUpdateRequestWebhookSendType { + NON_SEQUENTIALLY("NON_SEQUENTIALLY"), + SEQUENTIALLY("SEQUENTIALLY"); + + @JsonValue + private final String value; + + @JsonCreator + public static WebhookConfigUpdateRequestWebhookSendType fromValue(String value) { + return Arrays.stream(WebhookConfigUpdateRequestWebhookSendType.values()) + .filter(item -> item.value.equals(value)) + .findFirst() + .orElse(null); + } +} diff --git a/src/main/java/com/asaas/apisdk/services/AccountDocumentService.java b/src/main/java/com/asaas/apisdk/services/AccountDocumentService.java index cc37245..8a44559 100644 --- a/src/main/java/com/asaas/apisdk/services/AccountDocumentService.java +++ b/src/main/java/com/asaas/apisdk/services/AccountDocumentService.java @@ -4,18 +4,18 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiAccountDocumentDeleteResponseDto; -import com.asaas.apisdk.models.ApiAccountDocumentGetResponseDto; -import com.asaas.apisdk.models.ApiAccountDocumentSaveRequestCustomerDocumentType; -import com.asaas.apisdk.models.ApiAccountDocumentSaveRequestDto; -import com.asaas.apisdk.models.ApiAccountDocumentShowResponseDto; -import com.asaas.apisdk.models.ApiAccountDocumentUpdateRequestDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; +import com.asaas.apisdk.models.AccountDocumentDeleteResponseDto; +import com.asaas.apisdk.models.AccountDocumentGetResponseDto; +import com.asaas.apisdk.models.AccountDocumentSaveRequestAccountDocumentType; +import com.asaas.apisdk.models.AccountDocumentSaveRequestDto; +import com.asaas.apisdk.models.AccountDocumentShowResponseDto; +import com.asaas.apisdk.models.AccountDocumentUpdateRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -39,26 +39,26 @@ public AccountDocumentService(@NonNull OkHttpClient httpClient, AsaasSdkConfig c /** * Check pending documents * - * @return response of {@code ApiAccountDocumentShowResponseDto} + * @return response of {@code AccountDocumentShowResponseDto} */ - public ApiAccountDocumentShowResponseDto checkPendingDocuments() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public AccountDocumentShowResponseDto checkPendingDocuments() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCheckPendingDocumentsRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Check pending documents * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture checkPendingDocumentsAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture checkPendingDocumentsAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCheckPendingDocumentsRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -73,63 +73,60 @@ private Request buildCheckPendingDocumentsRequest() { } /** - * Send documents via API + * Send documents * * @param id String Unique document identifier in Asaas - * @param apiAccountDocumentSaveRequestDto {@link ApiAccountDocumentSaveRequestDto} Request Body + * @param accountDocumentSaveRequestDto {@link AccountDocumentSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code ApiAccountDocumentGetResponseDto} + * @return response of {@code AccountDocumentGetResponseDto} */ - public ApiAccountDocumentGetResponseDto sendDocumentsViaApi( + public AccountDocumentGetResponseDto sendDocuments( @NonNull String id, - @NonNull ApiAccountDocumentSaveRequestDto apiAccountDocumentSaveRequestDto, + @NonNull AccountDocumentSaveRequestDto accountDocumentSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildSendDocumentsViaApiRequest(id, apiAccountDocumentSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildSendDocumentsRequest(id, accountDocumentSaveRequestDto, _filename); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** - * Send documents via API + * Send documents * * @param id String Unique document identifier in Asaas - * @param apiAccountDocumentSaveRequestDto {@link ApiAccountDocumentSaveRequestDto} Request Body + * @param accountDocumentSaveRequestDto {@link AccountDocumentSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture sendDocumentsViaApiAsync( + public CompletableFuture sendDocumentsAsync( @NonNull String id, - @NonNull ApiAccountDocumentSaveRequestDto apiAccountDocumentSaveRequestDto, + @NonNull AccountDocumentSaveRequestDto accountDocumentSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildSendDocumentsViaApiRequest(id, apiAccountDocumentSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildSendDocumentsRequest(id, accountDocumentSaveRequestDto, _filename); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildSendDocumentsViaApiRequest( + private Request buildSendDocumentsRequest( @NonNull String id, - @NonNull ApiAccountDocumentSaveRequestDto apiAccountDocumentSaveRequestDto, + @NonNull AccountDocumentSaveRequestDto accountDocumentSaveRequestDto, @NonNull String _filename ) { MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); - if (apiAccountDocumentSaveRequestDto.getDocumentFile() != null) { + if (accountDocumentSaveRequestDto.getDocumentFile() != null) { multipartBodyBuilder.addFormDataPart( "documentFile", _filename, - RequestBody.create( - apiAccountDocumentSaveRequestDto.getDocumentFile(), - MediaType.parse("application/octet-stream") - ) + RequestBody.create(accountDocumentSaveRequestDto.getDocumentFile(), MediaType.parse("application/octet-stream")) ); } - if (apiAccountDocumentSaveRequestDto.getType() != null) { - multipartBodyBuilder.addFormDataPart("type", apiAccountDocumentSaveRequestDto.getType().getValue()); + if (accountDocumentSaveRequestDto.getType() != null) { + multipartBodyBuilder.addFormDataPart("type", accountDocumentSaveRequestDto.getType().getValue()); } return new RequestBuilder( HttpMethod.POST, @@ -146,27 +143,27 @@ private Request buildSendDocumentsViaApiRequest( * View document sent * * @param id String Unique document identifier in Asaas - * @return response of {@code ApiAccountDocumentGetResponseDto} + * @return response of {@code AccountDocumentGetResponseDto} */ - public ApiAccountDocumentGetResponseDto viewDocumentSent(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public AccountDocumentGetResponseDto viewDocumentSent(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildViewDocumentSentRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * View document sent * * @param id String Unique document identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture viewDocumentSentAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture viewDocumentSentAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildViewDocumentSentRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -185,45 +182,45 @@ private Request buildViewDocumentSentRequest(@NonNull String id) { * Update sent document * * @param id String Unique document identifier in Asaas - * @param apiAccountDocumentUpdateRequestDto {@link ApiAccountDocumentUpdateRequestDto} Request Body + * @param accountDocumentUpdateRequestDto {@link AccountDocumentUpdateRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code ApiAccountDocumentGetResponseDto} + * @return response of {@code AccountDocumentGetResponseDto} */ - public ApiAccountDocumentGetResponseDto updateSentDocument( + public AccountDocumentGetResponseDto updateSentDocument( @NonNull String id, - @NonNull ApiAccountDocumentUpdateRequestDto apiAccountDocumentUpdateRequestDto, + @NonNull AccountDocumentUpdateRequestDto accountDocumentUpdateRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateSentDocumentRequest(id, apiAccountDocumentUpdateRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateSentDocumentRequest(id, accountDocumentUpdateRequestDto, _filename); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update sent document * * @param id String Unique document identifier in Asaas - * @param apiAccountDocumentUpdateRequestDto {@link ApiAccountDocumentUpdateRequestDto} Request Body + * @param accountDocumentUpdateRequestDto {@link AccountDocumentUpdateRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateSentDocumentAsync( + public CompletableFuture updateSentDocumentAsync( @NonNull String id, - @NonNull ApiAccountDocumentUpdateRequestDto apiAccountDocumentUpdateRequestDto, + @NonNull AccountDocumentUpdateRequestDto accountDocumentUpdateRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateSentDocumentRequest(id, apiAccountDocumentUpdateRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateSentDocumentRequest(id, accountDocumentUpdateRequestDto, _filename); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateSentDocumentRequest( @NonNull String id, - @NonNull ApiAccountDocumentUpdateRequestDto apiAccountDocumentUpdateRequestDto, + @NonNull AccountDocumentUpdateRequestDto accountDocumentUpdateRequestDto, @NonNull String _filename ) { return new RequestBuilder( @@ -240,7 +237,7 @@ private Request buildUpdateSentDocumentRequest( "documentFile", _filename, RequestBody.create( - apiAccountDocumentUpdateRequestDto.getDocumentFile(), + accountDocumentUpdateRequestDto.getDocumentFile(), MediaType.parse("application/octet-stream") ) ) @@ -253,28 +250,28 @@ private Request buildUpdateSentDocumentRequest( * Remove sent document * * @param id String Unique document identifier in Asaas - * @return response of {@code ApiAccountDocumentDeleteResponseDto} + * @return response of {@code AccountDocumentDeleteResponseDto} */ - public ApiAccountDocumentDeleteResponseDto removeSentDocument(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public AccountDocumentDeleteResponseDto removeSentDocument(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveSentDocumentRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Remove sent document * * @param id String Unique document identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture removeSentDocumentAsync(@NonNull String id) + public CompletableFuture removeSentDocumentAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveSentDocumentRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/AccountInfoService.java b/src/main/java/com/asaas/apisdk/services/AccountInfoService.java index 9eeec8d..f6a286d 100644 --- a/src/main/java/com/asaas/apisdk/services/AccountInfoService.java +++ b/src/main/java/com/asaas/apisdk/services/AccountInfoService.java @@ -4,22 +4,22 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiCustomerUpdateRequestGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerUpdateRequestSaveRequestDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiMyAccountDisableAccountResponseDto; -import com.asaas.apisdk.models.ApiMyAccountGetAccountFeesResponseDto; -import com.asaas.apisdk.models.ApiMyAccountGetAccountNumberResponseDto; -import com.asaas.apisdk.models.ApiMyAccountGetStatusResponseDto; -import com.asaas.apisdk.models.ApiPaymentCheckoutConfigGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentCheckoutConfigSaveRequestDto; -import com.asaas.apisdk.models.ApiWalletShowResponseDto; +import com.asaas.apisdk.models.AccountInfoGetResponseDto; +import com.asaas.apisdk.models.AccountInfoSaveRequestDto; import com.asaas.apisdk.models.DeleteWhiteLabelSubaccountParameters; +import com.asaas.apisdk.models.ErrorResponseDto; +import com.asaas.apisdk.models.MyAccountDisableAccountResponseDto; +import com.asaas.apisdk.models.MyAccountGetAccountFeesResponseDto; +import com.asaas.apisdk.models.MyAccountGetAccountNumberResponseDto; +import com.asaas.apisdk.models.MyAccountGetStatusResponseDto; +import com.asaas.apisdk.models.PaymentCheckoutConfigGetResponseDto; +import com.asaas.apisdk.models.PaymentCheckoutConfigSaveRequestDto; +import com.asaas.apisdk.models.WalletShowResponseDto; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -43,26 +43,26 @@ public AccountInfoService(@NonNull OkHttpClient httpClient, AsaasSdkConfig confi /** * Retrieve business data * - * @return response of {@code ApiCustomerUpdateRequestGetResponseDto} + * @return response of {@code AccountInfoGetResponseDto} */ - public ApiCustomerUpdateRequestGetResponseDto retrieveBusinessData() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public AccountInfoGetResponseDto retrieveBusinessData() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveBusinessDataRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve business data * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveBusinessDataAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveBusinessDataAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveBusinessDataRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -79,90 +79,86 @@ private Request buildRetrieveBusinessDataRequest() { /** * Update business data * - * @return response of {@code ApiCustomerUpdateRequestGetResponseDto} + * @return response of {@code AccountInfoGetResponseDto} */ - public ApiCustomerUpdateRequestGetResponseDto updateBusinessData() throws ApiError { - return this.updateBusinessData(ApiCustomerUpdateRequestSaveRequestDto.builder().build()); + public AccountInfoGetResponseDto updateBusinessData() throws ApiError { + return this.updateBusinessData(AccountInfoSaveRequestDto.builder().build()); } /** * Update business data * - * @param apiCustomerUpdateRequestSaveRequestDto {@link ApiCustomerUpdateRequestSaveRequestDto} Request Body - * @return response of {@code ApiCustomerUpdateRequestGetResponseDto} + * @param accountInfoSaveRequestDto {@link AccountInfoSaveRequestDto} Request Body + * @return response of {@code AccountInfoGetResponseDto} */ - public ApiCustomerUpdateRequestGetResponseDto updateBusinessData( - @NonNull ApiCustomerUpdateRequestSaveRequestDto apiCustomerUpdateRequestSaveRequestDto - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateBusinessDataRequest(apiCustomerUpdateRequestSaveRequestDto); + public AccountInfoGetResponseDto updateBusinessData(@NonNull AccountInfoSaveRequestDto accountInfoSaveRequestDto) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateBusinessDataRequest(accountInfoSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update business data * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateBusinessDataAsync() throws ApiError { - return this.updateBusinessDataAsync(ApiCustomerUpdateRequestSaveRequestDto.builder().build()); + public CompletableFuture updateBusinessDataAsync() throws ApiError { + return this.updateBusinessDataAsync(AccountInfoSaveRequestDto.builder().build()); } /** * Update business data * - * @param apiCustomerUpdateRequestSaveRequestDto {@link ApiCustomerUpdateRequestSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param accountInfoSaveRequestDto {@link AccountInfoSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateBusinessDataAsync( - @NonNull ApiCustomerUpdateRequestSaveRequestDto apiCustomerUpdateRequestSaveRequestDto + public CompletableFuture updateBusinessDataAsync( + @NonNull AccountInfoSaveRequestDto accountInfoSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateBusinessDataRequest(apiCustomerUpdateRequestSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateBusinessDataRequest(accountInfoSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildUpdateBusinessDataRequest( - @NonNull ApiCustomerUpdateRequestSaveRequestDto apiCustomerUpdateRequestSaveRequestDto - ) { + private Request buildUpdateBusinessDataRequest(@NonNull AccountInfoSaveRequestDto accountInfoSaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/myAccount/commercialInfo/" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiCustomerUpdateRequestSaveRequestDto) + .setJsonContent(accountInfoSaveRequestDto) .build(); } /** * Retrieve personalization settings * - * @return response of {@code ApiPaymentCheckoutConfigGetResponseDto} + * @return response of {@code PaymentCheckoutConfigGetResponseDto} */ - public ApiPaymentCheckoutConfigGetResponseDto retrievePersonalizationSettings() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentCheckoutConfigGetResponseDto retrievePersonalizationSettings() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrievePersonalizationSettingsRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve personalization settings * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrievePersonalizationSettingsAsync() - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrievePersonalizationSettingsAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrievePersonalizationSettingsRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -179,59 +175,59 @@ private Request buildRetrievePersonalizationSettingsRequest() { /** * Save payment checkout customization * - * @param apiPaymentCheckoutConfigSaveRequestDto {@link ApiPaymentCheckoutConfigSaveRequestDto} Request Body + * @param paymentCheckoutConfigSaveRequestDto {@link PaymentCheckoutConfigSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code ApiPaymentCheckoutConfigGetResponseDto} + * @return response of {@code PaymentCheckoutConfigGetResponseDto} */ - public ApiPaymentCheckoutConfigGetResponseDto savePaymentCheckoutPersonalization( - @NonNull ApiPaymentCheckoutConfigSaveRequestDto apiPaymentCheckoutConfigSaveRequestDto, + public PaymentCheckoutConfigGetResponseDto savePaymentCheckoutPersonalization( + @NonNull PaymentCheckoutConfigSaveRequestDto paymentCheckoutConfigSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = - this.buildSavePaymentCheckoutPersonalizationRequest(apiPaymentCheckoutConfigSaveRequestDto, _filename); + this.buildSavePaymentCheckoutPersonalizationRequest(paymentCheckoutConfigSaveRequestDto, _filename); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Save payment checkout customization * - * @param apiPaymentCheckoutConfigSaveRequestDto {@link ApiPaymentCheckoutConfigSaveRequestDto} Request Body + * @param paymentCheckoutConfigSaveRequestDto {@link PaymentCheckoutConfigSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture savePaymentCheckoutPersonalizationAsync( - @NonNull ApiPaymentCheckoutConfigSaveRequestDto apiPaymentCheckoutConfigSaveRequestDto, + public CompletableFuture savePaymentCheckoutPersonalizationAsync( + @NonNull PaymentCheckoutConfigSaveRequestDto paymentCheckoutConfigSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = - this.buildSavePaymentCheckoutPersonalizationRequest(apiPaymentCheckoutConfigSaveRequestDto, _filename); + this.buildSavePaymentCheckoutPersonalizationRequest(paymentCheckoutConfigSaveRequestDto, _filename); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildSavePaymentCheckoutPersonalizationRequest( - @NonNull ApiPaymentCheckoutConfigSaveRequestDto apiPaymentCheckoutConfigSaveRequestDto, + @NonNull PaymentCheckoutConfigSaveRequestDto paymentCheckoutConfigSaveRequestDto, @NonNull String _filename ) { MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder() .setType(MultipartBody.FORM) - .addFormDataPart("logoBackgroundColor", apiPaymentCheckoutConfigSaveRequestDto.getLogoBackgroundColor()) - .addFormDataPart("infoBackgroundColor", apiPaymentCheckoutConfigSaveRequestDto.getInfoBackgroundColor()) - .addFormDataPart("fontColor", apiPaymentCheckoutConfigSaveRequestDto.getFontColor()); - if (apiPaymentCheckoutConfigSaveRequestDto.getEnabled() != null) { - multipartBodyBuilder.addFormDataPart("enabled", apiPaymentCheckoutConfigSaveRequestDto.getEnabled().toString()); + .addFormDataPart("logoBackgroundColor", paymentCheckoutConfigSaveRequestDto.getLogoBackgroundColor()) + .addFormDataPart("infoBackgroundColor", paymentCheckoutConfigSaveRequestDto.getInfoBackgroundColor()) + .addFormDataPart("fontColor", paymentCheckoutConfigSaveRequestDto.getFontColor()); + if (paymentCheckoutConfigSaveRequestDto.getEnabled() != null) { + multipartBodyBuilder.addFormDataPart("enabled", paymentCheckoutConfigSaveRequestDto.getEnabled().toString()); } - if (apiPaymentCheckoutConfigSaveRequestDto.getLogoFile() != null) { + if (paymentCheckoutConfigSaveRequestDto.getLogoFile() != null) { multipartBodyBuilder.addFormDataPart( "logoFile", _filename, RequestBody.create( - apiPaymentCheckoutConfigSaveRequestDto.getLogoFile(), + paymentCheckoutConfigSaveRequestDto.getLogoFile(), MediaType.parse("application/octet-stream") ) ); @@ -249,26 +245,26 @@ private Request buildSavePaymentCheckoutPersonalizationRequest( /** * Retrieve Asaas account number * - * @return response of {@code ApiMyAccountGetAccountNumberResponseDto} + * @return response of {@code MyAccountGetAccountNumberResponseDto} */ - public ApiMyAccountGetAccountNumberResponseDto retrieveAsaasAccountNumber() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public MyAccountGetAccountNumberResponseDto retrieveAsaasAccountNumber() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveAsaasAccountNumberRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve Asaas account number * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveAsaasAccountNumberAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveAsaasAccountNumberAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveAsaasAccountNumberRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -285,26 +281,26 @@ private Request buildRetrieveAsaasAccountNumberRequest() { /** * Retrieve account fees * - * @return response of {@code ApiMyAccountGetAccountFeesResponseDto} + * @return response of {@code MyAccountGetAccountFeesResponseDto} */ - public ApiMyAccountGetAccountFeesResponseDto retrieveAccountFees() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public MyAccountGetAccountFeesResponseDto retrieveAccountFees() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveAccountFeesRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve account fees * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveAccountFeesAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveAccountFeesAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveAccountFeesRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -321,26 +317,26 @@ private Request buildRetrieveAccountFeesRequest() { /** * Check account registration status * - * @return response of {@code ApiMyAccountGetStatusResponseDto} + * @return response of {@code MyAccountGetStatusResponseDto} */ - public ApiMyAccountGetStatusResponseDto checkAccountRegistrationStatus() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public MyAccountGetStatusResponseDto checkAccountRegistrationStatus() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCheckAccountRegistrationStatusRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Check account registration status * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture checkAccountRegistrationStatusAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture checkAccountRegistrationStatusAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCheckAccountRegistrationStatusRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -357,26 +353,26 @@ private Request buildCheckAccountRegistrationStatusRequest() { /** * Retrieve WalletId * - * @return response of {@code ApiWalletShowResponseDto} + * @return response of {@code WalletShowResponseDto} */ - public ApiWalletShowResponseDto retrieveWalletid() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public WalletShowResponseDto retrieveWalletid() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveWalletidRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve WalletId * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveWalletidAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveWalletidAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveWalletidRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -393,9 +389,9 @@ private Request buildRetrieveWalletidRequest() { /** * Delete White Label subaccount * - * @return response of {@code ApiMyAccountDisableAccountResponseDto} + * @return response of {@code MyAccountDisableAccountResponseDto} */ - public ApiMyAccountDisableAccountResponseDto deleteWhiteLabelSubaccount() throws ApiError { + public MyAccountDisableAccountResponseDto deleteWhiteLabelSubaccount() throws ApiError { return this.deleteWhiteLabelSubaccount(DeleteWhiteLabelSubaccountParameters.builder().build()); } @@ -403,23 +399,23 @@ public ApiMyAccountDisableAccountResponseDto deleteWhiteLabelSubaccount() throws * Delete White Label subaccount * * @param requestParameters {@link DeleteWhiteLabelSubaccountParameters} Request Parameters Object - * @return response of {@code ApiMyAccountDisableAccountResponseDto} + * @return response of {@code MyAccountDisableAccountResponseDto} */ - public ApiMyAccountDisableAccountResponseDto deleteWhiteLabelSubaccount( + public MyAccountDisableAccountResponseDto deleteWhiteLabelSubaccount( @NonNull DeleteWhiteLabelSubaccountParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildDeleteWhiteLabelSubaccountRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Delete White Label subaccount * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture deleteWhiteLabelSubaccountAsync() throws ApiError { + public CompletableFuture deleteWhiteLabelSubaccountAsync() throws ApiError { return this.deleteWhiteLabelSubaccountAsync(DeleteWhiteLabelSubaccountParameters.builder().build()); } @@ -427,16 +423,16 @@ public CompletableFuture deleteWhiteLabel * Delete White Label subaccount * * @param requestParameters {@link DeleteWhiteLabelSubaccountParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture deleteWhiteLabelSubaccountAsync( + public CompletableFuture deleteWhiteLabelSubaccountAsync( @NonNull DeleteWhiteLabelSubaccountParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildDeleteWhiteLabelSubaccountRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/AnticipationService.java b/src/main/java/com/asaas/apisdk/services/AnticipationService.java index c133fee..dab30a3 100644 --- a/src/main/java/com/asaas/apisdk/services/AnticipationService.java +++ b/src/main/java/com/asaas/apisdk/services/AnticipationService.java @@ -4,20 +4,20 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiReceivableAnticipationConfigurationGetResponseDto; -import com.asaas.apisdk.models.ApiReceivableAnticipationConfigurationUpdateRequestDto; -import com.asaas.apisdk.models.ApiReceivableAnticipationGetResponseDto; -import com.asaas.apisdk.models.ApiReceivableAnticipationLimitsResponseDto; -import com.asaas.apisdk.models.ApiReceivableAnticipationListResponseDto; -import com.asaas.apisdk.models.ApiReceivableAnticipationSaveRequestDto; -import com.asaas.apisdk.models.ApiReceivableAnticipationSimulateRequestDto; -import com.asaas.apisdk.models.ApiReceivableAnticipationSimulateResponseDto; +import com.asaas.apisdk.models.AnticipationConfigurationGetResponseDto; +import com.asaas.apisdk.models.AnticipationConfigurationUpdateRequestDto; +import com.asaas.apisdk.models.AnticipationGetResponseDto; +import com.asaas.apisdk.models.AnticipationLimitsResponseDto; +import com.asaas.apisdk.models.AnticipationListResponseDto; +import com.asaas.apisdk.models.AnticipationSaveRequestDto; +import com.asaas.apisdk.models.AnticipationSimulateRequestDto; +import com.asaas.apisdk.models.AnticipationSimulateResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListAnticipationsParameters; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; @@ -46,29 +46,28 @@ public AnticipationService(@NonNull OkHttpClient httpClient, AsaasSdkConfig conf * Retrieve a single anticipation * * @param id String Unique identifier of anticipation in Asaas - * @return response of {@code ApiReceivableAnticipationGetResponseDto} + * @return response of {@code AnticipationGetResponseDto} */ - public ApiReceivableAnticipationGetResponseDto retrieveASingleAnticipation(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public AnticipationGetResponseDto retrieveASingleAnticipation(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleAnticipationRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single anticipation * * @param id String Unique identifier of anticipation in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleAnticipationAsync( - @NonNull String id - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveASingleAnticipationAsync(@NonNull String id) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleAnticipationRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -86,9 +85,9 @@ private Request buildRetrieveASingleAnticipationRequest(@NonNull String id) { /** * List anticipations * - * @return response of {@code ApiReceivableAnticipationListResponseDto} + * @return response of {@code AnticipationListResponseDto} */ - public ApiReceivableAnticipationListResponseDto listAnticipations() throws ApiError, ValidationException { + public AnticipationListResponseDto listAnticipations() throws ApiError, ValidationException { return this.listAnticipations(ListAnticipationsParameters.builder().build()); } @@ -96,24 +95,22 @@ public ApiReceivableAnticipationListResponseDto listAnticipations() throws ApiEr * List anticipations * * @param requestParameters {@link ListAnticipationsParameters} Request Parameters Object - * @return response of {@code ApiReceivableAnticipationListResponseDto} + * @return response of {@code AnticipationListResponseDto} */ - public ApiReceivableAnticipationListResponseDto listAnticipations( - @NonNull ListAnticipationsParameters requestParameters - ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public AnticipationListResponseDto listAnticipations(@NonNull ListAnticipationsParameters requestParameters) + throws ApiError, ValidationException { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListAnticipationsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List anticipations * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listAnticipationsAsync() - throws ApiError, ValidationException { + public CompletableFuture listAnticipationsAsync() throws ApiError, ValidationException { return this.listAnticipationsAsync(ListAnticipationsParameters.builder().build()); } @@ -121,16 +118,16 @@ public CompletableFuture listAnticipat * List anticipations * * @param requestParameters {@link ListAnticipationsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listAnticipationsAsync( + public CompletableFuture listAnticipationsAsync( @NonNull ListAnticipationsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListAnticipationsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -158,55 +155,52 @@ private Request buildListAnticipationsRequest(@NonNull ListAnticipationsParamete /** * Request anticipation * - * @param apiReceivableAnticipationSaveRequestDto {@link ApiReceivableAnticipationSaveRequestDto} Request Body + * @param anticipationSaveRequestDto {@link AnticipationSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code ApiReceivableAnticipationGetResponseDto} + * @return response of {@code AnticipationGetResponseDto} */ - public ApiReceivableAnticipationGetResponseDto requestAnticipation( - @NonNull ApiReceivableAnticipationSaveRequestDto apiReceivableAnticipationSaveRequestDto, + public AnticipationGetResponseDto requestAnticipation( + @NonNull AnticipationSaveRequestDto anticipationSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildRequestAnticipationRequest(apiReceivableAnticipationSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildRequestAnticipationRequest(anticipationSaveRequestDto, _filename); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Request anticipation * - * @param apiReceivableAnticipationSaveRequestDto {@link ApiReceivableAnticipationSaveRequestDto} Request Body + * @param anticipationSaveRequestDto {@link AnticipationSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture requestAnticipationAsync( - @NonNull ApiReceivableAnticipationSaveRequestDto apiReceivableAnticipationSaveRequestDto, + public CompletableFuture requestAnticipationAsync( + @NonNull AnticipationSaveRequestDto anticipationSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildRequestAnticipationRequest(apiReceivableAnticipationSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildRequestAnticipationRequest(anticipationSaveRequestDto, _filename); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildRequestAnticipationRequest( - @NonNull ApiReceivableAnticipationSaveRequestDto apiReceivableAnticipationSaveRequestDto, + @NonNull AnticipationSaveRequestDto anticipationSaveRequestDto, @NonNull String _filename ) { MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder() .setType(MultipartBody.FORM) - .addFormDataPart("installment", apiReceivableAnticipationSaveRequestDto.getInstallment()) - .addFormDataPart("payment", apiReceivableAnticipationSaveRequestDto.getPayment()); - if (apiReceivableAnticipationSaveRequestDto.getDocuments() != null) { + .addFormDataPart("installment", anticipationSaveRequestDto.getInstallment()) + .addFormDataPart("payment", anticipationSaveRequestDto.getPayment()); + if (anticipationSaveRequestDto.getDocuments() != null) { multipartBodyBuilder.addFormDataPart( "documents", _filename, - RequestBody.create( - apiReceivableAnticipationSaveRequestDto.getDocuments(), - MediaType.parse("application/octet-stream") - ) + RequestBody.create(anticipationSaveRequestDto.getDocuments(), MediaType.parse("application/octet-stream")) ); } return new RequestBuilder( @@ -222,55 +216,55 @@ private Request buildRequestAnticipationRequest( /** * Simulate anticipation * - * @return response of {@code ApiReceivableAnticipationSimulateResponseDto} + * @return response of {@code AnticipationSimulateResponseDto} */ - public ApiReceivableAnticipationSimulateResponseDto simulateAnticipation() throws ApiError { - return this.simulateAnticipation(ApiReceivableAnticipationSimulateRequestDto.builder().build()); + public AnticipationSimulateResponseDto simulateAnticipation() throws ApiError { + return this.simulateAnticipation(AnticipationSimulateRequestDto.builder().build()); } /** * Simulate anticipation * - * @param apiReceivableAnticipationSimulateRequestDto {@link ApiReceivableAnticipationSimulateRequestDto} Request Body - * @return response of {@code ApiReceivableAnticipationSimulateResponseDto} + * @param anticipationSimulateRequestDto {@link AnticipationSimulateRequestDto} Request Body + * @return response of {@code AnticipationSimulateResponseDto} */ - public ApiReceivableAnticipationSimulateResponseDto simulateAnticipation( - @NonNull ApiReceivableAnticipationSimulateRequestDto apiReceivableAnticipationSimulateRequestDto + public AnticipationSimulateResponseDto simulateAnticipation( + @NonNull AnticipationSimulateRequestDto anticipationSimulateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildSimulateAnticipationRequest(apiReceivableAnticipationSimulateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildSimulateAnticipationRequest(anticipationSimulateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Simulate anticipation * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture simulateAnticipationAsync() throws ApiError { - return this.simulateAnticipationAsync(ApiReceivableAnticipationSimulateRequestDto.builder().build()); + public CompletableFuture simulateAnticipationAsync() throws ApiError { + return this.simulateAnticipationAsync(AnticipationSimulateRequestDto.builder().build()); } /** * Simulate anticipation * - * @param apiReceivableAnticipationSimulateRequestDto {@link ApiReceivableAnticipationSimulateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param anticipationSimulateRequestDto {@link AnticipationSimulateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture simulateAnticipationAsync( - @NonNull ApiReceivableAnticipationSimulateRequestDto apiReceivableAnticipationSimulateRequestDto + public CompletableFuture simulateAnticipationAsync( + @NonNull AnticipationSimulateRequestDto anticipationSimulateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildSimulateAnticipationRequest(apiReceivableAnticipationSimulateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildSimulateAnticipationRequest(anticipationSimulateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildSimulateAnticipationRequest( - @NonNull ApiReceivableAnticipationSimulateRequestDto apiReceivableAnticipationSimulateRequestDto + @NonNull AnticipationSimulateRequestDto anticipationSimulateRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -278,38 +272,34 @@ private Request buildSimulateAnticipationRequest( "v3/anticipations/simulate" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiReceivableAnticipationSimulateRequestDto) + .setJsonContent(anticipationSimulateRequestDto) .build(); } /** * Retrieve status of automatic anticipation * - * @return response of {@code ApiReceivableAnticipationConfigurationGetResponseDto} + * @return response of {@code AnticipationConfigurationGetResponseDto} */ - public ApiReceivableAnticipationConfigurationGetResponseDto retrieveStatusOfAutomaticAnticipation() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public AnticipationConfigurationGetResponseDto retrieveStatusOfAutomaticAnticipation() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveStatusOfAutomaticAnticipationRequest(); Response response = this.execute(request); - return ModelConverter.convert( - response, - new TypeReference() {} - ); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve status of automatic anticipation * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture< - ApiReceivableAnticipationConfigurationGetResponseDto - > retrieveStatusOfAutomaticAnticipationAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveStatusOfAutomaticAnticipationAsync() + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveStatusOfAutomaticAnticipationRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -326,68 +316,56 @@ private Request buildRetrieveStatusOfAutomaticAnticipationRequest() { /** * Update status of automatic anticipation * - * @return response of {@code ApiReceivableAnticipationConfigurationGetResponseDto} + * @return response of {@code AnticipationConfigurationGetResponseDto} */ - public ApiReceivableAnticipationConfigurationGetResponseDto updateStatusOfAutomaticAnticipation() throws ApiError { - return this.updateStatusOfAutomaticAnticipation( - ApiReceivableAnticipationConfigurationUpdateRequestDto.builder().build() - ); + public AnticipationConfigurationGetResponseDto updateStatusOfAutomaticAnticipation() throws ApiError { + return this.updateStatusOfAutomaticAnticipation(AnticipationConfigurationUpdateRequestDto.builder().build()); } /** * Update status of automatic anticipation * - * @param apiReceivableAnticipationConfigurationUpdateRequestDto {@link ApiReceivableAnticipationConfigurationUpdateRequestDto} Request Body - * @return response of {@code ApiReceivableAnticipationConfigurationGetResponseDto} + * @param anticipationConfigurationUpdateRequestDto {@link AnticipationConfigurationUpdateRequestDto} Request Body + * @return response of {@code AnticipationConfigurationGetResponseDto} */ - public ApiReceivableAnticipationConfigurationGetResponseDto updateStatusOfAutomaticAnticipation( - @NonNull ApiReceivableAnticipationConfigurationUpdateRequestDto apiReceivableAnticipationConfigurationUpdateRequestDto + public AnticipationConfigurationGetResponseDto updateStatusOfAutomaticAnticipation( + @NonNull AnticipationConfigurationUpdateRequestDto anticipationConfigurationUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = - this.buildUpdateStatusOfAutomaticAnticipationRequest(apiReceivableAnticipationConfigurationUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateStatusOfAutomaticAnticipationRequest(anticipationConfigurationUpdateRequestDto); Response response = this.execute(request); - return ModelConverter.convert( - response, - new TypeReference() {} - ); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update status of automatic anticipation * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture< - ApiReceivableAnticipationConfigurationGetResponseDto - > updateStatusOfAutomaticAnticipationAsync() throws ApiError { - return this.updateStatusOfAutomaticAnticipationAsync( - ApiReceivableAnticipationConfigurationUpdateRequestDto.builder().build() - ); + public CompletableFuture updateStatusOfAutomaticAnticipationAsync() + throws ApiError { + return this.updateStatusOfAutomaticAnticipationAsync(AnticipationConfigurationUpdateRequestDto.builder().build()); } /** * Update status of automatic anticipation * - * @param apiReceivableAnticipationConfigurationUpdateRequestDto {@link ApiReceivableAnticipationConfigurationUpdateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param anticipationConfigurationUpdateRequestDto {@link AnticipationConfigurationUpdateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture< - ApiReceivableAnticipationConfigurationGetResponseDto - > updateStatusOfAutomaticAnticipationAsync( - @NonNull ApiReceivableAnticipationConfigurationUpdateRequestDto apiReceivableAnticipationConfigurationUpdateRequestDto + public CompletableFuture updateStatusOfAutomaticAnticipationAsync( + @NonNull AnticipationConfigurationUpdateRequestDto anticipationConfigurationUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = - this.buildUpdateStatusOfAutomaticAnticipationRequest(apiReceivableAnticipationConfigurationUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateStatusOfAutomaticAnticipationRequest(anticipationConfigurationUpdateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateStatusOfAutomaticAnticipationRequest( - @NonNull ApiReceivableAnticipationConfigurationUpdateRequestDto apiReceivableAnticipationConfigurationUpdateRequestDto + @NonNull AnticipationConfigurationUpdateRequestDto anticipationConfigurationUpdateRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -395,34 +373,33 @@ private Request buildUpdateStatusOfAutomaticAnticipationRequest( "v3/anticipations/configurations" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiReceivableAnticipationConfigurationUpdateRequestDto) + .setJsonContent(anticipationConfigurationUpdateRequestDto) .build(); } /** * Retrieve anticipation limits * - * @return response of {@code ApiReceivableAnticipationLimitsResponseDto} + * @return response of {@code AnticipationLimitsResponseDto} */ - public ApiReceivableAnticipationLimitsResponseDto retrieveAnticipationLimits() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public AnticipationLimitsResponseDto retrieveAnticipationLimits() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveAnticipationLimitsRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve anticipation limits * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveAnticipationLimitsAsync() - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveAnticipationLimitsAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveAnticipationLimitsRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -441,14 +418,13 @@ private Request buildRetrieveAnticipationLimitsRequest() { * * @param id String Unique identifier of anticipation in Asaas * @param input Object Request Body - * @return response of {@code ApiReceivableAnticipationGetResponseDto} + * @return response of {@code AnticipationGetResponseDto} */ - public ApiReceivableAnticipationGetResponseDto cancelAnticipation(@NonNull String id, @NonNull Object input) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public AnticipationGetResponseDto cancelAnticipation(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelAnticipationRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -456,17 +432,17 @@ public ApiReceivableAnticipationGetResponseDto cancelAnticipation(@NonNull Strin * * @param id String Unique identifier of anticipation in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture cancelAnticipationAsync( + public CompletableFuture cancelAnticipationAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelAnticipationRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/BillService.java b/src/main/java/com/asaas/apisdk/services/BillService.java index 6bbd2bd..5804c92 100644 --- a/src/main/java/com/asaas/apisdk/services/BillService.java +++ b/src/main/java/com/asaas/apisdk/services/BillService.java @@ -4,17 +4,17 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiBillGetResponseDto; -import com.asaas.apisdk.models.ApiBillListResponseDto; -import com.asaas.apisdk.models.ApiBillSaveRequestDto; -import com.asaas.apisdk.models.ApiBillSimulateRequestDto; -import com.asaas.apisdk.models.ApiBillSimulateResponseDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; +import com.asaas.apisdk.models.BillGetResponseDto; +import com.asaas.apisdk.models.BillListResponseDto; +import com.asaas.apisdk.models.BillSaveRequestDto; +import com.asaas.apisdk.models.BillSimulateRequestDto; +import com.asaas.apisdk.models.BillSimulateResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListBillPaymentsParameters; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; @@ -39,9 +39,9 @@ public BillService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config) { /** * List bill payments * - * @return response of {@code ApiBillListResponseDto} + * @return response of {@code BillListResponseDto} */ - public ApiBillListResponseDto listBillPayments() throws ApiError, ValidationException { + public BillListResponseDto listBillPayments() throws ApiError, ValidationException { return this.listBillPayments(ListBillPaymentsParameters.builder().build()); } @@ -49,22 +49,22 @@ public ApiBillListResponseDto listBillPayments() throws ApiError, ValidationExce * List bill payments * * @param requestParameters {@link ListBillPaymentsParameters} Request Parameters Object - * @return response of {@code ApiBillListResponseDto} + * @return response of {@code BillListResponseDto} */ - public ApiBillListResponseDto listBillPayments(@NonNull ListBillPaymentsParameters requestParameters) + public BillListResponseDto listBillPayments(@NonNull ListBillPaymentsParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListBillPaymentsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List bill payments * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listBillPaymentsAsync() throws ApiError, ValidationException { + public CompletableFuture listBillPaymentsAsync() throws ApiError, ValidationException { return this.listBillPaymentsAsync(ListBillPaymentsParameters.builder().build()); } @@ -72,16 +72,16 @@ public CompletableFuture listBillPaymentsAsync() throws * List bill payments * * @param requestParameters {@link ListBillPaymentsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listBillPaymentsAsync( + public CompletableFuture listBillPaymentsAsync( @NonNull ListBillPaymentsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListBillPaymentsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -104,120 +104,118 @@ private Request buildListBillPaymentsRequest(@NonNull ListBillPaymentsParameters /** * Create a bill payment * - * @return response of {@code ApiBillGetResponseDto} + * @return response of {@code BillGetResponseDto} */ - public ApiBillGetResponseDto createABillPayment() throws ApiError { - return this.createABillPayment(ApiBillSaveRequestDto.builder().build()); + public BillGetResponseDto createABillPayment() throws ApiError { + return this.createABillPayment(BillSaveRequestDto.builder().build()); } /** * Create a bill payment * - * @param apiBillSaveRequestDto {@link ApiBillSaveRequestDto} Request Body - * @return response of {@code ApiBillGetResponseDto} + * @param billSaveRequestDto {@link BillSaveRequestDto} Request Body + * @return response of {@code BillGetResponseDto} */ - public ApiBillGetResponseDto createABillPayment(@NonNull ApiBillSaveRequestDto apiBillSaveRequestDto) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateABillPaymentRequest(apiBillSaveRequestDto); + public BillGetResponseDto createABillPayment(@NonNull BillSaveRequestDto billSaveRequestDto) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateABillPaymentRequest(billSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create a bill payment * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createABillPaymentAsync() throws ApiError { - return this.createABillPaymentAsync(ApiBillSaveRequestDto.builder().build()); + public CompletableFuture createABillPaymentAsync() throws ApiError { + return this.createABillPaymentAsync(BillSaveRequestDto.builder().build()); } /** * Create a bill payment * - * @param apiBillSaveRequestDto {@link ApiBillSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param billSaveRequestDto {@link BillSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createABillPaymentAsync( - @NonNull ApiBillSaveRequestDto apiBillSaveRequestDto - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateABillPaymentRequest(apiBillSaveRequestDto); + public CompletableFuture createABillPaymentAsync(@NonNull BillSaveRequestDto billSaveRequestDto) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateABillPaymentRequest(billSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildCreateABillPaymentRequest(@NonNull ApiBillSaveRequestDto apiBillSaveRequestDto) { + private Request buildCreateABillPaymentRequest(@NonNull BillSaveRequestDto billSaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/bill" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiBillSaveRequestDto) + .setJsonContent(billSaveRequestDto) .build(); } /** * Simulate a bill payment * - * @return response of {@code ApiBillSimulateResponseDto} + * @return response of {@code BillSimulateResponseDto} */ - public ApiBillSimulateResponseDto simulateABillPayment() throws ApiError { - return this.simulateABillPayment(ApiBillSimulateRequestDto.builder().build()); + public BillSimulateResponseDto simulateABillPayment() throws ApiError { + return this.simulateABillPayment(BillSimulateRequestDto.builder().build()); } /** * Simulate a bill payment * - * @param apiBillSimulateRequestDto {@link ApiBillSimulateRequestDto} Request Body - * @return response of {@code ApiBillSimulateResponseDto} + * @param billSimulateRequestDto {@link BillSimulateRequestDto} Request Body + * @return response of {@code BillSimulateResponseDto} */ - public ApiBillSimulateResponseDto simulateABillPayment(@NonNull ApiBillSimulateRequestDto apiBillSimulateRequestDto) + public BillSimulateResponseDto simulateABillPayment(@NonNull BillSimulateRequestDto billSimulateRequestDto) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildSimulateABillPaymentRequest(apiBillSimulateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildSimulateABillPaymentRequest(billSimulateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Simulate a bill payment * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture simulateABillPaymentAsync() throws ApiError { - return this.simulateABillPaymentAsync(ApiBillSimulateRequestDto.builder().build()); + public CompletableFuture simulateABillPaymentAsync() throws ApiError { + return this.simulateABillPaymentAsync(BillSimulateRequestDto.builder().build()); } /** * Simulate a bill payment * - * @param apiBillSimulateRequestDto {@link ApiBillSimulateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param billSimulateRequestDto {@link BillSimulateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture simulateABillPaymentAsync( - @NonNull ApiBillSimulateRequestDto apiBillSimulateRequestDto + public CompletableFuture simulateABillPaymentAsync( + @NonNull BillSimulateRequestDto billSimulateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildSimulateABillPaymentRequest(apiBillSimulateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildSimulateABillPaymentRequest(billSimulateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildSimulateABillPaymentRequest(@NonNull ApiBillSimulateRequestDto apiBillSimulateRequestDto) { + private Request buildSimulateABillPaymentRequest(@NonNull BillSimulateRequestDto billSimulateRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/bill/simulate" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiBillSimulateRequestDto) + .setJsonContent(billSimulateRequestDto) .build(); } @@ -225,27 +223,27 @@ private Request buildSimulateABillPaymentRequest(@NonNull ApiBillSimulateRequest * Retrieve a single bill payment * * @param id String Unique bill payment identifier in Asaas - * @return response of {@code ApiBillGetResponseDto} + * @return response of {@code BillGetResponseDto} */ - public ApiBillGetResponseDto retrieveASingleBillPayment(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public BillGetResponseDto retrieveASingleBillPayment(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleBillPaymentRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single bill payment * * @param id String Unique bill payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleBillPaymentAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveASingleBillPaymentAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleBillPaymentRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -265,13 +263,13 @@ private Request buildRetrieveASingleBillPaymentRequest(@NonNull String id) { * * @param id String Unique identifier of the bill payment to be cancelled * @param input Object Request Body - * @return response of {@code ApiBillGetResponseDto} + * @return response of {@code BillGetResponseDto} */ - public ApiBillGetResponseDto cancelBillPayment(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public BillGetResponseDto cancelBillPayment(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelBillPaymentRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -279,15 +277,15 @@ public ApiBillGetResponseDto cancelBillPayment(@NonNull String id, @NonNull Obje * * @param id String Unique identifier of the bill payment to be cancelled * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture cancelBillPaymentAsync(@NonNull String id, @NonNull Object input) + public CompletableFuture cancelBillPaymentAsync(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelBillPaymentRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/ChargebackService.java b/src/main/java/com/asaas/apisdk/services/ChargebackService.java index 66b7ada..0fe1013 100644 --- a/src/main/java/com/asaas/apisdk/services/ChargebackService.java +++ b/src/main/java/com/asaas/apisdk/services/ChargebackService.java @@ -4,17 +4,17 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiChargebackListResponseDto; -import com.asaas.apisdk.models.ApiChargebackSaveDisputeRequestDto; -import com.asaas.apisdk.models.ApiChargebackSaveDisputeResponseDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPaymentChargebackResponseDto; +import com.asaas.apisdk.models.ChargebackListResponseDto; +import com.asaas.apisdk.models.ChargebackSaveDisputeRequestDto; +import com.asaas.apisdk.models.ChargebackSaveDisputeResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListChargebacksParameters; +import com.asaas.apisdk.models.PaymentChargebackResponseDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListChargebacksParametersValidator; @@ -42,45 +42,45 @@ public ChargebackService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config * Create a chargeback dispute * * @param id String Unique identifier of chargeback for which the dispute will be created. - * @param apiChargebackSaveDisputeRequestDto {@link ApiChargebackSaveDisputeRequestDto} Request Body + * @param chargebackSaveDisputeRequestDto {@link ChargebackSaveDisputeRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code ApiChargebackSaveDisputeResponseDto} + * @return response of {@code ChargebackSaveDisputeResponseDto} */ - public ApiChargebackSaveDisputeResponseDto createAChargebackDispute( + public ChargebackSaveDisputeResponseDto createAChargebackDispute( @NonNull String id, - @NonNull ApiChargebackSaveDisputeRequestDto apiChargebackSaveDisputeRequestDto, + @NonNull ChargebackSaveDisputeRequestDto chargebackSaveDisputeRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateAChargebackDisputeRequest(id, apiChargebackSaveDisputeRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateAChargebackDisputeRequest(id, chargebackSaveDisputeRequestDto, _filename); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create a chargeback dispute * * @param id String Unique identifier of chargeback for which the dispute will be created. - * @param apiChargebackSaveDisputeRequestDto {@link ApiChargebackSaveDisputeRequestDto} Request Body + * @param chargebackSaveDisputeRequestDto {@link ChargebackSaveDisputeRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createAChargebackDisputeAsync( + public CompletableFuture createAChargebackDisputeAsync( @NonNull String id, - @NonNull ApiChargebackSaveDisputeRequestDto apiChargebackSaveDisputeRequestDto, + @NonNull ChargebackSaveDisputeRequestDto chargebackSaveDisputeRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateAChargebackDisputeRequest(id, apiChargebackSaveDisputeRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateAChargebackDisputeRequest(id, chargebackSaveDisputeRequestDto, _filename); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildCreateAChargebackDisputeRequest( @NonNull String id, - @NonNull ApiChargebackSaveDisputeRequestDto apiChargebackSaveDisputeRequestDto, + @NonNull ChargebackSaveDisputeRequestDto chargebackSaveDisputeRequestDto, @NonNull String _filename ) { return new RequestBuilder( @@ -96,10 +96,7 @@ private Request buildCreateAChargebackDisputeRequest( .addFormDataPart( "files", _filename, - RequestBody.create( - apiChargebackSaveDisputeRequestDto.getFiles(), - MediaType.parse("application/octet-stream") - ) + RequestBody.create(chargebackSaveDisputeRequestDto.getFiles(), MediaType.parse("application/octet-stream")) ) .build() ) @@ -109,9 +106,9 @@ private Request buildCreateAChargebackDisputeRequest( /** * List chargebacks * - * @return response of {@code ApiChargebackListResponseDto} + * @return response of {@code ChargebackListResponseDto} */ - public ApiChargebackListResponseDto listChargebacks() throws ApiError, ValidationException { + public ChargebackListResponseDto listChargebacks() throws ApiError, ValidationException { return this.listChargebacks(ListChargebacksParameters.builder().build()); } @@ -119,22 +116,22 @@ public ApiChargebackListResponseDto listChargebacks() throws ApiError, Validatio * List chargebacks * * @param requestParameters {@link ListChargebacksParameters} Request Parameters Object - * @return response of {@code ApiChargebackListResponseDto} + * @return response of {@code ChargebackListResponseDto} */ - public ApiChargebackListResponseDto listChargebacks(@NonNull ListChargebacksParameters requestParameters) + public ChargebackListResponseDto listChargebacks(@NonNull ListChargebacksParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListChargebacksRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List chargebacks * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listChargebacksAsync() throws ApiError, ValidationException { + public CompletableFuture listChargebacksAsync() throws ApiError, ValidationException { return this.listChargebacksAsync(ListChargebacksParameters.builder().build()); } @@ -142,16 +139,16 @@ public CompletableFuture listChargebacksAsync() th * List chargebacks * * @param requestParameters {@link ListChargebacksParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listChargebacksAsync( + public CompletableFuture listChargebacksAsync( @NonNull ListChargebacksParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListChargebacksRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -185,28 +182,28 @@ private Request buildListChargebacksRequest(@NonNull ListChargebacksParameters r * Retrieve a single chargeback * * @param id String Unique identifier of the payment or installment for which the chargeback will be retrieved. - * @return response of {@code ApiPaymentChargebackResponseDto} + * @return response of {@code PaymentChargebackResponseDto} */ - public ApiPaymentChargebackResponseDto retrieveASingleChargeback(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentChargebackResponseDto retrieveASingleChargeback(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleChargebackRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single chargeback * * @param id String Unique identifier of the payment or installment for which the chargeback will be retrieved. - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleChargebackAsync(@NonNull String id) + public CompletableFuture retrieveASingleChargebackAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleChargebackRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/CheckoutService.java b/src/main/java/com/asaas/apisdk/services/CheckoutService.java index b4f1f9c..2cf0b4c 100644 --- a/src/main/java/com/asaas/apisdk/services/CheckoutService.java +++ b/src/main/java/com/asaas/apisdk/services/CheckoutService.java @@ -4,17 +4,17 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiCheckoutSessionResponseDto; -import com.asaas.apisdk.models.ApiCheckoutSessionSaveRequestDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; +import com.asaas.apisdk.models.CheckoutSessionResponseDto; +import com.asaas.apisdk.models.CheckoutSessionSaveRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; -import com.asaas.apisdk.validation.validators.modelValidators.ApiCheckoutSessionSaveRequestDtoValidator; +import com.asaas.apisdk.validation.validators.modelValidators.CheckoutSessionSaveRequestDtoValidator; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -35,62 +35,60 @@ public CheckoutService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config) /** * Create new checkout * - * @return response of {@code ApiCheckoutSessionResponseDto} + * @return response of {@code CheckoutSessionResponseDto} */ - public ApiCheckoutSessionResponseDto createNewCheckout() throws ApiError, ValidationException { - return this.createNewCheckout(ApiCheckoutSessionSaveRequestDto.builder().build()); + public CheckoutSessionResponseDto createNewCheckout() throws ApiError, ValidationException { + return this.createNewCheckout(CheckoutSessionSaveRequestDto.builder().build()); } /** * Create new checkout * - * @param apiCheckoutSessionSaveRequestDto {@link ApiCheckoutSessionSaveRequestDto} Request Body - * @return response of {@code ApiCheckoutSessionResponseDto} + * @param checkoutSessionSaveRequestDto {@link CheckoutSessionSaveRequestDto} Request Body + * @return response of {@code CheckoutSessionResponseDto} */ - public ApiCheckoutSessionResponseDto createNewCheckout( - @NonNull ApiCheckoutSessionSaveRequestDto apiCheckoutSessionSaveRequestDto + public CheckoutSessionResponseDto createNewCheckout( + @NonNull CheckoutSessionSaveRequestDto checkoutSessionSaveRequestDto ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewCheckoutRequest(apiCheckoutSessionSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewCheckoutRequest(checkoutSessionSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create new checkout * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewCheckoutAsync() - throws ApiError, ValidationException { - return this.createNewCheckoutAsync(ApiCheckoutSessionSaveRequestDto.builder().build()); + public CompletableFuture createNewCheckoutAsync() throws ApiError, ValidationException { + return this.createNewCheckoutAsync(CheckoutSessionSaveRequestDto.builder().build()); } /** * Create new checkout * - * @param apiCheckoutSessionSaveRequestDto {@link ApiCheckoutSessionSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param checkoutSessionSaveRequestDto {@link CheckoutSessionSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewCheckoutAsync( - @NonNull ApiCheckoutSessionSaveRequestDto apiCheckoutSessionSaveRequestDto + public CompletableFuture createNewCheckoutAsync( + @NonNull CheckoutSessionSaveRequestDto checkoutSessionSaveRequestDto ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewCheckoutRequest(apiCheckoutSessionSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewCheckoutRequest(checkoutSessionSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildCreateNewCheckoutRequest( - @NonNull ApiCheckoutSessionSaveRequestDto apiCheckoutSessionSaveRequestDto - ) throws ValidationException { + private Request buildCreateNewCheckoutRequest(@NonNull CheckoutSessionSaveRequestDto checkoutSessionSaveRequestDto) + throws ValidationException { new ViolationAggregator() .add( - new ApiCheckoutSessionSaveRequestDtoValidator("apiCheckoutSessionSaveRequestDto") + new CheckoutSessionSaveRequestDtoValidator("checkoutSessionSaveRequestDto") .optional() - .validate(apiCheckoutSessionSaveRequestDto) + .validate(checkoutSessionSaveRequestDto) ) .validateAll(); return new RequestBuilder( @@ -99,7 +97,7 @@ private Request buildCreateNewCheckoutRequest( "v3/checkouts" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiCheckoutSessionSaveRequestDto) + .setJsonContent(checkoutSessionSaveRequestDto) .build(); } @@ -108,13 +106,13 @@ private Request buildCreateNewCheckoutRequest( * * @param id String Unique identifier of checkout in Asaas * @param input Object Request Body - * @return response of {@code ApiCheckoutSessionResponseDto} + * @return response of {@code CheckoutSessionResponseDto} */ - public ApiCheckoutSessionResponseDto cancelACheckout(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CheckoutSessionResponseDto cancelACheckout(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelACheckoutRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -122,17 +120,15 @@ public ApiCheckoutSessionResponseDto cancelACheckout(@NonNull String id, @NonNul * * @param id String Unique identifier of checkout in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture cancelACheckoutAsync( - @NonNull String id, - @NonNull Object input - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture cancelACheckoutAsync(@NonNull String id, @NonNull Object input) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelACheckoutRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/CreditBureauReportService.java b/src/main/java/com/asaas/apisdk/services/CreditBureauReportService.java index 25ad7ec..0d6a7c5 100644 --- a/src/main/java/com/asaas/apisdk/services/CreditBureauReportService.java +++ b/src/main/java/com/asaas/apisdk/services/CreditBureauReportService.java @@ -4,15 +4,15 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiCreditBureauReportGetResponseDto; -import com.asaas.apisdk.models.ApiCreditBureauReportListResponseDto; -import com.asaas.apisdk.models.ApiCreditBureauReportSaveRequestDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; +import com.asaas.apisdk.models.CreditBureauReportGetResponseDto; +import com.asaas.apisdk.models.CreditBureauReportListResponseDto; +import com.asaas.apisdk.models.CreditBureauReportSaveRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListCreditBureauReportsParameters; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; @@ -37,9 +37,9 @@ public CreditBureauReportService(@NonNull OkHttpClient httpClient, AsaasSdkConfi /** * List credit bureau reports * - * @return response of {@code ApiCreditBureauReportListResponseDto} + * @return response of {@code CreditBureauReportListResponseDto} */ - public ApiCreditBureauReportListResponseDto listCreditBureauReports() throws ApiError, ValidationException { + public CreditBureauReportListResponseDto listCreditBureauReports() throws ApiError, ValidationException { return this.listCreditBureauReports(ListCreditBureauReportsParameters.builder().build()); } @@ -47,23 +47,23 @@ public ApiCreditBureauReportListResponseDto listCreditBureauReports() throws Api * List credit bureau reports * * @param requestParameters {@link ListCreditBureauReportsParameters} Request Parameters Object - * @return response of {@code ApiCreditBureauReportListResponseDto} + * @return response of {@code CreditBureauReportListResponseDto} */ - public ApiCreditBureauReportListResponseDto listCreditBureauReports( + public CreditBureauReportListResponseDto listCreditBureauReports( @NonNull ListCreditBureauReportsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListCreditBureauReportsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List credit bureau reports * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listCreditBureauReportsAsync() + public CompletableFuture listCreditBureauReportsAsync() throws ApiError, ValidationException { return this.listCreditBureauReportsAsync(ListCreditBureauReportsParameters.builder().build()); } @@ -72,16 +72,16 @@ public CompletableFuture listCreditBureauR * List credit bureau reports * * @param requestParameters {@link ListCreditBureauReportsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listCreditBureauReportsAsync( + public CompletableFuture listCreditBureauReportsAsync( @NonNull ListCreditBureauReportsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListCreditBureauReportsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -106,55 +106,55 @@ private Request buildListCreditBureauReportsRequest(@NonNull ListCreditBureauRep /** * Make consultation * - * @return response of {@code ApiCreditBureauReportGetResponseDto} + * @return response of {@code CreditBureauReportGetResponseDto} */ - public ApiCreditBureauReportGetResponseDto makeConsultation() throws ApiError { - return this.makeConsultation(ApiCreditBureauReportSaveRequestDto.builder().build()); + public CreditBureauReportGetResponseDto makeConsultation() throws ApiError { + return this.makeConsultation(CreditBureauReportSaveRequestDto.builder().build()); } /** * Make consultation * - * @param apiCreditBureauReportSaveRequestDto {@link ApiCreditBureauReportSaveRequestDto} Request Body - * @return response of {@code ApiCreditBureauReportGetResponseDto} + * @param creditBureauReportSaveRequestDto {@link CreditBureauReportSaveRequestDto} Request Body + * @return response of {@code CreditBureauReportGetResponseDto} */ - public ApiCreditBureauReportGetResponseDto makeConsultation( - @NonNull ApiCreditBureauReportSaveRequestDto apiCreditBureauReportSaveRequestDto + public CreditBureauReportGetResponseDto makeConsultation( + @NonNull CreditBureauReportSaveRequestDto creditBureauReportSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildMakeConsultationRequest(apiCreditBureauReportSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildMakeConsultationRequest(creditBureauReportSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Make consultation * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture makeConsultationAsync() throws ApiError { - return this.makeConsultationAsync(ApiCreditBureauReportSaveRequestDto.builder().build()); + public CompletableFuture makeConsultationAsync() throws ApiError { + return this.makeConsultationAsync(CreditBureauReportSaveRequestDto.builder().build()); } /** * Make consultation * - * @param apiCreditBureauReportSaveRequestDto {@link ApiCreditBureauReportSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param creditBureauReportSaveRequestDto {@link CreditBureauReportSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture makeConsultationAsync( - @NonNull ApiCreditBureauReportSaveRequestDto apiCreditBureauReportSaveRequestDto + public CompletableFuture makeConsultationAsync( + @NonNull CreditBureauReportSaveRequestDto creditBureauReportSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildMakeConsultationRequest(apiCreditBureauReportSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildMakeConsultationRequest(creditBureauReportSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildMakeConsultationRequest( - @NonNull ApiCreditBureauReportSaveRequestDto apiCreditBureauReportSaveRequestDto + @NonNull CreditBureauReportSaveRequestDto creditBureauReportSaveRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -162,7 +162,7 @@ private Request buildMakeConsultationRequest( "v3/creditBureauReport" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiCreditBureauReportSaveRequestDto) + .setJsonContent(creditBureauReportSaveRequestDto) .build(); } @@ -170,28 +170,28 @@ private Request buildMakeConsultationRequest( * Retrieve a credit bureau report * * @param id String Unique report identifier in Asaas - * @return response of {@code ApiCreditBureauReportGetResponseDto} + * @return response of {@code CreditBureauReportGetResponseDto} */ - public ApiCreditBureauReportGetResponseDto retrieveACreditBureauReport(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CreditBureauReportGetResponseDto retrieveACreditBureauReport(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveACreditBureauReportRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a credit bureau report * * @param id String Unique report identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveACreditBureauReportAsync(@NonNull String id) + public CompletableFuture retrieveACreditBureauReportAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveACreditBureauReportRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/CreditCardService.java b/src/main/java/com/asaas/apisdk/services/CreditCardService.java index 83f048b..c368ce1 100644 --- a/src/main/java/com/asaas/apisdk/services/CreditCardService.java +++ b/src/main/java/com/asaas/apisdk/services/CreditCardService.java @@ -4,14 +4,14 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiCreditCardTokenizeRequestDto; -import com.asaas.apisdk.models.ApiCreditCardTokenizeResponseDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; +import com.asaas.apisdk.models.CreditCardTokenizeRequestDto; +import com.asaas.apisdk.models.CreditCardTokenizeResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -32,55 +32,55 @@ public CreditCardService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config /** * Credit card tokenization * - * @return response of {@code ApiCreditCardTokenizeResponseDto} + * @return response of {@code CreditCardTokenizeResponseDto} */ - public ApiCreditCardTokenizeResponseDto creditCardTokenization() throws ApiError { - return this.creditCardTokenization(ApiCreditCardTokenizeRequestDto.builder().build()); + public CreditCardTokenizeResponseDto creditCardTokenization() throws ApiError { + return this.creditCardTokenization(CreditCardTokenizeRequestDto.builder().build()); } /** * Credit card tokenization * - * @param apiCreditCardTokenizeRequestDto {@link ApiCreditCardTokenizeRequestDto} Request Body - * @return response of {@code ApiCreditCardTokenizeResponseDto} + * @param creditCardTokenizeRequestDto {@link CreditCardTokenizeRequestDto} Request Body + * @return response of {@code CreditCardTokenizeResponseDto} */ - public ApiCreditCardTokenizeResponseDto creditCardTokenization( - @NonNull ApiCreditCardTokenizeRequestDto apiCreditCardTokenizeRequestDto + public CreditCardTokenizeResponseDto creditCardTokenization( + @NonNull CreditCardTokenizeRequestDto creditCardTokenizeRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreditCardTokenizationRequest(apiCreditCardTokenizeRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreditCardTokenizationRequest(creditCardTokenizeRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Credit card tokenization * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture creditCardTokenizationAsync() throws ApiError { - return this.creditCardTokenizationAsync(ApiCreditCardTokenizeRequestDto.builder().build()); + public CompletableFuture creditCardTokenizationAsync() throws ApiError { + return this.creditCardTokenizationAsync(CreditCardTokenizeRequestDto.builder().build()); } /** * Credit card tokenization * - * @param apiCreditCardTokenizeRequestDto {@link ApiCreditCardTokenizeRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param creditCardTokenizeRequestDto {@link CreditCardTokenizeRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture creditCardTokenizationAsync( - @NonNull ApiCreditCardTokenizeRequestDto apiCreditCardTokenizeRequestDto + public CompletableFuture creditCardTokenizationAsync( + @NonNull CreditCardTokenizeRequestDto creditCardTokenizeRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreditCardTokenizationRequest(apiCreditCardTokenizeRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreditCardTokenizationRequest(creditCardTokenizeRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildCreditCardTokenizationRequest( - @NonNull ApiCreditCardTokenizeRequestDto apiCreditCardTokenizeRequestDto + @NonNull CreditCardTokenizeRequestDto creditCardTokenizeRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -88,7 +88,7 @@ private Request buildCreditCardTokenizationRequest( "v3/creditCard/tokenizeCreditCard" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiCreditCardTokenizeRequestDto) + .setJsonContent(creditCardTokenizeRequestDto) .build(); } } diff --git a/src/main/java/com/asaas/apisdk/services/CustomerService.java b/src/main/java/com/asaas/apisdk/services/CustomerService.java index a77a4d4..6f2a2c7 100644 --- a/src/main/java/com/asaas/apisdk/services/CustomerService.java +++ b/src/main/java/com/asaas/apisdk/services/CustomerService.java @@ -4,19 +4,19 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiCustomerAccountDeleteResponseDto; -import com.asaas.apisdk.models.ApiCustomerAccountGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerAccountListResponseDto; -import com.asaas.apisdk.models.ApiCustomerAccountSaveRequestDto; -import com.asaas.apisdk.models.ApiCustomerAccountUpdateRequestDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiNotificationListResponseDto; +import com.asaas.apisdk.models.CustomerDeleteResponseDto; +import com.asaas.apisdk.models.CustomerGetResponseDto; +import com.asaas.apisdk.models.CustomerListResponseDto; +import com.asaas.apisdk.models.CustomerSaveRequestDto; +import com.asaas.apisdk.models.CustomerUpdateRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListCustomersParameters; +import com.asaas.apisdk.models.NotificationListResponseDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListCustomersParametersValidator; @@ -40,9 +40,9 @@ public CustomerService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config) /** * List customers * - * @return response of {@code ApiCustomerAccountListResponseDto} + * @return response of {@code CustomerListResponseDto} */ - public ApiCustomerAccountListResponseDto listCustomers() throws ApiError, ValidationException { + public CustomerListResponseDto listCustomers() throws ApiError, ValidationException { return this.listCustomers(ListCustomersParameters.builder().build()); } @@ -50,23 +50,22 @@ public ApiCustomerAccountListResponseDto listCustomers() throws ApiError, Valida * List customers * * @param requestParameters {@link ListCustomersParameters} Request Parameters Object - * @return response of {@code ApiCustomerAccountListResponseDto} + * @return response of {@code CustomerListResponseDto} */ - public ApiCustomerAccountListResponseDto listCustomers(@NonNull ListCustomersParameters requestParameters) + public CustomerListResponseDto listCustomers(@NonNull ListCustomersParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListCustomersRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List customers * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listCustomersAsync() - throws ApiError, ValidationException { + public CompletableFuture listCustomersAsync() throws ApiError, ValidationException { return this.listCustomersAsync(ListCustomersParameters.builder().build()); } @@ -74,16 +73,16 @@ public CompletableFuture listCustomersAsync() * List customers * * @param requestParameters {@link ListCustomersParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listCustomersAsync( + public CompletableFuture listCustomersAsync( @NonNull ListCustomersParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListCustomersRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -111,63 +110,60 @@ private Request buildListCustomersRequest(@NonNull ListCustomersParameters reque /** * Create new customer * - * @return response of {@code ApiCustomerAccountGetResponseDto} + * @return response of {@code CustomerGetResponseDto} */ - public ApiCustomerAccountGetResponseDto createNewCustomer() throws ApiError { - return this.createNewCustomer(ApiCustomerAccountSaveRequestDto.builder().build()); + public CustomerGetResponseDto createNewCustomer() throws ApiError { + return this.createNewCustomer(CustomerSaveRequestDto.builder().build()); } /** * Create new customer * - * @param apiCustomerAccountSaveRequestDto {@link ApiCustomerAccountSaveRequestDto} Request Body - * @return response of {@code ApiCustomerAccountGetResponseDto} + * @param customerSaveRequestDto {@link CustomerSaveRequestDto} Request Body + * @return response of {@code CustomerGetResponseDto} */ - public ApiCustomerAccountGetResponseDto createNewCustomer( - @NonNull ApiCustomerAccountSaveRequestDto apiCustomerAccountSaveRequestDto - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewCustomerRequest(apiCustomerAccountSaveRequestDto); + public CustomerGetResponseDto createNewCustomer(@NonNull CustomerSaveRequestDto customerSaveRequestDto) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewCustomerRequest(customerSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create new customer * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewCustomerAsync() throws ApiError { - return this.createNewCustomerAsync(ApiCustomerAccountSaveRequestDto.builder().build()); + public CompletableFuture createNewCustomerAsync() throws ApiError { + return this.createNewCustomerAsync(CustomerSaveRequestDto.builder().build()); } /** * Create new customer * - * @param apiCustomerAccountSaveRequestDto {@link ApiCustomerAccountSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param customerSaveRequestDto {@link CustomerSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewCustomerAsync( - @NonNull ApiCustomerAccountSaveRequestDto apiCustomerAccountSaveRequestDto + public CompletableFuture createNewCustomerAsync( + @NonNull CustomerSaveRequestDto customerSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewCustomerRequest(apiCustomerAccountSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewCustomerRequest(customerSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildCreateNewCustomerRequest( - @NonNull ApiCustomerAccountSaveRequestDto apiCustomerAccountSaveRequestDto - ) { + private Request buildCreateNewCustomerRequest(@NonNull CustomerSaveRequestDto customerSaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/customers" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiCustomerAccountSaveRequestDto) + .setJsonContent(customerSaveRequestDto) .build(); } @@ -175,28 +171,27 @@ private Request buildCreateNewCustomerRequest( * Retrieve a single customer * * @param id String Unique customer identifier in Asaas - * @return response of {@code ApiCustomerAccountGetResponseDto} + * @return response of {@code CustomerGetResponseDto} */ - public ApiCustomerAccountGetResponseDto retrieveASingleCustomer(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CustomerGetResponseDto retrieveASingleCustomer(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleCustomerRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single customer * * @param id String Unique customer identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleCustomerAsync(@NonNull String id) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveASingleCustomerAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleCustomerRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -215,41 +210,41 @@ private Request buildRetrieveASingleCustomerRequest(@NonNull String id) { * Update existing customer * * @param id String Unique identifier of the customer to be updated. - * @param apiCustomerAccountUpdateRequestDto {@link ApiCustomerAccountUpdateRequestDto} Request Body - * @return response of {@code ApiCustomerAccountGetResponseDto} + * @param customerUpdateRequestDto {@link CustomerUpdateRequestDto} Request Body + * @return response of {@code CustomerGetResponseDto} */ - public ApiCustomerAccountGetResponseDto updateExistingCustomer( + public CustomerGetResponseDto updateExistingCustomer( @NonNull String id, - @NonNull ApiCustomerAccountUpdateRequestDto apiCustomerAccountUpdateRequestDto + @NonNull CustomerUpdateRequestDto customerUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingCustomerRequest(id, apiCustomerAccountUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingCustomerRequest(id, customerUpdateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update existing customer * * @param id String Unique identifier of the customer to be updated. - * @param apiCustomerAccountUpdateRequestDto {@link ApiCustomerAccountUpdateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param customerUpdateRequestDto {@link CustomerUpdateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateExistingCustomerAsync( + public CompletableFuture updateExistingCustomerAsync( @NonNull String id, - @NonNull ApiCustomerAccountUpdateRequestDto apiCustomerAccountUpdateRequestDto + @NonNull CustomerUpdateRequestDto customerUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingCustomerRequest(id, apiCustomerAccountUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingCustomerRequest(id, customerUpdateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateExistingCustomerRequest( @NonNull String id, - @NonNull ApiCustomerAccountUpdateRequestDto apiCustomerAccountUpdateRequestDto + @NonNull CustomerUpdateRequestDto customerUpdateRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -258,7 +253,7 @@ private Request buildUpdateExistingCustomerRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiCustomerAccountUpdateRequestDto) + .setJsonContent(customerUpdateRequestDto) .build(); } @@ -266,28 +261,27 @@ private Request buildUpdateExistingCustomerRequest( * Remove Customer * * @param id String Unique identifier of the customer to be removed - * @return response of {@code ApiCustomerAccountDeleteResponseDto} + * @return response of {@code CustomerDeleteResponseDto} */ - public ApiCustomerAccountDeleteResponseDto removeCustomer(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CustomerDeleteResponseDto removeCustomer(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveCustomerRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Remove Customer * * @param id String Unique identifier of the customer to be removed - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture removeCustomerAsync(@NonNull String id) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture removeCustomerAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveCustomerRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -307,14 +301,13 @@ private Request buildRemoveCustomerRequest(@NonNull String id) { * * @param id String Unique identifier of the client to be restored. * @param input Object Request Body - * @return response of {@code ApiCustomerAccountGetResponseDto} + * @return response of {@code CustomerGetResponseDto} */ - public ApiCustomerAccountGetResponseDto restoreRemovedCustomer(@NonNull String id, @NonNull Object input) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CustomerGetResponseDto restoreRemovedCustomer(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRestoreRemovedCustomerRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -322,17 +315,17 @@ public ApiCustomerAccountGetResponseDto restoreRemovedCustomer(@NonNull String i * * @param id String Unique identifier of the client to be restored. * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture restoreRemovedCustomerAsync( + public CompletableFuture restoreRemovedCustomerAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRestoreRemovedCustomerRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -352,28 +345,28 @@ private Request buildRestoreRemovedCustomerRequest(@NonNull String id, @NonNull * Retrieve notifications from a customer * * @param id String Unique customer identifier in Asaas - * @return response of {@code ApiNotificationListResponseDto} + * @return response of {@code NotificationListResponseDto} */ - public ApiNotificationListResponseDto retrieveNotificationsFromACustomer(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public NotificationListResponseDto retrieveNotificationsFromACustomer(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveNotificationsFromACustomerRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve notifications from a customer * * @param id String Unique customer identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveNotificationsFromACustomerAsync(@NonNull String id) + public CompletableFuture retrieveNotificationsFromACustomerAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveNotificationsFromACustomerRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/EscrowAccountService.java b/src/main/java/com/asaas/apisdk/services/EscrowAccountService.java index 5dcb703..19006cd 100644 --- a/src/main/java/com/asaas/apisdk/services/EscrowAccountService.java +++ b/src/main/java/com/asaas/apisdk/services/EscrowAccountService.java @@ -4,13 +4,13 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -33,14 +33,14 @@ public EscrowAccountService(@NonNull OkHttpClient httpClient, AsaasSdkConfig con * * @param id String Unique payment escrow identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto finishPaymentEscrowInTheEscrowAccount(@NonNull String id, @NonNull Object input) + public PaymentGetResponseDto finishPaymentEscrowInTheEscrowAccount(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildFinishPaymentEscrowInTheEscrowAccountRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -48,17 +48,17 @@ public ApiPaymentGetResponseDto finishPaymentEscrowInTheEscrowAccount(@NonNull S * * @param id String Unique payment escrow identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture finishPaymentEscrowInTheEscrowAccountAsync( + public CompletableFuture finishPaymentEscrowInTheEscrowAccountAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildFinishPaymentEscrowInTheEscrowAccountRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/FinanceService.java b/src/main/java/com/asaas/apisdk/services/FinanceService.java index 6d779b6..9e615a6 100644 --- a/src/main/java/com/asaas/apisdk/services/FinanceService.java +++ b/src/main/java/com/asaas/apisdk/services/FinanceService.java @@ -4,16 +4,16 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiFinanceBalanceResponseDto; -import com.asaas.apisdk.models.ApiFinanceGetPaymentStatisticsResponseDto; -import com.asaas.apisdk.models.ApiFinanceGetSplitStatisticsResponseDto; import com.asaas.apisdk.models.BillingStatisticsParameters; +import com.asaas.apisdk.models.ErrorResponseDto; +import com.asaas.apisdk.models.FinanceBalanceResponseDto; +import com.asaas.apisdk.models.FinanceGetPaymentStatisticsResponseDto; +import com.asaas.apisdk.models.FinanceGetSplitStatisticsResponseDto; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -34,26 +34,26 @@ public FinanceService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config) { /** * Retrieve account balance * - * @return response of {@code ApiFinanceBalanceResponseDto} + * @return response of {@code FinanceBalanceResponseDto} */ - public ApiFinanceBalanceResponseDto retrieveAccountBalance() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public FinanceBalanceResponseDto retrieveAccountBalance() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveAccountBalanceRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve account balance * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveAccountBalanceAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveAccountBalanceAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveAccountBalanceRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -70,9 +70,9 @@ private Request buildRetrieveAccountBalanceRequest() { /** * Collections statistics * - * @return response of {@code ApiFinanceGetPaymentStatisticsResponseDto} + * @return response of {@code FinanceGetPaymentStatisticsResponseDto} */ - public ApiFinanceGetPaymentStatisticsResponseDto billingStatistics() throws ApiError { + public FinanceGetPaymentStatisticsResponseDto billingStatistics() throws ApiError { return this.billingStatistics(BillingStatisticsParameters.builder().build()); } @@ -80,23 +80,23 @@ public ApiFinanceGetPaymentStatisticsResponseDto billingStatistics() throws ApiE * Collections statistics * * @param requestParameters {@link BillingStatisticsParameters} Request Parameters Object - * @return response of {@code ApiFinanceGetPaymentStatisticsResponseDto} + * @return response of {@code FinanceGetPaymentStatisticsResponseDto} */ - public ApiFinanceGetPaymentStatisticsResponseDto billingStatistics( + public FinanceGetPaymentStatisticsResponseDto billingStatistics( @NonNull BillingStatisticsParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildBillingStatisticsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Collections statistics * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture billingStatisticsAsync() throws ApiError { + public CompletableFuture billingStatisticsAsync() throws ApiError { return this.billingStatisticsAsync(BillingStatisticsParameters.builder().build()); } @@ -104,16 +104,16 @@ public CompletableFuture billingStati * Collections statistics * * @param requestParameters {@link BillingStatisticsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture billingStatisticsAsync( + public CompletableFuture billingStatisticsAsync( @NonNull BillingStatisticsParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildBillingStatisticsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -145,26 +145,26 @@ private Request buildBillingStatisticsRequest(@NonNull BillingStatisticsParamete /** * Retrieve split values * - * @return response of {@code ApiFinanceGetSplitStatisticsResponseDto} + * @return response of {@code FinanceGetSplitStatisticsResponseDto} */ - public ApiFinanceGetSplitStatisticsResponseDto retrieveSplitValues() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public FinanceGetSplitStatisticsResponseDto retrieveSplitValues() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveSplitValuesRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve split values * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveSplitValuesAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveSplitValuesAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveSplitValuesRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/FinancialTransactionService.java b/src/main/java/com/asaas/apisdk/services/FinancialTransactionService.java index 2b70032..4fb81a4 100644 --- a/src/main/java/com/asaas/apisdk/services/FinancialTransactionService.java +++ b/src/main/java/com/asaas/apisdk/services/FinancialTransactionService.java @@ -4,13 +4,13 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiFinancialTransactionListResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; +import com.asaas.apisdk.models.FinancialTransactionListResponseDto; import com.asaas.apisdk.models.RetrieveExtractParameters; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; @@ -35,9 +35,9 @@ public FinancialTransactionService(@NonNull OkHttpClient httpClient, AsaasSdkCon /** * Retrieve extract * - * @return response of {@code ApiFinancialTransactionListResponseDto} + * @return response of {@code FinancialTransactionListResponseDto} */ - public ApiFinancialTransactionListResponseDto retrieveExtract() throws ApiError, ValidationException { + public FinancialTransactionListResponseDto retrieveExtract() throws ApiError, ValidationException { return this.retrieveExtract(RetrieveExtractParameters.builder().build()); } @@ -45,22 +45,22 @@ public ApiFinancialTransactionListResponseDto retrieveExtract() throws ApiError, * Retrieve extract * * @param requestParameters {@link RetrieveExtractParameters} Request Parameters Object - * @return response of {@code ApiFinancialTransactionListResponseDto} + * @return response of {@code FinancialTransactionListResponseDto} */ - public ApiFinancialTransactionListResponseDto retrieveExtract(@NonNull RetrieveExtractParameters requestParameters) + public FinancialTransactionListResponseDto retrieveExtract(@NonNull RetrieveExtractParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveExtractRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve extract * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveExtractAsync() + public CompletableFuture retrieveExtractAsync() throws ApiError, ValidationException { return this.retrieveExtractAsync(RetrieveExtractParameters.builder().build()); } @@ -69,16 +69,16 @@ public CompletableFuture retrieveExtract * Retrieve extract * * @param requestParameters {@link RetrieveExtractParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveExtractAsync( + public CompletableFuture retrieveExtractAsync( @NonNull RetrieveExtractParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveExtractRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/FiscalInfoService.java b/src/main/java/com/asaas/apisdk/services/FiscalInfoService.java index 8b4d076..9217ac2 100644 --- a/src/main/java/com/asaas/apisdk/services/FiscalInfoService.java +++ b/src/main/java/com/asaas/apisdk/services/FiscalInfoService.java @@ -4,19 +4,19 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoListMunicipalServicesResponseDto; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoSaveRequestDto; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto; -import com.asaas.apisdk.models.ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; +import com.asaas.apisdk.models.FiscalInfoGetResponseDto; +import com.asaas.apisdk.models.FiscalInfoListInvoiceNbsCodesResponseDto; +import com.asaas.apisdk.models.FiscalInfoListMunicipalServicesResponseDto; +import com.asaas.apisdk.models.FiscalInfoMunicipalOptionsGetResponseDto; +import com.asaas.apisdk.models.FiscalInfoSaveRequestDto; +import com.asaas.apisdk.models.FiscalInfoUpdateUseNationalPortalRequestDto; +import com.asaas.apisdk.models.FiscalInfoUpdateUseNationalPortalResponseDto; import com.asaas.apisdk.models.ListMunicipalServicesParameters; import com.asaas.apisdk.models.ListNbsCodesParameters; import com.asaas.apisdk.validation.ViolationAggregator; @@ -46,30 +46,27 @@ public FiscalInfoService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config /** * List municipal configurations * - * @return response of {@code ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto} + * @return response of {@code FiscalInfoMunicipalOptionsGetResponseDto} */ - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto listMunicipalConfigurations() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public FiscalInfoMunicipalOptionsGetResponseDto listMunicipalConfigurations() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListMunicipalConfigurationsRequest(); Response response = this.execute(request); - return ModelConverter.convert( - response, - new TypeReference() {} - ); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List municipal configurations * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listMunicipalConfigurationsAsync() + public CompletableFuture listMunicipalConfigurationsAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListMunicipalConfigurationsRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -86,26 +83,26 @@ private Request buildListMunicipalConfigurationsRequest() { /** * Retrieve tax information * - * @return response of {@code ApiCustomerFiscalInfoGetResponseDto} + * @return response of {@code FiscalInfoGetResponseDto} */ - public ApiCustomerFiscalInfoGetResponseDto retrieveTaxInformation() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public FiscalInfoGetResponseDto retrieveTaxInformation() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveTaxInformationRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve tax information * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveTaxInformationAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveTaxInformationAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveTaxInformationRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -122,84 +119,78 @@ private Request buildRetrieveTaxInformationRequest() { /** * Create and update tax information * - * @param apiCustomerFiscalInfoSaveRequestDto {@link ApiCustomerFiscalInfoSaveRequestDto} Request Body + * @param fiscalInfoSaveRequestDto {@link FiscalInfoSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code ApiCustomerFiscalInfoGetResponseDto} + * @return response of {@code FiscalInfoGetResponseDto} */ - public ApiCustomerFiscalInfoGetResponseDto createAndUpdateTaxInformation( - @NonNull ApiCustomerFiscalInfoSaveRequestDto apiCustomerFiscalInfoSaveRequestDto, + public FiscalInfoGetResponseDto createAndUpdateTaxInformation( + @NonNull FiscalInfoSaveRequestDto fiscalInfoSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateAndUpdateTaxInformationRequest(apiCustomerFiscalInfoSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateAndUpdateTaxInformationRequest(fiscalInfoSaveRequestDto, _filename); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create and update tax information * - * @param apiCustomerFiscalInfoSaveRequestDto {@link ApiCustomerFiscalInfoSaveRequestDto} Request Body + * @param fiscalInfoSaveRequestDto {@link FiscalInfoSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createAndUpdateTaxInformationAsync( - @NonNull ApiCustomerFiscalInfoSaveRequestDto apiCustomerFiscalInfoSaveRequestDto, + public CompletableFuture createAndUpdateTaxInformationAsync( + @NonNull FiscalInfoSaveRequestDto fiscalInfoSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateAndUpdateTaxInformationRequest(apiCustomerFiscalInfoSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateAndUpdateTaxInformationRequest(fiscalInfoSaveRequestDto, _filename); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildCreateAndUpdateTaxInformationRequest( - @NonNull ApiCustomerFiscalInfoSaveRequestDto apiCustomerFiscalInfoSaveRequestDto, + @NonNull FiscalInfoSaveRequestDto fiscalInfoSaveRequestDto, @NonNull String _filename ) { MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder() .setType(MultipartBody.FORM) - .addFormDataPart("email", apiCustomerFiscalInfoSaveRequestDto.getEmail()) - .addFormDataPart("municipalInscription", apiCustomerFiscalInfoSaveRequestDto.getMunicipalInscription()) - .addFormDataPart("simplesNacional", apiCustomerFiscalInfoSaveRequestDto.getSimplesNacional().toString()) - .addFormDataPart("cnae", apiCustomerFiscalInfoSaveRequestDto.getCnae()) - .addFormDataPart("specialTaxRegime", apiCustomerFiscalInfoSaveRequestDto.getSpecialTaxRegime()) - .addFormDataPart("serviceListItem", apiCustomerFiscalInfoSaveRequestDto.getServiceListItem()) - .addFormDataPart("nbsCode", apiCustomerFiscalInfoSaveRequestDto.getNbsCode()) - .addFormDataPart("rpsSerie", apiCustomerFiscalInfoSaveRequestDto.getRpsSerie()) - .addFormDataPart("username", apiCustomerFiscalInfoSaveRequestDto.getUsername()) - .addFormDataPart("password", apiCustomerFiscalInfoSaveRequestDto.getPassword()) - .addFormDataPart("accessToken", apiCustomerFiscalInfoSaveRequestDto.getAccessToken()) - .addFormDataPart("certificatePassword", apiCustomerFiscalInfoSaveRequestDto.getCertificatePassword()) + .addFormDataPart("email", fiscalInfoSaveRequestDto.getEmail()) + .addFormDataPart("municipalInscription", fiscalInfoSaveRequestDto.getMunicipalInscription()) + .addFormDataPart("simplesNacional", fiscalInfoSaveRequestDto.getSimplesNacional().toString()) + .addFormDataPart("cnae", fiscalInfoSaveRequestDto.getCnae()) + .addFormDataPart("specialTaxRegime", fiscalInfoSaveRequestDto.getSpecialTaxRegime()) + .addFormDataPart("serviceListItem", fiscalInfoSaveRequestDto.getServiceListItem()) + .addFormDataPart("nbsCode", fiscalInfoSaveRequestDto.getNbsCode()) + .addFormDataPart("rpsSerie", fiscalInfoSaveRequestDto.getRpsSerie()) + .addFormDataPart("username", fiscalInfoSaveRequestDto.getUsername()) + .addFormDataPart("password", fiscalInfoSaveRequestDto.getPassword()) + .addFormDataPart("accessToken", fiscalInfoSaveRequestDto.getAccessToken()) + .addFormDataPart("certificatePassword", fiscalInfoSaveRequestDto.getCertificatePassword()) .addFormDataPart( "nationalPortalTaxCalculationRegime", - apiCustomerFiscalInfoSaveRequestDto.getNationalPortalTaxCalculationRegime() + fiscalInfoSaveRequestDto.getNationalPortalTaxCalculationRegime() ); - if (apiCustomerFiscalInfoSaveRequestDto.getCulturalProjectsPromoter() != null) { + if (fiscalInfoSaveRequestDto.getCulturalProjectsPromoter() != null) { multipartBodyBuilder.addFormDataPart( "culturalProjectsPromoter", - apiCustomerFiscalInfoSaveRequestDto.getCulturalProjectsPromoter().toString() + fiscalInfoSaveRequestDto.getCulturalProjectsPromoter().toString() ); } - if (apiCustomerFiscalInfoSaveRequestDto.getRpsNumber() != null) { - multipartBodyBuilder.addFormDataPart("rpsNumber", apiCustomerFiscalInfoSaveRequestDto.getRpsNumber().toString()); + if (fiscalInfoSaveRequestDto.getRpsNumber() != null) { + multipartBodyBuilder.addFormDataPart("rpsNumber", fiscalInfoSaveRequestDto.getRpsNumber().toString()); } - if (apiCustomerFiscalInfoSaveRequestDto.getLoteNumber() != null) { - multipartBodyBuilder.addFormDataPart( - "loteNumber", - apiCustomerFiscalInfoSaveRequestDto.getLoteNumber().toString() - ); + if (fiscalInfoSaveRequestDto.getLoteNumber() != null) { + multipartBodyBuilder.addFormDataPart("loteNumber", fiscalInfoSaveRequestDto.getLoteNumber().toString()); } - if (apiCustomerFiscalInfoSaveRequestDto.getCertificateFile() != null) { + if (fiscalInfoSaveRequestDto.getCertificateFile() != null) { multipartBodyBuilder.addFormDataPart( "certificateFile", _filename, - RequestBody.create( - apiCustomerFiscalInfoSaveRequestDto.getCertificateFile(), - MediaType.parse("application/octet-stream") - ) + RequestBody.create(fiscalInfoSaveRequestDto.getCertificateFile(), MediaType.parse("application/octet-stream")) ); } return new RequestBuilder( @@ -215,10 +206,9 @@ private Request buildCreateAndUpdateTaxInformationRequest( /** * List municipal services * - * @return response of {@code ApiCustomerFiscalInfoListMunicipalServicesResponseDto} + * @return response of {@code FiscalInfoListMunicipalServicesResponseDto} */ - public ApiCustomerFiscalInfoListMunicipalServicesResponseDto listMunicipalServices() - throws ApiError, ValidationException { + public FiscalInfoListMunicipalServicesResponseDto listMunicipalServices() throws ApiError, ValidationException { return this.listMunicipalServices(ListMunicipalServicesParameters.builder().build()); } @@ -226,26 +216,23 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDto listMunicipalServic * List municipal services * * @param requestParameters {@link ListMunicipalServicesParameters} Request Parameters Object - * @return response of {@code ApiCustomerFiscalInfoListMunicipalServicesResponseDto} + * @return response of {@code FiscalInfoListMunicipalServicesResponseDto} */ - public ApiCustomerFiscalInfoListMunicipalServicesResponseDto listMunicipalServices( + public FiscalInfoListMunicipalServicesResponseDto listMunicipalServices( @NonNull ListMunicipalServicesParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListMunicipalServicesRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert( - response, - new TypeReference() {} - ); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List municipal services * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listMunicipalServicesAsync() + public CompletableFuture listMunicipalServicesAsync() throws ApiError, ValidationException { return this.listMunicipalServicesAsync(ListMunicipalServicesParameters.builder().build()); } @@ -254,16 +241,16 @@ public CompletableFuture * List municipal services * * @param requestParameters {@link ListMunicipalServicesParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listMunicipalServicesAsync( + public CompletableFuture listMunicipalServicesAsync( @NonNull ListMunicipalServicesParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListMunicipalServicesRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -287,9 +274,9 @@ private Request buildListMunicipalServicesRequest(@NonNull ListMunicipalServices /** * List NBS codes * - * @return response of {@code ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto} + * @return response of {@code FiscalInfoListInvoiceNbsCodesResponseDto} */ - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto listNbsCodes() throws ApiError, ValidationException { + public FiscalInfoListInvoiceNbsCodesResponseDto listNbsCodes() throws ApiError, ValidationException { return this.listNbsCodes(ListNbsCodesParameters.builder().build()); } @@ -297,26 +284,22 @@ public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto listNbsCodes() throws * List NBS codes * * @param requestParameters {@link ListNbsCodesParameters} Request Parameters Object - * @return response of {@code ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto} + * @return response of {@code FiscalInfoListInvoiceNbsCodesResponseDto} */ - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto listNbsCodes( - @NonNull ListNbsCodesParameters requestParameters - ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public FiscalInfoListInvoiceNbsCodesResponseDto listNbsCodes(@NonNull ListNbsCodesParameters requestParameters) + throws ApiError, ValidationException { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListNbsCodesRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert( - response, - new TypeReference() {} - ); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List NBS codes * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listNbsCodesAsync() + public CompletableFuture listNbsCodesAsync() throws ApiError, ValidationException { return this.listNbsCodesAsync(ListNbsCodesParameters.builder().build()); } @@ -325,16 +308,16 @@ public CompletableFuture li * List NBS codes * * @param requestParameters {@link ListNbsCodesParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listNbsCodesAsync( + public CompletableFuture listNbsCodesAsync( @NonNull ListNbsCodesParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListNbsCodesRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -358,64 +341,56 @@ private Request buildListNbsCodesRequest(@NonNull ListNbsCodesParameters request /** * Configure invoice issuing portal * - * @return response of {@code ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto} + * @return response of {@code FiscalInfoUpdateUseNationalPortalResponseDto} */ - public ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto configureInvoiceIssuingPortal() throws ApiError { - return this.configureInvoiceIssuingPortal(ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.builder().build()); + public FiscalInfoUpdateUseNationalPortalResponseDto configureInvoiceIssuingPortal() throws ApiError { + return this.configureInvoiceIssuingPortal(FiscalInfoUpdateUseNationalPortalRequestDto.builder().build()); } /** * Configure invoice issuing portal * - * @param apiCustomerFiscalInfoUpdateUseNationalPortalRequestDto {@link ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto} Request Body - * @return response of {@code ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto} + * @param fiscalInfoUpdateUseNationalPortalRequestDto {@link FiscalInfoUpdateUseNationalPortalRequestDto} Request Body + * @return response of {@code FiscalInfoUpdateUseNationalPortalResponseDto} */ - public ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto configureInvoiceIssuingPortal( - @NonNull ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto apiCustomerFiscalInfoUpdateUseNationalPortalRequestDto + public FiscalInfoUpdateUseNationalPortalResponseDto configureInvoiceIssuingPortal( + @NonNull FiscalInfoUpdateUseNationalPortalRequestDto fiscalInfoUpdateUseNationalPortalRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = - this.buildConfigureInvoiceIssuingPortalRequest(apiCustomerFiscalInfoUpdateUseNationalPortalRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildConfigureInvoiceIssuingPortalRequest(fiscalInfoUpdateUseNationalPortalRequestDto); Response response = this.execute(request); - return ModelConverter.convert( - response, - new TypeReference() {} - ); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Configure invoice issuing portal * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture< - ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto - > configureInvoiceIssuingPortalAsync() throws ApiError { - return this.configureInvoiceIssuingPortalAsync( - ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.builder().build() - ); + public CompletableFuture configureInvoiceIssuingPortalAsync() + throws ApiError { + return this.configureInvoiceIssuingPortalAsync(FiscalInfoUpdateUseNationalPortalRequestDto.builder().build()); } /** * Configure invoice issuing portal * - * @param apiCustomerFiscalInfoUpdateUseNationalPortalRequestDto {@link ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param fiscalInfoUpdateUseNationalPortalRequestDto {@link FiscalInfoUpdateUseNationalPortalRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture configureInvoiceIssuingPortalAsync( - @NonNull ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto apiCustomerFiscalInfoUpdateUseNationalPortalRequestDto + public CompletableFuture configureInvoiceIssuingPortalAsync( + @NonNull FiscalInfoUpdateUseNationalPortalRequestDto fiscalInfoUpdateUseNationalPortalRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = - this.buildConfigureInvoiceIssuingPortalRequest(apiCustomerFiscalInfoUpdateUseNationalPortalRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildConfigureInvoiceIssuingPortalRequest(fiscalInfoUpdateUseNationalPortalRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildConfigureInvoiceIssuingPortalRequest( - @NonNull ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto apiCustomerFiscalInfoUpdateUseNationalPortalRequestDto + @NonNull FiscalInfoUpdateUseNationalPortalRequestDto fiscalInfoUpdateUseNationalPortalRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -423,7 +398,7 @@ private Request buildConfigureInvoiceIssuingPortalRequest( "v3/fiscalInfo/nationalPortal" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiCustomerFiscalInfoUpdateUseNationalPortalRequestDto) + .setJsonContent(fiscalInfoUpdateUseNationalPortalRequestDto) .build(); } } diff --git a/src/main/java/com/asaas/apisdk/services/InstallmentService.java b/src/main/java/com/asaas/apisdk/services/InstallmentService.java index f067f4e..3852f07 100644 --- a/src/main/java/com/asaas/apisdk/services/InstallmentService.java +++ b/src/main/java/com/asaas/apisdk/services/InstallmentService.java @@ -4,23 +4,24 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiInstallmentDeleteResponseDto; -import com.asaas.apisdk.models.ApiInstallmentGetResponseDto; -import com.asaas.apisdk.models.ApiInstallmentListResponseDto; -import com.asaas.apisdk.models.ApiInstallmentSaveRequestDto; -import com.asaas.apisdk.models.ApiInstallmentSaveWithCreditCardRequestDto; -import com.asaas.apisdk.models.ApiInstallmentUpdateSplitRequestDto; -import com.asaas.apisdk.models.ApiInstallmentUpdateSplitResponseDto; -import com.asaas.apisdk.models.ApiPaymentListResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.GenerateInstallmentBookletParameters; +import com.asaas.apisdk.models.InstallmentDeleteResponseDto; +import com.asaas.apisdk.models.InstallmentGetResponseDto; +import com.asaas.apisdk.models.InstallmentListResponseDto; +import com.asaas.apisdk.models.InstallmentPaymentBookResponseDto; +import com.asaas.apisdk.models.InstallmentSaveRequestDto; +import com.asaas.apisdk.models.InstallmentSaveWithCreditCardRequestDto; +import com.asaas.apisdk.models.InstallmentUpdateSplitRequestDto; +import com.asaas.apisdk.models.InstallmentUpdateSplitResponseDto; import com.asaas.apisdk.models.ListInstallmentsParameters; import com.asaas.apisdk.models.ListPaymentsOfAInstallmentParameters; +import com.asaas.apisdk.models.PaymentListResponseDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListInstallmentsParametersValidator; @@ -44,9 +45,9 @@ public InstallmentService(@NonNull OkHttpClient httpClient, AsaasSdkConfig confi /** * List installments * - * @return response of {@code ApiInstallmentListResponseDto} + * @return response of {@code InstallmentListResponseDto} */ - public ApiInstallmentListResponseDto listInstallments() throws ApiError, ValidationException { + public InstallmentListResponseDto listInstallments() throws ApiError, ValidationException { return this.listInstallments(ListInstallmentsParameters.builder().build()); } @@ -54,22 +55,22 @@ public ApiInstallmentListResponseDto listInstallments() throws ApiError, Validat * List installments * * @param requestParameters {@link ListInstallmentsParameters} Request Parameters Object - * @return response of {@code ApiInstallmentListResponseDto} + * @return response of {@code InstallmentListResponseDto} */ - public ApiInstallmentListResponseDto listInstallments(@NonNull ListInstallmentsParameters requestParameters) + public InstallmentListResponseDto listInstallments(@NonNull ListInstallmentsParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListInstallmentsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List installments * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listInstallmentsAsync() throws ApiError, ValidationException { + public CompletableFuture listInstallmentsAsync() throws ApiError, ValidationException { return this.listInstallmentsAsync(ListInstallmentsParameters.builder().build()); } @@ -77,16 +78,16 @@ public CompletableFuture listInstallmentsAsync() * List installments * * @param requestParameters {@link ListInstallmentsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listInstallmentsAsync( + public CompletableFuture listInstallmentsAsync( @NonNull ListInstallmentsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListInstallmentsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -109,116 +110,115 @@ private Request buildListInstallmentsRequest(@NonNull ListInstallmentsParameters /** * Create Installment * - * @return response of {@code ApiInstallmentGetResponseDto} + * @return response of {@code InstallmentGetResponseDto} */ - public ApiInstallmentGetResponseDto createInstallment() throws ApiError { - return this.createInstallment(ApiInstallmentSaveRequestDto.builder().build()); + public InstallmentGetResponseDto createInstallment() throws ApiError { + return this.createInstallment(InstallmentSaveRequestDto.builder().build()); } /** * Create Installment * - * @param apiInstallmentSaveRequestDto {@link ApiInstallmentSaveRequestDto} Request Body - * @return response of {@code ApiInstallmentGetResponseDto} + * @param installmentSaveRequestDto {@link InstallmentSaveRequestDto} Request Body + * @return response of {@code InstallmentGetResponseDto} */ - public ApiInstallmentGetResponseDto createInstallment( - @NonNull ApiInstallmentSaveRequestDto apiInstallmentSaveRequestDto - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateInstallmentRequest(apiInstallmentSaveRequestDto); + public InstallmentGetResponseDto createInstallment(@NonNull InstallmentSaveRequestDto installmentSaveRequestDto) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateInstallmentRequest(installmentSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create Installment * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createInstallmentAsync() throws ApiError { - return this.createInstallmentAsync(ApiInstallmentSaveRequestDto.builder().build()); + public CompletableFuture createInstallmentAsync() throws ApiError { + return this.createInstallmentAsync(InstallmentSaveRequestDto.builder().build()); } /** * Create Installment * - * @param apiInstallmentSaveRequestDto {@link ApiInstallmentSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param installmentSaveRequestDto {@link InstallmentSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createInstallmentAsync( - @NonNull ApiInstallmentSaveRequestDto apiInstallmentSaveRequestDto + public CompletableFuture createInstallmentAsync( + @NonNull InstallmentSaveRequestDto installmentSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateInstallmentRequest(apiInstallmentSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateInstallmentRequest(installmentSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildCreateInstallmentRequest(@NonNull ApiInstallmentSaveRequestDto apiInstallmentSaveRequestDto) { + private Request buildCreateInstallmentRequest(@NonNull InstallmentSaveRequestDto installmentSaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/installments" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiInstallmentSaveRequestDto) + .setJsonContent(installmentSaveRequestDto) .build(); } /** * Create Installment with credit card * - * @return response of {@code ApiInstallmentGetResponseDto} + * @return response of {@code InstallmentGetResponseDto} */ - public ApiInstallmentGetResponseDto createInstallmentWithCreditCard() throws ApiError { - return this.createInstallmentWithCreditCard(ApiInstallmentSaveWithCreditCardRequestDto.builder().build()); + public InstallmentGetResponseDto createInstallmentWithCreditCard() throws ApiError { + return this.createInstallmentWithCreditCard(InstallmentSaveWithCreditCardRequestDto.builder().build()); } /** * Create Installment with credit card * - * @param apiInstallmentSaveWithCreditCardRequestDto {@link ApiInstallmentSaveWithCreditCardRequestDto} Request Body - * @return response of {@code ApiInstallmentGetResponseDto} + * @param installmentSaveWithCreditCardRequestDto {@link InstallmentSaveWithCreditCardRequestDto} Request Body + * @return response of {@code InstallmentGetResponseDto} */ - public ApiInstallmentGetResponseDto createInstallmentWithCreditCard( - @NonNull ApiInstallmentSaveWithCreditCardRequestDto apiInstallmentSaveWithCreditCardRequestDto + public InstallmentGetResponseDto createInstallmentWithCreditCard( + @NonNull InstallmentSaveWithCreditCardRequestDto installmentSaveWithCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateInstallmentWithCreditCardRequest(apiInstallmentSaveWithCreditCardRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateInstallmentWithCreditCardRequest(installmentSaveWithCreditCardRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create Installment with credit card * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createInstallmentWithCreditCardAsync() throws ApiError { - return this.createInstallmentWithCreditCardAsync(ApiInstallmentSaveWithCreditCardRequestDto.builder().build()); + public CompletableFuture createInstallmentWithCreditCardAsync() throws ApiError { + return this.createInstallmentWithCreditCardAsync(InstallmentSaveWithCreditCardRequestDto.builder().build()); } /** * Create Installment with credit card * - * @param apiInstallmentSaveWithCreditCardRequestDto {@link ApiInstallmentSaveWithCreditCardRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param installmentSaveWithCreditCardRequestDto {@link InstallmentSaveWithCreditCardRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createInstallmentWithCreditCardAsync( - @NonNull ApiInstallmentSaveWithCreditCardRequestDto apiInstallmentSaveWithCreditCardRequestDto + public CompletableFuture createInstallmentWithCreditCardAsync( + @NonNull InstallmentSaveWithCreditCardRequestDto installmentSaveWithCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateInstallmentWithCreditCardRequest(apiInstallmentSaveWithCreditCardRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateInstallmentWithCreditCardRequest(installmentSaveWithCreditCardRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildCreateInstallmentWithCreditCardRequest( - @NonNull ApiInstallmentSaveWithCreditCardRequestDto apiInstallmentSaveWithCreditCardRequestDto + @NonNull InstallmentSaveWithCreditCardRequestDto installmentSaveWithCreditCardRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -226,7 +226,7 @@ private Request buildCreateInstallmentWithCreditCardRequest( "v3/installments/" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiInstallmentSaveWithCreditCardRequestDto) + .setJsonContent(installmentSaveWithCreditCardRequestDto) .build(); } @@ -234,28 +234,28 @@ private Request buildCreateInstallmentWithCreditCardRequest( * Retrieve a single installment * * @param id String Unique installment identifier in Asaas - * @return response of {@code ApiInstallmentGetResponseDto} + * @return response of {@code InstallmentGetResponseDto} */ - public ApiInstallmentGetResponseDto retrieveASingleInstallment(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public InstallmentGetResponseDto retrieveASingleInstallment(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleInstallmentRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single installment * * @param id String Unique installment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleInstallmentAsync(@NonNull String id) + public CompletableFuture retrieveASingleInstallmentAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleInstallmentRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -274,27 +274,27 @@ private Request buildRetrieveASingleInstallmentRequest(@NonNull String id) { * Remove installment * * @param id String Unique identifier of the installment to be removed. - * @return response of {@code ApiInstallmentDeleteResponseDto} + * @return response of {@code InstallmentDeleteResponseDto} */ - public ApiInstallmentDeleteResponseDto removeInstallment(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public InstallmentDeleteResponseDto removeInstallment(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveInstallmentRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Remove installment * * @param id String Unique identifier of the installment to be removed. - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture removeInstallmentAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture removeInstallmentAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveInstallmentRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -314,16 +314,16 @@ private Request buildRemoveInstallmentRequest(@NonNull String id) { * * @param id String Unique installment identifier in Asaas * @param requestParameters {@link ListPaymentsOfAInstallmentParameters} Request Parameters Object - * @return response of {@code ApiPaymentListResponseDto} + * @return response of {@code PaymentListResponseDto} */ - public ApiPaymentListResponseDto listPaymentsOfAInstallment( + public PaymentListResponseDto listPaymentsOfAInstallment( @NonNull String id, @NonNull ListPaymentsOfAInstallmentParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsOfAInstallmentRequest(id, requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -331,17 +331,17 @@ public ApiPaymentListResponseDto listPaymentsOfAInstallment( * * @param id String Unique installment identifier in Asaas * @param requestParameters {@link ListPaymentsOfAInstallmentParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaymentsOfAInstallmentAsync( + public CompletableFuture listPaymentsOfAInstallmentAsync( @NonNull String id, @NonNull ListPaymentsOfAInstallmentParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsOfAInstallmentRequest(id, requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -367,16 +367,16 @@ private Request buildListPaymentsOfAInstallmentRequest( * * @param id String Unique installment identifier in Asaas * @param requestParameters {@link GenerateInstallmentBookletParameters} Request Parameters Object - * @return response of {@code Object} + * @return response of {@code InstallmentPaymentBookResponseDto} */ - public Object generateInstallmentBooklet( + public InstallmentPaymentBookResponseDto generateInstallmentBooklet( @NonNull String id, @NonNull GenerateInstallmentBookletParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildGenerateInstallmentBookletRequest(id, requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -384,16 +384,18 @@ public Object generateInstallmentBooklet( * * @param id String Unique installment identifier in Asaas * @param requestParameters {@link GenerateInstallmentBookletParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture generateInstallmentBookletAsync( + public CompletableFuture generateInstallmentBookletAsync( @NonNull String id, @NonNull GenerateInstallmentBookletParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildGenerateInstallmentBookletRequest(id, requestParameters); CompletableFuture futureResponse = this.executeAsync(request); - return futureResponse.thenApplyAsync(response -> ModelConverter.convert(response, new TypeReference() {})); + return futureResponse.thenApplyAsync(response -> + ModelConverter.convert(response, new TypeReference() {}) + ); } private Request buildGenerateInstallmentBookletRequest( @@ -417,13 +419,13 @@ private Request buildGenerateInstallmentBookletRequest( * * @param id String Unique identifier of the installment to be refunded. * @param input Object Request Body - * @return response of {@code ApiInstallmentGetResponseDto} + * @return response of {@code InstallmentGetResponseDto} */ - public ApiInstallmentGetResponseDto refundInstallment(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public InstallmentGetResponseDto refundInstallment(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRefundInstallmentRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -431,17 +433,15 @@ public ApiInstallmentGetResponseDto refundInstallment(@NonNull String id, @NonNu * * @param id String Unique identifier of the installment to be refunded. * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture refundInstallmentAsync( - @NonNull String id, - @NonNull Object input - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture refundInstallmentAsync(@NonNull String id, @NonNull Object input) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRefundInstallmentRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -461,41 +461,41 @@ private Request buildRefundInstallmentRequest(@NonNull String id, @NonNull Objec * Update installment splits * * @param id String Installment ID - * @param apiInstallmentUpdateSplitRequestDto {@link ApiInstallmentUpdateSplitRequestDto} Request Body - * @return response of {@code ApiInstallmentUpdateSplitResponseDto} + * @param installmentUpdateSplitRequestDto {@link InstallmentUpdateSplitRequestDto} Request Body + * @return response of {@code InstallmentUpdateSplitResponseDto} */ - public ApiInstallmentUpdateSplitResponseDto updateInstallmentSplits( + public InstallmentUpdateSplitResponseDto updateInstallmentSplits( @NonNull String id, - @NonNull ApiInstallmentUpdateSplitRequestDto apiInstallmentUpdateSplitRequestDto + @NonNull InstallmentUpdateSplitRequestDto installmentUpdateSplitRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateInstallmentSplitsRequest(id, apiInstallmentUpdateSplitRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateInstallmentSplitsRequest(id, installmentUpdateSplitRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update installment splits * * @param id String Installment ID - * @param apiInstallmentUpdateSplitRequestDto {@link ApiInstallmentUpdateSplitRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param installmentUpdateSplitRequestDto {@link InstallmentUpdateSplitRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateInstallmentSplitsAsync( + public CompletableFuture updateInstallmentSplitsAsync( @NonNull String id, - @NonNull ApiInstallmentUpdateSplitRequestDto apiInstallmentUpdateSplitRequestDto + @NonNull InstallmentUpdateSplitRequestDto installmentUpdateSplitRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateInstallmentSplitsRequest(id, apiInstallmentUpdateSplitRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateInstallmentSplitsRequest(id, installmentUpdateSplitRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateInstallmentSplitsRequest( @NonNull String id, - @NonNull ApiInstallmentUpdateSplitRequestDto apiInstallmentUpdateSplitRequestDto + @NonNull InstallmentUpdateSplitRequestDto installmentUpdateSplitRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -504,7 +504,7 @@ private Request buildUpdateInstallmentSplitsRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiInstallmentUpdateSplitRequestDto) + .setJsonContent(installmentUpdateSplitRequestDto) .build(); } } diff --git a/src/main/java/com/asaas/apisdk/services/InvoiceService.java b/src/main/java/com/asaas/apisdk/services/InvoiceService.java index e49760f..506b828 100644 --- a/src/main/java/com/asaas/apisdk/services/InvoiceService.java +++ b/src/main/java/com/asaas/apisdk/services/InvoiceService.java @@ -4,17 +4,17 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiCustomerInvoiceCancelRequestDto; -import com.asaas.apisdk.models.ApiCustomerInvoiceGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerInvoiceListResponseDto; -import com.asaas.apisdk.models.ApiCustomerInvoiceSaveRequestDto; -import com.asaas.apisdk.models.ApiCustomerInvoiceUpdateRequestDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; +import com.asaas.apisdk.models.InvoiceCancelRequestDto; +import com.asaas.apisdk.models.InvoiceGetResponseDto; +import com.asaas.apisdk.models.InvoiceListResponseDto; +import com.asaas.apisdk.models.InvoiceSaveRequestDto; +import com.asaas.apisdk.models.InvoiceUpdateRequestDto; import com.asaas.apisdk.models.ListInvoicesParameters; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; @@ -39,9 +39,9 @@ public InvoiceService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config) { /** * List invoices * - * @return response of {@code ApiCustomerInvoiceListResponseDto} + * @return response of {@code InvoiceListResponseDto} */ - public ApiCustomerInvoiceListResponseDto listInvoices() throws ApiError, ValidationException { + public InvoiceListResponseDto listInvoices() throws ApiError, ValidationException { return this.listInvoices(ListInvoicesParameters.builder().build()); } @@ -49,22 +49,22 @@ public ApiCustomerInvoiceListResponseDto listInvoices() throws ApiError, Validat * List invoices * * @param requestParameters {@link ListInvoicesParameters} Request Parameters Object - * @return response of {@code ApiCustomerInvoiceListResponseDto} + * @return response of {@code InvoiceListResponseDto} */ - public ApiCustomerInvoiceListResponseDto listInvoices(@NonNull ListInvoicesParameters requestParameters) + public InvoiceListResponseDto listInvoices(@NonNull ListInvoicesParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListInvoicesRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List invoices * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listInvoicesAsync() throws ApiError, ValidationException { + public CompletableFuture listInvoicesAsync() throws ApiError, ValidationException { return this.listInvoicesAsync(ListInvoicesParameters.builder().build()); } @@ -72,16 +72,15 @@ public CompletableFuture listInvoicesAsync() * List invoices * * @param requestParameters {@link ListInvoicesParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listInvoicesAsync( - @NonNull ListInvoicesParameters requestParameters - ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture listInvoicesAsync(@NonNull ListInvoicesParameters requestParameters) + throws ApiError, ValidationException { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListInvoicesRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -113,63 +112,59 @@ private Request buildListInvoicesRequest(@NonNull ListInvoicesParameters request /** * Schedule invoice * - * @return response of {@code ApiCustomerInvoiceGetResponseDto} + * @return response of {@code InvoiceGetResponseDto} */ - public ApiCustomerInvoiceGetResponseDto scheduleInvoice() throws ApiError { - return this.scheduleInvoice(ApiCustomerInvoiceSaveRequestDto.builder().build()); + public InvoiceGetResponseDto scheduleInvoice() throws ApiError { + return this.scheduleInvoice(InvoiceSaveRequestDto.builder().build()); } /** * Schedule invoice * - * @param apiCustomerInvoiceSaveRequestDto {@link ApiCustomerInvoiceSaveRequestDto} Request Body - * @return response of {@code ApiCustomerInvoiceGetResponseDto} + * @param invoiceSaveRequestDto {@link InvoiceSaveRequestDto} Request Body + * @return response of {@code InvoiceGetResponseDto} */ - public ApiCustomerInvoiceGetResponseDto scheduleInvoice( - @NonNull ApiCustomerInvoiceSaveRequestDto apiCustomerInvoiceSaveRequestDto - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildScheduleInvoiceRequest(apiCustomerInvoiceSaveRequestDto); + public InvoiceGetResponseDto scheduleInvoice(@NonNull InvoiceSaveRequestDto invoiceSaveRequestDto) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildScheduleInvoiceRequest(invoiceSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Schedule invoice * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture scheduleInvoiceAsync() throws ApiError { - return this.scheduleInvoiceAsync(ApiCustomerInvoiceSaveRequestDto.builder().build()); + public CompletableFuture scheduleInvoiceAsync() throws ApiError { + return this.scheduleInvoiceAsync(InvoiceSaveRequestDto.builder().build()); } /** * Schedule invoice * - * @param apiCustomerInvoiceSaveRequestDto {@link ApiCustomerInvoiceSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param invoiceSaveRequestDto {@link InvoiceSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture scheduleInvoiceAsync( - @NonNull ApiCustomerInvoiceSaveRequestDto apiCustomerInvoiceSaveRequestDto + public CompletableFuture scheduleInvoiceAsync( + @NonNull InvoiceSaveRequestDto invoiceSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildScheduleInvoiceRequest(apiCustomerInvoiceSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildScheduleInvoiceRequest(invoiceSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildScheduleInvoiceRequest( - @NonNull ApiCustomerInvoiceSaveRequestDto apiCustomerInvoiceSaveRequestDto - ) { + private Request buildScheduleInvoiceRequest(@NonNull InvoiceSaveRequestDto invoiceSaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/invoices" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiCustomerInvoiceSaveRequestDto) + .setJsonContent(invoiceSaveRequestDto) .build(); } @@ -177,28 +172,27 @@ private Request buildScheduleInvoiceRequest( * Retrieve a single invoice * * @param id String Unique invoice identifier in Asaas - * @return response of {@code ApiCustomerInvoiceGetResponseDto} + * @return response of {@code InvoiceGetResponseDto} */ - public ApiCustomerInvoiceGetResponseDto retrieveASingleInvoice(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public InvoiceGetResponseDto retrieveASingleInvoice(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleInvoiceRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single invoice * * @param id String Unique invoice identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleInvoiceAsync(@NonNull String id) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveASingleInvoiceAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleInvoiceRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -217,41 +211,41 @@ private Request buildRetrieveASingleInvoiceRequest(@NonNull String id) { * Update invoice * * @param id String Unique invoice identifier in Asaas - * @param apiCustomerInvoiceUpdateRequestDto {@link ApiCustomerInvoiceUpdateRequestDto} Request Body - * @return response of {@code ApiCustomerInvoiceGetResponseDto} + * @param invoiceUpdateRequestDto {@link InvoiceUpdateRequestDto} Request Body + * @return response of {@code InvoiceGetResponseDto} */ - public ApiCustomerInvoiceGetResponseDto updateInvoice( + public InvoiceGetResponseDto updateInvoice( @NonNull String id, - @NonNull ApiCustomerInvoiceUpdateRequestDto apiCustomerInvoiceUpdateRequestDto + @NonNull InvoiceUpdateRequestDto invoiceUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateInvoiceRequest(id, apiCustomerInvoiceUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateInvoiceRequest(id, invoiceUpdateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update invoice * * @param id String Unique invoice identifier in Asaas - * @param apiCustomerInvoiceUpdateRequestDto {@link ApiCustomerInvoiceUpdateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param invoiceUpdateRequestDto {@link InvoiceUpdateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateInvoiceAsync( + public CompletableFuture updateInvoiceAsync( @NonNull String id, - @NonNull ApiCustomerInvoiceUpdateRequestDto apiCustomerInvoiceUpdateRequestDto + @NonNull InvoiceUpdateRequestDto invoiceUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateInvoiceRequest(id, apiCustomerInvoiceUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateInvoiceRequest(id, invoiceUpdateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateInvoiceRequest( @NonNull String id, - @NonNull ApiCustomerInvoiceUpdateRequestDto apiCustomerInvoiceUpdateRequestDto + @NonNull InvoiceUpdateRequestDto invoiceUpdateRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -260,7 +254,7 @@ private Request buildUpdateInvoiceRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiCustomerInvoiceUpdateRequestDto) + .setJsonContent(invoiceUpdateRequestDto) .build(); } @@ -269,13 +263,13 @@ private Request buildUpdateInvoiceRequest( * * @param id String Unique invoice identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiCustomerInvoiceGetResponseDto} + * @return response of {@code InvoiceGetResponseDto} */ - public ApiCustomerInvoiceGetResponseDto issueAnInvoice(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public InvoiceGetResponseDto issueAnInvoice(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildIssueAnInvoiceRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -283,17 +277,15 @@ public ApiCustomerInvoiceGetResponseDto issueAnInvoice(@NonNull String id, @NonN * * @param id String Unique invoice identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture issueAnInvoiceAsync( - @NonNull String id, - @NonNull Object input - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture issueAnInvoiceAsync(@NonNull String id, @NonNull Object input) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildIssueAnInvoiceRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -313,41 +305,41 @@ private Request buildIssueAnInvoiceRequest(@NonNull String id, @NonNull Object i * Cancel an invoice * * @param id String Unique invoice identifier in Asaas - * @param apiCustomerInvoiceCancelRequestDto {@link ApiCustomerInvoiceCancelRequestDto} Request Body - * @return response of {@code ApiCustomerInvoiceGetResponseDto} + * @param invoiceCancelRequestDto {@link InvoiceCancelRequestDto} Request Body + * @return response of {@code InvoiceGetResponseDto} */ - public ApiCustomerInvoiceGetResponseDto cancelAnInvoice( + public InvoiceGetResponseDto cancelAnInvoice( @NonNull String id, - @NonNull ApiCustomerInvoiceCancelRequestDto apiCustomerInvoiceCancelRequestDto + @NonNull InvoiceCancelRequestDto invoiceCancelRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCancelAnInvoiceRequest(id, apiCustomerInvoiceCancelRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCancelAnInvoiceRequest(id, invoiceCancelRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Cancel an invoice * * @param id String Unique invoice identifier in Asaas - * @param apiCustomerInvoiceCancelRequestDto {@link ApiCustomerInvoiceCancelRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param invoiceCancelRequestDto {@link InvoiceCancelRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture cancelAnInvoiceAsync( + public CompletableFuture cancelAnInvoiceAsync( @NonNull String id, - @NonNull ApiCustomerInvoiceCancelRequestDto apiCustomerInvoiceCancelRequestDto + @NonNull InvoiceCancelRequestDto invoiceCancelRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCancelAnInvoiceRequest(id, apiCustomerInvoiceCancelRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCancelAnInvoiceRequest(id, invoiceCancelRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildCancelAnInvoiceRequest( @NonNull String id, - @NonNull ApiCustomerInvoiceCancelRequestDto apiCustomerInvoiceCancelRequestDto + @NonNull InvoiceCancelRequestDto invoiceCancelRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -356,7 +348,7 @@ private Request buildCancelAnInvoiceRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiCustomerInvoiceCancelRequestDto) + .setJsonContent(invoiceCancelRequestDto) .build(); } } diff --git a/src/main/java/com/asaas/apisdk/services/MobilePhoneRechargeService.java b/src/main/java/com/asaas/apisdk/services/MobilePhoneRechargeService.java index 843a54f..61c820b 100644 --- a/src/main/java/com/asaas/apisdk/services/MobilePhoneRechargeService.java +++ b/src/main/java/com/asaas/apisdk/services/MobilePhoneRechargeService.java @@ -4,17 +4,17 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiMobilePhoneRechargeFindProviderResponseDto; -import com.asaas.apisdk.models.ApiMobilePhoneRechargeGetResponseDto; -import com.asaas.apisdk.models.ApiMobilePhoneRechargeListResponseDto; -import com.asaas.apisdk.models.ApiMobilePhoneRechargeSaveRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListMobileRechargesParameters; +import com.asaas.apisdk.models.MobilePhoneRechargeFindProviderResponseDto; +import com.asaas.apisdk.models.MobilePhoneRechargeGetResponseDto; +import com.asaas.apisdk.models.MobilePhoneRechargeListResponseDto; +import com.asaas.apisdk.models.MobilePhoneRechargeSaveRequestDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListMobileRechargesParametersValidator; @@ -38,9 +38,9 @@ public MobilePhoneRechargeService(@NonNull OkHttpClient httpClient, AsaasSdkConf /** * List cell phone top-ups * - * @return response of {@code ApiMobilePhoneRechargeListResponseDto} + * @return response of {@code MobilePhoneRechargeListResponseDto} */ - public ApiMobilePhoneRechargeListResponseDto listMobileRecharges() throws ApiError, ValidationException { + public MobilePhoneRechargeListResponseDto listMobileRecharges() throws ApiError, ValidationException { return this.listMobileRecharges(ListMobileRechargesParameters.builder().build()); } @@ -48,23 +48,23 @@ public ApiMobilePhoneRechargeListResponseDto listMobileRecharges() throws ApiErr * List cell phone top-ups * * @param requestParameters {@link ListMobileRechargesParameters} Request Parameters Object - * @return response of {@code ApiMobilePhoneRechargeListResponseDto} + * @return response of {@code MobilePhoneRechargeListResponseDto} */ - public ApiMobilePhoneRechargeListResponseDto listMobileRecharges( + public MobilePhoneRechargeListResponseDto listMobileRecharges( @NonNull ListMobileRechargesParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListMobileRechargesRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List cell phone top-ups * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listMobileRechargesAsync() + public CompletableFuture listMobileRechargesAsync() throws ApiError, ValidationException { return this.listMobileRechargesAsync(ListMobileRechargesParameters.builder().build()); } @@ -73,16 +73,16 @@ public CompletableFuture listMobileRechar * List cell phone top-ups * * @param requestParameters {@link ListMobileRechargesParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listMobileRechargesAsync( + public CompletableFuture listMobileRechargesAsync( @NonNull ListMobileRechargesParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListMobileRechargesRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -105,55 +105,55 @@ private Request buildListMobileRechargesRequest(@NonNull ListMobileRechargesPara /** * Request recharge * - * @return response of {@code ApiMobilePhoneRechargeGetResponseDto} + * @return response of {@code MobilePhoneRechargeGetResponseDto} */ - public ApiMobilePhoneRechargeGetResponseDto requestRecharge() throws ApiError { - return this.requestRecharge(ApiMobilePhoneRechargeSaveRequestDto.builder().build()); + public MobilePhoneRechargeGetResponseDto requestRecharge() throws ApiError { + return this.requestRecharge(MobilePhoneRechargeSaveRequestDto.builder().build()); } /** * Request recharge * - * @param apiMobilePhoneRechargeSaveRequestDto {@link ApiMobilePhoneRechargeSaveRequestDto} Request Body - * @return response of {@code ApiMobilePhoneRechargeGetResponseDto} + * @param mobilePhoneRechargeSaveRequestDto {@link MobilePhoneRechargeSaveRequestDto} Request Body + * @return response of {@code MobilePhoneRechargeGetResponseDto} */ - public ApiMobilePhoneRechargeGetResponseDto requestRecharge( - @NonNull ApiMobilePhoneRechargeSaveRequestDto apiMobilePhoneRechargeSaveRequestDto + public MobilePhoneRechargeGetResponseDto requestRecharge( + @NonNull MobilePhoneRechargeSaveRequestDto mobilePhoneRechargeSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildRequestRechargeRequest(apiMobilePhoneRechargeSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildRequestRechargeRequest(mobilePhoneRechargeSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Request recharge * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture requestRechargeAsync() throws ApiError { - return this.requestRechargeAsync(ApiMobilePhoneRechargeSaveRequestDto.builder().build()); + public CompletableFuture requestRechargeAsync() throws ApiError { + return this.requestRechargeAsync(MobilePhoneRechargeSaveRequestDto.builder().build()); } /** * Request recharge * - * @param apiMobilePhoneRechargeSaveRequestDto {@link ApiMobilePhoneRechargeSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param mobilePhoneRechargeSaveRequestDto {@link MobilePhoneRechargeSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture requestRechargeAsync( - @NonNull ApiMobilePhoneRechargeSaveRequestDto apiMobilePhoneRechargeSaveRequestDto + public CompletableFuture requestRechargeAsync( + @NonNull MobilePhoneRechargeSaveRequestDto mobilePhoneRechargeSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildRequestRechargeRequest(apiMobilePhoneRechargeSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildRequestRechargeRequest(mobilePhoneRechargeSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildRequestRechargeRequest( - @NonNull ApiMobilePhoneRechargeSaveRequestDto apiMobilePhoneRechargeSaveRequestDto + @NonNull MobilePhoneRechargeSaveRequestDto mobilePhoneRechargeSaveRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -161,7 +161,7 @@ private Request buildRequestRechargeRequest( "v3/mobilePhoneRecharges" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiMobilePhoneRechargeSaveRequestDto) + .setJsonContent(mobilePhoneRechargeSaveRequestDto) .build(); } @@ -169,29 +169,28 @@ private Request buildRequestRechargeRequest( * Recover a single cell phone recharge * * @param id String Unique identifier for cell phone recharge on Asaas - * @return response of {@code ApiMobilePhoneRechargeGetResponseDto} + * @return response of {@code MobilePhoneRechargeGetResponseDto} */ - public ApiMobilePhoneRechargeGetResponseDto recoverASingleCellphoneRecharge(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public MobilePhoneRechargeGetResponseDto recoverASingleCellphoneRecharge(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRecoverASingleCellphoneRechargeRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Recover a single cell phone recharge * * @param id String Unique identifier for cell phone recharge on Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture recoverASingleCellphoneRechargeAsync( - @NonNull String id - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture recoverASingleCellphoneRechargeAsync(@NonNull String id) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRecoverASingleCellphoneRechargeRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -211,14 +210,14 @@ private Request buildRecoverASingleCellphoneRechargeRequest(@NonNull String id) * * @param id String Unique identifier for cell phone recharge on Asaas * @param input Object Request Body - * @return response of {@code ApiMobilePhoneRechargeGetResponseDto} + * @return response of {@code MobilePhoneRechargeGetResponseDto} */ - public ApiMobilePhoneRechargeGetResponseDto cancelACellphoneRecharge(@NonNull String id, @NonNull Object input) + public MobilePhoneRechargeGetResponseDto cancelACellphoneRecharge(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelACellphoneRechargeRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -226,17 +225,17 @@ public ApiMobilePhoneRechargeGetResponseDto cancelACellphoneRecharge(@NonNull St * * @param id String Unique identifier for cell phone recharge on Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture cancelACellphoneRechargeAsync( + public CompletableFuture cancelACellphoneRechargeAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelACellphoneRechargeRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -256,30 +255,30 @@ private Request buildCancelACellphoneRechargeRequest(@NonNull String id, @NonNul * Search for cell phone provider * * @param phoneNumber String Cell phone number that will be consulted. - * @return response of {@code ApiMobilePhoneRechargeFindProviderResponseDto} + * @return response of {@code MobilePhoneRechargeFindProviderResponseDto} */ - public ApiMobilePhoneRechargeFindProviderResponseDto searchForCellPhoneProvider(@NonNull String phoneNumber) + public MobilePhoneRechargeFindProviderResponseDto searchForCellPhoneProvider(@NonNull String phoneNumber) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildSearchForCellPhoneProviderRequest(phoneNumber); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Search for cell phone provider * * @param phoneNumber String Cell phone number that will be consulted. - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture searchForCellPhoneProviderAsync( + public CompletableFuture searchForCellPhoneProviderAsync( @NonNull String phoneNumber ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildSearchForCellPhoneProviderRequest(phoneNumber); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/NotificationService.java b/src/main/java/com/asaas/apisdk/services/NotificationService.java index cf17332..afbdf00 100644 --- a/src/main/java/com/asaas/apisdk/services/NotificationService.java +++ b/src/main/java/com/asaas/apisdk/services/NotificationService.java @@ -4,16 +4,16 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiNotificationBatchUpdateRequestDto; -import com.asaas.apisdk.models.ApiNotificationBatchUpdateResponseDto; -import com.asaas.apisdk.models.ApiNotificationGetResponseDto; -import com.asaas.apisdk.models.ApiNotificationUpdateRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; +import com.asaas.apisdk.models.NotificationBatchUpdateRequestDto; +import com.asaas.apisdk.models.NotificationBatchUpdateResponseDto; +import com.asaas.apisdk.models.NotificationGetResponseDto; +import com.asaas.apisdk.models.NotificationUpdateRequestDto; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -35,41 +35,41 @@ public NotificationService(@NonNull OkHttpClient httpClient, AsaasSdkConfig conf * Update existing notification * * @param id String Unique identifier of the notification to be updated - * @param apiNotificationUpdateRequestDto {@link ApiNotificationUpdateRequestDto} Request Body - * @return response of {@code ApiNotificationGetResponseDto} + * @param notificationUpdateRequestDto {@link NotificationUpdateRequestDto} Request Body + * @return response of {@code NotificationGetResponseDto} */ - public ApiNotificationGetResponseDto updateExistingNotification( + public NotificationGetResponseDto updateExistingNotification( @NonNull String id, - @NonNull ApiNotificationUpdateRequestDto apiNotificationUpdateRequestDto + @NonNull NotificationUpdateRequestDto notificationUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingNotificationRequest(id, apiNotificationUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingNotificationRequest(id, notificationUpdateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update existing notification * * @param id String Unique identifier of the notification to be updated - * @param apiNotificationUpdateRequestDto {@link ApiNotificationUpdateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param notificationUpdateRequestDto {@link NotificationUpdateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateExistingNotificationAsync( + public CompletableFuture updateExistingNotificationAsync( @NonNull String id, - @NonNull ApiNotificationUpdateRequestDto apiNotificationUpdateRequestDto + @NonNull NotificationUpdateRequestDto notificationUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingNotificationRequest(id, apiNotificationUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingNotificationRequest(id, notificationUpdateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateExistingNotificationRequest( @NonNull String id, - @NonNull ApiNotificationUpdateRequestDto apiNotificationUpdateRequestDto + @NonNull NotificationUpdateRequestDto notificationUpdateRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -78,63 +78,63 @@ private Request buildUpdateExistingNotificationRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiNotificationUpdateRequestDto) + .setJsonContent(notificationUpdateRequestDto) .build(); } /** * Update existing notifications in batch * - * @return response of {@code ApiNotificationBatchUpdateResponseDto} + * @return response of {@code NotificationBatchUpdateResponseDto} */ - public ApiNotificationBatchUpdateResponseDto updateExistingNotificationsInBatch() throws ApiError { - return this.updateExistingNotificationsInBatch(ApiNotificationBatchUpdateRequestDto.builder().build()); + public NotificationBatchUpdateResponseDto updateExistingNotificationsInBatch() throws ApiError { + return this.updateExistingNotificationsInBatch(NotificationBatchUpdateRequestDto.builder().build()); } /** * Update existing notifications in batch * - * @param apiNotificationBatchUpdateRequestDto {@link ApiNotificationBatchUpdateRequestDto} Request Body - * @return response of {@code ApiNotificationBatchUpdateResponseDto} + * @param notificationBatchUpdateRequestDto {@link NotificationBatchUpdateRequestDto} Request Body + * @return response of {@code NotificationBatchUpdateResponseDto} */ - public ApiNotificationBatchUpdateResponseDto updateExistingNotificationsInBatch( - @NonNull ApiNotificationBatchUpdateRequestDto apiNotificationBatchUpdateRequestDto + public NotificationBatchUpdateResponseDto updateExistingNotificationsInBatch( + @NonNull NotificationBatchUpdateRequestDto notificationBatchUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingNotificationsInBatchRequest(apiNotificationBatchUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingNotificationsInBatchRequest(notificationBatchUpdateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update existing notifications in batch * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateExistingNotificationsInBatchAsync() + public CompletableFuture updateExistingNotificationsInBatchAsync() throws ApiError { - return this.updateExistingNotificationsInBatchAsync(ApiNotificationBatchUpdateRequestDto.builder().build()); + return this.updateExistingNotificationsInBatchAsync(NotificationBatchUpdateRequestDto.builder().build()); } /** * Update existing notifications in batch * - * @param apiNotificationBatchUpdateRequestDto {@link ApiNotificationBatchUpdateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param notificationBatchUpdateRequestDto {@link NotificationBatchUpdateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateExistingNotificationsInBatchAsync( - @NonNull ApiNotificationBatchUpdateRequestDto apiNotificationBatchUpdateRequestDto + public CompletableFuture updateExistingNotificationsInBatchAsync( + @NonNull NotificationBatchUpdateRequestDto notificationBatchUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingNotificationsInBatchRequest(apiNotificationBatchUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingNotificationsInBatchRequest(notificationBatchUpdateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateExistingNotificationsInBatchRequest( - @NonNull ApiNotificationBatchUpdateRequestDto apiNotificationBatchUpdateRequestDto + @NonNull NotificationBatchUpdateRequestDto notificationBatchUpdateRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -142,7 +142,7 @@ private Request buildUpdateExistingNotificationsInBatchRequest( "v3/notifications/batch" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiNotificationBatchUpdateRequestDto) + .setJsonContent(notificationBatchUpdateRequestDto) .build(); } } diff --git a/src/main/java/com/asaas/apisdk/services/PaymentDocumentService.java b/src/main/java/com/asaas/apisdk/services/PaymentDocumentService.java index f768485..478ff6d 100644 --- a/src/main/java/com/asaas/apisdk/services/PaymentDocumentService.java +++ b/src/main/java/com/asaas/apisdk/services/PaymentDocumentService.java @@ -4,18 +4,18 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPaymentDocumentDeleteResponseDto; -import com.asaas.apisdk.models.ApiPaymentDocumentGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentDocumentListResponseDto; -import com.asaas.apisdk.models.ApiPaymentDocumentSaveRequestDto; -import com.asaas.apisdk.models.ApiPaymentDocumentSaveRequestPaymentDocumentType; -import com.asaas.apisdk.models.ApiPaymentDocumentUpdateRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; +import com.asaas.apisdk.models.PaymentDocumentDeleteResponseDto; +import com.asaas.apisdk.models.PaymentDocumentGetResponseDto; +import com.asaas.apisdk.models.PaymentDocumentListResponseDto; +import com.asaas.apisdk.models.PaymentDocumentSaveRequestDto; +import com.asaas.apisdk.models.PaymentDocumentSaveRequestPaymentDocumentType; +import com.asaas.apisdk.models.PaymentDocumentUpdateRequestDto; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -40,28 +40,28 @@ public PaymentDocumentService(@NonNull OkHttpClient httpClient, AsaasSdkConfig c * List documents of a payment * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentDocumentListResponseDto} + * @return response of {@code PaymentDocumentListResponseDto} */ - public ApiPaymentDocumentListResponseDto listDocumentsOfAPayment(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentDocumentListResponseDto listDocumentsOfAPayment(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListDocumentsOfAPaymentRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List documents of a payment * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listDocumentsOfAPaymentAsync(@NonNull String id) + public CompletableFuture listDocumentsOfAPaymentAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListDocumentsOfAPaymentRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -80,45 +80,45 @@ private Request buildListDocumentsOfAPaymentRequest(@NonNull String id) { * Upload payment documents * * @param id String Unique payment identifier in Asaas - * @param apiPaymentDocumentSaveRequestDto {@link ApiPaymentDocumentSaveRequestDto} Request Body + * @param paymentDocumentSaveRequestDto {@link PaymentDocumentSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code ApiPaymentDocumentGetResponseDto} + * @return response of {@code PaymentDocumentGetResponseDto} */ - public ApiPaymentDocumentGetResponseDto uploadPaymentDocuments( + public PaymentDocumentGetResponseDto uploadPaymentDocuments( @NonNull String id, - @NonNull ApiPaymentDocumentSaveRequestDto apiPaymentDocumentSaveRequestDto, + @NonNull PaymentDocumentSaveRequestDto paymentDocumentSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUploadPaymentDocumentsRequest(id, apiPaymentDocumentSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUploadPaymentDocumentsRequest(id, paymentDocumentSaveRequestDto, _filename); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Upload payment documents * * @param id String Unique payment identifier in Asaas - * @param apiPaymentDocumentSaveRequestDto {@link ApiPaymentDocumentSaveRequestDto} Request Body + * @param paymentDocumentSaveRequestDto {@link PaymentDocumentSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture uploadPaymentDocumentsAsync( + public CompletableFuture uploadPaymentDocumentsAsync( @NonNull String id, - @NonNull ApiPaymentDocumentSaveRequestDto apiPaymentDocumentSaveRequestDto, + @NonNull PaymentDocumentSaveRequestDto paymentDocumentSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUploadPaymentDocumentsRequest(id, apiPaymentDocumentSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUploadPaymentDocumentsRequest(id, paymentDocumentSaveRequestDto, _filename); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUploadPaymentDocumentsRequest( @NonNull String id, - @NonNull ApiPaymentDocumentSaveRequestDto apiPaymentDocumentSaveRequestDto, + @NonNull PaymentDocumentSaveRequestDto paymentDocumentSaveRequestDto, @NonNull String _filename ) { return new RequestBuilder( @@ -131,15 +131,12 @@ private Request buildUploadPaymentDocumentsRequest( .setBody( new MultipartBody.Builder() .setType(MultipartBody.FORM) - .addFormDataPart( - "availableAfterPayment", - apiPaymentDocumentSaveRequestDto.getAvailableAfterPayment().toString() - ) - .addFormDataPart("type", apiPaymentDocumentSaveRequestDto.getType().getValue()) + .addFormDataPart("availableAfterPayment", paymentDocumentSaveRequestDto.getAvailableAfterPayment().toString()) + .addFormDataPart("type", paymentDocumentSaveRequestDto.getType().getValue()) .addFormDataPart( "file", _filename, - RequestBody.create(apiPaymentDocumentSaveRequestDto.getFile(), MediaType.parse("application/octet-stream")) + RequestBody.create(paymentDocumentSaveRequestDto.getFile(), MediaType.parse("application/octet-stream")) ) .build() ) @@ -151,16 +148,16 @@ private Request buildUploadPaymentDocumentsRequest( * * @param id String Unique payment identifier in Asaas * @param documentId String Unique document identifier - * @return response of {@code ApiPaymentDocumentGetResponseDto} + * @return response of {@code PaymentDocumentGetResponseDto} */ - public ApiPaymentDocumentGetResponseDto retrieveASingleDocumentOfAPayment( + public PaymentDocumentGetResponseDto retrieveASingleDocumentOfAPayment( @NonNull String id, @NonNull String documentId ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleDocumentOfAPaymentRequest(id, documentId); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -168,17 +165,17 @@ public ApiPaymentDocumentGetResponseDto retrieveASingleDocumentOfAPayment( * * @param id String Unique payment identifier in Asaas * @param documentId String Unique document identifier - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleDocumentOfAPaymentAsync( + public CompletableFuture retrieveASingleDocumentOfAPaymentAsync( @NonNull String id, @NonNull String documentId ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleDocumentOfAPaymentRequest(id, documentId); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -199,19 +196,19 @@ private Request buildRetrieveASingleDocumentOfAPaymentRequest(@NonNull String id * * @param id String Unique payment identifier in Asaas * @param documentId String Unique document identifier - * @param apiPaymentDocumentUpdateRequestDto {@link ApiPaymentDocumentUpdateRequestDto} Request Body - * @return response of {@code ApiPaymentDocumentGetResponseDto} + * @param paymentDocumentUpdateRequestDto {@link PaymentDocumentUpdateRequestDto} Request Body + * @return response of {@code PaymentDocumentGetResponseDto} */ - public ApiPaymentDocumentGetResponseDto updateSettingsOfADocumentOfAPayment( + public PaymentDocumentGetResponseDto updateSettingsOfADocumentOfAPayment( @NonNull String id, @NonNull String documentId, - @NonNull ApiPaymentDocumentUpdateRequestDto apiPaymentDocumentUpdateRequestDto + @NonNull PaymentDocumentUpdateRequestDto paymentDocumentUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = - this.buildUpdateSettingsOfADocumentOfAPaymentRequest(id, documentId, apiPaymentDocumentUpdateRequestDto); + this.buildUpdateSettingsOfADocumentOfAPaymentRequest(id, documentId, paymentDocumentUpdateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -219,27 +216,27 @@ public ApiPaymentDocumentGetResponseDto updateSettingsOfADocumentOfAPayment( * * @param id String Unique payment identifier in Asaas * @param documentId String Unique document identifier - * @param apiPaymentDocumentUpdateRequestDto {@link ApiPaymentDocumentUpdateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentDocumentUpdateRequestDto {@link PaymentDocumentUpdateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateSettingsOfADocumentOfAPaymentAsync( + public CompletableFuture updateSettingsOfADocumentOfAPaymentAsync( @NonNull String id, @NonNull String documentId, - @NonNull ApiPaymentDocumentUpdateRequestDto apiPaymentDocumentUpdateRequestDto + @NonNull PaymentDocumentUpdateRequestDto paymentDocumentUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = - this.buildUpdateSettingsOfADocumentOfAPaymentRequest(id, documentId, apiPaymentDocumentUpdateRequestDto); + this.buildUpdateSettingsOfADocumentOfAPaymentRequest(id, documentId, paymentDocumentUpdateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateSettingsOfADocumentOfAPaymentRequest( @NonNull String id, @NonNull String documentId, - @NonNull ApiPaymentDocumentUpdateRequestDto apiPaymentDocumentUpdateRequestDto + @NonNull PaymentDocumentUpdateRequestDto paymentDocumentUpdateRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -249,7 +246,7 @@ private Request buildUpdateSettingsOfADocumentOfAPaymentRequest( .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) .setPathParameter("documentId", documentId) - .setJsonContent(apiPaymentDocumentUpdateRequestDto) + .setJsonContent(paymentDocumentUpdateRequestDto) .build(); } @@ -258,14 +255,14 @@ private Request buildUpdateSettingsOfADocumentOfAPaymentRequest( * * @param id String Unique payment identifier in Asaas * @param documentId String Unique document identifier - * @return response of {@code ApiPaymentDocumentDeleteResponseDto} + * @return response of {@code PaymentDocumentDeleteResponseDto} */ - public ApiPaymentDocumentDeleteResponseDto deleteDocumentFromAPayment(@NonNull String id, @NonNull String documentId) + public PaymentDocumentDeleteResponseDto deleteDocumentFromAPayment(@NonNull String id, @NonNull String documentId) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildDeleteDocumentFromAPaymentRequest(id, documentId); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -273,17 +270,17 @@ public ApiPaymentDocumentDeleteResponseDto deleteDocumentFromAPayment(@NonNull S * * @param id String Unique payment identifier in Asaas * @param documentId String Unique document identifier - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture deleteDocumentFromAPaymentAsync( + public CompletableFuture deleteDocumentFromAPaymentAsync( @NonNull String id, @NonNull String documentId ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildDeleteDocumentFromAPaymentRequest(id, documentId); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/PaymentDunningService.java b/src/main/java/com/asaas/apisdk/services/PaymentDunningService.java index c9759cc..c6f7c4c 100644 --- a/src/main/java/com/asaas/apisdk/services/PaymentDunningService.java +++ b/src/main/java/com/asaas/apisdk/services/PaymentDunningService.java @@ -4,27 +4,27 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPaymentDunningCancelResponseDto; -import com.asaas.apisdk.models.ApiPaymentDunningListHistoryResponseDto; -import com.asaas.apisdk.models.ApiPaymentDunningListPartialPaymentsResponseDto; -import com.asaas.apisdk.models.ApiPaymentDunningListResponseDto; -import com.asaas.apisdk.models.ApiPaymentDunningPaymentsAvailableForDunningResponseDto; -import com.asaas.apisdk.models.ApiPaymentDunningSaveDocumentsRequestDto; -import com.asaas.apisdk.models.ApiPaymentDunningSaveDocumentsResponseDto; -import com.asaas.apisdk.models.ApiPaymentDunningSaveRequestDto; -import com.asaas.apisdk.models.ApiPaymentDunningSaveRequestPaymentDunningType; -import com.asaas.apisdk.models.ApiPaymentDunningShowResponseDto; -import com.asaas.apisdk.models.ApiPaymentDunningSimulateResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.EventHistoryListsParameters; import com.asaas.apisdk.models.ListPaymentDunningsParameters; import com.asaas.apisdk.models.ListPaymentsAvailableForPaymentDunningParameters; import com.asaas.apisdk.models.ListPaymentsReceivedParameters; +import com.asaas.apisdk.models.PaymentDunningCancelResponseDto; +import com.asaas.apisdk.models.PaymentDunningListHistoryResponseDto; +import com.asaas.apisdk.models.PaymentDunningListPartialPaymentsResponseDto; +import com.asaas.apisdk.models.PaymentDunningListResponseDto; +import com.asaas.apisdk.models.PaymentDunningPaymentsAvailableForDunningResponseDto; +import com.asaas.apisdk.models.PaymentDunningSaveDocumentsRequestDto; +import com.asaas.apisdk.models.PaymentDunningSaveDocumentsResponseDto; +import com.asaas.apisdk.models.PaymentDunningSaveRequestDto; +import com.asaas.apisdk.models.PaymentDunningSaveRequestPaymentDunningType; +import com.asaas.apisdk.models.PaymentDunningShowResponseDto; +import com.asaas.apisdk.models.PaymentDunningSimulateResponseDto; import com.asaas.apisdk.models.SimulateAPaymentDunningParameters; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; @@ -55,9 +55,9 @@ public PaymentDunningService(@NonNull OkHttpClient httpClient, AsaasSdkConfig co /** * List payment dunnings * - * @return response of {@code ApiPaymentDunningListResponseDto} + * @return response of {@code PaymentDunningListResponseDto} */ - public ApiPaymentDunningListResponseDto listPaymentDunnings() throws ApiError, ValidationException { + public PaymentDunningListResponseDto listPaymentDunnings() throws ApiError, ValidationException { return this.listPaymentDunnings(ListPaymentDunningsParameters.builder().build()); } @@ -65,22 +65,22 @@ public ApiPaymentDunningListResponseDto listPaymentDunnings() throws ApiError, V * List payment dunnings * * @param requestParameters {@link ListPaymentDunningsParameters} Request Parameters Object - * @return response of {@code ApiPaymentDunningListResponseDto} + * @return response of {@code PaymentDunningListResponseDto} */ - public ApiPaymentDunningListResponseDto listPaymentDunnings(@NonNull ListPaymentDunningsParameters requestParameters) + public PaymentDunningListResponseDto listPaymentDunnings(@NonNull ListPaymentDunningsParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentDunningsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List payment dunnings * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaymentDunningsAsync() + public CompletableFuture listPaymentDunningsAsync() throws ApiError, ValidationException { return this.listPaymentDunningsAsync(ListPaymentDunningsParameters.builder().build()); } @@ -89,16 +89,16 @@ public CompletableFuture listPaymentDunningsAs * List payment dunnings * * @param requestParameters {@link ListPaymentDunningsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaymentDunningsAsync( + public CompletableFuture listPaymentDunningsAsync( @NonNull ListPaymentDunningsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentDunningsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -130,62 +130,62 @@ private Request buildListPaymentDunningsRequest(@NonNull ListPaymentDunningsPara /** * Create a payment dunning * - * @param apiPaymentDunningSaveRequestDto {@link ApiPaymentDunningSaveRequestDto} Request Body + * @param paymentDunningSaveRequestDto {@link PaymentDunningSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code ApiPaymentDunningShowResponseDto} + * @return response of {@code PaymentDunningShowResponseDto} */ - public ApiPaymentDunningShowResponseDto createAPaymentDunning( - @NonNull ApiPaymentDunningSaveRequestDto apiPaymentDunningSaveRequestDto, + public PaymentDunningShowResponseDto createAPaymentDunning( + @NonNull PaymentDunningSaveRequestDto paymentDunningSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateAPaymentDunningRequest(apiPaymentDunningSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateAPaymentDunningRequest(paymentDunningSaveRequestDto, _filename); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create a payment dunning * - * @param apiPaymentDunningSaveRequestDto {@link ApiPaymentDunningSaveRequestDto} Request Body + * @param paymentDunningSaveRequestDto {@link PaymentDunningSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createAPaymentDunningAsync( - @NonNull ApiPaymentDunningSaveRequestDto apiPaymentDunningSaveRequestDto, + public CompletableFuture createAPaymentDunningAsync( + @NonNull PaymentDunningSaveRequestDto paymentDunningSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateAPaymentDunningRequest(apiPaymentDunningSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateAPaymentDunningRequest(paymentDunningSaveRequestDto, _filename); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildCreateAPaymentDunningRequest( - @NonNull ApiPaymentDunningSaveRequestDto apiPaymentDunningSaveRequestDto, + @NonNull PaymentDunningSaveRequestDto paymentDunningSaveRequestDto, @NonNull String _filename ) { MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder() .setType(MultipartBody.FORM) - .addFormDataPart("payment", apiPaymentDunningSaveRequestDto.getPayment()) - .addFormDataPart("type", apiPaymentDunningSaveRequestDto.getType().getValue()) - .addFormDataPart("description", apiPaymentDunningSaveRequestDto.getDescription()) - .addFormDataPart("customerName", apiPaymentDunningSaveRequestDto.getCustomerName()) - .addFormDataPart("customerCpfCnpj", apiPaymentDunningSaveRequestDto.getCustomerCpfCnpj()) - .addFormDataPart("customerPrimaryPhone", apiPaymentDunningSaveRequestDto.getCustomerPrimaryPhone()) - .addFormDataPart("customerSecondaryPhone", apiPaymentDunningSaveRequestDto.getCustomerSecondaryPhone()) - .addFormDataPart("customerPostalCode", apiPaymentDunningSaveRequestDto.getCustomerPostalCode()) - .addFormDataPart("customerAddress", apiPaymentDunningSaveRequestDto.getCustomerAddress()) - .addFormDataPart("customerAddressNumber", apiPaymentDunningSaveRequestDto.getCustomerAddressNumber()) - .addFormDataPart("customerComplement", apiPaymentDunningSaveRequestDto.getCustomerComplement()) - .addFormDataPart("customerProvince", apiPaymentDunningSaveRequestDto.getCustomerProvince()); - if (apiPaymentDunningSaveRequestDto.getDocuments() != null) { + .addFormDataPart("payment", paymentDunningSaveRequestDto.getPayment()) + .addFormDataPart("type", paymentDunningSaveRequestDto.getType().getValue()) + .addFormDataPart("description", paymentDunningSaveRequestDto.getDescription()) + .addFormDataPart("customerName", paymentDunningSaveRequestDto.getCustomerName()) + .addFormDataPart("customerCpfCnpj", paymentDunningSaveRequestDto.getCustomerCpfCnpj()) + .addFormDataPart("customerPrimaryPhone", paymentDunningSaveRequestDto.getCustomerPrimaryPhone()) + .addFormDataPart("customerSecondaryPhone", paymentDunningSaveRequestDto.getCustomerSecondaryPhone()) + .addFormDataPart("customerPostalCode", paymentDunningSaveRequestDto.getCustomerPostalCode()) + .addFormDataPart("customerAddress", paymentDunningSaveRequestDto.getCustomerAddress()) + .addFormDataPart("customerAddressNumber", paymentDunningSaveRequestDto.getCustomerAddressNumber()) + .addFormDataPart("customerComplement", paymentDunningSaveRequestDto.getCustomerComplement()) + .addFormDataPart("customerProvince", paymentDunningSaveRequestDto.getCustomerProvince()); + if (paymentDunningSaveRequestDto.getDocuments() != null) { multipartBodyBuilder.addFormDataPart( "documents", _filename, - RequestBody.create(apiPaymentDunningSaveRequestDto.getDocuments(), MediaType.parse("application/octet-stream")) + RequestBody.create(paymentDunningSaveRequestDto.getDocuments(), MediaType.parse("application/octet-stream")) ); } return new RequestBuilder( @@ -201,9 +201,9 @@ private Request buildCreateAPaymentDunningRequest( /** * Simulate a payment dunning * - * @return response of {@code ApiPaymentDunningSimulateResponseDto} + * @return response of {@code PaymentDunningSimulateResponseDto} */ - public ApiPaymentDunningSimulateResponseDto simulateAPaymentDunning() throws ApiError { + public PaymentDunningSimulateResponseDto simulateAPaymentDunning() throws ApiError { return this.simulateAPaymentDunning(SimulateAPaymentDunningParameters.builder().build()); } @@ -211,23 +211,23 @@ public ApiPaymentDunningSimulateResponseDto simulateAPaymentDunning() throws Api * Simulate a payment dunning * * @param requestParameters {@link SimulateAPaymentDunningParameters} Request Parameters Object - * @return response of {@code ApiPaymentDunningSimulateResponseDto} + * @return response of {@code PaymentDunningSimulateResponseDto} */ - public ApiPaymentDunningSimulateResponseDto simulateAPaymentDunning( + public PaymentDunningSimulateResponseDto simulateAPaymentDunning( @NonNull SimulateAPaymentDunningParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildSimulateAPaymentDunningRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Simulate a payment dunning * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture simulateAPaymentDunningAsync() throws ApiError { + public CompletableFuture simulateAPaymentDunningAsync() throws ApiError { return this.simulateAPaymentDunningAsync(SimulateAPaymentDunningParameters.builder().build()); } @@ -235,16 +235,16 @@ public CompletableFuture simulateAPaymentD * Simulate a payment dunning * * @param requestParameters {@link SimulateAPaymentDunningParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture simulateAPaymentDunningAsync( + public CompletableFuture simulateAPaymentDunningAsync( @NonNull SimulateAPaymentDunningParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildSimulateAPaymentDunningRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -264,28 +264,28 @@ private Request buildSimulateAPaymentDunningRequest(@NonNull SimulateAPaymentDun * Recover a single payment dunning * * @param id String Unique identifier of the payment dunning in Asaas - * @return response of {@code ApiPaymentDunningShowResponseDto} + * @return response of {@code PaymentDunningShowResponseDto} */ - public ApiPaymentDunningShowResponseDto recoverASinglePaymentDunning(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentDunningShowResponseDto recoverASinglePaymentDunning(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRecoverASinglePaymentDunningRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Recover a single payment dunning * * @param id String Unique identifier of the payment dunning in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture recoverASinglePaymentDunningAsync(@NonNull String id) + public CompletableFuture recoverASinglePaymentDunningAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRecoverASinglePaymentDunningRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -305,16 +305,16 @@ private Request buildRecoverASinglePaymentDunningRequest(@NonNull String id) { * * @param id String Unique identifier of the payment dunning in Asaas * @param requestParameters {@link EventHistoryListsParameters} Request Parameters Object - * @return response of {@code ApiPaymentDunningListHistoryResponseDto} + * @return response of {@code PaymentDunningListHistoryResponseDto} */ - public ApiPaymentDunningListHistoryResponseDto eventHistoryLists( + public PaymentDunningListHistoryResponseDto eventHistoryLists( @NonNull String id, @NonNull EventHistoryListsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildEventHistoryListsRequest(id, requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -322,17 +322,17 @@ public ApiPaymentDunningListHistoryResponseDto eventHistoryLists( * * @param id String Unique identifier of the payment dunning in Asaas * @param requestParameters {@link EventHistoryListsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture eventHistoryListsAsync( + public CompletableFuture eventHistoryListsAsync( @NonNull String id, @NonNull EventHistoryListsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildEventHistoryListsRequest(id, requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -360,16 +360,16 @@ private Request buildEventHistoryListsRequest( * * @param id String Unique identifier of the payment dunning in Asaas * @param requestParameters {@link ListPaymentsReceivedParameters} Request Parameters Object - * @return response of {@code ApiPaymentDunningListPartialPaymentsResponseDto} + * @return response of {@code PaymentDunningListPartialPaymentsResponseDto} */ - public ApiPaymentDunningListPartialPaymentsResponseDto listPaymentsReceived( + public PaymentDunningListPartialPaymentsResponseDto listPaymentsReceived( @NonNull String id, @NonNull ListPaymentsReceivedParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsReceivedRequest(id, requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -377,17 +377,17 @@ public ApiPaymentDunningListPartialPaymentsResponseDto listPaymentsReceived( * * @param id String Unique identifier of the payment dunning in Asaas * @param requestParameters {@link ListPaymentsReceivedParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaymentsReceivedAsync( + public CompletableFuture listPaymentsReceivedAsync( @NonNull String id, @NonNull ListPaymentsReceivedParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsReceivedRequest(id, requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -413,9 +413,9 @@ private Request buildListPaymentsReceivedRequest( /** * List payments available for payment dunning * - * @return response of {@code ApiPaymentDunningPaymentsAvailableForDunningResponseDto} + * @return response of {@code PaymentDunningPaymentsAvailableForDunningResponseDto} */ - public ApiPaymentDunningPaymentsAvailableForDunningResponseDto listPaymentsAvailableForPaymentDunning() + public PaymentDunningPaymentsAvailableForDunningResponseDto listPaymentsAvailableForPaymentDunning() throws ApiError, ValidationException { return this.listPaymentsAvailableForPaymentDunning( ListPaymentsAvailableForPaymentDunningParameters.builder().build() @@ -426,27 +426,27 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDto listPaymentsAvail * List payments available for payment dunning * * @param requestParameters {@link ListPaymentsAvailableForPaymentDunningParameters} Request Parameters Object - * @return response of {@code ApiPaymentDunningPaymentsAvailableForDunningResponseDto} + * @return response of {@code PaymentDunningPaymentsAvailableForDunningResponseDto} */ - public ApiPaymentDunningPaymentsAvailableForDunningResponseDto listPaymentsAvailableForPaymentDunning( + public PaymentDunningPaymentsAvailableForDunningResponseDto listPaymentsAvailableForPaymentDunning( @NonNull ListPaymentsAvailableForPaymentDunningParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsAvailableForPaymentDunningRequest(requestParameters); Response response = this.execute(request); return ModelConverter.convert( response, - new TypeReference() {} + new TypeReference() {} ); } /** * List payments available for payment dunning * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ public CompletableFuture< - ApiPaymentDunningPaymentsAvailableForDunningResponseDto + PaymentDunningPaymentsAvailableForDunningResponseDto > listPaymentsAvailableForPaymentDunningAsync() throws ApiError, ValidationException { return this.listPaymentsAvailableForPaymentDunningAsync( ListPaymentsAvailableForPaymentDunningParameters.builder().build() @@ -457,18 +457,18 @@ > listPaymentsAvailableForPaymentDunningAsync() throws ApiError, ValidationExcep * List payments available for payment dunning * * @param requestParameters {@link ListPaymentsAvailableForPaymentDunningParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ public CompletableFuture< - ApiPaymentDunningPaymentsAvailableForDunningResponseDto + PaymentDunningPaymentsAvailableForDunningResponseDto > listPaymentsAvailableForPaymentDunningAsync( @NonNull ListPaymentsAvailableForPaymentDunningParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsAvailableForPaymentDunningRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -497,45 +497,45 @@ private Request buildListPaymentsAvailableForPaymentDunningRequest( * Resend documents * * @param id String Unique identifier of the payment dunning in Asaas - * @param apiPaymentDunningSaveDocumentsRequestDto {@link ApiPaymentDunningSaveDocumentsRequestDto} Request Body + * @param paymentDunningSaveDocumentsRequestDto {@link PaymentDunningSaveDocumentsRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code ApiPaymentDunningSaveDocumentsResponseDto} + * @return response of {@code PaymentDunningSaveDocumentsResponseDto} */ - public ApiPaymentDunningSaveDocumentsResponseDto resendDocuments( + public PaymentDunningSaveDocumentsResponseDto resendDocuments( @NonNull String id, - @NonNull ApiPaymentDunningSaveDocumentsRequestDto apiPaymentDunningSaveDocumentsRequestDto, + @NonNull PaymentDunningSaveDocumentsRequestDto paymentDunningSaveDocumentsRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildResendDocumentsRequest(id, apiPaymentDunningSaveDocumentsRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildResendDocumentsRequest(id, paymentDunningSaveDocumentsRequestDto, _filename); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Resend documents * * @param id String Unique identifier of the payment dunning in Asaas - * @param apiPaymentDunningSaveDocumentsRequestDto {@link ApiPaymentDunningSaveDocumentsRequestDto} Request Body + * @param paymentDunningSaveDocumentsRequestDto {@link PaymentDunningSaveDocumentsRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture resendDocumentsAsync( + public CompletableFuture resendDocumentsAsync( @NonNull String id, - @NonNull ApiPaymentDunningSaveDocumentsRequestDto apiPaymentDunningSaveDocumentsRequestDto, + @NonNull PaymentDunningSaveDocumentsRequestDto paymentDunningSaveDocumentsRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildResendDocumentsRequest(id, apiPaymentDunningSaveDocumentsRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildResendDocumentsRequest(id, paymentDunningSaveDocumentsRequestDto, _filename); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildResendDocumentsRequest( @NonNull String id, - @NonNull ApiPaymentDunningSaveDocumentsRequestDto apiPaymentDunningSaveDocumentsRequestDto, + @NonNull PaymentDunningSaveDocumentsRequestDto paymentDunningSaveDocumentsRequestDto, @NonNull String _filename ) { return new RequestBuilder( @@ -552,7 +552,7 @@ private Request buildResendDocumentsRequest( "documents", _filename, RequestBody.create( - apiPaymentDunningSaveDocumentsRequestDto.getDocuments(), + paymentDunningSaveDocumentsRequestDto.getDocuments(), MediaType.parse("application/octet-stream") ) ) @@ -566,14 +566,14 @@ private Request buildResendDocumentsRequest( * * @param id String Unique identifier of the payment dunning to be cancelled. * @param input Object Request Body - * @return response of {@code ApiPaymentDunningCancelResponseDto} + * @return response of {@code PaymentDunningCancelResponseDto} */ - public ApiPaymentDunningCancelResponseDto cancelPaymentDunning(@NonNull String id, @NonNull Object input) + public PaymentDunningCancelResponseDto cancelPaymentDunning(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelPaymentDunningRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -581,17 +581,17 @@ public ApiPaymentDunningCancelResponseDto cancelPaymentDunning(@NonNull String i * * @param id String Unique identifier of the payment dunning to be cancelled. * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture cancelPaymentDunningAsync( + public CompletableFuture cancelPaymentDunningAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelPaymentDunningRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/PaymentLinkService.java b/src/main/java/com/asaas/apisdk/services/PaymentLinkService.java index a474e6d..0655542 100644 --- a/src/main/java/com/asaas/apisdk/services/PaymentLinkService.java +++ b/src/main/java/com/asaas/apisdk/services/PaymentLinkService.java @@ -4,22 +4,22 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPaymentCampaignDeleteResponseDto; -import com.asaas.apisdk.models.ApiPaymentCampaignFileDeleteResponseDto; -import com.asaas.apisdk.models.ApiPaymentCampaignFileGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentCampaignFileListResponseDto; -import com.asaas.apisdk.models.ApiPaymentCampaignFileSaveRequestDto; -import com.asaas.apisdk.models.ApiPaymentCampaignGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentCampaignListResponseDto; -import com.asaas.apisdk.models.ApiPaymentCampaignSaveRequestDto; -import com.asaas.apisdk.models.ApiPaymentCampaignUpdateRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListPaymentsLinksParameters; +import com.asaas.apisdk.models.PaymentLinkDeleteResponseDto; +import com.asaas.apisdk.models.PaymentLinkFileDeleteResponseDto; +import com.asaas.apisdk.models.PaymentLinkFileGetResponseDto; +import com.asaas.apisdk.models.PaymentLinkFileListResponseDto; +import com.asaas.apisdk.models.PaymentLinkFileSaveRequestDto; +import com.asaas.apisdk.models.PaymentLinkGetResponseDto; +import com.asaas.apisdk.models.PaymentLinkListResponseDto; +import com.asaas.apisdk.models.PaymentLinkSaveRequestDto; +import com.asaas.apisdk.models.PaymentLinkUpdateRequestDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListPaymentsLinksParametersValidator; @@ -46,9 +46,9 @@ public PaymentLinkService(@NonNull OkHttpClient httpClient, AsaasSdkConfig confi /** * List payments links * - * @return response of {@code ApiPaymentCampaignListResponseDto} + * @return response of {@code PaymentLinkListResponseDto} */ - public ApiPaymentCampaignListResponseDto listPaymentsLinks() throws ApiError, ValidationException { + public PaymentLinkListResponseDto listPaymentsLinks() throws ApiError, ValidationException { return this.listPaymentsLinks(ListPaymentsLinksParameters.builder().build()); } @@ -56,23 +56,22 @@ public ApiPaymentCampaignListResponseDto listPaymentsLinks() throws ApiError, Va * List payments links * * @param requestParameters {@link ListPaymentsLinksParameters} Request Parameters Object - * @return response of {@code ApiPaymentCampaignListResponseDto} + * @return response of {@code PaymentLinkListResponseDto} */ - public ApiPaymentCampaignListResponseDto listPaymentsLinks(@NonNull ListPaymentsLinksParameters requestParameters) + public PaymentLinkListResponseDto listPaymentsLinks(@NonNull ListPaymentsLinksParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsLinksRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List payments links * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaymentsLinksAsync() - throws ApiError, ValidationException { + public CompletableFuture listPaymentsLinksAsync() throws ApiError, ValidationException { return this.listPaymentsLinksAsync(ListPaymentsLinksParameters.builder().build()); } @@ -80,16 +79,16 @@ public CompletableFuture listPaymentsLinksAsy * List payments links * * @param requestParameters {@link ListPaymentsLinksParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaymentsLinksAsync( + public CompletableFuture listPaymentsLinksAsync( @NonNull ListPaymentsLinksParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsLinksRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -116,63 +115,60 @@ private Request buildListPaymentsLinksRequest(@NonNull ListPaymentsLinksParamete /** * Create a payments link * - * @return response of {@code ApiPaymentCampaignGetResponseDto} + * @return response of {@code PaymentLinkGetResponseDto} */ - public ApiPaymentCampaignGetResponseDto createAPaymentsLink() throws ApiError { - return this.createAPaymentsLink(ApiPaymentCampaignSaveRequestDto.builder().build()); + public PaymentLinkGetResponseDto createAPaymentsLink() throws ApiError { + return this.createAPaymentsLink(PaymentLinkSaveRequestDto.builder().build()); } /** * Create a payments link * - * @param apiPaymentCampaignSaveRequestDto {@link ApiPaymentCampaignSaveRequestDto} Request Body - * @return response of {@code ApiPaymentCampaignGetResponseDto} + * @param paymentLinkSaveRequestDto {@link PaymentLinkSaveRequestDto} Request Body + * @return response of {@code PaymentLinkGetResponseDto} */ - public ApiPaymentCampaignGetResponseDto createAPaymentsLink( - @NonNull ApiPaymentCampaignSaveRequestDto apiPaymentCampaignSaveRequestDto - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateAPaymentsLinkRequest(apiPaymentCampaignSaveRequestDto); + public PaymentLinkGetResponseDto createAPaymentsLink(@NonNull PaymentLinkSaveRequestDto paymentLinkSaveRequestDto) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateAPaymentsLinkRequest(paymentLinkSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create a payments link * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createAPaymentsLinkAsync() throws ApiError { - return this.createAPaymentsLinkAsync(ApiPaymentCampaignSaveRequestDto.builder().build()); + public CompletableFuture createAPaymentsLinkAsync() throws ApiError { + return this.createAPaymentsLinkAsync(PaymentLinkSaveRequestDto.builder().build()); } /** * Create a payments link * - * @param apiPaymentCampaignSaveRequestDto {@link ApiPaymentCampaignSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentLinkSaveRequestDto {@link PaymentLinkSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createAPaymentsLinkAsync( - @NonNull ApiPaymentCampaignSaveRequestDto apiPaymentCampaignSaveRequestDto + public CompletableFuture createAPaymentsLinkAsync( + @NonNull PaymentLinkSaveRequestDto paymentLinkSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateAPaymentsLinkRequest(apiPaymentCampaignSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateAPaymentsLinkRequest(paymentLinkSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildCreateAPaymentsLinkRequest( - @NonNull ApiPaymentCampaignSaveRequestDto apiPaymentCampaignSaveRequestDto - ) { + private Request buildCreateAPaymentsLinkRequest(@NonNull PaymentLinkSaveRequestDto paymentLinkSaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/paymentLinks" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiPaymentCampaignSaveRequestDto) + .setJsonContent(paymentLinkSaveRequestDto) .build(); } @@ -180,28 +176,28 @@ private Request buildCreateAPaymentsLinkRequest( * Retrieve a single payments link * * @param id String Unique identifier for your payments link in Asaas - * @return response of {@code ApiPaymentCampaignGetResponseDto} + * @return response of {@code PaymentLinkGetResponseDto} */ - public ApiPaymentCampaignGetResponseDto retrieveASinglePaymentsLink(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentLinkGetResponseDto retrieveASinglePaymentsLink(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASinglePaymentsLinkRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single payments link * * @param id String Unique identifier for your payments link in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASinglePaymentsLinkAsync(@NonNull String id) + public CompletableFuture retrieveASinglePaymentsLinkAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASinglePaymentsLinkRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -220,41 +216,41 @@ private Request buildRetrieveASinglePaymentsLinkRequest(@NonNull String id) { * Update a payments link * * @param id String Unique identifier for your payments link in Asaas - * @param apiPaymentCampaignUpdateRequestDto {@link ApiPaymentCampaignUpdateRequestDto} Request Body - * @return response of {@code ApiPaymentCampaignGetResponseDto} + * @param paymentLinkUpdateRequestDto {@link PaymentLinkUpdateRequestDto} Request Body + * @return response of {@code PaymentLinkGetResponseDto} */ - public ApiPaymentCampaignGetResponseDto updateAPaymentsLink( + public PaymentLinkGetResponseDto updateAPaymentsLink( @NonNull String id, - @NonNull ApiPaymentCampaignUpdateRequestDto apiPaymentCampaignUpdateRequestDto + @NonNull PaymentLinkUpdateRequestDto paymentLinkUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateAPaymentsLinkRequest(id, apiPaymentCampaignUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateAPaymentsLinkRequest(id, paymentLinkUpdateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update a payments link * * @param id String Unique identifier for your payments link in Asaas - * @param apiPaymentCampaignUpdateRequestDto {@link ApiPaymentCampaignUpdateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentLinkUpdateRequestDto {@link PaymentLinkUpdateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateAPaymentsLinkAsync( + public CompletableFuture updateAPaymentsLinkAsync( @NonNull String id, - @NonNull ApiPaymentCampaignUpdateRequestDto apiPaymentCampaignUpdateRequestDto + @NonNull PaymentLinkUpdateRequestDto paymentLinkUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateAPaymentsLinkRequest(id, apiPaymentCampaignUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateAPaymentsLinkRequest(id, paymentLinkUpdateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateAPaymentsLinkRequest( @NonNull String id, - @NonNull ApiPaymentCampaignUpdateRequestDto apiPaymentCampaignUpdateRequestDto + @NonNull PaymentLinkUpdateRequestDto paymentLinkUpdateRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -263,7 +259,7 @@ private Request buildUpdateAPaymentsLinkRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiPaymentCampaignUpdateRequestDto) + .setJsonContent(paymentLinkUpdateRequestDto) .build(); } @@ -271,28 +267,27 @@ private Request buildUpdateAPaymentsLinkRequest( * Remove a payments link * * @param id String Unique identifier for your payments link in Asaas - * @return response of {@code ApiPaymentCampaignDeleteResponseDto} + * @return response of {@code PaymentLinkDeleteResponseDto} */ - public ApiPaymentCampaignDeleteResponseDto removeAPaymentsLink(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentLinkDeleteResponseDto removeAPaymentsLink(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveAPaymentsLinkRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Remove a payments link * * @param id String Unique identifier for your payments link in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture removeAPaymentsLinkAsync(@NonNull String id) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture removeAPaymentsLinkAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveAPaymentsLinkRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -312,14 +307,13 @@ private Request buildRemoveAPaymentsLinkRequest(@NonNull String id) { * * @param id String Unique identifier for your payments link in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentCampaignGetResponseDto} + * @return response of {@code PaymentLinkGetResponseDto} */ - public ApiPaymentCampaignGetResponseDto restoreAPaymentsLink(@NonNull String id, @NonNull Object input) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentLinkGetResponseDto restoreAPaymentsLink(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRestoreAPaymentsLinkRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -327,17 +321,17 @@ public ApiPaymentCampaignGetResponseDto restoreAPaymentsLink(@NonNull String id, * * @param id String Unique identifier for your payments link in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture restoreAPaymentsLinkAsync( + public CompletableFuture restoreAPaymentsLinkAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRestoreAPaymentsLinkRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -357,28 +351,28 @@ private Request buildRestoreAPaymentsLinkRequest(@NonNull String id, @NonNull Ob * List images from a payments link * * @param id String Unique identifier for your payments link in Asaas - * @return response of {@code ApiPaymentCampaignFileListResponseDto} + * @return response of {@code PaymentLinkFileListResponseDto} */ - public ApiPaymentCampaignFileListResponseDto listImagesFromAPaymentsLink(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentLinkFileListResponseDto listImagesFromAPaymentsLink(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListImagesFromAPaymentsLinkRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List images from a payments link * * @param id String Unique identifier for your payments link in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listImagesFromAPaymentsLinkAsync(@NonNull String id) + public CompletableFuture listImagesFromAPaymentsLinkAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListImagesFromAPaymentsLinkRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -397,56 +391,56 @@ private Request buildListImagesFromAPaymentsLinkRequest(@NonNull String id) { * Add an image to a payments link * * @param id String Unique identifier for your payments link in Asaas - * @param apiPaymentCampaignFileSaveRequestDto {@link ApiPaymentCampaignFileSaveRequestDto} Request Body + * @param paymentLinkFileSaveRequestDto {@link PaymentLinkFileSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code ApiPaymentCampaignFileGetResponseDto} + * @return response of {@code PaymentLinkFileGetResponseDto} */ - public ApiPaymentCampaignFileGetResponseDto addAnImageToAPaymentsLink( + public PaymentLinkFileGetResponseDto addAnImageToAPaymentsLink( @NonNull String id, - @NonNull ApiPaymentCampaignFileSaveRequestDto apiPaymentCampaignFileSaveRequestDto, + @NonNull PaymentLinkFileSaveRequestDto paymentLinkFileSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildAddAnImageToAPaymentsLinkRequest(id, apiPaymentCampaignFileSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildAddAnImageToAPaymentsLinkRequest(id, paymentLinkFileSaveRequestDto, _filename); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Add an image to a payments link * * @param id String Unique identifier for your payments link in Asaas - * @param apiPaymentCampaignFileSaveRequestDto {@link ApiPaymentCampaignFileSaveRequestDto} Request Body + * @param paymentLinkFileSaveRequestDto {@link PaymentLinkFileSaveRequestDto} Request Body * @param _filename String Filename for the uploaded file - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture addAnImageToAPaymentsLinkAsync( + public CompletableFuture addAnImageToAPaymentsLinkAsync( @NonNull String id, - @NonNull ApiPaymentCampaignFileSaveRequestDto apiPaymentCampaignFileSaveRequestDto, + @NonNull PaymentLinkFileSaveRequestDto paymentLinkFileSaveRequestDto, @NonNull String _filename ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildAddAnImageToAPaymentsLinkRequest(id, apiPaymentCampaignFileSaveRequestDto, _filename); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildAddAnImageToAPaymentsLinkRequest(id, paymentLinkFileSaveRequestDto, _filename); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildAddAnImageToAPaymentsLinkRequest( @NonNull String id, - @NonNull ApiPaymentCampaignFileSaveRequestDto apiPaymentCampaignFileSaveRequestDto, + @NonNull PaymentLinkFileSaveRequestDto paymentLinkFileSaveRequestDto, @NonNull String _filename ) { MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); - if (apiPaymentCampaignFileSaveRequestDto.getMain() != null) { - multipartBodyBuilder.addFormDataPart("main", apiPaymentCampaignFileSaveRequestDto.getMain().toString()); + if (paymentLinkFileSaveRequestDto.getMain() != null) { + multipartBodyBuilder.addFormDataPart("main", paymentLinkFileSaveRequestDto.getMain().toString()); } - if (apiPaymentCampaignFileSaveRequestDto.getImage() != null) { + if (paymentLinkFileSaveRequestDto.getImage() != null) { multipartBodyBuilder.addFormDataPart( "image", _filename, - RequestBody.create(apiPaymentCampaignFileSaveRequestDto.getImage(), MediaType.parse("application/octet-stream")) + RequestBody.create(paymentLinkFileSaveRequestDto.getImage(), MediaType.parse("application/octet-stream")) ); } return new RequestBuilder( @@ -465,16 +459,16 @@ private Request buildAddAnImageToAPaymentsLinkRequest( * * @param paymentLinkId String Unique identifier for your payments link in Asaas * @param imageId String Unique payment link image identifier in Asaas - * @return response of {@code ApiPaymentCampaignFileGetResponseDto} + * @return response of {@code PaymentLinkFileGetResponseDto} */ - public ApiPaymentCampaignFileGetResponseDto retrieveASinglePaymentsLinkImage( + public PaymentLinkFileGetResponseDto retrieveASinglePaymentsLinkImage( @NonNull String paymentLinkId, @NonNull String imageId ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASinglePaymentsLinkImageRequest(paymentLinkId, imageId); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -482,17 +476,17 @@ public ApiPaymentCampaignFileGetResponseDto retrieveASinglePaymentsLinkImage( * * @param paymentLinkId String Unique identifier for your payments link in Asaas * @param imageId String Unique payment link image identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASinglePaymentsLinkImageAsync( + public CompletableFuture retrieveASinglePaymentsLinkImageAsync( @NonNull String paymentLinkId, @NonNull String imageId ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASinglePaymentsLinkImageRequest(paymentLinkId, imageId); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -513,16 +507,16 @@ private Request buildRetrieveASinglePaymentsLinkImageRequest(@NonNull String pay * * @param paymentLinkId String Unique identifier for your payments link in Asaas * @param imageId String Unique payment link image identifier in Asaas - * @return response of {@code ApiPaymentCampaignFileDeleteResponseDto} + * @return response of {@code PaymentLinkFileDeleteResponseDto} */ - public ApiPaymentCampaignFileDeleteResponseDto removeAnImageFromPaymentsLink( + public PaymentLinkFileDeleteResponseDto removeAnImageFromPaymentsLink( @NonNull String paymentLinkId, @NonNull String imageId ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveAnImageFromPaymentsLinkRequest(paymentLinkId, imageId); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -530,17 +524,17 @@ public ApiPaymentCampaignFileDeleteResponseDto removeAnImageFromPaymentsLink( * * @param paymentLinkId String Unique identifier for your payments link in Asaas * @param imageId String Unique payment link image identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture removeAnImageFromPaymentsLinkAsync( + public CompletableFuture removeAnImageFromPaymentsLinkAsync( @NonNull String paymentLinkId, @NonNull String imageId ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveAnImageFromPaymentsLinkRequest(paymentLinkId, imageId); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -562,17 +556,17 @@ private Request buildRemoveAnImageFromPaymentsLinkRequest(@NonNull String paymen * @param paymentLinkId String Unique identifier for your payments link in Asaas * @param imageId String Unique payment link image identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentCampaignFileGetResponseDto} + * @return response of {@code PaymentLinkFileGetResponseDto} */ - public ApiPaymentCampaignFileGetResponseDto setPaymentsLinkMainImage( + public PaymentLinkFileGetResponseDto setPaymentsLinkMainImage( @NonNull String paymentLinkId, @NonNull String imageId, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildSetPaymentsLinkMainImageRequest(paymentLinkId, imageId, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -581,18 +575,18 @@ public ApiPaymentCampaignFileGetResponseDto setPaymentsLinkMainImage( * @param paymentLinkId String Unique identifier for your payments link in Asaas * @param imageId String Unique payment link image identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture setPaymentsLinkMainImageAsync( + public CompletableFuture setPaymentsLinkMainImageAsync( @NonNull String paymentLinkId, @NonNull String imageId, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildSetPaymentsLinkMainImageRequest(paymentLinkId, imageId, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/PaymentRefundService.java b/src/main/java/com/asaas/apisdk/services/PaymentRefundService.java index 0ee35dc..a7ab8d2 100644 --- a/src/main/java/com/asaas/apisdk/services/PaymentRefundService.java +++ b/src/main/java/com/asaas/apisdk/services/PaymentRefundService.java @@ -4,14 +4,14 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPaymentBankSlipRefundResponseDto; -import com.asaas.apisdk.models.ApiPaymentRefundListResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; +import com.asaas.apisdk.models.PaymentBankSlipRefundResponseDto; +import com.asaas.apisdk.models.PaymentRefundListResponseDto; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -33,28 +33,28 @@ public PaymentRefundService(@NonNull OkHttpClient httpClient, AsaasSdkConfig con * Retrieve refunds of a single payment * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentRefundListResponseDto} + * @return response of {@code PaymentRefundListResponseDto} */ - public ApiPaymentRefundListResponseDto retrieveRefundsOfASinglePayment(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentRefundListResponseDto retrieveRefundsOfASinglePayment(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveRefundsOfASinglePaymentRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve refunds of a single payment * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveRefundsOfASinglePaymentAsync(@NonNull String id) + public CompletableFuture retrieveRefundsOfASinglePaymentAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveRefundsOfASinglePaymentRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -74,13 +74,13 @@ private Request buildRetrieveRefundsOfASinglePaymentRequest(@NonNull String id) * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentBankSlipRefundResponseDto} + * @return response of {@code PaymentBankSlipRefundResponseDto} */ - public ApiPaymentBankSlipRefundResponseDto refundBankSlip(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentBankSlipRefundResponseDto refundBankSlip(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRefundBankSlipRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -88,17 +88,17 @@ public ApiPaymentBankSlipRefundResponseDto refundBankSlip(@NonNull String id, @N * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture refundBankSlipAsync( + public CompletableFuture refundBankSlipAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRefundBankSlipRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/PaymentService.java b/src/main/java/com/asaas/apisdk/services/PaymentService.java index 8c59f29..64c9d7b 100644 --- a/src/main/java/com/asaas/apisdk/services/PaymentService.java +++ b/src/main/java/com/asaas/apisdk/services/PaymentService.java @@ -4,31 +4,31 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPaymentBillingInfoResponseDto; -import com.asaas.apisdk.models.ApiPaymentCustodyGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentDeleteResponseDto; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentIdentificationFieldResponseDto; -import com.asaas.apisdk.models.ApiPaymentLimitsResponseDto; -import com.asaas.apisdk.models.ApiPaymentListResponseDto; -import com.asaas.apisdk.models.ApiPaymentPayWithCreditCardRequestDto; -import com.asaas.apisdk.models.ApiPaymentPixQrCodeResponseDto; -import com.asaas.apisdk.models.ApiPaymentReceiveInCashRequestDto; -import com.asaas.apisdk.models.ApiPaymentRefundRequestDto; -import com.asaas.apisdk.models.ApiPaymentSaveRequestDto; -import com.asaas.apisdk.models.ApiPaymentSaveWithCreditCardRequestDto; -import com.asaas.apisdk.models.ApiPaymentSimulateRequestDto; -import com.asaas.apisdk.models.ApiPaymentSimulateResponseDto; -import com.asaas.apisdk.models.ApiPaymentStatusResponseDto; -import com.asaas.apisdk.models.ApiPaymentUpdateRequestDto; -import com.asaas.apisdk.models.ApiPaymentViewingInfoResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListPaymentsParameters; +import com.asaas.apisdk.models.PaymentBillingInfoResponseDto; +import com.asaas.apisdk.models.PaymentDeleteResponseDto; +import com.asaas.apisdk.models.PaymentEscrowGetResponseDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; +import com.asaas.apisdk.models.PaymentIdentificationFieldResponseDto; +import com.asaas.apisdk.models.PaymentLimitsResponseDto; +import com.asaas.apisdk.models.PaymentListResponseDto; +import com.asaas.apisdk.models.PaymentPayWithCreditCardRequestDto; +import com.asaas.apisdk.models.PaymentPixQrCodeResponseDto; +import com.asaas.apisdk.models.PaymentReceiveInCashRequestDto; +import com.asaas.apisdk.models.PaymentRefundRequestDto; +import com.asaas.apisdk.models.PaymentSaveRequestDto; +import com.asaas.apisdk.models.PaymentSaveWithCreditCardRequestDto; +import com.asaas.apisdk.models.PaymentSimulateRequestDto; +import com.asaas.apisdk.models.PaymentSimulateResponseDto; +import com.asaas.apisdk.models.PaymentStatusResponseDto; +import com.asaas.apisdk.models.PaymentUpdateRequestDto; +import com.asaas.apisdk.models.PaymentViewingInfoResponseDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListPaymentsParametersValidator; @@ -52,9 +52,9 @@ public PaymentService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config) { /** * List payments * - * @return response of {@code ApiPaymentListResponseDto} + * @return response of {@code PaymentListResponseDto} */ - public ApiPaymentListResponseDto listPayments() throws ApiError, ValidationException { + public PaymentListResponseDto listPayments() throws ApiError, ValidationException { return this.listPayments(ListPaymentsParameters.builder().build()); } @@ -62,22 +62,22 @@ public ApiPaymentListResponseDto listPayments() throws ApiError, ValidationExcep * List payments * * @param requestParameters {@link ListPaymentsParameters} Request Parameters Object - * @return response of {@code ApiPaymentListResponseDto} + * @return response of {@code PaymentListResponseDto} */ - public ApiPaymentListResponseDto listPayments(@NonNull ListPaymentsParameters requestParameters) + public PaymentListResponseDto listPayments(@NonNull ListPaymentsParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List payments * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaymentsAsync() throws ApiError, ValidationException { + public CompletableFuture listPaymentsAsync() throws ApiError, ValidationException { return this.listPaymentsAsync(ListPaymentsParameters.builder().build()); } @@ -85,16 +85,15 @@ public CompletableFuture listPaymentsAsync() throws A * List payments * * @param requestParameters {@link ListPaymentsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaymentsAsync( - @NonNull ListPaymentsParameters requestParameters - ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture listPaymentsAsync(@NonNull ListPaymentsParameters requestParameters) + throws ApiError, ValidationException { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -145,115 +144,114 @@ private Request buildListPaymentsRequest(@NonNull ListPaymentsParameters request /** * Create new payment * - * @return response of {@code ApiPaymentGetResponseDto} + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto createNewPayment() throws ApiError { - return this.createNewPayment(ApiPaymentSaveRequestDto.builder().build()); + public PaymentGetResponseDto createNewPayment() throws ApiError { + return this.createNewPayment(PaymentSaveRequestDto.builder().build()); } /** * Create new payment * - * @param apiPaymentSaveRequestDto {@link ApiPaymentSaveRequestDto} Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @param paymentSaveRequestDto {@link PaymentSaveRequestDto} Request Body + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto createNewPayment(@NonNull ApiPaymentSaveRequestDto apiPaymentSaveRequestDto) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewPaymentRequest(apiPaymentSaveRequestDto); + public PaymentGetResponseDto createNewPayment(@NonNull PaymentSaveRequestDto paymentSaveRequestDto) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewPaymentRequest(paymentSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create new payment * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewPaymentAsync() throws ApiError { - return this.createNewPaymentAsync(ApiPaymentSaveRequestDto.builder().build()); + public CompletableFuture createNewPaymentAsync() throws ApiError { + return this.createNewPaymentAsync(PaymentSaveRequestDto.builder().build()); } /** * Create new payment * - * @param apiPaymentSaveRequestDto {@link ApiPaymentSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentSaveRequestDto {@link PaymentSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewPaymentAsync( - @NonNull ApiPaymentSaveRequestDto apiPaymentSaveRequestDto + public CompletableFuture createNewPaymentAsync( + @NonNull PaymentSaveRequestDto paymentSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewPaymentRequest(apiPaymentSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewPaymentRequest(paymentSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildCreateNewPaymentRequest(@NonNull ApiPaymentSaveRequestDto apiPaymentSaveRequestDto) { + private Request buildCreateNewPaymentRequest(@NonNull PaymentSaveRequestDto paymentSaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/payments" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiPaymentSaveRequestDto) + .setJsonContent(paymentSaveRequestDto) .build(); } /** * Create new payment with credit card * - * @return response of {@code ApiPaymentGetResponseDto} + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto createNewPaymentWithCreditCard() throws ApiError { - return this.createNewPaymentWithCreditCard(ApiPaymentSaveWithCreditCardRequestDto.builder().build()); + public PaymentGetResponseDto createNewPaymentWithCreditCard() throws ApiError { + return this.createNewPaymentWithCreditCard(PaymentSaveWithCreditCardRequestDto.builder().build()); } /** * Create new payment with credit card * - * @param apiPaymentSaveWithCreditCardRequestDto {@link ApiPaymentSaveWithCreditCardRequestDto} Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @param paymentSaveWithCreditCardRequestDto {@link PaymentSaveWithCreditCardRequestDto} Request Body + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto createNewPaymentWithCreditCard( - @NonNull ApiPaymentSaveWithCreditCardRequestDto apiPaymentSaveWithCreditCardRequestDto + public PaymentGetResponseDto createNewPaymentWithCreditCard( + @NonNull PaymentSaveWithCreditCardRequestDto paymentSaveWithCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewPaymentWithCreditCardRequest(apiPaymentSaveWithCreditCardRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewPaymentWithCreditCardRequest(paymentSaveWithCreditCardRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create new payment with credit card * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewPaymentWithCreditCardAsync() throws ApiError { - return this.createNewPaymentWithCreditCardAsync(ApiPaymentSaveWithCreditCardRequestDto.builder().build()); + public CompletableFuture createNewPaymentWithCreditCardAsync() throws ApiError { + return this.createNewPaymentWithCreditCardAsync(PaymentSaveWithCreditCardRequestDto.builder().build()); } /** * Create new payment with credit card * - * @param apiPaymentSaveWithCreditCardRequestDto {@link ApiPaymentSaveWithCreditCardRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentSaveWithCreditCardRequestDto {@link PaymentSaveWithCreditCardRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewPaymentWithCreditCardAsync( - @NonNull ApiPaymentSaveWithCreditCardRequestDto apiPaymentSaveWithCreditCardRequestDto + public CompletableFuture createNewPaymentWithCreditCardAsync( + @NonNull PaymentSaveWithCreditCardRequestDto paymentSaveWithCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewPaymentWithCreditCardRequest(apiPaymentSaveWithCreditCardRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewPaymentWithCreditCardRequest(paymentSaveWithCreditCardRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildCreateNewPaymentWithCreditCardRequest( - @NonNull ApiPaymentSaveWithCreditCardRequestDto apiPaymentSaveWithCreditCardRequestDto + @NonNull PaymentSaveWithCreditCardRequestDto paymentSaveWithCreditCardRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -261,7 +259,7 @@ private Request buildCreateNewPaymentWithCreditCardRequest( "v3/payments/" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiPaymentSaveWithCreditCardRequestDto) + .setJsonContent(paymentSaveWithCreditCardRequestDto) .build(); } @@ -270,14 +268,14 @@ private Request buildCreateNewPaymentWithCreditCardRequest( * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto capturePaymentWithPreAuthorization(@NonNull String id, @NonNull Object input) + public PaymentGetResponseDto capturePaymentWithPreAuthorization(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCapturePaymentWithPreAuthorizationRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -285,17 +283,17 @@ public ApiPaymentGetResponseDto capturePaymentWithPreAuthorization(@NonNull Stri * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture capturePaymentWithPreAuthorizationAsync( + public CompletableFuture capturePaymentWithPreAuthorizationAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCapturePaymentWithPreAuthorizationRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -315,41 +313,41 @@ private Request buildCapturePaymentWithPreAuthorizationRequest(@NonNull String i * Pay a charge with a credit card * * @param id String Unique payment identifier in Asaas - * @param apiPaymentPayWithCreditCardRequestDto {@link ApiPaymentPayWithCreditCardRequestDto} Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @param paymentPayWithCreditCardRequestDto {@link PaymentPayWithCreditCardRequestDto} Request Body + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto payAChargeWithCreditCard( + public PaymentGetResponseDto payAChargeWithCreditCard( @NonNull String id, - @NonNull ApiPaymentPayWithCreditCardRequestDto apiPaymentPayWithCreditCardRequestDto + @NonNull PaymentPayWithCreditCardRequestDto paymentPayWithCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildPayAChargeWithCreditCardRequest(id, apiPaymentPayWithCreditCardRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildPayAChargeWithCreditCardRequest(id, paymentPayWithCreditCardRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Pay a charge with a credit card * * @param id String Unique payment identifier in Asaas - * @param apiPaymentPayWithCreditCardRequestDto {@link ApiPaymentPayWithCreditCardRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentPayWithCreditCardRequestDto {@link PaymentPayWithCreditCardRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture payAChargeWithCreditCardAsync( + public CompletableFuture payAChargeWithCreditCardAsync( @NonNull String id, - @NonNull ApiPaymentPayWithCreditCardRequestDto apiPaymentPayWithCreditCardRequestDto + @NonNull PaymentPayWithCreditCardRequestDto paymentPayWithCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildPayAChargeWithCreditCardRequest(id, apiPaymentPayWithCreditCardRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildPayAChargeWithCreditCardRequest(id, paymentPayWithCreditCardRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildPayAChargeWithCreditCardRequest( @NonNull String id, - @NonNull ApiPaymentPayWithCreditCardRequestDto apiPaymentPayWithCreditCardRequestDto + @NonNull PaymentPayWithCreditCardRequestDto paymentPayWithCreditCardRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -358,7 +356,7 @@ private Request buildPayAChargeWithCreditCardRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiPaymentPayWithCreditCardRequestDto) + .setJsonContent(paymentPayWithCreditCardRequestDto) .build(); } @@ -366,28 +364,28 @@ private Request buildPayAChargeWithCreditCardRequest( * Retrieve payment billing information * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentBillingInfoResponseDto} + * @return response of {@code PaymentBillingInfoResponseDto} */ - public ApiPaymentBillingInfoResponseDto retrievePaymentBillingInformation(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentBillingInfoResponseDto retrievePaymentBillingInformation(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrievePaymentBillingInformationRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve payment billing information * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrievePaymentBillingInformationAsync(@NonNull String id) + public CompletableFuture retrievePaymentBillingInformationAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrievePaymentBillingInformationRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -406,28 +404,28 @@ private Request buildRetrievePaymentBillingInformationRequest(@NonNull String id * Payment viewing information * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentViewingInfoResponseDto} + * @return response of {@code PaymentViewingInfoResponseDto} */ - public ApiPaymentViewingInfoResponseDto paymentViewingInformation(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentViewingInfoResponseDto paymentViewingInformation(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildPaymentViewingInformationRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Payment viewing information * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture paymentViewingInformationAsync(@NonNull String id) + public CompletableFuture paymentViewingInformationAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildPaymentViewingInformationRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -446,27 +444,27 @@ private Request buildPaymentViewingInformationRequest(@NonNull String id) { * Retrieve a single payment * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentGetResponseDto} + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto retrieveASinglePayment(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentGetResponseDto retrieveASinglePayment(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASinglePaymentRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single payment * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASinglePaymentAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveASinglePaymentAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASinglePaymentRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -485,41 +483,41 @@ private Request buildRetrieveASinglePaymentRequest(@NonNull String id) { * Update existing payment * * @param id String Unique payment identifier in Asaas - * @param apiPaymentUpdateRequestDto {@link ApiPaymentUpdateRequestDto} Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @param paymentUpdateRequestDto {@link PaymentUpdateRequestDto} Request Body + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto updateExistingPayment( + public PaymentGetResponseDto updateExistingPayment( @NonNull String id, - @NonNull ApiPaymentUpdateRequestDto apiPaymentUpdateRequestDto + @NonNull PaymentUpdateRequestDto paymentUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingPaymentRequest(id, apiPaymentUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingPaymentRequest(id, paymentUpdateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update existing payment * * @param id String Unique payment identifier in Asaas - * @param apiPaymentUpdateRequestDto {@link ApiPaymentUpdateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentUpdateRequestDto {@link PaymentUpdateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateExistingPaymentAsync( + public CompletableFuture updateExistingPaymentAsync( @NonNull String id, - @NonNull ApiPaymentUpdateRequestDto apiPaymentUpdateRequestDto + @NonNull PaymentUpdateRequestDto paymentUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingPaymentRequest(id, apiPaymentUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingPaymentRequest(id, paymentUpdateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateExistingPaymentRequest( @NonNull String id, - @NonNull ApiPaymentUpdateRequestDto apiPaymentUpdateRequestDto + @NonNull PaymentUpdateRequestDto paymentUpdateRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -528,7 +526,7 @@ private Request buildUpdateExistingPaymentRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiPaymentUpdateRequestDto) + .setJsonContent(paymentUpdateRequestDto) .build(); } @@ -536,27 +534,27 @@ private Request buildUpdateExistingPaymentRequest( * Delete payment * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentDeleteResponseDto} + * @return response of {@code PaymentDeleteResponseDto} */ - public ApiPaymentDeleteResponseDto deletePayment(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentDeleteResponseDto deletePayment(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildDeletePaymentRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Delete payment * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture deletePaymentAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture deletePaymentAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildDeletePaymentRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -576,13 +574,13 @@ private Request buildDeletePaymentRequest(@NonNull String id) { * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto restoreRemovedPayment(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentGetResponseDto restoreRemovedPayment(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRestoreRemovedPaymentRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -590,17 +588,15 @@ public ApiPaymentGetResponseDto restoreRemovedPayment(@NonNull String id, @NonNu * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture restoreRemovedPaymentAsync( - @NonNull String id, - @NonNull Object input - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture restoreRemovedPaymentAsync(@NonNull String id, @NonNull Object input) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRestoreRemovedPaymentRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -620,28 +616,27 @@ private Request buildRestoreRemovedPaymentRequest(@NonNull String id, @NonNull O * Retrieve status of a payment * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentStatusResponseDto} + * @return response of {@code PaymentStatusResponseDto} */ - public ApiPaymentStatusResponseDto retrieveStatusOfAPayment(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentStatusResponseDto retrieveStatusOfAPayment(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveStatusOfAPaymentRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve status of a payment * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveStatusOfAPaymentAsync(@NonNull String id) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveStatusOfAPaymentAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveStatusOfAPaymentRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -660,41 +655,41 @@ private Request buildRetrieveStatusOfAPaymentRequest(@NonNull String id) { * Refund payment * * @param id String Unique payment identifier in Asaas - * @param apiPaymentRefundRequestDto {@link ApiPaymentRefundRequestDto} Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @param paymentRefundRequestDto {@link PaymentRefundRequestDto} Request Body + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto refundPayment( + public PaymentGetResponseDto refundPayment( @NonNull String id, - @NonNull ApiPaymentRefundRequestDto apiPaymentRefundRequestDto + @NonNull PaymentRefundRequestDto paymentRefundRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildRefundPaymentRequest(id, apiPaymentRefundRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildRefundPaymentRequest(id, paymentRefundRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Refund payment * * @param id String Unique payment identifier in Asaas - * @param apiPaymentRefundRequestDto {@link ApiPaymentRefundRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentRefundRequestDto {@link PaymentRefundRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture refundPaymentAsync( + public CompletableFuture refundPaymentAsync( @NonNull String id, - @NonNull ApiPaymentRefundRequestDto apiPaymentRefundRequestDto + @NonNull PaymentRefundRequestDto paymentRefundRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildRefundPaymentRequest(id, apiPaymentRefundRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildRefundPaymentRequest(id, paymentRefundRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildRefundPaymentRequest( @NonNull String id, - @NonNull ApiPaymentRefundRequestDto apiPaymentRefundRequestDto + @NonNull PaymentRefundRequestDto paymentRefundRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -703,7 +698,7 @@ private Request buildRefundPaymentRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiPaymentRefundRequestDto) + .setJsonContent(paymentRefundRequestDto) .build(); } @@ -711,28 +706,28 @@ private Request buildRefundPaymentRequest( * Get digitable bill line * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentIdentificationFieldResponseDto} + * @return response of {@code PaymentIdentificationFieldResponseDto} */ - public ApiPaymentIdentificationFieldResponseDto getDigitableBillLine(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentIdentificationFieldResponseDto getDigitableBillLine(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildGetDigitableBillLineRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Get digitable bill line * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture getDigitableBillLineAsync(@NonNull String id) + public CompletableFuture getDigitableBillLineAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildGetDigitableBillLineRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -751,28 +746,28 @@ private Request buildGetDigitableBillLineRequest(@NonNull String id) { * Get QR Code for Pix payments * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentPixQrCodeResponseDto} + * @return response of {@code PaymentPixQrCodeResponseDto} */ - public ApiPaymentPixQrCodeResponseDto getQrCodeForPixPayments(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentPixQrCodeResponseDto getQrCodeForPixPayments(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildGetQrCodeForPixPaymentsRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Get QR Code for Pix payments * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture getQrCodeForPixPaymentsAsync(@NonNull String id) + public CompletableFuture getQrCodeForPixPaymentsAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildGetQrCodeForPixPaymentsRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -791,41 +786,41 @@ private Request buildGetQrCodeForPixPaymentsRequest(@NonNull String id) { * Confirm cash receipt * * @param id String Unique payment identifier in Asaas - * @param apiPaymentReceiveInCashRequestDto {@link ApiPaymentReceiveInCashRequestDto} Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @param paymentReceiveInCashRequestDto {@link PaymentReceiveInCashRequestDto} Request Body + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto confirmCashReceipt( + public PaymentGetResponseDto confirmCashReceipt( @NonNull String id, - @NonNull ApiPaymentReceiveInCashRequestDto apiPaymentReceiveInCashRequestDto + @NonNull PaymentReceiveInCashRequestDto paymentReceiveInCashRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildConfirmCashReceiptRequest(id, apiPaymentReceiveInCashRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildConfirmCashReceiptRequest(id, paymentReceiveInCashRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Confirm cash receipt * * @param id String Unique payment identifier in Asaas - * @param apiPaymentReceiveInCashRequestDto {@link ApiPaymentReceiveInCashRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentReceiveInCashRequestDto {@link PaymentReceiveInCashRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture confirmCashReceiptAsync( + public CompletableFuture confirmCashReceiptAsync( @NonNull String id, - @NonNull ApiPaymentReceiveInCashRequestDto apiPaymentReceiveInCashRequestDto + @NonNull PaymentReceiveInCashRequestDto paymentReceiveInCashRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildConfirmCashReceiptRequest(id, apiPaymentReceiveInCashRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildConfirmCashReceiptRequest(id, paymentReceiveInCashRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildConfirmCashReceiptRequest( @NonNull String id, - @NonNull ApiPaymentReceiveInCashRequestDto apiPaymentReceiveInCashRequestDto + @NonNull PaymentReceiveInCashRequestDto paymentReceiveInCashRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -834,7 +829,7 @@ private Request buildConfirmCashReceiptRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiPaymentReceiveInCashRequestDto) + .setJsonContent(paymentReceiveInCashRequestDto) .build(); } @@ -843,14 +838,13 @@ private Request buildConfirmCashReceiptRequest( * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto undoCashReceiptConfirmation(@NonNull String id, @NonNull Object input) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentGetResponseDto undoCashReceiptConfirmation(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildUndoCashReceiptConfirmationRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -858,17 +852,17 @@ public ApiPaymentGetResponseDto undoCashReceiptConfirmation(@NonNull String id, * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture undoCashReceiptConfirmationAsync( + public CompletableFuture undoCashReceiptConfirmationAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildUndoCashReceiptConfirmationRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -887,61 +881,60 @@ private Request buildUndoCashReceiptConfirmationRequest(@NonNull String id, @Non /** * Sales simulator * - * @return response of {@code ApiPaymentSimulateResponseDto} + * @return response of {@code PaymentSimulateResponseDto} */ - public ApiPaymentSimulateResponseDto salesSimulator() throws ApiError { - return this.salesSimulator(ApiPaymentSimulateRequestDto.builder().build()); + public PaymentSimulateResponseDto salesSimulator() throws ApiError { + return this.salesSimulator(PaymentSimulateRequestDto.builder().build()); } /** * Sales simulator * - * @param apiPaymentSimulateRequestDto {@link ApiPaymentSimulateRequestDto} Request Body - * @return response of {@code ApiPaymentSimulateResponseDto} + * @param paymentSimulateRequestDto {@link PaymentSimulateRequestDto} Request Body + * @return response of {@code PaymentSimulateResponseDto} */ - public ApiPaymentSimulateResponseDto salesSimulator( - @NonNull ApiPaymentSimulateRequestDto apiPaymentSimulateRequestDto - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildSalesSimulatorRequest(apiPaymentSimulateRequestDto); + public PaymentSimulateResponseDto salesSimulator(@NonNull PaymentSimulateRequestDto paymentSimulateRequestDto) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildSalesSimulatorRequest(paymentSimulateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Sales simulator * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture salesSimulatorAsync() throws ApiError { - return this.salesSimulatorAsync(ApiPaymentSimulateRequestDto.builder().build()); + public CompletableFuture salesSimulatorAsync() throws ApiError { + return this.salesSimulatorAsync(PaymentSimulateRequestDto.builder().build()); } /** * Sales simulator * - * @param apiPaymentSimulateRequestDto {@link ApiPaymentSimulateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentSimulateRequestDto {@link PaymentSimulateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture salesSimulatorAsync( - @NonNull ApiPaymentSimulateRequestDto apiPaymentSimulateRequestDto + public CompletableFuture salesSimulatorAsync( + @NonNull PaymentSimulateRequestDto paymentSimulateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildSalesSimulatorRequest(apiPaymentSimulateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildSalesSimulatorRequest(paymentSimulateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildSalesSimulatorRequest(@NonNull ApiPaymentSimulateRequestDto apiPaymentSimulateRequestDto) { + private Request buildSalesSimulatorRequest(@NonNull PaymentSimulateRequestDto paymentSimulateRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/payments/simulate" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiPaymentSimulateRequestDto) + .setJsonContent(paymentSimulateRequestDto) .build(); } @@ -949,29 +942,29 @@ private Request buildSalesSimulatorRequest(@NonNull ApiPaymentSimulateRequestDto * Retrieve payment escrow in the Escrow Account * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentCustodyGetResponseDto} + * @return response of {@code PaymentEscrowGetResponseDto} */ - public ApiPaymentCustodyGetResponseDto retrievePaymentEscrowInTheEscrowAccount(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentEscrowGetResponseDto retrievePaymentEscrowInTheEscrowAccount(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrievePaymentEscrowInTheEscrowAccountRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve payment escrow in the Escrow Account * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrievePaymentEscrowInTheEscrowAccountAsync( + public CompletableFuture retrievePaymentEscrowInTheEscrowAccountAsync( @NonNull String id ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrievePaymentEscrowInTheEscrowAccountRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -989,26 +982,26 @@ private Request buildRetrievePaymentEscrowInTheEscrowAccountRequest(@NonNull Str /** * Recovering payment limits * - * @return response of {@code ApiPaymentLimitsResponseDto} + * @return response of {@code PaymentLimitsResponseDto} */ - public ApiPaymentLimitsResponseDto recoveringPaymentLimits() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentLimitsResponseDto recoveringPaymentLimits() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRecoveringPaymentLimitsRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Recovering payment limits * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture recoveringPaymentLimitsAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture recoveringPaymentLimitsAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRecoveringPaymentLimitsRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/PaymentSplitService.java b/src/main/java/com/asaas/apisdk/services/PaymentSplitService.java index a83e9f0..8fdef9d 100644 --- a/src/main/java/com/asaas/apisdk/services/PaymentSplitService.java +++ b/src/main/java/com/asaas/apisdk/services/PaymentSplitService.java @@ -4,16 +4,16 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPaymentSplitGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentSplitListResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListPaidSplitsParameters; import com.asaas.apisdk.models.ListReceivedSplitsParameters; +import com.asaas.apisdk.models.PaymentSplitGetResponseDto; +import com.asaas.apisdk.models.PaymentSplitListResponseDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListPaidSplitsParametersValidator; @@ -39,28 +39,28 @@ public PaymentSplitService(@NonNull OkHttpClient httpClient, AsaasSdkConfig conf * Retrieve a single paid split * * @param id String Unique split identifier in Asaas - * @return response of {@code ApiPaymentSplitGetResponseDto} + * @return response of {@code PaymentSplitGetResponseDto} */ - public ApiPaymentSplitGetResponseDto retrieveASinglePaidSplit(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentSplitGetResponseDto retrieveASinglePaidSplit(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASinglePaidSplitRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single paid split * * @param id String Unique split identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASinglePaidSplitAsync(@NonNull String id) + public CompletableFuture retrieveASinglePaidSplitAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASinglePaidSplitRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -78,9 +78,9 @@ private Request buildRetrieveASinglePaidSplitRequest(@NonNull String id) { /** * List paid splits * - * @return response of {@code ApiPaymentSplitListResponseDto} + * @return response of {@code PaymentSplitListResponseDto} */ - public ApiPaymentSplitListResponseDto listPaidSplits() throws ApiError, ValidationException { + public PaymentSplitListResponseDto listPaidSplits() throws ApiError, ValidationException { return this.listPaidSplits(ListPaidSplitsParameters.builder().build()); } @@ -88,22 +88,22 @@ public ApiPaymentSplitListResponseDto listPaidSplits() throws ApiError, Validati * List paid splits * * @param requestParameters {@link ListPaidSplitsParameters} Request Parameters Object - * @return response of {@code ApiPaymentSplitListResponseDto} + * @return response of {@code PaymentSplitListResponseDto} */ - public ApiPaymentSplitListResponseDto listPaidSplits(@NonNull ListPaidSplitsParameters requestParameters) + public PaymentSplitListResponseDto listPaidSplits(@NonNull ListPaidSplitsParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaidSplitsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List paid splits * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaidSplitsAsync() throws ApiError, ValidationException { + public CompletableFuture listPaidSplitsAsync() throws ApiError, ValidationException { return this.listPaidSplitsAsync(ListPaidSplitsParameters.builder().build()); } @@ -111,16 +111,16 @@ public CompletableFuture listPaidSplitsAsync() t * List paid splits * * @param requestParameters {@link ListPaidSplitsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaidSplitsAsync( + public CompletableFuture listPaidSplitsAsync( @NonNull ListPaidSplitsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaidSplitsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -152,28 +152,28 @@ private Request buildListPaidSplitsRequest(@NonNull ListPaidSplitsParameters req * Retrieve a single received split * * @param id String Unique split identifier in Asaas - * @return response of {@code ApiPaymentSplitGetResponseDto} + * @return response of {@code PaymentSplitGetResponseDto} */ - public ApiPaymentSplitGetResponseDto retrieveASingleReceivedSplit(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentSplitGetResponseDto retrieveASingleReceivedSplit(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleReceivedSplitRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single received split * * @param id String Unique split identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleReceivedSplitAsync(@NonNull String id) + public CompletableFuture retrieveASingleReceivedSplitAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleReceivedSplitRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -191,9 +191,9 @@ private Request buildRetrieveASingleReceivedSplitRequest(@NonNull String id) { /** * List received splits * - * @return response of {@code ApiPaymentSplitListResponseDto} + * @return response of {@code PaymentSplitListResponseDto} */ - public ApiPaymentSplitListResponseDto listReceivedSplits() throws ApiError, ValidationException { + public PaymentSplitListResponseDto listReceivedSplits() throws ApiError, ValidationException { return this.listReceivedSplits(ListReceivedSplitsParameters.builder().build()); } @@ -201,23 +201,22 @@ public ApiPaymentSplitListResponseDto listReceivedSplits() throws ApiError, Vali * List received splits * * @param requestParameters {@link ListReceivedSplitsParameters} Request Parameters Object - * @return response of {@code ApiPaymentSplitListResponseDto} + * @return response of {@code PaymentSplitListResponseDto} */ - public ApiPaymentSplitListResponseDto listReceivedSplits(@NonNull ListReceivedSplitsParameters requestParameters) + public PaymentSplitListResponseDto listReceivedSplits(@NonNull ListReceivedSplitsParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListReceivedSplitsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List received splits * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listReceivedSplitsAsync() - throws ApiError, ValidationException { + public CompletableFuture listReceivedSplitsAsync() throws ApiError, ValidationException { return this.listReceivedSplitsAsync(ListReceivedSplitsParameters.builder().build()); } @@ -225,16 +224,16 @@ public CompletableFuture listReceivedSplitsAsync * List received splits * * @param requestParameters {@link ListReceivedSplitsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listReceivedSplitsAsync( + public CompletableFuture listReceivedSplitsAsync( @NonNull ListReceivedSplitsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListReceivedSplitsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/PaymentWithSummaryDataService.java b/src/main/java/com/asaas/apisdk/services/PaymentWithSummaryDataService.java index d4a9145..0b847b9 100644 --- a/src/main/java/com/asaas/apisdk/services/PaymentWithSummaryDataService.java +++ b/src/main/java/com/asaas/apisdk/services/PaymentWithSummaryDataService.java @@ -4,21 +4,21 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPaymentDeleteResponseDto; -import com.asaas.apisdk.models.ApiPaymentLeanGetResponseDto; -import com.asaas.apisdk.models.ApiPaymentLeanListResponseDto; -import com.asaas.apisdk.models.ApiPaymentLeanSaveWithCreditCardResponseDto; -import com.asaas.apisdk.models.ApiPaymentReceiveInCashRequestDto; -import com.asaas.apisdk.models.ApiPaymentRefundRequestDto; -import com.asaas.apisdk.models.ApiPaymentSaveRequestDto; -import com.asaas.apisdk.models.ApiPaymentSaveWithCreditCardRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListPaymentsWithSummaryDataParameters; +import com.asaas.apisdk.models.PaymentDeleteResponseDto; +import com.asaas.apisdk.models.PaymentLeanGetResponseDto; +import com.asaas.apisdk.models.PaymentLeanListResponseDto; +import com.asaas.apisdk.models.PaymentLeanSaveWithCreditCardResponseDto; +import com.asaas.apisdk.models.PaymentReceiveInCashRequestDto; +import com.asaas.apisdk.models.PaymentRefundRequestDto; +import com.asaas.apisdk.models.PaymentSaveRequestDto; +import com.asaas.apisdk.models.PaymentSaveWithCreditCardRequestDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListPaymentsWithSummaryDataParametersValidator; @@ -42,9 +42,9 @@ public PaymentWithSummaryDataService(@NonNull OkHttpClient httpClient, AsaasSdkC /** * List payments with summary data * - * @return response of {@code ApiPaymentLeanListResponseDto} + * @return response of {@code PaymentLeanListResponseDto} */ - public ApiPaymentLeanListResponseDto listPaymentsWithSummaryData() throws ApiError, ValidationException { + public PaymentLeanListResponseDto listPaymentsWithSummaryData() throws ApiError, ValidationException { return this.listPaymentsWithSummaryData(ListPaymentsWithSummaryDataParameters.builder().build()); } @@ -52,23 +52,23 @@ public ApiPaymentLeanListResponseDto listPaymentsWithSummaryData() throws ApiErr * List payments with summary data * * @param requestParameters {@link ListPaymentsWithSummaryDataParameters} Request Parameters Object - * @return response of {@code ApiPaymentLeanListResponseDto} + * @return response of {@code PaymentLeanListResponseDto} */ - public ApiPaymentLeanListResponseDto listPaymentsWithSummaryData( + public PaymentLeanListResponseDto listPaymentsWithSummaryData( @NonNull ListPaymentsWithSummaryDataParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsWithSummaryDataRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List payments with summary data * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaymentsWithSummaryDataAsync() + public CompletableFuture listPaymentsWithSummaryDataAsync() throws ApiError, ValidationException { return this.listPaymentsWithSummaryDataAsync(ListPaymentsWithSummaryDataParameters.builder().build()); } @@ -77,16 +77,16 @@ public CompletableFuture listPaymentsWithSummaryD * List payments with summary data * * @param requestParameters {@link ListPaymentsWithSummaryDataParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaymentsWithSummaryDataAsync( + public CompletableFuture listPaymentsWithSummaryDataAsync( @NonNull ListPaymentsWithSummaryDataParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsWithSummaryDataRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -140,56 +140,55 @@ private Request buildListPaymentsWithSummaryDataRequest( /** * Create new payment with summary data in response * - * @return response of {@code ApiPaymentLeanGetResponseDto} + * @return response of {@code PaymentLeanGetResponseDto} */ - public ApiPaymentLeanGetResponseDto createNewPaymentWithSummaryDataInResponse() throws ApiError { - return this.createNewPaymentWithSummaryDataInResponse(ApiPaymentSaveRequestDto.builder().build()); + public PaymentLeanGetResponseDto createNewPaymentWithSummaryDataInResponse() throws ApiError { + return this.createNewPaymentWithSummaryDataInResponse(PaymentSaveRequestDto.builder().build()); } /** * Create new payment with summary data in response * - * @param apiPaymentSaveRequestDto {@link ApiPaymentSaveRequestDto} Request Body - * @return response of {@code ApiPaymentLeanGetResponseDto} + * @param paymentSaveRequestDto {@link PaymentSaveRequestDto} Request Body + * @return response of {@code PaymentLeanGetResponseDto} */ - public ApiPaymentLeanGetResponseDto createNewPaymentWithSummaryDataInResponse( - @NonNull ApiPaymentSaveRequestDto apiPaymentSaveRequestDto + public PaymentLeanGetResponseDto createNewPaymentWithSummaryDataInResponse( + @NonNull PaymentSaveRequestDto paymentSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewPaymentWithSummaryDataInResponseRequest(apiPaymentSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewPaymentWithSummaryDataInResponseRequest(paymentSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create new payment with summary data in response * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewPaymentWithSummaryDataInResponseAsync() - throws ApiError { - return this.createNewPaymentWithSummaryDataInResponseAsync(ApiPaymentSaveRequestDto.builder().build()); + public CompletableFuture createNewPaymentWithSummaryDataInResponseAsync() throws ApiError { + return this.createNewPaymentWithSummaryDataInResponseAsync(PaymentSaveRequestDto.builder().build()); } /** * Create new payment with summary data in response * - * @param apiPaymentSaveRequestDto {@link ApiPaymentSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentSaveRequestDto {@link PaymentSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewPaymentWithSummaryDataInResponseAsync( - @NonNull ApiPaymentSaveRequestDto apiPaymentSaveRequestDto + public CompletableFuture createNewPaymentWithSummaryDataInResponseAsync( + @NonNull PaymentSaveRequestDto paymentSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewPaymentWithSummaryDataInResponseRequest(apiPaymentSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewPaymentWithSummaryDataInResponseRequest(paymentSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildCreateNewPaymentWithSummaryDataInResponseRequest( - @NonNull ApiPaymentSaveRequestDto apiPaymentSaveRequestDto + @NonNull PaymentSaveRequestDto paymentSaveRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -197,73 +196,73 @@ private Request buildCreateNewPaymentWithSummaryDataInResponseRequest( "v3/lean/payments" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiPaymentSaveRequestDto) + .setJsonContent(paymentSaveRequestDto) .build(); } /** * Create new payment with credit card with summary data in response * - * @return response of {@code ApiPaymentLeanSaveWithCreditCardResponseDto} + * @return response of {@code PaymentLeanSaveWithCreditCardResponseDto} */ - public ApiPaymentLeanSaveWithCreditCardResponseDto createNewPaymentWithCreditCardWithSummaryDataInResponse() + public PaymentLeanSaveWithCreditCardResponseDto createNewPaymentWithCreditCardWithSummaryDataInResponse() throws ApiError { return this.createNewPaymentWithCreditCardWithSummaryDataInResponse( - ApiPaymentSaveWithCreditCardRequestDto.builder().build() + PaymentSaveWithCreditCardRequestDto.builder().build() ); } /** * Create new payment with credit card with summary data in response * - * @param apiPaymentSaveWithCreditCardRequestDto {@link ApiPaymentSaveWithCreditCardRequestDto} Request Body - * @return response of {@code ApiPaymentLeanSaveWithCreditCardResponseDto} + * @param paymentSaveWithCreditCardRequestDto {@link PaymentSaveWithCreditCardRequestDto} Request Body + * @return response of {@code PaymentLeanSaveWithCreditCardResponseDto} */ - public ApiPaymentLeanSaveWithCreditCardResponseDto createNewPaymentWithCreditCardWithSummaryDataInResponse( - @NonNull ApiPaymentSaveWithCreditCardRequestDto apiPaymentSaveWithCreditCardRequestDto + public PaymentLeanSaveWithCreditCardResponseDto createNewPaymentWithCreditCardWithSummaryDataInResponse( + @NonNull PaymentSaveWithCreditCardRequestDto paymentSaveWithCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = - this.buildCreateNewPaymentWithCreditCardWithSummaryDataInResponseRequest(apiPaymentSaveWithCreditCardRequestDto); + this.buildCreateNewPaymentWithCreditCardWithSummaryDataInResponseRequest(paymentSaveWithCreditCardRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create new payment with credit card with summary data in response * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ public CompletableFuture< - ApiPaymentLeanSaveWithCreditCardResponseDto + PaymentLeanSaveWithCreditCardResponseDto > createNewPaymentWithCreditCardWithSummaryDataInResponseAsync() throws ApiError { return this.createNewPaymentWithCreditCardWithSummaryDataInResponseAsync( - ApiPaymentSaveWithCreditCardRequestDto.builder().build() + PaymentSaveWithCreditCardRequestDto.builder().build() ); } /** * Create new payment with credit card with summary data in response * - * @param apiPaymentSaveWithCreditCardRequestDto {@link ApiPaymentSaveWithCreditCardRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentSaveWithCreditCardRequestDto {@link PaymentSaveWithCreditCardRequestDto} Request Body + * @return response of {@code CompletableFuture} */ public CompletableFuture< - ApiPaymentLeanSaveWithCreditCardResponseDto + PaymentLeanSaveWithCreditCardResponseDto > createNewPaymentWithCreditCardWithSummaryDataInResponseAsync( - @NonNull ApiPaymentSaveWithCreditCardRequestDto apiPaymentSaveWithCreditCardRequestDto + @NonNull PaymentSaveWithCreditCardRequestDto paymentSaveWithCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = - this.buildCreateNewPaymentWithCreditCardWithSummaryDataInResponseRequest(apiPaymentSaveWithCreditCardRequestDto); + this.buildCreateNewPaymentWithCreditCardWithSummaryDataInResponseRequest(paymentSaveWithCreditCardRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildCreateNewPaymentWithCreditCardWithSummaryDataInResponseRequest( - @NonNull ApiPaymentSaveWithCreditCardRequestDto apiPaymentSaveWithCreditCardRequestDto + @NonNull PaymentSaveWithCreditCardRequestDto paymentSaveWithCreditCardRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -271,7 +270,7 @@ private Request buildCreateNewPaymentWithCreditCardWithSummaryDataInResponseRequ "v3/lean/payments/" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiPaymentSaveWithCreditCardRequestDto) + .setJsonContent(paymentSaveWithCreditCardRequestDto) .build(); } @@ -280,16 +279,16 @@ private Request buildCreateNewPaymentWithCreditCardWithSummaryDataInResponseRequ * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentLeanGetResponseDto} + * @return response of {@code PaymentLeanGetResponseDto} */ - public ApiPaymentLeanGetResponseDto capturePaymentWithPreAuthorizationWithSummaryDataInResponse( + public PaymentLeanGetResponseDto capturePaymentWithPreAuthorizationWithSummaryDataInResponse( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCapturePaymentWithPreAuthorizationWithSummaryDataInResponseRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -297,17 +296,17 @@ public ApiPaymentLeanGetResponseDto capturePaymentWithPreAuthorizationWithSummar * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture< - ApiPaymentLeanGetResponseDto - > capturePaymentWithPreAuthorizationWithSummaryDataInResponseAsync(@NonNull String id, @NonNull Object input) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture capturePaymentWithPreAuthorizationWithSummaryDataInResponseAsync( + @NonNull String id, + @NonNull Object input + ) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCapturePaymentWithPreAuthorizationWithSummaryDataInResponseRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -330,28 +329,28 @@ private Request buildCapturePaymentWithPreAuthorizationWithSummaryDataInResponse * Retrieve a single payment with summary data * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentLeanGetResponseDto} + * @return response of {@code PaymentLeanGetResponseDto} */ - public ApiPaymentLeanGetResponseDto retrieveASinglePaymentWithSummaryData(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentLeanGetResponseDto retrieveASinglePaymentWithSummaryData(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASinglePaymentWithSummaryDataRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single payment with summary data * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASinglePaymentWithSummaryDataAsync(@NonNull String id) + public CompletableFuture retrieveASinglePaymentWithSummaryDataAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASinglePaymentWithSummaryDataRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -371,16 +370,16 @@ private Request buildRetrieveASinglePaymentWithSummaryDataRequest(@NonNull Strin * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentLeanGetResponseDto} + * @return response of {@code PaymentLeanGetResponseDto} */ - public ApiPaymentLeanGetResponseDto updateExistingPaymentWithSummaryDataInResponse( + public PaymentLeanGetResponseDto updateExistingPaymentWithSummaryDataInResponse( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildUpdateExistingPaymentWithSummaryDataInResponseRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -388,17 +387,17 @@ public ApiPaymentLeanGetResponseDto updateExistingPaymentWithSummaryDataInRespon * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateExistingPaymentWithSummaryDataInResponseAsync( + public CompletableFuture updateExistingPaymentWithSummaryDataInResponseAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildUpdateExistingPaymentWithSummaryDataInResponseRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -421,28 +420,28 @@ private Request buildUpdateExistingPaymentWithSummaryDataInResponseRequest( * Delete payment with summary data * * @param id String Unique payment identifier in Asaas - * @return response of {@code ApiPaymentDeleteResponseDto} + * @return response of {@code PaymentDeleteResponseDto} */ - public ApiPaymentDeleteResponseDto deletePaymentWithSummaryData(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentDeleteResponseDto deletePaymentWithSummaryData(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildDeletePaymentWithSummaryDataRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Delete payment with summary data * * @param id String Unique payment identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture deletePaymentWithSummaryDataAsync(@NonNull String id) + public CompletableFuture deletePaymentWithSummaryDataAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildDeletePaymentWithSummaryDataRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -462,16 +461,16 @@ private Request buildDeletePaymentWithSummaryDataRequest(@NonNull String id) { * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentLeanGetResponseDto} + * @return response of {@code PaymentLeanGetResponseDto} */ - public ApiPaymentLeanGetResponseDto restoreRemovedPaymentWithSummaryDataInResponse( + public PaymentLeanGetResponseDto restoreRemovedPaymentWithSummaryDataInResponse( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRestoreRemovedPaymentWithSummaryDataInResponseRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -479,17 +478,17 @@ public ApiPaymentLeanGetResponseDto restoreRemovedPaymentWithSummaryDataInRespon * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture restoreRemovedPaymentWithSummaryDataInResponseAsync( + public CompletableFuture restoreRemovedPaymentWithSummaryDataInResponseAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRestoreRemovedPaymentWithSummaryDataInResponseRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -512,41 +511,41 @@ private Request buildRestoreRemovedPaymentWithSummaryDataInResponseRequest( * Refund payment with summary data in response * * @param id String Unique payment identifier in Asaas - * @param apiPaymentRefundRequestDto {@link ApiPaymentRefundRequestDto} Request Body - * @return response of {@code ApiPaymentLeanGetResponseDto} + * @param paymentRefundRequestDto {@link PaymentRefundRequestDto} Request Body + * @return response of {@code PaymentLeanGetResponseDto} */ - public ApiPaymentLeanGetResponseDto refundPaymentWithSummaryDataInResponse( + public PaymentLeanGetResponseDto refundPaymentWithSummaryDataInResponse( @NonNull String id, - @NonNull ApiPaymentRefundRequestDto apiPaymentRefundRequestDto + @NonNull PaymentRefundRequestDto paymentRefundRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildRefundPaymentWithSummaryDataInResponseRequest(id, apiPaymentRefundRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildRefundPaymentWithSummaryDataInResponseRequest(id, paymentRefundRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Refund payment with summary data in response * * @param id String Unique payment identifier in Asaas - * @param apiPaymentRefundRequestDto {@link ApiPaymentRefundRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentRefundRequestDto {@link PaymentRefundRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture refundPaymentWithSummaryDataInResponseAsync( + public CompletableFuture refundPaymentWithSummaryDataInResponseAsync( @NonNull String id, - @NonNull ApiPaymentRefundRequestDto apiPaymentRefundRequestDto + @NonNull PaymentRefundRequestDto paymentRefundRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildRefundPaymentWithSummaryDataInResponseRequest(id, apiPaymentRefundRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildRefundPaymentWithSummaryDataInResponseRequest(id, paymentRefundRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildRefundPaymentWithSummaryDataInResponseRequest( @NonNull String id, - @NonNull ApiPaymentRefundRequestDto apiPaymentRefundRequestDto + @NonNull PaymentRefundRequestDto paymentRefundRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -555,7 +554,7 @@ private Request buildRefundPaymentWithSummaryDataInResponseRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiPaymentRefundRequestDto) + .setJsonContent(paymentRefundRequestDto) .build(); } @@ -563,43 +562,41 @@ private Request buildRefundPaymentWithSummaryDataInResponseRequest( * Confirm cash receipt with summary data in response * * @param id String Unique payment identifier in Asaas - * @param apiPaymentReceiveInCashRequestDto {@link ApiPaymentReceiveInCashRequestDto} Request Body - * @return response of {@code ApiPaymentLeanGetResponseDto} + * @param paymentReceiveInCashRequestDto {@link PaymentReceiveInCashRequestDto} Request Body + * @return response of {@code PaymentLeanGetResponseDto} */ - public ApiPaymentLeanGetResponseDto confirmCashReceiptWithSummaryDataInResponse( + public PaymentLeanGetResponseDto confirmCashReceiptWithSummaryDataInResponse( @NonNull String id, - @NonNull ApiPaymentReceiveInCashRequestDto apiPaymentReceiveInCashRequestDto + @NonNull PaymentReceiveInCashRequestDto paymentReceiveInCashRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = - this.buildConfirmCashReceiptWithSummaryDataInResponseRequest(id, apiPaymentReceiveInCashRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildConfirmCashReceiptWithSummaryDataInResponseRequest(id, paymentReceiveInCashRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Confirm cash receipt with summary data in response * * @param id String Unique payment identifier in Asaas - * @param apiPaymentReceiveInCashRequestDto {@link ApiPaymentReceiveInCashRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param paymentReceiveInCashRequestDto {@link PaymentReceiveInCashRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture confirmCashReceiptWithSummaryDataInResponseAsync( + public CompletableFuture confirmCashReceiptWithSummaryDataInResponseAsync( @NonNull String id, - @NonNull ApiPaymentReceiveInCashRequestDto apiPaymentReceiveInCashRequestDto + @NonNull PaymentReceiveInCashRequestDto paymentReceiveInCashRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = - this.buildConfirmCashReceiptWithSummaryDataInResponseRequest(id, apiPaymentReceiveInCashRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildConfirmCashReceiptWithSummaryDataInResponseRequest(id, paymentReceiveInCashRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildConfirmCashReceiptWithSummaryDataInResponseRequest( @NonNull String id, - @NonNull ApiPaymentReceiveInCashRequestDto apiPaymentReceiveInCashRequestDto + @NonNull PaymentReceiveInCashRequestDto paymentReceiveInCashRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -608,7 +605,7 @@ private Request buildConfirmCashReceiptWithSummaryDataInResponseRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiPaymentReceiveInCashRequestDto) + .setJsonContent(paymentReceiveInCashRequestDto) .build(); } @@ -617,16 +614,16 @@ private Request buildConfirmCashReceiptWithSummaryDataInResponseRequest( * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentLeanGetResponseDto} + * @return response of {@code PaymentLeanGetResponseDto} */ - public ApiPaymentLeanGetResponseDto undoCashReceiptConfirmationWithSummaryDataInResponse( + public PaymentLeanGetResponseDto undoCashReceiptConfirmationWithSummaryDataInResponse( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildUndoCashReceiptConfirmationWithSummaryDataInResponseRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -634,17 +631,17 @@ public ApiPaymentLeanGetResponseDto undoCashReceiptConfirmationWithSummaryDataIn * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture undoCashReceiptConfirmationWithSummaryDataInResponseAsync( + public CompletableFuture undoCashReceiptConfirmationWithSummaryDataInResponseAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildUndoCashReceiptConfirmationWithSummaryDataInResponseRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/PixService.java b/src/main/java/com/asaas/apisdk/services/PixService.java index 28b9126..b7006bf 100644 --- a/src/main/java/com/asaas/apisdk/services/PixService.java +++ b/src/main/java/com/asaas/apisdk/services/PixService.java @@ -4,24 +4,24 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPixAddressKeyGetResponseDto; -import com.asaas.apisdk.models.ApiPixAddressKeyListResponseDto; -import com.asaas.apisdk.models.ApiPixAddressKeySaveRequestDto; -import com.asaas.apisdk.models.ApiPixQrCodeDeleteResponseDto; -import com.asaas.apisdk.models.ApiPixQrCodeSaveRequestDto; -import com.asaas.apisdk.models.ApiPixQrCodeSaveResponseDto; -import com.asaas.apisdk.models.ApiPixTokenBucketGetAddressKeyResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListKeysParameters; +import com.asaas.apisdk.models.PixAddressKeyGetResponseDto; +import com.asaas.apisdk.models.PixAddressKeyListResponseDto; +import com.asaas.apisdk.models.PixAddressKeySaveRequestDto; +import com.asaas.apisdk.models.PixQrCodeDeleteResponseDto; +import com.asaas.apisdk.models.PixQrCodeSaveRequestDto; +import com.asaas.apisdk.models.PixQrCodeSaveResponseDto; +import com.asaas.apisdk.models.PixTokenBucketGetAddressKeyResponseDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; -import com.asaas.apisdk.validation.validators.modelValidators.ApiPixQrCodeSaveRequestDtoValidator; import com.asaas.apisdk.validation.validators.modelValidators.ListKeysParametersValidator; +import com.asaas.apisdk.validation.validators.modelValidators.PixQrCodeSaveRequestDtoValidator; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -42,9 +42,9 @@ public PixService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config) { /** * List keys * - * @return response of {@code ApiPixAddressKeyListResponseDto} + * @return response of {@code PixAddressKeyListResponseDto} */ - public ApiPixAddressKeyListResponseDto listKeys() throws ApiError, ValidationException { + public PixAddressKeyListResponseDto listKeys() throws ApiError, ValidationException { return this.listKeys(ListKeysParameters.builder().build()); } @@ -52,22 +52,22 @@ public ApiPixAddressKeyListResponseDto listKeys() throws ApiError, ValidationExc * List keys * * @param requestParameters {@link ListKeysParameters} Request Parameters Object - * @return response of {@code ApiPixAddressKeyListResponseDto} + * @return response of {@code PixAddressKeyListResponseDto} */ - public ApiPixAddressKeyListResponseDto listKeys(@NonNull ListKeysParameters requestParameters) + public PixAddressKeyListResponseDto listKeys(@NonNull ListKeysParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListKeysRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List keys * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listKeysAsync() throws ApiError, ValidationException { + public CompletableFuture listKeysAsync() throws ApiError, ValidationException { return this.listKeysAsync(ListKeysParameters.builder().build()); } @@ -75,16 +75,15 @@ public CompletableFuture listKeysAsync() throws * List keys * * @param requestParameters {@link ListKeysParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listKeysAsync( - @NonNull ListKeysParameters requestParameters - ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture listKeysAsync(@NonNull ListKeysParameters requestParameters) + throws ApiError, ValidationException { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListKeysRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -110,61 +109,60 @@ private Request buildListKeysRequest(@NonNull ListKeysParameters requestParamete /** * Create a key * - * @return response of {@code ApiPixAddressKeyGetResponseDto} + * @return response of {@code PixAddressKeyGetResponseDto} */ - public ApiPixAddressKeyGetResponseDto createAKey() throws ApiError { - return this.createAKey(ApiPixAddressKeySaveRequestDto.builder().build()); + public PixAddressKeyGetResponseDto createAKey() throws ApiError { + return this.createAKey(PixAddressKeySaveRequestDto.builder().build()); } /** * Create a key * - * @param apiPixAddressKeySaveRequestDto {@link ApiPixAddressKeySaveRequestDto} Request Body - * @return response of {@code ApiPixAddressKeyGetResponseDto} + * @param pixAddressKeySaveRequestDto {@link PixAddressKeySaveRequestDto} Request Body + * @return response of {@code PixAddressKeyGetResponseDto} */ - public ApiPixAddressKeyGetResponseDto createAKey( - @NonNull ApiPixAddressKeySaveRequestDto apiPixAddressKeySaveRequestDto - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateAKeyRequest(apiPixAddressKeySaveRequestDto); + public PixAddressKeyGetResponseDto createAKey(@NonNull PixAddressKeySaveRequestDto pixAddressKeySaveRequestDto) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateAKeyRequest(pixAddressKeySaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create a key * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createAKeyAsync() throws ApiError { - return this.createAKeyAsync(ApiPixAddressKeySaveRequestDto.builder().build()); + public CompletableFuture createAKeyAsync() throws ApiError { + return this.createAKeyAsync(PixAddressKeySaveRequestDto.builder().build()); } /** * Create a key * - * @param apiPixAddressKeySaveRequestDto {@link ApiPixAddressKeySaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param pixAddressKeySaveRequestDto {@link PixAddressKeySaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createAKeyAsync( - @NonNull ApiPixAddressKeySaveRequestDto apiPixAddressKeySaveRequestDto + public CompletableFuture createAKeyAsync( + @NonNull PixAddressKeySaveRequestDto pixAddressKeySaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateAKeyRequest(apiPixAddressKeySaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateAKeyRequest(pixAddressKeySaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildCreateAKeyRequest(@NonNull ApiPixAddressKeySaveRequestDto apiPixAddressKeySaveRequestDto) { + private Request buildCreateAKeyRequest(@NonNull PixAddressKeySaveRequestDto pixAddressKeySaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/pix/addressKeys" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiPixAddressKeySaveRequestDto) + .setJsonContent(pixAddressKeySaveRequestDto) .build(); } @@ -172,27 +170,27 @@ private Request buildCreateAKeyRequest(@NonNull ApiPixAddressKeySaveRequestDto a * Retrieve a single key * * @param id String Unique Pix key identifier in Asaas - * @return response of {@code ApiPixAddressKeyGetResponseDto} + * @return response of {@code PixAddressKeyGetResponseDto} */ - public ApiPixAddressKeyGetResponseDto retrieveASingleKey(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PixAddressKeyGetResponseDto retrieveASingleKey(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleKeyRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single key * * @param id String Unique Pix key identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleKeyAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveASingleKeyAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleKeyRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -211,27 +209,27 @@ private Request buildRetrieveASingleKeyRequest(@NonNull String id) { * Remove key * * @param id String Unique Pix key identifier in Asaas - * @return response of {@code ApiPixAddressKeyGetResponseDto} + * @return response of {@code PixAddressKeyGetResponseDto} */ - public ApiPixAddressKeyGetResponseDto removeKey(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PixAddressKeyGetResponseDto removeKey(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveKeyRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Remove key * * @param id String Unique Pix key identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture removeKeyAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture removeKeyAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveKeyRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -249,60 +247,56 @@ private Request buildRemoveKeyRequest(@NonNull String id) { /** * Create static QRCode * - * @return response of {@code ApiPixQrCodeSaveResponseDto} + * @return response of {@code PixQrCodeSaveResponseDto} */ - public ApiPixQrCodeSaveResponseDto createStaticQrcode() throws ApiError, ValidationException { - return this.createStaticQrcode(ApiPixQrCodeSaveRequestDto.builder().build()); + public PixQrCodeSaveResponseDto createStaticQrcode() throws ApiError, ValidationException { + return this.createStaticQrcode(PixQrCodeSaveRequestDto.builder().build()); } /** * Create static QRCode * - * @param apiPixQrCodeSaveRequestDto {@link ApiPixQrCodeSaveRequestDto} Request Body - * @return response of {@code ApiPixQrCodeSaveResponseDto} + * @param pixQrCodeSaveRequestDto {@link PixQrCodeSaveRequestDto} Request Body + * @return response of {@code PixQrCodeSaveResponseDto} */ - public ApiPixQrCodeSaveResponseDto createStaticQrcode(@NonNull ApiPixQrCodeSaveRequestDto apiPixQrCodeSaveRequestDto) + public PixQrCodeSaveResponseDto createStaticQrcode(@NonNull PixQrCodeSaveRequestDto pixQrCodeSaveRequestDto) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateStaticQrcodeRequest(apiPixQrCodeSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateStaticQrcodeRequest(pixQrCodeSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create static QRCode * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createStaticQrcodeAsync() throws ApiError, ValidationException { - return this.createStaticQrcodeAsync(ApiPixQrCodeSaveRequestDto.builder().build()); + public CompletableFuture createStaticQrcodeAsync() throws ApiError, ValidationException { + return this.createStaticQrcodeAsync(PixQrCodeSaveRequestDto.builder().build()); } /** * Create static QRCode * - * @param apiPixQrCodeSaveRequestDto {@link ApiPixQrCodeSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param pixQrCodeSaveRequestDto {@link PixQrCodeSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createStaticQrcodeAsync( - @NonNull ApiPixQrCodeSaveRequestDto apiPixQrCodeSaveRequestDto + public CompletableFuture createStaticQrcodeAsync( + @NonNull PixQrCodeSaveRequestDto pixQrCodeSaveRequestDto ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateStaticQrcodeRequest(apiPixQrCodeSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateStaticQrcodeRequest(pixQrCodeSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildCreateStaticQrcodeRequest(@NonNull ApiPixQrCodeSaveRequestDto apiPixQrCodeSaveRequestDto) + private Request buildCreateStaticQrcodeRequest(@NonNull PixQrCodeSaveRequestDto pixQrCodeSaveRequestDto) throws ValidationException { new ViolationAggregator() - .add( - new ApiPixQrCodeSaveRequestDtoValidator("apiPixQrCodeSaveRequestDto") - .optional() - .validate(apiPixQrCodeSaveRequestDto) - ) + .add(new PixQrCodeSaveRequestDtoValidator("pixQrCodeSaveRequestDto").optional().validate(pixQrCodeSaveRequestDto)) .validateAll(); return new RequestBuilder( HttpMethod.POST, @@ -310,7 +304,7 @@ private Request buildCreateStaticQrcodeRequest(@NonNull ApiPixQrCodeSaveRequestD "v3/pix/qrCodes/static" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiPixQrCodeSaveRequestDto) + .setJsonContent(pixQrCodeSaveRequestDto) .build(); } @@ -318,27 +312,27 @@ private Request buildCreateStaticQrcodeRequest(@NonNull ApiPixQrCodeSaveRequestD * Remove a static QR Code * * @param id String Identifier of the QR Code that will be deleted. - * @return response of {@code ApiPixQrCodeDeleteResponseDto} + * @return response of {@code PixQrCodeDeleteResponseDto} */ - public ApiPixQrCodeDeleteResponseDto deleteStaticQrcode(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PixQrCodeDeleteResponseDto deleteStaticQrcode(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildDeleteStaticQrcodeRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Remove a static QR Code * * @param id String Identifier of the QR Code that will be deleted. - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture deleteStaticQrcodeAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture deleteStaticQrcodeAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildDeleteStaticQrcodeRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -356,26 +350,26 @@ private Request buildDeleteStaticQrcodeRequest(@NonNull String id) { /** * Available Token Bucket Check * - * @return response of {@code ApiPixTokenBucketGetAddressKeyResponseDto} + * @return response of {@code PixTokenBucketGetAddressKeyResponseDto} */ - public ApiPixTokenBucketGetAddressKeyResponseDto availableTokenBucketCheck() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PixTokenBucketGetAddressKeyResponseDto availableTokenBucketCheck() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildAvailableTokenBucketCheckRequest(); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Available Token Bucket Check * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture availableTokenBucketCheckAsync() throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture availableTokenBucketCheckAsync() throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildAvailableTokenBucketCheckRequest(); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/PixTransactionService.java b/src/main/java/com/asaas/apisdk/services/PixTransactionService.java index 21b9b4e..62c9ffe 100644 --- a/src/main/java/com/asaas/apisdk/services/PixTransactionService.java +++ b/src/main/java/com/asaas/apisdk/services/PixTransactionService.java @@ -4,18 +4,18 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPixQrCodeDecodeRequestDto; -import com.asaas.apisdk.models.ApiPixQrCodeDecodeResponseDto; -import com.asaas.apisdk.models.ApiPixTransactionGetResponseDto; -import com.asaas.apisdk.models.ApiPixTransactionListResponseDto; -import com.asaas.apisdk.models.ApiPixTransactionSaveRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListTransactionsParameters; +import com.asaas.apisdk.models.PixQrCodeDecodeRequestDto; +import com.asaas.apisdk.models.PixQrCodeDecodeResponseDto; +import com.asaas.apisdk.models.PixTransactionGetResponseDto; +import com.asaas.apisdk.models.PixTransactionListResponseDto; +import com.asaas.apisdk.models.PixTransactionSaveRequestDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListTransactionsParametersValidator; @@ -39,124 +39,121 @@ public PixTransactionService(@NonNull OkHttpClient httpClient, AsaasSdkConfig co /** * Pay a QRCode * - * @return response of {@code ApiPixTransactionGetResponseDto} + * @return response of {@code PixTransactionGetResponseDto} */ - public ApiPixTransactionGetResponseDto payAQrcode() throws ApiError { - return this.payAQrcode(ApiPixTransactionSaveRequestDto.builder().build()); + public PixTransactionGetResponseDto payAQrcode() throws ApiError { + return this.payAQrcode(PixTransactionSaveRequestDto.builder().build()); } /** * Pay a QRCode * - * @param apiPixTransactionSaveRequestDto {@link ApiPixTransactionSaveRequestDto} Request Body - * @return response of {@code ApiPixTransactionGetResponseDto} + * @param pixTransactionSaveRequestDto {@link PixTransactionSaveRequestDto} Request Body + * @return response of {@code PixTransactionGetResponseDto} */ - public ApiPixTransactionGetResponseDto payAQrcode( - @NonNull ApiPixTransactionSaveRequestDto apiPixTransactionSaveRequestDto - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildPayAQrcodeRequest(apiPixTransactionSaveRequestDto); + public PixTransactionGetResponseDto payAQrcode(@NonNull PixTransactionSaveRequestDto pixTransactionSaveRequestDto) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildPayAQrcodeRequest(pixTransactionSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Pay a QRCode * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture payAQrcodeAsync() throws ApiError { - return this.payAQrcodeAsync(ApiPixTransactionSaveRequestDto.builder().build()); + public CompletableFuture payAQrcodeAsync() throws ApiError { + return this.payAQrcodeAsync(PixTransactionSaveRequestDto.builder().build()); } /** * Pay a QRCode * - * @param apiPixTransactionSaveRequestDto {@link ApiPixTransactionSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param pixTransactionSaveRequestDto {@link PixTransactionSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture payAQrcodeAsync( - @NonNull ApiPixTransactionSaveRequestDto apiPixTransactionSaveRequestDto + public CompletableFuture payAQrcodeAsync( + @NonNull PixTransactionSaveRequestDto pixTransactionSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildPayAQrcodeRequest(apiPixTransactionSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildPayAQrcodeRequest(pixTransactionSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildPayAQrcodeRequest(@NonNull ApiPixTransactionSaveRequestDto apiPixTransactionSaveRequestDto) { + private Request buildPayAQrcodeRequest(@NonNull PixTransactionSaveRequestDto pixTransactionSaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/pix/qrCodes/pay" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiPixTransactionSaveRequestDto) + .setJsonContent(pixTransactionSaveRequestDto) .build(); } /** * Decode a QRCode for payment * - * @return response of {@code ApiPixQrCodeDecodeResponseDto} + * @return response of {@code PixQrCodeDecodeResponseDto} */ - public ApiPixQrCodeDecodeResponseDto decodeAQrcodeForPayment() throws ApiError { - return this.decodeAQrcodeForPayment(ApiPixQrCodeDecodeRequestDto.builder().build()); + public PixQrCodeDecodeResponseDto decodeAQrcodeForPayment() throws ApiError { + return this.decodeAQrcodeForPayment(PixQrCodeDecodeRequestDto.builder().build()); } /** * Decode a QRCode for payment * - * @param apiPixQrCodeDecodeRequestDto {@link ApiPixQrCodeDecodeRequestDto} Request Body - * @return response of {@code ApiPixQrCodeDecodeResponseDto} + * @param pixQrCodeDecodeRequestDto {@link PixQrCodeDecodeRequestDto} Request Body + * @return response of {@code PixQrCodeDecodeResponseDto} */ - public ApiPixQrCodeDecodeResponseDto decodeAQrcodeForPayment( - @NonNull ApiPixQrCodeDecodeRequestDto apiPixQrCodeDecodeRequestDto + public PixQrCodeDecodeResponseDto decodeAQrcodeForPayment( + @NonNull PixQrCodeDecodeRequestDto pixQrCodeDecodeRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildDecodeAQrcodeForPaymentRequest(apiPixQrCodeDecodeRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildDecodeAQrcodeForPaymentRequest(pixQrCodeDecodeRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Decode a QRCode for payment * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture decodeAQrcodeForPaymentAsync() throws ApiError { - return this.decodeAQrcodeForPaymentAsync(ApiPixQrCodeDecodeRequestDto.builder().build()); + public CompletableFuture decodeAQrcodeForPaymentAsync() throws ApiError { + return this.decodeAQrcodeForPaymentAsync(PixQrCodeDecodeRequestDto.builder().build()); } /** * Decode a QRCode for payment * - * @param apiPixQrCodeDecodeRequestDto {@link ApiPixQrCodeDecodeRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param pixQrCodeDecodeRequestDto {@link PixQrCodeDecodeRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture decodeAQrcodeForPaymentAsync( - @NonNull ApiPixQrCodeDecodeRequestDto apiPixQrCodeDecodeRequestDto + public CompletableFuture decodeAQrcodeForPaymentAsync( + @NonNull PixQrCodeDecodeRequestDto pixQrCodeDecodeRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildDecodeAQrcodeForPaymentRequest(apiPixQrCodeDecodeRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildDecodeAQrcodeForPaymentRequest(pixQrCodeDecodeRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildDecodeAQrcodeForPaymentRequest( - @NonNull ApiPixQrCodeDecodeRequestDto apiPixQrCodeDecodeRequestDto - ) { + private Request buildDecodeAQrcodeForPaymentRequest(@NonNull PixQrCodeDecodeRequestDto pixQrCodeDecodeRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/pix/qrCodes/decode" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiPixQrCodeDecodeRequestDto) + .setJsonContent(pixQrCodeDecodeRequestDto) .build(); } @@ -164,28 +161,28 @@ private Request buildDecodeAQrcodeForPaymentRequest( * Retrieve a single transaction * * @param id String Unique identifier of the Pix transaction in Asaas - * @return response of {@code ApiPixTransactionGetResponseDto} + * @return response of {@code PixTransactionGetResponseDto} */ - public ApiPixTransactionGetResponseDto retrieveASingleTransaction(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PixTransactionGetResponseDto retrieveASingleTransaction(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleTransactionRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single transaction * * @param id String Unique identifier of the Pix transaction in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleTransactionAsync(@NonNull String id) + public CompletableFuture retrieveASingleTransactionAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleTransactionRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -203,9 +200,9 @@ private Request buildRetrieveASingleTransactionRequest(@NonNull String id) { /** * List transactions * - * @return response of {@code ApiPixTransactionListResponseDto} + * @return response of {@code PixTransactionListResponseDto} */ - public ApiPixTransactionListResponseDto listTransactions() throws ApiError, ValidationException { + public PixTransactionListResponseDto listTransactions() throws ApiError, ValidationException { return this.listTransactions(ListTransactionsParameters.builder().build()); } @@ -213,23 +210,22 @@ public ApiPixTransactionListResponseDto listTransactions() throws ApiError, Vali * List transactions * * @param requestParameters {@link ListTransactionsParameters} Request Parameters Object - * @return response of {@code ApiPixTransactionListResponseDto} + * @return response of {@code PixTransactionListResponseDto} */ - public ApiPixTransactionListResponseDto listTransactions(@NonNull ListTransactionsParameters requestParameters) + public PixTransactionListResponseDto listTransactions(@NonNull ListTransactionsParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListTransactionsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List transactions * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listTransactionsAsync() - throws ApiError, ValidationException { + public CompletableFuture listTransactionsAsync() throws ApiError, ValidationException { return this.listTransactionsAsync(ListTransactionsParameters.builder().build()); } @@ -237,16 +233,16 @@ public CompletableFuture listTransactionsAsync * List transactions * * @param requestParameters {@link ListTransactionsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listTransactionsAsync( + public CompletableFuture listTransactionsAsync( @NonNull ListTransactionsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListTransactionsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -278,14 +274,14 @@ private Request buildListTransactionsRequest(@NonNull ListTransactionsParameters * * @param id String Unique identifier of the Pix transaction scheduled to be canceled. * @param input Object Request Body - * @return response of {@code ApiPixTransactionGetResponseDto} + * @return response of {@code PixTransactionGetResponseDto} */ - public ApiPixTransactionGetResponseDto cancelAScheduledTransaction(@NonNull String id, @NonNull Object input) + public PixTransactionGetResponseDto cancelAScheduledTransaction(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelAScheduledTransactionRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -293,17 +289,17 @@ public ApiPixTransactionGetResponseDto cancelAScheduledTransaction(@NonNull Stri * * @param id String Unique identifier of the Pix transaction scheduled to be canceled. * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture cancelAScheduledTransactionAsync( + public CompletableFuture cancelAScheduledTransactionAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelAScheduledTransactionRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/RecurringPixService.java b/src/main/java/com/asaas/apisdk/services/RecurringPixService.java index a0f5959..0d1bd82 100644 --- a/src/main/java/com/asaas/apisdk/services/RecurringPixService.java +++ b/src/main/java/com/asaas/apisdk/services/RecurringPixService.java @@ -4,18 +4,18 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto; -import com.asaas.apisdk.models.ApiPixTransactionRecurringCheckoutScheduleGetResponseDto; -import com.asaas.apisdk.models.ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto; -import com.asaas.apisdk.models.ApiPixTransactionRecurringCheckoutScheduleListResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListRecurrenceItemsParameters; import com.asaas.apisdk.models.ListRecurrencesParameters; +import com.asaas.apisdk.models.PixRecurringTransactionGetItemResponseDto; +import com.asaas.apisdk.models.PixRecurringTransactionGetResponseDto; +import com.asaas.apisdk.models.PixRecurringTransactionListResponseDto; +import com.asaas.apisdk.models.RecurringPixTransactionListItemsResponseDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListRecurrenceItemsParametersValidator; @@ -40,10 +40,9 @@ public RecurringPixService(@NonNull OkHttpClient httpClient, AsaasSdkConfig conf /** * List recurrences * - * @return response of {@code ApiPixTransactionRecurringCheckoutScheduleListResponseDto} + * @return response of {@code PixRecurringTransactionListResponseDto} */ - public ApiPixTransactionRecurringCheckoutScheduleListResponseDto listRecurrences() - throws ApiError, ValidationException { + public PixRecurringTransactionListResponseDto listRecurrences() throws ApiError, ValidationException { return this.listRecurrences(ListRecurrencesParameters.builder().build()); } @@ -51,26 +50,22 @@ public ApiPixTransactionRecurringCheckoutScheduleListResponseDto listRecurrences * List recurrences * * @param requestParameters {@link ListRecurrencesParameters} Request Parameters Object - * @return response of {@code ApiPixTransactionRecurringCheckoutScheduleListResponseDto} + * @return response of {@code PixRecurringTransactionListResponseDto} */ - public ApiPixTransactionRecurringCheckoutScheduleListResponseDto listRecurrences( - @NonNull ListRecurrencesParameters requestParameters - ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PixRecurringTransactionListResponseDto listRecurrences(@NonNull ListRecurrencesParameters requestParameters) + throws ApiError, ValidationException { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListRecurrencesRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert( - response, - new TypeReference() {} - ); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List recurrences * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listRecurrencesAsync() + public CompletableFuture listRecurrencesAsync() throws ApiError, ValidationException { return this.listRecurrencesAsync(ListRecurrencesParameters.builder().build()); } @@ -79,19 +74,16 @@ public CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listRecurrencesAsync( + public CompletableFuture listRecurrencesAsync( @NonNull ListRecurrencesParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListRecurrencesRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert( - response, - new TypeReference() {} - ) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -120,33 +112,28 @@ private Request buildListRecurrencesRequest(@NonNull ListRecurrencesParameters r * Retrieve a single recurrence * * @param id String Unique recurrence identifier in Asaas - * @return response of {@code ApiPixTransactionRecurringCheckoutScheduleGetResponseDto} + * @return response of {@code PixRecurringTransactionGetResponseDto} */ - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDto retrieveASingleRecurrence(@NonNull String id) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PixRecurringTransactionGetResponseDto retrieveASingleRecurrence(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleRecurrenceRequest(id); Response response = this.execute(request); - return ModelConverter.convert( - response, - new TypeReference() {} - ); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single recurrence * * @param id String Unique recurrence identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleRecurrenceAsync( - @NonNull String id - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveASingleRecurrenceAsync(@NonNull String id) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleRecurrenceRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -166,19 +153,14 @@ private Request buildRetrieveASingleRecurrenceRequest(@NonNull String id) { * * @param id String Unique recurrence identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPixTransactionRecurringCheckoutScheduleGetResponseDto} + * @return response of {@code PixRecurringTransactionGetResponseDto} */ - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDto cancelARecurrence( - @NonNull String id, - @NonNull Object input - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PixRecurringTransactionGetResponseDto cancelARecurrence(@NonNull String id, @NonNull Object input) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelARecurrenceRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert( - response, - new TypeReference() {} - ); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -186,17 +168,17 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDto cancelARecurrenc * * @param id String Unique recurrence identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture cancelARecurrenceAsync( + public CompletableFuture cancelARecurrenceAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelARecurrenceRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -217,19 +199,16 @@ private Request buildCancelARecurrenceRequest(@NonNull String id, @NonNull Objec * * @param id String Unique recurrence identifier in Asaas * @param requestParameters {@link ListRecurrenceItemsParameters} Request Parameters Object - * @return response of {@code ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto} + * @return response of {@code RecurringPixTransactionListItemsResponseDto} */ - public ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto listRecurrenceItems( + public RecurringPixTransactionListItemsResponseDto listRecurrenceItems( @NonNull String id, @NonNull ListRecurrenceItemsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListRecurrenceItemsRequest(id, requestParameters); Response response = this.execute(request); - return ModelConverter.convert( - response, - new TypeReference() {} - ); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -237,20 +216,17 @@ public ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto listRecurr * * @param id String Unique recurrence identifier in Asaas * @param requestParameters {@link ListRecurrenceItemsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listRecurrenceItemsAsync( + public CompletableFuture listRecurrenceItemsAsync( @NonNull String id, @NonNull ListRecurrenceItemsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListRecurrenceItemsRequest(id, requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert( - response, - new TypeReference() {} - ) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -278,19 +254,14 @@ private Request buildListRecurrenceItemsRequest( * * @param id String Unique recurrence item identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto} + * @return response of {@code PixRecurringTransactionGetItemResponseDto} */ - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto cancelARecurrenceItem( - @NonNull String id, - @NonNull Object input - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PixRecurringTransactionGetItemResponseDto cancelARecurrenceItem(@NonNull String id, @NonNull Object input) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelARecurrenceItemRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert( - response, - new TypeReference() {} - ); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -298,20 +269,17 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto cancelARecur * * @param id String Unique recurrence item identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture cancelARecurrenceItemAsync( + public CompletableFuture cancelARecurrenceItemAsync( @NonNull String id, @NonNull Object input ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelARecurrenceItemRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert( - response, - new TypeReference() {} - ) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/SandboxActionsService.java b/src/main/java/com/asaas/apisdk/services/SandboxActionsService.java index ed9ca45..253a515 100644 --- a/src/main/java/com/asaas/apisdk/services/SandboxActionsService.java +++ b/src/main/java/com/asaas/apisdk/services/SandboxActionsService.java @@ -4,13 +4,13 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPaymentGetResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; +import com.asaas.apisdk.models.PaymentGetResponseDto; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -33,13 +33,13 @@ public SandboxActionsService(@NonNull OkHttpClient httpClient, AsaasSdkConfig co * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto confirmPayment(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentGetResponseDto confirmPayment(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildConfirmPaymentRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -47,15 +47,15 @@ public ApiPaymentGetResponseDto confirmPayment(@NonNull String id, @NonNull Obje * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture confirmPaymentAsync(@NonNull String id, @NonNull Object input) + public CompletableFuture confirmPaymentAsync(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildConfirmPaymentRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -76,13 +76,13 @@ private Request buildConfirmPaymentRequest(@NonNull String id, @NonNull Object i * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code ApiPaymentGetResponseDto} + * @return response of {@code PaymentGetResponseDto} */ - public ApiPaymentGetResponseDto forceExpire(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public PaymentGetResponseDto forceExpire(@NonNull String id, @NonNull Object input) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildForceExpireRequest(id, input); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -90,15 +90,15 @@ public ApiPaymentGetResponseDto forceExpire(@NonNull String id, @NonNull Object * * @param id String Unique payment identifier in Asaas * @param input Object Request Body - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture forceExpireAsync(@NonNull String id, @NonNull Object input) + public CompletableFuture forceExpireAsync(@NonNull String id, @NonNull Object input) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildForceExpireRequest(id, input); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/SubaccountService.java b/src/main/java/com/asaas/apisdk/services/SubaccountService.java index 5d8d6b0..aef280e 100644 --- a/src/main/java/com/asaas/apisdk/services/SubaccountService.java +++ b/src/main/java/com/asaas/apisdk/services/SubaccountService.java @@ -4,18 +4,18 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiCustomerGetResponseDto; -import com.asaas.apisdk.models.ApiCustomerListResponseDto; -import com.asaas.apisdk.models.ApiCustomerPaymentCustodyConfigDto; -import com.asaas.apisdk.models.ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto; -import com.asaas.apisdk.models.ApiCustomerSaveRequestDto; -import com.asaas.apisdk.models.ApiCustomerSaveResponseDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; +import com.asaas.apisdk.models.AccountGetResponseDto; +import com.asaas.apisdk.models.AccountListResponseDto; +import com.asaas.apisdk.models.AccountPaymentEscrowConfigDto; +import com.asaas.apisdk.models.AccountSaveOrUpdatePaymentEscrowConfigRequestDto; +import com.asaas.apisdk.models.AccountSaveRequestDto; +import com.asaas.apisdk.models.AccountSaveResponseDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListSubaccountsParameters; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; @@ -40,9 +40,9 @@ public SubaccountService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config /** * List subaccounts * - * @return response of {@code ApiCustomerListResponseDto} + * @return response of {@code AccountListResponseDto} */ - public ApiCustomerListResponseDto listSubaccounts() throws ApiError, ValidationException { + public AccountListResponseDto listSubaccounts() throws ApiError, ValidationException { return this.listSubaccounts(ListSubaccountsParameters.builder().build()); } @@ -50,22 +50,22 @@ public ApiCustomerListResponseDto listSubaccounts() throws ApiError, ValidationE * List subaccounts * * @param requestParameters {@link ListSubaccountsParameters} Request Parameters Object - * @return response of {@code ApiCustomerListResponseDto} + * @return response of {@code AccountListResponseDto} */ - public ApiCustomerListResponseDto listSubaccounts(@NonNull ListSubaccountsParameters requestParameters) + public AccountListResponseDto listSubaccounts(@NonNull ListSubaccountsParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListSubaccountsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List subaccounts * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listSubaccountsAsync() throws ApiError, ValidationException { + public CompletableFuture listSubaccountsAsync() throws ApiError, ValidationException { return this.listSubaccountsAsync(ListSubaccountsParameters.builder().build()); } @@ -73,16 +73,16 @@ public CompletableFuture listSubaccountsAsync() thro * List subaccounts * * @param requestParameters {@link ListSubaccountsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listSubaccountsAsync( + public CompletableFuture listSubaccountsAsync( @NonNull ListSubaccountsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListSubaccountsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -109,60 +109,59 @@ private Request buildListSubaccountsRequest(@NonNull ListSubaccountsParameters r /** * Create subaccount * - * @return response of {@code ApiCustomerSaveResponseDto} + * @return response of {@code AccountSaveResponseDto} */ - public ApiCustomerSaveResponseDto createSubaccount() throws ApiError { - return this.createSubaccount(ApiCustomerSaveRequestDto.builder().build()); + public AccountSaveResponseDto createSubaccount() throws ApiError { + return this.createSubaccount(AccountSaveRequestDto.builder().build()); } /** * Create subaccount * - * @param apiCustomerSaveRequestDto {@link ApiCustomerSaveRequestDto} Request Body - * @return response of {@code ApiCustomerSaveResponseDto} + * @param accountSaveRequestDto {@link AccountSaveRequestDto} Request Body + * @return response of {@code AccountSaveResponseDto} */ - public ApiCustomerSaveResponseDto createSubaccount(@NonNull ApiCustomerSaveRequestDto apiCustomerSaveRequestDto) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateSubaccountRequest(apiCustomerSaveRequestDto); + public AccountSaveResponseDto createSubaccount(@NonNull AccountSaveRequestDto accountSaveRequestDto) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateSubaccountRequest(accountSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create subaccount * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createSubaccountAsync() throws ApiError { - return this.createSubaccountAsync(ApiCustomerSaveRequestDto.builder().build()); + public CompletableFuture createSubaccountAsync() throws ApiError { + return this.createSubaccountAsync(AccountSaveRequestDto.builder().build()); } /** * Create subaccount * - * @param apiCustomerSaveRequestDto {@link ApiCustomerSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param accountSaveRequestDto {@link AccountSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createSubaccountAsync( - @NonNull ApiCustomerSaveRequestDto apiCustomerSaveRequestDto + public CompletableFuture createSubaccountAsync( + @NonNull AccountSaveRequestDto accountSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateSubaccountRequest(apiCustomerSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateSubaccountRequest(accountSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildCreateSubaccountRequest(@NonNull ApiCustomerSaveRequestDto apiCustomerSaveRequestDto) { + private Request buildCreateSubaccountRequest(@NonNull AccountSaveRequestDto accountSaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/accounts" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiCustomerSaveRequestDto) + .setJsonContent(accountSaveRequestDto) .build(); } @@ -170,28 +169,27 @@ private Request buildCreateSubaccountRequest(@NonNull ApiCustomerSaveRequestDto * Retrieve a single subaccount * * @param id String Unique subaccount identifier in Asaas - * @return response of {@code ApiCustomerGetResponseDto} + * @return response of {@code AccountGetResponseDto} */ - public ApiCustomerGetResponseDto retrieveASingleSubaccount(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public AccountGetResponseDto retrieveASingleSubaccount(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleSubaccountRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single subaccount * * @param id String Unique subaccount identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleSubaccountAsync(@NonNull String id) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveASingleSubaccountAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleSubaccountRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -210,30 +208,30 @@ private Request buildRetrieveASingleSubaccountRequest(@NonNull String id) { * Reterive Escrow Account configuration for subaccount * * @param id String Unique subaccount identifier in Asaas - * @return response of {@code ApiCustomerPaymentCustodyConfigDto} + * @return response of {@code AccountPaymentEscrowConfigDto} */ - public ApiCustomerPaymentCustodyConfigDto reteriveEscrowAccountConfigurationForSubaccount(@NonNull String id) + public AccountPaymentEscrowConfigDto reteriveEscrowAccountConfigurationForSubaccount(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildReteriveEscrowAccountConfigurationForSubaccountRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Reterive Escrow Account configuration for subaccount * * @param id String Unique subaccount identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture reteriveEscrowAccountConfigurationForSubaccountAsync( + public CompletableFuture reteriveEscrowAccountConfigurationForSubaccountAsync( @NonNull String id ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildReteriveEscrowAccountConfigurationForSubaccountRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -252,49 +250,49 @@ private Request buildReteriveEscrowAccountConfigurationForSubaccountRequest(@Non * Save or update Escrow Account configuration for subaccount * * @param id String Unique subaccount identifier in Asaas - * @param apiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto {@link ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto} Request Body - * @return response of {@code ApiCustomerPaymentCustodyConfigDto} + * @param accountSaveOrUpdatePaymentEscrowConfigRequestDto {@link AccountSaveOrUpdatePaymentEscrowConfigRequestDto} Request Body + * @return response of {@code AccountPaymentEscrowConfigDto} */ - public ApiCustomerPaymentCustodyConfigDto saveOrUpdateEscrowAccountConfigurationForSubaccount( + public AccountPaymentEscrowConfigDto saveOrUpdateEscrowAccountConfigurationForSubaccount( @NonNull String id, - @NonNull ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto apiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto + @NonNull AccountSaveOrUpdatePaymentEscrowConfigRequestDto accountSaveOrUpdatePaymentEscrowConfigRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildSaveOrUpdateEscrowAccountConfigurationForSubaccountRequest( id, - apiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto + accountSaveOrUpdatePaymentEscrowConfigRequestDto ); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Save or update Escrow Account configuration for subaccount * * @param id String Unique subaccount identifier in Asaas - * @param apiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto {@link ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param accountSaveOrUpdatePaymentEscrowConfigRequestDto {@link AccountSaveOrUpdatePaymentEscrowConfigRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture saveOrUpdateEscrowAccountConfigurationForSubaccountAsync( + public CompletableFuture saveOrUpdateEscrowAccountConfigurationForSubaccountAsync( @NonNull String id, - @NonNull ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto apiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto + @NonNull AccountSaveOrUpdatePaymentEscrowConfigRequestDto accountSaveOrUpdatePaymentEscrowConfigRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildSaveOrUpdateEscrowAccountConfigurationForSubaccountRequest( id, - apiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto + accountSaveOrUpdatePaymentEscrowConfigRequestDto ); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildSaveOrUpdateEscrowAccountConfigurationForSubaccountRequest( @NonNull String id, - @NonNull ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto apiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto + @NonNull AccountSaveOrUpdatePaymentEscrowConfigRequestDto accountSaveOrUpdatePaymentEscrowConfigRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -303,7 +301,7 @@ private Request buildSaveOrUpdateEscrowAccountConfigurationForSubaccountRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto) + .setJsonContent(accountSaveOrUpdatePaymentEscrowConfigRequestDto) .build(); } } diff --git a/src/main/java/com/asaas/apisdk/services/SubscriptionService.java b/src/main/java/com/asaas/apisdk/services/SubscriptionService.java index 89b6c22..6d3cb0d 100644 --- a/src/main/java/com/asaas/apisdk/services/SubscriptionService.java +++ b/src/main/java/com/asaas/apisdk/services/SubscriptionService.java @@ -4,30 +4,30 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiCustomerInvoiceListResponseDto; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPaymentListResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionConfigureInvoiceRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionDeleteInvoiceConfigResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionDeleteResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionGetResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionInvoiceConfigGetResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionInvoiceConfigUpdateRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionListResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionSaveRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionSaveWithCreditCardRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionSaveWithCreditCardResponseDto; -import com.asaas.apisdk.models.ApiSubscriptionUpdateCreditCardRequestDto; -import com.asaas.apisdk.models.ApiSubscriptionUpdateRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.GenerateSignatureBookletParameters; +import com.asaas.apisdk.models.InvoiceListResponseDto; import com.asaas.apisdk.models.ListInvoicesForSubscriptionChargesParameters; import com.asaas.apisdk.models.ListPaymentsOfASubscriptionParameters; import com.asaas.apisdk.models.ListSubscriptionsParameters; +import com.asaas.apisdk.models.PaymentListResponseDto; +import com.asaas.apisdk.models.SubscriptionConfigureInvoiceRequestDto; +import com.asaas.apisdk.models.SubscriptionDeleteInvoiceConfigResponseDto; +import com.asaas.apisdk.models.SubscriptionDeleteResponseDto; +import com.asaas.apisdk.models.SubscriptionGetResponseDto; +import com.asaas.apisdk.models.SubscriptionInvoiceConfigGetResponseDto; +import com.asaas.apisdk.models.SubscriptionInvoiceConfigUpdateRequestDto; +import com.asaas.apisdk.models.SubscriptionListResponseDto; +import com.asaas.apisdk.models.SubscriptionSaveRequestDto; +import com.asaas.apisdk.models.SubscriptionSaveWithCreditCardRequestDto; +import com.asaas.apisdk.models.SubscriptionSaveWithCreditCardResponseDto; +import com.asaas.apisdk.models.SubscriptionUpdateCreditCardRequestDto; +import com.asaas.apisdk.models.SubscriptionUpdateRequestDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListInvoicesForSubscriptionChargesParametersValidator; @@ -52,9 +52,9 @@ public SubscriptionService(@NonNull OkHttpClient httpClient, AsaasSdkConfig conf /** * List subscriptions * - * @return response of {@code ApiSubscriptionListResponseDto} + * @return response of {@code SubscriptionListResponseDto} */ - public ApiSubscriptionListResponseDto listSubscriptions() throws ApiError, ValidationException { + public SubscriptionListResponseDto listSubscriptions() throws ApiError, ValidationException { return this.listSubscriptions(ListSubscriptionsParameters.builder().build()); } @@ -62,23 +62,22 @@ public ApiSubscriptionListResponseDto listSubscriptions() throws ApiError, Valid * List subscriptions * * @param requestParameters {@link ListSubscriptionsParameters} Request Parameters Object - * @return response of {@code ApiSubscriptionListResponseDto} + * @return response of {@code SubscriptionListResponseDto} */ - public ApiSubscriptionListResponseDto listSubscriptions(@NonNull ListSubscriptionsParameters requestParameters) + public SubscriptionListResponseDto listSubscriptions(@NonNull ListSubscriptionsParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListSubscriptionsRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List subscriptions * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listSubscriptionsAsync() - throws ApiError, ValidationException { + public CompletableFuture listSubscriptionsAsync() throws ApiError, ValidationException { return this.listSubscriptionsAsync(ListSubscriptionsParameters.builder().build()); } @@ -86,16 +85,16 @@ public CompletableFuture listSubscriptionsAsync( * List subscriptions * * @param requestParameters {@link ListSubscriptionsParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listSubscriptionsAsync( + public CompletableFuture listSubscriptionsAsync( @NonNull ListSubscriptionsParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListSubscriptionsRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -131,119 +130,117 @@ private Request buildListSubscriptionsRequest(@NonNull ListSubscriptionsParamete /** * Create new subscription * - * @return response of {@code ApiSubscriptionGetResponseDto} + * @return response of {@code SubscriptionGetResponseDto} */ - public ApiSubscriptionGetResponseDto createNewSubscription() throws ApiError { - return this.createNewSubscription(ApiSubscriptionSaveRequestDto.builder().build()); + public SubscriptionGetResponseDto createNewSubscription() throws ApiError { + return this.createNewSubscription(SubscriptionSaveRequestDto.builder().build()); } /** * Create new subscription * - * @param apiSubscriptionSaveRequestDto {@link ApiSubscriptionSaveRequestDto} Request Body - * @return response of {@code ApiSubscriptionGetResponseDto} + * @param subscriptionSaveRequestDto {@link SubscriptionSaveRequestDto} Request Body + * @return response of {@code SubscriptionGetResponseDto} */ - public ApiSubscriptionGetResponseDto createNewSubscription( - @NonNull ApiSubscriptionSaveRequestDto apiSubscriptionSaveRequestDto + public SubscriptionGetResponseDto createNewSubscription( + @NonNull SubscriptionSaveRequestDto subscriptionSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewSubscriptionRequest(apiSubscriptionSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewSubscriptionRequest(subscriptionSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create new subscription * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewSubscriptionAsync() throws ApiError { - return this.createNewSubscriptionAsync(ApiSubscriptionSaveRequestDto.builder().build()); + public CompletableFuture createNewSubscriptionAsync() throws ApiError { + return this.createNewSubscriptionAsync(SubscriptionSaveRequestDto.builder().build()); } /** * Create new subscription * - * @param apiSubscriptionSaveRequestDto {@link ApiSubscriptionSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param subscriptionSaveRequestDto {@link SubscriptionSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewSubscriptionAsync( - @NonNull ApiSubscriptionSaveRequestDto apiSubscriptionSaveRequestDto + public CompletableFuture createNewSubscriptionAsync( + @NonNull SubscriptionSaveRequestDto subscriptionSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewSubscriptionRequest(apiSubscriptionSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewSubscriptionRequest(subscriptionSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildCreateNewSubscriptionRequest( - @NonNull ApiSubscriptionSaveRequestDto apiSubscriptionSaveRequestDto - ) { + private Request buildCreateNewSubscriptionRequest(@NonNull SubscriptionSaveRequestDto subscriptionSaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/subscriptions" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiSubscriptionSaveRequestDto) + .setJsonContent(subscriptionSaveRequestDto) .build(); } /** * Create subscription with credit card * - * @return response of {@code ApiSubscriptionSaveWithCreditCardResponseDto} + * @return response of {@code SubscriptionSaveWithCreditCardResponseDto} */ - public ApiSubscriptionSaveWithCreditCardResponseDto createSubscriptionWithCreditCard() throws ApiError { - return this.createSubscriptionWithCreditCard(ApiSubscriptionSaveWithCreditCardRequestDto.builder().build()); + public SubscriptionSaveWithCreditCardResponseDto createSubscriptionWithCreditCard() throws ApiError { + return this.createSubscriptionWithCreditCard(SubscriptionSaveWithCreditCardRequestDto.builder().build()); } /** * Create subscription with credit card * - * @param apiSubscriptionSaveWithCreditCardRequestDto {@link ApiSubscriptionSaveWithCreditCardRequestDto} Request Body - * @return response of {@code ApiSubscriptionSaveWithCreditCardResponseDto} + * @param subscriptionSaveWithCreditCardRequestDto {@link SubscriptionSaveWithCreditCardRequestDto} Request Body + * @return response of {@code SubscriptionSaveWithCreditCardResponseDto} */ - public ApiSubscriptionSaveWithCreditCardResponseDto createSubscriptionWithCreditCard( - @NonNull ApiSubscriptionSaveWithCreditCardRequestDto apiSubscriptionSaveWithCreditCardRequestDto + public SubscriptionSaveWithCreditCardResponseDto createSubscriptionWithCreditCard( + @NonNull SubscriptionSaveWithCreditCardRequestDto subscriptionSaveWithCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateSubscriptionWithCreditCardRequest(apiSubscriptionSaveWithCreditCardRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateSubscriptionWithCreditCardRequest(subscriptionSaveWithCreditCardRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create subscription with credit card * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createSubscriptionWithCreditCardAsync() + public CompletableFuture createSubscriptionWithCreditCardAsync() throws ApiError { - return this.createSubscriptionWithCreditCardAsync(ApiSubscriptionSaveWithCreditCardRequestDto.builder().build()); + return this.createSubscriptionWithCreditCardAsync(SubscriptionSaveWithCreditCardRequestDto.builder().build()); } /** * Create subscription with credit card * - * @param apiSubscriptionSaveWithCreditCardRequestDto {@link ApiSubscriptionSaveWithCreditCardRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param subscriptionSaveWithCreditCardRequestDto {@link SubscriptionSaveWithCreditCardRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createSubscriptionWithCreditCardAsync( - @NonNull ApiSubscriptionSaveWithCreditCardRequestDto apiSubscriptionSaveWithCreditCardRequestDto + public CompletableFuture createSubscriptionWithCreditCardAsync( + @NonNull SubscriptionSaveWithCreditCardRequestDto subscriptionSaveWithCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateSubscriptionWithCreditCardRequest(apiSubscriptionSaveWithCreditCardRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateSubscriptionWithCreditCardRequest(subscriptionSaveWithCreditCardRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildCreateSubscriptionWithCreditCardRequest( - @NonNull ApiSubscriptionSaveWithCreditCardRequestDto apiSubscriptionSaveWithCreditCardRequestDto + @NonNull SubscriptionSaveWithCreditCardRequestDto subscriptionSaveWithCreditCardRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -251,7 +248,7 @@ private Request buildCreateSubscriptionWithCreditCardRequest( "v3/subscriptions/" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiSubscriptionSaveWithCreditCardRequestDto) + .setJsonContent(subscriptionSaveWithCreditCardRequestDto) .build(); } @@ -259,28 +256,28 @@ private Request buildCreateSubscriptionWithCreditCardRequest( * Retrieve a single subscription * * @param id String Unique subscription identifier in Asaas - * @return response of {@code ApiSubscriptionGetResponseDto} + * @return response of {@code SubscriptionGetResponseDto} */ - public ApiSubscriptionGetResponseDto retrieveASingleSubscription(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public SubscriptionGetResponseDto retrieveASingleSubscription(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleSubscriptionRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single subscription * * @param id String Unique subscription identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleSubscriptionAsync(@NonNull String id) + public CompletableFuture retrieveASingleSubscriptionAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleSubscriptionRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -299,41 +296,41 @@ private Request buildRetrieveASingleSubscriptionRequest(@NonNull String id) { * Update existing subscription * * @param id String Unique subscription identifier in Asaas - * @param apiSubscriptionUpdateRequestDto {@link ApiSubscriptionUpdateRequestDto} Request Body - * @return response of {@code ApiSubscriptionGetResponseDto} + * @param subscriptionUpdateRequestDto {@link SubscriptionUpdateRequestDto} Request Body + * @return response of {@code SubscriptionGetResponseDto} */ - public ApiSubscriptionGetResponseDto updateExistingSubscription( + public SubscriptionGetResponseDto updateExistingSubscription( @NonNull String id, - @NonNull ApiSubscriptionUpdateRequestDto apiSubscriptionUpdateRequestDto + @NonNull SubscriptionUpdateRequestDto subscriptionUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingSubscriptionRequest(id, apiSubscriptionUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingSubscriptionRequest(id, subscriptionUpdateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update existing subscription * * @param id String Unique subscription identifier in Asaas - * @param apiSubscriptionUpdateRequestDto {@link ApiSubscriptionUpdateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param subscriptionUpdateRequestDto {@link SubscriptionUpdateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateExistingSubscriptionAsync( + public CompletableFuture updateExistingSubscriptionAsync( @NonNull String id, - @NonNull ApiSubscriptionUpdateRequestDto apiSubscriptionUpdateRequestDto + @NonNull SubscriptionUpdateRequestDto subscriptionUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingSubscriptionRequest(id, apiSubscriptionUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingSubscriptionRequest(id, subscriptionUpdateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateExistingSubscriptionRequest( @NonNull String id, - @NonNull ApiSubscriptionUpdateRequestDto apiSubscriptionUpdateRequestDto + @NonNull SubscriptionUpdateRequestDto subscriptionUpdateRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -342,7 +339,7 @@ private Request buildUpdateExistingSubscriptionRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiSubscriptionUpdateRequestDto) + .setJsonContent(subscriptionUpdateRequestDto) .build(); } @@ -350,28 +347,27 @@ private Request buildUpdateExistingSubscriptionRequest( * Remove subscription * * @param id String Unique subscription identifier in Asaas - * @return response of {@code ApiSubscriptionDeleteResponseDto} + * @return response of {@code SubscriptionDeleteResponseDto} */ - public ApiSubscriptionDeleteResponseDto removeSubscription(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public SubscriptionDeleteResponseDto removeSubscription(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveSubscriptionRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Remove subscription * * @param id String Unique subscription identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture removeSubscriptionAsync(@NonNull String id) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture removeSubscriptionAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveSubscriptionRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -390,41 +386,41 @@ private Request buildRemoveSubscriptionRequest(@NonNull String id) { * Update credit card without charging the subscription * * @param id String Unique subscription identifier in Asaas - * @param apiSubscriptionUpdateCreditCardRequestDto {@link ApiSubscriptionUpdateCreditCardRequestDto} Request Body - * @return response of {@code ApiSubscriptionGetResponseDto} + * @param subscriptionUpdateCreditCardRequestDto {@link SubscriptionUpdateCreditCardRequestDto} Request Body + * @return response of {@code SubscriptionGetResponseDto} */ - public ApiSubscriptionGetResponseDto updateSubscriptionCreditCard( + public SubscriptionGetResponseDto updateSubscriptionCreditCard( @NonNull String id, - @NonNull ApiSubscriptionUpdateCreditCardRequestDto apiSubscriptionUpdateCreditCardRequestDto + @NonNull SubscriptionUpdateCreditCardRequestDto subscriptionUpdateCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateSubscriptionCreditCardRequest(id, apiSubscriptionUpdateCreditCardRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateSubscriptionCreditCardRequest(id, subscriptionUpdateCreditCardRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update credit card without charging the subscription * * @param id String Unique subscription identifier in Asaas - * @param apiSubscriptionUpdateCreditCardRequestDto {@link ApiSubscriptionUpdateCreditCardRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param subscriptionUpdateCreditCardRequestDto {@link SubscriptionUpdateCreditCardRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateSubscriptionCreditCardAsync( + public CompletableFuture updateSubscriptionCreditCardAsync( @NonNull String id, - @NonNull ApiSubscriptionUpdateCreditCardRequestDto apiSubscriptionUpdateCreditCardRequestDto + @NonNull SubscriptionUpdateCreditCardRequestDto subscriptionUpdateCreditCardRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateSubscriptionCreditCardRequest(id, apiSubscriptionUpdateCreditCardRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateSubscriptionCreditCardRequest(id, subscriptionUpdateCreditCardRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateSubscriptionCreditCardRequest( @NonNull String id, - @NonNull ApiSubscriptionUpdateCreditCardRequestDto apiSubscriptionUpdateCreditCardRequestDto + @NonNull SubscriptionUpdateCreditCardRequestDto subscriptionUpdateCreditCardRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -433,7 +429,7 @@ private Request buildUpdateSubscriptionCreditCardRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiSubscriptionUpdateCreditCardRequestDto) + .setJsonContent(subscriptionUpdateCreditCardRequestDto) .build(); } @@ -442,16 +438,16 @@ private Request buildUpdateSubscriptionCreditCardRequest( * * @param id String Unique subscription identifier in Asaas * @param requestParameters {@link ListPaymentsOfASubscriptionParameters} Request Parameters Object - * @return response of {@code ApiPaymentListResponseDto} + * @return response of {@code PaymentListResponseDto} */ - public ApiPaymentListResponseDto listPaymentsOfASubscription( + public PaymentListResponseDto listPaymentsOfASubscription( @NonNull String id, @NonNull ListPaymentsOfASubscriptionParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsOfASubscriptionRequest(id, requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -459,17 +455,17 @@ public ApiPaymentListResponseDto listPaymentsOfASubscription( * * @param id String Unique subscription identifier in Asaas * @param requestParameters {@link ListPaymentsOfASubscriptionParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listPaymentsOfASubscriptionAsync( + public CompletableFuture listPaymentsOfASubscriptionAsync( @NonNull String id, @NonNull ListPaymentsOfASubscriptionParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListPaymentsOfASubscriptionRequest(id, requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -501,7 +497,7 @@ public Object generateSignatureBooklet( @NonNull String id, @NonNull GenerateSignatureBookletParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildGenerateSignatureBookletRequest(id, requestParameters); Response response = this.execute(request); return ModelConverter.convert(response, new TypeReference() {}); @@ -518,7 +514,7 @@ public CompletableFuture generateSignatureBookletAsync( @NonNull String id, @NonNull GenerateSignatureBookletParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildGenerateSignatureBookletRequest(id, requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> ModelConverter.convert(response, new TypeReference() {})); @@ -546,30 +542,30 @@ private Request buildGenerateSignatureBookletRequest( * Retrieve configuration for issuing invoices * * @param id String Unique subscription identifier in Asaas - * @return response of {@code ApiSubscriptionInvoiceConfigGetResponseDto} + * @return response of {@code SubscriptionInvoiceConfigGetResponseDto} */ - public ApiSubscriptionInvoiceConfigGetResponseDto retrieveConfigurationForIssuanceOfInvoices(@NonNull String id) + public SubscriptionInvoiceConfigGetResponseDto retrieveConfigurationForIssuanceOfInvoices(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveConfigurationForIssuanceOfInvoicesRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve configuration for issuing invoices * * @param id String Unique subscription identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveConfigurationForIssuanceOfInvoicesAsync( + public CompletableFuture retrieveConfigurationForIssuanceOfInvoicesAsync( @NonNull String id ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveConfigurationForIssuanceOfInvoicesRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -588,43 +584,43 @@ private Request buildRetrieveConfigurationForIssuanceOfInvoicesRequest(@NonNull * Create configuration for issuing invoices * * @param id String Unique subscription identifier in Asaas - * @param apiSubscriptionConfigureInvoiceRequestDto {@link ApiSubscriptionConfigureInvoiceRequestDto} Request Body - * @return response of {@code ApiSubscriptionInvoiceConfigGetResponseDto} + * @param subscriptionConfigureInvoiceRequestDto {@link SubscriptionConfigureInvoiceRequestDto} Request Body + * @return response of {@code SubscriptionInvoiceConfigGetResponseDto} */ - public ApiSubscriptionInvoiceConfigGetResponseDto createConfigurationForIssuanceOfInvoices( + public SubscriptionInvoiceConfigGetResponseDto createConfigurationForIssuanceOfInvoices( @NonNull String id, - @NonNull ApiSubscriptionConfigureInvoiceRequestDto apiSubscriptionConfigureInvoiceRequestDto + @NonNull SubscriptionConfigureInvoiceRequestDto subscriptionConfigureInvoiceRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = - this.buildCreateConfigurationForIssuanceOfInvoicesRequest(id, apiSubscriptionConfigureInvoiceRequestDto); + this.buildCreateConfigurationForIssuanceOfInvoicesRequest(id, subscriptionConfigureInvoiceRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create configuration for issuing invoices * * @param id String Unique subscription identifier in Asaas - * @param apiSubscriptionConfigureInvoiceRequestDto {@link ApiSubscriptionConfigureInvoiceRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param subscriptionConfigureInvoiceRequestDto {@link SubscriptionConfigureInvoiceRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createConfigurationForIssuanceOfInvoicesAsync( + public CompletableFuture createConfigurationForIssuanceOfInvoicesAsync( @NonNull String id, - @NonNull ApiSubscriptionConfigureInvoiceRequestDto apiSubscriptionConfigureInvoiceRequestDto + @NonNull SubscriptionConfigureInvoiceRequestDto subscriptionConfigureInvoiceRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = - this.buildCreateConfigurationForIssuanceOfInvoicesRequest(id, apiSubscriptionConfigureInvoiceRequestDto); + this.buildCreateConfigurationForIssuanceOfInvoicesRequest(id, subscriptionConfigureInvoiceRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildCreateConfigurationForIssuanceOfInvoicesRequest( @NonNull String id, - @NonNull ApiSubscriptionConfigureInvoiceRequestDto apiSubscriptionConfigureInvoiceRequestDto + @NonNull SubscriptionConfigureInvoiceRequestDto subscriptionConfigureInvoiceRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -633,7 +629,7 @@ private Request buildCreateConfigurationForIssuanceOfInvoicesRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiSubscriptionConfigureInvoiceRequestDto) + .setJsonContent(subscriptionConfigureInvoiceRequestDto) .build(); } @@ -641,43 +637,43 @@ private Request buildCreateConfigurationForIssuanceOfInvoicesRequest( * Update configuration for issuing invoices * * @param id String Unique subscription identifier in Asaas - * @param apiSubscriptionInvoiceConfigUpdateRequestDto {@link ApiSubscriptionInvoiceConfigUpdateRequestDto} Request Body - * @return response of {@code ApiSubscriptionInvoiceConfigGetResponseDto} + * @param subscriptionInvoiceConfigUpdateRequestDto {@link SubscriptionInvoiceConfigUpdateRequestDto} Request Body + * @return response of {@code SubscriptionInvoiceConfigGetResponseDto} */ - public ApiSubscriptionInvoiceConfigGetResponseDto updateConfigurationForIssuanceOfInvoices( + public SubscriptionInvoiceConfigGetResponseDto updateConfigurationForIssuanceOfInvoices( @NonNull String id, - @NonNull ApiSubscriptionInvoiceConfigUpdateRequestDto apiSubscriptionInvoiceConfigUpdateRequestDto + @NonNull SubscriptionInvoiceConfigUpdateRequestDto subscriptionInvoiceConfigUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = - this.buildUpdateConfigurationForIssuanceOfInvoicesRequest(id, apiSubscriptionInvoiceConfigUpdateRequestDto); + this.buildUpdateConfigurationForIssuanceOfInvoicesRequest(id, subscriptionInvoiceConfigUpdateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update configuration for issuing invoices * * @param id String Unique subscription identifier in Asaas - * @param apiSubscriptionInvoiceConfigUpdateRequestDto {@link ApiSubscriptionInvoiceConfigUpdateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param subscriptionInvoiceConfigUpdateRequestDto {@link SubscriptionInvoiceConfigUpdateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateConfigurationForIssuanceOfInvoicesAsync( + public CompletableFuture updateConfigurationForIssuanceOfInvoicesAsync( @NonNull String id, - @NonNull ApiSubscriptionInvoiceConfigUpdateRequestDto apiSubscriptionInvoiceConfigUpdateRequestDto + @NonNull SubscriptionInvoiceConfigUpdateRequestDto subscriptionInvoiceConfigUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = - this.buildUpdateConfigurationForIssuanceOfInvoicesRequest(id, apiSubscriptionInvoiceConfigUpdateRequestDto); + this.buildUpdateConfigurationForIssuanceOfInvoicesRequest(id, subscriptionInvoiceConfigUpdateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateConfigurationForIssuanceOfInvoicesRequest( @NonNull String id, - @NonNull ApiSubscriptionInvoiceConfigUpdateRequestDto apiSubscriptionInvoiceConfigUpdateRequestDto + @NonNull SubscriptionInvoiceConfigUpdateRequestDto subscriptionInvoiceConfigUpdateRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -686,7 +682,7 @@ private Request buildUpdateConfigurationForIssuanceOfInvoicesRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiSubscriptionInvoiceConfigUpdateRequestDto) + .setJsonContent(subscriptionInvoiceConfigUpdateRequestDto) .build(); } @@ -694,30 +690,30 @@ private Request buildUpdateConfigurationForIssuanceOfInvoicesRequest( * Remove configuration for issuing invoices * * @param id String Unique subscription identifier in Asaas - * @return response of {@code ApiSubscriptionDeleteInvoiceConfigResponseDto} + * @return response of {@code SubscriptionDeleteInvoiceConfigResponseDto} */ - public ApiSubscriptionDeleteInvoiceConfigResponseDto removeConfigurationForIssuanceOfInvoices(@NonNull String id) + public SubscriptionDeleteInvoiceConfigResponseDto removeConfigurationForIssuanceOfInvoices(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveConfigurationForIssuanceOfInvoicesRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Remove configuration for issuing invoices * * @param id String Unique subscription identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture removeConfigurationForIssuanceOfInvoicesAsync( + public CompletableFuture removeConfigurationForIssuanceOfInvoicesAsync( @NonNull String id ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveConfigurationForIssuanceOfInvoicesRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -737,16 +733,16 @@ private Request buildRemoveConfigurationForIssuanceOfInvoicesRequest(@NonNull St * * @param id String Unique subscription identifier in Asaas * @param requestParameters {@link ListInvoicesForSubscriptionChargesParameters} Request Parameters Object - * @return response of {@code ApiCustomerInvoiceListResponseDto} + * @return response of {@code InvoiceListResponseDto} */ - public ApiCustomerInvoiceListResponseDto listInvoicesForSubscriptionCharges( + public InvoiceListResponseDto listInvoicesForSubscriptionCharges( @NonNull String id, @NonNull ListInvoicesForSubscriptionChargesParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListInvoicesForSubscriptionChargesRequest(id, requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** @@ -754,17 +750,17 @@ public ApiCustomerInvoiceListResponseDto listInvoicesForSubscriptionCharges( * * @param id String Unique subscription identifier in Asaas * @param requestParameters {@link ListInvoicesForSubscriptionChargesParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listInvoicesForSubscriptionChargesAsync( + public CompletableFuture listInvoicesForSubscriptionChargesAsync( @NonNull String id, @NonNull ListInvoicesForSubscriptionChargesParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListInvoicesForSubscriptionChargesRequest(id, requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/TransferService.java b/src/main/java/com/asaas/apisdk/services/TransferService.java index 55a4da0..4515080 100644 --- a/src/main/java/com/asaas/apisdk/services/TransferService.java +++ b/src/main/java/com/asaas/apisdk/services/TransferService.java @@ -4,21 +4,21 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiTransferGetResponseDto; -import com.asaas.apisdk.models.ApiTransferListResponseDto; -import com.asaas.apisdk.models.ApiTransferSaveInternalTransferRequestDto; -import com.asaas.apisdk.models.ApiTransferSaveInternalTransferResponseDto; -import com.asaas.apisdk.models.ApiTransferSaveRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListTransfersParameters; +import com.asaas.apisdk.models.TransferGetResponseDto; +import com.asaas.apisdk.models.TransferListResponseDto; +import com.asaas.apisdk.models.TransferSaveInternalTransferRequestDto; +import com.asaas.apisdk.models.TransferSaveInternalTransferResponseDto; +import com.asaas.apisdk.models.TransferSaveRequestDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; -import com.asaas.apisdk.validation.validators.modelValidators.ApiTransferSaveRequestDtoValidator; +import com.asaas.apisdk.validation.validators.modelValidators.TransferSaveRequestDtoValidator; import com.fasterxml.jackson.core.type.TypeReference; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -39,9 +39,9 @@ public TransferService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config) /** * List transfers * - * @return response of {@code ApiTransferListResponseDto} + * @return response of {@code TransferListResponseDto} */ - public ApiTransferListResponseDto listTransfers() throws ApiError { + public TransferListResponseDto listTransfers() throws ApiError { return this.listTransfers(ListTransfersParameters.builder().build()); } @@ -49,21 +49,21 @@ public ApiTransferListResponseDto listTransfers() throws ApiError { * List transfers * * @param requestParameters {@link ListTransfersParameters} Request Parameters Object - * @return response of {@code ApiTransferListResponseDto} + * @return response of {@code TransferListResponseDto} */ - public ApiTransferListResponseDto listTransfers(@NonNull ListTransfersParameters requestParameters) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public TransferListResponseDto listTransfers(@NonNull ListTransfersParameters requestParameters) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListTransfersRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List transfers * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listTransfersAsync() throws ApiError { + public CompletableFuture listTransfersAsync() throws ApiError { return this.listTransfersAsync(ListTransfersParameters.builder().build()); } @@ -71,16 +71,16 @@ public CompletableFuture listTransfersAsync() throws * List transfers * * @param requestParameters {@link ListTransfersParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listTransfersAsync( + public CompletableFuture listTransfersAsync( @NonNull ListTransfersParameters requestParameters ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListTransfersRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -102,63 +102,59 @@ private Request buildListTransfersRequest(@NonNull ListTransfersParameters reque /** * Transfer to another Institution’s account or Pix key * - * @return response of {@code ApiTransferGetResponseDto} + * @return response of {@code TransferGetResponseDto} */ - public ApiTransferGetResponseDto transferToAnotherInstitutionAccountOrPixKey() throws ApiError, ValidationException { - return this.transferToAnotherInstitutionAccountOrPixKey(ApiTransferSaveRequestDto.builder().build()); + public TransferGetResponseDto transferToAnotherInstitutionAccountOrPixKey() throws ApiError, ValidationException { + return this.transferToAnotherInstitutionAccountOrPixKey(TransferSaveRequestDto.builder().build()); } /** * Transfer to another Institution’s account or Pix key * - * @param apiTransferSaveRequestDto {@link ApiTransferSaveRequestDto} Request Body - * @return response of {@code ApiTransferGetResponseDto} + * @param transferSaveRequestDto {@link TransferSaveRequestDto} Request Body + * @return response of {@code TransferGetResponseDto} */ - public ApiTransferGetResponseDto transferToAnotherInstitutionAccountOrPixKey( - @NonNull ApiTransferSaveRequestDto apiTransferSaveRequestDto + public TransferGetResponseDto transferToAnotherInstitutionAccountOrPixKey( + @NonNull TransferSaveRequestDto transferSaveRequestDto ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildTransferToAnotherInstitutionAccountOrPixKeyRequest(apiTransferSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildTransferToAnotherInstitutionAccountOrPixKeyRequest(transferSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Transfer to another Institution’s account or Pix key * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture transferToAnotherInstitutionAccountOrPixKeyAsync() + public CompletableFuture transferToAnotherInstitutionAccountOrPixKeyAsync() throws ApiError, ValidationException { - return this.transferToAnotherInstitutionAccountOrPixKeyAsync(ApiTransferSaveRequestDto.builder().build()); + return this.transferToAnotherInstitutionAccountOrPixKeyAsync(TransferSaveRequestDto.builder().build()); } /** * Transfer to another Institution’s account or Pix key * - * @param apiTransferSaveRequestDto {@link ApiTransferSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param transferSaveRequestDto {@link TransferSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture transferToAnotherInstitutionAccountOrPixKeyAsync( - @NonNull ApiTransferSaveRequestDto apiTransferSaveRequestDto + public CompletableFuture transferToAnotherInstitutionAccountOrPixKeyAsync( + @NonNull TransferSaveRequestDto transferSaveRequestDto ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildTransferToAnotherInstitutionAccountOrPixKeyRequest(apiTransferSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildTransferToAnotherInstitutionAccountOrPixKeyRequest(transferSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildTransferToAnotherInstitutionAccountOrPixKeyRequest( - @NonNull ApiTransferSaveRequestDto apiTransferSaveRequestDto + @NonNull TransferSaveRequestDto transferSaveRequestDto ) throws ValidationException { new ViolationAggregator() - .add( - new ApiTransferSaveRequestDtoValidator("apiTransferSaveRequestDto") - .optional() - .validate(apiTransferSaveRequestDto) - ) + .add(new TransferSaveRequestDtoValidator("transferSaveRequestDto").optional().validate(transferSaveRequestDto)) .validateAll(); return new RequestBuilder( HttpMethod.POST, @@ -166,62 +162,62 @@ private Request buildTransferToAnotherInstitutionAccountOrPixKeyRequest( "v3/transfers" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiTransferSaveRequestDto) + .setJsonContent(transferSaveRequestDto) .build(); } /** * Transfer to Asaas account * - * @return response of {@code ApiTransferSaveInternalTransferResponseDto} + * @return response of {@code TransferSaveInternalTransferResponseDto} */ - public ApiTransferSaveInternalTransferResponseDto transferToAsaasAccount() throws ApiError { - return this.transferToAsaasAccount(ApiTransferSaveInternalTransferRequestDto.builder().build()); + public TransferSaveInternalTransferResponseDto transferToAsaasAccount() throws ApiError { + return this.transferToAsaasAccount(TransferSaveInternalTransferRequestDto.builder().build()); } /** * Transfer to Asaas account * - * @param apiTransferSaveInternalTransferRequestDto {@link ApiTransferSaveInternalTransferRequestDto} Request Body - * @return response of {@code ApiTransferSaveInternalTransferResponseDto} + * @param transferSaveInternalTransferRequestDto {@link TransferSaveInternalTransferRequestDto} Request Body + * @return response of {@code TransferSaveInternalTransferResponseDto} */ - public ApiTransferSaveInternalTransferResponseDto transferToAsaasAccount( - @NonNull ApiTransferSaveInternalTransferRequestDto apiTransferSaveInternalTransferRequestDto + public TransferSaveInternalTransferResponseDto transferToAsaasAccount( + @NonNull TransferSaveInternalTransferRequestDto transferSaveInternalTransferRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildTransferToAsaasAccountRequest(apiTransferSaveInternalTransferRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildTransferToAsaasAccountRequest(transferSaveInternalTransferRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Transfer to Asaas account * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture transferToAsaasAccountAsync() throws ApiError { - return this.transferToAsaasAccountAsync(ApiTransferSaveInternalTransferRequestDto.builder().build()); + public CompletableFuture transferToAsaasAccountAsync() throws ApiError { + return this.transferToAsaasAccountAsync(TransferSaveInternalTransferRequestDto.builder().build()); } /** * Transfer to Asaas account * - * @param apiTransferSaveInternalTransferRequestDto {@link ApiTransferSaveInternalTransferRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param transferSaveInternalTransferRequestDto {@link TransferSaveInternalTransferRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture transferToAsaasAccountAsync( - @NonNull ApiTransferSaveInternalTransferRequestDto apiTransferSaveInternalTransferRequestDto + public CompletableFuture transferToAsaasAccountAsync( + @NonNull TransferSaveInternalTransferRequestDto transferSaveInternalTransferRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildTransferToAsaasAccountRequest(apiTransferSaveInternalTransferRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildTransferToAsaasAccountRequest(transferSaveInternalTransferRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildTransferToAsaasAccountRequest( - @NonNull ApiTransferSaveInternalTransferRequestDto apiTransferSaveInternalTransferRequestDto + @NonNull TransferSaveInternalTransferRequestDto transferSaveInternalTransferRequestDto ) { return new RequestBuilder( HttpMethod.POST, @@ -229,7 +225,7 @@ private Request buildTransferToAsaasAccountRequest( "v3/transfers/" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiTransferSaveInternalTransferRequestDto) + .setJsonContent(transferSaveInternalTransferRequestDto) .build(); } @@ -237,27 +233,27 @@ private Request buildTransferToAsaasAccountRequest( * Retrieve a single transfer * * @param id String Unique transfer identifier in Asaas - * @return response of {@code ApiTransferGetResponseDto} + * @return response of {@code TransferGetResponseDto} */ - public ApiTransferGetResponseDto retrieveASingleTransfer(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public TransferGetResponseDto retrieveASingleTransfer(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleTransferRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single transfer * * @param id String Unique transfer identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleTransferAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture retrieveASingleTransferAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleTransferRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -276,27 +272,27 @@ private Request buildRetrieveASingleTransferRequest(@NonNull String id) { * Cancel a transfer * * @param id String Unique transfer identifier in Asaas - * @return response of {@code ApiTransferGetResponseDto} + * @return response of {@code TransferGetResponseDto} */ - public ApiTransferGetResponseDto cancelATransfer(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public TransferGetResponseDto cancelATransfer(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelATransferRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Cancel a transfer * * @param id String Unique transfer identifier in Asaas - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture cancelATransferAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture cancelATransferAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildCancelATransferRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/services/WebhookService.java b/src/main/java/com/asaas/apisdk/services/WebhookService.java index e6ddc54..ce2d394 100644 --- a/src/main/java/com/asaas/apisdk/services/WebhookService.java +++ b/src/main/java/com/asaas/apisdk/services/WebhookService.java @@ -4,18 +4,18 @@ import com.asaas.apisdk.config.AsaasSdkConfig; import com.asaas.apisdk.exceptions.ApiError; -import com.asaas.apisdk.exceptions.ApiErrorResponseDtoException; +import com.asaas.apisdk.exceptions.ErrorResponseDtoException; import com.asaas.apisdk.http.Environment; import com.asaas.apisdk.http.HttpMethod; import com.asaas.apisdk.http.ModelConverter; import com.asaas.apisdk.http.util.RequestBuilder; -import com.asaas.apisdk.models.ApiErrorResponseDto; -import com.asaas.apisdk.models.ApiPushNotificationConfigDeleteResponseDto; -import com.asaas.apisdk.models.ApiPushNotificationConfigGetResponseDto; -import com.asaas.apisdk.models.ApiPushNotificationConfigListResponseDto; -import com.asaas.apisdk.models.ApiPushNotificationConfigSaveRequestDto; -import com.asaas.apisdk.models.ApiPushNotificationConfigUpdateRequestDto; +import com.asaas.apisdk.models.ErrorResponseDto; import com.asaas.apisdk.models.ListWebhooksParameters; +import com.asaas.apisdk.models.WebhookConfigDeleteResponseDto; +import com.asaas.apisdk.models.WebhookConfigGetResponseDto; +import com.asaas.apisdk.models.WebhookConfigListResponseDto; +import com.asaas.apisdk.models.WebhookConfigSaveRequestDto; +import com.asaas.apisdk.models.WebhookConfigUpdateRequestDto; import com.asaas.apisdk.validation.ViolationAggregator; import com.asaas.apisdk.validation.exceptions.ValidationException; import com.asaas.apisdk.validation.validators.modelValidators.ListWebhooksParametersValidator; @@ -39,9 +39,9 @@ public WebhookService(@NonNull OkHttpClient httpClient, AsaasSdkConfig config) { /** * List Webhooks * - * @return response of {@code ApiPushNotificationConfigListResponseDto} + * @return response of {@code WebhookConfigListResponseDto} */ - public ApiPushNotificationConfigListResponseDto listWebhooks() throws ApiError, ValidationException { + public WebhookConfigListResponseDto listWebhooks() throws ApiError, ValidationException { return this.listWebhooks(ListWebhooksParameters.builder().build()); } @@ -49,23 +49,22 @@ public ApiPushNotificationConfigListResponseDto listWebhooks() throws ApiError, * List Webhooks * * @param requestParameters {@link ListWebhooksParameters} Request Parameters Object - * @return response of {@code ApiPushNotificationConfigListResponseDto} + * @return response of {@code WebhookConfigListResponseDto} */ - public ApiPushNotificationConfigListResponseDto listWebhooks(@NonNull ListWebhooksParameters requestParameters) + public WebhookConfigListResponseDto listWebhooks(@NonNull ListWebhooksParameters requestParameters) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListWebhooksRequest(requestParameters); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * List Webhooks * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listWebhooksAsync() - throws ApiError, ValidationException { + public CompletableFuture listWebhooksAsync() throws ApiError, ValidationException { return this.listWebhooksAsync(ListWebhooksParameters.builder().build()); } @@ -73,16 +72,16 @@ public CompletableFuture listWebhooksA * List Webhooks * * @param requestParameters {@link ListWebhooksParameters} Request Parameters Object - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture listWebhooksAsync( + public CompletableFuture listWebhooksAsync( @NonNull ListWebhooksParameters requestParameters ) throws ApiError, ValidationException { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildListWebhooksRequest(requestParameters); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -105,63 +104,60 @@ private Request buildListWebhooksRequest(@NonNull ListWebhooksParameters request /** * Create new Webhook * - * @return response of {@code ApiPushNotificationConfigGetResponseDto} + * @return response of {@code WebhookConfigGetResponseDto} */ - public ApiPushNotificationConfigGetResponseDto createNewWebhook() throws ApiError { - return this.createNewWebhook(ApiPushNotificationConfigSaveRequestDto.builder().build()); + public WebhookConfigGetResponseDto createNewWebhook() throws ApiError { + return this.createNewWebhook(WebhookConfigSaveRequestDto.builder().build()); } /** * Create new Webhook * - * @param apiPushNotificationConfigSaveRequestDto {@link ApiPushNotificationConfigSaveRequestDto} Request Body - * @return response of {@code ApiPushNotificationConfigGetResponseDto} + * @param webhookConfigSaveRequestDto {@link WebhookConfigSaveRequestDto} Request Body + * @return response of {@code WebhookConfigGetResponseDto} */ - public ApiPushNotificationConfigGetResponseDto createNewWebhook( - @NonNull ApiPushNotificationConfigSaveRequestDto apiPushNotificationConfigSaveRequestDto - ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewWebhookRequest(apiPushNotificationConfigSaveRequestDto); + public WebhookConfigGetResponseDto createNewWebhook(@NonNull WebhookConfigSaveRequestDto webhookConfigSaveRequestDto) + throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewWebhookRequest(webhookConfigSaveRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Create new Webhook * - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewWebhookAsync() throws ApiError { - return this.createNewWebhookAsync(ApiPushNotificationConfigSaveRequestDto.builder().build()); + public CompletableFuture createNewWebhookAsync() throws ApiError { + return this.createNewWebhookAsync(WebhookConfigSaveRequestDto.builder().build()); } /** * Create new Webhook * - * @param apiPushNotificationConfigSaveRequestDto {@link ApiPushNotificationConfigSaveRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param webhookConfigSaveRequestDto {@link WebhookConfigSaveRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture createNewWebhookAsync( - @NonNull ApiPushNotificationConfigSaveRequestDto apiPushNotificationConfigSaveRequestDto + public CompletableFuture createNewWebhookAsync( + @NonNull WebhookConfigSaveRequestDto webhookConfigSaveRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildCreateNewWebhookRequest(apiPushNotificationConfigSaveRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildCreateNewWebhookRequest(webhookConfigSaveRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } - private Request buildCreateNewWebhookRequest( - @NonNull ApiPushNotificationConfigSaveRequestDto apiPushNotificationConfigSaveRequestDto - ) { + private Request buildCreateNewWebhookRequest(@NonNull WebhookConfigSaveRequestDto webhookConfigSaveRequestDto) { return new RequestBuilder( HttpMethod.POST, Optional.ofNullable(this.config.getBaseUrl()).orElse(Environment.DEFAULT.getUrl()), "v3/webhooks" ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) - .setJsonContent(apiPushNotificationConfigSaveRequestDto) + .setJsonContent(webhookConfigSaveRequestDto) .build(); } @@ -169,28 +165,28 @@ private Request buildCreateNewWebhookRequest( * Retrieve a single Webhook * * @param id String Unique Webhook Identifier - * @return response of {@code ApiPushNotificationConfigGetResponseDto} + * @return response of {@code WebhookConfigGetResponseDto} */ - public ApiPushNotificationConfigGetResponseDto retrieveASingleWebhook(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public WebhookConfigGetResponseDto retrieveASingleWebhook(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleWebhookRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Retrieve a single Webhook * * @param id String Unique Webhook Identifier - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture retrieveASingleWebhookAsync(@NonNull String id) + public CompletableFuture retrieveASingleWebhookAsync(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRetrieveASingleWebhookRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } @@ -209,41 +205,41 @@ private Request buildRetrieveASingleWebhookRequest(@NonNull String id) { * Update Existing Webhook * * @param id String Unique Webhook Identifier - * @param apiPushNotificationConfigUpdateRequestDto {@link ApiPushNotificationConfigUpdateRequestDto} Request Body - * @return response of {@code ApiPushNotificationConfigGetResponseDto} + * @param webhookConfigUpdateRequestDto {@link WebhookConfigUpdateRequestDto} Request Body + * @return response of {@code WebhookConfigGetResponseDto} */ - public ApiPushNotificationConfigGetResponseDto updateExistingWebhook( + public WebhookConfigGetResponseDto updateExistingWebhook( @NonNull String id, - @NonNull ApiPushNotificationConfigUpdateRequestDto apiPushNotificationConfigUpdateRequestDto + @NonNull WebhookConfigUpdateRequestDto webhookConfigUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingWebhookRequest(id, apiPushNotificationConfigUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingWebhookRequest(id, webhookConfigUpdateRequestDto); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Update Existing Webhook * * @param id String Unique Webhook Identifier - * @param apiPushNotificationConfigUpdateRequestDto {@link ApiPushNotificationConfigUpdateRequestDto} Request Body - * @return response of {@code CompletableFuture} + * @param webhookConfigUpdateRequestDto {@link WebhookConfigUpdateRequestDto} Request Body + * @return response of {@code CompletableFuture} */ - public CompletableFuture updateExistingWebhookAsync( + public CompletableFuture updateExistingWebhookAsync( @NonNull String id, - @NonNull ApiPushNotificationConfigUpdateRequestDto apiPushNotificationConfigUpdateRequestDto + @NonNull WebhookConfigUpdateRequestDto webhookConfigUpdateRequestDto ) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); - Request request = this.buildUpdateExistingWebhookRequest(id, apiPushNotificationConfigUpdateRequestDto); + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); + Request request = this.buildUpdateExistingWebhookRequest(id, webhookConfigUpdateRequestDto); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } private Request buildUpdateExistingWebhookRequest( @NonNull String id, - @NonNull ApiPushNotificationConfigUpdateRequestDto apiPushNotificationConfigUpdateRequestDto + @NonNull WebhookConfigUpdateRequestDto webhookConfigUpdateRequestDto ) { return new RequestBuilder( HttpMethod.PUT, @@ -252,7 +248,7 @@ private Request buildUpdateExistingWebhookRequest( ) .setApiKeyAuth(this.config.getApiKeyAuthConfig()) .setPathParameter("id", id) - .setJsonContent(apiPushNotificationConfigUpdateRequestDto) + .setJsonContent(webhookConfigUpdateRequestDto) .build(); } @@ -260,28 +256,27 @@ private Request buildUpdateExistingWebhookRequest( * Remove Webhook * * @param id String Unique Webhook Identifier - * @return response of {@code ApiPushNotificationConfigDeleteResponseDto} + * @return response of {@code WebhookConfigDeleteResponseDto} */ - public ApiPushNotificationConfigDeleteResponseDto removeWebhook(@NonNull String id) throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public WebhookConfigDeleteResponseDto removeWebhook(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveWebhookRequest(id); Response response = this.execute(request); - return ModelConverter.convert(response, new TypeReference() {}); + return ModelConverter.convert(response, new TypeReference() {}); } /** * Remove Webhook * * @param id String Unique Webhook Identifier - * @return response of {@code CompletableFuture} + * @return response of {@code CompletableFuture} */ - public CompletableFuture removeWebhookAsync(@NonNull String id) - throws ApiError { - this.addErrorMapping(400, ApiErrorResponseDto.class, ApiErrorResponseDtoException.class); + public CompletableFuture removeWebhookAsync(@NonNull String id) throws ApiError { + this.addErrorMapping(400, ErrorResponseDto.class, ErrorResponseDtoException.class); Request request = this.buildRemoveWebhookRequest(id); CompletableFuture futureResponse = this.executeAsync(request); return futureResponse.thenApplyAsync(response -> - ModelConverter.convert(response, new TypeReference() {}) + ModelConverter.convert(response, new TypeReference() {}) ); } diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionInstallmentDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionInstallmentDtoValidator.java deleted file mode 100644 index 94b5662..0000000 --- a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionInstallmentDtoValidator.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.validation.validators.modelValidators; - -import com.asaas.apisdk.models.ApiCheckoutSessionInstallmentDto; -import com.asaas.apisdk.validation.Violation; -import com.asaas.apisdk.validation.ViolationAggregator; -import com.asaas.apisdk.validation.validators.NumericValidator; - -public class ApiCheckoutSessionInstallmentDtoValidator - extends AbstractModelValidator { - - public ApiCheckoutSessionInstallmentDtoValidator(String fieldName) { - super(fieldName); - } - - public ApiCheckoutSessionInstallmentDtoValidator() {} - - @Override - protected Violation[] validateModel(ApiCheckoutSessionInstallmentDto apiCheckoutSessionInstallmentDto) { - return new ViolationAggregator() - .add( - new NumericValidator("maxInstallmentCount") - .min(1L) - .max(21L) - .optional() - .validate(apiCheckoutSessionInstallmentDto.getMaxInstallmentCount()) - ) - .aggregate(); - } -} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionItemsDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionItemsDtoValidator.java deleted file mode 100644 index a639c48..0000000 --- a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionItemsDtoValidator.java +++ /dev/null @@ -1,30 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.validation.validators.modelValidators; - -import com.asaas.apisdk.models.ApiCheckoutSessionItemsDto; -import com.asaas.apisdk.validation.Violation; -import com.asaas.apisdk.validation.ViolationAggregator; -import com.asaas.apisdk.validation.validators.StringValidator; - -public class ApiCheckoutSessionItemsDtoValidator extends AbstractModelValidator { - - public ApiCheckoutSessionItemsDtoValidator(String fieldName) { - super(fieldName); - } - - public ApiCheckoutSessionItemsDtoValidator() {} - - @Override - protected Violation[] validateModel(ApiCheckoutSessionItemsDto apiCheckoutSessionItemsDto) { - return new ViolationAggregator() - .add(new StringValidator("name").maxLength(30).required().validate(apiCheckoutSessionItemsDto.getName())) - .add( - new StringValidator("description") - .maxLength(150) - .optional() - .validate(apiCheckoutSessionItemsDto.getDescription()) - ) - .aggregate(); - } -} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionResponseDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionResponseDtoValidator.java deleted file mode 100644 index ce06927..0000000 --- a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionResponseDtoValidator.java +++ /dev/null @@ -1,35 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.validation.validators.modelValidators; - -import com.asaas.apisdk.models.ApiCheckoutSessionResponseDto; -import com.asaas.apisdk.validation.Violation; -import com.asaas.apisdk.validation.ViolationAggregator; -import com.asaas.apisdk.validation.validators.NumericValidator; - -public class ApiCheckoutSessionResponseDtoValidator extends AbstractModelValidator { - - public ApiCheckoutSessionResponseDtoValidator(String fieldName) { - super(fieldName); - } - - public ApiCheckoutSessionResponseDtoValidator() {} - - @Override - protected Violation[] validateModel(ApiCheckoutSessionResponseDto apiCheckoutSessionResponseDto) { - return new ViolationAggregator() - .add( - new NumericValidator("minutesToExpire") - .min(10L) - .max(1440L) - .optional() - .validate(apiCheckoutSessionResponseDto.getMinutesToExpire()) - ) - .add( - new ApiCheckoutSessionInstallmentDtoValidator("installment") - .optional() - .validate(apiCheckoutSessionResponseDto.getInstallment()) - ) - .aggregate(); - } -} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionSaveRequestDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionSaveRequestDtoValidator.java deleted file mode 100644 index 8f0101a..0000000 --- a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionSaveRequestDtoValidator.java +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.validation.validators.modelValidators; - -import com.asaas.apisdk.models.ApiCheckoutSessionSaveRequestDto; -import com.asaas.apisdk.validation.Violation; -import com.asaas.apisdk.validation.ViolationAggregator; -import com.asaas.apisdk.validation.validators.NumericValidator; - -public class ApiCheckoutSessionSaveRequestDtoValidator - extends AbstractModelValidator { - - public ApiCheckoutSessionSaveRequestDtoValidator(String fieldName) { - super(fieldName); - } - - public ApiCheckoutSessionSaveRequestDtoValidator() {} - - @Override - protected Violation[] validateModel(ApiCheckoutSessionSaveRequestDto apiCheckoutSessionSaveRequestDto) { - return new ViolationAggregator() - .add( - new NumericValidator("minutesToExpire") - .min(10L) - .max(1440L) - .optional() - .validate(apiCheckoutSessionSaveRequestDto.getMinutesToExpire()) - ) - .add( - new ApiCheckoutSessionInstallmentDtoValidator("installment") - .optional() - .validate(apiCheckoutSessionSaveRequestDto.getInstallment()) - ) - .aggregate(); - } -} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiPixQrCodeSaveRequestDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiPixQrCodeSaveRequestDtoValidator.java deleted file mode 100644 index f5e4235..0000000 --- a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiPixQrCodeSaveRequestDtoValidator.java +++ /dev/null @@ -1,29 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.validation.validators.modelValidators; - -import com.asaas.apisdk.models.ApiPixQrCodeSaveRequestDto; -import com.asaas.apisdk.validation.Violation; -import com.asaas.apisdk.validation.ViolationAggregator; -import com.asaas.apisdk.validation.validators.StringValidator; - -public class ApiPixQrCodeSaveRequestDtoValidator extends AbstractModelValidator { - - public ApiPixQrCodeSaveRequestDtoValidator(String fieldName) { - super(fieldName); - } - - public ApiPixQrCodeSaveRequestDtoValidator() {} - - @Override - protected Violation[] validateModel(ApiPixQrCodeSaveRequestDto apiPixQrCodeSaveRequestDto) { - return new ViolationAggregator() - .add( - new StringValidator("externalReference") - .maxLength(100) - .optional() - .validate(apiPixQrCodeSaveRequestDto.getExternalReference()) - ) - .aggregate(); - } -} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiTransferRecurringSaveRequestDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiTransferRecurringSaveRequestDtoValidator.java deleted file mode 100644 index 3dd0d0a..0000000 --- a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiTransferRecurringSaveRequestDtoValidator.java +++ /dev/null @@ -1,31 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.validation.validators.modelValidators; - -import com.asaas.apisdk.models.ApiTransferRecurringSaveRequestDto; -import com.asaas.apisdk.validation.Violation; -import com.asaas.apisdk.validation.ViolationAggregator; -import com.asaas.apisdk.validation.validators.NumericValidator; - -public class ApiTransferRecurringSaveRequestDtoValidator - extends AbstractModelValidator { - - public ApiTransferRecurringSaveRequestDtoValidator(String fieldName) { - super(fieldName); - } - - public ApiTransferRecurringSaveRequestDtoValidator() {} - - @Override - protected Violation[] validateModel(ApiTransferRecurringSaveRequestDto apiTransferRecurringSaveRequestDto) { - return new ViolationAggregator() - .add( - new NumericValidator("quantity") - .min(1L) - .max(51L) - .optional() - .validate(apiTransferRecurringSaveRequestDto.getQuantity()) - ) - .aggregate(); - } -} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiTransferSaveRequestDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiTransferSaveRequestDtoValidator.java deleted file mode 100644 index edd045c..0000000 --- a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiTransferSaveRequestDtoValidator.java +++ /dev/null @@ -1,27 +0,0 @@ -// This file was generated by liblab | https://liblab.com/ - -package com.asaas.apisdk.validation.validators.modelValidators; - -import com.asaas.apisdk.models.ApiTransferSaveRequestDto; -import com.asaas.apisdk.validation.Violation; -import com.asaas.apisdk.validation.ViolationAggregator; - -public class ApiTransferSaveRequestDtoValidator extends AbstractModelValidator { - - public ApiTransferSaveRequestDtoValidator(String fieldName) { - super(fieldName); - } - - public ApiTransferSaveRequestDtoValidator() {} - - @Override - protected Violation[] validateModel(ApiTransferSaveRequestDto apiTransferSaveRequestDto) { - return new ViolationAggregator() - .add( - new ApiTransferRecurringSaveRequestDtoValidator("recurring") - .optional() - .validate(apiTransferSaveRequestDto.getRecurring()) - ) - .aggregate(); - } -} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionInstallmentDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionInstallmentDtoValidator.java new file mode 100644 index 0000000..270d1db --- /dev/null +++ b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionInstallmentDtoValidator.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.validation.validators.modelValidators; + +import com.asaas.apisdk.models.CheckoutSessionInstallmentDto; +import com.asaas.apisdk.validation.Violation; +import com.asaas.apisdk.validation.ViolationAggregator; +import com.asaas.apisdk.validation.validators.NumericValidator; + +public class CheckoutSessionInstallmentDtoValidator extends AbstractModelValidator { + + public CheckoutSessionInstallmentDtoValidator(String fieldName) { + super(fieldName); + } + + public CheckoutSessionInstallmentDtoValidator() {} + + @Override + protected Violation[] validateModel(CheckoutSessionInstallmentDto checkoutSessionInstallmentDto) { + return new ViolationAggregator() + .add( + new NumericValidator("maxInstallmentCount") + .min(1L) + .max(21L) + .optional() + .validate(checkoutSessionInstallmentDto.getMaxInstallmentCount()) + ) + .aggregate(); + } +} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionItemsDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionItemsDtoValidator.java new file mode 100644 index 0000000..9f8bb81 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionItemsDtoValidator.java @@ -0,0 +1,27 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.validation.validators.modelValidators; + +import com.asaas.apisdk.models.CheckoutSessionItemsDto; +import com.asaas.apisdk.validation.Violation; +import com.asaas.apisdk.validation.ViolationAggregator; +import com.asaas.apisdk.validation.validators.StringValidator; + +public class CheckoutSessionItemsDtoValidator extends AbstractModelValidator { + + public CheckoutSessionItemsDtoValidator(String fieldName) { + super(fieldName); + } + + public CheckoutSessionItemsDtoValidator() {} + + @Override + protected Violation[] validateModel(CheckoutSessionItemsDto checkoutSessionItemsDto) { + return new ViolationAggregator() + .add(new StringValidator("name").maxLength(30).required().validate(checkoutSessionItemsDto.getName())) + .add( + new StringValidator("description").maxLength(150).optional().validate(checkoutSessionItemsDto.getDescription()) + ) + .aggregate(); + } +} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionResponseDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionResponseDtoValidator.java new file mode 100644 index 0000000..81b3cfa --- /dev/null +++ b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionResponseDtoValidator.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.validation.validators.modelValidators; + +import com.asaas.apisdk.models.CheckoutSessionResponseDto; +import com.asaas.apisdk.validation.Violation; +import com.asaas.apisdk.validation.ViolationAggregator; +import com.asaas.apisdk.validation.validators.NumericValidator; + +public class CheckoutSessionResponseDtoValidator extends AbstractModelValidator { + + public CheckoutSessionResponseDtoValidator(String fieldName) { + super(fieldName); + } + + public CheckoutSessionResponseDtoValidator() {} + + @Override + protected Violation[] validateModel(CheckoutSessionResponseDto checkoutSessionResponseDto) { + return new ViolationAggregator() + .add( + new NumericValidator("minutesToExpire") + .min(10L) + .max(1440L) + .optional() + .validate(checkoutSessionResponseDto.getMinutesToExpire()) + ) + .add( + new CheckoutSessionInstallmentDtoValidator("installment") + .optional() + .validate(checkoutSessionResponseDto.getInstallment()) + ) + .aggregate(); + } +} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionSaveRequestDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionSaveRequestDtoValidator.java new file mode 100644 index 0000000..014fa8e --- /dev/null +++ b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionSaveRequestDtoValidator.java @@ -0,0 +1,35 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.validation.validators.modelValidators; + +import com.asaas.apisdk.models.CheckoutSessionSaveRequestDto; +import com.asaas.apisdk.validation.Violation; +import com.asaas.apisdk.validation.ViolationAggregator; +import com.asaas.apisdk.validation.validators.NumericValidator; + +public class CheckoutSessionSaveRequestDtoValidator extends AbstractModelValidator { + + public CheckoutSessionSaveRequestDtoValidator(String fieldName) { + super(fieldName); + } + + public CheckoutSessionSaveRequestDtoValidator() {} + + @Override + protected Violation[] validateModel(CheckoutSessionSaveRequestDto checkoutSessionSaveRequestDto) { + return new ViolationAggregator() + .add( + new NumericValidator("minutesToExpire") + .min(10L) + .max(1440L) + .optional() + .validate(checkoutSessionSaveRequestDto.getMinutesToExpire()) + ) + .add( + new CheckoutSessionInstallmentDtoValidator("installment") + .optional() + .validate(checkoutSessionSaveRequestDto.getInstallment()) + ) + .aggregate(); + } +} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/PixQrCodeSaveRequestDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/PixQrCodeSaveRequestDtoValidator.java new file mode 100644 index 0000000..e59aa3f --- /dev/null +++ b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/PixQrCodeSaveRequestDtoValidator.java @@ -0,0 +1,29 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.validation.validators.modelValidators; + +import com.asaas.apisdk.models.PixQrCodeSaveRequestDto; +import com.asaas.apisdk.validation.Violation; +import com.asaas.apisdk.validation.ViolationAggregator; +import com.asaas.apisdk.validation.validators.StringValidator; + +public class PixQrCodeSaveRequestDtoValidator extends AbstractModelValidator { + + public PixQrCodeSaveRequestDtoValidator(String fieldName) { + super(fieldName); + } + + public PixQrCodeSaveRequestDtoValidator() {} + + @Override + protected Violation[] validateModel(PixQrCodeSaveRequestDto pixQrCodeSaveRequestDto) { + return new ViolationAggregator() + .add( + new StringValidator("externalReference") + .maxLength(100) + .optional() + .validate(pixQrCodeSaveRequestDto.getExternalReference()) + ) + .aggregate(); + } +} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/TransferRecurringSaveRequestDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/TransferRecurringSaveRequestDtoValidator.java new file mode 100644 index 0000000..2b3b3c4 --- /dev/null +++ b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/TransferRecurringSaveRequestDtoValidator.java @@ -0,0 +1,30 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.validation.validators.modelValidators; + +import com.asaas.apisdk.models.TransferRecurringSaveRequestDto; +import com.asaas.apisdk.validation.Violation; +import com.asaas.apisdk.validation.ViolationAggregator; +import com.asaas.apisdk.validation.validators.NumericValidator; + +public class TransferRecurringSaveRequestDtoValidator extends AbstractModelValidator { + + public TransferRecurringSaveRequestDtoValidator(String fieldName) { + super(fieldName); + } + + public TransferRecurringSaveRequestDtoValidator() {} + + @Override + protected Violation[] validateModel(TransferRecurringSaveRequestDto transferRecurringSaveRequestDto) { + return new ViolationAggregator() + .add( + new NumericValidator("quantity") + .min(1L) + .max(51L) + .optional() + .validate(transferRecurringSaveRequestDto.getQuantity()) + ) + .aggregate(); + } +} diff --git a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/TransferSaveRequestDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/TransferSaveRequestDtoValidator.java new file mode 100644 index 0000000..948e5cc --- /dev/null +++ b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/TransferSaveRequestDtoValidator.java @@ -0,0 +1,27 @@ +// This file was generated by liblab | https://liblab.com/ + +package com.asaas.apisdk.validation.validators.modelValidators; + +import com.asaas.apisdk.models.TransferSaveRequestDto; +import com.asaas.apisdk.validation.Violation; +import com.asaas.apisdk.validation.ViolationAggregator; + +public class TransferSaveRequestDtoValidator extends AbstractModelValidator { + + public TransferSaveRequestDtoValidator(String fieldName) { + super(fieldName); + } + + public TransferSaveRequestDtoValidator() {} + + @Override + protected Violation[] validateModel(TransferSaveRequestDto transferSaveRequestDto) { + return new ViolationAggregator() + .add( + new TransferRecurringSaveRequestDtoValidator("recurring") + .optional() + .validate(transferSaveRequestDto.getRecurring()) + ) + .aggregate(); + } +}