From f5ebf46737f01f6d750e6589ac31fd97b2d336ad Mon Sep 17 00:00:00 2001 From: asaasdev <15790575+DouglasGiovanella@users.noreply.github.com> Date: Tue, 1 Jul 2025 19:49:09 +0000 Subject: [PATCH] liblab SDK update for version v1.0.2 --- .env.example | 2 + .manifest.json | 1665 +++++++++-------- README.md | 904 ++++----- ...md => AccountDocumentDeleteResponseDto.md} | 2 +- ...cumentGetResponseAccountDocumentStatus.md} | 2 +- .../models/AccountDocumentGetResponseDto.md | 10 + ...mentGroupResponseAccountDocumentStatus.md} | 2 +- ...cumentGroupResponseAccountDocumentType.md} | 2 +- .../models/AccountDocumentGroupResponseDto.md | 19 + ...eResponseAccountDocumentResponsibleType.md | 22 + .../AccountDocumentResponsibleResponseDto.md | 12 + ...DocumentSaveRequestAccountDocumentType.md} | 2 +- .../models/AccountDocumentSaveRequestDto.md | 10 + .../models/AccountDocumentShowResponseDto.md | 10 + ....md => AccountDocumentUpdateRequestDto.md} | 2 +- ...pe.md => AccountGetResponseCompanyType.md} | 2 +- documentation/models/AccountGetResponseDto.md | 32 + ...ype.md => AccountGetResponsePersonType.md} | 2 +- documentation/models/AccountInfoCityDto.md | 17 + ...stCityState.md => AccountInfoCityState.md} | 2 +- ...nfoCommercialInfoExpirationResponseDto.md} | 4 +- ...d => AccountInfoGetResponseCompanyType.md} | 2 +- .../models/AccountInfoGetResponseDto.md | 30 + ...md => AccountInfoGetResponsePersonType.md} | 2 +- ...tus.md => AccountInfoGetResponseStatus.md} | 2 +- ...d => AccountInfoSaveRequestCompanyType.md} | 2 +- .../models/AccountInfoSaveRequestDto.md | 23 + ...md => AccountInfoSaveRequestPersonType.md} | 2 +- ...sponseDto.md => AccountListResponseDto.md} | 4 +- ...mberResponseDto.md => AccountNumberDto.md} | 4 +- ...to.md => AccountPaymentEscrowConfigDto.md} | 2 +- ...eOrUpdatePaymentEscrowConfigRequestDto.md} | 2 +- ...pe.md => AccountSaveRequestCompanyType.md} | 2 +- documentation/models/AccountSaveRequestDto.md | 24 + .../models/AccountSaveResponseCompanyType.md | 14 + .../models/AccountSaveResponseDto.md | 33 + ...pe.md => AccountSaveResponsePersonType.md} | 2 +- ...nticipationConfigurationGetResponseDto.md} | 2 +- ...icipationConfigurationUpdateRequestDto.md} | 2 +- ...icipationGetResponseAnticipationStatus.md} | 2 +- .../models/AnticipationGetResponseDto.md | 22 + ...d => AnticipationLimitsInfoResponseDto.md} | 4 +- .../models/AnticipationLimitsResponseDto.md | 10 + ...icipationListRequestAnticipationStatus.md} | 2 +- .../models/AnticipationListResponseDto.md | 14 + ...stDto.md => AnticipationSaveRequestDto.md} | 2 +- ...o.md => AnticipationSimulateRequestDto.md} | 2 +- ....md => AnticipationSimulateResponseDto.md} | 2 +- .../ApiAccountDocumentGetResponseDto.md | 10 - .../ApiAccountDocumentGroupResponseDto.md | 17 - ...ountDocumentGroupResponsibleResponseDto.md | 10 - .../ApiAccountDocumentSaveRequestDto.md | 10 - .../ApiAccountDocumentShowResponseDto.md | 10 - documentation/models/ApiBillGetResponseDto.md | 26 - .../models/ApiBillSimulateResponseDto.md | 11 - .../ApiChargebackCreditCardResponseDto.md | 10 - .../models/ApiChargebackListResponseDto.md | 14 - .../ApiChargebackSaveDisputeResponseDto.md | 11 - .../models/ApiCheckoutSessionResponseDto.md | 17 - .../ApiCheckoutSessionSaveRequestDto.md | 17 - .../ApiCheckoutSessionSubscriptionDto.md | 11 - .../ApiCreditBureauReportListResponseDto.md | 14 - .../models/ApiCreditCardTokenizeRequestDto.md | 12 - .../ApiCreditCardTokenizeResponseDto.md | 11 - .../ApiCustomerAccountGetResponseDto.md | 32 - .../ApiCustomerAccountListResponseDto.md | 14 - ...iscalInfoListInvoiceNbsCodesResponseDto.md | 14 - ...calInfoListMunicipalServicesResponseDto.md | 14 - ...iscalInfoMunicipalOptionsGetResponseDto.md | 21 - .../models/ApiCustomerGetResponseDto.md | 32 - .../ApiCustomerInvoiceGetResponseDto.md | 33 - .../ApiCustomerInvoiceListResponseDto.md | 14 - .../ApiCustomerInvoiceSaveRequestDto.md | 22 - .../ApiCustomerInvoiceUpdateRequestDto.md | 16 - .../models/ApiCustomerSaveRequestDto.md | 24 - .../models/ApiCustomerSaveResponseDto.md | 33 - .../models/ApiCustomerUpdateRequestCityDto.md | 15 - .../ApiCustomerUpdateRequestGetResponseDto.md | 30 - ...omerUpdateRequestSaveRequestCompanyType.md | 14 - .../ApiCustomerUpdateRequestSaveRequestDto.md | 22 - documentation/models/ApiErrorResponseDto.md | 9 - .../ApiFinancialTransactionGetResponseDto.md | 23 - .../models/ApiInstallmentGetResponseDto.md | 27 - .../models/ApiInstallmentRefundResponseDto.md | 17 - .../models/ApiInstallmentSaveRequestDto.md | 22 - ...entSaveWithCreditCardRequestBillingType.md | 14 - ...InstallmentSaveWithCreditCardRequestDto.md | 27 - .../ApiInstallmentSplitGetResponseDto.md | 18 - .../ApiInstallmentUpdateSplitRequestDto.md | 9 - .../ApiInstallmentUpdateSplitResponseDto.md | 9 - ...ilePhoneRechargeFindProviderResponseDto.md | 10 - .../ApiMobilePhoneRechargeGetResponseDto.md | 14 - .../ApiMobilePhoneRechargeListResponseDto.md | 14 - ...iMyAccountGetAccountFeesAnticipationDto.md | 10 - .../ApiMyAccountGetAccountFeesPaymentDto.md | 12 - .../ApiMyAccountGetAccountFeesResponseDto.md | 14 - .../ApiMyAccountGetAccountFeesTransferDto.md | 11 - .../ApiMyAccountGetStatusResponseDto.md | 13 - .../ApiNotificationBatchUpdateRequestDto.md | 10 - .../ApiNotificationBatchUpdateResponseDto.md | 9 - .../models/ApiNotificationGetResponseDto.md | 21 - .../ApiPaymentBillingInfoResponseDto.md | 11 - .../ApiPaymentCampaignFileGetResponseDto.md | 11 - .../ApiPaymentCampaignFileListResponseDto.md | 14 - .../ApiPaymentCampaignGetResponseDto.md | 25 - .../ApiPaymentCampaignSaveRequestDto.md | 21 - .../ApiPaymentCampaignUpdateRequestDto.md | 21 - .../models/ApiPaymentChargebackResponseDto.md | 20 - .../ApiPaymentCheckoutConfigGetResponseDto.md | 16 - .../models/ApiPaymentCustodyGetResponseDto.md | 13 - documentation/models/ApiPaymentDiscountDto.md | 11 - .../ApiPaymentDocumentGetResponseDto.md | 15 - .../ApiPaymentDocumentListResponseDto.md | 14 - .../ApiPaymentDocumentSaveRequestDto.md | 11 - .../ApiPaymentDocumentUpdateRequestDto.md | 10 - .../ApiPaymentDunningCancelResponseDto.md | 24 - ...aymentDunningListHistoryResponseDataDto.md | 11 - ...ApiPaymentDunningListHistoryResponseDto.md | 14 - ...ntDunningListPartialPaymentsResponseDto.md | 14 - .../ApiPaymentDunningListResponseDto.md | 14 - ...mentsAvailableForDunningResponseDataDto.md | 15 - ...unningResponseDataTypeSimulationItemDto.md | 14 - ...ataTypeSimulationItemPaymentDunningType.md | 11 - ...gPaymentsAvailableForDunningResponseDto.md | 14 - ...iPaymentDunningSaveDocumentsResponseDto.md | 24 - .../models/ApiPaymentDunningSaveRequestDto.md | 21 - .../ApiPaymentDunningShowResponseDto.md | 24 - .../ApiPaymentDunningSimulateResponseDto.md | 11 - ...ngSimulateResponseTypeSimulationItemDto.md | 14 - ...nseTypeSimulationItemPaymentDunningType.md | 11 - .../models/ApiPaymentFineRequestDto.md | 10 - .../models/ApiPaymentGetResponseDto.md | 52 - .../models/ApiPaymentLeanGetResponseDto.md | 41 - ...aymentLeanSaveWithCreditCardResponseDto.md | 42 - .../ApiPaymentLimitsResponseCreationDto.md | 9 - .../models/ApiPaymentLimitsResponseDto.md | 9 - .../models/ApiPaymentListResponseDto.md | 14 - .../ApiPaymentPayWithCreditCardRequestDto.md | 11 - .../models/ApiPaymentRefundGetResponseDto.md | 16 - .../models/ApiPaymentRefundListResponseDto.md | 14 - .../models/ApiPaymentSaveRequestDto.md | 24 - ...iPaymentSaveWithCreditCardCreditCardDto.md | 11 - .../ApiPaymentSimulateBankSlipResponseDto.md | 11 - ...ApiPaymentSimulateCreditCardResponseDto.md | 12 - .../ApiPaymentSimulatePixResponseDto.md | 12 - .../models/ApiPaymentSimulateRequestDto.md | 11 - .../models/ApiPaymentSimulateResponseDto.md | 12 - .../models/ApiPaymentSplitGetResponseDto.md | 17 - .../models/ApiPaymentStatusResponseDto.md | 9 - .../models/ApiPaymentUpdateRequestDto.md | 20 - .../models/ApiPixAddressKeyGetResponseDto.md | 16 - .../models/ApiPixAddressKeyListResponseDto.md | 9 - .../models/ApiPixAddressKeySaveRequestDto.md | 9 - .../models/ApiPixQrCodeDecodeReceiverDto.md | 15 - .../models/ApiPixQrCodeDecodeResponseDto.md | 29 - ...ixTransactionExternalAccountResponseDto.md | 14 - .../models/ApiPixTransactionGetResponseDto.md | 36 - .../ApiPixTransactionListResponseDto.md | 14 - .../ApiPixTransactionQrCodeResponseDto.md | 16 - ...rringCheckoutScheduleGetItemResponseDto.md | 17 - ...RecurringCheckoutScheduleGetResponseDto.md | 18 - ...ingCheckoutScheduleListItemsResponseDto.md | 9 - .../models/ApiPixTransactionSaveRequestDto.md | 12 - ...ApiPushNotificationConfigGetResponseDto.md | 18 - ...piPushNotificationConfigListResponseDto.md | 14 - ...ApiPushNotificationConfigSaveRequestDto.md | 17 - ...iPushNotificationConfigUpdateRequestDto.md | 15 - ...ApiReceivableAnticipationGetResponseDto.md | 22 - ...ReceivableAnticipationLimitsResponseDto.md | 10 - ...piReceivableAnticipationListResponseDto.md | 14 - ...iSubscriptionConfigureInvoiceRequestDto.md | 18 - .../models/ApiSubscriptionGetResponseDto.md | 28 - ...SubscriptionInvoiceConfigGetResponseDto.md | 17 - ...bscriptionInvoiceConfigUpdateRequestDto.md | 14 - .../models/ApiSubscriptionSaveRequestDto.md | 22 - ...scriptionSaveWithCreditCardRequestCycle.md | 17 - ...ubscriptionSaveWithCreditCardRequestDto.md | 26 - ...criptionSaveWithCreditCardResponseCycle.md | 17 - ...bscriptionSaveWithCreditCardResponseDto.md | 29 - .../models/ApiSubscriptionSplitResponseDto.md | 15 - ...iSubscriptionUpdateCreditCardRequestDto.md | 12 - .../models/ApiSubscriptionUpdateRequestDto.md | 21 - .../ApiTransferBankAccountGetResponseDto.md | 17 - .../models/ApiTransferGetResponseDto.md | 27 - .../ApiTransferRecurringSaveRequestDto.md | 10 - ...TransferSaveInternalTransferResponseDto.md | 28 - .../models/ApiTransferSaveRequestDto.md | 17 - .../models/ApiWalletShowResponseDto.md | 14 - ...o.md => BankSlipBillingInfoResponseDto.md} | 4 +- ...Status.md => BillGetResponseBillStatus.md} | 2 +- documentation/models/BillGetResponseDto.md | 26 + documentation/models/BillListResponseDto.md | 14 + ...aveRequestDto.md => BillSaveRequestDto.md} | 2 +- ...=> BillSimulateBankSlipInfoResponseDto.md} | 4 +- ...equestDto.md => BillSimulateRequestDto.md} | 2 +- .../models/BillSimulateResponseDto.md | 11 + .../models/BillingStatisticsParameters.md | 26 +- ...ebackCreditCardResponseCreditCardBrand.md} | 3 +- .../models/ChargebackCreditCardResponseDto.md | 12 + ... ChargebackListRequestChargebackStatus.md} | 2 +- ...> ChargebackListRequestCreditCardBrand.md} | 3 +- ...nseDto.md => ChargebackListResponseDto.md} | 4 +- ....md => ChargebackSaveDisputeRequestDto.md} | 2 +- ...DisputeResponseChargebackDisputeStatus.md} | 2 +- .../ChargebackSaveDisputeResponseDto.md | 11 + ...ckDto.md => CheckoutSessionCallbackDto.md} | 4 +- ...o.md => CheckoutSessionCustomerDataDto.md} | 4 +- ...to.md => CheckoutSessionInstallmentDto.md} | 4 +- ...ItemsDto.md => CheckoutSessionItemsDto.md} | 4 +- .../CheckoutSessionResponseBillingType.md | 12 + .../CheckoutSessionResponseChargeType.md | 13 + .../models/CheckoutSessionResponseDto.md | 17 + .../CheckoutSessionSaveRequestBillingType.md | 12 + .../CheckoutSessionSaveRequestChargeType.md | 13 + .../models/CheckoutSessionSaveRequestDto.md | 17 + ...SplitDto.md => CheckoutSessionSplitDto.md} | 4 +- ...md => CheckoutSessionSubscriptionCycle.md} | 2 +- .../models/CheckoutSessionSubscriptionDto.md | 13 + ...md => CreditBureauReportGetResponseDto.md} | 2 +- ...d => CreditBureauReportListResponseDto.md} | 4 +- ...md => CreditBureauReportSaveRequestDto.md} | 2 +- ...o.md => CreditCardHolderInfoRequestDto.md} | 4 +- ...dRequestDto.md => CreditCardRequestDto.md} | 4 +- .../models/CreditCardTokenizeRequestDto.md | 12 + ...ditCardTokenizeResponseCreditCardBrand.md} | 3 +- .../models/CreditCardTokenizeResponseDto.md | 11 + ...nseDto.md => CustomerDeleteResponseDto.md} | 2 +- .../models/CustomerGetResponseDto.md | 32 + ...pe.md => CustomerGetResponsePersonType.md} | 2 +- .../models/CustomerListResponseDto.md | 14 + ...equestDto.md => CustomerSaveRequestDto.md} | 2 +- ...uestDto.md => CustomerUpdateRequestDto.md} | 2 +- documentation/models/ErrorResponseDto.md | 9 + ...onseItemDto.md => ErrorResponseItemDto.md} | 4 +- ...nseDto.md => FinanceBalanceResponseDto.md} | 2 +- ...GetPaymentStatisticsRequestBillingType.md} | 2 +- ...tPaymentStatisticsRequestPaymentStatus.md} | 2 +- ...FinanceGetPaymentStatisticsResponseDto.md} | 2 +- ...> FinanceGetSplitStatisticsResponseDto.md} | 2 +- .../FinancialTransactionGetResponseDto.md | 25 + ...ionGetResponseFinancialTransactionType.md} | 3 +- .../FinancialTransactionListResponseDto.md | 14 + ...onseDto.md => FiscalInfoGetResponseDto.md} | 2 +- ...InfoListInvoiceNbsCodesResponseDataDto.md} | 4 +- ...iscalInfoListInvoiceNbsCodesResponseDto.md | 14 + ...foListMunicipalServicesResponseDataDto.md} | 4 +- ...calInfoListMunicipalServicesResponseDto.md | 14 + ...iscalInfoMunicipalOptionsGetResponseDto.md | 21 + ...tionsGetResponseEnotasTipoAutenticacao.md} | 2 +- ...sNationalPortalTaxCalculationRegimeDto.md} | 4 +- ...foMunicipalOptionsSpecialTaxRegimesDto.md} | 4 +- ...uestDto.md => FiscalInfoSaveRequestDto.md} | 2 +- ...lInfoUpdateUseNationalPortalRequestDto.md} | 2 +- ...InfoUpdateUseNationalPortalResponseDto.md} | 2 +- ...Dto.md => InstallmentDeleteResponseDto.md} | 2 +- ...d => InstallmentGetResponseBillingType.md} | 2 +- .../models/InstallmentGetResponseDto.md | 27 + ...llmentListPaymentsRequestPaymentStatus.md} | 2 +- ...seDto.md => InstallmentListResponseDto.md} | 4 +- .../InstallmentPaymentBookResponseDto.md | 10 + .../models/InstallmentRefundResponseDto.md | 19 + ...lmentRefundResponsePaymentRefundStatus.md} | 2 +- ...d => InstallmentSaveRequestBillingType.md} | 2 +- .../models/InstallmentSaveRequestDto.md | 22 + ...entSaveWithCreditCardRequestBillingType.md | 14 + ...InstallmentSaveWithCreditCardRequestDto.md | 27 + .../models/InstallmentSplitGetResponseDto.md | 20 + ...ResponsePaymentSplitCancellationReason.md} | 2 +- ...mentSplitGetResponsePaymentSplitStatus.md} | 2 +- ...stDto.md => InstallmentSplitRequestDto.md} | 4 +- .../InstallmentUpdateSplitRequestDto.md | 9 + .../InstallmentUpdateSplitResponseDto.md | 9 + ...questDto.md => InvoiceCancelRequestDto.md} | 2 +- documentation/models/InvoiceGetResponseDto.md | 33 + ...toType.md => InvoiceGetResponseDtoType.md} | 2 +- ....md => InvoiceGetResponseInvoiceStatus.md} | 2 +- ....md => InvoiceListRequestInvoiceStatus.md} | 2 +- .../models/InvoiceListResponseDto.md | 14 + documentation/models/InvoiceSaveRequestDto.md | 22 + ...rInvoiceTaxesDto.md => InvoiceTaxesDto.md} | 4 +- .../models/InvoiceUpdateRequestDto.md | 16 + .../models/ListAnticipationsParameters.md | 14 +- .../models/ListChargebacksParameters.md | 20 +- ...nvoicesForSubscriptionChargesParameters.md | 18 +- .../models/ListInvoicesParameters.md | 22 +- documentation/models/ListKeysParameters.md | 12 +- .../models/ListPaidSplitsParameters.md | 20 +- .../models/ListPaymentDunningsParameters.md | 18 +- .../ListPaymentsOfAInstallmentParameters.md | 6 +- .../ListPaymentsOfASubscriptionParameters.md | 6 +- .../models/ListPaymentsParameters.md | 52 +- .../ListPaymentsWithSummaryDataParameters.md | 52 +- .../models/ListReceivedSplitsParameters.md | 20 +- .../models/ListRecurrencesParameters.md | 14 +- .../models/ListSubscriptionsParameters.md | 26 +- .../models/ListTransactionsParameters.md | 14 +- ...ilePhoneRechargeFindProviderResponseDto.md | 10 + ...eRechargeFindProviderResponseValuesDto.md} | 4 +- .../MobilePhoneRechargeGetResponseDto.md | 14 + ...geGetResponseMobilePhoneRechargeStatus.md} | 2 +- .../MobilePhoneRechargeListResponseDto.md | 14 + ...d => MobilePhoneRechargeSaveRequestDto.md} | 2 +- ... => MyAccountDisableAccountResponseDto.md} | 2 +- ...tGetAccountFeesAnticipationBankSlipDto.md} | 4 +- ...etAccountFeesAnticipationCreditCardDto.md} | 4 +- .../MyAccountGetAccountFeesAnticipationDto.md | 12 + ...untGetAccountFeesCreditBureauReportDto.md} | 4 +- ...d => MyAccountGetAccountFeesInvoiceDto.md} | 4 +- ...MyAccountGetAccountFeesNotificationDto.md} | 4 +- ...ccountGetAccountFeesPaymentBankSlipDto.md} | 4 +- ...ountGetAccountFeesPaymentCreditCardDto.md} | 4 +- ...countGetAccountFeesPaymentDebitCardDto.md} | 4 +- .../MyAccountGetAccountFeesPaymentDto.md | 14 + ...> MyAccountGetAccountFeesPaymentPixDto.md} | 4 +- .../MyAccountGetAccountFeesResponseDto.md | 14 + .../MyAccountGetAccountFeesTransferDto.md | 13 + ... MyAccountGetAccountFeesTransferPixDto.md} | 4 +- ... MyAccountGetAccountFeesTransferTedDto.md} | 4 +- ...> MyAccountGetAccountNumberResponseDto.md} | 2 +- .../models/MyAccountGetStatusResponseDto.md | 13 + ...md => MyAccountGetStatusResponseStatus.md} | 2 +- .../NotificationBatchUpdateRequestDto.md | 10 + .../NotificationBatchUpdateResponseDto.md | 9 + .../models/NotificationGetResponseDto.md | 23 + ...tificationGetResponseDtoScheduleOffset.md} | 2 +- ...tificationGetResponseNotificationEvent.md} | 2 +- .../models/NotificationListResponseDto.md | 14 + ...Dto.md => NotificationUpdateRequestDto.md} | 24 +- ...ficationUpdateRequestDtoScheduleOffset.md} | 2 +- ...md => PaymentBankSlipRefundResponseDto.md} | 2 +- .../models/PaymentBillingInfoResponseDto.md | 11 + ...estDto.md => PaymentCallbackRequestDto.md} | 4 +- ...rgebackResponseChargebackDisputeStatus.md} | 2 +- ...mentChargebackResponseChargebackReason.md} | 2 +- ...mentChargebackResponseChargebackStatus.md} | 2 +- .../models/PaymentChargebackResponseDto.md | 20 + .../PaymentCheckoutConfigGetResponseDto.md | 16 + ...utConfigGetResponseInvoiceConfigStatus.md} | 2 +- ...=> PaymentCheckoutConfigSaveRequestDto.md} | 2 +- ...onseDto.md => PaymentDeleteResponseDto.md} | 2 +- ...Type.md => PaymentDiscountDiscountType.md} | 2 +- documentation/models/PaymentDiscountDto.md | 13 + ...md => PaymentDocumentDeleteResponseDto.md} | 2 +- ...o.md => PaymentDocumentFileResponseDto.md} | 4 +- .../models/PaymentDocumentGetResponseDto.md | 15 + ...DocumentGetResponsePaymentDocumentType.md} | 2 +- ...o.md => PaymentDocumentListResponseDto.md} | 4 +- .../models/PaymentDocumentSaveRequestDto.md | 11 + ...DocumentSaveRequestPaymentDocumentType.md} | 2 +- .../models/PaymentDocumentUpdateRequestDto.md | 10 + ...cumentUpdateRequestPaymentDocumentType.md} | 2 +- .../models/PaymentDunningCancelResponseDto.md | 24 + ...ningCancelResponsePaymentDunningStatus.md} | 2 +- ...unningCancelResponsePaymentDunningType.md} | 2 +- ...aymentDunningListHistoryResponseDataDto.md | 13 + ...esponseDataPaymentDunningHistoryStatus.md} | 2 +- .../PaymentDunningListHistoryResponseDto.md | 14 + ...ningListPartialPaymentsResponseDataDto.md} | 4 +- ...ntDunningListPartialPaymentsResponseDto.md | 14 + ...DunningListRequestPaymentDunningStatus.md} | 2 +- ...ntDunningListRequestPaymentDunningType.md} | 2 +- ...to.md => PaymentDunningListResponseDto.md} | 4 +- ...lableForDunningResponseDataBillingType.md} | 2 +- ...mentsAvailableForDunningResponseDataDto.md | 17 + ...bleForDunningResponseDataPaymentStatus.md} | 2 +- ...unningResponseDataTypeSimulationItemDto.md | 16 + ...ataTypeSimulationItemPaymentDunningType.md | 11 + ...PaymentsAvailableForDunningResponseDto.md} | 4 +- ... PaymentDunningSaveDocumentsRequestDto.md} | 2 +- .../PaymentDunningSaveDocumentsResponseDto.md | 24 + ...eDocumentsResponsePaymentDunningStatus.md} | 2 +- ...aveDocumentsResponsePaymentDunningType.md} | 2 +- .../models/PaymentDunningSaveRequestDto.md | 21 + ...ntDunningSaveRequestPaymentDunningType.md} | 2 +- .../models/PaymentDunningShowResponseDto.md | 24 + ...unningShowResponsePaymentDunningStatus.md} | 2 +- ...tDunningShowResponsePaymentDunningType.md} | 2 +- .../PaymentDunningSimulateResponseDto.md | 11 + ...ngSimulateResponseTypeSimulationItemDto.md | 16 + ...nseTypeSimulationItemPaymentDunningType.md | 11 + .../models/PaymentEscrowGetResponseDto.md | 15 + ...owGetResponsePaymentEscrowFinishReason.md} | 2 +- ...ntEscrowGetResponsePaymentEscrowStatus.md} | 2 +- documentation/models/PaymentFineRequestDto.md | 12 + ...eType.md => PaymentFineRequestFineType.md} | 2 +- ...sponseDto.md => PaymentFineResponseDto.md} | 4 +- ...pe.md => PaymentGetResponseBillingType.md} | 2 +- documentation/models/PaymentGetResponseDto.md | 52 + ....md => PaymentGetResponsePaymentStatus.md} | 2 +- ... PaymentIdentificationFieldResponseDto.md} | 2 +- ...estDto.md => PaymentInterestRequestDto.md} | 4 +- ...seDto.md => PaymentInterestResponseDto.md} | 4 +- ...d => PaymentLeanGetResponseBillingType.md} | 2 +- .../models/PaymentLeanGetResponseDto.md | 41 + ...=> PaymentLeanGetResponsePaymentStatus.md} | 2 +- ...seDto.md => PaymentLeanListResponseDto.md} | 4 +- ...nSaveWithCreditCardResponseBillingType.md} | 2 +- ...aymentLeanSaveWithCreditCardResponseDto.md | 42 + ...aveWithCreditCardResponsePaymentStatus.md} | 2 +- ... PaymentLimitsResponseCreationDailyDto.md} | 4 +- .../PaymentLimitsResponseCreationDto.md | 11 + .../models/PaymentLimitsResponseDto.md | 9 + ...Dto.md => PaymentLinkDeleteResponseDto.md} | 2 +- ...md => PaymentLinkFileDeleteResponseDto.md} | 2 +- .../models/PaymentLinkFileGetResponseDto.md | 11 + ....md => PaymentLinkFileImageResponseDto.md} | 4 +- ...o.md => PaymentLinkFileListResponseDto.md} | 4 +- ...to.md => PaymentLinkFileSaveRequestDto.md} | 2 +- ...d => PaymentLinkGetResponseBillingType.md} | 2 +- ...md => PaymentLinkGetResponseChargeType.md} | 2 +- ...ycle.md => PaymentLinkGetResponseCycle.md} | 2 +- .../models/PaymentLinkGetResponseDto.md | 25 + .../models/PaymentLinkListResponseDto.md | 14 + ...d => PaymentLinkSaveRequestBillingType.md} | 2 +- ...md => PaymentLinkSaveRequestChargeType.md} | 2 +- ...ycle.md => PaymentLinkSaveRequestCycle.md} | 2 +- .../models/PaymentLinkSaveRequestDto.md | 21 + ...=> PaymentLinkUpdateRequestBillingType.md} | 2 +- ... => PaymentLinkUpdateRequestChargeType.md} | 2 +- ...le.md => PaymentLinkUpdateRequestCycle.md} | 2 +- .../models/PaymentLinkUpdateRequestDto.md | 21 + ...pe.md => PaymentListRequestBillingType.md} | 2 +- ....md => PaymentListRequestInvoiceStatus.md} | 2 +- ....md => PaymentListRequestPaymentStatus.md} | 2 +- .../models/PaymentListResponseDto.md | 14 + .../PaymentPayWithCreditCardRequestDto.md | 11 + ...eDto.md => PaymentPixQrCodeResponseDto.md} | 4 +- ...o.md => PaymentReceiveInCashRequestDto.md} | 2 +- .../models/PaymentRefundGetResponseDto.md | 18 + ...ntRefundGetResponsePaymentRefundStatus.md} | 2 +- .../models/PaymentRefundListResponseDto.md | 14 + ...questDto.md => PaymentRefundRequestDto.md} | 2 +- ....md => PaymentRefundedSplitResponseDto.md} | 4 +- ...pe.md => PaymentSaveRequestBillingType.md} | 2 +- documentation/models/PaymentSaveRequestDto.md | 24 + ...ithCreditCardCreditCardCreditCardBrand.md} | 3 +- .../PaymentSaveWithCreditCardCreditCardDto.md | 13 + ...ntSaveWithCreditCardRequestBillingType.md} | 2 +- ...=> PaymentSaveWithCreditCardRequestDto.md} | 48 +- .../PaymentSimulateBankSlipResponseDto.md | 13 + .../PaymentSimulateCreditCardResponseDto.md | 14 + ... PaymentSimulateInstallmentResponseDto.md} | 4 +- .../models/PaymentSimulatePixResponseDto.md | 14 + .../PaymentSimulateRequestBillingType.md | 19 + .../models/PaymentSimulateRequestDto.md | 11 + .../models/PaymentSimulateResponseDto.md | 12 + .../models/PaymentSplitGetResponseDto.md | 19 + ...ResponsePaymentSplitCancellationReason.md} | 2 +- ...mentSplitGetResponsePaymentSplitStatus.md} | 2 +- ...SplitListPaidRequestPaymentSplitStatus.md} | 2 +- ...tListReceivedRequestPaymentSplitStatus.md} | 2 +- .../models/PaymentSplitListResponseDto.md | 14 + ...equestDto.md => PaymentSplitRequestDto.md} | 4 +- .../models/PaymentStatusResponseDto.md | 9 + ... => PaymentStatusResponsePaymentStatus.md} | 2 +- ....md => PaymentUpdateRequestBillingType.md} | 2 +- .../models/PaymentUpdateRequestDto.md | 20 + ...to.md => PaymentViewingInfoResponseDto.md} | 2 +- .../models/PixAddressKeyGetResponseDto.md | 16 + ...dressKeyGetResponsePixAddressKeyStatus.md} | 2 +- ...AddressKeyGetResponsePixAddressKeyType.md} | 2 +- ...dressKeyListRequestPixAddressKeyStatus.md} | 2 +- .../models/PixAddressKeyListResponseDto.md | 9 + ...d => PixAddressKeyQrCodeGetResponseDto.md} | 4 +- .../models/PixAddressKeySaveRequestDto.md | 9 + ...AddressKeySaveRequestPixAddressKeyType.md} | 2 +- ...d => PixOriginalTransactionResponseDto.md} | 4 +- .../models/PixQrCodeDecodeReceiverDto.md | 17 + ...d => PixQrCodeDecodeReceiverPersonType.md} | 2 +- ... PixQrCodeDecodeReceiverPixAccountType.md} | 2 +- ...estDto.md => PixQrCodeDecodeRequestDto.md} | 2 +- .../models/PixQrCodeDecodeResponseDto.md | 29 + ...> PixQrCodeDecodeResponsePixQrCodeType.md} | 2 +- ...esponsePixTransactionCashValueFinality.md} | 2 +- ...DecodeResponsePixTransactionOriginType.md} | 2 +- ...seDto.md => PixQrCodeDeleteResponseDto.md} | 2 +- ...questDto.md => PixQrCodeSaveRequestDto.md} | 2 +- ...onseDto.md => PixQrCodeSaveResponseDto.md} | 2 +- ...RecurringTransactionExternalAccountDto.md} | 4 +- ...xRecurringTransactionGetItemResponseDto.md | 17 + ...ponsePixRecurringTransactionItemStatus.md} | 2 +- .../PixRecurringTransactionGetResponseDto.md | 18 + ...sponsePixRecurringTransactionFrequency.md} | 2 +- ...tResponsePixRecurringTransactionOrigin.md} | 2 +- ...tResponsePixRecurringTransactionStatus.md} | 2 +- ...PixRecurringTransactionListResponseDto.md} | 4 +- ...PixTokenBucketGetAddressKeyResponseDto.md} | 2 +- ...ixTransactionExternalAccountResponseDto.md | 16 + ...ternalAccountResponsePixAddressKeyType.md} | 2 +- .../models/PixTransactionGetResponseDto.md | 36 + ...ransactionGetResponsePixAddressKeyType.md} | 2 +- ...esponsePixTransactionCashValueFinality.md} | 2 +- ...ionGetResponsePixTransactionOriginType.md} | 2 +- ...sactionGetResponsePixTransactionStatus.md} | 2 +- ...ansactionGetResponsePixTransactionType.md} | 2 +- ...sactionListRequestPixTransactionStatus.md} | 2 +- ...ansactionListRequestPixTransactionType.md} | 2 +- ...to.md => PixTransactionListResponseDto.md} | 4 +- ...> PixTransactionQrCodePayerResponseDto.md} | 4 +- .../models/PixTransactionQrCodeResponseDto.md | 18 + ... => PixTransactionQrCodeSaveRequestDto.md} | 4 +- .../models/PixTransactionSaveRequestDto.md | 12 + ...rringPixTransactionListItemsResponseDto.md | 9 + ...stRequestPixRecurringTransactionStatus.md} | 2 +- .../SubscriptionConfigureInvoiceRequestDto.md | 18 + ...reInvoiceRequestDtoEffectiveDatePeriod.md} | 2 +- ...criptionDeleteInvoiceConfigResponseDto.md} | 2 +- ...to.md => SubscriptionDeleteResponseDto.md} | 2 +- ...riptionGetInvoicesRequestInvoiceStatus.md} | 2 +- ... => SubscriptionGetResponseBillingType.md} | 2 +- ...cle.md => SubscriptionGetResponseCycle.md} | 2 +- .../models/SubscriptionGetResponseDto.md | 28 + ...scriptionGetResponseSubscriptionStatus.md} | 2 +- ...SubscriptionInvoiceConfigGetResponseDto.md | 17 + ...bscriptionInvoiceConfigUpdateRequestDto.md | 14 + ...figUpdateRequestDtoEffectiveDatePeriod.md} | 2 +- ...iptionListPaymentsRequestPaymentStatus.md} | 2 +- ... => SubscriptionListRequestBillingType.md} | 2 +- ...scriptionListRequestSubscriptionStatus.md} | 2 +- .../models/SubscriptionListResponseDto.md | 14 + ... => SubscriptionSaveRequestBillingType.md} | 2 +- ...cle.md => SubscriptionSaveRequestCycle.md} | 2 +- .../models/SubscriptionSaveRequestDto.md | 22 + ...onSaveWithCreditCardRequestBillingType.md} | 2 +- ...scriptionSaveWithCreditCardRequestCycle.md | 17 + ...ubscriptionSaveWithCreditCardRequestDto.md | 26 + ...nSaveWithCreditCardResponseBillingType.md} | 2 +- ...criptionSaveWithCreditCardResponseCycle.md | 17 + ...bscriptionSaveWithCreditCardResponseDto.md | 29 + ...thCreditCardResponseSubscriptionStatus.md} | 2 +- ...tDto.md => SubscriptionSplitRequestDto.md} | 4 +- .../models/SubscriptionSplitResponseDto.md | 17 + ...esponseSubscriptionSplitDisabledReason.md} | 2 +- ...onSplitResponseSubscriptionSplitStatus.md} | 2 +- .../SubscriptionUpdateCreditCardRequestDto.md | 12 + ...> SubscriptionUpdateRequestBillingType.md} | 2 +- ...e.md => SubscriptionUpdateRequestCycle.md} | 2 +- .../models/SubscriptionUpdateRequestDto.md | 21 + ...riptionUpdateRequestSubscriptionStatus.md} | 2 +- .../TransferBankAccountGetResponseDto.md | 19 + ...rBankAccountSaveRequestBankAccountType.md} | 2 +- ...d => TransferBankAccountSaveRequestDto.md} | 28 +- ...seDto.md => TransferBankGetResponseDto.md} | 4 +- ...stDto.md => TransferBankSaveRequestDto.md} | 4 +- .../models/TransferGetResponseDto.md | 27 + ...oType.md => TransferGetResponseDtoType.md} | 2 +- ...d => TransferGetResponseTransferStatus.md} | 2 +- ....md => TransferGetResponseTransferType.md} | 2 +- .../models/TransferListResponseDto.md | 14 + .../models/TransferRecurringSaveRequestDto.md | 12 + ...uestRecurringCheckoutScheduleFrequency.md} | 2 +- ...TransferSaveInternalTransferAccountDto.md} | 4 +- ...TransferSaveInternalTransferRequestDto.md} | 2 +- ...TransferSaveInternalTransferResponseDto.md | 28 + ...ferSaveInternalTransferResponseDtoType.md} | 2 +- ...InternalTransferResponseTransferStatus.md} | 2 +- ...veInternalTransferResponseTransferType.md} | 2 +- .../models/TransferSaveRequestDto.md | 17 + ...> TransferSaveRequestPixAddressKeyType.md} | 2 +- ....md => TransferSaveRequestTransferType.md} | 2 +- ...ResponseDto.md => WalletGetResponseDto.md} | 4 +- documentation/models/WalletShowResponseDto.md | 14 + ...o.md => WebhookConfigDeleteResponseDto.md} | 2 +- .../models/WebhookConfigGetResponseDto.md | 18 + .../WebhookConfigGetResponseWebhookEvent.md | 100 + ...ebhookConfigGetResponseWebhookSendType.md} | 2 +- .../models/WebhookConfigListResponseDto.md | 14 + .../models/WebhookConfigSaveRequestDto.md | 19 + .../WebhookConfigSaveRequestWebhookEvent.md | 100 + ...ebhookConfigSaveRequestWebhookSendType.md} | 2 +- .../models/WebhookConfigUpdateRequestDto.md | 15 + .../WebhookConfigUpdateRequestWebhookEvent.md | 100 + ...hookConfigUpdateRequestWebhookSendType.md} | 2 +- .../services/AccountDocumentService.md | 136 +- documentation/services/AccountInfoService.md | 128 +- documentation/services/AnticipationService.md | 127 +- documentation/services/BillService.md | 59 +- documentation/services/ChargebackService.md | 48 +- documentation/services/CheckoutService.md | 68 +- .../services/CreditBureauReportService.md | 38 +- documentation/services/CreditCardService.md | 32 +- documentation/services/CustomerService.md | 69 +- .../services/EscrowAccountService.md | 6 +- documentation/services/FinanceService.md | 28 +- .../services/FinancialTransactionService.md | 8 +- documentation/services/FiscalInfoService.md | 77 +- documentation/services/InstallmentService.md | 194 +- documentation/services/InvoiceService.md | 98 +- .../services/MobilePhoneRechargeService.md | 50 +- documentation/services/NotificationService.md | 59 +- .../services/PaymentDocumentService.md | 75 +- .../services/PaymentDunningService.md | 118 +- documentation/services/PaymentLinkService.md | 156 +- .../services/PaymentRefundService.md | 12 +- documentation/services/PaymentService.md | 388 ++-- documentation/services/PaymentSplitService.md | 32 +- .../services/PaymentWithSummaryDataService.md | 242 +-- documentation/services/PixService.md | 74 +- .../services/PixTransactionService.md | 74 +- documentation/services/RecurringPixService.md | 42 +- .../services/SandboxActionsService.md | 12 +- documentation/services/SubaccountService.md | 101 +- documentation/services/SubscriptionService.md | 419 ++--- documentation/services/TransferService.md | 113 +- documentation/services/WebhookService.md | 114 +- examples/pom.xml | 2 +- examples/src/main/java/com/example/Main.java | 16 +- pom.xml | 2 +- .../ApiErrorResponseDtoException.java | 21 - .../exceptions/ErrorResponseDtoException.java | 21 + ... => AccountDocumentDeleteResponseDto.java} | 8 +- ...mentGetResponseAccountDocumentStatus.java} | 6 +- ...ava => AccountDocumentGetResponseDto.java} | 14 +- ...ntGroupResponseAccountDocumentStatus.java} | 6 +- ...mentGroupResponseAccountDocumentType.java} | 6 +- ...a => AccountDocumentGroupResponseDto.java} | 54 +- ...esponseAccountDocumentResponsibleType.java | 40 + ...ccountDocumentResponsibleResponseDto.java} | 22 +- ...cumentSaveRequestAccountDocumentType.java} | 6 +- ...ava => AccountDocumentSaveRequestDto.java} | 14 +- ...va => AccountDocumentShowResponseDto.java} | 14 +- ...a => AccountDocumentUpdateRequestDto.java} | 2 +- ...ava => AccountGetResponseCompanyType.java} | 6 +- ...nseDto.java => AccountGetResponseDto.java} | 84 +- ...java => AccountGetResponsePersonType.java} | 6 +- ...stCityDto.java => AccountInfoCityDto.java} | 27 +- ...tyState.java => AccountInfoCityState.java} | 6 +- ...oCommercialInfoExpirationResponseDto.java} | 11 +- ...=> AccountInfoGetResponseCompanyType.java} | 6 +- ...to.java => AccountInfoGetResponseDto.java} | 90 +- ... => AccountInfoGetResponsePersonType.java} | 6 +- ...java => AccountInfoGetResponseStatus.java} | 6 +- ...=> AccountInfoSaveRequestCompanyType.java} | 6 +- ...to.java => AccountInfoSaveRequestDto.java} | 67 +- .../AccountInfoSaveRequestPersonType.java | 30 + ...seDto.java => AccountListResponseDto.java} | 22 +- ...ntNumberDto.java => AccountNumberDto.java} | 13 +- ...ava => AccountPaymentEscrowConfigDto.java} | 8 +- ...rUpdatePaymentEscrowConfigRequestDto.java} | 8 +- ...ava => AccountSaveRequestCompanyType.java} | 6 +- ...estDto.java => AccountSaveRequestDto.java} | 30 +- .../AccountSaveResponseCompanyType.java | 32 + ...seDto.java => AccountSaveResponseDto.java} | 86 +- ...ava => AccountSaveResponsePersonType.java} | 6 +- ...icipationConfigurationGetResponseDto.java} | 6 +- ...ipationConfigurationUpdateRequestDto.java} | 6 +- ...ipationGetResponseAnticipationStatus.java} | 6 +- ...o.java => AnticipationGetResponseDto.java} | 41 +- ...=> AnticipationLimitsInfoResponseDto.java} | 11 +- .../models/AnticipationLimitsResponseDto.java | 64 + ...ipationListRequestAnticipationStatus.java} | 6 +- .../models/AnticipationListResponseDto.java | 141 ++ ...o.java => AnticipationSaveRequestDto.java} | 10 +- ...va => AnticipationSimulateRequestDto.java} | 8 +- ...a => AnticipationSimulateResponseDto.java} | 24 +- .../models/ApiCheckoutSessionResponseDto.java | 186 -- .../ApiCreditCardTokenizeRequestDto.java | 77 - ...calInfoListInvoiceNbsCodesResponseDto.java | 143 -- .../ApiCustomerInvoiceListResponseDto.java | 141 -- ...merUpdateRequestGetResponsePersonType.java | 30 - ...erUpdateRequestSaveRequestCompanyType.java | 32 - ...tSaveWithCreditCardRequestBillingType.java | 32 - ...ApiMobilePhoneRechargeListResponseDto.java | 141 -- ...yAccountGetAccountFeesAnticipationDto.java | 62 - .../ApiMyAccountGetAccountFeesPaymentDto.java | 92 - ...ApiMyAccountGetAccountFeesResponseDto.java | 124 -- .../ApiPaymentBillingInfoResponseDto.java | 74 - ...ApiPaymentCampaignFileListResponseDto.java | 141 -- .../ApiPaymentDocumentListResponseDto.java | 141 -- ...DunningListPartialPaymentsResponseDto.java | 143 -- ...aymentsAvailableForDunningResponseDto.java | 144 -- ...eTypeSimulationItemPaymentDunningType.java | 29 - ...ApiPaymentPayWithCreditCardRequestDto.java | 86 - .../ApiPaymentRefundListResponseDto.java | 141 -- .../ApiPixTransactionListResponseDto.java | 141 -- ...sponseRecurringCheckoutScheduleOrigin.java | 31 - ...urringCheckoutScheduleListResponseDto.java | 144 -- ...ceivableAnticipationLimitsResponseDto.java | 62 - ...ReceivableAnticipationListResponseDto.java | 141 -- ...riptionSaveWithCreditCardRequestCycle.java | 35 - ...iptionSaveWithCreditCardResponseCycle.java | 35 - ...ubscriptionUpdateCreditCardRequestDto.java | 93 - ...va => BankSlipBillingInfoResponseDto.java} | 17 +- ...us.java => BillGetResponseBillStatus.java} | 6 +- ...sponseDto.java => BillGetResponseDto.java} | 46 +- .../apisdk/models/BillListResponseDto.java | 141 ++ ...equestDto.java => BillSaveRequestDto.java} | 20 +- ... BillSimulateBankSlipInfoResponseDto.java} | 41 +- ...stDto.java => BillSimulateRequestDto.java} | 8 +- ...eDto.java => BillSimulateResponseDto.java} | 19 +- .../models/BillingStatisticsParameters.java | 16 +- ...ackCreditCardResponseCreditCardBrand.java} | 7 +- ...a => ChargebackCreditCardResponseDto.java} | 17 +- ...hargebackListRequestChargebackStatus.java} | 6 +- ...ChargebackListRequestCreditCardBrand.java} | 7 +- ...to.java => ChargebackListResponseDto.java} | 22 +- ...a => ChargebackSaveDisputeRequestDto.java} | 2 +- ...sputeResponseChargebackDisputeStatus.java} | 6 +- ... => ChargebackSaveDisputeResponseDto.java} | 18 +- ...o.java => CheckoutSessionCallbackDto.java} | 5 +- ...va => CheckoutSessionCustomerDataDto.java} | 27 +- ...ava => CheckoutSessionInstallmentDto.java} | 9 +- ...sDto.java => CheckoutSessionItemsDto.java} | 9 +- .../CheckoutSessionResponseBillingType.java | 30 + .../CheckoutSessionResponseChargeType.java | 31 + .../models/CheckoutSessionResponseDto.java | 198 ++ ...CheckoutSessionSaveRequestBillingType.java | 30 + .../CheckoutSessionSaveRequestChargeType.java | 31 + ...ava => CheckoutSessionSaveRequestDto.java} | 64 +- ...tDto.java => CheckoutSessionSplitDto.java} | 13 +- ... => CheckoutSessionSubscriptionCycle.java} | 6 +- ...va => CheckoutSessionSubscriptionDto.java} | 19 +- ... => CreditBureauReportGetResponseDto.java} | 16 +- ...=> CreditBureauReportListResponseDto.java} | 22 +- ... => CreditBureauReportSaveRequestDto.java} | 8 +- ...va => CreditCardHolderInfoRequestDto.java} | 11 +- ...uestDto.java => CreditCardRequestDto.java} | 5 +- .../models/CreditCardTokenizeRequestDto.java | 44 + ...tCardTokenizeResponseCreditCardBrand.java} | 7 +- ...ava => CreditCardTokenizeResponseDto.java} | 16 +- ...to.java => CustomerDeleteResponseDto.java} | 8 +- ...seDto.java => CustomerGetResponseDto.java} | 64 +- ...ava => CustomerGetResponsePersonType.java} | 6 +- ...eDto.java => CustomerListResponseDto.java} | 22 +- ...stDto.java => CustomerSaveRequestDto.java} | 38 +- ...Dto.java => CustomerUpdateRequestDto.java} | 42 +- ...ResponseDto.java => ErrorResponseDto.java} | 12 +- ...ItemDto.java => ErrorResponseItemDto.java} | 11 +- ...to.java => FinanceBalanceResponseDto.java} | 6 +- ...etPaymentStatisticsRequestBillingType.java | 34 + ...aymentStatisticsRequestPaymentStatus.java} | 6 +- ...nanceGetPaymentStatisticsResponseDto.java} | 10 +- ...FinanceGetSplitStatisticsResponseDto.java} | 8 +- ...> FinancialTransactionGetResponseDto.java} | 45 +- ...nGetResponseFinancialTransactionType.java} | 7 +- ... FinancialTransactionListResponseDto.java} | 22 +- ...Dto.java => FiscalInfoGetResponseDto.java} | 38 +- ...foListInvoiceNbsCodesResponseDataDto.java} | 11 +- ...alInfoListInvoiceNbsCodesResponseDto.java} | 24 +- ...ListMunicipalServicesResponseDataDto.java} | 13 +- ...InfoListMunicipalServicesResponseDto.java} | 24 +- ...alInfoMunicipalOptionsGetResponseDto.java} | 56 +- ...onsGetResponseEnotasTipoAutenticacao.java} | 6 +- ...ationalPortalTaxCalculationRegimeDto.java} | 11 +- ...MunicipalOptionsSpecialTaxRegimesDto.java} | 11 +- ...Dto.java => FiscalInfoSaveRequestDto.java} | 34 +- ...nfoUpdateUseNationalPortalRequestDto.java} | 2 +- ...foUpdateUseNationalPortalResponseDto.java} | 6 +- ...java => InstallmentDeleteResponseDto.java} | 8 +- ...=> InstallmentGetResponseBillingType.java} | 6 +- ...to.java => InstallmentGetResponseDto.java} | 69 +- ...mentListPaymentsRequestPaymentStatus.java} | 6 +- ...o.java => InstallmentListResponseDto.java} | 22 +- .../InstallmentPaymentBookResponseDto.java | 67 + ...java => InstallmentRefundResponseDto.java} | 37 +- ...entRefundResponsePaymentRefundStatus.java} | 6 +- ...=> InstallmentSaveRequestBillingType.java} | 6 +- ...to.java => InstallmentSaveRequestDto.java} | 57 +- ...tSaveWithCreditCardRequestBillingType.java | 32 + ...tallmentSaveWithCreditCardRequestDto.java} | 130 +- ...va => InstallmentSplitGetResponseDto.java} | 41 +- ...sponsePaymentSplitCancellationReason.java} | 6 +- ...ntSplitGetResponsePaymentSplitStatus.java} | 6 +- ...o.java => InstallmentSplitRequestDto.java} | 19 +- ... => InstallmentUpdateSplitRequestDto.java} | 12 +- ...=> InstallmentUpdateSplitResponseDto.java} | 12 +- ...tDto.java => InvoiceCancelRequestDto.java} | 6 +- ...nseDto.java => InvoiceGetResponseDto.java} | 75 +- ...pe.java => InvoiceGetResponseDtoType.java} | 6 +- ...a => InvoiceGetResponseInvoiceStatus.java} | 6 +- ...a => InvoiceListRequestInvoiceStatus.java} | 6 +- ...seDto.java => InvoiceListResponseDto.java} | 22 +- ...estDto.java => InvoiceSaveRequestDto.java} | 29 +- ...oiceTaxesDto.java => InvoiceTaxesDto.java} | 5 +- ...tDto.java => InvoiceUpdateRequestDto.java} | 29 +- .../models/ListAnticipationsParameters.java | 11 +- .../models/ListChargebacksParameters.java | 16 +- ...oicesForSubscriptionChargesParameters.java | 8 +- .../apisdk/models/ListInvoicesParameters.java | 8 +- .../apisdk/models/ListKeysParameters.java | 8 +- .../models/ListPaidSplitsParameters.java | 8 +- .../models/ListPaymentDunningsParameters.java | 16 +- .../ListPaymentsOfAInstallmentParameters.java | 8 +- ...ListPaymentsOfASubscriptionParameters.java | 8 +- .../apisdk/models/ListPaymentsParameters.java | 24 +- ...ListPaymentsWithSummaryDataParameters.java | 24 +- .../models/ListReceivedSplitsParameters.java | 8 +- .../models/ListRecurrencesParameters.java | 8 +- .../models/ListSubscriptionsParameters.java | 16 +- .../models/ListTransactionsParameters.java | 16 +- ...PhoneRechargeFindProviderResponseDto.java} | 16 +- ...echargeFindProviderResponseValuesDto.java} | 17 +- ...=> MobilePhoneRechargeGetResponseDto.java} | 24 +- ...GetResponseMobilePhoneRechargeStatus.java} | 6 +- ...> MobilePhoneRechargeListResponseDto.java} | 22 +- ...=> MobilePhoneRechargeSaveRequestDto.java} | 2 +- ...> MyAccountDisableAccountResponseDto.java} | 6 +- ...etAccountFeesAnticipationBankSlipDto.java} | 9 +- ...AccountFeesAnticipationCreditCardDto.java} | 11 +- ...yAccountGetAccountFeesAnticipationDto.java | 71 + ...tGetAccountFeesCreditBureauReportDto.java} | 11 +- ...=> MyAccountGetAccountFeesInvoiceDto.java} | 9 +- ...AccountGetAccountFeesNotificationDto.java} | 13 +- ...ountGetAccountFeesPaymentBankSlipDto.java} | 15 +- ...ntGetAccountFeesPaymentCreditCardDto.java} | 31 +- ...untGetAccountFeesPaymentDebitCardDto.java} | 13 +- .../MyAccountGetAccountFeesPaymentDto.java | 105 ++ ...MyAccountGetAccountFeesPaymentPixDto.java} | 23 +- .../MyAccountGetAccountFeesResponseDto.java | 142 ++ ...> MyAccountGetAccountFeesTransferDto.java} | 31 +- ...yAccountGetAccountFeesTransferPixDto.java} | 15 +- ...yAccountGetAccountFeesTransferTedDto.java} | 11 +- ...MyAccountGetAccountNumberResponseDto.java} | 10 +- ...ava => MyAccountGetStatusResponseDto.java} | 38 +- ... => MyAccountGetStatusResponseStatus.java} | 6 +- ...=> NotificationBatchUpdateRequestDto.java} | 12 +- ...> NotificationBatchUpdateResponseDto.java} | 12 +- ...o.java => NotificationGetResponseDto.java} | 45 +- ...ficationGetResponseDtoScheduleOffset.java} | 6 +- ...ficationGetResponseNotificationEvent.java} | 6 +- .../models/NotificationListResponseDto.java | 141 ++ ...java => NotificationUpdateRequestDto.java} | 29 +- ...cationUpdateRequestDtoScheduleOffset.java} | 6 +- ... => PaymentBankSlipRefundResponseDto.java} | 6 +- .../models/PaymentBillingInfoResponseDto.java | 80 + ...to.java => PaymentCallbackRequestDto.java} | 9 +- ...ebackResponseChargebackDisputeStatus.java} | 6 +- ...ntChargebackResponseChargebackReason.java} | 6 +- ...ntChargebackResponseChargebackStatus.java} | 6 +- ...java => PaymentChargebackResponseDto.java} | 57 +- ... PaymentCheckoutConfigGetResponseDto.java} | 29 +- ...ConfigGetResponseInvoiceConfigStatus.java} | 6 +- ... PaymentCheckoutConfigSaveRequestDto.java} | 8 +- ...Dto.java => PaymentDeleteResponseDto.java} | 8 +- ....java => PaymentDiscountDiscountType.java} | 6 +- ...scountDto.java => PaymentDiscountDto.java} | 19 +- ... => PaymentDocumentDeleteResponseDto.java} | 8 +- ...va => PaymentDocumentFileResponseDto.java} | 19 +- ...ava => PaymentDocumentGetResponseDto.java} | 33 +- ...cumentGetResponsePaymentDocumentType.java} | 6 +- ...va => PaymentDocumentListResponseDto.java} | 22 +- ...ava => PaymentDocumentSaveRequestDto.java} | 4 +- ...cumentSaveRequestPaymentDocumentType.java} | 6 +- ...a => PaymentDocumentUpdateRequestDto.java} | 4 +- ...mentUpdateRequestPaymentDocumentType.java} | 6 +- ...a => PaymentDunningCancelResponseDto.java} | 84 +- ...ngCancelResponsePaymentDunningStatus.java} | 8 +- ...ningCancelResponsePaymentDunningType.java} | 6 +- ...entDunningListHistoryResponseDataDto.java} | 21 +- ...ponseDataPaymentDunningHistoryStatus.java} | 6 +- ...PaymentDunningListHistoryResponseDto.java} | 22 +- ...ngListPartialPaymentsResponseDataDto.java} | 13 +- ...DunningListPartialPaymentsResponseDto.java | 143 ++ ...nningListRequestPaymentDunningStatus.java} | 8 +- ...DunningListRequestPaymentDunningType.java} | 6 +- ...ava => PaymentDunningListResponseDto.java} | 22 +- ...bleForDunningResponseDataBillingType.java} | 6 +- ...tsAvailableForDunningResponseDataDto.java} | 45 +- ...eForDunningResponseDataPaymentStatus.java} | 6 +- ...ingResponseDataTypeSimulationItemDto.java} | 33 +- ...TypeSimulationItemPaymentDunningType.java} | 6 +- ...ymentsAvailableForDunningResponseDto.java} | 24 +- ...aymentDunningSaveDocumentsRequestDto.java} | 2 +- ...ymentDunningSaveDocumentsResponseDto.java} | 52 +- ...ocumentsResponsePaymentDunningStatus.java} | 6 +- ...eDocumentsResponsePaymentDunningType.java} | 6 +- ...java => PaymentDunningSaveRequestDto.java} | 14 +- ...DunningSaveRequestPaymentDunningType.java} | 6 +- ...ava => PaymentDunningShowResponseDto.java} | 84 +- ...ningShowResponsePaymentDunningStatus.java} | 6 +- ...unningShowResponsePaymentDunningType.java} | 6 +- ...=> PaymentDunningSimulateResponseDto.java} | 18 +- ...imulateResponseTypeSimulationItemDto.java} | 27 +- ...eTypeSimulationItemPaymentDunningType.java | 29 + ....java => PaymentEscrowGetResponseDto.java} | 32 +- ...GetResponsePaymentEscrowFinishReason.java} | 6 +- ...EscrowGetResponsePaymentEscrowStatus.java} | 6 +- ...estDto.java => PaymentFineRequestDto.java} | 17 +- ...e.java => PaymentFineRequestFineType.java} | 6 +- ...seDto.java => PaymentFineResponseDto.java} | 9 +- ...ava => PaymentGetResponseBillingType.java} | 6 +- ...nseDto.java => PaymentGetResponseDto.java} | 167 +- ...a => PaymentGetResponsePaymentStatus.java} | 6 +- ...aymentIdentificationFieldResponseDto.java} | 10 +- ...to.java => PaymentInterestRequestDto.java} | 9 +- ...o.java => PaymentInterestResponseDto.java} | 9 +- ...=> PaymentLeanGetResponseBillingType.java} | 6 +- ...to.java => PaymentLeanGetResponseDto.java} | 109 +- ... PaymentLeanGetResponsePaymentStatus.java} | 6 +- ...o.java => PaymentLeanListResponseDto.java} | 22 +- ...aveWithCreditCardResponseBillingType.java} | 11 +- ...entLeanSaveWithCreditCardResponseDto.java} | 126 +- ...eWithCreditCardResponsePaymentStatus.java} | 6 +- ...aymentLimitsResponseCreationDailyDto.java} | 13 +- ... => PaymentLimitsResponseCreationDto.java} | 18 +- ...Dto.java => PaymentLimitsResponseDto.java} | 15 +- ...java => PaymentLinkDeleteResponseDto.java} | 8 +- ... => PaymentLinkFileDeleteResponseDto.java} | 8 +- ...ava => PaymentLinkFileGetResponseDto.java} | 19 +- ...a => PaymentLinkFileImageResponseDto.java} | 17 +- ...va => PaymentLinkFileListResponseDto.java} | 22 +- ...ava => PaymentLinkFileSaveRequestDto.java} | 8 +- ...=> PaymentLinkGetResponseBillingType.java} | 6 +- ... => PaymentLinkGetResponseChargeType.java} | 6 +- ....java => PaymentLinkGetResponseCycle.java} | 6 +- ...to.java => PaymentLinkGetResponseDto.java} | 56 +- .../models/PaymentLinkListResponseDto.java | 141 ++ ...=> PaymentLinkSaveRequestBillingType.java} | 6 +- ... => PaymentLinkSaveRequestChargeType.java} | 6 +- ....java => PaymentLinkSaveRequestCycle.java} | 6 +- ...to.java => PaymentLinkSaveRequestDto.java} | 43 +- ... PaymentLinkUpdateRequestBillingType.java} | 6 +- ...> PaymentLinkUpdateRequestChargeType.java} | 6 +- ...ava => PaymentLinkUpdateRequestCycle.java} | 6 +- ....java => PaymentLinkUpdateRequestDto.java} | 57 +- ...ava => PaymentListRequestBillingType.java} | 6 +- ...a => PaymentListRequestInvoiceStatus.java} | 6 +- ...a => PaymentListRequestPaymentStatus.java} | 6 +- .../apisdk/models/PaymentListResponseDto.java | 141 ++ .../PaymentPayWithCreditCardRequestDto.java | 58 + ....java => PaymentPixQrCodeResponseDto.java} | 13 +- ...va => PaymentReceiveInCashRequestDto.java} | 10 +- ....java => PaymentRefundGetResponseDto.java} | 35 +- ...RefundGetResponsePaymentRefundStatus.java} | 6 +- ...java => PaymentRefundListResponseDto.java} | 22 +- ...tDto.java => PaymentRefundRequestDto.java} | 8 +- ...a => PaymentRefundedSplitResponseDto.java} | 13 +- ...ava => PaymentSaveRequestBillingType.java} | 6 +- ...estDto.java => PaymentSaveRequestDto.java} | 72 +- ...hCreditCardCreditCardCreditCardBrand.java} | 7 +- ...ymentSaveWithCreditCardCreditCardDto.java} | 22 +- ...SaveWithCreditCardRequestBillingType.java} | 6 +- ... PaymentSaveWithCreditCardRequestDto.java} | 104 +- ...> PaymentSimulateBankSlipResponseDto.java} | 22 +- ...PaymentSimulateCreditCardResponseDto.java} | 24 +- ...aymentSimulateInstallmentResponseDto.java} | 11 +- ...ava => PaymentSimulatePixResponseDto.java} | 24 +- ...=> PaymentSimulateRequestBillingType.java} | 14 +- ...to.java => PaymentSimulateRequestDto.java} | 8 +- ...o.java => PaymentSimulateResponseDto.java} | 39 +- ...o.java => PaymentSplitGetResponseDto.java} | 39 +- ...sponsePaymentSplitCancellationReason.java} | 6 +- ...ntSplitGetResponsePaymentSplitStatus.java} | 6 +- ...litListPaidRequestPaymentSplitStatus.java} | 6 +- ...istReceivedRequestPaymentSplitStatus.java} | 6 +- .../models/PaymentSplitListResponseDto.java | 141 ++ ...stDto.java => PaymentSplitRequestDto.java} | 17 +- ...Dto.java => PaymentStatusResponseDto.java} | 12 +- ...> PaymentStatusResponsePaymentStatus.java} | 6 +- ...a => PaymentUpdateRequestBillingType.java} | 6 +- ...tDto.java => PaymentUpdateRequestDto.java} | 66 +- ...ava => PaymentViewingInfoResponseDto.java} | 8 +- ....java => PixAddressKeyGetResponseDto.java} | 41 +- ...essKeyGetResponsePixAddressKeyStatus.java} | 6 +- ...dressKeyGetResponsePixAddressKeyType.java} | 6 +- ...essKeyListRequestPixAddressKeyStatus.java} | 6 +- ...java => PixAddressKeyListResponseDto.java} | 12 +- ...=> PixAddressKeyQrCodeGetResponseDto.java} | 11 +- ....java => PixAddressKeySaveRequestDto.java} | 4 +- ...dressKeySaveRequestPixAddressKeyType.java} | 6 +- ...=> PixOriginalTransactionResponseDto.java} | 15 +- ...o.java => PixQrCodeDecodeReceiverDto.java} | 33 +- ...=> PixQrCodeDecodeReceiverPersonType.java} | 6 +- ...ixQrCodeDecodeReceiverPixAccountType.java} | 6 +- ...to.java => PixQrCodeDecodeRequestDto.java} | 6 +- ...o.java => PixQrCodeDecodeResponseDto.java} | 86 +- ...PixQrCodeDecodeResponsePixQrCodeType.java} | 6 +- ...ponsePixTransactionCashValueFinality.java} | 6 +- ...codeResponsePixTransactionOriginType.java} | 6 +- ...o.java => PixQrCodeDeleteResponseDto.java} | 8 +- ...tDto.java => PixQrCodeSaveRequestDto.java} | 20 +- ...Dto.java => PixQrCodeSaveResponseDto.java} | 16 +- ...curringTransactionExternalAccountDto.java} | 15 +- ...curringTransactionGetItemResponseDto.java} | 47 +- ...nsePixRecurringTransactionItemStatus.java} | 10 +- ...ixRecurringTransactionGetResponseDto.java} | 65 +- ...onsePixRecurringTransactionFrequency.java} | 10 +- ...ResponsePixRecurringTransactionOrigin.java | 29 + ...esponsePixRecurringTransactionStatus.java} | 8 +- ...xRecurringTransactionListResponseDto.java} | 22 +- ...xTokenBucketGetAddressKeyResponseDto.java} | 8 +- ...ransactionExternalAccountResponseDto.java} | 27 +- ...rnalAccountResponsePixAddressKeyType.java} | 6 +- ...java => PixTransactionGetResponseDto.java} | 122 +- ...nsactionGetResponsePixAddressKeyType.java} | 6 +- ...ponsePixTransactionCashValueFinality.java} | 6 +- ...nGetResponsePixTransactionOriginType.java} | 6 +- ...ctionGetResponsePixTransactionStatus.java} | 6 +- ...sactionGetResponsePixTransactionType.java} | 6 +- ...ctionListRequestPixTransactionStatus.java} | 6 +- ...sactionListRequestPixTransactionType.java} | 6 +- ...ava => PixTransactionListResponseDto.java} | 22 +- ...PixTransactionQrCodePayerResponseDto.java} | 11 +- ...a => PixTransactionQrCodeResponseDto.java} | 32 +- ...> PixTransactionQrCodeSaveRequestDto.java} | 9 +- ...java => PixTransactionSaveRequestDto.java} | 34 +- ...ngPixTransactionListItemsResponseDto.java} | 15 +- ...RequestPixRecurringTransactionStatus.java} | 8 +- ...bscriptionConfigureInvoiceRequestDto.java} | 41 +- ...InvoiceRequestDtoEffectiveDatePeriod.java} | 6 +- ...iptionDeleteInvoiceConfigResponseDto.java} | 8 +- ...ava => SubscriptionDeleteResponseDto.java} | 8 +- ...ptionGetInvoicesRequestInvoiceStatus.java} | 6 +- ...> SubscriptionGetResponseBillingType.java} | 6 +- ...java => SubscriptionGetResponseCycle.java} | 6 +- ...o.java => SubscriptionGetResponseDto.java} | 95 +- ...riptionGetResponseSubscriptionStatus.java} | 6 +- ...scriptionInvoiceConfigGetResponseDto.java} | 31 +- ...riptionInvoiceConfigUpdateRequestDto.java} | 33 +- ...gUpdateRequestDtoEffectiveDatePeriod.java} | 6 +- ...tionListPaymentsRequestPaymentStatus.java} | 6 +- ...> SubscriptionListRequestBillingType.java} | 6 +- ...riptionListRequestSubscriptionStatus.java} | 6 +- .../models/SubscriptionListResponseDto.java | 141 ++ ...> SubscriptionSaveRequestBillingType.java} | 6 +- ...java => SubscriptionSaveRequestCycle.java} | 6 +- ...o.java => SubscriptionSaveRequestDto.java} | 68 +- ...SaveWithCreditCardRequestBillingType.java} | 6 +- ...riptionSaveWithCreditCardRequestCycle.java | 35 + ...criptionSaveWithCreditCardRequestDto.java} | 138 +- ...aveWithCreditCardResponseBillingType.java} | 6 +- ...iptionSaveWithCreditCardResponseCycle.java | 35 + ...riptionSaveWithCreditCardResponseDto.java} | 114 +- ...CreditCardResponseSubscriptionStatus.java} | 6 +- ....java => SubscriptionSplitRequestDto.java} | 15 +- ...java => SubscriptionSplitResponseDto.java} | 35 +- ...ponseSubscriptionSplitDisabledReason.java} | 6 +- ...SplitResponseSubscriptionSplitStatus.java} | 6 +- ...ubscriptionUpdateCreditCardRequestDto.java | 64 + ...SubscriptionUpdateRequestBillingType.java} | 6 +- ...va => SubscriptionUpdateRequestCycle.java} | 6 +- ...java => SubscriptionUpdateRequestDto.java} | 90 +- ...ptionUpdateRequestSubscriptionStatus.java} | 6 +- ...=> TransferBankAccountGetResponseDto.java} | 34 +- ...ankAccountSaveRequestBankAccountType.java} | 6 +- ...=> TransferBankAccountSaveRequestDto.java} | 34 +- ...o.java => TransferBankGetResponseDto.java} | 13 +- ...o.java => TransferBankSaveRequestDto.java} | 5 +- ...seDto.java => TransferGetResponseDto.java} | 69 +- ...e.java => TransferGetResponseDtoType.java} | 6 +- ...=> TransferGetResponseTransferStatus.java} | 6 +- ...a => TransferGetResponseTransferType.java} | 6 +- .../models/TransferListResponseDto.java | 141 ++ ...a => TransferRecurringSaveRequestDto.java} | 19 +- ...stRecurringCheckoutScheduleFrequency.java} | 6 +- ...ansferSaveInternalTransferAccountDto.java} | 17 +- ...ansferSaveInternalTransferRequestDto.java} | 6 +- ...nsferSaveInternalTransferResponseDto.java} | 77 +- ...rSaveInternalTransferResponseDtoType.java} | 6 +- ...ternalTransferResponseTransferStatus.java} | 6 +- ...InternalTransferResponseTransferType.java} | 6 +- ...stDto.java => TransferSaveRequestDto.java} | 50 +- ...TransferSaveRequestPixAddressKeyType.java} | 6 +- ...a => TransferSaveRequestTransferType.java} | 6 +- ...onseDto.java => WalletGetResponseDto.java} | 11 +- .../apisdk/models/WalletShowResponseDto.java | 141 ++ ...va => WebhookConfigDeleteResponseDto.java} | 8 +- ....java => WebhookConfigGetResponseDto.java} | 39 +- .../WebhookConfigGetResponseWebhookEvent.java | 118 ++ ...hookConfigGetResponseWebhookSendType.java} | 6 +- .../models/WebhookConfigListResponseDto.java | 141 ++ ....java => WebhookConfigSaveRequestDto.java} | 40 +- .../WebhookConfigSaveRequestWebhookEvent.java | 118 ++ ...hookConfigSaveRequestWebhookSendType.java} | 6 +- ...ava => WebhookConfigUpdateRequestDto.java} | 33 +- ...ebhookConfigUpdateRequestWebhookEvent.java | 118 ++ ...okConfigUpdateRequestWebhookSendType.java} | 6 +- .../services/AccountDocumentService.java | 143 +- .../apisdk/services/AccountInfoService.java | 234 ++- .../apisdk/services/AnticipationService.java | 266 ++- .../asaas/apisdk/services/BillService.java | 156 +- .../apisdk/services/ChargebackService.java | 87 +- .../apisdk/services/CheckoutService.java | 82 +- .../services/CreditBureauReportService.java | 94 +- .../apisdk/services/CreditCardService.java | 52 +- .../apisdk/services/CustomerService.java | 187 +- .../apisdk/services/EscrowAccountService.java | 22 +- .../asaas/apisdk/services/FinanceService.java | 66 +- .../services/FinancialTransactionService.java | 30 +- .../apisdk/services/FiscalInfoService.java | 243 ++- .../apisdk/services/InstallmentService.java | 252 +-- .../asaas/apisdk/services/InvoiceService.java | 188 +- .../services/MobilePhoneRechargeService.java | 131 +- .../apisdk/services/NotificationService.java | 88 +- .../services/PaymentDocumentService.java | 135 +- .../services/PaymentDunningService.java | 252 +-- .../apisdk/services/PaymentLinkService.java | 278 ++- .../apisdk/services/PaymentRefundService.java | 40 +- .../asaas/apisdk/services/PaymentService.java | 525 +++--- .../apisdk/services/PaymentSplitService.java | 89 +- .../PaymentWithSummaryDataService.java | 301 ++- .../com/asaas/apisdk/services/PixService.java | 204 +- .../services/PixTransactionService.java | 162 +- .../apisdk/services/RecurringPixService.java | 140 +- .../services/SandboxActionsService.java | 38 +- .../apisdk/services/SubaccountService.java | 148 +- .../apisdk/services/SubscriptionService.java | 376 ++-- .../apisdk/services/TransferService.java | 166 +- .../asaas/apisdk/services/WebhookService.java | 151 +- .../ApiCheckoutSessionItemsDtoValidator.java | 30 - ...piCheckoutSessionResponseDtoValidator.java | 35 - ...heckoutSessionSaveRequestDtoValidator.java | 36 - .../ApiTransferSaveRequestDtoValidator.java | 27 - ...eckoutSessionInstallmentDtoValidator.java} | 13 +- .../CheckoutSessionItemsDtoValidator.java | 27 + .../CheckoutSessionResponseDtoValidator.java | 35 + ...heckoutSessionSaveRequestDtoValidator.java | 35 + ... => PixQrCodeSaveRequestDtoValidator.java} | 12 +- ...sferRecurringSaveRequestDtoValidator.java} | 13 +- .../TransferSaveRequestDtoValidator.java | 27 + 1110 files changed, 16275 insertions(+), 14904 deletions(-) create mode 100644 .env.example rename documentation/models/{ApiAccountDocumentDeleteResponseDto.md => AccountDocumentDeleteResponseDto.md} (91%) rename documentation/models/{ApiAccountDocumentGetResponseCustomerDocumentStatus.md => AccountDocumentGetResponseAccountDocumentStatus.md} (87%) create mode 100644 documentation/models/AccountDocumentGetResponseDto.md rename documentation/models/{ApiAccountDocumentGroupResponseCustomerDocumentStatus.md => AccountDocumentGroupResponseAccountDocumentStatus.md} (88%) rename documentation/models/{ApiAccountDocumentGroupResponseCustomerDocumentType.md => AccountDocumentGroupResponseAccountDocumentType.md} (92%) create mode 100644 documentation/models/AccountDocumentGroupResponseDto.md create mode 100644 documentation/models/AccountDocumentResponsibleResponseAccountDocumentResponsibleType.md create mode 100644 documentation/models/AccountDocumentResponsibleResponseDto.md rename documentation/models/{ApiAccountDocumentSaveRequestCustomerDocumentType.md => AccountDocumentSaveRequestAccountDocumentType.md} (92%) create mode 100644 documentation/models/AccountDocumentSaveRequestDto.md create mode 100644 documentation/models/AccountDocumentShowResponseDto.md rename documentation/models/{ApiAccountDocumentUpdateRequestDto.md => AccountDocumentUpdateRequestDto.md} (86%) rename documentation/models/{ApiCustomerGetResponseCompanyType.md => AccountGetResponseCompanyType.md} (92%) create mode 100644 documentation/models/AccountGetResponseDto.md rename documentation/models/{ApiCustomerGetResponsePersonType.md => AccountGetResponsePersonType.md} (89%) create mode 100644 documentation/models/AccountInfoCityDto.md rename documentation/models/{ApiCustomerUpdateRequestCityState.md => AccountInfoCityState.md} (97%) rename documentation/models/{ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.md => AccountInfoCommercialInfoExpirationResponseDto.md} (81%) rename documentation/models/{ApiCustomerSaveRequestCompanyType.md => AccountInfoGetResponseCompanyType.md} (92%) create mode 100644 documentation/models/AccountInfoGetResponseDto.md rename documentation/models/{ApiCustomerUpdateRequestGetResponsePersonType.md => AccountInfoGetResponsePersonType.md} (85%) rename documentation/models/{ApiCustomerUpdateRequestGetResponseStatus.md => AccountInfoGetResponseStatus.md} (93%) rename documentation/models/{ApiCustomerSaveResponseCompanyType.md => AccountInfoSaveRequestCompanyType.md} (92%) create mode 100644 documentation/models/AccountInfoSaveRequestDto.md rename documentation/models/{ApiCustomerUpdateRequestSaveRequestPersonType.md => AccountInfoSaveRequestPersonType.md} (85%) rename documentation/models/{ApiBillListResponseDto.md => AccountListResponseDto.md} (91%) rename documentation/models/{ApiMyAccountGetAccountNumberResponseDto.md => AccountNumberDto.md} (88%) rename documentation/models/{ApiCustomerPaymentCustodyConfigDto.md => AccountPaymentEscrowConfigDto.md} (96%) rename documentation/models/{ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.md => AccountSaveOrUpdatePaymentEscrowConfigRequestDto.md} (94%) rename documentation/models/{ApiCustomerUpdateRequestGetResponseCompanyType.md => AccountSaveRequestCompanyType.md} (90%) create mode 100644 documentation/models/AccountSaveRequestDto.md create mode 100644 documentation/models/AccountSaveResponseCompanyType.md create mode 100644 documentation/models/AccountSaveResponseDto.md rename documentation/models/{ApiCustomerSaveResponsePersonType.md => AccountSaveResponsePersonType.md} (88%) rename documentation/models/{ApiReceivableAnticipationConfigurationGetResponseDto.md => AnticipationConfigurationGetResponseDto.md} (89%) rename documentation/models/{ApiReceivableAnticipationConfigurationUpdateRequestDto.md => AnticipationConfigurationUpdateRequestDto.md} (89%) rename documentation/models/{ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.md => AnticipationGetResponseAnticipationStatus.md} (89%) create mode 100644 documentation/models/AnticipationGetResponseDto.md rename documentation/models/{ApiReceivableAnticipationLimitsInfoResponseDto.md => AnticipationLimitsInfoResponseDto.md} (85%) create mode 100644 documentation/models/AnticipationLimitsResponseDto.md rename documentation/models/{ApiReceivableAnticipationListRequestReceivableAnticipationStatus.md => AnticipationListRequestAnticipationStatus.md} (88%) create mode 100644 documentation/models/AnticipationListResponseDto.md rename documentation/models/{ApiReceivableAnticipationSaveRequestDto.md => AnticipationSaveRequestDto.md} (91%) rename documentation/models/{ApiReceivableAnticipationSimulateRequestDto.md => AnticipationSimulateRequestDto.md} (89%) rename documentation/models/{ApiReceivableAnticipationSimulateResponseDto.md => AnticipationSimulateResponseDto.md} (97%) delete mode 100644 documentation/models/ApiAccountDocumentGetResponseDto.md delete mode 100644 documentation/models/ApiAccountDocumentGroupResponseDto.md delete mode 100644 documentation/models/ApiAccountDocumentGroupResponsibleResponseDto.md delete mode 100644 documentation/models/ApiAccountDocumentSaveRequestDto.md delete mode 100644 documentation/models/ApiAccountDocumentShowResponseDto.md delete mode 100644 documentation/models/ApiBillGetResponseDto.md delete mode 100644 documentation/models/ApiBillSimulateResponseDto.md delete mode 100644 documentation/models/ApiChargebackCreditCardResponseDto.md delete mode 100644 documentation/models/ApiChargebackListResponseDto.md delete mode 100644 documentation/models/ApiChargebackSaveDisputeResponseDto.md delete mode 100644 documentation/models/ApiCheckoutSessionResponseDto.md delete mode 100644 documentation/models/ApiCheckoutSessionSaveRequestDto.md delete mode 100644 documentation/models/ApiCheckoutSessionSubscriptionDto.md delete mode 100644 documentation/models/ApiCreditBureauReportListResponseDto.md delete mode 100644 documentation/models/ApiCreditCardTokenizeRequestDto.md delete mode 100644 documentation/models/ApiCreditCardTokenizeResponseDto.md delete mode 100644 documentation/models/ApiCustomerAccountGetResponseDto.md delete mode 100644 documentation/models/ApiCustomerAccountListResponseDto.md delete mode 100644 documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.md delete mode 100644 documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.md delete mode 100644 documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.md delete mode 100644 documentation/models/ApiCustomerGetResponseDto.md delete mode 100644 documentation/models/ApiCustomerInvoiceGetResponseDto.md delete mode 100644 documentation/models/ApiCustomerInvoiceListResponseDto.md delete mode 100644 documentation/models/ApiCustomerInvoiceSaveRequestDto.md delete mode 100644 documentation/models/ApiCustomerInvoiceUpdateRequestDto.md delete mode 100644 documentation/models/ApiCustomerSaveRequestDto.md delete mode 100644 documentation/models/ApiCustomerSaveResponseDto.md delete mode 100644 documentation/models/ApiCustomerUpdateRequestCityDto.md delete mode 100644 documentation/models/ApiCustomerUpdateRequestGetResponseDto.md delete mode 100644 documentation/models/ApiCustomerUpdateRequestSaveRequestCompanyType.md delete mode 100644 documentation/models/ApiCustomerUpdateRequestSaveRequestDto.md delete mode 100644 documentation/models/ApiErrorResponseDto.md delete mode 100644 documentation/models/ApiFinancialTransactionGetResponseDto.md delete mode 100644 documentation/models/ApiInstallmentGetResponseDto.md delete mode 100644 documentation/models/ApiInstallmentRefundResponseDto.md delete mode 100644 documentation/models/ApiInstallmentSaveRequestDto.md delete mode 100644 documentation/models/ApiInstallmentSaveWithCreditCardRequestBillingType.md delete mode 100644 documentation/models/ApiInstallmentSaveWithCreditCardRequestDto.md delete mode 100644 documentation/models/ApiInstallmentSplitGetResponseDto.md delete mode 100644 documentation/models/ApiInstallmentUpdateSplitRequestDto.md delete mode 100644 documentation/models/ApiInstallmentUpdateSplitResponseDto.md delete mode 100644 documentation/models/ApiMobilePhoneRechargeFindProviderResponseDto.md delete mode 100644 documentation/models/ApiMobilePhoneRechargeGetResponseDto.md delete mode 100644 documentation/models/ApiMobilePhoneRechargeListResponseDto.md delete mode 100644 documentation/models/ApiMyAccountGetAccountFeesAnticipationDto.md delete mode 100644 documentation/models/ApiMyAccountGetAccountFeesPaymentDto.md delete mode 100644 documentation/models/ApiMyAccountGetAccountFeesResponseDto.md delete mode 100644 documentation/models/ApiMyAccountGetAccountFeesTransferDto.md delete mode 100644 documentation/models/ApiMyAccountGetStatusResponseDto.md delete mode 100644 documentation/models/ApiNotificationBatchUpdateRequestDto.md delete mode 100644 documentation/models/ApiNotificationBatchUpdateResponseDto.md delete mode 100644 documentation/models/ApiNotificationGetResponseDto.md delete mode 100644 documentation/models/ApiPaymentBillingInfoResponseDto.md delete mode 100644 documentation/models/ApiPaymentCampaignFileGetResponseDto.md delete mode 100644 documentation/models/ApiPaymentCampaignFileListResponseDto.md delete mode 100644 documentation/models/ApiPaymentCampaignGetResponseDto.md delete mode 100644 documentation/models/ApiPaymentCampaignSaveRequestDto.md delete mode 100644 documentation/models/ApiPaymentCampaignUpdateRequestDto.md delete mode 100644 documentation/models/ApiPaymentChargebackResponseDto.md delete mode 100644 documentation/models/ApiPaymentCheckoutConfigGetResponseDto.md delete mode 100644 documentation/models/ApiPaymentCustodyGetResponseDto.md delete mode 100644 documentation/models/ApiPaymentDiscountDto.md delete mode 100644 documentation/models/ApiPaymentDocumentGetResponseDto.md delete mode 100644 documentation/models/ApiPaymentDocumentListResponseDto.md delete mode 100644 documentation/models/ApiPaymentDocumentSaveRequestDto.md delete mode 100644 documentation/models/ApiPaymentDocumentUpdateRequestDto.md delete mode 100644 documentation/models/ApiPaymentDunningCancelResponseDto.md delete mode 100644 documentation/models/ApiPaymentDunningListHistoryResponseDataDto.md delete mode 100644 documentation/models/ApiPaymentDunningListHistoryResponseDto.md delete mode 100644 documentation/models/ApiPaymentDunningListPartialPaymentsResponseDto.md delete mode 100644 documentation/models/ApiPaymentDunningListResponseDto.md delete mode 100644 documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.md delete mode 100644 documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md delete mode 100644 documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md delete mode 100644 documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.md delete mode 100644 documentation/models/ApiPaymentDunningSaveDocumentsResponseDto.md delete mode 100644 documentation/models/ApiPaymentDunningSaveRequestDto.md delete mode 100644 documentation/models/ApiPaymentDunningShowResponseDto.md delete mode 100644 documentation/models/ApiPaymentDunningSimulateResponseDto.md delete mode 100644 documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.md delete mode 100644 documentation/models/ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md delete mode 100644 documentation/models/ApiPaymentFineRequestDto.md delete mode 100644 documentation/models/ApiPaymentGetResponseDto.md delete mode 100644 documentation/models/ApiPaymentLeanGetResponseDto.md delete mode 100644 documentation/models/ApiPaymentLeanSaveWithCreditCardResponseDto.md delete mode 100644 documentation/models/ApiPaymentLimitsResponseCreationDto.md delete mode 100644 documentation/models/ApiPaymentLimitsResponseDto.md delete mode 100644 documentation/models/ApiPaymentListResponseDto.md delete mode 100644 documentation/models/ApiPaymentPayWithCreditCardRequestDto.md delete mode 100644 documentation/models/ApiPaymentRefundGetResponseDto.md delete mode 100644 documentation/models/ApiPaymentRefundListResponseDto.md delete mode 100644 documentation/models/ApiPaymentSaveRequestDto.md delete mode 100644 documentation/models/ApiPaymentSaveWithCreditCardCreditCardDto.md delete mode 100644 documentation/models/ApiPaymentSimulateBankSlipResponseDto.md delete mode 100644 documentation/models/ApiPaymentSimulateCreditCardResponseDto.md delete mode 100644 documentation/models/ApiPaymentSimulatePixResponseDto.md delete mode 100644 documentation/models/ApiPaymentSimulateRequestDto.md delete mode 100644 documentation/models/ApiPaymentSimulateResponseDto.md delete mode 100644 documentation/models/ApiPaymentSplitGetResponseDto.md delete mode 100644 documentation/models/ApiPaymentStatusResponseDto.md delete mode 100644 documentation/models/ApiPaymentUpdateRequestDto.md delete mode 100644 documentation/models/ApiPixAddressKeyGetResponseDto.md delete mode 100644 documentation/models/ApiPixAddressKeyListResponseDto.md delete mode 100644 documentation/models/ApiPixAddressKeySaveRequestDto.md delete mode 100644 documentation/models/ApiPixQrCodeDecodeReceiverDto.md delete mode 100644 documentation/models/ApiPixQrCodeDecodeResponseDto.md delete mode 100644 documentation/models/ApiPixTransactionExternalAccountResponseDto.md delete mode 100644 documentation/models/ApiPixTransactionGetResponseDto.md delete mode 100644 documentation/models/ApiPixTransactionListResponseDto.md delete mode 100644 documentation/models/ApiPixTransactionQrCodeResponseDto.md delete mode 100644 documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.md delete mode 100644 documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.md delete mode 100644 documentation/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.md delete mode 100644 documentation/models/ApiPixTransactionSaveRequestDto.md delete mode 100644 documentation/models/ApiPushNotificationConfigGetResponseDto.md delete mode 100644 documentation/models/ApiPushNotificationConfigListResponseDto.md delete mode 100644 documentation/models/ApiPushNotificationConfigSaveRequestDto.md delete mode 100644 documentation/models/ApiPushNotificationConfigUpdateRequestDto.md delete mode 100644 documentation/models/ApiReceivableAnticipationGetResponseDto.md delete mode 100644 documentation/models/ApiReceivableAnticipationLimitsResponseDto.md delete mode 100644 documentation/models/ApiReceivableAnticipationListResponseDto.md delete mode 100644 documentation/models/ApiSubscriptionConfigureInvoiceRequestDto.md delete mode 100644 documentation/models/ApiSubscriptionGetResponseDto.md delete mode 100644 documentation/models/ApiSubscriptionInvoiceConfigGetResponseDto.md delete mode 100644 documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.md delete mode 100644 documentation/models/ApiSubscriptionSaveRequestDto.md delete mode 100644 documentation/models/ApiSubscriptionSaveWithCreditCardRequestCycle.md delete mode 100644 documentation/models/ApiSubscriptionSaveWithCreditCardRequestDto.md delete mode 100644 documentation/models/ApiSubscriptionSaveWithCreditCardResponseCycle.md delete mode 100644 documentation/models/ApiSubscriptionSaveWithCreditCardResponseDto.md delete mode 100644 documentation/models/ApiSubscriptionSplitResponseDto.md delete mode 100644 documentation/models/ApiSubscriptionUpdateCreditCardRequestDto.md delete mode 100644 documentation/models/ApiSubscriptionUpdateRequestDto.md delete mode 100644 documentation/models/ApiTransferBankAccountGetResponseDto.md delete mode 100644 documentation/models/ApiTransferGetResponseDto.md delete mode 100644 documentation/models/ApiTransferRecurringSaveRequestDto.md delete mode 100644 documentation/models/ApiTransferSaveInternalTransferResponseDto.md delete mode 100644 documentation/models/ApiTransferSaveRequestDto.md delete mode 100644 documentation/models/ApiWalletShowResponseDto.md rename documentation/models/{ApiBankSlipBillingInfoResponseDto.md => BankSlipBillingInfoResponseDto.md} (93%) rename documentation/models/{ApiBillGetResponseBillStatus.md => BillGetResponseBillStatus.md} (97%) create mode 100644 documentation/models/BillGetResponseDto.md create mode 100644 documentation/models/BillListResponseDto.md rename documentation/models/{ApiBillSaveRequestDto.md => BillSaveRequestDto.md} (98%) rename documentation/models/{ApiBillSimulateBankSlipInfoResponseDto.md => BillSimulateBankSlipInfoResponseDto.md} (96%) rename documentation/models/{ApiBillSimulateRequestDto.md => BillSimulateRequestDto.md} (92%) create mode 100644 documentation/models/BillSimulateResponseDto.md rename documentation/models/{ApiChargebackCreditCardResponseCreditCardBrand.md => ChargebackCreditCardResponseCreditCardBrand.md} (89%) create mode 100644 documentation/models/ChargebackCreditCardResponseDto.md rename documentation/models/{ApiChargebackListRequestChargebackStatus.md => ChargebackListRequestChargebackStatus.md} (92%) rename documentation/models/{ApiChargebackListRequestCreditCardBrand.md => ChargebackListRequestCreditCardBrand.md} (90%) rename documentation/models/{ApiInstallmentListResponseDto.md => ChargebackListResponseDto.md} (91%) rename documentation/models/{ApiChargebackSaveDisputeRequestDto.md => ChargebackSaveDisputeRequestDto.md} (89%) rename documentation/models/{ApiChargebackSaveDisputeResponseChargebackDisputeStatus.md => ChargebackSaveDisputeResponseChargebackDisputeStatus.md} (85%) create mode 100644 documentation/models/ChargebackSaveDisputeResponseDto.md rename documentation/models/{ApiCheckoutSessionCallbackDto.md => CheckoutSessionCallbackDto.md} (81%) rename documentation/models/{ApiCheckoutSessionCustomerDataDto.md => CheckoutSessionCustomerDataDto.md} (95%) rename documentation/models/{ApiCheckoutSessionInstallmentDto.md => CheckoutSessionInstallmentDto.md} (70%) rename documentation/models/{ApiCheckoutSessionItemsDto.md => CheckoutSessionItemsDto.md} (90%) create mode 100644 documentation/models/CheckoutSessionResponseBillingType.md create mode 100644 documentation/models/CheckoutSessionResponseChargeType.md create mode 100644 documentation/models/CheckoutSessionResponseDto.md create mode 100644 documentation/models/CheckoutSessionSaveRequestBillingType.md create mode 100644 documentation/models/CheckoutSessionSaveRequestChargeType.md create mode 100644 documentation/models/CheckoutSessionSaveRequestDto.md rename documentation/models/{ApiCheckoutSessionSplitDto.md => CheckoutSessionSplitDto.md} (95%) rename documentation/models/{ApiSubscriptionUpdateRequestCycle.md => CheckoutSessionSubscriptionCycle.md} (94%) create mode 100644 documentation/models/CheckoutSessionSubscriptionDto.md rename documentation/models/{ApiCreditBureauReportGetResponseDto.md => CreditBureauReportGetResponseDto.md} (96%) rename documentation/models/{ApiPaymentCampaignListResponseDto.md => CreditBureauReportListResponseDto.md} (91%) rename documentation/models/{ApiCreditBureauReportSaveRequestDto.md => CreditBureauReportSaveRequestDto.md} (93%) rename documentation/models/{ApiCreditCardHolderInfoRequestDto.md => CreditCardHolderInfoRequestDto.md} (93%) rename documentation/models/{ApiCreditCardRequestDto.md => CreditCardRequestDto.md} (92%) create mode 100644 documentation/models/CreditCardTokenizeRequestDto.md rename documentation/models/{ApiCreditCardTokenizeResponseCreditCardBrand.md => CreditCardTokenizeResponseCreditCardBrand.md} (89%) create mode 100644 documentation/models/CreditCardTokenizeResponseDto.md rename documentation/models/{ApiCustomerAccountDeleteResponseDto.md => CustomerDeleteResponseDto.md} (91%) create mode 100644 documentation/models/CustomerGetResponseDto.md rename documentation/models/{ApiCustomerAccountGetResponsePersonType.md => CustomerGetResponsePersonType.md} (87%) create mode 100644 documentation/models/CustomerListResponseDto.md rename documentation/models/{ApiCustomerAccountSaveRequestDto.md => CustomerSaveRequestDto.md} (98%) rename documentation/models/{ApiCustomerAccountUpdateRequestDto.md => CustomerUpdateRequestDto.md} (98%) create mode 100644 documentation/models/ErrorResponseDto.md rename documentation/models/{ApiErrorResponseItemDto.md => ErrorResponseItemDto.md} (88%) rename documentation/models/{ApiFinanceBalanceResponseDto.md => FinanceBalanceResponseDto.md} (88%) rename documentation/models/{ApiFinanceGetPaymentStatisticsRequestBillingType.md => FinanceGetPaymentStatisticsRequestBillingType.md} (91%) rename documentation/models/{ApiFinanceGetPaymentStatisticsRequestPaymentStatus.md => FinanceGetPaymentStatisticsRequestPaymentStatus.md} (88%) rename documentation/models/{ApiFinanceGetPaymentStatisticsResponseDto.md => FinanceGetPaymentStatisticsResponseDto.md} (88%) rename documentation/models/{ApiFinanceGetSplitStatisticsResponseDto.md => FinanceGetSplitStatisticsResponseDto.md} (87%) create mode 100644 documentation/models/FinancialTransactionGetResponseDto.md rename documentation/models/{ApiFinancialTransactionGetResponseFinancialTransactionType.md => FinancialTransactionGetResponseFinancialTransactionType.md} (98%) create mode 100644 documentation/models/FinancialTransactionListResponseDto.md rename documentation/models/{ApiCustomerFiscalInfoGetResponseDto.md => FiscalInfoGetResponseDto.md} (99%) rename documentation/models/{ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.md => FiscalInfoListInvoiceNbsCodesResponseDataDto.md} (84%) create mode 100644 documentation/models/FiscalInfoListInvoiceNbsCodesResponseDto.md rename documentation/models/{ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.md => FiscalInfoListMunicipalServicesResponseDataDto.md} (86%) create mode 100644 documentation/models/FiscalInfoListMunicipalServicesResponseDto.md create mode 100644 documentation/models/FiscalInfoMunicipalOptionsGetResponseDto.md rename documentation/models/{ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md => FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md} (86%) rename documentation/models/{ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md => FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md} (79%) rename documentation/models/{ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md => FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md} (81%) rename documentation/models/{ApiCustomerFiscalInfoSaveRequestDto.md => FiscalInfoSaveRequestDto.md} (99%) rename documentation/models/{ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.md => FiscalInfoUpdateUseNationalPortalRequestDto.md} (89%) rename documentation/models/{ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.md => FiscalInfoUpdateUseNationalPortalResponseDto.md} (88%) rename documentation/models/{ApiInstallmentDeleteResponseDto.md => InstallmentDeleteResponseDto.md} (92%) rename documentation/models/{ApiInstallmentGetResponseBillingType.md => InstallmentGetResponseBillingType.md} (93%) create mode 100644 documentation/models/InstallmentGetResponseDto.md rename documentation/models/{ApiInstallmentListPaymentsRequestPaymentStatus.md => InstallmentListPaymentsRequestPaymentStatus.md} (96%) rename documentation/models/{ApiCustomerListResponseDto.md => InstallmentListResponseDto.md} (91%) create mode 100644 documentation/models/InstallmentPaymentBookResponseDto.md create mode 100644 documentation/models/InstallmentRefundResponseDto.md rename documentation/models/{ApiPaymentRefundGetResponsePaymentRefundStatus.md => InstallmentRefundResponsePaymentRefundStatus.md} (94%) rename documentation/models/{ApiPaymentUpdateRequestBillingType.md => InstallmentSaveRequestBillingType.md} (91%) create mode 100644 documentation/models/InstallmentSaveRequestDto.md create mode 100644 documentation/models/InstallmentSaveWithCreditCardRequestBillingType.md create mode 100644 documentation/models/InstallmentSaveWithCreditCardRequestDto.md create mode 100644 documentation/models/InstallmentSplitGetResponseDto.md rename documentation/models/{ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.md => InstallmentSplitGetResponsePaymentSplitCancellationReason.md} (92%) rename documentation/models/{ApiInstallmentSplitGetResponsePaymentSplitStatus.md => InstallmentSplitGetResponsePaymentSplitStatus.md} (93%) rename documentation/models/{ApiInstallmentSplitRequestDto.md => InstallmentSplitRequestDto.md} (97%) create mode 100644 documentation/models/InstallmentUpdateSplitRequestDto.md create mode 100644 documentation/models/InstallmentUpdateSplitResponseDto.md rename documentation/models/{ApiCustomerInvoiceCancelRequestDto.md => InvoiceCancelRequestDto.md} (89%) create mode 100644 documentation/models/InvoiceGetResponseDto.md rename documentation/models/{ApiCustomerInvoiceGetResponseDtoType.md => InvoiceGetResponseDtoType.md} (85%) rename documentation/models/{ApiCustomerInvoiceGetResponseInvoiceStatus.md => InvoiceGetResponseInvoiceStatus.md} (94%) rename documentation/models/{ApiCustomerInvoiceListRequestInvoiceStatus.md => InvoiceListRequestInvoiceStatus.md} (94%) create mode 100644 documentation/models/InvoiceListResponseDto.md create mode 100644 documentation/models/InvoiceSaveRequestDto.md rename documentation/models/{ApiCustomerInvoiceTaxesDto.md => InvoiceTaxesDto.md} (96%) create mode 100644 documentation/models/InvoiceUpdateRequestDto.md create mode 100644 documentation/models/MobilePhoneRechargeFindProviderResponseDto.md rename documentation/models/{ApiMobilePhoneRechargeFindProviderResponseValuesDto.md => MobilePhoneRechargeFindProviderResponseValuesDto.md} (86%) create mode 100644 documentation/models/MobilePhoneRechargeGetResponseDto.md rename documentation/models/{ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md => MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md} (91%) create mode 100644 documentation/models/MobilePhoneRechargeListResponseDto.md rename documentation/models/{ApiMobilePhoneRechargeSaveRequestDto.md => MobilePhoneRechargeSaveRequestDto.md} (88%) rename documentation/models/{ApiMyAccountDisableAccountResponseDto.md => MyAccountDisableAccountResponseDto.md} (86%) rename documentation/models/{ApiMyAccountGetAccountFeesAnticipationBankSlipDto.md => MyAccountGetAccountFeesAnticipationBankSlipDto.md} (80%) rename documentation/models/{ApiMyAccountGetAccountFeesAnticipationCreditCardDto.md => MyAccountGetAccountFeesAnticipationCreditCardDto.md} (84%) create mode 100644 documentation/models/MyAccountGetAccountFeesAnticipationDto.md rename documentation/models/{ApiMyAccountGetAccountFeesCreditBureauReportDto.md => MyAccountGetAccountFeesCreditBureauReportDto.md} (86%) rename documentation/models/{ApiMyAccountGetAccountFeesInvoiceDto.md => MyAccountGetAccountFeesInvoiceDto.md} (84%) rename documentation/models/{ApiMyAccountGetAccountFeesNotificationDto.md => MyAccountGetAccountFeesNotificationDto.md} (89%) rename documentation/models/{ApiMyAccountGetAccountFeesPaymentBankSlipDto.md => MyAccountGetAccountFeesPaymentBankSlipDto.md} (91%) rename documentation/models/{ApiMyAccountGetAccountFeesPaymentCreditCardDto.md => MyAccountGetAccountFeesPaymentCreditCardDto.md} (96%) rename documentation/models/{ApiMyAccountGetAccountFeesPaymentDebitCardDto.md => MyAccountGetAccountFeesPaymentDebitCardDto.md} (87%) create mode 100644 documentation/models/MyAccountGetAccountFeesPaymentDto.md rename documentation/models/{ApiMyAccountGetAccountFeesPaymentPixDto.md => MyAccountGetAccountFeesPaymentPixDto.md} (95%) create mode 100644 documentation/models/MyAccountGetAccountFeesResponseDto.md create mode 100644 documentation/models/MyAccountGetAccountFeesTransferDto.md rename documentation/models/{ApiMyAccountGetAccountFeesTransferPixDto.md => MyAccountGetAccountFeesTransferPixDto.md} (93%) rename documentation/models/{ApiMyAccountGetAccountFeesTransferTedDto.md => MyAccountGetAccountFeesTransferTedDto.md} (90%) rename documentation/models/{ApiCustomerAccountNumberDto.md => MyAccountGetAccountNumberResponseDto.md} (90%) create mode 100644 documentation/models/MyAccountGetStatusResponseDto.md rename documentation/models/{ApiMyAccountGetStatusResponseStatus.md => MyAccountGetStatusResponseStatus.md} (92%) create mode 100644 documentation/models/NotificationBatchUpdateRequestDto.md create mode 100644 documentation/models/NotificationBatchUpdateResponseDto.md create mode 100644 documentation/models/NotificationGetResponseDto.md rename documentation/models/{ApiNotificationGetResponseDtoScheduleOffset.md => NotificationGetResponseDtoScheduleOffset.md} (92%) rename documentation/models/{ApiNotificationGetResponseNotificationEvent.md => NotificationGetResponseNotificationEvent.md} (93%) create mode 100644 documentation/models/NotificationListResponseDto.md rename documentation/models/{ApiNotificationUpdateRequestDto.md => NotificationUpdateRequestDto.md} (59%) rename documentation/models/{ApiNotificationUpdateRequestDtoScheduleOffset.md => NotificationUpdateRequestDtoScheduleOffset.md} (93%) rename documentation/models/{ApiPaymentBankSlipRefundResponseDto.md => PaymentBankSlipRefundResponseDto.md} (88%) create mode 100644 documentation/models/PaymentBillingInfoResponseDto.md rename documentation/models/{ApiPaymentCallbackRequestDto.md => PaymentCallbackRequestDto.md} (90%) rename documentation/models/{ApiPaymentChargebackResponseChargebackDisputeStatus.md => PaymentChargebackResponseChargebackDisputeStatus.md} (86%) rename documentation/models/{ApiPaymentChargebackResponseChargebackReason.md => PaymentChargebackResponseChargebackReason.md} (98%) rename documentation/models/{ApiPaymentChargebackResponseChargebackStatus.md => PaymentChargebackResponseChargebackStatus.md} (91%) create mode 100644 documentation/models/PaymentChargebackResponseDto.md create mode 100644 documentation/models/PaymentCheckoutConfigGetResponseDto.md rename documentation/models/{ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.md => PaymentCheckoutConfigGetResponseInvoiceConfigStatus.md} (87%) rename documentation/models/{ApiPaymentCheckoutConfigSaveRequestDto.md => PaymentCheckoutConfigSaveRequestDto.md} (94%) rename documentation/models/{ApiPaymentDeleteResponseDto.md => PaymentDeleteResponseDto.md} (93%) rename documentation/models/{ApiPaymentDiscountDiscountType.md => PaymentDiscountDiscountType.md} (90%) create mode 100644 documentation/models/PaymentDiscountDto.md rename documentation/models/{ApiPaymentDocumentDeleteResponseDto.md => PaymentDocumentDeleteResponseDto.md} (90%) rename documentation/models/{ApiPaymentDocumentFileResponseDto.md => PaymentDocumentFileResponseDto.md} (93%) create mode 100644 documentation/models/PaymentDocumentGetResponseDto.md rename documentation/models/{ApiPaymentDocumentGetResponsePaymentDocumentType.md => PaymentDocumentGetResponsePaymentDocumentType.md} (91%) rename documentation/models/{ApiPaymentSplitListResponseDto.md => PaymentDocumentListResponseDto.md} (91%) create mode 100644 documentation/models/PaymentDocumentSaveRequestDto.md rename documentation/models/{ApiPaymentDocumentSaveRequestPaymentDocumentType.md => PaymentDocumentSaveRequestPaymentDocumentType.md} (91%) create mode 100644 documentation/models/PaymentDocumentUpdateRequestDto.md rename documentation/models/{ApiPaymentDocumentUpdateRequestPaymentDocumentType.md => PaymentDocumentUpdateRequestPaymentDocumentType.md} (91%) create mode 100644 documentation/models/PaymentDunningCancelResponseDto.md rename documentation/models/{ApiPaymentDunningShowResponsePaymentDunningStatus.md => PaymentDunningCancelResponsePaymentDunningStatus.md} (94%) rename documentation/models/{ApiPaymentDunningSaveRequestPaymentDunningType.md => PaymentDunningCancelResponsePaymentDunningType.md} (84%) create mode 100644 documentation/models/PaymentDunningListHistoryResponseDataDto.md rename documentation/models/{ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md => PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md} (87%) create mode 100644 documentation/models/PaymentDunningListHistoryResponseDto.md rename documentation/models/{ApiPaymentDunningListPartialPaymentsResponseDataDto.md => PaymentDunningListPartialPaymentsResponseDataDto.md} (84%) create mode 100644 documentation/models/PaymentDunningListPartialPaymentsResponseDto.md rename documentation/models/{ApiPaymentDunningListRequestPaymentDunningStatus.md => PaymentDunningListRequestPaymentDunningStatus.md} (94%) rename documentation/models/{ApiPaymentDunningListRequestPaymentDunningType.md => PaymentDunningListRequestPaymentDunningType.md} (89%) rename documentation/models/{ApiNotificationListResponseDto.md => PaymentDunningListResponseDto.md} (91%) rename documentation/models/{ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md => PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md} (88%) create mode 100644 documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.md rename documentation/models/{ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md => PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md} (84%) create mode 100644 documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.md create mode 100644 documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.md rename documentation/models/{ApiPixTransactionRecurringCheckoutScheduleListResponseDto.md => PaymentDunningPaymentsAvailableForDunningResponseDto.md} (86%) rename documentation/models/{ApiPaymentDunningSaveDocumentsRequestDto.md => PaymentDunningSaveDocumentsRequestDto.md} (87%) create mode 100644 documentation/models/PaymentDunningSaveDocumentsResponseDto.md rename documentation/models/{ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.md => PaymentDunningSaveDocumentsResponsePaymentDunningStatus.md} (93%) rename documentation/models/{ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.md => PaymentDunningSaveDocumentsResponsePaymentDunningType.md} (82%) create mode 100644 documentation/models/PaymentDunningSaveRequestDto.md rename documentation/models/{ApiPaymentDunningShowResponsePaymentDunningType.md => PaymentDunningSaveRequestPaymentDunningType.md} (84%) create mode 100644 documentation/models/PaymentDunningShowResponseDto.md rename documentation/models/{ApiPaymentDunningCancelResponsePaymentDunningStatus.md => PaymentDunningShowResponsePaymentDunningStatus.md} (93%) rename documentation/models/{ApiPaymentDunningCancelResponsePaymentDunningType.md => PaymentDunningShowResponsePaymentDunningType.md} (84%) create mode 100644 documentation/models/PaymentDunningSimulateResponseDto.md create mode 100644 documentation/models/PaymentDunningSimulateResponseTypeSimulationItemDto.md create mode 100644 documentation/models/PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.md create mode 100644 documentation/models/PaymentEscrowGetResponseDto.md rename documentation/models/{ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.md => PaymentEscrowGetResponsePaymentEscrowFinishReason.md} (92%) rename documentation/models/{ApiPaymentCustodyGetResponsePaymentCustodyStatus.md => PaymentEscrowGetResponsePaymentEscrowStatus.md} (84%) create mode 100644 documentation/models/PaymentFineRequestDto.md rename documentation/models/{ApiPaymentFineRequestFineType.md => PaymentFineRequestFineType.md} (90%) rename documentation/models/{ApiPaymentFineResponseDto.md => PaymentFineResponseDto.md} (78%) rename documentation/models/{ApiPaymentGetResponseBillingType.md => PaymentGetResponseBillingType.md} (94%) create mode 100644 documentation/models/PaymentGetResponseDto.md rename documentation/models/{ApiPaymentGetResponsePaymentStatus.md => PaymentGetResponsePaymentStatus.md} (97%) rename documentation/models/{ApiPaymentIdentificationFieldResponseDto.md => PaymentIdentificationFieldResponseDto.md} (92%) rename documentation/models/{ApiPaymentInterestRequestDto.md => PaymentInterestRequestDto.md} (84%) rename documentation/models/{ApiPaymentInterestResponseDto.md => PaymentInterestResponseDto.md} (77%) rename documentation/models/{ApiPaymentLeanGetResponseBillingType.md => PaymentLeanGetResponseBillingType.md} (93%) create mode 100644 documentation/models/PaymentLeanGetResponseDto.md rename documentation/models/{ApiPaymentStatusResponsePaymentStatus.md => PaymentLeanGetResponsePaymentStatus.md} (97%) rename documentation/models/{ApiTransferListResponseDto.md => PaymentLeanListResponseDto.md} (91%) rename documentation/models/{ApiPaymentLeanSaveWithCreditCardResponseBillingType.md => PaymentLeanSaveWithCreditCardResponseBillingType.md} (91%) create mode 100644 documentation/models/PaymentLeanSaveWithCreditCardResponseDto.md rename documentation/models/{ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.md => PaymentLeanSaveWithCreditCardResponsePaymentStatus.md} (96%) rename documentation/models/{ApiPaymentLimitsResponseCreationDailyDto.md => PaymentLimitsResponseCreationDailyDto.md} (90%) create mode 100644 documentation/models/PaymentLimitsResponseCreationDto.md create mode 100644 documentation/models/PaymentLimitsResponseDto.md rename documentation/models/{ApiPaymentCampaignDeleteResponseDto.md => PaymentLinkDeleteResponseDto.md} (91%) rename documentation/models/{ApiPaymentCampaignFileDeleteResponseDto.md => PaymentLinkFileDeleteResponseDto.md} (90%) create mode 100644 documentation/models/PaymentLinkFileGetResponseDto.md rename documentation/models/{ApiPaymentCampaignFileImageResponseDto.md => PaymentLinkFileImageResponseDto.md} (90%) rename documentation/models/{ApiSubscriptionListResponseDto.md => PaymentLinkFileListResponseDto.md} (91%) rename documentation/models/{ApiPaymentCampaignFileSaveRequestDto.md => PaymentLinkFileSaveRequestDto.md} (89%) rename documentation/models/{ApiPaymentCampaignSaveRequestBillingType.md => PaymentLinkGetResponseBillingType.md} (90%) rename documentation/models/{ApiPaymentCampaignSaveRequestChargeType.md => PaymentLinkGetResponseChargeType.md} (89%) rename documentation/models/{ApiPaymentCampaignGetResponseCycle.md => PaymentLinkGetResponseCycle.md} (94%) create mode 100644 documentation/models/PaymentLinkGetResponseDto.md create mode 100644 documentation/models/PaymentLinkListResponseDto.md rename documentation/models/{ApiPaymentCampaignGetResponseBillingType.md => PaymentLinkSaveRequestBillingType.md} (90%) rename documentation/models/{ApiPaymentCampaignGetResponseChargeType.md => PaymentLinkSaveRequestChargeType.md} (89%) rename documentation/models/{ApiPaymentCampaignSaveRequestCycle.md => PaymentLinkSaveRequestCycle.md} (94%) create mode 100644 documentation/models/PaymentLinkSaveRequestDto.md rename documentation/models/{ApiPaymentCampaignUpdateRequestBillingType.md => PaymentLinkUpdateRequestBillingType.md} (90%) rename documentation/models/{ApiPaymentCampaignUpdateRequestChargeType.md => PaymentLinkUpdateRequestChargeType.md} (89%) rename documentation/models/{ApiPaymentCampaignUpdateRequestCycle.md => PaymentLinkUpdateRequestCycle.md} (94%) create mode 100644 documentation/models/PaymentLinkUpdateRequestDto.md rename documentation/models/{ApiPaymentListRequestBillingType.md => PaymentListRequestBillingType.md} (92%) rename documentation/models/{ApiPaymentListRequestInvoiceStatus.md => PaymentListRequestInvoiceStatus.md} (95%) rename documentation/models/{ApiPaymentListRequestPaymentStatus.md => PaymentListRequestPaymentStatus.md} (97%) create mode 100644 documentation/models/PaymentListResponseDto.md create mode 100644 documentation/models/PaymentPayWithCreditCardRequestDto.md rename documentation/models/{ApiPaymentPixQrCodeResponseDto.md => PaymentPixQrCodeResponseDto.md} (88%) rename documentation/models/{ApiPaymentReceiveInCashRequestDto.md => PaymentReceiveInCashRequestDto.md} (94%) create mode 100644 documentation/models/PaymentRefundGetResponseDto.md rename documentation/models/{ApiInstallmentRefundResponsePaymentRefundStatus.md => PaymentRefundGetResponsePaymentRefundStatus.md} (94%) create mode 100644 documentation/models/PaymentRefundListResponseDto.md rename documentation/models/{ApiPaymentRefundRequestDto.md => PaymentRefundRequestDto.md} (91%) rename documentation/models/{ApiPaymentRefundedSplitResponseDto.md => PaymentRefundedSplitResponseDto.md} (88%) rename documentation/models/{ApiPaymentSaveRequestBillingType.md => PaymentSaveRequestBillingType.md} (92%) create mode 100644 documentation/models/PaymentSaveRequestDto.md rename documentation/models/{ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.md => PaymentSaveWithCreditCardCreditCardCreditCardBrand.md} (89%) create mode 100644 documentation/models/PaymentSaveWithCreditCardCreditCardDto.md rename documentation/models/{ApiPaymentSaveWithCreditCardRequestBillingType.md => PaymentSaveWithCreditCardRequestBillingType.md} (89%) rename documentation/models/{ApiPaymentSaveWithCreditCardRequestDto.md => PaymentSaveWithCreditCardRequestDto.md} (54%) create mode 100644 documentation/models/PaymentSimulateBankSlipResponseDto.md create mode 100644 documentation/models/PaymentSimulateCreditCardResponseDto.md rename documentation/models/{ApiPaymentSimulateInstallmentResponseDto.md => PaymentSimulateInstallmentResponseDto.md} (82%) create mode 100644 documentation/models/PaymentSimulatePixResponseDto.md create mode 100644 documentation/models/PaymentSimulateRequestBillingType.md create mode 100644 documentation/models/PaymentSimulateRequestDto.md create mode 100644 documentation/models/PaymentSimulateResponseDto.md create mode 100644 documentation/models/PaymentSplitGetResponseDto.md rename documentation/models/{ApiPaymentSplitGetResponsePaymentSplitCancellationReason.md => PaymentSplitGetResponsePaymentSplitCancellationReason.md} (92%) rename documentation/models/{ApiPaymentSplitGetResponsePaymentSplitStatus.md => PaymentSplitGetResponsePaymentSplitStatus.md} (94%) rename documentation/models/{ApiPaymentSplitListPaidRequestPaymentSplitStatus.md => PaymentSplitListPaidRequestPaymentSplitStatus.md} (93%) rename documentation/models/{ApiPaymentSplitListReceivedRequestPaymentSplitStatus.md => PaymentSplitListReceivedRequestPaymentSplitStatus.md} (93%) create mode 100644 documentation/models/PaymentSplitListResponseDto.md rename documentation/models/{ApiPaymentSplitRequestDto.md => PaymentSplitRequestDto.md} (96%) create mode 100644 documentation/models/PaymentStatusResponseDto.md rename documentation/models/{ApiPaymentLeanGetResponsePaymentStatus.md => PaymentStatusResponsePaymentStatus.md} (97%) rename documentation/models/{ApiInstallmentSaveRequestBillingType.md => PaymentUpdateRequestBillingType.md} (91%) create mode 100644 documentation/models/PaymentUpdateRequestDto.md rename documentation/models/{ApiPaymentViewingInfoResponseDto.md => PaymentViewingInfoResponseDto.md} (91%) create mode 100644 documentation/models/PixAddressKeyGetResponseDto.md rename documentation/models/{ApiPixAddressKeyGetResponsePixAddressKeyStatus.md => PixAddressKeyGetResponsePixAddressKeyStatus.md} (93%) rename documentation/models/{ApiPixAddressKeyGetResponsePixAddressKeyType.md => PixAddressKeyGetResponsePixAddressKeyType.md} (82%) rename documentation/models/{ApiPixAddressKeyListRequestPixAddressKeyStatus.md => PixAddressKeyListRequestPixAddressKeyStatus.md} (93%) create mode 100644 documentation/models/PixAddressKeyListResponseDto.md rename documentation/models/{ApiPixAddressKeyQrCodeGetResponseDto.md => PixAddressKeyQrCodeGetResponseDto.md} (86%) create mode 100644 documentation/models/PixAddressKeySaveRequestDto.md rename documentation/models/{ApiPixAddressKeySaveRequestPixAddressKeyType.md => PixAddressKeySaveRequestPixAddressKeyType.md} (82%) rename documentation/models/{ApiPixOriginalTransactionResponseDto.md => PixOriginalTransactionResponseDto.md} (87%) create mode 100644 documentation/models/PixQrCodeDecodeReceiverDto.md rename documentation/models/{ApiPixQrCodeDecodeReceiverPersonType.md => PixQrCodeDecodeReceiverPersonType.md} (88%) rename documentation/models/{ApiPixQrCodeDecodeReceiverPixAccountType.md => PixQrCodeDecodeReceiverPixAccountType.md} (92%) rename documentation/models/{ApiPixQrCodeDecodeRequestDto.md => PixQrCodeDecodeRequestDto.md} (92%) create mode 100644 documentation/models/PixQrCodeDecodeResponseDto.md rename documentation/models/{ApiPixQrCodeDecodeResponsePixQrCodeType.md => PixQrCodeDecodeResponsePixQrCodeType.md} (93%) rename documentation/models/{ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.md => PixQrCodeDecodeResponsePixTransactionCashValueFinality.md} (85%) rename documentation/models/{ApiPixQrCodeDecodeResponsePixTransactionOriginType.md => PixQrCodeDecodeResponsePixTransactionOriginType.md} (93%) rename documentation/models/{ApiPixQrCodeDeleteResponseDto.md => PixQrCodeDeleteResponseDto.md} (92%) rename documentation/models/{ApiPixQrCodeSaveRequestDto.md => PixQrCodeSaveRequestDto.md} (98%) rename documentation/models/{ApiPixQrCodeSaveResponseDto.md => PixQrCodeSaveResponseDto.md} (97%) rename documentation/models/{ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.md => PixRecurringTransactionExternalAccountDto.md} (89%) create mode 100644 documentation/models/PixRecurringTransactionGetItemResponseDto.md rename documentation/models/{ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.md => PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.md} (80%) create mode 100644 documentation/models/PixRecurringTransactionGetResponseDto.md rename documentation/models/{ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.md => PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.md} (76%) rename documentation/models/{ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.md => PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.md} (74%) rename documentation/models/{ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.md => PixRecurringTransactionGetResponsePixRecurringTransactionStatus.md} (90%) rename documentation/models/{ApiFinancialTransactionListResponseDto.md => PixRecurringTransactionListResponseDto.md} (91%) rename documentation/models/{ApiPixTokenBucketGetAddressKeyResponseDto.md => PixTokenBucketGetAddressKeyResponseDto.md} (87%) create mode 100644 documentation/models/PixTransactionExternalAccountResponseDto.md rename documentation/models/{ApiPixTransactionExternalAccountResponsePixAddressKeyType.md => PixTransactionExternalAccountResponsePixAddressKeyType.md} (87%) create mode 100644 documentation/models/PixTransactionGetResponseDto.md rename documentation/models/{ApiPixTransactionGetResponsePixAddressKeyType.md => PixTransactionGetResponsePixAddressKeyType.md} (89%) rename documentation/models/{ApiPixTransactionGetResponsePixTransactionCashValueFinality.md => PixTransactionGetResponsePixTransactionCashValueFinality.md} (84%) rename documentation/models/{ApiPixTransactionGetResponsePixTransactionOriginType.md => PixTransactionGetResponsePixTransactionOriginType.md} (93%) rename documentation/models/{ApiPixTransactionGetResponsePixTransactionStatus.md => PixTransactionGetResponsePixTransactionStatus.md} (96%) rename documentation/models/{ApiPixTransactionGetResponsePixTransactionType.md => PixTransactionGetResponsePixTransactionType.md} (93%) rename documentation/models/{ApiPixTransactionListRequestPixTransactionStatus.md => PixTransactionListRequestPixTransactionStatus.md} (96%) rename documentation/models/{ApiPixTransactionListRequestPixTransactionType.md => PixTransactionListRequestPixTransactionType.md} (93%) rename documentation/models/{ApiPaymentLeanListResponseDto.md => PixTransactionListResponseDto.md} (91%) rename documentation/models/{ApiPixTransactionQrCodePayerResponseDto.md => PixTransactionQrCodePayerResponseDto.md} (82%) create mode 100644 documentation/models/PixTransactionQrCodeResponseDto.md rename documentation/models/{ApiPixTransactionQrCodeSaveRequestDto.md => PixTransactionQrCodeSaveRequestDto.md} (85%) create mode 100644 documentation/models/PixTransactionSaveRequestDto.md create mode 100644 documentation/models/RecurringPixTransactionListItemsResponseDto.md rename documentation/models/{ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.md => RecurringPixTransactionListRequestPixRecurringTransactionStatus.md} (90%) create mode 100644 documentation/models/SubscriptionConfigureInvoiceRequestDto.md rename documentation/models/{ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md => SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md} (91%) rename documentation/models/{ApiSubscriptionDeleteInvoiceConfigResponseDto.md => SubscriptionDeleteInvoiceConfigResponseDto.md} (89%) rename documentation/models/{ApiSubscriptionDeleteResponseDto.md => SubscriptionDeleteResponseDto.md} (92%) rename documentation/models/{ApiSubscriptionGetInvoicesRequestInvoiceStatus.md => SubscriptionGetInvoicesRequestInvoiceStatus.md} (95%) rename documentation/models/{ApiSubscriptionGetResponseBillingType.md => SubscriptionGetResponseBillingType.md} (93%) rename documentation/models/{ApiSubscriptionGetResponseCycle.md => SubscriptionGetResponseCycle.md} (94%) create mode 100644 documentation/models/SubscriptionGetResponseDto.md rename documentation/models/{ApiSubscriptionGetResponseSubscriptionStatus.md => SubscriptionGetResponseSubscriptionStatus.md} (87%) create mode 100644 documentation/models/SubscriptionInvoiceConfigGetResponseDto.md create mode 100644 documentation/models/SubscriptionInvoiceConfigUpdateRequestDto.md rename documentation/models/{ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md => SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md} (90%) rename documentation/models/{ApiSubscriptionListPaymentsRequestPaymentStatus.md => SubscriptionListPaymentsRequestPaymentStatus.md} (96%) rename documentation/models/{ApiSubscriptionListRequestBillingType.md => SubscriptionListRequestBillingType.md} (93%) rename documentation/models/{ApiSubscriptionListRequestSubscriptionStatus.md => SubscriptionListRequestSubscriptionStatus.md} (87%) create mode 100644 documentation/models/SubscriptionListResponseDto.md rename documentation/models/{ApiSubscriptionSaveRequestBillingType.md => SubscriptionSaveRequestBillingType.md} (91%) rename documentation/models/{ApiSubscriptionSaveRequestCycle.md => SubscriptionSaveRequestCycle.md} (94%) create mode 100644 documentation/models/SubscriptionSaveRequestDto.md rename documentation/models/{ApiSubscriptionSaveWithCreditCardRequestBillingType.md => SubscriptionSaveWithCreditCardRequestBillingType.md} (88%) create mode 100644 documentation/models/SubscriptionSaveWithCreditCardRequestCycle.md create mode 100644 documentation/models/SubscriptionSaveWithCreditCardRequestDto.md rename documentation/models/{ApiSubscriptionSaveWithCreditCardResponseBillingType.md => SubscriptionSaveWithCreditCardResponseBillingType.md} (91%) create mode 100644 documentation/models/SubscriptionSaveWithCreditCardResponseCycle.md create mode 100644 documentation/models/SubscriptionSaveWithCreditCardResponseDto.md rename documentation/models/{ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.md => SubscriptionSaveWithCreditCardResponseSubscriptionStatus.md} (84%) rename documentation/models/{ApiSubscriptionSplitRequestDto.md => SubscriptionSplitRequestDto.md} (94%) create mode 100644 documentation/models/SubscriptionSplitResponseDto.md rename documentation/models/{ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.md => SubscriptionSplitResponseSubscriptionSplitDisabledReason.md} (87%) rename documentation/models/{ApiSubscriptionSplitResponseSubscriptionSplitStatus.md => SubscriptionSplitResponseSubscriptionSplitStatus.md} (84%) create mode 100644 documentation/models/SubscriptionUpdateCreditCardRequestDto.md rename documentation/models/{ApiSubscriptionUpdateRequestBillingType.md => SubscriptionUpdateRequestBillingType.md} (90%) rename documentation/models/{ApiCheckoutSessionSubscriptionCycle.md => SubscriptionUpdateRequestCycle.md} (93%) create mode 100644 documentation/models/SubscriptionUpdateRequestDto.md rename documentation/models/{ApiSubscriptionUpdateRequestSubscriptionStatus.md => SubscriptionUpdateRequestSubscriptionStatus.md} (85%) create mode 100644 documentation/models/TransferBankAccountGetResponseDto.md rename documentation/models/{ApiTransferBankAccountSaveRequestBankAccountType.md => TransferBankAccountSaveRequestBankAccountType.md} (86%) rename documentation/models/{ApiTransferBankAccountSaveRequestDto.md => TransferBankAccountSaveRequestDto.md} (52%) rename documentation/models/{ApiTransferBankGetResponseDto.md => TransferBankGetResponseDto.md} (90%) rename documentation/models/{ApiTransferBankSaveRequestDto.md => TransferBankSaveRequestDto.md} (76%) create mode 100644 documentation/models/TransferGetResponseDto.md rename documentation/models/{ApiTransferGetResponseDtoType.md => TransferGetResponseDtoType.md} (91%) rename documentation/models/{ApiTransferGetResponseTransferStatus.md => TransferGetResponseTransferStatus.md} (93%) rename documentation/models/{ApiTransferGetResponseTransferType.md => TransferGetResponseTransferType.md} (90%) create mode 100644 documentation/models/TransferListResponseDto.md create mode 100644 documentation/models/TransferRecurringSaveRequestDto.md rename documentation/models/{ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md => TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md} (80%) rename documentation/models/{ApiTransferSaveInternalTransferAccountDto.md => TransferSaveInternalTransferAccountDto.md} (89%) rename documentation/models/{ApiTransferSaveInternalTransferRequestDto.md => TransferSaveInternalTransferRequestDto.md} (91%) create mode 100644 documentation/models/TransferSaveInternalTransferResponseDto.md rename documentation/models/{ApiTransferSaveInternalTransferResponseDtoType.md => TransferSaveInternalTransferResponseDtoType.md} (87%) rename documentation/models/{ApiTransferSaveInternalTransferResponseTransferStatus.md => TransferSaveInternalTransferResponseTransferStatus.md} (90%) rename documentation/models/{ApiTransferSaveInternalTransferResponseTransferType.md => TransferSaveInternalTransferResponseTransferType.md} (86%) create mode 100644 documentation/models/TransferSaveRequestDto.md rename documentation/models/{ApiTransferSaveRequestPixAddressKeyType.md => TransferSaveRequestPixAddressKeyType.md} (91%) rename documentation/models/{ApiTransferSaveRequestTransferType.md => TransferSaveRequestTransferType.md} (91%) rename documentation/models/{ApiWalletGetResponseDto.md => WalletGetResponseDto.md} (89%) create mode 100644 documentation/models/WalletShowResponseDto.md rename documentation/models/{ApiPushNotificationConfigDeleteResponseDto.md => WebhookConfigDeleteResponseDto.md} (89%) create mode 100644 documentation/models/WebhookConfigGetResponseDto.md create mode 100644 documentation/models/WebhookConfigGetResponseWebhookEvent.md rename documentation/models/{ApiPushNotificationConfigGetResponsePushNotificationSendType.md => WebhookConfigGetResponseWebhookSendType.md} (86%) create mode 100644 documentation/models/WebhookConfigListResponseDto.md create mode 100644 documentation/models/WebhookConfigSaveRequestDto.md create mode 100644 documentation/models/WebhookConfigSaveRequestWebhookEvent.md rename documentation/models/{ApiPushNotificationConfigSaveRequestPushNotificationSendType.md => WebhookConfigSaveRequestWebhookSendType.md} (86%) create mode 100644 documentation/models/WebhookConfigUpdateRequestDto.md create mode 100644 documentation/models/WebhookConfigUpdateRequestWebhookEvent.md rename documentation/models/{ApiPushNotificationConfigUpdateRequestPushNotificationSendType.md => WebhookConfigUpdateRequestWebhookSendType.md} (85%) delete mode 100644 src/main/java/com/asaas/apisdk/exceptions/ApiErrorResponseDtoException.java create mode 100644 src/main/java/com/asaas/apisdk/exceptions/ErrorResponseDtoException.java rename src/main/java/com/asaas/apisdk/models/{ApiAccountDocumentDeleteResponseDto.java => AccountDocumentDeleteResponseDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiAccountDocumentGetResponseCustomerDocumentStatus.java => AccountDocumentGetResponseAccountDocumentStatus.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiAccountDocumentGetResponseDto.java => AccountDocumentGetResponseDto.java} (65%) rename src/main/java/com/asaas/apisdk/models/{ApiAccountDocumentGroupResponseCustomerDocumentStatus.java => AccountDocumentGroupResponseAccountDocumentStatus.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiAccountDocumentGroupResponseCustomerDocumentType.java => AccountDocumentGroupResponseAccountDocumentType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiAccountDocumentGroupResponseDto.java => AccountDocumentGroupResponseDto.java} (62%) create mode 100644 src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseAccountDocumentResponsibleType.java rename src/main/java/com/asaas/apisdk/models/{ApiAccountDocumentGroupResponsibleResponseDto.java => AccountDocumentResponsibleResponseDto.java} (58%) rename src/main/java/com/asaas/apisdk/models/{ApiAccountDocumentSaveRequestCustomerDocumentType.java => AccountDocumentSaveRequestAccountDocumentType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiAccountDocumentSaveRequestDto.java => AccountDocumentSaveRequestDto.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiAccountDocumentShowResponseDto.java => AccountDocumentShowResponseDto.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiAccountDocumentUpdateRequestDto.java => AccountDocumentUpdateRequestDto.java} (89%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerSaveResponseCompanyType.java => AccountGetResponseCompanyType.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerGetResponseDto.java => AccountGetResponseDto.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerGetResponsePersonType.java => AccountGetResponsePersonType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerUpdateRequestCityDto.java => AccountInfoCityDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerUpdateRequestCityState.java => AccountInfoCityState.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java => AccountInfoCommercialInfoExpirationResponseDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerSaveRequestCompanyType.java => AccountInfoGetResponseCompanyType.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerUpdateRequestGetResponseDto.java => AccountInfoGetResponseDto.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerUpdateRequestSaveRequestPersonType.java => AccountInfoGetResponsePersonType.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerUpdateRequestGetResponseStatus.java => AccountInfoGetResponseStatus.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerGetResponseCompanyType.java => AccountInfoSaveRequestCompanyType.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerUpdateRequestSaveRequestDto.java => AccountInfoSaveRequestDto.java} (72%) create mode 100644 src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestPersonType.java rename src/main/java/com/asaas/apisdk/models/{ApiBillListResponseDto.java => AccountListResponseDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerAccountNumberDto.java => AccountNumberDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerPaymentCustodyConfigDto.java => AccountPaymentEscrowConfigDto.java} (84%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.java => AccountSaveOrUpdatePaymentEscrowConfigRequestDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerUpdateRequestGetResponseCompanyType.java => AccountSaveRequestCompanyType.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerSaveRequestDto.java => AccountSaveRequestDto.java} (76%) create mode 100644 src/main/java/com/asaas/apisdk/models/AccountSaveResponseCompanyType.java rename src/main/java/com/asaas/apisdk/models/{ApiCustomerSaveResponseDto.java => AccountSaveResponseDto.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerSaveResponsePersonType.java => AccountSaveResponsePersonType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiReceivableAnticipationConfigurationGetResponseDto.java => AnticipationConfigurationGetResponseDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiReceivableAnticipationConfigurationUpdateRequestDto.java => AnticipationConfigurationUpdateRequestDto.java} (79%) rename src/main/java/com/asaas/apisdk/models/{ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.java => AnticipationGetResponseAnticipationStatus.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiReceivableAnticipationGetResponseDto.java => AnticipationGetResponseDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiReceivableAnticipationLimitsInfoResponseDto.java => AnticipationLimitsInfoResponseDto.java} (80%) create mode 100644 src/main/java/com/asaas/apisdk/models/AnticipationLimitsResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiReceivableAnticipationListRequestReceivableAnticipationStatus.java => AnticipationListRequestAnticipationStatus.java} (69%) create mode 100644 src/main/java/com/asaas/apisdk/models/AnticipationListResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiReceivableAnticipationSaveRequestDto.java => AnticipationSaveRequestDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiReceivableAnticipationSimulateRequestDto.java => AnticipationSimulateRequestDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiReceivableAnticipationSimulateResponseDto.java => AnticipationSimulateResponseDto.java} (81%) delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeRequestDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponsePersonType.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestCompanyType.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestBillingType.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeListResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiPaymentBillingInfoResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileListResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentListResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiPaymentPayWithCreditCardRequestDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiPaymentRefundListResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiPixTransactionListResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListResponseDto.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestCycle.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseCycle.java delete mode 100644 src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateCreditCardRequestDto.java rename src/main/java/com/asaas/apisdk/models/{ApiBankSlipBillingInfoResponseDto.java => BankSlipBillingInfoResponseDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiBillGetResponseBillStatus.java => BillGetResponseBillStatus.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiBillGetResponseDto.java => BillGetResponseDto.java} (82%) create mode 100644 src/main/java/com/asaas/apisdk/models/BillListResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiBillSaveRequestDto.java => BillSaveRequestDto.java} (86%) rename src/main/java/com/asaas/apisdk/models/{ApiBillSimulateBankSlipInfoResponseDto.java => BillSimulateBankSlipInfoResponseDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiBillSimulateRequestDto.java => BillSimulateRequestDto.java} (84%) rename src/main/java/com/asaas/apisdk/models/{ApiBillSimulateResponseDto.java => BillSimulateResponseDto.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiChargebackCreditCardResponseCreditCardBrand.java => ChargebackCreditCardResponseCreditCardBrand.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiChargebackCreditCardResponseDto.java => ChargebackCreditCardResponseDto.java} (65%) rename src/main/java/com/asaas/apisdk/models/{ApiChargebackListRequestChargebackStatus.java => ChargebackListRequestChargebackStatus.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiChargebackListRequestCreditCardBrand.java => ChargebackListRequestCreditCardBrand.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentListResponseDto.java => ChargebackListResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiChargebackSaveDisputeRequestDto.java => ChargebackSaveDisputeRequestDto.java} (89%) rename src/main/java/com/asaas/apisdk/models/{ApiChargebackSaveDisputeResponseChargebackDisputeStatus.java => ChargebackSaveDisputeResponseChargebackDisputeStatus.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiChargebackSaveDisputeResponseDto.java => ChargebackSaveDisputeResponseDto.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiCheckoutSessionCallbackDto.java => CheckoutSessionCallbackDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiCheckoutSessionCustomerDataDto.java => CheckoutSessionCustomerDataDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiCheckoutSessionInstallmentDto.java => CheckoutSessionInstallmentDto.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiCheckoutSessionItemsDto.java => CheckoutSessionItemsDto.java} (85%) create mode 100644 src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseBillingType.java create mode 100644 src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseChargeType.java create mode 100644 src/main/java/com/asaas/apisdk/models/CheckoutSessionResponseDto.java create mode 100644 src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestBillingType.java create mode 100644 src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestChargeType.java rename src/main/java/com/asaas/apisdk/models/{ApiCheckoutSessionSaveRequestDto.java => CheckoutSessionSaveRequestDto.java} (53%) rename src/main/java/com/asaas/apisdk/models/{ApiCheckoutSessionSplitDto.java => CheckoutSessionSplitDto.java} (85%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionUpdateRequestCycle.java => CheckoutSessionSubscriptionCycle.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiCheckoutSessionSubscriptionDto.java => CheckoutSessionSubscriptionDto.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiCreditBureauReportGetResponseDto.java => CreditBureauReportGetResponseDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignListResponseDto.java => CreditBureauReportListResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiCreditBureauReportSaveRequestDto.java => CreditBureauReportSaveRequestDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiCreditCardHolderInfoRequestDto.java => CreditCardHolderInfoRequestDto.java} (85%) rename src/main/java/com/asaas/apisdk/models/{ApiCreditCardRequestDto.java => CreditCardRequestDto.java} (91%) create mode 100644 src/main/java/com/asaas/apisdk/models/CreditCardTokenizeRequestDto.java rename src/main/java/com/asaas/apisdk/models/{ApiCreditCardTokenizeResponseCreditCardBrand.java => CreditCardTokenizeResponseCreditCardBrand.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiCreditCardTokenizeResponseDto.java => CreditCardTokenizeResponseDto.java} (71%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerAccountDeleteResponseDto.java => CustomerDeleteResponseDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerAccountGetResponseDto.java => CustomerGetResponseDto.java} (79%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerAccountGetResponsePersonType.java => CustomerGetResponsePersonType.java} (71%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentListResponseDto.java => CustomerListResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerAccountSaveRequestDto.java => CustomerSaveRequestDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerAccountUpdateRequestDto.java => CustomerUpdateRequestDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiErrorResponseDto.java => ErrorResponseDto.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiErrorResponseItemDto.java => ErrorResponseItemDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiFinanceBalanceResponseDto.java => FinanceBalanceResponseDto.java} (83%) create mode 100644 src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestBillingType.java rename src/main/java/com/asaas/apisdk/models/{ApiFinanceGetPaymentStatisticsRequestPaymentStatus.java => FinanceGetPaymentStatisticsRequestPaymentStatus.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiFinanceGetPaymentStatisticsResponseDto.java => FinanceGetPaymentStatisticsResponseDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiFinanceGetSplitStatisticsResponseDto.java => FinanceGetSplitStatisticsResponseDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiFinancialTransactionGetResponseDto.java => FinancialTransactionGetResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiFinancialTransactionGetResponseFinancialTransactionType.java => FinancialTransactionGetResponseFinancialTransactionType.java} (96%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerAccountListResponseDto.java => FinancialTransactionListResponseDto.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerFiscalInfoGetResponseDto.java => FiscalInfoGetResponseDto.java} (84%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.java => FiscalInfoListInvoiceNbsCodesResponseDataDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiPushNotificationConfigListResponseDto.java => FiscalInfoListInvoiceNbsCodesResponseDto.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.java => FiscalInfoListMunicipalServicesResponseDataDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningListHistoryResponseDto.java => FiscalInfoListMunicipalServicesResponseDto.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.java => FiscalInfoMunicipalOptionsGetResponseDto.java} (71%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java => FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java} (66%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java => FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java => FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerFiscalInfoSaveRequestDto.java => FiscalInfoSaveRequestDto.java} (85%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.java => FiscalInfoUpdateUseNationalPortalRequestDto.java} (87%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java => FiscalInfoUpdateUseNationalPortalResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentDeleteResponseDto.java => InstallmentDeleteResponseDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentGetResponseBillingType.java => InstallmentGetResponseBillingType.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentGetResponseDto.java => InstallmentGetResponseDto.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentListPaymentsRequestPaymentStatus.java => InstallmentListPaymentsRequestPaymentStatus.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferListResponseDto.java => InstallmentListResponseDto.java} (79%) create mode 100644 src/main/java/com/asaas/apisdk/models/InstallmentPaymentBookResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentRefundResponseDto.java => InstallmentRefundResponseDto.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentRefundGetResponsePaymentRefundStatus.java => InstallmentRefundResponsePaymentRefundStatus.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentUpdateRequestBillingType.java => InstallmentSaveRequestBillingType.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentSaveRequestDto.java => InstallmentSaveRequestDto.java} (68%) create mode 100644 src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestBillingType.java rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentSaveWithCreditCardRequestDto.java => InstallmentSaveWithCreditCardRequestDto.java} (57%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentSplitGetResponseDto.java => InstallmentSplitGetResponseDto.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.java => InstallmentSplitGetResponsePaymentSplitCancellationReason.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentSplitGetResponsePaymentSplitStatus.java => InstallmentSplitGetResponsePaymentSplitStatus.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentSplitRequestDto.java => InstallmentSplitRequestDto.java} (85%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentUpdateSplitRequestDto.java => InstallmentUpdateSplitRequestDto.java} (63%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentUpdateSplitResponseDto.java => InstallmentUpdateSplitResponseDto.java} (61%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerInvoiceCancelRequestDto.java => InvoiceCancelRequestDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerInvoiceGetResponseDto.java => InvoiceGetResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerInvoiceGetResponseDtoType.java => InvoiceGetResponseDtoType.java} (71%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerInvoiceGetResponseInvoiceStatus.java => InvoiceGetResponseInvoiceStatus.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerInvoiceListRequestInvoiceStatus.java => InvoiceListRequestInvoiceStatus.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiWalletShowResponseDto.java => InvoiceListResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerInvoiceSaveRequestDto.java => InvoiceSaveRequestDto.java} (84%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerInvoiceTaxesDto.java => InvoiceTaxesDto.java} (93%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerInvoiceUpdateRequestDto.java => InvoiceUpdateRequestDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiMobilePhoneRechargeFindProviderResponseDto.java => MobilePhoneRechargeFindProviderResponseDto.java} (63%) rename src/main/java/com/asaas/apisdk/models/{ApiMobilePhoneRechargeFindProviderResponseValuesDto.java => MobilePhoneRechargeFindProviderResponseValuesDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiMobilePhoneRechargeGetResponseDto.java => MobilePhoneRechargeGetResponseDto.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java => MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningListResponseDto.java => MobilePhoneRechargeListResponseDto.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiMobilePhoneRechargeSaveRequestDto.java => MobilePhoneRechargeSaveRequestDto.java} (90%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountDisableAccountResponseDto.java => MyAccountDisableAccountResponseDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesAnticipationBankSlipDto.java => MyAccountGetAccountFeesAnticipationBankSlipDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesAnticipationCreditCardDto.java => MyAccountGetAccountFeesAnticipationCreditCardDto.java} (79%) create mode 100644 src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationDto.java rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesCreditBureauReportDto.java => MyAccountGetAccountFeesCreditBureauReportDto.java} (79%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesInvoiceDto.java => MyAccountGetAccountFeesInvoiceDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesNotificationDto.java => MyAccountGetAccountFeesNotificationDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesPaymentBankSlipDto.java => MyAccountGetAccountFeesPaymentBankSlipDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesPaymentCreditCardDto.java => MyAccountGetAccountFeesPaymentCreditCardDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesPaymentDebitCardDto.java => MyAccountGetAccountFeesPaymentDebitCardDto.java} (80%) create mode 100644 src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDto.java rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesPaymentPixDto.java => MyAccountGetAccountFeesPaymentPixDto.java} (82%) create mode 100644 src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesTransferDto.java => MyAccountGetAccountFeesTransferDto.java} (58%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesTransferPixDto.java => MyAccountGetAccountFeesTransferPixDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountFeesTransferTedDto.java => MyAccountGetAccountFeesTransferTedDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetAccountNumberResponseDto.java => MyAccountGetAccountNumberResponseDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetStatusResponseDto.java => MyAccountGetStatusResponseDto.java} (55%) rename src/main/java/com/asaas/apisdk/models/{ApiMyAccountGetStatusResponseStatus.java => MyAccountGetStatusResponseStatus.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiNotificationBatchUpdateRequestDto.java => NotificationBatchUpdateRequestDto.java} (65%) rename src/main/java/com/asaas/apisdk/models/{ApiNotificationBatchUpdateResponseDto.java => NotificationBatchUpdateResponseDto.java} (62%) rename src/main/java/com/asaas/apisdk/models/{ApiNotificationGetResponseDto.java => NotificationGetResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiNotificationGetResponseDtoScheduleOffset.java => NotificationGetResponseDtoScheduleOffset.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiNotificationGetResponseNotificationEvent.java => NotificationGetResponseNotificationEvent.java} (76%) create mode 100644 src/main/java/com/asaas/apisdk/models/NotificationListResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiNotificationUpdateRequestDto.java => NotificationUpdateRequestDto.java} (79%) rename src/main/java/com/asaas/apisdk/models/{ApiNotificationUpdateRequestDtoScheduleOffset.java => NotificationUpdateRequestDtoScheduleOffset.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentBankSlipRefundResponseDto.java => PaymentBankSlipRefundResponseDto.java} (82%) create mode 100644 src/main/java/com/asaas/apisdk/models/PaymentBillingInfoResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCallbackRequestDto.java => PaymentCallbackRequestDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentChargebackResponseChargebackDisputeStatus.java => PaymentChargebackResponseChargebackDisputeStatus.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentChargebackResponseChargebackReason.java => PaymentChargebackResponseChargebackReason.java} (90%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentChargebackResponseChargebackStatus.java => PaymentChargebackResponseChargebackStatus.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentChargebackResponseDto.java => PaymentChargebackResponseDto.java} (67%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCheckoutConfigGetResponseDto.java => PaymentCheckoutConfigGetResponseDto.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.java => PaymentCheckoutConfigGetResponseInvoiceConfigStatus.java} (67%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCheckoutConfigSaveRequestDto.java => PaymentCheckoutConfigSaveRequestDto.java} (85%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDeleteResponseDto.java => PaymentDeleteResponseDto.java} (84%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDiscountDiscountType.java => PaymentDiscountDiscountType.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDiscountDto.java => PaymentDiscountDto.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDocumentDeleteResponseDto.java => PaymentDocumentDeleteResponseDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDocumentFileResponseDto.java => PaymentDocumentFileResponseDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDocumentGetResponseDto.java => PaymentDocumentGetResponseDto.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDocumentGetResponsePaymentDocumentType.java => PaymentDocumentGetResponsePaymentDocumentType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiNotificationListResponseDto.java => PaymentDocumentListResponseDto.java} (79%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDocumentSaveRequestDto.java => PaymentDocumentSaveRequestDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDocumentSaveRequestPaymentDocumentType.java => PaymentDocumentSaveRequestPaymentDocumentType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDocumentUpdateRequestDto.java => PaymentDocumentUpdateRequestDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDocumentUpdateRequestPaymentDocumentType.java => PaymentDocumentUpdateRequestPaymentDocumentType.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningShowResponseDto.java => PaymentDunningCancelResponseDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningListRequestPaymentDunningStatus.java => PaymentDunningCancelResponsePaymentDunningStatus.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningSaveRequestPaymentDunningType.java => PaymentDunningCancelResponsePaymentDunningType.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningListHistoryResponseDataDto.java => PaymentDunningListHistoryResponseDataDto.java} (67%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java => PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java} (67%) rename src/main/java/com/asaas/apisdk/models/{ApiCreditBureauReportListResponseDto.java => PaymentDunningListHistoryResponseDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningListPartialPaymentsResponseDataDto.java => PaymentDunningListPartialPaymentsResponseDataDto.java} (78%) create mode 100644 src/main/java/com/asaas/apisdk/models/PaymentDunningListPartialPaymentsResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.java => PaymentDunningListRequestPaymentDunningStatus.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningListRequestPaymentDunningType.java => PaymentDunningListRequestPaymentDunningType.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSplitListResponseDto.java => PaymentDunningListResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java => PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java => PaymentDunningPaymentsAvailableForDunningResponseDataDto.java} (59%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java => PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java} (65%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java => PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java} (67%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java => PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java} (63%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerFiscalInfoListMunicipalServicesResponseDto.java => PaymentDunningPaymentsAvailableForDunningResponseDto.java} (71%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningSaveDocumentsRequestDto.java => PaymentDunningSaveDocumentsRequestDto.java} (88%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningSaveDocumentsResponseDto.java => PaymentDunningSaveDocumentsResponseDto.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningCancelResponsePaymentDunningStatus.java => PaymentDunningSaveDocumentsResponsePaymentDunningStatus.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.java => PaymentDunningSaveDocumentsResponsePaymentDunningType.java} (66%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningSaveRequestDto.java => PaymentDunningSaveRequestDto.java} (85%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningShowResponsePaymentDunningType.java => PaymentDunningSaveRequestPaymentDunningType.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningCancelResponseDto.java => PaymentDunningShowResponseDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningShowResponsePaymentDunningStatus.java => PaymentDunningShowResponsePaymentDunningStatus.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningCancelResponsePaymentDunningType.java => PaymentDunningShowResponsePaymentDunningType.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningSimulateResponseDto.java => PaymentDunningSimulateResponseDto.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentDunningSimulateResponseTypeSimulationItemDto.java => PaymentDunningSimulateResponseTypeSimulationItemDto.java} (70%) create mode 100644 src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType.java rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCustodyGetResponseDto.java => PaymentEscrowGetResponseDto.java} (65%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.java => PaymentEscrowGetResponsePaymentEscrowFinishReason.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCustodyGetResponsePaymentCustodyStatus.java => PaymentEscrowGetResponsePaymentEscrowStatus.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentFineRequestDto.java => PaymentFineRequestDto.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentFineRequestFineType.java => PaymentFineRequestFineType.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentFineResponseDto.java => PaymentFineResponseDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentGetResponseBillingType.java => PaymentGetResponseBillingType.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentGetResponseDto.java => PaymentGetResponseDto.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentStatusResponsePaymentStatus.java => PaymentGetResponsePaymentStatus.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentIdentificationFieldResponseDto.java => PaymentIdentificationFieldResponseDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentInterestRequestDto.java => PaymentInterestRequestDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentInterestResponseDto.java => PaymentInterestResponseDto.java} (79%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentLeanGetResponseBillingType.java => PaymentLeanGetResponseBillingType.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentLeanGetResponseDto.java => PaymentLeanGetResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentLeanGetResponsePaymentStatus.java => PaymentLeanGetResponsePaymentStatus.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiCustomerListResponseDto.java => PaymentLeanListResponseDto.java} (79%) rename src/main/java/com/asaas/apisdk/models/{ApiFinanceGetPaymentStatisticsRequestBillingType.java => PaymentLeanSaveWithCreditCardResponseBillingType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentLeanSaveWithCreditCardResponseDto.java => PaymentLeanSaveWithCreditCardResponseDto.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.java => PaymentLeanSaveWithCreditCardResponsePaymentStatus.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentLimitsResponseCreationDailyDto.java => PaymentLimitsResponseCreationDailyDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentLimitsResponseCreationDto.java => PaymentLimitsResponseCreationDto.java} (58%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentLimitsResponseDto.java => PaymentLimitsResponseDto.java} (61%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignDeleteResponseDto.java => PaymentLinkDeleteResponseDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignFileDeleteResponseDto.java => PaymentLinkFileDeleteResponseDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignFileGetResponseDto.java => PaymentLinkFileGetResponseDto.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignFileImageResponseDto.java => PaymentLinkFileImageResponseDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionListResponseDto.java => PaymentLinkFileListResponseDto.java} (79%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignFileSaveRequestDto.java => PaymentLinkFileSaveRequestDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignSaveRequestBillingType.java => PaymentLinkGetResponseBillingType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignGetResponseChargeType.java => PaymentLinkGetResponseChargeType.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignGetResponseCycle.java => PaymentLinkGetResponseCycle.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignGetResponseDto.java => PaymentLinkGetResponseDto.java} (75%) create mode 100644 src/main/java/com/asaas/apisdk/models/PaymentLinkListResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignGetResponseBillingType.java => PaymentLinkSaveRequestBillingType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignSaveRequestChargeType.java => PaymentLinkSaveRequestChargeType.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignSaveRequestCycle.java => PaymentLinkSaveRequestCycle.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignSaveRequestDto.java => PaymentLinkSaveRequestDto.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignUpdateRequestBillingType.java => PaymentLinkUpdateRequestBillingType.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignUpdateRequestChargeType.java => PaymentLinkUpdateRequestChargeType.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignUpdateRequestCycle.java => PaymentLinkUpdateRequestCycle.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentCampaignUpdateRequestDto.java => PaymentLinkUpdateRequestDto.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentListRequestBillingType.java => PaymentListRequestBillingType.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentListRequestInvoiceStatus.java => PaymentListRequestInvoiceStatus.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentListRequestPaymentStatus.java => PaymentListRequestPaymentStatus.java} (83%) create mode 100644 src/main/java/com/asaas/apisdk/models/PaymentListResponseDto.java create mode 100644 src/main/java/com/asaas/apisdk/models/PaymentPayWithCreditCardRequestDto.java rename src/main/java/com/asaas/apisdk/models/{ApiPaymentPixQrCodeResponseDto.java => PaymentPixQrCodeResponseDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentReceiveInCashRequestDto.java => PaymentReceiveInCashRequestDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentRefundGetResponseDto.java => PaymentRefundGetResponseDto.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentRefundResponsePaymentRefundStatus.java => PaymentRefundGetResponsePaymentRefundStatus.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiChargebackListResponseDto.java => PaymentRefundListResponseDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentRefundRequestDto.java => PaymentRefundRequestDto.java} (84%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentRefundedSplitResponseDto.java => PaymentRefundedSplitResponseDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSaveRequestBillingType.java => PaymentSaveRequestBillingType.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSaveRequestDto.java => PaymentSaveRequestDto.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.java => PaymentSaveWithCreditCardCreditCardCreditCardBrand.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSaveWithCreditCardCreditCardDto.java => PaymentSaveWithCreditCardCreditCardDto.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSaveWithCreditCardRequestBillingType.java => PaymentSaveWithCreditCardRequestBillingType.java} (71%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSaveWithCreditCardRequestDto.java => PaymentSaveWithCreditCardRequestDto.java} (65%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSimulateBankSlipResponseDto.java => PaymentSimulateBankSlipResponseDto.java} (67%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSimulateCreditCardResponseDto.java => PaymentSimulateCreditCardResponseDto.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSimulateInstallmentResponseDto.java => PaymentSimulateInstallmentResponseDto.java} (79%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSimulatePixResponseDto.java => PaymentSimulatePixResponseDto.java} (71%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentLeanSaveWithCreditCardResponseBillingType.java => PaymentSimulateRequestBillingType.java} (67%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSimulateRequestDto.java => PaymentSimulateRequestDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSimulateResponseDto.java => PaymentSimulateResponseDto.java} (54%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSplitGetResponseDto.java => PaymentSplitGetResponseDto.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSplitGetResponsePaymentSplitCancellationReason.java => PaymentSplitGetResponsePaymentSplitCancellationReason.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSplitGetResponsePaymentSplitStatus.java => PaymentSplitGetResponsePaymentSplitStatus.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSplitListPaidRequestPaymentSplitStatus.java => PaymentSplitListPaidRequestPaymentSplitStatus.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSplitListReceivedRequestPaymentSplitStatus.java => PaymentSplitListReceivedRequestPaymentSplitStatus.java} (73%) create mode 100644 src/main/java/com/asaas/apisdk/models/PaymentSplitListResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiPaymentSplitRequestDto.java => PaymentSplitRequestDto.java} (85%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentStatusResponseDto.java => PaymentStatusResponseDto.java} (62%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentGetResponsePaymentStatus.java => PaymentStatusResponsePaymentStatus.java} (85%) rename src/main/java/com/asaas/apisdk/models/{ApiInstallmentSaveRequestBillingType.java => PaymentUpdateRequestBillingType.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentUpdateRequestDto.java => PaymentUpdateRequestDto.java} (63%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentViewingInfoResponseDto.java => PaymentViewingInfoResponseDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiPixAddressKeyGetResponseDto.java => PixAddressKeyGetResponseDto.java} (66%) rename src/main/java/com/asaas/apisdk/models/{ApiPixAddressKeyGetResponsePixAddressKeyStatus.java => PixAddressKeyGetResponsePixAddressKeyStatus.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPixAddressKeySaveRequestPixAddressKeyType.java => PixAddressKeyGetResponsePixAddressKeyType.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiPixAddressKeyListRequestPixAddressKeyStatus.java => PixAddressKeyListRequestPixAddressKeyStatus.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiPixAddressKeyListResponseDto.java => PixAddressKeyListResponseDto.java} (63%) rename src/main/java/com/asaas/apisdk/models/{ApiPixAddressKeyQrCodeGetResponseDto.java => PixAddressKeyQrCodeGetResponseDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiPixAddressKeySaveRequestDto.java => PixAddressKeySaveRequestDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiPixAddressKeyGetResponsePixAddressKeyType.java => PixAddressKeySaveRequestPixAddressKeyType.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiPixOriginalTransactionResponseDto.java => PixOriginalTransactionResponseDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiPixQrCodeDecodeReceiverDto.java => PixQrCodeDecodeReceiverDto.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiPixQrCodeDecodeReceiverPersonType.java => PixQrCodeDecodeReceiverPersonType.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiPixQrCodeDecodeReceiverPixAccountType.java => PixQrCodeDecodeReceiverPixAccountType.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiPixQrCodeDecodeRequestDto.java => PixQrCodeDecodeRequestDto.java} (85%) rename src/main/java/com/asaas/apisdk/models/{ApiPixQrCodeDecodeResponseDto.java => PixQrCodeDecodeResponseDto.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiPixQrCodeDecodeResponsePixQrCodeType.java => PixQrCodeDecodeResponsePixQrCodeType.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.java => PixQrCodeDecodeResponsePixTransactionCashValueFinality.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiPixQrCodeDecodeResponsePixTransactionOriginType.java => PixQrCodeDecodeResponsePixTransactionOriginType.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPixQrCodeDeleteResponseDto.java => PixQrCodeDeleteResponseDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiPixQrCodeSaveRequestDto.java => PixQrCodeSaveRequestDto.java} (85%) rename src/main/java/com/asaas/apisdk/models/{ApiPixQrCodeSaveResponseDto.java => PixQrCodeSaveResponseDto.java} (84%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.java => PixRecurringTransactionExternalAccountDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.java => PixRecurringTransactionGetItemResponseDto.java} (65%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.java => PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.java} (59%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java => PixRecurringTransactionGetResponseDto.java} (56%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.java => PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.java} (58%) create mode 100644 src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.java rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.java => PixRecurringTransactionGetResponsePixRecurringTransactionStatus.java} (65%) rename src/main/java/com/asaas/apisdk/models/{ApiFinancialTransactionListResponseDto.java => PixRecurringTransactionListResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTokenBucketGetAddressKeyResponseDto.java => PixTokenBucketGetAddressKeyResponseDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionExternalAccountResponseDto.java => PixTransactionExternalAccountResponseDto.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionExternalAccountResponsePixAddressKeyType.java => PixTransactionExternalAccountResponsePixAddressKeyType.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionGetResponseDto.java => PixTransactionGetResponseDto.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionGetResponsePixAddressKeyType.java => PixTransactionGetResponsePixAddressKeyType.java} (71%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionGetResponsePixTransactionCashValueFinality.java => PixTransactionGetResponsePixTransactionCashValueFinality.java} (67%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionGetResponsePixTransactionOriginType.java => PixTransactionGetResponsePixTransactionOriginType.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionGetResponsePixTransactionStatus.java => PixTransactionGetResponsePixTransactionStatus.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionGetResponsePixTransactionType.java => PixTransactionGetResponsePixTransactionType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionListRequestPixTransactionStatus.java => PixTransactionListRequestPixTransactionStatus.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionListRequestPixTransactionType.java => PixTransactionListRequestPixTransactionType.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiPaymentLeanListResponseDto.java => PixTransactionListResponseDto.java} (79%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionQrCodePayerResponseDto.java => PixTransactionQrCodePayerResponseDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionQrCodeResponseDto.java => PixTransactionQrCodeResponseDto.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionQrCodeSaveRequestDto.java => PixTransactionQrCodeSaveRequestDto.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionSaveRequestDto.java => PixTransactionSaveRequestDto.java} (59%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java => RecurringPixTransactionListItemsResponseDto.java} (53%) rename src/main/java/com/asaas/apisdk/models/{ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.java => RecurringPixTransactionListRequestPixRecurringTransactionStatus.java} (65%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionConfigureInvoiceRequestDto.java => SubscriptionConfigureInvoiceRequestDto.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java => SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java} (72%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionDeleteInvoiceConfigResponseDto.java => SubscriptionDeleteInvoiceConfigResponseDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionDeleteResponseDto.java => SubscriptionDeleteResponseDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionGetInvoicesRequestInvoiceStatus.java => SubscriptionGetInvoicesRequestInvoiceStatus.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionGetResponseBillingType.java => SubscriptionGetResponseBillingType.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSaveRequestCycle.java => SubscriptionGetResponseCycle.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionGetResponseDto.java => SubscriptionGetResponseDto.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionGetResponseSubscriptionStatus.java => SubscriptionGetResponseSubscriptionStatus.java} (71%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionInvoiceConfigGetResponseDto.java => SubscriptionInvoiceConfigGetResponseDto.java} (78%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionInvoiceConfigUpdateRequestDto.java => SubscriptionInvoiceConfigUpdateRequestDto.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java => SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionListPaymentsRequestPaymentStatus.java => SubscriptionListPaymentsRequestPaymentStatus.java} (81%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionListRequestBillingType.java => SubscriptionListRequestBillingType.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionListRequestSubscriptionStatus.java => SubscriptionListRequestSubscriptionStatus.java} (71%) create mode 100644 src/main/java/com/asaas/apisdk/models/SubscriptionListResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSaveRequestBillingType.java => SubscriptionSaveRequestBillingType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionGetResponseCycle.java => SubscriptionSaveRequestCycle.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSaveRequestDto.java => SubscriptionSaveRequestDto.java} (61%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSaveWithCreditCardRequestBillingType.java => SubscriptionSaveWithCreditCardRequestBillingType.java} (69%) create mode 100644 src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestCycle.java rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSaveWithCreditCardRequestDto.java => SubscriptionSaveWithCreditCardRequestDto.java} (50%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSaveWithCreditCardResponseBillingType.java => SubscriptionSaveWithCreditCardResponseBillingType.java} (72%) create mode 100644 src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseCycle.java rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSaveWithCreditCardResponseDto.java => SubscriptionSaveWithCreditCardResponseDto.java} (63%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.java => SubscriptionSaveWithCreditCardResponseSubscriptionStatus.java} (67%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSplitRequestDto.java => SubscriptionSplitRequestDto.java} (84%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSplitResponseDto.java => SubscriptionSplitResponseDto.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.java => SubscriptionSplitResponseSubscriptionSplitDisabledReason.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionSplitResponseSubscriptionSplitStatus.java => SubscriptionSplitResponseSubscriptionSplitStatus.java} (68%) create mode 100644 src/main/java/com/asaas/apisdk/models/SubscriptionUpdateCreditCardRequestDto.java rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionUpdateRequestBillingType.java => SubscriptionUpdateRequestBillingType.java} (73%) rename src/main/java/com/asaas/apisdk/models/{ApiCheckoutSessionSubscriptionCycle.java => SubscriptionUpdateRequestCycle.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionUpdateRequestDto.java => SubscriptionUpdateRequestDto.java} (57%) rename src/main/java/com/asaas/apisdk/models/{ApiSubscriptionUpdateRequestSubscriptionStatus.java => SubscriptionUpdateRequestSubscriptionStatus.java} (69%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferBankAccountGetResponseDto.java => TransferBankAccountGetResponseDto.java} (77%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferBankAccountSaveRequestBankAccountType.java => TransferBankAccountSaveRequestBankAccountType.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferBankAccountSaveRequestDto.java => TransferBankAccountSaveRequestDto.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferBankGetResponseDto.java => TransferBankGetResponseDto.java} (82%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferBankSaveRequestDto.java => TransferBankSaveRequestDto.java} (79%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferGetResponseDto.java => TransferGetResponseDto.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferGetResponseDtoType.java => TransferGetResponseDtoType.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferGetResponseTransferStatus.java => TransferGetResponseTransferStatus.java} (75%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferGetResponseTransferType.java => TransferGetResponseTransferType.java} (73%) create mode 100644 src/main/java/com/asaas/apisdk/models/TransferListResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiTransferRecurringSaveRequestDto.java => TransferRecurringSaveRequestDto.java} (66%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java => TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java} (64%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferSaveInternalTransferAccountDto.java => TransferSaveInternalTransferAccountDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferSaveInternalTransferRequestDto.java => TransferSaveInternalTransferRequestDto.java} (83%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferSaveInternalTransferResponseDto.java => TransferSaveInternalTransferResponseDto.java} (71%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferSaveInternalTransferResponseDtoType.java => TransferSaveInternalTransferResponseDtoType.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferSaveInternalTransferResponseTransferStatus.java => TransferSaveInternalTransferResponseTransferStatus.java} (70%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferSaveInternalTransferResponseTransferType.java => TransferSaveInternalTransferResponseTransferType.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferSaveRequestDto.java => TransferSaveRequestDto.java} (64%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferSaveRequestPixAddressKeyType.java => TransferSaveRequestPixAddressKeyType.java} (74%) rename src/main/java/com/asaas/apisdk/models/{ApiTransferSaveRequestTransferType.java => TransferSaveRequestTransferType.java} (76%) rename src/main/java/com/asaas/apisdk/models/{ApiWalletGetResponseDto.java => WalletGetResponseDto.java} (83%) create mode 100644 src/main/java/com/asaas/apisdk/models/WalletShowResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiPushNotificationConfigDeleteResponseDto.java => WebhookConfigDeleteResponseDto.java} (80%) rename src/main/java/com/asaas/apisdk/models/{ApiPushNotificationConfigGetResponseDto.java => WebhookConfigGetResponseDto.java} (72%) create mode 100644 src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookEvent.java rename src/main/java/com/asaas/apisdk/models/{ApiPushNotificationConfigSaveRequestPushNotificationSendType.java => WebhookConfigGetResponseWebhookSendType.java} (68%) create mode 100644 src/main/java/com/asaas/apisdk/models/WebhookConfigListResponseDto.java rename src/main/java/com/asaas/apisdk/models/{ApiPushNotificationConfigSaveRequestDto.java => WebhookConfigSaveRequestDto.java} (72%) create mode 100644 src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookEvent.java rename src/main/java/com/asaas/apisdk/models/{ApiPushNotificationConfigGetResponsePushNotificationSendType.java => WebhookConfigSaveRequestWebhookSendType.java} (68%) rename src/main/java/com/asaas/apisdk/models/{ApiPushNotificationConfigUpdateRequestDto.java => WebhookConfigUpdateRequestDto.java} (69%) create mode 100644 src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookEvent.java rename src/main/java/com/asaas/apisdk/models/{ApiPushNotificationConfigUpdateRequestPushNotificationSendType.java => WebhookConfigUpdateRequestWebhookSendType.java} (68%) delete mode 100644 src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionItemsDtoValidator.java delete mode 100644 src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionResponseDtoValidator.java delete mode 100644 src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionSaveRequestDtoValidator.java delete mode 100644 src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiTransferSaveRequestDtoValidator.java rename src/main/java/com/asaas/apisdk/validation/validators/modelValidators/{ApiCheckoutSessionInstallmentDtoValidator.java => CheckoutSessionInstallmentDtoValidator.java} (51%) create mode 100644 src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionItemsDtoValidator.java create mode 100644 src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionResponseDtoValidator.java create mode 100644 src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionSaveRequestDtoValidator.java rename src/main/java/com/asaas/apisdk/validation/validators/modelValidators/{ApiPixQrCodeSaveRequestDtoValidator.java => PixQrCodeSaveRequestDtoValidator.java} (53%) rename src/main/java/com/asaas/apisdk/validation/validators/modelValidators/{ApiTransferRecurringSaveRequestDtoValidator.java => TransferRecurringSaveRequestDtoValidator.java} (50%) create mode 100644 src/main/java/com/asaas/apisdk/validation/validators/modelValidators/TransferSaveRequestDtoValidator.java 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/ApiAccountDocumentDeleteResponseDto.md b/documentation/models/AccountDocumentDeleteResponseDto.md similarity index 91% rename from documentation/models/ApiAccountDocumentDeleteResponseDto.md rename to documentation/models/AccountDocumentDeleteResponseDto.md index 446f5d7..834ab81 100644 --- a/documentation/models/ApiAccountDocumentDeleteResponseDto.md +++ b/documentation/models/AccountDocumentDeleteResponseDto.md @@ -1,4 +1,4 @@ -# ApiAccountDocumentDeleteResponseDto +# AccountDocumentDeleteResponseDto **Properties** diff --git a/documentation/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.md b/documentation/models/AccountDocumentGetResponseAccountDocumentStatus.md similarity index 87% rename from documentation/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.md rename to documentation/models/AccountDocumentGetResponseAccountDocumentStatus.md index 0ac60df..a158c93 100644 --- a/documentation/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.md +++ b/documentation/models/AccountDocumentGetResponseAccountDocumentStatus.md @@ -1,4 +1,4 @@ -# ApiAccountDocumentGetResponseCustomerDocumentStatus +# AccountDocumentGetResponseAccountDocumentStatus Document approval status 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/ApiAccountDocumentGroupResponseCustomerDocumentStatus.md b/documentation/models/AccountDocumentGroupResponseAccountDocumentStatus.md similarity index 88% rename from documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.md rename to documentation/models/AccountDocumentGroupResponseAccountDocumentStatus.md index 60c55fc..05854e3 100644 --- a/documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.md +++ b/documentation/models/AccountDocumentGroupResponseAccountDocumentStatus.md @@ -1,4 +1,4 @@ -# ApiAccountDocumentGroupResponseCustomerDocumentStatus +# AccountDocumentGroupResponseAccountDocumentStatus Document group status diff --git a/documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentType.md b/documentation/models/AccountDocumentGroupResponseAccountDocumentType.md similarity index 92% rename from documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentType.md rename to documentation/models/AccountDocumentGroupResponseAccountDocumentType.md index d0bc721..20ed8c5 100644 --- a/documentation/models/ApiAccountDocumentGroupResponseCustomerDocumentType.md +++ b/documentation/models/AccountDocumentGroupResponseAccountDocumentType.md @@ -1,4 +1,4 @@ -# ApiAccountDocumentGroupResponseCustomerDocumentType +# AccountDocumentGroupResponseAccountDocumentType Type of documents 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/ApiAccountDocumentSaveRequestCustomerDocumentType.md b/documentation/models/AccountDocumentSaveRequestAccountDocumentType.md similarity index 92% rename from documentation/models/ApiAccountDocumentSaveRequestCustomerDocumentType.md rename to documentation/models/AccountDocumentSaveRequestAccountDocumentType.md index 7d6d049..925ca73 100644 --- a/documentation/models/ApiAccountDocumentSaveRequestCustomerDocumentType.md +++ b/documentation/models/AccountDocumentSaveRequestAccountDocumentType.md @@ -1,4 +1,4 @@ -# ApiAccountDocumentSaveRequestCustomerDocumentType +# AccountDocumentSaveRequestAccountDocumentType Document Type 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/ApiAccountDocumentUpdateRequestDto.md b/documentation/models/AccountDocumentUpdateRequestDto.md similarity index 86% rename from documentation/models/ApiAccountDocumentUpdateRequestDto.md rename to documentation/models/AccountDocumentUpdateRequestDto.md index 6fbbdbc..13d3dac 100644 --- a/documentation/models/ApiAccountDocumentUpdateRequestDto.md +++ b/documentation/models/AccountDocumentUpdateRequestDto.md @@ -1,4 +1,4 @@ -# ApiAccountDocumentUpdateRequestDto +# AccountDocumentUpdateRequestDto **Properties** diff --git a/documentation/models/ApiCustomerGetResponseCompanyType.md b/documentation/models/AccountGetResponseCompanyType.md similarity index 92% rename from documentation/models/ApiCustomerGetResponseCompanyType.md rename to documentation/models/AccountGetResponseCompanyType.md index 7f07373..dc60c47 100644 --- a/documentation/models/ApiCustomerGetResponseCompanyType.md +++ b/documentation/models/AccountGetResponseCompanyType.md @@ -1,4 +1,4 @@ -# ApiCustomerGetResponseCompanyType +# AccountGetResponseCompanyType Type of company (only when Legal Entity) 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/ApiCustomerGetResponsePersonType.md b/documentation/models/AccountGetResponsePersonType.md similarity index 89% rename from documentation/models/ApiCustomerGetResponsePersonType.md rename to documentation/models/AccountGetResponsePersonType.md index d132aa9..3c08f37 100644 --- a/documentation/models/ApiCustomerGetResponsePersonType.md +++ b/documentation/models/AccountGetResponsePersonType.md @@ -1,4 +1,4 @@ -# ApiCustomerGetResponsePersonType +# AccountGetResponsePersonType Kind of person 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/ApiCustomerUpdateRequestCityState.md b/documentation/models/AccountInfoCityState.md similarity index 97% rename from documentation/models/ApiCustomerUpdateRequestCityState.md rename to documentation/models/AccountInfoCityState.md index 53e1b49..419a94f 100644 --- a/documentation/models/ApiCustomerUpdateRequestCityState.md +++ b/documentation/models/AccountInfoCityState.md @@ -1,4 +1,4 @@ -# ApiCustomerUpdateRequestCityState +# AccountInfoCityState State abbreviation (SP, RJ, SC, ...) diff --git a/documentation/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.md b/documentation/models/AccountInfoCommercialInfoExpirationResponseDto.md similarity index 81% rename from documentation/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.md rename to documentation/models/AccountInfoCommercialInfoExpirationResponseDto.md index 3b9aac9..3490f8f 100644 --- a/documentation/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.md +++ b/documentation/models/AccountInfoCommercialInfoExpirationResponseDto.md @@ -1,4 +1,6 @@ -# ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto +# AccountInfoCommercialInfoExpirationResponseDto + +Information about the expiration of commercial data **Properties** diff --git a/documentation/models/ApiCustomerSaveRequestCompanyType.md b/documentation/models/AccountInfoGetResponseCompanyType.md similarity index 92% rename from documentation/models/ApiCustomerSaveRequestCompanyType.md rename to documentation/models/AccountInfoGetResponseCompanyType.md index c6bea48..60b4bac 100644 --- a/documentation/models/ApiCustomerSaveRequestCompanyType.md +++ b/documentation/models/AccountInfoGetResponseCompanyType.md @@ -1,4 +1,4 @@ -# ApiCustomerSaveRequestCompanyType +# AccountInfoGetResponseCompanyType Type of company (only when Legal Entity) 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/ApiCustomerUpdateRequestGetResponsePersonType.md b/documentation/models/AccountInfoGetResponsePersonType.md similarity index 85% rename from documentation/models/ApiCustomerUpdateRequestGetResponsePersonType.md rename to documentation/models/AccountInfoGetResponsePersonType.md index 7904191..5c1cebb 100644 --- a/documentation/models/ApiCustomerUpdateRequestGetResponsePersonType.md +++ b/documentation/models/AccountInfoGetResponsePersonType.md @@ -1,4 +1,4 @@ -# ApiCustomerUpdateRequestGetResponsePersonType +# AccountInfoGetResponsePersonType Person Type diff --git a/documentation/models/ApiCustomerUpdateRequestGetResponseStatus.md b/documentation/models/AccountInfoGetResponseStatus.md similarity index 93% rename from documentation/models/ApiCustomerUpdateRequestGetResponseStatus.md rename to documentation/models/AccountInfoGetResponseStatus.md index d2fd3bf..18e0ca2 100644 --- a/documentation/models/ApiCustomerUpdateRequestGetResponseStatus.md +++ b/documentation/models/AccountInfoGetResponseStatus.md @@ -1,4 +1,4 @@ -# ApiCustomerUpdateRequestGetResponseStatus +# AccountInfoGetResponseStatus Account status diff --git a/documentation/models/ApiCustomerSaveResponseCompanyType.md b/documentation/models/AccountInfoSaveRequestCompanyType.md similarity index 92% rename from documentation/models/ApiCustomerSaveResponseCompanyType.md rename to documentation/models/AccountInfoSaveRequestCompanyType.md index 5d2fa65..fd7f5bd 100644 --- a/documentation/models/ApiCustomerSaveResponseCompanyType.md +++ b/documentation/models/AccountInfoSaveRequestCompanyType.md @@ -1,4 +1,4 @@ -# ApiCustomerSaveResponseCompanyType +# AccountInfoSaveRequestCompanyType Type of company (only when Legal Entity) 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/ApiCustomerUpdateRequestSaveRequestPersonType.md b/documentation/models/AccountInfoSaveRequestPersonType.md similarity index 85% rename from documentation/models/ApiCustomerUpdateRequestSaveRequestPersonType.md rename to documentation/models/AccountInfoSaveRequestPersonType.md index a6c240f..beaefa3 100644 --- a/documentation/models/ApiCustomerUpdateRequestSaveRequestPersonType.md +++ b/documentation/models/AccountInfoSaveRequestPersonType.md @@ -1,4 +1,4 @@ -# ApiCustomerUpdateRequestSaveRequestPersonType +# AccountInfoSaveRequestPersonType Person Type diff --git a/documentation/models/ApiBillListResponseDto.md b/documentation/models/AccountListResponseDto.md similarity index 91% rename from documentation/models/ApiBillListResponseDto.md rename to documentation/models/AccountListResponseDto.md index 638f46b..2709d62 100644 --- a/documentation/models/ApiBillListResponseDto.md +++ b/documentation/models/AccountListResponseDto.md @@ -1,4 +1,4 @@ -# ApiBillListResponseDto +# AccountListResponseDto **Properties** @@ -9,6 +9,6 @@ | 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 | +| data | List\ | ❌ | List of objects | diff --git a/documentation/models/ApiMyAccountGetAccountNumberResponseDto.md b/documentation/models/AccountNumberDto.md similarity index 88% rename from documentation/models/ApiMyAccountGetAccountNumberResponseDto.md rename to documentation/models/AccountNumberDto.md index 4f6ad7c..d7e3c34 100644 --- a/documentation/models/ApiMyAccountGetAccountNumberResponseDto.md +++ b/documentation/models/AccountNumberDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountNumberResponseDto +# AccountNumberDto + +Subaccount number in Asaas **Properties** diff --git a/documentation/models/ApiCustomerPaymentCustodyConfigDto.md b/documentation/models/AccountPaymentEscrowConfigDto.md similarity index 96% rename from documentation/models/ApiCustomerPaymentCustodyConfigDto.md rename to documentation/models/AccountPaymentEscrowConfigDto.md index 346d5f1..0863ea4 100644 --- a/documentation/models/ApiCustomerPaymentCustodyConfigDto.md +++ b/documentation/models/AccountPaymentEscrowConfigDto.md @@ -1,4 +1,4 @@ -# ApiCustomerPaymentCustodyConfigDto +# AccountPaymentEscrowConfigDto **Properties** diff --git a/documentation/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.md b/documentation/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.md similarity index 94% rename from documentation/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.md rename to documentation/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.md index 157adda..3e4db2d 100644 --- a/documentation/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.md +++ b/documentation/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.md @@ -1,4 +1,4 @@ -# ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto +# AccountSaveOrUpdatePaymentEscrowConfigRequestDto **Properties** diff --git a/documentation/models/ApiCustomerUpdateRequestGetResponseCompanyType.md b/documentation/models/AccountSaveRequestCompanyType.md similarity index 90% rename from documentation/models/ApiCustomerUpdateRequestGetResponseCompanyType.md rename to documentation/models/AccountSaveRequestCompanyType.md index 02e036f..8c9df9a 100644 --- a/documentation/models/ApiCustomerUpdateRequestGetResponseCompanyType.md +++ b/documentation/models/AccountSaveRequestCompanyType.md @@ -1,4 +1,4 @@ -# ApiCustomerUpdateRequestGetResponseCompanyType +# AccountSaveRequestCompanyType Type of company (only when Legal Entity) 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/ApiCustomerSaveResponsePersonType.md b/documentation/models/AccountSaveResponsePersonType.md similarity index 88% rename from documentation/models/ApiCustomerSaveResponsePersonType.md rename to documentation/models/AccountSaveResponsePersonType.md index 3a3ed5b..67687be 100644 --- a/documentation/models/ApiCustomerSaveResponsePersonType.md +++ b/documentation/models/AccountSaveResponsePersonType.md @@ -1,4 +1,4 @@ -# ApiCustomerSaveResponsePersonType +# AccountSaveResponsePersonType Kind of person diff --git a/documentation/models/ApiReceivableAnticipationConfigurationGetResponseDto.md b/documentation/models/AnticipationConfigurationGetResponseDto.md similarity index 89% rename from documentation/models/ApiReceivableAnticipationConfigurationGetResponseDto.md rename to documentation/models/AnticipationConfigurationGetResponseDto.md index 1d3d28d..6570a02 100644 --- a/documentation/models/ApiReceivableAnticipationConfigurationGetResponseDto.md +++ b/documentation/models/AnticipationConfigurationGetResponseDto.md @@ -1,4 +1,4 @@ -# ApiReceivableAnticipationConfigurationGetResponseDto +# AnticipationConfigurationGetResponseDto **Properties** diff --git a/documentation/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.md b/documentation/models/AnticipationConfigurationUpdateRequestDto.md similarity index 89% rename from documentation/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.md rename to documentation/models/AnticipationConfigurationUpdateRequestDto.md index c257ac1..eb9471e 100644 --- a/documentation/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.md +++ b/documentation/models/AnticipationConfigurationUpdateRequestDto.md @@ -1,4 +1,4 @@ -# ApiReceivableAnticipationConfigurationUpdateRequestDto +# AnticipationConfigurationUpdateRequestDto **Properties** diff --git a/documentation/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.md b/documentation/models/AnticipationGetResponseAnticipationStatus.md similarity index 89% rename from documentation/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.md rename to documentation/models/AnticipationGetResponseAnticipationStatus.md index da9ca8d..3858860 100644 --- a/documentation/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.md +++ b/documentation/models/AnticipationGetResponseAnticipationStatus.md @@ -1,4 +1,4 @@ -# ApiReceivableAnticipationGetResponseReceivableAnticipationStatus +# AnticipationGetResponseAnticipationStatus Anticipation status 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/ApiReceivableAnticipationLimitsInfoResponseDto.md b/documentation/models/AnticipationLimitsInfoResponseDto.md similarity index 85% rename from documentation/models/ApiReceivableAnticipationLimitsInfoResponseDto.md rename to documentation/models/AnticipationLimitsInfoResponseDto.md index eec0a19..728b076 100644 --- a/documentation/models/ApiReceivableAnticipationLimitsInfoResponseDto.md +++ b/documentation/models/AnticipationLimitsInfoResponseDto.md @@ -1,4 +1,6 @@ -# ApiReceivableAnticipationLimitsInfoResponseDto +# AnticipationLimitsInfoResponseDto + +Credit card anticipation limits **Properties** 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/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.md b/documentation/models/AnticipationListRequestAnticipationStatus.md similarity index 88% rename from documentation/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.md rename to documentation/models/AnticipationListRequestAnticipationStatus.md index 254c6bf..83e6c0d 100644 --- a/documentation/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.md +++ b/documentation/models/AnticipationListRequestAnticipationStatus.md @@ -1,4 +1,4 @@ -# ApiReceivableAnticipationListRequestReceivableAnticipationStatus +# AnticipationListRequestAnticipationStatus Filter by status 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/ApiReceivableAnticipationSaveRequestDto.md b/documentation/models/AnticipationSaveRequestDto.md similarity index 91% rename from documentation/models/ApiReceivableAnticipationSaveRequestDto.md rename to documentation/models/AnticipationSaveRequestDto.md index b0f23de..368a2ac 100644 --- a/documentation/models/ApiReceivableAnticipationSaveRequestDto.md +++ b/documentation/models/AnticipationSaveRequestDto.md @@ -1,4 +1,4 @@ -# ApiReceivableAnticipationSaveRequestDto +# AnticipationSaveRequestDto **Properties** diff --git a/documentation/models/ApiReceivableAnticipationSimulateRequestDto.md b/documentation/models/AnticipationSimulateRequestDto.md similarity index 89% rename from documentation/models/ApiReceivableAnticipationSimulateRequestDto.md rename to documentation/models/AnticipationSimulateRequestDto.md index 0918514..d070b0b 100644 --- a/documentation/models/ApiReceivableAnticipationSimulateRequestDto.md +++ b/documentation/models/AnticipationSimulateRequestDto.md @@ -1,4 +1,4 @@ -# ApiReceivableAnticipationSimulateRequestDto +# AnticipationSimulateRequestDto **Properties** diff --git a/documentation/models/ApiReceivableAnticipationSimulateResponseDto.md b/documentation/models/AnticipationSimulateResponseDto.md similarity index 97% rename from documentation/models/ApiReceivableAnticipationSimulateResponseDto.md rename to documentation/models/AnticipationSimulateResponseDto.md index e9d612e..6a3f7f5 100644 --- a/documentation/models/ApiReceivableAnticipationSimulateResponseDto.md +++ b/documentation/models/AnticipationSimulateResponseDto.md @@ -1,4 +1,4 @@ -# ApiReceivableAnticipationSimulateResponseDto +# AnticipationSimulateResponseDto **Properties** 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/ApiBankSlipBillingInfoResponseDto.md b/documentation/models/BankSlipBillingInfoResponseDto.md similarity index 93% rename from documentation/models/ApiBankSlipBillingInfoResponseDto.md rename to documentation/models/BankSlipBillingInfoResponseDto.md index 85d8bd2..a245924 100644 --- a/documentation/models/ApiBankSlipBillingInfoResponseDto.md +++ b/documentation/models/BankSlipBillingInfoResponseDto.md @@ -1,4 +1,6 @@ -# ApiBankSlipBillingInfoResponseDto +# BankSlipBillingInfoResponseDto + +Payment data related to bank slip **Properties** diff --git a/documentation/models/ApiBillGetResponseBillStatus.md b/documentation/models/BillGetResponseBillStatus.md similarity index 97% rename from documentation/models/ApiBillGetResponseBillStatus.md rename to documentation/models/BillGetResponseBillStatus.md index b789586..2525d67 100644 --- a/documentation/models/ApiBillGetResponseBillStatus.md +++ b/documentation/models/BillGetResponseBillStatus.md @@ -1,4 +1,4 @@ -# ApiBillGetResponseBillStatus +# BillGetResponseBillStatus Bill payment status 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/ApiBillSaveRequestDto.md b/documentation/models/BillSaveRequestDto.md similarity index 98% rename from documentation/models/ApiBillSaveRequestDto.md rename to documentation/models/BillSaveRequestDto.md index ce28bf9..3a46dd0 100644 --- a/documentation/models/ApiBillSaveRequestDto.md +++ b/documentation/models/BillSaveRequestDto.md @@ -1,4 +1,4 @@ -# ApiBillSaveRequestDto +# BillSaveRequestDto **Properties** diff --git a/documentation/models/ApiBillSimulateBankSlipInfoResponseDto.md b/documentation/models/BillSimulateBankSlipInfoResponseDto.md similarity index 96% rename from documentation/models/ApiBillSimulateBankSlipInfoResponseDto.md rename to documentation/models/BillSimulateBankSlipInfoResponseDto.md index f50a145..2571269 100644 --- a/documentation/models/ApiBillSimulateBankSlipInfoResponseDto.md +++ b/documentation/models/BillSimulateBankSlipInfoResponseDto.md @@ -1,4 +1,6 @@ -# ApiBillSimulateBankSlipInfoResponseDto +# BillSimulateBankSlipInfoResponseDto + +Information about the bill to be paid **Properties** diff --git a/documentation/models/ApiBillSimulateRequestDto.md b/documentation/models/BillSimulateRequestDto.md similarity index 92% rename from documentation/models/ApiBillSimulateRequestDto.md rename to documentation/models/BillSimulateRequestDto.md index 54cacf8..449c512 100644 --- a/documentation/models/ApiBillSimulateRequestDto.md +++ b/documentation/models/BillSimulateRequestDto.md @@ -1,4 +1,4 @@ -# ApiBillSimulateRequestDto +# BillSimulateRequestDto **Properties** 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/ApiChargebackCreditCardResponseCreditCardBrand.md b/documentation/models/ChargebackCreditCardResponseCreditCardBrand.md similarity index 89% rename from documentation/models/ApiChargebackCreditCardResponseCreditCardBrand.md rename to documentation/models/ChargebackCreditCardResponseCreditCardBrand.md index e9b726e..9a60445 100644 --- a/documentation/models/ApiChargebackCreditCardResponseCreditCardBrand.md +++ b/documentation/models/ChargebackCreditCardResponseCreditCardBrand.md @@ -1,4 +1,4 @@ -# ApiChargebackCreditCardResponseCreditCardBrand +# ChargebackCreditCardResponseCreditCardBrand Flag of the card used @@ -12,7 +12,6 @@ Flag of the card used | DINERS | String | ✅ | "DINERS" | | DISCOVER | String | ✅ | "DISCOVER" | | AMEX | String | ✅ | "AMEX" | -| HIPERCARD | String | ✅ | "HIPERCARD" | | CABAL | String | ✅ | "CABAL" | | BANESCARD | String | ✅ | "BANESCARD" | | CREDZ | String | ✅ | "CREDZ" | 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/ApiChargebackListRequestChargebackStatus.md b/documentation/models/ChargebackListRequestChargebackStatus.md similarity index 92% rename from documentation/models/ApiChargebackListRequestChargebackStatus.md rename to documentation/models/ChargebackListRequestChargebackStatus.md index b0a9426..24aac18 100644 --- a/documentation/models/ApiChargebackListRequestChargebackStatus.md +++ b/documentation/models/ChargebackListRequestChargebackStatus.md @@ -1,4 +1,4 @@ -# ApiChargebackListRequestChargebackStatus +# ChargebackListRequestChargebackStatus Filter by chargeback status. diff --git a/documentation/models/ApiChargebackListRequestCreditCardBrand.md b/documentation/models/ChargebackListRequestCreditCardBrand.md similarity index 90% rename from documentation/models/ApiChargebackListRequestCreditCardBrand.md rename to documentation/models/ChargebackListRequestCreditCardBrand.md index 2290b84..3aff2d5 100644 --- a/documentation/models/ApiChargebackListRequestCreditCardBrand.md +++ b/documentation/models/ChargebackListRequestCreditCardBrand.md @@ -1,4 +1,4 @@ -# ApiChargebackListRequestCreditCardBrand +# ChargebackListRequestCreditCardBrand Filter by used card brand. @@ -12,7 +12,6 @@ Filter by used card brand. | DINERS | String | ✅ | "DINERS" | | DISCOVER | String | ✅ | "DISCOVER" | | AMEX | String | ✅ | "AMEX" | -| HIPERCARD | String | ✅ | "HIPERCARD" | | CABAL | String | ✅ | "CABAL" | | BANESCARD | String | ✅ | "BANESCARD" | | CREDZ | String | ✅ | "CREDZ" | diff --git a/documentation/models/ApiInstallmentListResponseDto.md b/documentation/models/ChargebackListResponseDto.md similarity index 91% rename from documentation/models/ApiInstallmentListResponseDto.md rename to documentation/models/ChargebackListResponseDto.md index 84e6665..06c4d3f 100644 --- a/documentation/models/ApiInstallmentListResponseDto.md +++ b/documentation/models/ChargebackListResponseDto.md @@ -1,4 +1,4 @@ -# ApiInstallmentListResponseDto +# ChargebackListResponseDto **Properties** @@ -9,6 +9,6 @@ | 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 | +| data | List\ | ❌ | List of objects | diff --git a/documentation/models/ApiChargebackSaveDisputeRequestDto.md b/documentation/models/ChargebackSaveDisputeRequestDto.md similarity index 89% rename from documentation/models/ApiChargebackSaveDisputeRequestDto.md rename to documentation/models/ChargebackSaveDisputeRequestDto.md index a709964..9f93676 100644 --- a/documentation/models/ApiChargebackSaveDisputeRequestDto.md +++ b/documentation/models/ChargebackSaveDisputeRequestDto.md @@ -1,4 +1,4 @@ -# ApiChargebackSaveDisputeRequestDto +# ChargebackSaveDisputeRequestDto **Properties** diff --git a/documentation/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.md b/documentation/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.md similarity index 85% rename from documentation/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.md rename to documentation/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.md index d90343b..b3d40f8 100644 --- a/documentation/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.md +++ b/documentation/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.md @@ -1,4 +1,4 @@ -# ApiChargebackSaveDisputeResponseChargebackDisputeStatus +# ChargebackSaveDisputeResponseChargebackDisputeStatus Dispute status. 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/ApiCheckoutSessionCallbackDto.md b/documentation/models/CheckoutSessionCallbackDto.md similarity index 81% rename from documentation/models/ApiCheckoutSessionCallbackDto.md rename to documentation/models/CheckoutSessionCallbackDto.md index 2ffab93..df711f6 100644 --- a/documentation/models/ApiCheckoutSessionCallbackDto.md +++ b/documentation/models/CheckoutSessionCallbackDto.md @@ -1,4 +1,6 @@ -# ApiCheckoutSessionCallbackDto +# CheckoutSessionCallbackDto + +Automatic redirection information after payment on the checkout screen **Properties** diff --git a/documentation/models/ApiCheckoutSessionCustomerDataDto.md b/documentation/models/CheckoutSessionCustomerDataDto.md similarity index 95% rename from documentation/models/ApiCheckoutSessionCustomerDataDto.md rename to documentation/models/CheckoutSessionCustomerDataDto.md index 388113b..1d61f6b 100644 --- a/documentation/models/ApiCheckoutSessionCustomerDataDto.md +++ b/documentation/models/CheckoutSessionCustomerDataDto.md @@ -1,4 +1,6 @@ -# ApiCheckoutSessionCustomerDataDto +# CheckoutSessionCustomerDataDto + +Customer data **Properties** diff --git a/documentation/models/ApiCheckoutSessionInstallmentDto.md b/documentation/models/CheckoutSessionInstallmentDto.md similarity index 70% rename from documentation/models/ApiCheckoutSessionInstallmentDto.md rename to documentation/models/CheckoutSessionInstallmentDto.md index dda8689..a9f2a60 100644 --- a/documentation/models/ApiCheckoutSessionInstallmentDto.md +++ b/documentation/models/CheckoutSessionInstallmentDto.md @@ -1,4 +1,6 @@ -# ApiCheckoutSessionInstallmentDto +# CheckoutSessionInstallmentDto + +Installment details. If informed, it will be mandatory to include the `INSTALLMENT` chargeType **Properties** diff --git a/documentation/models/ApiCheckoutSessionItemsDto.md b/documentation/models/CheckoutSessionItemsDto.md similarity index 90% rename from documentation/models/ApiCheckoutSessionItemsDto.md rename to documentation/models/CheckoutSessionItemsDto.md index 9df3be4..0c1f0c0 100644 --- a/documentation/models/ApiCheckoutSessionItemsDto.md +++ b/documentation/models/CheckoutSessionItemsDto.md @@ -1,4 +1,6 @@ -# ApiCheckoutSessionItemsDto +# CheckoutSessionItemsDto + +List of items at checkout **Properties** 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/ApiCheckoutSessionSplitDto.md b/documentation/models/CheckoutSessionSplitDto.md similarity index 95% rename from documentation/models/ApiCheckoutSessionSplitDto.md rename to documentation/models/CheckoutSessionSplitDto.md index 97d5864..371052c 100644 --- a/documentation/models/ApiCheckoutSessionSplitDto.md +++ b/documentation/models/CheckoutSessionSplitDto.md @@ -1,4 +1,6 @@ -# ApiCheckoutSessionSplitDto +# CheckoutSessionSplitDto + +Split Settings **Properties** diff --git a/documentation/models/ApiSubscriptionUpdateRequestCycle.md b/documentation/models/CheckoutSessionSubscriptionCycle.md similarity index 94% rename from documentation/models/ApiSubscriptionUpdateRequestCycle.md rename to documentation/models/CheckoutSessionSubscriptionCycle.md index 51e6d94..d62d06b 100644 --- a/documentation/models/ApiSubscriptionUpdateRequestCycle.md +++ b/documentation/models/CheckoutSessionSubscriptionCycle.md @@ -1,4 +1,4 @@ -# ApiSubscriptionUpdateRequestCycle +# CheckoutSessionSubscriptionCycle Billing frequency 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/ApiCreditBureauReportGetResponseDto.md b/documentation/models/CreditBureauReportGetResponseDto.md similarity index 96% rename from documentation/models/ApiCreditBureauReportGetResponseDto.md rename to documentation/models/CreditBureauReportGetResponseDto.md index bcdd27b..292611d 100644 --- a/documentation/models/ApiCreditBureauReportGetResponseDto.md +++ b/documentation/models/CreditBureauReportGetResponseDto.md @@ -1,4 +1,4 @@ -# ApiCreditBureauReportGetResponseDto +# CreditBureauReportGetResponseDto **Properties** diff --git a/documentation/models/ApiPaymentCampaignListResponseDto.md b/documentation/models/CreditBureauReportListResponseDto.md similarity index 91% rename from documentation/models/ApiPaymentCampaignListResponseDto.md rename to documentation/models/CreditBureauReportListResponseDto.md index d03c76a..1f0a201 100644 --- a/documentation/models/ApiPaymentCampaignListResponseDto.md +++ b/documentation/models/CreditBureauReportListResponseDto.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignListResponseDto +# CreditBureauReportListResponseDto **Properties** @@ -9,6 +9,6 @@ | 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 | +| data | List\ | ❌ | List of objects | diff --git a/documentation/models/ApiCreditBureauReportSaveRequestDto.md b/documentation/models/CreditBureauReportSaveRequestDto.md similarity index 93% rename from documentation/models/ApiCreditBureauReportSaveRequestDto.md rename to documentation/models/CreditBureauReportSaveRequestDto.md index 54cc4af..62a13bf 100644 --- a/documentation/models/ApiCreditBureauReportSaveRequestDto.md +++ b/documentation/models/CreditBureauReportSaveRequestDto.md @@ -1,4 +1,4 @@ -# ApiCreditBureauReportSaveRequestDto +# CreditBureauReportSaveRequestDto **Properties** diff --git a/documentation/models/ApiCreditCardHolderInfoRequestDto.md b/documentation/models/CreditCardHolderInfoRequestDto.md similarity index 93% rename from documentation/models/ApiCreditCardHolderInfoRequestDto.md rename to documentation/models/CreditCardHolderInfoRequestDto.md index 9a3def9..535a44b 100644 --- a/documentation/models/ApiCreditCardHolderInfoRequestDto.md +++ b/documentation/models/CreditCardHolderInfoRequestDto.md @@ -1,4 +1,6 @@ -# ApiCreditCardHolderInfoRequestDto +# CreditCardHolderInfoRequestDto + +Credit card holder information **Properties** diff --git a/documentation/models/ApiCreditCardRequestDto.md b/documentation/models/CreditCardRequestDto.md similarity index 92% rename from documentation/models/ApiCreditCardRequestDto.md rename to documentation/models/CreditCardRequestDto.md index 2f51ede..8266c51 100644 --- a/documentation/models/ApiCreditCardRequestDto.md +++ b/documentation/models/CreditCardRequestDto.md @@ -1,4 +1,6 @@ -# ApiCreditCardRequestDto +# CreditCardRequestDto + +Credit card information **Properties** 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/ApiCreditCardTokenizeResponseCreditCardBrand.md b/documentation/models/CreditCardTokenizeResponseCreditCardBrand.md similarity index 89% rename from documentation/models/ApiCreditCardTokenizeResponseCreditCardBrand.md rename to documentation/models/CreditCardTokenizeResponseCreditCardBrand.md index 4fd7b88..6ba675d 100644 --- a/documentation/models/ApiCreditCardTokenizeResponseCreditCardBrand.md +++ b/documentation/models/CreditCardTokenizeResponseCreditCardBrand.md @@ -1,4 +1,4 @@ -# ApiCreditCardTokenizeResponseCreditCardBrand +# CreditCardTokenizeResponseCreditCardBrand Brand of the card used @@ -12,7 +12,6 @@ Brand of the card used | DINERS | String | ✅ | "DINERS" | | DISCOVER | String | ✅ | "DISCOVER" | | AMEX | String | ✅ | "AMEX" | -| HIPERCARD | String | ✅ | "HIPERCARD" | | CABAL | String | ✅ | "CABAL" | | BANESCARD | String | ✅ | "BANESCARD" | | CREDZ | String | ✅ | "CREDZ" | 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/ApiCustomerAccountDeleteResponseDto.md b/documentation/models/CustomerDeleteResponseDto.md similarity index 91% rename from documentation/models/ApiCustomerAccountDeleteResponseDto.md rename to documentation/models/CustomerDeleteResponseDto.md index dce2326..4e0cfc8 100644 --- a/documentation/models/ApiCustomerAccountDeleteResponseDto.md +++ b/documentation/models/CustomerDeleteResponseDto.md @@ -1,4 +1,4 @@ -# ApiCustomerAccountDeleteResponseDto +# CustomerDeleteResponseDto **Properties** 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/ApiCustomerAccountGetResponsePersonType.md b/documentation/models/CustomerGetResponsePersonType.md similarity index 87% rename from documentation/models/ApiCustomerAccountGetResponsePersonType.md rename to documentation/models/CustomerGetResponsePersonType.md index f082e47..7ef9aa6 100644 --- a/documentation/models/ApiCustomerAccountGetResponsePersonType.md +++ b/documentation/models/CustomerGetResponsePersonType.md @@ -1,4 +1,4 @@ -# ApiCustomerAccountGetResponsePersonType +# CustomerGetResponsePersonType Kind of person 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/ApiCustomerAccountSaveRequestDto.md b/documentation/models/CustomerSaveRequestDto.md similarity index 98% rename from documentation/models/ApiCustomerAccountSaveRequestDto.md rename to documentation/models/CustomerSaveRequestDto.md index 9032650..53cd9eb 100644 --- a/documentation/models/ApiCustomerAccountSaveRequestDto.md +++ b/documentation/models/CustomerSaveRequestDto.md @@ -1,4 +1,4 @@ -# ApiCustomerAccountSaveRequestDto +# CustomerSaveRequestDto **Properties** diff --git a/documentation/models/ApiCustomerAccountUpdateRequestDto.md b/documentation/models/CustomerUpdateRequestDto.md similarity index 98% rename from documentation/models/ApiCustomerAccountUpdateRequestDto.md rename to documentation/models/CustomerUpdateRequestDto.md index 929dee9..a4032db 100644 --- a/documentation/models/ApiCustomerAccountUpdateRequestDto.md +++ b/documentation/models/CustomerUpdateRequestDto.md @@ -1,4 +1,4 @@ -# ApiCustomerAccountUpdateRequestDto +# CustomerUpdateRequestDto **Properties** 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/ApiErrorResponseItemDto.md b/documentation/models/ErrorResponseItemDto.md similarity index 88% rename from documentation/models/ApiErrorResponseItemDto.md rename to documentation/models/ErrorResponseItemDto.md index 9db9423..73f677e 100644 --- a/documentation/models/ApiErrorResponseItemDto.md +++ b/documentation/models/ErrorResponseItemDto.md @@ -1,4 +1,6 @@ -# ApiErrorResponseItemDto +# ErrorResponseItemDto + +List of objects **Properties** diff --git a/documentation/models/ApiFinanceBalanceResponseDto.md b/documentation/models/FinanceBalanceResponseDto.md similarity index 88% rename from documentation/models/ApiFinanceBalanceResponseDto.md rename to documentation/models/FinanceBalanceResponseDto.md index 541dffa..50cc8d8 100644 --- a/documentation/models/ApiFinanceBalanceResponseDto.md +++ b/documentation/models/FinanceBalanceResponseDto.md @@ -1,4 +1,4 @@ -# ApiFinanceBalanceResponseDto +# FinanceBalanceResponseDto **Properties** diff --git a/documentation/models/ApiFinanceGetPaymentStatisticsRequestBillingType.md b/documentation/models/FinanceGetPaymentStatisticsRequestBillingType.md similarity index 91% rename from documentation/models/ApiFinanceGetPaymentStatisticsRequestBillingType.md rename to documentation/models/FinanceGetPaymentStatisticsRequestBillingType.md index 4e52707..2c84b19 100644 --- a/documentation/models/ApiFinanceGetPaymentStatisticsRequestBillingType.md +++ b/documentation/models/FinanceGetPaymentStatisticsRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiFinanceGetPaymentStatisticsRequestBillingType +# FinanceGetPaymentStatisticsRequestBillingType Filter by payment method diff --git a/documentation/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.md b/documentation/models/FinanceGetPaymentStatisticsRequestPaymentStatus.md similarity index 88% rename from documentation/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.md rename to documentation/models/FinanceGetPaymentStatisticsRequestPaymentStatus.md index 86a0bb0..e20ceb6 100644 --- a/documentation/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.md +++ b/documentation/models/FinanceGetPaymentStatisticsRequestPaymentStatus.md @@ -1,4 +1,4 @@ -# ApiFinanceGetPaymentStatisticsRequestPaymentStatus +# FinanceGetPaymentStatisticsRequestPaymentStatus Filter by status diff --git a/documentation/models/ApiFinanceGetPaymentStatisticsResponseDto.md b/documentation/models/FinanceGetPaymentStatisticsResponseDto.md similarity index 88% rename from documentation/models/ApiFinanceGetPaymentStatisticsResponseDto.md rename to documentation/models/FinanceGetPaymentStatisticsResponseDto.md index bee586f..05d8cd4 100644 --- a/documentation/models/ApiFinanceGetPaymentStatisticsResponseDto.md +++ b/documentation/models/FinanceGetPaymentStatisticsResponseDto.md @@ -1,4 +1,4 @@ -# ApiFinanceGetPaymentStatisticsResponseDto +# FinanceGetPaymentStatisticsResponseDto **Properties** diff --git a/documentation/models/ApiFinanceGetSplitStatisticsResponseDto.md b/documentation/models/FinanceGetSplitStatisticsResponseDto.md similarity index 87% rename from documentation/models/ApiFinanceGetSplitStatisticsResponseDto.md rename to documentation/models/FinanceGetSplitStatisticsResponseDto.md index b47a3cb..3d8a8eb 100644 --- a/documentation/models/ApiFinanceGetSplitStatisticsResponseDto.md +++ b/documentation/models/FinanceGetSplitStatisticsResponseDto.md @@ -1,4 +1,4 @@ -# ApiFinanceGetSplitStatisticsResponseDto +# FinanceGetSplitStatisticsResponseDto **Properties** 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/ApiFinancialTransactionGetResponseFinancialTransactionType.md b/documentation/models/FinancialTransactionGetResponseFinancialTransactionType.md similarity index 98% rename from documentation/models/ApiFinancialTransactionGetResponseFinancialTransactionType.md rename to documentation/models/FinancialTransactionGetResponseFinancialTransactionType.md index 74aa993..5c02f3e 100644 --- a/documentation/models/ApiFinancialTransactionGetResponseFinancialTransactionType.md +++ b/documentation/models/FinancialTransactionGetResponseFinancialTransactionType.md @@ -1,4 +1,4 @@ -# ApiFinancialTransactionGetResponseFinancialTransactionType +# FinancialTransactionGetResponseFinancialTransactionType Transaction type @@ -123,6 +123,7 @@ Transaction type | 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" | 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/ApiCustomerFiscalInfoGetResponseDto.md b/documentation/models/FiscalInfoGetResponseDto.md similarity index 99% rename from documentation/models/ApiCustomerFiscalInfoGetResponseDto.md rename to documentation/models/FiscalInfoGetResponseDto.md index 7301c12..170c88e 100644 --- a/documentation/models/ApiCustomerFiscalInfoGetResponseDto.md +++ b/documentation/models/FiscalInfoGetResponseDto.md @@ -1,4 +1,4 @@ -# ApiCustomerFiscalInfoGetResponseDto +# FiscalInfoGetResponseDto **Properties** diff --git a/documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.md b/documentation/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.md similarity index 84% rename from documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.md rename to documentation/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.md index f78bc1b..5c63838 100644 --- a/documentation/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.md +++ b/documentation/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.md @@ -1,4 +1,6 @@ -# ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto +# FiscalInfoListInvoiceNbsCodesResponseDataDto + +List of objects **Properties** 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/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.md b/documentation/models/FiscalInfoListMunicipalServicesResponseDataDto.md similarity index 86% rename from documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.md rename to documentation/models/FiscalInfoListMunicipalServicesResponseDataDto.md index a379373..7f96f49 100644 --- a/documentation/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.md +++ b/documentation/models/FiscalInfoListMunicipalServicesResponseDataDto.md @@ -1,4 +1,6 @@ -# ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto +# FiscalInfoListMunicipalServicesResponseDataDto + +List of objects **Properties** 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/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md b/documentation/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md similarity index 86% rename from documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md rename to documentation/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md index 8790517..e31f7a9 100644 --- a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md +++ b/documentation/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.md @@ -1,4 +1,4 @@ -# ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao +# FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao Type of authentication required at city hall diff --git a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md b/documentation/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md similarity index 79% rename from documentation/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md rename to documentation/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md index 33fedd5..f12bd5c 100644 --- a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md +++ b/documentation/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.md @@ -1,4 +1,6 @@ -# ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto +# FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto + +Special taxation regime options **Properties** diff --git a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md b/documentation/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md similarity index 81% rename from documentation/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md rename to documentation/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md index 66245d5..527e3db 100644 --- a/documentation/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md +++ b/documentation/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.md @@ -1,4 +1,6 @@ -# ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto +# FiscalInfoMunicipalOptionsSpecialTaxRegimesDto + +Tax calculation regime options **Properties** diff --git a/documentation/models/ApiCustomerFiscalInfoSaveRequestDto.md b/documentation/models/FiscalInfoSaveRequestDto.md similarity index 99% rename from documentation/models/ApiCustomerFiscalInfoSaveRequestDto.md rename to documentation/models/FiscalInfoSaveRequestDto.md index 77f90d2..157c1cc 100644 --- a/documentation/models/ApiCustomerFiscalInfoSaveRequestDto.md +++ b/documentation/models/FiscalInfoSaveRequestDto.md @@ -1,4 +1,4 @@ -# ApiCustomerFiscalInfoSaveRequestDto +# FiscalInfoSaveRequestDto **Properties** diff --git a/documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.md b/documentation/models/FiscalInfoUpdateUseNationalPortalRequestDto.md similarity index 89% rename from documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.md rename to documentation/models/FiscalInfoUpdateUseNationalPortalRequestDto.md index 4dfa18c..edf8774 100644 --- a/documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.md +++ b/documentation/models/FiscalInfoUpdateUseNationalPortalRequestDto.md @@ -1,4 +1,4 @@ -# ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto +# FiscalInfoUpdateUseNationalPortalRequestDto **Properties** diff --git a/documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.md b/documentation/models/FiscalInfoUpdateUseNationalPortalResponseDto.md similarity index 88% rename from documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.md rename to documentation/models/FiscalInfoUpdateUseNationalPortalResponseDto.md index 9e1ee60..da7f8b1 100644 --- a/documentation/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.md +++ b/documentation/models/FiscalInfoUpdateUseNationalPortalResponseDto.md @@ -1,4 +1,4 @@ -# ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto +# FiscalInfoUpdateUseNationalPortalResponseDto **Properties** diff --git a/documentation/models/ApiInstallmentDeleteResponseDto.md b/documentation/models/InstallmentDeleteResponseDto.md similarity index 92% rename from documentation/models/ApiInstallmentDeleteResponseDto.md rename to documentation/models/InstallmentDeleteResponseDto.md index 15ce4d5..39b78dc 100644 --- a/documentation/models/ApiInstallmentDeleteResponseDto.md +++ b/documentation/models/InstallmentDeleteResponseDto.md @@ -1,4 +1,4 @@ -# ApiInstallmentDeleteResponseDto +# InstallmentDeleteResponseDto **Properties** diff --git a/documentation/models/ApiInstallmentGetResponseBillingType.md b/documentation/models/InstallmentGetResponseBillingType.md similarity index 93% rename from documentation/models/ApiInstallmentGetResponseBillingType.md rename to documentation/models/InstallmentGetResponseBillingType.md index 518b59f..26d491b 100644 --- a/documentation/models/ApiInstallmentGetResponseBillingType.md +++ b/documentation/models/InstallmentGetResponseBillingType.md @@ -1,4 +1,4 @@ -# ApiInstallmentGetResponseBillingType +# InstallmentGetResponseBillingType Form of payment 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/ApiInstallmentListPaymentsRequestPaymentStatus.md b/documentation/models/InstallmentListPaymentsRequestPaymentStatus.md similarity index 96% rename from documentation/models/ApiInstallmentListPaymentsRequestPaymentStatus.md rename to documentation/models/InstallmentListPaymentsRequestPaymentStatus.md index d8fc3a3..2e36c43 100644 --- a/documentation/models/ApiInstallmentListPaymentsRequestPaymentStatus.md +++ b/documentation/models/InstallmentListPaymentsRequestPaymentStatus.md @@ -1,4 +1,4 @@ -# ApiInstallmentListPaymentsRequestPaymentStatus +# InstallmentListPaymentsRequestPaymentStatus Filter by payment status diff --git a/documentation/models/ApiCustomerListResponseDto.md b/documentation/models/InstallmentListResponseDto.md similarity index 91% rename from documentation/models/ApiCustomerListResponseDto.md rename to documentation/models/InstallmentListResponseDto.md index 3eaab23..57228a9 100644 --- a/documentation/models/ApiCustomerListResponseDto.md +++ b/documentation/models/InstallmentListResponseDto.md @@ -1,4 +1,4 @@ -# ApiCustomerListResponseDto +# InstallmentListResponseDto **Properties** @@ -9,6 +9,6 @@ | 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 | +| 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/ApiPaymentRefundGetResponsePaymentRefundStatus.md b/documentation/models/InstallmentRefundResponsePaymentRefundStatus.md similarity index 94% rename from documentation/models/ApiPaymentRefundGetResponsePaymentRefundStatus.md rename to documentation/models/InstallmentRefundResponsePaymentRefundStatus.md index df10737..43bc679 100644 --- a/documentation/models/ApiPaymentRefundGetResponsePaymentRefundStatus.md +++ b/documentation/models/InstallmentRefundResponsePaymentRefundStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentRefundGetResponsePaymentRefundStatus +# InstallmentRefundResponsePaymentRefundStatus Refund status diff --git a/documentation/models/ApiPaymentUpdateRequestBillingType.md b/documentation/models/InstallmentSaveRequestBillingType.md similarity index 91% rename from documentation/models/ApiPaymentUpdateRequestBillingType.md rename to documentation/models/InstallmentSaveRequestBillingType.md index 4c2b116..ac14e90 100644 --- a/documentation/models/ApiPaymentUpdateRequestBillingType.md +++ b/documentation/models/InstallmentSaveRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiPaymentUpdateRequestBillingType +# InstallmentSaveRequestBillingType Payment billing type 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/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.md b/documentation/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.md similarity index 92% rename from documentation/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.md rename to documentation/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.md index f2b5876..aaf214a 100644 --- a/documentation/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.md +++ b/documentation/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.md @@ -1,4 +1,4 @@ -# ApiInstallmentSplitGetResponsePaymentSplitCancellationReason +# InstallmentSplitGetResponsePaymentSplitCancellationReason Reason for canceling the split diff --git a/documentation/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.md b/documentation/models/InstallmentSplitGetResponsePaymentSplitStatus.md similarity index 93% rename from documentation/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.md rename to documentation/models/InstallmentSplitGetResponsePaymentSplitStatus.md index 86e3f1f..b2198cb 100644 --- a/documentation/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.md +++ b/documentation/models/InstallmentSplitGetResponsePaymentSplitStatus.md @@ -1,4 +1,4 @@ -# ApiInstallmentSplitGetResponsePaymentSplitStatus +# InstallmentSplitGetResponsePaymentSplitStatus Split status diff --git a/documentation/models/ApiInstallmentSplitRequestDto.md b/documentation/models/InstallmentSplitRequestDto.md similarity index 97% rename from documentation/models/ApiInstallmentSplitRequestDto.md rename to documentation/models/InstallmentSplitRequestDto.md index 6eee1bf..43acc4b 100644 --- a/documentation/models/ApiInstallmentSplitRequestDto.md +++ b/documentation/models/InstallmentSplitRequestDto.md @@ -1,4 +1,6 @@ -# ApiInstallmentSplitRequestDto +# InstallmentSplitRequestDto + +Split Settings **Properties** 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/ApiCustomerInvoiceCancelRequestDto.md b/documentation/models/InvoiceCancelRequestDto.md similarity index 89% rename from documentation/models/ApiCustomerInvoiceCancelRequestDto.md rename to documentation/models/InvoiceCancelRequestDto.md index 3e3d75e..ccf59ad 100644 --- a/documentation/models/ApiCustomerInvoiceCancelRequestDto.md +++ b/documentation/models/InvoiceCancelRequestDto.md @@ -1,4 +1,4 @@ -# ApiCustomerInvoiceCancelRequestDto +# InvoiceCancelRequestDto **Properties** 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/ApiCustomerInvoiceGetResponseDtoType.md b/documentation/models/InvoiceGetResponseDtoType.md similarity index 85% rename from documentation/models/ApiCustomerInvoiceGetResponseDtoType.md rename to documentation/models/InvoiceGetResponseDtoType.md index 506d045..4885b78 100644 --- a/documentation/models/ApiCustomerInvoiceGetResponseDtoType.md +++ b/documentation/models/InvoiceGetResponseDtoType.md @@ -1,4 +1,4 @@ -# ApiCustomerInvoiceGetResponseDtoType +# InvoiceGetResponseDtoType Invoice type diff --git a/documentation/models/ApiCustomerInvoiceGetResponseInvoiceStatus.md b/documentation/models/InvoiceGetResponseInvoiceStatus.md similarity index 94% rename from documentation/models/ApiCustomerInvoiceGetResponseInvoiceStatus.md rename to documentation/models/InvoiceGetResponseInvoiceStatus.md index ed772f4..0ecfd83 100644 --- a/documentation/models/ApiCustomerInvoiceGetResponseInvoiceStatus.md +++ b/documentation/models/InvoiceGetResponseInvoiceStatus.md @@ -1,4 +1,4 @@ -# ApiCustomerInvoiceGetResponseInvoiceStatus +# InvoiceGetResponseInvoiceStatus Invoice status diff --git a/documentation/models/ApiCustomerInvoiceListRequestInvoiceStatus.md b/documentation/models/InvoiceListRequestInvoiceStatus.md similarity index 94% rename from documentation/models/ApiCustomerInvoiceListRequestInvoiceStatus.md rename to documentation/models/InvoiceListRequestInvoiceStatus.md index 1f0320e..6db3ef0 100644 --- a/documentation/models/ApiCustomerInvoiceListRequestInvoiceStatus.md +++ b/documentation/models/InvoiceListRequestInvoiceStatus.md @@ -1,4 +1,4 @@ -# ApiCustomerInvoiceListRequestInvoiceStatus +# InvoiceListRequestInvoiceStatus Filter by situation 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/ApiCustomerInvoiceTaxesDto.md b/documentation/models/InvoiceTaxesDto.md similarity index 96% rename from documentation/models/ApiCustomerInvoiceTaxesDto.md rename to documentation/models/InvoiceTaxesDto.md index 43de883..43f257a 100644 --- a/documentation/models/ApiCustomerInvoiceTaxesDto.md +++ b/documentation/models/InvoiceTaxesDto.md @@ -1,4 +1,6 @@ -# ApiCustomerInvoiceTaxesDto +# InvoiceTaxesDto + +Invoice taxes **Properties** 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/ApiMobilePhoneRechargeFindProviderResponseValuesDto.md b/documentation/models/MobilePhoneRechargeFindProviderResponseValuesDto.md similarity index 86% rename from documentation/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.md rename to documentation/models/MobilePhoneRechargeFindProviderResponseValuesDto.md index 66e7f42..d763a2c 100644 --- a/documentation/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.md +++ b/documentation/models/MobilePhoneRechargeFindProviderResponseValuesDto.md @@ -1,4 +1,6 @@ -# ApiMobilePhoneRechargeFindProviderResponseValuesDto +# MobilePhoneRechargeFindProviderResponseValuesDto + +Amounts available for recharge **Properties** 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/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md b/documentation/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md similarity index 91% rename from documentation/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md rename to documentation/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md index ca78f96..9a973c5 100644 --- a/documentation/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md +++ b/documentation/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.md @@ -1,4 +1,4 @@ -# ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus +# MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus Recharge status 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/ApiMobilePhoneRechargeSaveRequestDto.md b/documentation/models/MobilePhoneRechargeSaveRequestDto.md similarity index 88% rename from documentation/models/ApiMobilePhoneRechargeSaveRequestDto.md rename to documentation/models/MobilePhoneRechargeSaveRequestDto.md index 6ddb4c3..74898fa 100644 --- a/documentation/models/ApiMobilePhoneRechargeSaveRequestDto.md +++ b/documentation/models/MobilePhoneRechargeSaveRequestDto.md @@ -1,4 +1,4 @@ -# ApiMobilePhoneRechargeSaveRequestDto +# MobilePhoneRechargeSaveRequestDto **Properties** diff --git a/documentation/models/ApiMyAccountDisableAccountResponseDto.md b/documentation/models/MyAccountDisableAccountResponseDto.md similarity index 86% rename from documentation/models/ApiMyAccountDisableAccountResponseDto.md rename to documentation/models/MyAccountDisableAccountResponseDto.md index 8817182..029e4a5 100644 --- a/documentation/models/ApiMyAccountDisableAccountResponseDto.md +++ b/documentation/models/MyAccountDisableAccountResponseDto.md @@ -1,4 +1,4 @@ -# ApiMyAccountDisableAccountResponseDto +# MyAccountDisableAccountResponseDto **Properties** diff --git a/documentation/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.md b/documentation/models/MyAccountGetAccountFeesAnticipationBankSlipDto.md similarity index 80% rename from documentation/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.md rename to documentation/models/MyAccountGetAccountFeesAnticipationBankSlipDto.md index 7b95bbb..4abcefc 100644 --- a/documentation/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.md +++ b/documentation/models/MyAccountGetAccountFeesAnticipationBankSlipDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountFeesAnticipationBankSlipDto +# MyAccountGetAccountFeesAnticipationBankSlipDto + +Anticipation fee on boletos **Properties** diff --git a/documentation/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.md b/documentation/models/MyAccountGetAccountFeesAnticipationCreditCardDto.md similarity index 84% rename from documentation/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.md rename to documentation/models/MyAccountGetAccountFeesAnticipationCreditCardDto.md index cd150ac..04e6135 100644 --- a/documentation/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.md +++ b/documentation/models/MyAccountGetAccountFeesAnticipationCreditCardDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountFeesAnticipationCreditCardDto +# MyAccountGetAccountFeesAnticipationCreditCardDto + +Credit card anticipation fee **Properties** 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/ApiMyAccountGetAccountFeesCreditBureauReportDto.md b/documentation/models/MyAccountGetAccountFeesCreditBureauReportDto.md similarity index 86% rename from documentation/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.md rename to documentation/models/MyAccountGetAccountFeesCreditBureauReportDto.md index 43e0588..1d14199 100644 --- a/documentation/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.md +++ b/documentation/models/MyAccountGetAccountFeesCreditBureauReportDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountFeesCreditBureauReportDto +# MyAccountGetAccountFeesCreditBureauReportDto + +Serasa consultation fees **Properties** diff --git a/documentation/models/ApiMyAccountGetAccountFeesInvoiceDto.md b/documentation/models/MyAccountGetAccountFeesInvoiceDto.md similarity index 84% rename from documentation/models/ApiMyAccountGetAccountFeesInvoiceDto.md rename to documentation/models/MyAccountGetAccountFeesInvoiceDto.md index 7ec3910..f215107 100644 --- a/documentation/models/ApiMyAccountGetAccountFeesInvoiceDto.md +++ b/documentation/models/MyAccountGetAccountFeesInvoiceDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountFeesInvoiceDto +# MyAccountGetAccountFeesInvoiceDto + +Invoice fees **Properties** diff --git a/documentation/models/ApiMyAccountGetAccountFeesNotificationDto.md b/documentation/models/MyAccountGetAccountFeesNotificationDto.md similarity index 89% rename from documentation/models/ApiMyAccountGetAccountFeesNotificationDto.md rename to documentation/models/MyAccountGetAccountFeesNotificationDto.md index a6d9f9e..ebfa052 100644 --- a/documentation/models/ApiMyAccountGetAccountFeesNotificationDto.md +++ b/documentation/models/MyAccountGetAccountFeesNotificationDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountFeesNotificationDto +# MyAccountGetAccountFeesNotificationDto + +Notification fees **Properties** diff --git a/documentation/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.md b/documentation/models/MyAccountGetAccountFeesPaymentBankSlipDto.md similarity index 91% rename from documentation/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.md rename to documentation/models/MyAccountGetAccountFeesPaymentBankSlipDto.md index ca6d50d..73d120e 100644 --- a/documentation/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.md +++ b/documentation/models/MyAccountGetAccountFeesPaymentBankSlipDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountFeesPaymentBankSlipDto +# MyAccountGetAccountFeesPaymentBankSlipDto + +Boleto fees **Properties** diff --git a/documentation/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.md b/documentation/models/MyAccountGetAccountFeesPaymentCreditCardDto.md similarity index 96% rename from documentation/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.md rename to documentation/models/MyAccountGetAccountFeesPaymentCreditCardDto.md index 5c66ccc..54a517d 100644 --- a/documentation/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.md +++ b/documentation/models/MyAccountGetAccountFeesPaymentCreditCardDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountFeesPaymentCreditCardDto +# MyAccountGetAccountFeesPaymentCreditCardDto + +Credit card fees **Properties** diff --git a/documentation/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.md b/documentation/models/MyAccountGetAccountFeesPaymentDebitCardDto.md similarity index 87% rename from documentation/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.md rename to documentation/models/MyAccountGetAccountFeesPaymentDebitCardDto.md index 0264e57..bcec2ba 100644 --- a/documentation/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.md +++ b/documentation/models/MyAccountGetAccountFeesPaymentDebitCardDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountFeesPaymentDebitCardDto +# MyAccountGetAccountFeesPaymentDebitCardDto + +Debit card fees **Properties** 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/ApiMyAccountGetAccountFeesPaymentPixDto.md b/documentation/models/MyAccountGetAccountFeesPaymentPixDto.md similarity index 95% rename from documentation/models/ApiMyAccountGetAccountFeesPaymentPixDto.md rename to documentation/models/MyAccountGetAccountFeesPaymentPixDto.md index a7fcebb..c957ed5 100644 --- a/documentation/models/ApiMyAccountGetAccountFeesPaymentPixDto.md +++ b/documentation/models/MyAccountGetAccountFeesPaymentPixDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountFeesPaymentPixDto +# MyAccountGetAccountFeesPaymentPixDto + +Pix Fees **Properties** 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/ApiMyAccountGetAccountFeesTransferPixDto.md b/documentation/models/MyAccountGetAccountFeesTransferPixDto.md similarity index 93% rename from documentation/models/ApiMyAccountGetAccountFeesTransferPixDto.md rename to documentation/models/MyAccountGetAccountFeesTransferPixDto.md index 24bfa04..f1471f5 100644 --- a/documentation/models/ApiMyAccountGetAccountFeesTransferPixDto.md +++ b/documentation/models/MyAccountGetAccountFeesTransferPixDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountFeesTransferPixDto +# MyAccountGetAccountFeesTransferPixDto + +Fees for Pix transfers **Properties** diff --git a/documentation/models/ApiMyAccountGetAccountFeesTransferTedDto.md b/documentation/models/MyAccountGetAccountFeesTransferTedDto.md similarity index 90% rename from documentation/models/ApiMyAccountGetAccountFeesTransferTedDto.md rename to documentation/models/MyAccountGetAccountFeesTransferTedDto.md index bb94ad3..3e21ef1 100644 --- a/documentation/models/ApiMyAccountGetAccountFeesTransferTedDto.md +++ b/documentation/models/MyAccountGetAccountFeesTransferTedDto.md @@ -1,4 +1,6 @@ -# ApiMyAccountGetAccountFeesTransferTedDto +# MyAccountGetAccountFeesTransferTedDto + +Fees for TED transfers **Properties** diff --git a/documentation/models/ApiCustomerAccountNumberDto.md b/documentation/models/MyAccountGetAccountNumberResponseDto.md similarity index 90% rename from documentation/models/ApiCustomerAccountNumberDto.md rename to documentation/models/MyAccountGetAccountNumberResponseDto.md index 2fc1b6d..7502b2f 100644 --- a/documentation/models/ApiCustomerAccountNumberDto.md +++ b/documentation/models/MyAccountGetAccountNumberResponseDto.md @@ -1,4 +1,4 @@ -# ApiCustomerAccountNumberDto +# MyAccountGetAccountNumberResponseDto **Properties** 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/ApiMyAccountGetStatusResponseStatus.md b/documentation/models/MyAccountGetStatusResponseStatus.md similarity index 92% rename from documentation/models/ApiMyAccountGetStatusResponseStatus.md rename to documentation/models/MyAccountGetStatusResponseStatus.md index 6cc3888..38e305f 100644 --- a/documentation/models/ApiMyAccountGetStatusResponseStatus.md +++ b/documentation/models/MyAccountGetStatusResponseStatus.md @@ -1,4 +1,4 @@ -# ApiMyAccountGetStatusResponseStatus +# MyAccountGetStatusResponseStatus Status of sent business data 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/ApiNotificationGetResponseDtoScheduleOffset.md b/documentation/models/NotificationGetResponseDtoScheduleOffset.md similarity index 92% rename from documentation/models/ApiNotificationGetResponseDtoScheduleOffset.md rename to documentation/models/NotificationGetResponseDtoScheduleOffset.md index eaa3ce8..1460662 100644 --- a/documentation/models/ApiNotificationGetResponseDtoScheduleOffset.md +++ b/documentation/models/NotificationGetResponseDtoScheduleOffset.md @@ -1,4 +1,4 @@ -# ApiNotificationGetResponseDtoScheduleOffset +# 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 diff --git a/documentation/models/ApiNotificationGetResponseNotificationEvent.md b/documentation/models/NotificationGetResponseNotificationEvent.md similarity index 93% rename from documentation/models/ApiNotificationGetResponseNotificationEvent.md rename to documentation/models/NotificationGetResponseNotificationEvent.md index 075910f..3a44afc 100644 --- a/documentation/models/ApiNotificationGetResponseNotificationEvent.md +++ b/documentation/models/NotificationGetResponseNotificationEvent.md @@ -1,4 +1,4 @@ -# ApiNotificationGetResponseNotificationEvent +# NotificationGetResponseNotificationEvent Kind of event 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/ApiNotificationUpdateRequestDto.md b/documentation/models/NotificationUpdateRequestDto.md similarity index 59% rename from documentation/models/ApiNotificationUpdateRequestDto.md rename to documentation/models/NotificationUpdateRequestDto.md index d3dd85b..76a38b5 100644 --- a/documentation/models/ApiNotificationUpdateRequestDto.md +++ b/documentation/models/NotificationUpdateRequestDto.md @@ -1,16 +1,18 @@ -# ApiNotificationUpdateRequestDto +# 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 | 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` | +| 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/ApiNotificationUpdateRequestDtoScheduleOffset.md b/documentation/models/NotificationUpdateRequestDtoScheduleOffset.md similarity index 93% rename from documentation/models/ApiNotificationUpdateRequestDtoScheduleOffset.md rename to documentation/models/NotificationUpdateRequestDtoScheduleOffset.md index 75c3062..7d89c5d 100644 --- a/documentation/models/ApiNotificationUpdateRequestDtoScheduleOffset.md +++ b/documentation/models/NotificationUpdateRequestDtoScheduleOffset.md @@ -1,4 +1,4 @@ -# ApiNotificationUpdateRequestDtoScheduleOffset +# 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/ApiPaymentBankSlipRefundResponseDto.md b/documentation/models/PaymentBankSlipRefundResponseDto.md similarity index 88% rename from documentation/models/ApiPaymentBankSlipRefundResponseDto.md rename to documentation/models/PaymentBankSlipRefundResponseDto.md index 550c67f..08df7d7 100644 --- a/documentation/models/ApiPaymentBankSlipRefundResponseDto.md +++ b/documentation/models/PaymentBankSlipRefundResponseDto.md @@ -1,4 +1,4 @@ -# ApiPaymentBankSlipRefundResponseDto +# PaymentBankSlipRefundResponseDto **Properties** 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/ApiPaymentCallbackRequestDto.md b/documentation/models/PaymentCallbackRequestDto.md similarity index 90% rename from documentation/models/ApiPaymentCallbackRequestDto.md rename to documentation/models/PaymentCallbackRequestDto.md index 47daa2d..d3f72c6 100644 --- a/documentation/models/ApiPaymentCallbackRequestDto.md +++ b/documentation/models/PaymentCallbackRequestDto.md @@ -1,4 +1,6 @@ -# ApiPaymentCallbackRequestDto +# PaymentCallbackRequestDto + +Automatic redirection information after the payment of the link payment **Properties** diff --git a/documentation/models/ApiPaymentChargebackResponseChargebackDisputeStatus.md b/documentation/models/PaymentChargebackResponseChargebackDisputeStatus.md similarity index 86% rename from documentation/models/ApiPaymentChargebackResponseChargebackDisputeStatus.md rename to documentation/models/PaymentChargebackResponseChargebackDisputeStatus.md index f60067c..8844bf7 100644 --- a/documentation/models/ApiPaymentChargebackResponseChargebackDisputeStatus.md +++ b/documentation/models/PaymentChargebackResponseChargebackDisputeStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentChargebackResponseChargebackDisputeStatus +# PaymentChargebackResponseChargebackDisputeStatus Chargeback dispute status. diff --git a/documentation/models/ApiPaymentChargebackResponseChargebackReason.md b/documentation/models/PaymentChargebackResponseChargebackReason.md similarity index 98% rename from documentation/models/ApiPaymentChargebackResponseChargebackReason.md rename to documentation/models/PaymentChargebackResponseChargebackReason.md index f6b5d77..df37c17 100644 --- a/documentation/models/ApiPaymentChargebackResponseChargebackReason.md +++ b/documentation/models/PaymentChargebackResponseChargebackReason.md @@ -1,4 +1,4 @@ -# ApiPaymentChargebackResponseChargebackReason +# PaymentChargebackResponseChargebackReason Chargeback reason diff --git a/documentation/models/ApiPaymentChargebackResponseChargebackStatus.md b/documentation/models/PaymentChargebackResponseChargebackStatus.md similarity index 91% rename from documentation/models/ApiPaymentChargebackResponseChargebackStatus.md rename to documentation/models/PaymentChargebackResponseChargebackStatus.md index 710f78b..1d9ca8d 100644 --- a/documentation/models/ApiPaymentChargebackResponseChargebackStatus.md +++ b/documentation/models/PaymentChargebackResponseChargebackStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentChargebackResponseChargebackStatus +# PaymentChargebackResponseChargebackStatus Chargeback status 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/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.md b/documentation/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.md similarity index 87% rename from documentation/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.md rename to documentation/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.md index 8d35741..d2ce32a 100644 --- a/documentation/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.md +++ b/documentation/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus +# PaymentCheckoutConfigGetResponseInvoiceConfigStatus Invoice personalization status diff --git a/documentation/models/ApiPaymentCheckoutConfigSaveRequestDto.md b/documentation/models/PaymentCheckoutConfigSaveRequestDto.md similarity index 94% rename from documentation/models/ApiPaymentCheckoutConfigSaveRequestDto.md rename to documentation/models/PaymentCheckoutConfigSaveRequestDto.md index 91d691e..0996b95 100644 --- a/documentation/models/ApiPaymentCheckoutConfigSaveRequestDto.md +++ b/documentation/models/PaymentCheckoutConfigSaveRequestDto.md @@ -1,4 +1,4 @@ -# ApiPaymentCheckoutConfigSaveRequestDto +# PaymentCheckoutConfigSaveRequestDto **Properties** diff --git a/documentation/models/ApiPaymentDeleteResponseDto.md b/documentation/models/PaymentDeleteResponseDto.md similarity index 93% rename from documentation/models/ApiPaymentDeleteResponseDto.md rename to documentation/models/PaymentDeleteResponseDto.md index 099a2cc..76ab33c 100644 --- a/documentation/models/ApiPaymentDeleteResponseDto.md +++ b/documentation/models/PaymentDeleteResponseDto.md @@ -1,4 +1,4 @@ -# ApiPaymentDeleteResponseDto +# PaymentDeleteResponseDto **Properties** diff --git a/documentation/models/ApiPaymentDiscountDiscountType.md b/documentation/models/PaymentDiscountDiscountType.md similarity index 90% rename from documentation/models/ApiPaymentDiscountDiscountType.md rename to documentation/models/PaymentDiscountDiscountType.md index 64c4fb2..8d3393f 100644 --- a/documentation/models/ApiPaymentDiscountDiscountType.md +++ b/documentation/models/PaymentDiscountDiscountType.md @@ -1,4 +1,4 @@ -# ApiPaymentDiscountDiscountType +# PaymentDiscountDiscountType Discount type 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/ApiPaymentDocumentDeleteResponseDto.md b/documentation/models/PaymentDocumentDeleteResponseDto.md similarity index 90% rename from documentation/models/ApiPaymentDocumentDeleteResponseDto.md rename to documentation/models/PaymentDocumentDeleteResponseDto.md index 62cc3c2..37de626 100644 --- a/documentation/models/ApiPaymentDocumentDeleteResponseDto.md +++ b/documentation/models/PaymentDocumentDeleteResponseDto.md @@ -1,4 +1,4 @@ -# ApiPaymentDocumentDeleteResponseDto +# PaymentDocumentDeleteResponseDto **Properties** diff --git a/documentation/models/ApiPaymentDocumentFileResponseDto.md b/documentation/models/PaymentDocumentFileResponseDto.md similarity index 93% rename from documentation/models/ApiPaymentDocumentFileResponseDto.md rename to documentation/models/PaymentDocumentFileResponseDto.md index 99eea75..16b52be 100644 --- a/documentation/models/ApiPaymentDocumentFileResponseDto.md +++ b/documentation/models/PaymentDocumentFileResponseDto.md @@ -1,4 +1,6 @@ -# ApiPaymentDocumentFileResponseDto +# PaymentDocumentFileResponseDto + +File object **Properties** 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/ApiPaymentDocumentGetResponsePaymentDocumentType.md b/documentation/models/PaymentDocumentGetResponsePaymentDocumentType.md similarity index 91% rename from documentation/models/ApiPaymentDocumentGetResponsePaymentDocumentType.md rename to documentation/models/PaymentDocumentGetResponsePaymentDocumentType.md index 50866ca..34374ff 100644 --- a/documentation/models/ApiPaymentDocumentGetResponsePaymentDocumentType.md +++ b/documentation/models/PaymentDocumentGetResponsePaymentDocumentType.md @@ -1,4 +1,4 @@ -# ApiPaymentDocumentGetResponsePaymentDocumentType +# PaymentDocumentGetResponsePaymentDocumentType Document type diff --git a/documentation/models/ApiPaymentSplitListResponseDto.md b/documentation/models/PaymentDocumentListResponseDto.md similarity index 91% rename from documentation/models/ApiPaymentSplitListResponseDto.md rename to documentation/models/PaymentDocumentListResponseDto.md index 613a483..29078fa 100644 --- a/documentation/models/ApiPaymentSplitListResponseDto.md +++ b/documentation/models/PaymentDocumentListResponseDto.md @@ -1,4 +1,4 @@ -# ApiPaymentSplitListResponseDto +# PaymentDocumentListResponseDto **Properties** @@ -9,6 +9,6 @@ | 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 | +| 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/ApiPaymentDocumentSaveRequestPaymentDocumentType.md b/documentation/models/PaymentDocumentSaveRequestPaymentDocumentType.md similarity index 91% rename from documentation/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.md rename to documentation/models/PaymentDocumentSaveRequestPaymentDocumentType.md index 797e9bc..29f4c46 100644 --- a/documentation/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.md +++ b/documentation/models/PaymentDocumentSaveRequestPaymentDocumentType.md @@ -1,4 +1,4 @@ -# ApiPaymentDocumentSaveRequestPaymentDocumentType +# PaymentDocumentSaveRequestPaymentDocumentType Document type 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/ApiPaymentDocumentUpdateRequestPaymentDocumentType.md b/documentation/models/PaymentDocumentUpdateRequestPaymentDocumentType.md similarity index 91% rename from documentation/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.md rename to documentation/models/PaymentDocumentUpdateRequestPaymentDocumentType.md index 0e08c85..c8055f4 100644 --- a/documentation/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.md +++ b/documentation/models/PaymentDocumentUpdateRequestPaymentDocumentType.md @@ -1,4 +1,4 @@ -# ApiPaymentDocumentUpdateRequestPaymentDocumentType +# PaymentDocumentUpdateRequestPaymentDocumentType Document type 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/ApiPaymentDunningShowResponsePaymentDunningStatus.md b/documentation/models/PaymentDunningCancelResponsePaymentDunningStatus.md similarity index 94% rename from documentation/models/ApiPaymentDunningShowResponsePaymentDunningStatus.md rename to documentation/models/PaymentDunningCancelResponsePaymentDunningStatus.md index eb252fd..a9fe3ff 100644 --- a/documentation/models/ApiPaymentDunningShowResponsePaymentDunningStatus.md +++ b/documentation/models/PaymentDunningCancelResponsePaymentDunningStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningShowResponsePaymentDunningStatus +# PaymentDunningCancelResponsePaymentDunningStatus Payment dunning status diff --git a/documentation/models/ApiPaymentDunningSaveRequestPaymentDunningType.md b/documentation/models/PaymentDunningCancelResponsePaymentDunningType.md similarity index 84% rename from documentation/models/ApiPaymentDunningSaveRequestPaymentDunningType.md rename to documentation/models/PaymentDunningCancelResponsePaymentDunningType.md index 794ec85..7c3a3ac 100644 --- a/documentation/models/ApiPaymentDunningSaveRequestPaymentDunningType.md +++ b/documentation/models/PaymentDunningCancelResponsePaymentDunningType.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningSaveRequestPaymentDunningType +# PaymentDunningCancelResponsePaymentDunningType Type of payment dunning 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/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md b/documentation/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md similarity index 87% rename from documentation/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md rename to documentation/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md index f3722e6..e74fac0 100644 --- a/documentation/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md +++ b/documentation/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus +# PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus Negotiation status 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/ApiPaymentDunningListPartialPaymentsResponseDataDto.md b/documentation/models/PaymentDunningListPartialPaymentsResponseDataDto.md similarity index 84% rename from documentation/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.md rename to documentation/models/PaymentDunningListPartialPaymentsResponseDataDto.md index 2c9e85d..56e25db 100644 --- a/documentation/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.md +++ b/documentation/models/PaymentDunningListPartialPaymentsResponseDataDto.md @@ -1,4 +1,6 @@ -# ApiPaymentDunningListPartialPaymentsResponseDataDto +# PaymentDunningListPartialPaymentsResponseDataDto + +List of objects **Properties** 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/ApiPaymentDunningListRequestPaymentDunningStatus.md b/documentation/models/PaymentDunningListRequestPaymentDunningStatus.md similarity index 94% rename from documentation/models/ApiPaymentDunningListRequestPaymentDunningStatus.md rename to documentation/models/PaymentDunningListRequestPaymentDunningStatus.md index 539fc22..f393381 100644 --- a/documentation/models/ApiPaymentDunningListRequestPaymentDunningStatus.md +++ b/documentation/models/PaymentDunningListRequestPaymentDunningStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningListRequestPaymentDunningStatus +# PaymentDunningListRequestPaymentDunningStatus Filter by payment dunning status diff --git a/documentation/models/ApiPaymentDunningListRequestPaymentDunningType.md b/documentation/models/PaymentDunningListRequestPaymentDunningType.md similarity index 89% rename from documentation/models/ApiPaymentDunningListRequestPaymentDunningType.md rename to documentation/models/PaymentDunningListRequestPaymentDunningType.md index ca302ee..ce7b232 100644 --- a/documentation/models/ApiPaymentDunningListRequestPaymentDunningType.md +++ b/documentation/models/PaymentDunningListRequestPaymentDunningType.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningListRequestPaymentDunningType +# PaymentDunningListRequestPaymentDunningType Filter by type of payment dunning diff --git a/documentation/models/ApiNotificationListResponseDto.md b/documentation/models/PaymentDunningListResponseDto.md similarity index 91% rename from documentation/models/ApiNotificationListResponseDto.md rename to documentation/models/PaymentDunningListResponseDto.md index c6f24a4..c8da17f 100644 --- a/documentation/models/ApiNotificationListResponseDto.md +++ b/documentation/models/PaymentDunningListResponseDto.md @@ -1,4 +1,4 @@ -# ApiNotificationListResponseDto +# PaymentDunningListResponseDto **Properties** @@ -9,6 +9,6 @@ | 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 | +| data | List\ | ❌ | List of objects | diff --git a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md similarity index 88% rename from documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md rename to documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md index c4c1e00..8f25295 100644 --- a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md +++ b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType +# PaymentDunningPaymentsAvailableForDunningResponseDataBillingType Form of payment 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/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md similarity index 84% rename from documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md rename to documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md index 568c094..0b79f1b 100644 --- a/documentation/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md +++ b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus +# PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus Billing status 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/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.md b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDto.md similarity index 86% rename from documentation/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.md rename to documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDto.md index 123ef47..627cc47 100644 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleListResponseDto.md +++ b/documentation/models/PaymentDunningPaymentsAvailableForDunningResponseDto.md @@ -1,4 +1,4 @@ -# ApiPixTransactionRecurringCheckoutScheduleListResponseDto +# PaymentDunningPaymentsAvailableForDunningResponseDto **Properties** @@ -9,6 +9,6 @@ | 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 | +| data | List\ | ❌ | List of objects | diff --git a/documentation/models/ApiPaymentDunningSaveDocumentsRequestDto.md b/documentation/models/PaymentDunningSaveDocumentsRequestDto.md similarity index 87% rename from documentation/models/ApiPaymentDunningSaveDocumentsRequestDto.md rename to documentation/models/PaymentDunningSaveDocumentsRequestDto.md index 323a678..62d8ef4 100644 --- a/documentation/models/ApiPaymentDunningSaveDocumentsRequestDto.md +++ b/documentation/models/PaymentDunningSaveDocumentsRequestDto.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningSaveDocumentsRequestDto +# PaymentDunningSaveDocumentsRequestDto **Properties** 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/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.md b/documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.md similarity index 93% rename from documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.md rename to documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.md index 7424728..fe49441 100644 --- a/documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.md +++ b/documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus +# PaymentDunningSaveDocumentsResponsePaymentDunningStatus Payment dunning status diff --git a/documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.md b/documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.md similarity index 82% rename from documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.md rename to documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.md index e26df42..57de999 100644 --- a/documentation/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.md +++ b/documentation/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningSaveDocumentsResponsePaymentDunningType +# PaymentDunningSaveDocumentsResponsePaymentDunningType Type of payment dunning 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/ApiPaymentDunningShowResponsePaymentDunningType.md b/documentation/models/PaymentDunningSaveRequestPaymentDunningType.md similarity index 84% rename from documentation/models/ApiPaymentDunningShowResponsePaymentDunningType.md rename to documentation/models/PaymentDunningSaveRequestPaymentDunningType.md index 5b44ef9..66995b8 100644 --- a/documentation/models/ApiPaymentDunningShowResponsePaymentDunningType.md +++ b/documentation/models/PaymentDunningSaveRequestPaymentDunningType.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningShowResponsePaymentDunningType +# PaymentDunningSaveRequestPaymentDunningType Type of payment dunning 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/ApiPaymentDunningCancelResponsePaymentDunningStatus.md b/documentation/models/PaymentDunningShowResponsePaymentDunningStatus.md similarity index 93% rename from documentation/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.md rename to documentation/models/PaymentDunningShowResponsePaymentDunningStatus.md index 10aa2a0..298883f 100644 --- a/documentation/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.md +++ b/documentation/models/PaymentDunningShowResponsePaymentDunningStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningCancelResponsePaymentDunningStatus +# PaymentDunningShowResponsePaymentDunningStatus Payment dunning status diff --git a/documentation/models/ApiPaymentDunningCancelResponsePaymentDunningType.md b/documentation/models/PaymentDunningShowResponsePaymentDunningType.md similarity index 84% rename from documentation/models/ApiPaymentDunningCancelResponsePaymentDunningType.md rename to documentation/models/PaymentDunningShowResponsePaymentDunningType.md index 57fea90..e757118 100644 --- a/documentation/models/ApiPaymentDunningCancelResponsePaymentDunningType.md +++ b/documentation/models/PaymentDunningShowResponsePaymentDunningType.md @@ -1,4 +1,4 @@ -# ApiPaymentDunningCancelResponsePaymentDunningType +# PaymentDunningShowResponsePaymentDunningType Type of payment dunning 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/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.md b/documentation/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.md similarity index 92% rename from documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.md rename to documentation/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.md index c8da12f..9fa33d3 100644 --- a/documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.md +++ b/documentation/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.md @@ -1,4 +1,4 @@ -# ApiPaymentCustodyGetResponsePaymentCustodyFinishReason +# PaymentEscrowGetResponsePaymentEscrowFinishReason Payment escrow finish reason diff --git a/documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.md b/documentation/models/PaymentEscrowGetResponsePaymentEscrowStatus.md similarity index 84% rename from documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.md rename to documentation/models/PaymentEscrowGetResponsePaymentEscrowStatus.md index 069d619..7afe64c 100644 --- a/documentation/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.md +++ b/documentation/models/PaymentEscrowGetResponsePaymentEscrowStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentCustodyGetResponsePaymentCustodyStatus +# PaymentEscrowGetResponsePaymentEscrowStatus Payment escrow status 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/ApiPaymentFineRequestFineType.md b/documentation/models/PaymentFineRequestFineType.md similarity index 90% rename from documentation/models/ApiPaymentFineRequestFineType.md rename to documentation/models/PaymentFineRequestFineType.md index c0cd076..a82f78d 100644 --- a/documentation/models/ApiPaymentFineRequestFineType.md +++ b/documentation/models/PaymentFineRequestFineType.md @@ -1,4 +1,4 @@ -# ApiPaymentFineRequestFineType +# PaymentFineRequestFineType Fine type diff --git a/documentation/models/ApiPaymentFineResponseDto.md b/documentation/models/PaymentFineResponseDto.md similarity index 78% rename from documentation/models/ApiPaymentFineResponseDto.md rename to documentation/models/PaymentFineResponseDto.md index 467c791..145e745 100644 --- a/documentation/models/ApiPaymentFineResponseDto.md +++ b/documentation/models/PaymentFineResponseDto.md @@ -1,4 +1,6 @@ -# ApiPaymentFineResponseDto +# PaymentFineResponseDto + +Fine information for payment after due date **Properties** diff --git a/documentation/models/ApiPaymentGetResponseBillingType.md b/documentation/models/PaymentGetResponseBillingType.md similarity index 94% rename from documentation/models/ApiPaymentGetResponseBillingType.md rename to documentation/models/PaymentGetResponseBillingType.md index d2b3353..55f446a 100644 --- a/documentation/models/ApiPaymentGetResponseBillingType.md +++ b/documentation/models/PaymentGetResponseBillingType.md @@ -1,4 +1,4 @@ -# ApiPaymentGetResponseBillingType +# PaymentGetResponseBillingType Payment billing type 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/ApiPaymentGetResponsePaymentStatus.md b/documentation/models/PaymentGetResponsePaymentStatus.md similarity index 97% rename from documentation/models/ApiPaymentGetResponsePaymentStatus.md rename to documentation/models/PaymentGetResponsePaymentStatus.md index 64985d3..84bd3e6 100644 --- a/documentation/models/ApiPaymentGetResponsePaymentStatus.md +++ b/documentation/models/PaymentGetResponsePaymentStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentGetResponsePaymentStatus +# PaymentGetResponsePaymentStatus Payment status diff --git a/documentation/models/ApiPaymentIdentificationFieldResponseDto.md b/documentation/models/PaymentIdentificationFieldResponseDto.md similarity index 92% rename from documentation/models/ApiPaymentIdentificationFieldResponseDto.md rename to documentation/models/PaymentIdentificationFieldResponseDto.md index bf3be0f..cc78cb5 100644 --- a/documentation/models/ApiPaymentIdentificationFieldResponseDto.md +++ b/documentation/models/PaymentIdentificationFieldResponseDto.md @@ -1,4 +1,4 @@ -# ApiPaymentIdentificationFieldResponseDto +# PaymentIdentificationFieldResponseDto **Properties** diff --git a/documentation/models/ApiPaymentInterestRequestDto.md b/documentation/models/PaymentInterestRequestDto.md similarity index 84% rename from documentation/models/ApiPaymentInterestRequestDto.md rename to documentation/models/PaymentInterestRequestDto.md index 54c838c..f4df7c3 100644 --- a/documentation/models/ApiPaymentInterestRequestDto.md +++ b/documentation/models/PaymentInterestRequestDto.md @@ -1,4 +1,6 @@ -# ApiPaymentInterestRequestDto +# PaymentInterestRequestDto + +Interest information for payment after due date **Properties** diff --git a/documentation/models/ApiPaymentInterestResponseDto.md b/documentation/models/PaymentInterestResponseDto.md similarity index 77% rename from documentation/models/ApiPaymentInterestResponseDto.md rename to documentation/models/PaymentInterestResponseDto.md index c5dfa52..c0bb4a0 100644 --- a/documentation/models/ApiPaymentInterestResponseDto.md +++ b/documentation/models/PaymentInterestResponseDto.md @@ -1,4 +1,6 @@ -# ApiPaymentInterestResponseDto +# PaymentInterestResponseDto + +Interest information for payment after due date **Properties** diff --git a/documentation/models/ApiPaymentLeanGetResponseBillingType.md b/documentation/models/PaymentLeanGetResponseBillingType.md similarity index 93% rename from documentation/models/ApiPaymentLeanGetResponseBillingType.md rename to documentation/models/PaymentLeanGetResponseBillingType.md index 7a23935..e282112 100644 --- a/documentation/models/ApiPaymentLeanGetResponseBillingType.md +++ b/documentation/models/PaymentLeanGetResponseBillingType.md @@ -1,4 +1,4 @@ -# ApiPaymentLeanGetResponseBillingType +# PaymentLeanGetResponseBillingType Payment billing type 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/ApiPaymentStatusResponsePaymentStatus.md b/documentation/models/PaymentLeanGetResponsePaymentStatus.md similarity index 97% rename from documentation/models/ApiPaymentStatusResponsePaymentStatus.md rename to documentation/models/PaymentLeanGetResponsePaymentStatus.md index 4de8ebe..bafb756 100644 --- a/documentation/models/ApiPaymentStatusResponsePaymentStatus.md +++ b/documentation/models/PaymentLeanGetResponsePaymentStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentStatusResponsePaymentStatus +# PaymentLeanGetResponsePaymentStatus Payment status diff --git a/documentation/models/ApiTransferListResponseDto.md b/documentation/models/PaymentLeanListResponseDto.md similarity index 91% rename from documentation/models/ApiTransferListResponseDto.md rename to documentation/models/PaymentLeanListResponseDto.md index be2459e..6827806 100644 --- a/documentation/models/ApiTransferListResponseDto.md +++ b/documentation/models/PaymentLeanListResponseDto.md @@ -1,4 +1,4 @@ -# ApiTransferListResponseDto +# PaymentLeanListResponseDto **Properties** @@ -9,6 +9,6 @@ | 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 | +| data | List\ | ❌ | List of objects | diff --git a/documentation/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.md b/documentation/models/PaymentLeanSaveWithCreditCardResponseBillingType.md similarity index 91% rename from documentation/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.md rename to documentation/models/PaymentLeanSaveWithCreditCardResponseBillingType.md index f4349cd..438a989 100644 --- a/documentation/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.md +++ b/documentation/models/PaymentLeanSaveWithCreditCardResponseBillingType.md @@ -1,4 +1,4 @@ -# ApiPaymentLeanSaveWithCreditCardResponseBillingType +# PaymentLeanSaveWithCreditCardResponseBillingType Payment billing type 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/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.md b/documentation/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.md similarity index 96% rename from documentation/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.md rename to documentation/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.md index 986fcca..55da853 100644 --- a/documentation/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.md +++ b/documentation/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus +# PaymentLeanSaveWithCreditCardResponsePaymentStatus Payment status diff --git a/documentation/models/ApiPaymentLimitsResponseCreationDailyDto.md b/documentation/models/PaymentLimitsResponseCreationDailyDto.md similarity index 90% rename from documentation/models/ApiPaymentLimitsResponseCreationDailyDto.md rename to documentation/models/PaymentLimitsResponseCreationDailyDto.md index 74ba58b..1d011d4 100644 --- a/documentation/models/ApiPaymentLimitsResponseCreationDailyDto.md +++ b/documentation/models/PaymentLimitsResponseCreationDailyDto.md @@ -1,4 +1,6 @@ -# ApiPaymentLimitsResponseCreationDailyDto +# PaymentLimitsResponseCreationDailyDto + +Daily limits **Properties** 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/ApiPaymentCampaignDeleteResponseDto.md b/documentation/models/PaymentLinkDeleteResponseDto.md similarity index 91% rename from documentation/models/ApiPaymentCampaignDeleteResponseDto.md rename to documentation/models/PaymentLinkDeleteResponseDto.md index e941c02..111760f 100644 --- a/documentation/models/ApiPaymentCampaignDeleteResponseDto.md +++ b/documentation/models/PaymentLinkDeleteResponseDto.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignDeleteResponseDto +# PaymentLinkDeleteResponseDto **Properties** diff --git a/documentation/models/ApiPaymentCampaignFileDeleteResponseDto.md b/documentation/models/PaymentLinkFileDeleteResponseDto.md similarity index 90% rename from documentation/models/ApiPaymentCampaignFileDeleteResponseDto.md rename to documentation/models/PaymentLinkFileDeleteResponseDto.md index 61a3385..05804b8 100644 --- a/documentation/models/ApiPaymentCampaignFileDeleteResponseDto.md +++ b/documentation/models/PaymentLinkFileDeleteResponseDto.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignFileDeleteResponseDto +# PaymentLinkFileDeleteResponseDto **Properties** 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/ApiPaymentCampaignFileImageResponseDto.md b/documentation/models/PaymentLinkFileImageResponseDto.md similarity index 90% rename from documentation/models/ApiPaymentCampaignFileImageResponseDto.md rename to documentation/models/PaymentLinkFileImageResponseDto.md index d7aff6a..5b851f4 100644 --- a/documentation/models/ApiPaymentCampaignFileImageResponseDto.md +++ b/documentation/models/PaymentLinkFileImageResponseDto.md @@ -1,4 +1,6 @@ -# ApiPaymentCampaignFileImageResponseDto +# PaymentLinkFileImageResponseDto + +Payments link image information **Properties** diff --git a/documentation/models/ApiSubscriptionListResponseDto.md b/documentation/models/PaymentLinkFileListResponseDto.md similarity index 91% rename from documentation/models/ApiSubscriptionListResponseDto.md rename to documentation/models/PaymentLinkFileListResponseDto.md index adbb65e..aa5a7ff 100644 --- a/documentation/models/ApiSubscriptionListResponseDto.md +++ b/documentation/models/PaymentLinkFileListResponseDto.md @@ -1,4 +1,4 @@ -# ApiSubscriptionListResponseDto +# PaymentLinkFileListResponseDto **Properties** @@ -9,6 +9,6 @@ | 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 | +| data | List\ | ❌ | List of objects | diff --git a/documentation/models/ApiPaymentCampaignFileSaveRequestDto.md b/documentation/models/PaymentLinkFileSaveRequestDto.md similarity index 89% rename from documentation/models/ApiPaymentCampaignFileSaveRequestDto.md rename to documentation/models/PaymentLinkFileSaveRequestDto.md index 8fd9904..d79bb3f 100644 --- a/documentation/models/ApiPaymentCampaignFileSaveRequestDto.md +++ b/documentation/models/PaymentLinkFileSaveRequestDto.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignFileSaveRequestDto +# PaymentLinkFileSaveRequestDto **Properties** diff --git a/documentation/models/ApiPaymentCampaignSaveRequestBillingType.md b/documentation/models/PaymentLinkGetResponseBillingType.md similarity index 90% rename from documentation/models/ApiPaymentCampaignSaveRequestBillingType.md rename to documentation/models/PaymentLinkGetResponseBillingType.md index d34e6dc..7a8b0d2 100644 --- a/documentation/models/ApiPaymentCampaignSaveRequestBillingType.md +++ b/documentation/models/PaymentLinkGetResponseBillingType.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignSaveRequestBillingType +# PaymentLinkGetResponseBillingType Allowed payment method diff --git a/documentation/models/ApiPaymentCampaignSaveRequestChargeType.md b/documentation/models/PaymentLinkGetResponseChargeType.md similarity index 89% rename from documentation/models/ApiPaymentCampaignSaveRequestChargeType.md rename to documentation/models/PaymentLinkGetResponseChargeType.md index 8b7fccb..a274b23 100644 --- a/documentation/models/ApiPaymentCampaignSaveRequestChargeType.md +++ b/documentation/models/PaymentLinkGetResponseChargeType.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignSaveRequestChargeType +# PaymentLinkGetResponseChargeType Charge type diff --git a/documentation/models/ApiPaymentCampaignGetResponseCycle.md b/documentation/models/PaymentLinkGetResponseCycle.md similarity index 94% rename from documentation/models/ApiPaymentCampaignGetResponseCycle.md rename to documentation/models/PaymentLinkGetResponseCycle.md index c14b58e..03b9d90 100644 --- a/documentation/models/ApiPaymentCampaignGetResponseCycle.md +++ b/documentation/models/PaymentLinkGetResponseCycle.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignGetResponseCycle +# PaymentLinkGetResponseCycle Billing frequency, if the chargeType is RECURRENT 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/ApiPaymentCampaignGetResponseBillingType.md b/documentation/models/PaymentLinkSaveRequestBillingType.md similarity index 90% rename from documentation/models/ApiPaymentCampaignGetResponseBillingType.md rename to documentation/models/PaymentLinkSaveRequestBillingType.md index e4abf26..3911042 100644 --- a/documentation/models/ApiPaymentCampaignGetResponseBillingType.md +++ b/documentation/models/PaymentLinkSaveRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignGetResponseBillingType +# PaymentLinkSaveRequestBillingType Allowed payment method diff --git a/documentation/models/ApiPaymentCampaignGetResponseChargeType.md b/documentation/models/PaymentLinkSaveRequestChargeType.md similarity index 89% rename from documentation/models/ApiPaymentCampaignGetResponseChargeType.md rename to documentation/models/PaymentLinkSaveRequestChargeType.md index 85b6e64..c27afc8 100644 --- a/documentation/models/ApiPaymentCampaignGetResponseChargeType.md +++ b/documentation/models/PaymentLinkSaveRequestChargeType.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignGetResponseChargeType +# PaymentLinkSaveRequestChargeType Charge type diff --git a/documentation/models/ApiPaymentCampaignSaveRequestCycle.md b/documentation/models/PaymentLinkSaveRequestCycle.md similarity index 94% rename from documentation/models/ApiPaymentCampaignSaveRequestCycle.md rename to documentation/models/PaymentLinkSaveRequestCycle.md index 6576d81..82e9f15 100644 --- a/documentation/models/ApiPaymentCampaignSaveRequestCycle.md +++ b/documentation/models/PaymentLinkSaveRequestCycle.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignSaveRequestCycle +# PaymentLinkSaveRequestCycle Billing frequency, if the chargeType is RECURRENT 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/ApiPaymentCampaignUpdateRequestBillingType.md b/documentation/models/PaymentLinkUpdateRequestBillingType.md similarity index 90% rename from documentation/models/ApiPaymentCampaignUpdateRequestBillingType.md rename to documentation/models/PaymentLinkUpdateRequestBillingType.md index cc8ba72..6f76329 100644 --- a/documentation/models/ApiPaymentCampaignUpdateRequestBillingType.md +++ b/documentation/models/PaymentLinkUpdateRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignUpdateRequestBillingType +# PaymentLinkUpdateRequestBillingType Allowed payment method diff --git a/documentation/models/ApiPaymentCampaignUpdateRequestChargeType.md b/documentation/models/PaymentLinkUpdateRequestChargeType.md similarity index 89% rename from documentation/models/ApiPaymentCampaignUpdateRequestChargeType.md rename to documentation/models/PaymentLinkUpdateRequestChargeType.md index 7cf457e..1f9dda6 100644 --- a/documentation/models/ApiPaymentCampaignUpdateRequestChargeType.md +++ b/documentation/models/PaymentLinkUpdateRequestChargeType.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignUpdateRequestChargeType +# PaymentLinkUpdateRequestChargeType Charge type diff --git a/documentation/models/ApiPaymentCampaignUpdateRequestCycle.md b/documentation/models/PaymentLinkUpdateRequestCycle.md similarity index 94% rename from documentation/models/ApiPaymentCampaignUpdateRequestCycle.md rename to documentation/models/PaymentLinkUpdateRequestCycle.md index f989694..d7ee282 100644 --- a/documentation/models/ApiPaymentCampaignUpdateRequestCycle.md +++ b/documentation/models/PaymentLinkUpdateRequestCycle.md @@ -1,4 +1,4 @@ -# ApiPaymentCampaignUpdateRequestCycle +# PaymentLinkUpdateRequestCycle Billing frequency, if the chargeType is RECURRENT 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/ApiPaymentListRequestBillingType.md b/documentation/models/PaymentListRequestBillingType.md similarity index 92% rename from documentation/models/ApiPaymentListRequestBillingType.md rename to documentation/models/PaymentListRequestBillingType.md index 8b50ddb..c918471 100644 --- a/documentation/models/ApiPaymentListRequestBillingType.md +++ b/documentation/models/PaymentListRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiPaymentListRequestBillingType +# PaymentListRequestBillingType Filter by billing type diff --git a/documentation/models/ApiPaymentListRequestInvoiceStatus.md b/documentation/models/PaymentListRequestInvoiceStatus.md similarity index 95% rename from documentation/models/ApiPaymentListRequestInvoiceStatus.md rename to documentation/models/PaymentListRequestInvoiceStatus.md index 39a3e85..6aeb105 100644 --- a/documentation/models/ApiPaymentListRequestInvoiceStatus.md +++ b/documentation/models/PaymentListRequestInvoiceStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentListRequestInvoiceStatus +# PaymentListRequestInvoiceStatus Filter to return charges that have or do not have an invoice diff --git a/documentation/models/ApiPaymentListRequestPaymentStatus.md b/documentation/models/PaymentListRequestPaymentStatus.md similarity index 97% rename from documentation/models/ApiPaymentListRequestPaymentStatus.md rename to documentation/models/PaymentListRequestPaymentStatus.md index b2e40bc..83b9d4f 100644 --- a/documentation/models/ApiPaymentListRequestPaymentStatus.md +++ b/documentation/models/PaymentListRequestPaymentStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentListRequestPaymentStatus +# PaymentListRequestPaymentStatus Filter by status 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/ApiPaymentPixQrCodeResponseDto.md b/documentation/models/PaymentPixQrCodeResponseDto.md similarity index 88% rename from documentation/models/ApiPaymentPixQrCodeResponseDto.md rename to documentation/models/PaymentPixQrCodeResponseDto.md index c660a99..a89d445 100644 --- a/documentation/models/ApiPaymentPixQrCodeResponseDto.md +++ b/documentation/models/PaymentPixQrCodeResponseDto.md @@ -1,4 +1,6 @@ -# ApiPaymentPixQrCodeResponseDto +# PaymentPixQrCodeResponseDto + +Payment data related to pix **Properties** diff --git a/documentation/models/ApiPaymentReceiveInCashRequestDto.md b/documentation/models/PaymentReceiveInCashRequestDto.md similarity index 94% rename from documentation/models/ApiPaymentReceiveInCashRequestDto.md rename to documentation/models/PaymentReceiveInCashRequestDto.md index 72d119f..00a018b 100644 --- a/documentation/models/ApiPaymentReceiveInCashRequestDto.md +++ b/documentation/models/PaymentReceiveInCashRequestDto.md @@ -1,4 +1,4 @@ -# ApiPaymentReceiveInCashRequestDto +# PaymentReceiveInCashRequestDto **Properties** 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/ApiInstallmentRefundResponsePaymentRefundStatus.md b/documentation/models/PaymentRefundGetResponsePaymentRefundStatus.md similarity index 94% rename from documentation/models/ApiInstallmentRefundResponsePaymentRefundStatus.md rename to documentation/models/PaymentRefundGetResponsePaymentRefundStatus.md index 953fe22..271ea82 100644 --- a/documentation/models/ApiInstallmentRefundResponsePaymentRefundStatus.md +++ b/documentation/models/PaymentRefundGetResponsePaymentRefundStatus.md @@ -1,4 +1,4 @@ -# ApiInstallmentRefundResponsePaymentRefundStatus +# PaymentRefundGetResponsePaymentRefundStatus Refund status 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/ApiPaymentRefundRequestDto.md b/documentation/models/PaymentRefundRequestDto.md similarity index 91% rename from documentation/models/ApiPaymentRefundRequestDto.md rename to documentation/models/PaymentRefundRequestDto.md index 9c08e50..6749edd 100644 --- a/documentation/models/ApiPaymentRefundRequestDto.md +++ b/documentation/models/PaymentRefundRequestDto.md @@ -1,4 +1,4 @@ -# ApiPaymentRefundRequestDto +# PaymentRefundRequestDto **Properties** diff --git a/documentation/models/ApiPaymentRefundedSplitResponseDto.md b/documentation/models/PaymentRefundedSplitResponseDto.md similarity index 88% rename from documentation/models/ApiPaymentRefundedSplitResponseDto.md rename to documentation/models/PaymentRefundedSplitResponseDto.md index a53d885..60e9656 100644 --- a/documentation/models/ApiPaymentRefundedSplitResponseDto.md +++ b/documentation/models/PaymentRefundedSplitResponseDto.md @@ -1,4 +1,6 @@ -# ApiPaymentRefundedSplitResponseDto +# PaymentRefundedSplitResponseDto + +Refunded Splits, if any **Properties** diff --git a/documentation/models/ApiPaymentSaveRequestBillingType.md b/documentation/models/PaymentSaveRequestBillingType.md similarity index 92% rename from documentation/models/ApiPaymentSaveRequestBillingType.md rename to documentation/models/PaymentSaveRequestBillingType.md index 2581a1a..1402dc6 100644 --- a/documentation/models/ApiPaymentSaveRequestBillingType.md +++ b/documentation/models/PaymentSaveRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiPaymentSaveRequestBillingType +# PaymentSaveRequestBillingType Payment billing type 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/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.md b/documentation/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.md similarity index 89% rename from documentation/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.md rename to documentation/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.md index 85efc90..45dc362 100644 --- a/documentation/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.md +++ b/documentation/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.md @@ -1,4 +1,4 @@ -# ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand +# PaymentSaveWithCreditCardCreditCardCreditCardBrand Flag of the card used @@ -12,7 +12,6 @@ Flag of the card used | DINERS | String | ✅ | "DINERS" | | DISCOVER | String | ✅ | "DISCOVER" | | AMEX | String | ✅ | "AMEX" | -| HIPERCARD | String | ✅ | "HIPERCARD" | | CABAL | String | ✅ | "CABAL" | | BANESCARD | String | ✅ | "BANESCARD" | | CREDZ | String | ✅ | "CREDZ" | 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/ApiPaymentSaveWithCreditCardRequestBillingType.md b/documentation/models/PaymentSaveWithCreditCardRequestBillingType.md similarity index 89% rename from documentation/models/ApiPaymentSaveWithCreditCardRequestBillingType.md rename to documentation/models/PaymentSaveWithCreditCardRequestBillingType.md index 5175518..4d576e1 100644 --- a/documentation/models/ApiPaymentSaveWithCreditCardRequestBillingType.md +++ b/documentation/models/PaymentSaveWithCreditCardRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiPaymentSaveWithCreditCardRequestBillingType +# PaymentSaveWithCreditCardRequestBillingType Payment billing type diff --git a/documentation/models/ApiPaymentSaveWithCreditCardRequestDto.md b/documentation/models/PaymentSaveWithCreditCardRequestDto.md similarity index 54% rename from documentation/models/ApiPaymentSaveWithCreditCardRequestDto.md rename to documentation/models/PaymentSaveWithCreditCardRequestDto.md index 57c340e..fbe154a 100644 --- a/documentation/models/ApiPaymentSaveWithCreditCardRequestDto.md +++ b/documentation/models/PaymentSaveWithCreditCardRequestDto.md @@ -1,29 +1,29 @@ -# ApiPaymentSaveWithCreditCardRequestDto +# PaymentSaveWithCreditCardRequestDto **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 | +| 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/ApiPaymentSimulateInstallmentResponseDto.md b/documentation/models/PaymentSimulateInstallmentResponseDto.md similarity index 82% rename from documentation/models/ApiPaymentSimulateInstallmentResponseDto.md rename to documentation/models/PaymentSimulateInstallmentResponseDto.md index f7ccff3..fd6a1bf 100644 --- a/documentation/models/ApiPaymentSimulateInstallmentResponseDto.md +++ b/documentation/models/PaymentSimulateInstallmentResponseDto.md @@ -1,4 +1,6 @@ -# ApiPaymentSimulateInstallmentResponseDto +# PaymentSimulateInstallmentResponseDto + +Installment information **Properties** 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/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.md b/documentation/models/PaymentSplitGetResponsePaymentSplitCancellationReason.md similarity index 92% rename from documentation/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.md rename to documentation/models/PaymentSplitGetResponsePaymentSplitCancellationReason.md index 662e6cc..daa2af1 100644 --- a/documentation/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.md +++ b/documentation/models/PaymentSplitGetResponsePaymentSplitCancellationReason.md @@ -1,4 +1,4 @@ -# ApiPaymentSplitGetResponsePaymentSplitCancellationReason +# PaymentSplitGetResponsePaymentSplitCancellationReason Reason for canceling the split diff --git a/documentation/models/ApiPaymentSplitGetResponsePaymentSplitStatus.md b/documentation/models/PaymentSplitGetResponsePaymentSplitStatus.md similarity index 94% rename from documentation/models/ApiPaymentSplitGetResponsePaymentSplitStatus.md rename to documentation/models/PaymentSplitGetResponsePaymentSplitStatus.md index 7700ebf..71c505d 100644 --- a/documentation/models/ApiPaymentSplitGetResponsePaymentSplitStatus.md +++ b/documentation/models/PaymentSplitGetResponsePaymentSplitStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentSplitGetResponsePaymentSplitStatus +# PaymentSplitGetResponsePaymentSplitStatus Split status diff --git a/documentation/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.md b/documentation/models/PaymentSplitListPaidRequestPaymentSplitStatus.md similarity index 93% rename from documentation/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.md rename to documentation/models/PaymentSplitListPaidRequestPaymentSplitStatus.md index 4924fd9..a5ff989 100644 --- a/documentation/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.md +++ b/documentation/models/PaymentSplitListPaidRequestPaymentSplitStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentSplitListPaidRequestPaymentSplitStatus +# PaymentSplitListPaidRequestPaymentSplitStatus Filter by status diff --git a/documentation/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.md b/documentation/models/PaymentSplitListReceivedRequestPaymentSplitStatus.md similarity index 93% rename from documentation/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.md rename to documentation/models/PaymentSplitListReceivedRequestPaymentSplitStatus.md index c4fd908..1df31b2 100644 --- a/documentation/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.md +++ b/documentation/models/PaymentSplitListReceivedRequestPaymentSplitStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentSplitListReceivedRequestPaymentSplitStatus +# PaymentSplitListReceivedRequestPaymentSplitStatus Filter by status 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/ApiPaymentSplitRequestDto.md b/documentation/models/PaymentSplitRequestDto.md similarity index 96% rename from documentation/models/ApiPaymentSplitRequestDto.md rename to documentation/models/PaymentSplitRequestDto.md index 912793d..887aa1d 100644 --- a/documentation/models/ApiPaymentSplitRequestDto.md +++ b/documentation/models/PaymentSplitRequestDto.md @@ -1,4 +1,6 @@ -# ApiPaymentSplitRequestDto +# PaymentSplitRequestDto + +Split Settings **Properties** 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/ApiPaymentLeanGetResponsePaymentStatus.md b/documentation/models/PaymentStatusResponsePaymentStatus.md similarity index 97% rename from documentation/models/ApiPaymentLeanGetResponsePaymentStatus.md rename to documentation/models/PaymentStatusResponsePaymentStatus.md index bce7608..bb0bc7e 100644 --- a/documentation/models/ApiPaymentLeanGetResponsePaymentStatus.md +++ b/documentation/models/PaymentStatusResponsePaymentStatus.md @@ -1,4 +1,4 @@ -# ApiPaymentLeanGetResponsePaymentStatus +# PaymentStatusResponsePaymentStatus Payment status diff --git a/documentation/models/ApiInstallmentSaveRequestBillingType.md b/documentation/models/PaymentUpdateRequestBillingType.md similarity index 91% rename from documentation/models/ApiInstallmentSaveRequestBillingType.md rename to documentation/models/PaymentUpdateRequestBillingType.md index c638a87..1572196 100644 --- a/documentation/models/ApiInstallmentSaveRequestBillingType.md +++ b/documentation/models/PaymentUpdateRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiInstallmentSaveRequestBillingType +# PaymentUpdateRequestBillingType Payment billing type 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/ApiPaymentViewingInfoResponseDto.md b/documentation/models/PaymentViewingInfoResponseDto.md similarity index 91% rename from documentation/models/ApiPaymentViewingInfoResponseDto.md rename to documentation/models/PaymentViewingInfoResponseDto.md index bb8cff4..b2f5b10 100644 --- a/documentation/models/ApiPaymentViewingInfoResponseDto.md +++ b/documentation/models/PaymentViewingInfoResponseDto.md @@ -1,4 +1,4 @@ -# ApiPaymentViewingInfoResponseDto +# PaymentViewingInfoResponseDto **Properties** 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/ApiPixAddressKeyGetResponsePixAddressKeyStatus.md b/documentation/models/PixAddressKeyGetResponsePixAddressKeyStatus.md similarity index 93% rename from documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.md rename to documentation/models/PixAddressKeyGetResponsePixAddressKeyStatus.md index bd3d5ab..22dbb16 100644 --- a/documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.md +++ b/documentation/models/PixAddressKeyGetResponsePixAddressKeyStatus.md @@ -1,4 +1,4 @@ -# ApiPixAddressKeyGetResponsePixAddressKeyStatus +# PixAddressKeyGetResponsePixAddressKeyStatus Key status diff --git a/documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyType.md b/documentation/models/PixAddressKeyGetResponsePixAddressKeyType.md similarity index 82% rename from documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyType.md rename to documentation/models/PixAddressKeyGetResponsePixAddressKeyType.md index 93e22f7..1633239 100644 --- a/documentation/models/ApiPixAddressKeyGetResponsePixAddressKeyType.md +++ b/documentation/models/PixAddressKeyGetResponsePixAddressKeyType.md @@ -1,4 +1,4 @@ -# ApiPixAddressKeyGetResponsePixAddressKeyType +# PixAddressKeyGetResponsePixAddressKeyType Pix key type diff --git a/documentation/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.md b/documentation/models/PixAddressKeyListRequestPixAddressKeyStatus.md similarity index 93% rename from documentation/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.md rename to documentation/models/PixAddressKeyListRequestPixAddressKeyStatus.md index 4e5d8c8..8717098 100644 --- a/documentation/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.md +++ b/documentation/models/PixAddressKeyListRequestPixAddressKeyStatus.md @@ -1,4 +1,4 @@ -# ApiPixAddressKeyListRequestPixAddressKeyStatus +# PixAddressKeyListRequestPixAddressKeyStatus Filter by current key status 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/ApiPixAddressKeyQrCodeGetResponseDto.md b/documentation/models/PixAddressKeyQrCodeGetResponseDto.md similarity index 86% rename from documentation/models/ApiPixAddressKeyQrCodeGetResponseDto.md rename to documentation/models/PixAddressKeyQrCodeGetResponseDto.md index 2a39584..397e7ff 100644 --- a/documentation/models/ApiPixAddressKeyQrCodeGetResponseDto.md +++ b/documentation/models/PixAddressKeyQrCodeGetResponseDto.md @@ -1,4 +1,6 @@ -# ApiPixAddressKeyQrCodeGetResponseDto +# PixAddressKeyQrCodeGetResponseDto + +Pix key QRCode **Properties** 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/ApiPixAddressKeySaveRequestPixAddressKeyType.md b/documentation/models/PixAddressKeySaveRequestPixAddressKeyType.md similarity index 82% rename from documentation/models/ApiPixAddressKeySaveRequestPixAddressKeyType.md rename to documentation/models/PixAddressKeySaveRequestPixAddressKeyType.md index 5a36c55..75230c8 100644 --- a/documentation/models/ApiPixAddressKeySaveRequestPixAddressKeyType.md +++ b/documentation/models/PixAddressKeySaveRequestPixAddressKeyType.md @@ -1,4 +1,4 @@ -# ApiPixAddressKeySaveRequestPixAddressKeyType +# PixAddressKeySaveRequestPixAddressKeyType Pix key type diff --git a/documentation/models/ApiPixOriginalTransactionResponseDto.md b/documentation/models/PixOriginalTransactionResponseDto.md similarity index 87% rename from documentation/models/ApiPixOriginalTransactionResponseDto.md rename to documentation/models/PixOriginalTransactionResponseDto.md index 609bdaa..c565980 100644 --- a/documentation/models/ApiPixOriginalTransactionResponseDto.md +++ b/documentation/models/PixOriginalTransactionResponseDto.md @@ -1,4 +1,6 @@ -# ApiPixOriginalTransactionResponseDto +# PixOriginalTransactionResponseDto + +Original transaction information if a chargeback has occurred **Properties** 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/ApiPixQrCodeDecodeReceiverPersonType.md b/documentation/models/PixQrCodeDecodeReceiverPersonType.md similarity index 88% rename from documentation/models/ApiPixQrCodeDecodeReceiverPersonType.md rename to documentation/models/PixQrCodeDecodeReceiverPersonType.md index 4466a5e..95712af 100644 --- a/documentation/models/ApiPixQrCodeDecodeReceiverPersonType.md +++ b/documentation/models/PixQrCodeDecodeReceiverPersonType.md @@ -1,4 +1,4 @@ -# ApiPixQrCodeDecodeReceiverPersonType +# PixQrCodeDecodeReceiverPersonType Person type diff --git a/documentation/models/ApiPixQrCodeDecodeReceiverPixAccountType.md b/documentation/models/PixQrCodeDecodeReceiverPixAccountType.md similarity index 92% rename from documentation/models/ApiPixQrCodeDecodeReceiverPixAccountType.md rename to documentation/models/PixQrCodeDecodeReceiverPixAccountType.md index 686abcc..00c8f15 100644 --- a/documentation/models/ApiPixQrCodeDecodeReceiverPixAccountType.md +++ b/documentation/models/PixQrCodeDecodeReceiverPixAccountType.md @@ -1,4 +1,4 @@ -# ApiPixQrCodeDecodeReceiverPixAccountType +# PixQrCodeDecodeReceiverPixAccountType Receiver account type diff --git a/documentation/models/ApiPixQrCodeDecodeRequestDto.md b/documentation/models/PixQrCodeDecodeRequestDto.md similarity index 92% rename from documentation/models/ApiPixQrCodeDecodeRequestDto.md rename to documentation/models/PixQrCodeDecodeRequestDto.md index 012a61f..8d779c8 100644 --- a/documentation/models/ApiPixQrCodeDecodeRequestDto.md +++ b/documentation/models/PixQrCodeDecodeRequestDto.md @@ -1,4 +1,4 @@ -# ApiPixQrCodeDecodeRequestDto +# PixQrCodeDecodeRequestDto **Properties** 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/ApiPixQrCodeDecodeResponsePixQrCodeType.md b/documentation/models/PixQrCodeDecodeResponsePixQrCodeType.md similarity index 93% rename from documentation/models/ApiPixQrCodeDecodeResponsePixQrCodeType.md rename to documentation/models/PixQrCodeDecodeResponsePixQrCodeType.md index 0a4068c..9063ae9 100644 --- a/documentation/models/ApiPixQrCodeDecodeResponsePixQrCodeType.md +++ b/documentation/models/PixQrCodeDecodeResponsePixQrCodeType.md @@ -1,4 +1,4 @@ -# ApiPixQrCodeDecodeResponsePixQrCodeType +# PixQrCodeDecodeResponsePixQrCodeType QRCode Type diff --git a/documentation/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.md b/documentation/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.md similarity index 85% rename from documentation/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.md rename to documentation/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.md index cf07467..cafc98e 100644 --- a/documentation/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.md +++ b/documentation/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.md @@ -1,4 +1,4 @@ -# ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality +# PixQrCodeDecodeResponsePixTransactionCashValueFinality Used to indicate whether it is a Withdrawal or Change diff --git a/documentation/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.md b/documentation/models/PixQrCodeDecodeResponsePixTransactionOriginType.md similarity index 93% rename from documentation/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.md rename to documentation/models/PixQrCodeDecodeResponsePixTransactionOriginType.md index c9aacae..1e04249 100644 --- a/documentation/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.md +++ b/documentation/models/PixQrCodeDecodeResponsePixTransactionOriginType.md @@ -1,4 +1,4 @@ -# ApiPixQrCodeDecodeResponsePixTransactionOriginType +# PixQrCodeDecodeResponsePixTransactionOriginType Transaction origin diff --git a/documentation/models/ApiPixQrCodeDeleteResponseDto.md b/documentation/models/PixQrCodeDeleteResponseDto.md similarity index 92% rename from documentation/models/ApiPixQrCodeDeleteResponseDto.md rename to documentation/models/PixQrCodeDeleteResponseDto.md index 8787066..726bb71 100644 --- a/documentation/models/ApiPixQrCodeDeleteResponseDto.md +++ b/documentation/models/PixQrCodeDeleteResponseDto.md @@ -1,4 +1,4 @@ -# ApiPixQrCodeDeleteResponseDto +# PixQrCodeDeleteResponseDto **Properties** diff --git a/documentation/models/ApiPixQrCodeSaveRequestDto.md b/documentation/models/PixQrCodeSaveRequestDto.md similarity index 98% rename from documentation/models/ApiPixQrCodeSaveRequestDto.md rename to documentation/models/PixQrCodeSaveRequestDto.md index 4589e0f..2ecc939 100644 --- a/documentation/models/ApiPixQrCodeSaveRequestDto.md +++ b/documentation/models/PixQrCodeSaveRequestDto.md @@ -1,4 +1,4 @@ -# ApiPixQrCodeSaveRequestDto +# PixQrCodeSaveRequestDto **Properties** diff --git a/documentation/models/ApiPixQrCodeSaveResponseDto.md b/documentation/models/PixQrCodeSaveResponseDto.md similarity index 97% rename from documentation/models/ApiPixQrCodeSaveResponseDto.md rename to documentation/models/PixQrCodeSaveResponseDto.md index c61407d..5a535a8 100644 --- a/documentation/models/ApiPixQrCodeSaveResponseDto.md +++ b/documentation/models/PixQrCodeSaveResponseDto.md @@ -1,4 +1,4 @@ -# ApiPixQrCodeSaveResponseDto +# PixQrCodeSaveResponseDto **Properties** diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.md b/documentation/models/PixRecurringTransactionExternalAccountDto.md similarity index 89% rename from documentation/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.md rename to documentation/models/PixRecurringTransactionExternalAccountDto.md index a5cefb4..8b21498 100644 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.md +++ b/documentation/models/PixRecurringTransactionExternalAccountDto.md @@ -1,4 +1,6 @@ -# ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto +# PixRecurringTransactionExternalAccountDto + +Receiver information **Properties** 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/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.md b/documentation/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.md similarity index 80% rename from documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.md rename to documentation/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.md index 6acde34..c322ea7 100644 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.md +++ b/documentation/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.md @@ -1,4 +1,4 @@ -# ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus +# PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus Recurrence item status 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/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.md b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.md similarity index 76% rename from documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.md rename to documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.md index a903401..4b9d7b0 100644 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.md +++ b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.md @@ -1,4 +1,4 @@ -# ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency +# PixRecurringTransactionGetResponsePixRecurringTransactionFrequency Recurrence frequency diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.md b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.md similarity index 74% rename from documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.md rename to documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.md index 8a75d01..af3347c 100644 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin.md +++ b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionOrigin.md @@ -1,4 +1,4 @@ -# ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin +# PixRecurringTransactionGetResponsePixRecurringTransactionOrigin Indicates the origin of the recurrence diff --git a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.md b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.md similarity index 90% rename from documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.md rename to documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.md index d1c23ca..e37791b 100644 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.md +++ b/documentation/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.md @@ -1,4 +1,4 @@ -# ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus +# PixRecurringTransactionGetResponsePixRecurringTransactionStatus Recurrence status diff --git a/documentation/models/ApiFinancialTransactionListResponseDto.md b/documentation/models/PixRecurringTransactionListResponseDto.md similarity index 91% rename from documentation/models/ApiFinancialTransactionListResponseDto.md rename to documentation/models/PixRecurringTransactionListResponseDto.md index daf810e..de3d250 100644 --- a/documentation/models/ApiFinancialTransactionListResponseDto.md +++ b/documentation/models/PixRecurringTransactionListResponseDto.md @@ -1,4 +1,4 @@ -# ApiFinancialTransactionListResponseDto +# PixRecurringTransactionListResponseDto **Properties** @@ -9,6 +9,6 @@ | 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 | +| data | List\ | ❌ | List of objects | diff --git a/documentation/models/ApiPixTokenBucketGetAddressKeyResponseDto.md b/documentation/models/PixTokenBucketGetAddressKeyResponseDto.md similarity index 87% rename from documentation/models/ApiPixTokenBucketGetAddressKeyResponseDto.md rename to documentation/models/PixTokenBucketGetAddressKeyResponseDto.md index b9fcc59..b736629 100644 --- a/documentation/models/ApiPixTokenBucketGetAddressKeyResponseDto.md +++ b/documentation/models/PixTokenBucketGetAddressKeyResponseDto.md @@ -1,4 +1,4 @@ -# ApiPixTokenBucketGetAddressKeyResponseDto +# PixTokenBucketGetAddressKeyResponseDto **Properties** 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/ApiPixTransactionExternalAccountResponsePixAddressKeyType.md b/documentation/models/PixTransactionExternalAccountResponsePixAddressKeyType.md similarity index 87% rename from documentation/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.md rename to documentation/models/PixTransactionExternalAccountResponsePixAddressKeyType.md index 414a5c8..a8d81ea 100644 --- a/documentation/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.md +++ b/documentation/models/PixTransactionExternalAccountResponsePixAddressKeyType.md @@ -1,4 +1,4 @@ -# ApiPixTransactionExternalAccountResponsePixAddressKeyType +# PixTransactionExternalAccountResponsePixAddressKeyType Pix key type 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/ApiPixTransactionGetResponsePixAddressKeyType.md b/documentation/models/PixTransactionGetResponsePixAddressKeyType.md similarity index 89% rename from documentation/models/ApiPixTransactionGetResponsePixAddressKeyType.md rename to documentation/models/PixTransactionGetResponsePixAddressKeyType.md index f5988b9..5043e2c 100644 --- a/documentation/models/ApiPixTransactionGetResponsePixAddressKeyType.md +++ b/documentation/models/PixTransactionGetResponsePixAddressKeyType.md @@ -1,4 +1,4 @@ -# ApiPixTransactionGetResponsePixAddressKeyType +# PixTransactionGetResponsePixAddressKeyType Pix key type diff --git a/documentation/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.md b/documentation/models/PixTransactionGetResponsePixTransactionCashValueFinality.md similarity index 84% rename from documentation/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.md rename to documentation/models/PixTransactionGetResponsePixTransactionCashValueFinality.md index 7198610..74f8c98 100644 --- a/documentation/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.md +++ b/documentation/models/PixTransactionGetResponsePixTransactionCashValueFinality.md @@ -1,4 +1,4 @@ -# ApiPixTransactionGetResponsePixTransactionCashValueFinality +# PixTransactionGetResponsePixTransactionCashValueFinality Used to indicate whether it is a Withdrawal or Change diff --git a/documentation/models/ApiPixTransactionGetResponsePixTransactionOriginType.md b/documentation/models/PixTransactionGetResponsePixTransactionOriginType.md similarity index 93% rename from documentation/models/ApiPixTransactionGetResponsePixTransactionOriginType.md rename to documentation/models/PixTransactionGetResponsePixTransactionOriginType.md index 30de9cb..a7c06dd 100644 --- a/documentation/models/ApiPixTransactionGetResponsePixTransactionOriginType.md +++ b/documentation/models/PixTransactionGetResponsePixTransactionOriginType.md @@ -1,4 +1,4 @@ -# ApiPixTransactionGetResponsePixTransactionOriginType +# PixTransactionGetResponsePixTransactionOriginType Indicates the origin of the transaction diff --git a/documentation/models/ApiPixTransactionGetResponsePixTransactionStatus.md b/documentation/models/PixTransactionGetResponsePixTransactionStatus.md similarity index 96% rename from documentation/models/ApiPixTransactionGetResponsePixTransactionStatus.md rename to documentation/models/PixTransactionGetResponsePixTransactionStatus.md index 5d9625f..3b56f32 100644 --- a/documentation/models/ApiPixTransactionGetResponsePixTransactionStatus.md +++ b/documentation/models/PixTransactionGetResponsePixTransactionStatus.md @@ -1,4 +1,4 @@ -# ApiPixTransactionGetResponsePixTransactionStatus +# PixTransactionGetResponsePixTransactionStatus Transaction status diff --git a/documentation/models/ApiPixTransactionGetResponsePixTransactionType.md b/documentation/models/PixTransactionGetResponsePixTransactionType.md similarity index 93% rename from documentation/models/ApiPixTransactionGetResponsePixTransactionType.md rename to documentation/models/PixTransactionGetResponsePixTransactionType.md index 6632175..c7f92d9 100644 --- a/documentation/models/ApiPixTransactionGetResponsePixTransactionType.md +++ b/documentation/models/PixTransactionGetResponsePixTransactionType.md @@ -1,4 +1,4 @@ -# ApiPixTransactionGetResponsePixTransactionType +# PixTransactionGetResponsePixTransactionType Transaction type diff --git a/documentation/models/ApiPixTransactionListRequestPixTransactionStatus.md b/documentation/models/PixTransactionListRequestPixTransactionStatus.md similarity index 96% rename from documentation/models/ApiPixTransactionListRequestPixTransactionStatus.md rename to documentation/models/PixTransactionListRequestPixTransactionStatus.md index 28806df..79465c7 100644 --- a/documentation/models/ApiPixTransactionListRequestPixTransactionStatus.md +++ b/documentation/models/PixTransactionListRequestPixTransactionStatus.md @@ -1,4 +1,4 @@ -# ApiPixTransactionListRequestPixTransactionStatus +# PixTransactionListRequestPixTransactionStatus Filter by transaction status diff --git a/documentation/models/ApiPixTransactionListRequestPixTransactionType.md b/documentation/models/PixTransactionListRequestPixTransactionType.md similarity index 93% rename from documentation/models/ApiPixTransactionListRequestPixTransactionType.md rename to documentation/models/PixTransactionListRequestPixTransactionType.md index 646b63d..0cac4af 100644 --- a/documentation/models/ApiPixTransactionListRequestPixTransactionType.md +++ b/documentation/models/PixTransactionListRequestPixTransactionType.md @@ -1,4 +1,4 @@ -# ApiPixTransactionListRequestPixTransactionType +# PixTransactionListRequestPixTransactionType Filter by transaction type diff --git a/documentation/models/ApiPaymentLeanListResponseDto.md b/documentation/models/PixTransactionListResponseDto.md similarity index 91% rename from documentation/models/ApiPaymentLeanListResponseDto.md rename to documentation/models/PixTransactionListResponseDto.md index 42d6069..3e780ee 100644 --- a/documentation/models/ApiPaymentLeanListResponseDto.md +++ b/documentation/models/PixTransactionListResponseDto.md @@ -1,4 +1,4 @@ -# ApiPaymentLeanListResponseDto +# PixTransactionListResponseDto **Properties** @@ -9,6 +9,6 @@ | 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 | +| data | List\ | ❌ | List of objects | diff --git a/documentation/models/ApiPixTransactionQrCodePayerResponseDto.md b/documentation/models/PixTransactionQrCodePayerResponseDto.md similarity index 82% rename from documentation/models/ApiPixTransactionQrCodePayerResponseDto.md rename to documentation/models/PixTransactionQrCodePayerResponseDto.md index 0feeeb3..ad71c02 100644 --- a/documentation/models/ApiPixTransactionQrCodePayerResponseDto.md +++ b/documentation/models/PixTransactionQrCodePayerResponseDto.md @@ -1,4 +1,6 @@ -# ApiPixTransactionQrCodePayerResponseDto +# PixTransactionQrCodePayerResponseDto + +Information about the payer **Properties** 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/ApiPixTransactionQrCodeSaveRequestDto.md b/documentation/models/PixTransactionQrCodeSaveRequestDto.md similarity index 85% rename from documentation/models/ApiPixTransactionQrCodeSaveRequestDto.md rename to documentation/models/PixTransactionQrCodeSaveRequestDto.md index 802028d..cbceed8 100644 --- a/documentation/models/ApiPixTransactionQrCodeSaveRequestDto.md +++ b/documentation/models/PixTransactionQrCodeSaveRequestDto.md @@ -1,4 +1,6 @@ -# ApiPixTransactionQrCodeSaveRequestDto +# PixTransactionQrCodeSaveRequestDto + +QRCode payload for payment **Properties** 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/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.md b/documentation/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.md similarity index 90% rename from documentation/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.md rename to documentation/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.md index c3f0c5e..91a57ba 100644 --- a/documentation/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.md +++ b/documentation/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.md @@ -1,4 +1,4 @@ -# ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus +# RecurringPixTransactionListRequestPixRecurringTransactionStatus Filter by recurrence status 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/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md b/documentation/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md similarity index 91% rename from documentation/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md rename to documentation/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md index 13825c5..16f5cf1 100644 --- a/documentation/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md +++ b/documentation/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.md @@ -1,4 +1,4 @@ -# ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod +# SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod When the invoice will be issued diff --git a/documentation/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.md b/documentation/models/SubscriptionDeleteInvoiceConfigResponseDto.md similarity index 89% rename from documentation/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.md rename to documentation/models/SubscriptionDeleteInvoiceConfigResponseDto.md index 7a437bf..169e9c9 100644 --- a/documentation/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.md +++ b/documentation/models/SubscriptionDeleteInvoiceConfigResponseDto.md @@ -1,4 +1,4 @@ -# ApiSubscriptionDeleteInvoiceConfigResponseDto +# SubscriptionDeleteInvoiceConfigResponseDto **Properties** diff --git a/documentation/models/ApiSubscriptionDeleteResponseDto.md b/documentation/models/SubscriptionDeleteResponseDto.md similarity index 92% rename from documentation/models/ApiSubscriptionDeleteResponseDto.md rename to documentation/models/SubscriptionDeleteResponseDto.md index e68e646..a913b30 100644 --- a/documentation/models/ApiSubscriptionDeleteResponseDto.md +++ b/documentation/models/SubscriptionDeleteResponseDto.md @@ -1,4 +1,4 @@ -# ApiSubscriptionDeleteResponseDto +# SubscriptionDeleteResponseDto **Properties** diff --git a/documentation/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.md b/documentation/models/SubscriptionGetInvoicesRequestInvoiceStatus.md similarity index 95% rename from documentation/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.md rename to documentation/models/SubscriptionGetInvoicesRequestInvoiceStatus.md index 6cc5ef9..6153194 100644 --- a/documentation/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.md +++ b/documentation/models/SubscriptionGetInvoicesRequestInvoiceStatus.md @@ -1,4 +1,4 @@ -# ApiSubscriptionGetInvoicesRequestInvoiceStatus +# SubscriptionGetInvoicesRequestInvoiceStatus Filter by invoice status diff --git a/documentation/models/ApiSubscriptionGetResponseBillingType.md b/documentation/models/SubscriptionGetResponseBillingType.md similarity index 93% rename from documentation/models/ApiSubscriptionGetResponseBillingType.md rename to documentation/models/SubscriptionGetResponseBillingType.md index 4200c38..3f419e3 100644 --- a/documentation/models/ApiSubscriptionGetResponseBillingType.md +++ b/documentation/models/SubscriptionGetResponseBillingType.md @@ -1,4 +1,4 @@ -# ApiSubscriptionGetResponseBillingType +# SubscriptionGetResponseBillingType Billing type diff --git a/documentation/models/ApiSubscriptionGetResponseCycle.md b/documentation/models/SubscriptionGetResponseCycle.md similarity index 94% rename from documentation/models/ApiSubscriptionGetResponseCycle.md rename to documentation/models/SubscriptionGetResponseCycle.md index d8851d4..527a013 100644 --- a/documentation/models/ApiSubscriptionGetResponseCycle.md +++ b/documentation/models/SubscriptionGetResponseCycle.md @@ -1,4 +1,4 @@ -# ApiSubscriptionGetResponseCycle +# SubscriptionGetResponseCycle Billing frequency 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/ApiSubscriptionGetResponseSubscriptionStatus.md b/documentation/models/SubscriptionGetResponseSubscriptionStatus.md similarity index 87% rename from documentation/models/ApiSubscriptionGetResponseSubscriptionStatus.md rename to documentation/models/SubscriptionGetResponseSubscriptionStatus.md index 2091a9a..9298450 100644 --- a/documentation/models/ApiSubscriptionGetResponseSubscriptionStatus.md +++ b/documentation/models/SubscriptionGetResponseSubscriptionStatus.md @@ -1,4 +1,4 @@ -# ApiSubscriptionGetResponseSubscriptionStatus +# SubscriptionGetResponseSubscriptionStatus Subscription status 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/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md b/documentation/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md similarity index 90% rename from documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md rename to documentation/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md index a1685e7..6c5c3eb 100644 --- a/documentation/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md +++ b/documentation/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.md @@ -1,4 +1,4 @@ -# ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod +# SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod When the invoice will be issued diff --git a/documentation/models/ApiSubscriptionListPaymentsRequestPaymentStatus.md b/documentation/models/SubscriptionListPaymentsRequestPaymentStatus.md similarity index 96% rename from documentation/models/ApiSubscriptionListPaymentsRequestPaymentStatus.md rename to documentation/models/SubscriptionListPaymentsRequestPaymentStatus.md index e8951d5..304d04c 100644 --- a/documentation/models/ApiSubscriptionListPaymentsRequestPaymentStatus.md +++ b/documentation/models/SubscriptionListPaymentsRequestPaymentStatus.md @@ -1,4 +1,4 @@ -# ApiSubscriptionListPaymentsRequestPaymentStatus +# SubscriptionListPaymentsRequestPaymentStatus Filter by payment status diff --git a/documentation/models/ApiSubscriptionListRequestBillingType.md b/documentation/models/SubscriptionListRequestBillingType.md similarity index 93% rename from documentation/models/ApiSubscriptionListRequestBillingType.md rename to documentation/models/SubscriptionListRequestBillingType.md index 08e48b2..b0accee 100644 --- a/documentation/models/ApiSubscriptionListRequestBillingType.md +++ b/documentation/models/SubscriptionListRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiSubscriptionListRequestBillingType +# SubscriptionListRequestBillingType Filter by billing type diff --git a/documentation/models/ApiSubscriptionListRequestSubscriptionStatus.md b/documentation/models/SubscriptionListRequestSubscriptionStatus.md similarity index 87% rename from documentation/models/ApiSubscriptionListRequestSubscriptionStatus.md rename to documentation/models/SubscriptionListRequestSubscriptionStatus.md index d49a2d7..ff0c2ae 100644 --- a/documentation/models/ApiSubscriptionListRequestSubscriptionStatus.md +++ b/documentation/models/SubscriptionListRequestSubscriptionStatus.md @@ -1,4 +1,4 @@ -# ApiSubscriptionListRequestSubscriptionStatus +# SubscriptionListRequestSubscriptionStatus Filter by status 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/ApiSubscriptionSaveRequestBillingType.md b/documentation/models/SubscriptionSaveRequestBillingType.md similarity index 91% rename from documentation/models/ApiSubscriptionSaveRequestBillingType.md rename to documentation/models/SubscriptionSaveRequestBillingType.md index 981aa86..f233c88 100644 --- a/documentation/models/ApiSubscriptionSaveRequestBillingType.md +++ b/documentation/models/SubscriptionSaveRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiSubscriptionSaveRequestBillingType +# SubscriptionSaveRequestBillingType Billing type diff --git a/documentation/models/ApiSubscriptionSaveRequestCycle.md b/documentation/models/SubscriptionSaveRequestCycle.md similarity index 94% rename from documentation/models/ApiSubscriptionSaveRequestCycle.md rename to documentation/models/SubscriptionSaveRequestCycle.md index 7c6313b..90a004e 100644 --- a/documentation/models/ApiSubscriptionSaveRequestCycle.md +++ b/documentation/models/SubscriptionSaveRequestCycle.md @@ -1,4 +1,4 @@ -# ApiSubscriptionSaveRequestCycle +# SubscriptionSaveRequestCycle Billing frequency 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/ApiSubscriptionSaveWithCreditCardRequestBillingType.md b/documentation/models/SubscriptionSaveWithCreditCardRequestBillingType.md similarity index 88% rename from documentation/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.md rename to documentation/models/SubscriptionSaveWithCreditCardRequestBillingType.md index 09bf073..adf0d8f 100644 --- a/documentation/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.md +++ b/documentation/models/SubscriptionSaveWithCreditCardRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiSubscriptionSaveWithCreditCardRequestBillingType +# SubscriptionSaveWithCreditCardRequestBillingType Billing type 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/ApiSubscriptionSaveWithCreditCardResponseBillingType.md b/documentation/models/SubscriptionSaveWithCreditCardResponseBillingType.md similarity index 91% rename from documentation/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.md rename to documentation/models/SubscriptionSaveWithCreditCardResponseBillingType.md index 025e50c..e6f1cce 100644 --- a/documentation/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.md +++ b/documentation/models/SubscriptionSaveWithCreditCardResponseBillingType.md @@ -1,4 +1,4 @@ -# ApiSubscriptionSaveWithCreditCardResponseBillingType +# SubscriptionSaveWithCreditCardResponseBillingType Billing type 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/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.md b/documentation/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.md similarity index 84% rename from documentation/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.md rename to documentation/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.md index 6c3a2e1..aeb5a1b 100644 --- a/documentation/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.md +++ b/documentation/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.md @@ -1,4 +1,4 @@ -# ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus +# SubscriptionSaveWithCreditCardResponseSubscriptionStatus Subscription status diff --git a/documentation/models/ApiSubscriptionSplitRequestDto.md b/documentation/models/SubscriptionSplitRequestDto.md similarity index 94% rename from documentation/models/ApiSubscriptionSplitRequestDto.md rename to documentation/models/SubscriptionSplitRequestDto.md index f9eb24d..ada45d6 100644 --- a/documentation/models/ApiSubscriptionSplitRequestDto.md +++ b/documentation/models/SubscriptionSplitRequestDto.md @@ -1,4 +1,6 @@ -# ApiSubscriptionSplitRequestDto +# SubscriptionSplitRequestDto + +Split information **Properties** 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/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.md b/documentation/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.md similarity index 87% rename from documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.md rename to documentation/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.md index c22f5c6..c3e0599 100644 --- a/documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.md +++ b/documentation/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.md @@ -1,4 +1,4 @@ -# ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason +# SubscriptionSplitResponseSubscriptionSplitDisabledReason Reason why subscription split was disabled diff --git a/documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.md b/documentation/models/SubscriptionSplitResponseSubscriptionSplitStatus.md similarity index 84% rename from documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.md rename to documentation/models/SubscriptionSplitResponseSubscriptionSplitStatus.md index 2cc6d9b..fc173c7 100644 --- a/documentation/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.md +++ b/documentation/models/SubscriptionSplitResponseSubscriptionSplitStatus.md @@ -1,4 +1,4 @@ -# ApiSubscriptionSplitResponseSubscriptionSplitStatus +# SubscriptionSplitResponseSubscriptionSplitStatus Subscription split status 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/ApiSubscriptionUpdateRequestBillingType.md b/documentation/models/SubscriptionUpdateRequestBillingType.md similarity index 90% rename from documentation/models/ApiSubscriptionUpdateRequestBillingType.md rename to documentation/models/SubscriptionUpdateRequestBillingType.md index f92af3a..c5973a0 100644 --- a/documentation/models/ApiSubscriptionUpdateRequestBillingType.md +++ b/documentation/models/SubscriptionUpdateRequestBillingType.md @@ -1,4 +1,4 @@ -# ApiSubscriptionUpdateRequestBillingType +# SubscriptionUpdateRequestBillingType Billing type diff --git a/documentation/models/ApiCheckoutSessionSubscriptionCycle.md b/documentation/models/SubscriptionUpdateRequestCycle.md similarity index 93% rename from documentation/models/ApiCheckoutSessionSubscriptionCycle.md rename to documentation/models/SubscriptionUpdateRequestCycle.md index 42008b5..20203a5 100644 --- a/documentation/models/ApiCheckoutSessionSubscriptionCycle.md +++ b/documentation/models/SubscriptionUpdateRequestCycle.md @@ -1,4 +1,4 @@ -# ApiCheckoutSessionSubscriptionCycle +# SubscriptionUpdateRequestCycle Billing frequency 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/ApiSubscriptionUpdateRequestSubscriptionStatus.md b/documentation/models/SubscriptionUpdateRequestSubscriptionStatus.md similarity index 85% rename from documentation/models/ApiSubscriptionUpdateRequestSubscriptionStatus.md rename to documentation/models/SubscriptionUpdateRequestSubscriptionStatus.md index a280842..144da26 100644 --- a/documentation/models/ApiSubscriptionUpdateRequestSubscriptionStatus.md +++ b/documentation/models/SubscriptionUpdateRequestSubscriptionStatus.md @@ -1,4 +1,4 @@ -# ApiSubscriptionUpdateRequestSubscriptionStatus +# SubscriptionUpdateRequestSubscriptionStatus Subscription status 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/ApiTransferBankAccountSaveRequestBankAccountType.md b/documentation/models/TransferBankAccountSaveRequestBankAccountType.md similarity index 86% rename from documentation/models/ApiTransferBankAccountSaveRequestBankAccountType.md rename to documentation/models/TransferBankAccountSaveRequestBankAccountType.md index d572bdc..caee267 100644 --- a/documentation/models/ApiTransferBankAccountSaveRequestBankAccountType.md +++ b/documentation/models/TransferBankAccountSaveRequestBankAccountType.md @@ -1,4 +1,4 @@ -# ApiTransferBankAccountSaveRequestBankAccountType +# TransferBankAccountSaveRequestBankAccountType Account type diff --git a/documentation/models/ApiTransferBankAccountSaveRequestDto.md b/documentation/models/TransferBankAccountSaveRequestDto.md similarity index 52% rename from documentation/models/ApiTransferBankAccountSaveRequestDto.md rename to documentation/models/TransferBankAccountSaveRequestDto.md index 67e4ca7..89f9a43 100644 --- a/documentation/models/ApiTransferBankAccountSaveRequestDto.md +++ b/documentation/models/TransferBankAccountSaveRequestDto.md @@ -1,18 +1,20 @@ -# ApiTransferBankAccountSaveRequestDto +# 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 | 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 | +| 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/ApiTransferBankGetResponseDto.md b/documentation/models/TransferBankGetResponseDto.md similarity index 90% rename from documentation/models/ApiTransferBankGetResponseDto.md rename to documentation/models/TransferBankGetResponseDto.md index dc22c39..d597190 100644 --- a/documentation/models/ApiTransferBankGetResponseDto.md +++ b/documentation/models/TransferBankGetResponseDto.md @@ -1,4 +1,6 @@ -# ApiTransferBankGetResponseDto +# TransferBankGetResponseDto + +Bank account name **Properties** diff --git a/documentation/models/ApiTransferBankSaveRequestDto.md b/documentation/models/TransferBankSaveRequestDto.md similarity index 76% rename from documentation/models/ApiTransferBankSaveRequestDto.md rename to documentation/models/TransferBankSaveRequestDto.md index 9f22983..6a7d371 100644 --- a/documentation/models/ApiTransferBankSaveRequestDto.md +++ b/documentation/models/TransferBankSaveRequestDto.md @@ -1,4 +1,6 @@ -# ApiTransferBankSaveRequestDto +# TransferBankSaveRequestDto + +Details of the bank account to which the transfer will be made **Properties** 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/ApiTransferGetResponseDtoType.md b/documentation/models/TransferGetResponseDtoType.md similarity index 91% rename from documentation/models/ApiTransferGetResponseDtoType.md rename to documentation/models/TransferGetResponseDtoType.md index 32c7134..371572e 100644 --- a/documentation/models/ApiTransferGetResponseDtoType.md +++ b/documentation/models/TransferGetResponseDtoType.md @@ -1,4 +1,4 @@ -# ApiTransferGetResponseDtoType +# TransferGetResponseDtoType Type of transfer diff --git a/documentation/models/ApiTransferGetResponseTransferStatus.md b/documentation/models/TransferGetResponseTransferStatus.md similarity index 93% rename from documentation/models/ApiTransferGetResponseTransferStatus.md rename to documentation/models/TransferGetResponseTransferStatus.md index 685f7d8..61e5fce 100644 --- a/documentation/models/ApiTransferGetResponseTransferStatus.md +++ b/documentation/models/TransferGetResponseTransferStatus.md @@ -1,4 +1,4 @@ -# ApiTransferGetResponseTransferStatus +# TransferGetResponseTransferStatus Transfer status diff --git a/documentation/models/ApiTransferGetResponseTransferType.md b/documentation/models/TransferGetResponseTransferType.md similarity index 90% rename from documentation/models/ApiTransferGetResponseTransferType.md rename to documentation/models/TransferGetResponseTransferType.md index ec24d4e..f578d9b 100644 --- a/documentation/models/ApiTransferGetResponseTransferType.md +++ b/documentation/models/TransferGetResponseTransferType.md @@ -1,4 +1,4 @@ -# ApiTransferGetResponseTransferType +# TransferGetResponseTransferType Transfer method 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/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md b/documentation/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md similarity index 80% rename from documentation/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md rename to documentation/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md index 8f15c7a..e14053e 100644 --- a/documentation/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md +++ b/documentation/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.md @@ -1,4 +1,4 @@ -# ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency +# TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency Frequency diff --git a/documentation/models/ApiTransferSaveInternalTransferAccountDto.md b/documentation/models/TransferSaveInternalTransferAccountDto.md similarity index 89% rename from documentation/models/ApiTransferSaveInternalTransferAccountDto.md rename to documentation/models/TransferSaveInternalTransferAccountDto.md index acb72ee..ba89eea 100644 --- a/documentation/models/ApiTransferSaveInternalTransferAccountDto.md +++ b/documentation/models/TransferSaveInternalTransferAccountDto.md @@ -1,4 +1,6 @@ -# ApiTransferSaveInternalTransferAccountDto +# TransferSaveInternalTransferAccountDto + +Target account basic information **Properties** diff --git a/documentation/models/ApiTransferSaveInternalTransferRequestDto.md b/documentation/models/TransferSaveInternalTransferRequestDto.md similarity index 91% rename from documentation/models/ApiTransferSaveInternalTransferRequestDto.md rename to documentation/models/TransferSaveInternalTransferRequestDto.md index 31e57cf..c66478c 100644 --- a/documentation/models/ApiTransferSaveInternalTransferRequestDto.md +++ b/documentation/models/TransferSaveInternalTransferRequestDto.md @@ -1,4 +1,4 @@ -# ApiTransferSaveInternalTransferRequestDto +# TransferSaveInternalTransferRequestDto **Properties** 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/ApiTransferSaveInternalTransferResponseDtoType.md b/documentation/models/TransferSaveInternalTransferResponseDtoType.md similarity index 87% rename from documentation/models/ApiTransferSaveInternalTransferResponseDtoType.md rename to documentation/models/TransferSaveInternalTransferResponseDtoType.md index f47f34a..8d6f7c3 100644 --- a/documentation/models/ApiTransferSaveInternalTransferResponseDtoType.md +++ b/documentation/models/TransferSaveInternalTransferResponseDtoType.md @@ -1,4 +1,4 @@ -# ApiTransferSaveInternalTransferResponseDtoType +# TransferSaveInternalTransferResponseDtoType Type of transfer diff --git a/documentation/models/ApiTransferSaveInternalTransferResponseTransferStatus.md b/documentation/models/TransferSaveInternalTransferResponseTransferStatus.md similarity index 90% rename from documentation/models/ApiTransferSaveInternalTransferResponseTransferStatus.md rename to documentation/models/TransferSaveInternalTransferResponseTransferStatus.md index 79994fb..f7d43e2 100644 --- a/documentation/models/ApiTransferSaveInternalTransferResponseTransferStatus.md +++ b/documentation/models/TransferSaveInternalTransferResponseTransferStatus.md @@ -1,4 +1,4 @@ -# ApiTransferSaveInternalTransferResponseTransferStatus +# TransferSaveInternalTransferResponseTransferStatus Transfer status diff --git a/documentation/models/ApiTransferSaveInternalTransferResponseTransferType.md b/documentation/models/TransferSaveInternalTransferResponseTransferType.md similarity index 86% rename from documentation/models/ApiTransferSaveInternalTransferResponseTransferType.md rename to documentation/models/TransferSaveInternalTransferResponseTransferType.md index e97fb9a..521f135 100644 --- a/documentation/models/ApiTransferSaveInternalTransferResponseTransferType.md +++ b/documentation/models/TransferSaveInternalTransferResponseTransferType.md @@ -1,4 +1,4 @@ -# ApiTransferSaveInternalTransferResponseTransferType +# TransferSaveInternalTransferResponseTransferType Transfer method 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/ApiTransferSaveRequestPixAddressKeyType.md b/documentation/models/TransferSaveRequestPixAddressKeyType.md similarity index 91% rename from documentation/models/ApiTransferSaveRequestPixAddressKeyType.md rename to documentation/models/TransferSaveRequestPixAddressKeyType.md index 27336b9..a9c8f91 100644 --- a/documentation/models/ApiTransferSaveRequestPixAddressKeyType.md +++ b/documentation/models/TransferSaveRequestPixAddressKeyType.md @@ -1,4 +1,4 @@ -# ApiTransferSaveRequestPixAddressKeyType +# TransferSaveRequestPixAddressKeyType Enter the type of key if it is a transfer to a Pix key diff --git a/documentation/models/ApiTransferSaveRequestTransferType.md b/documentation/models/TransferSaveRequestTransferType.md similarity index 91% rename from documentation/models/ApiTransferSaveRequestTransferType.md rename to documentation/models/TransferSaveRequestTransferType.md index a013318..6edb282 100644 --- a/documentation/models/ApiTransferSaveRequestTransferType.md +++ b/documentation/models/TransferSaveRequestTransferType.md @@ -1,4 +1,4 @@ -# ApiTransferSaveRequestTransferType +# TransferSaveRequestTransferType Transfer modality. If not informed and the receiving institution is a Pix participant, the transfer is via Pix. Otherwise via TED. diff --git a/documentation/models/ApiWalletGetResponseDto.md b/documentation/models/WalletGetResponseDto.md similarity index 89% rename from documentation/models/ApiWalletGetResponseDto.md rename to documentation/models/WalletGetResponseDto.md index bb7bceb..246feb5 100644 --- a/documentation/models/ApiWalletGetResponseDto.md +++ b/documentation/models/WalletGetResponseDto.md @@ -1,4 +1,6 @@ -# ApiWalletGetResponseDto +# WalletGetResponseDto + +List of objects **Properties** 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/ApiPushNotificationConfigDeleteResponseDto.md b/documentation/models/WebhookConfigDeleteResponseDto.md similarity index 89% rename from documentation/models/ApiPushNotificationConfigDeleteResponseDto.md rename to documentation/models/WebhookConfigDeleteResponseDto.md index 53f2000..4092246 100644 --- a/documentation/models/ApiPushNotificationConfigDeleteResponseDto.md +++ b/documentation/models/WebhookConfigDeleteResponseDto.md @@ -1,4 +1,4 @@ -# ApiPushNotificationConfigDeleteResponseDto +# WebhookConfigDeleteResponseDto **Properties** 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/ApiPushNotificationConfigGetResponsePushNotificationSendType.md b/documentation/models/WebhookConfigGetResponseWebhookSendType.md similarity index 86% rename from documentation/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.md rename to documentation/models/WebhookConfigGetResponseWebhookSendType.md index e350243..1ef0d0e 100644 --- a/documentation/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.md +++ b/documentation/models/WebhookConfigGetResponseWebhookSendType.md @@ -1,4 +1,4 @@ -# ApiPushNotificationConfigGetResponsePushNotificationSendType +# WebhookConfigGetResponseWebhookSendType Sequential (SEQUENTIALLY) or non-sequential (NON_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/ApiPushNotificationConfigSaveRequestPushNotificationSendType.md b/documentation/models/WebhookConfigSaveRequestWebhookSendType.md similarity index 86% rename from documentation/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.md rename to documentation/models/WebhookConfigSaveRequestWebhookSendType.md index e96781b..9fff784 100644 --- a/documentation/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.md +++ b/documentation/models/WebhookConfigSaveRequestWebhookSendType.md @@ -1,4 +1,4 @@ -# ApiPushNotificationConfigSaveRequestPushNotificationSendType +# WebhookConfigSaveRequestWebhookSendType Sequential (SEQUENTIALLY) or non-sequential (NON_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/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.md b/documentation/models/WebhookConfigUpdateRequestWebhookSendType.md similarity index 85% rename from documentation/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.md rename to documentation/models/WebhookConfigUpdateRequestWebhookSendType.md index 5387973..d6e2f85 100644 --- a/documentation/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.md +++ b/documentation/models/WebhookConfigUpdateRequestWebhookSendType.md @@ -1,4 +1,4 @@ -# ApiPushNotificationConfigUpdateRequestPushNotificationSendType +# WebhookConfigUpdateRequestWebhookSendType Sequential (SEQUENTIALLY) or non-sequential (NON_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/ApiAccountDocumentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentDeleteResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiAccountDocumentDeleteResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AccountDocumentDeleteResponseDto.java index d1e02b6..fe24b00 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentDeleteResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiAccountDocumentDeleteResponseDto { +public class AccountDocumentDeleteResponseDto { /** * Indicates whether the document was removed @@ -43,12 +43,12 @@ public String getId() { } // Overwrite lombok builder methods - public static class ApiAccountDocumentDeleteResponseDtoBuilder { + public static class AccountDocumentDeleteResponseDtoBuilder { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiAccountDocumentDeleteResponseDtoBuilder deleted(Boolean value) { + public AccountDocumentDeleteResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiAccountDocumentDeleteResponseDtoBuilder deleted(Boolean value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiAccountDocumentDeleteResponseDtoBuilder id(String value) { + public AccountDocumentDeleteResponseDtoBuilder 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/AccountDocumentGetResponseAccountDocumentStatus.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.java rename to src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseAccountDocumentStatus.java index ee5c586..cba278d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseCustomerDocumentStatus.java +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseAccountDocumentStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiAccountDocumentGetResponseCustomerDocumentStatus { +public enum AccountDocumentGetResponseAccountDocumentStatus { NOT_SENT("NOT_SENT"), PENDING("PENDING"), APPROVED("APPROVED"), @@ -23,8 +23,8 @@ public enum ApiAccountDocumentGetResponseCustomerDocumentStatus { private final String value; @JsonCreator - public static ApiAccountDocumentGetResponseCustomerDocumentStatus fromValue(String value) { - return Arrays.stream(ApiAccountDocumentGetResponseCustomerDocumentStatus.values()) + 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/ApiAccountDocumentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseDto.java similarity index 65% rename from src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseDto.java index d284384..8d9b2b5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiAccountDocumentGetResponseDto { +public class AccountDocumentGetResponseDto { /** * Unique document identifier in Asaas @@ -30,7 +30,7 @@ public class ApiAccountDocumentGetResponseDto { * Document approval status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; @JsonIgnore public String getId() { @@ -38,25 +38,25 @@ public String getId() { } @JsonIgnore - public ApiAccountDocumentGetResponseCustomerDocumentStatus getStatus() { + public AccountDocumentGetResponseAccountDocumentStatus getStatus() { return status.orElse(null); } // Overwrite lombok builder methods - public static class ApiAccountDocumentGetResponseDtoBuilder { + public static class AccountDocumentGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiAccountDocumentGetResponseDtoBuilder id(String value) { + public AccountDocumentGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiAccountDocumentGetResponseDtoBuilder status(ApiAccountDocumentGetResponseCustomerDocumentStatus value) { + public AccountDocumentGetResponseDtoBuilder status(AccountDocumentGetResponseAccountDocumentStatus 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/AccountDocumentGroupResponseAccountDocumentStatus.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.java rename to src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentStatus.java index fbdeba4..146892a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentStatus.java +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiAccountDocumentGroupResponseCustomerDocumentStatus { +public enum AccountDocumentGroupResponseAccountDocumentStatus { NOT_SENT("NOT_SENT"), PENDING("PENDING"), APPROVED("APPROVED"), @@ -24,8 +24,8 @@ public enum ApiAccountDocumentGroupResponseCustomerDocumentStatus { private final String value; @JsonCreator - public static ApiAccountDocumentGroupResponseCustomerDocumentStatus fromValue(String value) { - return Arrays.stream(ApiAccountDocumentGroupResponseCustomerDocumentStatus.values()) + 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/ApiAccountDocumentGroupResponseCustomerDocumentType.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentType.java rename to src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentType.java index 364daa2..0882b40 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseCustomerDocumentType.java +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseAccountDocumentType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiAccountDocumentGroupResponseCustomerDocumentType { +public enum AccountDocumentGroupResponseAccountDocumentType { IDENTIFICATION("IDENTIFICATION"), SOCIAL_CONTRACT("SOCIAL_CONTRACT"), ENTREPRENEUR_REQUIREMENT("ENTREPRENEUR_REQUIREMENT"), @@ -24,8 +24,8 @@ public enum ApiAccountDocumentGroupResponseCustomerDocumentType { private final String value; @JsonCreator - public static ApiAccountDocumentGroupResponseCustomerDocumentType fromValue(String value) { - return Arrays.stream(ApiAccountDocumentGroupResponseCustomerDocumentType.values()) + 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/ApiAccountDocumentGroupResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseDto.java similarity index 62% rename from src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseDto.java index dafd4d9..e319ca4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentGroupResponseDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of objects + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiAccountDocumentGroupResponseDto { +public class AccountDocumentGroupResponseDto { /** * Unique document group identifier in Asaas @@ -31,13 +34,13 @@ public class ApiAccountDocumentGroupResponseDto { * Document group status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Type of documents */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Document group title @@ -51,8 +54,11 @@ public class ApiAccountDocumentGroupResponseDto { @JsonProperty("description") private JsonNullable description; + /** + * Who is responsible for sending these documents + */ @JsonProperty("responsible") - private JsonNullable responsible; + private JsonNullable responsible; /** * URL for sending documents @@ -70,7 +76,7 @@ public class ApiAccountDocumentGroupResponseDto { * Documents that have already been sent with their respective identifiers */ @JsonProperty("documents") - private JsonNullable> documents; + private JsonNullable> documents; @JsonIgnore public String getId() { @@ -78,12 +84,12 @@ public String getId() { } @JsonIgnore - public ApiAccountDocumentGroupResponseCustomerDocumentStatus getStatus() { + public AccountDocumentGroupResponseAccountDocumentStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiAccountDocumentGroupResponseCustomerDocumentType getType() { + public AccountDocumentGroupResponseAccountDocumentType getType() { return type.orElse(null); } @@ -98,7 +104,7 @@ public String getDescription() { } @JsonIgnore - public ApiAccountDocumentGroupResponsibleResponseDto getResponsible() { + public AccountDocumentResponsibleResponseDto getResponsible() { return responsible.orElse(null); } @@ -113,35 +119,33 @@ public String getOnboardingUrlExpirationDate() { } @JsonIgnore - public List getDocuments() { + public List getDocuments() { return documents.orElse(null); } // Overwrite lombok builder methods - public static class ApiAccountDocumentGroupResponseDtoBuilder { + public static class AccountDocumentGroupResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiAccountDocumentGroupResponseDtoBuilder id(String value) { + public AccountDocumentGroupResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiAccountDocumentGroupResponseDtoBuilder status( - ApiAccountDocumentGroupResponseCustomerDocumentStatus value - ) { + public AccountDocumentGroupResponseDtoBuilder status(AccountDocumentGroupResponseAccountDocumentStatus value) { this.status = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiAccountDocumentGroupResponseDtoBuilder type(ApiAccountDocumentGroupResponseCustomerDocumentType value) { + public AccountDocumentGroupResponseDtoBuilder type(AccountDocumentGroupResponseAccountDocumentType value) { this.type = JsonNullable.of(value); return this; } @@ -149,7 +153,7 @@ public ApiAccountDocumentGroupResponseDtoBuilder type(ApiAccountDocumentGroupRes private JsonNullable title = JsonNullable.undefined(); @JsonProperty("title") - public ApiAccountDocumentGroupResponseDtoBuilder title(String value) { + public AccountDocumentGroupResponseDtoBuilder title(String value) { this.title = JsonNullable.of(value); return this; } @@ -157,15 +161,15 @@ public ApiAccountDocumentGroupResponseDtoBuilder title(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiAccountDocumentGroupResponseDtoBuilder description(String value) { + public AccountDocumentGroupResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } - private JsonNullable responsible = JsonNullable.undefined(); + private JsonNullable responsible = JsonNullable.undefined(); @JsonProperty("responsible") - public ApiAccountDocumentGroupResponseDtoBuilder responsible(ApiAccountDocumentGroupResponsibleResponseDto value) { + public AccountDocumentGroupResponseDtoBuilder responsible(AccountDocumentResponsibleResponseDto value) { this.responsible = JsonNullable.of(value); return this; } @@ -173,7 +177,7 @@ public ApiAccountDocumentGroupResponseDtoBuilder responsible(ApiAccountDocumentG private JsonNullable onboardingUrl = JsonNullable.undefined(); @JsonProperty("onboardingUrl") - public ApiAccountDocumentGroupResponseDtoBuilder onboardingUrl(String value) { + public AccountDocumentGroupResponseDtoBuilder onboardingUrl(String value) { this.onboardingUrl = JsonNullable.of(value); return this; } @@ -181,15 +185,15 @@ public ApiAccountDocumentGroupResponseDtoBuilder onboardingUrl(String value) { private JsonNullable onboardingUrlExpirationDate = JsonNullable.undefined(); @JsonProperty("onboardingUrlExpirationDate") - public ApiAccountDocumentGroupResponseDtoBuilder onboardingUrlExpirationDate(String value) { + public AccountDocumentGroupResponseDtoBuilder onboardingUrlExpirationDate(String value) { this.onboardingUrlExpirationDate = JsonNullable.of(value); return this; } - private JsonNullable> documents = JsonNullable.undefined(); + private JsonNullable> documents = JsonNullable.undefined(); @JsonProperty("documents") - public ApiAccountDocumentGroupResponseDtoBuilder documents(List value) { + 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/ApiAccountDocumentGroupResponsibleResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseDto.java similarity index 58% rename from src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponsibleResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseDto.java index 4d8bb04..0d2e672 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentGroupResponsibleResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentResponsibleResponseDto.java @@ -13,13 +13,16 @@ 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 ApiAccountDocumentGroupResponsibleResponseDto { +public class AccountDocumentResponsibleResponseDto { /** * Responsible name @@ -28,10 +31,10 @@ public class ApiAccountDocumentGroupResponsibleResponseDto { private JsonNullable name; /** - * Responsible tyoe + * Responsible type */ @JsonProperty("type") - private JsonNullable> type; + private JsonNullable> type; @JsonIgnore public String getName() { @@ -39,25 +42,28 @@ public String getName() { } @JsonIgnore - public List getType() { + public List getType() { return type.orElse(null); } // Overwrite lombok builder methods - public static class ApiAccountDocumentGroupResponsibleResponseDtoBuilder { + public static class AccountDocumentResponsibleResponseDtoBuilder { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiAccountDocumentGroupResponsibleResponseDtoBuilder name(String value) { + public AccountDocumentResponsibleResponseDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } - private JsonNullable> type = JsonNullable.undefined(); + private JsonNullable> type = + JsonNullable.undefined(); @JsonProperty("type") - public ApiAccountDocumentGroupResponsibleResponseDtoBuilder type(List value) { + public AccountDocumentResponsibleResponseDtoBuilder 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/AccountDocumentSaveRequestAccountDocumentType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestCustomerDocumentType.java rename to src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestAccountDocumentType.java index d9d1063..74e1c56 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestCustomerDocumentType.java +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestAccountDocumentType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiAccountDocumentSaveRequestCustomerDocumentType { +public enum AccountDocumentSaveRequestAccountDocumentType { IDENTIFICATION("IDENTIFICATION"), SOCIAL_CONTRACT("SOCIAL_CONTRACT"), ENTREPRENEUR_REQUIREMENT("ENTREPRENEUR_REQUIREMENT"), @@ -24,8 +24,8 @@ public enum ApiAccountDocumentSaveRequestCustomerDocumentType { private final String value; @JsonCreator - public static ApiAccountDocumentSaveRequestCustomerDocumentType fromValue(String value) { - return Arrays.stream(ApiAccountDocumentSaveRequestCustomerDocumentType.values()) + 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/ApiAccountDocumentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestDto.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestDto.java index 534a4f7..13d384b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentSaveRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiAccountDocumentSaveRequestDto { +public class AccountDocumentSaveRequestDto { /** * File @@ -30,7 +30,7 @@ public class ApiAccountDocumentSaveRequestDto { * Document Type */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; @JsonIgnore public byte[] getDocumentFile() { @@ -38,17 +38,17 @@ public byte[] getDocumentFile() { } @JsonIgnore - public ApiAccountDocumentSaveRequestCustomerDocumentType getType() { + public AccountDocumentSaveRequestAccountDocumentType getType() { return type.orElse(null); } // Overwrite lombok builder methods - public static class ApiAccountDocumentSaveRequestDtoBuilder { + public static class AccountDocumentSaveRequestDtoBuilder { private JsonNullable documentFile = JsonNullable.undefined(); @JsonProperty("documentFile") - public ApiAccountDocumentSaveRequestDtoBuilder documentFile(byte[] value) { + public AccountDocumentSaveRequestDtoBuilder documentFile(byte[] value) { if (value == null) { throw new IllegalStateException("documentFile cannot be null"); } @@ -56,10 +56,10 @@ public ApiAccountDocumentSaveRequestDtoBuilder documentFile(byte[] value) { return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiAccountDocumentSaveRequestDtoBuilder type(ApiAccountDocumentSaveRequestCustomerDocumentType value) { + public AccountDocumentSaveRequestDtoBuilder type(AccountDocumentSaveRequestAccountDocumentType 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/AccountDocumentShowResponseDto.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiAccountDocumentShowResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AccountDocumentShowResponseDto.java index b3991af..094bfee 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentShowResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentShowResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiAccountDocumentShowResponseDto { +public class AccountDocumentShowResponseDto { /** * Reason why account approval was rejected @@ -31,7 +31,7 @@ public class ApiAccountDocumentShowResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getRejectReasons() { @@ -39,25 +39,25 @@ public String getRejectReasons() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiAccountDocumentShowResponseDtoBuilder { + public static class AccountDocumentShowResponseDtoBuilder { private JsonNullable rejectReasons = JsonNullable.undefined(); @JsonProperty("rejectReasons") - public ApiAccountDocumentShowResponseDtoBuilder rejectReasons(String value) { + public AccountDocumentShowResponseDtoBuilder rejectReasons(String value) { this.rejectReasons = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiAccountDocumentShowResponseDtoBuilder data(List value) { + public AccountDocumentShowResponseDtoBuilder 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/AccountDocumentUpdateRequestDto.java similarity index 89% rename from src/main/java/com/asaas/apisdk/models/ApiAccountDocumentUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/AccountDocumentUpdateRequestDto.java index 629ca8e..4d0cd89 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiAccountDocumentUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountDocumentUpdateRequestDto.java @@ -16,7 +16,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiAccountDocumentUpdateRequestDto { +public class AccountDocumentUpdateRequestDto { /** * File diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseCompanyType.java b/src/main/java/com/asaas/apisdk/models/AccountGetResponseCompanyType.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseCompanyType.java rename to src/main/java/com/asaas/apisdk/models/AccountGetResponseCompanyType.java index 1303a64..43d33d6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseCompanyType.java +++ b/src/main/java/com/asaas/apisdk/models/AccountGetResponseCompanyType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerSaveResponseCompanyType { +public enum AccountGetResponseCompanyType { MEI("MEI"), LIMITED("LIMITED"), INDIVIDUAL("INDIVIDUAL"), @@ -23,8 +23,8 @@ public enum ApiCustomerSaveResponseCompanyType { private final String value; @JsonCreator - public static ApiCustomerSaveResponseCompanyType fromValue(String value) { - return Arrays.stream(ApiCustomerSaveResponseCompanyType.values()) + 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/ApiCustomerGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountGetResponseDto.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AccountGetResponseDto.java index da1c63d..3ff9fff 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerGetResponseDto { +public class AccountGetResponseDto { /** * Object type @@ -108,13 +108,13 @@ public class ApiCustomerGetResponseDto { * Kind of person */ @JsonProperty("personType") - private JsonNullable personType; + private JsonNullable personType; /** * Type of company (only when Legal Entity) */ @JsonProperty("companyType") - private JsonNullable companyType; + private JsonNullable companyType; /** * Unique city identifier in Asaas @@ -152,11 +152,17 @@ public class ApiCustomerGetResponseDto { @JsonProperty("walletId") private JsonNullable walletId; + /** + * Subaccount number in Asaas + */ @JsonProperty("accountNumber") - private JsonNullable accountNumber; + private JsonNullable accountNumber; + /** + * Information about the expiration of commercial data + */ @JsonProperty("commercialInfoExpiration") - private JsonNullable commercialInfoExpiration; + private JsonNullable commercialInfoExpiration; @JsonIgnore public String getObject() { @@ -229,12 +235,12 @@ public String getBirthDate() { } @JsonIgnore - public ApiCustomerGetResponsePersonType getPersonType() { + public AccountGetResponsePersonType getPersonType() { return personType.orElse(null); } @JsonIgnore - public ApiCustomerGetResponseCompanyType getCompanyType() { + public AccountGetResponseCompanyType getCompanyType() { return companyType.orElse(null); } @@ -269,22 +275,22 @@ public String getWalletId() { } @JsonIgnore - public ApiCustomerAccountNumberDto getAccountNumber() { + public AccountNumberDto getAccountNumber() { return accountNumber.orElse(null); } @JsonIgnore - public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { + public AccountInfoCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { return commercialInfoExpiration.orElse(null); } // Overwrite lombok builder methods - public static class ApiCustomerGetResponseDtoBuilder { + public static class AccountGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiCustomerGetResponseDtoBuilder object(String value) { + public AccountGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -292,7 +298,7 @@ public ApiCustomerGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiCustomerGetResponseDtoBuilder id(String value) { + public AccountGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -300,7 +306,7 @@ public ApiCustomerGetResponseDtoBuilder id(String value) { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiCustomerGetResponseDtoBuilder name(String value) { + public AccountGetResponseDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -308,7 +314,7 @@ public ApiCustomerGetResponseDtoBuilder name(String value) { private JsonNullable email = JsonNullable.undefined(); @JsonProperty("email") - public ApiCustomerGetResponseDtoBuilder email(String value) { + public AccountGetResponseDtoBuilder email(String value) { this.email = JsonNullable.of(value); return this; } @@ -316,7 +322,7 @@ public ApiCustomerGetResponseDtoBuilder email(String value) { private JsonNullable loginEmail = JsonNullable.undefined(); @JsonProperty("loginEmail") - public ApiCustomerGetResponseDtoBuilder loginEmail(String value) { + public AccountGetResponseDtoBuilder loginEmail(String value) { this.loginEmail = JsonNullable.of(value); return this; } @@ -324,7 +330,7 @@ public ApiCustomerGetResponseDtoBuilder loginEmail(String value) { private JsonNullable phone = JsonNullable.undefined(); @JsonProperty("phone") - public ApiCustomerGetResponseDtoBuilder phone(String value) { + public AccountGetResponseDtoBuilder phone(String value) { this.phone = JsonNullable.of(value); return this; } @@ -332,7 +338,7 @@ public ApiCustomerGetResponseDtoBuilder phone(String value) { private JsonNullable mobilePhone = JsonNullable.undefined(); @JsonProperty("mobilePhone") - public ApiCustomerGetResponseDtoBuilder mobilePhone(String value) { + public AccountGetResponseDtoBuilder mobilePhone(String value) { this.mobilePhone = JsonNullable.of(value); return this; } @@ -340,7 +346,7 @@ public ApiCustomerGetResponseDtoBuilder mobilePhone(String value) { private JsonNullable address = JsonNullable.undefined(); @JsonProperty("address") - public ApiCustomerGetResponseDtoBuilder address(String value) { + public AccountGetResponseDtoBuilder address(String value) { this.address = JsonNullable.of(value); return this; } @@ -348,7 +354,7 @@ public ApiCustomerGetResponseDtoBuilder address(String value) { private JsonNullable addressNumber = JsonNullable.undefined(); @JsonProperty("addressNumber") - public ApiCustomerGetResponseDtoBuilder addressNumber(String value) { + public AccountGetResponseDtoBuilder addressNumber(String value) { this.addressNumber = JsonNullable.of(value); return this; } @@ -356,7 +362,7 @@ public ApiCustomerGetResponseDtoBuilder addressNumber(String value) { private JsonNullable complement = JsonNullable.undefined(); @JsonProperty("complement") - public ApiCustomerGetResponseDtoBuilder complement(String value) { + public AccountGetResponseDtoBuilder complement(String value) { this.complement = JsonNullable.of(value); return this; } @@ -364,7 +370,7 @@ public ApiCustomerGetResponseDtoBuilder complement(String value) { private JsonNullable province = JsonNullable.undefined(); @JsonProperty("province") - public ApiCustomerGetResponseDtoBuilder province(String value) { + public AccountGetResponseDtoBuilder province(String value) { this.province = JsonNullable.of(value); return this; } @@ -372,7 +378,7 @@ public ApiCustomerGetResponseDtoBuilder province(String value) { private JsonNullable postalCode = JsonNullable.undefined(); @JsonProperty("postalCode") - public ApiCustomerGetResponseDtoBuilder postalCode(String value) { + public AccountGetResponseDtoBuilder postalCode(String value) { this.postalCode = JsonNullable.of(value); return this; } @@ -380,7 +386,7 @@ public ApiCustomerGetResponseDtoBuilder postalCode(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiCustomerGetResponseDtoBuilder cpfCnpj(String value) { + public AccountGetResponseDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } @@ -388,23 +394,23 @@ public ApiCustomerGetResponseDtoBuilder cpfCnpj(String value) { private JsonNullable birthDate = JsonNullable.undefined(); @JsonProperty("birthDate") - public ApiCustomerGetResponseDtoBuilder birthDate(String value) { + public AccountGetResponseDtoBuilder birthDate(String value) { this.birthDate = JsonNullable.of(value); return this; } - private JsonNullable personType = JsonNullable.undefined(); + private JsonNullable personType = JsonNullable.undefined(); @JsonProperty("personType") - public ApiCustomerGetResponseDtoBuilder personType(ApiCustomerGetResponsePersonType value) { + public AccountGetResponseDtoBuilder personType(AccountGetResponsePersonType value) { this.personType = JsonNullable.of(value); return this; } - private JsonNullable companyType = JsonNullable.undefined(); + private JsonNullable companyType = JsonNullable.undefined(); @JsonProperty("companyType") - public ApiCustomerGetResponseDtoBuilder companyType(ApiCustomerGetResponseCompanyType value) { + public AccountGetResponseDtoBuilder companyType(AccountGetResponseCompanyType value) { this.companyType = JsonNullable.of(value); return this; } @@ -412,7 +418,7 @@ public ApiCustomerGetResponseDtoBuilder companyType(ApiCustomerGetResponseCompan private JsonNullable city = JsonNullable.undefined(); @JsonProperty("city") - public ApiCustomerGetResponseDtoBuilder city(Long value) { + public AccountGetResponseDtoBuilder city(Long value) { this.city = JsonNullable.of(value); return this; } @@ -420,7 +426,7 @@ public ApiCustomerGetResponseDtoBuilder city(Long value) { private JsonNullable state = JsonNullable.undefined(); @JsonProperty("state") - public ApiCustomerGetResponseDtoBuilder state(String value) { + public AccountGetResponseDtoBuilder state(String value) { this.state = JsonNullable.of(value); return this; } @@ -428,7 +434,7 @@ public ApiCustomerGetResponseDtoBuilder state(String value) { private JsonNullable country = JsonNullable.undefined(); @JsonProperty("country") - public ApiCustomerGetResponseDtoBuilder country(String value) { + public AccountGetResponseDtoBuilder country(String value) { this.country = JsonNullable.of(value); return this; } @@ -436,7 +442,7 @@ public ApiCustomerGetResponseDtoBuilder country(String value) { private JsonNullable tradingName = JsonNullable.undefined(); @JsonProperty("tradingName") - public ApiCustomerGetResponseDtoBuilder tradingName(String value) { + public AccountGetResponseDtoBuilder tradingName(String value) { this.tradingName = JsonNullable.of(value); return this; } @@ -444,7 +450,7 @@ public ApiCustomerGetResponseDtoBuilder tradingName(String value) { private JsonNullable site = JsonNullable.undefined(); @JsonProperty("site") - public ApiCustomerGetResponseDtoBuilder site(String value) { + public AccountGetResponseDtoBuilder site(String value) { this.site = JsonNullable.of(value); return this; } @@ -452,26 +458,24 @@ public ApiCustomerGetResponseDtoBuilder site(String value) { private JsonNullable walletId = JsonNullable.undefined(); @JsonProperty("walletId") - public ApiCustomerGetResponseDtoBuilder walletId(String value) { + public AccountGetResponseDtoBuilder walletId(String value) { this.walletId = JsonNullable.of(value); return this; } - private JsonNullable accountNumber = JsonNullable.undefined(); + private JsonNullable accountNumber = JsonNullable.undefined(); @JsonProperty("accountNumber") - public ApiCustomerGetResponseDtoBuilder accountNumber(ApiCustomerAccountNumberDto value) { + public AccountGetResponseDtoBuilder accountNumber(AccountNumberDto value) { this.accountNumber = JsonNullable.of(value); return this; } - private JsonNullable commercialInfoExpiration = + private JsonNullable commercialInfoExpiration = JsonNullable.undefined(); @JsonProperty("commercialInfoExpiration") - public ApiCustomerGetResponseDtoBuilder commercialInfoExpiration( - ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto value - ) { + public AccountGetResponseDtoBuilder commercialInfoExpiration(AccountInfoCommercialInfoExpirationResponseDto 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/AccountGetResponsePersonType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponsePersonType.java rename to src/main/java/com/asaas/apisdk/models/AccountGetResponsePersonType.java index c5dfd8a..50f2f92 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponsePersonType.java +++ b/src/main/java/com/asaas/apisdk/models/AccountGetResponsePersonType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerGetResponsePersonType { +public enum AccountGetResponsePersonType { JURIDICA("JURIDICA"), FISICA("FISICA"); @@ -21,8 +21,8 @@ public enum ApiCustomerGetResponsePersonType { private final String value; @JsonCreator - public static ApiCustomerGetResponsePersonType fromValue(String value) { - return Arrays.stream(ApiCustomerGetResponsePersonType.values()) + 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/ApiCustomerUpdateRequestCityDto.java b/src/main/java/com/asaas/apisdk/models/AccountInfoCityDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityDto.java rename to src/main/java/com/asaas/apisdk/models/AccountInfoCityDto.java index 82fe902..aa0c1d7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoCityDto.java @@ -12,13 +12,16 @@ 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 ApiCustomerUpdateRequestCityDto { +public class AccountInfoCityDto { /** * Object type @@ -60,7 +63,7 @@ public class ApiCustomerUpdateRequestCityDto { * State abbreviation (SP, RJ, SC, ...) */ @JsonProperty("state") - private JsonNullable state; + private JsonNullable state; @JsonIgnore public String getObject() { @@ -93,17 +96,17 @@ public String getDistrict() { } @JsonIgnore - public ApiCustomerUpdateRequestCityState getState() { + public AccountInfoCityState getState() { return state.orElse(null); } // Overwrite lombok builder methods - public static class ApiCustomerUpdateRequestCityDtoBuilder { + public static class AccountInfoCityDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiCustomerUpdateRequestCityDtoBuilder object(String value) { + public AccountInfoCityDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -111,7 +114,7 @@ public ApiCustomerUpdateRequestCityDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiCustomerUpdateRequestCityDtoBuilder id(Long value) { + public AccountInfoCityDtoBuilder id(Long value) { this.id = JsonNullable.of(value); return this; } @@ -119,7 +122,7 @@ public ApiCustomerUpdateRequestCityDtoBuilder id(Long value) { private JsonNullable ibgeCode = JsonNullable.undefined(); @JsonProperty("ibgeCode") - public ApiCustomerUpdateRequestCityDtoBuilder ibgeCode(String value) { + public AccountInfoCityDtoBuilder ibgeCode(String value) { this.ibgeCode = JsonNullable.of(value); return this; } @@ -127,7 +130,7 @@ public ApiCustomerUpdateRequestCityDtoBuilder ibgeCode(String value) { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiCustomerUpdateRequestCityDtoBuilder name(String value) { + public AccountInfoCityDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -135,7 +138,7 @@ public ApiCustomerUpdateRequestCityDtoBuilder name(String value) { private JsonNullable districtCode = JsonNullable.undefined(); @JsonProperty("districtCode") - public ApiCustomerUpdateRequestCityDtoBuilder districtCode(String value) { + public AccountInfoCityDtoBuilder districtCode(String value) { this.districtCode = JsonNullable.of(value); return this; } @@ -143,15 +146,15 @@ public ApiCustomerUpdateRequestCityDtoBuilder districtCode(String value) { private JsonNullable district = JsonNullable.undefined(); @JsonProperty("district") - public ApiCustomerUpdateRequestCityDtoBuilder district(String value) { + public AccountInfoCityDtoBuilder district(String value) { this.district = JsonNullable.of(value); return this; } - private JsonNullable state = JsonNullable.undefined(); + private JsonNullable state = JsonNullable.undefined(); @JsonProperty("state") - public ApiCustomerUpdateRequestCityDtoBuilder state(ApiCustomerUpdateRequestCityState value) { + public AccountInfoCityDtoBuilder state(AccountInfoCityState 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/AccountInfoCityState.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityState.java rename to src/main/java/com/asaas/apisdk/models/AccountInfoCityState.java index 2f3183b..fc00c98 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCityState.java +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoCityState.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerUpdateRequestCityState { +public enum AccountInfoCityState { AC("AC"), AL("AL"), AP("AP"), @@ -46,8 +46,8 @@ public enum ApiCustomerUpdateRequestCityState { private final String value; @JsonCreator - public static ApiCustomerUpdateRequestCityState fromValue(String value) { - return Arrays.stream(ApiCustomerUpdateRequestCityState.values()) + 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/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountInfoCommercialInfoExpirationResponseDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AccountInfoCommercialInfoExpirationResponseDto.java index 0307965..5e4058e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoCommercialInfoExpirationResponseDto.java @@ -12,13 +12,16 @@ 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 ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto { +public class AccountInfoCommercialInfoExpirationResponseDto { /** * Informs if commercial data is expired @@ -43,12 +46,12 @@ public String getScheduledDate() { } // Overwrite lombok builder methods - public static class ApiCustomerUpdateRequestCommercialInfoExpirationResponseDtoBuilder { + public static class AccountInfoCommercialInfoExpirationResponseDtoBuilder { private JsonNullable isExpired = JsonNullable.undefined(); @JsonProperty("isExpired") - public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDtoBuilder isExpired(Boolean value) { + public AccountInfoCommercialInfoExpirationResponseDtoBuilder isExpired(Boolean value) { this.isExpired = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDtoBuilder isExpi private JsonNullable scheduledDate = JsonNullable.undefined(); @JsonProperty("scheduledDate") - public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDtoBuilder scheduledDate(String value) { + public AccountInfoCommercialInfoExpirationResponseDtoBuilder scheduledDate(String value) { this.scheduledDate = 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/AccountInfoGetResponseCompanyType.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestCompanyType.java rename to src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseCompanyType.java index c340574..f1b7aef 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestCompanyType.java +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseCompanyType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerSaveRequestCompanyType { +public enum AccountInfoGetResponseCompanyType { MEI("MEI"), LIMITED("LIMITED"), INDIVIDUAL("INDIVIDUAL"), @@ -23,8 +23,8 @@ public enum ApiCustomerSaveRequestCompanyType { private final String value; @JsonCreator - public static ApiCustomerSaveRequestCompanyType fromValue(String value) { - return Arrays.stream(ApiCustomerSaveRequestCompanyType.values()) + 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/ApiCustomerUpdateRequestGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseDto.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseDto.java index 8f59eca..dbac8cc 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseDto.java @@ -19,19 +19,19 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerUpdateRequestGetResponseDto { +public class AccountInfoGetResponseDto { /** * Account status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Person Type */ @JsonProperty("personType") - private JsonNullable personType; + private JsonNullable personType; /** * CPF or CNPJ of the account owner @@ -61,7 +61,7 @@ public class ApiCustomerUpdateRequestGetResponseDto { * Type of company (only when Legal Entity) */ @JsonProperty("companyType") - private JsonNullable companyType; + private JsonNullable companyType; /** * Billing/Monthly income @@ -117,8 +117,11 @@ public class ApiCustomerUpdateRequestGetResponseDto { @JsonProperty("province") private JsonNullable province; + /** + * City information registered in your account + */ @JsonProperty("city") - private JsonNullable city; + private JsonNullable city; /** * Reason why it is necessary to resend the information @@ -144,16 +147,19 @@ public class ApiCustomerUpdateRequestGetResponseDto { @JsonProperty("availableCompanyNames") private JsonNullable> availableCompanyNames; + /** + * Information about the expiration of commercial data + */ @JsonProperty("commercialInfoExpiration") - private JsonNullable commercialInfoExpiration; + private JsonNullable commercialInfoExpiration; @JsonIgnore - public ApiCustomerUpdateRequestGetResponseStatus getStatus() { + public AccountInfoGetResponseStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiCustomerUpdateRequestGetResponsePersonType getPersonType() { + public AccountInfoGetResponsePersonType getPersonType() { return personType.orElse(null); } @@ -178,7 +184,7 @@ public String getCompanyName() { } @JsonIgnore - public ApiCustomerUpdateRequestGetResponseCompanyType getCompanyType() { + public AccountInfoGetResponseCompanyType getCompanyType() { return companyType.orElse(null); } @@ -228,7 +234,7 @@ public String getProvince() { } @JsonIgnore - public ApiCustomerUpdateRequestCityDto getCity() { + public AccountInfoCityDto getCity() { return city.orElse(null); } @@ -253,27 +259,25 @@ public List getAvailableCompanyNames() { } @JsonIgnore - public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { + public AccountInfoCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { return commercialInfoExpiration.orElse(null); } // Overwrite lombok builder methods - public static class ApiCustomerUpdateRequestGetResponseDtoBuilder { + public static class AccountInfoGetResponseDtoBuilder { - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiCustomerUpdateRequestGetResponseDtoBuilder status(ApiCustomerUpdateRequestGetResponseStatus value) { + public AccountInfoGetResponseDtoBuilder status(AccountInfoGetResponseStatus value) { this.status = JsonNullable.of(value); return this; } - private JsonNullable personType = JsonNullable.undefined(); + private JsonNullable personType = JsonNullable.undefined(); @JsonProperty("personType") - public ApiCustomerUpdateRequestGetResponseDtoBuilder personType( - ApiCustomerUpdateRequestGetResponsePersonType value - ) { + public AccountInfoGetResponseDtoBuilder personType(AccountInfoGetResponsePersonType value) { this.personType = JsonNullable.of(value); return this; } @@ -281,7 +285,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder personType( private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiCustomerUpdateRequestGetResponseDtoBuilder cpfCnpj(String value) { + public AccountInfoGetResponseDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } @@ -289,7 +293,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder cpfCnpj(String value) { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiCustomerUpdateRequestGetResponseDtoBuilder name(String value) { + public AccountInfoGetResponseDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -297,7 +301,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder name(String value) { private JsonNullable birthDate = JsonNullable.undefined(); @JsonProperty("birthDate") - public ApiCustomerUpdateRequestGetResponseDtoBuilder birthDate(String value) { + public AccountInfoGetResponseDtoBuilder birthDate(String value) { this.birthDate = JsonNullable.of(value); return this; } @@ -305,17 +309,15 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder birthDate(String value) { private JsonNullable companyName = JsonNullable.undefined(); @JsonProperty("companyName") - public ApiCustomerUpdateRequestGetResponseDtoBuilder companyName(String value) { + public AccountInfoGetResponseDtoBuilder companyName(String value) { this.companyName = JsonNullable.of(value); return this; } - private JsonNullable companyType = JsonNullable.undefined(); + private JsonNullable companyType = JsonNullable.undefined(); @JsonProperty("companyType") - public ApiCustomerUpdateRequestGetResponseDtoBuilder companyType( - ApiCustomerUpdateRequestGetResponseCompanyType value - ) { + public AccountInfoGetResponseDtoBuilder companyType(AccountInfoGetResponseCompanyType value) { this.companyType = JsonNullable.of(value); return this; } @@ -323,7 +325,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder companyType( private JsonNullable incomeValue = JsonNullable.undefined(); @JsonProperty("incomeValue") - public ApiCustomerUpdateRequestGetResponseDtoBuilder incomeValue(Double value) { + public AccountInfoGetResponseDtoBuilder incomeValue(Double value) { this.incomeValue = JsonNullable.of(value); return this; } @@ -331,7 +333,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder incomeValue(Double value) { private JsonNullable email = JsonNullable.undefined(); @JsonProperty("email") - public ApiCustomerUpdateRequestGetResponseDtoBuilder email(String value) { + public AccountInfoGetResponseDtoBuilder email(String value) { this.email = JsonNullable.of(value); return this; } @@ -339,7 +341,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder email(String value) { private JsonNullable phone = JsonNullable.undefined(); @JsonProperty("phone") - public ApiCustomerUpdateRequestGetResponseDtoBuilder phone(String value) { + public AccountInfoGetResponseDtoBuilder phone(String value) { this.phone = JsonNullable.of(value); return this; } @@ -347,7 +349,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder phone(String value) { private JsonNullable mobilePhone = JsonNullable.undefined(); @JsonProperty("mobilePhone") - public ApiCustomerUpdateRequestGetResponseDtoBuilder mobilePhone(String value) { + public AccountInfoGetResponseDtoBuilder mobilePhone(String value) { this.mobilePhone = JsonNullable.of(value); return this; } @@ -355,7 +357,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder mobilePhone(String value) { private JsonNullable postalCode = JsonNullable.undefined(); @JsonProperty("postalCode") - public ApiCustomerUpdateRequestGetResponseDtoBuilder postalCode(String value) { + public AccountInfoGetResponseDtoBuilder postalCode(String value) { this.postalCode = JsonNullable.of(value); return this; } @@ -363,7 +365,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder postalCode(String value) { private JsonNullable address = JsonNullable.undefined(); @JsonProperty("address") - public ApiCustomerUpdateRequestGetResponseDtoBuilder address(String value) { + public AccountInfoGetResponseDtoBuilder address(String value) { this.address = JsonNullable.of(value); return this; } @@ -371,7 +373,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder address(String value) { private JsonNullable addressNumber = JsonNullable.undefined(); @JsonProperty("addressNumber") - public ApiCustomerUpdateRequestGetResponseDtoBuilder addressNumber(String value) { + public AccountInfoGetResponseDtoBuilder addressNumber(String value) { this.addressNumber = JsonNullable.of(value); return this; } @@ -379,7 +381,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder addressNumber(String value) private JsonNullable complement = JsonNullable.undefined(); @JsonProperty("complement") - public ApiCustomerUpdateRequestGetResponseDtoBuilder complement(String value) { + public AccountInfoGetResponseDtoBuilder complement(String value) { this.complement = JsonNullable.of(value); return this; } @@ -387,15 +389,15 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder complement(String value) { private JsonNullable province = JsonNullable.undefined(); @JsonProperty("province") - public ApiCustomerUpdateRequestGetResponseDtoBuilder province(String value) { + public AccountInfoGetResponseDtoBuilder province(String value) { this.province = JsonNullable.of(value); return this; } - private JsonNullable city = JsonNullable.undefined(); + private JsonNullable city = JsonNullable.undefined(); @JsonProperty("city") - public ApiCustomerUpdateRequestGetResponseDtoBuilder city(ApiCustomerUpdateRequestCityDto value) { + public AccountInfoGetResponseDtoBuilder city(AccountInfoCityDto value) { this.city = JsonNullable.of(value); return this; } @@ -403,7 +405,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder city(ApiCustomerUpdateReque private JsonNullable denialReason = JsonNullable.undefined(); @JsonProperty("denialReason") - public ApiCustomerUpdateRequestGetResponseDtoBuilder denialReason(String value) { + public AccountInfoGetResponseDtoBuilder denialReason(String value) { this.denialReason = JsonNullable.of(value); return this; } @@ -411,7 +413,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder denialReason(String value) private JsonNullable tradingName = JsonNullable.undefined(); @JsonProperty("tradingName") - public ApiCustomerUpdateRequestGetResponseDtoBuilder tradingName(String value) { + public AccountInfoGetResponseDtoBuilder tradingName(String value) { this.tradingName = JsonNullable.of(value); return this; } @@ -419,7 +421,7 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder tradingName(String value) { private JsonNullable site = JsonNullable.undefined(); @JsonProperty("site") - public ApiCustomerUpdateRequestGetResponseDtoBuilder site(String value) { + public AccountInfoGetResponseDtoBuilder site(String value) { this.site = JsonNullable.of(value); return this; } @@ -427,17 +429,17 @@ public ApiCustomerUpdateRequestGetResponseDtoBuilder site(String value) { private JsonNullable> availableCompanyNames = JsonNullable.undefined(); @JsonProperty("availableCompanyNames") - public ApiCustomerUpdateRequestGetResponseDtoBuilder availableCompanyNames(List value) { + public AccountInfoGetResponseDtoBuilder availableCompanyNames(List value) { this.availableCompanyNames = JsonNullable.of(value); return this; } - private JsonNullable commercialInfoExpiration = + private JsonNullable commercialInfoExpiration = JsonNullable.undefined(); @JsonProperty("commercialInfoExpiration") - public ApiCustomerUpdateRequestGetResponseDtoBuilder commercialInfoExpiration( - ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto value + public AccountInfoGetResponseDtoBuilder commercialInfoExpiration( + AccountInfoCommercialInfoExpirationResponseDto value ) { this.commercialInfoExpiration = 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/AccountInfoGetResponsePersonType.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestPersonType.java rename to src/main/java/com/asaas/apisdk/models/AccountInfoGetResponsePersonType.java index c95382f..5ec9be6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestPersonType.java +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponsePersonType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerUpdateRequestSaveRequestPersonType { +public enum AccountInfoGetResponsePersonType { JURIDICA("JURIDICA"), FISICA("FISICA"); @@ -21,8 +21,8 @@ public enum ApiCustomerUpdateRequestSaveRequestPersonType { private final String value; @JsonCreator - public static ApiCustomerUpdateRequestSaveRequestPersonType fromValue(String value) { - return Arrays.stream(ApiCustomerUpdateRequestSaveRequestPersonType.values()) + 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/ApiCustomerUpdateRequestGetResponseStatus.java b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseStatus.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseStatus.java rename to src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseStatus.java index 6e3e48b..875cc86 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseStatus.java +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoGetResponseStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerUpdateRequestGetResponseStatus { +public enum AccountInfoGetResponseStatus { APPROVED("APPROVED"), AWAITING_ACTION_AUTHORIZATION("AWAITING_ACTION_AUTHORIZATION"), DENIED("DENIED"), @@ -23,8 +23,8 @@ public enum ApiCustomerUpdateRequestGetResponseStatus { private final String value; @JsonCreator - public static ApiCustomerUpdateRequestGetResponseStatus fromValue(String value) { - return Arrays.stream(ApiCustomerUpdateRequestGetResponseStatus.values()) + 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/ApiCustomerGetResponseCompanyType.java b/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestCompanyType.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseCompanyType.java rename to src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestCompanyType.java index f2b1655..1f4c5ce 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerGetResponseCompanyType.java +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestCompanyType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerGetResponseCompanyType { +public enum AccountInfoSaveRequestCompanyType { MEI("MEI"), LIMITED("LIMITED"), INDIVIDUAL("INDIVIDUAL"), @@ -23,8 +23,8 @@ public enum ApiCustomerGetResponseCompanyType { private final String value; @JsonCreator - public static ApiCustomerGetResponseCompanyType fromValue(String value) { - return Arrays.stream(ApiCustomerGetResponseCompanyType.values()) + 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/ApiCustomerUpdateRequestSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestDto.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestDto.java index c697aa1..f0fe5ab 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountInfoSaveRequestDto.java @@ -18,13 +18,13 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerUpdateRequestSaveRequestDto { +public class AccountInfoSaveRequestDto { /** * Person Type */ @JsonProperty("personType") - private JsonNullable personType; + private JsonNullable personType; /** * CPF or CNPJ of the account owner @@ -42,7 +42,13 @@ public class ApiCustomerUpdateRequestSaveRequestDto { * Type of company (only when Legal Entity) */ @JsonProperty("companyType") - private JsonNullable companyType; + private JsonNullable companyType; + + /** + * Company Name + */ + @JsonProperty("companyName") + private JsonNullable companyName; /** * Billing/Monthly income @@ -105,7 +111,7 @@ public class ApiCustomerUpdateRequestSaveRequestDto { private JsonNullable province; @JsonIgnore - public ApiCustomerUpdateRequestSaveRequestPersonType getPersonType() { + public AccountInfoSaveRequestPersonType getPersonType() { return personType.orElse(null); } @@ -120,10 +126,15 @@ public String getBirthDate() { } @JsonIgnore - public ApiCustomerUpdateRequestSaveRequestCompanyType getCompanyType() { + public AccountInfoSaveRequestCompanyType getCompanyType() { return companyType.orElse(null); } + @JsonIgnore + public String getCompanyName() { + return companyName.orElse(null); + } + @JsonIgnore public Double getIncomeValue() { return incomeValue.orElse(null); @@ -175,14 +186,12 @@ public String getProvince() { } // Overwrite lombok builder methods - public static class ApiCustomerUpdateRequestSaveRequestDtoBuilder { + public static class AccountInfoSaveRequestDtoBuilder { - private JsonNullable personType = JsonNullable.undefined(); + private JsonNullable personType = JsonNullable.undefined(); @JsonProperty("personType") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder personType( - ApiCustomerUpdateRequestSaveRequestPersonType value - ) { + public AccountInfoSaveRequestDtoBuilder personType(AccountInfoSaveRequestPersonType value) { this.personType = JsonNullable.of(value); return this; } @@ -190,7 +199,7 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder personType( private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder cpfCnpj(String value) { + public AccountInfoSaveRequestDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } @@ -198,25 +207,31 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder cpfCnpj(String value) { private JsonNullable birthDate = JsonNullable.undefined(); @JsonProperty("birthDate") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder birthDate(String value) { + public AccountInfoSaveRequestDtoBuilder birthDate(String value) { this.birthDate = JsonNullable.of(value); return this; } - private JsonNullable companyType = JsonNullable.undefined(); + private JsonNullable companyType = JsonNullable.undefined(); @JsonProperty("companyType") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder companyType( - ApiCustomerUpdateRequestSaveRequestCompanyType value - ) { + 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 ApiCustomerUpdateRequestSaveRequestDtoBuilder incomeValue(Double value) { + public AccountInfoSaveRequestDtoBuilder incomeValue(Double value) { this.incomeValue = JsonNullable.of(value); return this; } @@ -224,7 +239,7 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder incomeValue(Double value) { private JsonNullable email = JsonNullable.undefined(); @JsonProperty("email") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder email(String value) { + public AccountInfoSaveRequestDtoBuilder email(String value) { this.email = JsonNullable.of(value); return this; } @@ -232,7 +247,7 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder email(String value) { private JsonNullable phone = JsonNullable.undefined(); @JsonProperty("phone") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder phone(String value) { + public AccountInfoSaveRequestDtoBuilder phone(String value) { this.phone = JsonNullable.of(value); return this; } @@ -240,7 +255,7 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder phone(String value) { private JsonNullable mobilePhone = JsonNullable.undefined(); @JsonProperty("mobilePhone") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder mobilePhone(String value) { + public AccountInfoSaveRequestDtoBuilder mobilePhone(String value) { this.mobilePhone = JsonNullable.of(value); return this; } @@ -248,7 +263,7 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder mobilePhone(String value) { private JsonNullable site = JsonNullable.undefined(); @JsonProperty("site") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder site(String value) { + public AccountInfoSaveRequestDtoBuilder site(String value) { this.site = JsonNullable.of(value); return this; } @@ -256,7 +271,7 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder site(String value) { private JsonNullable postalCode = JsonNullable.undefined(); @JsonProperty("postalCode") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder postalCode(String value) { + public AccountInfoSaveRequestDtoBuilder postalCode(String value) { this.postalCode = JsonNullable.of(value); return this; } @@ -264,7 +279,7 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder postalCode(String value) { private JsonNullable address = JsonNullable.undefined(); @JsonProperty("address") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder address(String value) { + public AccountInfoSaveRequestDtoBuilder address(String value) { this.address = JsonNullable.of(value); return this; } @@ -272,7 +287,7 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder address(String value) { private JsonNullable addressNumber = JsonNullable.undefined(); @JsonProperty("addressNumber") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder addressNumber(String value) { + public AccountInfoSaveRequestDtoBuilder addressNumber(String value) { this.addressNumber = JsonNullable.of(value); return this; } @@ -280,7 +295,7 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder addressNumber(String value) private JsonNullable complement = JsonNullable.undefined(); @JsonProperty("complement") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder complement(String value) { + public AccountInfoSaveRequestDtoBuilder complement(String value) { this.complement = JsonNullable.of(value); return this; } @@ -288,7 +303,7 @@ public ApiCustomerUpdateRequestSaveRequestDtoBuilder complement(String value) { private JsonNullable province = JsonNullable.undefined(); @JsonProperty("province") - public ApiCustomerUpdateRequestSaveRequestDtoBuilder province(String value) { + 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/ApiBillListResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountListResponseDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiBillListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AccountListResponseDto.java index 6b3b8a4..325b6e0 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiBillListResponseDto { +public class AccountListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiBillListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiBillListResponseDtoBuilder { + public static class AccountListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiBillListResponseDtoBuilder object(String value) { + public AccountListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiBillListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiBillListResponseDtoBuilder hasMore(Boolean value) { + public AccountListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiBillListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiBillListResponseDtoBuilder totalCount(Long value) { + public AccountListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiBillListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiBillListResponseDtoBuilder limit(Long value) { + public AccountListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiBillListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiBillListResponseDtoBuilder offset(Long value) { + public AccountListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiBillListResponseDtoBuilder data(List value) { + public AccountListResponseDtoBuilder 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/AccountNumberDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerAccountNumberDto.java rename to src/main/java/com/asaas/apisdk/models/AccountNumberDto.java index 63aa6a5..d27b408 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountNumberDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountNumberDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Subaccount number in Asaas + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerAccountNumberDto { +public class AccountNumberDto { /** * Account agency @@ -54,12 +57,12 @@ public String getAccountDigit() { } // Overwrite lombok builder methods - public static class ApiCustomerAccountNumberDtoBuilder { + public static class AccountNumberDtoBuilder { private JsonNullable agency = JsonNullable.undefined(); @JsonProperty("agency") - public ApiCustomerAccountNumberDtoBuilder agency(String value) { + public AccountNumberDtoBuilder agency(String value) { this.agency = JsonNullable.of(value); return this; } @@ -67,7 +70,7 @@ public ApiCustomerAccountNumberDtoBuilder agency(String value) { private JsonNullable account = JsonNullable.undefined(); @JsonProperty("account") - public ApiCustomerAccountNumberDtoBuilder account(String value) { + public AccountNumberDtoBuilder account(String value) { this.account = JsonNullable.of(value); return this; } @@ -75,7 +78,7 @@ public ApiCustomerAccountNumberDtoBuilder account(String value) { private JsonNullable accountDigit = JsonNullable.undefined(); @JsonProperty("accountDigit") - public ApiCustomerAccountNumberDtoBuilder accountDigit(String value) { + public AccountNumberDtoBuilder accountDigit(String value) { this.accountDigit = 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/AccountPaymentEscrowConfigDto.java similarity index 84% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerPaymentCustodyConfigDto.java rename to src/main/java/com/asaas/apisdk/models/AccountPaymentEscrowConfigDto.java index c4136ea..426c34f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerPaymentCustodyConfigDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountPaymentEscrowConfigDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerPaymentCustodyConfigDto { +public class AccountPaymentEscrowConfigDto { /** * Number of days to expire the payment escrow @@ -50,12 +50,12 @@ public Boolean getIsFeePayer() { } // Overwrite lombok builder methods - public static class ApiCustomerPaymentCustodyConfigDtoBuilder { + public static class AccountPaymentEscrowConfigDtoBuilder { private JsonNullable enabled = JsonNullable.undefined(); @JsonProperty("enabled") - public ApiCustomerPaymentCustodyConfigDtoBuilder enabled(Boolean value) { + public AccountPaymentEscrowConfigDtoBuilder enabled(Boolean value) { this.enabled = JsonNullable.of(value); return this; } @@ -63,7 +63,7 @@ public ApiCustomerPaymentCustodyConfigDtoBuilder enabled(Boolean value) { private JsonNullable isFeePayer = JsonNullable.undefined(); @JsonProperty("isFeePayer") - public ApiCustomerPaymentCustodyConfigDtoBuilder isFeePayer(Boolean value) { + public AccountPaymentEscrowConfigDtoBuilder 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/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.java rename to src/main/java/com/asaas/apisdk/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.java index 6c5be82..24838b9 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountSaveOrUpdatePaymentEscrowConfigRequestDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDto { +public class AccountSaveOrUpdatePaymentEscrowConfigRequestDto { /** * Number of days to expire the payment escrow @@ -50,12 +50,12 @@ public Boolean getIsFeePayer() { } // Overwrite lombok builder methods - public static class ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDtoBuilder { + public static class AccountSaveOrUpdatePaymentEscrowConfigRequestDtoBuilder { private JsonNullable enabled = JsonNullable.undefined(); @JsonProperty("enabled") - public ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDtoBuilder enabled(Boolean value) { + public AccountSaveOrUpdatePaymentEscrowConfigRequestDtoBuilder enabled(Boolean value) { this.enabled = JsonNullable.of(value); return this; } @@ -63,7 +63,7 @@ public ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDtoBuilder enabled(Bool private JsonNullable isFeePayer = JsonNullable.undefined(); @JsonProperty("isFeePayer") - public ApiCustomerSaveOrUpdatePaymentCustodyConfigRequestDtoBuilder isFeePayer(Boolean value) { + public AccountSaveOrUpdatePaymentEscrowConfigRequestDtoBuilder isFeePayer(Boolean value) { this.isFeePayer = 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/AccountSaveRequestCompanyType.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseCompanyType.java rename to src/main/java/com/asaas/apisdk/models/AccountSaveRequestCompanyType.java index 27383d6..919bfb9 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerUpdateRequestGetResponseCompanyType.java +++ b/src/main/java/com/asaas/apisdk/models/AccountSaveRequestCompanyType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerUpdateRequestGetResponseCompanyType { +public enum AccountSaveRequestCompanyType { MEI("MEI"), LIMITED("LIMITED"), INDIVIDUAL("INDIVIDUAL"), @@ -23,8 +23,8 @@ public enum ApiCustomerUpdateRequestGetResponseCompanyType { private final String value; @JsonCreator - public static ApiCustomerUpdateRequestGetResponseCompanyType fromValue(String value) { - return Arrays.stream(ApiCustomerUpdateRequestGetResponseCompanyType.values()) + 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/ApiCustomerSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/AccountSaveRequestDto.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/AccountSaveRequestDto.java index 1a06533..34bcdac 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountSaveRequestDto.java @@ -20,7 +20,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerSaveRequestDto { +public class AccountSaveRequestDto { /** * Subaccount name @@ -92,7 +92,7 @@ public class ApiCustomerSaveRequestDto { * Type of company (only when Legal Entity) */ @JsonProperty("companyType") - private JsonNullable companyType; + private JsonNullable companyType; /** * Telephone @@ -116,7 +116,7 @@ public class ApiCustomerSaveRequestDto { * Array with desired Webhooks settings */ @JsonProperty("webhooks") - private JsonNullable> webhooks; + private JsonNullable> webhooks; @JsonIgnore public String getLoginEmail() { @@ -129,7 +129,7 @@ public String getBirthDate() { } @JsonIgnore - public ApiCustomerSaveRequestCompanyType getCompanyType() { + public AccountSaveRequestCompanyType getCompanyType() { return companyType.orElse(null); } @@ -149,17 +149,17 @@ public String getComplement() { } @JsonIgnore - public List getWebhooks() { + public List getWebhooks() { return webhooks.orElse(null); } // Overwrite lombok builder methods - public static class ApiCustomerSaveRequestDtoBuilder { + public static class AccountSaveRequestDtoBuilder { private JsonNullable loginEmail = JsonNullable.undefined(); @JsonProperty("loginEmail") - public ApiCustomerSaveRequestDtoBuilder loginEmail(String value) { + public AccountSaveRequestDtoBuilder loginEmail(String value) { this.loginEmail = JsonNullable.of(value); return this; } @@ -167,15 +167,15 @@ public ApiCustomerSaveRequestDtoBuilder loginEmail(String value) { private JsonNullable birthDate = JsonNullable.undefined(); @JsonProperty("birthDate") - public ApiCustomerSaveRequestDtoBuilder birthDate(String value) { + public AccountSaveRequestDtoBuilder birthDate(String value) { this.birthDate = JsonNullable.of(value); return this; } - private JsonNullable companyType = JsonNullable.undefined(); + private JsonNullable companyType = JsonNullable.undefined(); @JsonProperty("companyType") - public ApiCustomerSaveRequestDtoBuilder companyType(ApiCustomerSaveRequestCompanyType value) { + public AccountSaveRequestDtoBuilder companyType(AccountSaveRequestCompanyType value) { this.companyType = JsonNullable.of(value); return this; } @@ -183,7 +183,7 @@ public ApiCustomerSaveRequestDtoBuilder companyType(ApiCustomerSaveRequestCompan private JsonNullable phone = JsonNullable.undefined(); @JsonProperty("phone") - public ApiCustomerSaveRequestDtoBuilder phone(String value) { + public AccountSaveRequestDtoBuilder phone(String value) { this.phone = JsonNullable.of(value); return this; } @@ -191,7 +191,7 @@ public ApiCustomerSaveRequestDtoBuilder phone(String value) { private JsonNullable site = JsonNullable.undefined(); @JsonProperty("site") - public ApiCustomerSaveRequestDtoBuilder site(String value) { + public AccountSaveRequestDtoBuilder site(String value) { this.site = JsonNullable.of(value); return this; } @@ -199,15 +199,15 @@ public ApiCustomerSaveRequestDtoBuilder site(String value) { private JsonNullable complement = JsonNullable.undefined(); @JsonProperty("complement") - public ApiCustomerSaveRequestDtoBuilder complement(String value) { + public AccountSaveRequestDtoBuilder complement(String value) { this.complement = JsonNullable.of(value); return this; } - private JsonNullable> webhooks = JsonNullable.undefined(); + private JsonNullable> webhooks = JsonNullable.undefined(); @JsonProperty("webhooks") - public ApiCustomerSaveRequestDtoBuilder webhooks(List value) { + 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/ApiCustomerSaveResponseDto.java b/src/main/java/com/asaas/apisdk/models/AccountSaveResponseDto.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AccountSaveResponseDto.java index 92040cb..c42f210 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AccountSaveResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerSaveResponseDto { +public class AccountSaveResponseDto { /** * Object type @@ -108,13 +108,13 @@ public class ApiCustomerSaveResponseDto { * Kind of person */ @JsonProperty("personType") - private JsonNullable personType; + private JsonNullable personType; /** * Type of company (only when Legal Entity) */ @JsonProperty("companyType") - private JsonNullable companyType; + private JsonNullable companyType; /** * Unique city identifier in Asaas @@ -152,11 +152,17 @@ public class ApiCustomerSaveResponseDto { @JsonProperty("walletId") private JsonNullable walletId; + /** + * Subaccount number in Asaas + */ @JsonProperty("accountNumber") - private JsonNullable accountNumber; + private JsonNullable accountNumber; + /** + * Information about the expiration of commercial data + */ @JsonProperty("commercialInfoExpiration") - private JsonNullable commercialInfoExpiration; + private JsonNullable commercialInfoExpiration; /** * API key @@ -235,12 +241,12 @@ public String getBirthDate() { } @JsonIgnore - public ApiCustomerSaveResponsePersonType getPersonType() { + public AccountSaveResponsePersonType getPersonType() { return personType.orElse(null); } @JsonIgnore - public ApiCustomerSaveResponseCompanyType getCompanyType() { + public AccountSaveResponseCompanyType getCompanyType() { return companyType.orElse(null); } @@ -275,12 +281,12 @@ public String getWalletId() { } @JsonIgnore - public ApiCustomerAccountNumberDto getAccountNumber() { + public AccountNumberDto getAccountNumber() { return accountNumber.orElse(null); } @JsonIgnore - public ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { + public AccountInfoCommercialInfoExpirationResponseDto getCommercialInfoExpiration() { return commercialInfoExpiration.orElse(null); } @@ -290,12 +296,12 @@ public String getApiKey() { } // Overwrite lombok builder methods - public static class ApiCustomerSaveResponseDtoBuilder { + public static class AccountSaveResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiCustomerSaveResponseDtoBuilder object(String value) { + public AccountSaveResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -303,7 +309,7 @@ public ApiCustomerSaveResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiCustomerSaveResponseDtoBuilder id(String value) { + public AccountSaveResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -311,7 +317,7 @@ public ApiCustomerSaveResponseDtoBuilder id(String value) { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiCustomerSaveResponseDtoBuilder name(String value) { + public AccountSaveResponseDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -319,7 +325,7 @@ public ApiCustomerSaveResponseDtoBuilder name(String value) { private JsonNullable email = JsonNullable.undefined(); @JsonProperty("email") - public ApiCustomerSaveResponseDtoBuilder email(String value) { + public AccountSaveResponseDtoBuilder email(String value) { this.email = JsonNullable.of(value); return this; } @@ -327,7 +333,7 @@ public ApiCustomerSaveResponseDtoBuilder email(String value) { private JsonNullable loginEmail = JsonNullable.undefined(); @JsonProperty("loginEmail") - public ApiCustomerSaveResponseDtoBuilder loginEmail(String value) { + public AccountSaveResponseDtoBuilder loginEmail(String value) { this.loginEmail = JsonNullable.of(value); return this; } @@ -335,7 +341,7 @@ public ApiCustomerSaveResponseDtoBuilder loginEmail(String value) { private JsonNullable phone = JsonNullable.undefined(); @JsonProperty("phone") - public ApiCustomerSaveResponseDtoBuilder phone(String value) { + public AccountSaveResponseDtoBuilder phone(String value) { this.phone = JsonNullable.of(value); return this; } @@ -343,7 +349,7 @@ public ApiCustomerSaveResponseDtoBuilder phone(String value) { private JsonNullable mobilePhone = JsonNullable.undefined(); @JsonProperty("mobilePhone") - public ApiCustomerSaveResponseDtoBuilder mobilePhone(String value) { + public AccountSaveResponseDtoBuilder mobilePhone(String value) { this.mobilePhone = JsonNullable.of(value); return this; } @@ -351,7 +357,7 @@ public ApiCustomerSaveResponseDtoBuilder mobilePhone(String value) { private JsonNullable address = JsonNullable.undefined(); @JsonProperty("address") - public ApiCustomerSaveResponseDtoBuilder address(String value) { + public AccountSaveResponseDtoBuilder address(String value) { this.address = JsonNullable.of(value); return this; } @@ -359,7 +365,7 @@ public ApiCustomerSaveResponseDtoBuilder address(String value) { private JsonNullable addressNumber = JsonNullable.undefined(); @JsonProperty("addressNumber") - public ApiCustomerSaveResponseDtoBuilder addressNumber(String value) { + public AccountSaveResponseDtoBuilder addressNumber(String value) { this.addressNumber = JsonNullable.of(value); return this; } @@ -367,7 +373,7 @@ public ApiCustomerSaveResponseDtoBuilder addressNumber(String value) { private JsonNullable complement = JsonNullable.undefined(); @JsonProperty("complement") - public ApiCustomerSaveResponseDtoBuilder complement(String value) { + public AccountSaveResponseDtoBuilder complement(String value) { this.complement = JsonNullable.of(value); return this; } @@ -375,7 +381,7 @@ public ApiCustomerSaveResponseDtoBuilder complement(String value) { private JsonNullable province = JsonNullable.undefined(); @JsonProperty("province") - public ApiCustomerSaveResponseDtoBuilder province(String value) { + public AccountSaveResponseDtoBuilder province(String value) { this.province = JsonNullable.of(value); return this; } @@ -383,7 +389,7 @@ public ApiCustomerSaveResponseDtoBuilder province(String value) { private JsonNullable postalCode = JsonNullable.undefined(); @JsonProperty("postalCode") - public ApiCustomerSaveResponseDtoBuilder postalCode(String value) { + public AccountSaveResponseDtoBuilder postalCode(String value) { this.postalCode = JsonNullable.of(value); return this; } @@ -391,7 +397,7 @@ public ApiCustomerSaveResponseDtoBuilder postalCode(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiCustomerSaveResponseDtoBuilder cpfCnpj(String value) { + public AccountSaveResponseDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } @@ -399,23 +405,23 @@ public ApiCustomerSaveResponseDtoBuilder cpfCnpj(String value) { private JsonNullable birthDate = JsonNullable.undefined(); @JsonProperty("birthDate") - public ApiCustomerSaveResponseDtoBuilder birthDate(String value) { + public AccountSaveResponseDtoBuilder birthDate(String value) { this.birthDate = JsonNullable.of(value); return this; } - private JsonNullable personType = JsonNullable.undefined(); + private JsonNullable personType = JsonNullable.undefined(); @JsonProperty("personType") - public ApiCustomerSaveResponseDtoBuilder personType(ApiCustomerSaveResponsePersonType value) { + public AccountSaveResponseDtoBuilder personType(AccountSaveResponsePersonType value) { this.personType = JsonNullable.of(value); return this; } - private JsonNullable companyType = JsonNullable.undefined(); + private JsonNullable companyType = JsonNullable.undefined(); @JsonProperty("companyType") - public ApiCustomerSaveResponseDtoBuilder companyType(ApiCustomerSaveResponseCompanyType value) { + public AccountSaveResponseDtoBuilder companyType(AccountSaveResponseCompanyType value) { this.companyType = JsonNullable.of(value); return this; } @@ -423,7 +429,7 @@ public ApiCustomerSaveResponseDtoBuilder companyType(ApiCustomerSaveResponseComp private JsonNullable city = JsonNullable.undefined(); @JsonProperty("city") - public ApiCustomerSaveResponseDtoBuilder city(Long value) { + public AccountSaveResponseDtoBuilder city(Long value) { this.city = JsonNullable.of(value); return this; } @@ -431,7 +437,7 @@ public ApiCustomerSaveResponseDtoBuilder city(Long value) { private JsonNullable state = JsonNullable.undefined(); @JsonProperty("state") - public ApiCustomerSaveResponseDtoBuilder state(String value) { + public AccountSaveResponseDtoBuilder state(String value) { this.state = JsonNullable.of(value); return this; } @@ -439,7 +445,7 @@ public ApiCustomerSaveResponseDtoBuilder state(String value) { private JsonNullable country = JsonNullable.undefined(); @JsonProperty("country") - public ApiCustomerSaveResponseDtoBuilder country(String value) { + public AccountSaveResponseDtoBuilder country(String value) { this.country = JsonNullable.of(value); return this; } @@ -447,7 +453,7 @@ public ApiCustomerSaveResponseDtoBuilder country(String value) { private JsonNullable tradingName = JsonNullable.undefined(); @JsonProperty("tradingName") - public ApiCustomerSaveResponseDtoBuilder tradingName(String value) { + public AccountSaveResponseDtoBuilder tradingName(String value) { this.tradingName = JsonNullable.of(value); return this; } @@ -455,7 +461,7 @@ public ApiCustomerSaveResponseDtoBuilder tradingName(String value) { private JsonNullable site = JsonNullable.undefined(); @JsonProperty("site") - public ApiCustomerSaveResponseDtoBuilder site(String value) { + public AccountSaveResponseDtoBuilder site(String value) { this.site = JsonNullable.of(value); return this; } @@ -463,25 +469,25 @@ public ApiCustomerSaveResponseDtoBuilder site(String value) { private JsonNullable walletId = JsonNullable.undefined(); @JsonProperty("walletId") - public ApiCustomerSaveResponseDtoBuilder walletId(String value) { + public AccountSaveResponseDtoBuilder walletId(String value) { this.walletId = JsonNullable.of(value); return this; } - private JsonNullable accountNumber = JsonNullable.undefined(); + private JsonNullable accountNumber = JsonNullable.undefined(); @JsonProperty("accountNumber") - public ApiCustomerSaveResponseDtoBuilder accountNumber(ApiCustomerAccountNumberDto value) { + public AccountSaveResponseDtoBuilder accountNumber(AccountNumberDto value) { this.accountNumber = JsonNullable.of(value); return this; } - private JsonNullable commercialInfoExpiration = + private JsonNullable commercialInfoExpiration = JsonNullable.undefined(); @JsonProperty("commercialInfoExpiration") - public ApiCustomerSaveResponseDtoBuilder commercialInfoExpiration( - ApiCustomerUpdateRequestCommercialInfoExpirationResponseDto value + public AccountSaveResponseDtoBuilder commercialInfoExpiration( + AccountInfoCommercialInfoExpirationResponseDto value ) { this.commercialInfoExpiration = JsonNullable.of(value); return this; @@ -490,7 +496,7 @@ public ApiCustomerSaveResponseDtoBuilder commercialInfoExpiration( private JsonNullable apiKey = JsonNullable.undefined(); @JsonProperty("apiKey") - public ApiCustomerSaveResponseDtoBuilder apiKey(String value) { + public AccountSaveResponseDtoBuilder 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/AccountSaveResponsePersonType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponsePersonType.java rename to src/main/java/com/asaas/apisdk/models/AccountSaveResponsePersonType.java index faa1d67..58ca181 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerSaveResponsePersonType.java +++ b/src/main/java/com/asaas/apisdk/models/AccountSaveResponsePersonType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerSaveResponsePersonType { +public enum AccountSaveResponsePersonType { JURIDICA("JURIDICA"), FISICA("FISICA"); @@ -21,8 +21,8 @@ public enum ApiCustomerSaveResponsePersonType { private final String value; @JsonCreator - public static ApiCustomerSaveResponsePersonType fromValue(String value) { - return Arrays.stream(ApiCustomerSaveResponsePersonType.values()) + 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/ApiReceivableAnticipationConfigurationGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationConfigurationGetResponseDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AnticipationConfigurationGetResponseDto.java index daf0a1f..4c35b56 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AnticipationConfigurationGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiReceivableAnticipationConfigurationGetResponseDto { +public class AnticipationConfigurationGetResponseDto { /** * Indicates whether automatic anticipation is enabled for credit card payments @@ -32,12 +32,12 @@ public Boolean getCreditCardAutomaticEnabled() { } // Overwrite lombok builder methods - public static class ApiReceivableAnticipationConfigurationGetResponseDtoBuilder { + public static class AnticipationConfigurationGetResponseDtoBuilder { private JsonNullable creditCardAutomaticEnabled = JsonNullable.undefined(); @JsonProperty("creditCardAutomaticEnabled") - public ApiReceivableAnticipationConfigurationGetResponseDtoBuilder creditCardAutomaticEnabled(Boolean value) { + public AnticipationConfigurationGetResponseDtoBuilder 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/AnticipationConfigurationUpdateRequestDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/AnticipationConfigurationUpdateRequestDto.java index 9faa8c7..6981672 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationConfigurationUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/AnticipationConfigurationUpdateRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiReceivableAnticipationConfigurationUpdateRequestDto { +public class AnticipationConfigurationUpdateRequestDto { /** * Define whether automatic anticipation is enabled for credit card payments @@ -32,12 +32,12 @@ public Boolean getCreditCardAutomaticEnabled() { } // Overwrite lombok builder methods - public static class ApiReceivableAnticipationConfigurationUpdateRequestDtoBuilder { + public static class AnticipationConfigurationUpdateRequestDtoBuilder { private JsonNullable creditCardAutomaticEnabled = JsonNullable.undefined(); @JsonProperty("creditCardAutomaticEnabled") - public ApiReceivableAnticipationConfigurationUpdateRequestDtoBuilder creditCardAutomaticEnabled(Boolean value) { + public AnticipationConfigurationUpdateRequestDtoBuilder creditCardAutomaticEnabled(Boolean value) { this.creditCardAutomaticEnabled = 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/AnticipationGetResponseAnticipationStatus.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.java rename to src/main/java/com/asaas/apisdk/models/AnticipationGetResponseAnticipationStatus.java index f8e7113..e80937b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.java +++ b/src/main/java/com/asaas/apisdk/models/AnticipationGetResponseAnticipationStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiReceivableAnticipationGetResponseReceivableAnticipationStatus { +public enum AnticipationGetResponseAnticipationStatus { PENDING("PENDING"), DENIED("DENIED"), CREDITED("CREDITED"), @@ -26,8 +26,8 @@ public enum ApiReceivableAnticipationGetResponseReceivableAnticipationStatus { private final String value; @JsonCreator - public static ApiReceivableAnticipationGetResponseReceivableAnticipationStatus fromValue(String value) { - return Arrays.stream(ApiReceivableAnticipationGetResponseReceivableAnticipationStatus.values()) + 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/ApiReceivableAnticipationGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationGetResponseDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AnticipationGetResponseDto.java index c21414e..6a8092b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AnticipationGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiReceivableAnticipationGetResponseDto { +public class AnticipationGetResponseDto { /** * Object type @@ -48,7 +48,7 @@ public class ApiReceivableAnticipationGetResponseDto { * Anticipation status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Anticipation request date @@ -125,7 +125,7 @@ public String getPayment() { } @JsonIgnore - public ApiReceivableAnticipationGetResponseReceivableAnticipationStatus getStatus() { + public AnticipationGetResponseAnticipationStatus getStatus() { return status.orElse(null); } @@ -175,12 +175,12 @@ public String getDenialObservation() { } // Overwrite lombok builder methods - public static class ApiReceivableAnticipationGetResponseDtoBuilder { + public static class AnticipationGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiReceivableAnticipationGetResponseDtoBuilder object(String value) { + public AnticipationGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -188,7 +188,7 @@ public ApiReceivableAnticipationGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiReceivableAnticipationGetResponseDtoBuilder id(String value) { + public AnticipationGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -196,7 +196,7 @@ public ApiReceivableAnticipationGetResponseDtoBuilder id(String value) { private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiReceivableAnticipationGetResponseDtoBuilder installment(String value) { + public AnticipationGetResponseDtoBuilder installment(String value) { this.installment = JsonNullable.of(value); return this; } @@ -204,18 +204,15 @@ public ApiReceivableAnticipationGetResponseDtoBuilder installment(String value) private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") - public ApiReceivableAnticipationGetResponseDtoBuilder payment(String value) { + public AnticipationGetResponseDtoBuilder payment(String value) { this.payment = JsonNullable.of(value); return this; } - private JsonNullable status = - JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiReceivableAnticipationGetResponseDtoBuilder status( - ApiReceivableAnticipationGetResponseReceivableAnticipationStatus value - ) { + public AnticipationGetResponseDtoBuilder status(AnticipationGetResponseAnticipationStatus value) { this.status = JsonNullable.of(value); return this; } @@ -223,7 +220,7 @@ public ApiReceivableAnticipationGetResponseDtoBuilder status( private JsonNullable anticipationDate = JsonNullable.undefined(); @JsonProperty("anticipationDate") - public ApiReceivableAnticipationGetResponseDtoBuilder anticipationDate(String value) { + public AnticipationGetResponseDtoBuilder anticipationDate(String value) { this.anticipationDate = JsonNullable.of(value); return this; } @@ -231,7 +228,7 @@ public ApiReceivableAnticipationGetResponseDtoBuilder anticipationDate(String va private JsonNullable dueDate = JsonNullable.undefined(); @JsonProperty("dueDate") - public ApiReceivableAnticipationGetResponseDtoBuilder dueDate(String value) { + public AnticipationGetResponseDtoBuilder dueDate(String value) { this.dueDate = JsonNullable.of(value); return this; } @@ -239,7 +236,7 @@ public ApiReceivableAnticipationGetResponseDtoBuilder dueDate(String value) { private JsonNullable requestDate = JsonNullable.undefined(); @JsonProperty("requestDate") - public ApiReceivableAnticipationGetResponseDtoBuilder requestDate(String value) { + public AnticipationGetResponseDtoBuilder requestDate(String value) { this.requestDate = JsonNullable.of(value); return this; } @@ -247,7 +244,7 @@ public ApiReceivableAnticipationGetResponseDtoBuilder requestDate(String value) private JsonNullable fee = JsonNullable.undefined(); @JsonProperty("fee") - public ApiReceivableAnticipationGetResponseDtoBuilder fee(Double value) { + public AnticipationGetResponseDtoBuilder fee(Double value) { this.fee = JsonNullable.of(value); return this; } @@ -255,7 +252,7 @@ public ApiReceivableAnticipationGetResponseDtoBuilder fee(Double value) { private JsonNullable anticipationDays = JsonNullable.undefined(); @JsonProperty("anticipationDays") - public ApiReceivableAnticipationGetResponseDtoBuilder anticipationDays(Long value) { + public AnticipationGetResponseDtoBuilder anticipationDays(Long value) { this.anticipationDays = JsonNullable.of(value); return this; } @@ -263,7 +260,7 @@ public ApiReceivableAnticipationGetResponseDtoBuilder anticipationDays(Long valu private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiReceivableAnticipationGetResponseDtoBuilder netValue(Double value) { + public AnticipationGetResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -271,7 +268,7 @@ public ApiReceivableAnticipationGetResponseDtoBuilder netValue(Double value) { private JsonNullable totalValue = JsonNullable.undefined(); @JsonProperty("totalValue") - public ApiReceivableAnticipationGetResponseDtoBuilder totalValue(Double value) { + public AnticipationGetResponseDtoBuilder totalValue(Double value) { this.totalValue = JsonNullable.of(value); return this; } @@ -279,7 +276,7 @@ public ApiReceivableAnticipationGetResponseDtoBuilder totalValue(Double value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiReceivableAnticipationGetResponseDtoBuilder value(Double value) { + public AnticipationGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -287,7 +284,7 @@ public ApiReceivableAnticipationGetResponseDtoBuilder value(Double value) { private JsonNullable denialObservation = JsonNullable.undefined(); @JsonProperty("denialObservation") - public ApiReceivableAnticipationGetResponseDtoBuilder denialObservation(String value) { + public AnticipationGetResponseDtoBuilder denialObservation(String value) { this.denialObservation = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationLimitsInfoResponseDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsInfoResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AnticipationLimitsInfoResponseDto.java index af0dcbe..8191494 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationLimitsInfoResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AnticipationLimitsInfoResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Credit card anticipation limits + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiReceivableAnticipationLimitsInfoResponseDto { +public class AnticipationLimitsInfoResponseDto { /** * Anticipation limit released on the account @@ -43,12 +46,12 @@ public Double getAvailable() { } // Overwrite lombok builder methods - public static class ApiReceivableAnticipationLimitsInfoResponseDtoBuilder { + public static class AnticipationLimitsInfoResponseDtoBuilder { private JsonNullable total = JsonNullable.undefined(); @JsonProperty("total") - public ApiReceivableAnticipationLimitsInfoResponseDtoBuilder total(Double value) { + public AnticipationLimitsInfoResponseDtoBuilder total(Double value) { this.total = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiReceivableAnticipationLimitsInfoResponseDtoBuilder total(Double value) private JsonNullable available = JsonNullable.undefined(); @JsonProperty("available") - public ApiReceivableAnticipationLimitsInfoResponseDtoBuilder available(Double value) { + 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/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.java b/src/main/java/com/asaas/apisdk/models/AnticipationListRequestAnticipationStatus.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.java rename to src/main/java/com/asaas/apisdk/models/AnticipationListRequestAnticipationStatus.java index fb4ba06..fc7c2e2 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationListRequestReceivableAnticipationStatus.java +++ b/src/main/java/com/asaas/apisdk/models/AnticipationListRequestAnticipationStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiReceivableAnticipationListRequestReceivableAnticipationStatus { +public enum AnticipationListRequestAnticipationStatus { PENDING("PENDING"), DENIED("DENIED"), CREDITED("CREDITED"), @@ -26,8 +26,8 @@ public enum ApiReceivableAnticipationListRequestReceivableAnticipationStatus { private final String value; @JsonCreator - public static ApiReceivableAnticipationListRequestReceivableAnticipationStatus fromValue(String value) { - return Arrays.stream(ApiReceivableAnticipationListRequestReceivableAnticipationStatus.values()) + 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/ApiReceivableAnticipationSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationSaveRequestDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/AnticipationSaveRequestDto.java index 94e5da4..d836185 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/AnticipationSaveRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiReceivableAnticipationSaveRequestDto { +public class AnticipationSaveRequestDto { /** * ID of the installment to be anticipated @@ -54,12 +54,12 @@ public byte[] getDocuments() { } // Overwrite lombok builder methods - public static class ApiReceivableAnticipationSaveRequestDtoBuilder { + public static class AnticipationSaveRequestDtoBuilder { private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiReceivableAnticipationSaveRequestDtoBuilder installment(String value) { + public AnticipationSaveRequestDtoBuilder installment(String value) { this.installment = JsonNullable.of(value); return this; } @@ -67,7 +67,7 @@ public ApiReceivableAnticipationSaveRequestDtoBuilder installment(String value) private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") - public ApiReceivableAnticipationSaveRequestDtoBuilder payment(String value) { + public AnticipationSaveRequestDtoBuilder payment(String value) { this.payment = JsonNullable.of(value); return this; } @@ -75,7 +75,7 @@ public ApiReceivableAnticipationSaveRequestDtoBuilder payment(String value) { private JsonNullable documents = JsonNullable.undefined(); @JsonProperty("documents") - public ApiReceivableAnticipationSaveRequestDtoBuilder documents(byte[] value) { + public AnticipationSaveRequestDtoBuilder documents(byte[] value) { if (value == null) { throw new IllegalStateException("documents cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateRequestDto.java b/src/main/java/com/asaas/apisdk/models/AnticipationSimulateRequestDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/AnticipationSimulateRequestDto.java index 9eb0442..818ced7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/AnticipationSimulateRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiReceivableAnticipationSimulateRequestDto { +public class AnticipationSimulateRequestDto { /** * ID of the installment to be anticipated @@ -43,12 +43,12 @@ public String getPayment() { } // Overwrite lombok builder methods - public static class ApiReceivableAnticipationSimulateRequestDtoBuilder { + public static class AnticipationSimulateRequestDtoBuilder { private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiReceivableAnticipationSimulateRequestDtoBuilder installment(String value) { + public AnticipationSimulateRequestDtoBuilder installment(String value) { this.installment = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiReceivableAnticipationSimulateRequestDtoBuilder installment(String val private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") - public ApiReceivableAnticipationSimulateRequestDtoBuilder payment(String value) { + public AnticipationSimulateRequestDtoBuilder 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/AnticipationSimulateResponseDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateResponseDto.java rename to src/main/java/com/asaas/apisdk/models/AnticipationSimulateResponseDto.java index 5fc98a4..526dc51 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiReceivableAnticipationSimulateResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/AnticipationSimulateResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiReceivableAnticipationSimulateResponseDto { +public class AnticipationSimulateResponseDto { /** * Unique identifier of the installment to be anticipated @@ -131,12 +131,12 @@ public Boolean getIsDocumentationRequired() { } // Overwrite lombok builder methods - public static class ApiReceivableAnticipationSimulateResponseDtoBuilder { + public static class AnticipationSimulateResponseDtoBuilder { private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiReceivableAnticipationSimulateResponseDtoBuilder installment(String value) { + public AnticipationSimulateResponseDtoBuilder installment(String value) { this.installment = JsonNullable.of(value); return this; } @@ -144,7 +144,7 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder installment(String va private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") - public ApiReceivableAnticipationSimulateResponseDtoBuilder payment(String value) { + public AnticipationSimulateResponseDtoBuilder payment(String value) { this.payment = JsonNullable.of(value); return this; } @@ -152,7 +152,7 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder payment(String value) private JsonNullable anticipationDate = JsonNullable.undefined(); @JsonProperty("anticipationDate") - public ApiReceivableAnticipationSimulateResponseDtoBuilder anticipationDate(String value) { + public AnticipationSimulateResponseDtoBuilder anticipationDate(String value) { this.anticipationDate = JsonNullable.of(value); return this; } @@ -160,7 +160,7 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder anticipationDate(Stri private JsonNullable dueDate = JsonNullable.undefined(); @JsonProperty("dueDate") - public ApiReceivableAnticipationSimulateResponseDtoBuilder dueDate(String value) { + public AnticipationSimulateResponseDtoBuilder dueDate(String value) { this.dueDate = JsonNullable.of(value); return this; } @@ -168,7 +168,7 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder dueDate(String value) private JsonNullable fee = JsonNullable.undefined(); @JsonProperty("fee") - public ApiReceivableAnticipationSimulateResponseDtoBuilder fee(Double value) { + public AnticipationSimulateResponseDtoBuilder fee(Double value) { this.fee = JsonNullable.of(value); return this; } @@ -176,7 +176,7 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder fee(Double value) { private JsonNullable anticipationDays = JsonNullable.undefined(); @JsonProperty("anticipationDays") - public ApiReceivableAnticipationSimulateResponseDtoBuilder anticipationDays(Long value) { + public AnticipationSimulateResponseDtoBuilder anticipationDays(Long value) { this.anticipationDays = JsonNullable.of(value); return this; } @@ -184,7 +184,7 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder anticipationDays(Long private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiReceivableAnticipationSimulateResponseDtoBuilder netValue(Double value) { + public AnticipationSimulateResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -192,7 +192,7 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder netValue(Double value private JsonNullable totalValue = JsonNullable.undefined(); @JsonProperty("totalValue") - public ApiReceivableAnticipationSimulateResponseDtoBuilder totalValue(Double value) { + public AnticipationSimulateResponseDtoBuilder totalValue(Double value) { this.totalValue = JsonNullable.of(value); return this; } @@ -200,7 +200,7 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder totalValue(Double val private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiReceivableAnticipationSimulateResponseDtoBuilder value(Double value) { + public AnticipationSimulateResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -208,7 +208,7 @@ public ApiReceivableAnticipationSimulateResponseDtoBuilder value(Double value) { private JsonNullable isDocumentationRequired = JsonNullable.undefined(); @JsonProperty("isDocumentationRequired") - public ApiReceivableAnticipationSimulateResponseDtoBuilder isDocumentationRequired(Boolean value) { + public AnticipationSimulateResponseDtoBuilder isDocumentationRequired(Boolean value) { this.isDocumentationRequired = 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/ApiBankSlipBillingInfoResponseDto.java b/src/main/java/com/asaas/apisdk/models/BankSlipBillingInfoResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiBankSlipBillingInfoResponseDto.java rename to src/main/java/com/asaas/apisdk/models/BankSlipBillingInfoResponseDto.java index f21c02f..66b283a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBankSlipBillingInfoResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/BankSlipBillingInfoResponseDto.java @@ -12,13 +12,16 @@ 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 ApiBankSlipBillingInfoResponseDto { +public class BankSlipBillingInfoResponseDto { /** * Digitable bill line @@ -76,12 +79,12 @@ public Long getDaysAfterDueDateToRegistrationCancellation() { } // Overwrite lombok builder methods - public static class ApiBankSlipBillingInfoResponseDtoBuilder { + public static class BankSlipBillingInfoResponseDtoBuilder { private JsonNullable identificationField = JsonNullable.undefined(); @JsonProperty("identificationField") - public ApiBankSlipBillingInfoResponseDtoBuilder identificationField(String value) { + public BankSlipBillingInfoResponseDtoBuilder identificationField(String value) { this.identificationField = JsonNullable.of(value); return this; } @@ -89,7 +92,7 @@ public ApiBankSlipBillingInfoResponseDtoBuilder identificationField(String value private JsonNullable nossoNumero = JsonNullable.undefined(); @JsonProperty("nossoNumero") - public ApiBankSlipBillingInfoResponseDtoBuilder nossoNumero(String value) { + public BankSlipBillingInfoResponseDtoBuilder nossoNumero(String value) { this.nossoNumero = JsonNullable.of(value); return this; } @@ -97,7 +100,7 @@ public ApiBankSlipBillingInfoResponseDtoBuilder nossoNumero(String value) { private JsonNullable barCode = JsonNullable.undefined(); @JsonProperty("barCode") - public ApiBankSlipBillingInfoResponseDtoBuilder barCode(String value) { + public BankSlipBillingInfoResponseDtoBuilder barCode(String value) { this.barCode = JsonNullable.of(value); return this; } @@ -105,7 +108,7 @@ public ApiBankSlipBillingInfoResponseDtoBuilder barCode(String value) { private JsonNullable bankSlipUrl = JsonNullable.undefined(); @JsonProperty("bankSlipUrl") - public ApiBankSlipBillingInfoResponseDtoBuilder bankSlipUrl(String value) { + public BankSlipBillingInfoResponseDtoBuilder bankSlipUrl(String value) { this.bankSlipUrl = JsonNullable.of(value); return this; } @@ -113,7 +116,7 @@ public ApiBankSlipBillingInfoResponseDtoBuilder bankSlipUrl(String value) { private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiBankSlipBillingInfoResponseDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + public BankSlipBillingInfoResponseDtoBuilder 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/BillGetResponseBillStatus.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiBillGetResponseBillStatus.java rename to src/main/java/com/asaas/apisdk/models/BillGetResponseBillStatus.java index 38909ca..9510f7a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseBillStatus.java +++ b/src/main/java/com/asaas/apisdk/models/BillGetResponseBillStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiBillGetResponseBillStatus { +public enum BillGetResponseBillStatus { PENDING("PENDING"), BANK_PROCESSING("BANK_PROCESSING"), PAID("PAID"), @@ -26,8 +26,8 @@ public enum ApiBillGetResponseBillStatus { private final String value; @JsonCreator - public static ApiBillGetResponseBillStatus fromValue(String value) { - return Arrays.stream(ApiBillGetResponseBillStatus.values()) + 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/ApiBillGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/BillGetResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiBillGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/BillGetResponseDto.java index 690dc3a..2654b42 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/BillGetResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiBillGetResponseDto { +public class BillGetResponseDto { /** * Object type @@ -37,7 +37,7 @@ public class ApiBillGetResponseDto { * Bill payment status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Amount to be paid @@ -140,7 +140,7 @@ public String getId() { } @JsonIgnore - public ApiBillGetResponseBillStatus getStatus() { + public BillGetResponseBillStatus getStatus() { return status.orElse(null); } @@ -220,12 +220,12 @@ public List getFailReasons() { } // Overwrite lombok builder methods - public static class ApiBillGetResponseDtoBuilder { + public static class BillGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiBillGetResponseDtoBuilder object(String value) { + public BillGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -233,15 +233,15 @@ public ApiBillGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiBillGetResponseDtoBuilder id(String value) { + public BillGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiBillGetResponseDtoBuilder status(ApiBillGetResponseBillStatus value) { + public BillGetResponseDtoBuilder status(BillGetResponseBillStatus value) { this.status = JsonNullable.of(value); return this; } @@ -249,7 +249,7 @@ public ApiBillGetResponseDtoBuilder status(ApiBillGetResponseBillStatus value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiBillGetResponseDtoBuilder value(Double value) { + public BillGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -257,7 +257,7 @@ public ApiBillGetResponseDtoBuilder value(Double value) { private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiBillGetResponseDtoBuilder discount(Double value) { + public BillGetResponseDtoBuilder discount(Double value) { this.discount = JsonNullable.of(value); return this; } @@ -265,7 +265,7 @@ public ApiBillGetResponseDtoBuilder discount(Double value) { private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiBillGetResponseDtoBuilder interest(Double value) { + public BillGetResponseDtoBuilder interest(Double value) { this.interest = JsonNullable.of(value); return this; } @@ -273,7 +273,7 @@ public ApiBillGetResponseDtoBuilder interest(Double value) { private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiBillGetResponseDtoBuilder fine(Double value) { + public BillGetResponseDtoBuilder fine(Double value) { this.fine = JsonNullable.of(value); return this; } @@ -281,7 +281,7 @@ public ApiBillGetResponseDtoBuilder fine(Double value) { private JsonNullable identificationField = JsonNullable.undefined(); @JsonProperty("identificationField") - public ApiBillGetResponseDtoBuilder identificationField(String value) { + public BillGetResponseDtoBuilder identificationField(String value) { this.identificationField = JsonNullable.of(value); return this; } @@ -289,7 +289,7 @@ public ApiBillGetResponseDtoBuilder identificationField(String value) { private JsonNullable dueDate = JsonNullable.undefined(); @JsonProperty("dueDate") - public ApiBillGetResponseDtoBuilder dueDate(String value) { + public BillGetResponseDtoBuilder dueDate(String value) { this.dueDate = JsonNullable.of(value); return this; } @@ -297,7 +297,7 @@ public ApiBillGetResponseDtoBuilder dueDate(String value) { private JsonNullable scheduleDate = JsonNullable.undefined(); @JsonProperty("scheduleDate") - public ApiBillGetResponseDtoBuilder scheduleDate(String value) { + public BillGetResponseDtoBuilder scheduleDate(String value) { this.scheduleDate = JsonNullable.of(value); return this; } @@ -305,7 +305,7 @@ public ApiBillGetResponseDtoBuilder scheduleDate(String value) { private JsonNullable paymentDate = JsonNullable.undefined(); @JsonProperty("paymentDate") - public ApiBillGetResponseDtoBuilder paymentDate(String value) { + public BillGetResponseDtoBuilder paymentDate(String value) { this.paymentDate = JsonNullable.of(value); return this; } @@ -313,7 +313,7 @@ public ApiBillGetResponseDtoBuilder paymentDate(String value) { private JsonNullable fee = JsonNullable.undefined(); @JsonProperty("fee") - public ApiBillGetResponseDtoBuilder fee(Double value) { + public BillGetResponseDtoBuilder fee(Double value) { this.fee = JsonNullable.of(value); return this; } @@ -321,7 +321,7 @@ public ApiBillGetResponseDtoBuilder fee(Double value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiBillGetResponseDtoBuilder description(String value) { + public BillGetResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -329,7 +329,7 @@ public ApiBillGetResponseDtoBuilder description(String value) { private JsonNullable companyName = JsonNullable.undefined(); @JsonProperty("companyName") - public ApiBillGetResponseDtoBuilder companyName(String value) { + public BillGetResponseDtoBuilder companyName(String value) { this.companyName = JsonNullable.of(value); return this; } @@ -337,7 +337,7 @@ public ApiBillGetResponseDtoBuilder companyName(String value) { private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); @JsonProperty("transactionReceiptUrl") - public ApiBillGetResponseDtoBuilder transactionReceiptUrl(String value) { + public BillGetResponseDtoBuilder transactionReceiptUrl(String value) { this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -345,7 +345,7 @@ public ApiBillGetResponseDtoBuilder transactionReceiptUrl(String value) { private JsonNullable canBeCancelled = JsonNullable.undefined(); @JsonProperty("canBeCancelled") - public ApiBillGetResponseDtoBuilder canBeCancelled(Boolean value) { + public BillGetResponseDtoBuilder canBeCancelled(Boolean value) { this.canBeCancelled = JsonNullable.of(value); return this; } @@ -353,7 +353,7 @@ public ApiBillGetResponseDtoBuilder canBeCancelled(Boolean value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiBillGetResponseDtoBuilder externalReference(String value) { + public BillGetResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -361,7 +361,7 @@ public ApiBillGetResponseDtoBuilder externalReference(String value) { private JsonNullable> failReasons = JsonNullable.undefined(); @JsonProperty("failReasons") - public ApiBillGetResponseDtoBuilder failReasons(List value) { + 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/ApiBillSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/BillSaveRequestDto.java similarity index 86% rename from src/main/java/com/asaas/apisdk/models/ApiBillSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/BillSaveRequestDto.java index c61458d..352e478 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/BillSaveRequestDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiBillSaveRequestDto { +public class BillSaveRequestDto { /** * Digitizable bill line @@ -116,12 +116,12 @@ public String getExternalReference() { } // Overwrite lombok builder methods - public static class ApiBillSaveRequestDtoBuilder { + public static class BillSaveRequestDtoBuilder { private JsonNullable scheduleDate = JsonNullable.undefined(); @JsonProperty("scheduleDate") - public ApiBillSaveRequestDtoBuilder scheduleDate(String value) { + public BillSaveRequestDtoBuilder scheduleDate(String value) { this.scheduleDate = JsonNullable.of(value); return this; } @@ -129,7 +129,7 @@ public ApiBillSaveRequestDtoBuilder scheduleDate(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiBillSaveRequestDtoBuilder description(String value) { + public BillSaveRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -137,7 +137,7 @@ public ApiBillSaveRequestDtoBuilder description(String value) { private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiBillSaveRequestDtoBuilder discount(Double value) { + public BillSaveRequestDtoBuilder discount(Double value) { this.discount = JsonNullable.of(value); return this; } @@ -145,7 +145,7 @@ public ApiBillSaveRequestDtoBuilder discount(Double value) { private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiBillSaveRequestDtoBuilder interest(Double value) { + public BillSaveRequestDtoBuilder interest(Double value) { this.interest = JsonNullable.of(value); return this; } @@ -153,7 +153,7 @@ public ApiBillSaveRequestDtoBuilder interest(Double value) { private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiBillSaveRequestDtoBuilder fine(Double value) { + public BillSaveRequestDtoBuilder fine(Double value) { this.fine = JsonNullable.of(value); return this; } @@ -161,7 +161,7 @@ public ApiBillSaveRequestDtoBuilder fine(Double value) { private JsonNullable dueDate = JsonNullable.undefined(); @JsonProperty("dueDate") - public ApiBillSaveRequestDtoBuilder dueDate(String value) { + public BillSaveRequestDtoBuilder dueDate(String value) { this.dueDate = JsonNullable.of(value); return this; } @@ -169,7 +169,7 @@ public ApiBillSaveRequestDtoBuilder dueDate(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiBillSaveRequestDtoBuilder value(Double value) { + public BillSaveRequestDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -177,7 +177,7 @@ public ApiBillSaveRequestDtoBuilder value(Double value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiBillSaveRequestDtoBuilder externalReference(String value) { + public BillSaveRequestDtoBuilder 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/BillSimulateBankSlipInfoResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiBillSimulateBankSlipInfoResponseDto.java rename to src/main/java/com/asaas/apisdk/models/BillSimulateBankSlipInfoResponseDto.java index a627672..fe046b1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateBankSlipInfoResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/BillSimulateBankSlipInfoResponseDto.java @@ -12,13 +12,16 @@ 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 ApiBillSimulateBankSlipInfoResponseDto { +public class BillSimulateBankSlipInfoResponseDto { /** * Digitable line @@ -208,12 +211,12 @@ public Boolean getIsOverdue() { } // Overwrite lombok builder methods - public static class ApiBillSimulateBankSlipInfoResponseDtoBuilder { + public static class BillSimulateBankSlipInfoResponseDtoBuilder { private JsonNullable identificationField = JsonNullable.undefined(); @JsonProperty("identificationField") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder identificationField(String value) { + public BillSimulateBankSlipInfoResponseDtoBuilder identificationField(String value) { this.identificationField = JsonNullable.of(value); return this; } @@ -221,7 +224,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder identificationField(String private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder value(Double value) { + public BillSimulateBankSlipInfoResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -229,7 +232,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder value(Double value) { private JsonNullable dueDate = JsonNullable.undefined(); @JsonProperty("dueDate") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder dueDate(String value) { + public BillSimulateBankSlipInfoResponseDtoBuilder dueDate(String value) { this.dueDate = JsonNullable.of(value); return this; } @@ -237,7 +240,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder dueDate(String value) { private JsonNullable companyName = JsonNullable.undefined(); @JsonProperty("companyName") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder companyName(String value) { + public BillSimulateBankSlipInfoResponseDtoBuilder companyName(String value) { this.companyName = JsonNullable.of(value); return this; } @@ -245,7 +248,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder companyName(String value) { private JsonNullable bank = JsonNullable.undefined(); @JsonProperty("bank") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder bank(String value) { + public BillSimulateBankSlipInfoResponseDtoBuilder bank(String value) { this.bank = JsonNullable.of(value); return this; } @@ -253,7 +256,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder bank(String value) { private JsonNullable beneficiaryCpfCnpj = JsonNullable.undefined(); @JsonProperty("beneficiaryCpfCnpj") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder beneficiaryCpfCnpj(String value) { + public BillSimulateBankSlipInfoResponseDtoBuilder beneficiaryCpfCnpj(String value) { this.beneficiaryCpfCnpj = JsonNullable.of(value); return this; } @@ -261,7 +264,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder beneficiaryCpfCnpj(String v private JsonNullable beneficiaryName = JsonNullable.undefined(); @JsonProperty("beneficiaryName") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder beneficiaryName(String value) { + public BillSimulateBankSlipInfoResponseDtoBuilder beneficiaryName(String value) { this.beneficiaryName = JsonNullable.of(value); return this; } @@ -269,7 +272,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder beneficiaryName(String valu private JsonNullable allowChangeValue = JsonNullable.undefined(); @JsonProperty("allowChangeValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder allowChangeValue(Boolean value) { + public BillSimulateBankSlipInfoResponseDtoBuilder allowChangeValue(Boolean value) { this.allowChangeValue = JsonNullable.of(value); return this; } @@ -277,7 +280,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder allowChangeValue(Boolean va private JsonNullable minValue = JsonNullable.undefined(); @JsonProperty("minValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder minValue(Double value) { + public BillSimulateBankSlipInfoResponseDtoBuilder minValue(Double value) { this.minValue = JsonNullable.of(value); return this; } @@ -285,7 +288,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder minValue(Double value) { private JsonNullable maxValue = JsonNullable.undefined(); @JsonProperty("maxValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder maxValue(Double value) { + public BillSimulateBankSlipInfoResponseDtoBuilder maxValue(Double value) { this.maxValue = JsonNullable.of(value); return this; } @@ -293,7 +296,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder maxValue(Double value) { private JsonNullable discountValue = JsonNullable.undefined(); @JsonProperty("discountValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder discountValue(Double value) { + public BillSimulateBankSlipInfoResponseDtoBuilder discountValue(Double value) { this.discountValue = JsonNullable.of(value); return this; } @@ -301,7 +304,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder discountValue(Double value) private JsonNullable interestValue = JsonNullable.undefined(); @JsonProperty("interestValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder interestValue(Double value) { + public BillSimulateBankSlipInfoResponseDtoBuilder interestValue(Double value) { this.interestValue = JsonNullable.of(value); return this; } @@ -309,7 +312,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder interestValue(Double value) private JsonNullable fineValue = JsonNullable.undefined(); @JsonProperty("fineValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder fineValue(Double value) { + public BillSimulateBankSlipInfoResponseDtoBuilder fineValue(Double value) { this.fineValue = JsonNullable.of(value); return this; } @@ -317,7 +320,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder fineValue(Double value) { private JsonNullable originalValue = JsonNullable.undefined(); @JsonProperty("originalValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder originalValue(Double value) { + public BillSimulateBankSlipInfoResponseDtoBuilder originalValue(Double value) { this.originalValue = JsonNullable.of(value); return this; } @@ -325,7 +328,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder originalValue(Double value) private JsonNullable totalDiscountValue = JsonNullable.undefined(); @JsonProperty("totalDiscountValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder totalDiscountValue(Double value) { + public BillSimulateBankSlipInfoResponseDtoBuilder totalDiscountValue(Double value) { this.totalDiscountValue = JsonNullable.of(value); return this; } @@ -333,7 +336,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder totalDiscountValue(Double v private JsonNullable totalAdditionalValue = JsonNullable.undefined(); @JsonProperty("totalAdditionalValue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder totalAdditionalValue(Double value) { + public BillSimulateBankSlipInfoResponseDtoBuilder totalAdditionalValue(Double value) { this.totalAdditionalValue = JsonNullable.of(value); return this; } @@ -341,7 +344,7 @@ public ApiBillSimulateBankSlipInfoResponseDtoBuilder totalAdditionalValue(Double private JsonNullable isOverdue = JsonNullable.undefined(); @JsonProperty("isOverdue") - public ApiBillSimulateBankSlipInfoResponseDtoBuilder isOverdue(Boolean value) { + public BillSimulateBankSlipInfoResponseDtoBuilder 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/BillSimulateRequestDto.java similarity index 84% rename from src/main/java/com/asaas/apisdk/models/ApiBillSimulateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/BillSimulateRequestDto.java index f2d3065..5d6951d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/BillSimulateRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiBillSimulateRequestDto { +public class BillSimulateRequestDto { /** * Digitizable bill line @@ -43,12 +43,12 @@ public String getBarCode() { } // Overwrite lombok builder methods - public static class ApiBillSimulateRequestDtoBuilder { + public static class BillSimulateRequestDtoBuilder { private JsonNullable identificationField = JsonNullable.undefined(); @JsonProperty("identificationField") - public ApiBillSimulateRequestDtoBuilder identificationField(String value) { + public BillSimulateRequestDtoBuilder identificationField(String value) { this.identificationField = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiBillSimulateRequestDtoBuilder identificationField(String value) { private JsonNullable barCode = JsonNullable.undefined(); @JsonProperty("barCode") - public ApiBillSimulateRequestDtoBuilder barCode(String value) { + public BillSimulateRequestDtoBuilder 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/BillSimulateResponseDto.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiBillSimulateResponseDto.java rename to src/main/java/com/asaas/apisdk/models/BillSimulateResponseDto.java index 8107a32..3001798 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiBillSimulateResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/BillSimulateResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiBillSimulateResponseDto { +public class BillSimulateResponseDto { /** * Minimum date allowed for scheduling @@ -32,8 +32,11 @@ public class ApiBillSimulateResponseDto { @JsonProperty("fee") private JsonNullable fee; + /** + * Information about the bill to be paid + */ @JsonProperty("bankSlipInfo") - private JsonNullable bankSlipInfo; + private JsonNullable bankSlipInfo; @JsonIgnore public String getMinimumScheduleDate() { @@ -46,17 +49,17 @@ public Double getFee() { } @JsonIgnore - public ApiBillSimulateBankSlipInfoResponseDto getBankSlipInfo() { + public BillSimulateBankSlipInfoResponseDto getBankSlipInfo() { return bankSlipInfo.orElse(null); } // Overwrite lombok builder methods - public static class ApiBillSimulateResponseDtoBuilder { + public static class BillSimulateResponseDtoBuilder { private JsonNullable minimumScheduleDate = JsonNullable.undefined(); @JsonProperty("minimumScheduleDate") - public ApiBillSimulateResponseDtoBuilder minimumScheduleDate(String value) { + public BillSimulateResponseDtoBuilder minimumScheduleDate(String value) { this.minimumScheduleDate = JsonNullable.of(value); return this; } @@ -64,15 +67,15 @@ public ApiBillSimulateResponseDtoBuilder minimumScheduleDate(String value) { private JsonNullable fee = JsonNullable.undefined(); @JsonProperty("fee") - public ApiBillSimulateResponseDtoBuilder fee(Double value) { + public BillSimulateResponseDtoBuilder fee(Double value) { this.fee = JsonNullable.of(value); return this; } - private JsonNullable bankSlipInfo = JsonNullable.undefined(); + private JsonNullable bankSlipInfo = JsonNullable.undefined(); @JsonProperty("bankSlipInfo") - public ApiBillSimulateResponseDtoBuilder bankSlipInfo(ApiBillSimulateBankSlipInfoResponseDto value) { + 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/ApiChargebackCreditCardResponseCreditCardBrand.java b/src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseCreditCardBrand.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseCreditCardBrand.java rename to src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseCreditCardBrand.java index 3a345a7..36b7145 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseCreditCardBrand.java +++ b/src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseCreditCardBrand.java @@ -13,14 +13,13 @@ */ @Getter @AllArgsConstructor -public enum ApiChargebackCreditCardResponseCreditCardBrand { +public enum ChargebackCreditCardResponseCreditCardBrand { VISA("VISA"), MASTERCARD("MASTERCARD"), ELO("ELO"), DINERS("DINERS"), DISCOVER("DISCOVER"), AMEX("AMEX"), - HIPERCARD("HIPERCARD"), CABAL("CABAL"), BANESCARD("BANESCARD"), CREDZ("CREDZ"), @@ -33,8 +32,8 @@ public enum ApiChargebackCreditCardResponseCreditCardBrand { private final String value; @JsonCreator - public static ApiChargebackCreditCardResponseCreditCardBrand fromValue(String value) { - return Arrays.stream(ApiChargebackCreditCardResponseCreditCardBrand.values()) + 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/ApiChargebackCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseDto.java similarity index 65% rename from src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseDto.java rename to src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseDto.java index 6f80e29..5bfaff8 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackCreditCardResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ChargebackCreditCardResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Credit card information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiChargebackCreditCardResponseDto { +public class ChargebackCreditCardResponseDto { /** * Last 4 digits of the card used @@ -30,7 +33,7 @@ public class ApiChargebackCreditCardResponseDto { * Flag of the card used */ @JsonProperty("brand") - private JsonNullable brand; + private JsonNullable brand; @JsonIgnore public String getNumber() { @@ -38,25 +41,25 @@ public String getNumber() { } @JsonIgnore - public ApiChargebackCreditCardResponseCreditCardBrand getBrand() { + public ChargebackCreditCardResponseCreditCardBrand getBrand() { return brand.orElse(null); } // Overwrite lombok builder methods - public static class ApiChargebackCreditCardResponseDtoBuilder { + public static class ChargebackCreditCardResponseDtoBuilder { private JsonNullable number = JsonNullable.undefined(); @JsonProperty("number") - public ApiChargebackCreditCardResponseDtoBuilder number(String value) { + public ChargebackCreditCardResponseDtoBuilder number(String value) { this.number = JsonNullable.of(value); return this; } - private JsonNullable brand = JsonNullable.undefined(); + private JsonNullable brand = JsonNullable.undefined(); @JsonProperty("brand") - public ApiChargebackCreditCardResponseDtoBuilder brand(ApiChargebackCreditCardResponseCreditCardBrand value) { + public ChargebackCreditCardResponseDtoBuilder brand(ChargebackCreditCardResponseCreditCardBrand 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/ChargebackListRequestChargebackStatus.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestChargebackStatus.java rename to src/main/java/com/asaas/apisdk/models/ChargebackListRequestChargebackStatus.java index f986165..d7fb048 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestChargebackStatus.java +++ b/src/main/java/com/asaas/apisdk/models/ChargebackListRequestChargebackStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiChargebackListRequestChargebackStatus { +public enum ChargebackListRequestChargebackStatus { REQUESTED("REQUESTED"), IN_DISPUTE("IN_DISPUTE"), DISPUTE_LOST("DISPUTE_LOST"), @@ -24,8 +24,8 @@ public enum ApiChargebackListRequestChargebackStatus { private final String value; @JsonCreator - public static ApiChargebackListRequestChargebackStatus fromValue(String value) { - return Arrays.stream(ApiChargebackListRequestChargebackStatus.values()) + 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/ApiChargebackListRequestCreditCardBrand.java b/src/main/java/com/asaas/apisdk/models/ChargebackListRequestCreditCardBrand.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestCreditCardBrand.java rename to src/main/java/com/asaas/apisdk/models/ChargebackListRequestCreditCardBrand.java index 82e0ad3..70c48b8 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackListRequestCreditCardBrand.java +++ b/src/main/java/com/asaas/apisdk/models/ChargebackListRequestCreditCardBrand.java @@ -13,14 +13,13 @@ */ @Getter @AllArgsConstructor -public enum ApiChargebackListRequestCreditCardBrand { +public enum ChargebackListRequestCreditCardBrand { VISA("VISA"), MASTERCARD("MASTERCARD"), ELO("ELO"), DINERS("DINERS"), DISCOVER("DISCOVER"), AMEX("AMEX"), - HIPERCARD("HIPERCARD"), CABAL("CABAL"), BANESCARD("BANESCARD"), CREDZ("CREDZ"), @@ -33,8 +32,8 @@ public enum ApiChargebackListRequestCreditCardBrand { private final String value; @JsonCreator - public static ApiChargebackListRequestCreditCardBrand fromValue(String value) { - return Arrays.stream(ApiChargebackListRequestCreditCardBrand.values()) + 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/ApiInstallmentListResponseDto.java b/src/main/java/com/asaas/apisdk/models/ChargebackListResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/ChargebackListResponseDto.java index 44b1fe5..983718e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ChargebackListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiInstallmentListResponseDto { +public class ChargebackListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiInstallmentListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiInstallmentListResponseDtoBuilder { + public static class ChargebackListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiInstallmentListResponseDtoBuilder object(String value) { + public ChargebackListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiInstallmentListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiInstallmentListResponseDtoBuilder hasMore(Boolean value) { + public ChargebackListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiInstallmentListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiInstallmentListResponseDtoBuilder totalCount(Long value) { + public ChargebackListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiInstallmentListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiInstallmentListResponseDtoBuilder limit(Long value) { + public ChargebackListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiInstallmentListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiInstallmentListResponseDtoBuilder offset(Long value) { + public ChargebackListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiInstallmentListResponseDtoBuilder data(List value) { + public ChargebackListResponseDtoBuilder 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/ChargebackSaveDisputeRequestDto.java similarity index 89% rename from src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeRequestDto.java rename to src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeRequestDto.java index c83024f..c8523f7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeRequestDto.java @@ -16,7 +16,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiChargebackSaveDisputeRequestDto { +public class ChargebackSaveDisputeRequestDto { /** * Files to create the dispute (Maximum: 11). diff --git a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.java b/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.java rename to src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.java index 4b4ac51..f60d78f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseChargebackDisputeStatus.java +++ b/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseChargebackDisputeStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiChargebackSaveDisputeResponseChargebackDisputeStatus { +public enum ChargebackSaveDisputeResponseChargebackDisputeStatus { REQUESTED("REQUESTED"), ACCEPTED("ACCEPTED"), REJECTED("REJECTED"); @@ -22,8 +22,8 @@ public enum ApiChargebackSaveDisputeResponseChargebackDisputeStatus { private final String value; @JsonCreator - public static ApiChargebackSaveDisputeResponseChargebackDisputeStatus fromValue(String value) { - return Arrays.stream(ApiChargebackSaveDisputeResponseChargebackDisputeStatus.values()) + 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/ApiChargebackSaveDisputeResponseDto.java b/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseDto.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseDto.java rename to src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseDto.java index d8efae9..fc389d1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackSaveDisputeResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ChargebackSaveDisputeResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiChargebackSaveDisputeResponseDto { +public class ChargebackSaveDisputeResponseDto { /** * Unique identifier of chargeback for which the dispute will be created. @@ -31,7 +31,7 @@ public class ApiChargebackSaveDisputeResponseDto { * Dispute status. */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Names of the dispute files. @@ -45,7 +45,7 @@ public String getChargebackId() { } @JsonIgnore - public ApiChargebackSaveDisputeResponseChargebackDisputeStatus getStatus() { + public ChargebackSaveDisputeResponseChargebackDisputeStatus getStatus() { return status.orElse(null); } @@ -55,22 +55,20 @@ public List getFiles() { } // Overwrite lombok builder methods - public static class ApiChargebackSaveDisputeResponseDtoBuilder { + public static class ChargebackSaveDisputeResponseDtoBuilder { private JsonNullable chargebackId = JsonNullable.undefined(); @JsonProperty("chargebackId") - public ApiChargebackSaveDisputeResponseDtoBuilder chargebackId(String value) { + public ChargebackSaveDisputeResponseDtoBuilder chargebackId(String value) { this.chargebackId = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiChargebackSaveDisputeResponseDtoBuilder status( - ApiChargebackSaveDisputeResponseChargebackDisputeStatus value - ) { + public ChargebackSaveDisputeResponseDtoBuilder status(ChargebackSaveDisputeResponseChargebackDisputeStatus value) { this.status = JsonNullable.of(value); return this; } @@ -78,7 +76,7 @@ public ApiChargebackSaveDisputeResponseDtoBuilder status( private JsonNullable> files = JsonNullable.undefined(); @JsonProperty("files") - public ApiChargebackSaveDisputeResponseDtoBuilder files(List value) { + public ChargebackSaveDisputeResponseDtoBuilder 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/CheckoutSessionCallbackDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCallbackDto.java rename to src/main/java/com/asaas/apisdk/models/CheckoutSessionCallbackDto.java index 22726ab..30fa7f5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCallbackDto.java +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionCallbackDto.java @@ -10,13 +10,16 @@ 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 ApiCheckoutSessionCallbackDto { +public class CheckoutSessionCallbackDto { /** * Redirect URL for successful checkout diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCustomerDataDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionCustomerDataDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCustomerDataDto.java rename to src/main/java/com/asaas/apisdk/models/CheckoutSessionCustomerDataDto.java index c37ecc6..534c944 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionCustomerDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionCustomerDataDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Customer data + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiCheckoutSessionCustomerDataDto { +public class CheckoutSessionCustomerDataDto { /** * Customer name @@ -131,12 +134,12 @@ public Long getCity() { } // Overwrite lombok builder methods - public static class ApiCheckoutSessionCustomerDataDtoBuilder { + public static class CheckoutSessionCustomerDataDtoBuilder { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiCheckoutSessionCustomerDataDtoBuilder name(String value) { + public CheckoutSessionCustomerDataDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -144,7 +147,7 @@ public ApiCheckoutSessionCustomerDataDtoBuilder name(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiCheckoutSessionCustomerDataDtoBuilder cpfCnpj(String value) { + public CheckoutSessionCustomerDataDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } @@ -152,7 +155,7 @@ public ApiCheckoutSessionCustomerDataDtoBuilder cpfCnpj(String value) { private JsonNullable email = JsonNullable.undefined(); @JsonProperty("email") - public ApiCheckoutSessionCustomerDataDtoBuilder email(String value) { + public CheckoutSessionCustomerDataDtoBuilder email(String value) { this.email = JsonNullable.of(value); return this; } @@ -160,7 +163,7 @@ public ApiCheckoutSessionCustomerDataDtoBuilder email(String value) { private JsonNullable phone = JsonNullable.undefined(); @JsonProperty("phone") - public ApiCheckoutSessionCustomerDataDtoBuilder phone(String value) { + public CheckoutSessionCustomerDataDtoBuilder phone(String value) { this.phone = JsonNullable.of(value); return this; } @@ -168,7 +171,7 @@ public ApiCheckoutSessionCustomerDataDtoBuilder phone(String value) { private JsonNullable address = JsonNullable.undefined(); @JsonProperty("address") - public ApiCheckoutSessionCustomerDataDtoBuilder address(String value) { + public CheckoutSessionCustomerDataDtoBuilder address(String value) { this.address = JsonNullable.of(value); return this; } @@ -176,7 +179,7 @@ public ApiCheckoutSessionCustomerDataDtoBuilder address(String value) { private JsonNullable addressNumber = JsonNullable.undefined(); @JsonProperty("addressNumber") - public ApiCheckoutSessionCustomerDataDtoBuilder addressNumber(Long value) { + public CheckoutSessionCustomerDataDtoBuilder addressNumber(Long value) { this.addressNumber = JsonNullable.of(value); return this; } @@ -184,7 +187,7 @@ public ApiCheckoutSessionCustomerDataDtoBuilder addressNumber(Long value) { private JsonNullable complement = JsonNullable.undefined(); @JsonProperty("complement") - public ApiCheckoutSessionCustomerDataDtoBuilder complement(String value) { + public CheckoutSessionCustomerDataDtoBuilder complement(String value) { this.complement = JsonNullable.of(value); return this; } @@ -192,7 +195,7 @@ public ApiCheckoutSessionCustomerDataDtoBuilder complement(String value) { private JsonNullable province = JsonNullable.undefined(); @JsonProperty("province") - public ApiCheckoutSessionCustomerDataDtoBuilder province(String value) { + public CheckoutSessionCustomerDataDtoBuilder province(String value) { this.province = JsonNullable.of(value); return this; } @@ -200,7 +203,7 @@ public ApiCheckoutSessionCustomerDataDtoBuilder province(String value) { private JsonNullable postalCode = JsonNullable.undefined(); @JsonProperty("postalCode") - public ApiCheckoutSessionCustomerDataDtoBuilder postalCode(String value) { + public CheckoutSessionCustomerDataDtoBuilder postalCode(String value) { this.postalCode = JsonNullable.of(value); return this; } @@ -208,7 +211,7 @@ public ApiCheckoutSessionCustomerDataDtoBuilder postalCode(String value) { private JsonNullable city = JsonNullable.undefined(); @JsonProperty("city") - public ApiCheckoutSessionCustomerDataDtoBuilder city(Long value) { + public CheckoutSessionCustomerDataDtoBuilder 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/CheckoutSessionInstallmentDto.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionInstallmentDto.java rename to src/main/java/com/asaas/apisdk/models/CheckoutSessionInstallmentDto.java index 1aa3e57..1fd1a05 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionInstallmentDto.java +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionInstallmentDto.java @@ -12,13 +12,16 @@ 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 ApiCheckoutSessionInstallmentDto { +public class CheckoutSessionInstallmentDto { /** * Maximum number of installments @@ -32,12 +35,12 @@ public Long getMaxInstallmentCount() { } // Overwrite lombok builder methods - public static class ApiCheckoutSessionInstallmentDtoBuilder { + public static class CheckoutSessionInstallmentDtoBuilder { private JsonNullable maxInstallmentCount = JsonNullable.undefined(); @JsonProperty("maxInstallmentCount") - public ApiCheckoutSessionInstallmentDtoBuilder maxInstallmentCount(Long value) { + public CheckoutSessionInstallmentDtoBuilder 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/CheckoutSessionItemsDto.java similarity index 85% rename from src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionItemsDto.java rename to src/main/java/com/asaas/apisdk/models/CheckoutSessionItemsDto.java index 44108b1..8ba907b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionItemsDto.java +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionItemsDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of items at checkout + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiCheckoutSessionItemsDto { +public class CheckoutSessionItemsDto { /** * Item image in Base64 @@ -57,12 +60,12 @@ public String getDescription() { } // Overwrite lombok builder methods - public static class ApiCheckoutSessionItemsDtoBuilder { + public static class CheckoutSessionItemsDtoBuilder { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiCheckoutSessionItemsDtoBuilder description(String value) { + 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/ApiCheckoutSessionSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestDto.java similarity index 53% rename from src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestDto.java index 1c10ff5..58b376c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSaveRequestDto.java @@ -21,28 +21,31 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCheckoutSessionSaveRequestDto { +public class CheckoutSessionSaveRequestDto { /** * Payment methods */ @NonNull - private List billingTypes; + private List billingTypes; /** * Charge types */ @NonNull - private List chargeTypes; + private List chargeTypes; + /** + * Automatic redirection information after payment on the checkout screen + */ @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCheckoutSessionCallbackDto callback; + private CheckoutSessionCallbackDto callback; /** * List of items at checkout */ @NonNull - private List items; + private List items; /** * Time in minutes for checkout expiration @@ -50,20 +53,29 @@ public class ApiCheckoutSessionSaveRequestDto { @JsonProperty("minutesToExpire") private JsonNullable minutesToExpire; + /** + * Customer data + */ @JsonProperty("customerData") - private JsonNullable customerData; + private JsonNullable customerData; + /** + * Subscription details, required if chargeTypes includes `RECURRENT` + */ @JsonProperty("subscription") - private JsonNullable subscription; + private JsonNullable subscription; + /** + * Installment details. If informed, it will be mandatory to include the `INSTALLMENT` chargeType + */ @JsonProperty("installment") - private JsonNullable installment; + private JsonNullable installment; /** * Split Settings */ @JsonProperty("splits") - private JsonNullable> splits; + private JsonNullable> splits; @JsonIgnore public Long getMinutesToExpire() { @@ -71,34 +83,34 @@ public Long getMinutesToExpire() { } @JsonIgnore - public ApiCheckoutSessionCustomerDataDto getCustomerData() { + public CheckoutSessionCustomerDataDto getCustomerData() { return customerData.orElse(null); } @JsonIgnore - public ApiCheckoutSessionSubscriptionDto getSubscription() { + public CheckoutSessionSubscriptionDto getSubscription() { return subscription.orElse(null); } @JsonIgnore - public ApiCheckoutSessionInstallmentDto getInstallment() { + public CheckoutSessionInstallmentDto getInstallment() { return installment.orElse(null); } @JsonIgnore - public List getSplits() { + public List getSplits() { return splits.orElse(null); } // Overwrite lombok builder methods - public static class ApiCheckoutSessionSaveRequestDtoBuilder { + public static class CheckoutSessionSaveRequestDtoBuilder { /** * Flag to track if the callback property has been set. */ private boolean callback$set = false; - public ApiCheckoutSessionSaveRequestDtoBuilder callback(ApiCheckoutSessionCallbackDto callback) { + public CheckoutSessionSaveRequestDtoBuilder callback(CheckoutSessionCallbackDto callback) { this.callback$set = true; this.callback = callback; return this; @@ -107,48 +119,48 @@ public ApiCheckoutSessionSaveRequestDtoBuilder callback(ApiCheckoutSessionCallba private JsonNullable minutesToExpire = JsonNullable.undefined(); @JsonProperty("minutesToExpire") - public ApiCheckoutSessionSaveRequestDtoBuilder minutesToExpire(Long value) { + public CheckoutSessionSaveRequestDtoBuilder minutesToExpire(Long value) { this.minutesToExpire = JsonNullable.of(value); return this; } - private JsonNullable customerData = JsonNullable.undefined(); + private JsonNullable customerData = JsonNullable.undefined(); @JsonProperty("customerData") - public ApiCheckoutSessionSaveRequestDtoBuilder customerData(ApiCheckoutSessionCustomerDataDto value) { + public CheckoutSessionSaveRequestDtoBuilder customerData(CheckoutSessionCustomerDataDto value) { this.customerData = JsonNullable.of(value); return this; } - private JsonNullable subscription = JsonNullable.undefined(); + private JsonNullable subscription = JsonNullable.undefined(); @JsonProperty("subscription") - public ApiCheckoutSessionSaveRequestDtoBuilder subscription(ApiCheckoutSessionSubscriptionDto value) { + public CheckoutSessionSaveRequestDtoBuilder subscription(CheckoutSessionSubscriptionDto value) { this.subscription = JsonNullable.of(value); return this; } - private JsonNullable installment = JsonNullable.undefined(); + private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiCheckoutSessionSaveRequestDtoBuilder installment(ApiCheckoutSessionInstallmentDto value) { + public CheckoutSessionSaveRequestDtoBuilder installment(CheckoutSessionInstallmentDto value) { this.installment = JsonNullable.of(value); return this; } - private JsonNullable> splits = JsonNullable.undefined(); + private JsonNullable> splits = JsonNullable.undefined(); @JsonProperty("splits") - public ApiCheckoutSessionSaveRequestDtoBuilder splits(List value) { + public CheckoutSessionSaveRequestDtoBuilder splits(List value) { this.splits = JsonNullable.of(value); return this; } - public ApiCheckoutSessionSaveRequestDto build() { + public CheckoutSessionSaveRequestDto build() { if (!callback$set) { throw new IllegalStateException("callback is required"); } - return new ApiCheckoutSessionSaveRequestDto( + return new CheckoutSessionSaveRequestDto( billingTypes, chargeTypes, callback, diff --git a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSplitDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSplitDto.java similarity index 85% rename from src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSplitDto.java rename to src/main/java/com/asaas/apisdk/models/CheckoutSessionSplitDto.java index 465c790..c9201eb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSplitDto.java +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSplitDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Split Settings + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiCheckoutSessionSplitDto { +public class CheckoutSessionSplitDto { /** * Asaas wallet identifier that will receive the transfer @@ -61,12 +64,12 @@ public Double getTotalFixedValue() { } // Overwrite lombok builder methods - public static class ApiCheckoutSessionSplitDtoBuilder { + public static class CheckoutSessionSplitDtoBuilder { private JsonNullable fixedValue = JsonNullable.undefined(); @JsonProperty("fixedValue") - public ApiCheckoutSessionSplitDtoBuilder fixedValue(Double value) { + public CheckoutSessionSplitDtoBuilder fixedValue(Double value) { this.fixedValue = JsonNullable.of(value); return this; } @@ -74,7 +77,7 @@ public ApiCheckoutSessionSplitDtoBuilder fixedValue(Double value) { private JsonNullable percentageValue = JsonNullable.undefined(); @JsonProperty("percentageValue") - public ApiCheckoutSessionSplitDtoBuilder percentageValue(Double value) { + public CheckoutSessionSplitDtoBuilder percentageValue(Double value) { this.percentageValue = JsonNullable.of(value); return this; } @@ -82,7 +85,7 @@ public ApiCheckoutSessionSplitDtoBuilder percentageValue(Double value) { private JsonNullable totalFixedValue = JsonNullable.undefined(); @JsonProperty("totalFixedValue") - public ApiCheckoutSessionSplitDtoBuilder totalFixedValue(Double value) { + public CheckoutSessionSplitDtoBuilder totalFixedValue(Double value) { this.totalFixedValue = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestCycle.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionCycle.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestCycle.java rename to src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionCycle.java index 075c087..94665ef 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestCycle.java +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionCycle.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionUpdateRequestCycle { +public enum CheckoutSessionSubscriptionCycle { WEEKLY("WEEKLY"), BIWEEKLY("BIWEEKLY"), MONTHLY("MONTHLY"), @@ -26,8 +26,8 @@ public enum ApiSubscriptionUpdateRequestCycle { private final String value; @JsonCreator - public static ApiSubscriptionUpdateRequestCycle fromValue(String value) { - return Arrays.stream(ApiSubscriptionUpdateRequestCycle.values()) + 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/ApiCheckoutSessionSubscriptionDto.java b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionDto.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionDto.java rename to src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionDto.java index bc7bd2e..c4b0ce6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionDto.java +++ b/src/main/java/com/asaas/apisdk/models/CheckoutSessionSubscriptionDto.java @@ -12,19 +12,22 @@ 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 ApiCheckoutSessionSubscriptionDto { +public class CheckoutSessionSubscriptionDto { /** * Billing frequency */ @JsonProperty("cycle") - private JsonNullable cycle; + private JsonNullable cycle; /** * Deadline for payments to be due @@ -39,7 +42,7 @@ public class ApiCheckoutSessionSubscriptionDto { private JsonNullable nextDueDate; @JsonIgnore - public ApiCheckoutSessionSubscriptionCycle getCycle() { + public CheckoutSessionSubscriptionCycle getCycle() { return cycle.orElse(null); } @@ -54,12 +57,12 @@ public String getNextDueDate() { } // Overwrite lombok builder methods - public static class ApiCheckoutSessionSubscriptionDtoBuilder { + public static class CheckoutSessionSubscriptionDtoBuilder { - private JsonNullable cycle = JsonNullable.undefined(); + private JsonNullable cycle = JsonNullable.undefined(); @JsonProperty("cycle") - public ApiCheckoutSessionSubscriptionDtoBuilder cycle(ApiCheckoutSessionSubscriptionCycle value) { + public CheckoutSessionSubscriptionDtoBuilder cycle(CheckoutSessionSubscriptionCycle value) { this.cycle = JsonNullable.of(value); return this; } @@ -67,7 +70,7 @@ public ApiCheckoutSessionSubscriptionDtoBuilder cycle(ApiCheckoutSessionSubscrip private JsonNullable endDate = JsonNullable.undefined(); @JsonProperty("endDate") - public ApiCheckoutSessionSubscriptionDtoBuilder endDate(String value) { + public CheckoutSessionSubscriptionDtoBuilder endDate(String value) { this.endDate = JsonNullable.of(value); return this; } @@ -75,7 +78,7 @@ public ApiCheckoutSessionSubscriptionDtoBuilder endDate(String value) { private JsonNullable nextDueDate = JsonNullable.undefined(); @JsonProperty("nextDueDate") - public ApiCheckoutSessionSubscriptionDtoBuilder nextDueDate(String value) { + public CheckoutSessionSubscriptionDtoBuilder 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/CreditBureauReportGetResponseDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/CreditBureauReportGetResponseDto.java index e2962ae..6feb6be 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/CreditBureauReportGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCreditBureauReportGetResponseDto { +public class CreditBureauReportGetResponseDto { /** * Unique report identifier in Asaas @@ -87,12 +87,12 @@ public String getReportFile() { } // Overwrite lombok builder methods - public static class ApiCreditBureauReportGetResponseDtoBuilder { + public static class CreditBureauReportGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiCreditBureauReportGetResponseDtoBuilder id(String value) { + public CreditBureauReportGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -100,7 +100,7 @@ public ApiCreditBureauReportGetResponseDtoBuilder id(String value) { private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiCreditBureauReportGetResponseDtoBuilder dateCreated(String value) { + public CreditBureauReportGetResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -108,7 +108,7 @@ public ApiCreditBureauReportGetResponseDtoBuilder dateCreated(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiCreditBureauReportGetResponseDtoBuilder cpfCnpj(String value) { + public CreditBureauReportGetResponseDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } @@ -116,7 +116,7 @@ public ApiCreditBureauReportGetResponseDtoBuilder cpfCnpj(String value) { private JsonNullable customer = JsonNullable.undefined(); @JsonProperty("customer") - public ApiCreditBureauReportGetResponseDtoBuilder customer(String value) { + public CreditBureauReportGetResponseDtoBuilder customer(String value) { this.customer = JsonNullable.of(value); return this; } @@ -124,7 +124,7 @@ public ApiCreditBureauReportGetResponseDtoBuilder customer(String value) { private JsonNullable downloadUrl = JsonNullable.undefined(); @JsonProperty("downloadUrl") - public ApiCreditBureauReportGetResponseDtoBuilder downloadUrl(String value) { + public CreditBureauReportGetResponseDtoBuilder downloadUrl(String value) { this.downloadUrl = JsonNullable.of(value); return this; } @@ -132,7 +132,7 @@ public ApiCreditBureauReportGetResponseDtoBuilder downloadUrl(String value) { private JsonNullable reportFile = JsonNullable.undefined(); @JsonProperty("reportFile") - public ApiCreditBureauReportGetResponseDtoBuilder reportFile(String value) { + public CreditBureauReportGetResponseDtoBuilder reportFile(String value) { this.reportFile = 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/CreditBureauReportListResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/CreditBureauReportListResponseDto.java index 5b975a5..bdac658 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/CreditBureauReportListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentCampaignListResponseDto { +public class CreditBureauReportListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiPaymentCampaignListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentCampaignListResponseDtoBuilder { + public static class CreditBureauReportListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPaymentCampaignListResponseDtoBuilder object(String value) { + public CreditBureauReportListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiPaymentCampaignListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiPaymentCampaignListResponseDtoBuilder hasMore(Boolean value) { + public CreditBureauReportListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiPaymentCampaignListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiPaymentCampaignListResponseDtoBuilder totalCount(Long value) { + public CreditBureauReportListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiPaymentCampaignListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiPaymentCampaignListResponseDtoBuilder limit(Long value) { + public CreditBureauReportListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiPaymentCampaignListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiPaymentCampaignListResponseDtoBuilder offset(Long value) { + public CreditBureauReportListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiPaymentCampaignListResponseDtoBuilder data(List value) { + public CreditBureauReportListResponseDtoBuilder 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/CreditBureauReportSaveRequestDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/CreditBureauReportSaveRequestDto.java index 4f6645f..f664738 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/CreditBureauReportSaveRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCreditBureauReportSaveRequestDto { +public class CreditBureauReportSaveRequestDto { /** * Unique customer identifier in Asaas @@ -43,12 +43,12 @@ public String getCpfCnpj() { } // Overwrite lombok builder methods - public static class ApiCreditBureauReportSaveRequestDtoBuilder { + public static class CreditBureauReportSaveRequestDtoBuilder { private JsonNullable customer = JsonNullable.undefined(); @JsonProperty("customer") - public ApiCreditBureauReportSaveRequestDtoBuilder customer(String value) { + public CreditBureauReportSaveRequestDtoBuilder customer(String value) { this.customer = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiCreditBureauReportSaveRequestDtoBuilder customer(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiCreditBureauReportSaveRequestDtoBuilder cpfCnpj(String value) { + public CreditBureauReportSaveRequestDtoBuilder 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/CreditCardHolderInfoRequestDto.java similarity index 85% rename from src/main/java/com/asaas/apisdk/models/ApiCreditCardHolderInfoRequestDto.java rename to src/main/java/com/asaas/apisdk/models/CreditCardHolderInfoRequestDto.java index ec82151..7fdaf07 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardHolderInfoRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/CreditCardHolderInfoRequestDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Credit card holder information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiCreditCardHolderInfoRequestDto { +public class CreditCardHolderInfoRequestDto { /** * Name of card holder @@ -80,12 +83,12 @@ public String getMobilePhone() { } // Overwrite lombok builder methods - public static class ApiCreditCardHolderInfoRequestDtoBuilder { + public static class CreditCardHolderInfoRequestDtoBuilder { private JsonNullable addressComplement = JsonNullable.undefined(); @JsonProperty("addressComplement") - public ApiCreditCardHolderInfoRequestDtoBuilder addressComplement(String value) { + public CreditCardHolderInfoRequestDtoBuilder addressComplement(String value) { this.addressComplement = JsonNullable.of(value); return this; } @@ -93,7 +96,7 @@ public ApiCreditCardHolderInfoRequestDtoBuilder addressComplement(String value) private JsonNullable mobilePhone = JsonNullable.undefined(); @JsonProperty("mobilePhone") - public ApiCreditCardHolderInfoRequestDtoBuilder mobilePhone(String value) { + public CreditCardHolderInfoRequestDtoBuilder 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/CreditCardRequestDto.java similarity index 91% rename from src/main/java/com/asaas/apisdk/models/ApiCreditCardRequestDto.java rename to src/main/java/com/asaas/apisdk/models/CreditCardRequestDto.java index 1a8534a..149ae46 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/CreditCardRequestDto.java @@ -10,13 +10,16 @@ import lombok.With; import lombok.extern.jackson.Jacksonized; +/** + * Credit card information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiCreditCardRequestDto { +public class CreditCardRequestDto { /** * Name printed on card 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/ApiCreditCardTokenizeResponseCreditCardBrand.java b/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseCreditCardBrand.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseCreditCardBrand.java rename to src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseCreditCardBrand.java index cf192fb..5673e54 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseCreditCardBrand.java +++ b/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseCreditCardBrand.java @@ -13,14 +13,13 @@ */ @Getter @AllArgsConstructor -public enum ApiCreditCardTokenizeResponseCreditCardBrand { +public enum CreditCardTokenizeResponseCreditCardBrand { VISA("VISA"), MASTERCARD("MASTERCARD"), ELO("ELO"), DINERS("DINERS"), DISCOVER("DISCOVER"), AMEX("AMEX"), - HIPERCARD("HIPERCARD"), CABAL("CABAL"), BANESCARD("BANESCARD"), CREDZ("CREDZ"), @@ -33,8 +32,8 @@ public enum ApiCreditCardTokenizeResponseCreditCardBrand { private final String value; @JsonCreator - public static ApiCreditCardTokenizeResponseCreditCardBrand fromValue(String value) { - return Arrays.stream(ApiCreditCardTokenizeResponseCreditCardBrand.values()) + 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/ApiCreditCardTokenizeResponseDto.java b/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseDto.java similarity index 71% rename from src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseDto.java rename to src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseDto.java index 7987b1e..e97a8ef 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditCardTokenizeResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/CreditCardTokenizeResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCreditCardTokenizeResponseDto { +public class CreditCardTokenizeResponseDto { /** * Last 4 digits of the card used @@ -30,7 +30,7 @@ public class ApiCreditCardTokenizeResponseDto { * Brand of the card used */ @JsonProperty("creditCardBrand") - private JsonNullable creditCardBrand; + private JsonNullable creditCardBrand; /** * Credit card token that can be sent in future transactions without the need to re-enter card and cardholder details. @@ -44,7 +44,7 @@ public String getCreditCardNumber() { } @JsonIgnore - public ApiCreditCardTokenizeResponseCreditCardBrand getCreditCardBrand() { + public CreditCardTokenizeResponseCreditCardBrand getCreditCardBrand() { return creditCardBrand.orElse(null); } @@ -54,20 +54,20 @@ public String getCreditCardToken() { } // Overwrite lombok builder methods - public static class ApiCreditCardTokenizeResponseDtoBuilder { + public static class CreditCardTokenizeResponseDtoBuilder { private JsonNullable creditCardNumber = JsonNullable.undefined(); @JsonProperty("creditCardNumber") - public ApiCreditCardTokenizeResponseDtoBuilder creditCardNumber(String value) { + public CreditCardTokenizeResponseDtoBuilder creditCardNumber(String value) { this.creditCardNumber = JsonNullable.of(value); return this; } - private JsonNullable creditCardBrand = JsonNullable.undefined(); + private JsonNullable creditCardBrand = JsonNullable.undefined(); @JsonProperty("creditCardBrand") - public ApiCreditCardTokenizeResponseDtoBuilder creditCardBrand(ApiCreditCardTokenizeResponseCreditCardBrand value) { + public CreditCardTokenizeResponseDtoBuilder creditCardBrand(CreditCardTokenizeResponseCreditCardBrand value) { this.creditCardBrand = JsonNullable.of(value); return this; } @@ -75,7 +75,7 @@ public ApiCreditCardTokenizeResponseDtoBuilder creditCardBrand(ApiCreditCardToke private JsonNullable creditCardToken = JsonNullable.undefined(); @JsonProperty("creditCardToken") - public ApiCreditCardTokenizeResponseDtoBuilder creditCardToken(String value) { + public CreditCardTokenizeResponseDtoBuilder 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/CustomerDeleteResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerAccountDeleteResponseDto.java rename to src/main/java/com/asaas/apisdk/models/CustomerDeleteResponseDto.java index 62a2627..2aac68e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/CustomerDeleteResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerAccountDeleteResponseDto { +public class CustomerDeleteResponseDto { /** * Indicates whether the client has been removed @@ -43,12 +43,12 @@ public String getId() { } // Overwrite lombok builder methods - public static class ApiCustomerAccountDeleteResponseDtoBuilder { + public static class CustomerDeleteResponseDtoBuilder { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiCustomerAccountDeleteResponseDtoBuilder deleted(Boolean value) { + public CustomerDeleteResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiCustomerAccountDeleteResponseDtoBuilder deleted(Boolean value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiCustomerAccountDeleteResponseDtoBuilder id(String value) { + public CustomerDeleteResponseDtoBuilder 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/CustomerGetResponseDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/CustomerGetResponseDto.java index d517142..f592c72 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/CustomerGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerAccountGetResponseDto { +public class CustomerGetResponseDto { /** * Object type @@ -90,7 +90,7 @@ public class ApiCustomerAccountGetResponseDto { * Unique city identifier in Asaas */ @JsonProperty("city") - private JsonNullable city; + private JsonNullable city; /** * City of customer address @@ -126,7 +126,7 @@ public class ApiCustomerAccountGetResponseDto { * Kind of person */ @JsonProperty("personType") - private JsonNullable personType; + private JsonNullable personType; /** * Indicates whether it is a deleted client @@ -220,7 +220,7 @@ public String getProvince() { } @JsonIgnore - public String getCity() { + public Long getCity() { return city.orElse(null); } @@ -250,7 +250,7 @@ public String getCpfCnpj() { } @JsonIgnore - public ApiCustomerAccountGetResponsePersonType getPersonType() { + public CustomerGetResponsePersonType getPersonType() { return personType.orElse(null); } @@ -285,12 +285,12 @@ public Boolean getForeignCustomer() { } // Overwrite lombok builder methods - public static class ApiCustomerAccountGetResponseDtoBuilder { + public static class CustomerGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiCustomerAccountGetResponseDtoBuilder object(String value) { + public CustomerGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -298,7 +298,7 @@ public ApiCustomerAccountGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiCustomerAccountGetResponseDtoBuilder id(String value) { + public CustomerGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -306,7 +306,7 @@ public ApiCustomerAccountGetResponseDtoBuilder id(String value) { private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiCustomerAccountGetResponseDtoBuilder dateCreated(String value) { + public CustomerGetResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -314,7 +314,7 @@ public ApiCustomerAccountGetResponseDtoBuilder dateCreated(String value) { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiCustomerAccountGetResponseDtoBuilder name(String value) { + public CustomerGetResponseDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -322,7 +322,7 @@ public ApiCustomerAccountGetResponseDtoBuilder name(String value) { private JsonNullable email = JsonNullable.undefined(); @JsonProperty("email") - public ApiCustomerAccountGetResponseDtoBuilder email(String value) { + public CustomerGetResponseDtoBuilder email(String value) { this.email = JsonNullable.of(value); return this; } @@ -330,7 +330,7 @@ public ApiCustomerAccountGetResponseDtoBuilder email(String value) { private JsonNullable phone = JsonNullable.undefined(); @JsonProperty("phone") - public ApiCustomerAccountGetResponseDtoBuilder phone(String value) { + public CustomerGetResponseDtoBuilder phone(String value) { this.phone = JsonNullable.of(value); return this; } @@ -338,7 +338,7 @@ public ApiCustomerAccountGetResponseDtoBuilder phone(String value) { private JsonNullable mobilePhone = JsonNullable.undefined(); @JsonProperty("mobilePhone") - public ApiCustomerAccountGetResponseDtoBuilder mobilePhone(String value) { + public CustomerGetResponseDtoBuilder mobilePhone(String value) { this.mobilePhone = JsonNullable.of(value); return this; } @@ -346,7 +346,7 @@ public ApiCustomerAccountGetResponseDtoBuilder mobilePhone(String value) { private JsonNullable address = JsonNullable.undefined(); @JsonProperty("address") - public ApiCustomerAccountGetResponseDtoBuilder address(String value) { + public CustomerGetResponseDtoBuilder address(String value) { this.address = JsonNullable.of(value); return this; } @@ -354,7 +354,7 @@ public ApiCustomerAccountGetResponseDtoBuilder address(String value) { private JsonNullable addressNumber = JsonNullable.undefined(); @JsonProperty("addressNumber") - public ApiCustomerAccountGetResponseDtoBuilder addressNumber(String value) { + public CustomerGetResponseDtoBuilder addressNumber(String value) { this.addressNumber = JsonNullable.of(value); return this; } @@ -362,7 +362,7 @@ public ApiCustomerAccountGetResponseDtoBuilder addressNumber(String value) { private JsonNullable complement = JsonNullable.undefined(); @JsonProperty("complement") - public ApiCustomerAccountGetResponseDtoBuilder complement(String value) { + public CustomerGetResponseDtoBuilder complement(String value) { this.complement = JsonNullable.of(value); return this; } @@ -370,15 +370,15 @@ public ApiCustomerAccountGetResponseDtoBuilder complement(String value) { private JsonNullable province = JsonNullable.undefined(); @JsonProperty("province") - public ApiCustomerAccountGetResponseDtoBuilder province(String value) { + public CustomerGetResponseDtoBuilder province(String value) { this.province = JsonNullable.of(value); return this; } - private JsonNullable city = JsonNullable.undefined(); + private JsonNullable city = JsonNullable.undefined(); @JsonProperty("city") - public ApiCustomerAccountGetResponseDtoBuilder city(String value) { + public CustomerGetResponseDtoBuilder city(Long value) { this.city = JsonNullable.of(value); return this; } @@ -386,7 +386,7 @@ public ApiCustomerAccountGetResponseDtoBuilder city(String value) { private JsonNullable cityName = JsonNullable.undefined(); @JsonProperty("cityName") - public ApiCustomerAccountGetResponseDtoBuilder cityName(String value) { + public CustomerGetResponseDtoBuilder cityName(String value) { this.cityName = JsonNullable.of(value); return this; } @@ -394,7 +394,7 @@ public ApiCustomerAccountGetResponseDtoBuilder cityName(String value) { private JsonNullable state = JsonNullable.undefined(); @JsonProperty("state") - public ApiCustomerAccountGetResponseDtoBuilder state(String value) { + public CustomerGetResponseDtoBuilder state(String value) { this.state = JsonNullable.of(value); return this; } @@ -402,7 +402,7 @@ public ApiCustomerAccountGetResponseDtoBuilder state(String value) { private JsonNullable country = JsonNullable.undefined(); @JsonProperty("country") - public ApiCustomerAccountGetResponseDtoBuilder country(String value) { + public CustomerGetResponseDtoBuilder country(String value) { this.country = JsonNullable.of(value); return this; } @@ -410,7 +410,7 @@ public ApiCustomerAccountGetResponseDtoBuilder country(String value) { private JsonNullable postalCode = JsonNullable.undefined(); @JsonProperty("postalCode") - public ApiCustomerAccountGetResponseDtoBuilder postalCode(String value) { + public CustomerGetResponseDtoBuilder postalCode(String value) { this.postalCode = JsonNullable.of(value); return this; } @@ -418,15 +418,15 @@ public ApiCustomerAccountGetResponseDtoBuilder postalCode(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiCustomerAccountGetResponseDtoBuilder cpfCnpj(String value) { + public CustomerGetResponseDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } - private JsonNullable personType = JsonNullable.undefined(); + private JsonNullable personType = JsonNullable.undefined(); @JsonProperty("personType") - public ApiCustomerAccountGetResponseDtoBuilder personType(ApiCustomerAccountGetResponsePersonType value) { + public CustomerGetResponseDtoBuilder personType(CustomerGetResponsePersonType value) { this.personType = JsonNullable.of(value); return this; } @@ -434,7 +434,7 @@ public ApiCustomerAccountGetResponseDtoBuilder personType(ApiCustomerAccountGetR private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiCustomerAccountGetResponseDtoBuilder deleted(Boolean value) { + public CustomerGetResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -442,7 +442,7 @@ public ApiCustomerAccountGetResponseDtoBuilder deleted(Boolean value) { private JsonNullable additionalEmails = JsonNullable.undefined(); @JsonProperty("additionalEmails") - public ApiCustomerAccountGetResponseDtoBuilder additionalEmails(String value) { + public CustomerGetResponseDtoBuilder additionalEmails(String value) { this.additionalEmails = JsonNullable.of(value); return this; } @@ -450,7 +450,7 @@ public ApiCustomerAccountGetResponseDtoBuilder additionalEmails(String value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiCustomerAccountGetResponseDtoBuilder externalReference(String value) { + public CustomerGetResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -458,7 +458,7 @@ public ApiCustomerAccountGetResponseDtoBuilder externalReference(String value) { private JsonNullable notificationDisabled = JsonNullable.undefined(); @JsonProperty("notificationDisabled") - public ApiCustomerAccountGetResponseDtoBuilder notificationDisabled(Boolean value) { + public CustomerGetResponseDtoBuilder notificationDisabled(Boolean value) { this.notificationDisabled = JsonNullable.of(value); return this; } @@ -466,7 +466,7 @@ public ApiCustomerAccountGetResponseDtoBuilder notificationDisabled(Boolean valu private JsonNullable observations = JsonNullable.undefined(); @JsonProperty("observations") - public ApiCustomerAccountGetResponseDtoBuilder observations(String value) { + public CustomerGetResponseDtoBuilder observations(String value) { this.observations = JsonNullable.of(value); return this; } @@ -474,7 +474,7 @@ public ApiCustomerAccountGetResponseDtoBuilder observations(String value) { private JsonNullable foreignCustomer = JsonNullable.undefined(); @JsonProperty("foreignCustomer") - public ApiCustomerAccountGetResponseDtoBuilder foreignCustomer(Boolean value) { + public CustomerGetResponseDtoBuilder 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/CustomerGetResponsePersonType.java similarity index 71% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponsePersonType.java rename to src/main/java/com/asaas/apisdk/models/CustomerGetResponsePersonType.java index 270d81b..f6de49f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountGetResponsePersonType.java +++ b/src/main/java/com/asaas/apisdk/models/CustomerGetResponsePersonType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerAccountGetResponsePersonType { +public enum CustomerGetResponsePersonType { JURIDICA("JURIDICA"), FISICA("FISICA"); @@ -21,8 +21,8 @@ public enum ApiCustomerAccountGetResponsePersonType { private final String value; @JsonCreator - public static ApiCustomerAccountGetResponsePersonType fromValue(String value) { - return Arrays.stream(ApiCustomerAccountGetResponsePersonType.values()) + 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/ApiPaymentListResponseDto.java b/src/main/java/com/asaas/apisdk/models/CustomerListResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/CustomerListResponseDto.java index 859628d..894481b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/CustomerListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentListResponseDto { +public class CustomerListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiPaymentListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentListResponseDtoBuilder { + public static class CustomerListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPaymentListResponseDtoBuilder object(String value) { + public CustomerListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiPaymentListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiPaymentListResponseDtoBuilder hasMore(Boolean value) { + public CustomerListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiPaymentListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiPaymentListResponseDtoBuilder totalCount(Long value) { + public CustomerListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiPaymentListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiPaymentListResponseDtoBuilder limit(Long value) { + public CustomerListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiPaymentListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiPaymentListResponseDtoBuilder offset(Long value) { + public CustomerListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiPaymentListResponseDtoBuilder data(List value) { + public CustomerListResponseDtoBuilder data(List value) { this.data = 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/CustomerSaveRequestDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerAccountSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/CustomerSaveRequestDto.java index 2addbdb..ec4d8ae 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/CustomerSaveRequestDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerAccountSaveRequestDto { +public class CustomerSaveRequestDto { /** * Client name @@ -221,12 +221,12 @@ public Boolean getForeignCustomer() { } // Overwrite lombok builder methods - public static class ApiCustomerAccountSaveRequestDtoBuilder { + public static class CustomerSaveRequestDtoBuilder { private JsonNullable email = JsonNullable.undefined(); @JsonProperty("email") - public ApiCustomerAccountSaveRequestDtoBuilder email(String value) { + public CustomerSaveRequestDtoBuilder email(String value) { this.email = JsonNullable.of(value); return this; } @@ -234,7 +234,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder email(String value) { private JsonNullable phone = JsonNullable.undefined(); @JsonProperty("phone") - public ApiCustomerAccountSaveRequestDtoBuilder phone(String value) { + public CustomerSaveRequestDtoBuilder phone(String value) { this.phone = JsonNullable.of(value); return this; } @@ -242,7 +242,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder phone(String value) { private JsonNullable mobilePhone = JsonNullable.undefined(); @JsonProperty("mobilePhone") - public ApiCustomerAccountSaveRequestDtoBuilder mobilePhone(String value) { + public CustomerSaveRequestDtoBuilder mobilePhone(String value) { this.mobilePhone = JsonNullable.of(value); return this; } @@ -250,7 +250,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder mobilePhone(String value) { private JsonNullable address = JsonNullable.undefined(); @JsonProperty("address") - public ApiCustomerAccountSaveRequestDtoBuilder address(String value) { + public CustomerSaveRequestDtoBuilder address(String value) { this.address = JsonNullable.of(value); return this; } @@ -258,7 +258,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder address(String value) { private JsonNullable addressNumber = JsonNullable.undefined(); @JsonProperty("addressNumber") - public ApiCustomerAccountSaveRequestDtoBuilder addressNumber(String value) { + public CustomerSaveRequestDtoBuilder addressNumber(String value) { this.addressNumber = JsonNullable.of(value); return this; } @@ -266,7 +266,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder addressNumber(String value) { private JsonNullable complement = JsonNullable.undefined(); @JsonProperty("complement") - public ApiCustomerAccountSaveRequestDtoBuilder complement(String value) { + public CustomerSaveRequestDtoBuilder complement(String value) { this.complement = JsonNullable.of(value); return this; } @@ -274,7 +274,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder complement(String value) { private JsonNullable province = JsonNullable.undefined(); @JsonProperty("province") - public ApiCustomerAccountSaveRequestDtoBuilder province(String value) { + public CustomerSaveRequestDtoBuilder province(String value) { this.province = JsonNullable.of(value); return this; } @@ -282,7 +282,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder province(String value) { private JsonNullable postalCode = JsonNullable.undefined(); @JsonProperty("postalCode") - public ApiCustomerAccountSaveRequestDtoBuilder postalCode(String value) { + public CustomerSaveRequestDtoBuilder postalCode(String value) { this.postalCode = JsonNullable.of(value); return this; } @@ -290,7 +290,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder postalCode(String value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiCustomerAccountSaveRequestDtoBuilder externalReference(String value) { + public CustomerSaveRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -298,7 +298,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder externalReference(String value) { private JsonNullable notificationDisabled = JsonNullable.undefined(); @JsonProperty("notificationDisabled") - public ApiCustomerAccountSaveRequestDtoBuilder notificationDisabled(Boolean value) { + public CustomerSaveRequestDtoBuilder notificationDisabled(Boolean value) { this.notificationDisabled = JsonNullable.of(value); return this; } @@ -306,7 +306,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder notificationDisabled(Boolean valu private JsonNullable additionalEmails = JsonNullable.undefined(); @JsonProperty("additionalEmails") - public ApiCustomerAccountSaveRequestDtoBuilder additionalEmails(String value) { + public CustomerSaveRequestDtoBuilder additionalEmails(String value) { this.additionalEmails = JsonNullable.of(value); return this; } @@ -314,7 +314,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder additionalEmails(String value) { private JsonNullable municipalInscription = JsonNullable.undefined(); @JsonProperty("municipalInscription") - public ApiCustomerAccountSaveRequestDtoBuilder municipalInscription(String value) { + public CustomerSaveRequestDtoBuilder municipalInscription(String value) { this.municipalInscription = JsonNullable.of(value); return this; } @@ -322,7 +322,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder municipalInscription(String value private JsonNullable stateInscription = JsonNullable.undefined(); @JsonProperty("stateInscription") - public ApiCustomerAccountSaveRequestDtoBuilder stateInscription(String value) { + public CustomerSaveRequestDtoBuilder stateInscription(String value) { this.stateInscription = JsonNullable.of(value); return this; } @@ -330,7 +330,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder stateInscription(String value) { private JsonNullable observations = JsonNullable.undefined(); @JsonProperty("observations") - public ApiCustomerAccountSaveRequestDtoBuilder observations(String value) { + public CustomerSaveRequestDtoBuilder observations(String value) { this.observations = JsonNullable.of(value); return this; } @@ -338,7 +338,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder observations(String value) { private JsonNullable groupName = JsonNullable.undefined(); @JsonProperty("groupName") - public ApiCustomerAccountSaveRequestDtoBuilder groupName(String value) { + public CustomerSaveRequestDtoBuilder groupName(String value) { this.groupName = JsonNullable.of(value); return this; } @@ -346,7 +346,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder groupName(String value) { private JsonNullable company = JsonNullable.undefined(); @JsonProperty("company") - public ApiCustomerAccountSaveRequestDtoBuilder company(String value) { + public CustomerSaveRequestDtoBuilder company(String value) { this.company = JsonNullable.of(value); return this; } @@ -354,7 +354,7 @@ public ApiCustomerAccountSaveRequestDtoBuilder company(String value) { private JsonNullable foreignCustomer = JsonNullable.undefined(); @JsonProperty("foreignCustomer") - public ApiCustomerAccountSaveRequestDtoBuilder foreignCustomer(Boolean value) { + public CustomerSaveRequestDtoBuilder 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/CustomerUpdateRequestDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerAccountUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/CustomerUpdateRequestDto.java index e737a70..3f5d95b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/CustomerUpdateRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerAccountUpdateRequestDto { +public class CustomerUpdateRequestDto { /** * Client name @@ -230,12 +230,12 @@ public Boolean getForeignCustomer() { } // Overwrite lombok builder methods - public static class ApiCustomerAccountUpdateRequestDtoBuilder { + public static class CustomerUpdateRequestDtoBuilder { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiCustomerAccountUpdateRequestDtoBuilder name(String value) { + public CustomerUpdateRequestDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -243,7 +243,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder name(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiCustomerAccountUpdateRequestDtoBuilder cpfCnpj(String value) { + public CustomerUpdateRequestDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } @@ -251,7 +251,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder cpfCnpj(String value) { private JsonNullable email = JsonNullable.undefined(); @JsonProperty("email") - public ApiCustomerAccountUpdateRequestDtoBuilder email(String value) { + public CustomerUpdateRequestDtoBuilder email(String value) { this.email = JsonNullable.of(value); return this; } @@ -259,7 +259,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder email(String value) { private JsonNullable phone = JsonNullable.undefined(); @JsonProperty("phone") - public ApiCustomerAccountUpdateRequestDtoBuilder phone(String value) { + public CustomerUpdateRequestDtoBuilder phone(String value) { this.phone = JsonNullable.of(value); return this; } @@ -267,7 +267,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder phone(String value) { private JsonNullable mobilePhone = JsonNullable.undefined(); @JsonProperty("mobilePhone") - public ApiCustomerAccountUpdateRequestDtoBuilder mobilePhone(String value) { + public CustomerUpdateRequestDtoBuilder mobilePhone(String value) { this.mobilePhone = JsonNullable.of(value); return this; } @@ -275,7 +275,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder mobilePhone(String value) { private JsonNullable address = JsonNullable.undefined(); @JsonProperty("address") - public ApiCustomerAccountUpdateRequestDtoBuilder address(String value) { + public CustomerUpdateRequestDtoBuilder address(String value) { this.address = JsonNullable.of(value); return this; } @@ -283,7 +283,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder address(String value) { private JsonNullable addressNumber = JsonNullable.undefined(); @JsonProperty("addressNumber") - public ApiCustomerAccountUpdateRequestDtoBuilder addressNumber(String value) { + public CustomerUpdateRequestDtoBuilder addressNumber(String value) { this.addressNumber = JsonNullable.of(value); return this; } @@ -291,7 +291,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder addressNumber(String value) { private JsonNullable complement = JsonNullable.undefined(); @JsonProperty("complement") - public ApiCustomerAccountUpdateRequestDtoBuilder complement(String value) { + public CustomerUpdateRequestDtoBuilder complement(String value) { this.complement = JsonNullable.of(value); return this; } @@ -299,7 +299,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder complement(String value) { private JsonNullable province = JsonNullable.undefined(); @JsonProperty("province") - public ApiCustomerAccountUpdateRequestDtoBuilder province(String value) { + public CustomerUpdateRequestDtoBuilder province(String value) { this.province = JsonNullable.of(value); return this; } @@ -307,7 +307,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder province(String value) { private JsonNullable postalCode = JsonNullable.undefined(); @JsonProperty("postalCode") - public ApiCustomerAccountUpdateRequestDtoBuilder postalCode(String value) { + public CustomerUpdateRequestDtoBuilder postalCode(String value) { this.postalCode = JsonNullable.of(value); return this; } @@ -315,7 +315,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder postalCode(String value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiCustomerAccountUpdateRequestDtoBuilder externalReference(String value) { + public CustomerUpdateRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -323,7 +323,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder externalReference(String value) private JsonNullable notificationDisabled = JsonNullable.undefined(); @JsonProperty("notificationDisabled") - public ApiCustomerAccountUpdateRequestDtoBuilder notificationDisabled(Boolean value) { + public CustomerUpdateRequestDtoBuilder notificationDisabled(Boolean value) { this.notificationDisabled = JsonNullable.of(value); return this; } @@ -331,7 +331,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder notificationDisabled(Boolean va private JsonNullable additionalEmails = JsonNullable.undefined(); @JsonProperty("additionalEmails") - public ApiCustomerAccountUpdateRequestDtoBuilder additionalEmails(String value) { + public CustomerUpdateRequestDtoBuilder additionalEmails(String value) { this.additionalEmails = JsonNullable.of(value); return this; } @@ -339,7 +339,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder additionalEmails(String value) private JsonNullable municipalInscription = JsonNullable.undefined(); @JsonProperty("municipalInscription") - public ApiCustomerAccountUpdateRequestDtoBuilder municipalInscription(String value) { + public CustomerUpdateRequestDtoBuilder municipalInscription(String value) { this.municipalInscription = JsonNullable.of(value); return this; } @@ -347,7 +347,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder municipalInscription(String val private JsonNullable stateInscription = JsonNullable.undefined(); @JsonProperty("stateInscription") - public ApiCustomerAccountUpdateRequestDtoBuilder stateInscription(String value) { + public CustomerUpdateRequestDtoBuilder stateInscription(String value) { this.stateInscription = JsonNullable.of(value); return this; } @@ -355,7 +355,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder stateInscription(String value) private JsonNullable observations = JsonNullable.undefined(); @JsonProperty("observations") - public ApiCustomerAccountUpdateRequestDtoBuilder observations(String value) { + public CustomerUpdateRequestDtoBuilder observations(String value) { this.observations = JsonNullable.of(value); return this; } @@ -363,7 +363,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder observations(String value) { private JsonNullable groupName = JsonNullable.undefined(); @JsonProperty("groupName") - public ApiCustomerAccountUpdateRequestDtoBuilder groupName(String value) { + public CustomerUpdateRequestDtoBuilder groupName(String value) { this.groupName = JsonNullable.of(value); return this; } @@ -371,7 +371,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder groupName(String value) { private JsonNullable company = JsonNullable.undefined(); @JsonProperty("company") - public ApiCustomerAccountUpdateRequestDtoBuilder company(String value) { + public CustomerUpdateRequestDtoBuilder company(String value) { this.company = JsonNullable.of(value); return this; } @@ -379,7 +379,7 @@ public ApiCustomerAccountUpdateRequestDtoBuilder company(String value) { private JsonNullable foreignCustomer = JsonNullable.undefined(); @JsonProperty("foreignCustomer") - public ApiCustomerAccountUpdateRequestDtoBuilder foreignCustomer(Boolean value) { + public CustomerUpdateRequestDtoBuilder foreignCustomer(Boolean value) { this.foreignCustomer = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiErrorResponseDto.java b/src/main/java/com/asaas/apisdk/models/ErrorResponseDto.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiErrorResponseDto.java rename to src/main/java/com/asaas/apisdk/models/ErrorResponseDto.java index fe108e7..08f0c96 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiErrorResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/ErrorResponseDto.java @@ -23,26 +23,26 @@ @Jacksonized @NoArgsConstructor @AllArgsConstructor -public class ApiErrorResponseDto { +public class ErrorResponseDto { /** * List of objects */ @JsonProperty("errors") - private JsonNullable> errors; + private JsonNullable> errors; @JsonIgnore - public List getErrors() { + public List getErrors() { return errors.orElse(null); } // Overwrite lombok builder methods - public static class ApiErrorResponseDtoBuilder { + public static class ErrorResponseDtoBuilder { - private JsonNullable> errors = JsonNullable.undefined(); + private JsonNullable> errors = JsonNullable.undefined(); @JsonProperty("errors") - public ApiErrorResponseDtoBuilder errors(List value) { + public ErrorResponseDtoBuilder 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/ErrorResponseItemDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiErrorResponseItemDto.java rename to src/main/java/com/asaas/apisdk/models/ErrorResponseItemDto.java index 0e53564..1b79326 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiErrorResponseItemDto.java +++ b/src/main/java/com/asaas/apisdk/models/ErrorResponseItemDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of objects + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiErrorResponseItemDto { +public class ErrorResponseItemDto { /** * Error code @@ -43,12 +46,12 @@ public String getDescription() { } // Overwrite lombok builder methods - public static class ApiErrorResponseItemDtoBuilder { + public static class ErrorResponseItemDtoBuilder { private JsonNullable code = JsonNullable.undefined(); @JsonProperty("code") - public ApiErrorResponseItemDtoBuilder code(String value) { + public ErrorResponseItemDtoBuilder code(String value) { this.code = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiErrorResponseItemDtoBuilder code(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiErrorResponseItemDtoBuilder description(String value) { + public ErrorResponseItemDtoBuilder 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/FinanceBalanceResponseDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiFinanceBalanceResponseDto.java rename to src/main/java/com/asaas/apisdk/models/FinanceBalanceResponseDto.java index b26ca37..ea806c0 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceBalanceResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/FinanceBalanceResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiFinanceBalanceResponseDto { +public class FinanceBalanceResponseDto { /** * Account balance @@ -32,12 +32,12 @@ public Double getBalance() { } // Overwrite lombok builder methods - public static class ApiFinanceBalanceResponseDtoBuilder { + public static class FinanceBalanceResponseDtoBuilder { private JsonNullable balance = JsonNullable.undefined(); @JsonProperty("balance") - public ApiFinanceBalanceResponseDtoBuilder balance(Double value) { + 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/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestPaymentStatus.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.java rename to src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestPaymentStatus.java index 1ef1389..679e339 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestPaymentStatus.java +++ b/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsRequestPaymentStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiFinanceGetPaymentStatisticsRequestPaymentStatus { +public enum FinanceGetPaymentStatisticsRequestPaymentStatus { PENDING("PENDING"), RECEIVED("RECEIVED"), CONFIRMED("CONFIRMED"), @@ -23,8 +23,8 @@ public enum ApiFinanceGetPaymentStatisticsRequestPaymentStatus { private final String value; @JsonCreator - public static ApiFinanceGetPaymentStatisticsRequestPaymentStatus fromValue(String value) { - return Arrays.stream(ApiFinanceGetPaymentStatisticsRequestPaymentStatus.values()) + 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/ApiFinanceGetPaymentStatisticsResponseDto.java b/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsResponseDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsResponseDto.java rename to src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsResponseDto.java index 79f4000..fccfd65 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/FinanceGetPaymentStatisticsResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiFinanceGetPaymentStatisticsResponseDto { +public class FinanceGetPaymentStatisticsResponseDto { /** * Number of charges @@ -54,12 +54,12 @@ public Double getNetValue() { } // Overwrite lombok builder methods - public static class ApiFinanceGetPaymentStatisticsResponseDtoBuilder { + public static class FinanceGetPaymentStatisticsResponseDtoBuilder { private JsonNullable quantity = JsonNullable.undefined(); @JsonProperty("quantity") - public ApiFinanceGetPaymentStatisticsResponseDtoBuilder quantity(Long value) { + public FinanceGetPaymentStatisticsResponseDtoBuilder quantity(Long value) { this.quantity = JsonNullable.of(value); return this; } @@ -67,7 +67,7 @@ public ApiFinanceGetPaymentStatisticsResponseDtoBuilder quantity(Long value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiFinanceGetPaymentStatisticsResponseDtoBuilder value(Double value) { + public FinanceGetPaymentStatisticsResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -75,7 +75,7 @@ public ApiFinanceGetPaymentStatisticsResponseDtoBuilder value(Double value) { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiFinanceGetPaymentStatisticsResponseDtoBuilder netValue(Double value) { + public FinanceGetPaymentStatisticsResponseDtoBuilder 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/FinanceGetSplitStatisticsResponseDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiFinanceGetSplitStatisticsResponseDto.java rename to src/main/java/com/asaas/apisdk/models/FinanceGetSplitStatisticsResponseDto.java index 1fcfecc..caa62ee 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetSplitStatisticsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/FinanceGetSplitStatisticsResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiFinanceGetSplitStatisticsResponseDto { +public class FinanceGetSplitStatisticsResponseDto { /** * Amounts receivable @@ -43,12 +43,12 @@ public Double getValue() { } // Overwrite lombok builder methods - public static class ApiFinanceGetSplitStatisticsResponseDtoBuilder { + public static class FinanceGetSplitStatisticsResponseDtoBuilder { private JsonNullable income = JsonNullable.undefined(); @JsonProperty("income") - public ApiFinanceGetSplitStatisticsResponseDtoBuilder income(Double value) { + public FinanceGetSplitStatisticsResponseDtoBuilder income(Double value) { this.income = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiFinanceGetSplitStatisticsResponseDtoBuilder income(Double value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiFinanceGetSplitStatisticsResponseDtoBuilder value(Double value) { + public FinanceGetSplitStatisticsResponseDtoBuilder 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/FinancialTransactionGetResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseDto.java index 7e6888d..5264ddd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of objects + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiFinancialTransactionGetResponseDto { +public class FinancialTransactionGetResponseDto { /** * Object type @@ -48,7 +51,7 @@ public class ApiFinancialTransactionGetResponseDto { * Transaction type */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Transaction date @@ -131,7 +134,7 @@ public Double getBalance() { } @JsonIgnore - public ApiFinancialTransactionGetResponseFinancialTransactionType getType() { + public FinancialTransactionGetResponseFinancialTransactionType getType() { return type.orElse(null); } @@ -186,12 +189,12 @@ public String getCreditBureauReportId() { } // Overwrite lombok builder methods - public static class ApiFinancialTransactionGetResponseDtoBuilder { + public static class FinancialTransactionGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiFinancialTransactionGetResponseDtoBuilder object(String value) { + public FinancialTransactionGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -199,7 +202,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiFinancialTransactionGetResponseDtoBuilder id(String value) { + public FinancialTransactionGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -207,7 +210,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder id(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiFinancialTransactionGetResponseDtoBuilder value(Double value) { + public FinancialTransactionGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -215,16 +218,16 @@ public ApiFinancialTransactionGetResponseDtoBuilder value(Double value) { private JsonNullable balance = JsonNullable.undefined(); @JsonProperty("balance") - public ApiFinancialTransactionGetResponseDtoBuilder balance(Double value) { + public FinancialTransactionGetResponseDtoBuilder balance(Double value) { this.balance = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiFinancialTransactionGetResponseDtoBuilder type( - ApiFinancialTransactionGetResponseFinancialTransactionType value + public FinancialTransactionGetResponseDtoBuilder type( + FinancialTransactionGetResponseFinancialTransactionType value ) { this.type = JsonNullable.of(value); return this; @@ -233,7 +236,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder type( private JsonNullable date = JsonNullable.undefined(); @JsonProperty("date") - public ApiFinancialTransactionGetResponseDtoBuilder date(String value) { + public FinancialTransactionGetResponseDtoBuilder date(String value) { this.date = JsonNullable.of(value); return this; } @@ -241,7 +244,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder date(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiFinancialTransactionGetResponseDtoBuilder description(String value) { + public FinancialTransactionGetResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -249,7 +252,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder description(String value) { private JsonNullable paymentId = JsonNullable.undefined(); @JsonProperty("paymentId") - public ApiFinancialTransactionGetResponseDtoBuilder paymentId(String value) { + public FinancialTransactionGetResponseDtoBuilder paymentId(String value) { this.paymentId = JsonNullable.of(value); return this; } @@ -257,7 +260,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder paymentId(String value) { private JsonNullable splitId = JsonNullable.undefined(); @JsonProperty("splitId") - public ApiFinancialTransactionGetResponseDtoBuilder splitId(String value) { + public FinancialTransactionGetResponseDtoBuilder splitId(String value) { this.splitId = JsonNullable.of(value); return this; } @@ -265,7 +268,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder splitId(String value) { private JsonNullable transferId = JsonNullable.undefined(); @JsonProperty("transferId") - public ApiFinancialTransactionGetResponseDtoBuilder transferId(String value) { + public FinancialTransactionGetResponseDtoBuilder transferId(String value) { this.transferId = JsonNullable.of(value); return this; } @@ -273,7 +276,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder transferId(String value) { private JsonNullable anticipationId = JsonNullable.undefined(); @JsonProperty("anticipationId") - public ApiFinancialTransactionGetResponseDtoBuilder anticipationId(String value) { + public FinancialTransactionGetResponseDtoBuilder anticipationId(String value) { this.anticipationId = JsonNullable.of(value); return this; } @@ -281,7 +284,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder anticipationId(String value) private JsonNullable billId = JsonNullable.undefined(); @JsonProperty("billId") - public ApiFinancialTransactionGetResponseDtoBuilder billId(String value) { + public FinancialTransactionGetResponseDtoBuilder billId(String value) { this.billId = JsonNullable.of(value); return this; } @@ -289,7 +292,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder billId(String value) { private JsonNullable invoiceId = JsonNullable.undefined(); @JsonProperty("invoiceId") - public ApiFinancialTransactionGetResponseDtoBuilder invoiceId(String value) { + public FinancialTransactionGetResponseDtoBuilder invoiceId(String value) { this.invoiceId = JsonNullable.of(value); return this; } @@ -297,7 +300,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder invoiceId(String value) { private JsonNullable paymentDunningId = JsonNullable.undefined(); @JsonProperty("paymentDunningId") - public ApiFinancialTransactionGetResponseDtoBuilder paymentDunningId(String value) { + public FinancialTransactionGetResponseDtoBuilder paymentDunningId(String value) { this.paymentDunningId = JsonNullable.of(value); return this; } @@ -305,7 +308,7 @@ public ApiFinancialTransactionGetResponseDtoBuilder paymentDunningId(String valu private JsonNullable creditBureauReportId = JsonNullable.undefined(); @JsonProperty("creditBureauReportId") - public ApiFinancialTransactionGetResponseDtoBuilder creditBureauReportId(String value) { + public FinancialTransactionGetResponseDtoBuilder 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/FinancialTransactionGetResponseFinancialTransactionType.java similarity index 96% rename from src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseFinancialTransactionType.java rename to src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseFinancialTransactionType.java index 44f2d62..4e8d5cd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionGetResponseFinancialTransactionType.java +++ b/src/main/java/com/asaas/apisdk/models/FinancialTransactionGetResponseFinancialTransactionType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiFinancialTransactionGetResponseFinancialTransactionType { +public enum FinancialTransactionGetResponseFinancialTransactionType { PAYMENT_RECEIVED("PAYMENT_RECEIVED"), TRANSFER("TRANSFER"), TRANSFER_FEE("TRANSFER_FEE"), @@ -131,6 +131,7 @@ public enum ApiFinancialTransactionGetResponseFinancialTransactionType { 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"), @@ -143,8 +144,8 @@ public enum ApiFinancialTransactionGetResponseFinancialTransactionType { private final String value; @JsonCreator - public static ApiFinancialTransactionGetResponseFinancialTransactionType fromValue(String value) { - return Arrays.stream(ApiFinancialTransactionGetResponseFinancialTransactionType.values()) + 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/ApiCustomerAccountListResponseDto.java b/src/main/java/com/asaas/apisdk/models/FinancialTransactionListResponseDto.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerAccountListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/FinancialTransactionListResponseDto.java index 8c22c72..3168aaa 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerAccountListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/FinancialTransactionListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerAccountListResponseDto { +public class FinancialTransactionListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiCustomerAccountListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiCustomerAccountListResponseDtoBuilder { + public static class FinancialTransactionListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiCustomerAccountListResponseDtoBuilder object(String value) { + public FinancialTransactionListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiCustomerAccountListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiCustomerAccountListResponseDtoBuilder hasMore(Boolean value) { + public FinancialTransactionListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiCustomerAccountListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiCustomerAccountListResponseDtoBuilder totalCount(Long value) { + public FinancialTransactionListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiCustomerAccountListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiCustomerAccountListResponseDtoBuilder limit(Long value) { + public FinancialTransactionListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiCustomerAccountListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiCustomerAccountListResponseDtoBuilder offset(Long value) { + public FinancialTransactionListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiCustomerAccountListResponseDtoBuilder data(List value) { + public FinancialTransactionListResponseDtoBuilder data(List value) { this.data = 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/FiscalInfoGetResponseDto.java similarity index 84% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoGetResponseDto.java index 859604f..6a601fe 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerFiscalInfoGetResponseDto { +public class FiscalInfoGetResponseDto { /** * Object type @@ -208,12 +208,12 @@ public String getNationalPortalTaxCalculationRegime() { } // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoGetResponseDtoBuilder { + public static class FiscalInfoGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiCustomerFiscalInfoGetResponseDtoBuilder object(String value) { + public FiscalInfoGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -221,7 +221,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder object(String value) { private JsonNullable email = JsonNullable.undefined(); @JsonProperty("email") - public ApiCustomerFiscalInfoGetResponseDtoBuilder email(String value) { + public FiscalInfoGetResponseDtoBuilder email(String value) { this.email = JsonNullable.of(value); return this; } @@ -229,7 +229,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder email(String value) { private JsonNullable municipalInscription = JsonNullable.undefined(); @JsonProperty("municipalInscription") - public ApiCustomerFiscalInfoGetResponseDtoBuilder municipalInscription(String value) { + public FiscalInfoGetResponseDtoBuilder municipalInscription(String value) { this.municipalInscription = JsonNullable.of(value); return this; } @@ -237,7 +237,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder municipalInscription(String va private JsonNullable simplesNacional = JsonNullable.of(true); @JsonProperty("simplesNacional") - public ApiCustomerFiscalInfoGetResponseDtoBuilder simplesNacional(Boolean value) { + public FiscalInfoGetResponseDtoBuilder simplesNacional(Boolean value) { this.simplesNacional = JsonNullable.of(value); return this; } @@ -245,7 +245,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder simplesNacional(Boolean value) private JsonNullable culturalProjectsPromoter = JsonNullable.of(true); @JsonProperty("culturalProjectsPromoter") - public ApiCustomerFiscalInfoGetResponseDtoBuilder culturalProjectsPromoter(Boolean value) { + public FiscalInfoGetResponseDtoBuilder culturalProjectsPromoter(Boolean value) { this.culturalProjectsPromoter = JsonNullable.of(value); return this; } @@ -253,7 +253,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder culturalProjectsPromoter(Boole private JsonNullable cnae = JsonNullable.undefined(); @JsonProperty("cnae") - public ApiCustomerFiscalInfoGetResponseDtoBuilder cnae(String value) { + public FiscalInfoGetResponseDtoBuilder cnae(String value) { this.cnae = JsonNullable.of(value); return this; } @@ -261,7 +261,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder cnae(String value) { private JsonNullable specialTaxRegime = JsonNullable.undefined(); @JsonProperty("specialTaxRegime") - public ApiCustomerFiscalInfoGetResponseDtoBuilder specialTaxRegime(String value) { + public FiscalInfoGetResponseDtoBuilder specialTaxRegime(String value) { this.specialTaxRegime = JsonNullable.of(value); return this; } @@ -269,7 +269,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder specialTaxRegime(String value) private JsonNullable serviceListItem = JsonNullable.undefined(); @JsonProperty("serviceListItem") - public ApiCustomerFiscalInfoGetResponseDtoBuilder serviceListItem(String value) { + public FiscalInfoGetResponseDtoBuilder serviceListItem(String value) { this.serviceListItem = JsonNullable.of(value); return this; } @@ -277,7 +277,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder serviceListItem(String value) private JsonNullable nbsCode = JsonNullable.undefined(); @JsonProperty("nbsCode") - public ApiCustomerFiscalInfoGetResponseDtoBuilder nbsCode(String value) { + public FiscalInfoGetResponseDtoBuilder nbsCode(String value) { this.nbsCode = JsonNullable.of(value); return this; } @@ -285,7 +285,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder nbsCode(String value) { private JsonNullable rpsSerie = JsonNullable.undefined(); @JsonProperty("rpsSerie") - public ApiCustomerFiscalInfoGetResponseDtoBuilder rpsSerie(String value) { + public FiscalInfoGetResponseDtoBuilder rpsSerie(String value) { this.rpsSerie = JsonNullable.of(value); return this; } @@ -293,7 +293,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder rpsSerie(String value) { private JsonNullable rpsNumber = JsonNullable.undefined(); @JsonProperty("rpsNumber") - public ApiCustomerFiscalInfoGetResponseDtoBuilder rpsNumber(Long value) { + public FiscalInfoGetResponseDtoBuilder rpsNumber(Long value) { this.rpsNumber = JsonNullable.of(value); return this; } @@ -301,7 +301,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder rpsNumber(Long value) { private JsonNullable loteNumber = JsonNullable.undefined(); @JsonProperty("loteNumber") - public ApiCustomerFiscalInfoGetResponseDtoBuilder loteNumber(Long value) { + public FiscalInfoGetResponseDtoBuilder loteNumber(Long value) { this.loteNumber = JsonNullable.of(value); return this; } @@ -309,7 +309,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder loteNumber(Long value) { private JsonNullable username = JsonNullable.undefined(); @JsonProperty("username") - public ApiCustomerFiscalInfoGetResponseDtoBuilder username(String value) { + public FiscalInfoGetResponseDtoBuilder username(String value) { this.username = JsonNullable.of(value); return this; } @@ -317,7 +317,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder username(String value) { private JsonNullable passwordSent = JsonNullable.of(true); @JsonProperty("passwordSent") - public ApiCustomerFiscalInfoGetResponseDtoBuilder passwordSent(Boolean value) { + public FiscalInfoGetResponseDtoBuilder passwordSent(Boolean value) { this.passwordSent = JsonNullable.of(value); return this; } @@ -325,7 +325,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder passwordSent(Boolean value) { private JsonNullable accessTokenSent = JsonNullable.of(true); @JsonProperty("accessTokenSent") - public ApiCustomerFiscalInfoGetResponseDtoBuilder accessTokenSent(Boolean value) { + public FiscalInfoGetResponseDtoBuilder accessTokenSent(Boolean value) { this.accessTokenSent = JsonNullable.of(value); return this; } @@ -333,7 +333,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder accessTokenSent(Boolean value) private JsonNullable certificateSent = JsonNullable.of(true); @JsonProperty("certificateSent") - public ApiCustomerFiscalInfoGetResponseDtoBuilder certificateSent(Boolean value) { + public FiscalInfoGetResponseDtoBuilder certificateSent(Boolean value) { this.certificateSent = JsonNullable.of(value); return this; } @@ -341,7 +341,7 @@ public ApiCustomerFiscalInfoGetResponseDtoBuilder certificateSent(Boolean value) private JsonNullable nationalPortalTaxCalculationRegime = JsonNullable.undefined(); @JsonProperty("nationalPortalTaxCalculationRegime") - public ApiCustomerFiscalInfoGetResponseDtoBuilder nationalPortalTaxCalculationRegime(String value) { + public FiscalInfoGetResponseDtoBuilder 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/FiscalInfoListInvoiceNbsCodesResponseDataDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.java index 8c88fdc..36f54ba 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDataDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of objects + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDto { +public class FiscalInfoListInvoiceNbsCodesResponseDataDto { /** * NBS code @@ -43,12 +46,12 @@ public String getCodeDescription() { } // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder { + public static class FiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder { private JsonNullable nbsCode = JsonNullable.undefined(); @JsonProperty("nbsCode") - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder nbsCode(String value) { + public FiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder nbsCode(String value) { this.nbsCode = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder nbsCode(St private JsonNullable codeDescription = JsonNullable.undefined(); @JsonProperty("codeDescription") - public ApiCustomerFiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder codeDescription(String value) { + public FiscalInfoListInvoiceNbsCodesResponseDataDtoBuilder codeDescription(String value) { this.codeDescription = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigListResponseDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDto.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDto.java index 6b9113c..c78626e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoListInvoiceNbsCodesResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPushNotificationConfigListResponseDto { +public class FiscalInfoListInvoiceNbsCodesResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiPushNotificationConfigListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiPushNotificationConfigListResponseDtoBuilder { + public static class FiscalInfoListInvoiceNbsCodesResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPushNotificationConfigListResponseDtoBuilder object(String value) { + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiPushNotificationConfigListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiPushNotificationConfigListResponseDtoBuilder hasMore(Boolean value) { + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiPushNotificationConfigListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiPushNotificationConfigListResponseDtoBuilder totalCount(Long value) { + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiPushNotificationConfigListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiPushNotificationConfigListResponseDtoBuilder limit(Long value) { + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,17 @@ public ApiPushNotificationConfigListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiPushNotificationConfigListResponseDtoBuilder offset(Long value) { + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiPushNotificationConfigListResponseDtoBuilder data(List value) { + public FiscalInfoListInvoiceNbsCodesResponseDtoBuilder 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/FiscalInfoListMunicipalServicesResponseDataDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDataDto.java index f3459c1..b5e6344 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDataDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of objects + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerFiscalInfoListMunicipalServicesResponseDataDto { +public class FiscalInfoListMunicipalServicesResponseDataDto { /** * Unique service identifier @@ -54,12 +57,12 @@ public Double getIssTax() { } // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder { + public static class FiscalInfoListMunicipalServicesResponseDataDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder id(String value) { + public FiscalInfoListMunicipalServicesResponseDataDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -67,7 +70,7 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder id(Strin private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder description(String value) { + public FiscalInfoListMunicipalServicesResponseDataDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -75,7 +78,7 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder descript private JsonNullable issTax = JsonNullable.undefined(); @JsonProperty("issTax") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDataDtoBuilder issTax(Double value) { + public FiscalInfoListMunicipalServicesResponseDataDtoBuilder issTax(Double value) { this.issTax = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDto.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDto.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDto.java index 9827bb4..35c51ba 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoListMunicipalServicesResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDunningListHistoryResponseDto { +public class FiscalInfoListMunicipalServicesResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiPaymentDunningListHistoryResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentDunningListHistoryResponseDtoBuilder { + public static class FiscalInfoListMunicipalServicesResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPaymentDunningListHistoryResponseDtoBuilder object(String value) { + public FiscalInfoListMunicipalServicesResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiPaymentDunningListHistoryResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiPaymentDunningListHistoryResponseDtoBuilder hasMore(Boolean value) { + public FiscalInfoListMunicipalServicesResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiPaymentDunningListHistoryResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiPaymentDunningListHistoryResponseDtoBuilder totalCount(Long value) { + public FiscalInfoListMunicipalServicesResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiPaymentDunningListHistoryResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiPaymentDunningListHistoryResponseDtoBuilder limit(Long value) { + public FiscalInfoListMunicipalServicesResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,16 +125,16 @@ public ApiPaymentDunningListHistoryResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiPaymentDunningListHistoryResponseDtoBuilder offset(Long value) { + public FiscalInfoListMunicipalServicesResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiPaymentDunningListHistoryResponseDtoBuilder data( - List value + public FiscalInfoListMunicipalServicesResponseDtoBuilder 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/FiscalInfoMunicipalOptionsGetResponseDto.java similarity index 71% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseDto.java index 02028b7..eaebfe0 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseDto.java @@ -19,13 +19,13 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto { +public class FiscalInfoMunicipalOptionsGetResponseDto { /** * Type of authentication required at city hall */ @JsonProperty("authenticationType") - private JsonNullable authenticationType; + private JsonNullable authenticationType; /** * Whether or not it supports the cancellation of invoices automatically at your city hall @@ -49,14 +49,14 @@ public class ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto { * Tax calculation regime options */ @JsonProperty("specialTaxRegimesList") - private JsonNullable> specialTaxRegimesList; + private JsonNullable> specialTaxRegimesList; /** * Special taxation regime options */ @JsonProperty("nationalPortalTaxCalculationRegimeList") private JsonNullable< - List + List > nationalPortalTaxCalculationRegimeList; /** @@ -102,7 +102,7 @@ public class ApiCustomerFiscalInfoMunicipalOptionsGetResponseDto { private JsonNullable municipalServiceCodeHelp; @JsonIgnore - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao getAuthenticationType() { + public FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao getAuthenticationType() { return authenticationType.orElse(null); } @@ -122,13 +122,13 @@ public Boolean getUsesServiceListItem() { } @JsonIgnore - public List getSpecialTaxRegimesList() { + public List getSpecialTaxRegimesList() { return specialTaxRegimesList.orElse(null); } @JsonIgnore public List< - ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto + FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto > getNationalPortalTaxCalculationRegimeList() { return nationalPortalTaxCalculationRegimeList.orElse(null); } @@ -169,14 +169,14 @@ public String getMunicipalServiceCodeHelp() { } // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder { + public static class FiscalInfoMunicipalOptionsGetResponseDtoBuilder { - private JsonNullable authenticationType = + private JsonNullable authenticationType = JsonNullable.undefined(); @JsonProperty("authenticationType") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder authenticationType( - ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao value + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder authenticationType( + FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao value ) { this.authenticationType = JsonNullable.of(value); return this; @@ -185,7 +185,7 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder authentication private JsonNullable supportsCancellation = JsonNullable.of(true); @JsonProperty("supportsCancellation") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder supportsCancellation(Boolean value) { + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder supportsCancellation(Boolean value) { this.supportsCancellation = JsonNullable.of(value); return this; } @@ -193,7 +193,7 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder supportsCancel private JsonNullable usesSpecialTaxRegimes = JsonNullable.of(true); @JsonProperty("usesSpecialTaxRegimes") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder usesSpecialTaxRegimes(Boolean value) { + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder usesSpecialTaxRegimes(Boolean value) { this.usesSpecialTaxRegimes = JsonNullable.of(value); return this; } @@ -201,29 +201,29 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder usesSpecialTax private JsonNullable usesServiceListItem = JsonNullable.of(true); @JsonProperty("usesServiceListItem") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder usesServiceListItem(Boolean value) { + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder usesServiceListItem(Boolean value) { this.usesServiceListItem = JsonNullable.of(value); return this; } - private JsonNullable> specialTaxRegimesList = + private JsonNullable> specialTaxRegimesList = JsonNullable.undefined(); @JsonProperty("specialTaxRegimesList") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegimesList( - List value + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegimesList( + List value ) { this.specialTaxRegimesList = JsonNullable.of(value); return this; } private JsonNullable< - List + List > nationalPortalTaxCalculationRegimeList = JsonNullable.undefined(); @JsonProperty("nationalPortalTaxCalculationRegimeList") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortalTaxCalculationRegimeList( - List value + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortalTaxCalculationRegimeList( + List value ) { this.nationalPortalTaxCalculationRegimeList = JsonNullable.of(value); return this; @@ -232,9 +232,7 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortal private JsonNullable nationalPortalTaxCalculationRegimeHelp = JsonNullable.undefined(); @JsonProperty("nationalPortalTaxCalculationRegimeHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortalTaxCalculationRegimeHelp( - String value - ) { + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortalTaxCalculationRegimeHelp(String value) { this.nationalPortalTaxCalculationRegimeHelp = JsonNullable.of(value); return this; } @@ -242,7 +240,7 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder nationalPortal private JsonNullable municipalInscriptionHelp = JsonNullable.undefined(); @JsonProperty("municipalInscriptionHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder municipalInscriptionHelp(String value) { + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder municipalInscriptionHelp(String value) { this.municipalInscriptionHelp = JsonNullable.of(value); return this; } @@ -250,7 +248,7 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder municipalInscr private JsonNullable specialTaxRegimeHelp = JsonNullable.undefined(); @JsonProperty("specialTaxRegimeHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegimeHelp(String value) { + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegimeHelp(String value) { this.specialTaxRegimeHelp = JsonNullable.of(value); return this; } @@ -258,7 +256,7 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder specialTaxRegi private JsonNullable serviceListItemHelp = JsonNullable.undefined(); @JsonProperty("serviceListItemHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder serviceListItemHelp(String value) { + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder serviceListItemHelp(String value) { this.serviceListItemHelp = JsonNullable.of(value); return this; } @@ -266,7 +264,7 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder serviceListIte private JsonNullable digitalCertificatedHelp = JsonNullable.undefined(); @JsonProperty("digitalCertificatedHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder digitalCertificatedHelp(String value) { + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder digitalCertificatedHelp(String value) { this.digitalCertificatedHelp = JsonNullable.of(value); return this; } @@ -274,7 +272,7 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder digitalCertifi private JsonNullable accessTokenHelp = JsonNullable.undefined(); @JsonProperty("accessTokenHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder accessTokenHelp(String value) { + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder accessTokenHelp(String value) { this.accessTokenHelp = JsonNullable.of(value); return this; } @@ -282,7 +280,7 @@ public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder accessTokenHel private JsonNullable municipalServiceCodeHelp = JsonNullable.undefined(); @JsonProperty("municipalServiceCodeHelp") - public ApiCustomerFiscalInfoMunicipalOptionsGetResponseDtoBuilder municipalServiceCodeHelp(String value) { + public FiscalInfoMunicipalOptionsGetResponseDtoBuilder 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/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java similarity index 66% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java index 8de2c36..5682627 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao { +public enum FiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao { CERTIFICATE("CERTIFICATE"), TOKEN("TOKEN"), USER_AND_PASSWORD("USER_AND_PASSWORD"); @@ -22,8 +22,8 @@ public enum ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticac private final String value; @JsonCreator - public static ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao fromValue(String value) { - return Arrays.stream(ApiCustomerFiscalInfoMunicipalOptionsGetResponseEnotasTipoAutenticacao.values()) + 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/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java index 9414705..5367432 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Special taxation regime options + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto { +public class FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDto { /** * Name of the tax calculation regime @@ -43,12 +46,12 @@ public String getValue() { } // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder { + public static class FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder { private JsonNullable label = JsonNullable.undefined(); @JsonProperty("label") - public ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder label(String value) { + public FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder label(String value) { this.label = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDt private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiCustomerFiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder value(String value) { + public FiscalInfoMunicipalOptionsNationalPortalTaxCalculationRegimeDtoBuilder 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/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java index cb320fc..d13d49d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoMunicipalOptionsSpecialTaxRegimesDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Tax calculation regime options + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDto { +public class FiscalInfoMunicipalOptionsSpecialTaxRegimesDto { /** * Name of the special taxation regime @@ -43,12 +46,12 @@ public String getValue() { } // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder { + public static class FiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder { private JsonNullable label = JsonNullable.undefined(); @JsonProperty("label") - public ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder label(String value) { + public FiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder label(String value) { this.label = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder label(St private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiCustomerFiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder value(String value) { + public FiscalInfoMunicipalOptionsSpecialTaxRegimesDtoBuilder 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/FiscalInfoSaveRequestDto.java similarity index 85% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoSaveRequestDto.java index ba517e0..ea7f283 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoSaveRequestDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerFiscalInfoSaveRequestDto { +public class FiscalInfoSaveRequestDto { /** * Email used by Asaas to send invoice notifications and alerts @@ -200,12 +200,12 @@ public String getNationalPortalTaxCalculationRegime() { } // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoSaveRequestDtoBuilder { + public static class FiscalInfoSaveRequestDtoBuilder { private JsonNullable municipalInscription = JsonNullable.undefined(); @JsonProperty("municipalInscription") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder municipalInscription(String value) { + public FiscalInfoSaveRequestDtoBuilder municipalInscription(String value) { this.municipalInscription = JsonNullable.of(value); return this; } @@ -213,7 +213,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder municipalInscription(String va private JsonNullable culturalProjectsPromoter = JsonNullable.of(true); @JsonProperty("culturalProjectsPromoter") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder culturalProjectsPromoter(Boolean value) { + public FiscalInfoSaveRequestDtoBuilder culturalProjectsPromoter(Boolean value) { this.culturalProjectsPromoter = JsonNullable.of(value); return this; } @@ -221,7 +221,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder culturalProjectsPromoter(Boole private JsonNullable cnae = JsonNullable.undefined(); @JsonProperty("cnae") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder cnae(String value) { + public FiscalInfoSaveRequestDtoBuilder cnae(String value) { this.cnae = JsonNullable.of(value); return this; } @@ -229,7 +229,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder cnae(String value) { private JsonNullable specialTaxRegime = JsonNullable.undefined(); @JsonProperty("specialTaxRegime") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder specialTaxRegime(String value) { + public FiscalInfoSaveRequestDtoBuilder specialTaxRegime(String value) { this.specialTaxRegime = JsonNullable.of(value); return this; } @@ -237,7 +237,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder specialTaxRegime(String value) private JsonNullable serviceListItem = JsonNullable.undefined(); @JsonProperty("serviceListItem") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder serviceListItem(String value) { + public FiscalInfoSaveRequestDtoBuilder serviceListItem(String value) { this.serviceListItem = JsonNullable.of(value); return this; } @@ -245,7 +245,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder serviceListItem(String value) private JsonNullable nbsCode = JsonNullable.undefined(); @JsonProperty("nbsCode") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder nbsCode(String value) { + public FiscalInfoSaveRequestDtoBuilder nbsCode(String value) { this.nbsCode = JsonNullable.of(value); return this; } @@ -253,7 +253,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder nbsCode(String value) { private JsonNullable rpsSerie = JsonNullable.undefined(); @JsonProperty("rpsSerie") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder rpsSerie(String value) { + public FiscalInfoSaveRequestDtoBuilder rpsSerie(String value) { this.rpsSerie = JsonNullable.of(value); return this; } @@ -261,7 +261,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder rpsSerie(String value) { private JsonNullable rpsNumber = JsonNullable.undefined(); @JsonProperty("rpsNumber") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder rpsNumber(Long value) { + public FiscalInfoSaveRequestDtoBuilder rpsNumber(Long value) { this.rpsNumber = JsonNullable.of(value); return this; } @@ -269,7 +269,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder rpsNumber(Long value) { private JsonNullable loteNumber = JsonNullable.undefined(); @JsonProperty("loteNumber") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder loteNumber(Long value) { + public FiscalInfoSaveRequestDtoBuilder loteNumber(Long value) { this.loteNumber = JsonNullable.of(value); return this; } @@ -277,7 +277,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder loteNumber(Long value) { private JsonNullable username = JsonNullable.undefined(); @JsonProperty("username") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder username(String value) { + public FiscalInfoSaveRequestDtoBuilder username(String value) { this.username = JsonNullable.of(value); return this; } @@ -285,7 +285,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder username(String value) { private JsonNullable password = JsonNullable.undefined(); @JsonProperty("password") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder password(String value) { + public FiscalInfoSaveRequestDtoBuilder password(String value) { this.password = JsonNullable.of(value); return this; } @@ -293,7 +293,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder password(String value) { private JsonNullable accessToken = JsonNullable.undefined(); @JsonProperty("accessToken") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder accessToken(String value) { + public FiscalInfoSaveRequestDtoBuilder accessToken(String value) { this.accessToken = JsonNullable.of(value); return this; } @@ -301,7 +301,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder accessToken(String value) { private JsonNullable certificateFile = JsonNullable.undefined(); @JsonProperty("certificateFile") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder certificateFile(byte[] value) { + public FiscalInfoSaveRequestDtoBuilder certificateFile(byte[] value) { if (value == null) { throw new IllegalStateException("certificateFile cannot be null"); } @@ -312,7 +312,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder certificateFile(byte[] value) private JsonNullable certificatePassword = JsonNullable.undefined(); @JsonProperty("certificatePassword") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder certificatePassword(String value) { + public FiscalInfoSaveRequestDtoBuilder certificatePassword(String value) { this.certificatePassword = JsonNullable.of(value); return this; } @@ -320,7 +320,7 @@ public ApiCustomerFiscalInfoSaveRequestDtoBuilder certificatePassword(String val private JsonNullable nationalPortalTaxCalculationRegime = JsonNullable.undefined(); @JsonProperty("nationalPortalTaxCalculationRegime") - public ApiCustomerFiscalInfoSaveRequestDtoBuilder nationalPortalTaxCalculationRegime(String value) { + public FiscalInfoSaveRequestDtoBuilder 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/FiscalInfoUpdateUseNationalPortalRequestDto.java similarity index 87% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalRequestDto.java index 647794e..cfb467f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalRequestDto.java @@ -16,7 +16,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerFiscalInfoUpdateUseNationalPortalRequestDto { +public class FiscalInfoUpdateUseNationalPortalRequestDto { /** * Indicates whether the issuing of invoices through the national portal should be enabled or not. diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java b/src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java rename to src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalResponseDto.java index 2a67510..fbb903e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/FiscalInfoUpdateUseNationalPortalResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDto { +public class FiscalInfoUpdateUseNationalPortalResponseDto { /** * Status of the request to change the use status of national portal for issuing invoices. @@ -32,12 +32,12 @@ public Boolean getSuccess() { } // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDtoBuilder { + public static class FiscalInfoUpdateUseNationalPortalResponseDtoBuilder { private JsonNullable success = JsonNullable.undefined(); @JsonProperty("success") - public ApiCustomerFiscalInfoUpdateUseNationalPortalResponseDtoBuilder success(Boolean value) { + public FiscalInfoUpdateUseNationalPortalResponseDtoBuilder success(Boolean value) { this.success = 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/InstallmentDeleteResponseDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentDeleteResponseDto.java rename to src/main/java/com/asaas/apisdk/models/InstallmentDeleteResponseDto.java index ce8e316..40b4b97 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentDeleteResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiInstallmentDeleteResponseDto { +public class InstallmentDeleteResponseDto { /** * Indicates whether the installment plan is removed @@ -43,12 +43,12 @@ public String getId() { } // Overwrite lombok builder methods - public static class ApiInstallmentDeleteResponseDtoBuilder { + public static class InstallmentDeleteResponseDtoBuilder { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiInstallmentDeleteResponseDtoBuilder deleted(Boolean value) { + public InstallmentDeleteResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiInstallmentDeleteResponseDtoBuilder deleted(Boolean value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiInstallmentDeleteResponseDtoBuilder id(String value) { + public InstallmentDeleteResponseDtoBuilder 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/InstallmentGetResponseBillingType.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseBillingType.java rename to src/main/java/com/asaas/apisdk/models/InstallmentGetResponseBillingType.java index e0891c0..b90b269 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentGetResponseBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiInstallmentGetResponseBillingType { +public enum InstallmentGetResponseBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -26,8 +26,8 @@ public enum ApiInstallmentGetResponseBillingType { private final String value; @JsonCreator - public static ApiInstallmentGetResponseBillingType fromValue(String value) { - return Arrays.stream(ApiInstallmentGetResponseBillingType.values()) + 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/ApiInstallmentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentGetResponseDto.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/InstallmentGetResponseDto.java index b5c236e..129eb7e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentGetResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiInstallmentGetResponseDto { +public class InstallmentGetResponseDto { /** * Object type @@ -61,7 +61,7 @@ public class ApiInstallmentGetResponseDto { * Form of payment */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Bill settlement date on Asaas @@ -112,10 +112,13 @@ public class ApiInstallmentGetResponseDto { private JsonNullable transactionReceiptUrl; @JsonProperty("chargeback") - private JsonNullable chargeback; + private JsonNullable chargeback; + /** + * Credit card information + */ @JsonProperty("creditCard") - private JsonNullable creditCard; + private JsonNullable creditCard; /** * Indicates whether the installment has been removed @@ -127,7 +130,7 @@ public class ApiInstallmentGetResponseDto { * Refunds information */ @JsonProperty("refunds") - private JsonNullable> refunds; + private JsonNullable> refunds; @JsonIgnore public String getObject() { @@ -160,7 +163,7 @@ public Long getInstallmentCount() { } @JsonIgnore - public ApiInstallmentGetResponseBillingType getBillingType() { + public InstallmentGetResponseBillingType getBillingType() { return billingType.orElse(null); } @@ -205,12 +208,12 @@ public String getTransactionReceiptUrl() { } @JsonIgnore - public ApiPaymentChargebackResponseDto getChargeback() { + public PaymentChargebackResponseDto getChargeback() { return chargeback.orElse(null); } @JsonIgnore - public ApiPaymentSaveWithCreditCardCreditCardDto getCreditCard() { + public PaymentSaveWithCreditCardCreditCardDto getCreditCard() { return creditCard.orElse(null); } @@ -220,17 +223,17 @@ public Boolean getDeleted() { } @JsonIgnore - public List getRefunds() { + public List getRefunds() { return refunds.orElse(null); } // Overwrite lombok builder methods - public static class ApiInstallmentGetResponseDtoBuilder { + public static class InstallmentGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiInstallmentGetResponseDtoBuilder object(String value) { + public InstallmentGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -238,7 +241,7 @@ public ApiInstallmentGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiInstallmentGetResponseDtoBuilder id(String value) { + public InstallmentGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -246,7 +249,7 @@ public ApiInstallmentGetResponseDtoBuilder id(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiInstallmentGetResponseDtoBuilder value(Double value) { + public InstallmentGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -254,7 +257,7 @@ public ApiInstallmentGetResponseDtoBuilder value(Double value) { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiInstallmentGetResponseDtoBuilder netValue(Double value) { + public InstallmentGetResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -262,7 +265,7 @@ public ApiInstallmentGetResponseDtoBuilder netValue(Double value) { private JsonNullable paymentValue = JsonNullable.undefined(); @JsonProperty("paymentValue") - public ApiInstallmentGetResponseDtoBuilder paymentValue(Double value) { + public InstallmentGetResponseDtoBuilder paymentValue(Double value) { this.paymentValue = JsonNullable.of(value); return this; } @@ -270,15 +273,15 @@ public ApiInstallmentGetResponseDtoBuilder paymentValue(Double value) { private JsonNullable installmentCount = JsonNullable.undefined(); @JsonProperty("installmentCount") - public ApiInstallmentGetResponseDtoBuilder installmentCount(Long value) { + public InstallmentGetResponseDtoBuilder installmentCount(Long value) { this.installmentCount = JsonNullable.of(value); return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ApiInstallmentGetResponseDtoBuilder billingType(ApiInstallmentGetResponseBillingType value) { + public InstallmentGetResponseDtoBuilder billingType(InstallmentGetResponseBillingType value) { this.billingType = JsonNullable.of(value); return this; } @@ -286,7 +289,7 @@ public ApiInstallmentGetResponseDtoBuilder billingType(ApiInstallmentGetResponse private JsonNullable paymentDate = JsonNullable.undefined(); @JsonProperty("paymentDate") - public ApiInstallmentGetResponseDtoBuilder paymentDate(String value) { + public InstallmentGetResponseDtoBuilder paymentDate(String value) { this.paymentDate = JsonNullable.of(value); return this; } @@ -294,7 +297,7 @@ public ApiInstallmentGetResponseDtoBuilder paymentDate(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiInstallmentGetResponseDtoBuilder description(String value) { + public InstallmentGetResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -302,7 +305,7 @@ public ApiInstallmentGetResponseDtoBuilder description(String value) { private JsonNullable expirationDay = JsonNullable.undefined(); @JsonProperty("expirationDay") - public ApiInstallmentGetResponseDtoBuilder expirationDay(Long value) { + public InstallmentGetResponseDtoBuilder expirationDay(Long value) { this.expirationDay = JsonNullable.of(value); return this; } @@ -310,7 +313,7 @@ public ApiInstallmentGetResponseDtoBuilder expirationDay(Long value) { private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiInstallmentGetResponseDtoBuilder dateCreated(String value) { + public InstallmentGetResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -318,7 +321,7 @@ public ApiInstallmentGetResponseDtoBuilder dateCreated(String value) { private JsonNullable customer = JsonNullable.undefined(); @JsonProperty("customer") - public ApiInstallmentGetResponseDtoBuilder customer(String value) { + public InstallmentGetResponseDtoBuilder customer(String value) { this.customer = JsonNullable.of(value); return this; } @@ -326,7 +329,7 @@ public ApiInstallmentGetResponseDtoBuilder customer(String value) { private JsonNullable paymentLink = JsonNullable.undefined(); @JsonProperty("paymentLink") - public ApiInstallmentGetResponseDtoBuilder paymentLink(String value) { + public InstallmentGetResponseDtoBuilder paymentLink(String value) { this.paymentLink = JsonNullable.of(value); return this; } @@ -334,7 +337,7 @@ public ApiInstallmentGetResponseDtoBuilder paymentLink(String value) { private JsonNullable checkoutSession = JsonNullable.undefined(); @JsonProperty("checkoutSession") - public ApiInstallmentGetResponseDtoBuilder checkoutSession(String value) { + public InstallmentGetResponseDtoBuilder checkoutSession(String value) { this.checkoutSession = JsonNullable.of(value); return this; } @@ -342,23 +345,23 @@ public ApiInstallmentGetResponseDtoBuilder checkoutSession(String value) { private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); @JsonProperty("transactionReceiptUrl") - public ApiInstallmentGetResponseDtoBuilder transactionReceiptUrl(String value) { + public InstallmentGetResponseDtoBuilder transactionReceiptUrl(String value) { this.transactionReceiptUrl = JsonNullable.of(value); return this; } - private JsonNullable chargeback = JsonNullable.undefined(); + private JsonNullable chargeback = JsonNullable.undefined(); @JsonProperty("chargeback") - public ApiInstallmentGetResponseDtoBuilder chargeback(ApiPaymentChargebackResponseDto value) { + public InstallmentGetResponseDtoBuilder chargeback(PaymentChargebackResponseDto value) { this.chargeback = JsonNullable.of(value); return this; } - private JsonNullable creditCard = JsonNullable.undefined(); + private JsonNullable creditCard = JsonNullable.undefined(); @JsonProperty("creditCard") - public ApiInstallmentGetResponseDtoBuilder creditCard(ApiPaymentSaveWithCreditCardCreditCardDto value) { + public InstallmentGetResponseDtoBuilder creditCard(PaymentSaveWithCreditCardCreditCardDto value) { this.creditCard = JsonNullable.of(value); return this; } @@ -366,15 +369,15 @@ public ApiInstallmentGetResponseDtoBuilder creditCard(ApiPaymentSaveWithCreditCa private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiInstallmentGetResponseDtoBuilder deleted(Boolean value) { + public InstallmentGetResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } - private JsonNullable> refunds = JsonNullable.undefined(); + private JsonNullable> refunds = JsonNullable.undefined(); @JsonProperty("refunds") - public ApiInstallmentGetResponseDtoBuilder refunds(List value) { + public InstallmentGetResponseDtoBuilder 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/InstallmentListPaymentsRequestPaymentStatus.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentListPaymentsRequestPaymentStatus.java rename to src/main/java/com/asaas/apisdk/models/InstallmentListPaymentsRequestPaymentStatus.java index 12c0cf3..c9ff49a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentListPaymentsRequestPaymentStatus.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentListPaymentsRequestPaymentStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiInstallmentListPaymentsRequestPaymentStatus { +public enum InstallmentListPaymentsRequestPaymentStatus { PENDING("PENDING"), RECEIVED("RECEIVED"), CONFIRMED("CONFIRMED"), @@ -33,8 +33,8 @@ public enum ApiInstallmentListPaymentsRequestPaymentStatus { private final String value; @JsonCreator - public static ApiInstallmentListPaymentsRequestPaymentStatus fromValue(String value) { - return Arrays.stream(ApiInstallmentListPaymentsRequestPaymentStatus.values()) + 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/ApiTransferListResponseDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentListResponseDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiTransferListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/InstallmentListResponseDto.java index 3b5d5a2..fa5d292 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiTransferListResponseDto { +public class InstallmentListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiTransferListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiTransferListResponseDtoBuilder { + public static class InstallmentListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiTransferListResponseDtoBuilder object(String value) { + public InstallmentListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiTransferListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiTransferListResponseDtoBuilder hasMore(Boolean value) { + public InstallmentListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiTransferListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiTransferListResponseDtoBuilder totalCount(Long value) { + public InstallmentListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiTransferListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiTransferListResponseDtoBuilder limit(Long value) { + public InstallmentListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiTransferListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiTransferListResponseDtoBuilder offset(Long value) { + public InstallmentListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiTransferListResponseDtoBuilder data(List value) { + 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/ApiInstallmentRefundResponseDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentRefundResponseDto.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponseDto.java rename to src/main/java/com/asaas/apisdk/models/InstallmentRefundResponseDto.java index 2fb7f2d..5dea015 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentRefundResponseDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Refunds information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiInstallmentRefundResponseDto { +public class InstallmentRefundResponseDto { /** * Refund creation date @@ -31,7 +34,7 @@ public class ApiInstallmentRefundResponseDto { * Refund status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Refund value @@ -67,7 +70,7 @@ public class ApiInstallmentRefundResponseDto { * Refunded Splits, if any */ @JsonProperty("refundedSplits") - private JsonNullable> refundedSplits; + private JsonNullable> refundedSplits; /** * Unique payment identifier in Asaas @@ -81,7 +84,7 @@ public String getDateCreated() { } @JsonIgnore - public ApiInstallmentRefundResponsePaymentRefundStatus getStatus() { + public InstallmentRefundResponsePaymentRefundStatus getStatus() { return status.orElse(null); } @@ -111,7 +114,7 @@ public String getTransactionReceiptUrl() { } @JsonIgnore - public List getRefundedSplits() { + public List getRefundedSplits() { return refundedSplits.orElse(null); } @@ -121,20 +124,20 @@ public String getPaymentId() { } // Overwrite lombok builder methods - public static class ApiInstallmentRefundResponseDtoBuilder { + public static class InstallmentRefundResponseDtoBuilder { private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiInstallmentRefundResponseDtoBuilder dateCreated(String value) { + public InstallmentRefundResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiInstallmentRefundResponseDtoBuilder status(ApiInstallmentRefundResponsePaymentRefundStatus value) { + public InstallmentRefundResponseDtoBuilder status(InstallmentRefundResponsePaymentRefundStatus value) { this.status = JsonNullable.of(value); return this; } @@ -142,7 +145,7 @@ public ApiInstallmentRefundResponseDtoBuilder status(ApiInstallmentRefundRespons private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiInstallmentRefundResponseDtoBuilder value(Double value) { + public InstallmentRefundResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -150,7 +153,7 @@ public ApiInstallmentRefundResponseDtoBuilder value(Double value) { private JsonNullable endToEndIdentifier = JsonNullable.undefined(); @JsonProperty("endToEndIdentifier") - public ApiInstallmentRefundResponseDtoBuilder endToEndIdentifier(String value) { + public InstallmentRefundResponseDtoBuilder endToEndIdentifier(String value) { this.endToEndIdentifier = JsonNullable.of(value); return this; } @@ -158,7 +161,7 @@ public ApiInstallmentRefundResponseDtoBuilder endToEndIdentifier(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiInstallmentRefundResponseDtoBuilder description(String value) { + public InstallmentRefundResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -166,7 +169,7 @@ public ApiInstallmentRefundResponseDtoBuilder description(String value) { private JsonNullable effectiveDate = JsonNullable.undefined(); @JsonProperty("effectiveDate") - public ApiInstallmentRefundResponseDtoBuilder effectiveDate(String value) { + public InstallmentRefundResponseDtoBuilder effectiveDate(String value) { this.effectiveDate = JsonNullable.of(value); return this; } @@ -174,15 +177,15 @@ public ApiInstallmentRefundResponseDtoBuilder effectiveDate(String value) { private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); @JsonProperty("transactionReceiptUrl") - public ApiInstallmentRefundResponseDtoBuilder transactionReceiptUrl(String value) { + public InstallmentRefundResponseDtoBuilder transactionReceiptUrl(String value) { this.transactionReceiptUrl = JsonNullable.of(value); return this; } - private JsonNullable> refundedSplits = JsonNullable.undefined(); + private JsonNullable> refundedSplits = JsonNullable.undefined(); @JsonProperty("refundedSplits") - public ApiInstallmentRefundResponseDtoBuilder refundedSplits(List value) { + public InstallmentRefundResponseDtoBuilder refundedSplits(List value) { this.refundedSplits = JsonNullable.of(value); return this; } @@ -190,7 +193,7 @@ public ApiInstallmentRefundResponseDtoBuilder refundedSplits(List paymentId = JsonNullable.undefined(); @JsonProperty("paymentId") - public ApiInstallmentRefundResponseDtoBuilder paymentId(String value) { + public InstallmentRefundResponseDtoBuilder paymentId(String value) { this.paymentId = 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/InstallmentRefundResponsePaymentRefundStatus.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponsePaymentRefundStatus.java rename to src/main/java/com/asaas/apisdk/models/InstallmentRefundResponsePaymentRefundStatus.java index a055a56..7fb589e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponsePaymentRefundStatus.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentRefundResponsePaymentRefundStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentRefundGetResponsePaymentRefundStatus { +public enum InstallmentRefundResponsePaymentRefundStatus { PENDING("PENDING"), AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION("AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION"), @@ -24,8 +24,8 @@ public enum ApiPaymentRefundGetResponsePaymentRefundStatus { private final String value; @JsonCreator - public static ApiPaymentRefundGetResponsePaymentRefundStatus fromValue(String value) { - return Arrays.stream(ApiPaymentRefundGetResponsePaymentRefundStatus.values()) + 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/ApiPaymentUpdateRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestBillingType.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestBillingType.java index 07a2952..05a4675 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentUpdateRequestBillingType { +public enum InstallmentSaveRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -23,8 +23,8 @@ public enum ApiPaymentUpdateRequestBillingType { private final String value; @JsonCreator - public static ApiPaymentUpdateRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentUpdateRequestBillingType.values()) + 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/ApiInstallmentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestDto.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestDto.java index 28f4f59..66b308e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSaveRequestDto.java @@ -20,7 +20,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiInstallmentSaveRequestDto { +public class InstallmentSaveRequestDto { /** * Number of installments @@ -44,7 +44,7 @@ public class ApiInstallmentSaveRequestDto { * Payment billing type */ @NonNull - private ApiInstallmentSaveRequestBillingType billingType; + private InstallmentSaveRequestBillingType billingType; /** * Due date of the first installment @@ -82,20 +82,29 @@ public class ApiInstallmentSaveRequestDto { @JsonProperty("paymentExternalReference") private JsonNullable paymentExternalReference; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; /** * Split Settings */ @JsonProperty("splits") - private JsonNullable> splits; + private JsonNullable> splits; @JsonIgnore public Double getTotalValue() { @@ -123,32 +132,32 @@ public String getPaymentExternalReference() { } @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { + public PaymentInterestRequestDto getInterest() { return interest.orElse(null); } @JsonIgnore - public ApiPaymentFineRequestDto getFine() { + public PaymentFineRequestDto getFine() { return fine.orElse(null); } @JsonIgnore - public List getSplits() { + public List getSplits() { return splits.orElse(null); } // Overwrite lombok builder methods - public static class ApiInstallmentSaveRequestDtoBuilder { + public static class InstallmentSaveRequestDtoBuilder { private JsonNullable totalValue = JsonNullable.undefined(); @JsonProperty("totalValue") - public ApiInstallmentSaveRequestDtoBuilder totalValue(Double value) { + public InstallmentSaveRequestDtoBuilder totalValue(Double value) { this.totalValue = JsonNullable.of(value); return this; } @@ -156,7 +165,7 @@ public ApiInstallmentSaveRequestDtoBuilder totalValue(Double value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiInstallmentSaveRequestDtoBuilder description(String value) { + public InstallmentSaveRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -164,7 +173,7 @@ public ApiInstallmentSaveRequestDtoBuilder description(String value) { private JsonNullable postalService = JsonNullable.undefined(); @JsonProperty("postalService") - public ApiInstallmentSaveRequestDtoBuilder postalService(Boolean value) { + public InstallmentSaveRequestDtoBuilder postalService(Boolean value) { this.postalService = JsonNullable.of(value); return this; } @@ -172,7 +181,7 @@ public ApiInstallmentSaveRequestDtoBuilder postalService(Boolean value) { private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiInstallmentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + public InstallmentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } @@ -180,39 +189,39 @@ public ApiInstallmentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancell private JsonNullable paymentExternalReference = JsonNullable.undefined(); @JsonProperty("paymentExternalReference") - public ApiInstallmentSaveRequestDtoBuilder paymentExternalReference(String value) { + public InstallmentSaveRequestDtoBuilder paymentExternalReference(String value) { this.paymentExternalReference = JsonNullable.of(value); return this; } - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiInstallmentSaveRequestDtoBuilder discount(ApiPaymentDiscountDto value) { + public InstallmentSaveRequestDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiInstallmentSaveRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { + public InstallmentSaveRequestDtoBuilder interest(PaymentInterestRequestDto value) { this.interest = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiInstallmentSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { + public InstallmentSaveRequestDtoBuilder fine(PaymentFineRequestDto value) { this.fine = JsonNullable.of(value); return this; } - private JsonNullable> splits = JsonNullable.undefined(); + private JsonNullable> splits = JsonNullable.undefined(); @JsonProperty("splits") - public ApiInstallmentSaveRequestDtoBuilder splits(List value) { + 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/ApiInstallmentSaveWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestDto.java similarity index 57% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestDto.java rename to src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestDto.java index 9b5bffe..a5e759e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveWithCreditCardRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSaveWithCreditCardRequestDto.java @@ -3,7 +3,6 @@ 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; @@ -21,7 +20,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiInstallmentSaveWithCreditCardRequestDto { +public class InstallmentSaveWithCreditCardRequestDto { /** * Number of installments @@ -45,7 +44,7 @@ public class ApiInstallmentSaveWithCreditCardRequestDto { * Payment billing type */ @NonNull - private ApiInstallmentSaveWithCreditCardRequestBillingType billingType; + private InstallmentSaveWithCreditCardRequestBillingType billingType; /** * Due date of the first installment @@ -53,11 +52,17 @@ public class ApiInstallmentSaveWithCreditCardRequestDto { @NonNull private String dueDate; - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardRequestDto creditCard; + /** + * Credit card information + */ + @NonNull + private CreditCardRequestDto creditCard; - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardHolderInfoRequestDto creditCardHolderInfo; + /** + * 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. @@ -95,20 +100,29 @@ public class ApiInstallmentSaveWithCreditCardRequestDto { @JsonProperty("paymentExternalReference") private JsonNullable paymentExternalReference; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; /** * Split Settings */ @JsonProperty("splits") - private JsonNullable> splits; + private JsonNullable> splits; /** * Credit card token for using the credit card tokenization functionality. If informed, the fields creditCard and creditCardHolderInfo are not mandatory. @@ -148,22 +162,22 @@ public String getPaymentExternalReference() { } @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { + public PaymentInterestRequestDto getInterest() { return interest.orElse(null); } @JsonIgnore - public ApiPaymentFineRequestDto getFine() { + public PaymentFineRequestDto getFine() { return fine.orElse(null); } @JsonIgnore - public List getSplits() { + public List getSplits() { return splits.orElse(null); } @@ -178,36 +192,12 @@ public Boolean getAuthorizeOnly() { } // Overwrite lombok builder methods - public static class ApiInstallmentSaveWithCreditCardRequestDtoBuilder { - - /** - * Flag to track if the creditCard property has been set. - */ - private boolean creditCard$set = false; - - /** - * Flag to track if the creditCardHolderInfo property has been set. - */ - private boolean creditCardHolderInfo$set = false; - - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder creditCard(ApiCreditCardRequestDto creditCard) { - this.creditCard$set = true; - this.creditCard = creditCard; - return this; - } - - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder creditCardHolderInfo( - ApiCreditCardHolderInfoRequestDto creditCardHolderInfo - ) { - this.creditCardHolderInfo$set = true; - this.creditCardHolderInfo = creditCardHolderInfo; - return this; - } + public static class InstallmentSaveWithCreditCardRequestDtoBuilder { private JsonNullable totalValue = JsonNullable.undefined(); @JsonProperty("totalValue") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder totalValue(Double value) { + public InstallmentSaveWithCreditCardRequestDtoBuilder totalValue(Double value) { this.totalValue = JsonNullable.of(value); return this; } @@ -215,7 +205,7 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder totalValue(Double value private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder description(String value) { + public InstallmentSaveWithCreditCardRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -223,7 +213,7 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder description(String valu private JsonNullable postalService = JsonNullable.undefined(); @JsonProperty("postalService") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder postalService(Boolean value) { + public InstallmentSaveWithCreditCardRequestDtoBuilder postalService(Boolean value) { this.postalService = JsonNullable.of(value); return this; } @@ -231,7 +221,7 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder postalService(Boolean v private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + public InstallmentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } @@ -239,39 +229,39 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegis private JsonNullable paymentExternalReference = JsonNullable.undefined(); @JsonProperty("paymentExternalReference") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder paymentExternalReference(String value) { + public InstallmentSaveWithCreditCardRequestDtoBuilder paymentExternalReference(String value) { this.paymentExternalReference = JsonNullable.of(value); return this; } - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDiscountDto value) { + public InstallmentSaveWithCreditCardRequestDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { + public InstallmentSaveWithCreditCardRequestDtoBuilder interest(PaymentInterestRequestDto value) { this.interest = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { + public InstallmentSaveWithCreditCardRequestDtoBuilder fine(PaymentFineRequestDto value) { this.fine = JsonNullable.of(value); return this; } - private JsonNullable> splits = JsonNullable.undefined(); + private JsonNullable> splits = JsonNullable.undefined(); @JsonProperty("splits") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder splits(List value) { + public InstallmentSaveWithCreditCardRequestDtoBuilder splits(List value) { this.splits = JsonNullable.of(value); return this; } @@ -279,7 +269,7 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder splits(List creditCardToken = JsonNullable.undefined(); @JsonProperty("creditCardToken") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder creditCardToken(String value) { + public InstallmentSaveWithCreditCardRequestDtoBuilder creditCardToken(String value) { this.creditCardToken = JsonNullable.of(value); return this; } @@ -287,39 +277,9 @@ public ApiInstallmentSaveWithCreditCardRequestDtoBuilder creditCardToken(String private JsonNullable authorizeOnly = JsonNullable.undefined(); @JsonProperty("authorizeOnly") - public ApiInstallmentSaveWithCreditCardRequestDtoBuilder authorizeOnly(Boolean value) { + public InstallmentSaveWithCreditCardRequestDtoBuilder 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/InstallmentSplitGetResponseDto.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponseDto.java index 0cdf7f6..152c2fb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Split array + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiInstallmentSplitGetResponseDto { +public class InstallmentSplitGetResponseDto { /** * Unique split identifier in Asaas @@ -54,13 +57,13 @@ public class ApiInstallmentSplitGetResponseDto { * Reason for canceling the split */ @JsonProperty("cancellationReason") - private JsonNullable cancellationReason; + private JsonNullable cancellationReason; /** * Split status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Unique identifier of split in your system @@ -106,12 +109,12 @@ public Double getTotalValue() { } @JsonIgnore - public ApiInstallmentSplitGetResponsePaymentSplitCancellationReason getCancellationReason() { + public InstallmentSplitGetResponsePaymentSplitCancellationReason getCancellationReason() { return cancellationReason.orElse(null); } @JsonIgnore - public ApiInstallmentSplitGetResponsePaymentSplitStatus getStatus() { + public InstallmentSplitGetResponsePaymentSplitStatus getStatus() { return status.orElse(null); } @@ -131,12 +134,12 @@ public Long getInstallmentNumber() { } // Overwrite lombok builder methods - public static class ApiInstallmentSplitGetResponseDtoBuilder { + public static class InstallmentSplitGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiInstallmentSplitGetResponseDtoBuilder id(String value) { + public InstallmentSplitGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -144,7 +147,7 @@ public ApiInstallmentSplitGetResponseDtoBuilder id(String value) { private JsonNullable walletId = JsonNullable.undefined(); @JsonProperty("walletId") - public ApiInstallmentSplitGetResponseDtoBuilder walletId(String value) { + public InstallmentSplitGetResponseDtoBuilder walletId(String value) { this.walletId = JsonNullable.of(value); return this; } @@ -152,7 +155,7 @@ public ApiInstallmentSplitGetResponseDtoBuilder walletId(String value) { private JsonNullable fixedValue = JsonNullable.undefined(); @JsonProperty("fixedValue") - public ApiInstallmentSplitGetResponseDtoBuilder fixedValue(Double value) { + public InstallmentSplitGetResponseDtoBuilder fixedValue(Double value) { this.fixedValue = JsonNullable.of(value); return this; } @@ -160,7 +163,7 @@ public ApiInstallmentSplitGetResponseDtoBuilder fixedValue(Double value) { private JsonNullable percentualValue = JsonNullable.undefined(); @JsonProperty("percentualValue") - public ApiInstallmentSplitGetResponseDtoBuilder percentualValue(Double value) { + public InstallmentSplitGetResponseDtoBuilder percentualValue(Double value) { this.percentualValue = JsonNullable.of(value); return this; } @@ -168,26 +171,26 @@ public ApiInstallmentSplitGetResponseDtoBuilder percentualValue(Double value) { private JsonNullable totalValue = JsonNullable.undefined(); @JsonProperty("totalValue") - public ApiInstallmentSplitGetResponseDtoBuilder totalValue(Double value) { + public InstallmentSplitGetResponseDtoBuilder totalValue(Double value) { this.totalValue = JsonNullable.of(value); return this; } - private JsonNullable cancellationReason = + private JsonNullable cancellationReason = JsonNullable.undefined(); @JsonProperty("cancellationReason") - public ApiInstallmentSplitGetResponseDtoBuilder cancellationReason( - ApiInstallmentSplitGetResponsePaymentSplitCancellationReason value + public InstallmentSplitGetResponseDtoBuilder cancellationReason( + InstallmentSplitGetResponsePaymentSplitCancellationReason value ) { this.cancellationReason = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiInstallmentSplitGetResponseDtoBuilder status(ApiInstallmentSplitGetResponsePaymentSplitStatus value) { + public InstallmentSplitGetResponseDtoBuilder status(InstallmentSplitGetResponsePaymentSplitStatus value) { this.status = JsonNullable.of(value); return this; } @@ -195,7 +198,7 @@ public ApiInstallmentSplitGetResponseDtoBuilder status(ApiInstallmentSplitGetRes private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiInstallmentSplitGetResponseDtoBuilder externalReference(String value) { + public InstallmentSplitGetResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -203,7 +206,7 @@ public ApiInstallmentSplitGetResponseDtoBuilder externalReference(String value) private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiInstallmentSplitGetResponseDtoBuilder description(String value) { + public InstallmentSplitGetResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -211,7 +214,7 @@ public ApiInstallmentSplitGetResponseDtoBuilder description(String value) { private JsonNullable installmentNumber = JsonNullable.undefined(); @JsonProperty("installmentNumber") - public ApiInstallmentSplitGetResponseDtoBuilder installmentNumber(Long value) { + public InstallmentSplitGetResponseDtoBuilder 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/InstallmentSplitGetResponsePaymentSplitCancellationReason.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.java rename to src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.java index 7413d16..d1ee416 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitCancellationReason.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiInstallmentSplitGetResponsePaymentSplitCancellationReason { +public enum InstallmentSplitGetResponsePaymentSplitCancellationReason { PAYMENT_DELETED("PAYMENT_DELETED"), PAYMENT_OVERDUE("PAYMENT_OVERDUE"), PAYMENT_RECEIVED_IN_CASH("PAYMENT_RECEIVED_IN_CASH"), @@ -25,8 +25,8 @@ public enum ApiInstallmentSplitGetResponsePaymentSplitCancellationReason { private final String value; @JsonCreator - public static ApiInstallmentSplitGetResponsePaymentSplitCancellationReason fromValue(String value) { - return Arrays.stream(ApiInstallmentSplitGetResponsePaymentSplitCancellationReason.values()) + 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/ApiInstallmentSplitGetResponsePaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitStatus.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.java rename to src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitStatus.java index db988a1..4c078f1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitGetResponsePaymentSplitStatus.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSplitGetResponsePaymentSplitStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiInstallmentSplitGetResponsePaymentSplitStatus { +public enum InstallmentSplitGetResponsePaymentSplitStatus { PENDING("PENDING"), AWAITING_CREDIT("AWAITING_CREDIT"), CANCELLED("CANCELLED"), @@ -25,8 +25,8 @@ public enum ApiInstallmentSplitGetResponsePaymentSplitStatus { private final String value; @JsonCreator - public static ApiInstallmentSplitGetResponsePaymentSplitStatus fromValue(String value) { - return Arrays.stream(ApiInstallmentSplitGetResponsePaymentSplitStatus.values()) + 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/ApiInstallmentSplitRequestDto.java b/src/main/java/com/asaas/apisdk/models/InstallmentSplitRequestDto.java similarity index 85% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitRequestDto.java rename to src/main/java/com/asaas/apisdk/models/InstallmentSplitRequestDto.java index fca329d..5c54f5c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSplitRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentSplitRequestDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Split Settings + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiInstallmentSplitRequestDto { +public class InstallmentSplitRequestDto { /** * Asaas wallet identifier that will be transferred @@ -94,12 +97,12 @@ public Long getInstallmentNumber() { } // Overwrite lombok builder methods - public static class ApiInstallmentSplitRequestDtoBuilder { + public static class InstallmentSplitRequestDtoBuilder { private JsonNullable fixedValue = JsonNullable.undefined(); @JsonProperty("fixedValue") - public ApiInstallmentSplitRequestDtoBuilder fixedValue(Double value) { + public InstallmentSplitRequestDtoBuilder fixedValue(Double value) { this.fixedValue = JsonNullable.of(value); return this; } @@ -107,7 +110,7 @@ public ApiInstallmentSplitRequestDtoBuilder fixedValue(Double value) { private JsonNullable percentualValue = JsonNullable.undefined(); @JsonProperty("percentualValue") - public ApiInstallmentSplitRequestDtoBuilder percentualValue(Double value) { + public InstallmentSplitRequestDtoBuilder percentualValue(Double value) { this.percentualValue = JsonNullable.of(value); return this; } @@ -115,7 +118,7 @@ public ApiInstallmentSplitRequestDtoBuilder percentualValue(Double value) { private JsonNullable totalFixedValue = JsonNullable.undefined(); @JsonProperty("totalFixedValue") - public ApiInstallmentSplitRequestDtoBuilder totalFixedValue(Double value) { + public InstallmentSplitRequestDtoBuilder totalFixedValue(Double value) { this.totalFixedValue = JsonNullable.of(value); return this; } @@ -123,7 +126,7 @@ public ApiInstallmentSplitRequestDtoBuilder totalFixedValue(Double value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiInstallmentSplitRequestDtoBuilder externalReference(String value) { + public InstallmentSplitRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -131,7 +134,7 @@ public ApiInstallmentSplitRequestDtoBuilder externalReference(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiInstallmentSplitRequestDtoBuilder description(String value) { + public InstallmentSplitRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -139,7 +142,7 @@ public ApiInstallmentSplitRequestDtoBuilder description(String value) { private JsonNullable installmentNumber = JsonNullable.undefined(); @JsonProperty("installmentNumber") - public ApiInstallmentSplitRequestDtoBuilder installmentNumber(Long value) { + public InstallmentSplitRequestDtoBuilder 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/InstallmentUpdateSplitRequestDto.java similarity index 63% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitRequestDto.java rename to src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitRequestDto.java index 0a552dd..b5a5666 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitRequestDto.java @@ -19,26 +19,26 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiInstallmentUpdateSplitRequestDto { +public class InstallmentUpdateSplitRequestDto { /** * Split data to update */ @JsonProperty("splits") - private JsonNullable> splits; + private JsonNullable> splits; @JsonIgnore - public List getSplits() { + public List getSplits() { return splits.orElse(null); } // Overwrite lombok builder methods - public static class ApiInstallmentUpdateSplitRequestDtoBuilder { + public static class InstallmentUpdateSplitRequestDtoBuilder { - private JsonNullable> splits = JsonNullable.undefined(); + private JsonNullable> splits = JsonNullable.undefined(); @JsonProperty("splits") - public ApiInstallmentUpdateSplitRequestDtoBuilder splits(List value) { + public InstallmentUpdateSplitRequestDtoBuilder 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/InstallmentUpdateSplitResponseDto.java similarity index 61% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitResponseDto.java rename to src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitResponseDto.java index 3e3d63e..57afdaa 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentUpdateSplitResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/InstallmentUpdateSplitResponseDto.java @@ -19,26 +19,26 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiInstallmentUpdateSplitResponseDto { +public class InstallmentUpdateSplitResponseDto { /** * Split array */ @JsonProperty("splits") - private JsonNullable> splits; + private JsonNullable> splits; @JsonIgnore - public List getSplits() { + public List getSplits() { return splits.orElse(null); } // Overwrite lombok builder methods - public static class ApiInstallmentUpdateSplitResponseDtoBuilder { + public static class InstallmentUpdateSplitResponseDtoBuilder { - private JsonNullable> splits = JsonNullable.undefined(); + private JsonNullable> splits = JsonNullable.undefined(); @JsonProperty("splits") - public ApiInstallmentUpdateSplitResponseDtoBuilder splits(List value) { + public InstallmentUpdateSplitResponseDtoBuilder splits(List value) { this.splits = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceCancelRequestDto.java b/src/main/java/com/asaas/apisdk/models/InvoiceCancelRequestDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceCancelRequestDto.java rename to src/main/java/com/asaas/apisdk/models/InvoiceCancelRequestDto.java index 1afdce5..c56e094 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceCancelRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/InvoiceCancelRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerInvoiceCancelRequestDto { +public class InvoiceCancelRequestDto { /** * Cancel invoice only on Asaas @@ -32,12 +32,12 @@ public Boolean getCancelOnlyOnAsaas() { } // Overwrite lombok builder methods - public static class ApiCustomerInvoiceCancelRequestDtoBuilder { + public static class InvoiceCancelRequestDtoBuilder { private JsonNullable cancelOnlyOnAsaas = JsonNullable.undefined(); @JsonProperty("cancelOnlyOnAsaas") - public ApiCustomerInvoiceCancelRequestDtoBuilder cancelOnlyOnAsaas(Boolean value) { + public InvoiceCancelRequestDtoBuilder 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/InvoiceGetResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDto.java index 0b90b73..4e6aea6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerInvoiceGetResponseDto { +public class InvoiceGetResponseDto { /** * Object type @@ -36,7 +36,7 @@ public class ApiCustomerInvoiceGetResponseDto { * Invoice status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Unique customer identifier @@ -60,7 +60,7 @@ public class ApiCustomerInvoiceGetResponseDto { * Invoice type */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Description of the current status of the invoice @@ -146,8 +146,11 @@ public class ApiCustomerInvoiceGetResponseDto { @JsonProperty("externalReference") private JsonNullable externalReference; + /** + * Invoice taxes + */ @JsonProperty("taxes") - private JsonNullable taxes; + private JsonNullable taxes; /** * Unique municipal service identifier @@ -178,7 +181,7 @@ public String getId() { } @JsonIgnore - public ApiCustomerInvoiceGetResponseInvoiceStatus getStatus() { + public InvoiceGetResponseInvoiceStatus getStatus() { return status.orElse(null); } @@ -198,7 +201,7 @@ public String getInstallment() { } @JsonIgnore - public ApiCustomerInvoiceGetResponseDtoType getType() { + public InvoiceGetResponseDtoType getType() { return type.orElse(null); } @@ -273,7 +276,7 @@ public String getExternalReference() { } @JsonIgnore - public ApiCustomerInvoiceTaxesDto getTaxes() { + public InvoiceTaxesDto getTaxes() { return taxes.orElse(null); } @@ -293,12 +296,12 @@ public String getMunicipalServiceName() { } // Overwrite lombok builder methods - public static class ApiCustomerInvoiceGetResponseDtoBuilder { + public static class InvoiceGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiCustomerInvoiceGetResponseDtoBuilder object(String value) { + public InvoiceGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -306,15 +309,15 @@ public ApiCustomerInvoiceGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiCustomerInvoiceGetResponseDtoBuilder id(String value) { + public InvoiceGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiCustomerInvoiceGetResponseDtoBuilder status(ApiCustomerInvoiceGetResponseInvoiceStatus value) { + public InvoiceGetResponseDtoBuilder status(InvoiceGetResponseInvoiceStatus value) { this.status = JsonNullable.of(value); return this; } @@ -322,7 +325,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder status(ApiCustomerInvoiceGetRespo private JsonNullable customer = JsonNullable.undefined(); @JsonProperty("customer") - public ApiCustomerInvoiceGetResponseDtoBuilder customer(String value) { + public InvoiceGetResponseDtoBuilder customer(String value) { this.customer = JsonNullable.of(value); return this; } @@ -330,7 +333,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder customer(String value) { private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") - public ApiCustomerInvoiceGetResponseDtoBuilder payment(String value) { + public InvoiceGetResponseDtoBuilder payment(String value) { this.payment = JsonNullable.of(value); return this; } @@ -338,15 +341,15 @@ public ApiCustomerInvoiceGetResponseDtoBuilder payment(String value) { private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiCustomerInvoiceGetResponseDtoBuilder installment(String value) { + public InvoiceGetResponseDtoBuilder installment(String value) { this.installment = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiCustomerInvoiceGetResponseDtoBuilder type(ApiCustomerInvoiceGetResponseDtoType value) { + public InvoiceGetResponseDtoBuilder type(InvoiceGetResponseDtoType value) { this.type = JsonNullable.of(value); return this; } @@ -354,7 +357,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder type(ApiCustomerInvoiceGetRespons private JsonNullable statusDescription = JsonNullable.undefined(); @JsonProperty("statusDescription") - public ApiCustomerInvoiceGetResponseDtoBuilder statusDescription(String value) { + public InvoiceGetResponseDtoBuilder statusDescription(String value) { this.statusDescription = JsonNullable.of(value); return this; } @@ -362,7 +365,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder statusDescription(String value) { private JsonNullable serviceDescription = JsonNullable.undefined(); @JsonProperty("serviceDescription") - public ApiCustomerInvoiceGetResponseDtoBuilder serviceDescription(String value) { + public InvoiceGetResponseDtoBuilder serviceDescription(String value) { this.serviceDescription = JsonNullable.of(value); return this; } @@ -370,7 +373,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder serviceDescription(String value) private JsonNullable pdfUrl = JsonNullable.undefined(); @JsonProperty("pdfUrl") - public ApiCustomerInvoiceGetResponseDtoBuilder pdfUrl(String value) { + public InvoiceGetResponseDtoBuilder pdfUrl(String value) { this.pdfUrl = JsonNullable.of(value); return this; } @@ -378,7 +381,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder pdfUrl(String value) { private JsonNullable xmlUrl = JsonNullable.undefined(); @JsonProperty("xmlUrl") - public ApiCustomerInvoiceGetResponseDtoBuilder xmlUrl(String value) { + public InvoiceGetResponseDtoBuilder xmlUrl(String value) { this.xmlUrl = JsonNullable.of(value); return this; } @@ -386,7 +389,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder xmlUrl(String value) { private JsonNullable rpsSerie = JsonNullable.undefined(); @JsonProperty("rpsSerie") - public ApiCustomerInvoiceGetResponseDtoBuilder rpsSerie(String value) { + public InvoiceGetResponseDtoBuilder rpsSerie(String value) { this.rpsSerie = JsonNullable.of(value); return this; } @@ -394,7 +397,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder rpsSerie(String value) { private JsonNullable rpsNumber = JsonNullable.undefined(); @JsonProperty("rpsNumber") - public ApiCustomerInvoiceGetResponseDtoBuilder rpsNumber(String value) { + public InvoiceGetResponseDtoBuilder rpsNumber(String value) { this.rpsNumber = JsonNullable.of(value); return this; } @@ -402,7 +405,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder rpsNumber(String value) { private JsonNullable number = JsonNullable.undefined(); @JsonProperty("number") - public ApiCustomerInvoiceGetResponseDtoBuilder number(String value) { + public InvoiceGetResponseDtoBuilder number(String value) { this.number = JsonNullable.of(value); return this; } @@ -410,7 +413,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder number(String value) { private JsonNullable validationCode = JsonNullable.undefined(); @JsonProperty("validationCode") - public ApiCustomerInvoiceGetResponseDtoBuilder validationCode(String value) { + public InvoiceGetResponseDtoBuilder validationCode(String value) { this.validationCode = JsonNullable.of(value); return this; } @@ -418,7 +421,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder validationCode(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiCustomerInvoiceGetResponseDtoBuilder value(Double value) { + public InvoiceGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -426,7 +429,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder value(Double value) { private JsonNullable deductions = JsonNullable.undefined(); @JsonProperty("deductions") - public ApiCustomerInvoiceGetResponseDtoBuilder deductions(Double value) { + public InvoiceGetResponseDtoBuilder deductions(Double value) { this.deductions = JsonNullable.of(value); return this; } @@ -434,7 +437,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder deductions(Double value) { private JsonNullable effectiveDate = JsonNullable.undefined(); @JsonProperty("effectiveDate") - public ApiCustomerInvoiceGetResponseDtoBuilder effectiveDate(String value) { + public InvoiceGetResponseDtoBuilder effectiveDate(String value) { this.effectiveDate = JsonNullable.of(value); return this; } @@ -442,7 +445,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder effectiveDate(String value) { private JsonNullable observations = JsonNullable.undefined(); @JsonProperty("observations") - public ApiCustomerInvoiceGetResponseDtoBuilder observations(String value) { + public InvoiceGetResponseDtoBuilder observations(String value) { this.observations = JsonNullable.of(value); return this; } @@ -450,7 +453,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder observations(String value) { private JsonNullable estimatedTaxesDescription = JsonNullable.undefined(); @JsonProperty("estimatedTaxesDescription") - public ApiCustomerInvoiceGetResponseDtoBuilder estimatedTaxesDescription(String value) { + public InvoiceGetResponseDtoBuilder estimatedTaxesDescription(String value) { this.estimatedTaxesDescription = JsonNullable.of(value); return this; } @@ -458,15 +461,15 @@ public ApiCustomerInvoiceGetResponseDtoBuilder estimatedTaxesDescription(String private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiCustomerInvoiceGetResponseDtoBuilder externalReference(String value) { + public InvoiceGetResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } - private JsonNullable taxes = JsonNullable.undefined(); + private JsonNullable taxes = JsonNullable.undefined(); @JsonProperty("taxes") - public ApiCustomerInvoiceGetResponseDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { + public InvoiceGetResponseDtoBuilder taxes(InvoiceTaxesDto value) { this.taxes = JsonNullable.of(value); return this; } @@ -474,7 +477,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder taxes(ApiCustomerInvoiceTaxesDto private JsonNullable municipalServiceId = JsonNullable.undefined(); @JsonProperty("municipalServiceId") - public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceId(String value) { + public InvoiceGetResponseDtoBuilder municipalServiceId(String value) { this.municipalServiceId = JsonNullable.of(value); return this; } @@ -482,7 +485,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceId(String value) private JsonNullable municipalServiceCode = JsonNullable.undefined(); @JsonProperty("municipalServiceCode") - public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceCode(String value) { + public InvoiceGetResponseDtoBuilder municipalServiceCode(String value) { this.municipalServiceCode = JsonNullable.of(value); return this; } @@ -490,7 +493,7 @@ public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceCode(String value private JsonNullable municipalServiceName = JsonNullable.undefined(); @JsonProperty("municipalServiceName") - public ApiCustomerInvoiceGetResponseDtoBuilder municipalServiceName(String value) { + public InvoiceGetResponseDtoBuilder 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/InvoiceGetResponseDtoType.java similarity index 71% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDtoType.java rename to src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDtoType.java index e26cf61..08d034f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseDtoType.java +++ b/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseDtoType.java @@ -13,15 +13,15 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerInvoiceGetResponseDtoType { +public enum InvoiceGetResponseDtoType { NFS_E("NFS-e"); @JsonValue private final String value; @JsonCreator - public static ApiCustomerInvoiceGetResponseDtoType fromValue(String value) { - return Arrays.stream(ApiCustomerInvoiceGetResponseDtoType.values()) + 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/ApiCustomerInvoiceGetResponseInvoiceStatus.java b/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseInvoiceStatus.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseInvoiceStatus.java rename to src/main/java/com/asaas/apisdk/models/InvoiceGetResponseInvoiceStatus.java index 93077c5..71c3abe 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceGetResponseInvoiceStatus.java +++ b/src/main/java/com/asaas/apisdk/models/InvoiceGetResponseInvoiceStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerInvoiceGetResponseInvoiceStatus { +public enum InvoiceGetResponseInvoiceStatus { SCHEDULED("SCHEDULED"), AUTHORIZED("AUTHORIZED"), PROCESSING_CANCELLATION("PROCESSING_CANCELLATION"), @@ -25,8 +25,8 @@ public enum ApiCustomerInvoiceGetResponseInvoiceStatus { private final String value; @JsonCreator - public static ApiCustomerInvoiceGetResponseInvoiceStatus fromValue(String value) { - return Arrays.stream(ApiCustomerInvoiceGetResponseInvoiceStatus.values()) + 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/ApiCustomerInvoiceListRequestInvoiceStatus.java b/src/main/java/com/asaas/apisdk/models/InvoiceListRequestInvoiceStatus.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListRequestInvoiceStatus.java rename to src/main/java/com/asaas/apisdk/models/InvoiceListRequestInvoiceStatus.java index 114ae5a..f4d73c0 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceListRequestInvoiceStatus.java +++ b/src/main/java/com/asaas/apisdk/models/InvoiceListRequestInvoiceStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCustomerInvoiceListRequestInvoiceStatus { +public enum InvoiceListRequestInvoiceStatus { SCHEDULED("SCHEDULED"), AUTHORIZED("AUTHORIZED"), PROCESSING_CANCELLATION("PROCESSING_CANCELLATION"), @@ -25,8 +25,8 @@ public enum ApiCustomerInvoiceListRequestInvoiceStatus { private final String value; @JsonCreator - public static ApiCustomerInvoiceListRequestInvoiceStatus fromValue(String value) { - return Arrays.stream(ApiCustomerInvoiceListRequestInvoiceStatus.values()) + 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/ApiWalletShowResponseDto.java b/src/main/java/com/asaas/apisdk/models/InvoiceListResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiWalletShowResponseDto.java rename to src/main/java/com/asaas/apisdk/models/InvoiceListResponseDto.java index 38e3f78..55a7c66 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiWalletShowResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/InvoiceListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiWalletShowResponseDto { +public class InvoiceListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiWalletShowResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiWalletShowResponseDtoBuilder { + public static class InvoiceListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiWalletShowResponseDtoBuilder object(String value) { + public InvoiceListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiWalletShowResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiWalletShowResponseDtoBuilder hasMore(Boolean value) { + public InvoiceListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiWalletShowResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiWalletShowResponseDtoBuilder totalCount(Long value) { + public InvoiceListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiWalletShowResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiWalletShowResponseDtoBuilder limit(Long value) { + public InvoiceListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiWalletShowResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiWalletShowResponseDtoBuilder offset(Long value) { + public InvoiceListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiWalletShowResponseDtoBuilder data(List value) { + public InvoiceListResponseDtoBuilder 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/InvoiceSaveRequestDto.java similarity index 84% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/InvoiceSaveRequestDto.java index e603529..15224d6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/InvoiceSaveRequestDto.java @@ -20,7 +20,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerInvoiceSaveRequestDto { +public class InvoiceSaveRequestDto { /** * Description of invoice services @@ -58,8 +58,11 @@ public class ApiCustomerInvoiceSaveRequestDto { @NonNull private String municipalServiceName; + /** + * Invoice taxes + */ @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCustomerInvoiceTaxesDto taxes; + private InvoiceTaxesDto taxes; /** * Unique payment identifier in Asaas @@ -139,14 +142,14 @@ public Boolean getUpdatePayment() { } // Overwrite lombok builder methods - public static class ApiCustomerInvoiceSaveRequestDtoBuilder { + public static class InvoiceSaveRequestDtoBuilder { /** * Flag to track if the taxes property has been set. */ private boolean taxes$set = false; - public ApiCustomerInvoiceSaveRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto taxes) { + public InvoiceSaveRequestDtoBuilder taxes(InvoiceTaxesDto taxes) { this.taxes$set = true; this.taxes = taxes; return this; @@ -155,7 +158,7 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") - public ApiCustomerInvoiceSaveRequestDtoBuilder payment(String value) { + public InvoiceSaveRequestDtoBuilder payment(String value) { this.payment = JsonNullable.of(value); return this; } @@ -163,7 +166,7 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder payment(String value) { private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiCustomerInvoiceSaveRequestDtoBuilder installment(String value) { + public InvoiceSaveRequestDtoBuilder installment(String value) { this.installment = JsonNullable.of(value); return this; } @@ -171,7 +174,7 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder installment(String value) { private JsonNullable customer = JsonNullable.undefined(); @JsonProperty("customer") - public ApiCustomerInvoiceSaveRequestDtoBuilder customer(String value) { + public InvoiceSaveRequestDtoBuilder customer(String value) { this.customer = JsonNullable.of(value); return this; } @@ -179,7 +182,7 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder customer(String value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiCustomerInvoiceSaveRequestDtoBuilder externalReference(String value) { + public InvoiceSaveRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -187,7 +190,7 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder externalReference(String value) { private JsonNullable municipalServiceId = JsonNullable.undefined(); @JsonProperty("municipalServiceId") - public ApiCustomerInvoiceSaveRequestDtoBuilder municipalServiceId(String value) { + public InvoiceSaveRequestDtoBuilder municipalServiceId(String value) { this.municipalServiceId = JsonNullable.of(value); return this; } @@ -195,7 +198,7 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder municipalServiceId(String value) private JsonNullable municipalServiceCode = JsonNullable.undefined(); @JsonProperty("municipalServiceCode") - public ApiCustomerInvoiceSaveRequestDtoBuilder municipalServiceCode(String value) { + public InvoiceSaveRequestDtoBuilder municipalServiceCode(String value) { this.municipalServiceCode = JsonNullable.of(value); return this; } @@ -203,16 +206,16 @@ public ApiCustomerInvoiceSaveRequestDtoBuilder municipalServiceCode(String value private JsonNullable updatePayment = JsonNullable.undefined(); @JsonProperty("updatePayment") - public ApiCustomerInvoiceSaveRequestDtoBuilder updatePayment(Boolean value) { + public InvoiceSaveRequestDtoBuilder updatePayment(Boolean value) { this.updatePayment = JsonNullable.of(value); return this; } - public ApiCustomerInvoiceSaveRequestDto build() { + public InvoiceSaveRequestDto build() { if (!taxes$set) { throw new IllegalStateException("taxes is required"); } - return new ApiCustomerInvoiceSaveRequestDto( + return new InvoiceSaveRequestDto( serviceDescription, observations, value, diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceTaxesDto.java b/src/main/java/com/asaas/apisdk/models/InvoiceTaxesDto.java similarity index 93% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceTaxesDto.java rename to src/main/java/com/asaas/apisdk/models/InvoiceTaxesDto.java index a562c94..1206d14 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceTaxesDto.java +++ b/src/main/java/com/asaas/apisdk/models/InvoiceTaxesDto.java @@ -10,13 +10,16 @@ import lombok.With; import lombok.extern.jackson.Jacksonized; +/** + * Invoice taxes + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerInvoiceTaxesDto { +public class InvoiceTaxesDto { /** * The invoice holder must withhold ISS or not diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/InvoiceUpdateRequestDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/InvoiceUpdateRequestDto.java index 95f1958..a9a0ec7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerInvoiceUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/InvoiceUpdateRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerInvoiceUpdateRequestDto { +public class InvoiceUpdateRequestDto { /** * Description of invoice services @@ -62,8 +62,11 @@ public class ApiCustomerInvoiceUpdateRequestDto { @JsonProperty("updatePayment") private JsonNullable updatePayment; + /** + * Invoice taxes + */ @JsonProperty("taxes") - private JsonNullable taxes; + private JsonNullable taxes; @JsonIgnore public String getServiceDescription() { @@ -101,17 +104,17 @@ public Boolean getUpdatePayment() { } @JsonIgnore - public ApiCustomerInvoiceTaxesDto getTaxes() { + public InvoiceTaxesDto getTaxes() { return taxes.orElse(null); } // Overwrite lombok builder methods - public static class ApiCustomerInvoiceUpdateRequestDtoBuilder { + public static class InvoiceUpdateRequestDtoBuilder { private JsonNullable serviceDescription = JsonNullable.undefined(); @JsonProperty("serviceDescription") - public ApiCustomerInvoiceUpdateRequestDtoBuilder serviceDescription(String value) { + public InvoiceUpdateRequestDtoBuilder serviceDescription(String value) { this.serviceDescription = JsonNullable.of(value); return this; } @@ -119,7 +122,7 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder serviceDescription(String value private JsonNullable observations = JsonNullable.undefined(); @JsonProperty("observations") - public ApiCustomerInvoiceUpdateRequestDtoBuilder observations(String value) { + public InvoiceUpdateRequestDtoBuilder observations(String value) { this.observations = JsonNullable.of(value); return this; } @@ -127,7 +130,7 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder observations(String value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiCustomerInvoiceUpdateRequestDtoBuilder externalReference(String value) { + public InvoiceUpdateRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -135,7 +138,7 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder externalReference(String value) private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiCustomerInvoiceUpdateRequestDtoBuilder value(Double value) { + public InvoiceUpdateRequestDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -143,7 +146,7 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder value(Double value) { private JsonNullable deductions = JsonNullable.undefined(); @JsonProperty("deductions") - public ApiCustomerInvoiceUpdateRequestDtoBuilder deductions(Double value) { + public InvoiceUpdateRequestDtoBuilder deductions(Double value) { this.deductions = JsonNullable.of(value); return this; } @@ -151,7 +154,7 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder deductions(Double value) { private JsonNullable effectiveDate = JsonNullable.undefined(); @JsonProperty("effectiveDate") - public ApiCustomerInvoiceUpdateRequestDtoBuilder effectiveDate(String value) { + public InvoiceUpdateRequestDtoBuilder effectiveDate(String value) { this.effectiveDate = JsonNullable.of(value); return this; } @@ -159,15 +162,15 @@ public ApiCustomerInvoiceUpdateRequestDtoBuilder effectiveDate(String value) { private JsonNullable updatePayment = JsonNullable.undefined(); @JsonProperty("updatePayment") - public ApiCustomerInvoiceUpdateRequestDtoBuilder updatePayment(Boolean value) { + public InvoiceUpdateRequestDtoBuilder updatePayment(Boolean value) { this.updatePayment = JsonNullable.of(value); return this; } - private JsonNullable taxes = JsonNullable.undefined(); + private JsonNullable taxes = JsonNullable.undefined(); @JsonProperty("taxes") - public ApiCustomerInvoiceUpdateRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { + 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/ApiMobilePhoneRechargeFindProviderResponseDto.java b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseDto.java similarity index 63% rename from src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseDto.java rename to src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseDto.java index 3111898..719ed21 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiMobilePhoneRechargeFindProviderResponseDto { +public class MobilePhoneRechargeFindProviderResponseDto { /** * Name of cell phone operator @@ -31,7 +31,7 @@ public class ApiMobilePhoneRechargeFindProviderResponseDto { * Amounts available for recharge */ @JsonProperty("values") - private JsonNullable> values; + private JsonNullable> values; @JsonIgnore public String getName() { @@ -39,26 +39,26 @@ public String getName() { } @JsonIgnore - public List getValues() { + public List getValues() { return values.orElse(null); } // Overwrite lombok builder methods - public static class ApiMobilePhoneRechargeFindProviderResponseDtoBuilder { + public static class MobilePhoneRechargeFindProviderResponseDtoBuilder { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiMobilePhoneRechargeFindProviderResponseDtoBuilder name(String value) { + public MobilePhoneRechargeFindProviderResponseDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } - private JsonNullable> values = JsonNullable.undefined(); + private JsonNullable> values = JsonNullable.undefined(); @JsonProperty("values") - public ApiMobilePhoneRechargeFindProviderResponseDtoBuilder values( - List value + public MobilePhoneRechargeFindProviderResponseDtoBuilder 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/MobilePhoneRechargeFindProviderResponseValuesDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.java rename to src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseValuesDto.java index cef79bd..c978b45 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeFindProviderResponseValuesDto.java +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeFindProviderResponseValuesDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Amounts available for recharge + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMobilePhoneRechargeFindProviderResponseValuesDto { +public class MobilePhoneRechargeFindProviderResponseValuesDto { /** * Package name @@ -76,12 +79,12 @@ public Double getMaxValue() { } // Overwrite lombok builder methods - public static class ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder { + public static class MobilePhoneRechargeFindProviderResponseValuesDtoBuilder { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder name(String value) { + public MobilePhoneRechargeFindProviderResponseValuesDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -89,7 +92,7 @@ public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder name(String va private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder description(String value) { + public MobilePhoneRechargeFindProviderResponseValuesDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -97,7 +100,7 @@ public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder description(St private JsonNullable bonus = JsonNullable.undefined(); @JsonProperty("bonus") - public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder bonus(String value) { + public MobilePhoneRechargeFindProviderResponseValuesDtoBuilder bonus(String value) { this.bonus = JsonNullable.of(value); return this; } @@ -105,7 +108,7 @@ public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder bonus(String v private JsonNullable minValue = JsonNullable.undefined(); @JsonProperty("minValue") - public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder minValue(Double value) { + public MobilePhoneRechargeFindProviderResponseValuesDtoBuilder minValue(Double value) { this.minValue = JsonNullable.of(value); return this; } @@ -113,7 +116,7 @@ public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder minValue(Doubl private JsonNullable maxValue = JsonNullable.undefined(); @JsonProperty("maxValue") - public ApiMobilePhoneRechargeFindProviderResponseValuesDtoBuilder maxValue(Double value) { + public MobilePhoneRechargeFindProviderResponseValuesDtoBuilder 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/MobilePhoneRechargeGetResponseDto.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseDto.java index 1e6b303..ce22051 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiMobilePhoneRechargeGetResponseDto { +public class MobilePhoneRechargeGetResponseDto { /** * Unique identifier for cell phone recharge on Asaas @@ -42,7 +42,7 @@ public class ApiMobilePhoneRechargeGetResponseDto { * Recharge status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Whether the top-up can be canceled @@ -72,7 +72,7 @@ public String getPhoneNumber() { } @JsonIgnore - public ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus getStatus() { + public MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus getStatus() { return status.orElse(null); } @@ -87,12 +87,12 @@ public String getOperatorName() { } // Overwrite lombok builder methods - public static class ApiMobilePhoneRechargeGetResponseDtoBuilder { + public static class MobilePhoneRechargeGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiMobilePhoneRechargeGetResponseDtoBuilder id(String value) { + public MobilePhoneRechargeGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -100,7 +100,7 @@ public ApiMobilePhoneRechargeGetResponseDtoBuilder id(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiMobilePhoneRechargeGetResponseDtoBuilder value(Double value) { + public MobilePhoneRechargeGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -108,16 +108,16 @@ public ApiMobilePhoneRechargeGetResponseDtoBuilder value(Double value) { private JsonNullable phoneNumber = JsonNullable.undefined(); @JsonProperty("phoneNumber") - public ApiMobilePhoneRechargeGetResponseDtoBuilder phoneNumber(String value) { + public MobilePhoneRechargeGetResponseDtoBuilder phoneNumber(String value) { this.phoneNumber = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiMobilePhoneRechargeGetResponseDtoBuilder status( - ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus value + public MobilePhoneRechargeGetResponseDtoBuilder status( + MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus value ) { this.status = JsonNullable.of(value); return this; @@ -126,7 +126,7 @@ public ApiMobilePhoneRechargeGetResponseDtoBuilder status( private JsonNullable canBeCancelled = JsonNullable.of(true); @JsonProperty("canBeCancelled") - public ApiMobilePhoneRechargeGetResponseDtoBuilder canBeCancelled(Boolean value) { + public MobilePhoneRechargeGetResponseDtoBuilder canBeCancelled(Boolean value) { this.canBeCancelled = JsonNullable.of(value); return this; } @@ -134,7 +134,7 @@ public ApiMobilePhoneRechargeGetResponseDtoBuilder canBeCancelled(Boolean value) private JsonNullable operatorName = JsonNullable.undefined(); @JsonProperty("operatorName") - public ApiMobilePhoneRechargeGetResponseDtoBuilder operatorName(String value) { + public MobilePhoneRechargeGetResponseDtoBuilder 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/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java rename to src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java index 3a1e60a..e04c151 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus { +public enum MobilePhoneRechargeGetResponseMobilePhoneRechargeStatus { PENDING("PENDING"), CONFIRMED("CONFIRMED"), CANCELLED("CANCELLED"), @@ -24,8 +24,8 @@ public enum ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus { private final String value; @JsonCreator - public static ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus fromValue(String value) { - return Arrays.stream(ApiMobilePhoneRechargeGetResponseMobilePhoneRechargeStatus.values()) + 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/ApiPaymentDunningListResponseDto.java b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeListResponseDto.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeListResponseDto.java index 6cc81e6..25fc3e9 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDunningListResponseDto { +public class MobilePhoneRechargeListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiPaymentDunningListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentDunningListResponseDtoBuilder { + public static class MobilePhoneRechargeListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPaymentDunningListResponseDtoBuilder object(String value) { + public MobilePhoneRechargeListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiPaymentDunningListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiPaymentDunningListResponseDtoBuilder hasMore(Boolean value) { + public MobilePhoneRechargeListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiPaymentDunningListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiPaymentDunningListResponseDtoBuilder totalCount(Long value) { + public MobilePhoneRechargeListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiPaymentDunningListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiPaymentDunningListResponseDtoBuilder limit(Long value) { + public MobilePhoneRechargeListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiPaymentDunningListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiPaymentDunningListResponseDtoBuilder offset(Long value) { + public MobilePhoneRechargeListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiPaymentDunningListResponseDtoBuilder data(List value) { + public MobilePhoneRechargeListResponseDtoBuilder 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/MobilePhoneRechargeSaveRequestDto.java similarity index 90% rename from src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeSaveRequestDto.java index 72e0c0d..793d3f0 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMobilePhoneRechargeSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/MobilePhoneRechargeSaveRequestDto.java @@ -16,7 +16,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiMobilePhoneRechargeSaveRequestDto { +public class MobilePhoneRechargeSaveRequestDto { /** * Recharge value diff --git a/src/main/java/com/asaas/apisdk/models/ApiMyAccountDisableAccountResponseDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountDisableAccountResponseDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountDisableAccountResponseDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountDisableAccountResponseDto.java index 7a5d7ad..ecdaf6a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountDisableAccountResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountDisableAccountResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountDisableAccountResponseDto { +public class MyAccountDisableAccountResponseDto { /** * Deletion information @@ -32,12 +32,12 @@ public String getObservations() { } // Overwrite lombok builder methods - public static class ApiMyAccountDisableAccountResponseDtoBuilder { + public static class MyAccountDisableAccountResponseDtoBuilder { private JsonNullable observations = JsonNullable.undefined(); @JsonProperty("observations") - public ApiMyAccountDisableAccountResponseDtoBuilder observations(String value) { + public MyAccountDisableAccountResponseDtoBuilder 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/MyAccountGetAccountFeesAnticipationBankSlipDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationBankSlipDto.java index 0659c6a..2d12b33 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationBankSlipDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationBankSlipDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Anticipation fee on boletos + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesAnticipationBankSlipDto { +public class MyAccountGetAccountFeesAnticipationBankSlipDto { /** * Monthly fee for invoice charges @@ -32,12 +35,12 @@ public Double getMonthlyFeePercentage() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesAnticipationBankSlipDtoBuilder { + public static class MyAccountGetAccountFeesAnticipationBankSlipDtoBuilder { private JsonNullable monthlyFeePercentage = JsonNullable.undefined(); @JsonProperty("monthlyFeePercentage") - public ApiMyAccountGetAccountFeesAnticipationBankSlipDtoBuilder monthlyFeePercentage(Double value) { + public MyAccountGetAccountFeesAnticipationBankSlipDtoBuilder 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/MyAccountGetAccountFeesAnticipationCreditCardDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationCreditCardDto.java index 2e01803..9e0a61b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesAnticipationCreditCardDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesAnticipationCreditCardDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Credit card anticipation fee + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesAnticipationCreditCardDto { +public class MyAccountGetAccountFeesAnticipationCreditCardDto { /** * Monthly fee for upfront charges @@ -43,12 +46,12 @@ public Long getInstallmentMonthlyFeeValue() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesAnticipationCreditCardDtoBuilder { + public static class MyAccountGetAccountFeesAnticipationCreditCardDtoBuilder { private JsonNullable detachedMonthlyFeeValue = JsonNullable.undefined(); @JsonProperty("detachedMonthlyFeeValue") - public ApiMyAccountGetAccountFeesAnticipationCreditCardDtoBuilder detachedMonthlyFeeValue(Double value) { + public MyAccountGetAccountFeesAnticipationCreditCardDtoBuilder detachedMonthlyFeeValue(Double value) { this.detachedMonthlyFeeValue = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiMyAccountGetAccountFeesAnticipationCreditCardDtoBuilder detachedMonthl private JsonNullable installmentMonthlyFeeValue = JsonNullable.undefined(); @JsonProperty("installmentMonthlyFeeValue") - public ApiMyAccountGetAccountFeesAnticipationCreditCardDtoBuilder installmentMonthlyFeeValue(Long value) { + 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/ApiMyAccountGetAccountFeesCreditBureauReportDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesCreditBureauReportDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesCreditBureauReportDto.java index af30ed5..2faed68 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesCreditBureauReportDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesCreditBureauReportDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Serasa consultation fees + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesCreditBureauReportDto { +public class MyAccountGetAccountFeesCreditBureauReportDto { /** * Fee for Serasa consultation for natural person @@ -43,12 +46,12 @@ public Double getLegalPersonFeeValue() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesCreditBureauReportDtoBuilder { + public static class MyAccountGetAccountFeesCreditBureauReportDtoBuilder { private JsonNullable naturalPersonFeeValue = JsonNullable.undefined(); @JsonProperty("naturalPersonFeeValue") - public ApiMyAccountGetAccountFeesCreditBureauReportDtoBuilder naturalPersonFeeValue(Double value) { + public MyAccountGetAccountFeesCreditBureauReportDtoBuilder naturalPersonFeeValue(Double value) { this.naturalPersonFeeValue = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiMyAccountGetAccountFeesCreditBureauReportDtoBuilder naturalPersonFeeVa private JsonNullable legalPersonFeeValue = JsonNullable.undefined(); @JsonProperty("legalPersonFeeValue") - public ApiMyAccountGetAccountFeesCreditBureauReportDtoBuilder legalPersonFeeValue(Double value) { + public MyAccountGetAccountFeesCreditBureauReportDtoBuilder 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/MyAccountGetAccountFeesInvoiceDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesInvoiceDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesInvoiceDto.java index 78113dd..cfe098e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesInvoiceDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesInvoiceDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Invoice fees + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesInvoiceDto { +public class MyAccountGetAccountFeesInvoiceDto { /** * Fee per service note issued @@ -32,12 +35,12 @@ public Double getFeeValue() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesInvoiceDtoBuilder { + public static class MyAccountGetAccountFeesInvoiceDtoBuilder { private JsonNullable feeValue = JsonNullable.undefined(); @JsonProperty("feeValue") - public ApiMyAccountGetAccountFeesInvoiceDtoBuilder feeValue(Double value) { + public MyAccountGetAccountFeesInvoiceDtoBuilder 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/MyAccountGetAccountFeesNotificationDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesNotificationDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesNotificationDto.java index d79aaaf..505b99b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesNotificationDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesNotificationDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Notification fees + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesNotificationDto { +public class MyAccountGetAccountFeesNotificationDto { /** * Fees per voice robot call @@ -54,12 +57,12 @@ public Double getMessagingFeeValue() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesNotificationDtoBuilder { + public static class MyAccountGetAccountFeesNotificationDtoBuilder { private JsonNullable phoneCallFeeValue = JsonNullable.undefined(); @JsonProperty("phoneCallFeeValue") - public ApiMyAccountGetAccountFeesNotificationDtoBuilder phoneCallFeeValue(Double value) { + public MyAccountGetAccountFeesNotificationDtoBuilder phoneCallFeeValue(Double value) { this.phoneCallFeeValue = JsonNullable.of(value); return this; } @@ -67,7 +70,7 @@ public ApiMyAccountGetAccountFeesNotificationDtoBuilder phoneCallFeeValue(Double private JsonNullable whatsAppFeeValue = JsonNullable.undefined(); @JsonProperty("whatsAppFeeValue") - public ApiMyAccountGetAccountFeesNotificationDtoBuilder whatsAppFeeValue(Double value) { + public MyAccountGetAccountFeesNotificationDtoBuilder whatsAppFeeValue(Double value) { this.whatsAppFeeValue = JsonNullable.of(value); return this; } @@ -75,7 +78,7 @@ public ApiMyAccountGetAccountFeesNotificationDtoBuilder whatsAppFeeValue(Double private JsonNullable messagingFeeValue = JsonNullable.undefined(); @JsonProperty("messagingFeeValue") - public ApiMyAccountGetAccountFeesNotificationDtoBuilder messagingFeeValue(Double value) { + public MyAccountGetAccountFeesNotificationDtoBuilder 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/MyAccountGetAccountFeesPaymentBankSlipDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentBankSlipDto.java index 94278c2..af8e028 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentBankSlipDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentBankSlipDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Boleto fees + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesPaymentBankSlipDto { +public class MyAccountGetAccountFeesPaymentBankSlipDto { /** * Fee per charge @@ -65,12 +68,12 @@ public Long getDaysToReceive() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder { + public static class MyAccountGetAccountFeesPaymentBankSlipDtoBuilder { private JsonNullable defaultValue = JsonNullable.undefined(); @JsonProperty("defaultValue") - public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder defaultValue(Double value) { + public MyAccountGetAccountFeesPaymentBankSlipDtoBuilder defaultValue(Double value) { this.defaultValue = JsonNullable.of(value); return this; } @@ -78,7 +81,7 @@ public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder defaultValue(Double v private JsonNullable discountValue = JsonNullable.undefined(); @JsonProperty("discountValue") - public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder discountValue(Double value) { + public MyAccountGetAccountFeesPaymentBankSlipDtoBuilder discountValue(Double value) { this.discountValue = JsonNullable.of(value); return this; } @@ -86,7 +89,7 @@ public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder discountValue(Double private JsonNullable expirationDate = JsonNullable.undefined(); @JsonProperty("expirationDate") - public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder expirationDate(String value) { + public MyAccountGetAccountFeesPaymentBankSlipDtoBuilder expirationDate(String value) { this.expirationDate = JsonNullable.of(value); return this; } @@ -94,7 +97,7 @@ public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder expirationDate(String private JsonNullable daysToReceive = JsonNullable.undefined(); @JsonProperty("daysToReceive") - public ApiMyAccountGetAccountFeesPaymentBankSlipDtoBuilder daysToReceive(Long value) { + public MyAccountGetAccountFeesPaymentBankSlipDtoBuilder 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/MyAccountGetAccountFeesPaymentCreditCardDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentCreditCardDto.java index 0b4b5d6..e55740f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentCreditCardDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentCreditCardDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Credit card fees + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesPaymentCreditCardDto { +public class MyAccountGetAccountFeesPaymentCreditCardDto { /** * Operating fee per charge @@ -142,12 +145,12 @@ public Long getDaysToReceive() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder { + public static class MyAccountGetAccountFeesPaymentCreditCardDtoBuilder { private JsonNullable operationValue = JsonNullable.undefined(); @JsonProperty("operationValue") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder operationValue(Double value) { + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder operationValue(Double value) { this.operationValue = JsonNullable.of(value); return this; } @@ -155,7 +158,7 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder operationValue(Doub private JsonNullable oneInstallmentPercentage = JsonNullable.undefined(); @JsonProperty("oneInstallmentPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder oneInstallmentPercentage(Double value) { + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder oneInstallmentPercentage(Double value) { this.oneInstallmentPercentage = JsonNullable.of(value); return this; } @@ -163,7 +166,7 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder oneInstallmentPerce private JsonNullable upToSixInstallmentsPercentage = JsonNullable.undefined(); @JsonProperty("upToSixInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToSixInstallmentsPercentage(Double value) { + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToSixInstallmentsPercentage(Double value) { this.upToSixInstallmentsPercentage = JsonNullable.of(value); return this; } @@ -171,7 +174,7 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToSixInstallments private JsonNullable upToTwelveInstallmentsPercentage = JsonNullable.undefined(); @JsonProperty("upToTwelveInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwelveInstallmentsPercentage(Double value) { + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwelveInstallmentsPercentage(Double value) { this.upToTwelveInstallmentsPercentage = JsonNullable.of(value); return this; } @@ -179,7 +182,7 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwelveInstallme private JsonNullable upToTwentyOneInstallmentsPercentage = JsonNullable.undefined(); @JsonProperty("upToTwentyOneInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwentyOneInstallmentsPercentage(Double value) { + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwentyOneInstallmentsPercentage(Double value) { this.upToTwentyOneInstallmentsPercentage = JsonNullable.of(value); return this; } @@ -187,7 +190,7 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder upToTwentyOneInstal private JsonNullable discountOneInstallmentPercentage = JsonNullable.undefined(); @JsonProperty("discountOneInstallmentPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountOneInstallmentPercentage(Double value) { + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountOneInstallmentPercentage(Double value) { this.discountOneInstallmentPercentage = JsonNullable.of(value); return this; } @@ -195,7 +198,7 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountOneInstallm private JsonNullable discountUpToSixInstallmentsPercentage = JsonNullable.undefined(); @JsonProperty("discountUpToSixInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToSixInstallmentsPercentage(Double value) { + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToSixInstallmentsPercentage(Double value) { this.discountUpToSixInstallmentsPercentage = JsonNullable.of(value); return this; } @@ -203,9 +206,7 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToSixInst private JsonNullable discountUpToTwelveInstallmentsPercentage = JsonNullable.undefined(); @JsonProperty("discountUpToTwelveInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwelveInstallmentsPercentage( - Double value - ) { + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwelveInstallmentsPercentage(Double value) { this.discountUpToTwelveInstallmentsPercentage = JsonNullable.of(value); return this; } @@ -213,7 +214,7 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwelveI private JsonNullable discountUpToTwentyOneInstallmentsPercentage = JsonNullable.undefined(); @JsonProperty("discountUpToTwentyOneInstallmentsPercentage") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwentyOneInstallmentsPercentage( + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwentyOneInstallmentsPercentage( Double value ) { this.discountUpToTwentyOneInstallmentsPercentage = JsonNullable.of(value); @@ -223,7 +224,7 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountUpToTwentyO private JsonNullable discountExpiration = JsonNullable.undefined(); @JsonProperty("discountExpiration") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountExpiration(String value) { + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountExpiration(String value) { this.discountExpiration = JsonNullable.of(value); return this; } @@ -231,7 +232,7 @@ public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder discountExpiration( private JsonNullable daysToReceive = JsonNullable.undefined(); @JsonProperty("daysToReceive") - public ApiMyAccountGetAccountFeesPaymentCreditCardDtoBuilder daysToReceive(Long value) { + public MyAccountGetAccountFeesPaymentCreditCardDtoBuilder 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/MyAccountGetAccountFeesPaymentDebitCardDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDebitCardDto.java index 3b255dd..e4ab31f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentDebitCardDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentDebitCardDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Debit card fees + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesPaymentDebitCardDto { +public class MyAccountGetAccountFeesPaymentDebitCardDto { /** * Operating fee per charge @@ -54,12 +57,12 @@ public Long getDaysToReceive() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder { + public static class MyAccountGetAccountFeesPaymentDebitCardDtoBuilder { private JsonNullable operationValue = JsonNullable.undefined(); @JsonProperty("operationValue") - public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder operationValue(Double value) { + public MyAccountGetAccountFeesPaymentDebitCardDtoBuilder operationValue(Double value) { this.operationValue = JsonNullable.of(value); return this; } @@ -67,7 +70,7 @@ public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder operationValue(Doubl private JsonNullable defaultPercentage = JsonNullable.undefined(); @JsonProperty("defaultPercentage") - public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder defaultPercentage(Double value) { + public MyAccountGetAccountFeesPaymentDebitCardDtoBuilder defaultPercentage(Double value) { this.defaultPercentage = JsonNullable.of(value); return this; } @@ -75,7 +78,7 @@ public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder defaultPercentage(Do private JsonNullable daysToReceive = JsonNullable.undefined(); @JsonProperty("daysToReceive") - public ApiMyAccountGetAccountFeesPaymentDebitCardDtoBuilder daysToReceive(Long value) { + 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/ApiMyAccountGetAccountFeesPaymentPixDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentPixDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentPixDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentPixDto.java index 9f9edee..71d8015 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesPaymentPixDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesPaymentPixDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Pix Fees + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesPaymentPixDto { +public class MyAccountGetAccountFeesPaymentPixDto { /** * Fixed fee (If any) @@ -109,12 +112,12 @@ public Long getCreditsReceivedOfCurrentMonth() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesPaymentPixDtoBuilder { + public static class MyAccountGetAccountFeesPaymentPixDtoBuilder { private JsonNullable fixedFeeValue = JsonNullable.undefined(); @JsonProperty("fixedFeeValue") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValue(Double value) { + public MyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValue(Double value) { this.fixedFeeValue = JsonNullable.of(value); return this; } @@ -122,7 +125,7 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValue(Double value private JsonNullable fixedFeeValueWithDiscount = JsonNullable.undefined(); @JsonProperty("fixedFeeValueWithDiscount") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValueWithDiscount(Double value) { + public MyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValueWithDiscount(Double value) { this.fixedFeeValueWithDiscount = JsonNullable.of(value); return this; } @@ -130,7 +133,7 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder fixedFeeValueWithDiscount( private JsonNullable percentageFee = JsonNullable.undefined(); @JsonProperty("percentageFee") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder percentageFee(Double value) { + public MyAccountGetAccountFeesPaymentPixDtoBuilder percentageFee(Double value) { this.percentageFee = JsonNullable.of(value); return this; } @@ -138,7 +141,7 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder percentageFee(Double value private JsonNullable minimumFeeValue = JsonNullable.undefined(); @JsonProperty("minimumFeeValue") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder minimumFeeValue(Double value) { + public MyAccountGetAccountFeesPaymentPixDtoBuilder minimumFeeValue(Double value) { this.minimumFeeValue = JsonNullable.of(value); return this; } @@ -146,7 +149,7 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder minimumFeeValue(Double val private JsonNullable maximumFeeValue = JsonNullable.undefined(); @JsonProperty("maximumFeeValue") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder maximumFeeValue(Double value) { + public MyAccountGetAccountFeesPaymentPixDtoBuilder maximumFeeValue(Double value) { this.maximumFeeValue = JsonNullable.of(value); return this; } @@ -154,7 +157,7 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder maximumFeeValue(Double val private JsonNullable discountExpiration = JsonNullable.undefined(); @JsonProperty("discountExpiration") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder discountExpiration(String value) { + public MyAccountGetAccountFeesPaymentPixDtoBuilder discountExpiration(String value) { this.discountExpiration = JsonNullable.of(value); return this; } @@ -162,7 +165,7 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder discountExpiration(String private JsonNullable monthlyCreditsWithoutFee = JsonNullable.undefined(); @JsonProperty("monthlyCreditsWithoutFee") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder monthlyCreditsWithoutFee(Long value) { + public MyAccountGetAccountFeesPaymentPixDtoBuilder monthlyCreditsWithoutFee(Long value) { this.monthlyCreditsWithoutFee = JsonNullable.of(value); return this; } @@ -170,7 +173,7 @@ public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder monthlyCreditsWithoutFee(L private JsonNullable creditsReceivedOfCurrentMonth = JsonNullable.undefined(); @JsonProperty("creditsReceivedOfCurrentMonth") - public ApiMyAccountGetAccountFeesPaymentPixDtoBuilder creditsReceivedOfCurrentMonth(Long value) { + 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/ApiMyAccountGetAccountFeesTransferDto.java b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferDto.java similarity index 58% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferDto.java index efe7049..6fcfe36 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Transfer fees + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesTransferDto { +public class MyAccountGetAccountFeesTransferDto { /** * Number of monthly free transactions @@ -26,11 +29,17 @@ public class ApiMyAccountGetAccountFeesTransferDto { @JsonProperty("monthlyTransfersWithoutFee") private JsonNullable monthlyTransfersWithoutFee; + /** + * Fees for TED transfers + */ @JsonProperty("ted") - private JsonNullable ted; + private JsonNullable ted; + /** + * Fees for Pix transfers + */ @JsonProperty("pix") - private JsonNullable pix; + private JsonNullable pix; @JsonIgnore public Long getMonthlyTransfersWithoutFee() { @@ -38,38 +47,38 @@ public Long getMonthlyTransfersWithoutFee() { } @JsonIgnore - public ApiMyAccountGetAccountFeesTransferTedDto getTed() { + public MyAccountGetAccountFeesTransferTedDto getTed() { return ted.orElse(null); } @JsonIgnore - public ApiMyAccountGetAccountFeesTransferPixDto getPix() { + public MyAccountGetAccountFeesTransferPixDto getPix() { return pix.orElse(null); } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesTransferDtoBuilder { + public static class MyAccountGetAccountFeesTransferDtoBuilder { private JsonNullable monthlyTransfersWithoutFee = JsonNullable.undefined(); @JsonProperty("monthlyTransfersWithoutFee") - public ApiMyAccountGetAccountFeesTransferDtoBuilder monthlyTransfersWithoutFee(Long value) { + public MyAccountGetAccountFeesTransferDtoBuilder monthlyTransfersWithoutFee(Long value) { this.monthlyTransfersWithoutFee = JsonNullable.of(value); return this; } - private JsonNullable ted = JsonNullable.undefined(); + private JsonNullable ted = JsonNullable.undefined(); @JsonProperty("ted") - public ApiMyAccountGetAccountFeesTransferDtoBuilder ted(ApiMyAccountGetAccountFeesTransferTedDto value) { + public MyAccountGetAccountFeesTransferDtoBuilder ted(MyAccountGetAccountFeesTransferTedDto value) { this.ted = JsonNullable.of(value); return this; } - private JsonNullable pix = JsonNullable.undefined(); + private JsonNullable pix = JsonNullable.undefined(); @JsonProperty("pix") - public ApiMyAccountGetAccountFeesTransferDtoBuilder pix(ApiMyAccountGetAccountFeesTransferPixDto value) { + public MyAccountGetAccountFeesTransferDtoBuilder pix(MyAccountGetAccountFeesTransferPixDto 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/MyAccountGetAccountFeesTransferPixDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferPixDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferPixDto.java index 56bff46..4ce4660 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferPixDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferPixDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Fees for Pix transfers + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesTransferPixDto { +public class MyAccountGetAccountFeesTransferPixDto { /** * Fee for sending transfers via Pix @@ -65,12 +68,12 @@ public Boolean getConsideredInMonthlyTransfersWithoutFee() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesTransferPixDtoBuilder { + public static class MyAccountGetAccountFeesTransferPixDtoBuilder { private JsonNullable feeValue = JsonNullable.undefined(); @JsonProperty("feeValue") - public ApiMyAccountGetAccountFeesTransferPixDtoBuilder feeValue(Double value) { + public MyAccountGetAccountFeesTransferPixDtoBuilder feeValue(Double value) { this.feeValue = JsonNullable.of(value); return this; } @@ -78,7 +81,7 @@ public ApiMyAccountGetAccountFeesTransferPixDtoBuilder feeValue(Double value) { private JsonNullable discountValue = JsonNullable.undefined(); @JsonProperty("discountValue") - public ApiMyAccountGetAccountFeesTransferPixDtoBuilder discountValue(Double value) { + public MyAccountGetAccountFeesTransferPixDtoBuilder discountValue(Double value) { this.discountValue = JsonNullable.of(value); return this; } @@ -86,7 +89,7 @@ public ApiMyAccountGetAccountFeesTransferPixDtoBuilder discountValue(Double valu private JsonNullable expirationDate = JsonNullable.undefined(); @JsonProperty("expirationDate") - public ApiMyAccountGetAccountFeesTransferPixDtoBuilder expirationDate(String value) { + public MyAccountGetAccountFeesTransferPixDtoBuilder expirationDate(String value) { this.expirationDate = JsonNullable.of(value); return this; } @@ -94,7 +97,7 @@ public ApiMyAccountGetAccountFeesTransferPixDtoBuilder expirationDate(String val private JsonNullable consideredInMonthlyTransfersWithoutFee = JsonNullable.undefined(); @JsonProperty("consideredInMonthlyTransfersWithoutFee") - public ApiMyAccountGetAccountFeesTransferPixDtoBuilder consideredInMonthlyTransfersWithoutFee(Boolean value) { + public MyAccountGetAccountFeesTransferPixDtoBuilder 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/MyAccountGetAccountFeesTransferTedDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferTedDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferTedDto.java index bd556b8..291869e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountFeesTransferTedDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountFeesTransferTedDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Fees for TED transfers + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountFeesTransferTedDto { +public class MyAccountGetAccountFeesTransferTedDto { /** * Transfer fee via TED @@ -43,12 +46,12 @@ public Boolean getConsideredInMonthlyTransfersWithoutFee() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountFeesTransferTedDtoBuilder { + public static class MyAccountGetAccountFeesTransferTedDtoBuilder { private JsonNullable feeValue = JsonNullable.undefined(); @JsonProperty("feeValue") - public ApiMyAccountGetAccountFeesTransferTedDtoBuilder feeValue(Double value) { + public MyAccountGetAccountFeesTransferTedDtoBuilder feeValue(Double value) { this.feeValue = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiMyAccountGetAccountFeesTransferTedDtoBuilder feeValue(Double value) { private JsonNullable consideredInMonthlyTransfersWithoutFee = JsonNullable.undefined(); @JsonProperty("consideredInMonthlyTransfersWithoutFee") - public ApiMyAccountGetAccountFeesTransferTedDtoBuilder consideredInMonthlyTransfersWithoutFee(Boolean value) { + public MyAccountGetAccountFeesTransferTedDtoBuilder 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/MyAccountGetAccountNumberResponseDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountNumberResponseDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetAccountNumberResponseDto.java index 3a51e53..28a0c61 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetAccountNumberResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetAccountNumberResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetAccountNumberResponseDto { +public class MyAccountGetAccountNumberResponseDto { /** * Account agency @@ -54,12 +54,12 @@ public String getAccountDigit() { } // Overwrite lombok builder methods - public static class ApiMyAccountGetAccountNumberResponseDtoBuilder { + public static class MyAccountGetAccountNumberResponseDtoBuilder { private JsonNullable agency = JsonNullable.undefined(); @JsonProperty("agency") - public ApiMyAccountGetAccountNumberResponseDtoBuilder agency(String value) { + public MyAccountGetAccountNumberResponseDtoBuilder agency(String value) { this.agency = JsonNullable.of(value); return this; } @@ -67,7 +67,7 @@ public ApiMyAccountGetAccountNumberResponseDtoBuilder agency(String value) { private JsonNullable account = JsonNullable.undefined(); @JsonProperty("account") - public ApiMyAccountGetAccountNumberResponseDtoBuilder account(String value) { + public MyAccountGetAccountNumberResponseDtoBuilder account(String value) { this.account = JsonNullable.of(value); return this; } @@ -75,7 +75,7 @@ public ApiMyAccountGetAccountNumberResponseDtoBuilder account(String value) { private JsonNullable accountDigit = JsonNullable.undefined(); @JsonProperty("accountDigit") - public ApiMyAccountGetAccountNumberResponseDtoBuilder accountDigit(String value) { + public MyAccountGetAccountNumberResponseDtoBuilder 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/MyAccountGetStatusResponseDto.java similarity index 55% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseDto.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseDto.java index 5b75374..356548b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiMyAccountGetStatusResponseDto { +public class MyAccountGetStatusResponseDto { /** * Unique account identifier in Asaas @@ -30,25 +30,25 @@ public class ApiMyAccountGetStatusResponseDto { * Status of sent business data */ @JsonProperty("commercialInfo") - private JsonNullable commercialInfo; + private JsonNullable commercialInfo; /** * Status of sent business data */ @JsonProperty("bankAccountInfo") - private JsonNullable bankAccountInfo; + private JsonNullable bankAccountInfo; /** * Status of sent business data */ @JsonProperty("documentation") - private JsonNullable documentation; + private JsonNullable documentation; /** * Status of sent business data */ @JsonProperty("general") - private JsonNullable general; + private JsonNullable general; @JsonIgnore public String getId() { @@ -56,64 +56,64 @@ public String getId() { } @JsonIgnore - public ApiMyAccountGetStatusResponseStatus getCommercialInfo() { + public MyAccountGetStatusResponseStatus getCommercialInfo() { return commercialInfo.orElse(null); } @JsonIgnore - public ApiMyAccountGetStatusResponseStatus getBankAccountInfo() { + public MyAccountGetStatusResponseStatus getBankAccountInfo() { return bankAccountInfo.orElse(null); } @JsonIgnore - public ApiMyAccountGetStatusResponseStatus getDocumentation() { + public MyAccountGetStatusResponseStatus getDocumentation() { return documentation.orElse(null); } @JsonIgnore - public ApiMyAccountGetStatusResponseStatus getGeneral() { + public MyAccountGetStatusResponseStatus getGeneral() { return general.orElse(null); } // Overwrite lombok builder methods - public static class ApiMyAccountGetStatusResponseDtoBuilder { + public static class MyAccountGetStatusResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiMyAccountGetStatusResponseDtoBuilder id(String value) { + public MyAccountGetStatusResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } - private JsonNullable commercialInfo = JsonNullable.undefined(); + private JsonNullable commercialInfo = JsonNullable.undefined(); @JsonProperty("commercialInfo") - public ApiMyAccountGetStatusResponseDtoBuilder commercialInfo(ApiMyAccountGetStatusResponseStatus value) { + public MyAccountGetStatusResponseDtoBuilder commercialInfo(MyAccountGetStatusResponseStatus value) { this.commercialInfo = JsonNullable.of(value); return this; } - private JsonNullable bankAccountInfo = JsonNullable.undefined(); + private JsonNullable bankAccountInfo = JsonNullable.undefined(); @JsonProperty("bankAccountInfo") - public ApiMyAccountGetStatusResponseDtoBuilder bankAccountInfo(ApiMyAccountGetStatusResponseStatus value) { + public MyAccountGetStatusResponseDtoBuilder bankAccountInfo(MyAccountGetStatusResponseStatus value) { this.bankAccountInfo = JsonNullable.of(value); return this; } - private JsonNullable documentation = JsonNullable.undefined(); + private JsonNullable documentation = JsonNullable.undefined(); @JsonProperty("documentation") - public ApiMyAccountGetStatusResponseDtoBuilder documentation(ApiMyAccountGetStatusResponseStatus value) { + public MyAccountGetStatusResponseDtoBuilder documentation(MyAccountGetStatusResponseStatus value) { this.documentation = JsonNullable.of(value); return this; } - private JsonNullable general = JsonNullable.undefined(); + private JsonNullable general = JsonNullable.undefined(); @JsonProperty("general") - public ApiMyAccountGetStatusResponseDtoBuilder general(ApiMyAccountGetStatusResponseStatus value) { + public MyAccountGetStatusResponseDtoBuilder general(MyAccountGetStatusResponseStatus 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/MyAccountGetStatusResponseStatus.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseStatus.java rename to src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseStatus.java index 4baafeb..7eb05fa 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiMyAccountGetStatusResponseStatus.java +++ b/src/main/java/com/asaas/apisdk/models/MyAccountGetStatusResponseStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiMyAccountGetStatusResponseStatus { +public enum MyAccountGetStatusResponseStatus { PENDING("PENDING"), APPROVED("APPROVED"), REJECTED("REJECTED"), @@ -23,8 +23,8 @@ public enum ApiMyAccountGetStatusResponseStatus { private final String value; @JsonCreator - public static ApiMyAccountGetStatusResponseStatus fromValue(String value) { - return Arrays.stream(ApiMyAccountGetStatusResponseStatus.values()) + 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/ApiNotificationBatchUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateRequestDto.java similarity index 65% rename from src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateRequestDto.java index 6ac22fa..505ec46 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateRequestDto.java @@ -20,7 +20,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiNotificationBatchUpdateRequestDto { +public class NotificationBatchUpdateRequestDto { /** * Unique customer identifier in Asaas @@ -32,20 +32,20 @@ public class ApiNotificationBatchUpdateRequestDto { * List of notification information */ @JsonProperty("notifications") - private JsonNullable> notifications; + private JsonNullable> notifications; @JsonIgnore - public List getNotifications() { + public List getNotifications() { return notifications.orElse(null); } // Overwrite lombok builder methods - public static class ApiNotificationBatchUpdateRequestDtoBuilder { + public static class NotificationBatchUpdateRequestDtoBuilder { - private JsonNullable> notifications = JsonNullable.undefined(); + private JsonNullable> notifications = JsonNullable.undefined(); @JsonProperty("notifications") - public ApiNotificationBatchUpdateRequestDtoBuilder notifications(List value) { + public NotificationBatchUpdateRequestDtoBuilder 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/NotificationBatchUpdateResponseDto.java similarity index 62% rename from src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateResponseDto.java rename to src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateResponseDto.java index 39fe116..0a4a9de 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationBatchUpdateResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/NotificationBatchUpdateResponseDto.java @@ -19,26 +19,26 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiNotificationBatchUpdateResponseDto { +public class NotificationBatchUpdateResponseDto { /** * List of notification information */ @JsonProperty("notifications") - private JsonNullable> notifications; + private JsonNullable> notifications; @JsonIgnore - public List getNotifications() { + public List getNotifications() { return notifications.orElse(null); } // Overwrite lombok builder methods - public static class ApiNotificationBatchUpdateResponseDtoBuilder { + public static class NotificationBatchUpdateResponseDtoBuilder { - private JsonNullable> notifications = JsonNullable.undefined(); + private JsonNullable> notifications = JsonNullable.undefined(); @JsonProperty("notifications") - public ApiNotificationBatchUpdateResponseDtoBuilder notifications(List value) { + public NotificationBatchUpdateResponseDtoBuilder 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/NotificationGetResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/NotificationGetResponseDto.java index 315deab..23e2765 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/NotificationGetResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of notification information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiNotificationGetResponseDto { +public class NotificationGetResponseDto { /** * Object type @@ -84,13 +87,13 @@ public class ApiNotificationGetResponseDto { * Kind of event */ @JsonProperty("event") - private JsonNullable 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; + private JsonNullable scheduleOffset; /** * Indicates whether the notification was deleted @@ -149,12 +152,12 @@ public Boolean getWhatsappEnabledForCustomer() { } @JsonIgnore - public ApiNotificationGetResponseNotificationEvent getEvent() { + public NotificationGetResponseNotificationEvent getEvent() { return event.orElse(null); } @JsonIgnore - public ApiNotificationGetResponseDtoScheduleOffset getScheduleOffset() { + public NotificationGetResponseDtoScheduleOffset getScheduleOffset() { return scheduleOffset.orElse(null); } @@ -164,12 +167,12 @@ public Boolean getDeleted() { } // Overwrite lombok builder methods - public static class ApiNotificationGetResponseDtoBuilder { + public static class NotificationGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiNotificationGetResponseDtoBuilder object(String value) { + public NotificationGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -177,7 +180,7 @@ public ApiNotificationGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiNotificationGetResponseDtoBuilder id(String value) { + public NotificationGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -185,7 +188,7 @@ public ApiNotificationGetResponseDtoBuilder id(String value) { private JsonNullable customer = JsonNullable.undefined(); @JsonProperty("customer") - public ApiNotificationGetResponseDtoBuilder customer(String value) { + public NotificationGetResponseDtoBuilder customer(String value) { this.customer = JsonNullable.of(value); return this; } @@ -193,7 +196,7 @@ public ApiNotificationGetResponseDtoBuilder customer(String value) { private JsonNullable enabled = JsonNullable.undefined(); @JsonProperty("enabled") - public ApiNotificationGetResponseDtoBuilder enabled(Boolean value) { + public NotificationGetResponseDtoBuilder enabled(Boolean value) { this.enabled = JsonNullable.of(value); return this; } @@ -201,7 +204,7 @@ public ApiNotificationGetResponseDtoBuilder enabled(Boolean value) { private JsonNullable emailEnabledForProvider = JsonNullable.undefined(); @JsonProperty("emailEnabledForProvider") - public ApiNotificationGetResponseDtoBuilder emailEnabledForProvider(Boolean value) { + public NotificationGetResponseDtoBuilder emailEnabledForProvider(Boolean value) { this.emailEnabledForProvider = JsonNullable.of(value); return this; } @@ -209,7 +212,7 @@ public ApiNotificationGetResponseDtoBuilder emailEnabledForProvider(Boolean valu private JsonNullable smsEnabledForProvider = JsonNullable.undefined(); @JsonProperty("smsEnabledForProvider") - public ApiNotificationGetResponseDtoBuilder smsEnabledForProvider(Boolean value) { + public NotificationGetResponseDtoBuilder smsEnabledForProvider(Boolean value) { this.smsEnabledForProvider = JsonNullable.of(value); return this; } @@ -217,7 +220,7 @@ public ApiNotificationGetResponseDtoBuilder smsEnabledForProvider(Boolean value) private JsonNullable emailEnabledForCustomer = JsonNullable.undefined(); @JsonProperty("emailEnabledForCustomer") - public ApiNotificationGetResponseDtoBuilder emailEnabledForCustomer(Boolean value) { + public NotificationGetResponseDtoBuilder emailEnabledForCustomer(Boolean value) { this.emailEnabledForCustomer = JsonNullable.of(value); return this; } @@ -225,7 +228,7 @@ public ApiNotificationGetResponseDtoBuilder emailEnabledForCustomer(Boolean valu private JsonNullable smsEnabledForCustomer = JsonNullable.undefined(); @JsonProperty("smsEnabledForCustomer") - public ApiNotificationGetResponseDtoBuilder smsEnabledForCustomer(Boolean value) { + public NotificationGetResponseDtoBuilder smsEnabledForCustomer(Boolean value) { this.smsEnabledForCustomer = JsonNullable.of(value); return this; } @@ -233,7 +236,7 @@ public ApiNotificationGetResponseDtoBuilder smsEnabledForCustomer(Boolean value) private JsonNullable phoneCallEnabledForCustomer = JsonNullable.undefined(); @JsonProperty("phoneCallEnabledForCustomer") - public ApiNotificationGetResponseDtoBuilder phoneCallEnabledForCustomer(Boolean value) { + public NotificationGetResponseDtoBuilder phoneCallEnabledForCustomer(Boolean value) { this.phoneCallEnabledForCustomer = JsonNullable.of(value); return this; } @@ -241,23 +244,23 @@ public ApiNotificationGetResponseDtoBuilder phoneCallEnabledForCustomer(Boolean private JsonNullable whatsappEnabledForCustomer = JsonNullable.undefined(); @JsonProperty("whatsappEnabledForCustomer") - public ApiNotificationGetResponseDtoBuilder whatsappEnabledForCustomer(Boolean value) { + public NotificationGetResponseDtoBuilder whatsappEnabledForCustomer(Boolean value) { this.whatsappEnabledForCustomer = JsonNullable.of(value); return this; } - private JsonNullable event = JsonNullable.undefined(); + private JsonNullable event = JsonNullable.undefined(); @JsonProperty("event") - public ApiNotificationGetResponseDtoBuilder event(ApiNotificationGetResponseNotificationEvent value) { + public NotificationGetResponseDtoBuilder event(NotificationGetResponseNotificationEvent value) { this.event = JsonNullable.of(value); return this; } - private JsonNullable scheduleOffset = JsonNullable.undefined(); + private JsonNullable scheduleOffset = JsonNullable.undefined(); @JsonProperty("scheduleOffset") - public ApiNotificationGetResponseDtoBuilder scheduleOffset(ApiNotificationGetResponseDtoScheduleOffset value) { + public NotificationGetResponseDtoBuilder scheduleOffset(NotificationGetResponseDtoScheduleOffset value) { this.scheduleOffset = JsonNullable.of(value); return this; } @@ -265,7 +268,7 @@ public ApiNotificationGetResponseDtoBuilder scheduleOffset(ApiNotificationGetRes private JsonNullable deleted = JsonNullable.of(true); @JsonProperty("deleted") - public ApiNotificationGetResponseDtoBuilder deleted(Boolean value) { + public NotificationGetResponseDtoBuilder 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/NotificationGetResponseDtoScheduleOffset.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDtoScheduleOffset.java rename to src/main/java/com/asaas/apisdk/models/NotificationGetResponseDtoScheduleOffset.java index 38f7a9d..0f59d6e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseDtoScheduleOffset.java +++ b/src/main/java/com/asaas/apisdk/models/NotificationGetResponseDtoScheduleOffset.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiNotificationGetResponseDtoScheduleOffset { +public enum NotificationGetResponseDtoScheduleOffset { _0(0), _1(1), _5(5), @@ -26,8 +26,8 @@ public enum ApiNotificationGetResponseDtoScheduleOffset { private final long value; @JsonCreator - public static ApiNotificationGetResponseDtoScheduleOffset fromValue(String value) { - return Arrays.stream(ApiNotificationGetResponseDtoScheduleOffset.values()) + 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/ApiNotificationGetResponseNotificationEvent.java b/src/main/java/com/asaas/apisdk/models/NotificationGetResponseNotificationEvent.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseNotificationEvent.java rename to src/main/java/com/asaas/apisdk/models/NotificationGetResponseNotificationEvent.java index 139ef8e..2c7ffbb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationGetResponseNotificationEvent.java +++ b/src/main/java/com/asaas/apisdk/models/NotificationGetResponseNotificationEvent.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiNotificationGetResponseNotificationEvent { +public enum NotificationGetResponseNotificationEvent { PAYMENT_CREATED("PAYMENT_CREATED"), PAYMENT_UPDATED("PAYMENT_UPDATED"), PAYMENT_RECEIVED("PAYMENT_RECEIVED"), @@ -25,8 +25,8 @@ public enum ApiNotificationGetResponseNotificationEvent { private final String value; @JsonCreator - public static ApiNotificationGetResponseNotificationEvent fromValue(String value) { - return Arrays.stream(ApiNotificationGetResponseNotificationEvent.values()) + 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/ApiNotificationUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDto.java index a1a3834..fc4b4be 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of notification information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiNotificationUpdateRequestDto { +public class NotificationUpdateRequestDto { /** * Enable/disable notification @@ -68,7 +71,7 @@ public class ApiNotificationUpdateRequestDto { * For the `PAYMENT_OVERDUE` event, the accepted values are: `1`, `7`, `15` and `30` */ @JsonProperty("scheduleOffset") - private JsonNullable scheduleOffset; + private JsonNullable scheduleOffset; @JsonIgnore public Boolean getEnabled() { @@ -106,17 +109,17 @@ public Boolean getWhatsappEnabledForCustomer() { } @JsonIgnore - public ApiNotificationUpdateRequestDtoScheduleOffset getScheduleOffset() { + public NotificationUpdateRequestDtoScheduleOffset getScheduleOffset() { return scheduleOffset.orElse(null); } // Overwrite lombok builder methods - public static class ApiNotificationUpdateRequestDtoBuilder { + public static class NotificationUpdateRequestDtoBuilder { private JsonNullable enabled = JsonNullable.undefined(); @JsonProperty("enabled") - public ApiNotificationUpdateRequestDtoBuilder enabled(Boolean value) { + public NotificationUpdateRequestDtoBuilder enabled(Boolean value) { this.enabled = JsonNullable.of(value); return this; } @@ -124,7 +127,7 @@ public ApiNotificationUpdateRequestDtoBuilder enabled(Boolean value) { private JsonNullable emailEnabledForProvider = JsonNullable.undefined(); @JsonProperty("emailEnabledForProvider") - public ApiNotificationUpdateRequestDtoBuilder emailEnabledForProvider(Boolean value) { + public NotificationUpdateRequestDtoBuilder emailEnabledForProvider(Boolean value) { this.emailEnabledForProvider = JsonNullable.of(value); return this; } @@ -132,7 +135,7 @@ public ApiNotificationUpdateRequestDtoBuilder emailEnabledForProvider(Boolean va private JsonNullable smsEnabledForProvider = JsonNullable.undefined(); @JsonProperty("smsEnabledForProvider") - public ApiNotificationUpdateRequestDtoBuilder smsEnabledForProvider(Boolean value) { + public NotificationUpdateRequestDtoBuilder smsEnabledForProvider(Boolean value) { this.smsEnabledForProvider = JsonNullable.of(value); return this; } @@ -140,7 +143,7 @@ public ApiNotificationUpdateRequestDtoBuilder smsEnabledForProvider(Boolean valu private JsonNullable emailEnabledForCustomer = JsonNullable.undefined(); @JsonProperty("emailEnabledForCustomer") - public ApiNotificationUpdateRequestDtoBuilder emailEnabledForCustomer(Boolean value) { + public NotificationUpdateRequestDtoBuilder emailEnabledForCustomer(Boolean value) { this.emailEnabledForCustomer = JsonNullable.of(value); return this; } @@ -148,7 +151,7 @@ public ApiNotificationUpdateRequestDtoBuilder emailEnabledForCustomer(Boolean va private JsonNullable smsEnabledForCustomer = JsonNullable.undefined(); @JsonProperty("smsEnabledForCustomer") - public ApiNotificationUpdateRequestDtoBuilder smsEnabledForCustomer(Boolean value) { + public NotificationUpdateRequestDtoBuilder smsEnabledForCustomer(Boolean value) { this.smsEnabledForCustomer = JsonNullable.of(value); return this; } @@ -156,7 +159,7 @@ public ApiNotificationUpdateRequestDtoBuilder smsEnabledForCustomer(Boolean valu private JsonNullable phoneCallEnabledForCustomer = JsonNullable.undefined(); @JsonProperty("phoneCallEnabledForCustomer") - public ApiNotificationUpdateRequestDtoBuilder phoneCallEnabledForCustomer(Boolean value) { + public NotificationUpdateRequestDtoBuilder phoneCallEnabledForCustomer(Boolean value) { this.phoneCallEnabledForCustomer = JsonNullable.of(value); return this; } @@ -164,15 +167,15 @@ public ApiNotificationUpdateRequestDtoBuilder phoneCallEnabledForCustomer(Boolea private JsonNullable whatsappEnabledForCustomer = JsonNullable.undefined(); @JsonProperty("whatsappEnabledForCustomer") - public ApiNotificationUpdateRequestDtoBuilder whatsappEnabledForCustomer(Boolean value) { + public NotificationUpdateRequestDtoBuilder whatsappEnabledForCustomer(Boolean value) { this.whatsappEnabledForCustomer = JsonNullable.of(value); return this; } - private JsonNullable scheduleOffset = JsonNullable.undefined(); + private JsonNullable scheduleOffset = JsonNullable.undefined(); @JsonProperty("scheduleOffset") - public ApiNotificationUpdateRequestDtoBuilder scheduleOffset(ApiNotificationUpdateRequestDtoScheduleOffset value) { + public NotificationUpdateRequestDtoBuilder scheduleOffset(NotificationUpdateRequestDtoScheduleOffset 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/NotificationUpdateRequestDtoScheduleOffset.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDtoScheduleOffset.java rename to src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDtoScheduleOffset.java index f02b438..808c3a6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationUpdateRequestDtoScheduleOffset.java +++ b/src/main/java/com/asaas/apisdk/models/NotificationUpdateRequestDtoScheduleOffset.java @@ -15,7 +15,7 @@ */ @Getter @AllArgsConstructor -public enum ApiNotificationUpdateRequestDtoScheduleOffset { +public enum NotificationUpdateRequestDtoScheduleOffset { _0(0), _1(1), _5(5), @@ -28,8 +28,8 @@ public enum ApiNotificationUpdateRequestDtoScheduleOffset { private final long value; @JsonCreator - public static ApiNotificationUpdateRequestDtoScheduleOffset fromValue(String value) { - return Arrays.stream(ApiNotificationUpdateRequestDtoScheduleOffset.values()) + 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/ApiPaymentBankSlipRefundResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentBankSlipRefundResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentBankSlipRefundResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentBankSlipRefundResponseDto.java index d605857..949bca3 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentBankSlipRefundResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentBankSlipRefundResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentBankSlipRefundResponseDto { +public class PaymentBankSlipRefundResponseDto { /** * Link to report refund details @@ -32,12 +32,12 @@ public String getRequestUrl() { } // Overwrite lombok builder methods - public static class ApiPaymentBankSlipRefundResponseDtoBuilder { + public static class PaymentBankSlipRefundResponseDtoBuilder { private JsonNullable requestUrl = JsonNullable.undefined(); @JsonProperty("requestUrl") - public ApiPaymentBankSlipRefundResponseDtoBuilder requestUrl(String value) { + 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/ApiPaymentCallbackRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentCallbackRequestDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCallbackRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentCallbackRequestDto.java index b5adb2f..085f9e3 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCallbackRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentCallbackRequestDto.java @@ -13,13 +13,16 @@ 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 ApiPaymentCallbackRequestDto { +public class PaymentCallbackRequestDto { /** * URL that the customer will be redirected to after successful payment of the invoice or payment link @@ -39,12 +42,12 @@ public Boolean getAutoRedirect() { } // Overwrite lombok builder methods - public static class ApiPaymentCallbackRequestDtoBuilder { + public static class PaymentCallbackRequestDtoBuilder { private JsonNullable autoRedirect = JsonNullable.undefined(); @JsonProperty("autoRedirect") - public ApiPaymentCallbackRequestDtoBuilder autoRedirect(Boolean value) { + public PaymentCallbackRequestDtoBuilder autoRedirect(Boolean value) { this.autoRedirect = 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/PaymentChargebackResponseChargebackDisputeStatus.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackDisputeStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackDisputeStatus.java index 01a2e3d..63ced6a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackDisputeStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackDisputeStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentChargebackResponseChargebackDisputeStatus { +public enum PaymentChargebackResponseChargebackDisputeStatus { REQUESTED("REQUESTED"), ACCEPTED("ACCEPTED"), REJECTED("REJECTED"); @@ -22,8 +22,8 @@ public enum ApiPaymentChargebackResponseChargebackDisputeStatus { private final String value; @JsonCreator - public static ApiPaymentChargebackResponseChargebackDisputeStatus fromValue(String value) { - return Arrays.stream(ApiPaymentChargebackResponseChargebackDisputeStatus.values()) + 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/ApiPaymentChargebackResponseChargebackReason.java b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackReason.java similarity index 90% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackReason.java rename to src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackReason.java index 2775a9e..f8c045b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackReason.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackReason.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentChargebackResponseChargebackReason { +public enum PaymentChargebackResponseChargebackReason { ABSENCE_OF_PRINT("ABSENCE_OF_PRINT"), ABSENT_CARD_FRAUD("ABSENT_CARD_FRAUD"), CARD_ACTIVATED_PHONE_TRANSACTION("CARD_ACTIVATED_PHONE_TRANSACTION"), @@ -51,8 +51,8 @@ public enum ApiPaymentChargebackResponseChargebackReason { private final String value; @JsonCreator - public static ApiPaymentChargebackResponseChargebackReason fromValue(String value) { - return Arrays.stream(ApiPaymentChargebackResponseChargebackReason.values()) + 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/ApiPaymentChargebackResponseChargebackStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackStatus.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackStatus.java index 6eed619..15234bf 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseChargebackStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseChargebackStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentChargebackResponseChargebackStatus { +public enum PaymentChargebackResponseChargebackStatus { REQUESTED("REQUESTED"), IN_DISPUTE("IN_DISPUTE"), DISPUTE_LOST("DISPUTE_LOST"), @@ -24,8 +24,8 @@ public enum ApiPaymentChargebackResponseChargebackStatus { private final String value; @JsonCreator - public static ApiPaymentChargebackResponseChargebackStatus fromValue(String value) { - return Arrays.stream(ApiPaymentChargebackResponseChargebackStatus.values()) + 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/ApiPaymentChargebackResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseDto.java similarity index 67% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseDto.java index 6711da4..42feea9 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentChargebackResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentChargebackResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentChargebackResponseDto { +public class PaymentChargebackResponseDto { /** * Unique chargeback identifier. @@ -48,13 +48,13 @@ public class ApiPaymentChargebackResponseDto { * Chargeback status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Chargeback reason */ @JsonProperty("reason") - private JsonNullable reason; + private JsonNullable reason; /** * Chargeback opening date. @@ -74,14 +74,17 @@ public class ApiPaymentChargebackResponseDto { @JsonProperty("paymentDate") private JsonNullable paymentDate; + /** + * Credit card information + */ @JsonProperty("creditCard") - private JsonNullable creditCard; + private JsonNullable creditCard; /** * Chargeback dispute status. */ @JsonProperty("disputeStatus") - private JsonNullable disputeStatus; + private JsonNullable disputeStatus; /** * Deadline to send dispute documents. @@ -110,12 +113,12 @@ public String getCustomerAccount() { } @JsonIgnore - public ApiPaymentChargebackResponseChargebackStatus getStatus() { + public PaymentChargebackResponseChargebackStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiPaymentChargebackResponseChargebackReason getReason() { + public PaymentChargebackResponseChargebackReason getReason() { return reason.orElse(null); } @@ -135,12 +138,12 @@ public String getPaymentDate() { } @JsonIgnore - public ApiChargebackCreditCardResponseDto getCreditCard() { + public ChargebackCreditCardResponseDto getCreditCard() { return creditCard.orElse(null); } @JsonIgnore - public ApiPaymentChargebackResponseChargebackDisputeStatus getDisputeStatus() { + public PaymentChargebackResponseChargebackDisputeStatus getDisputeStatus() { return disputeStatus.orElse(null); } @@ -150,12 +153,12 @@ public String getDeadlineToSendDisputeDocuments() { } // Overwrite lombok builder methods - public static class ApiPaymentChargebackResponseDtoBuilder { + public static class PaymentChargebackResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentChargebackResponseDtoBuilder id(String value) { + public PaymentChargebackResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -163,7 +166,7 @@ public ApiPaymentChargebackResponseDtoBuilder id(String value) { private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") - public ApiPaymentChargebackResponseDtoBuilder payment(String value) { + public PaymentChargebackResponseDtoBuilder payment(String value) { this.payment = JsonNullable.of(value); return this; } @@ -171,7 +174,7 @@ public ApiPaymentChargebackResponseDtoBuilder payment(String value) { private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiPaymentChargebackResponseDtoBuilder installment(String value) { + public PaymentChargebackResponseDtoBuilder installment(String value) { this.installment = JsonNullable.of(value); return this; } @@ -179,23 +182,23 @@ public ApiPaymentChargebackResponseDtoBuilder installment(String value) { private JsonNullable customerAccount = JsonNullable.undefined(); @JsonProperty("customerAccount") - public ApiPaymentChargebackResponseDtoBuilder customerAccount(String value) { + public PaymentChargebackResponseDtoBuilder customerAccount(String value) { this.customerAccount = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentChargebackResponseDtoBuilder status(ApiPaymentChargebackResponseChargebackStatus value) { + public PaymentChargebackResponseDtoBuilder status(PaymentChargebackResponseChargebackStatus value) { this.status = JsonNullable.of(value); return this; } - private JsonNullable reason = JsonNullable.undefined(); + private JsonNullable reason = JsonNullable.undefined(); @JsonProperty("reason") - public ApiPaymentChargebackResponseDtoBuilder reason(ApiPaymentChargebackResponseChargebackReason value) { + public PaymentChargebackResponseDtoBuilder reason(PaymentChargebackResponseChargebackReason value) { this.reason = JsonNullable.of(value); return this; } @@ -203,7 +206,7 @@ public ApiPaymentChargebackResponseDtoBuilder reason(ApiPaymentChargebackRespons private JsonNullable disputeStartDate = JsonNullable.undefined(); @JsonProperty("disputeStartDate") - public ApiPaymentChargebackResponseDtoBuilder disputeStartDate(String value) { + public PaymentChargebackResponseDtoBuilder disputeStartDate(String value) { this.disputeStartDate = JsonNullable.of(value); return this; } @@ -211,7 +214,7 @@ public ApiPaymentChargebackResponseDtoBuilder disputeStartDate(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentChargebackResponseDtoBuilder value(Double value) { + public PaymentChargebackResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -219,25 +222,23 @@ public ApiPaymentChargebackResponseDtoBuilder value(Double value) { private JsonNullable paymentDate = JsonNullable.undefined(); @JsonProperty("paymentDate") - public ApiPaymentChargebackResponseDtoBuilder paymentDate(String value) { + public PaymentChargebackResponseDtoBuilder paymentDate(String value) { this.paymentDate = JsonNullable.of(value); return this; } - private JsonNullable creditCard = JsonNullable.undefined(); + private JsonNullable creditCard = JsonNullable.undefined(); @JsonProperty("creditCard") - public ApiPaymentChargebackResponseDtoBuilder creditCard(ApiChargebackCreditCardResponseDto value) { + public PaymentChargebackResponseDtoBuilder creditCard(ChargebackCreditCardResponseDto value) { this.creditCard = JsonNullable.of(value); return this; } - private JsonNullable disputeStatus = JsonNullable.undefined(); + private JsonNullable disputeStatus = JsonNullable.undefined(); @JsonProperty("disputeStatus") - public ApiPaymentChargebackResponseDtoBuilder disputeStatus( - ApiPaymentChargebackResponseChargebackDisputeStatus value - ) { + public PaymentChargebackResponseDtoBuilder disputeStatus(PaymentChargebackResponseChargebackDisputeStatus value) { this.disputeStatus = JsonNullable.of(value); return this; } @@ -245,7 +246,7 @@ public ApiPaymentChargebackResponseDtoBuilder disputeStatus( private JsonNullable deadlineToSendDisputeDocuments = JsonNullable.undefined(); @JsonProperty("deadlineToSendDisputeDocuments") - public ApiPaymentChargebackResponseDtoBuilder deadlineToSendDisputeDocuments(String value) { + public PaymentChargebackResponseDtoBuilder deadlineToSendDisputeDocuments(String value) { this.deadlineToSendDisputeDocuments = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseDto.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseDto.java index 93b61bf..7685e90 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentCheckoutConfigGetResponseDto { +public class PaymentCheckoutConfigGetResponseDto { /** * Object type @@ -66,7 +66,7 @@ public class ApiPaymentCheckoutConfigGetResponseDto { * Invoice personalization status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; @JsonIgnore public String getObject() { @@ -104,17 +104,17 @@ public String getObservations() { } @JsonIgnore - public ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus getStatus() { + public PaymentCheckoutConfigGetResponseInvoiceConfigStatus getStatus() { return status.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentCheckoutConfigGetResponseDtoBuilder { + public static class PaymentCheckoutConfigGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder object(String value) { + public PaymentCheckoutConfigGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -122,7 +122,7 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder object(String value) { private JsonNullable logoBackgroundColor = JsonNullable.undefined(); @JsonProperty("logoBackgroundColor") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder logoBackgroundColor(String value) { + public PaymentCheckoutConfigGetResponseDtoBuilder logoBackgroundColor(String value) { this.logoBackgroundColor = JsonNullable.of(value); return this; } @@ -130,7 +130,7 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder logoBackgroundColor(String private JsonNullable infoBackgroundColor = JsonNullable.undefined(); @JsonProperty("infoBackgroundColor") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder infoBackgroundColor(String value) { + public PaymentCheckoutConfigGetResponseDtoBuilder infoBackgroundColor(String value) { this.infoBackgroundColor = JsonNullable.of(value); return this; } @@ -138,7 +138,7 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder infoBackgroundColor(String private JsonNullable fontColor = JsonNullable.undefined(); @JsonProperty("fontColor") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder fontColor(String value) { + public PaymentCheckoutConfigGetResponseDtoBuilder fontColor(String value) { this.fontColor = JsonNullable.of(value); return this; } @@ -146,7 +146,7 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder fontColor(String value) { private JsonNullable enabled = JsonNullable.of(true); @JsonProperty("enabled") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder enabled(Boolean value) { + public PaymentCheckoutConfigGetResponseDtoBuilder enabled(Boolean value) { this.enabled = JsonNullable.of(value); return this; } @@ -154,7 +154,7 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder enabled(Boolean value) { private JsonNullable logoUrl = JsonNullable.undefined(); @JsonProperty("logoUrl") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder logoUrl(String value) { + public PaymentCheckoutConfigGetResponseDtoBuilder logoUrl(String value) { this.logoUrl = JsonNullable.of(value); return this; } @@ -162,17 +162,16 @@ public ApiPaymentCheckoutConfigGetResponseDtoBuilder logoUrl(String value) { private JsonNullable observations = JsonNullable.undefined(); @JsonProperty("observations") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder observations(String value) { + public PaymentCheckoutConfigGetResponseDtoBuilder observations(String value) { this.observations = JsonNullable.of(value); return this; } - private JsonNullable status = - JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentCheckoutConfigGetResponseDtoBuilder status( - ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus value + public PaymentCheckoutConfigGetResponseDtoBuilder status( + PaymentCheckoutConfigGetResponseInvoiceConfigStatus value ) { this.status = 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/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.java similarity index 67% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.java index 50fbff3..3726b50 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigGetResponseInvoiceConfigStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus { +public enum PaymentCheckoutConfigGetResponseInvoiceConfigStatus { AWAITING_APPROVAL("AWAITING_APPROVAL"), APPROVED("APPROVED"), REJECTED("REJECTED"); @@ -22,8 +22,8 @@ public enum ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus { private final String value; @JsonCreator - public static ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus fromValue(String value) { - return Arrays.stream(ApiPaymentCheckoutConfigGetResponseCustomerInvoiceConfigStatus.values()) + 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/ApiPaymentCheckoutConfigSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigSaveRequestDto.java similarity index 85% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigSaveRequestDto.java index bc37016..779bf71 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCheckoutConfigSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentCheckoutConfigSaveRequestDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentCheckoutConfigSaveRequestDto { +public class PaymentCheckoutConfigSaveRequestDto { /** * Logo background color @@ -62,12 +62,12 @@ public byte[] getLogoFile() { } // Overwrite lombok builder methods - public static class ApiPaymentCheckoutConfigSaveRequestDtoBuilder { + public static class PaymentCheckoutConfigSaveRequestDtoBuilder { private JsonNullable enabled = JsonNullable.undefined(); @JsonProperty("enabled") - public ApiPaymentCheckoutConfigSaveRequestDtoBuilder enabled(Boolean value) { + public PaymentCheckoutConfigSaveRequestDtoBuilder enabled(Boolean value) { this.enabled = JsonNullable.of(value); return this; } @@ -75,7 +75,7 @@ public ApiPaymentCheckoutConfigSaveRequestDtoBuilder enabled(Boolean value) { private JsonNullable logoFile = JsonNullable.undefined(); @JsonProperty("logoFile") - public ApiPaymentCheckoutConfigSaveRequestDtoBuilder logoFile(byte[] value) { + public PaymentCheckoutConfigSaveRequestDtoBuilder logoFile(byte[] value) { if (value == null) { throw new IllegalStateException("logoFile cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDeleteResponseDto.java similarity index 84% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDeleteResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDeleteResponseDto.java index 61a2f86..407982e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDeleteResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDeleteResponseDto { +public class PaymentDeleteResponseDto { /** * Indicates whether the charge has been removed @@ -43,12 +43,12 @@ public String getId() { } // Overwrite lombok builder methods - public static class ApiPaymentDeleteResponseDtoBuilder { + public static class PaymentDeleteResponseDtoBuilder { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiPaymentDeleteResponseDtoBuilder deleted(Boolean value) { + public PaymentDeleteResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiPaymentDeleteResponseDtoBuilder deleted(Boolean value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentDeleteResponseDtoBuilder id(String value) { + public PaymentDeleteResponseDtoBuilder 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/PaymentDiscountDiscountType.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDiscountType.java rename to src/main/java/com/asaas/apisdk/models/PaymentDiscountDiscountType.java index 3850a2c..c6f5b10 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDiscountType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDiscountDiscountType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDiscountDiscountType { +public enum PaymentDiscountDiscountType { FIXED("FIXED"), PERCENTAGE("PERCENTAGE"); @@ -21,8 +21,8 @@ public enum ApiPaymentDiscountDiscountType { private final String value; @JsonCreator - public static ApiPaymentDiscountDiscountType fromValue(String value) { - return Arrays.stream(ApiPaymentDiscountDiscountType.values()) + 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/ApiPaymentDiscountDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDiscountDto.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDiscountDto.java index 0ef3d22..dc3a689 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDiscountDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDiscountDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Discount information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDiscountDto { +public class PaymentDiscountDto { /** * Percentage or fixed amount of discount to be applied to the Payment amount @@ -36,7 +39,7 @@ public class ApiPaymentDiscountDto { * Discount type */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; @JsonIgnore public Double getValue() { @@ -49,17 +52,17 @@ public Long getDueDateLimitDays() { } @JsonIgnore - public ApiPaymentDiscountDiscountType getType() { + public PaymentDiscountDiscountType getType() { return type.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentDiscountDtoBuilder { + public static class PaymentDiscountDtoBuilder { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentDiscountDtoBuilder value(Double value) { + public PaymentDiscountDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -67,15 +70,15 @@ public ApiPaymentDiscountDtoBuilder value(Double value) { private JsonNullable dueDateLimitDays = JsonNullable.undefined(); @JsonProperty("dueDateLimitDays") - public ApiPaymentDiscountDtoBuilder dueDateLimitDays(Long value) { + public PaymentDiscountDtoBuilder dueDateLimitDays(Long value) { this.dueDateLimitDays = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiPaymentDiscountDtoBuilder type(ApiPaymentDiscountDiscountType value) { + public PaymentDiscountDtoBuilder type(PaymentDiscountDiscountType 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/PaymentDocumentDeleteResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentDeleteResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDocumentDeleteResponseDto.java index 90c6bda..68447d5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentDeleteResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDocumentDeleteResponseDto { +public class PaymentDocumentDeleteResponseDto { /** * Indicates whether the file was removed @@ -43,12 +43,12 @@ public String getId() { } // Overwrite lombok builder methods - public static class ApiPaymentDocumentDeleteResponseDtoBuilder { + public static class PaymentDocumentDeleteResponseDtoBuilder { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiPaymentDocumentDeleteResponseDtoBuilder deleted(Boolean value) { + public PaymentDocumentDeleteResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiPaymentDocumentDeleteResponseDtoBuilder deleted(Boolean value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentDocumentDeleteResponseDtoBuilder id(String value) { + public PaymentDocumentDeleteResponseDtoBuilder 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/PaymentDocumentFileResponseDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentFileResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDocumentFileResponseDto.java index 717599f..29f3fe7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentFileResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentFileResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * File object + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDocumentFileResponseDto { +public class PaymentDocumentFileResponseDto { /** * Unique document identifier @@ -87,12 +90,12 @@ public String getDownloadUrl() { } // Overwrite lombok builder methods - public static class ApiPaymentDocumentFileResponseDtoBuilder { + public static class PaymentDocumentFileResponseDtoBuilder { private JsonNullable publicId = JsonNullable.undefined(); @JsonProperty("publicId") - public ApiPaymentDocumentFileResponseDtoBuilder publicId(String value) { + public PaymentDocumentFileResponseDtoBuilder publicId(String value) { this.publicId = JsonNullable.of(value); return this; } @@ -100,7 +103,7 @@ public ApiPaymentDocumentFileResponseDtoBuilder publicId(String value) { private JsonNullable originalName = JsonNullable.undefined(); @JsonProperty("originalName") - public ApiPaymentDocumentFileResponseDtoBuilder originalName(String value) { + public PaymentDocumentFileResponseDtoBuilder originalName(String value) { this.originalName = JsonNullable.of(value); return this; } @@ -108,7 +111,7 @@ public ApiPaymentDocumentFileResponseDtoBuilder originalName(String value) { private JsonNullable size = JsonNullable.undefined(); @JsonProperty("size") - public ApiPaymentDocumentFileResponseDtoBuilder size(Long value) { + public PaymentDocumentFileResponseDtoBuilder size(Long value) { this.size = JsonNullable.of(value); return this; } @@ -116,7 +119,7 @@ public ApiPaymentDocumentFileResponseDtoBuilder size(Long value) { private JsonNullable extension = JsonNullable.undefined(); @JsonProperty("extension") - public ApiPaymentDocumentFileResponseDtoBuilder extension(String value) { + public PaymentDocumentFileResponseDtoBuilder extension(String value) { this.extension = JsonNullable.of(value); return this; } @@ -124,7 +127,7 @@ public ApiPaymentDocumentFileResponseDtoBuilder extension(String value) { private JsonNullable previewUrl = JsonNullable.undefined(); @JsonProperty("previewUrl") - public ApiPaymentDocumentFileResponseDtoBuilder previewUrl(String value) { + public PaymentDocumentFileResponseDtoBuilder previewUrl(String value) { this.previewUrl = JsonNullable.of(value); return this; } @@ -132,7 +135,7 @@ public ApiPaymentDocumentFileResponseDtoBuilder previewUrl(String value) { private JsonNullable downloadUrl = JsonNullable.undefined(); @JsonProperty("downloadUrl") - public ApiPaymentDocumentFileResponseDtoBuilder downloadUrl(String value) { + public PaymentDocumentFileResponseDtoBuilder 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/PaymentDocumentGetResponseDto.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponseDto.java index eff47ae..581765f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDocumentGetResponseDto { +public class PaymentDocumentGetResponseDto { /** * Object type @@ -42,7 +42,7 @@ public class ApiPaymentDocumentGetResponseDto { * Document type */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Available only after payment @@ -50,8 +50,11 @@ public class ApiPaymentDocumentGetResponseDto { @JsonProperty("availableAfterPayment") private JsonNullable availableAfterPayment; + /** + * File object + */ @JsonProperty("file") - private JsonNullable file; + private JsonNullable file; /** * Indicates whether the file was removed @@ -75,7 +78,7 @@ public String getName() { } @JsonIgnore - public ApiPaymentDocumentGetResponsePaymentDocumentType getType() { + public PaymentDocumentGetResponsePaymentDocumentType getType() { return type.orElse(null); } @@ -85,7 +88,7 @@ public Boolean getAvailableAfterPayment() { } @JsonIgnore - public ApiPaymentDocumentFileResponseDto getFile() { + public PaymentDocumentFileResponseDto getFile() { return file.orElse(null); } @@ -95,12 +98,12 @@ public Boolean getDeleted() { } // Overwrite lombok builder methods - public static class ApiPaymentDocumentGetResponseDtoBuilder { + public static class PaymentDocumentGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPaymentDocumentGetResponseDtoBuilder object(String value) { + public PaymentDocumentGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -108,7 +111,7 @@ public ApiPaymentDocumentGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentDocumentGetResponseDtoBuilder id(String value) { + public PaymentDocumentGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -116,15 +119,15 @@ public ApiPaymentDocumentGetResponseDtoBuilder id(String value) { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiPaymentDocumentGetResponseDtoBuilder name(String value) { + public PaymentDocumentGetResponseDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiPaymentDocumentGetResponseDtoBuilder type(ApiPaymentDocumentGetResponsePaymentDocumentType value) { + public PaymentDocumentGetResponseDtoBuilder type(PaymentDocumentGetResponsePaymentDocumentType value) { this.type = JsonNullable.of(value); return this; } @@ -132,15 +135,15 @@ public ApiPaymentDocumentGetResponseDtoBuilder type(ApiPaymentDocumentGetRespons private JsonNullable availableAfterPayment = JsonNullable.undefined(); @JsonProperty("availableAfterPayment") - public ApiPaymentDocumentGetResponseDtoBuilder availableAfterPayment(Boolean value) { + public PaymentDocumentGetResponseDtoBuilder availableAfterPayment(Boolean value) { this.availableAfterPayment = JsonNullable.of(value); return this; } - private JsonNullable file = JsonNullable.undefined(); + private JsonNullable file = JsonNullable.undefined(); @JsonProperty("file") - public ApiPaymentDocumentGetResponseDtoBuilder file(ApiPaymentDocumentFileResponseDto value) { + public PaymentDocumentGetResponseDtoBuilder file(PaymentDocumentFileResponseDto value) { this.file = JsonNullable.of(value); return this; } @@ -148,7 +151,7 @@ public ApiPaymentDocumentGetResponseDtoBuilder file(ApiPaymentDocumentFileRespon private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiPaymentDocumentGetResponseDtoBuilder deleted(Boolean value) { + public PaymentDocumentGetResponseDtoBuilder 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/PaymentDocumentGetResponsePaymentDocumentType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponsePaymentDocumentType.java rename to src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponsePaymentDocumentType.java index dc7576a..3555438 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentGetResponsePaymentDocumentType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentGetResponsePaymentDocumentType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDocumentGetResponsePaymentDocumentType { +public enum PaymentDocumentGetResponsePaymentDocumentType { INVOICE("INVOICE"), CONTRACT("CONTRACT"), MEDIA("MEDIA"), @@ -26,8 +26,8 @@ public enum ApiPaymentDocumentGetResponsePaymentDocumentType { private final String value; @JsonCreator - public static ApiPaymentDocumentGetResponsePaymentDocumentType fromValue(String value) { - return Arrays.stream(ApiPaymentDocumentGetResponsePaymentDocumentType.values()) + 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/ApiNotificationListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentListResponseDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiNotificationListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDocumentListResponseDto.java index 08d01d4..06ce341 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiNotificationListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiNotificationListResponseDto { +public class PaymentDocumentListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiNotificationListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiNotificationListResponseDtoBuilder { + public static class PaymentDocumentListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiNotificationListResponseDtoBuilder object(String value) { + public PaymentDocumentListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiNotificationListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiNotificationListResponseDtoBuilder hasMore(Boolean value) { + public PaymentDocumentListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiNotificationListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiNotificationListResponseDtoBuilder totalCount(Long value) { + public PaymentDocumentListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiNotificationListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiNotificationListResponseDtoBuilder limit(Long value) { + public PaymentDocumentListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiNotificationListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiNotificationListResponseDtoBuilder offset(Long value) { + public PaymentDocumentListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiNotificationListResponseDtoBuilder data(List value) { + public PaymentDocumentListResponseDtoBuilder 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/PaymentDocumentSaveRequestDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestDto.java index 5bc2236..99d0828 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestDto.java @@ -16,7 +16,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDocumentSaveRequestDto { +public class PaymentDocumentSaveRequestDto { /** * true to make the file available only after receipt of the payment @@ -28,7 +28,7 @@ public class ApiPaymentDocumentSaveRequestDto { * Document type */ @NonNull - private ApiPaymentDocumentSaveRequestPaymentDocumentType type; + private PaymentDocumentSaveRequestPaymentDocumentType type; /** * File diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestPaymentDocumentType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.java rename to src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestPaymentDocumentType.java index 7009cc8..2ffd39b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentSaveRequestPaymentDocumentType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentSaveRequestPaymentDocumentType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDocumentSaveRequestPaymentDocumentType { +public enum PaymentDocumentSaveRequestPaymentDocumentType { INVOICE("INVOICE"), CONTRACT("CONTRACT"), MEDIA("MEDIA"), @@ -26,8 +26,8 @@ public enum ApiPaymentDocumentSaveRequestPaymentDocumentType { private final String value; @JsonCreator - public static ApiPaymentDocumentSaveRequestPaymentDocumentType fromValue(String value) { - return Arrays.stream(ApiPaymentDocumentSaveRequestPaymentDocumentType.values()) + 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/ApiPaymentDocumentUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestDto.java index 7c8273e..a2ff6da 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestDto.java @@ -16,7 +16,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDocumentUpdateRequestDto { +public class PaymentDocumentUpdateRequestDto { /** * true to make the file available only after receipt of the payment @@ -28,5 +28,5 @@ public class ApiPaymentDocumentUpdateRequestDto { * Document type */ @NonNull - private ApiPaymentDocumentUpdateRequestPaymentDocumentType type; + private PaymentDocumentUpdateRequestPaymentDocumentType type; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.java b/src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestPaymentDocumentType.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.java rename to src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestPaymentDocumentType.java index e3f991e..37be5c9 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDocumentUpdateRequestPaymentDocumentType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDocumentUpdateRequestPaymentDocumentType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDocumentUpdateRequestPaymentDocumentType { +public enum PaymentDocumentUpdateRequestPaymentDocumentType { INVOICE("INVOICE"), CONTRACT("CONTRACT"), MEDIA("MEDIA"), @@ -26,8 +26,8 @@ public enum ApiPaymentDocumentUpdateRequestPaymentDocumentType { private final String value; @JsonCreator - public static ApiPaymentDocumentUpdateRequestPaymentDocumentType fromValue(String value) { - return Arrays.stream(ApiPaymentDocumentUpdateRequestPaymentDocumentType.values()) + 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/ApiPaymentDunningShowResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponseDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponseDto.java index b9af8ae..04963ac 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDunningShowResponseDto { +public class PaymentDunningCancelResponseDto { /** * Unique identifier of the payment dunning in Asaas @@ -36,13 +36,19 @@ public class ApiPaymentDunningShowResponseDto { * Payment dunning status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Type of payment dunning */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; + + /** + * Unique identifier of the payment to be recovered in Asaas + */ + @JsonProperty("payment") + private JsonNullable payment; /** * Request date @@ -110,12 +116,6 @@ public class ApiPaymentDunningShowResponseDto { @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); @@ -127,15 +127,20 @@ public Long getDunningNumber() { } @JsonIgnore - public ApiPaymentDunningShowResponsePaymentDunningStatus getStatus() { + public PaymentDunningCancelResponsePaymentDunningStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiPaymentDunningShowResponsePaymentDunningType getType() { + public PaymentDunningCancelResponsePaymentDunningType getType() { return type.orElse(null); } + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + @JsonIgnore public String getRequestDate() { return requestDate.orElse(null); @@ -191,18 +196,13 @@ public Boolean getIsNecessaryResendDocumentation() { return isNecessaryResendDocumentation.orElse(null); } - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - // Overwrite lombok builder methods - public static class ApiPaymentDunningShowResponseDtoBuilder { + public static class PaymentDunningCancelResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentDunningShowResponseDtoBuilder id(String value) { + public PaymentDunningCancelResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -210,31 +210,39 @@ public ApiPaymentDunningShowResponseDtoBuilder id(String value) { private JsonNullable dunningNumber = JsonNullable.undefined(); @JsonProperty("dunningNumber") - public ApiPaymentDunningShowResponseDtoBuilder dunningNumber(Long value) { + public PaymentDunningCancelResponseDtoBuilder dunningNumber(Long value) { this.dunningNumber = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentDunningShowResponseDtoBuilder status(ApiPaymentDunningShowResponsePaymentDunningStatus value) { + public PaymentDunningCancelResponseDtoBuilder status(PaymentDunningCancelResponsePaymentDunningStatus value) { this.status = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiPaymentDunningShowResponseDtoBuilder type(ApiPaymentDunningShowResponsePaymentDunningType value) { + 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 ApiPaymentDunningShowResponseDtoBuilder requestDate(String value) { + public PaymentDunningCancelResponseDtoBuilder requestDate(String value) { this.requestDate = JsonNullable.of(value); return this; } @@ -242,7 +250,7 @@ public ApiPaymentDunningShowResponseDtoBuilder requestDate(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentDunningShowResponseDtoBuilder description(String value) { + public PaymentDunningCancelResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -250,7 +258,7 @@ public ApiPaymentDunningShowResponseDtoBuilder description(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentDunningShowResponseDtoBuilder value(Double value) { + public PaymentDunningCancelResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -258,7 +266,7 @@ public ApiPaymentDunningShowResponseDtoBuilder value(Double value) { private JsonNullable feeValue = JsonNullable.undefined(); @JsonProperty("feeValue") - public ApiPaymentDunningShowResponseDtoBuilder feeValue(Double value) { + public PaymentDunningCancelResponseDtoBuilder feeValue(Double value) { this.feeValue = JsonNullable.of(value); return this; } @@ -266,7 +274,7 @@ public ApiPaymentDunningShowResponseDtoBuilder feeValue(Double value) { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiPaymentDunningShowResponseDtoBuilder netValue(Double value) { + public PaymentDunningCancelResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -274,7 +282,7 @@ public ApiPaymentDunningShowResponseDtoBuilder netValue(Double value) { private JsonNullable receivedInCashFeeValue = JsonNullable.undefined(); @JsonProperty("receivedInCashFeeValue") - public ApiPaymentDunningShowResponseDtoBuilder receivedInCashFeeValue(Double value) { + public PaymentDunningCancelResponseDtoBuilder receivedInCashFeeValue(Double value) { this.receivedInCashFeeValue = JsonNullable.of(value); return this; } @@ -282,7 +290,7 @@ public ApiPaymentDunningShowResponseDtoBuilder receivedInCashFeeValue(Double val private JsonNullable denialReason = JsonNullable.undefined(); @JsonProperty("denialReason") - public ApiPaymentDunningShowResponseDtoBuilder denialReason(String value) { + public PaymentDunningCancelResponseDtoBuilder denialReason(String value) { this.denialReason = JsonNullable.of(value); return this; } @@ -290,7 +298,7 @@ public ApiPaymentDunningShowResponseDtoBuilder denialReason(String value) { private JsonNullable cancellationFeeValue = JsonNullable.undefined(); @JsonProperty("cancellationFeeValue") - public ApiPaymentDunningShowResponseDtoBuilder cancellationFeeValue(Double value) { + public PaymentDunningCancelResponseDtoBuilder cancellationFeeValue(Double value) { this.cancellationFeeValue = JsonNullable.of(value); return this; } @@ -298,7 +306,7 @@ public ApiPaymentDunningShowResponseDtoBuilder cancellationFeeValue(Double value private JsonNullable canBeCancelled = JsonNullable.of(true); @JsonProperty("canBeCancelled") - public ApiPaymentDunningShowResponseDtoBuilder canBeCancelled(Boolean value) { + public PaymentDunningCancelResponseDtoBuilder canBeCancelled(Boolean value) { this.canBeCancelled = JsonNullable.of(value); return this; } @@ -306,7 +314,7 @@ public ApiPaymentDunningShowResponseDtoBuilder canBeCancelled(Boolean value) { private JsonNullable cannotBeCancelledReason = JsonNullable.undefined(); @JsonProperty("cannotBeCancelledReason") - public ApiPaymentDunningShowResponseDtoBuilder cannotBeCancelledReason(String value) { + public PaymentDunningCancelResponseDtoBuilder cannotBeCancelledReason(String value) { this.cannotBeCancelledReason = JsonNullable.of(value); return this; } @@ -314,17 +322,9 @@ public ApiPaymentDunningShowResponseDtoBuilder cannotBeCancelledReason(String va private JsonNullable isNecessaryResendDocumentation = JsonNullable.undefined(); @JsonProperty("isNecessaryResendDocumentation") - public ApiPaymentDunningShowResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { + public PaymentDunningCancelResponseDtoBuilder 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/ApiPaymentDunningListRequestPaymentDunningStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningStatus.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningStatus.java index 2941457..4b37c0a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningStatus.java @@ -9,11 +9,11 @@ import lombok.Getter; /** - * Filter by payment dunning status + * Payment dunning status */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningListRequestPaymentDunningStatus { +public enum PaymentDunningCancelResponsePaymentDunningStatus { PENDING("PENDING"), AWAITING_APPROVAL("AWAITING_APPROVAL"), AWAITING_CANCELLATION("AWAITING_CANCELLATION"), @@ -27,8 +27,8 @@ public enum ApiPaymentDunningListRequestPaymentDunningStatus { private final String value; @JsonCreator - public static ApiPaymentDunningListRequestPaymentDunningStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningListRequestPaymentDunningStatus.values()) + 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/ApiPaymentDunningSaveRequestPaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningType.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestPaymentDunningType.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningType.java index 9a0ed84..571dd4d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestPaymentDunningType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningCancelResponsePaymentDunningType.java @@ -13,15 +13,15 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningSaveRequestPaymentDunningType { +public enum PaymentDunningCancelResponsePaymentDunningType { CREDIT_BUREAU("CREDIT_BUREAU"); @JsonValue private final String value; @JsonCreator - public static ApiPaymentDunningSaveRequestPaymentDunningType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningSaveRequestPaymentDunningType.values()) + 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/ApiPaymentDunningListHistoryResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataDto.java similarity index 67% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataDto.java index 4200057..81ba059 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataDto.java @@ -12,19 +12,22 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of objects + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDunningListHistoryResponseDataDto { +public class PaymentDunningListHistoryResponseDataDto { /** * Negotiation status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Description of the event @@ -39,7 +42,7 @@ public class ApiPaymentDunningListHistoryResponseDataDto { private JsonNullable eventDate; @JsonIgnore - public ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus getStatus() { + public PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus getStatus() { return status.orElse(null); } @@ -54,14 +57,14 @@ public String getEventDate() { } // Overwrite lombok builder methods - public static class ApiPaymentDunningListHistoryResponseDataDtoBuilder { + public static class PaymentDunningListHistoryResponseDataDtoBuilder { - private JsonNullable status = + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentDunningListHistoryResponseDataDtoBuilder status( - ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus value + public PaymentDunningListHistoryResponseDataDtoBuilder status( + PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus value ) { this.status = JsonNullable.of(value); return this; @@ -70,7 +73,7 @@ public ApiPaymentDunningListHistoryResponseDataDtoBuilder status( private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentDunningListHistoryResponseDataDtoBuilder description(String value) { + public PaymentDunningListHistoryResponseDataDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -78,7 +81,7 @@ public ApiPaymentDunningListHistoryResponseDataDtoBuilder description(String val private JsonNullable eventDate = JsonNullable.undefined(); @JsonProperty("eventDate") - public ApiPaymentDunningListHistoryResponseDataDtoBuilder eventDate(String value) { + public PaymentDunningListHistoryResponseDataDtoBuilder 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/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java similarity index 67% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java index 52271ff..50d03ee 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus { +public enum PaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus { IN_NEGOTIATION("IN_NEGOTIATION"), NEGOTIATION_FAIL("NEGOTIATION_FAIL"), NEGOTIATED("NEGOTIATED"), @@ -23,8 +23,8 @@ public enum ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus private final String value; @JsonCreator - public static ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningListHistoryResponseDataPaymentDunningHistoryStatus.values()) + 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/ApiCreditBureauReportListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDto.java index 25cc68e..6bc60cf 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCreditBureauReportListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListHistoryResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCreditBureauReportListResponseDto { +public class PaymentDunningListHistoryResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiCreditBureauReportListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiCreditBureauReportListResponseDtoBuilder { + public static class PaymentDunningListHistoryResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiCreditBureauReportListResponseDtoBuilder object(String value) { + public PaymentDunningListHistoryResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiCreditBureauReportListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiCreditBureauReportListResponseDtoBuilder hasMore(Boolean value) { + public PaymentDunningListHistoryResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiCreditBureauReportListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiCreditBureauReportListResponseDtoBuilder totalCount(Long value) { + public PaymentDunningListHistoryResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiCreditBureauReportListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiCreditBureauReportListResponseDtoBuilder limit(Long value) { + public PaymentDunningListHistoryResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiCreditBureauReportListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiCreditBureauReportListResponseDtoBuilder offset(Long value) { + public PaymentDunningListHistoryResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiCreditBureauReportListResponseDtoBuilder data(List value) { + public PaymentDunningListHistoryResponseDtoBuilder 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/PaymentDunningListPartialPaymentsResponseDataDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningListPartialPaymentsResponseDataDto.java index 1fe31b8..3ccaf87 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListPartialPaymentsResponseDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListPartialPaymentsResponseDataDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of objects + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDunningListPartialPaymentsResponseDataDto { +public class PaymentDunningListPartialPaymentsResponseDataDto { /** * Amount paid @@ -54,12 +57,12 @@ public String getPaymentDate() { } // Overwrite lombok builder methods - public static class ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder { + public static class PaymentDunningListPartialPaymentsResponseDataDtoBuilder { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder value(Double value) { + public PaymentDunningListPartialPaymentsResponseDataDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -67,7 +70,7 @@ public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder value(Double v private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder description(String value) { + public PaymentDunningListPartialPaymentsResponseDataDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -75,7 +78,7 @@ public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder description(St private JsonNullable paymentDate = JsonNullable.undefined(); @JsonProperty("paymentDate") - public ApiPaymentDunningListPartialPaymentsResponseDataDtoBuilder paymentDate(String value) { + 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/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningStatus.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningStatus.java index c5e0357..33511a2 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningStatus.java @@ -9,11 +9,11 @@ import lombok.Getter; /** - * Payment dunning status + * Filter by payment dunning status */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus { +public enum PaymentDunningListRequestPaymentDunningStatus { PENDING("PENDING"), AWAITING_APPROVAL("AWAITING_APPROVAL"), AWAITING_CANCELLATION("AWAITING_CANCELLATION"), @@ -27,8 +27,8 @@ public enum ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus { private final String value; @JsonCreator - public static ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus.values()) + 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/ApiPaymentDunningListRequestPaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningType.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningType.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningType.java index 4afc21a..54c4b75 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningListRequestPaymentDunningType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListRequestPaymentDunningType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningListRequestPaymentDunningType { +public enum PaymentDunningListRequestPaymentDunningType { CREDIT_BUREAU("CREDIT_BUREAU"), DEBT_RECOVERY_ASSISTANCE("DEBT_RECOVERY_ASSISTANCE"); @@ -21,8 +21,8 @@ public enum ApiPaymentDunningListRequestPaymentDunningType { private final String value; @JsonCreator - public static ApiPaymentDunningListRequestPaymentDunningType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningListRequestPaymentDunningType.values()) + 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/ApiPaymentSplitListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningListResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningListResponseDto.java index ccc226c..c82d93c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSplitListResponseDto { +public class PaymentDunningListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiPaymentSplitListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentSplitListResponseDtoBuilder { + public static class PaymentDunningListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPaymentSplitListResponseDtoBuilder object(String value) { + public PaymentDunningListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiPaymentSplitListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiPaymentSplitListResponseDtoBuilder hasMore(Boolean value) { + public PaymentDunningListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiPaymentSplitListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiPaymentSplitListResponseDtoBuilder totalCount(Long value) { + public PaymentDunningListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiPaymentSplitListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiPaymentSplitListResponseDtoBuilder limit(Long value) { + public PaymentDunningListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiPaymentSplitListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiPaymentSplitListResponseDtoBuilder offset(Long value) { + public PaymentDunningListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiPaymentSplitListResponseDtoBuilder data(List value) { + public PaymentDunningListResponseDtoBuilder 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/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java index ea34a9b..ac2ab5c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType { +public enum PaymentDunningPaymentsAvailableForDunningResponseDataBillingType { BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), TRANSFER("TRANSFER"), @@ -25,8 +25,8 @@ public enum ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType private final String value; @JsonCreator - public static ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType.values()) + 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/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.java similarity index 59% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.java index 16db902..6cd36bb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of objects + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto { +public class PaymentDunningPaymentsAvailableForDunningResponseDataDto { /** * Unique identifier of the payment to be recovered in Asaas @@ -43,13 +46,13 @@ public class ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto { * Billing status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Form of payment */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Due date @@ -62,7 +65,7 @@ public class ApiPaymentDunningPaymentsAvailableForDunningResponseDataDto { */ @JsonProperty("typeSimulations") private JsonNullable< - List + List > typeSimulations; @JsonIgnore @@ -81,12 +84,12 @@ public Double getValue() { } @JsonIgnore - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus getStatus() { + public PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType getBillingType() { + public PaymentDunningPaymentsAvailableForDunningResponseDataBillingType getBillingType() { return billingType.orElse(null); } @@ -96,17 +99,17 @@ public String getDueDate() { } @JsonIgnore - public List getTypeSimulations() { + public List getTypeSimulations() { return typeSimulations.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder { + public static class PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder { private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder payment(String value) { + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder payment(String value) { this.payment = JsonNullable.of(value); return this; } @@ -114,7 +117,7 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder paymen private JsonNullable customer = JsonNullable.undefined(); @JsonProperty("customer") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder customer(String value) { + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder customer(String value) { this.customer = JsonNullable.of(value); return this; } @@ -122,28 +125,28 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder custom private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder value(Double value) { + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } - private JsonNullable status = + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder status( - ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus value + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder status( + PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus value ) { this.status = JsonNullable.of(value); return this; } - private JsonNullable billingType = + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder billingType( - ApiPaymentDunningPaymentsAvailableForDunningResponseDataBillingType value + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder billingType( + PaymentDunningPaymentsAvailableForDunningResponseDataBillingType value ) { this.billingType = JsonNullable.of(value); return this; @@ -152,18 +155,18 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder billin private JsonNullable dueDate = JsonNullable.undefined(); @JsonProperty("dueDate") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder dueDate(String value) { + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder dueDate(String value) { this.dueDate = JsonNullable.of(value); return this; } private JsonNullable< - List + List > typeSimulations = JsonNullable.undefined(); @JsonProperty("typeSimulations") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder typeSimulations( - List value + public PaymentDunningPaymentsAvailableForDunningResponseDataDtoBuilder 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/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java similarity index 65% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java index 6ab2a6b..783ed04 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus { +public enum PaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus { PENDING("PENDING"), RECEIVED("RECEIVED"), CONFIRMED("CONFIRMED"), @@ -23,8 +23,8 @@ public enum ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatu private final String value; @JsonCreator - public static ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningPaymentsAvailableForDunningResponseDataPaymentStatus.values()) + 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/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java similarity index 67% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java index ad5015c..53bf6c7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto.java @@ -12,21 +12,22 @@ 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 ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto { +public class PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDto { /** * Type of payment dunning */ @JsonProperty("type") - private JsonNullable< - ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType - > type; + private JsonNullable type; /** * Whether it is possible to request a payment dunning of this type @@ -59,7 +60,7 @@ public class ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulat private JsonNullable startDate; @JsonIgnore - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType getType() { + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType getType() { return type.orElse(null); } @@ -89,15 +90,15 @@ public String getStartDate() { } // Overwrite lombok builder methods - public static class ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder { + public static class PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder { private JsonNullable< - ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType + PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType > type = JsonNullable.undefined(); @JsonProperty("type") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder type( - ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType value + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder type( + PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType value ) { this.type = JsonNullable.of(value); return this; @@ -106,9 +107,7 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationIte private JsonNullable isAllowed = JsonNullable.of(true); @JsonProperty("isAllowed") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder isAllowed( - Boolean value - ) { + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder isAllowed(Boolean value) { this.isAllowed = JsonNullable.of(value); return this; } @@ -116,7 +115,7 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationIte private JsonNullable notAllowedReason = JsonNullable.undefined(); @JsonProperty("notAllowedReason") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder notAllowedReason( + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder notAllowedReason( String value ) { this.notAllowedReason = JsonNullable.of(value); @@ -126,7 +125,7 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationIte private JsonNullable feeValue = JsonNullable.undefined(); @JsonProperty("feeValue") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder feeValue(Double value) { + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder feeValue(Double value) { this.feeValue = JsonNullable.of(value); return this; } @@ -134,7 +133,7 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationIte private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder netValue(Double value) { + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -142,9 +141,7 @@ public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationIte private JsonNullable startDate = JsonNullable.undefined(); @JsonProperty("startDate") - public ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder startDate( - String value - ) { + public PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemDtoBuilder 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/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java similarity index 63% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java index ca5c5af..1764e40 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.java @@ -13,18 +13,18 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType { +public enum PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType { CREDIT_BUREAU("CREDIT_BUREAU"); @JsonValue private final String value; @JsonCreator - public static ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType fromValue( + public static PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType fromValue( String value ) { return Arrays.stream( - ApiPaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.values() + PaymentDunningPaymentsAvailableForDunningResponseDataTypeSimulationItemPaymentDunningType.values() ) .filter(item -> item.value.equals(value)) .findFirst() diff --git a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDto.java similarity index 71% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDto.java index cec6f2a..414c54d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerFiscalInfoListMunicipalServicesResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningPaymentsAvailableForDunningResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerFiscalInfoListMunicipalServicesResponseDto { +public class PaymentDunningPaymentsAvailableForDunningResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiCustomerFiscalInfoListMunicipalServicesResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder { + public static class PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder object(String value) { + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder object(Strin private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder hasMore(Boolean value) { + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder hasMore(Bool private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder totalCount(Long value) { + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder totalCount(L private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder limit(Long value) { + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,17 +125,17 @@ public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder limit(Long v private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder offset(Long value) { + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiCustomerFiscalInfoListMunicipalServicesResponseDtoBuilder data( - List value + public PaymentDunningPaymentsAvailableForDunningResponseDtoBuilder 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/PaymentDunningSaveDocumentsRequestDto.java similarity index 88% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsRequestDto.java index 883807e..7af37f1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsRequestDto.java @@ -16,7 +16,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDunningSaveDocumentsRequestDto { +public class PaymentDunningSaveDocumentsRequestDto { /** * Invoice and/or contract notarized diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponseDto.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponseDto.java index c357950..90b515d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDunningSaveDocumentsResponseDto { +public class PaymentDunningSaveDocumentsResponseDto { /** * Unique identifier of the payment dunning in Asaas @@ -36,13 +36,13 @@ public class ApiPaymentDunningSaveDocumentsResponseDto { * Payment dunning status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Type of payment dunning */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Unique identifier of the payment to be recovered in Asaas @@ -127,12 +127,12 @@ public Long getDunningNumber() { } @JsonIgnore - public ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus getStatus() { + public PaymentDunningSaveDocumentsResponsePaymentDunningStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiPaymentDunningSaveDocumentsResponsePaymentDunningType getType() { + public PaymentDunningSaveDocumentsResponsePaymentDunningType getType() { return type.orElse(null); } @@ -197,12 +197,12 @@ public Boolean getIsNecessaryResendDocumentation() { } // Overwrite lombok builder methods - public static class ApiPaymentDunningSaveDocumentsResponseDtoBuilder { + public static class PaymentDunningSaveDocumentsResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder id(String value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -210,26 +210,26 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder id(String value) { private JsonNullable dunningNumber = JsonNullable.undefined(); @JsonProperty("dunningNumber") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder dunningNumber(Long value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder dunningNumber(Long value) { this.dunningNumber = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder status( - ApiPaymentDunningSaveDocumentsResponsePaymentDunningStatus value + public PaymentDunningSaveDocumentsResponseDtoBuilder status( + PaymentDunningSaveDocumentsResponsePaymentDunningStatus value ) { this.status = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder type( - ApiPaymentDunningSaveDocumentsResponsePaymentDunningType value + public PaymentDunningSaveDocumentsResponseDtoBuilder type( + PaymentDunningSaveDocumentsResponsePaymentDunningType value ) { this.type = JsonNullable.of(value); return this; @@ -238,7 +238,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder type( private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder payment(String value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder payment(String value) { this.payment = JsonNullable.of(value); return this; } @@ -246,7 +246,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder payment(String value) { private JsonNullable requestDate = JsonNullable.undefined(); @JsonProperty("requestDate") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder requestDate(String value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder requestDate(String value) { this.requestDate = JsonNullable.of(value); return this; } @@ -254,7 +254,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder requestDate(String value private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder description(String value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -262,7 +262,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder description(String value private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder value(Double value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -270,7 +270,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder value(Double value) { private JsonNullable feeValue = JsonNullable.undefined(); @JsonProperty("feeValue") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder feeValue(Double value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder feeValue(Double value) { this.feeValue = JsonNullable.of(value); return this; } @@ -278,7 +278,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder feeValue(Double value) { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder netValue(Double value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -286,7 +286,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder netValue(Double value) { private JsonNullable receivedInCashFeeValue = JsonNullable.undefined(); @JsonProperty("receivedInCashFeeValue") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder receivedInCashFeeValue(Double value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder receivedInCashFeeValue(Double value) { this.receivedInCashFeeValue = JsonNullable.of(value); return this; } @@ -294,7 +294,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder receivedInCashFeeValue(D private JsonNullable denialReason = JsonNullable.undefined(); @JsonProperty("denialReason") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder denialReason(String value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder denialReason(String value) { this.denialReason = JsonNullable.of(value); return this; } @@ -302,7 +302,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder denialReason(String valu private JsonNullable cancellationFeeValue = JsonNullable.undefined(); @JsonProperty("cancellationFeeValue") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder cancellationFeeValue(Double value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder cancellationFeeValue(Double value) { this.cancellationFeeValue = JsonNullable.of(value); return this; } @@ -310,7 +310,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder cancellationFeeValue(Dou private JsonNullable canBeCancelled = JsonNullable.of(true); @JsonProperty("canBeCancelled") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder canBeCancelled(Boolean value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder canBeCancelled(Boolean value) { this.canBeCancelled = JsonNullable.of(value); return this; } @@ -318,7 +318,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder canBeCancelled(Boolean v private JsonNullable cannotBeCancelledReason = JsonNullable.undefined(); @JsonProperty("cannotBeCancelledReason") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder cannotBeCancelledReason(String value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder cannotBeCancelledReason(String value) { this.cannotBeCancelledReason = JsonNullable.of(value); return this; } @@ -326,7 +326,7 @@ public ApiPaymentDunningSaveDocumentsResponseDtoBuilder cannotBeCancelledReason( private JsonNullable isNecessaryResendDocumentation = JsonNullable.undefined(); @JsonProperty("isNecessaryResendDocumentation") - public ApiPaymentDunningSaveDocumentsResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { + public PaymentDunningSaveDocumentsResponseDtoBuilder 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/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.java index b5d7586..3177915 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningCancelResponsePaymentDunningStatus { +public enum PaymentDunningSaveDocumentsResponsePaymentDunningStatus { PENDING("PENDING"), AWAITING_APPROVAL("AWAITING_APPROVAL"), AWAITING_CANCELLATION("AWAITING_CANCELLATION"), @@ -27,8 +27,8 @@ public enum ApiPaymentDunningCancelResponsePaymentDunningStatus { private final String value; @JsonCreator - public static ApiPaymentDunningCancelResponsePaymentDunningStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningCancelResponsePaymentDunningStatus.values()) + 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/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.java similarity index 66% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.java index da94f35..bd849bb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveDocumentsResponsePaymentDunningType.java @@ -13,15 +13,15 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningSaveDocumentsResponsePaymentDunningType { +public enum PaymentDunningSaveDocumentsResponsePaymentDunningType { CREDIT_BUREAU("CREDIT_BUREAU"); @JsonValue private final String value; @JsonCreator - public static ApiPaymentDunningSaveDocumentsResponsePaymentDunningType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningSaveDocumentsResponsePaymentDunningType.values()) + 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/ApiPaymentDunningSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestDto.java similarity index 85% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestDto.java index cf47ad8..9500026 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDunningSaveRequestDto { +public class PaymentDunningSaveRequestDto { /** * Unique identifier of the payment to be recovered in Asaas @@ -31,7 +31,7 @@ public class ApiPaymentDunningSaveRequestDto { * Type of payment dunning */ @NonNull - private ApiPaymentDunningSaveRequestPaymentDunningType type; + private PaymentDunningSaveRequestPaymentDunningType type; /** * Client name @@ -120,12 +120,12 @@ public byte[] getDocuments() { } // Overwrite lombok builder methods - public static class ApiPaymentDunningSaveRequestDtoBuilder { + public static class PaymentDunningSaveRequestDtoBuilder { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentDunningSaveRequestDtoBuilder description(String value) { + public PaymentDunningSaveRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -133,7 +133,7 @@ public ApiPaymentDunningSaveRequestDtoBuilder description(String value) { private JsonNullable customerSecondaryPhone = JsonNullable.undefined(); @JsonProperty("customerSecondaryPhone") - public ApiPaymentDunningSaveRequestDtoBuilder customerSecondaryPhone(String value) { + public PaymentDunningSaveRequestDtoBuilder customerSecondaryPhone(String value) { this.customerSecondaryPhone = JsonNullable.of(value); return this; } @@ -141,7 +141,7 @@ public ApiPaymentDunningSaveRequestDtoBuilder customerSecondaryPhone(String valu private JsonNullable customerComplement = JsonNullable.undefined(); @JsonProperty("customerComplement") - public ApiPaymentDunningSaveRequestDtoBuilder customerComplement(String value) { + public PaymentDunningSaveRequestDtoBuilder customerComplement(String value) { this.customerComplement = JsonNullable.of(value); return this; } @@ -149,7 +149,7 @@ public ApiPaymentDunningSaveRequestDtoBuilder customerComplement(String value) { private JsonNullable documents = JsonNullable.undefined(); @JsonProperty("documents") - public ApiPaymentDunningSaveRequestDtoBuilder documents(byte[] value) { + public PaymentDunningSaveRequestDtoBuilder documents(byte[] value) { this.documents = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestPaymentDunningType.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningType.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestPaymentDunningType.java index fb9de1e..f4e3ba2 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSaveRequestPaymentDunningType.java @@ -13,15 +13,15 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningShowResponsePaymentDunningType { +public enum PaymentDunningSaveRequestPaymentDunningType { CREDIT_BUREAU("CREDIT_BUREAU"); @JsonValue private final String value; @JsonCreator - public static ApiPaymentDunningShowResponsePaymentDunningType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningShowResponsePaymentDunningType.values()) + 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/ApiPaymentDunningCancelResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponseDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponseDto.java index 25afc72..0b6e47c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDunningCancelResponseDto { +public class PaymentDunningShowResponseDto { /** * Unique identifier of the payment dunning in Asaas @@ -36,19 +36,13 @@ public class ApiPaymentDunningCancelResponseDto { * Payment dunning status */ @JsonProperty("status") - private JsonNullable 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; + private JsonNullable type; /** * Request date @@ -116,6 +110,12 @@ public class ApiPaymentDunningCancelResponseDto { @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); @@ -127,20 +127,15 @@ public Long getDunningNumber() { } @JsonIgnore - public ApiPaymentDunningCancelResponsePaymentDunningStatus getStatus() { + public PaymentDunningShowResponsePaymentDunningStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiPaymentDunningCancelResponsePaymentDunningType getType() { + public PaymentDunningShowResponsePaymentDunningType getType() { return type.orElse(null); } - @JsonIgnore - public String getPayment() { - return payment.orElse(null); - } - @JsonIgnore public String getRequestDate() { return requestDate.orElse(null); @@ -196,13 +191,18 @@ public Boolean getIsNecessaryResendDocumentation() { return isNecessaryResendDocumentation.orElse(null); } + @JsonIgnore + public String getPayment() { + return payment.orElse(null); + } + // Overwrite lombok builder methods - public static class ApiPaymentDunningCancelResponseDtoBuilder { + public static class PaymentDunningShowResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentDunningCancelResponseDtoBuilder id(String value) { + public PaymentDunningShowResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -210,39 +210,31 @@ public ApiPaymentDunningCancelResponseDtoBuilder id(String value) { private JsonNullable dunningNumber = JsonNullable.undefined(); @JsonProperty("dunningNumber") - public ApiPaymentDunningCancelResponseDtoBuilder dunningNumber(Long value) { + public PaymentDunningShowResponseDtoBuilder dunningNumber(Long value) { this.dunningNumber = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentDunningCancelResponseDtoBuilder status(ApiPaymentDunningCancelResponsePaymentDunningStatus value) { + public PaymentDunningShowResponseDtoBuilder status(PaymentDunningShowResponsePaymentDunningStatus value) { this.status = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiPaymentDunningCancelResponseDtoBuilder type(ApiPaymentDunningCancelResponsePaymentDunningType value) { + public PaymentDunningShowResponseDtoBuilder type(PaymentDunningShowResponsePaymentDunningType 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) { + public PaymentDunningShowResponseDtoBuilder requestDate(String value) { this.requestDate = JsonNullable.of(value); return this; } @@ -250,7 +242,7 @@ public ApiPaymentDunningCancelResponseDtoBuilder requestDate(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentDunningCancelResponseDtoBuilder description(String value) { + public PaymentDunningShowResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -258,7 +250,7 @@ public ApiPaymentDunningCancelResponseDtoBuilder description(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentDunningCancelResponseDtoBuilder value(Double value) { + public PaymentDunningShowResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -266,7 +258,7 @@ public ApiPaymentDunningCancelResponseDtoBuilder value(Double value) { private JsonNullable feeValue = JsonNullable.undefined(); @JsonProperty("feeValue") - public ApiPaymentDunningCancelResponseDtoBuilder feeValue(Double value) { + public PaymentDunningShowResponseDtoBuilder feeValue(Double value) { this.feeValue = JsonNullable.of(value); return this; } @@ -274,7 +266,7 @@ public ApiPaymentDunningCancelResponseDtoBuilder feeValue(Double value) { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiPaymentDunningCancelResponseDtoBuilder netValue(Double value) { + public PaymentDunningShowResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -282,7 +274,7 @@ public ApiPaymentDunningCancelResponseDtoBuilder netValue(Double value) { private JsonNullable receivedInCashFeeValue = JsonNullable.undefined(); @JsonProperty("receivedInCashFeeValue") - public ApiPaymentDunningCancelResponseDtoBuilder receivedInCashFeeValue(Double value) { + public PaymentDunningShowResponseDtoBuilder receivedInCashFeeValue(Double value) { this.receivedInCashFeeValue = JsonNullable.of(value); return this; } @@ -290,7 +282,7 @@ public ApiPaymentDunningCancelResponseDtoBuilder receivedInCashFeeValue(Double v private JsonNullable denialReason = JsonNullable.undefined(); @JsonProperty("denialReason") - public ApiPaymentDunningCancelResponseDtoBuilder denialReason(String value) { + public PaymentDunningShowResponseDtoBuilder denialReason(String value) { this.denialReason = JsonNullable.of(value); return this; } @@ -298,7 +290,7 @@ public ApiPaymentDunningCancelResponseDtoBuilder denialReason(String value) { private JsonNullable cancellationFeeValue = JsonNullable.undefined(); @JsonProperty("cancellationFeeValue") - public ApiPaymentDunningCancelResponseDtoBuilder cancellationFeeValue(Double value) { + public PaymentDunningShowResponseDtoBuilder cancellationFeeValue(Double value) { this.cancellationFeeValue = JsonNullable.of(value); return this; } @@ -306,7 +298,7 @@ public ApiPaymentDunningCancelResponseDtoBuilder cancellationFeeValue(Double val private JsonNullable canBeCancelled = JsonNullable.of(true); @JsonProperty("canBeCancelled") - public ApiPaymentDunningCancelResponseDtoBuilder canBeCancelled(Boolean value) { + public PaymentDunningShowResponseDtoBuilder canBeCancelled(Boolean value) { this.canBeCancelled = JsonNullable.of(value); return this; } @@ -314,7 +306,7 @@ public ApiPaymentDunningCancelResponseDtoBuilder canBeCancelled(Boolean value) { private JsonNullable cannotBeCancelledReason = JsonNullable.undefined(); @JsonProperty("cannotBeCancelledReason") - public ApiPaymentDunningCancelResponseDtoBuilder cannotBeCancelledReason(String value) { + public PaymentDunningShowResponseDtoBuilder cannotBeCancelledReason(String value) { this.cannotBeCancelledReason = JsonNullable.of(value); return this; } @@ -322,9 +314,17 @@ public ApiPaymentDunningCancelResponseDtoBuilder cannotBeCancelledReason(String private JsonNullable isNecessaryResendDocumentation = JsonNullable.undefined(); @JsonProperty("isNecessaryResendDocumentation") - public ApiPaymentDunningCancelResponseDtoBuilder isNecessaryResendDocumentation(Boolean value) { + 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/ApiPaymentDunningShowResponsePaymentDunningStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningStatus.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningStatus.java index aa429f6..d269943 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningShowResponsePaymentDunningStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningShowResponsePaymentDunningStatus { +public enum PaymentDunningShowResponsePaymentDunningStatus { PENDING("PENDING"), AWAITING_APPROVAL("AWAITING_APPROVAL"), AWAITING_CANCELLATION("AWAITING_CANCELLATION"), @@ -27,8 +27,8 @@ public enum ApiPaymentDunningShowResponsePaymentDunningStatus { private final String value; @JsonCreator - public static ApiPaymentDunningShowResponsePaymentDunningStatus fromValue(String value) { - return Arrays.stream(ApiPaymentDunningShowResponsePaymentDunningStatus.values()) + 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/ApiPaymentDunningCancelResponsePaymentDunningType.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningType.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningType.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningType.java index 9212e91..1e7e290 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningCancelResponsePaymentDunningType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningShowResponsePaymentDunningType.java @@ -13,15 +13,15 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentDunningCancelResponsePaymentDunningType { +public enum PaymentDunningShowResponsePaymentDunningType { CREDIT_BUREAU("CREDIT_BUREAU"); @JsonValue private final String value; @JsonCreator - public static ApiPaymentDunningCancelResponsePaymentDunningType fromValue(String value) { - return Arrays.stream(ApiPaymentDunningCancelResponsePaymentDunningType.values()) + 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/ApiPaymentDunningSimulateResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseDto.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseDto.java index bfdfcf1..90dc748 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentDunningSimulateResponseDto { +public class PaymentDunningSimulateResponseDto { /** * Unique identifier of the payment to be recovered in Asaas @@ -37,7 +37,7 @@ public class ApiPaymentDunningSimulateResponseDto { * Simulation of denial request for each type of denial available */ @JsonProperty("typeSimulations") - private JsonNullable> typeSimulations; + private JsonNullable> typeSimulations; @JsonIgnore public String getPayment() { @@ -50,17 +50,17 @@ public Double getValue() { } @JsonIgnore - public List getTypeSimulations() { + public List getTypeSimulations() { return typeSimulations.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentDunningSimulateResponseDtoBuilder { + public static class PaymentDunningSimulateResponseDtoBuilder { private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") - public ApiPaymentDunningSimulateResponseDtoBuilder payment(String value) { + public PaymentDunningSimulateResponseDtoBuilder payment(String value) { this.payment = JsonNullable.of(value); return this; } @@ -68,17 +68,17 @@ public ApiPaymentDunningSimulateResponseDtoBuilder payment(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentDunningSimulateResponseDtoBuilder value(Double value) { + public PaymentDunningSimulateResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } - private JsonNullable> typeSimulations = + private JsonNullable> typeSimulations = JsonNullable.undefined(); @JsonProperty("typeSimulations") - public ApiPaymentDunningSimulateResponseDtoBuilder typeSimulations( - List value + public PaymentDunningSimulateResponseDtoBuilder 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/PaymentDunningSimulateResponseTypeSimulationItemDto.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseTypeSimulationItemDto.java index 99e155c..af65a5f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentDunningSimulateResponseTypeSimulationItemDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentDunningSimulateResponseTypeSimulationItemDto.java @@ -12,19 +12,22 @@ 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 ApiPaymentDunningSimulateResponseTypeSimulationItemDto { +public class PaymentDunningSimulateResponseTypeSimulationItemDto { /** * Type of payment dunning */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Whether it is possible to request a payment dunning of this type @@ -57,7 +60,7 @@ public class ApiPaymentDunningSimulateResponseTypeSimulationItemDto { private JsonNullable startDate; @JsonIgnore - public ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType getType() { + public PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType getType() { return type.orElse(null); } @@ -87,14 +90,14 @@ public String getStartDate() { } // Overwrite lombok builder methods - public static class ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder { + public static class PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder { - private JsonNullable type = + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder type( - ApiPaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType value + public PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder type( + PaymentDunningSimulateResponseTypeSimulationItemPaymentDunningType value ) { this.type = JsonNullable.of(value); return this; @@ -103,7 +106,7 @@ public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder type( private JsonNullable isAllowed = JsonNullable.undefined(); @JsonProperty("isAllowed") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder isAllowed(Boolean value) { + public PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder isAllowed(Boolean value) { this.isAllowed = JsonNullable.of(value); return this; } @@ -111,7 +114,7 @@ public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder isAllowed(B private JsonNullable notAllowedReason = JsonNullable.undefined(); @JsonProperty("notAllowedReason") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder notAllowedReason(String value) { + public PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder notAllowedReason(String value) { this.notAllowedReason = JsonNullable.of(value); return this; } @@ -119,7 +122,7 @@ public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder notAllowedR private JsonNullable feeValue = JsonNullable.undefined(); @JsonProperty("feeValue") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder feeValue(Double value) { + public PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder feeValue(Double value) { this.feeValue = JsonNullable.of(value); return this; } @@ -127,7 +130,7 @@ public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder feeValue(Do private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder netValue(Double value) { + public PaymentDunningSimulateResponseTypeSimulationItemDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -135,7 +138,7 @@ public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder netValue(Do private JsonNullable startDate = JsonNullable.undefined(); @JsonProperty("startDate") - public ApiPaymentDunningSimulateResponseTypeSimulationItemDtoBuilder startDate(String value) { + 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/ApiPaymentCustodyGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponseDto.java similarity index 65% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponseDto.java index 6e47a53..fcb9271 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponseDto.java @@ -12,13 +12,16 @@ 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 ApiPaymentCustodyGetResponseDto { +public class PaymentEscrowGetResponseDto { /** * Unique payment escrow identifier in Asaas @@ -30,7 +33,7 @@ public class ApiPaymentCustodyGetResponseDto { * Payment escrow status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Payment escrow expiration date @@ -48,7 +51,7 @@ public class ApiPaymentCustodyGetResponseDto { * Payment escrow finish reason */ @JsonProperty("finishReason") - private JsonNullable finishReason; + private JsonNullable finishReason; @JsonIgnore public String getId() { @@ -56,7 +59,7 @@ public String getId() { } @JsonIgnore - public ApiPaymentCustodyGetResponsePaymentCustodyStatus getStatus() { + public PaymentEscrowGetResponsePaymentEscrowStatus getStatus() { return status.orElse(null); } @@ -71,25 +74,25 @@ public String getFinishDate() { } @JsonIgnore - public ApiPaymentCustodyGetResponsePaymentCustodyFinishReason getFinishReason() { + public PaymentEscrowGetResponsePaymentEscrowFinishReason getFinishReason() { return finishReason.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentCustodyGetResponseDtoBuilder { + public static class PaymentEscrowGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentCustodyGetResponseDtoBuilder id(String value) { + public PaymentEscrowGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentCustodyGetResponseDtoBuilder status(ApiPaymentCustodyGetResponsePaymentCustodyStatus value) { + public PaymentEscrowGetResponseDtoBuilder status(PaymentEscrowGetResponsePaymentEscrowStatus value) { this.status = JsonNullable.of(value); return this; } @@ -97,7 +100,7 @@ public ApiPaymentCustodyGetResponseDtoBuilder status(ApiPaymentCustodyGetRespons private JsonNullable expirationDate = JsonNullable.undefined(); @JsonProperty("expirationDate") - public ApiPaymentCustodyGetResponseDtoBuilder expirationDate(String value) { + public PaymentEscrowGetResponseDtoBuilder expirationDate(String value) { this.expirationDate = JsonNullable.of(value); return this; } @@ -105,18 +108,15 @@ public ApiPaymentCustodyGetResponseDtoBuilder expirationDate(String value) { private JsonNullable finishDate = JsonNullable.undefined(); @JsonProperty("finishDate") - public ApiPaymentCustodyGetResponseDtoBuilder finishDate(String value) { + public PaymentEscrowGetResponseDtoBuilder finishDate(String value) { this.finishDate = JsonNullable.of(value); return this; } - private JsonNullable finishReason = - JsonNullable.undefined(); + private JsonNullable finishReason = JsonNullable.undefined(); @JsonProperty("finishReason") - public ApiPaymentCustodyGetResponseDtoBuilder finishReason( - ApiPaymentCustodyGetResponsePaymentCustodyFinishReason value - ) { + public PaymentEscrowGetResponseDtoBuilder finishReason(PaymentEscrowGetResponsePaymentEscrowFinishReason 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/PaymentEscrowGetResponsePaymentEscrowFinishReason.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.java rename to src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.java index fe366b1..55e3dea 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowFinishReason.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCustodyGetResponsePaymentCustodyFinishReason { +public enum PaymentEscrowGetResponsePaymentEscrowFinishReason { CHARGEBACK("CHARGEBACK"), EXPIRED("EXPIRED"), INSUFFICIENT_BALANCE("INSUFFICIENT_BALANCE"), @@ -25,8 +25,8 @@ public enum ApiPaymentCustodyGetResponsePaymentCustodyFinishReason { private final String value; @JsonCreator - public static ApiPaymentCustodyGetResponsePaymentCustodyFinishReason fromValue(String value) { - return Arrays.stream(ApiPaymentCustodyGetResponsePaymentCustodyFinishReason.values()) + 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/ApiPaymentCustodyGetResponsePaymentCustodyStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowStatus.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowStatus.java index ffd123a..1109e32 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCustodyGetResponsePaymentCustodyStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentEscrowGetResponsePaymentEscrowStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCustodyGetResponsePaymentCustodyStatus { +public enum PaymentEscrowGetResponsePaymentEscrowStatus { ACTIVE("ACTIVE"), DONE("DONE"); @@ -21,8 +21,8 @@ public enum ApiPaymentCustodyGetResponsePaymentCustodyStatus { private final String value; @JsonCreator - public static ApiPaymentCustodyGetResponsePaymentCustodyStatus fromValue(String value) { - return Arrays.stream(ApiPaymentCustodyGetResponsePaymentCustodyStatus.values()) + 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/ApiPaymentFineRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentFineRequestDto.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentFineRequestDto.java index 9d009fd..5634341 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentFineRequestDto.java @@ -12,13 +12,16 @@ 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 ApiPaymentFineRequestDto { +public class PaymentFineRequestDto { /** * Percentage of fine on the amount of the charge for payment after the due date @@ -30,7 +33,7 @@ public class ApiPaymentFineRequestDto { * Fine type */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; @JsonIgnore public Double getValue() { @@ -38,25 +41,25 @@ public Double getValue() { } @JsonIgnore - public ApiPaymentFineRequestFineType getType() { + public PaymentFineRequestFineType getType() { return type.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentFineRequestDtoBuilder { + public static class PaymentFineRequestDtoBuilder { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentFineRequestDtoBuilder value(Double value) { + public PaymentFineRequestDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiPaymentFineRequestDtoBuilder type(ApiPaymentFineRequestFineType value) { + public PaymentFineRequestDtoBuilder type(PaymentFineRequestFineType 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/PaymentFineRequestFineType.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestFineType.java rename to src/main/java/com/asaas/apisdk/models/PaymentFineRequestFineType.java index 66386f4..441eb2e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineRequestFineType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentFineRequestFineType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentFineRequestFineType { +public enum PaymentFineRequestFineType { FIXED("FIXED"), PERCENTAGE("PERCENTAGE"); @@ -21,8 +21,8 @@ public enum ApiPaymentFineRequestFineType { private final String value; @JsonCreator - public static ApiPaymentFineRequestFineType fromValue(String value) { - return Arrays.stream(ApiPaymentFineRequestFineType.values()) + 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/ApiPaymentFineResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentFineResponseDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentFineResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentFineResponseDto.java index f3d77c7..23bf54d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentFineResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentFineResponseDto.java @@ -12,13 +12,16 @@ 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 ApiPaymentFineResponseDto { +public class PaymentFineResponseDto { /** * Fine amount in percentage @@ -32,12 +35,12 @@ public Double getValue() { } // Overwrite lombok builder methods - public static class ApiPaymentFineResponseDtoBuilder { + public static class PaymentFineResponseDtoBuilder { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentFineResponseDtoBuilder value(Double value) { + public PaymentFineResponseDtoBuilder 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/PaymentGetResponseBillingType.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentGetResponseBillingType.java index c9142b5..f4c0356 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentGetResponseBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentGetResponseBillingType { +public enum PaymentGetResponseBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -26,8 +26,8 @@ public enum ApiPaymentGetResponseBillingType { private final String value; @JsonCreator - public static ApiPaymentGetResponseBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentGetResponseBillingType.values()) + 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/ApiPaymentGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentGetResponseDto.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentGetResponseDto.java index 5c8b8fe..96ac075 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentGetResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentGetResponseDto { +public class PaymentGetResponseDto { /** * Object type @@ -103,10 +103,13 @@ public class ApiPaymentGetResponseDto { * Payment billing type */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; + /** + * Credit card information + */ @JsonProperty("creditCard") - private JsonNullable creditCard; + private JsonNullable creditCard; /** * Informs whether the charge can be paid after the due date (Only for bank slip) @@ -130,7 +133,7 @@ public class ApiPaymentGetResponseDto { * Payment status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Payment due date @@ -228,20 +231,29 @@ public class ApiPaymentGetResponseDto { @JsonProperty("bankSlipUrl") private JsonNullable bankSlipUrl; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; /** * Split Settings */ @JsonProperty("split") - private JsonNullable> split; + private JsonNullable> split; /** * Define whether the payment will be sent via post @@ -256,16 +268,19 @@ public class ApiPaymentGetResponseDto { private JsonNullable daysAfterDueDateToRegistrationCancellation; @JsonProperty("chargeback") - private JsonNullable chargeback; + private JsonNullable chargeback; + /** + * Payment escrow in the Escrow Account information + */ @JsonProperty("escrow") - private JsonNullable escrow; + private JsonNullable escrow; /** * Refunds information */ @JsonProperty("refunds") - private JsonNullable> refunds; + private JsonNullable> refunds; @JsonIgnore public String getObject() { @@ -333,12 +348,12 @@ public String getDescription() { } @JsonIgnore - public ApiPaymentGetResponseBillingType getBillingType() { + public PaymentGetResponseBillingType getBillingType() { return billingType.orElse(null); } @JsonIgnore - public ApiPaymentSaveWithCreditCardCreditCardDto getCreditCard() { + public PaymentSaveWithCreditCardCreditCardDto getCreditCard() { return creditCard.orElse(null); } @@ -358,7 +373,7 @@ public String getPixQrCodeId() { } @JsonIgnore - public ApiPaymentGetResponsePaymentStatus getStatus() { + public PaymentGetResponsePaymentStatus getStatus() { return status.orElse(null); } @@ -443,22 +458,22 @@ public String getBankSlipUrl() { } @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentFineResponseDto getFine() { + public PaymentFineResponseDto getFine() { return fine.orElse(null); } @JsonIgnore - public ApiPaymentInterestResponseDto getInterest() { + public PaymentInterestResponseDto getInterest() { return interest.orElse(null); } @JsonIgnore - public List getSplit() { + public List getSplit() { return split.orElse(null); } @@ -473,27 +488,27 @@ public Long getDaysAfterDueDateToRegistrationCancellation() { } @JsonIgnore - public ApiPaymentChargebackResponseDto getChargeback() { + public PaymentChargebackResponseDto getChargeback() { return chargeback.orElse(null); } @JsonIgnore - public ApiPaymentCustodyGetResponseDto getEscrow() { + public PaymentEscrowGetResponseDto getEscrow() { return escrow.orElse(null); } @JsonIgnore - public List getRefunds() { + public List getRefunds() { return refunds.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentGetResponseDtoBuilder { + public static class PaymentGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPaymentGetResponseDtoBuilder object(String value) { + public PaymentGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -501,7 +516,7 @@ public ApiPaymentGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentGetResponseDtoBuilder id(String value) { + public PaymentGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -509,7 +524,7 @@ public ApiPaymentGetResponseDtoBuilder id(String value) { private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiPaymentGetResponseDtoBuilder dateCreated(String value) { + public PaymentGetResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -517,7 +532,7 @@ public ApiPaymentGetResponseDtoBuilder dateCreated(String value) { private JsonNullable customer = JsonNullable.undefined(); @JsonProperty("customer") - public ApiPaymentGetResponseDtoBuilder customer(String value) { + public PaymentGetResponseDtoBuilder customer(String value) { this.customer = JsonNullable.of(value); return this; } @@ -525,7 +540,7 @@ public ApiPaymentGetResponseDtoBuilder customer(String value) { private JsonNullable subscription = JsonNullable.undefined(); @JsonProperty("subscription") - public ApiPaymentGetResponseDtoBuilder subscription(String value) { + public PaymentGetResponseDtoBuilder subscription(String value) { this.subscription = JsonNullable.of(value); return this; } @@ -533,7 +548,7 @@ public ApiPaymentGetResponseDtoBuilder subscription(String value) { private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiPaymentGetResponseDtoBuilder installment(String value) { + public PaymentGetResponseDtoBuilder installment(String value) { this.installment = JsonNullable.of(value); return this; } @@ -541,7 +556,7 @@ public ApiPaymentGetResponseDtoBuilder installment(String value) { private JsonNullable checkoutSession = JsonNullable.undefined(); @JsonProperty("checkoutSession") - public ApiPaymentGetResponseDtoBuilder checkoutSession(String value) { + public PaymentGetResponseDtoBuilder checkoutSession(String value) { this.checkoutSession = JsonNullable.of(value); return this; } @@ -549,7 +564,7 @@ public ApiPaymentGetResponseDtoBuilder checkoutSession(String value) { private JsonNullable paymentLink = JsonNullable.undefined(); @JsonProperty("paymentLink") - public ApiPaymentGetResponseDtoBuilder paymentLink(String value) { + public PaymentGetResponseDtoBuilder paymentLink(String value) { this.paymentLink = JsonNullable.of(value); return this; } @@ -557,7 +572,7 @@ public ApiPaymentGetResponseDtoBuilder paymentLink(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentGetResponseDtoBuilder value(Double value) { + public PaymentGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -565,7 +580,7 @@ public ApiPaymentGetResponseDtoBuilder value(Double value) { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiPaymentGetResponseDtoBuilder netValue(Double value) { + public PaymentGetResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -573,7 +588,7 @@ public ApiPaymentGetResponseDtoBuilder netValue(Double value) { private JsonNullable originalValue = JsonNullable.undefined(); @JsonProperty("originalValue") - public ApiPaymentGetResponseDtoBuilder originalValue(Double value) { + public PaymentGetResponseDtoBuilder originalValue(Double value) { this.originalValue = JsonNullable.of(value); return this; } @@ -581,7 +596,7 @@ public ApiPaymentGetResponseDtoBuilder originalValue(Double value) { private JsonNullable interestValue = JsonNullable.undefined(); @JsonProperty("interestValue") - public ApiPaymentGetResponseDtoBuilder interestValue(Double value) { + public PaymentGetResponseDtoBuilder interestValue(Double value) { this.interestValue = JsonNullable.of(value); return this; } @@ -589,23 +604,23 @@ public ApiPaymentGetResponseDtoBuilder interestValue(Double value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentGetResponseDtoBuilder description(String value) { + public PaymentGetResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ApiPaymentGetResponseDtoBuilder billingType(ApiPaymentGetResponseBillingType value) { + public PaymentGetResponseDtoBuilder billingType(PaymentGetResponseBillingType value) { this.billingType = JsonNullable.of(value); return this; } - private JsonNullable creditCard = JsonNullable.undefined(); + private JsonNullable creditCard = JsonNullable.undefined(); @JsonProperty("creditCard") - public ApiPaymentGetResponseDtoBuilder creditCard(ApiPaymentSaveWithCreditCardCreditCardDto value) { + public PaymentGetResponseDtoBuilder creditCard(PaymentSaveWithCreditCardCreditCardDto value) { this.creditCard = JsonNullable.of(value); return this; } @@ -613,7 +628,7 @@ public ApiPaymentGetResponseDtoBuilder creditCard(ApiPaymentSaveWithCreditCardCr private JsonNullable canBePaidAfterDueDate = JsonNullable.undefined(); @JsonProperty("canBePaidAfterDueDate") - public ApiPaymentGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { + public PaymentGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { this.canBePaidAfterDueDate = JsonNullable.of(value); return this; } @@ -621,7 +636,7 @@ public ApiPaymentGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { private JsonNullable pixTransaction = JsonNullable.undefined(); @JsonProperty("pixTransaction") - public ApiPaymentGetResponseDtoBuilder pixTransaction(String value) { + public PaymentGetResponseDtoBuilder pixTransaction(String value) { this.pixTransaction = JsonNullable.of(value); return this; } @@ -629,15 +644,15 @@ public ApiPaymentGetResponseDtoBuilder pixTransaction(String value) { private JsonNullable pixQrCodeId = JsonNullable.undefined(); @JsonProperty("pixQrCodeId") - public ApiPaymentGetResponseDtoBuilder pixQrCodeId(String value) { + public PaymentGetResponseDtoBuilder pixQrCodeId(String value) { this.pixQrCodeId = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentGetResponseDtoBuilder status(ApiPaymentGetResponsePaymentStatus value) { + public PaymentGetResponseDtoBuilder status(PaymentGetResponsePaymentStatus value) { this.status = JsonNullable.of(value); return this; } @@ -645,7 +660,7 @@ public ApiPaymentGetResponseDtoBuilder status(ApiPaymentGetResponsePaymentStatus private JsonNullable dueDate = JsonNullable.undefined(); @JsonProperty("dueDate") - public ApiPaymentGetResponseDtoBuilder dueDate(String value) { + public PaymentGetResponseDtoBuilder dueDate(String value) { this.dueDate = JsonNullable.of(value); return this; } @@ -653,7 +668,7 @@ public ApiPaymentGetResponseDtoBuilder dueDate(String value) { private JsonNullable originalDueDate = JsonNullable.undefined(); @JsonProperty("originalDueDate") - public ApiPaymentGetResponseDtoBuilder originalDueDate(String value) { + public PaymentGetResponseDtoBuilder originalDueDate(String value) { this.originalDueDate = JsonNullable.of(value); return this; } @@ -661,7 +676,7 @@ public ApiPaymentGetResponseDtoBuilder originalDueDate(String value) { private JsonNullable paymentDate = JsonNullable.undefined(); @JsonProperty("paymentDate") - public ApiPaymentGetResponseDtoBuilder paymentDate(String value) { + public PaymentGetResponseDtoBuilder paymentDate(String value) { this.paymentDate = JsonNullable.of(value); return this; } @@ -669,7 +684,7 @@ public ApiPaymentGetResponseDtoBuilder paymentDate(String value) { private JsonNullable clientPaymentDate = JsonNullable.undefined(); @JsonProperty("clientPaymentDate") - public ApiPaymentGetResponseDtoBuilder clientPaymentDate(String value) { + public PaymentGetResponseDtoBuilder clientPaymentDate(String value) { this.clientPaymentDate = JsonNullable.of(value); return this; } @@ -677,7 +692,7 @@ public ApiPaymentGetResponseDtoBuilder clientPaymentDate(String value) { private JsonNullable installmentNumber = JsonNullable.undefined(); @JsonProperty("installmentNumber") - public ApiPaymentGetResponseDtoBuilder installmentNumber(Long value) { + public PaymentGetResponseDtoBuilder installmentNumber(Long value) { this.installmentNumber = JsonNullable.of(value); return this; } @@ -685,7 +700,7 @@ public ApiPaymentGetResponseDtoBuilder installmentNumber(Long value) { private JsonNullable invoiceUrl = JsonNullable.undefined(); @JsonProperty("invoiceUrl") - public ApiPaymentGetResponseDtoBuilder invoiceUrl(String value) { + public PaymentGetResponseDtoBuilder invoiceUrl(String value) { this.invoiceUrl = JsonNullable.of(value); return this; } @@ -693,7 +708,7 @@ public ApiPaymentGetResponseDtoBuilder invoiceUrl(String value) { private JsonNullable invoiceNumber = JsonNullable.undefined(); @JsonProperty("invoiceNumber") - public ApiPaymentGetResponseDtoBuilder invoiceNumber(String value) { + public PaymentGetResponseDtoBuilder invoiceNumber(String value) { this.invoiceNumber = JsonNullable.of(value); return this; } @@ -701,7 +716,7 @@ public ApiPaymentGetResponseDtoBuilder invoiceNumber(String value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPaymentGetResponseDtoBuilder externalReference(String value) { + public PaymentGetResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -709,7 +724,7 @@ public ApiPaymentGetResponseDtoBuilder externalReference(String value) { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiPaymentGetResponseDtoBuilder deleted(Boolean value) { + public PaymentGetResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -717,7 +732,7 @@ public ApiPaymentGetResponseDtoBuilder deleted(Boolean value) { private JsonNullable anticipated = JsonNullable.undefined(); @JsonProperty("anticipated") - public ApiPaymentGetResponseDtoBuilder anticipated(Boolean value) { + public PaymentGetResponseDtoBuilder anticipated(Boolean value) { this.anticipated = JsonNullable.of(value); return this; } @@ -725,7 +740,7 @@ public ApiPaymentGetResponseDtoBuilder anticipated(Boolean value) { private JsonNullable anticipable = JsonNullable.undefined(); @JsonProperty("anticipable") - public ApiPaymentGetResponseDtoBuilder anticipable(Boolean value) { + public PaymentGetResponseDtoBuilder anticipable(Boolean value) { this.anticipable = JsonNullable.of(value); return this; } @@ -733,7 +748,7 @@ public ApiPaymentGetResponseDtoBuilder anticipable(Boolean value) { private JsonNullable creditDate = JsonNullable.undefined(); @JsonProperty("creditDate") - public ApiPaymentGetResponseDtoBuilder creditDate(String value) { + public PaymentGetResponseDtoBuilder creditDate(String value) { this.creditDate = JsonNullable.of(value); return this; } @@ -741,7 +756,7 @@ public ApiPaymentGetResponseDtoBuilder creditDate(String value) { private JsonNullable estimatedCreditDate = JsonNullable.undefined(); @JsonProperty("estimatedCreditDate") - public ApiPaymentGetResponseDtoBuilder estimatedCreditDate(String value) { + public PaymentGetResponseDtoBuilder estimatedCreditDate(String value) { this.estimatedCreditDate = JsonNullable.of(value); return this; } @@ -749,7 +764,7 @@ public ApiPaymentGetResponseDtoBuilder estimatedCreditDate(String value) { private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); @JsonProperty("transactionReceiptUrl") - public ApiPaymentGetResponseDtoBuilder transactionReceiptUrl(String value) { + public PaymentGetResponseDtoBuilder transactionReceiptUrl(String value) { this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -757,7 +772,7 @@ public ApiPaymentGetResponseDtoBuilder transactionReceiptUrl(String value) { private JsonNullable nossoNumero = JsonNullable.undefined(); @JsonProperty("nossoNumero") - public ApiPaymentGetResponseDtoBuilder nossoNumero(String value) { + public PaymentGetResponseDtoBuilder nossoNumero(String value) { this.nossoNumero = JsonNullable.of(value); return this; } @@ -765,39 +780,39 @@ public ApiPaymentGetResponseDtoBuilder nossoNumero(String value) { private JsonNullable bankSlipUrl = JsonNullable.undefined(); @JsonProperty("bankSlipUrl") - public ApiPaymentGetResponseDtoBuilder bankSlipUrl(String value) { + public PaymentGetResponseDtoBuilder bankSlipUrl(String value) { this.bankSlipUrl = JsonNullable.of(value); return this; } - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiPaymentGetResponseDtoBuilder discount(ApiPaymentDiscountDto value) { + public PaymentGetResponseDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiPaymentGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { + public PaymentGetResponseDtoBuilder fine(PaymentFineResponseDto value) { this.fine = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiPaymentGetResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { + public PaymentGetResponseDtoBuilder interest(PaymentInterestResponseDto value) { this.interest = JsonNullable.of(value); return this; } - private JsonNullable> split = JsonNullable.undefined(); + private JsonNullable> split = JsonNullable.undefined(); @JsonProperty("split") - public ApiPaymentGetResponseDtoBuilder split(List value) { + public PaymentGetResponseDtoBuilder split(List value) { this.split = JsonNullable.of(value); return this; } @@ -805,7 +820,7 @@ public ApiPaymentGetResponseDtoBuilder split(List private JsonNullable postalService = JsonNullable.undefined(); @JsonProperty("postalService") - public ApiPaymentGetResponseDtoBuilder postalService(Boolean value) { + public PaymentGetResponseDtoBuilder postalService(Boolean value) { this.postalService = JsonNullable.of(value); return this; } @@ -813,31 +828,31 @@ public ApiPaymentGetResponseDtoBuilder postalService(Boolean value) { private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiPaymentGetResponseDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + public PaymentGetResponseDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } - private JsonNullable chargeback = JsonNullable.undefined(); + private JsonNullable chargeback = JsonNullable.undefined(); @JsonProperty("chargeback") - public ApiPaymentGetResponseDtoBuilder chargeback(ApiPaymentChargebackResponseDto value) { + public PaymentGetResponseDtoBuilder chargeback(PaymentChargebackResponseDto value) { this.chargeback = JsonNullable.of(value); return this; } - private JsonNullable escrow = JsonNullable.undefined(); + private JsonNullable escrow = JsonNullable.undefined(); @JsonProperty("escrow") - public ApiPaymentGetResponseDtoBuilder escrow(ApiPaymentCustodyGetResponseDto value) { + public PaymentGetResponseDtoBuilder escrow(PaymentEscrowGetResponseDto value) { this.escrow = JsonNullable.of(value); return this; } - private JsonNullable> refunds = JsonNullable.undefined(); + private JsonNullable> refunds = JsonNullable.undefined(); @JsonProperty("refunds") - public ApiPaymentGetResponseDtoBuilder refunds(List value) { + public PaymentGetResponseDtoBuilder refunds(List value) { this.refunds = 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/PaymentGetResponsePaymentStatus.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponsePaymentStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentGetResponsePaymentStatus.java index 1bef4d0..9c9c9d1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponsePaymentStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentGetResponsePaymentStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentStatusResponsePaymentStatus { +public enum PaymentGetResponsePaymentStatus { PENDING("PENDING"), RECEIVED("RECEIVED"), CONFIRMED("CONFIRMED"), @@ -33,8 +33,8 @@ public enum ApiPaymentStatusResponsePaymentStatus { private final String value; @JsonCreator - public static ApiPaymentStatusResponsePaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentStatusResponsePaymentStatus.values()) + 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/ApiPaymentIdentificationFieldResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentIdentificationFieldResponseDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentIdentificationFieldResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentIdentificationFieldResponseDto.java index d227d6c..cd3efd6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentIdentificationFieldResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentIdentificationFieldResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentIdentificationFieldResponseDto { +public class PaymentIdentificationFieldResponseDto { /** * Digitable bill line @@ -54,12 +54,12 @@ public String getBarCode() { } // Overwrite lombok builder methods - public static class ApiPaymentIdentificationFieldResponseDtoBuilder { + public static class PaymentIdentificationFieldResponseDtoBuilder { private JsonNullable identificationField = JsonNullable.undefined(); @JsonProperty("identificationField") - public ApiPaymentIdentificationFieldResponseDtoBuilder identificationField(String value) { + public PaymentIdentificationFieldResponseDtoBuilder identificationField(String value) { this.identificationField = JsonNullable.of(value); return this; } @@ -67,7 +67,7 @@ public ApiPaymentIdentificationFieldResponseDtoBuilder identificationField(Strin private JsonNullable nossoNumero = JsonNullable.undefined(); @JsonProperty("nossoNumero") - public ApiPaymentIdentificationFieldResponseDtoBuilder nossoNumero(String value) { + public PaymentIdentificationFieldResponseDtoBuilder nossoNumero(String value) { this.nossoNumero = JsonNullable.of(value); return this; } @@ -75,7 +75,7 @@ public ApiPaymentIdentificationFieldResponseDtoBuilder nossoNumero(String value) private JsonNullable barCode = JsonNullable.undefined(); @JsonProperty("barCode") - public ApiPaymentIdentificationFieldResponseDtoBuilder barCode(String value) { + public PaymentIdentificationFieldResponseDtoBuilder 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/PaymentInterestRequestDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentInterestRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentInterestRequestDto.java index f92b20c..7c72d8d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentInterestRequestDto.java @@ -12,13 +12,16 @@ 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 ApiPaymentInterestRequestDto { +public class PaymentInterestRequestDto { /** * Percentage of interest per month on the amount charged for payment after maturity @@ -32,12 +35,12 @@ public Double getValue() { } // Overwrite lombok builder methods - public static class ApiPaymentInterestRequestDtoBuilder { + public static class PaymentInterestRequestDtoBuilder { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentInterestRequestDtoBuilder value(Double value) { + public PaymentInterestRequestDtoBuilder 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/PaymentInterestResponseDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentInterestResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentInterestResponseDto.java index 1c2c377..aaa788b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentInterestResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentInterestResponseDto.java @@ -12,13 +12,16 @@ 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 ApiPaymentInterestResponseDto { +public class PaymentInterestResponseDto { /** * Interest value in percentage @@ -32,12 +35,12 @@ public Double getValue() { } // Overwrite lombok builder methods - public static class ApiPaymentInterestResponseDtoBuilder { + public static class PaymentInterestResponseDtoBuilder { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentInterestResponseDtoBuilder value(Double value) { + public PaymentInterestResponseDtoBuilder 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/PaymentLeanGetResponseBillingType.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseBillingType.java index 932c24c..942b75f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentLeanGetResponseBillingType { +public enum PaymentLeanGetResponseBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -26,8 +26,8 @@ public enum ApiPaymentLeanGetResponseBillingType { private final String value; @JsonCreator - public static ApiPaymentLeanGetResponseBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentLeanGetResponseBillingType.values()) + 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/ApiPaymentLeanGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseDto.java index 8595547..5100c1a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentLeanGetResponseDto { +public class PaymentLeanGetResponseDto { /** * Object type @@ -96,7 +96,7 @@ public class ApiPaymentLeanGetResponseDto { * Payment billing type */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Informs whether the charge can be paid after the due date (Only for bank slip) @@ -120,7 +120,7 @@ public class ApiPaymentLeanGetResponseDto { * Payment status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Payment due date @@ -194,14 +194,23 @@ public class ApiPaymentLeanGetResponseDto { @JsonProperty("duplicatedPaymentId") private JsonNullable duplicatedPaymentId; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; /** * Define whether the payment will be sent via post @@ -270,7 +279,7 @@ public String getDescription() { } @JsonIgnore - public ApiPaymentLeanGetResponseBillingType getBillingType() { + public PaymentLeanGetResponseBillingType getBillingType() { return billingType.orElse(null); } @@ -290,7 +299,7 @@ public String getPixTransactionId() { } @JsonIgnore - public ApiPaymentLeanGetResponsePaymentStatus getStatus() { + public PaymentLeanGetResponsePaymentStatus getStatus() { return status.orElse(null); } @@ -355,17 +364,17 @@ public String getDuplicatedPaymentId() { } @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentFineResponseDto getFine() { + public PaymentFineResponseDto getFine() { return fine.orElse(null); } @JsonIgnore - public ApiPaymentInterestResponseDto getInterest() { + public PaymentInterestResponseDto getInterest() { return interest.orElse(null); } @@ -375,12 +384,12 @@ public Boolean getPostalService() { } // Overwrite lombok builder methods - public static class ApiPaymentLeanGetResponseDtoBuilder { + public static class PaymentLeanGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPaymentLeanGetResponseDtoBuilder object(String value) { + public PaymentLeanGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -388,7 +397,7 @@ public ApiPaymentLeanGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentLeanGetResponseDtoBuilder id(String value) { + public PaymentLeanGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -396,7 +405,7 @@ public ApiPaymentLeanGetResponseDtoBuilder id(String value) { private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiPaymentLeanGetResponseDtoBuilder dateCreated(String value) { + public PaymentLeanGetResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -404,7 +413,7 @@ public ApiPaymentLeanGetResponseDtoBuilder dateCreated(String value) { private JsonNullable customerId = JsonNullable.undefined(); @JsonProperty("customerId") - public ApiPaymentLeanGetResponseDtoBuilder customerId(String value) { + public PaymentLeanGetResponseDtoBuilder customerId(String value) { this.customerId = JsonNullable.of(value); return this; } @@ -412,7 +421,7 @@ public ApiPaymentLeanGetResponseDtoBuilder customerId(String value) { private JsonNullable subscriptionId = JsonNullable.undefined(); @JsonProperty("subscriptionId") - public ApiPaymentLeanGetResponseDtoBuilder subscriptionId(String value) { + public PaymentLeanGetResponseDtoBuilder subscriptionId(String value) { this.subscriptionId = JsonNullable.of(value); return this; } @@ -420,7 +429,7 @@ public ApiPaymentLeanGetResponseDtoBuilder subscriptionId(String value) { private JsonNullable installmentId = JsonNullable.undefined(); @JsonProperty("installmentId") - public ApiPaymentLeanGetResponseDtoBuilder installmentId(String value) { + public PaymentLeanGetResponseDtoBuilder installmentId(String value) { this.installmentId = JsonNullable.of(value); return this; } @@ -428,7 +437,7 @@ public ApiPaymentLeanGetResponseDtoBuilder installmentId(String value) { private JsonNullable paymentLinkId = JsonNullable.undefined(); @JsonProperty("paymentLinkId") - public ApiPaymentLeanGetResponseDtoBuilder paymentLinkId(String value) { + public PaymentLeanGetResponseDtoBuilder paymentLinkId(String value) { this.paymentLinkId = JsonNullable.of(value); return this; } @@ -436,7 +445,7 @@ public ApiPaymentLeanGetResponseDtoBuilder paymentLinkId(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentLeanGetResponseDtoBuilder value(Double value) { + public PaymentLeanGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -444,7 +453,7 @@ public ApiPaymentLeanGetResponseDtoBuilder value(Double value) { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiPaymentLeanGetResponseDtoBuilder netValue(Double value) { + public PaymentLeanGetResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -452,7 +461,7 @@ public ApiPaymentLeanGetResponseDtoBuilder netValue(Double value) { private JsonNullable originalValue = JsonNullable.undefined(); @JsonProperty("originalValue") - public ApiPaymentLeanGetResponseDtoBuilder originalValue(Double value) { + public PaymentLeanGetResponseDtoBuilder originalValue(Double value) { this.originalValue = JsonNullable.of(value); return this; } @@ -460,7 +469,7 @@ public ApiPaymentLeanGetResponseDtoBuilder originalValue(Double value) { private JsonNullable interestValue = JsonNullable.undefined(); @JsonProperty("interestValue") - public ApiPaymentLeanGetResponseDtoBuilder interestValue(Double value) { + public PaymentLeanGetResponseDtoBuilder interestValue(Double value) { this.interestValue = JsonNullable.of(value); return this; } @@ -468,15 +477,15 @@ public ApiPaymentLeanGetResponseDtoBuilder interestValue(Double value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentLeanGetResponseDtoBuilder description(String value) { + public PaymentLeanGetResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ApiPaymentLeanGetResponseDtoBuilder billingType(ApiPaymentLeanGetResponseBillingType value) { + public PaymentLeanGetResponseDtoBuilder billingType(PaymentLeanGetResponseBillingType value) { this.billingType = JsonNullable.of(value); return this; } @@ -484,7 +493,7 @@ public ApiPaymentLeanGetResponseDtoBuilder billingType(ApiPaymentLeanGetResponse private JsonNullable canBePaidAfterDueDate = JsonNullable.undefined(); @JsonProperty("canBePaidAfterDueDate") - public ApiPaymentLeanGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { + public PaymentLeanGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { this.canBePaidAfterDueDate = JsonNullable.of(value); return this; } @@ -492,7 +501,7 @@ public ApiPaymentLeanGetResponseDtoBuilder canBePaidAfterDueDate(Boolean value) private JsonNullable confirmedDate = JsonNullable.undefined(); @JsonProperty("confirmedDate") - public ApiPaymentLeanGetResponseDtoBuilder confirmedDate(String value) { + public PaymentLeanGetResponseDtoBuilder confirmedDate(String value) { this.confirmedDate = JsonNullable.of(value); return this; } @@ -500,15 +509,15 @@ public ApiPaymentLeanGetResponseDtoBuilder confirmedDate(String value) { private JsonNullable pixTransactionId = JsonNullable.undefined(); @JsonProperty("pixTransactionId") - public ApiPaymentLeanGetResponseDtoBuilder pixTransactionId(String value) { + public PaymentLeanGetResponseDtoBuilder pixTransactionId(String value) { this.pixTransactionId = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentLeanGetResponseDtoBuilder status(ApiPaymentLeanGetResponsePaymentStatus value) { + public PaymentLeanGetResponseDtoBuilder status(PaymentLeanGetResponsePaymentStatus value) { this.status = JsonNullable.of(value); return this; } @@ -516,7 +525,7 @@ public ApiPaymentLeanGetResponseDtoBuilder status(ApiPaymentLeanGetResponsePayme private JsonNullable dueDate = JsonNullable.undefined(); @JsonProperty("dueDate") - public ApiPaymentLeanGetResponseDtoBuilder dueDate(String value) { + public PaymentLeanGetResponseDtoBuilder dueDate(String value) { this.dueDate = JsonNullable.of(value); return this; } @@ -524,7 +533,7 @@ public ApiPaymentLeanGetResponseDtoBuilder dueDate(String value) { private JsonNullable originalDueDate = JsonNullable.undefined(); @JsonProperty("originalDueDate") - public ApiPaymentLeanGetResponseDtoBuilder originalDueDate(String value) { + public PaymentLeanGetResponseDtoBuilder originalDueDate(String value) { this.originalDueDate = JsonNullable.of(value); return this; } @@ -532,7 +541,7 @@ public ApiPaymentLeanGetResponseDtoBuilder originalDueDate(String value) { private JsonNullable paymentDate = JsonNullable.undefined(); @JsonProperty("paymentDate") - public ApiPaymentLeanGetResponseDtoBuilder paymentDate(String value) { + public PaymentLeanGetResponseDtoBuilder paymentDate(String value) { this.paymentDate = JsonNullable.of(value); return this; } @@ -540,7 +549,7 @@ public ApiPaymentLeanGetResponseDtoBuilder paymentDate(String value) { private JsonNullable customerPaymentDate = JsonNullable.undefined(); @JsonProperty("customerPaymentDate") - public ApiPaymentLeanGetResponseDtoBuilder customerPaymentDate(String value) { + public PaymentLeanGetResponseDtoBuilder customerPaymentDate(String value) { this.customerPaymentDate = JsonNullable.of(value); return this; } @@ -548,7 +557,7 @@ public ApiPaymentLeanGetResponseDtoBuilder customerPaymentDate(String value) { private JsonNullable installmentNumber = JsonNullable.undefined(); @JsonProperty("installmentNumber") - public ApiPaymentLeanGetResponseDtoBuilder installmentNumber(Long value) { + public PaymentLeanGetResponseDtoBuilder installmentNumber(Long value) { this.installmentNumber = JsonNullable.of(value); return this; } @@ -556,7 +565,7 @@ public ApiPaymentLeanGetResponseDtoBuilder installmentNumber(Long value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPaymentLeanGetResponseDtoBuilder externalReference(String value) { + public PaymentLeanGetResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -564,7 +573,7 @@ public ApiPaymentLeanGetResponseDtoBuilder externalReference(String value) { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiPaymentLeanGetResponseDtoBuilder deleted(Boolean value) { + public PaymentLeanGetResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -572,7 +581,7 @@ public ApiPaymentLeanGetResponseDtoBuilder deleted(Boolean value) { private JsonNullable anticipated = JsonNullable.undefined(); @JsonProperty("anticipated") - public ApiPaymentLeanGetResponseDtoBuilder anticipated(Boolean value) { + public PaymentLeanGetResponseDtoBuilder anticipated(Boolean value) { this.anticipated = JsonNullable.of(value); return this; } @@ -580,7 +589,7 @@ public ApiPaymentLeanGetResponseDtoBuilder anticipated(Boolean value) { private JsonNullable anticipable = JsonNullable.undefined(); @JsonProperty("anticipable") - public ApiPaymentLeanGetResponseDtoBuilder anticipable(Boolean value) { + public PaymentLeanGetResponseDtoBuilder anticipable(Boolean value) { this.anticipable = JsonNullable.of(value); return this; } @@ -588,7 +597,7 @@ public ApiPaymentLeanGetResponseDtoBuilder anticipable(Boolean value) { private JsonNullable creditDate = JsonNullable.undefined(); @JsonProperty("creditDate") - public ApiPaymentLeanGetResponseDtoBuilder creditDate(String value) { + public PaymentLeanGetResponseDtoBuilder creditDate(String value) { this.creditDate = JsonNullable.of(value); return this; } @@ -596,7 +605,7 @@ public ApiPaymentLeanGetResponseDtoBuilder creditDate(String value) { private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); @JsonProperty("transactionReceiptUrl") - public ApiPaymentLeanGetResponseDtoBuilder transactionReceiptUrl(String value) { + public PaymentLeanGetResponseDtoBuilder transactionReceiptUrl(String value) { this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -604,31 +613,31 @@ public ApiPaymentLeanGetResponseDtoBuilder transactionReceiptUrl(String value) { private JsonNullable duplicatedPaymentId = JsonNullable.undefined(); @JsonProperty("duplicatedPaymentId") - public ApiPaymentLeanGetResponseDtoBuilder duplicatedPaymentId(String value) { + public PaymentLeanGetResponseDtoBuilder duplicatedPaymentId(String value) { this.duplicatedPaymentId = JsonNullable.of(value); return this; } - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiPaymentLeanGetResponseDtoBuilder discount(ApiPaymentDiscountDto value) { + public PaymentLeanGetResponseDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiPaymentLeanGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { + public PaymentLeanGetResponseDtoBuilder fine(PaymentFineResponseDto value) { this.fine = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiPaymentLeanGetResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { + public PaymentLeanGetResponseDtoBuilder interest(PaymentInterestResponseDto value) { this.interest = JsonNullable.of(value); return this; } @@ -636,7 +645,7 @@ public ApiPaymentLeanGetResponseDtoBuilder interest(ApiPaymentInterestResponseDt private JsonNullable postalService = JsonNullable.undefined(); @JsonProperty("postalService") - public ApiPaymentLeanGetResponseDtoBuilder postalService(Boolean value) { + public PaymentLeanGetResponseDtoBuilder 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/PaymentLeanGetResponsePaymentStatus.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponsePaymentStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponsePaymentStatus.java index b2e8491..7bf85fb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanGetResponsePaymentStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanGetResponsePaymentStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentLeanGetResponsePaymentStatus { +public enum PaymentLeanGetResponsePaymentStatus { PENDING("PENDING"), RECEIVED("RECEIVED"), CONFIRMED("CONFIRMED"), @@ -33,8 +33,8 @@ public enum ApiPaymentLeanGetResponsePaymentStatus { private final String value; @JsonCreator - public static ApiPaymentLeanGetResponsePaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentLeanGetResponsePaymentStatus.values()) + 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/ApiCustomerListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLeanListResponseDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiCustomerListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLeanListResponseDto.java index c379f0c..c2c3912 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCustomerListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiCustomerListResponseDto { +public class PaymentLeanListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiCustomerListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiCustomerListResponseDtoBuilder { + public static class PaymentLeanListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiCustomerListResponseDtoBuilder object(String value) { + public PaymentLeanListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiCustomerListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiCustomerListResponseDtoBuilder hasMore(Boolean value) { + public PaymentLeanListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiCustomerListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiCustomerListResponseDtoBuilder totalCount(Long value) { + public PaymentLeanListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiCustomerListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiCustomerListResponseDtoBuilder limit(Long value) { + public PaymentLeanListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiCustomerListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiCustomerListResponseDtoBuilder offset(Long value) { + public PaymentLeanListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiCustomerListResponseDtoBuilder data(List value) { + public PaymentLeanListResponseDtoBuilder data(List value) { this.data = 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/PaymentLeanSaveWithCreditCardResponseBillingType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseBillingType.java index d0ea03f..f2d758b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinanceGetPaymentStatisticsRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseBillingType.java @@ -9,24 +9,25 @@ import lombok.Getter; /** - * Filter by payment method + * Payment billing type */ @Getter @AllArgsConstructor -public enum ApiFinanceGetPaymentStatisticsRequestBillingType { +public enum PaymentLeanSaveWithCreditCardResponseBillingType { + UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), + DEBIT_CARD("DEBIT_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()) + 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/ApiPaymentLeanSaveWithCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseDto.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseDto.java index feb1209..30099bd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentLeanSaveWithCreditCardResponseDto { +public class PaymentLeanSaveWithCreditCardResponseDto { /** * Object type @@ -96,7 +96,7 @@ public class ApiPaymentLeanSaveWithCreditCardResponseDto { * Payment billing type */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Informs whether the charge can be paid after the due date (Only for bank slip) @@ -120,7 +120,7 @@ public class ApiPaymentLeanSaveWithCreditCardResponseDto { * Payment status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Payment due date @@ -194,14 +194,23 @@ public class ApiPaymentLeanSaveWithCreditCardResponseDto { @JsonProperty("duplicatedPaymentId") private JsonNullable duplicatedPaymentId; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; /** * Define whether the payment will be sent via post @@ -209,8 +218,11 @@ public class ApiPaymentLeanSaveWithCreditCardResponseDto { @JsonProperty("postalService") private JsonNullable postalService; + /** + * Credit card information + */ @JsonProperty("creditCard") - private JsonNullable creditCard; + private JsonNullable creditCard; @JsonIgnore public String getObject() { @@ -273,7 +285,7 @@ public String getDescription() { } @JsonIgnore - public ApiPaymentLeanSaveWithCreditCardResponseBillingType getBillingType() { + public PaymentLeanSaveWithCreditCardResponseBillingType getBillingType() { return billingType.orElse(null); } @@ -293,7 +305,7 @@ public String getPixTransactionId() { } @JsonIgnore - public ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus getStatus() { + public PaymentLeanSaveWithCreditCardResponsePaymentStatus getStatus() { return status.orElse(null); } @@ -358,17 +370,17 @@ public String getDuplicatedPaymentId() { } @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentFineResponseDto getFine() { + public PaymentFineResponseDto getFine() { return fine.orElse(null); } @JsonIgnore - public ApiPaymentInterestResponseDto getInterest() { + public PaymentInterestResponseDto getInterest() { return interest.orElse(null); } @@ -378,17 +390,17 @@ public Boolean getPostalService() { } @JsonIgnore - public ApiPaymentSaveWithCreditCardCreditCardDto getCreditCard() { + public PaymentSaveWithCreditCardCreditCardDto getCreditCard() { return creditCard.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder { + public static class PaymentLeanSaveWithCreditCardResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder object(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -396,7 +408,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder id(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -404,7 +416,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder id(String value) { private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder dateCreated(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -412,7 +424,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder dateCreated(String val private JsonNullable customerId = JsonNullable.undefined(); @JsonProperty("customerId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder customerId(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder customerId(String value) { this.customerId = JsonNullable.of(value); return this; } @@ -420,7 +432,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder customerId(String valu private JsonNullable subscriptionId = JsonNullable.undefined(); @JsonProperty("subscriptionId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder subscriptionId(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder subscriptionId(String value) { this.subscriptionId = JsonNullable.of(value); return this; } @@ -428,7 +440,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder subscriptionId(String private JsonNullable installmentId = JsonNullable.undefined(); @JsonProperty("installmentId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder installmentId(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder installmentId(String value) { this.installmentId = JsonNullable.of(value); return this; } @@ -436,7 +448,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder installmentId(String v private JsonNullable paymentLinkId = JsonNullable.undefined(); @JsonProperty("paymentLinkId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder paymentLinkId(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder paymentLinkId(String value) { this.paymentLinkId = JsonNullable.of(value); return this; } @@ -444,7 +456,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder paymentLinkId(String v private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder value(Double value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -452,7 +464,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder value(Double value) { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder netValue(Double value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -460,7 +472,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder netValue(Double value) private JsonNullable originalValue = JsonNullable.undefined(); @JsonProperty("originalValue") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder originalValue(Double value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder originalValue(Double value) { this.originalValue = JsonNullable.of(value); return this; } @@ -468,7 +480,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder originalValue(Double v private JsonNullable interestValue = JsonNullable.undefined(); @JsonProperty("interestValue") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder interestValue(Double value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder interestValue(Double value) { this.interestValue = JsonNullable.of(value); return this; } @@ -476,16 +488,16 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder interestValue(Double v private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder description(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder billingType( - ApiPaymentLeanSaveWithCreditCardResponseBillingType value + public PaymentLeanSaveWithCreditCardResponseDtoBuilder billingType( + PaymentLeanSaveWithCreditCardResponseBillingType value ) { this.billingType = JsonNullable.of(value); return this; @@ -494,7 +506,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder billingType( private JsonNullable canBePaidAfterDueDate = JsonNullable.undefined(); @JsonProperty("canBePaidAfterDueDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder canBePaidAfterDueDate(Boolean value) { this.canBePaidAfterDueDate = JsonNullable.of(value); return this; } @@ -502,7 +514,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder canBePaidAfterDueDate( private JsonNullable confirmedDate = JsonNullable.undefined(); @JsonProperty("confirmedDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder confirmedDate(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder confirmedDate(String value) { this.confirmedDate = JsonNullable.of(value); return this; } @@ -510,16 +522,16 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder confirmedDate(String v private JsonNullable pixTransactionId = JsonNullable.undefined(); @JsonProperty("pixTransactionId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder pixTransactionId(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder pixTransactionId(String value) { this.pixTransactionId = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder status( - ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus value + public PaymentLeanSaveWithCreditCardResponseDtoBuilder status( + PaymentLeanSaveWithCreditCardResponsePaymentStatus value ) { this.status = JsonNullable.of(value); return this; @@ -528,7 +540,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder status( private JsonNullable dueDate = JsonNullable.undefined(); @JsonProperty("dueDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder dueDate(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder dueDate(String value) { this.dueDate = JsonNullable.of(value); return this; } @@ -536,7 +548,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder dueDate(String value) private JsonNullable originalDueDate = JsonNullable.undefined(); @JsonProperty("originalDueDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder originalDueDate(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder originalDueDate(String value) { this.originalDueDate = JsonNullable.of(value); return this; } @@ -544,7 +556,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder originalDueDate(String private JsonNullable paymentDate = JsonNullable.undefined(); @JsonProperty("paymentDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder paymentDate(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder paymentDate(String value) { this.paymentDate = JsonNullable.of(value); return this; } @@ -552,7 +564,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder paymentDate(String val private JsonNullable customerPaymentDate = JsonNullable.undefined(); @JsonProperty("customerPaymentDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder customerPaymentDate(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder customerPaymentDate(String value) { this.customerPaymentDate = JsonNullable.of(value); return this; } @@ -560,7 +572,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder customerPaymentDate(St private JsonNullable installmentNumber = JsonNullable.undefined(); @JsonProperty("installmentNumber") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder installmentNumber(Long value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder installmentNumber(Long value) { this.installmentNumber = JsonNullable.of(value); return this; } @@ -568,7 +580,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder installmentNumber(Long private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder externalReference(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -576,7 +588,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder externalReference(Stri private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder deleted(Boolean value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -584,7 +596,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder deleted(Boolean value) private JsonNullable anticipated = JsonNullable.undefined(); @JsonProperty("anticipated") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder anticipated(Boolean value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder anticipated(Boolean value) { this.anticipated = JsonNullable.of(value); return this; } @@ -592,7 +604,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder anticipated(Boolean va private JsonNullable anticipable = JsonNullable.undefined(); @JsonProperty("anticipable") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder anticipable(Boolean value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder anticipable(Boolean value) { this.anticipable = JsonNullable.of(value); return this; } @@ -600,7 +612,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder anticipable(Boolean va private JsonNullable creditDate = JsonNullable.undefined(); @JsonProperty("creditDate") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder creditDate(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder creditDate(String value) { this.creditDate = JsonNullable.of(value); return this; } @@ -608,7 +620,7 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder creditDate(String valu private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); @JsonProperty("transactionReceiptUrl") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder transactionReceiptUrl(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder transactionReceiptUrl(String value) { this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -616,31 +628,31 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder transactionReceiptUrl( private JsonNullable duplicatedPaymentId = JsonNullable.undefined(); @JsonProperty("duplicatedPaymentId") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder duplicatedPaymentId(String value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder duplicatedPaymentId(String value) { this.duplicatedPaymentId = JsonNullable.of(value); return this; } - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder discount(ApiPaymentDiscountDto value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder fine(PaymentFineResponseDto value) { this.fine = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder interest(PaymentInterestResponseDto value) { this.interest = JsonNullable.of(value); return this; } @@ -648,17 +660,15 @@ public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder interest(ApiPaymentInt private JsonNullable postalService = JsonNullable.undefined(); @JsonProperty("postalService") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder postalService(Boolean value) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder postalService(Boolean value) { this.postalService = JsonNullable.of(value); return this; } - private JsonNullable creditCard = JsonNullable.undefined(); + private JsonNullable creditCard = JsonNullable.undefined(); @JsonProperty("creditCard") - public ApiPaymentLeanSaveWithCreditCardResponseDtoBuilder creditCard( - ApiPaymentSaveWithCreditCardCreditCardDto value - ) { + public PaymentLeanSaveWithCreditCardResponseDtoBuilder creditCard(PaymentSaveWithCreditCardCreditCardDto 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/PaymentLeanSaveWithCreditCardResponsePaymentStatus.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.java index c6efa00..452a8bd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLeanSaveWithCreditCardResponsePaymentStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus { +public enum PaymentLeanSaveWithCreditCardResponsePaymentStatus { PENDING("PENDING"), RECEIVED("RECEIVED"), CONFIRMED("CONFIRMED"), @@ -33,8 +33,8 @@ public enum ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus { private final String value; @JsonCreator - public static ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentLeanSaveWithCreditCardResponsePaymentStatus.values()) + 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/ApiPaymentLimitsResponseCreationDailyDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDailyDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDailyDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDailyDto.java index 1904099..e95abb8 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDailyDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDailyDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Daily limits + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentLimitsResponseCreationDailyDto { +public class PaymentLimitsResponseCreationDailyDto { /** * Total limit @@ -54,12 +57,12 @@ public Boolean getWasReached() { } // Overwrite lombok builder methods - public static class ApiPaymentLimitsResponseCreationDailyDtoBuilder { + public static class PaymentLimitsResponseCreationDailyDtoBuilder { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiPaymentLimitsResponseCreationDailyDtoBuilder limit(Long value) { + public PaymentLimitsResponseCreationDailyDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -67,7 +70,7 @@ public ApiPaymentLimitsResponseCreationDailyDtoBuilder limit(Long value) { private JsonNullable used = JsonNullable.undefined(); @JsonProperty("used") - public ApiPaymentLimitsResponseCreationDailyDtoBuilder used(Long value) { + public PaymentLimitsResponseCreationDailyDtoBuilder used(Long value) { this.used = JsonNullable.of(value); return this; } @@ -75,7 +78,7 @@ public ApiPaymentLimitsResponseCreationDailyDtoBuilder used(Long value) { private JsonNullable wasReached = JsonNullable.undefined(); @JsonProperty("wasReached") - public ApiPaymentLimitsResponseCreationDailyDtoBuilder wasReached(Boolean value) { + public PaymentLimitsResponseCreationDailyDtoBuilder 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/PaymentLimitsResponseCreationDto.java similarity index 58% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDto.java index 8597f0a..b615427 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseCreationDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseCreationDto.java @@ -12,29 +12,35 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Breeding limits + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentLimitsResponseCreationDto { +public class PaymentLimitsResponseCreationDto { + /** + * Daily limits + */ @JsonProperty("daily") - private JsonNullable daily; + private JsonNullable daily; @JsonIgnore - public ApiPaymentLimitsResponseCreationDailyDto getDaily() { + public PaymentLimitsResponseCreationDailyDto getDaily() { return daily.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentLimitsResponseCreationDtoBuilder { + public static class PaymentLimitsResponseCreationDtoBuilder { - private JsonNullable daily = JsonNullable.undefined(); + private JsonNullable daily = JsonNullable.undefined(); @JsonProperty("daily") - public ApiPaymentLimitsResponseCreationDtoBuilder daily(ApiPaymentLimitsResponseCreationDailyDto value) { + public PaymentLimitsResponseCreationDtoBuilder daily(PaymentLimitsResponseCreationDailyDto 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/PaymentLimitsResponseDto.java similarity index 61% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseDto.java index 5a5a063..205d494 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLimitsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLimitsResponseDto.java @@ -18,23 +18,26 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentLimitsResponseDto { +public class PaymentLimitsResponseDto { + /** + * Breeding limits + */ @JsonProperty("creation") - private JsonNullable creation; + private JsonNullable creation; @JsonIgnore - public ApiPaymentLimitsResponseCreationDto getCreation() { + public PaymentLimitsResponseCreationDto getCreation() { return creation.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentLimitsResponseDtoBuilder { + public static class PaymentLimitsResponseDtoBuilder { - private JsonNullable creation = JsonNullable.undefined(); + private JsonNullable creation = JsonNullable.undefined(); @JsonProperty("creation") - public ApiPaymentLimitsResponseDtoBuilder creation(ApiPaymentLimitsResponseCreationDto value) { + public PaymentLimitsResponseDtoBuilder creation(PaymentLimitsResponseCreationDto value) { this.creation = 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/PaymentLinkDeleteResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignDeleteResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkDeleteResponseDto.java index 9962537..d913585 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkDeleteResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentCampaignDeleteResponseDto { +public class PaymentLinkDeleteResponseDto { /** * Indicates whether the payment link has been removed @@ -43,12 +43,12 @@ public String getId() { } // Overwrite lombok builder methods - public static class ApiPaymentCampaignDeleteResponseDtoBuilder { + public static class PaymentLinkDeleteResponseDtoBuilder { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiPaymentCampaignDeleteResponseDtoBuilder deleted(Boolean value) { + public PaymentLinkDeleteResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiPaymentCampaignDeleteResponseDtoBuilder deleted(Boolean value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentCampaignDeleteResponseDtoBuilder id(String value) { + public PaymentLinkDeleteResponseDtoBuilder 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/PaymentLinkFileDeleteResponseDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileDeleteResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkFileDeleteResponseDto.java index 9e98862..61df8d4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileDeleteResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentCampaignFileDeleteResponseDto { +public class PaymentLinkFileDeleteResponseDto { /** * Indicates whether the image was removed @@ -43,12 +43,12 @@ public String getId() { } // Overwrite lombok builder methods - public static class ApiPaymentCampaignFileDeleteResponseDtoBuilder { + public static class PaymentLinkFileDeleteResponseDtoBuilder { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiPaymentCampaignFileDeleteResponseDtoBuilder deleted(Boolean value) { + public PaymentLinkFileDeleteResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiPaymentCampaignFileDeleteResponseDtoBuilder deleted(Boolean value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentCampaignFileDeleteResponseDtoBuilder id(String value) { + public PaymentLinkFileDeleteResponseDtoBuilder 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/PaymentLinkFileGetResponseDto.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkFileGetResponseDto.java index 3c47312..3c9e172 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentCampaignFileGetResponseDto { +public class PaymentLinkFileGetResponseDto { /** * Unique payment link image identifier in Asaas @@ -32,8 +32,11 @@ public class ApiPaymentCampaignFileGetResponseDto { @JsonProperty("main") private JsonNullable main; + /** + * Payments link image information + */ @JsonProperty("image") - private JsonNullable image; + private JsonNullable image; @JsonIgnore public String getId() { @@ -46,17 +49,17 @@ public Boolean getMain() { } @JsonIgnore - public ApiPaymentCampaignFileImageResponseDto getImage() { + public PaymentLinkFileImageResponseDto getImage() { return image.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentCampaignFileGetResponseDtoBuilder { + public static class PaymentLinkFileGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentCampaignFileGetResponseDtoBuilder id(String value) { + public PaymentLinkFileGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -64,15 +67,15 @@ public ApiPaymentCampaignFileGetResponseDtoBuilder id(String value) { private JsonNullable main = JsonNullable.undefined(); @JsonProperty("main") - public ApiPaymentCampaignFileGetResponseDtoBuilder main(Boolean value) { + public PaymentLinkFileGetResponseDtoBuilder main(Boolean value) { this.main = JsonNullable.of(value); return this; } - private JsonNullable image = JsonNullable.undefined(); + private JsonNullable image = JsonNullable.undefined(); @JsonProperty("image") - public ApiPaymentCampaignFileGetResponseDtoBuilder image(ApiPaymentCampaignFileImageResponseDto value) { + public PaymentLinkFileGetResponseDtoBuilder image(PaymentLinkFileImageResponseDto 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/PaymentLinkFileImageResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileImageResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkFileImageResponseDto.java index d3d29d1..3df27f9 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileImageResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileImageResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Payments link image information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentCampaignFileImageResponseDto { +public class PaymentLinkFileImageResponseDto { /** * Original image name @@ -76,12 +79,12 @@ public String getDownloadUrl() { } // Overwrite lombok builder methods - public static class ApiPaymentCampaignFileImageResponseDtoBuilder { + public static class PaymentLinkFileImageResponseDtoBuilder { private JsonNullable originalName = JsonNullable.undefined(); @JsonProperty("originalName") - public ApiPaymentCampaignFileImageResponseDtoBuilder originalName(String value) { + public PaymentLinkFileImageResponseDtoBuilder originalName(String value) { this.originalName = JsonNullable.of(value); return this; } @@ -89,7 +92,7 @@ public ApiPaymentCampaignFileImageResponseDtoBuilder originalName(String value) private JsonNullable size = JsonNullable.undefined(); @JsonProperty("size") - public ApiPaymentCampaignFileImageResponseDtoBuilder size(Long value) { + public PaymentLinkFileImageResponseDtoBuilder size(Long value) { this.size = JsonNullable.of(value); return this; } @@ -97,7 +100,7 @@ public ApiPaymentCampaignFileImageResponseDtoBuilder size(Long value) { private JsonNullable extension = JsonNullable.undefined(); @JsonProperty("extension") - public ApiPaymentCampaignFileImageResponseDtoBuilder extension(String value) { + public PaymentLinkFileImageResponseDtoBuilder extension(String value) { this.extension = JsonNullable.of(value); return this; } @@ -105,7 +108,7 @@ public ApiPaymentCampaignFileImageResponseDtoBuilder extension(String value) { private JsonNullable previewUrl = JsonNullable.undefined(); @JsonProperty("previewUrl") - public ApiPaymentCampaignFileImageResponseDtoBuilder previewUrl(String value) { + public PaymentLinkFileImageResponseDtoBuilder previewUrl(String value) { this.previewUrl = JsonNullable.of(value); return this; } @@ -113,7 +116,7 @@ public ApiPaymentCampaignFileImageResponseDtoBuilder previewUrl(String value) { private JsonNullable downloadUrl = JsonNullable.undefined(); @JsonProperty("downloadUrl") - public ApiPaymentCampaignFileImageResponseDtoBuilder downloadUrl(String value) { + public PaymentLinkFileImageResponseDtoBuilder downloadUrl(String value) { this.downloadUrl = JsonNullable.of(value); return this; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileListResponseDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkFileListResponseDto.java index 0ad0e3b..1b840c5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionListResponseDto { +public class PaymentLinkFileListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiSubscriptionListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiSubscriptionListResponseDtoBuilder { + public static class PaymentLinkFileListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiSubscriptionListResponseDtoBuilder object(String value) { + public PaymentLinkFileListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiSubscriptionListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiSubscriptionListResponseDtoBuilder hasMore(Boolean value) { + public PaymentLinkFileListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiSubscriptionListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiSubscriptionListResponseDtoBuilder totalCount(Long value) { + public PaymentLinkFileListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiSubscriptionListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiSubscriptionListResponseDtoBuilder limit(Long value) { + public PaymentLinkFileListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiSubscriptionListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiSubscriptionListResponseDtoBuilder offset(Long value) { + public PaymentLinkFileListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiSubscriptionListResponseDtoBuilder data(List value) { + public PaymentLinkFileListResponseDtoBuilder 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/PaymentLinkFileSaveRequestDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkFileSaveRequestDto.java index baa24d7..99f8aae 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignFileSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkFileSaveRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentCampaignFileSaveRequestDto { +public class PaymentLinkFileSaveRequestDto { /** * true to set as the main image @@ -43,12 +43,12 @@ public byte[] getImage() { } // Overwrite lombok builder methods - public static class ApiPaymentCampaignFileSaveRequestDtoBuilder { + public static class PaymentLinkFileSaveRequestDtoBuilder { private JsonNullable main = JsonNullable.undefined(); @JsonProperty("main") - public ApiPaymentCampaignFileSaveRequestDtoBuilder main(Boolean value) { + public PaymentLinkFileSaveRequestDtoBuilder main(Boolean value) { this.main = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiPaymentCampaignFileSaveRequestDtoBuilder main(Boolean value) { private JsonNullable image = JsonNullable.undefined(); @JsonProperty("image") - public ApiPaymentCampaignFileSaveRequestDtoBuilder image(byte[] value) { + public PaymentLinkFileSaveRequestDtoBuilder image(byte[] value) { if (value == null) { throw new IllegalStateException("image cannot be null"); } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseBillingType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseBillingType.java index 3cbf9dc..95e9f76 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCampaignSaveRequestBillingType { +public enum PaymentLinkGetResponseBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -23,8 +23,8 @@ public enum ApiPaymentCampaignSaveRequestBillingType { private final String value; @JsonCreator - public static ApiPaymentCampaignSaveRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignSaveRequestBillingType.values()) + 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/ApiPaymentCampaignGetResponseChargeType.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseChargeType.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseChargeType.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseChargeType.java index 21d52ee..281dd5f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseChargeType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseChargeType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCampaignGetResponseChargeType { +public enum PaymentLinkGetResponseChargeType { DETACHED("DETACHED"), RECURRENT("RECURRENT"), INSTALLMENT("INSTALLMENT"); @@ -22,8 +22,8 @@ public enum ApiPaymentCampaignGetResponseChargeType { private final String value; @JsonCreator - public static ApiPaymentCampaignGetResponseChargeType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignGetResponseChargeType.values()) + 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/ApiPaymentCampaignGetResponseCycle.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseCycle.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseCycle.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseCycle.java index b807437..f178f9a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseCycle.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseCycle.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCampaignGetResponseCycle { +public enum PaymentLinkGetResponseCycle { WEEKLY("WEEKLY"), BIWEEKLY("BIWEEKLY"), MONTHLY("MONTHLY"), @@ -26,8 +26,8 @@ public enum ApiPaymentCampaignGetResponseCycle { private final String value; @JsonCreator - public static ApiPaymentCampaignGetResponseCycle fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignGetResponseCycle.values()) + 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/ApiPaymentCampaignGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseDto.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseDto.java index 485b3a8..52fc710 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentCampaignGetResponseDto { +public class PaymentLinkGetResponseDto { /** * Unique identifier for your payments link in Asaas @@ -48,7 +48,7 @@ public class ApiPaymentCampaignGetResponseDto { * Charge type */ @JsonProperty("chargeType") - private JsonNullable chargeType; + private JsonNullable chargeType; /** * Payments link access link @@ -60,13 +60,13 @@ public class ApiPaymentCampaignGetResponseDto { * Allowed payment method */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Billing frequency, if the chargeType is RECURRENT */ @JsonProperty("subscriptionCycle") - private JsonNullable subscriptionCycle; + private JsonNullable subscriptionCycle; /** * Payments link description @@ -143,7 +143,7 @@ public Boolean getActive() { } @JsonIgnore - public ApiPaymentCampaignGetResponseChargeType getChargeType() { + public PaymentLinkGetResponseChargeType getChargeType() { return chargeType.orElse(null); } @@ -153,12 +153,12 @@ public String getUrl() { } @JsonIgnore - public ApiPaymentCampaignGetResponseBillingType getBillingType() { + public PaymentLinkGetResponseBillingType getBillingType() { return billingType.orElse(null); } @JsonIgnore - public ApiPaymentCampaignGetResponseCycle getSubscriptionCycle() { + public PaymentLinkGetResponseCycle getSubscriptionCycle() { return subscriptionCycle.orElse(null); } @@ -208,12 +208,12 @@ public String getExternalReference() { } // Overwrite lombok builder methods - public static class ApiPaymentCampaignGetResponseDtoBuilder { + public static class PaymentLinkGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentCampaignGetResponseDtoBuilder id(String value) { + public PaymentLinkGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -221,7 +221,7 @@ public ApiPaymentCampaignGetResponseDtoBuilder id(String value) { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiPaymentCampaignGetResponseDtoBuilder name(String value) { + public PaymentLinkGetResponseDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -229,7 +229,7 @@ public ApiPaymentCampaignGetResponseDtoBuilder name(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentCampaignGetResponseDtoBuilder value(Double value) { + public PaymentLinkGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -237,15 +237,15 @@ public ApiPaymentCampaignGetResponseDtoBuilder value(Double value) { private JsonNullable active = JsonNullable.undefined(); @JsonProperty("active") - public ApiPaymentCampaignGetResponseDtoBuilder active(Boolean value) { + public PaymentLinkGetResponseDtoBuilder active(Boolean value) { this.active = JsonNullable.of(value); return this; } - private JsonNullable chargeType = JsonNullable.undefined(); + private JsonNullable chargeType = JsonNullable.undefined(); @JsonProperty("chargeType") - public ApiPaymentCampaignGetResponseDtoBuilder chargeType(ApiPaymentCampaignGetResponseChargeType value) { + public PaymentLinkGetResponseDtoBuilder chargeType(PaymentLinkGetResponseChargeType value) { this.chargeType = JsonNullable.of(value); return this; } @@ -253,23 +253,23 @@ public ApiPaymentCampaignGetResponseDtoBuilder chargeType(ApiPaymentCampaignGetR private JsonNullable url = JsonNullable.undefined(); @JsonProperty("url") - public ApiPaymentCampaignGetResponseDtoBuilder url(String value) { + public PaymentLinkGetResponseDtoBuilder url(String value) { this.url = JsonNullable.of(value); return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ApiPaymentCampaignGetResponseDtoBuilder billingType(ApiPaymentCampaignGetResponseBillingType value) { + public PaymentLinkGetResponseDtoBuilder billingType(PaymentLinkGetResponseBillingType value) { this.billingType = JsonNullable.of(value); return this; } - private JsonNullable subscriptionCycle = JsonNullable.undefined(); + private JsonNullable subscriptionCycle = JsonNullable.undefined(); @JsonProperty("subscriptionCycle") - public ApiPaymentCampaignGetResponseDtoBuilder subscriptionCycle(ApiPaymentCampaignGetResponseCycle value) { + public PaymentLinkGetResponseDtoBuilder subscriptionCycle(PaymentLinkGetResponseCycle value) { this.subscriptionCycle = JsonNullable.of(value); return this; } @@ -277,7 +277,7 @@ public ApiPaymentCampaignGetResponseDtoBuilder subscriptionCycle(ApiPaymentCampa private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentCampaignGetResponseDtoBuilder description(String value) { + public PaymentLinkGetResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -285,7 +285,7 @@ public ApiPaymentCampaignGetResponseDtoBuilder description(String value) { private JsonNullable endDate = JsonNullable.undefined(); @JsonProperty("endDate") - public ApiPaymentCampaignGetResponseDtoBuilder endDate(String value) { + public PaymentLinkGetResponseDtoBuilder endDate(String value) { this.endDate = JsonNullable.of(value); return this; } @@ -293,7 +293,7 @@ public ApiPaymentCampaignGetResponseDtoBuilder endDate(String value) { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiPaymentCampaignGetResponseDtoBuilder deleted(Boolean value) { + public PaymentLinkGetResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -301,7 +301,7 @@ public ApiPaymentCampaignGetResponseDtoBuilder deleted(Boolean value) { private JsonNullable viewCount = JsonNullable.undefined(); @JsonProperty("viewCount") - public ApiPaymentCampaignGetResponseDtoBuilder viewCount(Long value) { + public PaymentLinkGetResponseDtoBuilder viewCount(Long value) { this.viewCount = JsonNullable.of(value); return this; } @@ -309,7 +309,7 @@ public ApiPaymentCampaignGetResponseDtoBuilder viewCount(Long value) { private JsonNullable maxInstallmentCount = JsonNullable.undefined(); @JsonProperty("maxInstallmentCount") - public ApiPaymentCampaignGetResponseDtoBuilder maxInstallmentCount(Long value) { + public PaymentLinkGetResponseDtoBuilder maxInstallmentCount(Long value) { this.maxInstallmentCount = JsonNullable.of(value); return this; } @@ -317,7 +317,7 @@ public ApiPaymentCampaignGetResponseDtoBuilder maxInstallmentCount(Long value) { private JsonNullable dueDateLimitDays = JsonNullable.undefined(); @JsonProperty("dueDateLimitDays") - public ApiPaymentCampaignGetResponseDtoBuilder dueDateLimitDays(Long value) { + public PaymentLinkGetResponseDtoBuilder dueDateLimitDays(Long value) { this.dueDateLimitDays = JsonNullable.of(value); return this; } @@ -325,7 +325,7 @@ public ApiPaymentCampaignGetResponseDtoBuilder dueDateLimitDays(Long value) { private JsonNullable notificationEnabled = JsonNullable.undefined(); @JsonProperty("notificationEnabled") - public ApiPaymentCampaignGetResponseDtoBuilder notificationEnabled(Boolean value) { + public PaymentLinkGetResponseDtoBuilder notificationEnabled(Boolean value) { this.notificationEnabled = JsonNullable.of(value); return this; } @@ -333,7 +333,7 @@ public ApiPaymentCampaignGetResponseDtoBuilder notificationEnabled(Boolean value private JsonNullable isAddressRequired = JsonNullable.undefined(); @JsonProperty("isAddressRequired") - public ApiPaymentCampaignGetResponseDtoBuilder isAddressRequired(Boolean value) { + public PaymentLinkGetResponseDtoBuilder isAddressRequired(Boolean value) { this.isAddressRequired = JsonNullable.of(value); return this; } @@ -341,7 +341,7 @@ public ApiPaymentCampaignGetResponseDtoBuilder isAddressRequired(Boolean value) private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPaymentCampaignGetResponseDtoBuilder externalReference(String value) { + 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/ApiPaymentCampaignGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestBillingType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestBillingType.java index 5ae571e..4dd4d48 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignGetResponseBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCampaignGetResponseBillingType { +public enum PaymentLinkSaveRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -23,8 +23,8 @@ public enum ApiPaymentCampaignGetResponseBillingType { private final String value; @JsonCreator - public static ApiPaymentCampaignGetResponseBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignGetResponseBillingType.values()) + 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/ApiPaymentCampaignSaveRequestChargeType.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestChargeType.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestChargeType.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestChargeType.java index 003edec..d2dc841 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestChargeType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestChargeType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCampaignSaveRequestChargeType { +public enum PaymentLinkSaveRequestChargeType { DETACHED("DETACHED"), RECURRENT("RECURRENT"), INSTALLMENT("INSTALLMENT"); @@ -22,8 +22,8 @@ public enum ApiPaymentCampaignSaveRequestChargeType { private final String value; @JsonCreator - public static ApiPaymentCampaignSaveRequestChargeType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignSaveRequestChargeType.values()) + 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/ApiPaymentCampaignSaveRequestCycle.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestCycle.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestCycle.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestCycle.java index 53cc3da..e8fcec1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestCycle.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestCycle.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCampaignSaveRequestCycle { +public enum PaymentLinkSaveRequestCycle { WEEKLY("WEEKLY"), BIWEEKLY("BIWEEKLY"), MONTHLY("MONTHLY"), @@ -26,8 +26,8 @@ public enum ApiPaymentCampaignSaveRequestCycle { private final String value; @JsonCreator - public static ApiPaymentCampaignSaveRequestCycle fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignSaveRequestCycle.values()) + 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/ApiPaymentCampaignSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestDto.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestDto.java index 3d88a56..7df99cb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkSaveRequestDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentCampaignSaveRequestDto { +public class PaymentLinkSaveRequestDto { /** * Payment link name @@ -31,13 +31,13 @@ public class ApiPaymentCampaignSaveRequestDto { * Allowed payment method */ @NonNull - private ApiPaymentCampaignSaveRequestBillingType billingType; + private PaymentLinkSaveRequestBillingType billingType; /** * Charge type */ @NonNull - private ApiPaymentCampaignSaveRequestChargeType chargeType; + private PaymentLinkSaveRequestChargeType chargeType; /** * Payments link description @@ -67,7 +67,7 @@ public class ApiPaymentCampaignSaveRequestDto { * Billing frequency, if the chargeType is RECURRENT */ @JsonProperty("subscriptionCycle") - private JsonNullable 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 @@ -87,8 +87,11 @@ public class ApiPaymentCampaignSaveRequestDto { @JsonProperty("notificationEnabled") private JsonNullable notificationEnabled; + /** + * Automatic redirection information after the payment of the link payment + */ @JsonProperty("callback") - private JsonNullable callback; + private JsonNullable callback; /** * True to make it mandatory to fill in address data at checkout. @@ -117,7 +120,7 @@ public Long getDueDateLimitDays() { } @JsonIgnore - public ApiPaymentCampaignSaveRequestCycle getSubscriptionCycle() { + public PaymentLinkSaveRequestCycle getSubscriptionCycle() { return subscriptionCycle.orElse(null); } @@ -137,7 +140,7 @@ public Boolean getNotificationEnabled() { } @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { + public PaymentCallbackRequestDto getCallback() { return callback.orElse(null); } @@ -147,12 +150,12 @@ public Boolean getIsAddressRequired() { } // Overwrite lombok builder methods - public static class ApiPaymentCampaignSaveRequestDtoBuilder { + public static class PaymentLinkSaveRequestDtoBuilder { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentCampaignSaveRequestDtoBuilder description(String value) { + public PaymentLinkSaveRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -160,7 +163,7 @@ public ApiPaymentCampaignSaveRequestDtoBuilder description(String value) { private JsonNullable endDate = JsonNullable.undefined(); @JsonProperty("endDate") - public ApiPaymentCampaignSaveRequestDtoBuilder endDate(String value) { + public PaymentLinkSaveRequestDtoBuilder endDate(String value) { this.endDate = JsonNullable.of(value); return this; } @@ -168,7 +171,7 @@ public ApiPaymentCampaignSaveRequestDtoBuilder endDate(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentCampaignSaveRequestDtoBuilder value(Double value) { + public PaymentLinkSaveRequestDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -176,15 +179,15 @@ public ApiPaymentCampaignSaveRequestDtoBuilder value(Double value) { private JsonNullable dueDateLimitDays = JsonNullable.undefined(); @JsonProperty("dueDateLimitDays") - public ApiPaymentCampaignSaveRequestDtoBuilder dueDateLimitDays(Long value) { + public PaymentLinkSaveRequestDtoBuilder dueDateLimitDays(Long value) { this.dueDateLimitDays = JsonNullable.of(value); return this; } - private JsonNullable subscriptionCycle = JsonNullable.undefined(); + private JsonNullable subscriptionCycle = JsonNullable.undefined(); @JsonProperty("subscriptionCycle") - public ApiPaymentCampaignSaveRequestDtoBuilder subscriptionCycle(ApiPaymentCampaignSaveRequestCycle value) { + public PaymentLinkSaveRequestDtoBuilder subscriptionCycle(PaymentLinkSaveRequestCycle value) { this.subscriptionCycle = JsonNullable.of(value); return this; } @@ -192,7 +195,7 @@ public ApiPaymentCampaignSaveRequestDtoBuilder subscriptionCycle(ApiPaymentCampa private JsonNullable maxInstallmentCount = JsonNullable.of(1L); @JsonProperty("maxInstallmentCount") - public ApiPaymentCampaignSaveRequestDtoBuilder maxInstallmentCount(Long value) { + public PaymentLinkSaveRequestDtoBuilder maxInstallmentCount(Long value) { this.maxInstallmentCount = JsonNullable.of(value); return this; } @@ -200,7 +203,7 @@ public ApiPaymentCampaignSaveRequestDtoBuilder maxInstallmentCount(Long value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPaymentCampaignSaveRequestDtoBuilder externalReference(String value) { + public PaymentLinkSaveRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -208,15 +211,15 @@ public ApiPaymentCampaignSaveRequestDtoBuilder externalReference(String value) { private JsonNullable notificationEnabled = JsonNullable.of(true); @JsonProperty("notificationEnabled") - public ApiPaymentCampaignSaveRequestDtoBuilder notificationEnabled(Boolean value) { + public PaymentLinkSaveRequestDtoBuilder notificationEnabled(Boolean value) { this.notificationEnabled = JsonNullable.of(value); return this; } - private JsonNullable callback = JsonNullable.undefined(); + private JsonNullable callback = JsonNullable.undefined(); @JsonProperty("callback") - public ApiPaymentCampaignSaveRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { + public PaymentLinkSaveRequestDtoBuilder callback(PaymentCallbackRequestDto value) { this.callback = JsonNullable.of(value); return this; } @@ -224,7 +227,7 @@ public ApiPaymentCampaignSaveRequestDtoBuilder callback(ApiPaymentCallbackReques private JsonNullable isAddressRequired = JsonNullable.undefined(); @JsonProperty("isAddressRequired") - public ApiPaymentCampaignSaveRequestDtoBuilder isAddressRequired(Boolean value) { + public PaymentLinkSaveRequestDtoBuilder 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/PaymentLinkUpdateRequestBillingType.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestBillingType.java index 7a53162..ab4edce 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCampaignUpdateRequestBillingType { +public enum PaymentLinkUpdateRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -23,8 +23,8 @@ public enum ApiPaymentCampaignUpdateRequestBillingType { private final String value; @JsonCreator - public static ApiPaymentCampaignUpdateRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignUpdateRequestBillingType.values()) + 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/ApiPaymentCampaignUpdateRequestChargeType.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestChargeType.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestChargeType.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestChargeType.java index 76e8771..3626bae 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestChargeType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestChargeType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCampaignUpdateRequestChargeType { +public enum PaymentLinkUpdateRequestChargeType { DETACHED("DETACHED"), RECURRENT("RECURRENT"), INSTALLMENT("INSTALLMENT"); @@ -22,8 +22,8 @@ public enum ApiPaymentCampaignUpdateRequestChargeType { private final String value; @JsonCreator - public static ApiPaymentCampaignUpdateRequestChargeType fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignUpdateRequestChargeType.values()) + 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/ApiPaymentCampaignUpdateRequestCycle.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestCycle.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestCycle.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestCycle.java index 1fb5d4b..a4ba1d8 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestCycle.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestCycle.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentCampaignUpdateRequestCycle { +public enum PaymentLinkUpdateRequestCycle { WEEKLY("WEEKLY"), BIWEEKLY("BIWEEKLY"), MONTHLY("MONTHLY"), @@ -26,8 +26,8 @@ public enum ApiPaymentCampaignUpdateRequestCycle { private final String value; @JsonCreator - public static ApiPaymentCampaignUpdateRequestCycle fromValue(String value) { - return Arrays.stream(ApiPaymentCampaignUpdateRequestCycle.values()) + 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/ApiPaymentCampaignUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestDto.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestDto.java index aaf6031..0eafd39 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentCampaignUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentLinkUpdateRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentCampaignUpdateRequestDto { +public class PaymentLinkUpdateRequestDto { /** * Payment link name @@ -54,13 +54,13 @@ public class ApiPaymentCampaignUpdateRequestDto { * Allowed payment method */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Charge type */ @JsonProperty("chargeType") - private JsonNullable chargeType; + private JsonNullable chargeType; /** * Number of business days that your customer can pay after the invoice is generated (For payment method such as Boleto) @@ -72,7 +72,7 @@ public class ApiPaymentCampaignUpdateRequestDto { * Billing frequency, if the chargeType is RECURRENT */ @JsonProperty("subscriptionCycle") - private JsonNullable 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 @@ -92,8 +92,11 @@ public class ApiPaymentCampaignUpdateRequestDto { @JsonProperty("notificationEnabled") private JsonNullable notificationEnabled; + /** + * Automatic redirection information after the payment of the link payment + */ @JsonProperty("callback") - private JsonNullable callback; + private JsonNullable callback; @JsonIgnore public String getName() { @@ -121,12 +124,12 @@ public Boolean getActive() { } @JsonIgnore - public ApiPaymentCampaignUpdateRequestBillingType getBillingType() { + public PaymentLinkUpdateRequestBillingType getBillingType() { return billingType.orElse(null); } @JsonIgnore - public ApiPaymentCampaignUpdateRequestChargeType getChargeType() { + public PaymentLinkUpdateRequestChargeType getChargeType() { return chargeType.orElse(null); } @@ -136,7 +139,7 @@ public Long getDueDateLimitDays() { } @JsonIgnore - public ApiPaymentCampaignUpdateRequestCycle getSubscriptionCycle() { + public PaymentLinkUpdateRequestCycle getSubscriptionCycle() { return subscriptionCycle.orElse(null); } @@ -156,17 +159,17 @@ public Boolean getNotificationEnabled() { } @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { + public PaymentCallbackRequestDto getCallback() { return callback.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentCampaignUpdateRequestDtoBuilder { + public static class PaymentLinkUpdateRequestDtoBuilder { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiPaymentCampaignUpdateRequestDtoBuilder name(String value) { + public PaymentLinkUpdateRequestDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -174,7 +177,7 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder name(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentCampaignUpdateRequestDtoBuilder description(String value) { + public PaymentLinkUpdateRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -182,7 +185,7 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder description(String value) { private JsonNullable endDate = JsonNullable.undefined(); @JsonProperty("endDate") - public ApiPaymentCampaignUpdateRequestDtoBuilder endDate(String value) { + public PaymentLinkUpdateRequestDtoBuilder endDate(String value) { this.endDate = JsonNullable.of(value); return this; } @@ -190,7 +193,7 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder endDate(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentCampaignUpdateRequestDtoBuilder value(Double value) { + public PaymentLinkUpdateRequestDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -198,23 +201,23 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder value(Double value) { private JsonNullable active = JsonNullable.undefined(); @JsonProperty("active") - public ApiPaymentCampaignUpdateRequestDtoBuilder active(Boolean value) { + public PaymentLinkUpdateRequestDtoBuilder active(Boolean value) { this.active = JsonNullable.of(value); return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ApiPaymentCampaignUpdateRequestDtoBuilder billingType(ApiPaymentCampaignUpdateRequestBillingType value) { + public PaymentLinkUpdateRequestDtoBuilder billingType(PaymentLinkUpdateRequestBillingType value) { this.billingType = JsonNullable.of(value); return this; } - private JsonNullable chargeType = JsonNullable.undefined(); + private JsonNullable chargeType = JsonNullable.undefined(); @JsonProperty("chargeType") - public ApiPaymentCampaignUpdateRequestDtoBuilder chargeType(ApiPaymentCampaignUpdateRequestChargeType value) { + public PaymentLinkUpdateRequestDtoBuilder chargeType(PaymentLinkUpdateRequestChargeType value) { this.chargeType = JsonNullable.of(value); return this; } @@ -222,15 +225,15 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder chargeType(ApiPaymentCampaignUp private JsonNullable dueDateLimitDays = JsonNullable.undefined(); @JsonProperty("dueDateLimitDays") - public ApiPaymentCampaignUpdateRequestDtoBuilder dueDateLimitDays(Long value) { + public PaymentLinkUpdateRequestDtoBuilder dueDateLimitDays(Long value) { this.dueDateLimitDays = JsonNullable.of(value); return this; } - private JsonNullable subscriptionCycle = JsonNullable.undefined(); + private JsonNullable subscriptionCycle = JsonNullable.undefined(); @JsonProperty("subscriptionCycle") - public ApiPaymentCampaignUpdateRequestDtoBuilder subscriptionCycle(ApiPaymentCampaignUpdateRequestCycle value) { + public PaymentLinkUpdateRequestDtoBuilder subscriptionCycle(PaymentLinkUpdateRequestCycle value) { this.subscriptionCycle = JsonNullable.of(value); return this; } @@ -238,7 +241,7 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder subscriptionCycle(ApiPaymentCam private JsonNullable maxInstallmentCount = JsonNullable.of(1L); @JsonProperty("maxInstallmentCount") - public ApiPaymentCampaignUpdateRequestDtoBuilder maxInstallmentCount(Long value) { + public PaymentLinkUpdateRequestDtoBuilder maxInstallmentCount(Long value) { this.maxInstallmentCount = JsonNullable.of(value); return this; } @@ -246,7 +249,7 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder maxInstallmentCount(Long value) private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPaymentCampaignUpdateRequestDtoBuilder externalReference(String value) { + public PaymentLinkUpdateRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -254,15 +257,15 @@ public ApiPaymentCampaignUpdateRequestDtoBuilder externalReference(String value) private JsonNullable notificationEnabled = JsonNullable.of(true); @JsonProperty("notificationEnabled") - public ApiPaymentCampaignUpdateRequestDtoBuilder notificationEnabled(Boolean value) { + public PaymentLinkUpdateRequestDtoBuilder notificationEnabled(Boolean value) { this.notificationEnabled = JsonNullable.of(value); return this; } - private JsonNullable callback = JsonNullable.undefined(); + private JsonNullable callback = JsonNullable.undefined(); @JsonProperty("callback") - public ApiPaymentCampaignUpdateRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { + public PaymentLinkUpdateRequestDtoBuilder callback(PaymentCallbackRequestDto value) { this.callback = 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/PaymentListRequestBillingType.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentListRequestBillingType.java index b307775..257a789 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentListRequestBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentListRequestBillingType { +public enum PaymentListRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -23,8 +23,8 @@ public enum ApiPaymentListRequestBillingType { private final String value; @JsonCreator - public static ApiPaymentListRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentListRequestBillingType.values()) + 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/ApiPaymentListRequestInvoiceStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentListRequestInvoiceStatus.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestInvoiceStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentListRequestInvoiceStatus.java index 11b2d2a..8f04b42 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestInvoiceStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentListRequestInvoiceStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentListRequestInvoiceStatus { +public enum PaymentListRequestInvoiceStatus { SCHEDULED("SCHEDULED"), AUTHORIZED("AUTHORIZED"), PROCESSING_CANCELLATION("PROCESSING_CANCELLATION"), @@ -25,8 +25,8 @@ public enum ApiPaymentListRequestInvoiceStatus { private final String value; @JsonCreator - public static ApiPaymentListRequestInvoiceStatus fromValue(String value) { - return Arrays.stream(ApiPaymentListRequestInvoiceStatus.values()) + 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/ApiPaymentListRequestPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentListRequestPaymentStatus.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestPaymentStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentListRequestPaymentStatus.java index 8b74ac8..02af7b8 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentListRequestPaymentStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentListRequestPaymentStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentListRequestPaymentStatus { +public enum PaymentListRequestPaymentStatus { PENDING("PENDING"), RECEIVED("RECEIVED"), CONFIRMED("CONFIRMED"), @@ -33,8 +33,8 @@ public enum ApiPaymentListRequestPaymentStatus { private final String value; @JsonCreator - public static ApiPaymentListRequestPaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentListRequestPaymentStatus.values()) + 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/ApiPaymentPixQrCodeResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentPixQrCodeResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentPixQrCodeResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentPixQrCodeResponseDto.java index 3971fd5..e761fcd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentPixQrCodeResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentPixQrCodeResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Payment data related to pix + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentPixQrCodeResponseDto { +public class PaymentPixQrCodeResponseDto { /** * QrCode image in base64 @@ -54,12 +57,12 @@ public String getExpirationDate() { } // Overwrite lombok builder methods - public static class ApiPaymentPixQrCodeResponseDtoBuilder { + public static class PaymentPixQrCodeResponseDtoBuilder { private JsonNullable encodedImage = JsonNullable.undefined(); @JsonProperty("encodedImage") - public ApiPaymentPixQrCodeResponseDtoBuilder encodedImage(String value) { + public PaymentPixQrCodeResponseDtoBuilder encodedImage(String value) { this.encodedImage = JsonNullable.of(value); return this; } @@ -67,7 +70,7 @@ public ApiPaymentPixQrCodeResponseDtoBuilder encodedImage(String value) { private JsonNullable payload = JsonNullable.undefined(); @JsonProperty("payload") - public ApiPaymentPixQrCodeResponseDtoBuilder payload(String value) { + public PaymentPixQrCodeResponseDtoBuilder payload(String value) { this.payload = JsonNullable.of(value); return this; } @@ -75,7 +78,7 @@ public ApiPaymentPixQrCodeResponseDtoBuilder payload(String value) { private JsonNullable expirationDate = JsonNullable.undefined(); @JsonProperty("expirationDate") - public ApiPaymentPixQrCodeResponseDtoBuilder expirationDate(String value) { + public PaymentPixQrCodeResponseDtoBuilder 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/PaymentReceiveInCashRequestDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentReceiveInCashRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentReceiveInCashRequestDto.java index 5db5d3b..4123340 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentReceiveInCashRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentReceiveInCashRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentReceiveInCashRequestDto { +public class PaymentReceiveInCashRequestDto { /** * Date the customer made the payment @@ -54,12 +54,12 @@ public Boolean getNotifyCustomer() { } // Overwrite lombok builder methods - public static class ApiPaymentReceiveInCashRequestDtoBuilder { + public static class PaymentReceiveInCashRequestDtoBuilder { private JsonNullable paymentDate = JsonNullable.undefined(); @JsonProperty("paymentDate") - public ApiPaymentReceiveInCashRequestDtoBuilder paymentDate(String value) { + public PaymentReceiveInCashRequestDtoBuilder paymentDate(String value) { this.paymentDate = JsonNullable.of(value); return this; } @@ -67,7 +67,7 @@ public ApiPaymentReceiveInCashRequestDtoBuilder paymentDate(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentReceiveInCashRequestDtoBuilder value(Double value) { + public PaymentReceiveInCashRequestDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -75,7 +75,7 @@ public ApiPaymentReceiveInCashRequestDtoBuilder value(Double value) { private JsonNullable notifyCustomer = JsonNullable.undefined(); @JsonProperty("notifyCustomer") - public ApiPaymentReceiveInCashRequestDtoBuilder notifyCustomer(Boolean value) { + public PaymentReceiveInCashRequestDtoBuilder 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/PaymentRefundGetResponseDto.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponseDto.java index 532e9f2..6f966f4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponseDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Refunds information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentRefundGetResponseDto { +public class PaymentRefundGetResponseDto { /** * Refund creation date @@ -31,7 +34,7 @@ public class ApiPaymentRefundGetResponseDto { * Refund status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Refund value @@ -67,7 +70,7 @@ public class ApiPaymentRefundGetResponseDto { * Refunded Splits, if any */ @JsonProperty("refundedSplits") - private JsonNullable> refundedSplits; + private JsonNullable> refundedSplits; @JsonIgnore public String getDateCreated() { @@ -75,7 +78,7 @@ public String getDateCreated() { } @JsonIgnore - public ApiPaymentRefundGetResponsePaymentRefundStatus getStatus() { + public PaymentRefundGetResponsePaymentRefundStatus getStatus() { return status.orElse(null); } @@ -105,25 +108,25 @@ public String getTransactionReceiptUrl() { } @JsonIgnore - public List getRefundedSplits() { + public List getRefundedSplits() { return refundedSplits.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentRefundGetResponseDtoBuilder { + public static class PaymentRefundGetResponseDtoBuilder { private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiPaymentRefundGetResponseDtoBuilder dateCreated(String value) { + public PaymentRefundGetResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentRefundGetResponseDtoBuilder status(ApiPaymentRefundGetResponsePaymentRefundStatus value) { + public PaymentRefundGetResponseDtoBuilder status(PaymentRefundGetResponsePaymentRefundStatus value) { this.status = JsonNullable.of(value); return this; } @@ -131,7 +134,7 @@ public ApiPaymentRefundGetResponseDtoBuilder status(ApiPaymentRefundGetResponseP private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentRefundGetResponseDtoBuilder value(Double value) { + public PaymentRefundGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -139,7 +142,7 @@ public ApiPaymentRefundGetResponseDtoBuilder value(Double value) { private JsonNullable endToEndIdentifier = JsonNullable.undefined(); @JsonProperty("endToEndIdentifier") - public ApiPaymentRefundGetResponseDtoBuilder endToEndIdentifier(String value) { + public PaymentRefundGetResponseDtoBuilder endToEndIdentifier(String value) { this.endToEndIdentifier = JsonNullable.of(value); return this; } @@ -147,7 +150,7 @@ public ApiPaymentRefundGetResponseDtoBuilder endToEndIdentifier(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentRefundGetResponseDtoBuilder description(String value) { + public PaymentRefundGetResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -155,7 +158,7 @@ public ApiPaymentRefundGetResponseDtoBuilder description(String value) { private JsonNullable effectiveDate = JsonNullable.undefined(); @JsonProperty("effectiveDate") - public ApiPaymentRefundGetResponseDtoBuilder effectiveDate(String value) { + public PaymentRefundGetResponseDtoBuilder effectiveDate(String value) { this.effectiveDate = JsonNullable.of(value); return this; } @@ -163,15 +166,15 @@ public ApiPaymentRefundGetResponseDtoBuilder effectiveDate(String value) { private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); @JsonProperty("transactionReceiptUrl") - public ApiPaymentRefundGetResponseDtoBuilder transactionReceiptUrl(String value) { + public PaymentRefundGetResponseDtoBuilder transactionReceiptUrl(String value) { this.transactionReceiptUrl = JsonNullable.of(value); return this; } - private JsonNullable> refundedSplits = JsonNullable.undefined(); + private JsonNullable> refundedSplits = JsonNullable.undefined(); @JsonProperty("refundedSplits") - public ApiPaymentRefundGetResponseDtoBuilder refundedSplits(List value) { + public PaymentRefundGetResponseDtoBuilder refundedSplits(List value) { this.refundedSplits = 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/PaymentRefundGetResponsePaymentRefundStatus.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponsePaymentRefundStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponsePaymentRefundStatus.java index 83045fa..ad057d4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentRefundResponsePaymentRefundStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentRefundGetResponsePaymentRefundStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiInstallmentRefundResponsePaymentRefundStatus { +public enum PaymentRefundGetResponsePaymentRefundStatus { PENDING("PENDING"), AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION("AWAITING_CUSTOMER_EXTERNAL_AUTHORIZATION"), @@ -24,8 +24,8 @@ public enum ApiInstallmentRefundResponsePaymentRefundStatus { private final String value; @JsonCreator - public static ApiInstallmentRefundResponsePaymentRefundStatus fromValue(String value) { - return Arrays.stream(ApiInstallmentRefundResponsePaymentRefundStatus.values()) + 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/ApiChargebackListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PaymentRefundListResponseDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiChargebackListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentRefundListResponseDto.java index 1ceb97c..ad160a4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiChargebackListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentRefundListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiChargebackListResponseDto { +public class PaymentRefundListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiChargebackListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiChargebackListResponseDtoBuilder { + public static class PaymentRefundListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiChargebackListResponseDtoBuilder object(String value) { + public PaymentRefundListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiChargebackListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiChargebackListResponseDtoBuilder hasMore(Boolean value) { + public PaymentRefundListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiChargebackListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiChargebackListResponseDtoBuilder totalCount(Long value) { + public PaymentRefundListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiChargebackListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiChargebackListResponseDtoBuilder limit(Long value) { + public PaymentRefundListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiChargebackListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiChargebackListResponseDtoBuilder offset(Long value) { + public PaymentRefundListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiChargebackListResponseDtoBuilder data(List value) { + public PaymentRefundListResponseDtoBuilder 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/PaymentRefundRequestDto.java similarity index 84% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentRefundRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentRefundRequestDto.java index 41fe09f..28d839d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentRefundRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentRefundRequestDto { +public class PaymentRefundRequestDto { /** * Amount to be refunded @@ -43,12 +43,12 @@ public String getDescription() { } // Overwrite lombok builder methods - public static class ApiPaymentRefundRequestDtoBuilder { + public static class PaymentRefundRequestDtoBuilder { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentRefundRequestDtoBuilder value(Double value) { + public PaymentRefundRequestDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiPaymentRefundRequestDtoBuilder value(Double value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentRefundRequestDtoBuilder description(String value) { + public PaymentRefundRequestDtoBuilder 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/PaymentRefundedSplitResponseDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentRefundedSplitResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentRefundedSplitResponseDto.java index dc9523e..3f8daa6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentRefundedSplitResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentRefundedSplitResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Refunded Splits, if any + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentRefundedSplitResponseDto { +public class PaymentRefundedSplitResponseDto { /** * Unique split identifier @@ -54,12 +57,12 @@ public Boolean getDone() { } // Overwrite lombok builder methods - public static class ApiPaymentRefundedSplitResponseDtoBuilder { + public static class PaymentRefundedSplitResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentRefundedSplitResponseDtoBuilder id(String value) { + public PaymentRefundedSplitResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -67,7 +70,7 @@ public ApiPaymentRefundedSplitResponseDtoBuilder id(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentRefundedSplitResponseDtoBuilder value(Double value) { + public PaymentRefundedSplitResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -75,7 +78,7 @@ public ApiPaymentRefundedSplitResponseDtoBuilder value(Double value) { private JsonNullable done = JsonNullable.undefined(); @JsonProperty("done") - public ApiPaymentRefundedSplitResponseDtoBuilder done(Boolean value) { + public PaymentRefundedSplitResponseDtoBuilder 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/PaymentSaveRequestBillingType.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentSaveRequestBillingType.java index 62229c6..cba3801 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveRequestBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentSaveRequestBillingType { +public enum PaymentSaveRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -23,8 +23,8 @@ public enum ApiPaymentSaveRequestBillingType { private final String value; @JsonCreator - public static ApiPaymentSaveRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentSaveRequestBillingType.values()) + 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/ApiPaymentSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSaveRequestDto.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentSaveRequestDto.java index 3cde201..1a9d017 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveRequestDto.java @@ -20,7 +20,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSaveRequestDto { +public class PaymentSaveRequestDto { /** * Unique customer identifier in Asaas @@ -32,7 +32,7 @@ public class ApiPaymentSaveRequestDto { * Payment billing type */ @NonNull - private ApiPaymentSaveRequestBillingType billingType; + private PaymentSaveRequestBillingType billingType; /** * Payment amount @@ -82,14 +82,23 @@ public class ApiPaymentSaveRequestDto { @JsonProperty("installmentValue") private JsonNullable installmentValue; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; /** * Define whether the payment will be sent via post @@ -101,10 +110,13 @@ public class ApiPaymentSaveRequestDto { * Split Settings */ @JsonProperty("split") - private JsonNullable> split; + private JsonNullable> split; + /** + * Automatic redirection information after the payment of the link payment + */ @JsonProperty("callback") - private JsonNullable callback; + private JsonNullable callback; @JsonIgnore public String getDescription() { @@ -137,17 +149,17 @@ public Double getInstallmentValue() { } @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { + public PaymentInterestRequestDto getInterest() { return interest.orElse(null); } @JsonIgnore - public ApiPaymentFineRequestDto getFine() { + public PaymentFineRequestDto getFine() { return fine.orElse(null); } @@ -157,22 +169,22 @@ public Boolean getPostalService() { } @JsonIgnore - public List getSplit() { + public List getSplit() { return split.orElse(null); } @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { + public PaymentCallbackRequestDto getCallback() { return callback.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentSaveRequestDtoBuilder { + public static class PaymentSaveRequestDtoBuilder { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentSaveRequestDtoBuilder description(String value) { + public PaymentSaveRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -180,7 +192,7 @@ public ApiPaymentSaveRequestDtoBuilder description(String value) { private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiPaymentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + public PaymentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } @@ -188,7 +200,7 @@ public ApiPaymentSaveRequestDtoBuilder daysAfterDueDateToRegistrationCancellatio private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPaymentSaveRequestDtoBuilder externalReference(String value) { + public PaymentSaveRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -196,7 +208,7 @@ public ApiPaymentSaveRequestDtoBuilder externalReference(String value) { private JsonNullable installmentCount = JsonNullable.undefined(); @JsonProperty("installmentCount") - public ApiPaymentSaveRequestDtoBuilder installmentCount(Long value) { + public PaymentSaveRequestDtoBuilder installmentCount(Long value) { this.installmentCount = JsonNullable.of(value); return this; } @@ -204,7 +216,7 @@ public ApiPaymentSaveRequestDtoBuilder installmentCount(Long value) { private JsonNullable totalValue = JsonNullable.undefined(); @JsonProperty("totalValue") - public ApiPaymentSaveRequestDtoBuilder totalValue(Double value) { + public PaymentSaveRequestDtoBuilder totalValue(Double value) { this.totalValue = JsonNullable.of(value); return this; } @@ -212,31 +224,31 @@ public ApiPaymentSaveRequestDtoBuilder totalValue(Double value) { private JsonNullable installmentValue = JsonNullable.undefined(); @JsonProperty("installmentValue") - public ApiPaymentSaveRequestDtoBuilder installmentValue(Double value) { + public PaymentSaveRequestDtoBuilder installmentValue(Double value) { this.installmentValue = JsonNullable.of(value); return this; } - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiPaymentSaveRequestDtoBuilder discount(ApiPaymentDiscountDto value) { + public PaymentSaveRequestDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiPaymentSaveRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { + public PaymentSaveRequestDtoBuilder interest(PaymentInterestRequestDto value) { this.interest = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiPaymentSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { + public PaymentSaveRequestDtoBuilder fine(PaymentFineRequestDto value) { this.fine = JsonNullable.of(value); return this; } @@ -244,23 +256,23 @@ public ApiPaymentSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { private JsonNullable postalService = JsonNullable.undefined(); @JsonProperty("postalService") - public ApiPaymentSaveRequestDtoBuilder postalService(Boolean value) { + public PaymentSaveRequestDtoBuilder postalService(Boolean value) { this.postalService = JsonNullable.of(value); return this; } - private JsonNullable> split = JsonNullable.undefined(); + private JsonNullable> split = JsonNullable.undefined(); @JsonProperty("split") - public ApiPaymentSaveRequestDtoBuilder split(List value) { + public PaymentSaveRequestDtoBuilder split(List value) { this.split = JsonNullable.of(value); return this; } - private JsonNullable callback = JsonNullable.undefined(); + private JsonNullable callback = JsonNullable.undefined(); @JsonProperty("callback") - public ApiPaymentSaveRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { + public PaymentSaveRequestDtoBuilder callback(PaymentCallbackRequestDto 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/PaymentSaveWithCreditCardCreditCardCreditCardBrand.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.java rename to src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.java index 99f40a5..7cc266c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardCreditCardBrand.java @@ -13,14 +13,13 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand { +public enum PaymentSaveWithCreditCardCreditCardCreditCardBrand { VISA("VISA"), MASTERCARD("MASTERCARD"), ELO("ELO"), DINERS("DINERS"), DISCOVER("DISCOVER"), AMEX("AMEX"), - HIPERCARD("HIPERCARD"), CABAL("CABAL"), BANESCARD("BANESCARD"), CREDZ("CREDZ"), @@ -33,8 +32,8 @@ public enum ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand { private final String value; @JsonCreator - public static ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand fromValue(String value) { - return Arrays.stream(ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand.values()) + 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/ApiPaymentSaveWithCreditCardCreditCardDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardDto.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardDto.java index 33a535a..ac9d5f3 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardCreditCardDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardCreditCardDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Credit card information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSaveWithCreditCardCreditCardDto { +public class PaymentSaveWithCreditCardCreditCardDto { /** * Last 4 digits of the card used @@ -30,7 +33,7 @@ public class ApiPaymentSaveWithCreditCardCreditCardDto { * Flag of the card used */ @JsonProperty("creditCardBrand") - private JsonNullable creditCardBrand; + private JsonNullable creditCardBrand; /** * Credit card token if tokenization is active. @@ -44,7 +47,7 @@ public String getCreditCardNumber() { } @JsonIgnore - public ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand getCreditCardBrand() { + public PaymentSaveWithCreditCardCreditCardCreditCardBrand getCreditCardBrand() { return creditCardBrand.orElse(null); } @@ -54,22 +57,21 @@ public String getCreditCardToken() { } // Overwrite lombok builder methods - public static class ApiPaymentSaveWithCreditCardCreditCardDtoBuilder { + public static class PaymentSaveWithCreditCardCreditCardDtoBuilder { private JsonNullable creditCardNumber = JsonNullable.undefined(); @JsonProperty("creditCardNumber") - public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardNumber(String value) { + public PaymentSaveWithCreditCardCreditCardDtoBuilder creditCardNumber(String value) { this.creditCardNumber = JsonNullable.of(value); return this; } - private JsonNullable creditCardBrand = - JsonNullable.undefined(); + private JsonNullable creditCardBrand = JsonNullable.undefined(); @JsonProperty("creditCardBrand") - public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardBrand( - ApiPaymentSaveWithCreditCardCreditCardCreditCardBrand value + public PaymentSaveWithCreditCardCreditCardDtoBuilder creditCardBrand( + PaymentSaveWithCreditCardCreditCardCreditCardBrand value ) { this.creditCardBrand = JsonNullable.of(value); return this; @@ -78,7 +80,7 @@ public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardBrand( private JsonNullable creditCardToken = JsonNullable.undefined(); @JsonProperty("creditCardToken") - public ApiPaymentSaveWithCreditCardCreditCardDtoBuilder creditCardToken(String value) { + public PaymentSaveWithCreditCardCreditCardDtoBuilder 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/PaymentSaveWithCreditCardRequestBillingType.java similarity index 71% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestBillingType.java index cda8b02..e158fbd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentSaveWithCreditCardRequestBillingType { +public enum PaymentSaveWithCreditCardRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -23,8 +23,8 @@ public enum ApiPaymentSaveWithCreditCardRequestBillingType { private final String value; @JsonCreator - public static ApiPaymentSaveWithCreditCardRequestBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentSaveWithCreditCardRequestBillingType.values()) + 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/ApiPaymentSaveWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestDto.java similarity index 65% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestDto.java index 6813e8c..c3159dd 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSaveWithCreditCardRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSaveWithCreditCardRequestDto.java @@ -20,7 +20,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSaveWithCreditCardRequestDto { +public class PaymentSaveWithCreditCardRequestDto { /** * Unique customer identifier in Asaas @@ -32,7 +32,7 @@ public class ApiPaymentSaveWithCreditCardRequestDto { * Payment billing type */ @NonNull - private ApiPaymentSaveWithCreditCardRequestBillingType billingType; + private PaymentSaveWithCreditCardRequestBillingType billingType; /** * Payment amount @@ -88,14 +88,23 @@ public class ApiPaymentSaveWithCreditCardRequestDto { @JsonProperty("installmentValue") private JsonNullable installmentValue; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; /** * Define whether the payment will be sent via post @@ -107,16 +116,25 @@ public class ApiPaymentSaveWithCreditCardRequestDto { * Split Settings */ @JsonProperty("split") - private JsonNullable> split; + private JsonNullable> split; + /** + * Automatic redirection information after the payment of the link payment + */ @JsonProperty("callback") - private JsonNullable callback; + private JsonNullable callback; + /** + * Credit card information + */ @JsonProperty("creditCard") - private JsonNullable creditCard; + private JsonNullable creditCard; + /** + * Credit card holder information + */ @JsonProperty("creditCardHolderInfo") - private JsonNullable creditCardHolderInfo; + private JsonNullable creditCardHolderInfo; /** * Credit card token for using the credit card tokenization functionality @@ -161,17 +179,17 @@ public Double getInstallmentValue() { } @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { + public PaymentInterestRequestDto getInterest() { return interest.orElse(null); } @JsonIgnore - public ApiPaymentFineRequestDto getFine() { + public PaymentFineRequestDto getFine() { return fine.orElse(null); } @@ -181,22 +199,22 @@ public Boolean getPostalService() { } @JsonIgnore - public List getSplit() { + public List getSplit() { return split.orElse(null); } @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { + public PaymentCallbackRequestDto getCallback() { return callback.orElse(null); } @JsonIgnore - public ApiCreditCardRequestDto getCreditCard() { + public CreditCardRequestDto getCreditCard() { return creditCard.orElse(null); } @JsonIgnore - public ApiCreditCardHolderInfoRequestDto getCreditCardHolderInfo() { + public CreditCardHolderInfoRequestDto getCreditCardHolderInfo() { return creditCardHolderInfo.orElse(null); } @@ -211,12 +229,12 @@ public Boolean getAuthorizeOnly() { } // Overwrite lombok builder methods - public static class ApiPaymentSaveWithCreditCardRequestDtoBuilder { + public static class PaymentSaveWithCreditCardRequestDtoBuilder { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder description(String value) { + public PaymentSaveWithCreditCardRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -224,7 +242,7 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder description(String value) { private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + public PaymentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } @@ -232,7 +250,7 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder daysAfterDueDateToRegistrat private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder externalReference(String value) { + public PaymentSaveWithCreditCardRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -240,7 +258,7 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder externalReference(String va private JsonNullable installmentCount = JsonNullable.undefined(); @JsonProperty("installmentCount") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder installmentCount(Long value) { + public PaymentSaveWithCreditCardRequestDtoBuilder installmentCount(Long value) { this.installmentCount = JsonNullable.of(value); return this; } @@ -248,7 +266,7 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder installmentCount(Long value private JsonNullable totalValue = JsonNullable.undefined(); @JsonProperty("totalValue") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder totalValue(Double value) { + public PaymentSaveWithCreditCardRequestDtoBuilder totalValue(Double value) { this.totalValue = JsonNullable.of(value); return this; } @@ -256,31 +274,31 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder totalValue(Double value) { private JsonNullable installmentValue = JsonNullable.undefined(); @JsonProperty("installmentValue") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder installmentValue(Double value) { + public PaymentSaveWithCreditCardRequestDtoBuilder installmentValue(Double value) { this.installmentValue = JsonNullable.of(value); return this; } - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDiscountDto value) { + public PaymentSaveWithCreditCardRequestDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { + public PaymentSaveWithCreditCardRequestDtoBuilder interest(PaymentInterestRequestDto value) { this.interest = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { + public PaymentSaveWithCreditCardRequestDtoBuilder fine(PaymentFineRequestDto value) { this.fine = JsonNullable.of(value); return this; } @@ -288,39 +306,45 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequestD private JsonNullable postalService = JsonNullable.undefined(); @JsonProperty("postalService") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder postalService(Boolean value) { + public PaymentSaveWithCreditCardRequestDtoBuilder postalService(Boolean value) { this.postalService = JsonNullable.of(value); return this; } - private JsonNullable> split = JsonNullable.undefined(); + private JsonNullable> split = JsonNullable.undefined(); @JsonProperty("split") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder split(List value) { + public PaymentSaveWithCreditCardRequestDtoBuilder split(List value) { this.split = JsonNullable.of(value); return this; } - private JsonNullable callback = JsonNullable.undefined(); + private JsonNullable callback = JsonNullable.undefined(); @JsonProperty("callback") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { + public PaymentSaveWithCreditCardRequestDtoBuilder callback(PaymentCallbackRequestDto value) { this.callback = JsonNullable.of(value); return this; } - private JsonNullable creditCard = JsonNullable.undefined(); + private JsonNullable creditCard = JsonNullable.undefined(); @JsonProperty("creditCard") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder creditCard(ApiCreditCardRequestDto value) { + 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(); + private JsonNullable creditCardHolderInfo = JsonNullable.undefined(); @JsonProperty("creditCardHolderInfo") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder creditCardHolderInfo(ApiCreditCardHolderInfoRequestDto value) { + public PaymentSaveWithCreditCardRequestDtoBuilder creditCardHolderInfo(CreditCardHolderInfoRequestDto value) { + if (value == null) { + throw new IllegalStateException("creditCardHolderInfo cannot be null"); + } this.creditCardHolderInfo = JsonNullable.of(value); return this; } @@ -328,7 +352,7 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder creditCardHolderInfo(ApiCre private JsonNullable creditCardToken = JsonNullable.undefined(); @JsonProperty("creditCardToken") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder creditCardToken(String value) { + public PaymentSaveWithCreditCardRequestDtoBuilder creditCardToken(String value) { this.creditCardToken = JsonNullable.of(value); return this; } @@ -336,7 +360,7 @@ public ApiPaymentSaveWithCreditCardRequestDtoBuilder creditCardToken(String valu private JsonNullable authorizeOnly = JsonNullable.undefined(); @JsonProperty("authorizeOnly") - public ApiPaymentSaveWithCreditCardRequestDtoBuilder authorizeOnly(Boolean value) { + public PaymentSaveWithCreditCardRequestDtoBuilder 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/PaymentSimulateBankSlipResponseDto.java similarity index 67% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateBankSlipResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentSimulateBankSlipResponseDto.java index 2cbe6d4..2de11c8 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateBankSlipResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateBankSlipResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Boleto fees + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSimulateBankSlipResponseDto { +public class PaymentSimulateBankSlipResponseDto { /** * Net value @@ -32,8 +35,11 @@ public class ApiPaymentSimulateBankSlipResponseDto { @JsonProperty("feeValue") private JsonNullable feeValue; + /** + * Installment information + */ @JsonProperty("installment") - private JsonNullable installment; + private JsonNullable installment; @JsonIgnore public Double getNetValue() { @@ -46,17 +52,17 @@ public Double getFeeValue() { } @JsonIgnore - public ApiPaymentSimulateInstallmentResponseDto getInstallment() { + public PaymentSimulateInstallmentResponseDto getInstallment() { return installment.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentSimulateBankSlipResponseDtoBuilder { + public static class PaymentSimulateBankSlipResponseDtoBuilder { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiPaymentSimulateBankSlipResponseDtoBuilder netValue(Double value) { + public PaymentSimulateBankSlipResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -64,15 +70,15 @@ public ApiPaymentSimulateBankSlipResponseDtoBuilder netValue(Double value) { private JsonNullable feeValue = JsonNullable.undefined(); @JsonProperty("feeValue") - public ApiPaymentSimulateBankSlipResponseDtoBuilder feeValue(Double value) { + public PaymentSimulateBankSlipResponseDtoBuilder feeValue(Double value) { this.feeValue = JsonNullable.of(value); return this; } - private JsonNullable installment = JsonNullable.undefined(); + private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiPaymentSimulateBankSlipResponseDtoBuilder installment(ApiPaymentSimulateInstallmentResponseDto value) { + public PaymentSimulateBankSlipResponseDtoBuilder installment(PaymentSimulateInstallmentResponseDto 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/PaymentSimulateCreditCardResponseDto.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateCreditCardResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentSimulateCreditCardResponseDto.java index e15ad03..a972c74 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateCreditCardResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateCreditCardResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Card fees + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSimulateCreditCardResponseDto { +public class PaymentSimulateCreditCardResponseDto { /** * Net value @@ -38,8 +41,11 @@ public class ApiPaymentSimulateCreditCardResponseDto { @JsonProperty("operationFee") private JsonNullable operationFee; + /** + * Installment information + */ @JsonProperty("installment") - private JsonNullable installment; + private JsonNullable installment; @JsonIgnore public Double getNetValue() { @@ -57,17 +63,17 @@ public Double getOperationFee() { } @JsonIgnore - public ApiPaymentSimulateInstallmentResponseDto getInstallment() { + public PaymentSimulateInstallmentResponseDto getInstallment() { return installment.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentSimulateCreditCardResponseDtoBuilder { + public static class PaymentSimulateCreditCardResponseDtoBuilder { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiPaymentSimulateCreditCardResponseDtoBuilder netValue(Double value) { + public PaymentSimulateCreditCardResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -75,7 +81,7 @@ public ApiPaymentSimulateCreditCardResponseDtoBuilder netValue(Double value) { private JsonNullable feePercentage = JsonNullable.undefined(); @JsonProperty("feePercentage") - public ApiPaymentSimulateCreditCardResponseDtoBuilder feePercentage(Double value) { + public PaymentSimulateCreditCardResponseDtoBuilder feePercentage(Double value) { this.feePercentage = JsonNullable.of(value); return this; } @@ -83,15 +89,15 @@ public ApiPaymentSimulateCreditCardResponseDtoBuilder feePercentage(Double value private JsonNullable operationFee = JsonNullable.undefined(); @JsonProperty("operationFee") - public ApiPaymentSimulateCreditCardResponseDtoBuilder operationFee(Double value) { + public PaymentSimulateCreditCardResponseDtoBuilder operationFee(Double value) { this.operationFee = JsonNullable.of(value); return this; } - private JsonNullable installment = JsonNullable.undefined(); + private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiPaymentSimulateCreditCardResponseDtoBuilder installment(ApiPaymentSimulateInstallmentResponseDto value) { + public PaymentSimulateCreditCardResponseDtoBuilder installment(PaymentSimulateInstallmentResponseDto 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/PaymentSimulateInstallmentResponseDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateInstallmentResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentSimulateInstallmentResponseDto.java index 91af59b..27453c2 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateInstallmentResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateInstallmentResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Installment information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSimulateInstallmentResponseDto { +public class PaymentSimulateInstallmentResponseDto { /** * Net value @@ -43,12 +46,12 @@ public Double getPaymentValue() { } // Overwrite lombok builder methods - public static class ApiPaymentSimulateInstallmentResponseDtoBuilder { + public static class PaymentSimulateInstallmentResponseDtoBuilder { private JsonNullable paymentNetValue = JsonNullable.undefined(); @JsonProperty("paymentNetValue") - public ApiPaymentSimulateInstallmentResponseDtoBuilder paymentNetValue(Double value) { + public PaymentSimulateInstallmentResponseDtoBuilder paymentNetValue(Double value) { this.paymentNetValue = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiPaymentSimulateInstallmentResponseDtoBuilder paymentNetValue(Double va private JsonNullable paymentValue = JsonNullable.undefined(); @JsonProperty("paymentValue") - public ApiPaymentSimulateInstallmentResponseDtoBuilder paymentValue(Double value) { + public PaymentSimulateInstallmentResponseDtoBuilder 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/PaymentSimulatePixResponseDto.java similarity index 71% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSimulatePixResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentSimulatePixResponseDto.java index 720b733..c0fa3e3 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulatePixResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulatePixResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * PIX fees + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSimulatePixResponseDto { +public class PaymentSimulatePixResponseDto { /** * Net value @@ -38,8 +41,11 @@ public class ApiPaymentSimulatePixResponseDto { @JsonProperty("feeValue") private JsonNullable feeValue; + /** + * Installment information + */ @JsonProperty("installment") - private JsonNullable installment; + private JsonNullable installment; @JsonIgnore public Double getNetValue() { @@ -57,17 +63,17 @@ public Double getFeeValue() { } @JsonIgnore - public ApiPaymentSimulateInstallmentResponseDto getInstallment() { + public PaymentSimulateInstallmentResponseDto getInstallment() { return installment.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentSimulatePixResponseDtoBuilder { + public static class PaymentSimulatePixResponseDtoBuilder { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiPaymentSimulatePixResponseDtoBuilder netValue(Double value) { + public PaymentSimulatePixResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } @@ -75,7 +81,7 @@ public ApiPaymentSimulatePixResponseDtoBuilder netValue(Double value) { private JsonNullable feePercentage = JsonNullable.undefined(); @JsonProperty("feePercentage") - public ApiPaymentSimulatePixResponseDtoBuilder feePercentage(Double value) { + public PaymentSimulatePixResponseDtoBuilder feePercentage(Double value) { this.feePercentage = JsonNullable.of(value); return this; } @@ -83,15 +89,15 @@ public ApiPaymentSimulatePixResponseDtoBuilder feePercentage(Double value) { private JsonNullable feeValue = JsonNullable.undefined(); @JsonProperty("feeValue") - public ApiPaymentSimulatePixResponseDtoBuilder feeValue(Double value) { + public PaymentSimulatePixResponseDtoBuilder feeValue(Double value) { this.feeValue = JsonNullable.of(value); return this; } - private JsonNullable installment = JsonNullable.undefined(); + private JsonNullable installment = JsonNullable.undefined(); @JsonProperty("installment") - public ApiPaymentSimulatePixResponseDtoBuilder installment(ApiPaymentSimulateInstallmentResponseDto value) { + public PaymentSimulatePixResponseDtoBuilder installment(PaymentSimulateInstallmentResponseDto value) { this.installment = 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/PaymentSimulateRequestBillingType.java similarity index 67% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestBillingType.java index 23ae375..f203506 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanSaveWithCreditCardResponseBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestBillingType.java @@ -9,25 +9,27 @@ import lombok.Getter; /** - * Payment billing type + * Form of payment */ @Getter @AllArgsConstructor -public enum ApiPaymentLeanSaveWithCreditCardResponseBillingType { +public enum PaymentSimulateRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), - DEBIT_CARD("DEBIT_CARD"), + MUNDIPAGG_CIELO("MUNDIPAGG_CIELO"), TRANSFER("TRANSFER"), DEPOSIT("DEPOSIT"), - PIX("PIX"); + DEBIT_CARD("DEBIT_CARD"), + PIX("PIX"), + ASAAS_MONEY("ASAAS_MONEY"); @JsonValue private final String value; @JsonCreator - public static ApiPaymentLeanSaveWithCreditCardResponseBillingType fromValue(String value) { - return Arrays.stream(ApiPaymentLeanSaveWithCreditCardResponseBillingType.values()) + 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/ApiPaymentSimulateRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestDto.java index 1c3a22c..f9c17f1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateRequestDto.java @@ -20,7 +20,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSimulateRequestDto { +public class PaymentSimulateRequestDto { /** * Total installment or billing amount @@ -32,7 +32,7 @@ public class ApiPaymentSimulateRequestDto { * Form of payment */ @NonNull - private List billingTypes; + private List billingTypes; /** * Number of installments @@ -46,12 +46,12 @@ public Long getInstallmentCount() { } // Overwrite lombok builder methods - public static class ApiPaymentSimulateRequestDtoBuilder { + public static class PaymentSimulateRequestDtoBuilder { private JsonNullable installmentCount = JsonNullable.undefined(); @JsonProperty("installmentCount") - public ApiPaymentSimulateRequestDtoBuilder installmentCount(Long value) { + public PaymentSimulateRequestDtoBuilder 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/PaymentSimulateResponseDto.java similarity index 54% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentSimulateResponseDto.java index ecf5d93..b71a801 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSimulateResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSimulateResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSimulateResponseDto { +public class PaymentSimulateResponseDto { /** * Total installment or billing amount @@ -26,14 +26,23 @@ public class ApiPaymentSimulateResponseDto { @JsonProperty("value") private JsonNullable value; + /** + * Card fees + */ @JsonProperty("creditCard") - private JsonNullable creditCard; + private JsonNullable creditCard; + /** + * Boleto fees + */ @JsonProperty("bankSlip") - private JsonNullable bankSlip; + private JsonNullable bankSlip; + /** + * PIX fees + */ @JsonProperty("pix") - private JsonNullable pix; + private JsonNullable pix; @JsonIgnore public Double getValue() { @@ -41,51 +50,51 @@ public Double getValue() { } @JsonIgnore - public ApiPaymentSimulateCreditCardResponseDto getCreditCard() { + public PaymentSimulateCreditCardResponseDto getCreditCard() { return creditCard.orElse(null); } @JsonIgnore - public ApiPaymentSimulateBankSlipResponseDto getBankSlip() { + public PaymentSimulateBankSlipResponseDto getBankSlip() { return bankSlip.orElse(null); } @JsonIgnore - public ApiPaymentSimulatePixResponseDto getPix() { + public PaymentSimulatePixResponseDto getPix() { return pix.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentSimulateResponseDtoBuilder { + public static class PaymentSimulateResponseDtoBuilder { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPaymentSimulateResponseDtoBuilder value(Double value) { + public PaymentSimulateResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } - private JsonNullable creditCard = JsonNullable.undefined(); + private JsonNullable creditCard = JsonNullable.undefined(); @JsonProperty("creditCard") - public ApiPaymentSimulateResponseDtoBuilder creditCard(ApiPaymentSimulateCreditCardResponseDto value) { + public PaymentSimulateResponseDtoBuilder creditCard(PaymentSimulateCreditCardResponseDto value) { this.creditCard = JsonNullable.of(value); return this; } - private JsonNullable bankSlip = JsonNullable.undefined(); + private JsonNullable bankSlip = JsonNullable.undefined(); @JsonProperty("bankSlip") - public ApiPaymentSimulateResponseDtoBuilder bankSlip(ApiPaymentSimulateBankSlipResponseDto value) { + public PaymentSimulateResponseDtoBuilder bankSlip(PaymentSimulateBankSlipResponseDto value) { this.bankSlip = JsonNullable.of(value); return this; } - private JsonNullable pix = JsonNullable.undefined(); + private JsonNullable pix = JsonNullable.undefined(); @JsonProperty("pix") - public ApiPaymentSimulateResponseDtoBuilder pix(ApiPaymentSimulatePixResponseDto value) { + public PaymentSimulateResponseDtoBuilder pix(PaymentSimulatePixResponseDto 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/PaymentSplitGetResponseDto.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponseDto.java index c75a50b..2f0e3ba 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Split Settings + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSplitGetResponseDto { +public class PaymentSplitGetResponseDto { /** * Unique split identifier in Asaas @@ -54,13 +57,13 @@ public class ApiPaymentSplitGetResponseDto { * Reason for canceling the split */ @JsonProperty("cancellationReason") - private JsonNullable cancellationReason; + private JsonNullable cancellationReason; /** * Split status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Unique identifier of split in your system @@ -100,12 +103,12 @@ public Double getTotalValue() { } @JsonIgnore - public ApiPaymentSplitGetResponsePaymentSplitCancellationReason getCancellationReason() { + public PaymentSplitGetResponsePaymentSplitCancellationReason getCancellationReason() { return cancellationReason.orElse(null); } @JsonIgnore - public ApiPaymentSplitGetResponsePaymentSplitStatus getStatus() { + public PaymentSplitGetResponsePaymentSplitStatus getStatus() { return status.orElse(null); } @@ -120,12 +123,12 @@ public String getDescription() { } // Overwrite lombok builder methods - public static class ApiPaymentSplitGetResponseDtoBuilder { + public static class PaymentSplitGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPaymentSplitGetResponseDtoBuilder id(String value) { + public PaymentSplitGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -133,7 +136,7 @@ public ApiPaymentSplitGetResponseDtoBuilder id(String value) { private JsonNullable walletId = JsonNullable.undefined(); @JsonProperty("walletId") - public ApiPaymentSplitGetResponseDtoBuilder walletId(String value) { + public PaymentSplitGetResponseDtoBuilder walletId(String value) { this.walletId = JsonNullable.of(value); return this; } @@ -141,7 +144,7 @@ public ApiPaymentSplitGetResponseDtoBuilder walletId(String value) { private JsonNullable fixedValue = JsonNullable.undefined(); @JsonProperty("fixedValue") - public ApiPaymentSplitGetResponseDtoBuilder fixedValue(Double value) { + public PaymentSplitGetResponseDtoBuilder fixedValue(Double value) { this.fixedValue = JsonNullable.of(value); return this; } @@ -149,7 +152,7 @@ public ApiPaymentSplitGetResponseDtoBuilder fixedValue(Double value) { private JsonNullable percentualValue = JsonNullable.undefined(); @JsonProperty("percentualValue") - public ApiPaymentSplitGetResponseDtoBuilder percentualValue(Double value) { + public PaymentSplitGetResponseDtoBuilder percentualValue(Double value) { this.percentualValue = JsonNullable.of(value); return this; } @@ -157,26 +160,26 @@ public ApiPaymentSplitGetResponseDtoBuilder percentualValue(Double value) { private JsonNullable totalValue = JsonNullable.undefined(); @JsonProperty("totalValue") - public ApiPaymentSplitGetResponseDtoBuilder totalValue(Double value) { + public PaymentSplitGetResponseDtoBuilder totalValue(Double value) { this.totalValue = JsonNullable.of(value); return this; } - private JsonNullable cancellationReason = + private JsonNullable cancellationReason = JsonNullable.undefined(); @JsonProperty("cancellationReason") - public ApiPaymentSplitGetResponseDtoBuilder cancellationReason( - ApiPaymentSplitGetResponsePaymentSplitCancellationReason value + public PaymentSplitGetResponseDtoBuilder cancellationReason( + PaymentSplitGetResponsePaymentSplitCancellationReason value ) { this.cancellationReason = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentSplitGetResponseDtoBuilder status(ApiPaymentSplitGetResponsePaymentSplitStatus value) { + public PaymentSplitGetResponseDtoBuilder status(PaymentSplitGetResponsePaymentSplitStatus value) { this.status = JsonNullable.of(value); return this; } @@ -184,7 +187,7 @@ public ApiPaymentSplitGetResponseDtoBuilder status(ApiPaymentSplitGetResponsePay private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPaymentSplitGetResponseDtoBuilder externalReference(String value) { + public PaymentSplitGetResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -192,7 +195,7 @@ public ApiPaymentSplitGetResponseDtoBuilder externalReference(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentSplitGetResponseDtoBuilder description(String value) { + public PaymentSplitGetResponseDtoBuilder 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/PaymentSplitGetResponsePaymentSplitCancellationReason.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.java rename to src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitCancellationReason.java index f8c7a2e..28075fc 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitCancellationReason.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitCancellationReason.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentSplitGetResponsePaymentSplitCancellationReason { +public enum PaymentSplitGetResponsePaymentSplitCancellationReason { PAYMENT_DELETED("PAYMENT_DELETED"), PAYMENT_OVERDUE("PAYMENT_OVERDUE"), PAYMENT_RECEIVED_IN_CASH("PAYMENT_RECEIVED_IN_CASH"), @@ -25,8 +25,8 @@ public enum ApiPaymentSplitGetResponsePaymentSplitCancellationReason { private final String value; @JsonCreator - public static ApiPaymentSplitGetResponsePaymentSplitCancellationReason fromValue(String value) { - return Arrays.stream(ApiPaymentSplitGetResponsePaymentSplitCancellationReason.values()) + 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/ApiPaymentSplitGetResponsePaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitStatus.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitStatus.java index 2698c5b..a73859c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitGetResponsePaymentSplitStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitGetResponsePaymentSplitStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentSplitGetResponsePaymentSplitStatus { +public enum PaymentSplitGetResponsePaymentSplitStatus { PENDING("PENDING"), AWAITING_CREDIT("AWAITING_CREDIT"), CANCELLED("CANCELLED"), @@ -25,8 +25,8 @@ public enum ApiPaymentSplitGetResponsePaymentSplitStatus { private final String value; @JsonCreator - public static ApiPaymentSplitGetResponsePaymentSplitStatus fromValue(String value) { - return Arrays.stream(ApiPaymentSplitGetResponsePaymentSplitStatus.values()) + 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/ApiPaymentSplitListPaidRequestPaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentSplitListPaidRequestPaymentSplitStatus.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentSplitListPaidRequestPaymentSplitStatus.java index ce3ad5c..7a72332 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListPaidRequestPaymentSplitStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitListPaidRequestPaymentSplitStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentSplitListPaidRequestPaymentSplitStatus { +public enum PaymentSplitListPaidRequestPaymentSplitStatus { PENDING("PENDING"), AWAITING_CREDIT("AWAITING_CREDIT"), CANCELLED("CANCELLED"), @@ -25,8 +25,8 @@ public enum ApiPaymentSplitListPaidRequestPaymentSplitStatus { private final String value; @JsonCreator - public static ApiPaymentSplitListPaidRequestPaymentSplitStatus fromValue(String value) { - return Arrays.stream(ApiPaymentSplitListPaidRequestPaymentSplitStatus.values()) + 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/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.java b/src/main/java/com/asaas/apisdk/models/PaymentSplitListReceivedRequestPaymentSplitStatus.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentSplitListReceivedRequestPaymentSplitStatus.java index 04335a5..b2efe02 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitListReceivedRequestPaymentSplitStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitListReceivedRequestPaymentSplitStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentSplitListReceivedRequestPaymentSplitStatus { +public enum PaymentSplitListReceivedRequestPaymentSplitStatus { PENDING("PENDING"), AWAITING_CREDIT("AWAITING_CREDIT"), CANCELLED("CANCELLED"), @@ -25,8 +25,8 @@ public enum ApiPaymentSplitListReceivedRequestPaymentSplitStatus { private final String value; @JsonCreator - public static ApiPaymentSplitListReceivedRequestPaymentSplitStatus fromValue(String value) { - return Arrays.stream(ApiPaymentSplitListReceivedRequestPaymentSplitStatus.values()) + 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/ApiPaymentSplitRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentSplitRequestDto.java similarity index 85% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentSplitRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentSplitRequestDto.java index 4fb3c70..92ceeb2 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentSplitRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentSplitRequestDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Split Settings + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentSplitRequestDto { +public class PaymentSplitRequestDto { /** * Asaas wallet identifier that will be transferred @@ -83,12 +86,12 @@ public String getDescription() { } // Overwrite lombok builder methods - public static class ApiPaymentSplitRequestDtoBuilder { + public static class PaymentSplitRequestDtoBuilder { private JsonNullable fixedValue = JsonNullable.undefined(); @JsonProperty("fixedValue") - public ApiPaymentSplitRequestDtoBuilder fixedValue(Double value) { + public PaymentSplitRequestDtoBuilder fixedValue(Double value) { this.fixedValue = JsonNullable.of(value); return this; } @@ -96,7 +99,7 @@ public ApiPaymentSplitRequestDtoBuilder fixedValue(Double value) { private JsonNullable percentualValue = JsonNullable.undefined(); @JsonProperty("percentualValue") - public ApiPaymentSplitRequestDtoBuilder percentualValue(Double value) { + public PaymentSplitRequestDtoBuilder percentualValue(Double value) { this.percentualValue = JsonNullable.of(value); return this; } @@ -104,7 +107,7 @@ public ApiPaymentSplitRequestDtoBuilder percentualValue(Double value) { private JsonNullable totalFixedValue = JsonNullable.undefined(); @JsonProperty("totalFixedValue") - public ApiPaymentSplitRequestDtoBuilder totalFixedValue(Double value) { + public PaymentSplitRequestDtoBuilder totalFixedValue(Double value) { this.totalFixedValue = JsonNullable.of(value); return this; } @@ -112,7 +115,7 @@ public ApiPaymentSplitRequestDtoBuilder totalFixedValue(Double value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPaymentSplitRequestDtoBuilder externalReference(String value) { + public PaymentSplitRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -120,7 +123,7 @@ public ApiPaymentSplitRequestDtoBuilder externalReference(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentSplitRequestDtoBuilder description(String value) { + public PaymentSplitRequestDtoBuilder 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/PaymentStatusResponseDto.java similarity index 62% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentStatusResponseDto.java index 9e21e8e..079d112 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentStatusResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentStatusResponseDto.java @@ -18,26 +18,26 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentStatusResponseDto { +public class PaymentStatusResponseDto { /** * Payment status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; @JsonIgnore - public ApiPaymentStatusResponsePaymentStatus getStatus() { + public PaymentStatusResponsePaymentStatus getStatus() { return status.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentStatusResponseDtoBuilder { + public static class PaymentStatusResponseDtoBuilder { - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPaymentStatusResponseDtoBuilder status(ApiPaymentStatusResponsePaymentStatus value) { + public PaymentStatusResponseDtoBuilder status(PaymentStatusResponsePaymentStatus value) { this.status = 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/PaymentStatusResponsePaymentStatus.java similarity index 85% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponsePaymentStatus.java rename to src/main/java/com/asaas/apisdk/models/PaymentStatusResponsePaymentStatus.java index ab2f8a9..7bdda2c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentGetResponsePaymentStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentStatusResponsePaymentStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPaymentGetResponsePaymentStatus { +public enum PaymentStatusResponsePaymentStatus { PENDING("PENDING"), RECEIVED("RECEIVED"), CONFIRMED("CONFIRMED"), @@ -33,8 +33,8 @@ public enum ApiPaymentGetResponsePaymentStatus { private final String value; @JsonCreator - public static ApiPaymentGetResponsePaymentStatus fromValue(String value) { - return Arrays.stream(ApiPaymentGetResponsePaymentStatus.values()) + 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/ApiInstallmentSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestBillingType.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestBillingType.java index 2e32df6..2369849 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiInstallmentSaveRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiInstallmentSaveRequestBillingType { +public enum PaymentUpdateRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -23,8 +23,8 @@ public enum ApiInstallmentSaveRequestBillingType { private final String value; @JsonCreator - public static ApiInstallmentSaveRequestBillingType fromValue(String value) { - return Arrays.stream(ApiInstallmentSaveRequestBillingType.values()) + 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/ApiPaymentUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestDto.java similarity index 63% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestDto.java index ac7e69a..c44878a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentUpdateRequestDto.java @@ -20,13 +20,13 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentUpdateRequestDto { +public class PaymentUpdateRequestDto { /** * Payment billing type */ @NonNull - private ApiPaymentUpdateRequestBillingType billingType; + private PaymentUpdateRequestBillingType billingType; /** * Payment amount @@ -58,14 +58,23 @@ public class ApiPaymentUpdateRequestDto { @JsonProperty("externalReference") private JsonNullable externalReference; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; /** * Define whether the payment will be sent via post @@ -77,10 +86,13 @@ public class ApiPaymentUpdateRequestDto { * Split Settings */ @JsonProperty("split") - private JsonNullable> split; + private JsonNullable> split; + /** + * Automatic redirection information after the payment of the link payment + */ @JsonProperty("callback") - private JsonNullable callback; + private JsonNullable callback; @JsonIgnore public String getDescription() { @@ -98,17 +110,17 @@ public String getExternalReference() { } @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { + public PaymentInterestRequestDto getInterest() { return interest.orElse(null); } @JsonIgnore - public ApiPaymentFineRequestDto getFine() { + public PaymentFineRequestDto getFine() { return fine.orElse(null); } @@ -118,22 +130,22 @@ public Boolean getPostalService() { } @JsonIgnore - public List getSplit() { + public List getSplit() { return split.orElse(null); } @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { + public PaymentCallbackRequestDto getCallback() { return callback.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentUpdateRequestDtoBuilder { + public static class PaymentUpdateRequestDtoBuilder { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPaymentUpdateRequestDtoBuilder description(String value) { + public PaymentUpdateRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -141,7 +153,7 @@ public ApiPaymentUpdateRequestDtoBuilder description(String value) { private JsonNullable daysAfterDueDateToRegistrationCancellation = JsonNullable.undefined(); @JsonProperty("daysAfterDueDateToRegistrationCancellation") - public ApiPaymentUpdateRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { + public PaymentUpdateRequestDtoBuilder daysAfterDueDateToRegistrationCancellation(Long value) { this.daysAfterDueDateToRegistrationCancellation = JsonNullable.of(value); return this; } @@ -149,31 +161,31 @@ public ApiPaymentUpdateRequestDtoBuilder daysAfterDueDateToRegistrationCancellat private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPaymentUpdateRequestDtoBuilder externalReference(String value) { + public PaymentUpdateRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiPaymentUpdateRequestDtoBuilder discount(ApiPaymentDiscountDto value) { + public PaymentUpdateRequestDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiPaymentUpdateRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { + public PaymentUpdateRequestDtoBuilder interest(PaymentInterestRequestDto value) { this.interest = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiPaymentUpdateRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { + public PaymentUpdateRequestDtoBuilder fine(PaymentFineRequestDto value) { this.fine = JsonNullable.of(value); return this; } @@ -181,23 +193,23 @@ public ApiPaymentUpdateRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { private JsonNullable postalService = JsonNullable.undefined(); @JsonProperty("postalService") - public ApiPaymentUpdateRequestDtoBuilder postalService(Boolean value) { + public PaymentUpdateRequestDtoBuilder postalService(Boolean value) { this.postalService = JsonNullable.of(value); return this; } - private JsonNullable> split = JsonNullable.undefined(); + private JsonNullable> split = JsonNullable.undefined(); @JsonProperty("split") - public ApiPaymentUpdateRequestDtoBuilder split(List value) { + public PaymentUpdateRequestDtoBuilder split(List value) { this.split = JsonNullable.of(value); return this; } - private JsonNullable callback = JsonNullable.undefined(); + private JsonNullable callback = JsonNullable.undefined(); @JsonProperty("callback") - public ApiPaymentUpdateRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { + public PaymentUpdateRequestDtoBuilder callback(PaymentCallbackRequestDto 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/PaymentViewingInfoResponseDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentViewingInfoResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PaymentViewingInfoResponseDto.java index 218ffec..5bccbd1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentViewingInfoResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PaymentViewingInfoResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentViewingInfoResponseDto { +public class PaymentViewingInfoResponseDto { /** * Invoice viewing date and time @@ -43,12 +43,12 @@ public String getBoletoViewedDate() { } // Overwrite lombok builder methods - public static class ApiPaymentViewingInfoResponseDtoBuilder { + public static class PaymentViewingInfoResponseDtoBuilder { private JsonNullable invoiceViewedDate = JsonNullable.undefined(); @JsonProperty("invoiceViewedDate") - public ApiPaymentViewingInfoResponseDtoBuilder invoiceViewedDate(String value) { + public PaymentViewingInfoResponseDtoBuilder invoiceViewedDate(String value) { this.invoiceViewedDate = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiPaymentViewingInfoResponseDtoBuilder invoiceViewedDate(String value) { private JsonNullable boletoViewedDate = JsonNullable.undefined(); @JsonProperty("boletoViewedDate") - public ApiPaymentViewingInfoResponseDtoBuilder boletoViewedDate(String value) { + public PaymentViewingInfoResponseDtoBuilder 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/PixAddressKeyGetResponseDto.java similarity index 66% rename from src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponseDto.java index d99d504..1ca0563 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixAddressKeyGetResponseDto { +public class PixAddressKeyGetResponseDto { /** * Unique Pix key identifier in Asaas @@ -36,13 +36,13 @@ public class ApiPixAddressKeyGetResponseDto { * Pix key type */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Key status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Key creation date @@ -62,8 +62,11 @@ public class ApiPixAddressKeyGetResponseDto { @JsonProperty("cannotBeDeletedReason") private JsonNullable cannotBeDeletedReason; + /** + * Pix key QRCode + */ @JsonProperty("qrCode") - private JsonNullable qrCode; + private JsonNullable qrCode; @JsonIgnore public String getId() { @@ -76,12 +79,12 @@ public String getKey() { } @JsonIgnore - public ApiPixAddressKeyGetResponsePixAddressKeyType getType() { + public PixAddressKeyGetResponsePixAddressKeyType getType() { return type.orElse(null); } @JsonIgnore - public ApiPixAddressKeyGetResponsePixAddressKeyStatus getStatus() { + public PixAddressKeyGetResponsePixAddressKeyStatus getStatus() { return status.orElse(null); } @@ -101,17 +104,17 @@ public String getCannotBeDeletedReason() { } @JsonIgnore - public ApiPixAddressKeyQrCodeGetResponseDto getQrCode() { + public PixAddressKeyQrCodeGetResponseDto getQrCode() { return qrCode.orElse(null); } // Overwrite lombok builder methods - public static class ApiPixAddressKeyGetResponseDtoBuilder { + public static class PixAddressKeyGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPixAddressKeyGetResponseDtoBuilder id(String value) { + public PixAddressKeyGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -119,23 +122,23 @@ public ApiPixAddressKeyGetResponseDtoBuilder id(String value) { private JsonNullable key = JsonNullable.undefined(); @JsonProperty("key") - public ApiPixAddressKeyGetResponseDtoBuilder key(String value) { + public PixAddressKeyGetResponseDtoBuilder key(String value) { this.key = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiPixAddressKeyGetResponseDtoBuilder type(ApiPixAddressKeyGetResponsePixAddressKeyType value) { + public PixAddressKeyGetResponseDtoBuilder type(PixAddressKeyGetResponsePixAddressKeyType value) { this.type = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPixAddressKeyGetResponseDtoBuilder status(ApiPixAddressKeyGetResponsePixAddressKeyStatus value) { + public PixAddressKeyGetResponseDtoBuilder status(PixAddressKeyGetResponsePixAddressKeyStatus value) { this.status = JsonNullable.of(value); return this; } @@ -143,7 +146,7 @@ public ApiPixAddressKeyGetResponseDtoBuilder status(ApiPixAddressKeyGetResponseP private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiPixAddressKeyGetResponseDtoBuilder dateCreated(String value) { + public PixAddressKeyGetResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -151,7 +154,7 @@ public ApiPixAddressKeyGetResponseDtoBuilder dateCreated(String value) { private JsonNullable canBeDeleted = JsonNullable.undefined(); @JsonProperty("canBeDeleted") - public ApiPixAddressKeyGetResponseDtoBuilder canBeDeleted(Boolean value) { + public PixAddressKeyGetResponseDtoBuilder canBeDeleted(Boolean value) { this.canBeDeleted = JsonNullable.of(value); return this; } @@ -159,15 +162,15 @@ public ApiPixAddressKeyGetResponseDtoBuilder canBeDeleted(Boolean value) { private JsonNullable cannotBeDeletedReason = JsonNullable.undefined(); @JsonProperty("cannotBeDeletedReason") - public ApiPixAddressKeyGetResponseDtoBuilder cannotBeDeletedReason(String value) { + public PixAddressKeyGetResponseDtoBuilder cannotBeDeletedReason(String value) { this.cannotBeDeletedReason = JsonNullable.of(value); return this; } - private JsonNullable qrCode = JsonNullable.undefined(); + private JsonNullable qrCode = JsonNullable.undefined(); @JsonProperty("qrCode") - public ApiPixAddressKeyGetResponseDtoBuilder qrCode(ApiPixAddressKeyQrCodeGetResponseDto value) { + public PixAddressKeyGetResponseDtoBuilder qrCode(PixAddressKeyQrCodeGetResponseDto 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/PixAddressKeyGetResponsePixAddressKeyStatus.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.java rename to src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyStatus.java index 99d4004..48a6652 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixAddressKeyGetResponsePixAddressKeyStatus { +public enum PixAddressKeyGetResponsePixAddressKeyStatus { AWAITING_ACTIVATION("AWAITING_ACTIVATION"), ACTIVE("ACTIVE"), AWAITING_DELETION("AWAITING_DELETION"), @@ -25,8 +25,8 @@ public enum ApiPixAddressKeyGetResponsePixAddressKeyStatus { private final String value; @JsonCreator - public static ApiPixAddressKeyGetResponsePixAddressKeyStatus fromValue(String value) { - return Arrays.stream(ApiPixAddressKeyGetResponsePixAddressKeyStatus.values()) + 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/ApiPixAddressKeySaveRequestPixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyType.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestPixAddressKeyType.java rename to src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyType.java index 1670845..7380a01 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestPixAddressKeyType.java +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyGetResponsePixAddressKeyType.java @@ -13,15 +13,15 @@ */ @Getter @AllArgsConstructor -public enum ApiPixAddressKeySaveRequestPixAddressKeyType { +public enum PixAddressKeyGetResponsePixAddressKeyType { EVP("EVP"); @JsonValue private final String value; @JsonCreator - public static ApiPixAddressKeySaveRequestPixAddressKeyType fromValue(String value) { - return Arrays.stream(ApiPixAddressKeySaveRequestPixAddressKeyType.values()) + 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/ApiPixAddressKeyListRequestPixAddressKeyStatus.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeyListRequestPixAddressKeyStatus.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.java rename to src/main/java/com/asaas/apisdk/models/PixAddressKeyListRequestPixAddressKeyStatus.java index 6de14f1..65c3ac7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListRequestPixAddressKeyStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyListRequestPixAddressKeyStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixAddressKeyListRequestPixAddressKeyStatus { +public enum PixAddressKeyListRequestPixAddressKeyStatus { AWAITING_ACTIVATION("AWAITING_ACTIVATION"), ACTIVE("ACTIVE"), AWAITING_DELETION("AWAITING_DELETION"), @@ -25,8 +25,8 @@ public enum ApiPixAddressKeyListRequestPixAddressKeyStatus { private final String value; @JsonCreator - public static ApiPixAddressKeyListRequestPixAddressKeyStatus fromValue(String value) { - return Arrays.stream(ApiPixAddressKeyListRequestPixAddressKeyStatus.values()) + 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/ApiPixAddressKeyListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeyListResponseDto.java similarity index 63% rename from src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixAddressKeyListResponseDto.java index f6483fb..d7b411e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyListResponseDto.java @@ -19,26 +19,26 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixAddressKeyListResponseDto { +public class PixAddressKeyListResponseDto { /** * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiPixAddressKeyListResponseDtoBuilder { + public static class PixAddressKeyListResponseDtoBuilder { - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiPixAddressKeyListResponseDtoBuilder data(List value) { + public PixAddressKeyListResponseDtoBuilder 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/PixAddressKeyQrCodeGetResponseDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyQrCodeGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixAddressKeyQrCodeGetResponseDto.java index ee9e5fc..8d9d9f0 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyQrCodeGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeyQrCodeGetResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Pix key QRCode + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixAddressKeyQrCodeGetResponseDto { +public class PixAddressKeyQrCodeGetResponseDto { /** * QrCode image in base64 @@ -43,12 +46,12 @@ public String getPayload() { } // Overwrite lombok builder methods - public static class ApiPixAddressKeyQrCodeGetResponseDtoBuilder { + public static class PixAddressKeyQrCodeGetResponseDtoBuilder { private JsonNullable encodedImage = JsonNullable.undefined(); @JsonProperty("encodedImage") - public ApiPixAddressKeyQrCodeGetResponseDtoBuilder encodedImage(String value) { + public PixAddressKeyQrCodeGetResponseDtoBuilder encodedImage(String value) { this.encodedImage = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiPixAddressKeyQrCodeGetResponseDtoBuilder encodedImage(String value) { private JsonNullable payload = JsonNullable.undefined(); @JsonProperty("payload") - public ApiPixAddressKeyQrCodeGetResponseDtoBuilder payload(String value) { + public PixAddressKeyQrCodeGetResponseDtoBuilder 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/PixAddressKeySaveRequestDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestDto.java index 6b66633..8524023 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeySaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestDto.java @@ -16,11 +16,11 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixAddressKeySaveRequestDto { +public class PixAddressKeySaveRequestDto { /** * Pix key type */ @NonNull - private ApiPixAddressKeySaveRequestPixAddressKeyType type; + private PixAddressKeySaveRequestPixAddressKeyType type; } diff --git a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyType.java b/src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestPixAddressKeyType.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyType.java rename to src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestPixAddressKeyType.java index 3e7aad6..b5a8247 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixAddressKeyGetResponsePixAddressKeyType.java +++ b/src/main/java/com/asaas/apisdk/models/PixAddressKeySaveRequestPixAddressKeyType.java @@ -13,15 +13,15 @@ */ @Getter @AllArgsConstructor -public enum ApiPixAddressKeyGetResponsePixAddressKeyType { +public enum PixAddressKeySaveRequestPixAddressKeyType { EVP("EVP"); @JsonValue private final String value; @JsonCreator - public static ApiPixAddressKeyGetResponsePixAddressKeyType fromValue(String value) { - return Arrays.stream(ApiPixAddressKeyGetResponsePixAddressKeyType.values()) + 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/ApiPixOriginalTransactionResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixOriginalTransactionResponseDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiPixOriginalTransactionResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixOriginalTransactionResponseDto.java index 333624e..7e482d1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixOriginalTransactionResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixOriginalTransactionResponseDto.java @@ -12,13 +12,16 @@ 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 ApiPixOriginalTransactionResponseDto { +public class PixOriginalTransactionResponseDto { /** * Unique transaction identifier @@ -65,12 +68,12 @@ public String getEffectiveDate() { } // Overwrite lombok builder methods - public static class ApiPixOriginalTransactionResponseDtoBuilder { + public static class PixOriginalTransactionResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPixOriginalTransactionResponseDtoBuilder id(String value) { + public PixOriginalTransactionResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -78,7 +81,7 @@ public ApiPixOriginalTransactionResponseDtoBuilder id(String value) { private JsonNullable endToEndIdentifier = JsonNullable.undefined(); @JsonProperty("endToEndIdentifier") - public ApiPixOriginalTransactionResponseDtoBuilder endToEndIdentifier(String value) { + public PixOriginalTransactionResponseDtoBuilder endToEndIdentifier(String value) { this.endToEndIdentifier = JsonNullable.of(value); return this; } @@ -86,7 +89,7 @@ public ApiPixOriginalTransactionResponseDtoBuilder endToEndIdentifier(String val private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPixOriginalTransactionResponseDtoBuilder value(Double value) { + public PixOriginalTransactionResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -94,7 +97,7 @@ public ApiPixOriginalTransactionResponseDtoBuilder value(Double value) { private JsonNullable effectiveDate = JsonNullable.undefined(); @JsonProperty("effectiveDate") - public ApiPixOriginalTransactionResponseDtoBuilder effectiveDate(String value) { + public PixOriginalTransactionResponseDtoBuilder 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/PixQrCodeDecodeReceiverDto.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverDto.java rename to src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverDto.java index 9592682..102710b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Information about the receiver + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixQrCodeDecodeReceiverDto { +public class PixQrCodeDecodeReceiverDto { /** * Financial institution code @@ -54,13 +57,13 @@ public class ApiPixQrCodeDecodeReceiverDto { * Person type */ @JsonProperty("personType") - private JsonNullable personType; + private JsonNullable personType; /** * Receiver account type */ @JsonProperty("accountType") - private JsonNullable accountType; + private JsonNullable accountType; @JsonIgnore public String getIspb() { @@ -88,22 +91,22 @@ public String getCpfCnpj() { } @JsonIgnore - public ApiPixQrCodeDecodeReceiverPersonType getPersonType() { + public PixQrCodeDecodeReceiverPersonType getPersonType() { return personType.orElse(null); } @JsonIgnore - public ApiPixQrCodeDecodeReceiverPixAccountType getAccountType() { + public PixQrCodeDecodeReceiverPixAccountType getAccountType() { return accountType.orElse(null); } // Overwrite lombok builder methods - public static class ApiPixQrCodeDecodeReceiverDtoBuilder { + public static class PixQrCodeDecodeReceiverDtoBuilder { private JsonNullable ispb = JsonNullable.undefined(); @JsonProperty("ispb") - public ApiPixQrCodeDecodeReceiverDtoBuilder ispb(String value) { + public PixQrCodeDecodeReceiverDtoBuilder ispb(String value) { this.ispb = JsonNullable.of(value); return this; } @@ -111,7 +114,7 @@ public ApiPixQrCodeDecodeReceiverDtoBuilder ispb(String value) { private JsonNullable ispbName = JsonNullable.undefined(); @JsonProperty("ispbName") - public ApiPixQrCodeDecodeReceiverDtoBuilder ispbName(String value) { + public PixQrCodeDecodeReceiverDtoBuilder ispbName(String value) { this.ispbName = JsonNullable.of(value); return this; } @@ -119,7 +122,7 @@ public ApiPixQrCodeDecodeReceiverDtoBuilder ispbName(String value) { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiPixQrCodeDecodeReceiverDtoBuilder name(String value) { + public PixQrCodeDecodeReceiverDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -127,7 +130,7 @@ public ApiPixQrCodeDecodeReceiverDtoBuilder name(String value) { private JsonNullable tradingName = JsonNullable.undefined(); @JsonProperty("tradingName") - public ApiPixQrCodeDecodeReceiverDtoBuilder tradingName(String value) { + public PixQrCodeDecodeReceiverDtoBuilder tradingName(String value) { this.tradingName = JsonNullable.of(value); return this; } @@ -135,23 +138,23 @@ public ApiPixQrCodeDecodeReceiverDtoBuilder tradingName(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiPixQrCodeDecodeReceiverDtoBuilder cpfCnpj(String value) { + public PixQrCodeDecodeReceiverDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } - private JsonNullable personType = JsonNullable.undefined(); + private JsonNullable personType = JsonNullable.undefined(); @JsonProperty("personType") - public ApiPixQrCodeDecodeReceiverDtoBuilder personType(ApiPixQrCodeDecodeReceiverPersonType value) { + public PixQrCodeDecodeReceiverDtoBuilder personType(PixQrCodeDecodeReceiverPersonType value) { this.personType = JsonNullable.of(value); return this; } - private JsonNullable accountType = JsonNullable.undefined(); + private JsonNullable accountType = JsonNullable.undefined(); @JsonProperty("accountType") - public ApiPixQrCodeDecodeReceiverDtoBuilder accountType(ApiPixQrCodeDecodeReceiverPixAccountType value) { + public PixQrCodeDecodeReceiverDtoBuilder accountType(PixQrCodeDecodeReceiverPixAccountType 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/PixQrCodeDecodeReceiverPersonType.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPersonType.java rename to src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPersonType.java index f9cdb18..f22f9ba 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPersonType.java +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPersonType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixQrCodeDecodeReceiverPersonType { +public enum PixQrCodeDecodeReceiverPersonType { JURIDICA("JURIDICA"), FISICA("FISICA"); @@ -21,8 +21,8 @@ public enum ApiPixQrCodeDecodeReceiverPersonType { private final String value; @JsonCreator - public static ApiPixQrCodeDecodeReceiverPersonType fromValue(String value) { - return Arrays.stream(ApiPixQrCodeDecodeReceiverPersonType.values()) + 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/ApiPixQrCodeDecodeReceiverPixAccountType.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPixAccountType.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPixAccountType.java rename to src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPixAccountType.java index 133ff6a..2627892 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeReceiverPixAccountType.java +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeReceiverPixAccountType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixQrCodeDecodeReceiverPixAccountType { +public enum PixQrCodeDecodeReceiverPixAccountType { CHECKING_ACCOUNT("CHECKING_ACCOUNT"), SALARY_ACCOUNT("SALARY_ACCOUNT"), INVESTIMENT_ACCOUNT("INVESTIMENT_ACCOUNT"), @@ -23,8 +23,8 @@ public enum ApiPixQrCodeDecodeReceiverPixAccountType { private final String value; @JsonCreator - public static ApiPixQrCodeDecodeReceiverPixAccountType fromValue(String value) { - return Arrays.stream(ApiPixQrCodeDecodeReceiverPixAccountType.values()) + 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/ApiPixQrCodeDecodeRequestDto.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeRequestDto.java similarity index 85% rename from src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeRequestDto.java index bc2a4c6..3d27b00 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeRequestDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixQrCodeDecodeRequestDto { +public class PixQrCodeDecodeRequestDto { /** * QRCode payload @@ -39,12 +39,12 @@ public Double getChangeValue() { } // Overwrite lombok builder methods - public static class ApiPixQrCodeDecodeRequestDtoBuilder { + public static class PixQrCodeDecodeRequestDtoBuilder { private JsonNullable changeValue = JsonNullable.undefined(); @JsonProperty("changeValue") - public ApiPixQrCodeDecodeRequestDtoBuilder changeValue(Double value) { + public PixQrCodeDecodeRequestDtoBuilder 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/PixQrCodeDecodeResponseDto.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponseDto.java index ce2def6..a638a58 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixQrCodeDecodeResponseDto { +public class PixQrCodeDecodeResponseDto { /** * Copy and Paste of the QRCode @@ -30,13 +30,13 @@ public class ApiPixQrCodeDecodeResponseDto { * QRCode Type */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Transaction origin */ @JsonProperty("transactionOriginType") - private JsonNullable transactionOriginType; + private JsonNullable transactionOriginType; /** * Pix key used @@ -66,7 +66,7 @@ public class ApiPixQrCodeDecodeResponseDto { * Used to indicate whether it is a Withdrawal or Change */ @JsonProperty("finality") - private JsonNullable finality; + private JsonNullable finality; /** * QRCode Value @@ -116,11 +116,17 @@ public class ApiPixQrCodeDecodeResponseDto { @JsonProperty("canBeModifyChangeValue") private JsonNullable canBeModifyChangeValue; + /** + * Information about the receiver + */ @JsonProperty("receiver") - private JsonNullable receiver; + private JsonNullable receiver; + /** + * Information about the payer + */ @JsonProperty("payer") - private JsonNullable payer; + private JsonNullable payer; /** * Description provided during the creation of the QRCode @@ -146,12 +152,12 @@ public String getPayload() { } @JsonIgnore - public ApiPixQrCodeDecodeResponsePixQrCodeType getType() { + public PixQrCodeDecodeResponsePixQrCodeType getType() { return type.orElse(null); } @JsonIgnore - public ApiPixQrCodeDecodeResponsePixTransactionOriginType getTransactionOriginType() { + public PixQrCodeDecodeResponsePixTransactionOriginType getTransactionOriginType() { return transactionOriginType.orElse(null); } @@ -176,7 +182,7 @@ public String getExpirationDate() { } @JsonIgnore - public ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality getFinality() { + public PixQrCodeDecodeResponsePixTransactionCashValueFinality getFinality() { return finality.orElse(null); } @@ -221,12 +227,12 @@ public Boolean getCanBeModifyChangeValue() { } @JsonIgnore - public ApiPixQrCodeDecodeReceiverDto getReceiver() { + public PixQrCodeDecodeReceiverDto getReceiver() { return receiver.orElse(null); } @JsonIgnore - public ApiPixTransactionQrCodePayerResponseDto getPayer() { + public PixTransactionQrCodePayerResponseDto getPayer() { return payer.orElse(null); } @@ -246,30 +252,30 @@ public String getCannotBePaidReason() { } // Overwrite lombok builder methods - public static class ApiPixQrCodeDecodeResponseDtoBuilder { + public static class PixQrCodeDecodeResponseDtoBuilder { private JsonNullable payload = JsonNullable.undefined(); @JsonProperty("payload") - public ApiPixQrCodeDecodeResponseDtoBuilder payload(String value) { + public PixQrCodeDecodeResponseDtoBuilder payload(String value) { this.payload = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiPixQrCodeDecodeResponseDtoBuilder type(ApiPixQrCodeDecodeResponsePixQrCodeType value) { + public PixQrCodeDecodeResponseDtoBuilder type(PixQrCodeDecodeResponsePixQrCodeType value) { this.type = JsonNullable.of(value); return this; } - private JsonNullable transactionOriginType = + private JsonNullable transactionOriginType = JsonNullable.undefined(); @JsonProperty("transactionOriginType") - public ApiPixQrCodeDecodeResponseDtoBuilder transactionOriginType( - ApiPixQrCodeDecodeResponsePixTransactionOriginType value + public PixQrCodeDecodeResponseDtoBuilder transactionOriginType( + PixQrCodeDecodeResponsePixTransactionOriginType value ) { this.transactionOriginType = JsonNullable.of(value); return this; @@ -278,7 +284,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder transactionOriginType( private JsonNullable pixKey = JsonNullable.undefined(); @JsonProperty("pixKey") - public ApiPixQrCodeDecodeResponseDtoBuilder pixKey(String value) { + public PixQrCodeDecodeResponseDtoBuilder pixKey(String value) { this.pixKey = JsonNullable.of(value); return this; } @@ -286,7 +292,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder pixKey(String value) { private JsonNullable conciliationIdentifier = JsonNullable.undefined(); @JsonProperty("conciliationIdentifier") - public ApiPixQrCodeDecodeResponseDtoBuilder conciliationIdentifier(String value) { + public PixQrCodeDecodeResponseDtoBuilder conciliationIdentifier(String value) { this.conciliationIdentifier = JsonNullable.of(value); return this; } @@ -294,7 +300,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder conciliationIdentifier(String value) private JsonNullable dueDate = JsonNullable.undefined(); @JsonProperty("dueDate") - public ApiPixQrCodeDecodeResponseDtoBuilder dueDate(String value) { + public PixQrCodeDecodeResponseDtoBuilder dueDate(String value) { this.dueDate = JsonNullable.of(value); return this; } @@ -302,17 +308,15 @@ public ApiPixQrCodeDecodeResponseDtoBuilder dueDate(String value) { private JsonNullable expirationDate = JsonNullable.undefined(); @JsonProperty("expirationDate") - public ApiPixQrCodeDecodeResponseDtoBuilder expirationDate(String value) { + public PixQrCodeDecodeResponseDtoBuilder expirationDate(String value) { this.expirationDate = JsonNullable.of(value); return this; } - private JsonNullable finality = JsonNullable.undefined(); + private JsonNullable finality = JsonNullable.undefined(); @JsonProperty("finality") - public ApiPixQrCodeDecodeResponseDtoBuilder finality( - ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality value - ) { + public PixQrCodeDecodeResponseDtoBuilder finality(PixQrCodeDecodeResponsePixTransactionCashValueFinality value) { this.finality = JsonNullable.of(value); return this; } @@ -320,7 +324,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder finality( private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPixQrCodeDecodeResponseDtoBuilder value(Double value) { + public PixQrCodeDecodeResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -328,7 +332,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder value(Double value) { private JsonNullable changeValue = JsonNullable.undefined(); @JsonProperty("changeValue") - public ApiPixQrCodeDecodeResponseDtoBuilder changeValue(Double value) { + public PixQrCodeDecodeResponseDtoBuilder changeValue(Double value) { this.changeValue = JsonNullable.of(value); return this; } @@ -336,7 +340,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder changeValue(Double value) { private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiPixQrCodeDecodeResponseDtoBuilder interest(Double value) { + public PixQrCodeDecodeResponseDtoBuilder interest(Double value) { this.interest = JsonNullable.of(value); return this; } @@ -344,7 +348,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder interest(Double value) { private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiPixQrCodeDecodeResponseDtoBuilder fine(Double value) { + public PixQrCodeDecodeResponseDtoBuilder fine(Double value) { this.fine = JsonNullable.of(value); return this; } @@ -352,7 +356,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder fine(Double value) { private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiPixQrCodeDecodeResponseDtoBuilder discount(Double value) { + public PixQrCodeDecodeResponseDtoBuilder discount(Double value) { this.discount = JsonNullable.of(value); return this; } @@ -360,7 +364,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder discount(Double value) { private JsonNullable totalValue = JsonNullable.undefined(); @JsonProperty("totalValue") - public ApiPixQrCodeDecodeResponseDtoBuilder totalValue(Double value) { + public PixQrCodeDecodeResponseDtoBuilder totalValue(Double value) { this.totalValue = JsonNullable.of(value); return this; } @@ -368,7 +372,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder totalValue(Double value) { private JsonNullable canBePaidWithDifferentValue = JsonNullable.undefined(); @JsonProperty("canBePaidWithDifferentValue") - public ApiPixQrCodeDecodeResponseDtoBuilder canBePaidWithDifferentValue(Boolean value) { + public PixQrCodeDecodeResponseDtoBuilder canBePaidWithDifferentValue(Boolean value) { this.canBePaidWithDifferentValue = JsonNullable.of(value); return this; } @@ -376,23 +380,23 @@ public ApiPixQrCodeDecodeResponseDtoBuilder canBePaidWithDifferentValue(Boolean private JsonNullable canBeModifyChangeValue = JsonNullable.undefined(); @JsonProperty("canBeModifyChangeValue") - public ApiPixQrCodeDecodeResponseDtoBuilder canBeModifyChangeValue(Boolean value) { + public PixQrCodeDecodeResponseDtoBuilder canBeModifyChangeValue(Boolean value) { this.canBeModifyChangeValue = JsonNullable.of(value); return this; } - private JsonNullable receiver = JsonNullable.undefined(); + private JsonNullable receiver = JsonNullable.undefined(); @JsonProperty("receiver") - public ApiPixQrCodeDecodeResponseDtoBuilder receiver(ApiPixQrCodeDecodeReceiverDto value) { + public PixQrCodeDecodeResponseDtoBuilder receiver(PixQrCodeDecodeReceiverDto value) { this.receiver = JsonNullable.of(value); return this; } - private JsonNullable payer = JsonNullable.undefined(); + private JsonNullable payer = JsonNullable.undefined(); @JsonProperty("payer") - public ApiPixQrCodeDecodeResponseDtoBuilder payer(ApiPixTransactionQrCodePayerResponseDto value) { + public PixQrCodeDecodeResponseDtoBuilder payer(PixTransactionQrCodePayerResponseDto value) { this.payer = JsonNullable.of(value); return this; } @@ -400,7 +404,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder payer(ApiPixTransactionQrCodePayerRe private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPixQrCodeDecodeResponseDtoBuilder description(String value) { + public PixQrCodeDecodeResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -408,7 +412,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder description(String value) { private JsonNullable canBePaid = JsonNullable.undefined(); @JsonProperty("canBePaid") - public ApiPixQrCodeDecodeResponseDtoBuilder canBePaid(Boolean value) { + public PixQrCodeDecodeResponseDtoBuilder canBePaid(Boolean value) { this.canBePaid = JsonNullable.of(value); return this; } @@ -416,7 +420,7 @@ public ApiPixQrCodeDecodeResponseDtoBuilder canBePaid(Boolean value) { private JsonNullable cannotBePaidReason = JsonNullable.undefined(); @JsonProperty("cannotBePaidReason") - public ApiPixQrCodeDecodeResponseDtoBuilder cannotBePaidReason(String value) { + public PixQrCodeDecodeResponseDtoBuilder 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/PixQrCodeDecodeResponsePixQrCodeType.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixQrCodeType.java rename to src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixQrCodeType.java index 448dc6e..81e6132 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixQrCodeType.java +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixQrCodeType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixQrCodeDecodeResponsePixQrCodeType { +public enum PixQrCodeDecodeResponsePixQrCodeType { STATIC_("STATIC"), DYNAMIC("DYNAMIC"), DYNAMIC_WITH_ASAAS_ADDRESS_KEY("DYNAMIC_WITH_ASAAS_ADDRESS_KEY"), @@ -23,8 +23,8 @@ public enum ApiPixQrCodeDecodeResponsePixQrCodeType { private final String value; @JsonCreator - public static ApiPixQrCodeDecodeResponsePixQrCodeType fromValue(String value) { - return Arrays.stream(ApiPixQrCodeDecodeResponsePixQrCodeType.values()) + 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/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.java rename to src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.java index e445cb1..8ff678b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.java +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionCashValueFinality.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality { +public enum PixQrCodeDecodeResponsePixTransactionCashValueFinality { WITHDRAWAL("WITHDRAWAL"), CHANGE("CHANGE"); @@ -21,8 +21,8 @@ public enum ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality { private final String value; @JsonCreator - public static ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality fromValue(String value) { - return Arrays.stream(ApiPixQrCodeDecodeResponsePixTransactionCashValueFinality.values()) + 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/ApiPixQrCodeDecodeResponsePixTransactionOriginType.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionOriginType.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.java rename to src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionOriginType.java index 753b7ef..af38307 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDecodeResponsePixTransactionOriginType.java +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDecodeResponsePixTransactionOriginType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixQrCodeDecodeResponsePixTransactionOriginType { +public enum PixQrCodeDecodeResponsePixTransactionOriginType { MANUAL("MANUAL"), ADDRESS_KEY("ADDRESS_KEY"), STATIC_QRCODE("STATIC_QRCODE"), @@ -25,8 +25,8 @@ public enum ApiPixQrCodeDecodeResponsePixTransactionOriginType { private final String value; @JsonCreator - public static ApiPixQrCodeDecodeResponsePixTransactionOriginType fromValue(String value) { - return Arrays.stream(ApiPixQrCodeDecodeResponsePixTransactionOriginType.values()) + 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/ApiPixQrCodeDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixQrCodeDeleteResponseDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDeleteResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixQrCodeDeleteResponseDto.java index 67d9b13..113ef46 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeDeleteResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixQrCodeDeleteResponseDto { +public class PixQrCodeDeleteResponseDto { /** * QR Code identifier @@ -43,12 +43,12 @@ public Boolean getDeleted() { } // Overwrite lombok builder methods - public static class ApiPixQrCodeDeleteResponseDtoBuilder { + public static class PixQrCodeDeleteResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPixQrCodeDeleteResponseDtoBuilder id(String value) { + public PixQrCodeDeleteResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiPixQrCodeDeleteResponseDtoBuilder id(String value) { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiPixQrCodeDeleteResponseDtoBuilder deleted(Boolean value) { + public PixQrCodeDeleteResponseDtoBuilder 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/PixQrCodeSaveRequestDto.java similarity index 85% rename from src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PixQrCodeSaveRequestDto.java index deec28a..a9be96a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeSaveRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixQrCodeSaveRequestDto { +public class PixQrCodeSaveRequestDto { /** * Key that will receive QrCode payments @@ -109,12 +109,12 @@ public String getExternalReference() { } // Overwrite lombok builder methods - public static class ApiPixQrCodeSaveRequestDtoBuilder { + public static class PixQrCodeSaveRequestDtoBuilder { private JsonNullable addressKey = JsonNullable.undefined(); @JsonProperty("addressKey") - public ApiPixQrCodeSaveRequestDtoBuilder addressKey(String value) { + public PixQrCodeSaveRequestDtoBuilder addressKey(String value) { this.addressKey = JsonNullable.of(value); return this; } @@ -122,7 +122,7 @@ public ApiPixQrCodeSaveRequestDtoBuilder addressKey(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPixQrCodeSaveRequestDtoBuilder description(String value) { + public PixQrCodeSaveRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -130,7 +130,7 @@ public ApiPixQrCodeSaveRequestDtoBuilder description(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPixQrCodeSaveRequestDtoBuilder value(Double value) { + public PixQrCodeSaveRequestDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -138,7 +138,7 @@ public ApiPixQrCodeSaveRequestDtoBuilder value(Double value) { private JsonNullable format = JsonNullable.undefined(); @JsonProperty("format") - public ApiPixQrCodeSaveRequestDtoBuilder format(Format value) { + public PixQrCodeSaveRequestDtoBuilder format(Format value) { this.format = JsonNullable.of(value); return this; } @@ -146,7 +146,7 @@ public ApiPixQrCodeSaveRequestDtoBuilder format(Format value) { private JsonNullable expirationDate = JsonNullable.undefined(); @JsonProperty("expirationDate") - public ApiPixQrCodeSaveRequestDtoBuilder expirationDate(String value) { + public PixQrCodeSaveRequestDtoBuilder expirationDate(String value) { this.expirationDate = JsonNullable.of(value); return this; } @@ -154,7 +154,7 @@ public ApiPixQrCodeSaveRequestDtoBuilder expirationDate(String value) { private JsonNullable expirationSeconds = JsonNullable.undefined(); @JsonProperty("expirationSeconds") - public ApiPixQrCodeSaveRequestDtoBuilder expirationSeconds(Long value) { + public PixQrCodeSaveRequestDtoBuilder expirationSeconds(Long value) { this.expirationSeconds = JsonNullable.of(value); return this; } @@ -162,7 +162,7 @@ public ApiPixQrCodeSaveRequestDtoBuilder expirationSeconds(Long value) { private JsonNullable allowsMultiplePayments = JsonNullable.undefined(); @JsonProperty("allowsMultiplePayments") - public ApiPixQrCodeSaveRequestDtoBuilder allowsMultiplePayments(Boolean value) { + public PixQrCodeSaveRequestDtoBuilder allowsMultiplePayments(Boolean value) { this.allowsMultiplePayments = JsonNullable.of(value); return this; } @@ -170,7 +170,7 @@ public ApiPixQrCodeSaveRequestDtoBuilder allowsMultiplePayments(Boolean value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPixQrCodeSaveRequestDtoBuilder externalReference(String value) { + public PixQrCodeSaveRequestDtoBuilder 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/PixQrCodeSaveResponseDto.java similarity index 84% rename from src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixQrCodeSaveResponseDto.java index 8859f38..e6a7398 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixQrCodeSaveResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixQrCodeSaveResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixQrCodeSaveResponseDto { +public class PixQrCodeSaveResponseDto { /** * qrCode image in base64 @@ -87,12 +87,12 @@ public String getExternalReference() { } // Overwrite lombok builder methods - public static class ApiPixQrCodeSaveResponseDtoBuilder { + public static class PixQrCodeSaveResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPixQrCodeSaveResponseDtoBuilder id(String value) { + public PixQrCodeSaveResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -100,7 +100,7 @@ public ApiPixQrCodeSaveResponseDtoBuilder id(String value) { private JsonNullable encodedImage = JsonNullable.undefined(); @JsonProperty("encodedImage") - public ApiPixQrCodeSaveResponseDtoBuilder encodedImage(String value) { + public PixQrCodeSaveResponseDtoBuilder encodedImage(String value) { this.encodedImage = JsonNullable.of(value); return this; } @@ -108,7 +108,7 @@ public ApiPixQrCodeSaveResponseDtoBuilder encodedImage(String value) { private JsonNullable payload = JsonNullable.undefined(); @JsonProperty("payload") - public ApiPixQrCodeSaveResponseDtoBuilder payload(String value) { + public PixQrCodeSaveResponseDtoBuilder payload(String value) { this.payload = JsonNullable.of(value); return this; } @@ -116,7 +116,7 @@ public ApiPixQrCodeSaveResponseDtoBuilder payload(String value) { private JsonNullable allowsMultiplePayments = JsonNullable.undefined(); @JsonProperty("allowsMultiplePayments") - public ApiPixQrCodeSaveResponseDtoBuilder allowsMultiplePayments(Boolean value) { + public PixQrCodeSaveResponseDtoBuilder allowsMultiplePayments(Boolean value) { this.allowsMultiplePayments = JsonNullable.of(value); return this; } @@ -124,7 +124,7 @@ public ApiPixQrCodeSaveResponseDtoBuilder allowsMultiplePayments(Boolean value) private JsonNullable expirationDate = JsonNullable.undefined(); @JsonProperty("expirationDate") - public ApiPixQrCodeSaveResponseDtoBuilder expirationDate(String value) { + public PixQrCodeSaveResponseDtoBuilder expirationDate(String value) { this.expirationDate = JsonNullable.of(value); return this; } @@ -132,7 +132,7 @@ public ApiPixQrCodeSaveResponseDtoBuilder expirationDate(String value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPixQrCodeSaveResponseDtoBuilder externalReference(String value) { + public PixQrCodeSaveResponseDtoBuilder externalReference(String value) { this.externalReference = 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/PixRecurringTransactionExternalAccountDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.java rename to src/main/java/com/asaas/apisdk/models/PixRecurringTransactionExternalAccountDto.java index 7b80d71..1c8e091 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionExternalAccountDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Receiver information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto { +public class PixRecurringTransactionExternalAccountDto { /** * Receiver name @@ -65,12 +68,12 @@ public String getPixKey() { } // Overwrite lombok builder methods - public static class ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder { + public static class PixRecurringTransactionExternalAccountDtoBuilder { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder name(String value) { + public PixRecurringTransactionExternalAccountDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -78,7 +81,7 @@ public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder name( private JsonNullable financialInstitutionName = JsonNullable.undefined(); @JsonProperty("financialInstitutionName") - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder financialInstitutionName(String value) { + public PixRecurringTransactionExternalAccountDtoBuilder financialInstitutionName(String value) { this.financialInstitutionName = JsonNullable.of(value); return this; } @@ -86,7 +89,7 @@ public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder finan private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder cpfCnpj(String value) { + public PixRecurringTransactionExternalAccountDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } @@ -94,7 +97,7 @@ public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder cpfCn private JsonNullable pixKey = JsonNullable.undefined(); @JsonProperty("pixKey") - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDtoBuilder pixKey(String value) { + public PixRecurringTransactionExternalAccountDtoBuilder 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/PixRecurringTransactionGetItemResponseDto.java similarity index 65% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponseDto.java index d80e8dc..aecd003 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto { +public class PixRecurringTransactionGetItemResponseDto { /** * Unique recurrence item identifier in Asaas @@ -30,9 +30,7 @@ public class ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto { * Recurrence item status */ @JsonProperty("status") - private JsonNullable< - ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus - > status; + private JsonNullable status; /** * Recurrence item scheduled date @@ -70,8 +68,11 @@ public class ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDto { @JsonProperty("refusalReasonDescription") private JsonNullable refusalReasonDescription; + /** + * Receiver information + */ @JsonProperty("externalAccount") - private JsonNullable externalAccount; + private JsonNullable externalAccount; @JsonIgnore public String getId() { @@ -79,7 +80,7 @@ public String getId() { } @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus getStatus() { + public PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus getStatus() { return status.orElse(null); } @@ -114,28 +115,27 @@ public String getRefusalReasonDescription() { } @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto getExternalAccount() { + public PixRecurringTransactionExternalAccountDto getExternalAccount() { return externalAccount.orElse(null); } // Overwrite lombok builder methods - public static class ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder { + public static class PixRecurringTransactionGetItemResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder id(String value) { + public PixRecurringTransactionGetItemResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } - private JsonNullable< - ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus - > status = JsonNullable.undefined(); + private JsonNullable status = + JsonNullable.undefined(); @JsonProperty("status") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder status( - ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus value + public PixRecurringTransactionGetItemResponseDtoBuilder status( + PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus value ) { this.status = JsonNullable.of(value); return this; @@ -144,7 +144,7 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder statu private JsonNullable scheduledDate = JsonNullable.undefined(); @JsonProperty("scheduledDate") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder scheduledDate(String value) { + public PixRecurringTransactionGetItemResponseDtoBuilder scheduledDate(String value) { this.scheduledDate = JsonNullable.of(value); return this; } @@ -152,7 +152,7 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder sched private JsonNullable canBeCancelled = JsonNullable.undefined(); @JsonProperty("canBeCancelled") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder canBeCancelled(Boolean value) { + public PixRecurringTransactionGetItemResponseDtoBuilder canBeCancelled(Boolean value) { this.canBeCancelled = JsonNullable.of(value); return this; } @@ -160,7 +160,7 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder canBe private JsonNullable recurrenceNumber = JsonNullable.undefined(); @JsonProperty("recurrenceNumber") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder recurrenceNumber(Long value) { + public PixRecurringTransactionGetItemResponseDtoBuilder recurrenceNumber(Long value) { this.recurrenceNumber = JsonNullable.of(value); return this; } @@ -168,7 +168,7 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder recur private JsonNullable quantity = JsonNullable.undefined(); @JsonProperty("quantity") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder quantity(Long value) { + public PixRecurringTransactionGetItemResponseDtoBuilder quantity(Long value) { this.quantity = JsonNullable.of(value); return this; } @@ -176,7 +176,7 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder quant private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder value(Double value) { + public PixRecurringTransactionGetItemResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -184,17 +184,16 @@ public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder value private JsonNullable refusalReasonDescription = JsonNullable.undefined(); @JsonProperty("refusalReasonDescription") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder refusalReasonDescription(String value) { + public PixRecurringTransactionGetItemResponseDtoBuilder refusalReasonDescription(String value) { this.refusalReasonDescription = JsonNullable.of(value); return this; } - private JsonNullable externalAccount = - JsonNullable.undefined(); + private JsonNullable externalAccount = JsonNullable.undefined(); @JsonProperty("externalAccount") - public ApiPixTransactionRecurringCheckoutScheduleGetItemResponseDtoBuilder externalAccount( - ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto value + public PixRecurringTransactionGetItemResponseDtoBuilder externalAccount( + PixRecurringTransactionExternalAccountDto 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/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.java similarity index 59% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.java rename to src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.java index 20e77ed..2dcb5fb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus { +public enum PixRecurringTransactionGetItemResponsePixRecurringTransactionItemStatus { PENDING("PENDING"), CANCELLED("CANCELLED"), REFUSED("REFUSED"), @@ -23,12 +23,8 @@ public enum ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCh private final String value; @JsonCreator - public static ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus fromValue( - String value - ) { - return Arrays.stream( - ApiPixTransactionRecurringCheckoutScheduleGetItemResponseRecurringCheckoutSchedulePixItemStatus.values() - ) + 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/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponseDto.java similarity index 56% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponseDto.java index 77803fb..4b5860f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixTransactionRecurringCheckoutScheduleGetResponseDto { +public class PixRecurringTransactionGetResponseDto { /** * Unique recurrence identifier in Asaas @@ -30,13 +30,13 @@ public class ApiPixTransactionRecurringCheckoutScheduleGetResponseDto { * Recurrence status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Indicates the origin of the recurrence */ @JsonProperty("origin") - private JsonNullable origin; + private JsonNullable origin; /** * Recurrence value @@ -48,9 +48,7 @@ public class ApiPixTransactionRecurringCheckoutScheduleGetResponseDto { * Recurrence frequency */ @JsonProperty("frequency") - private JsonNullable< - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency - > frequency; + private JsonNullable frequency; /** * Number of repetitions @@ -76,8 +74,11 @@ public class ApiPixTransactionRecurringCheckoutScheduleGetResponseDto { @JsonProperty("canBeCancelled") private JsonNullable canBeCancelled; + /** + * Receiver information + */ @JsonProperty("externalAccount") - private JsonNullable externalAccount; + private JsonNullable externalAccount; @JsonIgnore public String getId() { @@ -85,12 +86,12 @@ public String getId() { } @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus getStatus() { + public PixRecurringTransactionGetResponsePixRecurringTransactionStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin getOrigin() { + public PixRecurringTransactionGetResponsePixRecurringTransactionOrigin getOrigin() { return origin.orElse(null); } @@ -100,7 +101,7 @@ public Double getValue() { } @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency getFrequency() { + public PixRecurringTransactionGetResponsePixRecurringTransactionFrequency getFrequency() { return frequency.orElse(null); } @@ -125,38 +126,38 @@ public Boolean getCanBeCancelled() { } @JsonIgnore - public ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto getExternalAccount() { + public PixRecurringTransactionExternalAccountDto getExternalAccount() { return externalAccount.orElse(null); } // Overwrite lombok builder methods - public static class ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder { + public static class PixRecurringTransactionGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder id(String value) { + public PixRecurringTransactionGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } - private JsonNullable status = + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder status( - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus value + public PixRecurringTransactionGetResponseDtoBuilder status( + PixRecurringTransactionGetResponsePixRecurringTransactionStatus value ) { this.status = JsonNullable.of(value); return this; } - private JsonNullable origin = + private JsonNullable origin = JsonNullable.undefined(); @JsonProperty("origin") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder origin( - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleOrigin value + public PixRecurringTransactionGetResponseDtoBuilder origin( + PixRecurringTransactionGetResponsePixRecurringTransactionOrigin value ) { this.origin = JsonNullable.of(value); return this; @@ -165,18 +166,17 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder origin( private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder value(Double value) { + public PixRecurringTransactionGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } - private JsonNullable< - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency - > frequency = JsonNullable.undefined(); + private JsonNullable frequency = + JsonNullable.undefined(); @JsonProperty("frequency") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder frequency( - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency value + public PixRecurringTransactionGetResponseDtoBuilder frequency( + PixRecurringTransactionGetResponsePixRecurringTransactionFrequency value ) { this.frequency = JsonNullable.of(value); return this; @@ -185,7 +185,7 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder frequency private JsonNullable quantity = JsonNullable.undefined(); @JsonProperty("quantity") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder quantity(Long value) { + public PixRecurringTransactionGetResponseDtoBuilder quantity(Long value) { this.quantity = JsonNullable.of(value); return this; } @@ -193,7 +193,7 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder quantity( private JsonNullable startDate = JsonNullable.undefined(); @JsonProperty("startDate") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder startDate(String value) { + public PixRecurringTransactionGetResponseDtoBuilder startDate(String value) { this.startDate = JsonNullable.of(value); return this; } @@ -201,7 +201,7 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder startDate private JsonNullable finishDate = JsonNullable.undefined(); @JsonProperty("finishDate") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder finishDate(String value) { + public PixRecurringTransactionGetResponseDtoBuilder finishDate(String value) { this.finishDate = JsonNullable.of(value); return this; } @@ -209,17 +209,16 @@ public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder finishDat private JsonNullable canBeCancelled = JsonNullable.undefined(); @JsonProperty("canBeCancelled") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder canBeCancelled(Boolean value) { + public PixRecurringTransactionGetResponseDtoBuilder canBeCancelled(Boolean value) { this.canBeCancelled = JsonNullable.of(value); return this; } - private JsonNullable externalAccount = - JsonNullable.undefined(); + private JsonNullable externalAccount = JsonNullable.undefined(); @JsonProperty("externalAccount") - public ApiPixTransactionRecurringCheckoutScheduleGetResponseDtoBuilder externalAccount( - ApiPixTransactionRecurringCheckoutScheduleExternalAccountDto value + public PixRecurringTransactionGetResponseDtoBuilder externalAccount( + PixRecurringTransactionExternalAccountDto 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/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.java similarity index 58% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.java rename to src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.java index 4eba78b..f98bf89 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.java +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionFrequency.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency { +public enum PixRecurringTransactionGetResponsePixRecurringTransactionFrequency { WEEKLY("WEEKLY"), MONTHLY("MONTHLY"); @@ -21,12 +21,8 @@ public enum ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringChecko private final String value; @JsonCreator - public static ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency fromValue( - String value - ) { - return Arrays.stream( - ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleFrequency.values() - ) + 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/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.java b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.java similarity index 65% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.java rename to src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.java index be14910..4710f6d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionGetResponsePixRecurringTransactionStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus { +public enum PixRecurringTransactionGetResponsePixRecurringTransactionStatus { AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), PENDING("PENDING"), SCHEDULED("SCHEDULED"), @@ -24,10 +24,8 @@ public enum ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringChecko private final String value; @JsonCreator - public static ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus fromValue( - String value - ) { - return Arrays.stream(ApiPixTransactionRecurringCheckoutScheduleGetResponseRecurringCheckoutScheduleStatus.values()) + 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/ApiFinancialTransactionListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionListResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixRecurringTransactionListResponseDto.java index 6e05504..9f8573e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiFinancialTransactionListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixRecurringTransactionListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiFinancialTransactionListResponseDto { +public class PixRecurringTransactionListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiFinancialTransactionListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiFinancialTransactionListResponseDtoBuilder { + public static class PixRecurringTransactionListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiFinancialTransactionListResponseDtoBuilder object(String value) { + public PixRecurringTransactionListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiFinancialTransactionListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiFinancialTransactionListResponseDtoBuilder hasMore(Boolean value) { + public PixRecurringTransactionListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiFinancialTransactionListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiFinancialTransactionListResponseDtoBuilder totalCount(Long value) { + public PixRecurringTransactionListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiFinancialTransactionListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiFinancialTransactionListResponseDtoBuilder limit(Long value) { + public PixRecurringTransactionListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiFinancialTransactionListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiFinancialTransactionListResponseDtoBuilder offset(Long value) { + public PixRecurringTransactionListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiFinancialTransactionListResponseDtoBuilder data(List value) { + public PixRecurringTransactionListResponseDtoBuilder data(List value) { this.data = 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/PixTokenBucketGetAddressKeyResponseDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiPixTokenBucketGetAddressKeyResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixTokenBucketGetAddressKeyResponseDto.java index 3390e85..3820a38 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTokenBucketGetAddressKeyResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixTokenBucketGetAddressKeyResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixTokenBucketGetAddressKeyResponseDto { +public class PixTokenBucketGetAddressKeyResponseDto { /** * Maximum token capacity @@ -43,12 +43,12 @@ public Long getRemaining() { } // Overwrite lombok builder methods - public static class ApiPixTokenBucketGetAddressKeyResponseDtoBuilder { + public static class PixTokenBucketGetAddressKeyResponseDtoBuilder { private JsonNullable capacity = JsonNullable.undefined(); @JsonProperty("capacity") - public ApiPixTokenBucketGetAddressKeyResponseDtoBuilder capacity(Long value) { + public PixTokenBucketGetAddressKeyResponseDtoBuilder capacity(Long value) { this.capacity = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiPixTokenBucketGetAddressKeyResponseDtoBuilder capacity(Long value) { private JsonNullable remaining = JsonNullable.undefined(); @JsonProperty("remaining") - public ApiPixTokenBucketGetAddressKeyResponseDtoBuilder remaining(Long value) { + public PixTokenBucketGetAddressKeyResponseDtoBuilder 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/PixTransactionExternalAccountResponseDto.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponseDto.java index cbc245d..130917f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Information about the recipient + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixTransactionExternalAccountResponseDto { +public class PixTransactionExternalAccountResponseDto { /** * Payment Institution Identifier @@ -54,7 +57,7 @@ public class ApiPixTransactionExternalAccountResponseDto { * Pix key type */ @JsonProperty("addressKeyType") - private JsonNullable addressKeyType; + private JsonNullable addressKeyType; @JsonIgnore public String getIspb() { @@ -82,17 +85,17 @@ public String getAddressKey() { } @JsonIgnore - public ApiPixTransactionExternalAccountResponsePixAddressKeyType getAddressKeyType() { + public PixTransactionExternalAccountResponsePixAddressKeyType getAddressKeyType() { return addressKeyType.orElse(null); } // Overwrite lombok builder methods - public static class ApiPixTransactionExternalAccountResponseDtoBuilder { + public static class PixTransactionExternalAccountResponseDtoBuilder { private JsonNullable ispb = JsonNullable.undefined(); @JsonProperty("ispb") - public ApiPixTransactionExternalAccountResponseDtoBuilder ispb(String value) { + public PixTransactionExternalAccountResponseDtoBuilder ispb(String value) { this.ispb = JsonNullable.of(value); return this; } @@ -100,7 +103,7 @@ public ApiPixTransactionExternalAccountResponseDtoBuilder ispb(String value) { private JsonNullable ispbName = JsonNullable.undefined(); @JsonProperty("ispbName") - public ApiPixTransactionExternalAccountResponseDtoBuilder ispbName(String value) { + public PixTransactionExternalAccountResponseDtoBuilder ispbName(String value) { this.ispbName = JsonNullable.of(value); return this; } @@ -108,7 +111,7 @@ public ApiPixTransactionExternalAccountResponseDtoBuilder ispbName(String value) private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiPixTransactionExternalAccountResponseDtoBuilder name(String value) { + public PixTransactionExternalAccountResponseDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -116,7 +119,7 @@ public ApiPixTransactionExternalAccountResponseDtoBuilder name(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiPixTransactionExternalAccountResponseDtoBuilder cpfCnpj(String value) { + public PixTransactionExternalAccountResponseDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } @@ -124,17 +127,17 @@ public ApiPixTransactionExternalAccountResponseDtoBuilder cpfCnpj(String value) private JsonNullable addressKey = JsonNullable.undefined(); @JsonProperty("addressKey") - public ApiPixTransactionExternalAccountResponseDtoBuilder addressKey(String value) { + public PixTransactionExternalAccountResponseDtoBuilder addressKey(String value) { this.addressKey = JsonNullable.of(value); return this; } - private JsonNullable addressKeyType = + private JsonNullable addressKeyType = JsonNullable.undefined(); @JsonProperty("addressKeyType") - public ApiPixTransactionExternalAccountResponseDtoBuilder addressKeyType( - ApiPixTransactionExternalAccountResponsePixAddressKeyType value + public PixTransactionExternalAccountResponseDtoBuilder addressKeyType( + PixTransactionExternalAccountResponsePixAddressKeyType 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/PixTransactionExternalAccountResponsePixAddressKeyType.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponsePixAddressKeyType.java index d21173c..75e0b23 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionExternalAccountResponsePixAddressKeyType.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionExternalAccountResponsePixAddressKeyType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionExternalAccountResponsePixAddressKeyType { +public enum PixTransactionExternalAccountResponsePixAddressKeyType { CPF("CPF"), CNPJ("CNPJ"), EMAIL("EMAIL"), @@ -24,8 +24,8 @@ public enum ApiPixTransactionExternalAccountResponsePixAddressKeyType { private final String value; @JsonCreator - public static ApiPixTransactionExternalAccountResponsePixAddressKeyType fromValue(String value) { - return Arrays.stream(ApiPixTransactionExternalAccountResponsePixAddressKeyType.values()) + 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/ApiPixTransactionGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponseDto.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionGetResponseDto.java index 79fceb4..21d04da 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixTransactionGetResponseDto { +public class PixTransactionGetResponseDto { /** * Unique identifier of the Pix transaction in Asaas @@ -36,7 +36,7 @@ public class ApiPixTransactionGetResponseDto { * Used to indicate whether it is a Withdrawal or Change */ @JsonProperty("finality") - private JsonNullable finality; + private JsonNullable finality; /** * Transaction or Withdrawal Value @@ -72,19 +72,19 @@ public class ApiPixTransactionGetResponseDto { * Transaction status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Transaction type */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Indicates the origin of the transaction */ @JsonProperty("originType") - private JsonNullable originType; + private JsonNullable originType; /** * QrCode identifier linked to the transaction @@ -116,14 +116,23 @@ public class ApiPixTransactionGetResponseDto { @JsonProperty("canBeCanceled") private JsonNullable canBeCanceled; + /** + * Original transaction information if a chargeback has occurred + */ @JsonProperty("originalTransaction") - private JsonNullable originalTransaction; + private JsonNullable originalTransaction; + /** + * Information about the recipient + */ @JsonProperty("externalAccount") - private JsonNullable externalAccount; + private JsonNullable externalAccount; + /** + * Information about QrCode + */ @JsonProperty("qrCode") - private JsonNullable qrCode; + private JsonNullable qrCode; /** * Unique billing identifier @@ -165,7 +174,7 @@ public class ApiPixTransactionGetResponseDto { * Pix key type */ @JsonProperty("addressKeyType") - private JsonNullable addressKeyType; + private JsonNullable addressKeyType; /** * Transfer identifier @@ -190,7 +199,7 @@ public String getEndToEndIdentifier() { } @JsonIgnore - public ApiPixTransactionGetResponsePixTransactionCashValueFinality getFinality() { + public PixTransactionGetResponsePixTransactionCashValueFinality getFinality() { return finality.orElse(null); } @@ -220,17 +229,17 @@ public String getScheduledDate() { } @JsonIgnore - public ApiPixTransactionGetResponsePixTransactionStatus getStatus() { + public PixTransactionGetResponsePixTransactionStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiPixTransactionGetResponsePixTransactionType getType() { + public PixTransactionGetResponsePixTransactionType getType() { return type.orElse(null); } @JsonIgnore - public ApiPixTransactionGetResponsePixTransactionOriginType getOriginType() { + public PixTransactionGetResponsePixTransactionOriginType getOriginType() { return originType.orElse(null); } @@ -260,17 +269,17 @@ public Boolean getCanBeCanceled() { } @JsonIgnore - public ApiPixOriginalTransactionResponseDto getOriginalTransaction() { + public PixOriginalTransactionResponseDto getOriginalTransaction() { return originalTransaction.orElse(null); } @JsonIgnore - public ApiPixTransactionExternalAccountResponseDto getExternalAccount() { + public PixTransactionExternalAccountResponseDto getExternalAccount() { return externalAccount.orElse(null); } @JsonIgnore - public ApiPixTransactionQrCodeResponseDto getQrCode() { + public PixTransactionQrCodeResponseDto getQrCode() { return qrCode.orElse(null); } @@ -305,7 +314,7 @@ public String getAddressKey() { } @JsonIgnore - public ApiPixTransactionGetResponsePixAddressKeyType getAddressKeyType() { + public PixTransactionGetResponsePixAddressKeyType getAddressKeyType() { return addressKeyType.orElse(null); } @@ -320,12 +329,12 @@ public String getExternalReference() { } // Overwrite lombok builder methods - public static class ApiPixTransactionGetResponseDtoBuilder { + public static class PixTransactionGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPixTransactionGetResponseDtoBuilder id(String value) { + public PixTransactionGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -333,17 +342,16 @@ public ApiPixTransactionGetResponseDtoBuilder id(String value) { private JsonNullable endToEndIdentifier = JsonNullable.undefined(); @JsonProperty("endToEndIdentifier") - public ApiPixTransactionGetResponseDtoBuilder endToEndIdentifier(String value) { + public PixTransactionGetResponseDtoBuilder endToEndIdentifier(String value) { this.endToEndIdentifier = JsonNullable.of(value); return this; } - private JsonNullable finality = - JsonNullable.undefined(); + private JsonNullable finality = JsonNullable.undefined(); @JsonProperty("finality") - public ApiPixTransactionGetResponseDtoBuilder finality( - ApiPixTransactionGetResponsePixTransactionCashValueFinality value + public PixTransactionGetResponseDtoBuilder finality( + PixTransactionGetResponsePixTransactionCashValueFinality value ) { this.finality = JsonNullable.of(value); return this; @@ -352,7 +360,7 @@ public ApiPixTransactionGetResponseDtoBuilder finality( private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiPixTransactionGetResponseDtoBuilder value(Double value) { + public PixTransactionGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -360,7 +368,7 @@ public ApiPixTransactionGetResponseDtoBuilder value(Double value) { private JsonNullable changeValue = JsonNullable.undefined(); @JsonProperty("changeValue") - public ApiPixTransactionGetResponseDtoBuilder changeValue(Double value) { + public PixTransactionGetResponseDtoBuilder changeValue(Double value) { this.changeValue = JsonNullable.of(value); return this; } @@ -368,7 +376,7 @@ public ApiPixTransactionGetResponseDtoBuilder changeValue(Double value) { private JsonNullable refundedValue = JsonNullable.undefined(); @JsonProperty("refundedValue") - public ApiPixTransactionGetResponseDtoBuilder refundedValue(Double value) { + public PixTransactionGetResponseDtoBuilder refundedValue(Double value) { this.refundedValue = JsonNullable.of(value); return this; } @@ -376,7 +384,7 @@ public ApiPixTransactionGetResponseDtoBuilder refundedValue(Double value) { private JsonNullable effectiveDate = JsonNullable.undefined(); @JsonProperty("effectiveDate") - public ApiPixTransactionGetResponseDtoBuilder effectiveDate(String value) { + public PixTransactionGetResponseDtoBuilder effectiveDate(String value) { this.effectiveDate = JsonNullable.of(value); return this; } @@ -384,33 +392,31 @@ public ApiPixTransactionGetResponseDtoBuilder effectiveDate(String value) { private JsonNullable scheduledDate = JsonNullable.undefined(); @JsonProperty("scheduledDate") - public ApiPixTransactionGetResponseDtoBuilder scheduledDate(String value) { + public PixTransactionGetResponseDtoBuilder scheduledDate(String value) { this.scheduledDate = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiPixTransactionGetResponseDtoBuilder status(ApiPixTransactionGetResponsePixTransactionStatus value) { + public PixTransactionGetResponseDtoBuilder status(PixTransactionGetResponsePixTransactionStatus value) { this.status = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiPixTransactionGetResponseDtoBuilder type(ApiPixTransactionGetResponsePixTransactionType value) { + public PixTransactionGetResponseDtoBuilder type(PixTransactionGetResponsePixTransactionType value) { this.type = JsonNullable.of(value); return this; } - private JsonNullable originType = JsonNullable.undefined(); + private JsonNullable originType = JsonNullable.undefined(); @JsonProperty("originType") - public ApiPixTransactionGetResponseDtoBuilder originType( - ApiPixTransactionGetResponsePixTransactionOriginType value - ) { + public PixTransactionGetResponseDtoBuilder originType(PixTransactionGetResponsePixTransactionOriginType value) { this.originType = JsonNullable.of(value); return this; } @@ -418,7 +424,7 @@ public ApiPixTransactionGetResponseDtoBuilder originType( private JsonNullable conciliationIdentifier = JsonNullable.undefined(); @JsonProperty("conciliationIdentifier") - public ApiPixTransactionGetResponseDtoBuilder conciliationIdentifier(String value) { + public PixTransactionGetResponseDtoBuilder conciliationIdentifier(String value) { this.conciliationIdentifier = JsonNullable.of(value); return this; } @@ -426,7 +432,7 @@ public ApiPixTransactionGetResponseDtoBuilder conciliationIdentifier(String valu private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPixTransactionGetResponseDtoBuilder description(String value) { + public PixTransactionGetResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -434,7 +440,7 @@ public ApiPixTransactionGetResponseDtoBuilder description(String value) { private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); @JsonProperty("transactionReceiptUrl") - public ApiPixTransactionGetResponseDtoBuilder transactionReceiptUrl(String value) { + public PixTransactionGetResponseDtoBuilder transactionReceiptUrl(String value) { this.transactionReceiptUrl = JsonNullable.of(value); return this; } @@ -442,7 +448,7 @@ public ApiPixTransactionGetResponseDtoBuilder transactionReceiptUrl(String value private JsonNullable refusalReason = JsonNullable.undefined(); @JsonProperty("refusalReason") - public ApiPixTransactionGetResponseDtoBuilder refusalReason(String value) { + public PixTransactionGetResponseDtoBuilder refusalReason(String value) { this.refusalReason = JsonNullable.of(value); return this; } @@ -450,31 +456,31 @@ public ApiPixTransactionGetResponseDtoBuilder refusalReason(String value) { private JsonNullable canBeCanceled = JsonNullable.undefined(); @JsonProperty("canBeCanceled") - public ApiPixTransactionGetResponseDtoBuilder canBeCanceled(Boolean value) { + public PixTransactionGetResponseDtoBuilder canBeCanceled(Boolean value) { this.canBeCanceled = JsonNullable.of(value); return this; } - private JsonNullable originalTransaction = JsonNullable.undefined(); + private JsonNullable originalTransaction = JsonNullable.undefined(); @JsonProperty("originalTransaction") - public ApiPixTransactionGetResponseDtoBuilder originalTransaction(ApiPixOriginalTransactionResponseDto value) { + public PixTransactionGetResponseDtoBuilder originalTransaction(PixOriginalTransactionResponseDto value) { this.originalTransaction = JsonNullable.of(value); return this; } - private JsonNullable externalAccount = JsonNullable.undefined(); + private JsonNullable externalAccount = JsonNullable.undefined(); @JsonProperty("externalAccount") - public ApiPixTransactionGetResponseDtoBuilder externalAccount(ApiPixTransactionExternalAccountResponseDto value) { + public PixTransactionGetResponseDtoBuilder externalAccount(PixTransactionExternalAccountResponseDto value) { this.externalAccount = JsonNullable.of(value); return this; } - private JsonNullable qrCode = JsonNullable.undefined(); + private JsonNullable qrCode = JsonNullable.undefined(); @JsonProperty("qrCode") - public ApiPixTransactionGetResponseDtoBuilder qrCode(ApiPixTransactionQrCodeResponseDto value) { + public PixTransactionGetResponseDtoBuilder qrCode(PixTransactionQrCodeResponseDto value) { this.qrCode = JsonNullable.of(value); return this; } @@ -482,7 +488,7 @@ public ApiPixTransactionGetResponseDtoBuilder qrCode(ApiPixTransactionQrCodeResp private JsonNullable payment = JsonNullable.undefined(); @JsonProperty("payment") - public ApiPixTransactionGetResponseDtoBuilder payment(String value) { + public PixTransactionGetResponseDtoBuilder payment(String value) { this.payment = JsonNullable.of(value); return this; } @@ -490,7 +496,7 @@ public ApiPixTransactionGetResponseDtoBuilder payment(String value) { private JsonNullable canBeRefunded = JsonNullable.undefined(); @JsonProperty("canBeRefunded") - public ApiPixTransactionGetResponseDtoBuilder canBeRefunded(Boolean value) { + public PixTransactionGetResponseDtoBuilder canBeRefunded(Boolean value) { this.canBeRefunded = JsonNullable.of(value); return this; } @@ -498,7 +504,7 @@ public ApiPixTransactionGetResponseDtoBuilder canBeRefunded(Boolean value) { private JsonNullable refundDisabledReason = JsonNullable.undefined(); @JsonProperty("refundDisabledReason") - public ApiPixTransactionGetResponseDtoBuilder refundDisabledReason(String value) { + public PixTransactionGetResponseDtoBuilder refundDisabledReason(String value) { this.refundDisabledReason = JsonNullable.of(value); return this; } @@ -506,7 +512,7 @@ public ApiPixTransactionGetResponseDtoBuilder refundDisabledReason(String value) private JsonNullable chargedFeeValue = JsonNullable.undefined(); @JsonProperty("chargedFeeValue") - public ApiPixTransactionGetResponseDtoBuilder chargedFeeValue(Double value) { + public PixTransactionGetResponseDtoBuilder chargedFeeValue(Double value) { this.chargedFeeValue = JsonNullable.of(value); return this; } @@ -514,7 +520,7 @@ public ApiPixTransactionGetResponseDtoBuilder chargedFeeValue(Double value) { private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiPixTransactionGetResponseDtoBuilder dateCreated(String value) { + public PixTransactionGetResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -522,15 +528,15 @@ public ApiPixTransactionGetResponseDtoBuilder dateCreated(String value) { private JsonNullable addressKey = JsonNullable.undefined(); @JsonProperty("addressKey") - public ApiPixTransactionGetResponseDtoBuilder addressKey(String value) { + public PixTransactionGetResponseDtoBuilder addressKey(String value) { this.addressKey = JsonNullable.of(value); return this; } - private JsonNullable addressKeyType = JsonNullable.undefined(); + private JsonNullable addressKeyType = JsonNullable.undefined(); @JsonProperty("addressKeyType") - public ApiPixTransactionGetResponseDtoBuilder addressKeyType(ApiPixTransactionGetResponsePixAddressKeyType value) { + public PixTransactionGetResponseDtoBuilder addressKeyType(PixTransactionGetResponsePixAddressKeyType value) { this.addressKeyType = JsonNullable.of(value); return this; } @@ -538,7 +544,7 @@ public ApiPixTransactionGetResponseDtoBuilder addressKeyType(ApiPixTransactionGe private JsonNullable transferId = JsonNullable.undefined(); @JsonProperty("transferId") - public ApiPixTransactionGetResponseDtoBuilder transferId(String value) { + public PixTransactionGetResponseDtoBuilder transferId(String value) { this.transferId = JsonNullable.of(value); return this; } @@ -546,7 +552,7 @@ public ApiPixTransactionGetResponseDtoBuilder transferId(String value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiPixTransactionGetResponseDtoBuilder externalReference(String value) { + public PixTransactionGetResponseDtoBuilder 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/PixTransactionGetResponsePixAddressKeyType.java similarity index 71% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixAddressKeyType.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixAddressKeyType.java index 9337b93..456587e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixAddressKeyType.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixAddressKeyType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionGetResponsePixAddressKeyType { +public enum PixTransactionGetResponsePixAddressKeyType { CPF("CPF"), CNPJ("CNPJ"), EMAIL("EMAIL"), @@ -24,8 +24,8 @@ public enum ApiPixTransactionGetResponsePixAddressKeyType { private final String value; @JsonCreator - public static ApiPixTransactionGetResponsePixAddressKeyType fromValue(String value) { - return Arrays.stream(ApiPixTransactionGetResponsePixAddressKeyType.values()) + 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/ApiPixTransactionGetResponsePixTransactionCashValueFinality.java b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionCashValueFinality.java similarity index 67% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionCashValueFinality.java index 8356e80..0524832 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionCashValueFinality.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionCashValueFinality.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionGetResponsePixTransactionCashValueFinality { +public enum PixTransactionGetResponsePixTransactionCashValueFinality { WITHDRAWAL("WITHDRAWAL"), CHANGE("CHANGE"); @@ -21,8 +21,8 @@ public enum ApiPixTransactionGetResponsePixTransactionCashValueFinality { private final String value; @JsonCreator - public static ApiPixTransactionGetResponsePixTransactionCashValueFinality fromValue(String value) { - return Arrays.stream(ApiPixTransactionGetResponsePixTransactionCashValueFinality.values()) + 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/ApiPixTransactionGetResponsePixTransactionOriginType.java b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionOriginType.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionOriginType.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionOriginType.java index dab2ad8..5062ad0 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionOriginType.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionOriginType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionGetResponsePixTransactionOriginType { +public enum PixTransactionGetResponsePixTransactionOriginType { MANUAL("MANUAL"), ADDRESS_KEY("ADDRESS_KEY"), STATIC_QRCODE("STATIC_QRCODE"), @@ -25,8 +25,8 @@ public enum ApiPixTransactionGetResponsePixTransactionOriginType { private final String value; @JsonCreator - public static ApiPixTransactionGetResponsePixTransactionOriginType fromValue(String value) { - return Arrays.stream(ApiPixTransactionGetResponsePixTransactionOriginType.values()) + 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/ApiPixTransactionGetResponsePixTransactionStatus.java b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionStatus.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionStatus.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionStatus.java index 7a07b2b..e34bf5e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionGetResponsePixTransactionStatus { +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"), @@ -30,8 +30,8 @@ public enum ApiPixTransactionGetResponsePixTransactionStatus { private final String value; @JsonCreator - public static ApiPixTransactionGetResponsePixTransactionStatus fromValue(String value) { - return Arrays.stream(ApiPixTransactionGetResponsePixTransactionStatus.values()) + 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/ApiPixTransactionGetResponsePixTransactionType.java b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionType.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionType.java index b1c93ea..4737f21 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionGetResponsePixTransactionType.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionGetResponsePixTransactionType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionGetResponsePixTransactionType { +public enum PixTransactionGetResponsePixTransactionType { DEBIT("DEBIT"), CREDIT("CREDIT"), CREDIT_REFUND("CREDIT_REFUND"), @@ -24,8 +24,8 @@ public enum ApiPixTransactionGetResponsePixTransactionType { private final String value; @JsonCreator - public static ApiPixTransactionGetResponsePixTransactionType fromValue(String value) { - return Arrays.stream(ApiPixTransactionGetResponsePixTransactionType.values()) + 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/ApiPixTransactionListRequestPixTransactionStatus.java b/src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionStatus.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionStatus.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionStatus.java index c8f6b31..ef9971a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionStatus.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionListRequestPixTransactionStatus { +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"), @@ -30,8 +30,8 @@ public enum ApiPixTransactionListRequestPixTransactionStatus { private final String value; @JsonCreator - public static ApiPixTransactionListRequestPixTransactionStatus fromValue(String value) { - return Arrays.stream(ApiPixTransactionListRequestPixTransactionStatus.values()) + 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/ApiPixTransactionListRequestPixTransactionType.java b/src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionType.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionType.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionType.java index 3af6127..071543c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionListRequestPixTransactionType.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionListRequestPixTransactionType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionListRequestPixTransactionType { +public enum PixTransactionListRequestPixTransactionType { DEBIT("DEBIT"), CREDIT("CREDIT"), CREDIT_REFUND("CREDIT_REFUND"), @@ -24,8 +24,8 @@ public enum ApiPixTransactionListRequestPixTransactionType { private final String value; @JsonCreator - public static ApiPixTransactionListRequestPixTransactionType fromValue(String value) { - return Arrays.stream(ApiPixTransactionListRequestPixTransactionType.values()) + 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/ApiPaymentLeanListResponseDto.java b/src/main/java/com/asaas/apisdk/models/PixTransactionListResponseDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiPaymentLeanListResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionListResponseDto.java index dd54607..7df80a3 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPaymentLeanListResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionListResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPaymentLeanListResponseDto { +public class PixTransactionListResponseDto { /** * Object type @@ -55,7 +55,7 @@ public class ApiPaymentLeanListResponseDto { * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore public String getObject() { @@ -83,17 +83,17 @@ public Long getOffset() { } @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiPaymentLeanListResponseDtoBuilder { + public static class PixTransactionListResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiPaymentLeanListResponseDtoBuilder object(String value) { + public PixTransactionListResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -101,7 +101,7 @@ public ApiPaymentLeanListResponseDtoBuilder object(String value) { private JsonNullable hasMore = JsonNullable.undefined(); @JsonProperty("hasMore") - public ApiPaymentLeanListResponseDtoBuilder hasMore(Boolean value) { + public PixTransactionListResponseDtoBuilder hasMore(Boolean value) { this.hasMore = JsonNullable.of(value); return this; } @@ -109,7 +109,7 @@ public ApiPaymentLeanListResponseDtoBuilder hasMore(Boolean value) { private JsonNullable totalCount = JsonNullable.undefined(); @JsonProperty("totalCount") - public ApiPaymentLeanListResponseDtoBuilder totalCount(Long value) { + public PixTransactionListResponseDtoBuilder totalCount(Long value) { this.totalCount = JsonNullable.of(value); return this; } @@ -117,7 +117,7 @@ public ApiPaymentLeanListResponseDtoBuilder totalCount(Long value) { private JsonNullable limit = JsonNullable.undefined(); @JsonProperty("limit") - public ApiPaymentLeanListResponseDtoBuilder limit(Long value) { + public PixTransactionListResponseDtoBuilder limit(Long value) { this.limit = JsonNullable.of(value); return this; } @@ -125,15 +125,15 @@ public ApiPaymentLeanListResponseDtoBuilder limit(Long value) { private JsonNullable offset = JsonNullable.undefined(); @JsonProperty("offset") - public ApiPaymentLeanListResponseDtoBuilder offset(Long value) { + public PixTransactionListResponseDtoBuilder offset(Long value) { this.offset = JsonNullable.of(value); return this; } - private JsonNullable> data = JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiPaymentLeanListResponseDtoBuilder data(List value) { + public PixTransactionListResponseDtoBuilder 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/PixTransactionQrCodePayerResponseDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodePayerResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionQrCodePayerResponseDto.java index 5451e11..579061a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodePayerResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodePayerResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Information about the payer + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixTransactionQrCodePayerResponseDto { +public class PixTransactionQrCodePayerResponseDto { /** * Payer's name @@ -43,12 +46,12 @@ public String getCpfCnpj() { } // Overwrite lombok builder methods - public static class ApiPixTransactionQrCodePayerResponseDtoBuilder { + public static class PixTransactionQrCodePayerResponseDtoBuilder { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiPixTransactionQrCodePayerResponseDtoBuilder name(String value) { + public PixTransactionQrCodePayerResponseDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiPixTransactionQrCodePayerResponseDtoBuilder name(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiPixTransactionQrCodePayerResponseDtoBuilder cpfCnpj(String value) { + public PixTransactionQrCodePayerResponseDtoBuilder 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/PixTransactionQrCodeResponseDto.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeResponseDto.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeResponseDto.java index 9e567d4..209c9f4 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeResponseDto.java @@ -12,16 +12,22 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Information about QrCode + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixTransactionQrCodeResponseDto { +public class PixTransactionQrCodeResponseDto { + /** + * Information about the payer + */ @JsonProperty("payer") - private JsonNullable payer; + private JsonNullable payer; /** * Unique Pix reconciliation identifier with Asaas @@ -66,7 +72,7 @@ public class ApiPixTransactionQrCodeResponseDto { private JsonNullable expirationDate; @JsonIgnore - public ApiPixTransactionQrCodePayerResponseDto getPayer() { + public PixTransactionQrCodePayerResponseDto getPayer() { return payer.orElse(null); } @@ -106,12 +112,12 @@ public String getExpirationDate() { } // Overwrite lombok builder methods - public static class ApiPixTransactionQrCodeResponseDtoBuilder { + public static class PixTransactionQrCodeResponseDtoBuilder { - private JsonNullable payer = JsonNullable.undefined(); + private JsonNullable payer = JsonNullable.undefined(); @JsonProperty("payer") - public ApiPixTransactionQrCodeResponseDtoBuilder payer(ApiPixTransactionQrCodePayerResponseDto value) { + public PixTransactionQrCodeResponseDtoBuilder payer(PixTransactionQrCodePayerResponseDto value) { this.payer = JsonNullable.of(value); return this; } @@ -119,7 +125,7 @@ public ApiPixTransactionQrCodeResponseDtoBuilder payer(ApiPixTransactionQrCodePa private JsonNullable conciliationIdentifier = JsonNullable.undefined(); @JsonProperty("conciliationIdentifier") - public ApiPixTransactionQrCodeResponseDtoBuilder conciliationIdentifier(String value) { + public PixTransactionQrCodeResponseDtoBuilder conciliationIdentifier(String value) { this.conciliationIdentifier = JsonNullable.of(value); return this; } @@ -127,7 +133,7 @@ public ApiPixTransactionQrCodeResponseDtoBuilder conciliationIdentifier(String v private JsonNullable originalValue = JsonNullable.undefined(); @JsonProperty("originalValue") - public ApiPixTransactionQrCodeResponseDtoBuilder originalValue(Double value) { + public PixTransactionQrCodeResponseDtoBuilder originalValue(Double value) { this.originalValue = JsonNullable.of(value); return this; } @@ -135,7 +141,7 @@ public ApiPixTransactionQrCodeResponseDtoBuilder originalValue(Double value) { private JsonNullable dueDate = JsonNullable.undefined(); @JsonProperty("dueDate") - public ApiPixTransactionQrCodeResponseDtoBuilder dueDate(String value) { + public PixTransactionQrCodeResponseDtoBuilder dueDate(String value) { this.dueDate = JsonNullable.of(value); return this; } @@ -143,7 +149,7 @@ public ApiPixTransactionQrCodeResponseDtoBuilder dueDate(String value) { private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiPixTransactionQrCodeResponseDtoBuilder interest(Double value) { + public PixTransactionQrCodeResponseDtoBuilder interest(Double value) { this.interest = JsonNullable.of(value); return this; } @@ -151,7 +157,7 @@ public ApiPixTransactionQrCodeResponseDtoBuilder interest(Double value) { private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiPixTransactionQrCodeResponseDtoBuilder fine(Double value) { + public PixTransactionQrCodeResponseDtoBuilder fine(Double value) { this.fine = JsonNullable.of(value); return this; } @@ -159,7 +165,7 @@ public ApiPixTransactionQrCodeResponseDtoBuilder fine(Double value) { private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiPixTransactionQrCodeResponseDtoBuilder discount(Double value) { + public PixTransactionQrCodeResponseDtoBuilder discount(Double value) { this.discount = JsonNullable.of(value); return this; } @@ -167,7 +173,7 @@ public ApiPixTransactionQrCodeResponseDtoBuilder discount(Double value) { private JsonNullable expirationDate = JsonNullable.undefined(); @JsonProperty("expirationDate") - public ApiPixTransactionQrCodeResponseDtoBuilder expirationDate(String value) { + public PixTransactionQrCodeResponseDtoBuilder 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/PixTransactionQrCodeSaveRequestDto.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeSaveRequestDto.java index a1c51da..5b94d28 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionQrCodeSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionQrCodeSaveRequestDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * QRCode payload for payment + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixTransactionQrCodeSaveRequestDto { +public class PixTransactionQrCodeSaveRequestDto { /** * QRCode payload @@ -39,12 +42,12 @@ public Double getChangeValue() { } // Overwrite lombok builder methods - public static class ApiPixTransactionQrCodeSaveRequestDtoBuilder { + public static class PixTransactionQrCodeSaveRequestDtoBuilder { private JsonNullable changeValue = JsonNullable.undefined(); @JsonProperty("changeValue") - public ApiPixTransactionQrCodeSaveRequestDtoBuilder changeValue(Double value) { + public PixTransactionQrCodeSaveRequestDtoBuilder changeValue(Double value) { this.changeValue = 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/PixTransactionSaveRequestDto.java similarity index 59% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/PixTransactionSaveRequestDto.java index 825919a..b71caff 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/PixTransactionSaveRequestDto.java @@ -3,7 +3,6 @@ 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; @@ -20,10 +19,13 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixTransactionSaveRequestDto { +public class PixTransactionSaveRequestDto { - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiPixTransactionQrCodeSaveRequestDto qrCode; + /** + * QRCode payload for payment + */ + @NonNull + private PixTransactionQrCodeSaveRequestDto qrCode; /** * Value to be paid @@ -54,23 +56,12 @@ public String getScheduleDate() { } // Overwrite lombok builder methods - public static class ApiPixTransactionSaveRequestDtoBuilder { - - /** - * Flag to track if the qrCode property has been set. - */ - private boolean qrCode$set = false; - - public ApiPixTransactionSaveRequestDtoBuilder qrCode(ApiPixTransactionQrCodeSaveRequestDto qrCode) { - this.qrCode$set = true; - this.qrCode = qrCode; - return this; - } + public static class PixTransactionSaveRequestDtoBuilder { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiPixTransactionSaveRequestDtoBuilder description(String value) { + public PixTransactionSaveRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -78,16 +69,9 @@ public ApiPixTransactionSaveRequestDtoBuilder description(String value) { private JsonNullable scheduleDate = JsonNullable.undefined(); @JsonProperty("scheduleDate") - public ApiPixTransactionSaveRequestDtoBuilder scheduleDate(String value) { + public PixTransactionSaveRequestDtoBuilder 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/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java b/src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListItemsResponseDto.java similarity index 53% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java rename to src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListItemsResponseDto.java index e02bca9..db02f42 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListItemsResponseDto.java @@ -19,28 +19,27 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDto { +public class RecurringPixTransactionListItemsResponseDto { /** * List of objects */ @JsonProperty("data") - private JsonNullable> data; + private JsonNullable> data; @JsonIgnore - public List getData() { + public List getData() { return data.orElse(null); } // Overwrite lombok builder methods - public static class ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDtoBuilder { + public static class RecurringPixTransactionListItemsResponseDtoBuilder { - private JsonNullable> data = - JsonNullable.undefined(); + private JsonNullable> data = JsonNullable.undefined(); @JsonProperty("data") - public ApiPixTransactionRecurringCheckoutScheduleListItemsResponseDtoBuilder data( - List value + public RecurringPixTransactionListItemsResponseDtoBuilder 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/RecurringPixTransactionListRequestPixRecurringTransactionStatus.java similarity index 65% rename from src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.java rename to src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.java index 510678a..fe73db8 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.java +++ b/src/main/java/com/asaas/apisdk/models/RecurringPixTransactionListRequestPixRecurringTransactionStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus { +public enum RecurringPixTransactionListRequestPixRecurringTransactionStatus { AWAITING_CRITICAL_ACTION_AUTHORIZATION("AWAITING_CRITICAL_ACTION_AUTHORIZATION"), PENDING("PENDING"), SCHEDULED("SCHEDULED"), @@ -24,10 +24,8 @@ public enum ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringChecko private final String value; @JsonCreator - public static ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus fromValue( - String value - ) { - return Arrays.stream(ApiPixTransactionRecurringCheckoutScheduleListRequestRecurringCheckoutScheduleStatus.values()) + 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/ApiSubscriptionConfigureInvoiceRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDto.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDto.java index 5d036a2..bc49691 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionConfigureInvoiceRequestDto { +public class SubscriptionConfigureInvoiceRequestDto { /** * Unique municipal service identifier @@ -54,7 +54,7 @@ public class ApiSubscriptionConfigureInvoiceRequestDto { * When the invoice will be issued */ @JsonProperty("effectiveDatePeriod") - private JsonNullable effectiveDatePeriod; + private JsonNullable effectiveDatePeriod; /** * Issue only for paid charges @@ -74,8 +74,11 @@ public class ApiSubscriptionConfigureInvoiceRequestDto { @JsonProperty("observations") private JsonNullable observations; + /** + * Invoice taxes + */ @JsonProperty("taxes") - private JsonNullable taxes; + private JsonNullable taxes; @JsonIgnore public String getMunicipalServiceId() { @@ -103,7 +106,7 @@ public Double getDeductions() { } @JsonIgnore - public ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod getEffectiveDatePeriod() { + public SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod getEffectiveDatePeriod() { return effectiveDatePeriod.orElse(null); } @@ -123,17 +126,17 @@ public String getObservations() { } @JsonIgnore - public ApiCustomerInvoiceTaxesDto getTaxes() { + public InvoiceTaxesDto getTaxes() { return taxes.orElse(null); } // Overwrite lombok builder methods - public static class ApiSubscriptionConfigureInvoiceRequestDtoBuilder { + public static class SubscriptionConfigureInvoiceRequestDtoBuilder { private JsonNullable municipalServiceId = JsonNullable.undefined(); @JsonProperty("municipalServiceId") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceId(String value) { + public SubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceId(String value) { this.municipalServiceId = JsonNullable.of(value); return this; } @@ -141,7 +144,7 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceId(Strin private JsonNullable municipalServiceCode = JsonNullable.undefined(); @JsonProperty("municipalServiceCode") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceCode(String value) { + public SubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceCode(String value) { this.municipalServiceCode = JsonNullable.of(value); return this; } @@ -149,7 +152,7 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceCode(Str private JsonNullable municipalServiceName = JsonNullable.undefined(); @JsonProperty("municipalServiceName") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceName(String value) { + public SubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceName(String value) { this.municipalServiceName = JsonNullable.of(value); return this; } @@ -157,7 +160,7 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder municipalServiceName(Str private JsonNullable updatePayment = JsonNullable.undefined(); @JsonProperty("updatePayment") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder updatePayment(Boolean value) { + public SubscriptionConfigureInvoiceRequestDtoBuilder updatePayment(Boolean value) { this.updatePayment = JsonNullable.of(value); return this; } @@ -165,17 +168,17 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder updatePayment(Boolean va private JsonNullable deductions = JsonNullable.undefined(); @JsonProperty("deductions") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder deductions(Double value) { + public SubscriptionConfigureInvoiceRequestDtoBuilder deductions(Double value) { this.deductions = JsonNullable.of(value); return this; } - private JsonNullable effectiveDatePeriod = + private JsonNullable effectiveDatePeriod = JsonNullable.undefined(); @JsonProperty("effectiveDatePeriod") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder effectiveDatePeriod( - ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod value + public SubscriptionConfigureInvoiceRequestDtoBuilder effectiveDatePeriod( + SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod value ) { this.effectiveDatePeriod = JsonNullable.of(value); return this; @@ -184,7 +187,7 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder effectiveDatePeriod( private JsonNullable receivedOnly = JsonNullable.undefined(); @JsonProperty("receivedOnly") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder receivedOnly(Boolean value) { + public SubscriptionConfigureInvoiceRequestDtoBuilder receivedOnly(Boolean value) { this.receivedOnly = JsonNullable.of(value); return this; } @@ -192,7 +195,7 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder receivedOnly(Boolean val private JsonNullable daysBeforeDueDate = JsonNullable.undefined(); @JsonProperty("daysBeforeDueDate") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder daysBeforeDueDate(Long value) { + public SubscriptionConfigureInvoiceRequestDtoBuilder daysBeforeDueDate(Long value) { this.daysBeforeDueDate = JsonNullable.of(value); return this; } @@ -200,15 +203,15 @@ public ApiSubscriptionConfigureInvoiceRequestDtoBuilder daysBeforeDueDate(Long v private JsonNullable observations = JsonNullable.undefined(); @JsonProperty("observations") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder observations(String value) { + public SubscriptionConfigureInvoiceRequestDtoBuilder observations(String value) { this.observations = JsonNullable.of(value); return this; } - private JsonNullable taxes = JsonNullable.undefined(); + private JsonNullable taxes = JsonNullable.undefined(); @JsonProperty("taxes") - public ApiSubscriptionConfigureInvoiceRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { + public SubscriptionConfigureInvoiceRequestDtoBuilder taxes(InvoiceTaxesDto 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/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java index dbad65f..062e8be 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod { +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"), @@ -24,8 +24,8 @@ public enum ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod { private final String value; @JsonCreator - public static ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod fromValue(String value) { - return Arrays.stream(ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.values()) + 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/ApiSubscriptionDeleteInvoiceConfigResponseDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionDeleteInvoiceConfigResponseDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionDeleteInvoiceConfigResponseDto.java index c686df0..03782c1 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteInvoiceConfigResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionDeleteInvoiceConfigResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionDeleteInvoiceConfigResponseDto { +public class SubscriptionDeleteInvoiceConfigResponseDto { /** * Informs if configurations have been removed @@ -43,12 +43,12 @@ public String getId() { } // Overwrite lombok builder methods - public static class ApiSubscriptionDeleteInvoiceConfigResponseDtoBuilder { + public static class SubscriptionDeleteInvoiceConfigResponseDtoBuilder { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiSubscriptionDeleteInvoiceConfigResponseDtoBuilder deleted(Boolean value) { + public SubscriptionDeleteInvoiceConfigResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiSubscriptionDeleteInvoiceConfigResponseDtoBuilder deleted(Boolean valu private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiSubscriptionDeleteInvoiceConfigResponseDtoBuilder id(String value) { + public SubscriptionDeleteInvoiceConfigResponseDtoBuilder 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/SubscriptionDeleteResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteResponseDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionDeleteResponseDto.java index 5d5c03d..03f1566 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionDeleteResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionDeleteResponseDto { +public class SubscriptionDeleteResponseDto { /** * Informs if the subscription has been removed @@ -43,12 +43,12 @@ public String getId() { } // Overwrite lombok builder methods - public static class ApiSubscriptionDeleteResponseDtoBuilder { + public static class SubscriptionDeleteResponseDtoBuilder { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiSubscriptionDeleteResponseDtoBuilder deleted(Boolean value) { + public SubscriptionDeleteResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiSubscriptionDeleteResponseDtoBuilder deleted(Boolean value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiSubscriptionDeleteResponseDtoBuilder id(String value) { + public SubscriptionDeleteResponseDtoBuilder 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/SubscriptionGetInvoicesRequestInvoiceStatus.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionGetInvoicesRequestInvoiceStatus.java index 23fc90e..3045047 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetInvoicesRequestInvoiceStatus.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionGetInvoicesRequestInvoiceStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionGetInvoicesRequestInvoiceStatus { +public enum SubscriptionGetInvoicesRequestInvoiceStatus { SCHEDULED("SCHEDULED"), WAITING_OVERDUE_PAYMENT("WAITING_OVERDUE_PAYMENT"), PENDING("PENDING"), @@ -30,8 +30,8 @@ public enum ApiSubscriptionGetInvoicesRequestInvoiceStatus { private final String value; @JsonCreator - public static ApiSubscriptionGetInvoicesRequestInvoiceStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionGetInvoicesRequestInvoiceStatus.values()) + 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/ApiSubscriptionGetResponseBillingType.java b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseBillingType.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseBillingType.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseBillingType.java index c22b7bc..05aec0c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionGetResponseBillingType { +public enum SubscriptionGetResponseBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -26,8 +26,8 @@ public enum ApiSubscriptionGetResponseBillingType { private final String value; @JsonCreator - public static ApiSubscriptionGetResponseBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionGetResponseBillingType.values()) + 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/ApiSubscriptionSaveRequestCycle.java b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseCycle.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestCycle.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseCycle.java index 9749fb0..e7b7a69 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestCycle.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseCycle.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionSaveRequestCycle { +public enum SubscriptionGetResponseCycle { WEEKLY("WEEKLY"), BIWEEKLY("BIWEEKLY"), MONTHLY("MONTHLY"), @@ -26,8 +26,8 @@ public enum ApiSubscriptionSaveRequestCycle { private final String value; @JsonCreator - public static ApiSubscriptionSaveRequestCycle fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveRequestCycle.values()) + 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/ApiSubscriptionGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseDto.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseDto.java index 23226ef..9c8f706 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionGetResponseDto { +public class SubscriptionGetResponseDto { /** * Object type @@ -55,13 +55,13 @@ public class ApiSubscriptionGetResponseDto { * Billing type */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Billing frequency */ @JsonProperty("cycle") - private JsonNullable cycle; + private JsonNullable cycle; /** * Subscription value @@ -91,16 +91,25 @@ public class ApiSubscriptionGetResponseDto { * Subscription status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; /** * Informs if the subscription has been removed @@ -130,7 +139,7 @@ public class ApiSubscriptionGetResponseDto { * Split information */ @JsonProperty("split") - private JsonNullable> split; + private JsonNullable> split; @JsonIgnore public String getObject() { @@ -158,12 +167,12 @@ public String getPaymentLink() { } @JsonIgnore - public ApiSubscriptionGetResponseBillingType getBillingType() { + public SubscriptionGetResponseBillingType getBillingType() { return billingType.orElse(null); } @JsonIgnore - public ApiSubscriptionGetResponseCycle getCycle() { + public SubscriptionGetResponseCycle getCycle() { return cycle.orElse(null); } @@ -188,22 +197,22 @@ public String getDescription() { } @JsonIgnore - public ApiSubscriptionGetResponseSubscriptionStatus getStatus() { + public SubscriptionGetResponseSubscriptionStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentFineResponseDto getFine() { + public PaymentFineResponseDto getFine() { return fine.orElse(null); } @JsonIgnore - public ApiPaymentInterestResponseDto getInterest() { + public PaymentInterestResponseDto getInterest() { return interest.orElse(null); } @@ -228,17 +237,17 @@ public String getCheckoutSession() { } @JsonIgnore - public List getSplit() { + public List getSplit() { return split.orElse(null); } // Overwrite lombok builder methods - public static class ApiSubscriptionGetResponseDtoBuilder { + public static class SubscriptionGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiSubscriptionGetResponseDtoBuilder object(String value) { + public SubscriptionGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -246,7 +255,7 @@ public ApiSubscriptionGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiSubscriptionGetResponseDtoBuilder id(String value) { + public SubscriptionGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -254,7 +263,7 @@ public ApiSubscriptionGetResponseDtoBuilder id(String value) { private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiSubscriptionGetResponseDtoBuilder dateCreated(String value) { + public SubscriptionGetResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -262,7 +271,7 @@ public ApiSubscriptionGetResponseDtoBuilder dateCreated(String value) { private JsonNullable customer = JsonNullable.undefined(); @JsonProperty("customer") - public ApiSubscriptionGetResponseDtoBuilder customer(String value) { + public SubscriptionGetResponseDtoBuilder customer(String value) { this.customer = JsonNullable.of(value); return this; } @@ -270,23 +279,23 @@ public ApiSubscriptionGetResponseDtoBuilder customer(String value) { private JsonNullable paymentLink = JsonNullable.undefined(); @JsonProperty("paymentLink") - public ApiSubscriptionGetResponseDtoBuilder paymentLink(String value) { + public SubscriptionGetResponseDtoBuilder paymentLink(String value) { this.paymentLink = JsonNullable.of(value); return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ApiSubscriptionGetResponseDtoBuilder billingType(ApiSubscriptionGetResponseBillingType value) { + public SubscriptionGetResponseDtoBuilder billingType(SubscriptionGetResponseBillingType value) { this.billingType = JsonNullable.of(value); return this; } - private JsonNullable cycle = JsonNullable.undefined(); + private JsonNullable cycle = JsonNullable.undefined(); @JsonProperty("cycle") - public ApiSubscriptionGetResponseDtoBuilder cycle(ApiSubscriptionGetResponseCycle value) { + public SubscriptionGetResponseDtoBuilder cycle(SubscriptionGetResponseCycle value) { this.cycle = JsonNullable.of(value); return this; } @@ -294,7 +303,7 @@ public ApiSubscriptionGetResponseDtoBuilder cycle(ApiSubscriptionGetResponseCycl private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiSubscriptionGetResponseDtoBuilder value(Double value) { + public SubscriptionGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -302,7 +311,7 @@ public ApiSubscriptionGetResponseDtoBuilder value(Double value) { private JsonNullable nextDueDate = JsonNullable.undefined(); @JsonProperty("nextDueDate") - public ApiSubscriptionGetResponseDtoBuilder nextDueDate(String value) { + public SubscriptionGetResponseDtoBuilder nextDueDate(String value) { this.nextDueDate = JsonNullable.of(value); return this; } @@ -310,7 +319,7 @@ public ApiSubscriptionGetResponseDtoBuilder nextDueDate(String value) { private JsonNullable endDate = JsonNullable.undefined(); @JsonProperty("endDate") - public ApiSubscriptionGetResponseDtoBuilder endDate(String value) { + public SubscriptionGetResponseDtoBuilder endDate(String value) { this.endDate = JsonNullable.of(value); return this; } @@ -318,39 +327,39 @@ public ApiSubscriptionGetResponseDtoBuilder endDate(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiSubscriptionGetResponseDtoBuilder description(String value) { + public SubscriptionGetResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiSubscriptionGetResponseDtoBuilder status(ApiSubscriptionGetResponseSubscriptionStatus value) { + public SubscriptionGetResponseDtoBuilder status(SubscriptionGetResponseSubscriptionStatus value) { this.status = JsonNullable.of(value); return this; } - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiSubscriptionGetResponseDtoBuilder discount(ApiPaymentDiscountDto value) { + public SubscriptionGetResponseDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiSubscriptionGetResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { + public SubscriptionGetResponseDtoBuilder fine(PaymentFineResponseDto value) { this.fine = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiSubscriptionGetResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { + public SubscriptionGetResponseDtoBuilder interest(PaymentInterestResponseDto value) { this.interest = JsonNullable.of(value); return this; } @@ -358,7 +367,7 @@ public ApiSubscriptionGetResponseDtoBuilder interest(ApiPaymentInterestResponseD private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiSubscriptionGetResponseDtoBuilder deleted(Boolean value) { + public SubscriptionGetResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -366,7 +375,7 @@ public ApiSubscriptionGetResponseDtoBuilder deleted(Boolean value) { private JsonNullable maxPayments = JsonNullable.undefined(); @JsonProperty("maxPayments") - public ApiSubscriptionGetResponseDtoBuilder maxPayments(Long value) { + public SubscriptionGetResponseDtoBuilder maxPayments(Long value) { this.maxPayments = JsonNullable.of(value); return this; } @@ -374,7 +383,7 @@ public ApiSubscriptionGetResponseDtoBuilder maxPayments(Long value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiSubscriptionGetResponseDtoBuilder externalReference(String value) { + public SubscriptionGetResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -382,15 +391,15 @@ public ApiSubscriptionGetResponseDtoBuilder externalReference(String value) { private JsonNullable checkoutSession = JsonNullable.undefined(); @JsonProperty("checkoutSession") - public ApiSubscriptionGetResponseDtoBuilder checkoutSession(String value) { + public SubscriptionGetResponseDtoBuilder checkoutSession(String value) { this.checkoutSession = JsonNullable.of(value); return this; } - private JsonNullable> split = JsonNullable.undefined(); + private JsonNullable> split = JsonNullable.undefined(); @JsonProperty("split") - public ApiSubscriptionGetResponseDtoBuilder split(List value) { + public SubscriptionGetResponseDtoBuilder 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/SubscriptionGetResponseSubscriptionStatus.java similarity index 71% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseSubscriptionStatus.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseSubscriptionStatus.java index 785a2dc..76b9ec6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseSubscriptionStatus.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionGetResponseSubscriptionStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionGetResponseSubscriptionStatus { +public enum SubscriptionGetResponseSubscriptionStatus { ACTIVE("ACTIVE"), EXPIRED("EXPIRED"), INACTIVE("INACTIVE"); @@ -22,8 +22,8 @@ public enum ApiSubscriptionGetResponseSubscriptionStatus { private final String value; @JsonCreator - public static ApiSubscriptionGetResponseSubscriptionStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionGetResponseSubscriptionStatus.values()) + 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/ApiSubscriptionInvoiceConfigGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigGetResponseDto.java similarity index 78% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigGetResponseDto.java index d3deec3..c1a8f20 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionInvoiceConfigGetResponseDto { +public class SubscriptionInvoiceConfigGetResponseDto { /** * Unique municipal service identifier @@ -68,8 +68,11 @@ public class ApiSubscriptionInvoiceConfigGetResponseDto { @JsonProperty("observations") private JsonNullable observations; + /** + * Invoice taxes + */ @JsonProperty("taxes") - private JsonNullable taxes; + private JsonNullable taxes; @JsonIgnore public String getMunicipalServiceId() { @@ -112,17 +115,17 @@ public String getObservations() { } @JsonIgnore - public ApiCustomerInvoiceTaxesDto getTaxes() { + public InvoiceTaxesDto getTaxes() { return taxes.orElse(null); } // Overwrite lombok builder methods - public static class ApiSubscriptionInvoiceConfigGetResponseDtoBuilder { + public static class SubscriptionInvoiceConfigGetResponseDtoBuilder { private JsonNullable municipalServiceId = JsonNullable.undefined(); @JsonProperty("municipalServiceId") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceId(String value) { + public SubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceId(String value) { this.municipalServiceId = JsonNullable.of(value); return this; } @@ -130,7 +133,7 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceId(Stri private JsonNullable municipalServiceCode = JsonNullable.undefined(); @JsonProperty("municipalServiceCode") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceCode(String value) { + public SubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceCode(String value) { this.municipalServiceCode = JsonNullable.of(value); return this; } @@ -138,7 +141,7 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceCode(St private JsonNullable municipalServiceName = JsonNullable.undefined(); @JsonProperty("municipalServiceName") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceName(String value) { + public SubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceName(String value) { this.municipalServiceName = JsonNullable.of(value); return this; } @@ -146,7 +149,7 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder municipalServiceName(St private JsonNullable deductions = JsonNullable.undefined(); @JsonProperty("deductions") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder deductions(Double value) { + public SubscriptionInvoiceConfigGetResponseDtoBuilder deductions(Double value) { this.deductions = JsonNullable.of(value); return this; } @@ -154,7 +157,7 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder deductions(Double value private JsonNullable invoiceCreationPeriod = JsonNullable.undefined(); @JsonProperty("invoiceCreationPeriod") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder invoiceCreationPeriod(InvoiceCreationPeriod value) { + public SubscriptionInvoiceConfigGetResponseDtoBuilder invoiceCreationPeriod(InvoiceCreationPeriod value) { this.invoiceCreationPeriod = JsonNullable.of(value); return this; } @@ -162,7 +165,7 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder invoiceCreationPeriod(I private JsonNullable daysBeforeDueDate = JsonNullable.undefined(); @JsonProperty("daysBeforeDueDate") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder daysBeforeDueDate(Long value) { + public SubscriptionInvoiceConfigGetResponseDtoBuilder daysBeforeDueDate(Long value) { this.daysBeforeDueDate = JsonNullable.of(value); return this; } @@ -170,7 +173,7 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder daysBeforeDueDate(Long private JsonNullable receivedOnly = JsonNullable.undefined(); @JsonProperty("receivedOnly") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder receivedOnly(Boolean value) { + public SubscriptionInvoiceConfigGetResponseDtoBuilder receivedOnly(Boolean value) { this.receivedOnly = JsonNullable.of(value); return this; } @@ -178,15 +181,15 @@ public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder receivedOnly(Boolean va private JsonNullable observations = JsonNullable.undefined(); @JsonProperty("observations") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder observations(String value) { + public SubscriptionInvoiceConfigGetResponseDtoBuilder observations(String value) { this.observations = JsonNullable.of(value); return this; } - private JsonNullable taxes = JsonNullable.undefined(); + private JsonNullable taxes = JsonNullable.undefined(); @JsonProperty("taxes") - public ApiSubscriptionInvoiceConfigGetResponseDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { + public SubscriptionInvoiceConfigGetResponseDtoBuilder taxes(InvoiceTaxesDto 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/SubscriptionInvoiceConfigUpdateRequestDto.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDto.java index d29b87a..bdb58e6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionInvoiceConfigUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionInvoiceConfigUpdateRequestDto { +public class SubscriptionInvoiceConfigUpdateRequestDto { /** * Deductions. Deductions do not change the total value of the invoice, but they do change the ISS calculation basis. @@ -30,7 +30,7 @@ public class ApiSubscriptionInvoiceConfigUpdateRequestDto { * When the invoice will be issued */ @JsonProperty("effectiveDatePeriod") - private JsonNullable effectiveDatePeriod; + private JsonNullable effectiveDatePeriod; /** * Issue only for paid charges @@ -50,8 +50,11 @@ public class ApiSubscriptionInvoiceConfigUpdateRequestDto { @JsonProperty("observations") private JsonNullable observations; + /** + * Invoice taxes + */ @JsonProperty("taxes") - private JsonNullable taxes; + private JsonNullable taxes; @JsonIgnore public Double getDeductions() { @@ -59,7 +62,7 @@ public Double getDeductions() { } @JsonIgnore - public ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod getEffectiveDatePeriod() { + public SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod getEffectiveDatePeriod() { return effectiveDatePeriod.orElse(null); } @@ -79,27 +82,27 @@ public String getObservations() { } @JsonIgnore - public ApiCustomerInvoiceTaxesDto getTaxes() { + public InvoiceTaxesDto getTaxes() { return taxes.orElse(null); } // Overwrite lombok builder methods - public static class ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder { + public static class SubscriptionInvoiceConfigUpdateRequestDtoBuilder { private JsonNullable deductions = JsonNullable.undefined(); @JsonProperty("deductions") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder deductions(Double value) { + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder deductions(Double value) { this.deductions = JsonNullable.of(value); return this; } - private JsonNullable effectiveDatePeriod = + private JsonNullable effectiveDatePeriod = JsonNullable.undefined(); @JsonProperty("effectiveDatePeriod") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder effectiveDatePeriod( - ApiSubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod value + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder effectiveDatePeriod( + SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod value ) { this.effectiveDatePeriod = JsonNullable.of(value); return this; @@ -108,7 +111,7 @@ public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder effectiveDatePeriod( private JsonNullable receivedOnly = JsonNullable.undefined(); @JsonProperty("receivedOnly") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder receivedOnly(Boolean value) { + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder receivedOnly(Boolean value) { this.receivedOnly = JsonNullable.of(value); return this; } @@ -116,7 +119,7 @@ public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder receivedOnly(Boolean private JsonNullable daysBeforeDueDate = JsonNullable.undefined(); @JsonProperty("daysBeforeDueDate") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder daysBeforeDueDate(Long value) { + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder daysBeforeDueDate(Long value) { this.daysBeforeDueDate = JsonNullable.of(value); return this; } @@ -124,15 +127,15 @@ public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder daysBeforeDueDate(Lon private JsonNullable observations = JsonNullable.undefined(); @JsonProperty("observations") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder observations(String value) { + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder observations(String value) { this.observations = JsonNullable.of(value); return this; } - private JsonNullable taxes = JsonNullable.undefined(); + private JsonNullable taxes = JsonNullable.undefined(); @JsonProperty("taxes") - public ApiSubscriptionInvoiceConfigUpdateRequestDtoBuilder taxes(ApiCustomerInvoiceTaxesDto value) { + public SubscriptionInvoiceConfigUpdateRequestDtoBuilder taxes(InvoiceTaxesDto 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/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java index 26fc7d4..8174111 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionInvoiceConfigUpdateRequestDtoEffectiveDatePeriod.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod { +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"), @@ -24,8 +24,8 @@ public enum ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod { private final String value; @JsonCreator - public static ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod fromValue(String value) { - return Arrays.stream(ApiSubscriptionConfigureInvoiceRequestDtoEffectiveDatePeriod.values()) + 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/ApiSubscriptionListPaymentsRequestPaymentStatus.java b/src/main/java/com/asaas/apisdk/models/SubscriptionListPaymentsRequestPaymentStatus.java similarity index 81% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionListPaymentsRequestPaymentStatus.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionListPaymentsRequestPaymentStatus.java index 756ec1b..87df887 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListPaymentsRequestPaymentStatus.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionListPaymentsRequestPaymentStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionListPaymentsRequestPaymentStatus { +public enum SubscriptionListPaymentsRequestPaymentStatus { PENDING("PENDING"), RECEIVED("RECEIVED"), CONFIRMED("CONFIRMED"), @@ -33,8 +33,8 @@ public enum ApiSubscriptionListPaymentsRequestPaymentStatus { private final String value; @JsonCreator - public static ApiSubscriptionListPaymentsRequestPaymentStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionListPaymentsRequestPaymentStatus.values()) + 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/ApiSubscriptionListRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/SubscriptionListRequestBillingType.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionListRequestBillingType.java index 30b4dd3..cb79a45 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionListRequestBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionListRequestBillingType { +public enum SubscriptionListRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -26,8 +26,8 @@ public enum ApiSubscriptionListRequestBillingType { private final String value; @JsonCreator - public static ApiSubscriptionListRequestBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionListRequestBillingType.values()) + 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/ApiSubscriptionListRequestSubscriptionStatus.java b/src/main/java/com/asaas/apisdk/models/SubscriptionListRequestSubscriptionStatus.java similarity index 71% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestSubscriptionStatus.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionListRequestSubscriptionStatus.java index 7b67cea..0e611df 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionListRequestSubscriptionStatus.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionListRequestSubscriptionStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionListRequestSubscriptionStatus { +public enum SubscriptionListRequestSubscriptionStatus { ACTIVE("ACTIVE"), EXPIRED("EXPIRED"), INACTIVE("INACTIVE"); @@ -22,8 +22,8 @@ public enum ApiSubscriptionListRequestSubscriptionStatus { private final String value; @JsonCreator - public static ApiSubscriptionListRequestSubscriptionStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionListRequestSubscriptionStatus.values()) + 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/ApiSubscriptionSaveRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestBillingType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestBillingType.java index 062143f..b7c8f09 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionSaveRequestBillingType { +public enum SubscriptionSaveRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -23,8 +23,8 @@ public enum ApiSubscriptionSaveRequestBillingType { private final String value; @JsonCreator - public static ApiSubscriptionSaveRequestBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveRequestBillingType.values()) + 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/ApiSubscriptionGetResponseCycle.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestCycle.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseCycle.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestCycle.java index 37d61ee..76e5406 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionGetResponseCycle.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestCycle.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionGetResponseCycle { +public enum SubscriptionSaveRequestCycle { WEEKLY("WEEKLY"), BIWEEKLY("BIWEEKLY"), MONTHLY("MONTHLY"), @@ -26,8 +26,8 @@ public enum ApiSubscriptionGetResponseCycle { private final String value; @JsonCreator - public static ApiSubscriptionGetResponseCycle fromValue(String value) { - return Arrays.stream(ApiSubscriptionGetResponseCycle.values()) + 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/ApiSubscriptionSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestDto.java similarity index 61% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestDto.java index e5dc4d1..8305ed6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveRequestDto.java @@ -20,7 +20,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionSaveRequestDto { +public class SubscriptionSaveRequestDto { /** * Unique customer identifier in Asaas @@ -32,7 +32,7 @@ public class ApiSubscriptionSaveRequestDto { * Billing type */ @NonNull - private ApiSubscriptionSaveRequestBillingType billingType; + private SubscriptionSaveRequestBillingType billingType; /** * Subscription value @@ -50,16 +50,25 @@ public class ApiSubscriptionSaveRequestDto { * Billing frequency */ @NonNull - private ApiSubscriptionSaveRequestCycle cycle; + private SubscriptionSaveRequestCycle cycle; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; /** * Subscription description (max. 500 characters) @@ -89,23 +98,26 @@ public class ApiSubscriptionSaveRequestDto { * Split information */ @JsonProperty("split") - private JsonNullable> split; + private JsonNullable> split; + /** + * Automatic redirection information after the payment of the link payment + */ @JsonProperty("callback") - private JsonNullable callback; + private JsonNullable callback; @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { + public PaymentInterestRequestDto getInterest() { return interest.orElse(null); } @JsonIgnore - public ApiPaymentFineRequestDto getFine() { + public PaymentFineRequestDto getFine() { return fine.orElse(null); } @@ -130,38 +142,38 @@ public String getExternalReference() { } @JsonIgnore - public List getSplit() { + public List getSplit() { return split.orElse(null); } @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { + public PaymentCallbackRequestDto getCallback() { return callback.orElse(null); } // Overwrite lombok builder methods - public static class ApiSubscriptionSaveRequestDtoBuilder { + public static class SubscriptionSaveRequestDtoBuilder { - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiSubscriptionSaveRequestDtoBuilder discount(ApiPaymentDiscountDto value) { + public SubscriptionSaveRequestDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiSubscriptionSaveRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { + public SubscriptionSaveRequestDtoBuilder interest(PaymentInterestRequestDto value) { this.interest = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiSubscriptionSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { + public SubscriptionSaveRequestDtoBuilder fine(PaymentFineRequestDto value) { this.fine = JsonNullable.of(value); return this; } @@ -169,7 +181,7 @@ public ApiSubscriptionSaveRequestDtoBuilder fine(ApiPaymentFineRequestDto value) private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiSubscriptionSaveRequestDtoBuilder description(String value) { + public SubscriptionSaveRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -177,7 +189,7 @@ public ApiSubscriptionSaveRequestDtoBuilder description(String value) { private JsonNullable endDate = JsonNullable.undefined(); @JsonProperty("endDate") - public ApiSubscriptionSaveRequestDtoBuilder endDate(String value) { + public SubscriptionSaveRequestDtoBuilder endDate(String value) { this.endDate = JsonNullable.of(value); return this; } @@ -185,7 +197,7 @@ public ApiSubscriptionSaveRequestDtoBuilder endDate(String value) { private JsonNullable maxPayments = JsonNullable.undefined(); @JsonProperty("maxPayments") - public ApiSubscriptionSaveRequestDtoBuilder maxPayments(Long value) { + public SubscriptionSaveRequestDtoBuilder maxPayments(Long value) { this.maxPayments = JsonNullable.of(value); return this; } @@ -193,23 +205,23 @@ public ApiSubscriptionSaveRequestDtoBuilder maxPayments(Long value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiSubscriptionSaveRequestDtoBuilder externalReference(String value) { + public SubscriptionSaveRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } - private JsonNullable> split = JsonNullable.undefined(); + private JsonNullable> split = JsonNullable.undefined(); @JsonProperty("split") - public ApiSubscriptionSaveRequestDtoBuilder split(List value) { + public SubscriptionSaveRequestDtoBuilder split(List value) { this.split = JsonNullable.of(value); return this; } - private JsonNullable callback = JsonNullable.undefined(); + private JsonNullable callback = JsonNullable.undefined(); @JsonProperty("callback") - public ApiSubscriptionSaveRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { + public SubscriptionSaveRequestDtoBuilder callback(PaymentCallbackRequestDto 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/SubscriptionSaveWithCreditCardRequestBillingType.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestBillingType.java index 451c9df..3ed6945 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionSaveWithCreditCardRequestBillingType { +public enum SubscriptionSaveWithCreditCardRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -23,8 +23,8 @@ public enum ApiSubscriptionSaveWithCreditCardRequestBillingType { private final String value; @JsonCreator - public static ApiSubscriptionSaveWithCreditCardRequestBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveWithCreditCardRequestBillingType.values()) + 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/ApiSubscriptionSaveWithCreditCardRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestDto.java similarity index 50% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestDto.java index f3de8d0..851415c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardRequestDto.java @@ -3,7 +3,6 @@ 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; @@ -21,7 +20,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionSaveWithCreditCardRequestDto { +public class SubscriptionSaveWithCreditCardRequestDto { /** * Unique customer identifier in Asaas @@ -33,7 +32,7 @@ public class ApiSubscriptionSaveWithCreditCardRequestDto { * Billing type */ @NonNull - private ApiSubscriptionSaveWithCreditCardRequestBillingType billingType; + private SubscriptionSaveWithCreditCardRequestBillingType billingType; /** * Subscription value @@ -51,13 +50,19 @@ public class ApiSubscriptionSaveWithCreditCardRequestDto { * Billing frequency */ @NonNull - private ApiSubscriptionSaveWithCreditCardRequestCycle cycle; + private SubscriptionSaveWithCreditCardRequestCycle cycle; - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardRequestDto creditCard; + /** + * Credit card information + */ + @NonNull + private CreditCardRequestDto creditCard; - @JsonInclude(JsonInclude.Include.ALWAYS) - private ApiCreditCardHolderInfoRequestDto creditCardHolderInfo; + /** + * 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. @@ -65,14 +70,23 @@ public class ApiSubscriptionSaveWithCreditCardRequestDto { @NonNull private String remoteIp; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; /** * Subscription description (max. 500 characters) @@ -102,10 +116,13 @@ public class ApiSubscriptionSaveWithCreditCardRequestDto { * Split information */ @JsonProperty("split") - private JsonNullable> split; + private JsonNullable> split; + /** + * Automatic redirection information after the payment of the link payment + */ @JsonProperty("callback") - private JsonNullable callback; + private JsonNullable callback; /** * Credit card token for using the credit card tokenization functionality. If informed, the fields above are not mandatory. @@ -114,17 +131,17 @@ public class ApiSubscriptionSaveWithCreditCardRequestDto { private JsonNullable creditCardToken; @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { + public PaymentInterestRequestDto getInterest() { return interest.orElse(null); } @JsonIgnore - public ApiPaymentFineRequestDto getFine() { + public PaymentFineRequestDto getFine() { return fine.orElse(null); } @@ -149,12 +166,12 @@ public String getExternalReference() { } @JsonIgnore - public List getSplit() { + public List getSplit() { return split.orElse(null); } @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { + public PaymentCallbackRequestDto getCallback() { return callback.orElse(null); } @@ -164,52 +181,28 @@ public String getCreditCardToken() { } // 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; - } + public static class SubscriptionSaveWithCreditCardRequestDtoBuilder { - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder discount(ApiPaymentDiscountDto value) { + public SubscriptionSaveWithCreditCardRequestDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { + public SubscriptionSaveWithCreditCardRequestDtoBuilder interest(PaymentInterestRequestDto value) { this.interest = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { + public SubscriptionSaveWithCreditCardRequestDtoBuilder fine(PaymentFineRequestDto value) { this.fine = JsonNullable.of(value); return this; } @@ -217,7 +210,7 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder fine(ApiPaymentFineReq private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder description(String value) { + public SubscriptionSaveWithCreditCardRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -225,7 +218,7 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder description(String val private JsonNullable endDate = JsonNullable.undefined(); @JsonProperty("endDate") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder endDate(String value) { + public SubscriptionSaveWithCreditCardRequestDtoBuilder endDate(String value) { this.endDate = JsonNullable.of(value); return this; } @@ -233,7 +226,7 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder endDate(String value) private JsonNullable maxPayments = JsonNullable.undefined(); @JsonProperty("maxPayments") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder maxPayments(Long value) { + public SubscriptionSaveWithCreditCardRequestDtoBuilder maxPayments(Long value) { this.maxPayments = JsonNullable.of(value); return this; } @@ -241,23 +234,23 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder maxPayments(Long value private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder externalReference(String value) { + public SubscriptionSaveWithCreditCardRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } - private JsonNullable> split = JsonNullable.undefined(); + private JsonNullable> split = JsonNullable.undefined(); @JsonProperty("split") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder split(List value) { + public SubscriptionSaveWithCreditCardRequestDtoBuilder split(List value) { this.split = JsonNullable.of(value); return this; } - private JsonNullable callback = JsonNullable.undefined(); + private JsonNullable callback = JsonNullable.undefined(); @JsonProperty("callback") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { + public SubscriptionSaveWithCreditCardRequestDtoBuilder callback(PaymentCallbackRequestDto value) { this.callback = JsonNullable.of(value); return this; } @@ -265,38 +258,9 @@ public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder callback(ApiPaymentCal private JsonNullable creditCardToken = JsonNullable.undefined(); @JsonProperty("creditCardToken") - public ApiSubscriptionSaveWithCreditCardRequestDtoBuilder creditCardToken(String value) { + public SubscriptionSaveWithCreditCardRequestDtoBuilder 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/SubscriptionSaveWithCreditCardResponseBillingType.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseBillingType.java index fe97d6d..4c1a108 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionSaveWithCreditCardResponseBillingType { +public enum SubscriptionSaveWithCreditCardResponseBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -26,8 +26,8 @@ public enum ApiSubscriptionSaveWithCreditCardResponseBillingType { private final String value; @JsonCreator - public static ApiSubscriptionSaveWithCreditCardResponseBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveWithCreditCardResponseBillingType.values()) + 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/ApiSubscriptionSaveWithCreditCardResponseDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseDto.java similarity index 63% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseDto.java index 9ea6f4e..bd5c668 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionSaveWithCreditCardResponseDto { +public class SubscriptionSaveWithCreditCardResponseDto { /** * Object type @@ -55,13 +55,13 @@ public class ApiSubscriptionSaveWithCreditCardResponseDto { * Billing type */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Billing frequency */ @JsonProperty("cycle") - private JsonNullable cycle; + private JsonNullable cycle; /** * Subscription value @@ -91,16 +91,25 @@ public class ApiSubscriptionSaveWithCreditCardResponseDto { * Subscription status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; /** * Informs if the subscription has been removed @@ -130,10 +139,13 @@ public class ApiSubscriptionSaveWithCreditCardResponseDto { * Split information */ @JsonProperty("split") - private JsonNullable> split; + private JsonNullable> split; + /** + * Credit card information + */ @JsonProperty("creditCard") - private JsonNullable creditCard; + private JsonNullable creditCard; @JsonIgnore public String getObject() { @@ -161,12 +173,12 @@ public String getPaymentLink() { } @JsonIgnore - public ApiSubscriptionSaveWithCreditCardResponseBillingType getBillingType() { + public SubscriptionSaveWithCreditCardResponseBillingType getBillingType() { return billingType.orElse(null); } @JsonIgnore - public ApiSubscriptionSaveWithCreditCardResponseCycle getCycle() { + public SubscriptionSaveWithCreditCardResponseCycle getCycle() { return cycle.orElse(null); } @@ -191,22 +203,22 @@ public String getDescription() { } @JsonIgnore - public ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus getStatus() { + public SubscriptionSaveWithCreditCardResponseSubscriptionStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentFineResponseDto getFine() { + public PaymentFineResponseDto getFine() { return fine.orElse(null); } @JsonIgnore - public ApiPaymentInterestResponseDto getInterest() { + public PaymentInterestResponseDto getInterest() { return interest.orElse(null); } @@ -231,22 +243,22 @@ public String getCheckoutSession() { } @JsonIgnore - public List getSplit() { + public List getSplit() { return split.orElse(null); } @JsonIgnore - public ApiPaymentSaveWithCreditCardCreditCardDto getCreditCard() { + public PaymentSaveWithCreditCardCreditCardDto getCreditCard() { return creditCard.orElse(null); } // Overwrite lombok builder methods - public static class ApiSubscriptionSaveWithCreditCardResponseDtoBuilder { + public static class SubscriptionSaveWithCreditCardResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder object(String value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -254,7 +266,7 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder object(String value) private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder id(String value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -262,7 +274,7 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder id(String value) { private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder dateCreated(String value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -270,7 +282,7 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder dateCreated(String va private JsonNullable customer = JsonNullable.undefined(); @JsonProperty("customer") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder customer(String value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder customer(String value) { this.customer = JsonNullable.of(value); return this; } @@ -278,27 +290,25 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder customer(String value private JsonNullable paymentLink = JsonNullable.undefined(); @JsonProperty("paymentLink") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder paymentLink(String value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder paymentLink(String value) { this.paymentLink = JsonNullable.of(value); return this; } - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder billingType( - ApiSubscriptionSaveWithCreditCardResponseBillingType value + public SubscriptionSaveWithCreditCardResponseDtoBuilder billingType( + SubscriptionSaveWithCreditCardResponseBillingType value ) { this.billingType = JsonNullable.of(value); return this; } - private JsonNullable cycle = JsonNullable.undefined(); + private JsonNullable cycle = JsonNullable.undefined(); @JsonProperty("cycle") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder cycle( - ApiSubscriptionSaveWithCreditCardResponseCycle value - ) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder cycle(SubscriptionSaveWithCreditCardResponseCycle value) { this.cycle = JsonNullable.of(value); return this; } @@ -306,7 +316,7 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder cycle( private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder value(Double value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -314,7 +324,7 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder value(Double value) { private JsonNullable nextDueDate = JsonNullable.undefined(); @JsonProperty("nextDueDate") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder nextDueDate(String value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder nextDueDate(String value) { this.nextDueDate = JsonNullable.of(value); return this; } @@ -322,7 +332,7 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder nextDueDate(String va private JsonNullable endDate = JsonNullable.undefined(); @JsonProperty("endDate") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder endDate(String value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder endDate(String value) { this.endDate = JsonNullable.of(value); return this; } @@ -330,41 +340,41 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder endDate(String value) private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder description(String value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder status( - ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus value + public SubscriptionSaveWithCreditCardResponseDtoBuilder status( + SubscriptionSaveWithCreditCardResponseSubscriptionStatus value ) { this.status = JsonNullable.of(value); return this; } - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder discount(ApiPaymentDiscountDto value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder fine(ApiPaymentFineResponseDto value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder fine(PaymentFineResponseDto value) { this.fine = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder interest(ApiPaymentInterestResponseDto value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder interest(PaymentInterestResponseDto value) { this.interest = JsonNullable.of(value); return this; } @@ -372,7 +382,7 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder interest(ApiPaymentIn private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder deleted(Boolean value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -380,7 +390,7 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder deleted(Boolean value private JsonNullable maxPayments = JsonNullable.undefined(); @JsonProperty("maxPayments") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder maxPayments(Long value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder maxPayments(Long value) { this.maxPayments = JsonNullable.of(value); return this; } @@ -388,7 +398,7 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder maxPayments(Long valu private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder externalReference(String value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -396,25 +406,23 @@ public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder externalReference(Str private JsonNullable checkoutSession = JsonNullable.undefined(); @JsonProperty("checkoutSession") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder checkoutSession(String value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder checkoutSession(String value) { this.checkoutSession = JsonNullable.of(value); return this; } - private JsonNullable> split = JsonNullable.undefined(); + private JsonNullable> split = JsonNullable.undefined(); @JsonProperty("split") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder split(List value) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder split(List value) { this.split = JsonNullable.of(value); return this; } - private JsonNullable creditCard = JsonNullable.undefined(); + private JsonNullable creditCard = JsonNullable.undefined(); @JsonProperty("creditCard") - public ApiSubscriptionSaveWithCreditCardResponseDtoBuilder creditCard( - ApiPaymentSaveWithCreditCardCreditCardDto value - ) { + public SubscriptionSaveWithCreditCardResponseDtoBuilder creditCard(PaymentSaveWithCreditCardCreditCardDto 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/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.java similarity index 67% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.java index 4e92fa4..cff2f9e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSaveWithCreditCardResponseSubscriptionStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus { +public enum SubscriptionSaveWithCreditCardResponseSubscriptionStatus { ACTIVE("ACTIVE"), EXPIRED("EXPIRED"), INACTIVE("INACTIVE"); @@ -22,8 +22,8 @@ public enum ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus { private final String value; @JsonCreator - public static ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionSaveWithCreditCardResponseSubscriptionStatus.values()) + 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/ApiSubscriptionSplitRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitRequestDto.java similarity index 84% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitRequestDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSplitRequestDto.java index 7cd4685..375b091 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitRequestDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Split information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionSplitRequestDto { +public class SubscriptionSplitRequestDto { /** * Asaas wallet identifier that will be transferred @@ -72,12 +75,12 @@ public String getDescription() { } // Overwrite lombok builder methods - public static class ApiSubscriptionSplitRequestDtoBuilder { + public static class SubscriptionSplitRequestDtoBuilder { private JsonNullable fixedValue = JsonNullable.undefined(); @JsonProperty("fixedValue") - public ApiSubscriptionSplitRequestDtoBuilder fixedValue(Double value) { + public SubscriptionSplitRequestDtoBuilder fixedValue(Double value) { this.fixedValue = JsonNullable.of(value); return this; } @@ -85,7 +88,7 @@ public ApiSubscriptionSplitRequestDtoBuilder fixedValue(Double value) { private JsonNullable percentualValue = JsonNullable.undefined(); @JsonProperty("percentualValue") - public ApiSubscriptionSplitRequestDtoBuilder percentualValue(Double value) { + public SubscriptionSplitRequestDtoBuilder percentualValue(Double value) { this.percentualValue = JsonNullable.of(value); return this; } @@ -93,7 +96,7 @@ public ApiSubscriptionSplitRequestDtoBuilder percentualValue(Double value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiSubscriptionSplitRequestDtoBuilder externalReference(String value) { + public SubscriptionSplitRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -101,7 +104,7 @@ public ApiSubscriptionSplitRequestDtoBuilder externalReference(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiSubscriptionSplitRequestDtoBuilder description(String value) { + public SubscriptionSplitRequestDtoBuilder 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/SubscriptionSplitResponseDto.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseDto.java index e4252da..ac646ef 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Split information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionSplitResponseDto { +public class SubscriptionSplitResponseDto { /** * Asaas wallet identifier that will be transferred @@ -54,13 +57,13 @@ public class ApiSubscriptionSplitResponseDto { * Subscription split status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Reason why subscription split was disabled */ @JsonProperty("disabledReason") - private JsonNullable disabledReason; + private JsonNullable disabledReason; @JsonIgnore public String getWalletId() { @@ -88,22 +91,22 @@ public String getDescription() { } @JsonIgnore - public ApiSubscriptionSplitResponseSubscriptionSplitStatus getStatus() { + public SubscriptionSplitResponseSubscriptionSplitStatus getStatus() { return status.orElse(null); } @JsonIgnore - public ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason getDisabledReason() { + public SubscriptionSplitResponseSubscriptionSplitDisabledReason getDisabledReason() { return disabledReason.orElse(null); } // Overwrite lombok builder methods - public static class ApiSubscriptionSplitResponseDtoBuilder { + public static class SubscriptionSplitResponseDtoBuilder { private JsonNullable walletId = JsonNullable.undefined(); @JsonProperty("walletId") - public ApiSubscriptionSplitResponseDtoBuilder walletId(String value) { + public SubscriptionSplitResponseDtoBuilder walletId(String value) { this.walletId = JsonNullable.of(value); return this; } @@ -111,7 +114,7 @@ public ApiSubscriptionSplitResponseDtoBuilder walletId(String value) { private JsonNullable fixedValue = JsonNullable.undefined(); @JsonProperty("fixedValue") - public ApiSubscriptionSplitResponseDtoBuilder fixedValue(Double value) { + public SubscriptionSplitResponseDtoBuilder fixedValue(Double value) { this.fixedValue = JsonNullable.of(value); return this; } @@ -119,7 +122,7 @@ public ApiSubscriptionSplitResponseDtoBuilder fixedValue(Double value) { private JsonNullable percentualValue = JsonNullable.undefined(); @JsonProperty("percentualValue") - public ApiSubscriptionSplitResponseDtoBuilder percentualValue(Double value) { + public SubscriptionSplitResponseDtoBuilder percentualValue(Double value) { this.percentualValue = JsonNullable.of(value); return this; } @@ -127,7 +130,7 @@ public ApiSubscriptionSplitResponseDtoBuilder percentualValue(Double value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiSubscriptionSplitResponseDtoBuilder externalReference(String value) { + public SubscriptionSplitResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -135,25 +138,25 @@ public ApiSubscriptionSplitResponseDtoBuilder externalReference(String value) { private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiSubscriptionSplitResponseDtoBuilder description(String value) { + public SubscriptionSplitResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiSubscriptionSplitResponseDtoBuilder status(ApiSubscriptionSplitResponseSubscriptionSplitStatus value) { + public SubscriptionSplitResponseDtoBuilder status(SubscriptionSplitResponseSubscriptionSplitStatus value) { this.status = JsonNullable.of(value); return this; } - private JsonNullable disabledReason = + private JsonNullable disabledReason = JsonNullable.undefined(); @JsonProperty("disabledReason") - public ApiSubscriptionSplitResponseDtoBuilder disabledReason( - ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason value + public SubscriptionSplitResponseDtoBuilder disabledReason( + SubscriptionSplitResponseSubscriptionSplitDisabledReason 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/SubscriptionSplitResponseSubscriptionSplitDisabledReason.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.java index 8ebccae..1b7eac6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitDisabledReason.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason { +public enum SubscriptionSplitResponseSubscriptionSplitDisabledReason { WALLET_UNABLE_TO_RECEIVE("WALLET_UNABLE_TO_RECEIVE"), VALUE_DIVERGENCE("VALUE_DIVERGENCE"); @@ -21,8 +21,8 @@ public enum ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason { private final String value; @JsonCreator - public static ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason fromValue(String value) { - return Arrays.stream(ApiSubscriptionSplitResponseSubscriptionSplitDisabledReason.values()) + 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/ApiSubscriptionSplitResponseSubscriptionSplitStatus.java b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitStatus.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitStatus.java index e39716b..ad0d74e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionSplitResponseSubscriptionSplitStatus.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionSplitResponseSubscriptionSplitStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionSplitResponseSubscriptionSplitStatus { +public enum SubscriptionSplitResponseSubscriptionSplitStatus { ACTIVE("ACTIVE"), DISABLED("DISABLED"); @@ -21,8 +21,8 @@ public enum ApiSubscriptionSplitResponseSubscriptionSplitStatus { private final String value; @JsonCreator - public static ApiSubscriptionSplitResponseSubscriptionSplitStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionSplitResponseSubscriptionSplitStatus.values()) + 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/ApiSubscriptionUpdateRequestBillingType.java b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestBillingType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestBillingType.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestBillingType.java index fee893f..f49242f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestBillingType.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestBillingType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionUpdateRequestBillingType { +public enum SubscriptionUpdateRequestBillingType { UNDEFINED("UNDEFINED"), BOLETO("BOLETO"), CREDIT_CARD("CREDIT_CARD"), @@ -23,8 +23,8 @@ public enum ApiSubscriptionUpdateRequestBillingType { private final String value; @JsonCreator - public static ApiSubscriptionUpdateRequestBillingType fromValue(String value) { - return Arrays.stream(ApiSubscriptionUpdateRequestBillingType.values()) + 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/ApiCheckoutSessionSubscriptionCycle.java b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestCycle.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionCycle.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestCycle.java index efe2776..2b21efb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiCheckoutSessionSubscriptionCycle.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestCycle.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiCheckoutSessionSubscriptionCycle { +public enum SubscriptionUpdateRequestCycle { WEEKLY("WEEKLY"), BIWEEKLY("BIWEEKLY"), MONTHLY("MONTHLY"), @@ -26,8 +26,8 @@ public enum ApiCheckoutSessionSubscriptionCycle { private final String value; @JsonCreator - public static ApiCheckoutSessionSubscriptionCycle fromValue(String value) { - return Arrays.stream(ApiCheckoutSessionSubscriptionCycle.values()) + 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/ApiSubscriptionUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestDto.java similarity index 57% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestDto.java index b54e5da..227f4e0 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestDto.java @@ -19,19 +19,19 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiSubscriptionUpdateRequestDto { +public class SubscriptionUpdateRequestDto { /** * Billing type */ @JsonProperty("billingType") - private JsonNullable billingType; + private JsonNullable billingType; /** * Subscription status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * First payment due @@ -39,20 +39,29 @@ public class ApiSubscriptionUpdateRequestDto { @JsonProperty("nextDueDate") private JsonNullable nextDueDate; + /** + * Discount information + */ @JsonProperty("discount") - private JsonNullable discount; + private JsonNullable discount; + /** + * Interest information for payment after due date + */ @JsonProperty("interest") - private JsonNullable interest; + private JsonNullable interest; + /** + * Fine information for payment after due date + */ @JsonProperty("fine") - private JsonNullable fine; + private JsonNullable fine; /** * Billing frequency */ @JsonProperty("cycle") - private JsonNullable cycle; + private JsonNullable cycle; /** * Subscription description (max. 500 characters) @@ -82,18 +91,21 @@ public class ApiSubscriptionUpdateRequestDto { * Split information */ @JsonProperty("split") - private JsonNullable> split; + private JsonNullable> split; + /** + * Automatic redirection information after the payment of the link payment + */ @JsonProperty("callback") - private JsonNullable callback; + private JsonNullable callback; @JsonIgnore - public ApiSubscriptionUpdateRequestBillingType getBillingType() { + public SubscriptionUpdateRequestBillingType getBillingType() { return billingType.orElse(null); } @JsonIgnore - public ApiSubscriptionUpdateRequestSubscriptionStatus getStatus() { + public SubscriptionUpdateRequestSubscriptionStatus getStatus() { return status.orElse(null); } @@ -103,22 +115,22 @@ public String getNextDueDate() { } @JsonIgnore - public ApiPaymentDiscountDto getDiscount() { + public PaymentDiscountDto getDiscount() { return discount.orElse(null); } @JsonIgnore - public ApiPaymentInterestRequestDto getInterest() { + public PaymentInterestRequestDto getInterest() { return interest.orElse(null); } @JsonIgnore - public ApiPaymentFineRequestDto getFine() { + public PaymentFineRequestDto getFine() { return fine.orElse(null); } @JsonIgnore - public ApiSubscriptionUpdateRequestCycle getCycle() { + public SubscriptionUpdateRequestCycle getCycle() { return cycle.orElse(null); } @@ -143,30 +155,30 @@ public String getExternalReference() { } @JsonIgnore - public List getSplit() { + public List getSplit() { return split.orElse(null); } @JsonIgnore - public ApiPaymentCallbackRequestDto getCallback() { + public PaymentCallbackRequestDto getCallback() { return callback.orElse(null); } // Overwrite lombok builder methods - public static class ApiSubscriptionUpdateRequestDtoBuilder { + public static class SubscriptionUpdateRequestDtoBuilder { - private JsonNullable billingType = JsonNullable.undefined(); + private JsonNullable billingType = JsonNullable.undefined(); @JsonProperty("billingType") - public ApiSubscriptionUpdateRequestDtoBuilder billingType(ApiSubscriptionUpdateRequestBillingType value) { + public SubscriptionUpdateRequestDtoBuilder billingType(SubscriptionUpdateRequestBillingType value) { this.billingType = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiSubscriptionUpdateRequestDtoBuilder status(ApiSubscriptionUpdateRequestSubscriptionStatus value) { + public SubscriptionUpdateRequestDtoBuilder status(SubscriptionUpdateRequestSubscriptionStatus value) { this.status = JsonNullable.of(value); return this; } @@ -174,39 +186,39 @@ public ApiSubscriptionUpdateRequestDtoBuilder status(ApiSubscriptionUpdateReques private JsonNullable nextDueDate = JsonNullable.undefined(); @JsonProperty("nextDueDate") - public ApiSubscriptionUpdateRequestDtoBuilder nextDueDate(String value) { + public SubscriptionUpdateRequestDtoBuilder nextDueDate(String value) { this.nextDueDate = JsonNullable.of(value); return this; } - private JsonNullable discount = JsonNullable.undefined(); + private JsonNullable discount = JsonNullable.undefined(); @JsonProperty("discount") - public ApiSubscriptionUpdateRequestDtoBuilder discount(ApiPaymentDiscountDto value) { + public SubscriptionUpdateRequestDtoBuilder discount(PaymentDiscountDto value) { this.discount = JsonNullable.of(value); return this; } - private JsonNullable interest = JsonNullable.undefined(); + private JsonNullable interest = JsonNullable.undefined(); @JsonProperty("interest") - public ApiSubscriptionUpdateRequestDtoBuilder interest(ApiPaymentInterestRequestDto value) { + public SubscriptionUpdateRequestDtoBuilder interest(PaymentInterestRequestDto value) { this.interest = JsonNullable.of(value); return this; } - private JsonNullable fine = JsonNullable.undefined(); + private JsonNullable fine = JsonNullable.undefined(); @JsonProperty("fine") - public ApiSubscriptionUpdateRequestDtoBuilder fine(ApiPaymentFineRequestDto value) { + public SubscriptionUpdateRequestDtoBuilder fine(PaymentFineRequestDto value) { this.fine = JsonNullable.of(value); return this; } - private JsonNullable cycle = JsonNullable.undefined(); + private JsonNullable cycle = JsonNullable.undefined(); @JsonProperty("cycle") - public ApiSubscriptionUpdateRequestDtoBuilder cycle(ApiSubscriptionUpdateRequestCycle value) { + public SubscriptionUpdateRequestDtoBuilder cycle(SubscriptionUpdateRequestCycle value) { this.cycle = JsonNullable.of(value); return this; } @@ -214,7 +226,7 @@ public ApiSubscriptionUpdateRequestDtoBuilder cycle(ApiSubscriptionUpdateRequest private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiSubscriptionUpdateRequestDtoBuilder description(String value) { + public SubscriptionUpdateRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -222,7 +234,7 @@ public ApiSubscriptionUpdateRequestDtoBuilder description(String value) { private JsonNullable endDate = JsonNullable.undefined(); @JsonProperty("endDate") - public ApiSubscriptionUpdateRequestDtoBuilder endDate(String value) { + public SubscriptionUpdateRequestDtoBuilder endDate(String value) { this.endDate = JsonNullable.of(value); return this; } @@ -230,7 +242,7 @@ public ApiSubscriptionUpdateRequestDtoBuilder endDate(String value) { private JsonNullable updatePendingPayments = JsonNullable.undefined(); @JsonProperty("updatePendingPayments") - public ApiSubscriptionUpdateRequestDtoBuilder updatePendingPayments(Boolean value) { + public SubscriptionUpdateRequestDtoBuilder updatePendingPayments(Boolean value) { this.updatePendingPayments = JsonNullable.of(value); return this; } @@ -238,23 +250,23 @@ public ApiSubscriptionUpdateRequestDtoBuilder updatePendingPayments(Boolean valu private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiSubscriptionUpdateRequestDtoBuilder externalReference(String value) { + public SubscriptionUpdateRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } - private JsonNullable> split = JsonNullable.undefined(); + private JsonNullable> split = JsonNullable.undefined(); @JsonProperty("split") - public ApiSubscriptionUpdateRequestDtoBuilder split(List value) { + public SubscriptionUpdateRequestDtoBuilder split(List value) { this.split = JsonNullable.of(value); return this; } - private JsonNullable callback = JsonNullable.undefined(); + private JsonNullable callback = JsonNullable.undefined(); @JsonProperty("callback") - public ApiSubscriptionUpdateRequestDtoBuilder callback(ApiPaymentCallbackRequestDto value) { + public SubscriptionUpdateRequestDtoBuilder callback(PaymentCallbackRequestDto 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/SubscriptionUpdateRequestSubscriptionStatus.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestSubscriptionStatus.java rename to src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestSubscriptionStatus.java index e365ce9..bc57d11 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiSubscriptionUpdateRequestSubscriptionStatus.java +++ b/src/main/java/com/asaas/apisdk/models/SubscriptionUpdateRequestSubscriptionStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiSubscriptionUpdateRequestSubscriptionStatus { +public enum SubscriptionUpdateRequestSubscriptionStatus { ACTIVE("ACTIVE"), INACTIVE("INACTIVE"); @@ -21,8 +21,8 @@ public enum ApiSubscriptionUpdateRequestSubscriptionStatus { private final String value; @JsonCreator - public static ApiSubscriptionUpdateRequestSubscriptionStatus fromValue(String value) { - return Arrays.stream(ApiSubscriptionUpdateRequestSubscriptionStatus.values()) + 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/ApiTransferBankAccountGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/TransferBankAccountGetResponseDto.java similarity index 77% rename from src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/TransferBankAccountGetResponseDto.java index 6adf2b2..ac3185e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/TransferBankAccountGetResponseDto.java @@ -12,16 +12,22 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Bank account details + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiTransferBankAccountGetResponseDto { +public class TransferBankAccountGetResponseDto { + /** + * Bank account name + */ @JsonProperty("bank") - private JsonNullable bank; + private JsonNullable bank; /** * Name of bank account owner @@ -72,7 +78,7 @@ public class ApiTransferBankAccountGetResponseDto { private JsonNullable pixAddressKey; @JsonIgnore - public ApiTransferBankGetResponseDto getBank() { + public TransferBankGetResponseDto getBank() { return bank.orElse(null); } @@ -117,12 +123,12 @@ public String getPixAddressKey() { } // Overwrite lombok builder methods - public static class ApiTransferBankAccountGetResponseDtoBuilder { + public static class TransferBankAccountGetResponseDtoBuilder { - private JsonNullable bank = JsonNullable.undefined(); + private JsonNullable bank = JsonNullable.undefined(); @JsonProperty("bank") - public ApiTransferBankAccountGetResponseDtoBuilder bank(ApiTransferBankGetResponseDto value) { + public TransferBankAccountGetResponseDtoBuilder bank(TransferBankGetResponseDto value) { this.bank = JsonNullable.of(value); return this; } @@ -130,7 +136,7 @@ public ApiTransferBankAccountGetResponseDtoBuilder bank(ApiTransferBankGetRespon private JsonNullable accountName = JsonNullable.undefined(); @JsonProperty("accountName") - public ApiTransferBankAccountGetResponseDtoBuilder accountName(String value) { + public TransferBankAccountGetResponseDtoBuilder accountName(String value) { this.accountName = JsonNullable.of(value); return this; } @@ -138,7 +144,7 @@ public ApiTransferBankAccountGetResponseDtoBuilder accountName(String value) { private JsonNullable ownerName = JsonNullable.undefined(); @JsonProperty("ownerName") - public ApiTransferBankAccountGetResponseDtoBuilder ownerName(String value) { + public TransferBankAccountGetResponseDtoBuilder ownerName(String value) { this.ownerName = JsonNullable.of(value); return this; } @@ -146,7 +152,7 @@ public ApiTransferBankAccountGetResponseDtoBuilder ownerName(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiTransferBankAccountGetResponseDtoBuilder cpfCnpj(String value) { + public TransferBankAccountGetResponseDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } @@ -154,7 +160,7 @@ public ApiTransferBankAccountGetResponseDtoBuilder cpfCnpj(String value) { private JsonNullable agency = JsonNullable.undefined(); @JsonProperty("agency") - public ApiTransferBankAccountGetResponseDtoBuilder agency(String value) { + public TransferBankAccountGetResponseDtoBuilder agency(String value) { this.agency = JsonNullable.of(value); return this; } @@ -162,7 +168,7 @@ public ApiTransferBankAccountGetResponseDtoBuilder agency(String value) { private JsonNullable agencyDigit = JsonNullable.undefined(); @JsonProperty("agencyDigit") - public ApiTransferBankAccountGetResponseDtoBuilder agencyDigit(String value) { + public TransferBankAccountGetResponseDtoBuilder agencyDigit(String value) { this.agencyDigit = JsonNullable.of(value); return this; } @@ -170,7 +176,7 @@ public ApiTransferBankAccountGetResponseDtoBuilder agencyDigit(String value) { private JsonNullable account = JsonNullable.undefined(); @JsonProperty("account") - public ApiTransferBankAccountGetResponseDtoBuilder account(String value) { + public TransferBankAccountGetResponseDtoBuilder account(String value) { this.account = JsonNullable.of(value); return this; } @@ -178,7 +184,7 @@ public ApiTransferBankAccountGetResponseDtoBuilder account(String value) { private JsonNullable accountDigit = JsonNullable.undefined(); @JsonProperty("accountDigit") - public ApiTransferBankAccountGetResponseDtoBuilder accountDigit(String value) { + public TransferBankAccountGetResponseDtoBuilder accountDigit(String value) { this.accountDigit = JsonNullable.of(value); return this; } @@ -186,7 +192,7 @@ public ApiTransferBankAccountGetResponseDtoBuilder accountDigit(String value) { private JsonNullable pixAddressKey = JsonNullable.undefined(); @JsonProperty("pixAddressKey") - public ApiTransferBankAccountGetResponseDtoBuilder pixAddressKey(String value) { + public TransferBankAccountGetResponseDtoBuilder 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/TransferBankAccountSaveRequestBankAccountType.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestBankAccountType.java rename to src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestBankAccountType.java index 85b8e72..16a856a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestBankAccountType.java +++ b/src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestBankAccountType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiTransferBankAccountSaveRequestBankAccountType { +public enum TransferBankAccountSaveRequestBankAccountType { CONTA_CORRENTE("CONTA_CORRENTE"), CONTA_POUPANCA("CONTA_POUPANCA"); @@ -21,8 +21,8 @@ public enum ApiTransferBankAccountSaveRequestBankAccountType { private final String value; @JsonCreator - public static ApiTransferBankAccountSaveRequestBankAccountType fromValue(String value) { - return Arrays.stream(ApiTransferBankAccountSaveRequestBankAccountType.values()) + 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/ApiTransferBankAccountSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestDto.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestDto.java index 0300ed7..87a25e3 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferBankAccountSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/TransferBankAccountSaveRequestDto.java @@ -13,13 +13,16 @@ 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 ApiTransferBankAccountSaveRequestDto { +public class TransferBankAccountSaveRequestDto { /** * Name of bank account owner @@ -51,8 +54,11 @@ public class ApiTransferBankAccountSaveRequestDto { @NonNull private String accountDigit; + /** + * Details of the bank account to which the transfer will be made + */ @JsonProperty("bank") - private JsonNullable bank; + private JsonNullable bank; /** * Bank account name @@ -70,7 +76,7 @@ public class ApiTransferBankAccountSaveRequestDto { * Account type */ @JsonProperty("bankAccountType") - private JsonNullable bankAccountType; + private JsonNullable bankAccountType; /** * Identifier in the Brazilian Payment System @@ -79,7 +85,7 @@ public class ApiTransferBankAccountSaveRequestDto { private JsonNullable ispb; @JsonIgnore - public ApiTransferBankSaveRequestDto getBank() { + public TransferBankSaveRequestDto getBank() { return bank.orElse(null); } @@ -94,7 +100,7 @@ public String getOwnerBirthDate() { } @JsonIgnore - public ApiTransferBankAccountSaveRequestBankAccountType getBankAccountType() { + public TransferBankAccountSaveRequestBankAccountType getBankAccountType() { return bankAccountType.orElse(null); } @@ -104,12 +110,12 @@ public String getIspb() { } // Overwrite lombok builder methods - public static class ApiTransferBankAccountSaveRequestDtoBuilder { + public static class TransferBankAccountSaveRequestDtoBuilder { - private JsonNullable bank = JsonNullable.undefined(); + private JsonNullable bank = JsonNullable.undefined(); @JsonProperty("bank") - public ApiTransferBankAccountSaveRequestDtoBuilder bank(ApiTransferBankSaveRequestDto value) { + public TransferBankAccountSaveRequestDtoBuilder bank(TransferBankSaveRequestDto value) { this.bank = JsonNullable.of(value); return this; } @@ -117,7 +123,7 @@ public ApiTransferBankAccountSaveRequestDtoBuilder bank(ApiTransferBankSaveReque private JsonNullable accountName = JsonNullable.undefined(); @JsonProperty("accountName") - public ApiTransferBankAccountSaveRequestDtoBuilder accountName(String value) { + public TransferBankAccountSaveRequestDtoBuilder accountName(String value) { this.accountName = JsonNullable.of(value); return this; } @@ -125,16 +131,16 @@ public ApiTransferBankAccountSaveRequestDtoBuilder accountName(String value) { private JsonNullable ownerBirthDate = JsonNullable.undefined(); @JsonProperty("ownerBirthDate") - public ApiTransferBankAccountSaveRequestDtoBuilder ownerBirthDate(String value) { + public TransferBankAccountSaveRequestDtoBuilder ownerBirthDate(String value) { this.ownerBirthDate = JsonNullable.of(value); return this; } - private JsonNullable bankAccountType = JsonNullable.undefined(); + private JsonNullable bankAccountType = JsonNullable.undefined(); @JsonProperty("bankAccountType") - public ApiTransferBankAccountSaveRequestDtoBuilder bankAccountType( - ApiTransferBankAccountSaveRequestBankAccountType value + public TransferBankAccountSaveRequestDtoBuilder bankAccountType( + TransferBankAccountSaveRequestBankAccountType value ) { this.bankAccountType = JsonNullable.of(value); return this; @@ -143,7 +149,7 @@ public ApiTransferBankAccountSaveRequestDtoBuilder bankAccountType( private JsonNullable ispb = JsonNullable.undefined(); @JsonProperty("ispb") - public ApiTransferBankAccountSaveRequestDtoBuilder ispb(String value) { + public TransferBankAccountSaveRequestDtoBuilder 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/TransferBankGetResponseDto.java similarity index 82% rename from src/main/java/com/asaas/apisdk/models/ApiTransferBankGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/TransferBankGetResponseDto.java index af6fa29..f6ee0f5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferBankGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/TransferBankGetResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Bank account name + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiTransferBankGetResponseDto { +public class TransferBankGetResponseDto { /** * Identifier in the Brazilian Payment System @@ -54,12 +57,12 @@ public String getName() { } // Overwrite lombok builder methods - public static class ApiTransferBankGetResponseDtoBuilder { + public static class TransferBankGetResponseDtoBuilder { private JsonNullable ispb = JsonNullable.undefined(); @JsonProperty("ispb") - public ApiTransferBankGetResponseDtoBuilder ispb(String value) { + public TransferBankGetResponseDtoBuilder ispb(String value) { this.ispb = JsonNullable.of(value); return this; } @@ -67,7 +70,7 @@ public ApiTransferBankGetResponseDtoBuilder ispb(String value) { private JsonNullable code = JsonNullable.undefined(); @JsonProperty("code") - public ApiTransferBankGetResponseDtoBuilder code(String value) { + public TransferBankGetResponseDtoBuilder code(String value) { this.code = JsonNullable.of(value); return this; } @@ -75,7 +78,7 @@ public ApiTransferBankGetResponseDtoBuilder code(String value) { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiTransferBankGetResponseDtoBuilder name(String value) { + public TransferBankGetResponseDtoBuilder 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/TransferBankSaveRequestDto.java similarity index 79% rename from src/main/java/com/asaas/apisdk/models/ApiTransferBankSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/TransferBankSaveRequestDto.java index d1be583..f6278bb 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferBankSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/TransferBankSaveRequestDto.java @@ -10,13 +10,16 @@ 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 ApiTransferBankSaveRequestDto { +public class TransferBankSaveRequestDto { /** * Bank clearing code in the banking system diff --git a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/TransferGetResponseDto.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/TransferGetResponseDto.java index 52f4b37..a71de1e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/TransferGetResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiTransferGetResponseDto { +public class TransferGetResponseDto { /** * Object type @@ -36,7 +36,7 @@ public class ApiTransferGetResponseDto { * Type of transfer */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Transfer request date @@ -60,7 +60,7 @@ public class ApiTransferGetResponseDto { * Transfer status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Transfer rate @@ -114,7 +114,7 @@ public class ApiTransferGetResponseDto { * Transfer method */ @JsonProperty("operationType") - private JsonNullable operationType; + private JsonNullable operationType; /** * Transfer description @@ -128,8 +128,11 @@ public class ApiTransferGetResponseDto { @JsonProperty("recurring") private JsonNullable recurring; + /** + * Bank account details + */ @JsonProperty("bankAccount") - private JsonNullable bankAccount; + private JsonNullable bankAccount; @JsonIgnore public String getObject() { @@ -142,7 +145,7 @@ public String getId() { } @JsonIgnore - public ApiTransferGetResponseDtoType getType() { + public TransferGetResponseDtoType getType() { return type.orElse(null); } @@ -162,7 +165,7 @@ public Double getNetValue() { } @JsonIgnore - public ApiTransferGetResponseTransferStatus getStatus() { + public TransferGetResponseTransferStatus getStatus() { return status.orElse(null); } @@ -207,7 +210,7 @@ public String getTransactionReceiptUrl() { } @JsonIgnore - public ApiTransferGetResponseTransferType getOperationType() { + public TransferGetResponseTransferType getOperationType() { return operationType.orElse(null); } @@ -222,17 +225,17 @@ public String getRecurring() { } @JsonIgnore - public ApiTransferBankAccountGetResponseDto getBankAccount() { + public TransferBankAccountGetResponseDto getBankAccount() { return bankAccount.orElse(null); } // Overwrite lombok builder methods - public static class ApiTransferGetResponseDtoBuilder { + public static class TransferGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiTransferGetResponseDtoBuilder object(String value) { + public TransferGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -240,15 +243,15 @@ public ApiTransferGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiTransferGetResponseDtoBuilder id(String value) { + public TransferGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiTransferGetResponseDtoBuilder type(ApiTransferGetResponseDtoType value) { + public TransferGetResponseDtoBuilder type(TransferGetResponseDtoType value) { this.type = JsonNullable.of(value); return this; } @@ -256,7 +259,7 @@ public ApiTransferGetResponseDtoBuilder type(ApiTransferGetResponseDtoType value private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiTransferGetResponseDtoBuilder dateCreated(String value) { + public TransferGetResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -264,7 +267,7 @@ public ApiTransferGetResponseDtoBuilder dateCreated(String value) { private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiTransferGetResponseDtoBuilder value(Double value) { + public TransferGetResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -272,15 +275,15 @@ public ApiTransferGetResponseDtoBuilder value(Double value) { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiTransferGetResponseDtoBuilder netValue(Double value) { + public TransferGetResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiTransferGetResponseDtoBuilder status(ApiTransferGetResponseTransferStatus value) { + public TransferGetResponseDtoBuilder status(TransferGetResponseTransferStatus value) { this.status = JsonNullable.of(value); return this; } @@ -288,7 +291,7 @@ public ApiTransferGetResponseDtoBuilder status(ApiTransferGetResponseTransferSta private JsonNullable transferFee = JsonNullable.undefined(); @JsonProperty("transferFee") - public ApiTransferGetResponseDtoBuilder transferFee(Double value) { + public TransferGetResponseDtoBuilder transferFee(Double value) { this.transferFee = JsonNullable.of(value); return this; } @@ -296,7 +299,7 @@ public ApiTransferGetResponseDtoBuilder transferFee(Double value) { private JsonNullable effectiveDate = JsonNullable.undefined(); @JsonProperty("effectiveDate") - public ApiTransferGetResponseDtoBuilder effectiveDate(String value) { + public TransferGetResponseDtoBuilder effectiveDate(String value) { this.effectiveDate = JsonNullable.of(value); return this; } @@ -304,7 +307,7 @@ public ApiTransferGetResponseDtoBuilder effectiveDate(String value) { private JsonNullable scheduleDate = JsonNullable.undefined(); @JsonProperty("scheduleDate") - public ApiTransferGetResponseDtoBuilder scheduleDate(String value) { + public TransferGetResponseDtoBuilder scheduleDate(String value) { this.scheduleDate = JsonNullable.of(value); return this; } @@ -312,7 +315,7 @@ public ApiTransferGetResponseDtoBuilder scheduleDate(String value) { private JsonNullable endToEndIdentifier = JsonNullable.undefined(); @JsonProperty("endToEndIdentifier") - public ApiTransferGetResponseDtoBuilder endToEndIdentifier(String value) { + public TransferGetResponseDtoBuilder endToEndIdentifier(String value) { this.endToEndIdentifier = JsonNullable.of(value); return this; } @@ -320,7 +323,7 @@ public ApiTransferGetResponseDtoBuilder endToEndIdentifier(String value) { private JsonNullable authorized = JsonNullable.undefined(); @JsonProperty("authorized") - public ApiTransferGetResponseDtoBuilder authorized(Boolean value) { + public TransferGetResponseDtoBuilder authorized(Boolean value) { this.authorized = JsonNullable.of(value); return this; } @@ -328,7 +331,7 @@ public ApiTransferGetResponseDtoBuilder authorized(Boolean value) { private JsonNullable failReason = JsonNullable.undefined(); @JsonProperty("failReason") - public ApiTransferGetResponseDtoBuilder failReason(String value) { + public TransferGetResponseDtoBuilder failReason(String value) { this.failReason = JsonNullable.of(value); return this; } @@ -336,7 +339,7 @@ public ApiTransferGetResponseDtoBuilder failReason(String value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiTransferGetResponseDtoBuilder externalReference(String value) { + public TransferGetResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -344,15 +347,15 @@ public ApiTransferGetResponseDtoBuilder externalReference(String value) { private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); @JsonProperty("transactionReceiptUrl") - public ApiTransferGetResponseDtoBuilder transactionReceiptUrl(String value) { + public TransferGetResponseDtoBuilder transactionReceiptUrl(String value) { this.transactionReceiptUrl = JsonNullable.of(value); return this; } - private JsonNullable operationType = JsonNullable.undefined(); + private JsonNullable operationType = JsonNullable.undefined(); @JsonProperty("operationType") - public ApiTransferGetResponseDtoBuilder operationType(ApiTransferGetResponseTransferType value) { + public TransferGetResponseDtoBuilder operationType(TransferGetResponseTransferType value) { this.operationType = JsonNullable.of(value); return this; } @@ -360,7 +363,7 @@ public ApiTransferGetResponseDtoBuilder operationType(ApiTransferGetResponseTran private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiTransferGetResponseDtoBuilder description(String value) { + public TransferGetResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -368,15 +371,15 @@ public ApiTransferGetResponseDtoBuilder description(String value) { private JsonNullable recurring = JsonNullable.undefined(); @JsonProperty("recurring") - public ApiTransferGetResponseDtoBuilder recurring(String value) { + public TransferGetResponseDtoBuilder recurring(String value) { this.recurring = JsonNullable.of(value); return this; } - private JsonNullable bankAccount = JsonNullable.undefined(); + private JsonNullable bankAccount = JsonNullable.undefined(); @JsonProperty("bankAccount") - public ApiTransferGetResponseDtoBuilder bankAccount(ApiTransferBankAccountGetResponseDto value) { + public TransferGetResponseDtoBuilder bankAccount(TransferBankAccountGetResponseDto 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/TransferGetResponseDtoType.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDtoType.java rename to src/main/java/com/asaas/apisdk/models/TransferGetResponseDtoType.java index 42d9023..05f953a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseDtoType.java +++ b/src/main/java/com/asaas/apisdk/models/TransferGetResponseDtoType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiTransferGetResponseDtoType { +public enum TransferGetResponseDtoType { PIX("PIX"), TED("TED"), INTERNAL("INTERNAL"); @@ -22,8 +22,8 @@ public enum ApiTransferGetResponseDtoType { private final String value; @JsonCreator - public static ApiTransferGetResponseDtoType fromValue(String value) { - return Arrays.stream(ApiTransferGetResponseDtoType.values()) + 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/ApiTransferGetResponseTransferStatus.java b/src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferStatus.java similarity index 75% rename from src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferStatus.java rename to src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferStatus.java index 6776dae..f4436e5 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferStatus.java +++ b/src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiTransferGetResponseTransferStatus { +public enum TransferGetResponseTransferStatus { PENDING("PENDING"), BANK_PROCESSING("BANK_PROCESSING"), DONE("DONE"), @@ -24,8 +24,8 @@ public enum ApiTransferGetResponseTransferStatus { private final String value; @JsonCreator - public static ApiTransferGetResponseTransferStatus fromValue(String value) { - return Arrays.stream(ApiTransferGetResponseTransferStatus.values()) + 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/ApiTransferGetResponseTransferType.java b/src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferType.java similarity index 73% rename from src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferType.java rename to src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferType.java index 5d8875b..9cf6d2d 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferGetResponseTransferType.java +++ b/src/main/java/com/asaas/apisdk/models/TransferGetResponseTransferType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiTransferGetResponseTransferType { +public enum TransferGetResponseTransferType { PIX("PIX"), TED("TED"), INTERNAL("INTERNAL"); @@ -22,8 +22,8 @@ public enum ApiTransferGetResponseTransferType { private final String value; @JsonCreator - public static ApiTransferGetResponseTransferType fromValue(String value) { - return Arrays.stream(ApiTransferGetResponseTransferType.values()) + 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/ApiTransferRecurringSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestDto.java similarity index 66% rename from src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestDto.java index 50e895d..f1b48ab 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestDto.java @@ -12,19 +12,22 @@ 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 ApiTransferRecurringSaveRequestDto { +public class TransferRecurringSaveRequestDto { /** * Frequency */ @JsonProperty("frequency") - private JsonNullable frequency; + private JsonNullable frequency; /** * Number of repetitions. This transfer will be included as the first transaction of the recurrence. @@ -35,7 +38,7 @@ public class ApiTransferRecurringSaveRequestDto { private JsonNullable quantity; @JsonIgnore - public ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency getFrequency() { + public TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency getFrequency() { return frequency.orElse(null); } @@ -45,14 +48,14 @@ public Long getQuantity() { } // Overwrite lombok builder methods - public static class ApiTransferRecurringSaveRequestDtoBuilder { + public static class TransferRecurringSaveRequestDtoBuilder { - private JsonNullable frequency = + private JsonNullable frequency = JsonNullable.undefined(); @JsonProperty("frequency") - public ApiTransferRecurringSaveRequestDtoBuilder frequency( - ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency value + public TransferRecurringSaveRequestDtoBuilder frequency( + TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency value ) { this.frequency = JsonNullable.of(value); return this; @@ -61,7 +64,7 @@ public ApiTransferRecurringSaveRequestDtoBuilder frequency( private JsonNullable quantity = JsonNullable.undefined(); @JsonProperty("quantity") - public ApiTransferRecurringSaveRequestDtoBuilder quantity(Long value) { + public TransferRecurringSaveRequestDtoBuilder 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/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java similarity index 64% rename from src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java rename to src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java index 5bdc8a0..b249d97 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java +++ b/src/main/java/com/asaas/apisdk/models/TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency { +public enum TransferRecurringSaveRequestRecurringCheckoutScheduleFrequency { WEEKLY("WEEKLY"), MONTHLY("MONTHLY"); @@ -21,8 +21,8 @@ public enum ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency { private final String value; @JsonCreator - public static ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency fromValue(String value) { - return Arrays.stream(ApiTransferRecurringSaveRequestRecurringCheckoutScheduleFrequency.values()) + 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/ApiTransferSaveInternalTransferAccountDto.java b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferAccountDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferAccountDto.java rename to src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferAccountDto.java index e2cf7eb..d2e2573 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferAccountDto.java +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferAccountDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Target account basic information + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiTransferSaveInternalTransferAccountDto { +public class TransferSaveInternalTransferAccountDto { /** * Target account name @@ -76,12 +79,12 @@ public String getAccountDigit() { } // Overwrite lombok builder methods - public static class ApiTransferSaveInternalTransferAccountDtoBuilder { + public static class TransferSaveInternalTransferAccountDtoBuilder { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiTransferSaveInternalTransferAccountDtoBuilder name(String value) { + public TransferSaveInternalTransferAccountDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -89,7 +92,7 @@ public ApiTransferSaveInternalTransferAccountDtoBuilder name(String value) { private JsonNullable cpfCnpj = JsonNullable.undefined(); @JsonProperty("cpfCnpj") - public ApiTransferSaveInternalTransferAccountDtoBuilder cpfCnpj(String value) { + public TransferSaveInternalTransferAccountDtoBuilder cpfCnpj(String value) { this.cpfCnpj = JsonNullable.of(value); return this; } @@ -97,7 +100,7 @@ public ApiTransferSaveInternalTransferAccountDtoBuilder cpfCnpj(String value) { private JsonNullable agency = JsonNullable.undefined(); @JsonProperty("agency") - public ApiTransferSaveInternalTransferAccountDtoBuilder agency(String value) { + public TransferSaveInternalTransferAccountDtoBuilder agency(String value) { this.agency = JsonNullable.of(value); return this; } @@ -105,7 +108,7 @@ public ApiTransferSaveInternalTransferAccountDtoBuilder agency(String value) { private JsonNullable account = JsonNullable.undefined(); @JsonProperty("account") - public ApiTransferSaveInternalTransferAccountDtoBuilder account(String value) { + public TransferSaveInternalTransferAccountDtoBuilder account(String value) { this.account = JsonNullable.of(value); return this; } @@ -113,7 +116,7 @@ public ApiTransferSaveInternalTransferAccountDtoBuilder account(String value) { private JsonNullable accountDigit = JsonNullable.undefined(); @JsonProperty("accountDigit") - public ApiTransferSaveInternalTransferAccountDtoBuilder accountDigit(String value) { + public TransferSaveInternalTransferAccountDtoBuilder 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/TransferSaveInternalTransferRequestDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferRequestDto.java rename to src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferRequestDto.java index c2990b4..47e7af7 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferRequestDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiTransferSaveInternalTransferRequestDto { +public class TransferSaveInternalTransferRequestDto { /** * Amount to be transferred @@ -45,12 +45,12 @@ public String getExternalReference() { } // Overwrite lombok builder methods - public static class ApiTransferSaveInternalTransferRequestDtoBuilder { + public static class TransferSaveInternalTransferRequestDtoBuilder { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiTransferSaveInternalTransferRequestDtoBuilder externalReference(String value) { + public TransferSaveInternalTransferRequestDtoBuilder 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/TransferSaveInternalTransferResponseDto.java similarity index 71% rename from src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDto.java rename to src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDto.java index b7905a5..03e8ab6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiTransferSaveInternalTransferResponseDto { +public class TransferSaveInternalTransferResponseDto { /** * Object type @@ -36,7 +36,7 @@ public class ApiTransferSaveInternalTransferResponseDto { * Type of transfer */ @JsonProperty("type") - private JsonNullable type; + private JsonNullable type; /** * Transfer request date @@ -60,7 +60,7 @@ public class ApiTransferSaveInternalTransferResponseDto { * Transfer status */ @JsonProperty("status") - private JsonNullable status; + private JsonNullable status; /** * Transfer rate @@ -114,7 +114,7 @@ public class ApiTransferSaveInternalTransferResponseDto { * Transfer method */ @JsonProperty("operationType") - private JsonNullable operationType; + private JsonNullable operationType; /** * Transfer description @@ -134,8 +134,11 @@ public class ApiTransferSaveInternalTransferResponseDto { @JsonProperty("walletId") private JsonNullable walletId; + /** + * Target account basic information + */ @JsonProperty("account") - private JsonNullable account; + private JsonNullable account; @JsonIgnore public String getObject() { @@ -148,7 +151,7 @@ public String getId() { } @JsonIgnore - public ApiTransferSaveInternalTransferResponseDtoType getType() { + public TransferSaveInternalTransferResponseDtoType getType() { return type.orElse(null); } @@ -168,7 +171,7 @@ public Double getNetValue() { } @JsonIgnore - public ApiTransferSaveInternalTransferResponseTransferStatus getStatus() { + public TransferSaveInternalTransferResponseTransferStatus getStatus() { return status.orElse(null); } @@ -213,7 +216,7 @@ public String getTransactionReceiptUrl() { } @JsonIgnore - public ApiTransferSaveInternalTransferResponseTransferType getOperationType() { + public TransferSaveInternalTransferResponseTransferType getOperationType() { return operationType.orElse(null); } @@ -233,17 +236,17 @@ public String getWalletId() { } @JsonIgnore - public ApiTransferSaveInternalTransferAccountDto getAccount() { + public TransferSaveInternalTransferAccountDto getAccount() { return account.orElse(null); } // Overwrite lombok builder methods - public static class ApiTransferSaveInternalTransferResponseDtoBuilder { + public static class TransferSaveInternalTransferResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiTransferSaveInternalTransferResponseDtoBuilder object(String value) { + public TransferSaveInternalTransferResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -251,17 +254,15 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiTransferSaveInternalTransferResponseDtoBuilder id(String value) { + public TransferSaveInternalTransferResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } - private JsonNullable type = JsonNullable.undefined(); + private JsonNullable type = JsonNullable.undefined(); @JsonProperty("type") - public ApiTransferSaveInternalTransferResponseDtoBuilder type( - ApiTransferSaveInternalTransferResponseDtoType value - ) { + public TransferSaveInternalTransferResponseDtoBuilder type(TransferSaveInternalTransferResponseDtoType value) { this.type = JsonNullable.of(value); return this; } @@ -269,7 +270,7 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder type( private JsonNullable dateCreated = JsonNullable.undefined(); @JsonProperty("dateCreated") - public ApiTransferSaveInternalTransferResponseDtoBuilder dateCreated(String value) { + public TransferSaveInternalTransferResponseDtoBuilder dateCreated(String value) { this.dateCreated = JsonNullable.of(value); return this; } @@ -277,7 +278,7 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder dateCreated(String valu private JsonNullable value = JsonNullable.undefined(); @JsonProperty("value") - public ApiTransferSaveInternalTransferResponseDtoBuilder value(Double value) { + public TransferSaveInternalTransferResponseDtoBuilder value(Double value) { this.value = JsonNullable.of(value); return this; } @@ -285,16 +286,16 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder value(Double value) { private JsonNullable netValue = JsonNullable.undefined(); @JsonProperty("netValue") - public ApiTransferSaveInternalTransferResponseDtoBuilder netValue(Double value) { + public TransferSaveInternalTransferResponseDtoBuilder netValue(Double value) { this.netValue = JsonNullable.of(value); return this; } - private JsonNullable status = JsonNullable.undefined(); + private JsonNullable status = JsonNullable.undefined(); @JsonProperty("status") - public ApiTransferSaveInternalTransferResponseDtoBuilder status( - ApiTransferSaveInternalTransferResponseTransferStatus value + public TransferSaveInternalTransferResponseDtoBuilder status( + TransferSaveInternalTransferResponseTransferStatus value ) { this.status = JsonNullable.of(value); return this; @@ -303,7 +304,7 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder status( private JsonNullable transferFee = JsonNullable.undefined(); @JsonProperty("transferFee") - public ApiTransferSaveInternalTransferResponseDtoBuilder transferFee(Double value) { + public TransferSaveInternalTransferResponseDtoBuilder transferFee(Double value) { this.transferFee = JsonNullable.of(value); return this; } @@ -311,7 +312,7 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder transferFee(Double valu private JsonNullable effectiveDate = JsonNullable.undefined(); @JsonProperty("effectiveDate") - public ApiTransferSaveInternalTransferResponseDtoBuilder effectiveDate(String value) { + public TransferSaveInternalTransferResponseDtoBuilder effectiveDate(String value) { this.effectiveDate = JsonNullable.of(value); return this; } @@ -319,7 +320,7 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder effectiveDate(String va private JsonNullable scheduleDate = JsonNullable.undefined(); @JsonProperty("scheduleDate") - public ApiTransferSaveInternalTransferResponseDtoBuilder scheduleDate(String value) { + public TransferSaveInternalTransferResponseDtoBuilder scheduleDate(String value) { this.scheduleDate = JsonNullable.of(value); return this; } @@ -327,7 +328,7 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder scheduleDate(String val private JsonNullable endToEndIdentifier = JsonNullable.undefined(); @JsonProperty("endToEndIdentifier") - public ApiTransferSaveInternalTransferResponseDtoBuilder endToEndIdentifier(String value) { + public TransferSaveInternalTransferResponseDtoBuilder endToEndIdentifier(String value) { this.endToEndIdentifier = JsonNullable.of(value); return this; } @@ -335,7 +336,7 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder endToEndIdentifier(Stri private JsonNullable authorized = JsonNullable.undefined(); @JsonProperty("authorized") - public ApiTransferSaveInternalTransferResponseDtoBuilder authorized(Boolean value) { + public TransferSaveInternalTransferResponseDtoBuilder authorized(Boolean value) { this.authorized = JsonNullable.of(value); return this; } @@ -343,7 +344,7 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder authorized(Boolean valu private JsonNullable failReason = JsonNullable.undefined(); @JsonProperty("failReason") - public ApiTransferSaveInternalTransferResponseDtoBuilder failReason(String value) { + public TransferSaveInternalTransferResponseDtoBuilder failReason(String value) { this.failReason = JsonNullable.of(value); return this; } @@ -351,7 +352,7 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder failReason(String value private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiTransferSaveInternalTransferResponseDtoBuilder externalReference(String value) { + public TransferSaveInternalTransferResponseDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } @@ -359,16 +360,16 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder externalReference(Strin private JsonNullable transactionReceiptUrl = JsonNullable.undefined(); @JsonProperty("transactionReceiptUrl") - public ApiTransferSaveInternalTransferResponseDtoBuilder transactionReceiptUrl(String value) { + public TransferSaveInternalTransferResponseDtoBuilder transactionReceiptUrl(String value) { this.transactionReceiptUrl = JsonNullable.of(value); return this; } - private JsonNullable operationType = JsonNullable.undefined(); + private JsonNullable operationType = JsonNullable.undefined(); @JsonProperty("operationType") - public ApiTransferSaveInternalTransferResponseDtoBuilder operationType( - ApiTransferSaveInternalTransferResponseTransferType value + public TransferSaveInternalTransferResponseDtoBuilder operationType( + TransferSaveInternalTransferResponseTransferType value ) { this.operationType = JsonNullable.of(value); return this; @@ -377,7 +378,7 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder operationType( private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiTransferSaveInternalTransferResponseDtoBuilder description(String value) { + public TransferSaveInternalTransferResponseDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -385,7 +386,7 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder description(String valu private JsonNullable recurring = JsonNullable.undefined(); @JsonProperty("recurring") - public ApiTransferSaveInternalTransferResponseDtoBuilder recurring(String value) { + public TransferSaveInternalTransferResponseDtoBuilder recurring(String value) { this.recurring = JsonNullable.of(value); return this; } @@ -393,15 +394,15 @@ public ApiTransferSaveInternalTransferResponseDtoBuilder recurring(String value) private JsonNullable walletId = JsonNullable.undefined(); @JsonProperty("walletId") - public ApiTransferSaveInternalTransferResponseDtoBuilder walletId(String value) { + public TransferSaveInternalTransferResponseDtoBuilder walletId(String value) { this.walletId = JsonNullable.of(value); return this; } - private JsonNullable account = JsonNullable.undefined(); + private JsonNullable account = JsonNullable.undefined(); @JsonProperty("account") - public ApiTransferSaveInternalTransferResponseDtoBuilder account(ApiTransferSaveInternalTransferAccountDto value) { + public TransferSaveInternalTransferResponseDtoBuilder account(TransferSaveInternalTransferAccountDto 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/TransferSaveInternalTransferResponseDtoType.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDtoType.java rename to src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDtoType.java index d00dbb3..94ea0b6 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseDtoType.java +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseDtoType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiTransferSaveInternalTransferResponseDtoType { +public enum TransferSaveInternalTransferResponseDtoType { PIX("PIX"), TED("TED"), INTERNAL("INTERNAL"); @@ -22,8 +22,8 @@ public enum ApiTransferSaveInternalTransferResponseDtoType { private final String value; @JsonCreator - public static ApiTransferSaveInternalTransferResponseDtoType fromValue(String value) { - return Arrays.stream(ApiTransferSaveInternalTransferResponseDtoType.values()) + 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/ApiTransferSaveInternalTransferResponseTransferStatus.java b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferStatus.java similarity index 70% rename from src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferStatus.java rename to src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferStatus.java index 91f4e62..0cba575 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferStatus.java +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferStatus.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiTransferSaveInternalTransferResponseTransferStatus { +public enum TransferSaveInternalTransferResponseTransferStatus { PENDING("PENDING"), BANK_PROCESSING("BANK_PROCESSING"), DONE("DONE"), @@ -24,8 +24,8 @@ public enum ApiTransferSaveInternalTransferResponseTransferStatus { private final String value; @JsonCreator - public static ApiTransferSaveInternalTransferResponseTransferStatus fromValue(String value) { - return Arrays.stream(ApiTransferSaveInternalTransferResponseTransferStatus.values()) + 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/ApiTransferSaveInternalTransferResponseTransferType.java b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferType.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferType.java rename to src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferType.java index d2dbab7..700e991 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveInternalTransferResponseTransferType.java +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveInternalTransferResponseTransferType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiTransferSaveInternalTransferResponseTransferType { +public enum TransferSaveInternalTransferResponseTransferType { PIX("PIX"), TED("TED"), INTERNAL("INTERNAL"); @@ -22,8 +22,8 @@ public enum ApiTransferSaveInternalTransferResponseTransferType { private final String value; @JsonCreator - public static ApiTransferSaveInternalTransferResponseTransferType fromValue(String value) { - return Arrays.stream(ApiTransferSaveInternalTransferResponseTransferType.values()) + 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/ApiTransferSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/TransferSaveRequestDto.java similarity index 64% rename from src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/TransferSaveRequestDto.java index 8b3cec6..82af237 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveRequestDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiTransferSaveRequestDto { +public class TransferSaveRequestDto { /** * Amount to be transferred @@ -27,14 +27,17 @@ public class ApiTransferSaveRequestDto { @NonNull private Double value; + /** + * Enter your account details if it is a transfer to a bank account + */ @JsonProperty("bankAccount") - private JsonNullable 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; + private JsonNullable operationType; /** * Enter the Pix key if it is a transfer to a Pix key @@ -46,7 +49,7 @@ public class ApiTransferSaveRequestDto { * Enter the type of key if it is a transfer to a Pix key */ @JsonProperty("pixAddressKeyType") - private JsonNullable pixAddressKeyType; + private JsonNullable pixAddressKeyType; /** * Transfers via Pix allow description @@ -66,16 +69,19 @@ public class ApiTransferSaveRequestDto { @JsonProperty("externalReference") private JsonNullable externalReference; + /** + * Recurrence information. Only for Pix transfers + */ @JsonProperty("recurring") - private JsonNullable recurring; + private JsonNullable recurring; @JsonIgnore - public ApiTransferBankAccountSaveRequestDto getBankAccount() { + public TransferBankAccountSaveRequestDto getBankAccount() { return bankAccount.orElse(null); } @JsonIgnore - public ApiTransferSaveRequestTransferType getOperationType() { + public TransferSaveRequestTransferType getOperationType() { return operationType.orElse(null); } @@ -85,7 +91,7 @@ public String getPixAddressKey() { } @JsonIgnore - public ApiTransferSaveRequestPixAddressKeyType getPixAddressKeyType() { + public TransferSaveRequestPixAddressKeyType getPixAddressKeyType() { return pixAddressKeyType.orElse(null); } @@ -105,25 +111,25 @@ public String getExternalReference() { } @JsonIgnore - public ApiTransferRecurringSaveRequestDto getRecurring() { + public TransferRecurringSaveRequestDto getRecurring() { return recurring.orElse(null); } // Overwrite lombok builder methods - public static class ApiTransferSaveRequestDtoBuilder { + public static class TransferSaveRequestDtoBuilder { - private JsonNullable bankAccount = JsonNullable.undefined(); + private JsonNullable bankAccount = JsonNullable.undefined(); @JsonProperty("bankAccount") - public ApiTransferSaveRequestDtoBuilder bankAccount(ApiTransferBankAccountSaveRequestDto value) { + public TransferSaveRequestDtoBuilder bankAccount(TransferBankAccountSaveRequestDto value) { this.bankAccount = JsonNullable.of(value); return this; } - private JsonNullable operationType = JsonNullable.undefined(); + private JsonNullable operationType = JsonNullable.undefined(); @JsonProperty("operationType") - public ApiTransferSaveRequestDtoBuilder operationType(ApiTransferSaveRequestTransferType value) { + public TransferSaveRequestDtoBuilder operationType(TransferSaveRequestTransferType value) { this.operationType = JsonNullable.of(value); return this; } @@ -131,15 +137,15 @@ public ApiTransferSaveRequestDtoBuilder operationType(ApiTransferSaveRequestTran private JsonNullable pixAddressKey = JsonNullable.undefined(); @JsonProperty("pixAddressKey") - public ApiTransferSaveRequestDtoBuilder pixAddressKey(String value) { + public TransferSaveRequestDtoBuilder pixAddressKey(String value) { this.pixAddressKey = JsonNullable.of(value); return this; } - private JsonNullable pixAddressKeyType = JsonNullable.undefined(); + private JsonNullable pixAddressKeyType = JsonNullable.undefined(); @JsonProperty("pixAddressKeyType") - public ApiTransferSaveRequestDtoBuilder pixAddressKeyType(ApiTransferSaveRequestPixAddressKeyType value) { + public TransferSaveRequestDtoBuilder pixAddressKeyType(TransferSaveRequestPixAddressKeyType value) { this.pixAddressKeyType = JsonNullable.of(value); return this; } @@ -147,7 +153,7 @@ public ApiTransferSaveRequestDtoBuilder pixAddressKeyType(ApiTransferSaveRequest private JsonNullable description = JsonNullable.undefined(); @JsonProperty("description") - public ApiTransferSaveRequestDtoBuilder description(String value) { + public TransferSaveRequestDtoBuilder description(String value) { this.description = JsonNullable.of(value); return this; } @@ -155,7 +161,7 @@ public ApiTransferSaveRequestDtoBuilder description(String value) { private JsonNullable scheduleDate = JsonNullable.undefined(); @JsonProperty("scheduleDate") - public ApiTransferSaveRequestDtoBuilder scheduleDate(String value) { + public TransferSaveRequestDtoBuilder scheduleDate(String value) { this.scheduleDate = JsonNullable.of(value); return this; } @@ -163,15 +169,15 @@ public ApiTransferSaveRequestDtoBuilder scheduleDate(String value) { private JsonNullable externalReference = JsonNullable.undefined(); @JsonProperty("externalReference") - public ApiTransferSaveRequestDtoBuilder externalReference(String value) { + public TransferSaveRequestDtoBuilder externalReference(String value) { this.externalReference = JsonNullable.of(value); return this; } - private JsonNullable recurring = JsonNullable.undefined(); + private JsonNullable recurring = JsonNullable.undefined(); @JsonProperty("recurring") - public ApiTransferSaveRequestDtoBuilder recurring(ApiTransferRecurringSaveRequestDto value) { + public TransferSaveRequestDtoBuilder recurring(TransferRecurringSaveRequestDto 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/TransferSaveRequestPixAddressKeyType.java similarity index 74% rename from src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestPixAddressKeyType.java rename to src/main/java/com/asaas/apisdk/models/TransferSaveRequestPixAddressKeyType.java index 8a14996..6988fa9 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestPixAddressKeyType.java +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveRequestPixAddressKeyType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiTransferSaveRequestPixAddressKeyType { +public enum TransferSaveRequestPixAddressKeyType { CPF("CPF"), CNPJ("CNPJ"), EMAIL("EMAIL"), @@ -24,8 +24,8 @@ public enum ApiTransferSaveRequestPixAddressKeyType { private final String value; @JsonCreator - public static ApiTransferSaveRequestPixAddressKeyType fromValue(String value) { - return Arrays.stream(ApiTransferSaveRequestPixAddressKeyType.values()) + 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/ApiTransferSaveRequestTransferType.java b/src/main/java/com/asaas/apisdk/models/TransferSaveRequestTransferType.java similarity index 76% rename from src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestTransferType.java rename to src/main/java/com/asaas/apisdk/models/TransferSaveRequestTransferType.java index d3eff33..a4bd10b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiTransferSaveRequestTransferType.java +++ b/src/main/java/com/asaas/apisdk/models/TransferSaveRequestTransferType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiTransferSaveRequestTransferType { +public enum TransferSaveRequestTransferType { PIX("PIX"), TED("TED"); @@ -21,8 +21,8 @@ public enum ApiTransferSaveRequestTransferType { private final String value; @JsonCreator - public static ApiTransferSaveRequestTransferType fromValue(String value) { - return Arrays.stream(ApiTransferSaveRequestTransferType.values()) + 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/ApiWalletGetResponseDto.java b/src/main/java/com/asaas/apisdk/models/WalletGetResponseDto.java similarity index 83% rename from src/main/java/com/asaas/apisdk/models/ApiWalletGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/WalletGetResponseDto.java index 493e3c6..5ec46dc 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiWalletGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/WalletGetResponseDto.java @@ -12,13 +12,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * List of objects + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiWalletGetResponseDto { +public class WalletGetResponseDto { /** * Object type @@ -43,12 +46,12 @@ public String getId() { } // Overwrite lombok builder methods - public static class ApiWalletGetResponseDtoBuilder { + public static class WalletGetResponseDtoBuilder { private JsonNullable object = JsonNullable.undefined(); @JsonProperty("object") - public ApiWalletGetResponseDtoBuilder object(String value) { + public WalletGetResponseDtoBuilder object(String value) { this.object = JsonNullable.of(value); return this; } @@ -56,7 +59,7 @@ public ApiWalletGetResponseDtoBuilder object(String value) { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiWalletGetResponseDtoBuilder id(String value) { + 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/ApiPushNotificationConfigDeleteResponseDto.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigDeleteResponseDto.java similarity index 80% rename from src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigDeleteResponseDto.java rename to src/main/java/com/asaas/apisdk/models/WebhookConfigDeleteResponseDto.java index 0ed2360..1a9853c 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigDeleteResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigDeleteResponseDto.java @@ -18,7 +18,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPushNotificationConfigDeleteResponseDto { +public class WebhookConfigDeleteResponseDto { /** * Indicates whether the Webhook was removed @@ -43,12 +43,12 @@ public String getId() { } // Overwrite lombok builder methods - public static class ApiPushNotificationConfigDeleteResponseDtoBuilder { + public static class WebhookConfigDeleteResponseDtoBuilder { private JsonNullable deleted = JsonNullable.undefined(); @JsonProperty("deleted") - public ApiPushNotificationConfigDeleteResponseDtoBuilder deleted(Boolean value) { + public WebhookConfigDeleteResponseDtoBuilder deleted(Boolean value) { this.deleted = JsonNullable.of(value); return this; } @@ -56,7 +56,7 @@ public ApiPushNotificationConfigDeleteResponseDtoBuilder deleted(Boolean value) private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPushNotificationConfigDeleteResponseDtoBuilder id(String value) { + public WebhookConfigDeleteResponseDtoBuilder 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/WebhookConfigGetResponseDto.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponseDto.java rename to src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseDto.java index 2bcf4af..576793e 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponseDto.java +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPushNotificationConfigGetResponseDto { +public class WebhookConfigGetResponseDto { /** * Unique Webhook Identifier @@ -73,13 +73,13 @@ public class ApiPushNotificationConfigGetResponseDto { * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) */ @JsonProperty("sendType") - private JsonNullable sendType; + private JsonNullable sendType; /** * List of events this Webhook will observe */ @JsonProperty("events") - private JsonNullable> events; + private JsonNullable> events; @JsonIgnore public String getId() { @@ -122,22 +122,22 @@ public Boolean getHasAuthToken() { } @JsonIgnore - public ApiPushNotificationConfigGetResponsePushNotificationSendType getSendType() { + public WebhookConfigGetResponseWebhookSendType getSendType() { return sendType.orElse(null); } @JsonIgnore - public List getEvents() { + public List getEvents() { return events.orElse(null); } // Overwrite lombok builder methods - public static class ApiPushNotificationConfigGetResponseDtoBuilder { + public static class WebhookConfigGetResponseDtoBuilder { private JsonNullable id = JsonNullable.undefined(); @JsonProperty("id") - public ApiPushNotificationConfigGetResponseDtoBuilder id(String value) { + public WebhookConfigGetResponseDtoBuilder id(String value) { this.id = JsonNullable.of(value); return this; } @@ -145,7 +145,7 @@ public ApiPushNotificationConfigGetResponseDtoBuilder id(String value) { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiPushNotificationConfigGetResponseDtoBuilder name(String value) { + public WebhookConfigGetResponseDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -153,7 +153,7 @@ public ApiPushNotificationConfigGetResponseDtoBuilder name(String value) { private JsonNullable url = JsonNullable.undefined(); @JsonProperty("url") - public ApiPushNotificationConfigGetResponseDtoBuilder url(String value) { + public WebhookConfigGetResponseDtoBuilder url(String value) { this.url = JsonNullable.of(value); return this; } @@ -161,7 +161,7 @@ public ApiPushNotificationConfigGetResponseDtoBuilder url(String value) { private JsonNullable email = JsonNullable.undefined(); @JsonProperty("email") - public ApiPushNotificationConfigGetResponseDtoBuilder email(String value) { + public WebhookConfigGetResponseDtoBuilder email(String value) { this.email = JsonNullable.of(value); return this; } @@ -169,7 +169,7 @@ public ApiPushNotificationConfigGetResponseDtoBuilder email(String value) { private JsonNullable enabled = JsonNullable.undefined(); @JsonProperty("enabled") - public ApiPushNotificationConfigGetResponseDtoBuilder enabled(Boolean value) { + public WebhookConfigGetResponseDtoBuilder enabled(Boolean value) { this.enabled = JsonNullable.of(value); return this; } @@ -177,7 +177,7 @@ public ApiPushNotificationConfigGetResponseDtoBuilder enabled(Boolean value) { private JsonNullable interrupted = JsonNullable.undefined(); @JsonProperty("interrupted") - public ApiPushNotificationConfigGetResponseDtoBuilder interrupted(Boolean value) { + public WebhookConfigGetResponseDtoBuilder interrupted(Boolean value) { this.interrupted = JsonNullable.of(value); return this; } @@ -185,7 +185,7 @@ public ApiPushNotificationConfigGetResponseDtoBuilder interrupted(Boolean value) private JsonNullable apiVersion = JsonNullable.undefined(); @JsonProperty("apiVersion") - public ApiPushNotificationConfigGetResponseDtoBuilder apiVersion(Long value) { + public WebhookConfigGetResponseDtoBuilder apiVersion(Long value) { this.apiVersion = JsonNullable.of(value); return this; } @@ -193,26 +193,23 @@ public ApiPushNotificationConfigGetResponseDtoBuilder apiVersion(Long value) { private JsonNullable hasAuthToken = JsonNullable.undefined(); @JsonProperty("hasAuthToken") - public ApiPushNotificationConfigGetResponseDtoBuilder hasAuthToken(Boolean value) { + public WebhookConfigGetResponseDtoBuilder hasAuthToken(Boolean value) { this.hasAuthToken = JsonNullable.of(value); return this; } - private JsonNullable sendType = - JsonNullable.undefined(); + private JsonNullable sendType = JsonNullable.undefined(); @JsonProperty("sendType") - public ApiPushNotificationConfigGetResponseDtoBuilder sendType( - ApiPushNotificationConfigGetResponsePushNotificationSendType value - ) { + public WebhookConfigGetResponseDtoBuilder sendType(WebhookConfigGetResponseWebhookSendType value) { this.sendType = JsonNullable.of(value); return this; } - private JsonNullable> events = JsonNullable.undefined(); + private JsonNullable> events = JsonNullable.undefined(); @JsonProperty("events") - public ApiPushNotificationConfigGetResponseDtoBuilder events(List value) { + 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/ApiPushNotificationConfigSaveRequestPushNotificationSendType.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookSendType.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.java rename to src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookSendType.java index a70c567..3a2cc9a 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestPushNotificationSendType.java +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigGetResponseWebhookSendType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPushNotificationConfigSaveRequestPushNotificationSendType { +public enum WebhookConfigGetResponseWebhookSendType { NON_SEQUENTIALLY("NON_SEQUENTIALLY"), SEQUENTIALLY("SEQUENTIALLY"); @@ -21,8 +21,8 @@ public enum ApiPushNotificationConfigSaveRequestPushNotificationSendType { private final String value; @JsonCreator - public static ApiPushNotificationConfigSaveRequestPushNotificationSendType fromValue(String value) { - return Arrays.stream(ApiPushNotificationConfigSaveRequestPushNotificationSendType.values()) + 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/ApiPushNotificationConfigSaveRequestDto.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestDto.java similarity index 72% rename from src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestDto.java rename to src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestDto.java index f356d46..04ed1d9 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigSaveRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestDto.java @@ -13,13 +13,16 @@ import lombok.extern.jackson.Jacksonized; import org.openapitools.jackson.nullable.JsonNullable; +/** + * Array with desired Webhooks settings + */ @Data @Builder @With @ToString @EqualsAndHashCode @Jacksonized -public class ApiPushNotificationConfigSaveRequestDto { +public class WebhookConfigSaveRequestDto { /** * Webhook name @@ -67,13 +70,13 @@ public class ApiPushNotificationConfigSaveRequestDto { * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) */ @JsonProperty("sendType") - private JsonNullable sendType; + private JsonNullable sendType; /** * List of events this Webhook will observe */ @JsonProperty("events") - private JsonNullable> events; + private JsonNullable> events; @JsonIgnore public String getName() { @@ -111,22 +114,22 @@ public String getAuthToken() { } @JsonIgnore - public ApiPushNotificationConfigSaveRequestPushNotificationSendType getSendType() { + public WebhookConfigSaveRequestWebhookSendType getSendType() { return sendType.orElse(null); } @JsonIgnore - public List getEvents() { + public List getEvents() { return events.orElse(null); } // Overwrite lombok builder methods - public static class ApiPushNotificationConfigSaveRequestDtoBuilder { + public static class WebhookConfigSaveRequestDtoBuilder { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiPushNotificationConfigSaveRequestDtoBuilder name(String value) { + public WebhookConfigSaveRequestDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -134,7 +137,7 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder name(String value) { private JsonNullable url = JsonNullable.undefined(); @JsonProperty("url") - public ApiPushNotificationConfigSaveRequestDtoBuilder url(String value) { + public WebhookConfigSaveRequestDtoBuilder url(String value) { this.url = JsonNullable.of(value); return this; } @@ -142,7 +145,7 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder url(String value) { private JsonNullable email = JsonNullable.undefined(); @JsonProperty("email") - public ApiPushNotificationConfigSaveRequestDtoBuilder email(String value) { + public WebhookConfigSaveRequestDtoBuilder email(String value) { this.email = JsonNullable.of(value); return this; } @@ -150,7 +153,7 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder email(String value) { private JsonNullable enabled = JsonNullable.undefined(); @JsonProperty("enabled") - public ApiPushNotificationConfigSaveRequestDtoBuilder enabled(Boolean value) { + public WebhookConfigSaveRequestDtoBuilder enabled(Boolean value) { this.enabled = JsonNullable.of(value); return this; } @@ -158,7 +161,7 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder enabled(Boolean value) { private JsonNullable interrupted = JsonNullable.undefined(); @JsonProperty("interrupted") - public ApiPushNotificationConfigSaveRequestDtoBuilder interrupted(Boolean value) { + public WebhookConfigSaveRequestDtoBuilder interrupted(Boolean value) { this.interrupted = JsonNullable.of(value); return this; } @@ -166,7 +169,7 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder interrupted(Boolean value) private JsonNullable apiVersion = JsonNullable.undefined(); @JsonProperty("apiVersion") - public ApiPushNotificationConfigSaveRequestDtoBuilder apiVersion(Long value) { + public WebhookConfigSaveRequestDtoBuilder apiVersion(Long value) { this.apiVersion = JsonNullable.of(value); return this; } @@ -174,26 +177,23 @@ public ApiPushNotificationConfigSaveRequestDtoBuilder apiVersion(Long value) { private JsonNullable authToken = JsonNullable.undefined(); @JsonProperty("authToken") - public ApiPushNotificationConfigSaveRequestDtoBuilder authToken(String value) { + public WebhookConfigSaveRequestDtoBuilder authToken(String value) { this.authToken = JsonNullable.of(value); return this; } - private JsonNullable sendType = - JsonNullable.undefined(); + private JsonNullable sendType = JsonNullable.undefined(); @JsonProperty("sendType") - public ApiPushNotificationConfigSaveRequestDtoBuilder sendType( - ApiPushNotificationConfigSaveRequestPushNotificationSendType value - ) { + public WebhookConfigSaveRequestDtoBuilder sendType(WebhookConfigSaveRequestWebhookSendType value) { this.sendType = JsonNullable.of(value); return this; } - private JsonNullable> events = JsonNullable.undefined(); + private JsonNullable> events = JsonNullable.undefined(); @JsonProperty("events") - public ApiPushNotificationConfigSaveRequestDtoBuilder events(List value) { + 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/ApiPushNotificationConfigGetResponsePushNotificationSendType.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookSendType.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.java rename to src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookSendType.java index f26119c..56b1ee2 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigGetResponsePushNotificationSendType.java +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigSaveRequestWebhookSendType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPushNotificationConfigGetResponsePushNotificationSendType { +public enum WebhookConfigSaveRequestWebhookSendType { NON_SEQUENTIALLY("NON_SEQUENTIALLY"), SEQUENTIALLY("SEQUENTIALLY"); @@ -21,8 +21,8 @@ public enum ApiPushNotificationConfigGetResponsePushNotificationSendType { private final String value; @JsonCreator - public static ApiPushNotificationConfigGetResponsePushNotificationSendType fromValue(String value) { - return Arrays.stream(ApiPushNotificationConfigGetResponsePushNotificationSendType.values()) + 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/ApiPushNotificationConfigUpdateRequestDto.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestDto.java similarity index 69% rename from src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestDto.java rename to src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestDto.java index c2e1740..22cb31f 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestDto.java +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestDto.java @@ -19,7 +19,7 @@ @ToString @EqualsAndHashCode @Jacksonized -public class ApiPushNotificationConfigUpdateRequestDto { +public class WebhookConfigUpdateRequestDto { /** * Webhook name @@ -37,7 +37,7 @@ public class ApiPushNotificationConfigUpdateRequestDto { * Sequential (SEQUENTIALLY) or non-sequential (NON_SEQUENTIALLY) */ @JsonProperty("sendType") - private JsonNullable sendType; + private JsonNullable sendType; /** * Set whether the Webhook is active @@ -61,7 +61,7 @@ public class ApiPushNotificationConfigUpdateRequestDto { * List of events this Webhook will observe */ @JsonProperty("events") - private JsonNullable> events; + private JsonNullable> events; @JsonIgnore public String getName() { @@ -74,7 +74,7 @@ public String getUrl() { } @JsonIgnore - public ApiPushNotificationConfigUpdateRequestPushNotificationSendType getSendType() { + public WebhookConfigUpdateRequestWebhookSendType getSendType() { return sendType.orElse(null); } @@ -94,17 +94,17 @@ public String getAuthToken() { } @JsonIgnore - public List getEvents() { + public List getEvents() { return events.orElse(null); } // Overwrite lombok builder methods - public static class ApiPushNotificationConfigUpdateRequestDtoBuilder { + public static class WebhookConfigUpdateRequestDtoBuilder { private JsonNullable name = JsonNullable.undefined(); @JsonProperty("name") - public ApiPushNotificationConfigUpdateRequestDtoBuilder name(String value) { + public WebhookConfigUpdateRequestDtoBuilder name(String value) { this.name = JsonNullable.of(value); return this; } @@ -112,18 +112,15 @@ public ApiPushNotificationConfigUpdateRequestDtoBuilder name(String value) { private JsonNullable url = JsonNullable.undefined(); @JsonProperty("url") - public ApiPushNotificationConfigUpdateRequestDtoBuilder url(String value) { + public WebhookConfigUpdateRequestDtoBuilder url(String value) { this.url = JsonNullable.of(value); return this; } - private JsonNullable sendType = - JsonNullable.undefined(); + private JsonNullable sendType = JsonNullable.undefined(); @JsonProperty("sendType") - public ApiPushNotificationConfigUpdateRequestDtoBuilder sendType( - ApiPushNotificationConfigUpdateRequestPushNotificationSendType value - ) { + public WebhookConfigUpdateRequestDtoBuilder sendType(WebhookConfigUpdateRequestWebhookSendType value) { this.sendType = JsonNullable.of(value); return this; } @@ -131,7 +128,7 @@ public ApiPushNotificationConfigUpdateRequestDtoBuilder sendType( private JsonNullable enabled = JsonNullable.undefined(); @JsonProperty("enabled") - public ApiPushNotificationConfigUpdateRequestDtoBuilder enabled(Boolean value) { + public WebhookConfigUpdateRequestDtoBuilder enabled(Boolean value) { this.enabled = JsonNullable.of(value); return this; } @@ -139,7 +136,7 @@ public ApiPushNotificationConfigUpdateRequestDtoBuilder enabled(Boolean value) { private JsonNullable interrupted = JsonNullable.undefined(); @JsonProperty("interrupted") - public ApiPushNotificationConfigUpdateRequestDtoBuilder interrupted(Boolean value) { + public WebhookConfigUpdateRequestDtoBuilder interrupted(Boolean value) { this.interrupted = JsonNullable.of(value); return this; } @@ -147,15 +144,15 @@ public ApiPushNotificationConfigUpdateRequestDtoBuilder interrupted(Boolean valu private JsonNullable authToken = JsonNullable.undefined(); @JsonProperty("authToken") - public ApiPushNotificationConfigUpdateRequestDtoBuilder authToken(String value) { + public WebhookConfigUpdateRequestDtoBuilder authToken(String value) { this.authToken = JsonNullable.of(value); return this; } - private JsonNullable> events = JsonNullable.undefined(); + private JsonNullable> events = JsonNullable.undefined(); @JsonProperty("events") - public ApiPushNotificationConfigUpdateRequestDtoBuilder events(List value) { + 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/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.java b/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookSendType.java similarity index 68% rename from src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.java rename to src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookSendType.java index 593f3d6..b6ab14b 100644 --- a/src/main/java/com/asaas/apisdk/models/ApiPushNotificationConfigUpdateRequestPushNotificationSendType.java +++ b/src/main/java/com/asaas/apisdk/models/WebhookConfigUpdateRequestWebhookSendType.java @@ -13,7 +13,7 @@ */ @Getter @AllArgsConstructor -public enum ApiPushNotificationConfigUpdateRequestPushNotificationSendType { +public enum WebhookConfigUpdateRequestWebhookSendType { NON_SEQUENTIALLY("NON_SEQUENTIALLY"), SEQUENTIALLY("SEQUENTIALLY"); @@ -21,8 +21,8 @@ public enum ApiPushNotificationConfigUpdateRequestPushNotificationSendType { private final String value; @JsonCreator - public static ApiPushNotificationConfigUpdateRequestPushNotificationSendType fromValue(String value) { - return Arrays.stream(ApiPushNotificationConfigUpdateRequestPushNotificationSendType.values()) + 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/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/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/ApiCheckoutSessionInstallmentDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionInstallmentDtoValidator.java similarity index 51% rename from src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionInstallmentDtoValidator.java rename to src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionInstallmentDtoValidator.java index 94b5662..270d1db 100644 --- a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiCheckoutSessionInstallmentDtoValidator.java +++ b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/CheckoutSessionInstallmentDtoValidator.java @@ -2,29 +2,28 @@ package com.asaas.apisdk.validation.validators.modelValidators; -import com.asaas.apisdk.models.ApiCheckoutSessionInstallmentDto; +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 ApiCheckoutSessionInstallmentDtoValidator - extends AbstractModelValidator { +public class CheckoutSessionInstallmentDtoValidator extends AbstractModelValidator { - public ApiCheckoutSessionInstallmentDtoValidator(String fieldName) { + public CheckoutSessionInstallmentDtoValidator(String fieldName) { super(fieldName); } - public ApiCheckoutSessionInstallmentDtoValidator() {} + public CheckoutSessionInstallmentDtoValidator() {} @Override - protected Violation[] validateModel(ApiCheckoutSessionInstallmentDto apiCheckoutSessionInstallmentDto) { + protected Violation[] validateModel(CheckoutSessionInstallmentDto checkoutSessionInstallmentDto) { return new ViolationAggregator() .add( new NumericValidator("maxInstallmentCount") .min(1L) .max(21L) .optional() - .validate(apiCheckoutSessionInstallmentDto.getMaxInstallmentCount()) + .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/ApiPixQrCodeSaveRequestDtoValidator.java b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/PixQrCodeSaveRequestDtoValidator.java similarity index 53% rename from src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiPixQrCodeSaveRequestDtoValidator.java rename to src/main/java/com/asaas/apisdk/validation/validators/modelValidators/PixQrCodeSaveRequestDtoValidator.java index f5e4235..e59aa3f 100644 --- a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiPixQrCodeSaveRequestDtoValidator.java +++ b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/PixQrCodeSaveRequestDtoValidator.java @@ -2,27 +2,27 @@ package com.asaas.apisdk.validation.validators.modelValidators; -import com.asaas.apisdk.models.ApiPixQrCodeSaveRequestDto; +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 ApiPixQrCodeSaveRequestDtoValidator extends AbstractModelValidator { +public class PixQrCodeSaveRequestDtoValidator extends AbstractModelValidator { - public ApiPixQrCodeSaveRequestDtoValidator(String fieldName) { + public PixQrCodeSaveRequestDtoValidator(String fieldName) { super(fieldName); } - public ApiPixQrCodeSaveRequestDtoValidator() {} + public PixQrCodeSaveRequestDtoValidator() {} @Override - protected Violation[] validateModel(ApiPixQrCodeSaveRequestDto apiPixQrCodeSaveRequestDto) { + protected Violation[] validateModel(PixQrCodeSaveRequestDto pixQrCodeSaveRequestDto) { return new ViolationAggregator() .add( new StringValidator("externalReference") .maxLength(100) .optional() - .validate(apiPixQrCodeSaveRequestDto.getExternalReference()) + .validate(pixQrCodeSaveRequestDto.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/TransferRecurringSaveRequestDtoValidator.java similarity index 50% rename from src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiTransferRecurringSaveRequestDtoValidator.java rename to src/main/java/com/asaas/apisdk/validation/validators/modelValidators/TransferRecurringSaveRequestDtoValidator.java index 3dd0d0a..2b3b3c4 100644 --- a/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/ApiTransferRecurringSaveRequestDtoValidator.java +++ b/src/main/java/com/asaas/apisdk/validation/validators/modelValidators/TransferRecurringSaveRequestDtoValidator.java @@ -2,29 +2,28 @@ package com.asaas.apisdk.validation.validators.modelValidators; -import com.asaas.apisdk.models.ApiTransferRecurringSaveRequestDto; +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 ApiTransferRecurringSaveRequestDtoValidator - extends AbstractModelValidator { +public class TransferRecurringSaveRequestDtoValidator extends AbstractModelValidator { - public ApiTransferRecurringSaveRequestDtoValidator(String fieldName) { + public TransferRecurringSaveRequestDtoValidator(String fieldName) { super(fieldName); } - public ApiTransferRecurringSaveRequestDtoValidator() {} + public TransferRecurringSaveRequestDtoValidator() {} @Override - protected Violation[] validateModel(ApiTransferRecurringSaveRequestDto apiTransferRecurringSaveRequestDto) { + protected Violation[] validateModel(TransferRecurringSaveRequestDto transferRecurringSaveRequestDto) { return new ViolationAggregator() .add( new NumericValidator("quantity") .min(1L) .max(51L) .optional() - .validate(apiTransferRecurringSaveRequestDto.getQuantity()) + .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(); + } +}