From 3cf39ce69bc4995928c32a1244b3a8184b4d154e Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Wed, 23 Jul 2025 20:49:57 +0000 Subject: [PATCH 1/6] [reformat][adyen-sdk-automation] automated change --- .../balancePlatform/accountHoldersApi.ts | 3 +- .../balancePlatform/authorizedCardUsersApi.ts | 1 + .../balancePlatform/balanceAccountsApi.ts | 1 + src/services/balancePlatform/balancesApi.ts | 1 + .../bankAccountValidationApi.ts | 1 + src/services/balancePlatform/cardOrdersApi.ts | 1 + .../balancePlatform/grantAccountsApi.ts | 1 + .../balancePlatform/grantOffersApi.ts | 1 + .../balancePlatform/manageCardPINApi.ts | 1 + .../balancePlatform/manageSCADevicesApi.ts | 1 + .../balancePlatform/networkTokensApi.ts | 1 + .../paymentInstrumentGroupsApi.ts | 1 + .../balancePlatform/paymentInstrumentsApi.ts | 1 + src/services/balancePlatform/platformApi.ts | 1 + .../balancePlatform/transactionRulesApi.ts | 1 + .../balancePlatform/transferRoutesApi.ts | 1 + src/services/binLookup/binLookupApi.ts | 1 + src/services/checkout/donationsApi.ts | 1 + src/services/checkout/modificationsApi.ts | 1 + src/services/checkout/ordersApi.ts | 1 + src/services/checkout/paymentLinksApi.ts | 1 + src/services/checkout/paymentsApi.ts | 1 + src/services/checkout/utilityApi.ts | 1 + .../dataProtection/dataProtectionApi.ts | 1 + src/services/disputes/disputesApi.ts | 1 + .../legalEntityManagement/businessLinesApi.ts | 1 + .../legalEntityManagement/documentsApi.ts | 1 + .../hostedOnboardingApi.ts | 1 + .../legalEntityManagement/legalEntitiesApi.ts | 1 + .../pCIQuestionnairesApi.ts | 1 + .../taxEDeliveryConsentApi.ts | 1 + .../termsOfServiceApi.ts | 1 + .../transferInstrumentsApi.ts | 1 + .../aPICredentialsCompanyLevelApi.ts | 1 + .../aPICredentialsMerchantLevelApi.ts | 1 + .../management/aPIKeyCompanyLevelApi.ts | 1 + .../management/aPIKeyMerchantLevelApi.ts | 1 + .../management/accountCompanyLevelApi.ts | 1 + .../management/accountMerchantLevelApi.ts | 1 + .../management/accountStoreLevelApi.ts | 1 + .../allowedOriginsCompanyLevelApi.ts | 1 + .../allowedOriginsMerchantLevelApi.ts | 1 + .../management/androidFilesCompanyLevelApi.ts | 1 + .../management/clientKeyCompanyLevelApi.ts | 1 + .../management/clientKeyMerchantLevelApi.ts | 1 + src/services/management/myAPICredentialApi.ts | 1 + .../paymentMethodsMerchantLevelApi.ts | 1 + .../payoutSettingsMerchantLevelApi.ts | 1 + .../splitConfigurationMerchantLevelApi.ts | 1 + .../terminalActionsCompanyLevelApi.ts | 1 + .../terminalActionsTerminalLevelApi.ts | 1 + .../terminalOrdersCompanyLevelApi.ts | 1 + .../terminalOrdersMerchantLevelApi.ts | 1 + .../terminalSettingsCompanyLevelApi.ts | 1 + .../terminalSettingsMerchantLevelApi.ts | 1 + .../terminalSettingsStoreLevelApi.ts | 1 + .../terminalSettingsTerminalLevelApi.ts | 1 + .../management/terminalsTerminalLevelApi.ts | 1 + .../management/usersCompanyLevelApi.ts | 1 + .../management/usersMerchantLevelApi.ts | 1 + .../management/webhooksCompanyLevelApi.ts | 1 + .../management/webhooksMerchantLevelApi.ts | 1 + src/services/payment/modificationsApi.ts | 1 + src/services/payment/paymentsApi.ts | 1 + src/services/paymentsApp/paymentsAppApi.ts | 1 + src/services/payout/initializationApi.ts | 1 + src/services/payout/instantPayoutsApi.ts | 1 + src/services/payout/reviewingApi.ts | 1 + src/services/recurring/recurringApi.ts | 1 + .../sessionAuthenticationApi.ts | 1 + src/services/storedValue/storedValueApi.ts | 1 + src/services/transfers/capitalApi.ts | 1 + src/services/transfers/transactionsApi.ts | 3 +- src/services/transfers/transfersApi.ts | 4 +- .../balancePlatform/balanceWebhookSetting.ts | 2 + src/typings/checkout/authenticationData.ts | 2 +- src/typings/checkout/balanceCheckRequest.ts | 8 +- .../checkout/createCheckoutSessionRequest.ts | 8 +- .../checkout/createCheckoutSessionResponse.ts | 8 +- .../detailsRequestAuthenticationData.ts | 2 +- .../checkout/donationPaymentRequest.ts | 14 +- .../checkout/paymentAmountUpdateRequest.ts | 8 + src/typings/checkout/paymentCancelRequest.ts | 8 + src/typings/checkout/paymentDetails.ts | 2 + src/typings/checkout/paymentLinkRequest.ts | 2 +- src/typings/checkout/paymentLinkResponse.ts | 2 +- src/typings/checkout/paymentMethod.ts | 10 + src/typings/checkout/paymentMethodsRequest.ts | 6 +- src/typings/checkout/paymentRefundRequest.ts | 8 + src/typings/checkout/paymentRequest.ts | 12 +- .../checkout/paymentReversalRequest.ts | 8 + src/typings/checkout/rivertyDetails.ts | 10 + .../standalonePaymentCancelRequest.ts | 8 + src/typings/checkout/threeDS2RequestData.ts | 2 +- src/typings/checkout/threeDS2RequestFields.ts | 2 +- src/typings/checkout/threeDSRequestData.ts | 4 +- .../legalEntityManagement/attachment.ts | 2 +- .../accountHolderResource.ts | 1 + .../balanceAccountResource.ts | 1 + .../legalEntityResource.ts | 1 + .../merchantAccountResource.ts | 1 + .../paymentInstrumentResource.ts | 1 + src/typings/tokenizationWebhooks/models.ts | 10 + .../tokenizationWebhooks/objectSerializer.ts | 365 ++++++++++++++++++ .../tokenizationWebhooks/recurringToken.ts | 66 ++++ .../recurringTokenStoreOperation.ts | 76 ++++ ...readyExistingDetailsNotificationRequest.ts | 94 +++++ ...zationCreatedDetailsNotificationRequest.ts | 94 +++++ ...ationDisabledDetailsNotificationRequest.ts | 94 +++++ .../tokenizationNotificationResponse.ts | 36 ++ ...zationUpdatedDetailsNotificationRequest.ts | 94 +++++ .../tokenizationWebhooksHandler.ts | 101 +++++ .../transferWebhooks/transferDataTracking.ts | 9 +- 113 files changed, 1216 insertions(+), 47 deletions(-) create mode 100644 src/typings/tokenizationWebhooks/models.ts create mode 100644 src/typings/tokenizationWebhooks/objectSerializer.ts create mode 100644 src/typings/tokenizationWebhooks/recurringToken.ts create mode 100644 src/typings/tokenizationWebhooks/recurringTokenStoreOperation.ts create mode 100644 src/typings/tokenizationWebhooks/tokenizationAlreadyExistingDetailsNotificationRequest.ts create mode 100644 src/typings/tokenizationWebhooks/tokenizationCreatedDetailsNotificationRequest.ts create mode 100644 src/typings/tokenizationWebhooks/tokenizationDisabledDetailsNotificationRequest.ts create mode 100644 src/typings/tokenizationWebhooks/tokenizationNotificationResponse.ts create mode 100644 src/typings/tokenizationWebhooks/tokenizationUpdatedDetailsNotificationRequest.ts create mode 100644 src/typings/tokenizationWebhooks/tokenizationWebhooksHandler.ts diff --git a/src/services/balancePlatform/accountHoldersApi.ts b/src/services/balancePlatform/accountHoldersApi.ts index cdc3d9360..553a3eb46 100644 --- a/src/services/balancePlatform/accountHoldersApi.ts +++ b/src/services/balancePlatform/accountHoldersApi.ts @@ -20,6 +20,7 @@ import { AccountHolderInfo } from "../../typings/balancePlatform/models"; import { AccountHolderUpdateRequest } from "../../typings/balancePlatform/models"; import { GetTaxFormResponse } from "../../typings/balancePlatform/models"; import { PaginatedBalanceAccountsResponse } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; /** @@ -133,7 +134,7 @@ export class AccountHoldersApi extends Service { * @param legalEntityId {@link string } The legal entity reference whose tax form you want to retrieve * @return {@link GetTaxFormResponse } */ - public async getTaxForm(id: string, formType: "US1099k" | "US1099nec", year: number, legalEntityId?: string, requestOptions?: IRequest.Options): Promise { + public async getTaxForm(id: string, formType: 'US1099k' | 'US1099nec', year: number, legalEntityId?: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/accountHolders/{id}/taxForms` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); diff --git a/src/services/balancePlatform/authorizedCardUsersApi.ts b/src/services/balancePlatform/authorizedCardUsersApi.ts index 65b428924..ac8cc478d 100644 --- a/src/services/balancePlatform/authorizedCardUsersApi.ts +++ b/src/services/balancePlatform/authorizedCardUsersApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { AuthorisedCardUsers } from "../../typings/balancePlatform/models"; +import { DefaultErrorResponseEntity } from "../../typings/balancePlatform/models"; /** * API handler for AuthorizedCardUsersApi diff --git a/src/services/balancePlatform/balanceAccountsApi.ts b/src/services/balancePlatform/balanceAccountsApi.ts index a40814d96..10ef7ab87 100644 --- a/src/services/balancePlatform/balanceAccountsApi.ts +++ b/src/services/balancePlatform/balanceAccountsApi.ts @@ -21,6 +21,7 @@ import { BalanceAccountUpdateRequest } from "../../typings/balancePlatform/model import { BalanceSweepConfigurationsResponse } from "../../typings/balancePlatform/models"; import { CreateSweepConfigurationV2 } from "../../typings/balancePlatform/models"; import { PaginatedPaymentInstrumentsResponse } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; import { SweepConfigurationV2 } from "../../typings/balancePlatform/models"; import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; import { UpdateSweepConfigurationV2 } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/balancesApi.ts b/src/services/balancePlatform/balancesApi.ts index ce43eaf34..f4abdf744 100644 --- a/src/services/balancePlatform/balancesApi.ts +++ b/src/services/balancePlatform/balancesApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { BalanceWebhookSettingInfo } from "../../typings/balancePlatform/models"; import { BalanceWebhookSettingInfoUpdate } from "../../typings/balancePlatform/models"; +import { DefaultErrorResponseEntity } from "../../typings/balancePlatform/models"; import { WebhookSetting } from "../../typings/balancePlatform/models"; import { WebhookSettings } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/bankAccountValidationApi.ts b/src/services/balancePlatform/bankAccountValidationApi.ts index 5ecdd1c25..ff54fafc9 100644 --- a/src/services/balancePlatform/bankAccountValidationApi.ts +++ b/src/services/balancePlatform/bankAccountValidationApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { BankAccountIdentificationValidationRequest } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; /** * API handler for BankAccountValidationApi diff --git a/src/services/balancePlatform/cardOrdersApi.ts b/src/services/balancePlatform/cardOrdersApi.ts index 1579f71f8..66ef74d95 100644 --- a/src/services/balancePlatform/cardOrdersApi.ts +++ b/src/services/balancePlatform/cardOrdersApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { PaginatedGetCardOrderItemResponse } from "../../typings/balancePlatform/models"; import { PaginatedGetCardOrderResponse } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; /** * API handler for CardOrdersApi diff --git a/src/services/balancePlatform/grantAccountsApi.ts b/src/services/balancePlatform/grantAccountsApi.ts index 25cc1651a..d27a58b87 100644 --- a/src/services/balancePlatform/grantAccountsApi.ts +++ b/src/services/balancePlatform/grantAccountsApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { CapitalGrantAccount } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; /** * API handler for GrantAccountsApi diff --git a/src/services/balancePlatform/grantOffersApi.ts b/src/services/balancePlatform/grantOffersApi.ts index 87f5e6467..aa55bdb98 100644 --- a/src/services/balancePlatform/grantOffersApi.ts +++ b/src/services/balancePlatform/grantOffersApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { GrantOffer } from "../../typings/balancePlatform/models"; import { GrantOffers } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; /** * API handler for GrantOffersApi diff --git a/src/services/balancePlatform/manageCardPINApi.ts b/src/services/balancePlatform/manageCardPINApi.ts index 763493a72..a9cb3127e 100644 --- a/src/services/balancePlatform/manageCardPINApi.ts +++ b/src/services/balancePlatform/manageCardPINApi.ts @@ -18,6 +18,7 @@ import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer import { PinChangeRequest } from "../../typings/balancePlatform/models"; import { PinChangeResponse } from "../../typings/balancePlatform/models"; import { PublicKeyResponse } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; import { RevealPinRequest } from "../../typings/balancePlatform/models"; import { RevealPinResponse } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/manageSCADevicesApi.ts b/src/services/balancePlatform/manageSCADevicesApi.ts index 6041c1e29..593d88f81 100644 --- a/src/services/balancePlatform/manageSCADevicesApi.ts +++ b/src/services/balancePlatform/manageSCADevicesApi.ts @@ -22,6 +22,7 @@ import { AssociationInitiateResponse } from "../../typings/balancePlatform/model import { RegisterSCAFinalResponse } from "../../typings/balancePlatform/models"; import { RegisterSCARequest } from "../../typings/balancePlatform/models"; import { RegisterSCAResponse } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; import { SearchRegisteredDevicesResponse } from "../../typings/balancePlatform/models"; /** diff --git a/src/services/balancePlatform/networkTokensApi.ts b/src/services/balancePlatform/networkTokensApi.ts index 1ee1b904d..c2619d002 100644 --- a/src/services/balancePlatform/networkTokensApi.ts +++ b/src/services/balancePlatform/networkTokensApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { GetNetworkTokenResponse } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; import { UpdateNetworkTokenRequest } from "../../typings/balancePlatform/models"; /** diff --git a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts index 5d330c23b..54ba69df7 100644 --- a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { PaymentInstrumentGroup } from "../../typings/balancePlatform/models"; import { PaymentInstrumentGroupInfo } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; /** diff --git a/src/services/balancePlatform/paymentInstrumentsApi.ts b/src/services/balancePlatform/paymentInstrumentsApi.ts index 0d5a078f1..068d305bd 100644 --- a/src/services/balancePlatform/paymentInstrumentsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentsApi.ts @@ -24,6 +24,7 @@ import { PaymentInstrumentRevealInfo } from "../../typings/balancePlatform/model import { PaymentInstrumentRevealRequest } from "../../typings/balancePlatform/models"; import { PaymentInstrumentRevealResponse } from "../../typings/balancePlatform/models"; import { PaymentInstrumentUpdateRequest } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; import { UpdatePaymentInstrument } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/platformApi.ts b/src/services/balancePlatform/platformApi.ts index bf068a966..1a0a04c7c 100644 --- a/src/services/balancePlatform/platformApi.ts +++ b/src/services/balancePlatform/platformApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { BalancePlatform } from "../../typings/balancePlatform/models"; import { PaginatedAccountHoldersResponse } from "../../typings/balancePlatform/models"; +import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; /** diff --git a/src/services/balancePlatform/transactionRulesApi.ts b/src/services/balancePlatform/transactionRulesApi.ts index f60370dd7..61143e9eb 100644 --- a/src/services/balancePlatform/transactionRulesApi.ts +++ b/src/services/balancePlatform/transactionRulesApi.ts @@ -15,6 +15,7 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; +import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransactionRule } from "../../typings/balancePlatform/models"; import { TransactionRuleInfo } from "../../typings/balancePlatform/models"; import { TransactionRuleResponse } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/transferRoutesApi.ts b/src/services/balancePlatform/transferRoutesApi.ts index edd6e3762..0557a82c8 100644 --- a/src/services/balancePlatform/transferRoutesApi.ts +++ b/src/services/balancePlatform/transferRoutesApi.ts @@ -15,6 +15,7 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; +import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransferRouteRequest } from "../../typings/balancePlatform/models"; import { TransferRouteResponse } from "../../typings/balancePlatform/models"; diff --git a/src/services/binLookup/binLookupApi.ts b/src/services/binLookup/binLookupApi.ts index 32a038175..d3b9cd899 100644 --- a/src/services/binLookup/binLookupApi.ts +++ b/src/services/binLookup/binLookupApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/binLookup/objectSerializer"; import { CostEstimateRequest } from "../../typings/binLookup/models"; import { CostEstimateResponse } from "../../typings/binLookup/models"; +import { ServiceError } from "../../typings/binLookup/models"; import { ThreeDSAvailabilityRequest } from "../../typings/binLookup/models"; import { ThreeDSAvailabilityResponse } from "../../typings/binLookup/models"; diff --git a/src/services/checkout/donationsApi.ts b/src/services/checkout/donationsApi.ts index 7c640358e..b4f2d67b9 100644 --- a/src/services/checkout/donationsApi.ts +++ b/src/services/checkout/donationsApi.ts @@ -19,6 +19,7 @@ import { DonationCampaignsRequest } from "../../typings/checkout/models"; import { DonationCampaignsResponse } from "../../typings/checkout/models"; import { DonationPaymentRequest } from "../../typings/checkout/models"; import { DonationPaymentResponse } from "../../typings/checkout/models"; +import { ServiceError } from "../../typings/checkout/models"; /** * API handler for DonationsApi diff --git a/src/services/checkout/modificationsApi.ts b/src/services/checkout/modificationsApi.ts index 8fe53856d..3346188d7 100644 --- a/src/services/checkout/modificationsApi.ts +++ b/src/services/checkout/modificationsApi.ts @@ -25,6 +25,7 @@ import { PaymentRefundRequest } from "../../typings/checkout/models"; import { PaymentRefundResponse } from "../../typings/checkout/models"; import { PaymentReversalRequest } from "../../typings/checkout/models"; import { PaymentReversalResponse } from "../../typings/checkout/models"; +import { ServiceError } from "../../typings/checkout/models"; import { StandalonePaymentCancelRequest } from "../../typings/checkout/models"; import { StandalonePaymentCancelResponse } from "../../typings/checkout/models"; diff --git a/src/services/checkout/ordersApi.ts b/src/services/checkout/ordersApi.ts index 3c34ea6dc..b3abc3ebd 100644 --- a/src/services/checkout/ordersApi.ts +++ b/src/services/checkout/ordersApi.ts @@ -21,6 +21,7 @@ import { CancelOrderRequest } from "../../typings/checkout/models"; import { CancelOrderResponse } from "../../typings/checkout/models"; import { CreateOrderRequest } from "../../typings/checkout/models"; import { CreateOrderResponse } from "../../typings/checkout/models"; +import { ServiceError } from "../../typings/checkout/models"; /** * API handler for OrdersApi diff --git a/src/services/checkout/paymentLinksApi.ts b/src/services/checkout/paymentLinksApi.ts index 37047adb2..57d9c0582 100644 --- a/src/services/checkout/paymentLinksApi.ts +++ b/src/services/checkout/paymentLinksApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/checkout/objectSerializer"; import { PaymentLinkRequest } from "../../typings/checkout/models"; import { PaymentLinkResponse } from "../../typings/checkout/models"; +import { ServiceError } from "../../typings/checkout/models"; import { UpdatePaymentLinkRequest } from "../../typings/checkout/models"; /** diff --git a/src/services/checkout/paymentsApi.ts b/src/services/checkout/paymentsApi.ts index e7ea34920..37f864cb7 100644 --- a/src/services/checkout/paymentsApi.ts +++ b/src/services/checkout/paymentsApi.ts @@ -25,6 +25,7 @@ import { PaymentMethodsRequest } from "../../typings/checkout/models"; import { PaymentMethodsResponse } from "../../typings/checkout/models"; import { PaymentRequest } from "../../typings/checkout/models"; import { PaymentResponse } from "../../typings/checkout/models"; +import { ServiceError } from "../../typings/checkout/models"; import { SessionResultResponse } from "../../typings/checkout/models"; /** diff --git a/src/services/checkout/utilityApi.ts b/src/services/checkout/utilityApi.ts index fd3210c08..c89721842 100644 --- a/src/services/checkout/utilityApi.ts +++ b/src/services/checkout/utilityApi.ts @@ -19,6 +19,7 @@ import { ApplePaySessionRequest } from "../../typings/checkout/models"; import { ApplePaySessionResponse } from "../../typings/checkout/models"; import { PaypalUpdateOrderRequest } from "../../typings/checkout/models"; import { PaypalUpdateOrderResponse } from "../../typings/checkout/models"; +import { ServiceError } from "../../typings/checkout/models"; import { UtilityRequest } from "../../typings/checkout/models"; import { UtilityResponse } from "../../typings/checkout/models"; diff --git a/src/services/dataProtection/dataProtectionApi.ts b/src/services/dataProtection/dataProtectionApi.ts index adddf906b..e67116388 100644 --- a/src/services/dataProtection/dataProtectionApi.ts +++ b/src/services/dataProtection/dataProtectionApi.ts @@ -15,6 +15,7 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/dataProtection/objectSerializer"; +import { ServiceError } from "../../typings/dataProtection/models"; import { SubjectErasureByPspReferenceRequest } from "../../typings/dataProtection/models"; import { SubjectErasureResponse } from "../../typings/dataProtection/models"; diff --git a/src/services/disputes/disputesApi.ts b/src/services/disputes/disputesApi.ts index 0a37921b3..eb71ab027 100644 --- a/src/services/disputes/disputesApi.ts +++ b/src/services/disputes/disputesApi.ts @@ -23,6 +23,7 @@ import { DefenseReasonsRequest } from "../../typings/disputes/models"; import { DefenseReasonsResponse } from "../../typings/disputes/models"; import { DeleteDefenseDocumentRequest } from "../../typings/disputes/models"; import { DeleteDefenseDocumentResponse } from "../../typings/disputes/models"; +import { ServiceError } from "../../typings/disputes/models"; import { SupplyDefenseDocumentRequest } from "../../typings/disputes/models"; import { SupplyDefenseDocumentResponse } from "../../typings/disputes/models"; diff --git a/src/services/legalEntityManagement/businessLinesApi.ts b/src/services/legalEntityManagement/businessLinesApi.ts index fb9a9e5cf..c62287ced 100644 --- a/src/services/legalEntityManagement/businessLinesApi.ts +++ b/src/services/legalEntityManagement/businessLinesApi.ts @@ -18,6 +18,7 @@ import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSeri import { BusinessLine } from "../../typings/legalEntityManagement/models"; import { BusinessLineInfo } from "../../typings/legalEntityManagement/models"; import { BusinessLineInfoUpdate } from "../../typings/legalEntityManagement/models"; +import { ServiceError } from "../../typings/legalEntityManagement/models"; /** * API handler for BusinessLinesApi diff --git a/src/services/legalEntityManagement/documentsApi.ts b/src/services/legalEntityManagement/documentsApi.ts index 064290fb7..024c56e59 100644 --- a/src/services/legalEntityManagement/documentsApi.ts +++ b/src/services/legalEntityManagement/documentsApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; import { Document } from "../../typings/legalEntityManagement/models"; +import { ServiceError } from "../../typings/legalEntityManagement/models"; /** * API handler for DocumentsApi diff --git a/src/services/legalEntityManagement/hostedOnboardingApi.ts b/src/services/legalEntityManagement/hostedOnboardingApi.ts index ad88a1e84..bcb8f1692 100644 --- a/src/services/legalEntityManagement/hostedOnboardingApi.ts +++ b/src/services/legalEntityManagement/hostedOnboardingApi.ts @@ -19,6 +19,7 @@ import { OnboardingLink } from "../../typings/legalEntityManagement/models"; import { OnboardingLinkInfo } from "../../typings/legalEntityManagement/models"; import { OnboardingTheme } from "../../typings/legalEntityManagement/models"; import { OnboardingThemes } from "../../typings/legalEntityManagement/models"; +import { ServiceError } from "../../typings/legalEntityManagement/models"; /** * API handler for HostedOnboardingApi diff --git a/src/services/legalEntityManagement/legalEntitiesApi.ts b/src/services/legalEntityManagement/legalEntitiesApi.ts index 9948a00e2..d16db573d 100644 --- a/src/services/legalEntityManagement/legalEntitiesApi.ts +++ b/src/services/legalEntityManagement/legalEntitiesApi.ts @@ -20,6 +20,7 @@ import { DataReviewConfirmationResponse } from "../../typings/legalEntityManagem import { LegalEntity } from "../../typings/legalEntityManagement/models"; import { LegalEntityInfo } from "../../typings/legalEntityManagement/models"; import { LegalEntityInfoRequiredType } from "../../typings/legalEntityManagement/models"; +import { ServiceError } from "../../typings/legalEntityManagement/models"; import { VerificationErrors } from "../../typings/legalEntityManagement/models"; /** diff --git a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts index 04df88f5b..ea2ab2147 100644 --- a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts +++ b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts @@ -23,6 +23,7 @@ import { GetPciQuestionnaireInfosResponse } from "../../typings/legalEntityManag import { GetPciQuestionnaireResponse } from "../../typings/legalEntityManagement/models"; import { PciSigningRequest } from "../../typings/legalEntityManagement/models"; import { PciSigningResponse } from "../../typings/legalEntityManagement/models"; +import { ServiceError } from "../../typings/legalEntityManagement/models"; /** * API handler for PCIQuestionnairesApi diff --git a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts index 55d2fa4b0..3d12db666 100644 --- a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts +++ b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; import { CheckTaxElectronicDeliveryConsentResponse } from "../../typings/legalEntityManagement/models"; +import { ServiceError } from "../../typings/legalEntityManagement/models"; import { SetTaxElectronicDeliveryConsentRequest } from "../../typings/legalEntityManagement/models"; /** diff --git a/src/services/legalEntityManagement/termsOfServiceApi.ts b/src/services/legalEntityManagement/termsOfServiceApi.ts index bb9e5078b..7d01ceafb 100644 --- a/src/services/legalEntityManagement/termsOfServiceApi.ts +++ b/src/services/legalEntityManagement/termsOfServiceApi.ts @@ -22,6 +22,7 @@ import { GetAcceptedTermsOfServiceDocumentResponse } from "../../typings/legalEn import { GetTermsOfServiceAcceptanceInfosResponse } from "../../typings/legalEntityManagement/models"; import { GetTermsOfServiceDocumentRequest } from "../../typings/legalEntityManagement/models"; import { GetTermsOfServiceDocumentResponse } from "../../typings/legalEntityManagement/models"; +import { ServiceError } from "../../typings/legalEntityManagement/models"; /** * API handler for TermsOfServiceApi diff --git a/src/services/legalEntityManagement/transferInstrumentsApi.ts b/src/services/legalEntityManagement/transferInstrumentsApi.ts index bb67e4173..be91d5616 100644 --- a/src/services/legalEntityManagement/transferInstrumentsApi.ts +++ b/src/services/legalEntityManagement/transferInstrumentsApi.ts @@ -15,6 +15,7 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; +import { ServiceError } from "../../typings/legalEntityManagement/models"; import { TransferInstrument } from "../../typings/legalEntityManagement/models"; import { TransferInstrumentInfo } from "../../typings/legalEntityManagement/models"; diff --git a/src/services/management/aPICredentialsCompanyLevelApi.ts b/src/services/management/aPICredentialsCompanyLevelApi.ts index 2d43153c3..a622ce177 100644 --- a/src/services/management/aPICredentialsCompanyLevelApi.ts +++ b/src/services/management/aPICredentialsCompanyLevelApi.ts @@ -19,6 +19,7 @@ import { CompanyApiCredential } from "../../typings/management/models"; import { CreateCompanyApiCredentialRequest } from "../../typings/management/models"; import { CreateCompanyApiCredentialResponse } from "../../typings/management/models"; import { ListCompanyApiCredentialsResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { UpdateCompanyApiCredentialRequest } from "../../typings/management/models"; /** diff --git a/src/services/management/aPICredentialsMerchantLevelApi.ts b/src/services/management/aPICredentialsMerchantLevelApi.ts index 42dc3cad4..22042bdaa 100644 --- a/src/services/management/aPICredentialsMerchantLevelApi.ts +++ b/src/services/management/aPICredentialsMerchantLevelApi.ts @@ -19,6 +19,7 @@ import { ApiCredential } from "../../typings/management/models"; import { CreateApiCredentialResponse } from "../../typings/management/models"; import { CreateMerchantApiCredentialRequest } from "../../typings/management/models"; import { ListMerchantApiCredentialsResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { UpdateMerchantApiCredentialRequest } from "../../typings/management/models"; /** diff --git a/src/services/management/aPIKeyCompanyLevelApi.ts b/src/services/management/aPIKeyCompanyLevelApi.ts index 5ad3a8a75..2af6384b7 100644 --- a/src/services/management/aPIKeyCompanyLevelApi.ts +++ b/src/services/management/aPIKeyCompanyLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { GenerateApiKeyResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; /** * API handler for APIKeyCompanyLevelApi diff --git a/src/services/management/aPIKeyMerchantLevelApi.ts b/src/services/management/aPIKeyMerchantLevelApi.ts index 6a9808c31..966455712 100644 --- a/src/services/management/aPIKeyMerchantLevelApi.ts +++ b/src/services/management/aPIKeyMerchantLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { GenerateApiKeyResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; /** * API handler for APIKeyMerchantLevelApi diff --git a/src/services/management/accountCompanyLevelApi.ts b/src/services/management/accountCompanyLevelApi.ts index e55965248..f98ddea53 100644 --- a/src/services/management/accountCompanyLevelApi.ts +++ b/src/services/management/accountCompanyLevelApi.ts @@ -18,6 +18,7 @@ import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { Company } from "../../typings/management/models"; import { ListCompanyResponse } from "../../typings/management/models"; import { ListMerchantResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; /** * API handler for AccountCompanyLevelApi diff --git a/src/services/management/accountMerchantLevelApi.ts b/src/services/management/accountMerchantLevelApi.ts index e22ffdebc..6693000dc 100644 --- a/src/services/management/accountMerchantLevelApi.ts +++ b/src/services/management/accountMerchantLevelApi.ts @@ -20,6 +20,7 @@ import { CreateMerchantResponse } from "../../typings/management/models"; import { ListMerchantResponse } from "../../typings/management/models"; import { Merchant } from "../../typings/management/models"; import { RequestActivationResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; /** * API handler for AccountMerchantLevelApi diff --git a/src/services/management/accountStoreLevelApi.ts b/src/services/management/accountStoreLevelApi.ts index fd6c71231..3447954fd 100644 --- a/src/services/management/accountStoreLevelApi.ts +++ b/src/services/management/accountStoreLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { ListStoresResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { Store } from "../../typings/management/models"; import { StoreCreationRequest } from "../../typings/management/models"; import { StoreCreationWithMerchantCodeRequest } from "../../typings/management/models"; diff --git a/src/services/management/allowedOriginsCompanyLevelApi.ts b/src/services/management/allowedOriginsCompanyLevelApi.ts index 02eb8cc7c..6ba2a1ce4 100644 --- a/src/services/management/allowedOriginsCompanyLevelApi.ts +++ b/src/services/management/allowedOriginsCompanyLevelApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { AllowedOrigin } from "../../typings/management/models"; import { AllowedOriginsResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; /** * API handler for AllowedOriginsCompanyLevelApi diff --git a/src/services/management/allowedOriginsMerchantLevelApi.ts b/src/services/management/allowedOriginsMerchantLevelApi.ts index 3b2481134..d4f122482 100644 --- a/src/services/management/allowedOriginsMerchantLevelApi.ts +++ b/src/services/management/allowedOriginsMerchantLevelApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { AllowedOrigin } from "../../typings/management/models"; import { AllowedOriginsResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; /** * API handler for AllowedOriginsMerchantLevelApi diff --git a/src/services/management/androidFilesCompanyLevelApi.ts b/src/services/management/androidFilesCompanyLevelApi.ts index ccb2f5b42..f38e7940c 100644 --- a/src/services/management/androidFilesCompanyLevelApi.ts +++ b/src/services/management/androidFilesCompanyLevelApi.ts @@ -19,6 +19,7 @@ import { AndroidApp } from "../../typings/management/models"; import { AndroidAppsResponse } from "../../typings/management/models"; import { AndroidCertificatesResponse } from "../../typings/management/models"; import { ReprocessAndroidAppResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { UploadAndroidAppResponse } from "../../typings/management/models"; import { UploadAndroidCertificateResponse } from "../../typings/management/models"; diff --git a/src/services/management/clientKeyCompanyLevelApi.ts b/src/services/management/clientKeyCompanyLevelApi.ts index 90fdac5e5..d2165f8e1 100644 --- a/src/services/management/clientKeyCompanyLevelApi.ts +++ b/src/services/management/clientKeyCompanyLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { GenerateClientKeyResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; /** * API handler for ClientKeyCompanyLevelApi diff --git a/src/services/management/clientKeyMerchantLevelApi.ts b/src/services/management/clientKeyMerchantLevelApi.ts index 9bf69808c..880f9657f 100644 --- a/src/services/management/clientKeyMerchantLevelApi.ts +++ b/src/services/management/clientKeyMerchantLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { GenerateClientKeyResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; /** * API handler for ClientKeyMerchantLevelApi diff --git a/src/services/management/myAPICredentialApi.ts b/src/services/management/myAPICredentialApi.ts index db24ad8e4..8cd34d1d9 100644 --- a/src/services/management/myAPICredentialApi.ts +++ b/src/services/management/myAPICredentialApi.ts @@ -20,6 +20,7 @@ import { AllowedOriginsResponse } from "../../typings/management/models"; import { CreateAllowedOriginRequest } from "../../typings/management/models"; import { GenerateClientKeyResponse } from "../../typings/management/models"; import { MeApiCredential } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; /** * API handler for MyAPICredentialApi diff --git a/src/services/management/paymentMethodsMerchantLevelApi.ts b/src/services/management/paymentMethodsMerchantLevelApi.ts index 088a7e103..a0f92d916 100644 --- a/src/services/management/paymentMethodsMerchantLevelApi.ts +++ b/src/services/management/paymentMethodsMerchantLevelApi.ts @@ -19,6 +19,7 @@ import { ApplePayInfo } from "../../typings/management/models"; import { PaymentMethod } from "../../typings/management/models"; import { PaymentMethodResponse } from "../../typings/management/models"; import { PaymentMethodSetupInfo } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { UpdatePaymentMethodInfo } from "../../typings/management/models"; /** diff --git a/src/services/management/payoutSettingsMerchantLevelApi.ts b/src/services/management/payoutSettingsMerchantLevelApi.ts index 3abce7b65..40d21d106 100644 --- a/src/services/management/payoutSettingsMerchantLevelApi.ts +++ b/src/services/management/payoutSettingsMerchantLevelApi.ts @@ -18,6 +18,7 @@ import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { PayoutSettings } from "../../typings/management/models"; import { PayoutSettingsRequest } from "../../typings/management/models"; import { PayoutSettingsResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { UpdatePayoutSettingsRequest } from "../../typings/management/models"; /** diff --git a/src/services/management/splitConfigurationMerchantLevelApi.ts b/src/services/management/splitConfigurationMerchantLevelApi.ts index 0675dfaf0..b17e41b32 100644 --- a/src/services/management/splitConfigurationMerchantLevelApi.ts +++ b/src/services/management/splitConfigurationMerchantLevelApi.ts @@ -15,6 +15,7 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; +import { RestServiceError } from "../../typings/management/models"; import { SplitConfiguration } from "../../typings/management/models"; import { SplitConfigurationList } from "../../typings/management/models"; import { SplitConfigurationRule } from "../../typings/management/models"; diff --git a/src/services/management/terminalActionsCompanyLevelApi.ts b/src/services/management/terminalActionsCompanyLevelApi.ts index 1f06ac54c..92f1edefc 100644 --- a/src/services/management/terminalActionsCompanyLevelApi.ts +++ b/src/services/management/terminalActionsCompanyLevelApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { ExternalTerminalAction } from "../../typings/management/models"; import { ListExternalTerminalActionsResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; /** * API handler for TerminalActionsCompanyLevelApi diff --git a/src/services/management/terminalActionsTerminalLevelApi.ts b/src/services/management/terminalActionsTerminalLevelApi.ts index 82440e1c1..870d79279 100644 --- a/src/services/management/terminalActionsTerminalLevelApi.ts +++ b/src/services/management/terminalActionsTerminalLevelApi.ts @@ -15,6 +15,7 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; +import { RestServiceError } from "../../typings/management/models"; import { ScheduleTerminalActionsRequest } from "../../typings/management/models"; import { ScheduleTerminalActionsResponse } from "../../typings/management/models"; diff --git a/src/services/management/terminalOrdersCompanyLevelApi.ts b/src/services/management/terminalOrdersCompanyLevelApi.ts index 6f027b9cf..7566afc8b 100644 --- a/src/services/management/terminalOrdersCompanyLevelApi.ts +++ b/src/services/management/terminalOrdersCompanyLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { BillingEntitiesResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { ShippingLocation } from "../../typings/management/models"; import { ShippingLocationsResponse } from "../../typings/management/models"; import { TerminalModelsResponse } from "../../typings/management/models"; diff --git a/src/services/management/terminalOrdersMerchantLevelApi.ts b/src/services/management/terminalOrdersMerchantLevelApi.ts index af401acf4..0158e0826 100644 --- a/src/services/management/terminalOrdersMerchantLevelApi.ts +++ b/src/services/management/terminalOrdersMerchantLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { BillingEntitiesResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { ShippingLocation } from "../../typings/management/models"; import { ShippingLocationsResponse } from "../../typings/management/models"; import { TerminalModelsResponse } from "../../typings/management/models"; diff --git a/src/services/management/terminalSettingsCompanyLevelApi.ts b/src/services/management/terminalSettingsCompanyLevelApi.ts index f7e6ab7f6..c1646b9a6 100644 --- a/src/services/management/terminalSettingsCompanyLevelApi.ts +++ b/src/services/management/terminalSettingsCompanyLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { Logo } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { TerminalSettings } from "../../typings/management/models"; /** diff --git a/src/services/management/terminalSettingsMerchantLevelApi.ts b/src/services/management/terminalSettingsMerchantLevelApi.ts index efacc8294..3497f25dd 100644 --- a/src/services/management/terminalSettingsMerchantLevelApi.ts +++ b/src/services/management/terminalSettingsMerchantLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { Logo } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { TerminalSettings } from "../../typings/management/models"; /** diff --git a/src/services/management/terminalSettingsStoreLevelApi.ts b/src/services/management/terminalSettingsStoreLevelApi.ts index 3b756b936..81f070c12 100644 --- a/src/services/management/terminalSettingsStoreLevelApi.ts +++ b/src/services/management/terminalSettingsStoreLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { Logo } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { TerminalSettings } from "../../typings/management/models"; /** diff --git a/src/services/management/terminalSettingsTerminalLevelApi.ts b/src/services/management/terminalSettingsTerminalLevelApi.ts index 690f6eeac..376b3c412 100644 --- a/src/services/management/terminalSettingsTerminalLevelApi.ts +++ b/src/services/management/terminalSettingsTerminalLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { Logo } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { TerminalSettings } from "../../typings/management/models"; /** diff --git a/src/services/management/terminalsTerminalLevelApi.ts b/src/services/management/terminalsTerminalLevelApi.ts index 5f585fbb6..1b807d866 100644 --- a/src/services/management/terminalsTerminalLevelApi.ts +++ b/src/services/management/terminalsTerminalLevelApi.ts @@ -16,6 +16,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { ListTerminalsResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { TerminalReassignmentRequest } from "../../typings/management/models"; /** diff --git a/src/services/management/usersCompanyLevelApi.ts b/src/services/management/usersCompanyLevelApi.ts index 784d5db34..2e2a49b9c 100644 --- a/src/services/management/usersCompanyLevelApi.ts +++ b/src/services/management/usersCompanyLevelApi.ts @@ -19,6 +19,7 @@ import { CompanyUser } from "../../typings/management/models"; import { CreateCompanyUserRequest } from "../../typings/management/models"; import { CreateCompanyUserResponse } from "../../typings/management/models"; import { ListCompanyUsersResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { UpdateCompanyUserRequest } from "../../typings/management/models"; /** diff --git a/src/services/management/usersMerchantLevelApi.ts b/src/services/management/usersMerchantLevelApi.ts index f3685662b..a997a2b9d 100644 --- a/src/services/management/usersMerchantLevelApi.ts +++ b/src/services/management/usersMerchantLevelApi.ts @@ -18,6 +18,7 @@ import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { CreateMerchantUserRequest } from "../../typings/management/models"; import { CreateUserResponse } from "../../typings/management/models"; import { ListMerchantUsersResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { UpdateMerchantUserRequest } from "../../typings/management/models"; import { User } from "../../typings/management/models"; diff --git a/src/services/management/webhooksCompanyLevelApi.ts b/src/services/management/webhooksCompanyLevelApi.ts index b6a379acf..a778a5735 100644 --- a/src/services/management/webhooksCompanyLevelApi.ts +++ b/src/services/management/webhooksCompanyLevelApi.ts @@ -18,6 +18,7 @@ import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { CreateCompanyWebhookRequest } from "../../typings/management/models"; import { GenerateHmacKeyResponse } from "../../typings/management/models"; import { ListWebhooksResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { TestCompanyWebhookRequest } from "../../typings/management/models"; import { TestWebhookResponse } from "../../typings/management/models"; import { UpdateCompanyWebhookRequest } from "../../typings/management/models"; diff --git a/src/services/management/webhooksMerchantLevelApi.ts b/src/services/management/webhooksMerchantLevelApi.ts index 65b97b929..2521bdeb3 100644 --- a/src/services/management/webhooksMerchantLevelApi.ts +++ b/src/services/management/webhooksMerchantLevelApi.ts @@ -18,6 +18,7 @@ import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { CreateMerchantWebhookRequest } from "../../typings/management/models"; import { GenerateHmacKeyResponse } from "../../typings/management/models"; import { ListWebhooksResponse } from "../../typings/management/models"; +import { RestServiceError } from "../../typings/management/models"; import { TestWebhookRequest } from "../../typings/management/models"; import { TestWebhookResponse } from "../../typings/management/models"; import { UpdateMerchantWebhookRequest } from "../../typings/management/models"; diff --git a/src/services/payment/modificationsApi.ts b/src/services/payment/modificationsApi.ts index 8ef990a09..8c152e0f4 100644 --- a/src/services/payment/modificationsApi.ts +++ b/src/services/payment/modificationsApi.ts @@ -22,6 +22,7 @@ import { CaptureRequest } from "../../typings/payment/models"; import { DonationRequest } from "../../typings/payment/models"; import { ModificationResult } from "../../typings/payment/models"; import { RefundRequest } from "../../typings/payment/models"; +import { ServiceError } from "../../typings/payment/models"; import { TechnicalCancelRequest } from "../../typings/payment/models"; import { VoidPendingRefundRequest } from "../../typings/payment/models"; diff --git a/src/services/payment/paymentsApi.ts b/src/services/payment/paymentsApi.ts index 089f0b9e9..44e008adb 100644 --- a/src/services/payment/paymentsApi.ts +++ b/src/services/payment/paymentsApi.ts @@ -21,6 +21,7 @@ import { PaymentRequest } from "../../typings/payment/models"; import { PaymentRequest3d } from "../../typings/payment/models"; import { PaymentRequest3ds2 } from "../../typings/payment/models"; import { PaymentResult } from "../../typings/payment/models"; +import { ServiceError } from "../../typings/payment/models"; import { ThreeDS2ResultRequest } from "../../typings/payment/models"; import { ThreeDS2ResultResponse } from "../../typings/payment/models"; diff --git a/src/services/paymentsApp/paymentsAppApi.ts b/src/services/paymentsApp/paymentsAppApi.ts index 072a524f2..348588f80 100644 --- a/src/services/paymentsApp/paymentsAppApi.ts +++ b/src/services/paymentsApp/paymentsAppApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/paymentsApp/objectSerializer"; import { BoardingTokenRequest } from "../../typings/paymentsApp/models"; import { BoardingTokenResponse } from "../../typings/paymentsApp/models"; +import { DefaultErrorResponseEntity } from "../../typings/paymentsApp/models"; import { PaymentsAppResponse } from "../../typings/paymentsApp/models"; /** diff --git a/src/services/payout/initializationApi.ts b/src/services/payout/initializationApi.ts index 466ae007e..3857298f5 100644 --- a/src/services/payout/initializationApi.ts +++ b/src/services/payout/initializationApi.ts @@ -15,6 +15,7 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/payout/objectSerializer"; +import { ServiceError } from "../../typings/payout/models"; import { StoreDetailAndSubmitRequest } from "../../typings/payout/models"; import { StoreDetailAndSubmitResponse } from "../../typings/payout/models"; import { StoreDetailRequest } from "../../typings/payout/models"; diff --git a/src/services/payout/instantPayoutsApi.ts b/src/services/payout/instantPayoutsApi.ts index 9c2043d21..cb821227c 100644 --- a/src/services/payout/instantPayoutsApi.ts +++ b/src/services/payout/instantPayoutsApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/payout/objectSerializer"; import { PayoutRequest } from "../../typings/payout/models"; import { PayoutResponse } from "../../typings/payout/models"; +import { ServiceError } from "../../typings/payout/models"; /** * API handler for InstantPayoutsApi diff --git a/src/services/payout/reviewingApi.ts b/src/services/payout/reviewingApi.ts index f90f70ad3..22ef2acb5 100644 --- a/src/services/payout/reviewingApi.ts +++ b/src/services/payout/reviewingApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/payout/objectSerializer"; import { ModifyRequest } from "../../typings/payout/models"; import { ModifyResponse } from "../../typings/payout/models"; +import { ServiceError } from "../../typings/payout/models"; /** * API handler for ReviewingApi diff --git a/src/services/recurring/recurringApi.ts b/src/services/recurring/recurringApi.ts index 3e3b48134..0386b95ff 100644 --- a/src/services/recurring/recurringApi.ts +++ b/src/services/recurring/recurringApi.ts @@ -27,6 +27,7 @@ import { RecurringDetailsRequest } from "../../typings/recurring/models"; import { RecurringDetailsResult } from "../../typings/recurring/models"; import { ScheduleAccountUpdaterRequest } from "../../typings/recurring/models"; import { ScheduleAccountUpdaterResult } from "../../typings/recurring/models"; +import { ServiceError } from "../../typings/recurring/models"; /** * API handler for RecurringApi diff --git a/src/services/sessionAuthentication/sessionAuthenticationApi.ts b/src/services/sessionAuthentication/sessionAuthenticationApi.ts index 204e77d3d..9492e5178 100644 --- a/src/services/sessionAuthentication/sessionAuthenticationApi.ts +++ b/src/services/sessionAuthentication/sessionAuthenticationApi.ts @@ -17,6 +17,7 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/sessionAuthentication/objectSerializer"; import { AuthenticationSessionRequest } from "../../typings/sessionAuthentication/models"; import { AuthenticationSessionResponse } from "../../typings/sessionAuthentication/models"; +import { DefaultErrorResponseEntity } from "../../typings/sessionAuthentication/models"; /** * API handler for SessionAuthenticationApi diff --git a/src/services/storedValue/storedValueApi.ts b/src/services/storedValue/storedValueApi.ts index c3d2bc81f..e575250ba 100644 --- a/src/services/storedValue/storedValueApi.ts +++ b/src/services/storedValue/storedValueApi.ts @@ -15,6 +15,7 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/storedValue/objectSerializer"; +import { ServiceError } from "../../typings/storedValue/models"; import { StoredValueBalanceCheckRequest } from "../../typings/storedValue/models"; import { StoredValueBalanceCheckResponse } from "../../typings/storedValue/models"; import { StoredValueBalanceMergeRequest } from "../../typings/storedValue/models"; diff --git a/src/services/transfers/capitalApi.ts b/src/services/transfers/capitalApi.ts index 7c6bb8b79..fc6bb23bb 100644 --- a/src/services/transfers/capitalApi.ts +++ b/src/services/transfers/capitalApi.ts @@ -18,6 +18,7 @@ import { ObjectSerializer } from "../../typings/transfers/objectSerializer"; import { CapitalGrant } from "../../typings/transfers/models"; import { CapitalGrantInfo } from "../../typings/transfers/models"; import { CapitalGrants } from "../../typings/transfers/models"; +import { RestServiceError } from "../../typings/transfers/models"; /** * API handler for CapitalApi diff --git a/src/services/transfers/transactionsApi.ts b/src/services/transfers/transactionsApi.ts index 6d176d378..fb5b306f4 100644 --- a/src/services/transfers/transactionsApi.ts +++ b/src/services/transfers/transactionsApi.ts @@ -15,6 +15,7 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/transfers/objectSerializer"; +import { RestServiceError } from "../../typings/transfers/models"; import { Transaction } from "../../typings/transfers/models"; import { TransactionSearchResponse } from "../../typings/transfers/models"; @@ -45,7 +46,7 @@ export class TransactionsApi extends Service { * @param limit {@link number } The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. * @return {@link TransactionSearchResponse } */ - public async getAllTransactions(createdSince: Date, createdUntil: Date, balancePlatform?: string, paymentInstrumentId?: string, accountHolderId?: string, balanceAccountId?: string, cursor?: string, sortOrder?: "asc" | "desc", limit?: number, requestOptions?: IRequest.Options): Promise { + public async getAllTransactions(createdSince: Date, createdUntil: Date, balancePlatform?: string, paymentInstrumentId?: string, accountHolderId?: string, balanceAccountId?: string, cursor?: string, sortOrder?: 'asc' | 'desc', limit?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transactions`; const resource = new Resource(this, endpoint); diff --git a/src/services/transfers/transfersApi.ts b/src/services/transfers/transfersApi.ts index e1afa1b75..3451d76ee 100644 --- a/src/services/transfers/transfersApi.ts +++ b/src/services/transfers/transfersApi.ts @@ -20,9 +20,11 @@ import { CancelTransfersRequest } from "../../typings/transfers/models"; import { FindTransfersResponse } from "../../typings/transfers/models"; import { ReturnTransferRequest } from "../../typings/transfers/models"; import { ReturnTransferResponse } from "../../typings/transfers/models"; +import { ServiceError } from "../../typings/transfers/models"; import { Transfer } from "../../typings/transfers/models"; import { TransferData } from "../../typings/transfers/models"; import { TransferInfo } from "../../typings/transfers/models"; +import { TransferServiceRestServiceError } from "../../typings/transfers/models"; /** * API handler for TransfersApi @@ -89,7 +91,7 @@ export class TransfersApi extends Service { * @param limit {@link number } The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. * @return {@link FindTransfersResponse } */ - public async getAllTransfers(createdSince: Date, createdUntil: Date, balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: "bank" | "card" | "grants" | "interest" | "internal" | "issuedCard" | "migration" | "platformPayment" | "topUp" | "upgrade", sortOrder?: "asc" | "desc", cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { + public async getAllTransfers(createdSince: Date, createdUntil: Date, balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: 'bank' | 'card' | 'grants' | 'interest' | 'internal' | 'issuedCard' | 'migration' | 'platformPayment' | 'topUp' | 'upgrade', sortOrder?: 'asc' | 'desc', cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transfers`; const resource = new Resource(this, endpoint); diff --git a/src/typings/balancePlatform/balanceWebhookSetting.ts b/src/typings/balancePlatform/balanceWebhookSetting.ts index 46e02f59c..7b03f026f 100644 --- a/src/typings/balancePlatform/balanceWebhookSetting.ts +++ b/src/typings/balancePlatform/balanceWebhookSetting.ts @@ -8,6 +8,8 @@ */ import { Condition } from "./condition"; +import { SettingType } from "./settingType"; +import { Target } from "./target"; import { WebhookSetting } from "./webhookSetting"; diff --git a/src/typings/checkout/authenticationData.ts b/src/typings/checkout/authenticationData.ts index 270925b5c..ba8d943f9 100644 --- a/src/typings/checkout/authenticationData.ts +++ b/src/typings/checkout/authenticationData.ts @@ -16,7 +16,7 @@ export class AuthenticationData { */ "attemptAuthentication"?: AuthenticationData.AttemptAuthenticationEnum; /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. Default: **false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. */ "authenticationOnly"?: boolean; "threeDSRequestData"?: ThreeDSRequestData | null; diff --git a/src/typings/checkout/balanceCheckRequest.ts b/src/typings/checkout/balanceCheckRequest.ts index e0af6c0d0..aaa0337d7 100644 --- a/src/typings/checkout/balanceCheckRequest.ts +++ b/src/typings/checkout/balanceCheckRequest.ts @@ -106,11 +106,11 @@ export class BalanceCheckRequest { */ "sessionId"?: string; /** - * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ "shopperEmail"?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -143,12 +143,12 @@ export class BalanceCheckRequest { */ "store"?: string; /** - * The shopper\'s telephone number. + * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. */ "telephoneNumber"?: string; "threeDS2RequestData"?: ThreeDS2RequestData | null; /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * * @deprecated since Adyen Checkout API v69 * Use `authenticationData.authenticationOnly` instead. diff --git a/src/typings/checkout/createCheckoutSessionRequest.ts b/src/typings/checkout/createCheckoutSessionRequest.ts index 1cff77c65..f71bcb466 100644 --- a/src/typings/checkout/createCheckoutSessionRequest.ts +++ b/src/typings/checkout/createCheckoutSessionRequest.ts @@ -142,7 +142,7 @@ export class CreateCheckoutSessionRequest { */ "reference": string; /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ "returnUrl": string; "riskData"?: RiskData | null; @@ -151,7 +151,7 @@ export class CreateCheckoutSessionRequest { */ "shopperEmail"?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -208,7 +208,7 @@ export class CreateCheckoutSessionRequest { */ "storePaymentMethodMode"?: CreateCheckoutSessionRequest.StorePaymentMethodModeEnum; /** - * The shopper\'s telephone number. + * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. */ "telephoneNumber"?: string; /** @@ -217,7 +217,7 @@ export class CreateCheckoutSessionRequest { "themeId"?: string; "threeDS2RequestData"?: CheckoutSessionThreeDS2RequestData | null; /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * * @deprecated since Adyen Checkout API v69 * Use `authenticationData.authenticationOnly` instead. diff --git a/src/typings/checkout/createCheckoutSessionResponse.ts b/src/typings/checkout/createCheckoutSessionResponse.ts index 4c222ab32..cf35dfddb 100644 --- a/src/typings/checkout/createCheckoutSessionResponse.ts +++ b/src/typings/checkout/createCheckoutSessionResponse.ts @@ -146,7 +146,7 @@ export class CreateCheckoutSessionResponse { */ "reference": string; /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ "returnUrl": string; "riskData"?: RiskData | null; @@ -159,7 +159,7 @@ export class CreateCheckoutSessionResponse { */ "shopperEmail"?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -216,7 +216,7 @@ export class CreateCheckoutSessionResponse { */ "storePaymentMethodMode"?: CreateCheckoutSessionResponse.StorePaymentMethodModeEnum; /** - * The shopper\'s telephone number. + * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. */ "telephoneNumber"?: string; /** @@ -225,7 +225,7 @@ export class CreateCheckoutSessionResponse { "themeId"?: string; "threeDS2RequestData"?: CheckoutSessionThreeDS2RequestData | null; /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * * @deprecated since Adyen Checkout API v69 * Use `authenticationData.authenticationOnly` instead. diff --git a/src/typings/checkout/detailsRequestAuthenticationData.ts b/src/typings/checkout/detailsRequestAuthenticationData.ts index f73318884..a6be53533 100644 --- a/src/typings/checkout/detailsRequestAuthenticationData.ts +++ b/src/typings/checkout/detailsRequestAuthenticationData.ts @@ -10,7 +10,7 @@ export class DetailsRequestAuthenticationData { /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. Default: *false**. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. */ "authenticationOnly"?: boolean; diff --git a/src/typings/checkout/donationPaymentRequest.ts b/src/typings/checkout/donationPaymentRequest.ts index 17088d6b1..882d05435 100644 --- a/src/typings/checkout/donationPaymentRequest.ts +++ b/src/typings/checkout/donationPaymentRequest.ts @@ -96,7 +96,7 @@ export class DonationPaymentRequest { "metadata"?: { [key: string]: string; }; "mpiData"?: ThreeDSecureData | null; /** - * Required for the 3D Secure 2 `channel` **Web** integration. Set this parameter to the origin URL of the page that you are loading the 3D Secure Component from. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. */ "origin"?: string; "paymentMethod": DonationPaymentRequestPaymentMethod; @@ -117,7 +117,7 @@ export class DonationPaymentRequest { */ "reference": string; /** - * The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ "returnUrl": string; /** @@ -125,15 +125,15 @@ export class DonationPaymentRequest { */ "sessionValidity"?: string; /** - * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ "shopperEmail"?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorization rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorization (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. */ "shopperInteraction"?: DonationPaymentRequest.ShopperInteractionEnum; /** @@ -150,12 +150,12 @@ export class DonationPaymentRequest { */ "socialSecurityNumber"?: string; /** - * The shopper\'s telephone number. + * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. */ "telephoneNumber"?: string; "threeDS2RequestData"?: ThreeDS2RequestFields | null; /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. * * @deprecated since Adyen Checkout API v69 * Use `authenticationData.authenticationOnly` instead. diff --git a/src/typings/checkout/paymentAmountUpdateRequest.ts b/src/typings/checkout/paymentAmountUpdateRequest.ts index 5a1bbf4b7..0495fa20a 100644 --- a/src/typings/checkout/paymentAmountUpdateRequest.ts +++ b/src/typings/checkout/paymentAmountUpdateRequest.ts @@ -9,6 +9,7 @@ import { Amount } from "./amount"; import { ApplicationInfo } from "./applicationInfo"; +import { EnhancedSchemeData } from "./enhancedSchemeData"; import { LineItem } from "./lineItem"; import { Split } from "./split"; @@ -16,6 +17,7 @@ import { Split } from "./split"; export class PaymentAmountUpdateRequest { "amount": Amount; "applicationInfo"?: ApplicationInfo | null; + "enhancedSchemeData"?: EnhancedSchemeData | null; /** * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ @@ -54,6 +56,12 @@ export class PaymentAmountUpdateRequest { "type": "ApplicationInfo | null", "format": "" }, + { + "name": "enhancedSchemeData", + "baseName": "enhancedSchemeData", + "type": "EnhancedSchemeData | null", + "format": "" + }, { "name": "industryUsage", "baseName": "industryUsage", diff --git a/src/typings/checkout/paymentCancelRequest.ts b/src/typings/checkout/paymentCancelRequest.ts index 2c6f7e55d..2cdc026ed 100644 --- a/src/typings/checkout/paymentCancelRequest.ts +++ b/src/typings/checkout/paymentCancelRequest.ts @@ -8,10 +8,12 @@ */ import { ApplicationInfo } from "./applicationInfo"; +import { EnhancedSchemeData } from "./enhancedSchemeData"; export class PaymentCancelRequest { "applicationInfo"?: ApplicationInfo | null; + "enhancedSchemeData"?: EnhancedSchemeData | null; /** * The merchant account that is used to process the payment. */ @@ -32,6 +34,12 @@ export class PaymentCancelRequest { "type": "ApplicationInfo | null", "format": "" }, + { + "name": "enhancedSchemeData", + "baseName": "enhancedSchemeData", + "type": "EnhancedSchemeData | null", + "format": "" + }, { "name": "merchantAccount", "baseName": "merchantAccount", diff --git a/src/typings/checkout/paymentDetails.ts b/src/typings/checkout/paymentDetails.ts index 79d773835..fcbd8148a 100644 --- a/src/typings/checkout/paymentDetails.ts +++ b/src/typings/checkout/paymentDetails.ts @@ -87,6 +87,8 @@ export namespace PaymentDetails { Scalapay3x = 'scalapay_3x', Scalapay4x = 'scalapay_4x', MolpayFpx = 'molpay_fpx', + Payme = 'payme', + PaymePos = 'payme_pos', Konbini = 'konbini', DirectEbanking = 'directEbanking', Boletobancario = 'boletobancario', diff --git a/src/typings/checkout/paymentLinkRequest.ts b/src/typings/checkout/paymentLinkRequest.ts index 19eb0a1da..2c2fd445f 100644 --- a/src/typings/checkout/paymentLinkRequest.ts +++ b/src/typings/checkout/paymentLinkRequest.ts @@ -152,7 +152,7 @@ export class PaymentLinkRequest { */ "storePaymentMethodMode"?: PaymentLinkRequest.StorePaymentMethodModeEnum; /** - * The shopper\'s telephone number. + * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. */ "telephoneNumber"?: string; /** diff --git a/src/typings/checkout/paymentLinkResponse.ts b/src/typings/checkout/paymentLinkResponse.ts index dd16b0a4a..1bec61a3b 100644 --- a/src/typings/checkout/paymentLinkResponse.ts +++ b/src/typings/checkout/paymentLinkResponse.ts @@ -160,7 +160,7 @@ export class PaymentLinkResponse { */ "storePaymentMethodMode"?: PaymentLinkResponse.StorePaymentMethodModeEnum; /** - * The shopper\'s telephone number. + * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. */ "telephoneNumber"?: string; /** diff --git a/src/typings/checkout/paymentMethod.ts b/src/typings/checkout/paymentMethod.ts index 24d311b80..1251e9268 100644 --- a/src/typings/checkout/paymentMethod.ts +++ b/src/typings/checkout/paymentMethod.ts @@ -50,6 +50,10 @@ export class PaymentMethod { */ "name"?: string; /** + * Indicates whether this payment method should be promoted or not. + */ + "promoted"?: boolean; + /** * The unique payment method code. */ "type"?: string; @@ -113,6 +117,12 @@ export class PaymentMethod { "type": "string", "format": "" }, + { + "name": "promoted", + "baseName": "promoted", + "type": "boolean", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/paymentMethodsRequest.ts b/src/typings/checkout/paymentMethodsRequest.ts index 14c982371..618e88230 100644 --- a/src/typings/checkout/paymentMethodsRequest.ts +++ b/src/typings/checkout/paymentMethodsRequest.ts @@ -45,11 +45,11 @@ export class PaymentMethodsRequest { */ "shopperConversionId"?: string; /** - * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ "shopperEmail"?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -73,7 +73,7 @@ export class PaymentMethodsRequest { */ "storeFiltrationMode"?: PaymentMethodsRequest.StoreFiltrationModeEnum; /** - * The shopper\'s telephone number. + * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. */ "telephoneNumber"?: string; diff --git a/src/typings/checkout/paymentRefundRequest.ts b/src/typings/checkout/paymentRefundRequest.ts index 15b0d90ea..77ea904ef 100644 --- a/src/typings/checkout/paymentRefundRequest.ts +++ b/src/typings/checkout/paymentRefundRequest.ts @@ -9,6 +9,7 @@ import { Amount } from "./amount"; import { ApplicationInfo } from "./applicationInfo"; +import { EnhancedSchemeData } from "./enhancedSchemeData"; import { LineItem } from "./lineItem"; import { Split } from "./split"; @@ -20,6 +21,7 @@ export class PaymentRefundRequest { * This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the specific capture to refund. */ "capturePspReference"?: string; + "enhancedSchemeData"?: EnhancedSchemeData | null; /** * Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip. */ @@ -68,6 +70,12 @@ export class PaymentRefundRequest { "type": "string", "format": "" }, + { + "name": "enhancedSchemeData", + "baseName": "enhancedSchemeData", + "type": "EnhancedSchemeData | null", + "format": "" + }, { "name": "lineItems", "baseName": "lineItems", diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index 605c256d8..45b80c620 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -155,7 +155,7 @@ export class PaymentRequest { */ "orderReference"?: string; /** - * Required for the 3D Secure 2 `channel` **Web** integration. Set this parameter to the origin URL of the page that you are loading the 3D Secure Component from. + * > Required for browser-based (`channel` **Web**) 3D Secure 2 transactions.Set this to the origin URL of the page where you are rendering the Drop-in/Component. Do not include subdirectories and a trailing slash. */ "origin"?: string; "paymentMethod": PaymentRequestPaymentMethod; @@ -185,7 +185,7 @@ export class PaymentRequest { */ "reference": string; /** - * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + * The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. */ "returnUrl": string; "riskData"?: RiskData | null; @@ -198,11 +198,11 @@ export class PaymentRequest { */ "shopperConversionId"?: string; /** - * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. */ "shopperEmail"?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + * The shopper\'s IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and mobile integrations, if you did not include the `shopperEmail`. For native mobile integrations, the field is required to support cases where authentication is routed to the redirect flow. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ "shopperIP"?: string; /** @@ -244,12 +244,12 @@ export class PaymentRequest { "subMerchants"?: Array; "surcharge"?: Surcharge | null; /** - * The shopper\'s telephone number. + * The shopper\'s telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication. */ "telephoneNumber"?: string; "threeDS2RequestData"?: ThreeDS2RequestFields | null; /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + * Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. * * @deprecated since Adyen Checkout API v69 * Use `authenticationData.authenticationOnly` instead. diff --git a/src/typings/checkout/paymentReversalRequest.ts b/src/typings/checkout/paymentReversalRequest.ts index 65e33f8ae..11edb9c47 100644 --- a/src/typings/checkout/paymentReversalRequest.ts +++ b/src/typings/checkout/paymentReversalRequest.ts @@ -8,10 +8,12 @@ */ import { ApplicationInfo } from "./applicationInfo"; +import { EnhancedSchemeData } from "./enhancedSchemeData"; export class PaymentReversalRequest { "applicationInfo"?: ApplicationInfo | null; + "enhancedSchemeData"?: EnhancedSchemeData | null; /** * The merchant account that is used to process the payment. */ @@ -32,6 +34,12 @@ export class PaymentReversalRequest { "type": "ApplicationInfo | null", "format": "" }, + { + "name": "enhancedSchemeData", + "baseName": "enhancedSchemeData", + "type": "EnhancedSchemeData | null", + "format": "" + }, { "name": "merchantAccount", "baseName": "merchantAccount", diff --git a/src/typings/checkout/rivertyDetails.ts b/src/typings/checkout/rivertyDetails.ts index a81de12a1..edc220f06 100644 --- a/src/typings/checkout/rivertyDetails.ts +++ b/src/typings/checkout/rivertyDetails.ts @@ -45,6 +45,10 @@ export class RivertyDetails { */ "storedPaymentMethodId"?: string; /** + * The payment method subtype. + */ + "subtype"?: string; + /** * **riverty** */ "type": RivertyDetails.TypeEnum; @@ -102,6 +106,12 @@ export class RivertyDetails { "type": "string", "format": "" }, + { + "name": "subtype", + "baseName": "subtype", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/standalonePaymentCancelRequest.ts b/src/typings/checkout/standalonePaymentCancelRequest.ts index cadb60996..e69444933 100644 --- a/src/typings/checkout/standalonePaymentCancelRequest.ts +++ b/src/typings/checkout/standalonePaymentCancelRequest.ts @@ -8,10 +8,12 @@ */ import { ApplicationInfo } from "./applicationInfo"; +import { EnhancedSchemeData } from "./enhancedSchemeData"; export class StandalonePaymentCancelRequest { "applicationInfo"?: ApplicationInfo | null; + "enhancedSchemeData"?: EnhancedSchemeData | null; /** * The merchant account that is used to process the payment. */ @@ -36,6 +38,12 @@ export class StandalonePaymentCancelRequest { "type": "ApplicationInfo | null", "format": "" }, + { + "name": "enhancedSchemeData", + "baseName": "enhancedSchemeData", + "type": "EnhancedSchemeData | null", + "format": "" + }, { "name": "merchantAccount", "baseName": "merchantAccount", diff --git a/src/typings/checkout/threeDS2RequestData.ts b/src/typings/checkout/threeDS2RequestData.ts index 045311dcd..cc22b7fe1 100644 --- a/src/typings/checkout/threeDS2RequestData.ts +++ b/src/typings/checkout/threeDS2RequestData.ts @@ -30,7 +30,7 @@ export class ThreeDS2RequestData { */ "acquirerMerchantID"?: string; /** - * Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. + * Indicates whether the cardholder shipping address and cardholder billing address are the same. Allowed values: * **Y** — Shipping address matches billing address. * **N** — Shipping address does not match billing address. */ "addrMatch"?: ThreeDS2RequestData.AddrMatchEnum; /** diff --git a/src/typings/checkout/threeDS2RequestFields.ts b/src/typings/checkout/threeDS2RequestFields.ts index ac71db304..6f3f34668 100644 --- a/src/typings/checkout/threeDS2RequestFields.ts +++ b/src/typings/checkout/threeDS2RequestFields.ts @@ -30,7 +30,7 @@ export class ThreeDS2RequestFields { */ "acquirerMerchantID"?: string; /** - * Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. + * Indicates whether the cardholder shipping Address and cardholder billing address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. */ "addrMatch"?: ThreeDS2RequestFields.AddrMatchEnum; /** diff --git a/src/typings/checkout/threeDSRequestData.ts b/src/typings/checkout/threeDSRequestData.ts index 5970c9bfd..94d044d80 100644 --- a/src/typings/checkout/threeDSRequestData.ts +++ b/src/typings/checkout/threeDSRequestData.ts @@ -14,11 +14,11 @@ export class ThreeDSRequestData { */ "challengeWindowSize"?: ThreeDSRequestData.ChallengeWindowSizeEnum; /** - * Flag for data only flow. + * Required to trigger the [data-only flow](https://docs.adyen.com/online-payments/3d-secure/data-only/). When set to **true**, forces the 3D Secure 2 data-only flow for all transactions where it is possible. */ "dataOnly"?: ThreeDSRequestData.DataOnlyEnum; /** - * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be used when available. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Only use the redirect 3D Secure authentication flow. + * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be triggered when available. Adyen can still select to fallback to the redirect flow to optimize authorization rates and improve the shopper\'s experience. Possible values: * **preferred**: Use native 3D Secure authentication when available. * **disabled**: Use the redirect 3D Secure authentication flow. */ "nativeThreeDS"?: ThreeDSRequestData.NativeThreeDSEnum; /** diff --git a/src/typings/legalEntityManagement/attachment.ts b/src/typings/legalEntityManagement/attachment.ts index 3d81ff864..5e4bd931d 100644 --- a/src/typings/legalEntityManagement/attachment.ts +++ b/src/typings/legalEntityManagement/attachment.ts @@ -30,7 +30,7 @@ export class Attachment { */ "pageName"?: string; /** - * Specifies which side of the ID card is uploaded. * When `type` is **driversLicense** or **identityCard**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments. + * Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. */ "pageType"?: string; diff --git a/src/typings/sessionAuthentication/accountHolderResource.ts b/src/typings/sessionAuthentication/accountHolderResource.ts index 0e4256382..b52df18d8 100644 --- a/src/typings/sessionAuthentication/accountHolderResource.ts +++ b/src/typings/sessionAuthentication/accountHolderResource.ts @@ -8,6 +8,7 @@ */ import { Resource } from "./resource"; +import { ResourceType } from "./resourceType"; export class AccountHolderResource extends Resource { diff --git a/src/typings/sessionAuthentication/balanceAccountResource.ts b/src/typings/sessionAuthentication/balanceAccountResource.ts index ed6c1231e..6408e0ac3 100644 --- a/src/typings/sessionAuthentication/balanceAccountResource.ts +++ b/src/typings/sessionAuthentication/balanceAccountResource.ts @@ -8,6 +8,7 @@ */ import { Resource } from "./resource"; +import { ResourceType } from "./resourceType"; export class BalanceAccountResource extends Resource { diff --git a/src/typings/sessionAuthentication/legalEntityResource.ts b/src/typings/sessionAuthentication/legalEntityResource.ts index c4851e41c..7504b4f43 100644 --- a/src/typings/sessionAuthentication/legalEntityResource.ts +++ b/src/typings/sessionAuthentication/legalEntityResource.ts @@ -8,6 +8,7 @@ */ import { Resource } from "./resource"; +import { ResourceType } from "./resourceType"; export class LegalEntityResource extends Resource { diff --git a/src/typings/sessionAuthentication/merchantAccountResource.ts b/src/typings/sessionAuthentication/merchantAccountResource.ts index cfed80104..33790a1c1 100644 --- a/src/typings/sessionAuthentication/merchantAccountResource.ts +++ b/src/typings/sessionAuthentication/merchantAccountResource.ts @@ -8,6 +8,7 @@ */ import { Resource } from "./resource"; +import { ResourceType } from "./resourceType"; export class MerchantAccountResource extends Resource { diff --git a/src/typings/sessionAuthentication/paymentInstrumentResource.ts b/src/typings/sessionAuthentication/paymentInstrumentResource.ts index 77be55c8d..ee8b5b658 100644 --- a/src/typings/sessionAuthentication/paymentInstrumentResource.ts +++ b/src/typings/sessionAuthentication/paymentInstrumentResource.ts @@ -8,6 +8,7 @@ */ import { Resource } from "./resource"; +import { ResourceType } from "./resourceType"; export class PaymentInstrumentResource extends Resource { diff --git a/src/typings/tokenizationWebhooks/models.ts b/src/typings/tokenizationWebhooks/models.ts new file mode 100644 index 000000000..7aaa1e62e --- /dev/null +++ b/src/typings/tokenizationWebhooks/models.ts @@ -0,0 +1,10 @@ +export * from "./recurringToken" +export * from "./recurringTokenStoreOperation" +export * from "./tokenizationAlreadyExistingDetailsNotificationRequest" +export * from "./tokenizationCreatedDetailsNotificationRequest" +export * from "./tokenizationDisabledDetailsNotificationRequest" +export * from "./tokenizationNotificationResponse" +export * from "./tokenizationUpdatedDetailsNotificationRequest" + +// serializing and deserializing typed objects +export * from "./objectSerializer" \ No newline at end of file diff --git a/src/typings/tokenizationWebhooks/objectSerializer.ts b/src/typings/tokenizationWebhooks/objectSerializer.ts new file mode 100644 index 000000000..4b1dc1f20 --- /dev/null +++ b/src/typings/tokenizationWebhooks/objectSerializer.ts @@ -0,0 +1,365 @@ +export * from "./models"; + +import { RecurringToken } from "./recurringToken"; +import { RecurringTokenStoreOperation } from "./recurringTokenStoreOperation"; +import { TokenizationAlreadyExistingDetailsNotificationRequest } from "./tokenizationAlreadyExistingDetailsNotificationRequest"; +import { TokenizationCreatedDetailsNotificationRequest } from "./tokenizationCreatedDetailsNotificationRequest"; +import { TokenizationDisabledDetailsNotificationRequest } from "./tokenizationDisabledDetailsNotificationRequest"; +import { TokenizationNotificationResponse } from "./tokenizationNotificationResponse"; +import { TokenizationUpdatedDetailsNotificationRequest } from "./tokenizationUpdatedDetailsNotificationRequest"; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: Set = new Set([ + "TokenizationAlreadyExistingDetailsNotificationRequest.EnvironmentEnum", + "TokenizationAlreadyExistingDetailsNotificationRequest.TypeEnum", + "TokenizationCreatedDetailsNotificationRequest.EnvironmentEnum", + "TokenizationCreatedDetailsNotificationRequest.TypeEnum", + "TokenizationDisabledDetailsNotificationRequest.EnvironmentEnum", + "TokenizationDisabledDetailsNotificationRequest.TypeEnum", + "TokenizationUpdatedDetailsNotificationRequest.EnvironmentEnum", + "TokenizationUpdatedDetailsNotificationRequest.TypeEnum", +]); + +let typeMap: {[index: string]: any} = { + "RecurringToken": RecurringToken, + "RecurringTokenStoreOperation": RecurringTokenStoreOperation, + "TokenizationAlreadyExistingDetailsNotificationRequest": TokenizationAlreadyExistingDetailsNotificationRequest, + "TokenizationCreatedDetailsNotificationRequest": TokenizationCreatedDetailsNotificationRequest, + "TokenizationDisabledDetailsNotificationRequest": TokenizationDisabledDetailsNotificationRequest, + "TokenizationNotificationResponse": TokenizationNotificationResponse, + "TokenizationUpdatedDetailsNotificationRequest": TokenizationUpdatedDetailsNotificationRequest, +} + +type MimeTypeDescriptor = { + type: string; + subtype: string; + subtypeTokens: string[]; +}; + +/** + * Every mime-type consists of a type, subtype, and optional parameters. + * The subtype can be composite, including information about the content format. + * For example: `application/json-patch+json`, `application/merge-patch+json`. + * + * This helper transforms a string mime-type into an internal representation. + * This simplifies the implementation of predicates that in turn define common rules for parsing or stringifying + * the payload. + */ +const parseMimeType = (mimeType: string): MimeTypeDescriptor => { + const [type = '', subtype = ''] = mimeType.split('/'); + return { + type, + subtype, + subtypeTokens: subtype.split('+'), + }; +}; + +type MimeTypePredicate = (mimeType: string) => boolean; + +// This factory creates a predicate function that checks a string mime-type against defined rules. +const mimeTypePredicateFactory = (predicate: (descriptor: MimeTypeDescriptor) => boolean): MimeTypePredicate => (mimeType) => predicate(parseMimeType(mimeType)); + +// Use this factory when you need to define a simple predicate based only on type and, if applicable, subtype. +const mimeTypeSimplePredicateFactory = (type: string, subtype?: string): MimeTypePredicate => mimeTypePredicateFactory((descriptor) => { + if (descriptor.type !== type) return false; + if (subtype != null && descriptor.subtype !== subtype) return false; + return true; +}); + +// Creating a set of named predicates that will help us determine how to handle different mime-types +const isTextLikeMimeType = mimeTypeSimplePredicateFactory('text'); +const isJsonMimeType = mimeTypeSimplePredicateFactory('application', 'json'); +const isJsonLikeMimeType = mimeTypePredicateFactory((descriptor) => descriptor.type === 'application' && descriptor.subtypeTokens.some((item) => item === 'json')); +const isOctetStreamMimeType = mimeTypeSimplePredicateFactory('application', 'octet-stream'); +const isFormUrlencodedMimeType = mimeTypeSimplePredicateFactory('application', 'x-www-form-urlencoded'); + +// Defining a list of mime-types in the order of prioritization for handling. +const supportedMimeTypePredicatesWithPriority: MimeTypePredicate[] = [ + isJsonMimeType, + isJsonLikeMimeType, + isTextLikeMimeType, + isOctetStreamMimeType, + isFormUrlencodedMimeType, +]; + +const nullableSuffix = " | null"; +const optionalSuffix = " | undefined"; +const arrayPrefix = "Array<"; +const arraySuffix = ">"; +const mapPrefix = "{ [key: string]: "; +const mapSuffix = "; }"; + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap.has(expectedType)) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + let mapping = typeMap[expectedType].mapping; + if (mapping != undefined && mapping[discriminatorType]) { + return mapping[discriminatorType]; // use the type given in the discriminator + } else if(typeMap[discriminatorType]) { + return discriminatorType; + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + /** + * Serializes a value into a plain JSON-compatible object based on its type. + * + * Supports primitives, arrays, maps, dates, enums, and classes defined in `typeMap`. + * Falls back to raw data if type is unknown or lacks `getAttributeTypeMap()`. + * + * @param data - The value to serialize. + * @param type - The expected type name as a string. + * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. + * @returns A JSON-compatible representation of `data`. + */ + public static serialize(data: any, type: string, format: string = ""): any { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.endsWith(nullableSuffix)) { + let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type + return ObjectSerializer.serialize(data, subType, format); + } else if (type.endsWith(optionalSuffix)) { + let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type + return ObjectSerializer.serialize(data, subType, format); + } else if (type.startsWith(arrayPrefix)) { + let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type + let transformedData: any[] = []; + for (let date of data) { + transformedData.push(ObjectSerializer.serialize(date, subType, format)); + } + return transformedData; + } else if (type.startsWith(mapPrefix)) { + let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type + let transformedData: { [key: string]: any } = {}; + for (let key in data) { + transformedData[key] = ObjectSerializer.serialize( + data[key], + subType, + format, + ); + } + return transformedData; + } else if (type === "Date") { + if (format == "date") { + let month = data.getMonth()+1 + month = month < 10 ? "0" + month.toString() : month.toString() + let day = data.getDate(); + day = day < 10 ? "0" + day.toString() : day.toString(); + + return data.getFullYear() + "-" + month + "-" + day; + } else { + return data.toISOString(); + } + } else { + if (enumsMap.has(type)) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + const clazz = typeMap[type]; + + // Safe check for getAttributeTypeMap + if (typeof clazz.getAttributeTypeMap !== "function") { + return { ...data }; // fallback: shallow copy + } + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let attributeType of attributeTypes) { + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); + } + return instance; + } + } + + /** + * Deserializes a plain JSON-compatible object into a typed instance. + * + * Handles primitives, arrays, maps, dates, enums, and known classes from `typeMap`. + * Uses discriminators when available to resolve polymorphic types. + * Falls back to raw data if the type is unknown or lacks `getAttributeTypeMap()`. + * + * @param data - The raw input to deserialize. + * @param type - The expected type name as a string. + * @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string. + * @returns A deserialized instance or value of `data`. + */ + public static deserialize(data: any, type: string, format: string = ""): any { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.endsWith(nullableSuffix)) { + let subType: string = type.slice(0, -nullableSuffix.length); // Type | null => Type + return ObjectSerializer.deserialize(data, subType, format); + } else if (type.endsWith(optionalSuffix)) { + let subType: string = type.slice(0, -optionalSuffix.length); // Type | undefined => Type + return ObjectSerializer.deserialize(data, subType, format); + } else if (type.startsWith(arrayPrefix)) { + let subType: string = type.slice(arrayPrefix.length, -arraySuffix.length); // Array => Type + let transformedData: any[] = []; + for (let date of data) { + transformedData.push(ObjectSerializer.deserialize(date, subType, format)); + } + return transformedData; + } else if (type.startsWith(mapPrefix)) { + let subType: string = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type + let transformedData: { [key: string]: any } = {}; + for (let key in data) { + transformedData[key] = ObjectSerializer.deserialize( + data[key], + subType, + format, + ); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap.has(type)) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + + // Safe check for getAttributeTypeMap + if (typeof typeMap[type].getAttributeTypeMap !== "function") { + Object.assign(instance, data); // fallback: shallow copy + return instance; + } + + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let attributeType of attributeTypes) { + let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); + if (value !== undefined) { + instance[attributeType.name] = value; + } + } + return instance; + } + } + + + /** + * Normalize media type + * + * We currently do not handle any media types attributes, i.e. anything + * after a semicolon. All content is assumed to be UTF-8 compatible. + */ + public static normalizeMediaType(mediaType: string | undefined): string | undefined { + if (mediaType === undefined) { + return undefined; + } + return (mediaType.split(";")[0] ?? '').trim().toLowerCase(); + } + + /** + * From a list of possible media types, choose the one we can handle best. + * + * The order of the given media types does not have any impact on the choice + * made. + */ + public static getPreferredMediaType(mediaTypes: Array): string { + /** According to OAS 3 we should default to json */ + if (mediaTypes.length === 0) { + return "application/json"; + } + + const normalMediaTypes = mediaTypes.map(ObjectSerializer.normalizeMediaType); + + for (const predicate of supportedMimeTypePredicatesWithPriority) { + for (const mediaType of normalMediaTypes) { + if (mediaType != null && predicate(mediaType)) { + return mediaType; + } + } + } + + throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); + } + + /** + * Convert data to a string according the given media type + */ + public static stringify(data: any, mediaType: string): string { + if (isTextLikeMimeType(mediaType)) { + return String(data); + } + + if (isJsonLikeMimeType(mediaType)) { + return JSON.stringify(data); + } + + throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); + } + + /** + * Parse data from a string according to the given media type + */ + public static parse(rawData: string, mediaType: string | undefined) { + if (mediaType === undefined) { + throw new Error("Cannot parse content. No Content-Type defined."); + } + + if (isTextLikeMimeType(mediaType)) { + return rawData; + } + + if (isJsonLikeMimeType(mediaType)) { + return JSON.parse(rawData); + } + + throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); + } +} diff --git a/src/typings/tokenizationWebhooks/recurringToken.ts b/src/typings/tokenizationWebhooks/recurringToken.ts new file mode 100644 index 000000000..72878abb2 --- /dev/null +++ b/src/typings/tokenizationWebhooks/recurringToken.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class RecurringToken { + /** + * The identifier of the merchant account related to the event that triggered the webhook. + */ + "merchantAccount": string; + /** + * Your unique shopper reference that is associated with the `storedPaymentMethodId`. + */ + "shopperReference": string; + /** + * The ID of the token. + */ + "storedPaymentMethodId": string; + /** + * The type of the payment method. + */ + "type": string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string", + "format": "" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string", + "format": "" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return RecurringToken.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/tokenizationWebhooks/recurringTokenStoreOperation.ts b/src/typings/tokenizationWebhooks/recurringTokenStoreOperation.ts new file mode 100644 index 000000000..8c30cfe99 --- /dev/null +++ b/src/typings/tokenizationWebhooks/recurringTokenStoreOperation.ts @@ -0,0 +1,76 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class RecurringTokenStoreOperation { + /** + * The identifier of the merchant account related to the event that triggered the webhook. + */ + "merchantAccount": string; + /** + * A text description that provides details about the operation, intended for audit purposes. + */ + "operation": string; + /** + * Your unique shopper reference that is associated with the `storedPaymentMethodId`. + */ + "shopperReference": string; + /** + * The ID of the token. + */ + "storedPaymentMethodId": string; + /** + * The type of the payment method. + */ + "type": string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string", + "format": "" + }, + { + "name": "operation", + "baseName": "operation", + "type": "string", + "format": "" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string", + "format": "" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return RecurringTokenStoreOperation.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/tokenizationWebhooks/tokenizationAlreadyExistingDetailsNotificationRequest.ts b/src/typings/tokenizationWebhooks/tokenizationAlreadyExistingDetailsNotificationRequest.ts new file mode 100644 index 000000000..94d79c684 --- /dev/null +++ b/src/typings/tokenizationWebhooks/tokenizationAlreadyExistingDetailsNotificationRequest.ts @@ -0,0 +1,94 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { RecurringTokenStoreOperation } from "./recurringTokenStoreOperation"; + + +export class TokenizationAlreadyExistingDetailsNotificationRequest { + /** + * The date and time when the event happened, in ISO 8601 extended format. + */ + "createdAt": Date; + "data": RecurringTokenStoreOperation; + /** + * The environment from which the webhook originated. Possible values: **test**, **live**. + */ + "environment": TokenizationAlreadyExistingDetailsNotificationRequest.EnvironmentEnum; + /** + * The PSP reference of the event that triggered the webhook. + */ + "eventId": string; + /** + * The type of webhook. + */ + "type": TokenizationAlreadyExistingDetailsNotificationRequest.TypeEnum; + /** + * The version of this entity. + */ + "version"?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "createdAt", + "baseName": "createdAt", + "type": "Date", + "format": "date-time" + }, + { + "name": "data", + "baseName": "data", + "type": "RecurringTokenStoreOperation", + "format": "" + }, + { + "name": "environment", + "baseName": "environment", + "type": "TokenizationAlreadyExistingDetailsNotificationRequest.EnvironmentEnum", + "format": "" + }, + { + "name": "eventId", + "baseName": "eventId", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "TokenizationAlreadyExistingDetailsNotificationRequest.TypeEnum", + "format": "" + }, + { + "name": "version", + "baseName": "version", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return TokenizationAlreadyExistingDetailsNotificationRequest.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace TokenizationAlreadyExistingDetailsNotificationRequest { + export enum EnvironmentEnum { + Test = 'test', + Live = 'live' + } + export enum TypeEnum { + RecurringTokenAlreadyExisting = 'recurring.token.alreadyExisting' + } +} diff --git a/src/typings/tokenizationWebhooks/tokenizationCreatedDetailsNotificationRequest.ts b/src/typings/tokenizationWebhooks/tokenizationCreatedDetailsNotificationRequest.ts new file mode 100644 index 000000000..fe379b88d --- /dev/null +++ b/src/typings/tokenizationWebhooks/tokenizationCreatedDetailsNotificationRequest.ts @@ -0,0 +1,94 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { RecurringTokenStoreOperation } from "./recurringTokenStoreOperation"; + + +export class TokenizationCreatedDetailsNotificationRequest { + /** + * The date and time when the event happened, in ISO 8601 extended format. + */ + "createdAt": Date; + "data": RecurringTokenStoreOperation; + /** + * The environment from which the webhook originated. Possible values: **test**, **live**. + */ + "environment": TokenizationCreatedDetailsNotificationRequest.EnvironmentEnum; + /** + * The PSP reference of the event that triggered the webhook. + */ + "eventId": string; + /** + * The type of webhook. + */ + "type": TokenizationCreatedDetailsNotificationRequest.TypeEnum; + /** + * The version of this entity. + */ + "version"?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "createdAt", + "baseName": "createdAt", + "type": "Date", + "format": "date-time" + }, + { + "name": "data", + "baseName": "data", + "type": "RecurringTokenStoreOperation", + "format": "" + }, + { + "name": "environment", + "baseName": "environment", + "type": "TokenizationCreatedDetailsNotificationRequest.EnvironmentEnum", + "format": "" + }, + { + "name": "eventId", + "baseName": "eventId", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "TokenizationCreatedDetailsNotificationRequest.TypeEnum", + "format": "" + }, + { + "name": "version", + "baseName": "version", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return TokenizationCreatedDetailsNotificationRequest.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace TokenizationCreatedDetailsNotificationRequest { + export enum EnvironmentEnum { + Test = 'test', + Live = 'live' + } + export enum TypeEnum { + RecurringTokenCreated = 'recurring.token.created' + } +} diff --git a/src/typings/tokenizationWebhooks/tokenizationDisabledDetailsNotificationRequest.ts b/src/typings/tokenizationWebhooks/tokenizationDisabledDetailsNotificationRequest.ts new file mode 100644 index 000000000..966b5be13 --- /dev/null +++ b/src/typings/tokenizationWebhooks/tokenizationDisabledDetailsNotificationRequest.ts @@ -0,0 +1,94 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { RecurringToken } from "./recurringToken"; + + +export class TokenizationDisabledDetailsNotificationRequest { + /** + * The date and time when the event happened, in ISO 8601 extended format. + */ + "createdAt": Date; + "data": RecurringToken; + /** + * The environment from which the webhook originated. Possible values: **test**, **live**. + */ + "environment": TokenizationDisabledDetailsNotificationRequest.EnvironmentEnum; + /** + * The PSP reference of the event that triggered the webhook. + */ + "eventId": string; + /** + * The type of webhook. + */ + "type": TokenizationDisabledDetailsNotificationRequest.TypeEnum; + /** + * The version of this entity. + */ + "version"?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "createdAt", + "baseName": "createdAt", + "type": "Date", + "format": "date-time" + }, + { + "name": "data", + "baseName": "data", + "type": "RecurringToken", + "format": "" + }, + { + "name": "environment", + "baseName": "environment", + "type": "TokenizationDisabledDetailsNotificationRequest.EnvironmentEnum", + "format": "" + }, + { + "name": "eventId", + "baseName": "eventId", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "TokenizationDisabledDetailsNotificationRequest.TypeEnum", + "format": "" + }, + { + "name": "version", + "baseName": "version", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return TokenizationDisabledDetailsNotificationRequest.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace TokenizationDisabledDetailsNotificationRequest { + export enum EnvironmentEnum { + Test = 'test', + Live = 'live' + } + export enum TypeEnum { + RecurringTokenDisabled = 'recurring.token.disabled' + } +} diff --git a/src/typings/tokenizationWebhooks/tokenizationNotificationResponse.ts b/src/typings/tokenizationWebhooks/tokenizationNotificationResponse.ts new file mode 100644 index 000000000..1b9a93c05 --- /dev/null +++ b/src/typings/tokenizationWebhooks/tokenizationNotificationResponse.ts @@ -0,0 +1,36 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class TokenizationNotificationResponse { + /** + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). + */ + "notificationResponse"?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "notificationResponse", + "baseName": "notificationResponse", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return TokenizationNotificationResponse.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/tokenizationWebhooks/tokenizationUpdatedDetailsNotificationRequest.ts b/src/typings/tokenizationWebhooks/tokenizationUpdatedDetailsNotificationRequest.ts new file mode 100644 index 000000000..a96b1e8ec --- /dev/null +++ b/src/typings/tokenizationWebhooks/tokenizationUpdatedDetailsNotificationRequest.ts @@ -0,0 +1,94 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { RecurringTokenStoreOperation } from "./recurringTokenStoreOperation"; + + +export class TokenizationUpdatedDetailsNotificationRequest { + /** + * The date and time when the event happened, in ISO 8601 extended format. + */ + "createdAt": Date; + "data": RecurringTokenStoreOperation; + /** + * The environment from which the webhook originated. Possible values: **test**, **live**. + */ + "environment": TokenizationUpdatedDetailsNotificationRequest.EnvironmentEnum; + /** + * The PSP reference of the event that triggered the webhook. + */ + "eventId": string; + /** + * The type of webhook. + */ + "type": TokenizationUpdatedDetailsNotificationRequest.TypeEnum; + /** + * The version of this entity. + */ + "version"?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "createdAt", + "baseName": "createdAt", + "type": "Date", + "format": "date-time" + }, + { + "name": "data", + "baseName": "data", + "type": "RecurringTokenStoreOperation", + "format": "" + }, + { + "name": "environment", + "baseName": "environment", + "type": "TokenizationUpdatedDetailsNotificationRequest.EnvironmentEnum", + "format": "" + }, + { + "name": "eventId", + "baseName": "eventId", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "TokenizationUpdatedDetailsNotificationRequest.TypeEnum", + "format": "" + }, + { + "name": "version", + "baseName": "version", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return TokenizationUpdatedDetailsNotificationRequest.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace TokenizationUpdatedDetailsNotificationRequest { + export enum EnvironmentEnum { + Test = 'test', + Live = 'live' + } + export enum TypeEnum { + RecurringTokenUpdated = 'recurring.token.updated' + } +} diff --git a/src/typings/tokenizationWebhooks/tokenizationWebhooksHandler.ts b/src/typings/tokenizationWebhooks/tokenizationWebhooksHandler.ts new file mode 100644 index 000000000..d432bcec5 --- /dev/null +++ b/src/typings/tokenizationWebhooks/tokenizationWebhooksHandler.ts @@ -0,0 +1,101 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { tokenizationWebhooks } from ".."; + +/** + * Union type for all supported webhook requests. + * Allows generic handling of configuration-related webhook events. + */ +export type GenericWebhook = + | tokenizationWebhooks.TokenizationAlreadyExistingDetailsNotificationRequest + | tokenizationWebhooks.TokenizationCreatedDetailsNotificationRequest + | tokenizationWebhooks.TokenizationDisabledDetailsNotificationRequest + | tokenizationWebhooks.TokenizationUpdatedDetailsNotificationRequest; + +/** + * Handler for processing TokenizationWebhooks. + * + * This class provides functionality to deserialize the payload of TokenizationWebhooks events. + */ +export class TokenizationWebhooksHandler { + + private readonly payload: Record; + + public constructor(jsonPayload: string) { + this.payload = JSON.parse(jsonPayload); + } + + /** + * This method checks the type of the webhook payload and returns the appropriate deserialized object. + * + * @returns A deserialized object of type GenericWebhook. + * @throws Error if the type is not recognized. + */ + public getGenericWebhook(): GenericWebhook { + + const type = this.payload["type"]; + + if(Object.values(tokenizationWebhooks.TokenizationAlreadyExistingDetailsNotificationRequest.TypeEnum).includes(type)) { + return this.getTokenizationAlreadyExistingDetailsNotificationRequest(); + } + + if(Object.values(tokenizationWebhooks.TokenizationCreatedDetailsNotificationRequest.TypeEnum).includes(type)) { + return this.getTokenizationCreatedDetailsNotificationRequest(); + } + + if(Object.values(tokenizationWebhooks.TokenizationDisabledDetailsNotificationRequest.TypeEnum).includes(type)) { + return this.getTokenizationDisabledDetailsNotificationRequest(); + } + + if(Object.values(tokenizationWebhooks.TokenizationUpdatedDetailsNotificationRequest.TypeEnum).includes(type)) { + return this.getTokenizationUpdatedDetailsNotificationRequest(); + } + + throw new Error("Could not parse the json payload: " + this.payload); + + } + + /** + * Deserialize the webhook payload into a TokenizationAlreadyExistingDetailsNotificationRequest + * + * @returns Deserialized TokenizationAlreadyExistingDetailsNotificationRequest object. + */ + public getTokenizationAlreadyExistingDetailsNotificationRequest(): tokenizationWebhooks.TokenizationAlreadyExistingDetailsNotificationRequest { + return tokenizationWebhooks.ObjectSerializer.deserialize(this.payload, "TokenizationAlreadyExistingDetailsNotificationRequest"); + } + + /** + * Deserialize the webhook payload into a TokenizationCreatedDetailsNotificationRequest + * + * @returns Deserialized TokenizationCreatedDetailsNotificationRequest object. + */ + public getTokenizationCreatedDetailsNotificationRequest(): tokenizationWebhooks.TokenizationCreatedDetailsNotificationRequest { + return tokenizationWebhooks.ObjectSerializer.deserialize(this.payload, "TokenizationCreatedDetailsNotificationRequest"); + } + + /** + * Deserialize the webhook payload into a TokenizationDisabledDetailsNotificationRequest + * + * @returns Deserialized TokenizationDisabledDetailsNotificationRequest object. + */ + public getTokenizationDisabledDetailsNotificationRequest(): tokenizationWebhooks.TokenizationDisabledDetailsNotificationRequest { + return tokenizationWebhooks.ObjectSerializer.deserialize(this.payload, "TokenizationDisabledDetailsNotificationRequest"); + } + + /** + * Deserialize the webhook payload into a TokenizationUpdatedDetailsNotificationRequest + * + * @returns Deserialized TokenizationUpdatedDetailsNotificationRequest object. + */ + public getTokenizationUpdatedDetailsNotificationRequest(): tokenizationWebhooks.TokenizationUpdatedDetailsNotificationRequest { + return tokenizationWebhooks.ObjectSerializer.deserialize(this.payload, "TokenizationUpdatedDetailsNotificationRequest"); + } + +} \ No newline at end of file diff --git a/src/typings/transferWebhooks/transferDataTracking.ts b/src/typings/transferWebhooks/transferDataTracking.ts index 5e520d893..336ee1789 100644 --- a/src/typings/transferWebhooks/transferDataTracking.ts +++ b/src/typings/transferWebhooks/transferDataTracking.ts @@ -30,12 +30,7 @@ export type TransferDataTracking = ConfirmationTrackingData | EstimationTracking */ export class TransferDataTrackingClass { - static readonly discriminator: string | undefined = "type"; - - static readonly mapping: {[index: string]: string} | undefined = { - "confirmation": "ConfirmationTrackingData", - "estimation": "EstimationTrackingData", - "internalReview": "InternalReviewTrackingData", - }; + static readonly discriminator: string = "type"; + static readonly mapping: {[index: string]: string} | undefined = undefined; } From 428309120c6b9adb1023b480c1426fd0a3cb11c7 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot Date: Wed, 23 Jul 2025 20:50:56 +0000 Subject: [PATCH 2/6] style(fmt): code formatted --- .../balancePlatform/accountHoldersApi.ts | 3 +- .../balancePlatform/authorizedCardUsersApi.ts | 1 - .../balancePlatform/balanceAccountsApi.ts | 1 - src/services/balancePlatform/balancesApi.ts | 1 - .../bankAccountValidationApi.ts | 1 - src/services/balancePlatform/cardOrdersApi.ts | 1 - .../balancePlatform/grantAccountsApi.ts | 1 - .../balancePlatform/grantOffersApi.ts | 1 - .../balancePlatform/manageCardPINApi.ts | 1 - .../balancePlatform/manageSCADevicesApi.ts | 1 - .../balancePlatform/networkTokensApi.ts | 1 - .../paymentInstrumentGroupsApi.ts | 1 - .../balancePlatform/paymentInstrumentsApi.ts | 1 - src/services/balancePlatform/platformApi.ts | 1 - .../balancePlatform/transactionRulesApi.ts | 1 - .../balancePlatform/transferRoutesApi.ts | 1 - src/services/binLookup/binLookupApi.ts | 1 - src/services/checkout/donationsApi.ts | 1 - src/services/checkout/modificationsApi.ts | 1 - src/services/checkout/ordersApi.ts | 1 - src/services/checkout/paymentLinksApi.ts | 1 - src/services/checkout/paymentsApi.ts | 1 - src/services/checkout/utilityApi.ts | 1 - .../dataProtection/dataProtectionApi.ts | 1 - src/services/disputes/disputesApi.ts | 1 - .../legalEntityManagement/businessLinesApi.ts | 1 - .../legalEntityManagement/documentsApi.ts | 1 - .../hostedOnboardingApi.ts | 1 - .../legalEntityManagement/legalEntitiesApi.ts | 1 - .../pCIQuestionnairesApi.ts | 1 - .../taxEDeliveryConsentApi.ts | 1 - .../termsOfServiceApi.ts | 1 - .../transferInstrumentsApi.ts | 1 - .../aPICredentialsCompanyLevelApi.ts | 1 - .../aPICredentialsMerchantLevelApi.ts | 1 - .../management/aPIKeyCompanyLevelApi.ts | 1 - .../management/aPIKeyMerchantLevelApi.ts | 1 - .../management/accountCompanyLevelApi.ts | 1 - .../management/accountMerchantLevelApi.ts | 1 - .../management/accountStoreLevelApi.ts | 1 - .../allowedOriginsCompanyLevelApi.ts | 1 - .../allowedOriginsMerchantLevelApi.ts | 1 - .../management/androidFilesCompanyLevelApi.ts | 1 - .../management/clientKeyCompanyLevelApi.ts | 1 - .../management/clientKeyMerchantLevelApi.ts | 1 - src/services/management/myAPICredentialApi.ts | 1 - .../paymentMethodsMerchantLevelApi.ts | 1 - .../payoutSettingsMerchantLevelApi.ts | 1 - .../splitConfigurationMerchantLevelApi.ts | 1 - .../terminalActionsCompanyLevelApi.ts | 1 - .../terminalActionsTerminalLevelApi.ts | 1 - .../terminalOrdersCompanyLevelApi.ts | 1 - .../terminalOrdersMerchantLevelApi.ts | 1 - .../terminalSettingsCompanyLevelApi.ts | 1 - .../terminalSettingsMerchantLevelApi.ts | 1 - .../terminalSettingsStoreLevelApi.ts | 1 - .../terminalSettingsTerminalLevelApi.ts | 1 - .../management/terminalsTerminalLevelApi.ts | 1 - .../management/usersCompanyLevelApi.ts | 1 - .../management/usersMerchantLevelApi.ts | 1 - .../management/webhooksCompanyLevelApi.ts | 1 - .../management/webhooksMerchantLevelApi.ts | 1 - src/services/payment/modificationsApi.ts | 1 - src/services/payment/paymentsApi.ts | 1 - src/services/paymentsApp/paymentsAppApi.ts | 1 - src/services/payout/initializationApi.ts | 1 - src/services/payout/instantPayoutsApi.ts | 1 - src/services/payout/reviewingApi.ts | 1 - src/services/recurring/recurringApi.ts | 1 - .../sessionAuthenticationApi.ts | 1 - src/services/storedValue/storedValueApi.ts | 1 - src/services/transfers/capitalApi.ts | 1 - src/services/transfers/transactionsApi.ts | 3 +- src/services/transfers/transfersApi.ts | 4 +- .../balancePlatform/balanceWebhookSetting.ts | 2 - .../accountHolderResource.ts | 1 - .../balanceAccountResource.ts | 1 - .../legalEntityResource.ts | 1 - .../merchantAccountResource.ts | 1 - .../paymentInstrumentResource.ts | 1 - yarn.lock | 646 +++++++++++++++--- 81 files changed, 552 insertions(+), 182 deletions(-) diff --git a/src/services/balancePlatform/accountHoldersApi.ts b/src/services/balancePlatform/accountHoldersApi.ts index 553a3eb46..cdc3d9360 100644 --- a/src/services/balancePlatform/accountHoldersApi.ts +++ b/src/services/balancePlatform/accountHoldersApi.ts @@ -20,7 +20,6 @@ import { AccountHolderInfo } from "../../typings/balancePlatform/models"; import { AccountHolderUpdateRequest } from "../../typings/balancePlatform/models"; import { GetTaxFormResponse } from "../../typings/balancePlatform/models"; import { PaginatedBalanceAccountsResponse } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; /** @@ -134,7 +133,7 @@ export class AccountHoldersApi extends Service { * @param legalEntityId {@link string } The legal entity reference whose tax form you want to retrieve * @return {@link GetTaxFormResponse } */ - public async getTaxForm(id: string, formType: 'US1099k' | 'US1099nec', year: number, legalEntityId?: string, requestOptions?: IRequest.Options): Promise { + public async getTaxForm(id: string, formType: "US1099k" | "US1099nec", year: number, legalEntityId?: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/accountHolders/{id}/taxForms` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); diff --git a/src/services/balancePlatform/authorizedCardUsersApi.ts b/src/services/balancePlatform/authorizedCardUsersApi.ts index ac8cc478d..65b428924 100644 --- a/src/services/balancePlatform/authorizedCardUsersApi.ts +++ b/src/services/balancePlatform/authorizedCardUsersApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { AuthorisedCardUsers } from "../../typings/balancePlatform/models"; -import { DefaultErrorResponseEntity } from "../../typings/balancePlatform/models"; /** * API handler for AuthorizedCardUsersApi diff --git a/src/services/balancePlatform/balanceAccountsApi.ts b/src/services/balancePlatform/balanceAccountsApi.ts index 10ef7ab87..a40814d96 100644 --- a/src/services/balancePlatform/balanceAccountsApi.ts +++ b/src/services/balancePlatform/balanceAccountsApi.ts @@ -21,7 +21,6 @@ import { BalanceAccountUpdateRequest } from "../../typings/balancePlatform/model import { BalanceSweepConfigurationsResponse } from "../../typings/balancePlatform/models"; import { CreateSweepConfigurationV2 } from "../../typings/balancePlatform/models"; import { PaginatedPaymentInstrumentsResponse } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; import { SweepConfigurationV2 } from "../../typings/balancePlatform/models"; import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; import { UpdateSweepConfigurationV2 } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/balancesApi.ts b/src/services/balancePlatform/balancesApi.ts index f4abdf744..ce43eaf34 100644 --- a/src/services/balancePlatform/balancesApi.ts +++ b/src/services/balancePlatform/balancesApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { BalanceWebhookSettingInfo } from "../../typings/balancePlatform/models"; import { BalanceWebhookSettingInfoUpdate } from "../../typings/balancePlatform/models"; -import { DefaultErrorResponseEntity } from "../../typings/balancePlatform/models"; import { WebhookSetting } from "../../typings/balancePlatform/models"; import { WebhookSettings } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/bankAccountValidationApi.ts b/src/services/balancePlatform/bankAccountValidationApi.ts index ff54fafc9..5ecdd1c25 100644 --- a/src/services/balancePlatform/bankAccountValidationApi.ts +++ b/src/services/balancePlatform/bankAccountValidationApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { BankAccountIdentificationValidationRequest } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; /** * API handler for BankAccountValidationApi diff --git a/src/services/balancePlatform/cardOrdersApi.ts b/src/services/balancePlatform/cardOrdersApi.ts index 66ef74d95..1579f71f8 100644 --- a/src/services/balancePlatform/cardOrdersApi.ts +++ b/src/services/balancePlatform/cardOrdersApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { PaginatedGetCardOrderItemResponse } from "../../typings/balancePlatform/models"; import { PaginatedGetCardOrderResponse } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; /** * API handler for CardOrdersApi diff --git a/src/services/balancePlatform/grantAccountsApi.ts b/src/services/balancePlatform/grantAccountsApi.ts index d27a58b87..25cc1651a 100644 --- a/src/services/balancePlatform/grantAccountsApi.ts +++ b/src/services/balancePlatform/grantAccountsApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { CapitalGrantAccount } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; /** * API handler for GrantAccountsApi diff --git a/src/services/balancePlatform/grantOffersApi.ts b/src/services/balancePlatform/grantOffersApi.ts index aa55bdb98..87f5e6467 100644 --- a/src/services/balancePlatform/grantOffersApi.ts +++ b/src/services/balancePlatform/grantOffersApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { GrantOffer } from "../../typings/balancePlatform/models"; import { GrantOffers } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; /** * API handler for GrantOffersApi diff --git a/src/services/balancePlatform/manageCardPINApi.ts b/src/services/balancePlatform/manageCardPINApi.ts index a9cb3127e..763493a72 100644 --- a/src/services/balancePlatform/manageCardPINApi.ts +++ b/src/services/balancePlatform/manageCardPINApi.ts @@ -18,7 +18,6 @@ import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer import { PinChangeRequest } from "../../typings/balancePlatform/models"; import { PinChangeResponse } from "../../typings/balancePlatform/models"; import { PublicKeyResponse } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; import { RevealPinRequest } from "../../typings/balancePlatform/models"; import { RevealPinResponse } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/manageSCADevicesApi.ts b/src/services/balancePlatform/manageSCADevicesApi.ts index 593d88f81..6041c1e29 100644 --- a/src/services/balancePlatform/manageSCADevicesApi.ts +++ b/src/services/balancePlatform/manageSCADevicesApi.ts @@ -22,7 +22,6 @@ import { AssociationInitiateResponse } from "../../typings/balancePlatform/model import { RegisterSCAFinalResponse } from "../../typings/balancePlatform/models"; import { RegisterSCARequest } from "../../typings/balancePlatform/models"; import { RegisterSCAResponse } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; import { SearchRegisteredDevicesResponse } from "../../typings/balancePlatform/models"; /** diff --git a/src/services/balancePlatform/networkTokensApi.ts b/src/services/balancePlatform/networkTokensApi.ts index c2619d002..1ee1b904d 100644 --- a/src/services/balancePlatform/networkTokensApi.ts +++ b/src/services/balancePlatform/networkTokensApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { GetNetworkTokenResponse } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; import { UpdateNetworkTokenRequest } from "../../typings/balancePlatform/models"; /** diff --git a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts index 54ba69df7..5d330c23b 100644 --- a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { PaymentInstrumentGroup } from "../../typings/balancePlatform/models"; import { PaymentInstrumentGroupInfo } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; /** diff --git a/src/services/balancePlatform/paymentInstrumentsApi.ts b/src/services/balancePlatform/paymentInstrumentsApi.ts index 068d305bd..0d5a078f1 100644 --- a/src/services/balancePlatform/paymentInstrumentsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentsApi.ts @@ -24,7 +24,6 @@ import { PaymentInstrumentRevealInfo } from "../../typings/balancePlatform/model import { PaymentInstrumentRevealRequest } from "../../typings/balancePlatform/models"; import { PaymentInstrumentRevealResponse } from "../../typings/balancePlatform/models"; import { PaymentInstrumentUpdateRequest } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; import { UpdatePaymentInstrument } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/platformApi.ts b/src/services/balancePlatform/platformApi.ts index 1a0a04c7c..bf068a966 100644 --- a/src/services/balancePlatform/platformApi.ts +++ b/src/services/balancePlatform/platformApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; import { BalancePlatform } from "../../typings/balancePlatform/models"; import { PaginatedAccountHoldersResponse } from "../../typings/balancePlatform/models"; -import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransactionRulesResponse } from "../../typings/balancePlatform/models"; /** diff --git a/src/services/balancePlatform/transactionRulesApi.ts b/src/services/balancePlatform/transactionRulesApi.ts index 61143e9eb..f60370dd7 100644 --- a/src/services/balancePlatform/transactionRulesApi.ts +++ b/src/services/balancePlatform/transactionRulesApi.ts @@ -15,7 +15,6 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransactionRule } from "../../typings/balancePlatform/models"; import { TransactionRuleInfo } from "../../typings/balancePlatform/models"; import { TransactionRuleResponse } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/transferRoutesApi.ts b/src/services/balancePlatform/transferRoutesApi.ts index 0557a82c8..edd6e3762 100644 --- a/src/services/balancePlatform/transferRoutesApi.ts +++ b/src/services/balancePlatform/transferRoutesApi.ts @@ -15,7 +15,6 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/objectSerializer"; -import { RestServiceError } from "../../typings/balancePlatform/models"; import { TransferRouteRequest } from "../../typings/balancePlatform/models"; import { TransferRouteResponse } from "../../typings/balancePlatform/models"; diff --git a/src/services/binLookup/binLookupApi.ts b/src/services/binLookup/binLookupApi.ts index d3b9cd899..32a038175 100644 --- a/src/services/binLookup/binLookupApi.ts +++ b/src/services/binLookup/binLookupApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/binLookup/objectSerializer"; import { CostEstimateRequest } from "../../typings/binLookup/models"; import { CostEstimateResponse } from "../../typings/binLookup/models"; -import { ServiceError } from "../../typings/binLookup/models"; import { ThreeDSAvailabilityRequest } from "../../typings/binLookup/models"; import { ThreeDSAvailabilityResponse } from "../../typings/binLookup/models"; diff --git a/src/services/checkout/donationsApi.ts b/src/services/checkout/donationsApi.ts index b4f2d67b9..7c640358e 100644 --- a/src/services/checkout/donationsApi.ts +++ b/src/services/checkout/donationsApi.ts @@ -19,7 +19,6 @@ import { DonationCampaignsRequest } from "../../typings/checkout/models"; import { DonationCampaignsResponse } from "../../typings/checkout/models"; import { DonationPaymentRequest } from "../../typings/checkout/models"; import { DonationPaymentResponse } from "../../typings/checkout/models"; -import { ServiceError } from "../../typings/checkout/models"; /** * API handler for DonationsApi diff --git a/src/services/checkout/modificationsApi.ts b/src/services/checkout/modificationsApi.ts index 3346188d7..8fe53856d 100644 --- a/src/services/checkout/modificationsApi.ts +++ b/src/services/checkout/modificationsApi.ts @@ -25,7 +25,6 @@ import { PaymentRefundRequest } from "../../typings/checkout/models"; import { PaymentRefundResponse } from "../../typings/checkout/models"; import { PaymentReversalRequest } from "../../typings/checkout/models"; import { PaymentReversalResponse } from "../../typings/checkout/models"; -import { ServiceError } from "../../typings/checkout/models"; import { StandalonePaymentCancelRequest } from "../../typings/checkout/models"; import { StandalonePaymentCancelResponse } from "../../typings/checkout/models"; diff --git a/src/services/checkout/ordersApi.ts b/src/services/checkout/ordersApi.ts index b3abc3ebd..3c34ea6dc 100644 --- a/src/services/checkout/ordersApi.ts +++ b/src/services/checkout/ordersApi.ts @@ -21,7 +21,6 @@ import { CancelOrderRequest } from "../../typings/checkout/models"; import { CancelOrderResponse } from "../../typings/checkout/models"; import { CreateOrderRequest } from "../../typings/checkout/models"; import { CreateOrderResponse } from "../../typings/checkout/models"; -import { ServiceError } from "../../typings/checkout/models"; /** * API handler for OrdersApi diff --git a/src/services/checkout/paymentLinksApi.ts b/src/services/checkout/paymentLinksApi.ts index 57d9c0582..37047adb2 100644 --- a/src/services/checkout/paymentLinksApi.ts +++ b/src/services/checkout/paymentLinksApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/checkout/objectSerializer"; import { PaymentLinkRequest } from "../../typings/checkout/models"; import { PaymentLinkResponse } from "../../typings/checkout/models"; -import { ServiceError } from "../../typings/checkout/models"; import { UpdatePaymentLinkRequest } from "../../typings/checkout/models"; /** diff --git a/src/services/checkout/paymentsApi.ts b/src/services/checkout/paymentsApi.ts index 37f864cb7..e7ea34920 100644 --- a/src/services/checkout/paymentsApi.ts +++ b/src/services/checkout/paymentsApi.ts @@ -25,7 +25,6 @@ import { PaymentMethodsRequest } from "../../typings/checkout/models"; import { PaymentMethodsResponse } from "../../typings/checkout/models"; import { PaymentRequest } from "../../typings/checkout/models"; import { PaymentResponse } from "../../typings/checkout/models"; -import { ServiceError } from "../../typings/checkout/models"; import { SessionResultResponse } from "../../typings/checkout/models"; /** diff --git a/src/services/checkout/utilityApi.ts b/src/services/checkout/utilityApi.ts index c89721842..fd3210c08 100644 --- a/src/services/checkout/utilityApi.ts +++ b/src/services/checkout/utilityApi.ts @@ -19,7 +19,6 @@ import { ApplePaySessionRequest } from "../../typings/checkout/models"; import { ApplePaySessionResponse } from "../../typings/checkout/models"; import { PaypalUpdateOrderRequest } from "../../typings/checkout/models"; import { PaypalUpdateOrderResponse } from "../../typings/checkout/models"; -import { ServiceError } from "../../typings/checkout/models"; import { UtilityRequest } from "../../typings/checkout/models"; import { UtilityResponse } from "../../typings/checkout/models"; diff --git a/src/services/dataProtection/dataProtectionApi.ts b/src/services/dataProtection/dataProtectionApi.ts index e67116388..adddf906b 100644 --- a/src/services/dataProtection/dataProtectionApi.ts +++ b/src/services/dataProtection/dataProtectionApi.ts @@ -15,7 +15,6 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/dataProtection/objectSerializer"; -import { ServiceError } from "../../typings/dataProtection/models"; import { SubjectErasureByPspReferenceRequest } from "../../typings/dataProtection/models"; import { SubjectErasureResponse } from "../../typings/dataProtection/models"; diff --git a/src/services/disputes/disputesApi.ts b/src/services/disputes/disputesApi.ts index eb71ab027..0a37921b3 100644 --- a/src/services/disputes/disputesApi.ts +++ b/src/services/disputes/disputesApi.ts @@ -23,7 +23,6 @@ import { DefenseReasonsRequest } from "../../typings/disputes/models"; import { DefenseReasonsResponse } from "../../typings/disputes/models"; import { DeleteDefenseDocumentRequest } from "../../typings/disputes/models"; import { DeleteDefenseDocumentResponse } from "../../typings/disputes/models"; -import { ServiceError } from "../../typings/disputes/models"; import { SupplyDefenseDocumentRequest } from "../../typings/disputes/models"; import { SupplyDefenseDocumentResponse } from "../../typings/disputes/models"; diff --git a/src/services/legalEntityManagement/businessLinesApi.ts b/src/services/legalEntityManagement/businessLinesApi.ts index c62287ced..fb9a9e5cf 100644 --- a/src/services/legalEntityManagement/businessLinesApi.ts +++ b/src/services/legalEntityManagement/businessLinesApi.ts @@ -18,7 +18,6 @@ import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSeri import { BusinessLine } from "../../typings/legalEntityManagement/models"; import { BusinessLineInfo } from "../../typings/legalEntityManagement/models"; import { BusinessLineInfoUpdate } from "../../typings/legalEntityManagement/models"; -import { ServiceError } from "../../typings/legalEntityManagement/models"; /** * API handler for BusinessLinesApi diff --git a/src/services/legalEntityManagement/documentsApi.ts b/src/services/legalEntityManagement/documentsApi.ts index 024c56e59..064290fb7 100644 --- a/src/services/legalEntityManagement/documentsApi.ts +++ b/src/services/legalEntityManagement/documentsApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; import { Document } from "../../typings/legalEntityManagement/models"; -import { ServiceError } from "../../typings/legalEntityManagement/models"; /** * API handler for DocumentsApi diff --git a/src/services/legalEntityManagement/hostedOnboardingApi.ts b/src/services/legalEntityManagement/hostedOnboardingApi.ts index bcb8f1692..ad88a1e84 100644 --- a/src/services/legalEntityManagement/hostedOnboardingApi.ts +++ b/src/services/legalEntityManagement/hostedOnboardingApi.ts @@ -19,7 +19,6 @@ import { OnboardingLink } from "../../typings/legalEntityManagement/models"; import { OnboardingLinkInfo } from "../../typings/legalEntityManagement/models"; import { OnboardingTheme } from "../../typings/legalEntityManagement/models"; import { OnboardingThemes } from "../../typings/legalEntityManagement/models"; -import { ServiceError } from "../../typings/legalEntityManagement/models"; /** * API handler for HostedOnboardingApi diff --git a/src/services/legalEntityManagement/legalEntitiesApi.ts b/src/services/legalEntityManagement/legalEntitiesApi.ts index d16db573d..9948a00e2 100644 --- a/src/services/legalEntityManagement/legalEntitiesApi.ts +++ b/src/services/legalEntityManagement/legalEntitiesApi.ts @@ -20,7 +20,6 @@ import { DataReviewConfirmationResponse } from "../../typings/legalEntityManagem import { LegalEntity } from "../../typings/legalEntityManagement/models"; import { LegalEntityInfo } from "../../typings/legalEntityManagement/models"; import { LegalEntityInfoRequiredType } from "../../typings/legalEntityManagement/models"; -import { ServiceError } from "../../typings/legalEntityManagement/models"; import { VerificationErrors } from "../../typings/legalEntityManagement/models"; /** diff --git a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts index ea2ab2147..04df88f5b 100644 --- a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts +++ b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts @@ -23,7 +23,6 @@ import { GetPciQuestionnaireInfosResponse } from "../../typings/legalEntityManag import { GetPciQuestionnaireResponse } from "../../typings/legalEntityManagement/models"; import { PciSigningRequest } from "../../typings/legalEntityManagement/models"; import { PciSigningResponse } from "../../typings/legalEntityManagement/models"; -import { ServiceError } from "../../typings/legalEntityManagement/models"; /** * API handler for PCIQuestionnairesApi diff --git a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts index 3d12db666..55d2fa4b0 100644 --- a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts +++ b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; import { CheckTaxElectronicDeliveryConsentResponse } from "../../typings/legalEntityManagement/models"; -import { ServiceError } from "../../typings/legalEntityManagement/models"; import { SetTaxElectronicDeliveryConsentRequest } from "../../typings/legalEntityManagement/models"; /** diff --git a/src/services/legalEntityManagement/termsOfServiceApi.ts b/src/services/legalEntityManagement/termsOfServiceApi.ts index 7d01ceafb..bb9e5078b 100644 --- a/src/services/legalEntityManagement/termsOfServiceApi.ts +++ b/src/services/legalEntityManagement/termsOfServiceApi.ts @@ -22,7 +22,6 @@ import { GetAcceptedTermsOfServiceDocumentResponse } from "../../typings/legalEn import { GetTermsOfServiceAcceptanceInfosResponse } from "../../typings/legalEntityManagement/models"; import { GetTermsOfServiceDocumentRequest } from "../../typings/legalEntityManagement/models"; import { GetTermsOfServiceDocumentResponse } from "../../typings/legalEntityManagement/models"; -import { ServiceError } from "../../typings/legalEntityManagement/models"; /** * API handler for TermsOfServiceApi diff --git a/src/services/legalEntityManagement/transferInstrumentsApi.ts b/src/services/legalEntityManagement/transferInstrumentsApi.ts index be91d5616..bb67e4173 100644 --- a/src/services/legalEntityManagement/transferInstrumentsApi.ts +++ b/src/services/legalEntityManagement/transferInstrumentsApi.ts @@ -15,7 +15,6 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer"; -import { ServiceError } from "../../typings/legalEntityManagement/models"; import { TransferInstrument } from "../../typings/legalEntityManagement/models"; import { TransferInstrumentInfo } from "../../typings/legalEntityManagement/models"; diff --git a/src/services/management/aPICredentialsCompanyLevelApi.ts b/src/services/management/aPICredentialsCompanyLevelApi.ts index a622ce177..2d43153c3 100644 --- a/src/services/management/aPICredentialsCompanyLevelApi.ts +++ b/src/services/management/aPICredentialsCompanyLevelApi.ts @@ -19,7 +19,6 @@ import { CompanyApiCredential } from "../../typings/management/models"; import { CreateCompanyApiCredentialRequest } from "../../typings/management/models"; import { CreateCompanyApiCredentialResponse } from "../../typings/management/models"; import { ListCompanyApiCredentialsResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { UpdateCompanyApiCredentialRequest } from "../../typings/management/models"; /** diff --git a/src/services/management/aPICredentialsMerchantLevelApi.ts b/src/services/management/aPICredentialsMerchantLevelApi.ts index 22042bdaa..42dc3cad4 100644 --- a/src/services/management/aPICredentialsMerchantLevelApi.ts +++ b/src/services/management/aPICredentialsMerchantLevelApi.ts @@ -19,7 +19,6 @@ import { ApiCredential } from "../../typings/management/models"; import { CreateApiCredentialResponse } from "../../typings/management/models"; import { CreateMerchantApiCredentialRequest } from "../../typings/management/models"; import { ListMerchantApiCredentialsResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { UpdateMerchantApiCredentialRequest } from "../../typings/management/models"; /** diff --git a/src/services/management/aPIKeyCompanyLevelApi.ts b/src/services/management/aPIKeyCompanyLevelApi.ts index 2af6384b7..5ad3a8a75 100644 --- a/src/services/management/aPIKeyCompanyLevelApi.ts +++ b/src/services/management/aPIKeyCompanyLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { GenerateApiKeyResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; /** * API handler for APIKeyCompanyLevelApi diff --git a/src/services/management/aPIKeyMerchantLevelApi.ts b/src/services/management/aPIKeyMerchantLevelApi.ts index 966455712..6a9808c31 100644 --- a/src/services/management/aPIKeyMerchantLevelApi.ts +++ b/src/services/management/aPIKeyMerchantLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { GenerateApiKeyResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; /** * API handler for APIKeyMerchantLevelApi diff --git a/src/services/management/accountCompanyLevelApi.ts b/src/services/management/accountCompanyLevelApi.ts index f98ddea53..e55965248 100644 --- a/src/services/management/accountCompanyLevelApi.ts +++ b/src/services/management/accountCompanyLevelApi.ts @@ -18,7 +18,6 @@ import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { Company } from "../../typings/management/models"; import { ListCompanyResponse } from "../../typings/management/models"; import { ListMerchantResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; /** * API handler for AccountCompanyLevelApi diff --git a/src/services/management/accountMerchantLevelApi.ts b/src/services/management/accountMerchantLevelApi.ts index 6693000dc..e22ffdebc 100644 --- a/src/services/management/accountMerchantLevelApi.ts +++ b/src/services/management/accountMerchantLevelApi.ts @@ -20,7 +20,6 @@ import { CreateMerchantResponse } from "../../typings/management/models"; import { ListMerchantResponse } from "../../typings/management/models"; import { Merchant } from "../../typings/management/models"; import { RequestActivationResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; /** * API handler for AccountMerchantLevelApi diff --git a/src/services/management/accountStoreLevelApi.ts b/src/services/management/accountStoreLevelApi.ts index 3447954fd..fd6c71231 100644 --- a/src/services/management/accountStoreLevelApi.ts +++ b/src/services/management/accountStoreLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { ListStoresResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { Store } from "../../typings/management/models"; import { StoreCreationRequest } from "../../typings/management/models"; import { StoreCreationWithMerchantCodeRequest } from "../../typings/management/models"; diff --git a/src/services/management/allowedOriginsCompanyLevelApi.ts b/src/services/management/allowedOriginsCompanyLevelApi.ts index 6ba2a1ce4..02eb8cc7c 100644 --- a/src/services/management/allowedOriginsCompanyLevelApi.ts +++ b/src/services/management/allowedOriginsCompanyLevelApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { AllowedOrigin } from "../../typings/management/models"; import { AllowedOriginsResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; /** * API handler for AllowedOriginsCompanyLevelApi diff --git a/src/services/management/allowedOriginsMerchantLevelApi.ts b/src/services/management/allowedOriginsMerchantLevelApi.ts index d4f122482..3b2481134 100644 --- a/src/services/management/allowedOriginsMerchantLevelApi.ts +++ b/src/services/management/allowedOriginsMerchantLevelApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { AllowedOrigin } from "../../typings/management/models"; import { AllowedOriginsResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; /** * API handler for AllowedOriginsMerchantLevelApi diff --git a/src/services/management/androidFilesCompanyLevelApi.ts b/src/services/management/androidFilesCompanyLevelApi.ts index f38e7940c..ccb2f5b42 100644 --- a/src/services/management/androidFilesCompanyLevelApi.ts +++ b/src/services/management/androidFilesCompanyLevelApi.ts @@ -19,7 +19,6 @@ import { AndroidApp } from "../../typings/management/models"; import { AndroidAppsResponse } from "../../typings/management/models"; import { AndroidCertificatesResponse } from "../../typings/management/models"; import { ReprocessAndroidAppResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { UploadAndroidAppResponse } from "../../typings/management/models"; import { UploadAndroidCertificateResponse } from "../../typings/management/models"; diff --git a/src/services/management/clientKeyCompanyLevelApi.ts b/src/services/management/clientKeyCompanyLevelApi.ts index d2165f8e1..90fdac5e5 100644 --- a/src/services/management/clientKeyCompanyLevelApi.ts +++ b/src/services/management/clientKeyCompanyLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { GenerateClientKeyResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; /** * API handler for ClientKeyCompanyLevelApi diff --git a/src/services/management/clientKeyMerchantLevelApi.ts b/src/services/management/clientKeyMerchantLevelApi.ts index 880f9657f..9bf69808c 100644 --- a/src/services/management/clientKeyMerchantLevelApi.ts +++ b/src/services/management/clientKeyMerchantLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { GenerateClientKeyResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; /** * API handler for ClientKeyMerchantLevelApi diff --git a/src/services/management/myAPICredentialApi.ts b/src/services/management/myAPICredentialApi.ts index 8cd34d1d9..db24ad8e4 100644 --- a/src/services/management/myAPICredentialApi.ts +++ b/src/services/management/myAPICredentialApi.ts @@ -20,7 +20,6 @@ import { AllowedOriginsResponse } from "../../typings/management/models"; import { CreateAllowedOriginRequest } from "../../typings/management/models"; import { GenerateClientKeyResponse } from "../../typings/management/models"; import { MeApiCredential } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; /** * API handler for MyAPICredentialApi diff --git a/src/services/management/paymentMethodsMerchantLevelApi.ts b/src/services/management/paymentMethodsMerchantLevelApi.ts index a0f92d916..088a7e103 100644 --- a/src/services/management/paymentMethodsMerchantLevelApi.ts +++ b/src/services/management/paymentMethodsMerchantLevelApi.ts @@ -19,7 +19,6 @@ import { ApplePayInfo } from "../../typings/management/models"; import { PaymentMethod } from "../../typings/management/models"; import { PaymentMethodResponse } from "../../typings/management/models"; import { PaymentMethodSetupInfo } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { UpdatePaymentMethodInfo } from "../../typings/management/models"; /** diff --git a/src/services/management/payoutSettingsMerchantLevelApi.ts b/src/services/management/payoutSettingsMerchantLevelApi.ts index 40d21d106..3abce7b65 100644 --- a/src/services/management/payoutSettingsMerchantLevelApi.ts +++ b/src/services/management/payoutSettingsMerchantLevelApi.ts @@ -18,7 +18,6 @@ import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { PayoutSettings } from "../../typings/management/models"; import { PayoutSettingsRequest } from "../../typings/management/models"; import { PayoutSettingsResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { UpdatePayoutSettingsRequest } from "../../typings/management/models"; /** diff --git a/src/services/management/splitConfigurationMerchantLevelApi.ts b/src/services/management/splitConfigurationMerchantLevelApi.ts index b17e41b32..0675dfaf0 100644 --- a/src/services/management/splitConfigurationMerchantLevelApi.ts +++ b/src/services/management/splitConfigurationMerchantLevelApi.ts @@ -15,7 +15,6 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { RestServiceError } from "../../typings/management/models"; import { SplitConfiguration } from "../../typings/management/models"; import { SplitConfigurationList } from "../../typings/management/models"; import { SplitConfigurationRule } from "../../typings/management/models"; diff --git a/src/services/management/terminalActionsCompanyLevelApi.ts b/src/services/management/terminalActionsCompanyLevelApi.ts index 92f1edefc..1f06ac54c 100644 --- a/src/services/management/terminalActionsCompanyLevelApi.ts +++ b/src/services/management/terminalActionsCompanyLevelApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { ExternalTerminalAction } from "../../typings/management/models"; import { ListExternalTerminalActionsResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; /** * API handler for TerminalActionsCompanyLevelApi diff --git a/src/services/management/terminalActionsTerminalLevelApi.ts b/src/services/management/terminalActionsTerminalLevelApi.ts index 870d79279..82440e1c1 100644 --- a/src/services/management/terminalActionsTerminalLevelApi.ts +++ b/src/services/management/terminalActionsTerminalLevelApi.ts @@ -15,7 +15,6 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; -import { RestServiceError } from "../../typings/management/models"; import { ScheduleTerminalActionsRequest } from "../../typings/management/models"; import { ScheduleTerminalActionsResponse } from "../../typings/management/models"; diff --git a/src/services/management/terminalOrdersCompanyLevelApi.ts b/src/services/management/terminalOrdersCompanyLevelApi.ts index 7566afc8b..6f027b9cf 100644 --- a/src/services/management/terminalOrdersCompanyLevelApi.ts +++ b/src/services/management/terminalOrdersCompanyLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { BillingEntitiesResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { ShippingLocation } from "../../typings/management/models"; import { ShippingLocationsResponse } from "../../typings/management/models"; import { TerminalModelsResponse } from "../../typings/management/models"; diff --git a/src/services/management/terminalOrdersMerchantLevelApi.ts b/src/services/management/terminalOrdersMerchantLevelApi.ts index 0158e0826..af401acf4 100644 --- a/src/services/management/terminalOrdersMerchantLevelApi.ts +++ b/src/services/management/terminalOrdersMerchantLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { BillingEntitiesResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { ShippingLocation } from "../../typings/management/models"; import { ShippingLocationsResponse } from "../../typings/management/models"; import { TerminalModelsResponse } from "../../typings/management/models"; diff --git a/src/services/management/terminalSettingsCompanyLevelApi.ts b/src/services/management/terminalSettingsCompanyLevelApi.ts index c1646b9a6..f7e6ab7f6 100644 --- a/src/services/management/terminalSettingsCompanyLevelApi.ts +++ b/src/services/management/terminalSettingsCompanyLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { Logo } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { TerminalSettings } from "../../typings/management/models"; /** diff --git a/src/services/management/terminalSettingsMerchantLevelApi.ts b/src/services/management/terminalSettingsMerchantLevelApi.ts index 3497f25dd..efacc8294 100644 --- a/src/services/management/terminalSettingsMerchantLevelApi.ts +++ b/src/services/management/terminalSettingsMerchantLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { Logo } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { TerminalSettings } from "../../typings/management/models"; /** diff --git a/src/services/management/terminalSettingsStoreLevelApi.ts b/src/services/management/terminalSettingsStoreLevelApi.ts index 81f070c12..3b756b936 100644 --- a/src/services/management/terminalSettingsStoreLevelApi.ts +++ b/src/services/management/terminalSettingsStoreLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { Logo } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { TerminalSettings } from "../../typings/management/models"; /** diff --git a/src/services/management/terminalSettingsTerminalLevelApi.ts b/src/services/management/terminalSettingsTerminalLevelApi.ts index 376b3c412..690f6eeac 100644 --- a/src/services/management/terminalSettingsTerminalLevelApi.ts +++ b/src/services/management/terminalSettingsTerminalLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { Logo } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { TerminalSettings } from "../../typings/management/models"; /** diff --git a/src/services/management/terminalsTerminalLevelApi.ts b/src/services/management/terminalsTerminalLevelApi.ts index 1b807d866..5f585fbb6 100644 --- a/src/services/management/terminalsTerminalLevelApi.ts +++ b/src/services/management/terminalsTerminalLevelApi.ts @@ -16,7 +16,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { ListTerminalsResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { TerminalReassignmentRequest } from "../../typings/management/models"; /** diff --git a/src/services/management/usersCompanyLevelApi.ts b/src/services/management/usersCompanyLevelApi.ts index 2e2a49b9c..784d5db34 100644 --- a/src/services/management/usersCompanyLevelApi.ts +++ b/src/services/management/usersCompanyLevelApi.ts @@ -19,7 +19,6 @@ import { CompanyUser } from "../../typings/management/models"; import { CreateCompanyUserRequest } from "../../typings/management/models"; import { CreateCompanyUserResponse } from "../../typings/management/models"; import { ListCompanyUsersResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { UpdateCompanyUserRequest } from "../../typings/management/models"; /** diff --git a/src/services/management/usersMerchantLevelApi.ts b/src/services/management/usersMerchantLevelApi.ts index a997a2b9d..f3685662b 100644 --- a/src/services/management/usersMerchantLevelApi.ts +++ b/src/services/management/usersMerchantLevelApi.ts @@ -18,7 +18,6 @@ import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { CreateMerchantUserRequest } from "../../typings/management/models"; import { CreateUserResponse } from "../../typings/management/models"; import { ListMerchantUsersResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { UpdateMerchantUserRequest } from "../../typings/management/models"; import { User } from "../../typings/management/models"; diff --git a/src/services/management/webhooksCompanyLevelApi.ts b/src/services/management/webhooksCompanyLevelApi.ts index a778a5735..b6a379acf 100644 --- a/src/services/management/webhooksCompanyLevelApi.ts +++ b/src/services/management/webhooksCompanyLevelApi.ts @@ -18,7 +18,6 @@ import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { CreateCompanyWebhookRequest } from "../../typings/management/models"; import { GenerateHmacKeyResponse } from "../../typings/management/models"; import { ListWebhooksResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { TestCompanyWebhookRequest } from "../../typings/management/models"; import { TestWebhookResponse } from "../../typings/management/models"; import { UpdateCompanyWebhookRequest } from "../../typings/management/models"; diff --git a/src/services/management/webhooksMerchantLevelApi.ts b/src/services/management/webhooksMerchantLevelApi.ts index 2521bdeb3..65b97b929 100644 --- a/src/services/management/webhooksMerchantLevelApi.ts +++ b/src/services/management/webhooksMerchantLevelApi.ts @@ -18,7 +18,6 @@ import { ObjectSerializer } from "../../typings/management/objectSerializer"; import { CreateMerchantWebhookRequest } from "../../typings/management/models"; import { GenerateHmacKeyResponse } from "../../typings/management/models"; import { ListWebhooksResponse } from "../../typings/management/models"; -import { RestServiceError } from "../../typings/management/models"; import { TestWebhookRequest } from "../../typings/management/models"; import { TestWebhookResponse } from "../../typings/management/models"; import { UpdateMerchantWebhookRequest } from "../../typings/management/models"; diff --git a/src/services/payment/modificationsApi.ts b/src/services/payment/modificationsApi.ts index 8c152e0f4..8ef990a09 100644 --- a/src/services/payment/modificationsApi.ts +++ b/src/services/payment/modificationsApi.ts @@ -22,7 +22,6 @@ import { CaptureRequest } from "../../typings/payment/models"; import { DonationRequest } from "../../typings/payment/models"; import { ModificationResult } from "../../typings/payment/models"; import { RefundRequest } from "../../typings/payment/models"; -import { ServiceError } from "../../typings/payment/models"; import { TechnicalCancelRequest } from "../../typings/payment/models"; import { VoidPendingRefundRequest } from "../../typings/payment/models"; diff --git a/src/services/payment/paymentsApi.ts b/src/services/payment/paymentsApi.ts index 44e008adb..089f0b9e9 100644 --- a/src/services/payment/paymentsApi.ts +++ b/src/services/payment/paymentsApi.ts @@ -21,7 +21,6 @@ import { PaymentRequest } from "../../typings/payment/models"; import { PaymentRequest3d } from "../../typings/payment/models"; import { PaymentRequest3ds2 } from "../../typings/payment/models"; import { PaymentResult } from "../../typings/payment/models"; -import { ServiceError } from "../../typings/payment/models"; import { ThreeDS2ResultRequest } from "../../typings/payment/models"; import { ThreeDS2ResultResponse } from "../../typings/payment/models"; diff --git a/src/services/paymentsApp/paymentsAppApi.ts b/src/services/paymentsApp/paymentsAppApi.ts index 348588f80..072a524f2 100644 --- a/src/services/paymentsApp/paymentsAppApi.ts +++ b/src/services/paymentsApp/paymentsAppApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/paymentsApp/objectSerializer"; import { BoardingTokenRequest } from "../../typings/paymentsApp/models"; import { BoardingTokenResponse } from "../../typings/paymentsApp/models"; -import { DefaultErrorResponseEntity } from "../../typings/paymentsApp/models"; import { PaymentsAppResponse } from "../../typings/paymentsApp/models"; /** diff --git a/src/services/payout/initializationApi.ts b/src/services/payout/initializationApi.ts index 3857298f5..466ae007e 100644 --- a/src/services/payout/initializationApi.ts +++ b/src/services/payout/initializationApi.ts @@ -15,7 +15,6 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/payout/objectSerializer"; -import { ServiceError } from "../../typings/payout/models"; import { StoreDetailAndSubmitRequest } from "../../typings/payout/models"; import { StoreDetailAndSubmitResponse } from "../../typings/payout/models"; import { StoreDetailRequest } from "../../typings/payout/models"; diff --git a/src/services/payout/instantPayoutsApi.ts b/src/services/payout/instantPayoutsApi.ts index cb821227c..9c2043d21 100644 --- a/src/services/payout/instantPayoutsApi.ts +++ b/src/services/payout/instantPayoutsApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/payout/objectSerializer"; import { PayoutRequest } from "../../typings/payout/models"; import { PayoutResponse } from "../../typings/payout/models"; -import { ServiceError } from "../../typings/payout/models"; /** * API handler for InstantPayoutsApi diff --git a/src/services/payout/reviewingApi.ts b/src/services/payout/reviewingApi.ts index 22ef2acb5..f90f70ad3 100644 --- a/src/services/payout/reviewingApi.ts +++ b/src/services/payout/reviewingApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/payout/objectSerializer"; import { ModifyRequest } from "../../typings/payout/models"; import { ModifyResponse } from "../../typings/payout/models"; -import { ServiceError } from "../../typings/payout/models"; /** * API handler for ReviewingApi diff --git a/src/services/recurring/recurringApi.ts b/src/services/recurring/recurringApi.ts index 0386b95ff..3e3b48134 100644 --- a/src/services/recurring/recurringApi.ts +++ b/src/services/recurring/recurringApi.ts @@ -27,7 +27,6 @@ import { RecurringDetailsRequest } from "../../typings/recurring/models"; import { RecurringDetailsResult } from "../../typings/recurring/models"; import { ScheduleAccountUpdaterRequest } from "../../typings/recurring/models"; import { ScheduleAccountUpdaterResult } from "../../typings/recurring/models"; -import { ServiceError } from "../../typings/recurring/models"; /** * API handler for RecurringApi diff --git a/src/services/sessionAuthentication/sessionAuthenticationApi.ts b/src/services/sessionAuthentication/sessionAuthenticationApi.ts index 9492e5178..204e77d3d 100644 --- a/src/services/sessionAuthentication/sessionAuthenticationApi.ts +++ b/src/services/sessionAuthentication/sessionAuthenticationApi.ts @@ -17,7 +17,6 @@ import Resource from "../resource"; import { ObjectSerializer } from "../../typings/sessionAuthentication/objectSerializer"; import { AuthenticationSessionRequest } from "../../typings/sessionAuthentication/models"; import { AuthenticationSessionResponse } from "../../typings/sessionAuthentication/models"; -import { DefaultErrorResponseEntity } from "../../typings/sessionAuthentication/models"; /** * API handler for SessionAuthenticationApi diff --git a/src/services/storedValue/storedValueApi.ts b/src/services/storedValue/storedValueApi.ts index e575250ba..c3d2bc81f 100644 --- a/src/services/storedValue/storedValueApi.ts +++ b/src/services/storedValue/storedValueApi.ts @@ -15,7 +15,6 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/storedValue/objectSerializer"; -import { ServiceError } from "../../typings/storedValue/models"; import { StoredValueBalanceCheckRequest } from "../../typings/storedValue/models"; import { StoredValueBalanceCheckResponse } from "../../typings/storedValue/models"; import { StoredValueBalanceMergeRequest } from "../../typings/storedValue/models"; diff --git a/src/services/transfers/capitalApi.ts b/src/services/transfers/capitalApi.ts index fc6bb23bb..7c6bb8b79 100644 --- a/src/services/transfers/capitalApi.ts +++ b/src/services/transfers/capitalApi.ts @@ -18,7 +18,6 @@ import { ObjectSerializer } from "../../typings/transfers/objectSerializer"; import { CapitalGrant } from "../../typings/transfers/models"; import { CapitalGrantInfo } from "../../typings/transfers/models"; import { CapitalGrants } from "../../typings/transfers/models"; -import { RestServiceError } from "../../typings/transfers/models"; /** * API handler for CapitalApi diff --git a/src/services/transfers/transactionsApi.ts b/src/services/transfers/transactionsApi.ts index fb5b306f4..6d176d378 100644 --- a/src/services/transfers/transactionsApi.ts +++ b/src/services/transfers/transactionsApi.ts @@ -15,7 +15,6 @@ import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/transfers/objectSerializer"; -import { RestServiceError } from "../../typings/transfers/models"; import { Transaction } from "../../typings/transfers/models"; import { TransactionSearchResponse } from "../../typings/transfers/models"; @@ -46,7 +45,7 @@ export class TransactionsApi extends Service { * @param limit {@link number } The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. * @return {@link TransactionSearchResponse } */ - public async getAllTransactions(createdSince: Date, createdUntil: Date, balancePlatform?: string, paymentInstrumentId?: string, accountHolderId?: string, balanceAccountId?: string, cursor?: string, sortOrder?: 'asc' | 'desc', limit?: number, requestOptions?: IRequest.Options): Promise { + public async getAllTransactions(createdSince: Date, createdUntil: Date, balancePlatform?: string, paymentInstrumentId?: string, accountHolderId?: string, balanceAccountId?: string, cursor?: string, sortOrder?: "asc" | "desc", limit?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transactions`; const resource = new Resource(this, endpoint); diff --git a/src/services/transfers/transfersApi.ts b/src/services/transfers/transfersApi.ts index 3451d76ee..e1afa1b75 100644 --- a/src/services/transfers/transfersApi.ts +++ b/src/services/transfers/transfersApi.ts @@ -20,11 +20,9 @@ import { CancelTransfersRequest } from "../../typings/transfers/models"; import { FindTransfersResponse } from "../../typings/transfers/models"; import { ReturnTransferRequest } from "../../typings/transfers/models"; import { ReturnTransferResponse } from "../../typings/transfers/models"; -import { ServiceError } from "../../typings/transfers/models"; import { Transfer } from "../../typings/transfers/models"; import { TransferData } from "../../typings/transfers/models"; import { TransferInfo } from "../../typings/transfers/models"; -import { TransferServiceRestServiceError } from "../../typings/transfers/models"; /** * API handler for TransfersApi @@ -91,7 +89,7 @@ export class TransfersApi extends Service { * @param limit {@link number } The number of items returned per page, maximum of 100 items. By default, the response returns 10 items per page. * @return {@link FindTransfersResponse } */ - public async getAllTransfers(createdSince: Date, createdUntil: Date, balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: 'bank' | 'card' | 'grants' | 'interest' | 'internal' | 'issuedCard' | 'migration' | 'platformPayment' | 'topUp' | 'upgrade', sortOrder?: 'asc' | 'desc', cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { + public async getAllTransfers(createdSince: Date, createdUntil: Date, balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: "bank" | "card" | "grants" | "interest" | "internal" | "issuedCard" | "migration" | "platformPayment" | "topUp" | "upgrade", sortOrder?: "asc" | "desc", cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transfers`; const resource = new Resource(this, endpoint); diff --git a/src/typings/balancePlatform/balanceWebhookSetting.ts b/src/typings/balancePlatform/balanceWebhookSetting.ts index 7b03f026f..46e02f59c 100644 --- a/src/typings/balancePlatform/balanceWebhookSetting.ts +++ b/src/typings/balancePlatform/balanceWebhookSetting.ts @@ -8,8 +8,6 @@ */ import { Condition } from "./condition"; -import { SettingType } from "./settingType"; -import { Target } from "./target"; import { WebhookSetting } from "./webhookSetting"; diff --git a/src/typings/sessionAuthentication/accountHolderResource.ts b/src/typings/sessionAuthentication/accountHolderResource.ts index b52df18d8..0e4256382 100644 --- a/src/typings/sessionAuthentication/accountHolderResource.ts +++ b/src/typings/sessionAuthentication/accountHolderResource.ts @@ -8,7 +8,6 @@ */ import { Resource } from "./resource"; -import { ResourceType } from "./resourceType"; export class AccountHolderResource extends Resource { diff --git a/src/typings/sessionAuthentication/balanceAccountResource.ts b/src/typings/sessionAuthentication/balanceAccountResource.ts index 6408e0ac3..ed6c1231e 100644 --- a/src/typings/sessionAuthentication/balanceAccountResource.ts +++ b/src/typings/sessionAuthentication/balanceAccountResource.ts @@ -8,7 +8,6 @@ */ import { Resource } from "./resource"; -import { ResourceType } from "./resourceType"; export class BalanceAccountResource extends Resource { diff --git a/src/typings/sessionAuthentication/legalEntityResource.ts b/src/typings/sessionAuthentication/legalEntityResource.ts index 7504b4f43..c4851e41c 100644 --- a/src/typings/sessionAuthentication/legalEntityResource.ts +++ b/src/typings/sessionAuthentication/legalEntityResource.ts @@ -8,7 +8,6 @@ */ import { Resource } from "./resource"; -import { ResourceType } from "./resourceType"; export class LegalEntityResource extends Resource { diff --git a/src/typings/sessionAuthentication/merchantAccountResource.ts b/src/typings/sessionAuthentication/merchantAccountResource.ts index 33790a1c1..cfed80104 100644 --- a/src/typings/sessionAuthentication/merchantAccountResource.ts +++ b/src/typings/sessionAuthentication/merchantAccountResource.ts @@ -8,7 +8,6 @@ */ import { Resource } from "./resource"; -import { ResourceType } from "./resourceType"; export class MerchantAccountResource extends Resource { diff --git a/src/typings/sessionAuthentication/paymentInstrumentResource.ts b/src/typings/sessionAuthentication/paymentInstrumentResource.ts index ee8b5b658..77be55c8d 100644 --- a/src/typings/sessionAuthentication/paymentInstrumentResource.ts +++ b/src/typings/sessionAuthentication/paymentInstrumentResource.ts @@ -8,7 +8,6 @@ */ import { Resource } from "./resource"; -import { ResourceType } from "./resourceType"; export class PaymentInstrumentResource extends Resource { diff --git a/yarn.lock b/yarn.lock index 08829b122..874b25759 100644 --- a/yarn.lock +++ b/yarn.lock @@ -28,7 +28,7 @@ resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.18.6.tgz" integrity sha512-tzulrgDT0QD6U7BJ4TKVk2SDDg7wlP39P9yAx1RfLy7vP/7rsDRlWVfbWxElslu56+r7QOhB2NSDsabYYruoZQ== -"@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.7.2", "@babel/core@^7.8.0": +"@babel/core@^7.0.0", "@babel/core@^7.0.0-0", "@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.7.2", "@babel/core@^7.8.0", "@babel/core@>=7.0.0-beta.0 <8": version "7.18.6" resolved "https://registry.npmjs.org/@babel/core/-/core-7.18.6.tgz" integrity sha512-cQbWBpxcbbs/IUredIPkHiAGULLV8iwgNRMFzvbhEXISp4f3rUUXE5+TIw6KwUWUR3DwyI6gmBRnmAtYaWehwQ== @@ -302,6 +302,13 @@ resolved "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz" integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== +"@cspotcode/source-map-support@^0.8.0": + version "0.8.1" + resolved "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz" + integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== + dependencies: + "@jridgewell/trace-mapping" "0.3.9" + "@dabh/diagnostics@^2.0.2": version "2.0.3" resolved "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.3.tgz" @@ -564,7 +571,15 @@ "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/trace-mapping" "^0.3.9" -"@jridgewell/resolve-uri@^3.1.0": +"@jridgewell/gen-mapping@^0.3.5": + version "0.3.12" + resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz" + integrity sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg== + dependencies: + "@jridgewell/sourcemap-codec" "^1.5.0" + "@jridgewell/trace-mapping" "^0.3.24" + +"@jridgewell/resolve-uri@^3.0.3", "@jridgewell/resolve-uri@^3.1.0": version "3.1.0" resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz" integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== @@ -574,12 +589,20 @@ resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz" integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== -"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": - version "1.4.14" - resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz" - integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== +"@jridgewell/source-map@^0.3.3": + version "0.3.10" + resolved "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.10.tgz" + integrity sha512-0pPkgz9dY+bijgistcTTJ5mR+ocqRXLuhXHYdzoMmmoJ2C9S46RCm2GMUbatPEUK9Yjy26IrAy8D/M00lLkv+Q== + dependencies: + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" + +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.5.0": + version "1.5.4" + resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz" + integrity sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw== -"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": +"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25", "@jridgewell/trace-mapping@^0.3.9": version "0.3.25" resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz" integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== @@ -587,6 +610,14 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" +"@jridgewell/trace-mapping@0.3.9": + version "0.3.9" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz" + integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" @@ -595,7 +626,7 @@ "@nodelib/fs.stat" "2.0.5" run-parallel "^1.1.9" -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": +"@nodelib/fs.stat@^2.0.2", "@nodelib/fs.stat@2.0.5": version "2.0.5" resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== @@ -627,6 +658,26 @@ resolved "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz" integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== +"@tsconfig/node10@^1.0.7": + version "1.0.11" + resolved "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz" + integrity sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw== + +"@tsconfig/node12@^1.0.7": + version "1.0.11" + resolved "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz" + integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== + +"@tsconfig/node14@^1.0.0": + version "1.0.3" + resolved "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz" + integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== + +"@tsconfig/node16@^1.0.2": + version "1.0.4" + resolved "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== + "@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": version "7.1.19" resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.19.tgz" @@ -660,6 +711,27 @@ dependencies: "@babel/types" "^7.3.0" +"@types/eslint-scope@^3.7.7": + version "3.7.7" + resolved "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz" + integrity sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg== + dependencies: + "@types/eslint" "*" + "@types/estree" "*" + +"@types/eslint@*": + version "9.6.1" + resolved "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz" + integrity sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag== + dependencies: + "@types/estree" "*" + "@types/json-schema" "*" + +"@types/estree@*", "@types/estree@^1.0.8": + version "1.0.8" + resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz" + integrity sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w== + "@types/graceful-fs@^4.1.2": version "4.1.5" resolved "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz" @@ -686,7 +758,7 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@27.5.2": +"@types/jest@^27.0.0", "@types/jest@27.5.2": version "27.5.2" resolved "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz" integrity sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA== @@ -694,10 +766,10 @@ jest-matcher-utils "^27.0.0" pretty-format "^27.0.0" -"@types/json-schema@^7.0.9": - version "7.0.11" - resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz" - integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== +"@types/json-schema@*", "@types/json-schema@^7.0.15", "@types/json-schema@^7.0.9": + version "7.0.15" + resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz" + integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== "@types/nock@11.1.0": version "11.1.0" @@ -745,7 +817,7 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@5.62.0": +"@typescript-eslint/eslint-plugin@^5.0.0", "@typescript-eslint/eslint-plugin@5.62.0": version "5.62.0" resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz" integrity sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag== @@ -761,7 +833,7 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@5.62.0": +"@typescript-eslint/parser@^5.0.0", "@typescript-eslint/parser@5.62.0": version "5.62.0" resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz" integrity sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA== @@ -834,6 +906,137 @@ resolved "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz" integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== +"@webassemblyjs/ast@^1.14.1", "@webassemblyjs/ast@1.14.1": + version "1.14.1" + resolved "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz" + integrity sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ== + dependencies: + "@webassemblyjs/helper-numbers" "1.13.2" + "@webassemblyjs/helper-wasm-bytecode" "1.13.2" + +"@webassemblyjs/floating-point-hex-parser@1.13.2": + version "1.13.2" + resolved "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz" + integrity sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA== + +"@webassemblyjs/helper-api-error@1.13.2": + version "1.13.2" + resolved "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz" + integrity sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ== + +"@webassemblyjs/helper-buffer@1.14.1": + version "1.14.1" + resolved "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz" + integrity sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA== + +"@webassemblyjs/helper-numbers@1.13.2": + version "1.13.2" + resolved "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz" + integrity sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA== + dependencies: + "@webassemblyjs/floating-point-hex-parser" "1.13.2" + "@webassemblyjs/helper-api-error" "1.13.2" + "@xtuc/long" "4.2.2" + +"@webassemblyjs/helper-wasm-bytecode@1.13.2": + version "1.13.2" + resolved "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz" + integrity sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA== + +"@webassemblyjs/helper-wasm-section@1.14.1": + version "1.14.1" + resolved "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz" + integrity sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw== + dependencies: + "@webassemblyjs/ast" "1.14.1" + "@webassemblyjs/helper-buffer" "1.14.1" + "@webassemblyjs/helper-wasm-bytecode" "1.13.2" + "@webassemblyjs/wasm-gen" "1.14.1" + +"@webassemblyjs/ieee754@1.13.2": + version "1.13.2" + resolved "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz" + integrity sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw== + dependencies: + "@xtuc/ieee754" "^1.2.0" + +"@webassemblyjs/leb128@1.13.2": + version "1.13.2" + resolved "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz" + integrity sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw== + dependencies: + "@xtuc/long" "4.2.2" + +"@webassemblyjs/utf8@1.13.2": + version "1.13.2" + resolved "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz" + integrity sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ== + +"@webassemblyjs/wasm-edit@^1.14.1": + version "1.14.1" + resolved "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz" + integrity sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ== + dependencies: + "@webassemblyjs/ast" "1.14.1" + "@webassemblyjs/helper-buffer" "1.14.1" + "@webassemblyjs/helper-wasm-bytecode" "1.13.2" + "@webassemblyjs/helper-wasm-section" "1.14.1" + "@webassemblyjs/wasm-gen" "1.14.1" + "@webassemblyjs/wasm-opt" "1.14.1" + "@webassemblyjs/wasm-parser" "1.14.1" + "@webassemblyjs/wast-printer" "1.14.1" + +"@webassemblyjs/wasm-gen@1.14.1": + version "1.14.1" + resolved "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz" + integrity sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg== + dependencies: + "@webassemblyjs/ast" "1.14.1" + "@webassemblyjs/helper-wasm-bytecode" "1.13.2" + "@webassemblyjs/ieee754" "1.13.2" + "@webassemblyjs/leb128" "1.13.2" + "@webassemblyjs/utf8" "1.13.2" + +"@webassemblyjs/wasm-opt@1.14.1": + version "1.14.1" + resolved "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz" + integrity sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw== + dependencies: + "@webassemblyjs/ast" "1.14.1" + "@webassemblyjs/helper-buffer" "1.14.1" + "@webassemblyjs/wasm-gen" "1.14.1" + "@webassemblyjs/wasm-parser" "1.14.1" + +"@webassemblyjs/wasm-parser@^1.14.1", "@webassemblyjs/wasm-parser@1.14.1": + version "1.14.1" + resolved "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz" + integrity sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ== + dependencies: + "@webassemblyjs/ast" "1.14.1" + "@webassemblyjs/helper-api-error" "1.13.2" + "@webassemblyjs/helper-wasm-bytecode" "1.13.2" + "@webassemblyjs/ieee754" "1.13.2" + "@webassemblyjs/leb128" "1.13.2" + "@webassemblyjs/utf8" "1.13.2" + +"@webassemblyjs/wast-printer@1.14.1": + version "1.14.1" + resolved "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz" + integrity sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw== + dependencies: + "@webassemblyjs/ast" "1.14.1" + "@xtuc/long" "4.2.2" + +"@xtuc/ieee754@^1.2.0": + version "1.2.0" + resolved "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz" + integrity sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA== + +"@xtuc/long@4.2.2": + version "4.2.2" + resolved "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz" + integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== + abab@^2.0.3, abab@^2.0.5: version "2.0.6" resolved "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz" @@ -847,6 +1050,11 @@ acorn-globals@^6.0.0: acorn "^7.1.1" acorn-walk "^7.1.1" +acorn-import-phases@^1.0.3: + version "1.0.4" + resolved "https://registry.npmjs.org/acorn-import-phases/-/acorn-import-phases-1.0.4.tgz" + integrity sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ== + acorn-jsx@^5.3.2: version "5.3.2" resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" @@ -857,16 +1065,23 @@ acorn-walk@^7.1.1: resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz" integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== +acorn-walk@^8.1.1: + version "8.3.4" + resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz" + integrity sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g== + dependencies: + acorn "^8.11.0" + +"acorn@^6.0.0 || ^7.0.0 || ^8.0.0", acorn@^8.0.1, acorn@^8.11.0, acorn@^8.14.0, acorn@^8.15.0, acorn@^8.2.4, acorn@^8.4.1, acorn@^8.9.0: + version "8.15.0" + resolved "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz" + integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== + acorn@^7.1.1: version "7.4.1" resolved "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -acorn@^8.0.1, acorn@^8.2.4, acorn@^8.9.0: - version "8.14.0" - resolved "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz" - integrity sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA== - agent-base@6: version "6.0.2" resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" @@ -874,6 +1089,20 @@ agent-base@6: dependencies: debug "4" +ajv-formats@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz" + integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA== + dependencies: + ajv "^8.0.0" + +ajv-keywords@^5.1.0: + version "5.1.0" + resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz" + integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw== + dependencies: + fast-deep-equal "^3.1.3" + ajv@^6.12.4: version "6.12.6" resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" @@ -884,6 +1113,26 @@ ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ajv@^8.0.0: + version "8.17.1" + resolved "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz" + integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== + dependencies: + fast-deep-equal "^3.1.3" + fast-uri "^3.0.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + +ajv@^8.8.2, ajv@^8.9.0: + version "8.17.1" + resolved "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz" + integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== + dependencies: + fast-deep-equal "^3.1.3" + fast-uri "^3.0.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + ansi-escapes@^4.2.1: version "4.3.2" resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz" @@ -923,6 +1172,11 @@ anymatch@^3.0.3: normalize-path "^3.0.0" picomatch "^2.0.4" +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + argparse@^1.0.7: version "1.0.10" resolved "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz" @@ -950,7 +1204,7 @@ asynckit@^0.4.0: resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== -babel-jest@^27.5.1: +babel-jest@^27.5.1, "babel-jest@>=27.0.0 <28": version "27.5.1" resolved "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz" integrity sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg== @@ -1036,7 +1290,7 @@ browser-process-hrtime@^1.0.0: resolved "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz" integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== -browserslist@^4.20.2: +browserslist@^4.20.2, browserslist@^4.24.0, "browserslist@>= 4.21.0": version "4.24.4" resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz" integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== @@ -1067,7 +1321,7 @@ buffer-from@^1.0.0: call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: version "1.0.2" - resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6" + resolved "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz" integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== dependencies: es-errors "^1.3.0" @@ -1115,6 +1369,11 @@ char-regex@^1.0.2: resolved "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz" integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== +chrome-trace-event@^1.0.2: + version "1.0.4" + resolved "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz" + integrity sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ== + ci-info@^3.2.0: version "3.3.2" resolved "https://registry.npmjs.org/ci-info/-/ci-info-3.3.2.tgz" @@ -1144,7 +1403,14 @@ collect-v8-coverage@^1.0.0: resolved "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz" integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== -color-convert@^1.9.0, color-convert@^1.9.3: +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-convert@^1.9.3: version "1.9.3" resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== @@ -1158,16 +1424,16 @@ color-convert@^2.0.1: dependencies: color-name "~1.1.4" -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - color-name@^1.0.0, color-name@~1.1.4: version "1.1.4" resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + color-string@^1.6.0: version "1.9.1" resolved "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz" @@ -1199,6 +1465,11 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" +commander@^2.20.0: + version "2.20.3" + resolved "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== + concat-map@0.0.1: version "0.0.1" resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" @@ -1211,6 +1482,11 @@ convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: dependencies: safe-buffer "~5.1.1" +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.6" resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz" @@ -1246,7 +1522,7 @@ data-urls@^2.0.0: whatwg-mimetype "^2.3.0" whatwg-url "^8.0.0" -debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: +debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@4: version "4.3.4" resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -1288,6 +1564,11 @@ diff-sequences@^27.5.1: resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz" integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" @@ -1316,7 +1597,7 @@ dotenv@^16.0.0: dunder-proto@^1.0.1: version "1.0.1" - resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" + resolved "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz" integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== dependencies: call-bind-apply-helpers "^1.0.1" @@ -1343,10 +1624,10 @@ enabled@2.0.x: resolved "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz" integrity sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ== -enhanced-resolve@^5.0.0: - version "5.17.1" - resolved "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz" - integrity sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg== +enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.2: + version "5.18.2" + resolved "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.2.tgz" + integrity sha512-6Jw4sE1maoRJo3q8MsSIn2onJFbLTOjY9hlx4DZXmOKvLRd1Ok2kXmAGXaafL2+ijsJZ1ClYbl/pmqr9+k4iUQ== dependencies: graceful-fs "^4.2.4" tapable "^2.2.0" @@ -1360,24 +1641,29 @@ error-ex@^1.3.1: es-define-property@^1.0.1: version "1.0.1" - resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa" + resolved "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz" integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== es-errors@^1.3.0: version "1.3.0" - resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + resolved "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz" integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== +es-module-lexer@^1.2.1: + version "1.7.0" + resolved "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz" + integrity sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA== + es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: version "1.1.1" - resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1" + resolved "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz" integrity sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA== dependencies: es-errors "^1.3.0" es-set-tostringtag@^2.1.0: version "2.1.0" - resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz#f31dbbe0c183b00a6d26eb6325c810c0fd18bd4d" + resolved "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz" integrity sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA== dependencies: es-errors "^1.3.0" @@ -1429,7 +1715,7 @@ eslint-rule-composer@^0.3.0: resolved "https://registry.npmjs.org/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz" integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg== -eslint-scope@^5.1.1: +eslint-scope@^5.1.1, eslint-scope@5.1.1: version "5.1.1" resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz" integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== @@ -1450,7 +1736,7 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== -eslint@8.57.0: +eslint@*, "eslint@^6.0.0 || ^7.0.0 || ^8.0.0", "eslint@^6.0.0 || ^7.0.0 || >=8.0.0", eslint@^8.0.0, eslint@8.57.0: version "8.57.0" resolved "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz" integrity sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ== @@ -1527,7 +1813,12 @@ estraverse@^4.1.1: resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== -estraverse@^5.1.0, estraverse@^5.2.0: +estraverse@^5.1.0: + version "5.3.0" + resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + +estraverse@^5.2.0: version "5.3.0" resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== @@ -1537,6 +1828,11 @@ esutils@^2.0.2: resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== +events@^3.2.0: + version "3.3.0" + resolved "https://registry.npmjs.org/events/-/events-3.3.0.tgz" + integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== + execa@^5.0.0: version "5.1.1" resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz" @@ -1583,7 +1879,7 @@ fast-glob@^3.2.9: merge2 "^1.3.0" micromatch "^4.0.4" -fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: +fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@2.x: version "2.1.0" resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== @@ -1593,6 +1889,11 @@ fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== +fast-uri@^3.0.1: + version "3.0.6" + resolved "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz" + integrity sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw== + fastq@^1.6.0: version "1.13.0" resolved "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz" @@ -1626,7 +1927,15 @@ fill-range@^7.1.1: dependencies: to-regex-range "^5.0.1" -find-up@^4.0.0, find-up@^4.1.0: +find-up@^4.0.0: + version "4.1.0" + resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" + integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== + dependencies: + locate-path "^5.0.0" + path-exists "^4.0.0" + +find-up@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== @@ -1662,7 +1971,7 @@ fn.name@1.x.x: form-data@^3.0.0: version "3.0.4" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.4.tgz#938273171d3f999286a4557528ce022dc2c98df1" + resolved "https://registry.npmjs.org/form-data/-/form-data-3.0.4.tgz" integrity sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ== dependencies: asynckit "^0.4.0" @@ -1676,19 +1985,9 @@ fs.realpath@^1.0.0: resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@^2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - -function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" - integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== - -function-bind@^1.1.2: +function-bind@^1.1.1, function-bind@^1.1.2: version "1.1.2" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== gensync@^1.0.0-beta.2: @@ -1703,7 +2002,7 @@ get-caller-file@^2.0.5: get-intrinsic@^1.2.6: version "1.3.0" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz#743f0e3b6964a93a5491ed1bffaae054d7f98d01" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz" integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== dependencies: call-bind-apply-helpers "^1.0.2" @@ -1724,7 +2023,7 @@ get-package-type@^0.1.0: get-proto@^1.0.1: version "1.0.1" - resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" + resolved "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz" integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== dependencies: dunder-proto "^1.0.1" @@ -1749,6 +2048,11 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" +glob-to-regexp@^0.4.1: + version "0.4.1" + resolved "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz" + integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== + glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: version "7.2.3" resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" @@ -1787,10 +2091,10 @@ globby@^11.1.0: gopd@^1.2.0: version "1.2.0" - resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" + resolved "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz" integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== -graceful-fs@^4.2.4, graceful-fs@^4.2.9: +graceful-fs@^4.1.2, graceful-fs@^4.2.11, graceful-fs@^4.2.4, graceful-fs@^4.2.9: version "4.2.11" resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -1812,12 +2116,12 @@ has-flag@^4.0.0: has-symbols@^1.0.3, has-symbols@^1.1.0: version "1.1.0" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" + resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz" integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== has-tostringtag@^1.0.2: version "1.0.2" - resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz" integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== dependencies: has-symbols "^1.0.3" @@ -1831,7 +2135,7 @@ has@^1.0.3: hasown@^2.0.2: version "2.0.2" - resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz" integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== dependencies: function-bind "^1.1.2" @@ -1857,7 +2161,7 @@ http-proxy-agent@^4.0.1: agent-base "6" debug "4" -https-proxy-agent@5.0.1, https-proxy-agent@^5.0.0: +https-proxy-agent@^5.0.0, https-proxy-agent@5.0.1: version "5.0.1" resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz" integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== @@ -1911,7 +2215,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.3: +inherits@^2.0.3, inherits@2: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -2270,7 +2574,7 @@ jest-resolve-dependencies@^27.5.1: jest-regex-util "^27.5.1" jest-snapshot "^27.5.1" -jest-resolve@^27.5.1: +jest-resolve@*, jest-resolve@^27.5.1: version "27.5.1" resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz" integrity sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw== @@ -2419,7 +2723,7 @@ jest-watcher@^27.5.1: jest-util "^27.5.1" string-length "^4.0.1" -jest-worker@^27.5.1: +jest-worker@^27.4.5, jest-worker@^27.5.1: version "27.5.1" resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz" integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== @@ -2428,7 +2732,7 @@ jest-worker@^27.5.1: merge-stream "^2.0.0" supports-color "^8.0.0" -jest@^27.0.6: +jest@^27.0.0, jest@^27.0.6: version "27.5.1" resolved "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz" integrity sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ== @@ -2495,7 +2799,7 @@ jsesc@^2.5.1: resolved "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz" integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== -json-parse-even-better-errors@^2.3.0: +json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: version "2.3.1" resolved "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== @@ -2505,6 +2809,11 @@ json-schema-traverse@^0.4.1: resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + json-stable-stringify-without-jsonify@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" @@ -2515,7 +2824,7 @@ json-stringify-safe@^5.0.1: resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== -json5@2.x, json5@^2.2.1: +json5@^2.2.1, json5@2.x: version "2.2.3" resolved "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== @@ -2561,6 +2870,11 @@ lines-and-columns@^1.1.6: resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz" integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== +loader-runner@^4.2.0: + version "4.3.0" + resolved "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz" + integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg== + locate-path@^5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz" @@ -2621,7 +2935,7 @@ make-dir@^3.0.0: dependencies: semver "^6.0.0" -make-error@1.x: +make-error@^1.1.1, make-error@1.x: version "1.3.6" resolved "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== @@ -2635,7 +2949,7 @@ makeerror@1.0.12: math-intrinsics@^1.1.0: version "1.1.0" - resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" + resolved "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz" integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== merge-stream@^2.0.0: @@ -2648,7 +2962,7 @@ merge2@^1.3.0, merge2@^1.4.1: resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== -micromatch@4.0.5, micromatch@^4.0.0, micromatch@^4.0.4: +micromatch@^4.0.0, micromatch@^4.0.4, micromatch@4.0.5: version "4.0.5" resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz" integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== @@ -2661,9 +2975,9 @@ mime-db@1.52.0: resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== -mime-types@^2.1.35: +mime-types@^2.1.27, mime-types@^2.1.35: version "2.1.35" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== dependencies: mime-db "1.52.0" @@ -2685,7 +2999,7 @@ minimist@>=1.2.3: resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== -ms@2.1.2, ms@^2.1.1: +ms@^2.1.1, ms@2.1.2: version "2.1.2" resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== @@ -2700,6 +3014,11 @@ natural-compare@^1.4.0: resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== +neo-async@^2.6.2: + version "2.6.2" + resolved "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + nock@*, nock@13.5.5: version "13.5.5" resolved "https://registry.npmjs.org/nock/-/nock-13.5.5.tgz" @@ -2935,6 +3254,13 @@ queue-microtask@^1.2.2: resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz" integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== +randombytes@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz" + integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== + dependencies: + safe-buffer "^5.1.0" + react-is@^17.0.1: version "17.0.2" resolved "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz" @@ -2954,6 +3280,11 @@ require-directory@^2.1.1: resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + requires-port@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz" @@ -2981,7 +3312,7 @@ resolve.exports@^1.1.0: resolved "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.0.tgz" integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ== -resolve@>=1.9.0, resolve@^1.20.0: +resolve@^1.20.0, resolve@>=1.9.0: version "1.22.1" resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz" integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== @@ -3009,7 +3340,7 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -safe-buffer@~5.1.1: +safe-buffer@^5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== @@ -3036,17 +3367,39 @@ saxes@^5.0.1: dependencies: xmlchars "^2.2.0" -semver@7.x, semver@^7.3.2, semver@^7.3.4, semver@^7.3.7: +schema-utils@^4.3.0, schema-utils@^4.3.2: + version "4.3.2" + resolved "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.2.tgz" + integrity sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ== + dependencies: + "@types/json-schema" "^7.0.9" + ajv "^8.9.0" + ajv-formats "^2.1.1" + ajv-keywords "^5.1.0" + +semver@^6.0.0: + version "6.3.1" + resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + +semver@^6.3.0: + version "6.3.1" + resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + +semver@^7.3.2, semver@^7.3.4, semver@^7.3.7, semver@7.x: version "7.5.4" resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz" integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== dependencies: lru-cache "^6.0.0" -semver@^6.0.0, semver@^6.3.0: - version "6.3.1" - resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz" - integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== +serialize-javascript@^6.0.2: + version "6.0.2" + resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz" + integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g== + dependencies: + randombytes "^2.1.0" shebang-command@^2.0.0: version "2.0.0" @@ -3082,7 +3435,7 @@ slash@^3.0.0: resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== -source-map-support@^0.5.6: +source-map-support@^0.5.6, source-map-support@~0.5.20: version "0.5.21" resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz" integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== @@ -3095,7 +3448,12 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -source-map@^0.7.3, source-map@^0.7.4: +source-map@^0.7.3: + version "0.7.4" + resolved "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== + +source-map@^0.7.4: version "0.7.4" resolved "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz" integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== @@ -3117,6 +3475,13 @@ stack-utils@^2.0.3: dependencies: escape-string-regexp "^2.0.0" +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + string-length@^4.0.1: version "4.0.2" resolved "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz" @@ -3134,13 +3499,6 @@ string-width@^4.1.0, string-width@^4.2.0: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" @@ -3202,7 +3560,7 @@ symbol-tree@^3.2.4: resolved "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -tapable@^2.2.0: +tapable@^2.1.1, tapable@^2.2.0: version "2.2.1" resolved "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz" integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== @@ -3215,6 +3573,27 @@ terminal-link@^2.0.0: ansi-escapes "^4.2.1" supports-hyperlinks "^2.0.0" +terser-webpack-plugin@^5.3.11: + version "5.3.14" + resolved "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.14.tgz" + integrity sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw== + dependencies: + "@jridgewell/trace-mapping" "^0.3.25" + jest-worker "^27.4.5" + schema-utils "^4.3.0" + serialize-javascript "^6.0.2" + terser "^5.31.1" + +terser@^5.31.1: + version "5.43.1" + resolved "https://registry.npmjs.org/terser/-/terser-5.43.1.tgz" + integrity sha512-+6erLbBm0+LROX2sPXlUYx/ux5PyE9K/a92Wrt6oA+WDAoFTdpHE5tCYCI5PNzq2y8df4rA+QgHLJuR4jNymsg== + dependencies: + "@jridgewell/source-map" "^0.3.3" + acorn "^8.14.0" + commander "^2.20.0" + source-map-support "~0.5.20" + test-exclude@^6.0.0: version "6.0.0" resolved "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz" @@ -3278,7 +3657,7 @@ triple-beam@^1.3.0: resolved "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz" integrity sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw== -ts-auto-mock@^3.3.5: +ts-auto-mock@^3.3.5, ts-auto-mock@^3.5.0: version "3.6.4" resolved "https://registry.npmjs.org/ts-auto-mock/-/ts-auto-mock-3.6.4.tgz" integrity sha512-NDMlKRZotUQgQARp38vwDaP5ucQXnPK/A7H/lpAtcQmwzLAdLnwgxtNUzYF2G2gKQqw7SNcyGkjizWZm8EHNQw== @@ -3312,6 +3691,25 @@ ts-loader@9.5.1: semver "^7.3.4" source-map "^0.7.4" +ts-node@>=8.0.2, ts-node@>=9.0.0: + version "10.9.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz" + integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== + dependencies: + "@cspotcode/source-map-support" "^0.8.0" + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.2" + acorn "^8.4.1" + acorn-walk "^8.1.1" + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + v8-compile-cache-lib "^3.0.1" + yn "3.1.1" + tslib@^1.8.1: version "1.14.1" resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" @@ -3367,7 +3765,7 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@4.9.5: +typescript@*, typescript@^4.X.X, typescript@>=2.7, "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta", typescript@>=3.2.2, "typescript@>=3.8 <5.0", typescript@4.9.5: version "4.9.5" resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz" integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== @@ -3410,6 +3808,11 @@ util-deprecate@^1.0.1: resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== +v8-compile-cache-lib@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz" + integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== + v8-to-istanbul@^8.1.0: version "8.1.1" resolved "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz" @@ -3440,6 +3843,14 @@ walker@^1.0.7: dependencies: makeerror "1.0.12" +watchpack@^2.4.1: + version "2.4.4" + resolved "https://registry.npmjs.org/watchpack/-/watchpack-2.4.4.tgz" + integrity sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA== + dependencies: + glob-to-regexp "^0.4.1" + graceful-fs "^4.1.2" + webidl-conversions@^5.0.0: version "5.0.0" resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz" @@ -3450,6 +3861,42 @@ webidl-conversions@^6.1.0: resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz" integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== +webpack-sources@^3.3.3: + version "3.3.3" + resolved "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.3.tgz" + integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg== + +webpack@^5.0.0, webpack@^5.1.0: + version "5.100.2" + resolved "https://registry.npmjs.org/webpack/-/webpack-5.100.2.tgz" + integrity sha512-QaNKAvGCDRh3wW1dsDjeMdDXwZm2vqq3zn6Pvq4rHOEOGSaUMgOOjG2Y9ZbIGzpfkJk9ZYTHpDqgDfeBDcnLaw== + dependencies: + "@types/eslint-scope" "^3.7.7" + "@types/estree" "^1.0.8" + "@types/json-schema" "^7.0.15" + "@webassemblyjs/ast" "^1.14.1" + "@webassemblyjs/wasm-edit" "^1.14.1" + "@webassemblyjs/wasm-parser" "^1.14.1" + acorn "^8.15.0" + acorn-import-phases "^1.0.3" + browserslist "^4.24.0" + chrome-trace-event "^1.0.2" + enhanced-resolve "^5.17.2" + es-module-lexer "^1.2.1" + eslint-scope "5.1.1" + events "^3.2.0" + glob-to-regexp "^0.4.1" + graceful-fs "^4.2.11" + json-parse-even-better-errors "^2.3.1" + loader-runner "^4.2.0" + mime-types "^2.1.27" + neo-async "^2.6.2" + schema-utils "^4.3.2" + tapable "^2.1.1" + terser-webpack-plugin "^5.3.11" + watchpack "^2.4.1" + webpack-sources "^3.3.3" + whatwg-encoding@^1.0.5: version "1.0.5" resolved "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz" @@ -3557,7 +4004,7 @@ yallist@^4.0.0: resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yargs-parser@20.x, yargs-parser@^20.2.2: +yargs-parser@^20.2.2, yargs-parser@20.x: version "20.2.9" resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz" integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== @@ -3575,6 +4022,11 @@ yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== + yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" From 9e9cdb7842dcb8bd512b03baae6a568ed726f64d Mon Sep 17 00:00:00 2001 From: beppe Date: Wed, 23 Jul 2025 22:53:38 +0200 Subject: [PATCH 3/6] Revert to restore deserialization --- src/typings/transferWebhooks/transferDataTracking.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/typings/transferWebhooks/transferDataTracking.ts b/src/typings/transferWebhooks/transferDataTracking.ts index 336ee1789..e2e22ae77 100644 --- a/src/typings/transferWebhooks/transferDataTracking.ts +++ b/src/typings/transferWebhooks/transferDataTracking.ts @@ -30,7 +30,12 @@ export type TransferDataTracking = ConfirmationTrackingData | EstimationTracking */ export class TransferDataTrackingClass { - static readonly discriminator: string = "type"; + static readonly discriminator: string | undefined = "type"; - static readonly mapping: {[index: string]: string} | undefined = undefined; -} + static readonly mapping: {[index: string]: string} | undefined = { + "confirmation": "ConfirmationTrackingData", + "estimation": "EstimationTrackingData", + "internalReview": "InternalReviewTrackingData", + }; + +} \ No newline at end of file From 0a76a8215eabc2b549e572f5d3ad8c57276d8bd3 Mon Sep 17 00:00:00 2001 From: Beppe Catanese Date: Thu, 24 Jul 2025 09:20:48 +0200 Subject: [PATCH 4/6] Export Tokenization webhooks --- src/typings/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/typings/index.ts b/src/typings/index.ts index 85b76d417..d265817d1 100644 --- a/src/typings/index.ts +++ b/src/typings/index.ts @@ -35,4 +35,5 @@ export * as acsWebhooks from "./acsWebhooks/models"; export * as transactionWebhooks from "./transactionWebhooks/models"; export * as negativeBalanceWarningWebhooks from "./negativeBalanceWarningWebhooks/models"; export * as balanceWebhooks from "./balanceWebhooks/models"; -export * as disputeWebhooks from "./disputeWebhooks/models"; \ No newline at end of file +export * as disputeWebhooks from "./disputeWebhooks/models"; +export * as tokenizationWebhooks from "./tokenizationWebhooks/models"; \ No newline at end of file From 1e9277b0481f74cf63e673a33730deb8cdf7a53b Mon Sep 17 00:00:00 2001 From: Beppe Catanese Date: Thu, 24 Jul 2025 09:21:03 +0200 Subject: [PATCH 5/6] Add Tokenization Webhooks tests --- .../webhooks/tokenizationWebhooks.spec.ts | 119 ++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 src/__tests__/webhooks/tokenizationWebhooks.spec.ts diff --git a/src/__tests__/webhooks/tokenizationWebhooks.spec.ts b/src/__tests__/webhooks/tokenizationWebhooks.spec.ts new file mode 100644 index 000000000..33087fa29 --- /dev/null +++ b/src/__tests__/webhooks/tokenizationWebhooks.spec.ts @@ -0,0 +1,119 @@ +import { TokenizationAlreadyExistingDetailsNotificationRequest } from "../../typings/tokenizationWebhooks/tokenizationAlreadyExistingDetailsNotificationRequest"; +import { TokenizationCreatedDetailsNotificationRequest } from "../../typings/tokenizationWebhooks/tokenizationCreatedDetailsNotificationRequest"; +import { TokenizationDisabledDetailsNotificationRequest } from "../../typings/tokenizationWebhooks/tokenizationDisabledDetailsNotificationRequest"; +import { TokenizationUpdatedDetailsNotificationRequest } from "../../typings/tokenizationWebhooks/tokenizationUpdatedDetailsNotificationRequest"; +import { TokenizationWebhooksHandler } from "../../typings/tokenizationWebhooks/tokenizationWebhooksHandler"; + +describe("TokenizationWebhooksHandler", () => { + it("should deserialize TokenizationAlreadyExistingDetailsNotificationRequest", () => { + const json = { + "createdAt": "2025-06-30T16:40:23+02:00", + "eventId": "QBQQ9DLNRHHKGK38", + "environment": "test", + "data": { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "storedPaymentMethodId": "M5N7TQ4TG5PFWR50", + "type": "visastandarddebit", + "operation": "alreadyExisting", + "shopperReference": "YOUR_SHOPPER_REFERENCE" + }, + "type": "recurring.token.alreadyExisting" + }; + const handler = new TokenizationWebhooksHandler(JSON.stringify(json)); + const request = handler.getTokenizationAlreadyExistingDetailsNotificationRequest(); + expect(request).toBeTruthy(); + expect(request.type).toBe(TokenizationAlreadyExistingDetailsNotificationRequest.TypeEnum.RecurringTokenAlreadyExisting); + expect(request.data.type).toBe("visastandarddebit"); + // test GenericWebhook + const genericWebhook = handler.getGenericWebhook(); + expect(genericWebhook).toBeInstanceOf(TokenizationAlreadyExistingDetailsNotificationRequest); + expect(genericWebhook.type).toBe("recurring.token.alreadyExisting"); + }); + + it("should deserialize TokenizationCreatedDetailsNotificationRequest", () => { + const json = { + "createdAt": "2025-06-30T16:40:23+02:00", + "eventId": "QBQQ9DLNRHHKGK38", + "environment": "test", + "data": { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "storedPaymentMethodId": "M5N7TQ4TG5PFWR50", + "type": "visastandarddebit", + "operation": "created", + "shopperReference": "YOUR_SHOPPER_REFERENCE" + }, + "type": "recurring.token.created" + }; + const handler = new TokenizationWebhooksHandler(JSON.stringify(json)); + const request = handler.getTokenizationCreatedDetailsNotificationRequest(); + expect(request).toBeTruthy(); + expect(request.type).toBe(TokenizationCreatedDetailsNotificationRequest.TypeEnum.RecurringTokenCreated); + expect(request.data.type).toBe("visastandarddebit"); + // test GenericWebhook + const genericWebhook = handler.getGenericWebhook(); + expect(genericWebhook).toBeInstanceOf(TokenizationCreatedDetailsNotificationRequest); + expect(genericWebhook.type).toBe("recurring.token.created"); + }); + + it("should deserialize TokenizationUpdatedDetailsNotificationRequest", () => { + const json = { + "createdAt": "2025-06-30T16:40:23+02:00", + "eventId": "QBQQ9DLNRHHKGK38", + "environment": "test", + "data": { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "storedPaymentMethodId": "M5N7TQ4TG5PFWR50", + "type": "visastandarddebit", + "operation": "updated", + "shopperReference": "YOUR_SHOPPER_REFERENCE" + }, + "type": "recurring.token.updated" + }; + const handler = new TokenizationWebhooksHandler(JSON.stringify(json)); + const request = handler.getTokenizationUpdatedDetailsNotificationRequest(); + expect(request).toBeTruthy(); + expect(request.type).toBe(TokenizationUpdatedDetailsNotificationRequest.TypeEnum.RecurringTokenUpdated); + expect(request.data.type).toBe("visastandarddebit"); + // test GenericWebhook + const genericWebhook = handler.getGenericWebhook(); + expect(genericWebhook).toBeInstanceOf(TokenizationUpdatedDetailsNotificationRequest); + expect(genericWebhook.type).toBe("recurring.token.updated"); + }); + + it("should deserialize TokenizationDisabledDetailsNotificationRequest", () => { + const json = { + "createdAt": "2025-06-30T16:40:23+02:00", + "eventId": "QBQQ9DLNRHHKGK38", + "environment": "test", + "data": { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "storedPaymentMethodId": "M5N7TQ4TG5PFWR50", + "type": "visastandarddebit", + "shopperReference": "YOUR_SHOPPER_REFERENCE" + }, + "type": "recurring.token.disabled" + }; + const handler = new TokenizationWebhooksHandler(JSON.stringify(json)); + const request = handler.getTokenizationDisabledDetailsNotificationRequest(); + expect(request).toBeTruthy(); + expect(request.type).toBe(TokenizationDisabledDetailsNotificationRequest.TypeEnum.RecurringTokenDisabled); + expect(request.data.type).toBe("visastandarddebit"); + // test GenericWebhook + const genericWebhook = handler.getGenericWebhook(); + expect(genericWebhook).toBeInstanceOf(TokenizationDisabledDetailsNotificationRequest); + expect(genericWebhook.type).toBe("recurring.token.disabled"); + }); + + it("should throw error for unknown type", () => { + const json = { + type: "unknown.type", + data: {} + }; + const handler = new TokenizationWebhooksHandler(JSON.stringify(json)); + expect(() => handler.getGenericWebhook()).toThrow("Could not parse the json payload"); + }); + + it("should throw SyntaxError for invalid JSON", () => { + expect(() => new TokenizationWebhooksHandler("{ invalid json }")).toThrow(SyntaxError); + }); +}); \ No newline at end of file From fa9e95cff719619992fb106eb967566d36da0024 Mon Sep 17 00:00:00 2001 From: Beppe Catanese Date: Thu, 24 Jul 2025 09:22:10 +0200 Subject: [PATCH 6/6] Add Tokenization Webhooks to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 819025b2a..4ac9674fa 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ The library supports all webhooks under the following model directories: | [Management Webhooks](https://docs.adyen.com/api-explorer/ManagementNotification/3/overview) | Adyen uses webhooks to inform your system about events that happen with your Adyen company and merchant accounts, stores, payment terminals, and payment methods when using Management API. | [ManagementWebhooks](src/typings/managementWebhooks) | **v3** | | [Notification Webhooks](https://docs.adyen.com/api-explorer/Webhooks/1/overview) | We use webhooks to send you updates about payment status updates, newly available reports, and other events that you can subscribe to. For more information, refer to our documentation | [Notification](src/typings/notification) | **v1** | | [Transaction Webhooks](https://docs.adyen.com/api-explorer/transaction-webhooks/4/overview) | Adyen sends webhooks to inform your system about incoming and outgoing transfers in your platform. You can use these webhooks to build your implementation. For example, you can use this information to update balances in your own dashboards or to keep track of incoming funds. | [TransactionWebhooks](src/typings/transactionWebhooks) | **v4** | +| [Tokenization Webhooks](https://docs.adyen.com/api-explorer/Tokenization-webhooks/1/overview) | Adyen sends webhooks to inform you about the creation and changes to the recurring tokens. | [tokenizationwebhooks](src/main/java/com/adyen/model/tokenizationwebhooks) | **v1** | For more information, refer to our [documentation](https://docs.adyen.com/) or the [API Explorer](https://docs.adyen.com/api-explorer/).